@hb-hellotech/hb-ui 2.9.0-beta.3 → 2.9.0-beta.4

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,L){typeof exports=="object"&&typeof module<"u"?L(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"],L):(kr=typeof globalThis<"u"?globalThis:kr||self,L(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,L,ZI,Cr,sB,Cs,Vl,io,uA,$I){"use strict";const lB=(r="")=>{const t=`hb-${r}`;return kne(t)},fA=(r,t,e,n)=>(t&&(r+=`-${t}`),e&&(r+=`__${e}`),n&&(r+=`--${n}`),r),kne=r=>({b:t=>t?fA(r,t,"",""):fA(r,"","",""),e:t=>t?fA(r,"",t,""):"",m:t=>fA(r,"","",t),be:(t,e)=>fA(r,t,e,""),em:(t,e)=>fA(r,"",t,e),bem:(t,e,n)=>fA(r,t,e,n),is:(t,e)=>e?`is-${t}`:""}),Jo=Symbol("GLOBAL_CONFIG_KEY"),Qne=["onMouseenter","onMouseleave"],xne=["onClick"],_ne=L.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=L.inject(Jo,{}),i=Cs.useI18n().t,a=Cs.useI18n().messages.value.en_US,o=Cs.useI18n().messages.value.ja_JP,s=Cs.useI18n().messages.value.zh_CN,l=r,c=L.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=L.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=lB("sfcm"),A=sB.useRoute(),d=L.reactive({lan:window.localStorage.getItem("lan")}),g=L.ref(!1),y=L.ref(600);let v=[];const p=L.ref([]),m=L.ref([]),b=L.computed(()=>p.value.every(R=>R.isLinked||R.isFixed)),C=R=>({...R,label:Q(R)||`${_(R)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:R.key,isFixed:R?.isFixed||!1,isLinked:R?.isLinked||!1,labelLanguage:R?.labelLanguage||void 0}),w=R=>{const D=R.draggedContext.element,V=R.relatedContext.index;if(D.isLinked||D.isFixed)return!1;const te=p.value.map((oe,fe)=>({item:oe,index:fe})).filter(({item:oe})=>oe.isLinked).map(({index:oe})=>oe);if(te.length===0)return!0;for(let oe=0;oe<te.length-1;oe++){const fe=te[oe],he=te[oe+1];if(V>fe&&V<he)return!1}return!0},B=L.computed(()=>k()+"_"+l.saveKey),k=()=>{const R=localStorage.getItem("pro__Login_Userinfo");let D="anonymous";if(R)try{D=JSON.parse(R).value.jobNumber||"anonymous"}catch(te){console.warn("解析用户信息失败:",te)}let V=A?.path;return`searchFormConfig_${D}_${V}`},Q=R=>({ja_JP:()=>Vl.get(o,R.labelLanguage||""),en_US:()=>Vl.get(a,R.labelLanguage||""),zh_CN:()=>Vl.get(s,R.labelLanguage||"")})[d.lan]?.()||R.label,_=R=>({ja_JP:()=>Vl.get(o,R.subLabelLanguage||""),en_US:()=>Vl.get(a,R.subLabelLanguage||""),zh_CN:()=>Vl.get(s,R.subLabelLanguage||"")})[d.lan]?.()||R.subLabel,F=R=>Array.isArray(R)?R.map(D=>{if(typeof D=="string")return D;if(D&&typeof D=="object"&&"key"in D){const V=D.key;return typeof V=="string"?V:""}return""}).filter(D=>!!D):[],P=R=>{if(typeof R!="function")return Array.isArray(R)?R.map(D=>P(D)):R&&Object.prototype.toString.call(R)==="[object Object]"?Object.entries(R).reduce((D,[V,te])=>(typeof te!="function"&&(D[V]=P(te)),D),{}):R},W=R=>R.map(D=>P(D)),M=R=>{try{const D=localStorage.getItem(B.value);if(D){const V=JSON.parse(D);if(V.originalList&&Array.isArray(V.originalList)){const te=F(V.originalList),oe=new Map(R.map(ee=>[ee.key,ee])),fe=te.map(ee=>oe.get(ee)).filter(ee=>!!ee),he=new Set(te),me=R.filter(ee=>!he.has(ee.key));v=Vl.cloneDeep([...fe,...me]);const le=v.filter(ee=>ee?.isFixed),de=v.filter(ee=>ee?.isLinked),H=Array.isArray(V.showList)?V.showList:[],ae=F(H),ce=new Map(v.map(ee=>[ee.key,ee])),ie=ae.map(ee=>ce.get(ee)).filter(ee=>ee?!ee.isFixed&&!ee.isLinked:!1),K=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):ie.length,ne=le.map(ee=>({...C(ee)})),Z=de.map(ee=>({...C(ee)})),X=ie.slice(0,K).map(ee=>({...C(ee)}));p.value=[...ne,...Z,...X];const q=p.value.map(ee=>ee.key),be=v.map(ee=>ee.key).filter(ee=>!q.includes(ee));return m.value=v.filter(ee=>be.includes(ee.key)).map(ee=>({...C(ee),active:!1})),!0}}}catch(D){console.warn("加载保存的搜索配置失败:",D)}return!1},J=()=>{try{const R={originalList:v.map(D=>D.key),showList:p.value.map(D=>D.key)};localStorage.setItem(B.value,JSON.stringify(R))}catch(R){console.warn("保存搜索配置失败:",R)}},G=L.computed(()=>{const R=p.value.filter(V=>!V.isFixed&&!V.isLinked).length,D=p.value.filter(V=>V.isFixed||V.isLinked).length;return R>=c.value-D});L.watch(()=>l.list,R=>{let D=!Vl.isEqual(W(p.value),W(R));if(!D)return;const V=localStorage.getItem(B.value),te=JSON.parse(V||"{}"),oe=R.map(le=>le.key),fe=F(te?.originalList),he=new Set(oe),me=oe.length!==fe.length||fe.some(le=>!he.has(le));if(te&&te?.originalList&&Array.isArray(te.originalList)&&!me)M(R),f("confirm",p.value);else if(D){v=Vl.cloneDeep(R);const le=R.filter(Z=>Z?.isFixed),de=R.filter(Z=>Z?.isLinked),H=R.filter(Z=>!Z?.isFixed&&!Z?.isLinked),ae=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):H.length,ce=le.map(Z=>C(Z)),ie=de.map(Z=>C(Z)),K=H.slice(0,ae).map(Z=>C(Z));p.value=[...ce,...ie,...K];const ne=H.slice(ae).map(Z=>({...C(Z),active:!1}));m.value=ne,f("confirm",p.value)}},{immediate:!0});const N=R=>{const D=p.value.findIndex(V=>V.key===R.key);D!==-1&&(p.value.splice(D,1),m.value.push({...R,active:!1}))},x=R=>{if(G.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const D=m.value.findIndex(V=>V.key===R.key);if(D!==-1){const[V]=m.value.splice(D,1);p.value.push({...V,active:!1})}},S=()=>{g.value=!1},j=()=>{g.value=!0},Y=()=>{J(),f("confirm",p.value),S()},U=R=>{const D=m.value.findIndex(V=>V.key===R.key);D!==-1&&(m.value[D].active=!0)},O=R=>{const D=m.value.findIndex(V=>V.key===R.key);D!==-1&&(m.value[D].active=!1)};return t({toOpenModal:j}),L.onMounted(()=>{}),(R,D)=>(L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(L.unref(h).b())},[L.createVNode(L.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":D[1]||(D[1]=V=>g.value=V),width:y.value,onCancel:S,onOk:Y},{title:L.withCtx(()=>[L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("title"))},L.toDisplayString(u.value),3)]),footer:L.withCtx(()=>[L.createVNode(L.unref(Cr.Button),{onClick:S},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),L.createVNode(L.unref(Cr.Button),{type:"primary",onClick:Y},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("section",{class:L.normalizeClass(L.unref(h).e("show"))},[L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("show__title"))},[L.createElementVNode("span",{class:L.normalizeClass(L.unref(h).e("title__tip"))},L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),L.createElementVNode("span",null,L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+L.toDisplayString(c.value)+L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("show__tag"))},[L.createVNode(L.unref(ZI),{modelValue:p.value,"onUpdate:modelValue":D[0]||(D[0]=V=>p.value=V),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:L.withCtx(({element:V})=>[L.createElementVNode("div",{class:L.normalizeClass([L.unref(h).e("show__tag__item"),L.unref(h).is("fixed",V.isFixed),L.unref(h).is("linked",V.isLinked)])},[L.createTextVNode(L.toDisplayString(V.label)+" ",1),!V.isFixed&&!V.isLinked&&r.list.length>1?(L.openBlock(),L.createBlock(L.unref(io.CloseOutlined),{key:0,class:L.normalizeClass(L.unref(h).e("show__tag__item-close")),onClick:te=>N(V)},null,8,["class","onClick"])):L.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),L.createElementVNode("section",{class:L.normalizeClass(L.unref(h).e("unshow"))},[L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("show__title"))},[L.createElementVNode("span",{class:L.normalizeClass(L.unref(h).e("title__tip"))},L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("unshow__tag"))},[m.value.length>0?(L.openBlock(!0),L.createElementBlock(L.Fragment,{key:0},L.renderList(m.value,V=>(L.openBlock(),L.createElementBlock("div",{key:V.key,class:L.normalizeClass([L.unref(h).e("unshow__tag__item"),L.unref(h).is("fixed",V.isFixed||""),L.unref(h).is("linked",V.isLinked||"")]),onMouseenter:te=>U(V),onMouseleave:te=>O(V)},[L.createTextVNode(L.toDisplayString(V.label)+" ",1),V.active?(L.openBlock(),L.createElementBlock("aside",{key:0,class:L.normalizeClass(L.unref(h).e("unshow__tag__item-add")),onClick:te=>x(V)},L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.add")),11,xne)):L.createCommentVNode("",!0)],42,Qne))),128)):(L.openBlock(),L.createElementBlock("div",{key:1,class:L.normalizeClass(L.unref(h).e("unshow__tag__empty"))},L.toDisplayString(R.$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-d411a1be"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const ZT=Ii(Sne),Dne={key:0,class:"form-footer"},Rne={class:"scheme-fontWeight"},Tne={class:"scheme-fontWeight"},Mne={class:"hb-lib-form-svg"},Fne={class:"scheme-fontWeight"},Lne={class:"scheme-fontWeight"},$T=Ii(ki(L.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=L.inject(Jo,{}),i=e,a=L.inject("HB_LIST_PAGE_CONTAINER"),o=L.computed(()=>l.searchList||[]),s=lB("form"),l=r,c=L.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||10),u=L.ref("show"),f=L.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=L.computed(()=>{const W=l.items.filter(M=>g(M));return Vl.cloneDeep(W)}),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=L.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label}))),v=L.computed(()=>l.saveKey),p=L.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=L.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{const M=l.items.filter(N=>!g(N)),J=[...W,...M],G=[...new Map(J.map(N=>[N.key,N])).values()];i("handleSfcmConfirm",G)};L.watch(()=>l.isFormExpanded,W=>{if(W){const M=document.querySelector("#subpackage_container");M instanceof HTMLElement&&(M.style.overflow="hidden",setTimeout(()=>{M.style.overflow="auto"},500))}});const Q=W=>{const M=W;M.style.height="",M.offsetHeight},_=W=>{const M=W;M.style.height="",M.style.overflow="",L.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},F=W=>{const M=W,J=M.querySelector(".hb-lib-form--container");if(J){const G=J.offsetHeight;M.style.height=G+"px",M.style.overflow="hidden",M.offsetHeight,requestAnimationFrame(()=>{M.style.height="0"})}},P=()=>{L.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,M)=>{const J=L.resolveComponent("a-button"),G=L.resolveComponent("HbLibIcon"),N=L.resolveComponent("a-tooltip"),x=L.resolveComponent("a-menu-item"),S=L.resolveComponent("a-menu"),j=L.resolveComponent("a-dropdown"),Y=L.resolveComponent("HbLibFormItemFilterModal");return L.openBlock(),L.createElementBlock(L.Fragment,null,[L.createVNode(L.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:_,onLeave:F,onAfterLeave:P},{default:L.withCtx(()=>[L.withDirectives(L.createElementVNode("div",{class:L.normalizeClass([L.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[L.createVNode(L.unref(Cr.Form),L.mergeProps(W.$attrs,{ref_key:"formRef",ref:p,model:r.formData,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(y.value,(U,O)=>(L.openBlock(),L.createElementBlock(L.Fragment,{key:O},[U.condition?(L.openBlock(),L.createBlock(L.unref(Cr.FormItem),L.mergeProps({key:0,ref_for:!0},U,{name:U.key,class:{"hb-lib-form-item-border--unneed":U.isUnNeedBorder,"hb_lib_form_item--needShowAll":U.showAll}}),L.createSlots({default:L.withCtx(()=>[U.type==="slot"?L.renderSlot(W.$slots,U.key,{key:0,formData:r.formData,item:U},void 0,!0):L.createCommentVNode("",!0),U.type==="mixin"?L.renderSlot(W.$slots,U.key,{key:1,formData:r.formData,item:U},void 0,!0):L.createCommentVNode("",!0),U.type==="input"?(L.openBlock(),L.createBlock(L.unref(Cr.Input),L.mergeProps({key:2,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="select"?(L.openBlock(),L.createBlock(L.unref(Cr.Select),L.mergeProps({key:3,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(U.options,(R,D)=>(L.openBlock(),L.createBlock(L.unref(Cr.SelectOption),{key:D,value:R.value},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="checkbox"?(L.openBlock(),L.createBlock(L.unref(Cr.CheckboxGroup),L.mergeProps({key:4,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(U.options,(R,D)=>(L.openBlock(),L.createBlock(L.unref(Cr.Checkbox),{key:D,value:R.value},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="date-picker"?(L.openBlock(),L.createBlock(L.unref(Cr.DatePicker),L.mergeProps({key:5,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="input-number"?(L.openBlock(),L.createBlock(L.unref(Cr.InputNumber),L.mergeProps({key:6,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="radio"?(L.openBlock(),L.createBlock(L.unref(Cr.RadioGroup),L.mergeProps({key:7,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(U.options,(R,D)=>(L.openBlock(),L.createBlock(L.unref(Cr.Radio),{key:D,value:R.value},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="switch"?(L.openBlock(),L.createBlock(L.unref(Cr.Switch),L.mergeProps({key:8,checked:r.formData[U.key],"onUpdate:checked":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["checked","onUpdate:checked"])):L.createCommentVNode("",!0)]),_:2},[U.tooltip?{name:"label",fn:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(U.label)+" ",1),L.createVNode(L.unref(Cr.Tooltip),{title:U.tooltip},{default:L.withCtx(()=>[L.createVNode(L.unref(io.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):L.createCommentVNode("",!0)],64))),128)),f.value?L.createCommentVNode("",!0):(L.openBlock(),L.createElementBlock("section",Dne,[L.createVNode(J,{type:"primary",onClick:m},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.SearchOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),L.createVNode(J,{class:"hb_list_reset_button",onClick:b},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.ReloadOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(L.openBlock(),L.createBlock(N,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-form-svg",onClick:w},[L.createVNode(G,{name:"icon-shaixuan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),L.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(L.openBlock(),L.createBlock(j,{key:0},{overlay:L.withCtx(()=>[L.createVNode(S,{onClick:B},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(o.value,U=>(L.openBlock(),L.createBlock(x,{key:U.id},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(U.title),1)]),_:2},1024))),128)),L.createVNode(x,{key:"add"},{default:L.withCtx(()=>[L.createElementVNode("span",Rne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),L.createVNode(x,{key:"edit"},{default:L.withCtx(()=>[L.createElementVNode("span",Tne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:L.withCtx(()=>[L.createVNode(N,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:L.withCtx(()=>[L.createElementVNode("a",null,[L.createVNode(G,{name:"icon-chaxunfangan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])]),_:1})):L.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(L.openBlock(),L.createElementBlock("div",{key:0,class:L.normalizeClass([L.unref(s).e("footer"),"form-footer"])},[L.createElementVNode("div",{class:L.normalizeClass(L.unref(s).e("footer__left"))},[L.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),L.createElementVNode("div",{class:L.normalizeClass(L.unref(s).e("footer__right"))},[u.value=="show"?L.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[L.createVNode(J,{type:"primary",onClick:m},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.SearchOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),L.createVNode(J,{class:"hb_list_reset_button",onClick:b},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.ReloadOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(L.openBlock(),L.createBlock(N,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-form-svg",onClick:w},[L.createVNode(G,{name:"icon-shaixuan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),L.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(L.openBlock(),L.createBlock(j,{key:0},{overlay:L.withCtx(()=>[L.createVNode(S,{onClick:B},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(o.value,U=>(L.openBlock(),L.createBlock(x,{key:U.id},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(U.title),1)]),_:2},1024))),128)),L.createVNode(x,{key:"add"},{default:L.withCtx(()=>[L.createElementVNode("span",Fne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),L.createVNode(x,{key:"edit"},{default:L.withCtx(()=>[L.createElementVNode("span",Lne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:L.withCtx(()=>[L.createVNode(N,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:L.withCtx(()=>[L.createElementVNode("a",Mne,[L.createVNode(G,{name:"icon-chaxunfangan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])]),_:1})):L.createCommentVNode("",!0)],!0)],!0):L.createCommentVNode("",!0)],2)],2)):L.createCommentVNode("",!0)],2),[[L.vShow,r.isFormExpanded]])]),_:3}),L.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-6a05bade"]])),Nne={class:"hb-lib-list-page-breadcrumb"},One={key:0,class:"hb-lib-list-page-breadcrumb-item-divider"},Pne={class:"hb-lib-list-page-act"},eM=Ii(ki(L.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0},hideDomList:{type:Array,default:()=>[]}},emits:["handleOpenOrClose","handleReload"],setup(r,{emit:t}){const e=r,n=t,i=L.ref(!0),a=()=>{i.value=!i.value,n("handleOpenOrClose",i.value)},o=()=>{n("handleReload")},s=L.inject(Jo,{}),{isFullscreen:l,toggle:c}=uA.useFullscreen(document.body);L.watch(()=>l.value,A=>{let d=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(e.hideDomList)&&e.hideDomList.length?d=[...e.hideDomList]:s.HbLibListPageAct?.hideDomList&&(d=[...s.HbLibListPageAct.hideDomList]);const g=new Map;setTimeout(A?()=>{if(d?.length)for(let y=0;y<d.length;y++){const v=document.querySelector(d[y]);v&&(g.set(d[y],v.style.display),v.style.display="none")}}:()=>{if(d?.length)for(let y=0;y<d.length;y++){const v=document.querySelector(d[y]);if(v){const p=g.get(d[y]);v.style.display=p||"",g.delete(d[y])}}},0)});const u=L.ref([]),f=()=>{const A=sB.useRoute();let d=localStorage.getItem(s.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",g=A?.path;if(d!=="[]"){let y=JSON.parse(d).find(v=>v.value===g);y&&(u.value=y.label.split("-"))}};L.onMounted(()=>{f()});const h=A=>{A.keyCode===192&&c()};return L.onMounted(()=>{window.addEventListener("keydown",h)}),L.onUnmounted(()=>{window.removeEventListener("keydown",h)}),(A,d)=>{const g=L.resolveComponent("HbLibIcon"),y=L.resolveComponent("a-tooltip");return L.openBlock(),L.createElementBlock("section",{class:"hb-lib-list-page-act-box",style:L.normalizeStyle({background:L.unref(s).HbLibListPageContainer?.listPageBgColor||"var(--hb-color-bg-page)"})},[L.createElementVNode("aside",Nne,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(u.value,(v,p)=>(L.openBlock(),L.createElementBlock(L.Fragment,{key:v},[L.createElementVNode("span",{class:L.normalizeClass(["hb-lib-list-page-breadcrumb-item",{"last-item":p===u.value.length-1}])},L.toDisplayString(v),3),p!==u.value.length-1?(L.openBlock(),L.createElementBlock("span",One," / ")):L.createCommentVNode("",!0)],64))),128))]),L.createElementVNode("aside",Pne,[L.unref(s).HbLibListPageContainer?.listPageBtnPlacement==="top"?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[r.needReload?(L.openBlock(),L.createBlock(y,{key:0,title:A.$t("hbLibComp.hbListBtnsAct.reload")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:o},[L.createVNode(g,{name:"icon-shuaxin",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),r.needOpenOrClose?(L.openBlock(),L.createBlock(y,{key:1,title:i.value?`${A.$t("hbLibComp.hbListBtnsAct.close")}`:`${A.$t("hbLibComp.hbListBtnsAct.open")}`},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:a},[i.value?(L.openBlock(),L.createBlock(g,{key:0,name:"icon-shouqi1",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])):(L.openBlock(),L.createBlock(g,{key:1,name:"icon-zhankai1",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"]))])]),_:1},8,["title"])):L.createCommentVNode("",!0)],64)):L.createCommentVNode("",!0),L.createVNode(y,{title:L.unref(l)?`${A.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${A.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-page-act-svg",onClick:d[0]||(d[0]=(...v)=>L.unref(c)&&L.unref(c)(...v))},[L.unref(l)?(L.openBlock(),L.createBlock(g,{key:1,name:"icon-off_screenquanjusuoxiao",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])):(L.openBlock(),L.createBlock(g,{key:0,name:"icon-fuul_screenquanjufangda",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"]))])]),_:1},8,["title"]),L.renderSlot(A.$slots,"listAct",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-82f846be"]])),Gne={class:"hb-lib-list-btns-box"},Une={class:"hb-lib-list-btns-left"},Hne={class:"hb-lib-list-btns-right"},tM=Ii(ki(L.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=L.inject(Jo,{}),n=t,i=L.ref(!0),a=()=>{i.value=!i.value,n("handleOpenOrClose",i.value)},o=()=>{n("handleReload")},s=l=>{};return L.onMounted(()=>{window.addEventListener("keydown",s)}),L.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=L.resolveComponent("HbLibIcon"),f=L.resolveComponent("a-tooltip");return L.openBlock(),L.createElementBlock("section",Gne,[L.createElementVNode("aside",Une,[L.renderSlot(l.$slots,"btnsLeft",{},void 0,!0)]),L.createElementVNode("aside",Hne,[L.unref(e).HbLibListPageContainer?.listPageBtnPlacement==="middle"?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[r.needReload?(L.openBlock(),L.createBlock(f,{key:0,title:l.$t("hbLibComp.hbListBtnsAct.reload")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:o},[L.createVNode(u,{name:"icon-shuaxin",width:L.unref(e).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(e).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),r.needOpenOrClose?(L.openBlock(),L.createBlock(f,{key:1,title:i.value?`${l.$t("hbLibComp.hbListBtnsAct.close")}`:`${l.$t("hbLibComp.hbListBtnsAct.open")}`},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:a},[i.value?(L.openBlock(),L.createBlock(u,{key:0,name:"icon-shouqi1",width:L.unref(e).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(e).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])):(L.openBlock(),L.createBlock(u,{key:1,name:"icon-zhankai1",width:L.unref(e).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(e).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"]))])]),_:1},8,["title"])):L.createCommentVNode("",!0),L.renderSlot(l.$slots,"btnsRight",{},void 0,!0)],64)):L.createCommentVNode("",!0)])])}}}),[["__scopeId","data-v-cb2be5bc"]])),rM=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=L.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{L.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),L.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&&L.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),L.onMounted(()=>{f(),y()}),L.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},nM=Ii(L.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=L.inject(Jo,{}),{isFullscreen:e}=uA.useFullscreen(document.body),n=r,i=L.useTemplateRef("PageContainerRef"),a=L.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=L.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=L.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=L.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=L.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1),{calTableHeight:u,tableHeight:f}=rM({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=L.computed(()=>f.value);return L.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(L.openBlock(),L.createElementBlock("section",{ref_key:"PageContainerRef",ref:i,class:"hb-lib-list-page-container"},[L.renderSlot(A.$slots,"header"),L.createElementVNode("section",{class:"list-page-box",style:L.normalizeStyle(c.value?null:{"--hb-list-table-height":L.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":L.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[L.renderSlot(A.$slots,"default")],4)],512))}})),jne={style:{"font-weight":"500"}},Yne={key:0,class:"hb-lib-search-tag__description"},Wne={class:"hb-lib-selector-dropdown"},Jne={class:"hb-lib-selector-search"},Vne={class:"hb-lib-selector-list"},zne=["onClick"],Kne={class:"hb-lib-option-content"},qne={class:"hb-lib-option-label"},Xne={key:0,class:"hb-lib-selector-empty"},Zne={key:1,class:"hb-lib-selector-footer"},$ne={class:"hb-lib-footer-buttons"},eie={key:2,class:"hb-lib-selector-footer"},tie={class:"hb-lib-footer-buttons"},iM=Ii(ki(L.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:L.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:L.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=L.useModel(r,"value"),a=L.ref(!1),o=L.ref(""),s=L.ref([]),l=L.ref(),c=L.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=L.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=L.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=L.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});L.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),L.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=L.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=L.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=uA.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=L.resolveComponent("a-tag"),k=L.resolveComponent("a-input"),Q=L.resolveComponent("a-checkbox"),_=L.resolveComponent("a-radio"),F=L.resolveComponent("a-button"),P=L.resolveComponent("a-select");return L.openBlock(),L.createElementBlock("div",L.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[L.createVNode(P,{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:L.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"},onDropdownVisibleChange:A,onSearch:L.unref(p)},{tagRender:L.withCtx(({label:W,option:M})=>[L.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:L.withCtx(()=>[L.createElementVNode("span",jne,L.toDisplayString(W),1),M?.description?(L.openBlock(),L.createElementBlock("span",Yne," ("+L.toDisplayString(M.description)+") ",1)):L.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:L.withCtx(()=>[L.createElementVNode("div",Wne,[L.createElementVNode("div",Jne,[L.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=>L.unref(p)(W.target.value))},{prefix:L.withCtx(()=>[L.createVNode(L.unref(io.SearchOutlined))]),_:1},8,["value"])]),L.createElementVNode("div",Vne,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(c.value,W=>(L.openBlock(),L.createElementBlock("div",{key:W.value,class:L.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(W.value)}]),onClick:()=>m(W)},[r.multiple?(L.openBlock(),L.createBlock(Q,{key:0,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[3]||(w[3]=L.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(L.openBlock(),L.createBlock(_,{key:1,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[4]||(w[4]=L.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),L.createElementVNode("div",Kne,[L.createElementVNode("div",qne,L.toDisplayString(W.label),1)])],10,zne))),128))]),c.value.length===0?(L.openBlock(),L.createElementBlock("div",Xne,L.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):L.createCommentVNode("",!0),r.multiple?(L.openBlock(),L.createElementBlock("div",Zne,[L.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),L.createElementVNode("div",$ne,[L.createVNode(F,{size:"small",onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),L.createVNode(F,{type:"primary",size:"small",onClick:v},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(L.openBlock(),L.createElementBlock("div",eie,[w[6]||(w[6]=L.createElementVNode("div",null,null,-1)),L.createElementVNode("div",tie,[L.createVNode(F,{size:"small",onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.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"]])),rie={class:"hb-lib-form-item-filter-modal-search"},nie={class:"hb-lib-form-item-filter-modal-buttons"},iie={key:0},aM=Ii(L.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=L.ref(!1),o=L.ref(""),s=L.ref(),l=L.ref(),c=L.ref([]),u=L.ref([]),f=L.ref(),h=L.reactive({searchText:"",searchedColumn:""}),A=L.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=L.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,L.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=L.resolveComponent("a-input"),_=L.resolveComponent("a-button"),F=L.resolveComponent("a-table"),P=L.resolveComponent("a-modal");return L.openBlock(),L.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[L.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:L.withCtx(()=>[L.createVNode(L.unref(io.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),L.createVNode(P,{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:L.withCtx(()=>[L.createVNode(_,{onClick:p},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),L.createVNode(_,{onClick:y},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),L.createVNode(_,{type:"primary",onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:L.withCtx(()=>[L.createVNode(F,{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:L.withCtx(({setSelectedKeys:W,selectedKeys:M,confirm:J,clearFilters:G,column:N})=>[L.createElementVNode("div",rie,[L.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${N.title}`,value:M[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:x=>W(x.target.value?[x.target.value]:[]),onPressEnter:x=>b(M,J,N.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),L.createElementVNode("section",nie,[L.createVNode(_,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:x=>C(G,J)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),L.createVNode(_,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:x=>b(M,J,N.dataIndex)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:L.withCtx(({filtered:W})=>[L.createVNode(L.unref(io.SearchOutlined),{style:L.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:L.withCtx(({text:W,column:M})=>[h.searchText&&h.searchedColumn===M.dataIndex?(L.openBlock(),L.createElementBlock("span",iie,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,G)=>(L.openBlock(),L.createElementBlock(L.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(L.openBlock(),L.createElementBlock("mark",{key:G,class:"highlight"},L.toDisplayString(J),1)):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(J),1)],64))],64))),256))])):L.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),aie={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"}},cB=Ii(ki(L.defineComponent({name:"HbLibCopy",__name:"copy",props:aie,setup(r){const t=r,e=L.ref();L.watchEffect(()=>{e.value=t.data});const n=L.computed(()=>t.tooltipTitle||"复制"),i=L.computed(()=>t.copySuccessTip||"复制成功"),a=L.computed(()=>t.copyFailTip||"复制失败"),o=L.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?(L.openBlock(),L.createBlock(L.unref(Cr.Tooltip),{key:0,title:n.value},{default:L.withCtx(()=>[L.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:L.normalizeStyle({...l.cpStyle}),onClick:L.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[L.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"},[L.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"}),L.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"}),L.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"])):L.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),oie={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:""}},oM=Ii(ki(L.defineComponent({name:"HbDrag",__name:"index",props:oie,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=L.shallowRef([]);L.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=lB("drag"),a=t,o=u=>{a("handleDragStart",u)},s=u=>{a("handleDragEnd",u)},l=u=>{a("handleDragAdd",u)},c=u=>{a("handleDragRemove",u)};return(u,f)=>(L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(L.unref(i).b())},[u.childrenType=="component"?(L.openBlock(),L.createBlock(L.unref(ZI),L.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:L.withCtx(({element:h})=>[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(L.openBlock(),L.createBlock(L.unref(ZI),L.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:L.withCtx(({element:h})=>[L.createElementVNode("div",null,[L.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-841ac118"]])),sie={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},sM=Ii(ki(L.defineComponent({name:"HbLibSort",__name:"sort",props:sie,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=L.ref([]),o=L.ref("");L.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=L.resolveComponent("a-menu-item"),f=L.resolveComponent("a-menu"),h=L.resolveComponent("a-dropdown");return L.openBlock(),L.createBlock(h,{trigger:[n.triggerWay]},{overlay:L.withCtx(()=>[L.createVNode(f,null,{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(a.value,A=>(L.openBlock(),L.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:L.withCtx(()=>[L.createElementVNode("span",{class:L.normalizeClass(o.value==A.value+A.sort?"activted":"")},L.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=L.withModifiers(()=>{},["prevent"]))},[L.createTextVNode(L.toDisplayString(n.colText)+" ",1),L.createVNode(L.unref(io.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),lie={color:{themeColor:"#ff7333"},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:!1,listPageBtnPlacement:"middle",listPageBgColor:"#f0f1f5",listPageIcon:{width:27,height:27,initFillColor:"",hoverColor:!0,hoverBgColor:"#e8e8e8"}},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:10},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10},HbLibIcon:{width:27,height:27}},lM=Ii(L.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;const n=L.inject(Jo,{});return L.watch(()=>t.config,i=>{e=L.reactive(Vl.merge({},lie,i,n))},{deep:!0,immediate:!0}),L.provide(Jo,e),(i,a)=>(L.openBlock(),L.createElementBlock("div",{class:"hb_ui_config",style:L.normalizeStyle({"--hb-theme-color":r.config?.color?.themeColor||"#ff7333"})},[L.renderSlot(i.$slots,"default")],4))}})),cie={class:"hb_lib_loading"},uie={class:"hb_lib_loading_loading_anima"},fie={class:"hb_lib_loading_load_tips"},cM=Ii(ki(L.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=Cs.useI18n(),e=r,n=L.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(L.openBlock(),L.createElementBlock("div",cie,[L.createElementVNode("div",uie,[a[0]||(a[0]=L.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)),L.createElementVNode("div",fie,L.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),hie={class:"file-preview__body"},Aie={key:0,class:"file-preview__placeholder"},die={key:1,class:"file-preview__placeholder"},gie=["src"],pie={class:"file-preview__body"},vie={key:0,class:"file-preview__placeholder"},yie={key:1,class:"file-preview__placeholder"},mie=["src"],Iie=["src"],bie={class:"file-preview__modal-footer"},uM=Ii(ki(L.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}=Cs.useI18n();function o(K){i("update:visible",K)}function s(){i("update:visible",!1),i("cancel")}function l(){return Promise.resolve().then(()=>_oe).then(()=>Promise.resolve().then(()=>mle))}function c(){return Promise.resolve().then(()=>Ile).then(()=>Promise.resolve().then(()=>O2e))}function u(){return Promise.resolve().then(()=>iTe)}function f(){return Promise.resolve().then(()=>Rtt)}const h=L.defineAsyncComponent(()=>l().then(K=>K.default)),A=L.defineAsyncComponent(()=>c().then(K=>K.default)),d=L.defineAsyncComponent(()=>u().then(K=>K.default)),g=L.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const ne=K.split(/[/\\]/).pop()??K,Z=ne.split("?")[0]??ne,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,ne){if(K==null||K==="")return"unknown";const Z=ne&&v(ne)||(typeof K=="string"?v(K):"");return!Z&&(K instanceof ArrayBuffer||K instanceof Blob)?"unknown":Z==="docx"?"docx":Z==="xlsx"||Z==="xls"?"excel":Z==="pdf"?"pdf":Z==="pptx"?"pptx":y.has(Z)?"image":"unknown"}const m=L.computed(()=>n.fileList?.length??0),b=L.computed(()=>m.value>0&&n.fileList!=null),C=L.computed(()=>{if(!b.value)return 0;const K=m.value-1,ne=Math.floor(Number(n.fileIndex));return Number.isNaN(ne)?0:Math.min(Math.max(ne,0),K)}),w=L.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=L.computed(()=>w.value?w.value.src:n.src),k=L.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);L.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),L.watch(C,(K,ne)=>{if(!b.value||K===ne)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=L.computed(()=>p(B.value,k.value)),_=L.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),F=L.computed(()=>typeof _.value=="string"?_.value:""),P=L.computed(()=>{const K=b.value?C.value:"",ne=B.value;return typeof ne=="string"?`${K}:${Q.value}:${ne}`:ne instanceof ArrayBuffer?`${K}:${Q.value}:ab:${ne.byteLength}`:ne instanceof Blob?`${K}:${Q.value}:blob:${ne.size}`:`${K}:${Q.value}`}),W=L.computed(()=>{const K=B.value;return K!=null&&K!==""}),M=L.computed(()=>n.height),J=L.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),G=L.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),N=L.computed(()=>n.showNav&&b.value&&m.value>1),x=L.computed(()=>N.value&&C.value>0),S=L.computed(()=>N.value&&C.value<m.value-1);function j(){x.value&&i("update:fileIndex",C.value-1)}function Y(){S.value&&i("update:fileIndex",C.value+1)}const U=L.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})}),O=L.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const ne=U.value;return b.value&&m.value>1?ne?`${K} — ${ne}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:ne?`${K} — ${ne}`:K});function R(K){const ne=v(K);return{pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}[ne]||"application/octet-stream"}function D(K,ne){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=ne||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=L.ref(!1);function te(){const K=w.value,ne=K?.downloadName||K?.fileName||n.fileName||"";if(ne)return ne.split(/[/\\]/).pop()?.split("?")[0]||"download";if(typeof B.value=="string"){const Z=B.value.split(/[/\\]/).pop()?.split("?")[0]||"";if(Z.includes("."))return Z}return"download"}const oe=L.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,ne=b.value?C.value:0;i("beforeDownload",{item:K,index:ne});const Z=te(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:ne,src:B.value,fileName:k.value,downloadName:Z});else if(X){const q=await fetch(X);if(!q.ok)throw new Error(String(q.status));const Ae=await q.blob();D(Ae,Z)}else{const q=B.value;if(typeof q=="string"){const Ae=await fetch(q);if(!Ae.ok)throw new Error(String(Ae.status));const be=await Ae.blob();D(be,Z)}else if(q instanceof Blob)D(q,Z);else if(q instanceof ArrayBuffer){const Ae=R(Z);D(new Blob([q],{type:Ae}),Z)}}i("downloaded",{item:K,index:ne})}catch(q){i("error",q)}finally{V.value=!1}}const he=L.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function de(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){he.value="";return}if(typeof K=="string"){he.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),he.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),he.value=me}}L.watch(()=>[B.value,Q.value],()=>de(),{immediate:!0}),L.onBeforeUnmount(()=>{le()});function H(){i("rendered")}function ae(K){i("error",K??new Error("office preview error"))}function ce(){i("rendered")}function ie(K){i("error",K)}return t({previewKind:Q,safeIndex:C,currentListItem:w,effectiveSrc:B,effectiveFileName:k,goPrev:j,goNext:Y,download:fe,closeModal:s}),(K,ne)=>{const Z=L.resolveComponent("a-button"),X=L.resolveComponent("a-space"),q=L.resolveComponent("a-modal");return L.openBlock(),L.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:O.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:L.withCtx(()=>[L.createElementVNode("div",bie,[L.createVNode(X,{size:8,wrap:""},{default:L.withCtx(()=>[N.value?(L.openBlock(),L.createBlock(Z,{key:0,disabled:!x.value,onClick:j},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):L.createCommentVNode("",!0),N.value?(L.openBlock(),L.createBlock(Z,{key:1,disabled:!S.value,onClick:Y},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):L.createCommentVNode("",!0),r.showDownload?(L.openBlock(),L.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):L.createCommentVNode("",!0),L.createVNode(Z,{onClick:s},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),L.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:L.withCtx(()=>[r.needSafe?(L.openBlock(),L.createElementBlock("div",{key:0,class:"file-preview",style:L.normalizeStyle({height:M.value})},[L.createElementVNode("div",hie,[W.value?Q.value==="unknown"?(L.openBlock(),L.createElementBlock("div",die,[L.renderSlot(K.$slots,"unsupported",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(L.openBlock(),L.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,gie)):Q.value==="docx"?(L.openBlock(),L.createBlock(L.unref(h),{key:`docx-${P.value}`,src:_.value,class:"file-preview__office",style:L.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):Q.value==="excel"?(L.openBlock(),L.createBlock(L.unref(A),{key:`xls-${P.value}`,src:_.value,class:"file-preview__office",style:L.normalizeStyle(J.value),options:r.excelOptions,onRendered:H,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(L.openBlock(),L.createBlock(L.unref(d),L.mergeProps({key:`pdf-${P.value}`,src:_.value,class:"file-preview__office",style:J.value},G.value,{onRendered:H,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(L.openBlock(),L.createBlock(L.unref(g),{key:`pptx-${P.value}`,src:_.value,class:"file-preview__office",style:L.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):L.createCommentVNode("",!0):(L.openBlock(),L.createElementBlock("div",Aie,[L.renderSlot(K.$slots,"empty",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(L.openBlock(),L.createElementBlock("div",{key:1,class:"file-preview",style:L.normalizeStyle({height:M.value})},[L.createElementVNode("div",pie,[W.value?Q.value==="unknown"?(L.openBlock(),L.createElementBlock("div",yie,[L.renderSlot(K.$slots,"unsupported",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(L.openBlock(),L.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,mie)):(L.openBlock(),L.createElementBlock("iframe",{key:3,src:F.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Iie)):(L.openBlock(),L.createElementBlock("div",vie,[L.renderSlot(K.$slots,"empty",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),uB="//at.alicdn.com/t/c/font_5174416_vythqmwzln.css",fM="//at.alicdn.com/t/c/font_5174416_vythqmwzln.js",fB=Symbol("HB_ICON_GLOBAL_KEY"),Cie=L.inject(fB,{});function hM(r){return r.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js")}function K0(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 wie(r,t){return r===!0?`hb-if-${K0(t)}-`:typeof r=="string"?r:""}function AM(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 dM(r,t=""){return t===""?`hb-iconfont-svg-${K0(r)}`:`hb-iconfont-svg-${K0(`${r}\0${t}`)}`}function gM(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 Eie(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=pM(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function Bie(r){const t=[],e=/<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;let n;for(;(n=e.exec(r))!==null;)t.push(n[1]);const i=pM(t),a=i?t.map(o=>o.slice(i.length)):t.slice();return{prefix:i,names:a}}function pM(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 kie(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 Qie(r,t,e=""){if(typeof document>"u")return Promise.resolve();const n=e===""?`hb-iconfont-js-${K0(t)}`:`hb-iconfont-js-${K0(`${t}\0${e}`)}`;if(document.getElementById(n))return Promise.resolve();const i=dM(t,e);if(document.getElementById(i))return Promise.resolve();const a=gM(r,i);return new Promise((o,s)=>{const l=new Blob([a],{type:"text/javascript"}),c=URL.createObjectURL(l),u=document.createElement("script");u.id=n,e&&u.setAttribute("data-hb-iconfont-scope",e),u.async=!0,u.onload=()=>{URL.revokeObjectURL(c),o()},u.onerror=()=>{URL.revokeObjectURL(c),s(new Error(`[HbLibIcon] iconfont JS 脚本执行失败:${t}`))},u.src=c,document.head.appendChild(u)})}function eb(r,t="font",e){if(!r){const c=t==="font"?uB:fM;r=Cie?.cssUrl||c}const n=L.ref(""),i=L.ref(""),a=L.ref([]),o=L.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"&&hM(f)){try{const A=await(await fetch(f)).text();if(u!==s)return;const d=wie(e?.symbolIdScope,f),g=AM(A,d),{prefix:y,names:v}=Bie(g);if(await Qie(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();kie(A,"hb-iconfont-"+f);const{baseClass:d,prefix:g,names:y}=Eie(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 L.watch(()=>L.toValue(r),l,{immediate:!0}),{iconBaseClass:n,iconPrefix:i,iconClasses:a,iconMode:o}}const xie={class:"hb-icon-list"},_ie=["onClick"],Sie={key:1,class:"hb-icon-list__symbol","aria-hidden":"true"},Die=["href"],Rie={class:"hb-icon-list__name"},hB=ki(L.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=L.computed(()=>n.cssUrl||""),{iconBaseClass:o,iconPrefix:s,iconClasses:l,iconMode:c}=eb(a,n.mode),u=L.ref(n.selected);L.watch(()=>n.selected,h=>{u.value=h});const f=h=>{u.value=h,i("select",h),i("update:selected",h)};return(h,A)=>(L.openBlock(),L.createElementBlock("div",xie,[L.renderSlot(h.$slots,"iconList",{iconClasses:L.unref(l),iconBaseClass:L.unref(o),iconPrefix:L.unref(s),iconMode:L.unref(c)},()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(L.unref(l),d=>(L.openBlock(),L.createElementBlock("div",{key:d,class:L.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":d===u.value}]),onClick:g=>f(d)},[L.unref(c)==="font"?(L.openBlock(),L.createElementBlock("i",{key:0,class:L.normalizeClass([L.unref(o),L.unref(s)+d])},null,2)):(L.openBlock(),L.createElementBlock("svg",Sie,[L.createElementVNode("use",{href:"#"+e(L.unref(s)+d)},null,8,Die)])),L.createElementVNode("span",Rie,L.toDisplayString(d),1)],10,_ie))),128))],!0)]))}}),[["__scopeId","data-v-35e114dd"]]),AB=hB;AB.install=(r,t)=>{r.provide(fB,{cssUrl:t?.cssUrl??uB,mode:t?.mode??"font"});const e=hB.name??"HbLibIconList";r.component(e,hB)};const Tie=["href"],ih=ki(L.defineComponent({name:"HbLibIcon",__name:"icon",props:{name:{default:""},className:{default:""},width:{default:void 0},height:{default:void 0},iMode:{default:void 0},iBaseClass:{default:""},iPrefix:{default:""},initFillColor:{default:""},hover:{type:[Boolean,String],default:!1},hoverBgColor:{default:void 0}},setup(r){const t=r,e=L.computed(()=>t.iBaseClass&&L.ref(t.iBaseClass)||L.inject("iconBaseClass")||L.ref("")),n=L.computed(()=>t.iPrefix&&L.ref(t.iPrefix)||L.inject("iconPrefix")||L.ref("")),i=L.computed(()=>t.iMode&&L.ref(t.iMode)||L.inject("iconMode")||L.ref("")),a=L.inject(Jo,null),o=L.computed(()=>{const v=a?.HbLibIcon,p=t.width??v?.width??27,m=t.height??v?.height??27;let b={display:"flex",alignItems:"center",justifyContent:"center",...y()};return i.value.value==="font"?b={...b,fontSize:`${p}px`,width:`${p}px`,height:`${m}px`}:b={...b,width:`${p}px`,height:`${m}px`},b}),s=L.computed(()=>t.hover||a?.HbLibIcon?.hoverColor),l=L.computed(()=>t.initFillColor||a?.HbLibIcon?.initFillColor),c=L.computed(()=>!!(t.hoverBgColor||a?.HbLibIcon?.hoverBgColor)),u=L.computed(()=>t.hoverBgColor||a?.HbLibIcon?.hoverBgColor),f=L.computed(()=>t.name?n.value.value&&t.name.startsWith(n.value.value)?t.name:`${n.value.value}${t.name}`:""),h=L.computed(()=>{const v=["hb-lib-icon__font",e.value.value,f.value];return t.hover&&v.push("hb-icon-hover"),v});function A(v){return encodeURIComponent(v)}const d=L.computed(()=>{const v=f.value;return v?`#${A(v)}`:""}),g=/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/,y=()=>{const v=t.hover.toString(),p={};return g.test(v)?p["--color-hover"]=v:v.includes("--")?p["--color-hover"]=`var(${v})`:p["--color-hover"]="var(--hb-color-primary-hover)",u.value&&(p["--color-hover-bg"]=u.value),p};return(v,p)=>(L.openBlock(),L.createElementBlock("span",{class:L.normalizeClass([{"hover-bg-color":c.value},t.className]),style:L.normalizeStyle(o.value)},[i.value.value==="font"?(L.openBlock(),L.createElementBlock("i",{key:0,class:L.normalizeClass(["iconfont",{...h.value,"hb-icon-hover":s.value}]),style:L.normalizeStyle({color:l.value})},null,6)):(L.openBlock(),L.createElementBlock("svg",{key:1,class:L.normalizeClass(["hb-lib-icon__symbol",{"hb-icon-hover":s.value}]),"aria-hidden":"true",style:L.normalizeStyle({fill:l.value})},[L.createElementVNode("use",{href:d.value},null,8,Tie)],6))],6))}}),[["__scopeId","data-v-bbf5537a"]]);ih.install=(r,t)=>{const e=t?.iconURL||void 0;if(e){const i=e.includes("js")?"symbol":"font",{iconBaseClass:a,iconMode:o,iconClasses:s,iconPrefix:l}=eb(e,i);r.provide("iconBaseClass",a),r.provide("iconMode",o),r.provide("iconClasses",s),r.provide("iconPrefix",l)}const n=t?.name||"HbLibIcon";r.component(n,ih)};const vM=L.defineComponent({__name:"iconBox",props:{url:{},mode:{},symbolIdScope:{type:[String,Boolean]},width:{},height:{},initFillColor:{},hover:{type:[Boolean,String]},hoverBgColor:{}},setup(r){const t=L.inject(Jo),e=r,{iconClasses:n,iconPrefix:i,iconMode:a,iconBaseClass:o}=eb(e.url,e.mode??"symbol",{symbolIdScope:e.symbolIdScope});L.provide("iconPrefix",i),L.provide("iconMode",a),L.provide("iconClasses",n),L.provide("iconBaseClass",o);const s={};return e.width!==void 0&&(s.width=e.width),e.height!==void 0&&(s.height=e.height),e.initFillColor!==void 0&&(s.initFillColor=e.initFillColor),e.hover!==void 0&&(s.hover=e.hover),e.hoverBgColor!==void 0&&(s.hoverBgColor=e.hoverBgColor),L.provide(Jo,{...t,HbLibIcon:{...t?.HbLibIcon,...s}}),(l,c)=>L.renderSlot(l.$slots,"default")}}),Mie={class:"hb-lib-table-act-box"},Fie=["onClick"],Lie={href:"javascript:;",class:"hb-lib-table-main-action"},Nie=["onClick"],Oie={href:"javascript:;",class:"hb-lib-table-more-action"},Pie=["onClick"],Gie={href:"javascript:;"},Uie=["onClick"],Hie={class:"hb-lib-table-confirm-modal-content"},yM=Ii(ki(L.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{hideDomList:{},filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=Cs.useI18n(),i=L.ref(!1),a=L.ref(!1),o=L.ref(null),s=L.ref({}),l=b=>!!b&&(typeof b=="object"||typeof b=="function")&&typeof b.then=="function",c=b=>!!s.value[b.key],u=(b,C)=>{s.value={...s.value,[b.key]:C}},f=L.computed(()=>e.actions.filter(b=>b.condition!==void 0?b.condition:!0)),h=L.computed(()=>f.value.slice(0,e.buttonDisplaysQuantity)),A=L.computed(()=>d(f.value.slice(e.buttonDisplaysQuantity)));function d(b){if(e.filterPermission)return e.filterPermission(b);let C=[],w=[];return C=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(C)||b.length===0?(C=[],[]):(C=C.filter(B=>B.type!="2"),b.forEach(B=>{(!B.permissionsTag||C.findIndex(k=>k.action===B.permissionsTag)!==-1)&&w.push(B)}),w)}const g=async b=>{if(b.needLoading){if(c(b))return;u(b,!0);const C=()=>u(b,!1),w=b.handler.length>=2;try{const B=b.handler(e.record,C);l(B)?(await B,C()):w||C()}catch(B){throw C(),B}}else b.handler(e.record)},y=b=>{o.value=b,i.value=!0},v=async()=>{if(o.value){a.value=!0;try{await g(o.value),i.value=!1,o.value=null}finally{a.value=!1}}},p=()=>{i.value=!1,o.value=null},m=L.computed(()=>o.value?{title:o.value.confirmTitle,content:o.value.confirmContent||o.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return t({ADropdown:Cr.Dropdown,AMenu:Cr.Menu,AMenuItem:Cr.MenuItem,APopconfirm:Cr.Popconfirm,AModal:Cr.Modal,DownOutlined:io.DownOutlined}),(b,C)=>{const w=L.resolveComponent("a-divider"),B=L.resolveDirective("has");return L.openBlock(),L.createElementBlock("div",Mie,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(h.value,(k,Q)=>(L.openBlock(),L.createElementBlock(L.Fragment,{key:Q},[k.needConfirm?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[k.confirmType==="modal"?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[L.withDirectives((L.openBlock(),L.createElementBlock("a",{href:"javascript:;",class:"hb-lib-table-main-action",onClick:_=>y(k)},[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64))],8,Fie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?(L.openBlock(),L.createBlock(w,{key:0,type:"vertical"})):L.createCommentVNode("",!0)],64)):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createVNode(L.unref(Cr.Popconfirm),{title:k.confirmTitle,onConfirm:_=>g(k)},{default:L.withCtx(()=>[L.withDirectives((L.openBlock(),L.createElementBlock("a",Lie,[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64))])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),A.value&&A.value.length>0||Q!==h.value.length-1?(L.openBlock(),L.createBlock(w,{key:0,type:"vertical"})):L.createCommentVNode("",!0)],64))],64)):k.slot?L.renderSlot(b.$slots,k.slot,{key:1,item:k,haveMore:A.value&&A.value.length>0||Q!==h.value.length-1},void 0,!0):(L.openBlock(),L.createElementBlock(L.Fragment,{key:2},[L.withDirectives((L.openBlock(),L.createElementBlock("a",{href:"javascript:;",class:L.normalizeClass(["hb-lib-table-main-action",{"is-loading":c(k)}]),onClick:_=>g(k)},[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64)),c(k)?(L.openBlock(),L.createBlock(L.unref(io.LoadingOutlined),{key:2,spin:"",class:"hb-lib-table-action-loading-icon"})):L.createCommentVNode("",!0)],10,Nie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?L.withDirectives((L.openBlock(),L.createBlock(w,{key:0,type:"vertical"},null,512)),[[B,k.permissionsTag||null]]):L.createCommentVNode("",!0)],64))],64))),128)),A.value&&A.value.length>0?(L.openBlock(),L.createBlock(L.unref(Cr.Dropdown),{key:0},{overlay:L.withCtx(()=>[L.createVNode(L.unref(Cr.Menu),null,{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(A.value,(k,Q)=>L.withDirectives((L.openBlock(),L.createBlock(L.unref(Cr.MenuItem),{key:Q},{default:L.withCtx(()=>[k.needConfirm?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[k.confirmType==="modal"?L.withDirectives((L.openBlock(),L.createElementBlock("a",{key:0,href:"javascript:;",onClick:_=>y(k)},[L.createTextVNode(L.toDisplayString(k.label),1)],8,Pie)),[[B,k.permissionsTag||null]]):L.withDirectives((L.openBlock(),L.createBlock(L.unref(Cr.Popconfirm),{key:1,title:k.confirmTitle,onConfirm:_=>g(k)},{default:L.withCtx(()=>[L.withDirectives((L.openBlock(),L.createElementBlock("a",Gie,[L.createTextVNode(L.toDisplayString(k.label),1)])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[B,k.permissionsTag||null]])],64)):L.withDirectives((L.openBlock(),L.createElementBlock("a",{key:1,href:"javascript:;",class:L.normalizeClass({"is-loading":c(k)}),onClick:_=>g(k)},[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64)),c(k)?(L.openBlock(),L.createBlock(L.unref(io.LoadingOutlined),{key:2,spin:"",class:"hb-lib-table-action-loading-icon"})):L.createCommentVNode("",!0)],10,Uie)),[[B,k.permissionsTag||null]])]),_:2},1024)),[[B,k.permissionsTag||null]])),128))]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("a",Oie,[L.createTextVNode(L.toDisplayString(b.$t("hbLibComp.hbTableAct.more"))+" ",1),L.createVNode(L.unref(io.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):L.createCommentVNode("",!0),L.createVNode(L.unref(Cr.Modal),{visible:i.value,title:m.value.title,"confirm-loading":a.value,onOk:v,onCancel:p},{default:L.withCtx(()=>[L.createElementVNode("p",Hie,L.toDisplayString(m.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-940cb196"]])),mM=r=>({tableWidth:L.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 jie=typeof global=="object"&&global&&global.Object===Object&&global,Yie=typeof self=="object"&&self&&self.Object===Object&&self,IM=jie||Yie||Function("return this")(),tb=IM.Symbol,bM=Object.prototype,Wie=bM.hasOwnProperty,Jie=bM.toString,q0=tb?tb.toStringTag:void 0;function Vie(r){var t=Wie.call(r,q0),e=r[q0];try{r[q0]=void 0;var n=!0}catch{}var i=Jie.call(r);return n&&(t?r[q0]=e:delete r[q0]),i}var zie=Object.prototype,Kie=zie.toString;function qie(r){return Kie.call(r)}var Xie="[object Null]",Zie="[object Undefined]",CM=tb?tb.toStringTag:void 0;function $ie(r){return r==null?r===void 0?Zie:Xie:CM&&CM in Object(r)?Vie(r):qie(r)}function eae(r){return r!=null&&typeof r=="object"}var tae="[object Symbol]";function rae(r){return typeof r=="symbol"||eae(r)&&$ie(r)==tae}var nae=/\s/;function iae(r){for(var t=r.length;t--&&nae.test(r.charAt(t)););return t}var aae=/^\s+/;function oae(r){return r&&r.slice(0,iae(r)+1).replace(aae,"")}function dB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var wM=NaN,sae=/^[-+]0x[0-9a-f]+$/i,lae=/^0b[01]+$/i,cae=/^0o[0-7]+$/i,uae=parseInt;function EM(r){if(typeof r=="number")return r;if(rae(r))return wM;if(dB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=dB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=oae(r);var e=lae.test(r);return e||cae.test(r)?uae(r.slice(2),e?2:8):sae.test(r)?wM:+r}var gB=function(){return IM.Date.now()},fae="Expected a function",hae=Math.max,Aae=Math.min;function BM(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(fae);t=EM(t)||0,dB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?hae(EM(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?Aae(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=gB();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(gB())}function C(){var w=gB(),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 dae={class:"hb-lib-table-setting-box"},gae={key:0,class:"hb-lib-table-drag-item"},pae={key:0,class:"hb-lib-table-drag-item-act"},vae=["onClick"],yae=["onClick"],mae={class:"hb-lib-table-set-btn-group"},Iae={class:"select-all-container",style:{"margin-right":"10px"}},pB=Ii(ki(L.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}=Cs.useI18n(),i=r,a=L.inject(Jo,{}),o=L.ref([]),s=L.computed(()=>c.value.filter(Q=>Q.checked));L.ref([]);const l=L.ref(!1),c=L.ref([]),u=L.ref(null),f=L.computed(()=>s.value.length>0&&s.value.length===o.value.length),h=L.computed(()=>s.value.length>0&&s.value.length<o.value.length),A=Q=>{u.value=Q.oldIndex},d=Q=>{const _=Q.newIndex;if(o.value.some(P=>P.fixed==="left"||P.fixed==="right"||P.fixed===!0)){const P=o.value.filter(M=>M.fixed==="left").length,W=o.value.length-o.value.filter(M=>M.fixed==="right").length;if((P>0&&_<P||W<o.value.length&&_>=W)&&(Cr.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),u.value!==null)){const M=c.value.splice(_,1)[0];c.value.splice(u.value,0,M)}}u.value=null},g=Q=>{Q.target.checked?c.value.forEach(F=>F.checked=!0):c.value.forEach(F=>{F.dataIndex!=="action"&&F.dataIndex!=="actions"&&(F.checked=!1)})},y=Q=>{if(Q.title&&Q.title.tag)return w(Q.title);if(typeof Q.title=="function"){let _=Q.title();return typeof _=="string"?_:Q.titleText||Q.title2}return Q.title||Q.title2},v=Q=>Q.map(_=>({..._,label:y(_),value:_.dataIndex,checked:_.checked||_.checked===void 0})),p=()=>{o.value=v(i.localColumns),c.value=[...o.value];let Q=[];i.tableColumns.forEach(function(_){Q.push(_.dataIndex)})},m=(Q,_)=>{_?Q.checked=!0:Q.checked=!1},b=()=>{o.value=[...c.value],e("on-get-columns",o.value),l.value=!1},C=()=>{o.value=v(i.tableColumns),c.value=[...o.value];let Q=[];i.tableColumns.forEach(function(_){Q.push(_.dataIndex)})},w=Q=>Q.children[0].text,B=Q=>{delete Q.fixed;const _=c.value.findIndex(F=>F.value===Q.value);if(_!==-1){let F=-1;for(let P=0;P<c.value.length;P++)c.value[P].fixed==="left"&&(F=P);if(F!==-1&&_!==F+1){const P=[...c.value],[W]=P.splice(_,1);P.splice(F+1,0,W),c.value=P}}},k=Q=>{const _=c.value.findIndex(F=>F.value===Q.value);if(_!==-1){let F=-1;for(let J=0;J<c.value.length;J++)c.value[J].fixed==="left"&&(F=J);const P=[...c.value],[W]=P.splice(_,1);W.fixed="left";const M=F===-1?0:F+1;P.splice(M,0,W),c.value=P}};return L.watch(()=>i.tableColumns,()=>{C()},{immediate:!0,deep:!0}),(Q,_)=>{const F=L.resolveComponent("a-tooltip"),P=L.resolveComponent("a-button"),W=L.resolveComponent("HbLibIcon");return L.openBlock(),L.createElementBlock("div",dae,[L.createVNode(L.unref(Cr.Popover),{visible:l.value,"onUpdate:visible":_[1]||(_[1]=M=>l.value=M),title:L.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:L.withCtx(()=>[L.createVNode(L.unref(ZI),{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=M=>c.value=M),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:A,onEnd:d},{item:L.withCtx(({element:M})=>[M.fixed!=="right"?(L.openBlock(),L.createElementBlock("div",gae,[L.createVNode(L.unref(Cr.Checkbox),{checked:M.checked,onChange:J=>m(M,J.target.checked)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(M.label),1)]),_:2},1032,["checked","onChange"]),M.checked?(L.openBlock(),L.createElementBlock("section",pae,[L.createElementVNode("span",{class:L.normalizeClass(M.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),M.fixed?(L.openBlock(),L.createBlock(F,{key:0},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:L.withCtx(()=>[L.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:J=>B(M)},[..._[2]||(_[2]=[L.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"},[L.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,vae)]),_:2},1024)):L.createCommentVNode("",!0),M.fixed?L.createCommentVNode("",!0):(L.openBlock(),L.createBlock(F,{key:1},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:L.withCtx(()=>[L.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:J=>k(M)},[..._[3]||(_[3]=[L.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"},[L.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,yae)]),_:2},1024))])):L.createCommentVNode("",!0)])):L.createCommentVNode("",!0)]),_:1},8,["modelValue"]),L.createElementVNode("div",mae,[L.createElementVNode("div",Iae,[L.createVNode(L.unref(Cr.Checkbox),{checked:f.value,indeterminate:h.value,onChange:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(L.openBlock(),L.createBlock(P,{key:0,style:{"margin-right":"6px"},onClick:p},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):L.createCommentVNode("",!0),L.createVNode(P,{type:"primary",onClick:b},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:L.withCtx(()=>[L.createVNode(F,{title:L.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:L.withCtx(()=>[L.createVNode(W,{name:"icon-shezhi",width:L.unref(a).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(a).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(a).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(a).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(a).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])]),_:1},8,["title"])]),_:1},8,["visible","title"])])}}}),[["__scopeId","data-v-64ab7718"]])),bae={key:0,class:"hb-lib-list-table-act"},Cae={class:"empty-container"},wae={key:1},Eae={key:2},kM=Ii(ki(L.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean},isUnFixTbHeight:{type:Boolean},showColumnSet:{type:Boolean},columnSetLocalColumns:{default:()=>[]}},emits:["change","resizeCol","on-get-columns","refresh"],setup(r,{emit:t}){const e=L.inject(Jo,{}),n=t,{t:i}=Cs.useI18n(),a=r,o=L.ref([]),s=L.inject("HB_LIST_PAGE_CONTAINER"),l=L.computed(()=>o.value),{tableWidth:c}=mM(l),u=L.ref(c.value),f=L.ref(a.columns),h=L.computed(()=>{const F=a.columnSetLocalColumns?.length?a.columnSetLocalColumns:a.columns;return p(F)}),A=L.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1),d=F=>{const P=m(F);f.value=F,o.value=y(b(P)),u.value=c.value,n("on-get-columns",P),n("refresh")},g=F=>typeof F=="function"?F():F||"",y=F=>{if(e.HbLibListPageContainer?.listPageBtnPlacement!=="top"||!F.length)return F;const P=F.length-1;return F.map((W,M)=>{if(M!==P)return W;const J=W.title;return{...W,title:()=>L.h("div",{class:"hb-lib-list-table-title-set"},[L.h("span",{class:"hb-lib-list-table-title-set__text"},[g(J)]),L.h(pB,{tableColumns:f.value,localColumns:h.value,"onOn-get-columns":d,onOnGetColumns:d})])}})},v=F=>{if(!(e.HbLibListPageContainer?.listPageBtnPlacement!=="top"||!F.length))return F[F.length-1]},p=F=>e.HbLibListPageContainer?.listPageBtnPlacement!=="top"?F:F.length<=1?[]:F.slice(0,-1),m=F=>{const P=v(a.columns);return P?[...F,{...P,checked:!0}]:F},b=F=>F.filter(W=>W!=null&&W.checked).map(W=>{const M=W.align||e.listTable?.align||"center",J={...W,title:W.title||W.label,align:M};J.ellipsis&&!J.needTooltip&&(J.needTooltip=!0);const G=a.defaultWidth||e.listTable?.defaultColWidth||150;if(!J.width)J.width=G;else if(typeof J.width=="string"){const N=parseInt(J.width,10);J.width=isNaN(N)?G:N}return J.resizable===void 0&&(J.resizable=!0),J});L.watch(()=>[a.columns],([F])=>{const P=p(F);f.value=P;const W=b(e.HbLibListPageContainer?.listPageBtnPlacement==="top"?m(P):F);o.value=y(W),u.value=c.value},{immediate:!0,deep:!0});const C=BM(()=>{n("resizeCol",o.value)},e.listTable?.colSaveTimeOut||800),w=(F,P)=>{if(P){const W=typeof F=="string"?parseInt(F,10):F;P.width=isNaN(W)?e.listTable?.defaultColWidth||150:W,L.nextTick(()=>{C()})}},B=(F,P,W)=>{F?.current&&n("change",F,P,W)},k=(F,P="YYYY-MM-DD HH:mm:ss")=>F?$I(F).format(P):"",Q=(F,P)=>F&&P[F]||"",_=(F,P=e.listTable?.ellipsisNumber||20)=>F?F.length>P?`${F.substring(0,P)}...`:F:"";return(F,P)=>{const W=L.resolveComponent("a-empty"),M=L.resolveComponent("a-tooltip"),J=L.resolveComponent("HbLibCopy"),G=L.resolveComponent("a-tag"),N=L.resolveComponent("a-table");return L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:L.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[F.$slots.tableActLeft?(L.openBlock(),L.createElementBlock("section",bae,[L.renderSlot(F.$slots,"tableActLeft",{},void 0,!0),L.renderSlot(F.$slots,"tableActRight",{},void 0,!0)])):L.createCommentVNode("",!0),L.createVNode(N,L.mergeProps(F.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:A.value?{x:u.value}:{x:u.value,y:L.unref(s)?.tableHeight},onResizeColumn:w,onChange:B}),L.createSlots({emptyText:L.withCtx(()=>[L.createElementVNode("div",Cae,[L.createVNode(W,{description:L.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[F.$slots.headerCell?{name:"headerCell",fn:L.withCtx(({column:x})=>[L.renderSlot(F.$slots,"headerCell",{column:x,title:x.title},()=>[L.createTextVNode(L.toDisplayString(x.title),1)],!0)]),key:"0"}:void 0,F.$slots.bodyCell?{name:"bodyCell",fn:L.withCtx(({column:x,record:S,index:j,text:Y})=>[L.renderSlot(F.$slots,"bodyCell",{column:x,record:S,index:j,text:Y},void 0,!0),x&&x.needTooltip&&!x.needCopy?(L.openBlock(),L.createBlock(M,{key:0,placement:r.tooltipPlacement},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(S[x.dataIndex]),1)]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(S[x.dataIndex]),1)]),_:2},1032,["placement"])):x&&x.needCopy&&!x.needTooltip?(L.openBlock(),L.createElementBlock("div",wae,[L.createTextVNode(L.toDisplayString(S[x.dataIndex])+" ",1),L.createVNode(J,{"cp-text":S[x.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):L.createCommentVNode("",!0),x&&x.needTooltip&&x.needCopy?(L.openBlock(),L.createElementBlock("div",Eae,[L.createVNode(M,{placement:r.tooltipPlacement},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(S[x.dataIndex]),1)]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(_(S[x.dataIndex],x.strLen)),1)]),_:2},1032,["placement"]),L.createVNode(J,{"cp-text":S[x.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):x&&x.needFormat?(L.openBlock(),L.createElementBlock(L.Fragment,{key:3},[L.createTextVNode(L.toDisplayString(k(S[x.dataIndex],x.format)),1)],64)):x&&x.tags?(L.openBlock(),L.createElementBlock(L.Fragment,{key:4},[Q(S[x.dataIndex],x.tags)?(L.openBlock(),L.createBlock(G,{key:0,color:Q(S[x.dataIndex],x.tags)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(S[x.dataIndex]),1)]),_:2},1032,["color"])):L.createCommentVNode("",!0)],64)):L.createCommentVNode("",!0)]),key:"1"}:void 0,F.$slots.expandedRowRender?{name:"expandedRowRender",fn:L.withCtx(({record:x,index:S})=>[L.renderSlot(F.$slots,"expandedRowRender",{record:x,index:S},void 0,!0)]),key:"2"}:void 0,F.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:L.withCtx(({column:x})=>[L.renderSlot(F.$slots,"customFilterDropdown",{column:x},void 0,!0)]),key:"3"}:void 0,F.$slots.customFilterIcon?{name:"customFilterIcon",fn:L.withCtx(({column:x})=>[L.renderSlot(F.$slots,"customFilterIcon",{column:x},void 0,!0)]),key:"4"}:void 0,F.$slots.expandIcon?{name:"expandIcon",fn:L.withCtx(({expanded:x,record:S,index:j})=>[L.renderSlot(F.$slots,"expandIcon",{expanded:x,record:S,index:j},void 0,!0)]),key:"5"}:void 0,F.$slots.footer?{name:"footer",fn:L.withCtx(()=>[L.renderSlot(F.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,F.$slots.summary?{name:"summary",fn:L.withCtx(()=>[L.renderSlot(F.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,F.$slots.title?{name:"title",fn:L.withCtx(()=>[L.renderSlot(F.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-82b1e383"]])),QM=Ii(ki(L.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:L.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=L.useAttrs(),i=L.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=L.ref(),o=L.useModel(r,"value"),s=L.computed(()=>e.options??[]),l=L.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)=>(L.openBlock(),L.createBlock(L.unref(Cr.Select),L.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:L.withCtx(()=>[d.$slots.default?L.renderSlot(d.$slots,"default",{key:0},void 0,!0):(L.openBlock(!0),L.createElementBlock(L.Fragment,{key:1},L.renderList(s.value,y=>(L.openBlock(),L.createBlock(L.unref(Cr.SelectOption),L.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:L.withCtx(()=>[f(y)?(L.openBlock(),L.createBlock(L.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:L.withCtx(()=>[L.createElementVNode("span",{class:L.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},L.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(L.openBlock(),L.createElementBlock("span",{key:1,class:L.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},L.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Bae={class:"ant-upload-drag-icon"},kae={class:"ant-upload-text"},Qae={style:{color:"#ff5000"}},xae={class:"ant-upload-hint"},_ae={key:0,class:"hb_import_btn"},Sae=["href"],xM=Ii(ki(L.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}=Cs.useI18n(),n=L.ref(),i=r,a=L.ref(!1),o=L.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=L.resolveComponent("a-upload-dragger"),g=L.resolveComponent("a-form-item"),y=L.resolveComponent("a-form"),v=L.resolveComponent("a-modal"),p=L.resolveComponent("a-button");return L.openBlock(),L.createElementBlock(L.Fragment,null,[L.createVNode(v,L.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:L.withCtx(()=>[L.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:L.withCtx(()=>[L.createVNode(g,{name:"fileList",label:L.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:L.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:L.withCtx(()=>[L.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:L.withCtx(()=>[L.createElementVNode("p",Bae,[L.createVNode(L.unref(io.PlusCircleOutlined),{style:{"font-size":"37px"}})]),L.createElementVNode("p",kae,[L.createTextVNode(L.toDisplayString(L.unref(e)("hbLibComp.HbImportFile.uploadText")),1),L.createElementVNode("span",Qae,L.toDisplayString(L.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),L.createElementVNode("p",xae,L.toDisplayString(L.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+L.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(L.openBlock(),L.createElementBlock("p",_ae,[L.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},L.toDisplayString(L.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,Sae)])):L.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),L.renderSlot(h.$slots,"btn",{},()=>[L.createVNode(p,{type:"primary",onClick:f},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Dae={class:"hb_lib_log_modal_content"},Rae={class:"log_remark"},_M=Ii(ki(L.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}=Cs.useI18n(),i=L.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=L.computed(()=>a.columns||o),l=L.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=L.computed(()=>!!i.title),u=L.ref(!1),f=L.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}});L.watch(()=>a.pagination,p=>{p&&(f.pagination={...f.pagination,...p})},{deep:!0,immediate:!0});const h=()=>{const p={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:a.params};a.getLogData&&(u.value=!0,a.getLogData(p).then(m=>{Number(m.code)==200?(f.pagination.total=Number(m.data.total),f.list=m.data[a.dataStr]||[]):Cr.message.error(m.message)}).finally(()=>{u.value=!1}))},A=p=>{f.pagination.current=p.current,f.pagination.pageSize=p.pageSize,h()},d=()=>{f.list=[],f.pagination.current=1,v("update:visible",!1)},g=()=>{v("update:visible",!0)},y=(p,m="YYYY-MM-DD HH:mm:ss")=>p?$I(p).format(m):"",v=e;return L.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=L.resolveComponent("a-tooltip"),C=L.resolveComponent("HbLibCopy"),w=L.resolveComponent("a-table"),B=L.resolveComponent("a-button"),k=L.resolveComponent("HbLibModal");return L.openBlock(),L.createElementBlock(L.Fragment,null,[L.createVNode(k,L.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}),L.createSlots({footer:L.withCtx(()=>[L.createVNode(B,{onClick:d},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("div",Dae,[L.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},L.createSlots({bodyCell:L.withCtx(({column:Q,record:_})=>[Q&&Q.needTooltip?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[Q.needTooltip?(L.openBlock(),L.createBlock(b,{key:0},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(_[Q.dataIndex]),1)]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(_[Q.dataIndex]),1)]),_:2},1024)):L.createCommentVNode("",!0)],64)):L.createCommentVNode("",!0),Q&&Q.needCopy?(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createElementVNode("div",Rae,L.toDisplayString(_[Q.dataIndex]),1),L.createVNode(C,{"cp-text":_[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):L.createCommentVNode("",!0),Q&&Q.needFormat?(L.openBlock(),L.createElementBlock(L.Fragment,{key:2},[L.createTextVNode(L.toDisplayString(y(_[Q.dataIndex],Q.operateTime)),1)],64)):L.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:L.withCtx(({column:Q})=>[L.renderSlot(p.$slots,"headerCell",{column:Q},()=>[L.createTextVNode(L.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:L.withCtx(()=>[L.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?L.renderSlot(p.$slots,"default",{key:0},()=>[L.createVNode(B,{onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(r.logBtnText),1)]),_:1})],!0):L.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3ab75993"]])),Tae={class:"hb_card"},Mae={key:0,class:"hb_card_header"},Fae={class:"hb_fix"},Lae={class:"hb_card_header-title"},Nae={class:"hb_card_header-action"},Oae={class:"hb_card_body"},SM=Ii(ki(L.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number,default:0}},setup(r){const t=L.inject(Jo),e=r,n=L.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(L.openBlock(),L.createElementBlock("div",L.mergeProps({class:"hb_card_wrapper"},i.$attrs),[L.createElementVNode("div",{class:L.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[L.createElementVNode("div",Tae,[r.cardTitle?(L.openBlock(),L.createElementBlock("div",Mae,[L.createElementVNode("div",Fae,[L.createElementVNode("span",Lae,[L.renderSlot(i.$slots,"cardTitle",{},()=>[L.createTextVNode(L.toDisplayString(r.cardTitle),1)],!0)]),L.createElementVNode("div",Nae,[L.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):L.createCommentVNode("",!0),L.createElementVNode("div",Oae,[L.createElementVNode("section",{class:L.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:L.normalizeStyle(n.value)},[L.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-220e891f"]])),Pae=["onClick"],Gae={class:"step"},Uae={key:0,class:"line"},Hae=["title"],DM=Ii(ki(L.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=L.ref(""),n=t.offsetTop??160,i=L.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 L.onMounted(()=>{a().addEventListener("scroll",s),s()}),L.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(L.openBlock(),L.createElementBlock("div",{class:"anchors",style:L.normalizeStyle({top:`${L.unref(n)}px`})},[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(i.value,(u,f)=>(L.openBlock(),L.createElementBlock("div",{key:u.target,class:L.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[L.createElementVNode("div",Gae,[f!==i.value.length-1?(L.openBlock(),L.createElementBlock("div",Uae)):L.createCommentVNode("",!0),c[0]||(c[0]=L.createElementVNode("div",{class:"circle"},null,-1))]),L.createElementVNode("span",{class:"title",title:u.title},L.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,Hae)],10,Pae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),jae={class:"hb_detail_top_act_left"},Yae={key:1,class:"hb_detail_top_wrapper_sticky"},Wae={class:"hb_detail_top_act"},Jae={key:0,class:"hb_detail_all_info"},Vae={class:"hb_detail_all_info_left"},zae={class:"hb_detail_info_title"},Kae={key:0,class:"hb_detail_info_content"},qae={class:"create_by"},Xae={class:"hb_detail_all_info_right"},Zae={class:"hb_edit_detail_content_wrapper"},$ae={class:"hb_detail_content"},eoe={class:"hb-back-top-inner"},RM=Ii(ki(L.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1},hbTopActionsTop:{type:[Number,String]},hbTopActionsLeft:{type:[Number,String]}},setup(r){const{t}=Cs.useI18n(),e=r,n=L.inject(Jo),i=()=>{e.backFn?e.backFn():window.history.back()},a=n?.HbLibDetailBox?.hbTopActionsTop||112,o=n?.HbLibDetailBox?.hbTopActionsLeft||160,s=M=>M.trim().replace(/^(['"])(.*)\1$/,"$2"),l=M=>typeof M=="string"&&(M.includes("#")||M.includes(".")),c=M=>{try{const J=document.querySelector(s(M));return J instanceof HTMLElement?J:null}catch{return null}},u=L.computed(()=>e.hbTopActionsLeft||o),f=L.computed(()=>e.hbTopActionsTop||a),h=M=>{let J=null;if(M==="top"?J=f.value:J=u.value,l(J)){const G=c(J);if(G)return M==="top"?G.offsetTop+G.offsetHeight:G.offsetLeft+G.offsetWidth}return typeof J=="number"&&J>0?J:0},A=L.ref(o);let d=null;const g=()=>{d&&(d.disconnect(),d=null)},y=()=>{const M=h("left");A.value=M},v=()=>{if(g(),!l(u.value)){y();return}const M=c(u.value);if(!M){y();return}A.value=M.offsetLeft+M.offsetWidth,d=new ResizeObserver(()=>{A.value=M.offsetLeft+M.offsetWidth}),d.observe(M)},p=L.computed(()=>h("top")),m=L.computed(()=>A.value),b=L.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),C=L.computed(()=>{const M={};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}:M}),w=()=>document.querySelector(e.container),B=L.ref(!1),k=L.ref(null),{top:Q}=uA.useElementBounding(k),_=L.computed(w),{y:F}=uA.useScroll(_);L.watch(F,M=>{B.value=M>Q.value},{immediate:!0});const P=M=>{document.querySelectorAll(".hb_card_body").forEach(G=>{G.querySelectorAll(".ant-descriptions-item-content span").forEach(x=>{x.textContent?.trim()||(x.textContent=M)})})};let W=null;return L.onMounted(()=>{L.nextTick(()=>{v()}),n?.HbLibDetailBox?.needSetDesDefault&&(W=setTimeout(()=>{P(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),L.watch(()=>e.hbTopActionsLeft,()=>{L.nextTick(()=>{v()})}),L.onUnmounted(()=>{g(),W&&clearTimeout(W)}),(M,J)=>{const G=L.resolveComponent("RollbackOutlined"),N=L.resolveComponent("a-divider"),x=L.resolveComponent("a-spin");return L.openBlock(),L.createBlock(x,{spinning:r.spinning},{default:L.withCtx(()=>[L.createElementVNode("div",{class:L.normalizeClass(["hb_detail_wrapper",C.value]),style:L.normalizeStyle({"--hb-detail-desc-label-width":C.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":C.value?.hb_need_set_desc_value_width+"px"})},[r.needTotalInfoBox?(L.openBlock(),L.createElementBlock("div",{key:0,style:L.normalizeStyle({top:p.value+"px",left:m.value+"px"}),class:L.normalizeClass(["hb_detail_top_act_sticky",B.value?"can_show":""])},[L.createElementVNode("div",jae,[L.createVNode(G,{style:{color:"#ff5000"}}),L.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},L.toDisplayString(L.unref(t)("hbLibComp.HbLibDetailBox.back")),1),L.createVNode(N,{type:"vertical"}),L.createElementVNode("span",null,L.toDisplayString(r.stickyTitle),1)]),J[0]||(J[0]=L.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],6)):L.createCommentVNode("",!0),r.needTotalInfoBox?(L.openBlock(),L.createElementBlock("div",Yae,[L.createElementVNode("div",Wae,[L.createVNode(G),L.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},L.toDisplayString(L.unref(t)("hbLibComp.HbLibDetailBox.back")),1),L.createVNode(N,{type:"vertical"}),L.createElementVNode("span",null,L.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(L.openBlock(),L.createElementBlock("div",Jae,[L.createElementVNode("aside",Vae,[L.renderSlot(M.$slots,"totalInfoLeft",{},()=>[L.createElementVNode("div",zae,L.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(L.openBlock(),L.createElementBlock("div",Kae,[L.createElementVNode("span",qae,L.toDisplayString(r.totalInfo.totalInfoSubTitle1)+L.toDisplayString(r.totalInfo.totalInfoSubVal1),1),L.createElementVNode("span",null,L.toDisplayString(r.totalInfo.totalInfoSubTitle2)+L.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):L.createCommentVNode("",!0)],!0)]),L.createElementVNode("aside",Xae,[L.renderSlot(M.$slots,"totalInfoRight",{},void 0,!0)])])):L.createCommentVNode("",!0)])):L.createCommentVNode("",!0),L.createElementVNode("div",Zae,[L.createElementVNode("div",$ae,[L.renderSlot(M.$slots,"detailContent",{},void 0,!0)])]),L.createVNode(L.unref(Cr.BackTop),{target:w,style:L.normalizeStyle({bottom:b.value+"px"})},{default:L.withCtx(()=>[L.createElementVNode("div",eoe,[L.createVNode(L.unref(io.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-2f184a2c"]])),TM=Ii(ki(L.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)=>BM(l,c),n=L.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=L.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 L.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})}),L.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=L.resolveComponent("a-button"),f=L.resolveComponent("a-space"),h=L.resolveComponent("a-affix"),A=L.resolveDirective("has");return L.openBlock(),L.createElementBlock("div",{class:"footer-affix-wrapper",style:L.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[L.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:L.withCtx(()=>[L.createElementVNode("div",{class:L.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[L.createVNode(f,null,{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(n.value,d=>L.withDirectives((L.openBlock(),L.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:L.withCtx(()=>[L.createTextVNode(L.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"]])),toe={class:"modal__detail-content"},MM=Ii(ki(L.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=L.computed({get:()=>i.visible,set:_=>n("update:visible",_)}),o=L.ref(null),s=L.computed(()=>({top:"10px",...i.modalStyle})),l=L.computed(()=>({overflow:"hidden",...i.modalStyle})),c=L.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=uA.useDraggable(o),A=L.ref(0),d=L.ref(0),g=L.ref(!1),y=L.ref(0),v=L.ref(0),p=L.ref(0),m=L.ref(0),b=L.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};L.watch(a,_=>{_?setTimeout(()=>{w()},50):(C&&clearTimeout(C),C=setTimeout(()=>{y.value=0,v.value=0,p.value=0,m.value=0},300))}),L.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const _=document.body.getBoundingClientRect(),F=o.value.getBoundingClientRect();b.value.right=_.width-F.width,b.value.bottom=_.height-F.height,p.value=y.value,m.value=v.value}g.value=!0}),L.watch(h,()=>{h||(g.value=!1)}),L.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=L.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return L.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(_,F)=>{const P=L.resolveComponent("a-spin"),W=L.resolveComponent("a-modal");return L.openBlock(),L.createBlock(W,L.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":F[0]||(F[0]=M=>a.value=M),"wrap-style":l.value,onOk:Q,onCancel:k},_.$attrs),L.createSlots({title:L.withCtx(()=>[L.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[L.renderSlot(_.$slots,"title",{},()=>[L.createTextVNode(L.toDisplayString(r.title),1)],!0)],512)]),modalRender:L.withCtx(({originVNode:M})=>[(L.openBlock(),L.createElementBlock("div",{key:a.value,style:L.normalizeStyle(B.value)},[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(M)))],4))]),default:L.withCtx(()=>[L.createVNode(P,{spinning:i.spinning},{default:L.withCtx(()=>[L.createElementVNode("div",{class:L.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:L.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[L.createElementVNode("div",toe,[L.renderSlot(_.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[_.$slots.footer?{name:"footer",fn:L.withCtx(()=>[L.renderSlot(_.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),roe={key:0,class:"hb_edit_header"},noe={class:"__detail-content"},ioe={key:1,class:"hb_edit_footer"},aoe={class:"hb-back-top-inner"},FM=Ii(ki(L.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=L.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=L.inject("GLOBAL_CONFIG_KEY"),a=L.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(L.openBlock(),L.createBlock(L.unref(Cr.Spin),{spinning:r.spinning},{default:L.withCtx(()=>[L.createElementVNode("div",L.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(L.openBlock(),L.createElementBlock("div",roe,[L.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):L.createCommentVNode("",!0),L.createElementVNode("div",{class:L.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[L.createElementVNode("div",noe,[L.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(L.openBlock(),L.createElementBlock("div",ioe,[L.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):L.createCommentVNode("",!0),L.createVNode(L.unref(Cr.BackTop),{target:n,style:L.normalizeStyle({bottom:a.value+"px"})},{default:L.withCtx(()=>[L.createElementVNode("div",aoe,[L.createVNode(L.unref(io.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),ooe={class:"hb_edit_header_left"},soe={class:"hb_edit_header_title"},loe={class:"hb_edit_header_right"},LM=Ii(ki(L.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}=Cs.useI18n(),e=r,n=sB.useRoute(),i=L.ref(0),a=L.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=L.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;L.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),L.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),L.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=L.resolveComponent("a-divider");return L.openBlock(),L.createElementBlock("div",{class:"hb_edit_header",style:L.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[L.createElementVNode("aside",ooe,[L.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},L.toDisplayString(L.unref(t)("hbLibComp.HbLibDetailBox.back")),1),L.createVNode(d,{type:"vertical"}),L.createElementVNode("span",soe,L.toDisplayString(a.value),1)]),L.createElementVNode("aside",loe,[L.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),coe=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:DM,HbLibCard:SM,HbLibCopy:cB,HbLibDetailBox:RM,HbLibFilePreview:uM,HbLibFooterBar:TM,HbLibFormItemFilterModal:ZT,HbLibFormTooltipSelect:QM,HbLibFuncCompDrag:oM,HbLibIcon:ih,HbLibIconBox:vM,HbLibIconList:AB,HbLibImportFile:xM,HbLibListBtnsAct:tM,HbLibListForm:$T,HbLibListMultiSelect:iM,HbLibListPageAct:eM,HbLibListPageContainer:nM,HbLibListTable:kM,HbLibLoading:cM,HbLibLogModal:_M,HbLibModal:MM,HbLibMutilpleSelectModal:aM,HbLibPageHeader:LM,HbLibSort:sM,HbLibTableAct:yM,HbLibTableColumnSet:pB,HbLibUnDetailBox:FM,HbUiConfig:lM},Symbol.toStringTag,{value:"Module"})),ah=new Map;let NM;uA.isClient&&(document.addEventListener("mousedown",r=>NM=r),document.addEventListener("mouseup",r=>{for(const t of ah.values())for(const{documentHandler:e}of t)e(r,NM)}));function OM(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 uoe={beforeMount(r,t){ah.has(r)||ah.set(r,[]),ah.get(r).push({documentHandler:OM(r,t),bindingFn:t.value})},updated(r,t){ah.has(r)||ah.set(r,[]);const e=ah.get(r),n=e.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:OM(r,t),bindingFn:t.value};n>=0?e.splice(n,1,i):e.push(i)},unmounted(r){ah.delete(r)}},foe={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__)}},PM=(r,t)=>{r._dynamicApp&&(r._dynamicApp.unmount(),r._dynamicContainer.innerHTML="");const e=L.createApp(cB,{cpText:t});e.mount(r._dynamicContainer),r._dynamicApp=e,r._dynamicPrevValue=t},hoe={cos:uoe,dc:foe,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}PM(r,t.value)},updated(r,t){t.value!==r._dynamicPrevValue&&PM(r,t.value)},unmounted(r){r._dynamicApp&&(r._dynamicApp.unmount(),delete r._dynamicApp),r._dynamicContainer&&(r._dynamicContainer.remove(),delete r._dynamicContainer),delete r._dynamicPrevValue}}},GM=r=>r.downloadUrl,Aoe=(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=GM(t);if(s){const l=r.findIndex(c=>GM(c)===s);if(l>=0)return l}return r.indexOf(t)};function UM(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 HM(r){try{return typeof window>"u"||!window.location?.origin?!1:new URL(r).origin===window.location.origin}catch{return!1}}function jM(r){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.withCredentials=HM(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 doe(r){const t=UM(r),e=typeof document<"u"?document.documentMode:void 0;if(typeof e=="number"&&e>0)return jM(t);if(typeof fetch=="function"){const n=await fetch(t,{credentials:HM(t)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return jM(t)}function goe(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 poe(r){const t=UM(r),e=document.createElement("iframe");e.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",e.src=t,document.body.appendChild(e),window.setTimeout(()=>{try{document.body.removeChild(e)}catch{}},12e4)}async function vB(r,t){const e=(t||"download").trim()||"download";try{const n=await doe(r);goe(n,e);return}catch{poe(r)}}const voe=400;function YM(r){return r.previewUrl?.trim()||""}function rb(r){return r.downloadUrl?.trim()||""}function nb(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function yoe(r){const{t}=Cs.useI18n(),e=L.ref(!1),n=L.ref(""),i=L.ref(""),a=L.ref(-1),o=L.ref(-1),s=L.computed(()=>r.value.attachmentInfos??[]),l=L.computed(()=>s.value.reduce((_,F,P)=>{const W=YM(F);if(!W)return _;const M=nb(F);return _.push({attachmentIndex:P,record:F,item:{src:W,fileName:M,downloadName:M,downloadUrl:rb(F)||void 0}}),_},[])),c=L.computed(()=>l.value.map(_=>_.item)),u=L.computed(()=>o.value>=0?c.value:[]),f=L.computed(()=>{const _=o.value;return _>=0?l.value[_]??null:null}),h=L.computed(()=>f.value?.item??null),A=L.computed(()=>o.value>0&&c.value.length>1),d=L.computed(()=>o.value>=0&&o.value<c.value.length-1),g=L.computed(()=>c.value.length>1),y=(_,F,P,W)=>{a.value=P,o.value=W,n.value=_,i.value=F,e.value=!0},v=_=>{const F=l.value[_];F&&y(String(F.item.src),F.item.fileName||"",F.attachmentIndex,_)},p=_=>{const F=l.value.findIndex(P=>P.attachmentIndex===_);F<0||v(F)};return{filePreviewVisible:e,pdfPreviewUrlRef:n,previewFileNameRef:i,previewAttachmentIndexRef:a,previewFileIndexRef:o,filePreviewList:c,activeFilePreviewList:u,currentPreviewFile:h,hasPrevAttachment:A,hasNextAttachment:d,showAttachmentNavBar:g,handlePreview:(_,F)=>{const P=YM(_);if(!P){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=Aoe(s.value,_,{preferredIndex:F});if(W>=0){p(W);return}y(P,nb(_),-1,-1)},handleDownload:_=>{const F=rb(_);if(!F){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}vB(F,nb(_))},handleClosePreview:()=>{e.value=!1,a.value=-1,o.value=-1,n.value="",i.value=""},handlePreviewFileIndexChange:_=>{v(_)},goPrevAttachment:()=>{A.value&&v(o.value-1)},goNextAttachment:()=>{d.value&&v(o.value+1)},triggerBrowserDownload:vB,handleBatchDownloadAttachment:async()=>{const _=s.value.filter(F=>!!rb(F));if(_.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let F=0;F<_.length;F++){const P=_[F];await vB(rb(P),nb(P)),F<_.length-1&&await new Promise(W=>setTimeout(W,voe))}}}}const moe=r=>{const t=L.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}}},Ioe=r=>{let t=!0;return{start:()=>{L.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:()=>{L.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`}})}}},boe={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"}}},Coe={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:"戻る"}}},woe={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:"加载中...如长时间加载请重试!"}}},Eoe={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFilePreview:{empty:"Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an",unsupported:"Die Vorschau wird für diesen Dateityp nicht unterstützt",prev:"Zurück",next:"Weiter",download:"Herunterladen",close:"Schließen",modalTitle:"Dateivorschau",fileNameFallback:"Datei {index}",noPreviewUrl:"Keine Vorschau-URL verfügbar",noDownloadUrl:"Keine Download-URL verfügbar",noDownloadableFiles:"Keine herunterladbaren Anhänge verfügbar"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var ib={exports:{}},Boe=ib.exports,WM;function koe(){return WM||(WM=1,(function(r,t){(function(e,n){r.exports=n($I)})(Boe,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,s){return s==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(ib)),ib.exports}koe(),$I.locale("zh-cn");const Qoe={en_US:boe,ja_JP:Coe,zh_CN:woe,de_DE:Eoe},xoe=function(r,t){r.provide(Jo,t||{}),Object.values(coe).forEach(e=>{e&&typeof e.install=="function"&&r.use(e)}),Object.entries(hoe).forEach(([e,n])=>{r.directive(e,n)})},_oe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Soe=Object.defineProperty,Doe=Object.defineProperties,Roe=Object.getOwnPropertyDescriptors,JM=Object.getOwnPropertySymbols,Toe=Object.prototype.hasOwnProperty,Moe=Object.prototype.propertyIsEnumerable,VM=(r,t,e)=>t in r?Soe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ws=(r,t)=>{for(var e in t||(t={}))Toe.call(t,e)&&VM(r,e,t[e]);if(JM)for(var e of JM(t))Moe.call(t,e)&&VM(r,e,t[e]);return r},ab=(r,t)=>Doe(r,Roe(t)),Fs=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(c){i(c)}},o=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(r,...t){setTimeout(()=>r(t))});var ob=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Foe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function sb(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zM={exports:{}};/*!
1
+ (function(kr,L){typeof exports=="object"&&typeof module<"u"?L(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"],L):(kr=typeof globalThis<"u"?globalThis:kr||self,L(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,L,ZI,Cr,sB,Cs,Vl,io,uA,$I){"use strict";const lB=(r="")=>{const t=`hb-${r}`;return kne(t)},fA=(r,t,e,n)=>(t&&(r+=`-${t}`),e&&(r+=`__${e}`),n&&(r+=`--${n}`),r),kne=r=>({b:t=>t?fA(r,t,"",""):fA(r,"","",""),e:t=>t?fA(r,"",t,""):"",m:t=>fA(r,"","",t),be:(t,e)=>fA(r,t,e,""),em:(t,e)=>fA(r,"",t,e),bem:(t,e,n)=>fA(r,t,e,n),is:(t,e)=>e?`is-${t}`:""}),Jo=Symbol("GLOBAL_CONFIG_KEY"),Qne=["onMouseenter","onMouseleave"],xne=["onClick"],_ne=L.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=L.inject(Jo,{}),i=Cs.useI18n().t,a=Cs.useI18n().messages.value.en_US,o=Cs.useI18n().messages.value.ja_JP,s=Cs.useI18n().messages.value.zh_CN,l=r,c=L.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=L.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=lB("sfcm"),A=sB.useRoute(),d=L.reactive({lan:window.localStorage.getItem("lan")}),g=L.ref(!1),y=L.ref(600);let v=[];const p=L.ref([]),m=L.ref([]),b=L.computed(()=>p.value.every(R=>R.isLinked||R.isFixed)),C=R=>({...R,label:Q(R)||`${_(R)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:R.key,isFixed:R?.isFixed||!1,isLinked:R?.isLinked||!1,labelLanguage:R?.labelLanguage||void 0}),w=R=>{const D=R.draggedContext.element,V=R.relatedContext.index;if(D.isLinked||D.isFixed)return!1;const te=p.value.map((oe,fe)=>({item:oe,index:fe})).filter(({item:oe})=>oe.isLinked).map(({index:oe})=>oe);if(te.length===0)return!0;for(let oe=0;oe<te.length-1;oe++){const fe=te[oe],he=te[oe+1];if(V>fe&&V<he)return!1}return!0},B=L.computed(()=>k()+"_"+l.saveKey),k=()=>{const R=localStorage.getItem("pro__Login_Userinfo");let D="anonymous";if(R)try{D=JSON.parse(R).value.jobNumber||"anonymous"}catch(te){console.warn("解析用户信息失败:",te)}let V=A?.path;return`searchFormConfig_${D}_${V}`},Q=R=>({ja_JP:()=>Vl.get(o,R.labelLanguage||""),en_US:()=>Vl.get(a,R.labelLanguage||""),zh_CN:()=>Vl.get(s,R.labelLanguage||"")})[d.lan]?.()||R.label,_=R=>({ja_JP:()=>Vl.get(o,R.subLabelLanguage||""),en_US:()=>Vl.get(a,R.subLabelLanguage||""),zh_CN:()=>Vl.get(s,R.subLabelLanguage||"")})[d.lan]?.()||R.subLabel,F=R=>Array.isArray(R)?R.map(D=>{if(typeof D=="string")return D;if(D&&typeof D=="object"&&"key"in D){const V=D.key;return typeof V=="string"?V:""}return""}).filter(D=>!!D):[],P=R=>{if(typeof R!="function")return Array.isArray(R)?R.map(D=>P(D)):R&&Object.prototype.toString.call(R)==="[object Object]"?Object.entries(R).reduce((D,[V,te])=>(typeof te!="function"&&(D[V]=P(te)),D),{}):R},W=R=>R.map(D=>P(D)),M=R=>{try{const D=localStorage.getItem(B.value);if(D){const V=JSON.parse(D);if(V.originalList&&Array.isArray(V.originalList)){const te=F(V.originalList),oe=new Map(R.map(ee=>[ee.key,ee])),fe=te.map(ee=>oe.get(ee)).filter(ee=>!!ee),he=new Set(te),me=R.filter(ee=>!he.has(ee.key));v=Vl.cloneDeep([...fe,...me]);const le=v.filter(ee=>ee?.isFixed),de=v.filter(ee=>ee?.isLinked),H=Array.isArray(V.showList)?V.showList:[],ae=F(H),ce=new Map(v.map(ee=>[ee.key,ee])),ie=ae.map(ee=>ce.get(ee)).filter(ee=>ee?!ee.isFixed&&!ee.isLinked:!1),K=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):ie.length,ne=le.map(ee=>({...C(ee)})),Z=de.map(ee=>({...C(ee)})),X=ie.slice(0,K).map(ee=>({...C(ee)}));p.value=[...ne,...Z,...X];const q=p.value.map(ee=>ee.key),be=v.map(ee=>ee.key).filter(ee=>!q.includes(ee));return m.value=v.filter(ee=>be.includes(ee.key)).map(ee=>({...C(ee),active:!1})),!0}}}catch(D){console.warn("加载保存的搜索配置失败:",D)}return!1},J=()=>{try{const R={originalList:v.map(D=>D.key),showList:p.value.map(D=>D.key)};localStorage.setItem(B.value,JSON.stringify(R))}catch(R){console.warn("保存搜索配置失败:",R)}},G=L.computed(()=>{const R=p.value.filter(V=>!V.isFixed&&!V.isLinked).length,D=p.value.filter(V=>V.isFixed||V.isLinked).length;return R>=c.value-D});L.watch(()=>l.list,R=>{let D=!Vl.isEqual(W(p.value),W(R));if(!D)return;const V=localStorage.getItem(B.value),te=JSON.parse(V||"{}"),oe=R.map(le=>le.key),fe=F(te?.originalList),he=new Set(oe),me=oe.length!==fe.length||fe.some(le=>!he.has(le));if(te&&te?.originalList&&Array.isArray(te.originalList)&&!me)M(R),f("confirm",p.value);else if(D){v=Vl.cloneDeep(R);const le=R.filter(Z=>Z?.isFixed),de=R.filter(Z=>Z?.isLinked),H=R.filter(Z=>!Z?.isFixed&&!Z?.isLinked),ae=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):H.length,ce=le.map(Z=>C(Z)),ie=de.map(Z=>C(Z)),K=H.slice(0,ae).map(Z=>C(Z));p.value=[...ce,...ie,...K];const ne=H.slice(ae).map(Z=>({...C(Z),active:!1}));m.value=ne,f("confirm",p.value)}},{immediate:!0});const N=R=>{const D=p.value.findIndex(V=>V.key===R.key);D!==-1&&(p.value.splice(D,1),m.value.push({...R,active:!1}))},x=R=>{if(G.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const D=m.value.findIndex(V=>V.key===R.key);if(D!==-1){const[V]=m.value.splice(D,1);p.value.push({...V,active:!1})}},S=()=>{g.value=!1},j=()=>{g.value=!0},Y=()=>{J(),f("confirm",p.value),S()},U=R=>{const D=m.value.findIndex(V=>V.key===R.key);D!==-1&&(m.value[D].active=!0)},O=R=>{const D=m.value.findIndex(V=>V.key===R.key);D!==-1&&(m.value[D].active=!1)};return t({toOpenModal:j}),L.onMounted(()=>{}),(R,D)=>(L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(L.unref(h).b())},[L.createVNode(L.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":D[1]||(D[1]=V=>g.value=V),width:y.value,onCancel:S,onOk:Y},{title:L.withCtx(()=>[L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("title"))},L.toDisplayString(u.value),3)]),footer:L.withCtx(()=>[L.createVNode(L.unref(Cr.Button),{onClick:S},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),L.createVNode(L.unref(Cr.Button),{type:"primary",onClick:Y},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("section",{class:L.normalizeClass(L.unref(h).e("show"))},[L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("show__title"))},[L.createElementVNode("span",{class:L.normalizeClass(L.unref(h).e("title__tip"))},L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),L.createElementVNode("span",null,L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+L.toDisplayString(c.value)+L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("show__tag"))},[L.createVNode(L.unref(ZI),{modelValue:p.value,"onUpdate:modelValue":D[0]||(D[0]=V=>p.value=V),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:L.withCtx(({element:V})=>[L.createElementVNode("div",{class:L.normalizeClass([L.unref(h).e("show__tag__item"),L.unref(h).is("fixed",V.isFixed),L.unref(h).is("linked",V.isLinked)])},[L.createTextVNode(L.toDisplayString(V.label)+" ",1),!V.isFixed&&!V.isLinked&&r.list.length>1?(L.openBlock(),L.createBlock(L.unref(io.CloseOutlined),{key:0,class:L.normalizeClass(L.unref(h).e("show__tag__item-close")),onClick:te=>N(V)},null,8,["class","onClick"])):L.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),L.createElementVNode("section",{class:L.normalizeClass(L.unref(h).e("unshow"))},[L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("show__title"))},[L.createElementVNode("span",{class:L.normalizeClass(L.unref(h).e("title__tip"))},L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),L.createElementVNode("div",{class:L.normalizeClass(L.unref(h).e("unshow__tag"))},[m.value.length>0?(L.openBlock(!0),L.createElementBlock(L.Fragment,{key:0},L.renderList(m.value,V=>(L.openBlock(),L.createElementBlock("div",{key:V.key,class:L.normalizeClass([L.unref(h).e("unshow__tag__item"),L.unref(h).is("fixed",V.isFixed||""),L.unref(h).is("linked",V.isLinked||"")]),onMouseenter:te=>U(V),onMouseleave:te=>O(V)},[L.createTextVNode(L.toDisplayString(V.label)+" ",1),V.active?(L.openBlock(),L.createElementBlock("aside",{key:0,class:L.normalizeClass(L.unref(h).e("unshow__tag__item-add")),onClick:te=>x(V)},L.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.add")),11,xne)):L.createCommentVNode("",!0)],42,Qne))),128)):(L.openBlock(),L.createElementBlock("div",{key:1,class:L.normalizeClass(L.unref(h).e("unshow__tag__empty"))},L.toDisplayString(R.$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-d411a1be"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const ZT=Ii(Sne),Dne={key:0,class:"form-footer"},Rne={class:"scheme-fontWeight"},Tne={class:"scheme-fontWeight"},Mne={class:"hb-lib-form-svg"},Fne={class:"scheme-fontWeight"},Lne={class:"scheme-fontWeight"},$T=Ii(ki(L.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=L.inject(Jo,{}),i=e,a=L.inject("HB_LIST_PAGE_CONTAINER"),o=L.computed(()=>l.searchList||[]),s=lB("form"),l=r,c=L.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||10),u=L.ref("show"),f=L.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=L.computed(()=>{const W=l.items.filter(M=>g(M));return Vl.cloneDeep(W)}),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=L.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label}))),v=L.computed(()=>l.saveKey),p=L.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=L.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{const M=l.items.filter(N=>!g(N)),J=[...W,...M],G=[...new Map(J.map(N=>[N.key,N])).values()];i("handleSfcmConfirm",G)};L.watch(()=>l.isFormExpanded,W=>{if(W){const M=document.querySelector("#subpackage_container");M instanceof HTMLElement&&(M.style.overflow="hidden",setTimeout(()=>{M.style.overflow="auto"},500))}});const Q=W=>{const M=W;M.style.height="",M.offsetHeight},_=W=>{const M=W;M.style.height="",M.style.overflow="",L.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},F=W=>{const M=W,J=M.querySelector(".hb-lib-form--container");if(J){const G=J.offsetHeight;M.style.height=G+"px",M.style.overflow="hidden",M.offsetHeight,requestAnimationFrame(()=>{M.style.height="0"})}},P=()=>{L.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,M)=>{const J=L.resolveComponent("a-button"),G=L.resolveComponent("HbLibIcon"),N=L.resolveComponent("a-tooltip"),x=L.resolveComponent("a-menu-item"),S=L.resolveComponent("a-menu"),j=L.resolveComponent("a-dropdown"),Y=L.resolveComponent("HbLibFormItemFilterModal");return L.openBlock(),L.createElementBlock(L.Fragment,null,[L.createVNode(L.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:_,onLeave:F,onAfterLeave:P},{default:L.withCtx(()=>[L.withDirectives(L.createElementVNode("div",{class:L.normalizeClass([L.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[L.createVNode(L.unref(Cr.Form),L.mergeProps(W.$attrs,{ref_key:"formRef",ref:p,model:r.formData,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(y.value,(U,O)=>(L.openBlock(),L.createElementBlock(L.Fragment,{key:O},[U.condition?(L.openBlock(),L.createBlock(L.unref(Cr.FormItem),L.mergeProps({key:0,ref_for:!0},U,{name:U.key,class:{"hb-lib-form-item-border--unneed":U.isUnNeedBorder,"hb_lib_form_item--needShowAll":U.showAll}}),L.createSlots({default:L.withCtx(()=>[U.type==="slot"?L.renderSlot(W.$slots,U.key,{key:0,formData:r.formData,item:U},void 0,!0):L.createCommentVNode("",!0),U.type==="mixin"?L.renderSlot(W.$slots,U.key,{key:1,formData:r.formData,item:U},void 0,!0):L.createCommentVNode("",!0),U.type==="input"?(L.openBlock(),L.createBlock(L.unref(Cr.Input),L.mergeProps({key:2,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="select"?(L.openBlock(),L.createBlock(L.unref(Cr.Select),L.mergeProps({key:3,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(U.options,(R,D)=>(L.openBlock(),L.createBlock(L.unref(Cr.SelectOption),{key:D,value:R.value},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="checkbox"?(L.openBlock(),L.createBlock(L.unref(Cr.CheckboxGroup),L.mergeProps({key:4,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(U.options,(R,D)=>(L.openBlock(),L.createBlock(L.unref(Cr.Checkbox),{key:D,value:R.value},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="date-picker"?(L.openBlock(),L.createBlock(L.unref(Cr.DatePicker),L.mergeProps({key:5,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="input-number"?(L.openBlock(),L.createBlock(L.unref(Cr.InputNumber),L.mergeProps({key:6,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="radio"?(L.openBlock(),L.createBlock(L.unref(Cr.RadioGroup),L.mergeProps({key:7,value:r.formData[U.key],"onUpdate:value":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(U.options,(R,D)=>(L.openBlock(),L.createBlock(L.unref(Cr.Radio),{key:D,value:R.value},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(R.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):L.createCommentVNode("",!0),U.type==="switch"?(L.openBlock(),L.createBlock(L.unref(Cr.Switch),L.mergeProps({key:8,checked:r.formData[U.key],"onUpdate:checked":R=>r.formData[U.key]=R},{ref_for:!0},U.attrs),null,16,["checked","onUpdate:checked"])):L.createCommentVNode("",!0)]),_:2},[U.tooltip?{name:"label",fn:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(U.label)+" ",1),L.createVNode(L.unref(Cr.Tooltip),{title:U.tooltip},{default:L.withCtx(()=>[L.createVNode(L.unref(io.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):L.createCommentVNode("",!0)],64))),128)),f.value?L.createCommentVNode("",!0):(L.openBlock(),L.createElementBlock("section",Dne,[L.createVNode(J,{type:"primary",onClick:m},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.SearchOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),L.createVNode(J,{class:"hb_list_reset_button",onClick:b},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.ReloadOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(L.openBlock(),L.createBlock(N,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-form-svg",onClick:w},[L.createVNode(G,{name:"icon-shaixuan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),L.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(L.openBlock(),L.createBlock(j,{key:0},{overlay:L.withCtx(()=>[L.createVNode(S,{onClick:B},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(o.value,U=>(L.openBlock(),L.createBlock(x,{key:U.id},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(U.title),1)]),_:2},1024))),128)),L.createVNode(x,{key:"add"},{default:L.withCtx(()=>[L.createElementVNode("span",Rne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),L.createVNode(x,{key:"edit"},{default:L.withCtx(()=>[L.createElementVNode("span",Tne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:L.withCtx(()=>[L.createVNode(N,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:L.withCtx(()=>[L.createElementVNode("a",null,[L.createVNode(G,{name:"icon-chaxunfangan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])]),_:1})):L.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(L.openBlock(),L.createElementBlock("div",{key:0,class:L.normalizeClass([L.unref(s).e("footer"),"form-footer"])},[L.createElementVNode("div",{class:L.normalizeClass(L.unref(s).e("footer__left"))},[L.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),L.createElementVNode("div",{class:L.normalizeClass(L.unref(s).e("footer__right"))},[u.value=="show"?L.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[L.createVNode(J,{type:"primary",onClick:m},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.SearchOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),L.createVNode(J,{class:"hb_list_reset_button",onClick:b},{icon:L.withCtx(()=>[L.createVNode(L.unref(io.ReloadOutlined))]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(L.openBlock(),L.createBlock(N,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-form-svg",onClick:w},[L.createVNode(G,{name:"icon-shaixuan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),L.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(L.openBlock(),L.createBlock(j,{key:0},{overlay:L.withCtx(()=>[L.createVNode(S,{onClick:B},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(o.value,U=>(L.openBlock(),L.createBlock(x,{key:U.id},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(U.title),1)]),_:2},1024))),128)),L.createVNode(x,{key:"add"},{default:L.withCtx(()=>[L.createElementVNode("span",Fne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),L.createVNode(x,{key:"edit"},{default:L.withCtx(()=>[L.createElementVNode("span",Lne,L.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:L.withCtx(()=>[L.createVNode(N,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:L.withCtx(()=>[L.createElementVNode("a",Mne,[L.createVNode(G,{name:"icon-chaxunfangan",width:L.unref(n).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(n).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(n).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])]),_:1})):L.createCommentVNode("",!0)],!0)],!0):L.createCommentVNode("",!0)],2)],2)):L.createCommentVNode("",!0)],2),[[L.vShow,r.isFormExpanded]])]),_:3}),L.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-6a05bade"]])),Nne={class:"hb-lib-list-page-breadcrumb"},One={key:0,class:"hb-lib-list-page-breadcrumb-item-divider"},Pne={class:"hb-lib-list-page-act"},eM=Ii(ki(L.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0},hideDomList:{type:Array,default:()=>[]}},emits:["handleOpenOrClose","handleReload"],setup(r,{emit:t}){const e=r,n=t,i=L.ref(!0),a=()=>{i.value=!i.value,n("handleOpenOrClose",i.value)},o=()=>{n("handleReload")},s=L.inject(Jo,{}),{isFullscreen:l,toggle:c}=uA.useFullscreen(document.body);L.watch(()=>l.value,A=>{let d=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(e.hideDomList)&&e.hideDomList.length?d=[...e.hideDomList]:s.HbLibListPageAct?.hideDomList&&(d=[...s.HbLibListPageAct.hideDomList]);const g=new Map;setTimeout(A?()=>{if(d?.length)for(let y=0;y<d.length;y++){const v=document.querySelector(d[y]);v&&(g.set(d[y],v.style.display),v.style.display="none")}}:()=>{if(d?.length)for(let y=0;y<d.length;y++){const v=document.querySelector(d[y]);if(v){const p=g.get(d[y]);v.style.display=p||"",g.delete(d[y])}}},0)});const u=L.ref([]),f=()=>{const A=sB.useRoute();let d=localStorage.getItem(s.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",g=A?.path;if(d!=="[]"){let y=JSON.parse(d).find(v=>v.value===g);y&&(u.value=y.label.split("-"))}};L.onMounted(()=>{f()});const h=A=>{A.keyCode===192&&c()};return L.onMounted(()=>{window.addEventListener("keydown",h)}),L.onUnmounted(()=>{window.removeEventListener("keydown",h)}),(A,d)=>{const g=L.resolveComponent("HbLibIcon"),y=L.resolveComponent("a-tooltip");return L.openBlock(),L.createElementBlock("section",{class:"hb-lib-list-page-act-box",style:L.normalizeStyle({background:L.unref(s).HbLibListPageContainer?.listPageBgColor||"var(--hb-color-bg-page)"})},[L.createElementVNode("aside",Nne,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(u.value,(v,p)=>(L.openBlock(),L.createElementBlock(L.Fragment,{key:v},[L.createElementVNode("span",{class:L.normalizeClass(["hb-lib-list-page-breadcrumb-item",{"last-item":p===u.value.length-1}])},L.toDisplayString(v),3),p!==u.value.length-1?(L.openBlock(),L.createElementBlock("span",One," / ")):L.createCommentVNode("",!0)],64))),128))]),L.createElementVNode("aside",Pne,[L.unref(s).HbLibListPageContainer?.listPageBtnPlacement==="top"?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[r.needReload?(L.openBlock(),L.createBlock(y,{key:0,title:A.$t("hbLibComp.hbListBtnsAct.reload")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:o},[L.createVNode(g,{name:"icon-shuaxin",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),r.needOpenOrClose?(L.openBlock(),L.createBlock(y,{key:1,title:i.value?`${A.$t("hbLibComp.hbListBtnsAct.close")}`:`${A.$t("hbLibComp.hbListBtnsAct.open")}`},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:a},[i.value?(L.openBlock(),L.createBlock(g,{key:0,name:"icon-shouqi1",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])):(L.openBlock(),L.createBlock(g,{key:1,name:"icon-zhankai1",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"]))])]),_:1},8,["title"])):L.createCommentVNode("",!0)],64)):L.createCommentVNode("",!0),L.createVNode(y,{title:L.unref(l)?`${A.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${A.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-page-act-svg",onClick:d[0]||(d[0]=(...v)=>L.unref(c)&&L.unref(c)(...v))},[L.unref(l)?(L.openBlock(),L.createBlock(g,{key:1,name:"icon-off_screenquanjusuoxiao",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])):(L.openBlock(),L.createBlock(g,{key:0,name:"icon-fuul_screenquanjufangda",width:L.unref(s).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(s).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(s).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"]))])]),_:1},8,["title"]),L.renderSlot(A.$slots,"listAct",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-82f846be"]])),Gne={class:"hb-lib-list-btns-box"},Une={class:"hb-lib-list-btns-left"},Hne={class:"hb-lib-list-btns-right"},tM=Ii(ki(L.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=L.inject(Jo,{}),n=t,i=L.ref(!0),a=()=>{i.value=!i.value,n("handleOpenOrClose",i.value)},o=()=>{n("handleReload")},s=l=>{};return L.onMounted(()=>{window.addEventListener("keydown",s)}),L.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=L.resolveComponent("HbLibIcon"),f=L.resolveComponent("a-tooltip");return L.openBlock(),L.createElementBlock("section",Gne,[L.createElementVNode("aside",Une,[L.renderSlot(l.$slots,"btnsLeft",{},void 0,!0)]),L.createElementVNode("aside",Hne,[L.unref(e).HbLibListPageContainer?.listPageBtnPlacement==="middle"?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[r.needReload?(L.openBlock(),L.createBlock(f,{key:0,title:l.$t("hbLibComp.hbListBtnsAct.reload")},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:o},[L.createVNode(u,{name:"icon-shuaxin",width:L.unref(e).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(e).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])])]),_:1},8,["title"])):L.createCommentVNode("",!0),r.needOpenOrClose?(L.openBlock(),L.createBlock(f,{key:1,title:i.value?`${l.$t("hbLibComp.hbListBtnsAct.close")}`:`${l.$t("hbLibComp.hbListBtnsAct.open")}`},{default:L.withCtx(()=>[L.createElementVNode("a",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:a},[i.value?(L.openBlock(),L.createBlock(u,{key:0,name:"icon-shouqi1",width:L.unref(e).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(e).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])):(L.openBlock(),L.createBlock(u,{key:1,name:"icon-zhankai1",width:L.unref(e).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(e).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(e).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"]))])]),_:1},8,["title"])):L.createCommentVNode("",!0),L.renderSlot(l.$slots,"btnsRight",{},void 0,!0)],64)):L.createCommentVNode("",!0)])])}}}),[["__scopeId","data-v-cb2be5bc"]])),rM=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=L.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{L.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),L.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&&L.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),L.onMounted(()=>{f(),y()}),L.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},nM=Ii(L.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=L.inject(Jo,{}),{isFullscreen:e}=uA.useFullscreen(document.body),n=r,i=L.useTemplateRef("PageContainerRef"),a=L.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=L.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=L.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=L.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=L.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1),{calTableHeight:u,tableHeight:f}=rM({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=L.computed(()=>f.value);return L.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(L.openBlock(),L.createElementBlock("section",{ref_key:"PageContainerRef",ref:i,class:"hb-lib-list-page-container"},[L.renderSlot(A.$slots,"header"),L.createElementVNode("section",{class:"list-page-box",style:L.normalizeStyle(c.value?null:{"--hb-list-table-height":L.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":L.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[L.renderSlot(A.$slots,"default")],4)],512))}})),jne={style:{"font-weight":"500"}},Yne={key:0,class:"hb-lib-search-tag__description"},Wne={class:"hb-lib-selector-dropdown"},Jne={class:"hb-lib-selector-search"},Vne={class:"hb-lib-selector-list"},zne=["onClick"],Kne={class:"hb-lib-option-content"},qne={class:"hb-lib-option-label"},Xne={key:0,class:"hb-lib-selector-empty"},Zne={key:1,class:"hb-lib-selector-footer"},$ne={class:"hb-lib-footer-buttons"},eie={key:2,class:"hb-lib-selector-footer"},tie={class:"hb-lib-footer-buttons"},iM=Ii(ki(L.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:L.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:L.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=L.useModel(r,"value"),a=L.ref(!1),o=L.ref(""),s=L.ref([]),l=L.ref(),c=L.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=L.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=L.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=L.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});L.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),L.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=L.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=L.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=uA.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=L.resolveComponent("a-tag"),k=L.resolveComponent("a-input"),Q=L.resolveComponent("a-checkbox"),_=L.resolveComponent("a-radio"),F=L.resolveComponent("a-button"),P=L.resolveComponent("a-select");return L.openBlock(),L.createElementBlock("div",L.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[L.createVNode(P,{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:L.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"},onDropdownVisibleChange:A,onSearch:L.unref(p)},{tagRender:L.withCtx(({label:W,option:M})=>[L.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:L.withCtx(()=>[L.createElementVNode("span",jne,L.toDisplayString(W),1),M?.description?(L.openBlock(),L.createElementBlock("span",Yne," ("+L.toDisplayString(M.description)+") ",1)):L.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:L.withCtx(()=>[L.createElementVNode("div",Wne,[L.createElementVNode("div",Jne,[L.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=>L.unref(p)(W.target.value))},{prefix:L.withCtx(()=>[L.createVNode(L.unref(io.SearchOutlined))]),_:1},8,["value"])]),L.createElementVNode("div",Vne,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(c.value,W=>(L.openBlock(),L.createElementBlock("div",{key:W.value,class:L.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(W.value)}]),onClick:()=>m(W)},[r.multiple?(L.openBlock(),L.createBlock(Q,{key:0,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[3]||(w[3]=L.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(L.openBlock(),L.createBlock(_,{key:1,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[4]||(w[4]=L.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),L.createElementVNode("div",Kne,[L.createElementVNode("div",qne,L.toDisplayString(W.label),1)])],10,zne))),128))]),c.value.length===0?(L.openBlock(),L.createElementBlock("div",Xne,L.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):L.createCommentVNode("",!0),r.multiple?(L.openBlock(),L.createElementBlock("div",Zne,[L.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),L.createElementVNode("div",$ne,[L.createVNode(F,{size:"small",onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),L.createVNode(F,{type:"primary",size:"small",onClick:v},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(L.openBlock(),L.createElementBlock("div",eie,[w[6]||(w[6]=L.createElementVNode("div",null,null,-1)),L.createElementVNode("div",tie,[L.createVNode(F,{size:"small",onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.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"]])),rie={class:"hb-lib-form-item-filter-modal-search"},nie={class:"hb-lib-form-item-filter-modal-buttons"},iie={key:0},aM=Ii(L.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=L.ref(!1),o=L.ref(""),s=L.ref(),l=L.ref(),c=L.ref([]),u=L.ref([]),f=L.ref(),h=L.reactive({searchText:"",searchedColumn:""}),A=L.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=L.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,L.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=L.resolveComponent("a-input"),_=L.resolveComponent("a-button"),F=L.resolveComponent("a-table"),P=L.resolveComponent("a-modal");return L.openBlock(),L.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[L.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:L.withCtx(()=>[L.createVNode(L.unref(io.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),L.createVNode(P,{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:L.withCtx(()=>[L.createVNode(_,{onClick:p},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),L.createVNode(_,{onClick:y},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),L.createVNode(_,{type:"primary",onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:L.withCtx(()=>[L.createVNode(F,{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:L.withCtx(({setSelectedKeys:W,selectedKeys:M,confirm:J,clearFilters:G,column:N})=>[L.createElementVNode("div",rie,[L.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${N.title}`,value:M[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:x=>W(x.target.value?[x.target.value]:[]),onPressEnter:x=>b(M,J,N.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),L.createElementVNode("section",nie,[L.createVNode(_,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:x=>C(G,J)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),L.createVNode(_,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:x=>b(M,J,N.dataIndex)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:L.withCtx(({filtered:W})=>[L.createVNode(L.unref(io.SearchOutlined),{style:L.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:L.withCtx(({text:W,column:M})=>[h.searchText&&h.searchedColumn===M.dataIndex?(L.openBlock(),L.createElementBlock("span",iie,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,G)=>(L.openBlock(),L.createElementBlock(L.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(L.openBlock(),L.createElementBlock("mark",{key:G,class:"highlight"},L.toDisplayString(J),1)):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(J),1)],64))],64))),256))])):L.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),aie={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"}},cB=Ii(ki(L.defineComponent({name:"HbLibCopy",__name:"copy",props:aie,setup(r){const t=r,e=L.ref();L.watchEffect(()=>{e.value=t.data});const n=L.computed(()=>t.tooltipTitle||"复制"),i=L.computed(()=>t.copySuccessTip||"复制成功"),a=L.computed(()=>t.copyFailTip||"复制失败"),o=L.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?(L.openBlock(),L.createBlock(L.unref(Cr.Tooltip),{key:0,title:n.value},{default:L.withCtx(()=>[L.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:L.normalizeStyle({...l.cpStyle}),onClick:L.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[L.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"},[L.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"}),L.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"}),L.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"])):L.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),oie={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:""}},oM=Ii(ki(L.defineComponent({name:"HbDrag",__name:"index",props:oie,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=L.shallowRef([]);L.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=lB("drag"),a=t,o=u=>{a("handleDragStart",u)},s=u=>{a("handleDragEnd",u)},l=u=>{a("handleDragAdd",u)},c=u=>{a("handleDragRemove",u)};return(u,f)=>(L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(L.unref(i).b())},[u.childrenType=="component"?(L.openBlock(),L.createBlock(L.unref(ZI),L.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:L.withCtx(({element:h})=>[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(L.openBlock(),L.createBlock(L.unref(ZI),L.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:L.withCtx(({element:h})=>[L.createElementVNode("div",null,[L.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-841ac118"]])),sie={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},sM=Ii(ki(L.defineComponent({name:"HbLibSort",__name:"sort",props:sie,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=L.ref([]),o=L.ref("");L.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=L.resolveComponent("a-menu-item"),f=L.resolveComponent("a-menu"),h=L.resolveComponent("a-dropdown");return L.openBlock(),L.createBlock(h,{trigger:[n.triggerWay]},{overlay:L.withCtx(()=>[L.createVNode(f,null,{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(a.value,A=>(L.openBlock(),L.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:L.withCtx(()=>[L.createElementVNode("span",{class:L.normalizeClass(o.value==A.value+A.sort?"activted":"")},L.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=L.withModifiers(()=>{},["prevent"]))},[L.createTextVNode(L.toDisplayString(n.colText)+" ",1),L.createVNode(L.unref(io.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),lie={color:{themeColor:"#ff7333"},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:!1,listPageBtnPlacement:"middle",listPageBgColor:"#f0f1f5",listPageIcon:{width:27,height:27,hoverColor:!0,hoverBgColor:"#e8e8e8"}},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:10},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10},HbLibIcon:{width:27,height:27}},lM=Ii(L.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;const n=L.inject(Jo,{});return L.watch(()=>t.config,i=>{e=L.reactive(Vl.merge({},lie,i,n))},{deep:!0,immediate:!0}),L.provide(Jo,e),(i,a)=>(L.openBlock(),L.createElementBlock("div",{class:"hb_ui_config",style:L.normalizeStyle({"--hb-theme-color":r.config?.color?.themeColor||"#ff7333"})},[L.renderSlot(i.$slots,"default")],4))}})),cie={class:"hb_lib_loading"},uie={class:"hb_lib_loading_loading_anima"},fie={class:"hb_lib_loading_load_tips"},cM=Ii(ki(L.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=Cs.useI18n(),e=r,n=L.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(L.openBlock(),L.createElementBlock("div",cie,[L.createElementVNode("div",uie,[a[0]||(a[0]=L.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)),L.createElementVNode("div",fie,L.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),hie={class:"file-preview__body"},Aie={key:0,class:"file-preview__placeholder"},die={key:1,class:"file-preview__placeholder"},gie=["src"],pie={class:"file-preview__body"},vie={key:0,class:"file-preview__placeholder"},yie={key:1,class:"file-preview__placeholder"},mie=["src"],Iie=["src"],bie={class:"file-preview__modal-footer"},uM=Ii(ki(L.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}=Cs.useI18n();function o(K){i("update:visible",K)}function s(){i("update:visible",!1),i("cancel")}function l(){return Promise.resolve().then(()=>_oe).then(()=>Promise.resolve().then(()=>mle))}function c(){return Promise.resolve().then(()=>Ile).then(()=>Promise.resolve().then(()=>O2e))}function u(){return Promise.resolve().then(()=>iTe)}function f(){return Promise.resolve().then(()=>Rtt)}const h=L.defineAsyncComponent(()=>l().then(K=>K.default)),A=L.defineAsyncComponent(()=>c().then(K=>K.default)),d=L.defineAsyncComponent(()=>u().then(K=>K.default)),g=L.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const ne=K.split(/[/\\]/).pop()??K,Z=ne.split("?")[0]??ne,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,ne){if(K==null||K==="")return"unknown";const Z=ne&&v(ne)||(typeof K=="string"?v(K):"");return!Z&&(K instanceof ArrayBuffer||K instanceof Blob)?"unknown":Z==="docx"?"docx":Z==="xlsx"||Z==="xls"?"excel":Z==="pdf"?"pdf":Z==="pptx"?"pptx":y.has(Z)?"image":"unknown"}const m=L.computed(()=>n.fileList?.length??0),b=L.computed(()=>m.value>0&&n.fileList!=null),C=L.computed(()=>{if(!b.value)return 0;const K=m.value-1,ne=Math.floor(Number(n.fileIndex));return Number.isNaN(ne)?0:Math.min(Math.max(ne,0),K)}),w=L.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=L.computed(()=>w.value?w.value.src:n.src),k=L.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);L.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),L.watch(C,(K,ne)=>{if(!b.value||K===ne)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=L.computed(()=>p(B.value,k.value)),_=L.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),F=L.computed(()=>typeof _.value=="string"?_.value:""),P=L.computed(()=>{const K=b.value?C.value:"",ne=B.value;return typeof ne=="string"?`${K}:${Q.value}:${ne}`:ne instanceof ArrayBuffer?`${K}:${Q.value}:ab:${ne.byteLength}`:ne instanceof Blob?`${K}:${Q.value}:blob:${ne.size}`:`${K}:${Q.value}`}),W=L.computed(()=>{const K=B.value;return K!=null&&K!==""}),M=L.computed(()=>n.height),J=L.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),G=L.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),N=L.computed(()=>n.showNav&&b.value&&m.value>1),x=L.computed(()=>N.value&&C.value>0),S=L.computed(()=>N.value&&C.value<m.value-1);function j(){x.value&&i("update:fileIndex",C.value-1)}function Y(){S.value&&i("update:fileIndex",C.value+1)}const U=L.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})}),O=L.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const ne=U.value;return b.value&&m.value>1?ne?`${K} — ${ne}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:ne?`${K} — ${ne}`:K});function R(K){const ne=v(K);return{pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}[ne]||"application/octet-stream"}function D(K,ne){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=ne||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=L.ref(!1);function te(){const K=w.value,ne=K?.downloadName||K?.fileName||n.fileName||"";if(ne)return ne.split(/[/\\]/).pop()?.split("?")[0]||"download";if(typeof B.value=="string"){const Z=B.value.split(/[/\\]/).pop()?.split("?")[0]||"";if(Z.includes("."))return Z}return"download"}const oe=L.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,ne=b.value?C.value:0;i("beforeDownload",{item:K,index:ne});const Z=te(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:ne,src:B.value,fileName:k.value,downloadName:Z});else if(X){const q=await fetch(X);if(!q.ok)throw new Error(String(q.status));const Ae=await q.blob();D(Ae,Z)}else{const q=B.value;if(typeof q=="string"){const Ae=await fetch(q);if(!Ae.ok)throw new Error(String(Ae.status));const be=await Ae.blob();D(be,Z)}else if(q instanceof Blob)D(q,Z);else if(q instanceof ArrayBuffer){const Ae=R(Z);D(new Blob([q],{type:Ae}),Z)}}i("downloaded",{item:K,index:ne})}catch(q){i("error",q)}finally{V.value=!1}}const he=L.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function de(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){he.value="";return}if(typeof K=="string"){he.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),he.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),he.value=me}}L.watch(()=>[B.value,Q.value],()=>de(),{immediate:!0}),L.onBeforeUnmount(()=>{le()});function H(){i("rendered")}function ae(K){i("error",K??new Error("office preview error"))}function ce(){i("rendered")}function ie(K){i("error",K)}return t({previewKind:Q,safeIndex:C,currentListItem:w,effectiveSrc:B,effectiveFileName:k,goPrev:j,goNext:Y,download:fe,closeModal:s}),(K,ne)=>{const Z=L.resolveComponent("a-button"),X=L.resolveComponent("a-space"),q=L.resolveComponent("a-modal");return L.openBlock(),L.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:O.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:L.withCtx(()=>[L.createElementVNode("div",bie,[L.createVNode(X,{size:8,wrap:""},{default:L.withCtx(()=>[N.value?(L.openBlock(),L.createBlock(Z,{key:0,disabled:!x.value,onClick:j},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):L.createCommentVNode("",!0),N.value?(L.openBlock(),L.createBlock(Z,{key:1,disabled:!S.value,onClick:Y},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):L.createCommentVNode("",!0),r.showDownload?(L.openBlock(),L.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):L.createCommentVNode("",!0),L.createVNode(Z,{onClick:s},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),L.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:L.withCtx(()=>[r.needSafe?(L.openBlock(),L.createElementBlock("div",{key:0,class:"file-preview",style:L.normalizeStyle({height:M.value})},[L.createElementVNode("div",hie,[W.value?Q.value==="unknown"?(L.openBlock(),L.createElementBlock("div",die,[L.renderSlot(K.$slots,"unsupported",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(L.openBlock(),L.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,gie)):Q.value==="docx"?(L.openBlock(),L.createBlock(L.unref(h),{key:`docx-${P.value}`,src:_.value,class:"file-preview__office",style:L.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):Q.value==="excel"?(L.openBlock(),L.createBlock(L.unref(A),{key:`xls-${P.value}`,src:_.value,class:"file-preview__office",style:L.normalizeStyle(J.value),options:r.excelOptions,onRendered:H,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(L.openBlock(),L.createBlock(L.unref(d),L.mergeProps({key:`pdf-${P.value}`,src:_.value,class:"file-preview__office",style:J.value},G.value,{onRendered:H,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(L.openBlock(),L.createBlock(L.unref(g),{key:`pptx-${P.value}`,src:_.value,class:"file-preview__office",style:L.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):L.createCommentVNode("",!0):(L.openBlock(),L.createElementBlock("div",Aie,[L.renderSlot(K.$slots,"empty",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(L.openBlock(),L.createElementBlock("div",{key:1,class:"file-preview",style:L.normalizeStyle({height:M.value})},[L.createElementVNode("div",pie,[W.value?Q.value==="unknown"?(L.openBlock(),L.createElementBlock("div",yie,[L.renderSlot(K.$slots,"unsupported",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(L.openBlock(),L.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,mie)):(L.openBlock(),L.createElementBlock("iframe",{key:3,src:F.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Iie)):(L.openBlock(),L.createElementBlock("div",vie,[L.renderSlot(K.$slots,"empty",{},()=>[L.createTextVNode(L.toDisplayString(L.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),uB="//at.alicdn.com/t/c/font_5174416_vythqmwzln.css",fM="//at.alicdn.com/t/c/font_5174416_vythqmwzln.js",fB=Symbol("HB_ICON_GLOBAL_KEY"),Cie=L.inject(fB,{});function hM(r){return r.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js")}function K0(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 wie(r,t){return r===!0?`hb-if-${K0(t)}-`:typeof r=="string"?r:""}function AM(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 dM(r,t=""){return t===""?`hb-iconfont-svg-${K0(r)}`:`hb-iconfont-svg-${K0(`${r}\0${t}`)}`}function gM(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 Eie(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=pM(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function Bie(r){const t=[],e=/<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;let n;for(;(n=e.exec(r))!==null;)t.push(n[1]);const i=pM(t),a=i?t.map(o=>o.slice(i.length)):t.slice();return{prefix:i,names:a}}function pM(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 kie(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 Qie(r,t,e=""){if(typeof document>"u")return Promise.resolve();const n=e===""?`hb-iconfont-js-${K0(t)}`:`hb-iconfont-js-${K0(`${t}\0${e}`)}`;if(document.getElementById(n))return Promise.resolve();const i=dM(t,e);if(document.getElementById(i))return Promise.resolve();const a=gM(r,i);return new Promise((o,s)=>{const l=new Blob([a],{type:"text/javascript"}),c=URL.createObjectURL(l),u=document.createElement("script");u.id=n,e&&u.setAttribute("data-hb-iconfont-scope",e),u.async=!0,u.onload=()=>{URL.revokeObjectURL(c),o()},u.onerror=()=>{URL.revokeObjectURL(c),s(new Error(`[HbLibIcon] iconfont JS 脚本执行失败:${t}`))},u.src=c,document.head.appendChild(u)})}function eb(r,t="font",e){if(!r){const c=t==="font"?uB:fM;r=Cie?.cssUrl||c}const n=L.ref(""),i=L.ref(""),a=L.ref([]),o=L.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"&&hM(f)){try{const A=await(await fetch(f)).text();if(u!==s)return;const d=wie(e?.symbolIdScope,f),g=AM(A,d),{prefix:y,names:v}=Bie(g);if(await Qie(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();kie(A,"hb-iconfont-"+f);const{baseClass:d,prefix:g,names:y}=Eie(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 L.watch(()=>L.toValue(r),l,{immediate:!0}),{iconBaseClass:n,iconPrefix:i,iconClasses:a,iconMode:o}}const xie={class:"hb-icon-list"},_ie=["onClick"],Sie={key:1,class:"hb-icon-list__symbol","aria-hidden":"true"},Die=["href"],Rie={class:"hb-icon-list__name"},hB=ki(L.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=L.computed(()=>n.cssUrl||""),{iconBaseClass:o,iconPrefix:s,iconClasses:l,iconMode:c}=eb(a,n.mode),u=L.ref(n.selected);L.watch(()=>n.selected,h=>{u.value=h});const f=h=>{u.value=h,i("select",h),i("update:selected",h)};return(h,A)=>(L.openBlock(),L.createElementBlock("div",xie,[L.renderSlot(h.$slots,"iconList",{iconClasses:L.unref(l),iconBaseClass:L.unref(o),iconPrefix:L.unref(s),iconMode:L.unref(c)},()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(L.unref(l),d=>(L.openBlock(),L.createElementBlock("div",{key:d,class:L.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":d===u.value}]),onClick:g=>f(d)},[L.unref(c)==="font"?(L.openBlock(),L.createElementBlock("i",{key:0,class:L.normalizeClass([L.unref(o),L.unref(s)+d])},null,2)):(L.openBlock(),L.createElementBlock("svg",Sie,[L.createElementVNode("use",{href:"#"+e(L.unref(s)+d)},null,8,Die)])),L.createElementVNode("span",Rie,L.toDisplayString(d),1)],10,_ie))),128))],!0)]))}}),[["__scopeId","data-v-35e114dd"]]),AB=hB;AB.install=(r,t)=>{r.provide(fB,{cssUrl:t?.cssUrl??uB,mode:t?.mode??"font"});const e=hB.name??"HbLibIconList";r.component(e,hB)};const Tie=["href"],ih=ki(L.defineComponent({name:"HbLibIcon",__name:"icon",props:{name:{default:""},className:{default:""},width:{default:void 0},height:{default:void 0},iMode:{default:void 0},iBaseClass:{default:""},iPrefix:{default:""},initFillColor:{default:""},hover:{type:[Boolean,String],default:!1},hoverBgColor:{default:void 0}},setup(r){const t=r,e=L.computed(()=>t.iBaseClass&&L.ref(t.iBaseClass)||L.inject("iconBaseClass")||L.ref("")),n=L.computed(()=>t.iPrefix&&L.ref(t.iPrefix)||L.inject("iconPrefix")||L.ref("")),i=L.computed(()=>t.iMode&&L.ref(t.iMode)||L.inject("iconMode")||L.ref("")),a=L.inject(Jo,null),o=L.computed(()=>{const v=a?.HbLibIcon,p=t.width??v?.width??27,m=t.height??v?.height??27;let b={display:"flex",alignItems:"center",justifyContent:"center",...y()};return i.value.value==="font"?b={...b,fontSize:`${p}px`,width:`${p}px`,height:`${m}px`}:b={...b,width:`${p}px`,height:`${m}px`},b}),s=L.computed(()=>t.hover||a?.HbLibIcon?.hoverColor),l=L.computed(()=>t.initFillColor||a?.HbLibIcon?.initFillColor),c=L.computed(()=>!!(t.hoverBgColor||a?.HbLibIcon?.hoverBgColor)),u=L.computed(()=>t.hoverBgColor||a?.HbLibIcon?.hoverBgColor),f=L.computed(()=>t.name?n.value.value&&t.name.startsWith(n.value.value)?t.name:`${n.value.value}${t.name}`:""),h=L.computed(()=>{const v=["hb-lib-icon__font",e.value.value,f.value];return t.hover&&v.push("hb-icon-hover"),v});function A(v){return encodeURIComponent(v)}const d=L.computed(()=>{const v=f.value;return v?`#${A(v)}`:""}),g=/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/,y=()=>{const v=t.hover.toString(),p={};return g.test(v)?p["--color-hover"]=v:v.includes("--")?p["--color-hover"]=`var(${v})`:p["--color-hover"]="var(--hb-color-primary-hover)",u.value&&(p["--color-hover-bg"]=u.value),p};return(v,p)=>(L.openBlock(),L.createElementBlock("span",{class:L.normalizeClass([{"hover-bg-color":c.value},t.className]),style:L.normalizeStyle(o.value)},[i.value.value==="font"?(L.openBlock(),L.createElementBlock("i",{key:0,class:L.normalizeClass(["iconfont",[h.value,{"hb-icon-hover":s.value}]]),style:L.normalizeStyle({color:l.value})},null,6)):(L.openBlock(),L.createElementBlock("svg",{key:1,class:L.normalizeClass(["hb-lib-icon__symbol",{"hb-icon-hover":s.value}]),"aria-hidden":"true",style:L.normalizeStyle({fill:l.value})},[L.createElementVNode("use",{href:d.value},null,8,Tie)],6))],6))}}),[["__scopeId","data-v-5deecfbe"]]);ih.install=(r,t)=>{const e=t?.iconURL||void 0;if(e){const i=e.includes("js")?"symbol":"font",{iconBaseClass:a,iconMode:o,iconClasses:s,iconPrefix:l}=eb(e,i);r.provide("iconBaseClass",a),r.provide("iconMode",o),r.provide("iconClasses",s),r.provide("iconPrefix",l)}const n=t?.name||"HbLibIcon";r.component(n,ih)};const vM=L.defineComponent({__name:"iconBox",props:{url:{},mode:{},symbolIdScope:{type:[String,Boolean]},width:{},height:{},initFillColor:{},hover:{type:[Boolean,String]},hoverBgColor:{}},setup(r){const t=L.inject(Jo),e=r,{iconClasses:n,iconPrefix:i,iconMode:a,iconBaseClass:o}=eb(e.url,e.mode??"symbol",{symbolIdScope:e.symbolIdScope});L.provide("iconPrefix",i),L.provide("iconMode",a),L.provide("iconClasses",n),L.provide("iconBaseClass",o);const s={};return e.width!==void 0&&(s.width=e.width),e.height!==void 0&&(s.height=e.height),e.initFillColor!==void 0&&(s.initFillColor=e.initFillColor),e.hover!==void 0&&(s.hover=e.hover),e.hoverBgColor!==void 0&&(s.hoverBgColor=e.hoverBgColor),L.provide(Jo,{...t,HbLibIcon:{...t?.HbLibIcon,...s}}),(l,c)=>L.renderSlot(l.$slots,"default")}}),Mie={class:"hb-lib-table-act-box"},Fie=["onClick"],Lie={href:"javascript:;",class:"hb-lib-table-main-action"},Nie=["onClick"],Oie={href:"javascript:;",class:"hb-lib-table-more-action"},Pie=["onClick"],Gie={href:"javascript:;"},Uie=["onClick"],Hie={class:"hb-lib-table-confirm-modal-content"},yM=Ii(ki(L.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{hideDomList:{},filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=Cs.useI18n(),i=L.ref(!1),a=L.ref(!1),o=L.ref(null),s=L.ref({}),l=b=>!!b&&(typeof b=="object"||typeof b=="function")&&typeof b.then=="function",c=b=>!!s.value[b.key],u=(b,C)=>{s.value={...s.value,[b.key]:C}},f=L.computed(()=>e.actions.filter(b=>b.condition!==void 0?b.condition:!0)),h=L.computed(()=>f.value.slice(0,e.buttonDisplaysQuantity)),A=L.computed(()=>d(f.value.slice(e.buttonDisplaysQuantity)));function d(b){if(e.filterPermission)return e.filterPermission(b);let C=[],w=[];return C=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(C)||b.length===0?(C=[],[]):(C=C.filter(B=>B.type!="2"),b.forEach(B=>{(!B.permissionsTag||C.findIndex(k=>k.action===B.permissionsTag)!==-1)&&w.push(B)}),w)}const g=async b=>{if(b.needLoading){if(c(b))return;u(b,!0);const C=()=>u(b,!1),w=b.handler.length>=2;try{const B=b.handler(e.record,C);l(B)?(await B,C()):w||C()}catch(B){throw C(),B}}else b.handler(e.record)},y=b=>{o.value=b,i.value=!0},v=async()=>{if(o.value){a.value=!0;try{await g(o.value),i.value=!1,o.value=null}finally{a.value=!1}}},p=()=>{i.value=!1,o.value=null},m=L.computed(()=>o.value?{title:o.value.confirmTitle,content:o.value.confirmContent||o.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return t({ADropdown:Cr.Dropdown,AMenu:Cr.Menu,AMenuItem:Cr.MenuItem,APopconfirm:Cr.Popconfirm,AModal:Cr.Modal,DownOutlined:io.DownOutlined}),(b,C)=>{const w=L.resolveComponent("a-divider"),B=L.resolveDirective("has");return L.openBlock(),L.createElementBlock("div",Mie,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(h.value,(k,Q)=>(L.openBlock(),L.createElementBlock(L.Fragment,{key:Q},[k.needConfirm?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[k.confirmType==="modal"?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[L.withDirectives((L.openBlock(),L.createElementBlock("a",{href:"javascript:;",class:"hb-lib-table-main-action",onClick:_=>y(k)},[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64))],8,Fie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?(L.openBlock(),L.createBlock(w,{key:0,type:"vertical"})):L.createCommentVNode("",!0)],64)):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createVNode(L.unref(Cr.Popconfirm),{title:k.confirmTitle,onConfirm:_=>g(k)},{default:L.withCtx(()=>[L.withDirectives((L.openBlock(),L.createElementBlock("a",Lie,[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64))])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),A.value&&A.value.length>0||Q!==h.value.length-1?(L.openBlock(),L.createBlock(w,{key:0,type:"vertical"})):L.createCommentVNode("",!0)],64))],64)):k.slot?L.renderSlot(b.$slots,k.slot,{key:1,item:k,haveMore:A.value&&A.value.length>0||Q!==h.value.length-1},void 0,!0):(L.openBlock(),L.createElementBlock(L.Fragment,{key:2},[L.withDirectives((L.openBlock(),L.createElementBlock("a",{href:"javascript:;",class:L.normalizeClass(["hb-lib-table-main-action",{"is-loading":c(k)}]),onClick:_=>g(k)},[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64)),c(k)?(L.openBlock(),L.createBlock(L.unref(io.LoadingOutlined),{key:2,spin:"",class:"hb-lib-table-action-loading-icon"})):L.createCommentVNode("",!0)],10,Nie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?L.withDirectives((L.openBlock(),L.createBlock(w,{key:0,type:"vertical"},null,512)),[[B,k.permissionsTag||null]]):L.createCommentVNode("",!0)],64))],64))),128)),A.value&&A.value.length>0?(L.openBlock(),L.createBlock(L.unref(Cr.Dropdown),{key:0},{overlay:L.withCtx(()=>[L.createVNode(L.unref(Cr.Menu),null,{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(A.value,(k,Q)=>L.withDirectives((L.openBlock(),L.createBlock(L.unref(Cr.MenuItem),{key:Q},{default:L.withCtx(()=>[k.needConfirm?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[k.confirmType==="modal"?L.withDirectives((L.openBlock(),L.createElementBlock("a",{key:0,href:"javascript:;",onClick:_=>y(k)},[L.createTextVNode(L.toDisplayString(k.label),1)],8,Pie)),[[B,k.permissionsTag||null]]):L.withDirectives((L.openBlock(),L.createBlock(L.unref(Cr.Popconfirm),{key:1,title:k.confirmTitle,onConfirm:_=>g(k)},{default:L.withCtx(()=>[L.withDirectives((L.openBlock(),L.createElementBlock("a",Gie,[L.createTextVNode(L.toDisplayString(k.label),1)])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[B,k.permissionsTag||null]])],64)):L.withDirectives((L.openBlock(),L.createElementBlock("a",{key:1,href:"javascript:;",class:L.normalizeClass({"is-loading":c(k)}),onClick:_=>g(k)},[k.icon?(L.openBlock(),L.createBlock(L.unref(ih),{key:0,name:k.icon},null,8,["name"])):(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createTextVNode(L.toDisplayString(k.label),1)],64)),c(k)?(L.openBlock(),L.createBlock(L.unref(io.LoadingOutlined),{key:2,spin:"",class:"hb-lib-table-action-loading-icon"})):L.createCommentVNode("",!0)],10,Uie)),[[B,k.permissionsTag||null]])]),_:2},1024)),[[B,k.permissionsTag||null]])),128))]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("a",Oie,[L.createTextVNode(L.toDisplayString(b.$t("hbLibComp.hbTableAct.more"))+" ",1),L.createVNode(L.unref(io.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):L.createCommentVNode("",!0),L.createVNode(L.unref(Cr.Modal),{visible:i.value,title:m.value.title,"confirm-loading":a.value,onOk:v,onCancel:p},{default:L.withCtx(()=>[L.createElementVNode("p",Hie,L.toDisplayString(m.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-940cb196"]])),mM=r=>({tableWidth:L.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 jie=typeof global=="object"&&global&&global.Object===Object&&global,Yie=typeof self=="object"&&self&&self.Object===Object&&self,IM=jie||Yie||Function("return this")(),tb=IM.Symbol,bM=Object.prototype,Wie=bM.hasOwnProperty,Jie=bM.toString,q0=tb?tb.toStringTag:void 0;function Vie(r){var t=Wie.call(r,q0),e=r[q0];try{r[q0]=void 0;var n=!0}catch{}var i=Jie.call(r);return n&&(t?r[q0]=e:delete r[q0]),i}var zie=Object.prototype,Kie=zie.toString;function qie(r){return Kie.call(r)}var Xie="[object Null]",Zie="[object Undefined]",CM=tb?tb.toStringTag:void 0;function $ie(r){return r==null?r===void 0?Zie:Xie:CM&&CM in Object(r)?Vie(r):qie(r)}function eae(r){return r!=null&&typeof r=="object"}var tae="[object Symbol]";function rae(r){return typeof r=="symbol"||eae(r)&&$ie(r)==tae}var nae=/\s/;function iae(r){for(var t=r.length;t--&&nae.test(r.charAt(t)););return t}var aae=/^\s+/;function oae(r){return r&&r.slice(0,iae(r)+1).replace(aae,"")}function dB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var wM=NaN,sae=/^[-+]0x[0-9a-f]+$/i,lae=/^0b[01]+$/i,cae=/^0o[0-7]+$/i,uae=parseInt;function EM(r){if(typeof r=="number")return r;if(rae(r))return wM;if(dB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=dB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=oae(r);var e=lae.test(r);return e||cae.test(r)?uae(r.slice(2),e?2:8):sae.test(r)?wM:+r}var gB=function(){return IM.Date.now()},fae="Expected a function",hae=Math.max,Aae=Math.min;function BM(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(fae);t=EM(t)||0,dB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?hae(EM(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?Aae(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=gB();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(gB())}function C(){var w=gB(),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 dae={class:"hb-lib-table-setting-box"},gae={key:0,class:"hb-lib-table-drag-item"},pae={key:0,class:"hb-lib-table-drag-item-act"},vae=["onClick"],yae=["onClick"],mae={class:"hb-lib-table-set-btn-group"},Iae={class:"select-all-container",style:{"margin-right":"10px"}},pB=Ii(ki(L.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}=Cs.useI18n(),i=r,a=L.inject(Jo,{}),o=L.ref([]),s=L.computed(()=>c.value.filter(Q=>Q.checked));L.ref([]);const l=L.ref(!1),c=L.ref([]),u=L.ref(null),f=L.computed(()=>s.value.length>0&&s.value.length===o.value.length),h=L.computed(()=>s.value.length>0&&s.value.length<o.value.length),A=Q=>{u.value=Q.oldIndex},d=Q=>{const _=Q.newIndex;if(o.value.some(P=>P.fixed==="left"||P.fixed==="right"||P.fixed===!0)){const P=o.value.filter(M=>M.fixed==="left").length,W=o.value.length-o.value.filter(M=>M.fixed==="right").length;if((P>0&&_<P||W<o.value.length&&_>=W)&&(Cr.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),u.value!==null)){const M=c.value.splice(_,1)[0];c.value.splice(u.value,0,M)}}u.value=null},g=Q=>{Q.target.checked?c.value.forEach(F=>F.checked=!0):c.value.forEach(F=>{F.dataIndex!=="action"&&F.dataIndex!=="actions"&&(F.checked=!1)})},y=Q=>{if(Q.title&&Q.title.tag)return w(Q.title);if(typeof Q.title=="function"){let _=Q.title();return typeof _=="string"?_:Q.titleText||Q.title2}return Q.title||Q.title2},v=Q=>Q.map(_=>({..._,label:y(_),value:_.dataIndex,checked:_.checked||_.checked===void 0})),p=()=>{o.value=v(i.localColumns),c.value=[...o.value];let Q=[];i.tableColumns.forEach(function(_){Q.push(_.dataIndex)})},m=(Q,_)=>{_?Q.checked=!0:Q.checked=!1},b=()=>{o.value=[...c.value],e("on-get-columns",o.value),l.value=!1},C=()=>{o.value=v(i.tableColumns),c.value=[...o.value];let Q=[];i.tableColumns.forEach(function(_){Q.push(_.dataIndex)})},w=Q=>Q.children[0].text,B=Q=>{delete Q.fixed;const _=c.value.findIndex(F=>F.value===Q.value);if(_!==-1){let F=-1;for(let P=0;P<c.value.length;P++)c.value[P].fixed==="left"&&(F=P);if(F!==-1&&_!==F+1){const P=[...c.value],[W]=P.splice(_,1);P.splice(F+1,0,W),c.value=P}}},k=Q=>{const _=c.value.findIndex(F=>F.value===Q.value);if(_!==-1){let F=-1;for(let J=0;J<c.value.length;J++)c.value[J].fixed==="left"&&(F=J);const P=[...c.value],[W]=P.splice(_,1);W.fixed="left";const M=F===-1?0:F+1;P.splice(M,0,W),c.value=P}};return L.watch(()=>i.tableColumns,()=>{C()},{immediate:!0,deep:!0}),(Q,_)=>{const F=L.resolveComponent("a-tooltip"),P=L.resolveComponent("a-button"),W=L.resolveComponent("HbLibIcon");return L.openBlock(),L.createElementBlock("div",dae,[L.createVNode(L.unref(Cr.Popover),{visible:l.value,"onUpdate:visible":_[1]||(_[1]=M=>l.value=M),title:L.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:L.withCtx(()=>[L.createVNode(L.unref(ZI),{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=M=>c.value=M),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:A,onEnd:d},{item:L.withCtx(({element:M})=>[M.fixed!=="right"?(L.openBlock(),L.createElementBlock("div",gae,[L.createVNode(L.unref(Cr.Checkbox),{checked:M.checked,onChange:J=>m(M,J.target.checked)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(M.label),1)]),_:2},1032,["checked","onChange"]),M.checked?(L.openBlock(),L.createElementBlock("section",pae,[L.createElementVNode("span",{class:L.normalizeClass(M.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),M.fixed?(L.openBlock(),L.createBlock(F,{key:0},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:L.withCtx(()=>[L.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:J=>B(M)},[..._[2]||(_[2]=[L.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"},[L.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,vae)]),_:2},1024)):L.createCommentVNode("",!0),M.fixed?L.createCommentVNode("",!0):(L.openBlock(),L.createBlock(F,{key:1},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:L.withCtx(()=>[L.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:J=>k(M)},[..._[3]||(_[3]=[L.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"},[L.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,yae)]),_:2},1024))])):L.createCommentVNode("",!0)])):L.createCommentVNode("",!0)]),_:1},8,["modelValue"]),L.createElementVNode("div",mae,[L.createElementVNode("div",Iae,[L.createVNode(L.unref(Cr.Checkbox),{checked:f.value,indeterminate:h.value,onChange:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(L.openBlock(),L.createBlock(P,{key:0,style:{"margin-right":"6px"},onClick:p},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):L.createCommentVNode("",!0),L.createVNode(P,{type:"primary",onClick:b},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:L.withCtx(()=>[L.createVNode(F,{title:L.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:L.withCtx(()=>[L.createVNode(W,{name:"icon-shezhi",width:L.unref(a).HbLibListPageContainer?.listPageIcon?.width,height:L.unref(a).HbLibListPageContainer?.listPageIcon?.height,"init-fill-color":L.unref(a).HbLibListPageContainer?.listPageIcon?.initFillColor,hover:L.unref(a).HbLibListPageContainer?.listPageIcon?.hoverColor,"hover-bg-color":L.unref(a).HbLibListPageContainer?.listPageIcon?.hoverBgColor},null,8,["width","height","init-fill-color","hover","hover-bg-color"])]),_:1},8,["title"])]),_:1},8,["visible","title"])])}}}),[["__scopeId","data-v-64ab7718"]])),bae={key:0,class:"hb-lib-list-table-act"},Cae={class:"empty-container"},wae={key:1},Eae={key:2},kM=Ii(ki(L.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean},isUnFixTbHeight:{type:Boolean},showColumnSet:{type:Boolean},columnSetLocalColumns:{default:()=>[]}},emits:["change","resizeCol","on-get-columns","refresh"],setup(r,{emit:t}){const e=L.inject(Jo,{}),n=t,{t:i}=Cs.useI18n(),a=r,o=L.ref([]),s=L.inject("HB_LIST_PAGE_CONTAINER"),l=L.computed(()=>o.value),{tableWidth:c}=mM(l),u=L.ref(c.value),f=L.ref(a.columns),h=L.computed(()=>{const F=a.columnSetLocalColumns?.length?a.columnSetLocalColumns:a.columns;return p(F)}),A=L.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1),d=F=>{const P=m(F);f.value=F,o.value=y(b(P)),u.value=c.value,n("on-get-columns",P),n("refresh")},g=F=>typeof F=="function"?F():F||"",y=F=>{if(e.HbLibListPageContainer?.listPageBtnPlacement!=="top"||!F.length)return F;const P=F.length-1;return F.map((W,M)=>{if(M!==P)return W;const J=W.title;return{...W,title:()=>L.h("div",{class:"hb-lib-list-table-title-set"},[L.h("span",{class:"hb-lib-list-table-title-set__text"},[g(J)]),L.h(pB,{tableColumns:f.value,localColumns:h.value,"onOn-get-columns":d,onOnGetColumns:d})])}})},v=F=>{if(!(e.HbLibListPageContainer?.listPageBtnPlacement!=="top"||!F.length))return F[F.length-1]},p=F=>e.HbLibListPageContainer?.listPageBtnPlacement!=="top"?F:F.length<=1?[]:F.slice(0,-1),m=F=>{const P=v(a.columns);return P?[...F,{...P,checked:!0}]:F},b=F=>F.filter(W=>W!=null&&W.checked).map(W=>{const M=W.align||e.listTable?.align||"center",J={...W,title:W.title||W.label,align:M};J.ellipsis&&!J.needTooltip&&(J.needTooltip=!0);const G=a.defaultWidth||e.listTable?.defaultColWidth||150;if(!J.width)J.width=G;else if(typeof J.width=="string"){const N=parseInt(J.width,10);J.width=isNaN(N)?G:N}return J.resizable===void 0&&(J.resizable=!0),J});L.watch(()=>[a.columns],([F])=>{const P=p(F);f.value=P;const W=b(e.HbLibListPageContainer?.listPageBtnPlacement==="top"?m(P):F);o.value=y(W),u.value=c.value},{immediate:!0,deep:!0});const C=BM(()=>{n("resizeCol",o.value)},e.listTable?.colSaveTimeOut||800),w=(F,P)=>{if(P){const W=typeof F=="string"?parseInt(F,10):F;P.width=isNaN(W)?e.listTable?.defaultColWidth||150:W,L.nextTick(()=>{C()})}},B=(F,P,W)=>{F?.current&&n("change",F,P,W)},k=(F,P="YYYY-MM-DD HH:mm:ss")=>F?$I(F).format(P):"",Q=(F,P)=>F&&P[F]||"",_=(F,P=e.listTable?.ellipsisNumber||20)=>F?F.length>P?`${F.substring(0,P)}...`:F:"";return(F,P)=>{const W=L.resolveComponent("a-empty"),M=L.resolveComponent("a-tooltip"),J=L.resolveComponent("HbLibCopy"),G=L.resolveComponent("a-tag"),N=L.resolveComponent("a-table");return L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:L.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[F.$slots.tableActLeft?(L.openBlock(),L.createElementBlock("section",bae,[L.renderSlot(F.$slots,"tableActLeft",{},void 0,!0),L.renderSlot(F.$slots,"tableActRight",{},void 0,!0)])):L.createCommentVNode("",!0),L.createVNode(N,L.mergeProps(F.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:A.value?{x:u.value}:{x:u.value,y:L.unref(s)?.tableHeight},onResizeColumn:w,onChange:B}),L.createSlots({emptyText:L.withCtx(()=>[L.createElementVNode("div",Cae,[L.createVNode(W,{description:L.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[F.$slots.headerCell?{name:"headerCell",fn:L.withCtx(({column:x})=>[L.renderSlot(F.$slots,"headerCell",{column:x,title:x.title},()=>[L.createTextVNode(L.toDisplayString(x.title),1)],!0)]),key:"0"}:void 0,F.$slots.bodyCell?{name:"bodyCell",fn:L.withCtx(({column:x,record:S,index:j,text:Y})=>[L.renderSlot(F.$slots,"bodyCell",{column:x,record:S,index:j,text:Y},void 0,!0),x&&x.needTooltip&&!x.needCopy?(L.openBlock(),L.createBlock(M,{key:0,placement:r.tooltipPlacement},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(S[x.dataIndex]),1)]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(S[x.dataIndex]),1)]),_:2},1032,["placement"])):x&&x.needCopy&&!x.needTooltip?(L.openBlock(),L.createElementBlock("div",wae,[L.createTextVNode(L.toDisplayString(S[x.dataIndex])+" ",1),L.createVNode(J,{"cp-text":S[x.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):L.createCommentVNode("",!0),x&&x.needTooltip&&x.needCopy?(L.openBlock(),L.createElementBlock("div",Eae,[L.createVNode(M,{placement:r.tooltipPlacement},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(S[x.dataIndex]),1)]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(_(S[x.dataIndex],x.strLen)),1)]),_:2},1032,["placement"]),L.createVNode(J,{"cp-text":S[x.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):x&&x.needFormat?(L.openBlock(),L.createElementBlock(L.Fragment,{key:3},[L.createTextVNode(L.toDisplayString(k(S[x.dataIndex],x.format)),1)],64)):x&&x.tags?(L.openBlock(),L.createElementBlock(L.Fragment,{key:4},[Q(S[x.dataIndex],x.tags)?(L.openBlock(),L.createBlock(G,{key:0,color:Q(S[x.dataIndex],x.tags)},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(S[x.dataIndex]),1)]),_:2},1032,["color"])):L.createCommentVNode("",!0)],64)):L.createCommentVNode("",!0)]),key:"1"}:void 0,F.$slots.expandedRowRender?{name:"expandedRowRender",fn:L.withCtx(({record:x,index:S})=>[L.renderSlot(F.$slots,"expandedRowRender",{record:x,index:S},void 0,!0)]),key:"2"}:void 0,F.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:L.withCtx(({column:x})=>[L.renderSlot(F.$slots,"customFilterDropdown",{column:x},void 0,!0)]),key:"3"}:void 0,F.$slots.customFilterIcon?{name:"customFilterIcon",fn:L.withCtx(({column:x})=>[L.renderSlot(F.$slots,"customFilterIcon",{column:x},void 0,!0)]),key:"4"}:void 0,F.$slots.expandIcon?{name:"expandIcon",fn:L.withCtx(({expanded:x,record:S,index:j})=>[L.renderSlot(F.$slots,"expandIcon",{expanded:x,record:S,index:j},void 0,!0)]),key:"5"}:void 0,F.$slots.footer?{name:"footer",fn:L.withCtx(()=>[L.renderSlot(F.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,F.$slots.summary?{name:"summary",fn:L.withCtx(()=>[L.renderSlot(F.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,F.$slots.title?{name:"title",fn:L.withCtx(()=>[L.renderSlot(F.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-82b1e383"]])),QM=Ii(ki(L.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:L.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=L.useAttrs(),i=L.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=L.ref(),o=L.useModel(r,"value"),s=L.computed(()=>e.options??[]),l=L.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)=>(L.openBlock(),L.createBlock(L.unref(Cr.Select),L.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:L.withCtx(()=>[d.$slots.default?L.renderSlot(d.$slots,"default",{key:0},void 0,!0):(L.openBlock(!0),L.createElementBlock(L.Fragment,{key:1},L.renderList(s.value,y=>(L.openBlock(),L.createBlock(L.unref(Cr.SelectOption),L.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:L.withCtx(()=>[f(y)?(L.openBlock(),L.createBlock(L.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:L.withCtx(()=>[L.createElementVNode("span",{class:L.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},L.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(L.openBlock(),L.createElementBlock("span",{key:1,class:L.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},L.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Bae={class:"ant-upload-drag-icon"},kae={class:"ant-upload-text"},Qae={style:{color:"#ff5000"}},xae={class:"ant-upload-hint"},_ae={key:0,class:"hb_import_btn"},Sae=["href"],xM=Ii(ki(L.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}=Cs.useI18n(),n=L.ref(),i=r,a=L.ref(!1),o=L.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=L.resolveComponent("a-upload-dragger"),g=L.resolveComponent("a-form-item"),y=L.resolveComponent("a-form"),v=L.resolveComponent("a-modal"),p=L.resolveComponent("a-button");return L.openBlock(),L.createElementBlock(L.Fragment,null,[L.createVNode(v,L.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:L.withCtx(()=>[L.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:L.withCtx(()=>[L.createVNode(g,{name:"fileList",label:L.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:L.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:L.withCtx(()=>[L.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:L.withCtx(()=>[L.createElementVNode("p",Bae,[L.createVNode(L.unref(io.PlusCircleOutlined),{style:{"font-size":"37px"}})]),L.createElementVNode("p",kae,[L.createTextVNode(L.toDisplayString(L.unref(e)("hbLibComp.HbImportFile.uploadText")),1),L.createElementVNode("span",Qae,L.toDisplayString(L.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),L.createElementVNode("p",xae,L.toDisplayString(L.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+L.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(L.openBlock(),L.createElementBlock("p",_ae,[L.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},L.toDisplayString(L.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,Sae)])):L.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),L.renderSlot(h.$slots,"btn",{},()=>[L.createVNode(p,{type:"primary",onClick:f},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Dae={class:"hb_lib_log_modal_content"},Rae={class:"log_remark"},_M=Ii(ki(L.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}=Cs.useI18n(),i=L.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=L.computed(()=>a.columns||o),l=L.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=L.computed(()=>!!i.title),u=L.ref(!1),f=L.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}});L.watch(()=>a.pagination,p=>{p&&(f.pagination={...f.pagination,...p})},{deep:!0,immediate:!0});const h=()=>{const p={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:a.params};a.getLogData&&(u.value=!0,a.getLogData(p).then(m=>{Number(m.code)==200?(f.pagination.total=Number(m.data.total),f.list=m.data[a.dataStr]||[]):Cr.message.error(m.message)}).finally(()=>{u.value=!1}))},A=p=>{f.pagination.current=p.current,f.pagination.pageSize=p.pageSize,h()},d=()=>{f.list=[],f.pagination.current=1,v("update:visible",!1)},g=()=>{v("update:visible",!0)},y=(p,m="YYYY-MM-DD HH:mm:ss")=>p?$I(p).format(m):"",v=e;return L.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=L.resolveComponent("a-tooltip"),C=L.resolveComponent("HbLibCopy"),w=L.resolveComponent("a-table"),B=L.resolveComponent("a-button"),k=L.resolveComponent("HbLibModal");return L.openBlock(),L.createElementBlock(L.Fragment,null,[L.createVNode(k,L.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}),L.createSlots({footer:L.withCtx(()=>[L.createVNode(B,{onClick:d},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(L.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:L.withCtx(()=>[L.createElementVNode("div",Dae,[L.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},L.createSlots({bodyCell:L.withCtx(({column:Q,record:_})=>[Q&&Q.needTooltip?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[Q.needTooltip?(L.openBlock(),L.createBlock(b,{key:0},{title:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(_[Q.dataIndex]),1)]),default:L.withCtx(()=>[L.createTextVNode(" "+L.toDisplayString(_[Q.dataIndex]),1)]),_:2},1024)):L.createCommentVNode("",!0)],64)):L.createCommentVNode("",!0),Q&&Q.needCopy?(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createElementVNode("div",Rae,L.toDisplayString(_[Q.dataIndex]),1),L.createVNode(C,{"cp-text":_[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):L.createCommentVNode("",!0),Q&&Q.needFormat?(L.openBlock(),L.createElementBlock(L.Fragment,{key:2},[L.createTextVNode(L.toDisplayString(y(_[Q.dataIndex],Q.operateTime)),1)],64)):L.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:L.withCtx(({column:Q})=>[L.renderSlot(p.$slots,"headerCell",{column:Q},()=>[L.createTextVNode(L.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:L.withCtx(()=>[L.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?L.renderSlot(p.$slots,"default",{key:0},()=>[L.createVNode(B,{onClick:g},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(r.logBtnText),1)]),_:1})],!0):L.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3ab75993"]])),Tae={class:"hb_card"},Mae={key:0,class:"hb_card_header"},Fae={class:"hb_fix"},Lae={class:"hb_card_header-title"},Nae={class:"hb_card_header-action"},Oae={class:"hb_card_body"},SM=Ii(ki(L.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number,default:0}},setup(r){const t=L.inject(Jo),e=r,n=L.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(L.openBlock(),L.createElementBlock("div",L.mergeProps({class:"hb_card_wrapper"},i.$attrs),[L.createElementVNode("div",{class:L.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[L.createElementVNode("div",Tae,[r.cardTitle?(L.openBlock(),L.createElementBlock("div",Mae,[L.createElementVNode("div",Fae,[L.createElementVNode("span",Lae,[L.renderSlot(i.$slots,"cardTitle",{},()=>[L.createTextVNode(L.toDisplayString(r.cardTitle),1)],!0)]),L.createElementVNode("div",Nae,[L.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):L.createCommentVNode("",!0),L.createElementVNode("div",Oae,[L.createElementVNode("section",{class:L.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:L.normalizeStyle(n.value)},[L.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-220e891f"]])),Pae=["onClick"],Gae={class:"step"},Uae={key:0,class:"line"},Hae=["title"],DM=Ii(ki(L.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=L.ref(""),n=t.offsetTop??160,i=L.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 L.onMounted(()=>{a().addEventListener("scroll",s),s()}),L.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(L.openBlock(),L.createElementBlock("div",{class:"anchors",style:L.normalizeStyle({top:`${L.unref(n)}px`})},[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(i.value,(u,f)=>(L.openBlock(),L.createElementBlock("div",{key:u.target,class:L.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[L.createElementVNode("div",Gae,[f!==i.value.length-1?(L.openBlock(),L.createElementBlock("div",Uae)):L.createCommentVNode("",!0),c[0]||(c[0]=L.createElementVNode("div",{class:"circle"},null,-1))]),L.createElementVNode("span",{class:"title",title:u.title},L.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,Hae)],10,Pae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),jae={class:"hb_detail_top_act_left"},Yae={key:1,class:"hb_detail_top_wrapper_sticky"},Wae={class:"hb_detail_top_act"},Jae={key:0,class:"hb_detail_all_info"},Vae={class:"hb_detail_all_info_left"},zae={class:"hb_detail_info_title"},Kae={key:0,class:"hb_detail_info_content"},qae={class:"create_by"},Xae={class:"hb_detail_all_info_right"},Zae={class:"hb_edit_detail_content_wrapper"},$ae={class:"hb_detail_content"},eoe={class:"hb-back-top-inner"},RM=Ii(ki(L.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1},hbTopActionsTop:{type:[Number,String]},hbTopActionsLeft:{type:[Number,String]}},setup(r){const{t}=Cs.useI18n(),e=r,n=L.inject(Jo),i=()=>{e.backFn?e.backFn():window.history.back()},a=n?.HbLibDetailBox?.hbTopActionsTop||112,o=n?.HbLibDetailBox?.hbTopActionsLeft||160,s=M=>M.trim().replace(/^(['"])(.*)\1$/,"$2"),l=M=>typeof M=="string"&&(M.includes("#")||M.includes(".")),c=M=>{try{const J=document.querySelector(s(M));return J instanceof HTMLElement?J:null}catch{return null}},u=L.computed(()=>e.hbTopActionsLeft||o),f=L.computed(()=>e.hbTopActionsTop||a),h=M=>{let J=null;if(M==="top"?J=f.value:J=u.value,l(J)){const G=c(J);if(G)return M==="top"?G.offsetTop+G.offsetHeight:G.offsetLeft+G.offsetWidth}return typeof J=="number"&&J>0?J:0},A=L.ref(o);let d=null;const g=()=>{d&&(d.disconnect(),d=null)},y=()=>{const M=h("left");A.value=M},v=()=>{if(g(),!l(u.value)){y();return}const M=c(u.value);if(!M){y();return}A.value=M.offsetLeft+M.offsetWidth,d=new ResizeObserver(()=>{A.value=M.offsetLeft+M.offsetWidth}),d.observe(M)},p=L.computed(()=>h("top")),m=L.computed(()=>A.value),b=L.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),C=L.computed(()=>{const M={};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}:M}),w=()=>document.querySelector(e.container),B=L.ref(!1),k=L.ref(null),{top:Q}=uA.useElementBounding(k),_=L.computed(w),{y:F}=uA.useScroll(_);L.watch(F,M=>{B.value=M>Q.value},{immediate:!0});const P=M=>{document.querySelectorAll(".hb_card_body").forEach(G=>{G.querySelectorAll(".ant-descriptions-item-content span").forEach(x=>{x.textContent?.trim()||(x.textContent=M)})})};let W=null;return L.onMounted(()=>{L.nextTick(()=>{v()}),n?.HbLibDetailBox?.needSetDesDefault&&(W=setTimeout(()=>{P(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),L.watch(()=>e.hbTopActionsLeft,()=>{L.nextTick(()=>{v()})}),L.onUnmounted(()=>{g(),W&&clearTimeout(W)}),(M,J)=>{const G=L.resolveComponent("RollbackOutlined"),N=L.resolveComponent("a-divider"),x=L.resolveComponent("a-spin");return L.openBlock(),L.createBlock(x,{spinning:r.spinning},{default:L.withCtx(()=>[L.createElementVNode("div",{class:L.normalizeClass(["hb_detail_wrapper",C.value]),style:L.normalizeStyle({"--hb-detail-desc-label-width":C.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":C.value?.hb_need_set_desc_value_width+"px"})},[r.needTotalInfoBox?(L.openBlock(),L.createElementBlock("div",{key:0,style:L.normalizeStyle({top:p.value+"px",left:m.value+"px"}),class:L.normalizeClass(["hb_detail_top_act_sticky",B.value?"can_show":""])},[L.createElementVNode("div",jae,[L.createVNode(G,{style:{color:"#ff5000"}}),L.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},L.toDisplayString(L.unref(t)("hbLibComp.HbLibDetailBox.back")),1),L.createVNode(N,{type:"vertical"}),L.createElementVNode("span",null,L.toDisplayString(r.stickyTitle),1)]),J[0]||(J[0]=L.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],6)):L.createCommentVNode("",!0),r.needTotalInfoBox?(L.openBlock(),L.createElementBlock("div",Yae,[L.createElementVNode("div",Wae,[L.createVNode(G),L.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},L.toDisplayString(L.unref(t)("hbLibComp.HbLibDetailBox.back")),1),L.createVNode(N,{type:"vertical"}),L.createElementVNode("span",null,L.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(L.openBlock(),L.createElementBlock("div",Jae,[L.createElementVNode("aside",Vae,[L.renderSlot(M.$slots,"totalInfoLeft",{},()=>[L.createElementVNode("div",zae,L.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(L.openBlock(),L.createElementBlock("div",Kae,[L.createElementVNode("span",qae,L.toDisplayString(r.totalInfo.totalInfoSubTitle1)+L.toDisplayString(r.totalInfo.totalInfoSubVal1),1),L.createElementVNode("span",null,L.toDisplayString(r.totalInfo.totalInfoSubTitle2)+L.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):L.createCommentVNode("",!0)],!0)]),L.createElementVNode("aside",Xae,[L.renderSlot(M.$slots,"totalInfoRight",{},void 0,!0)])])):L.createCommentVNode("",!0)])):L.createCommentVNode("",!0),L.createElementVNode("div",Zae,[L.createElementVNode("div",$ae,[L.renderSlot(M.$slots,"detailContent",{},void 0,!0)])]),L.createVNode(L.unref(Cr.BackTop),{target:w,style:L.normalizeStyle({bottom:b.value+"px"})},{default:L.withCtx(()=>[L.createElementVNode("div",eoe,[L.createVNode(L.unref(io.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-2f184a2c"]])),TM=Ii(ki(L.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)=>BM(l,c),n=L.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=L.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 L.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})}),L.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=L.resolveComponent("a-button"),f=L.resolveComponent("a-space"),h=L.resolveComponent("a-affix"),A=L.resolveDirective("has");return L.openBlock(),L.createElementBlock("div",{class:"footer-affix-wrapper",style:L.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[L.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:L.withCtx(()=>[L.createElementVNode("div",{class:L.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[L.createVNode(f,null,{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(n.value,d=>L.withDirectives((L.openBlock(),L.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:L.withCtx(()=>[L.createTextVNode(L.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"]])),toe={class:"modal__detail-content"},MM=Ii(ki(L.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=L.computed({get:()=>i.visible,set:_=>n("update:visible",_)}),o=L.ref(null),s=L.computed(()=>({top:"10px",...i.modalStyle})),l=L.computed(()=>({overflow:"hidden",...i.modalStyle})),c=L.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=uA.useDraggable(o),A=L.ref(0),d=L.ref(0),g=L.ref(!1),y=L.ref(0),v=L.ref(0),p=L.ref(0),m=L.ref(0),b=L.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};L.watch(a,_=>{_?setTimeout(()=>{w()},50):(C&&clearTimeout(C),C=setTimeout(()=>{y.value=0,v.value=0,p.value=0,m.value=0},300))}),L.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const _=document.body.getBoundingClientRect(),F=o.value.getBoundingClientRect();b.value.right=_.width-F.width,b.value.bottom=_.height-F.height,p.value=y.value,m.value=v.value}g.value=!0}),L.watch(h,()=>{h||(g.value=!1)}),L.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=L.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return L.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(_,F)=>{const P=L.resolveComponent("a-spin"),W=L.resolveComponent("a-modal");return L.openBlock(),L.createBlock(W,L.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":F[0]||(F[0]=M=>a.value=M),"wrap-style":l.value,onOk:Q,onCancel:k},_.$attrs),L.createSlots({title:L.withCtx(()=>[L.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[L.renderSlot(_.$slots,"title",{},()=>[L.createTextVNode(L.toDisplayString(r.title),1)],!0)],512)]),modalRender:L.withCtx(({originVNode:M})=>[(L.openBlock(),L.createElementBlock("div",{key:a.value,style:L.normalizeStyle(B.value)},[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(M)))],4))]),default:L.withCtx(()=>[L.createVNode(P,{spinning:i.spinning},{default:L.withCtx(()=>[L.createElementVNode("div",{class:L.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:L.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[L.createElementVNode("div",toe,[L.renderSlot(_.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[_.$slots.footer?{name:"footer",fn:L.withCtx(()=>[L.renderSlot(_.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),roe={key:0,class:"hb_edit_header"},noe={class:"__detail-content"},ioe={key:1,class:"hb_edit_footer"},aoe={class:"hb-back-top-inner"},FM=Ii(ki(L.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=L.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=L.inject("GLOBAL_CONFIG_KEY"),a=L.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(L.openBlock(),L.createBlock(L.unref(Cr.Spin),{spinning:r.spinning},{default:L.withCtx(()=>[L.createElementVNode("div",L.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(L.openBlock(),L.createElementBlock("div",roe,[L.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):L.createCommentVNode("",!0),L.createElementVNode("div",{class:L.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[L.createElementVNode("div",noe,[L.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(L.openBlock(),L.createElementBlock("div",ioe,[L.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):L.createCommentVNode("",!0),L.createVNode(L.unref(Cr.BackTop),{target:n,style:L.normalizeStyle({bottom:a.value+"px"})},{default:L.withCtx(()=>[L.createElementVNode("div",aoe,[L.createVNode(L.unref(io.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),ooe={class:"hb_edit_header_left"},soe={class:"hb_edit_header_title"},loe={class:"hb_edit_header_right"},LM=Ii(ki(L.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}=Cs.useI18n(),e=r,n=sB.useRoute(),i=L.ref(0),a=L.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=L.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;L.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),L.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),L.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=L.resolveComponent("a-divider");return L.openBlock(),L.createElementBlock("div",{class:"hb_edit_header",style:L.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[L.createElementVNode("aside",ooe,[L.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},L.toDisplayString(L.unref(t)("hbLibComp.HbLibDetailBox.back")),1),L.createVNode(d,{type:"vertical"}),L.createElementVNode("span",soe,L.toDisplayString(a.value),1)]),L.createElementVNode("aside",loe,[L.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),coe=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:DM,HbLibCard:SM,HbLibCopy:cB,HbLibDetailBox:RM,HbLibFilePreview:uM,HbLibFooterBar:TM,HbLibFormItemFilterModal:ZT,HbLibFormTooltipSelect:QM,HbLibFuncCompDrag:oM,HbLibIcon:ih,HbLibIconBox:vM,HbLibIconList:AB,HbLibImportFile:xM,HbLibListBtnsAct:tM,HbLibListForm:$T,HbLibListMultiSelect:iM,HbLibListPageAct:eM,HbLibListPageContainer:nM,HbLibListTable:kM,HbLibLoading:cM,HbLibLogModal:_M,HbLibModal:MM,HbLibMutilpleSelectModal:aM,HbLibPageHeader:LM,HbLibSort:sM,HbLibTableAct:yM,HbLibTableColumnSet:pB,HbLibUnDetailBox:FM,HbUiConfig:lM},Symbol.toStringTag,{value:"Module"})),ah=new Map;let NM;uA.isClient&&(document.addEventListener("mousedown",r=>NM=r),document.addEventListener("mouseup",r=>{for(const t of ah.values())for(const{documentHandler:e}of t)e(r,NM)}));function OM(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 uoe={beforeMount(r,t){ah.has(r)||ah.set(r,[]),ah.get(r).push({documentHandler:OM(r,t),bindingFn:t.value})},updated(r,t){ah.has(r)||ah.set(r,[]);const e=ah.get(r),n=e.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:OM(r,t),bindingFn:t.value};n>=0?e.splice(n,1,i):e.push(i)},unmounted(r){ah.delete(r)}},foe={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__)}},PM=(r,t)=>{r._dynamicApp&&(r._dynamicApp.unmount(),r._dynamicContainer.innerHTML="");const e=L.createApp(cB,{cpText:t});e.mount(r._dynamicContainer),r._dynamicApp=e,r._dynamicPrevValue=t},hoe={cos:uoe,dc:foe,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}PM(r,t.value)},updated(r,t){t.value!==r._dynamicPrevValue&&PM(r,t.value)},unmounted(r){r._dynamicApp&&(r._dynamicApp.unmount(),delete r._dynamicApp),r._dynamicContainer&&(r._dynamicContainer.remove(),delete r._dynamicContainer),delete r._dynamicPrevValue}}},GM=r=>r.downloadUrl,Aoe=(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=GM(t);if(s){const l=r.findIndex(c=>GM(c)===s);if(l>=0)return l}return r.indexOf(t)};function UM(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 HM(r){try{return typeof window>"u"||!window.location?.origin?!1:new URL(r).origin===window.location.origin}catch{return!1}}function jM(r){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.withCredentials=HM(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 doe(r){const t=UM(r),e=typeof document<"u"?document.documentMode:void 0;if(typeof e=="number"&&e>0)return jM(t);if(typeof fetch=="function"){const n=await fetch(t,{credentials:HM(t)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return jM(t)}function goe(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 poe(r){const t=UM(r),e=document.createElement("iframe");e.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",e.src=t,document.body.appendChild(e),window.setTimeout(()=>{try{document.body.removeChild(e)}catch{}},12e4)}async function vB(r,t){const e=(t||"download").trim()||"download";try{const n=await doe(r);goe(n,e);return}catch{poe(r)}}const voe=400;function YM(r){return r.previewUrl?.trim()||""}function rb(r){return r.downloadUrl?.trim()||""}function nb(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function yoe(r){const{t}=Cs.useI18n(),e=L.ref(!1),n=L.ref(""),i=L.ref(""),a=L.ref(-1),o=L.ref(-1),s=L.computed(()=>r.value.attachmentInfos??[]),l=L.computed(()=>s.value.reduce((_,F,P)=>{const W=YM(F);if(!W)return _;const M=nb(F);return _.push({attachmentIndex:P,record:F,item:{src:W,fileName:M,downloadName:M,downloadUrl:rb(F)||void 0}}),_},[])),c=L.computed(()=>l.value.map(_=>_.item)),u=L.computed(()=>o.value>=0?c.value:[]),f=L.computed(()=>{const _=o.value;return _>=0?l.value[_]??null:null}),h=L.computed(()=>f.value?.item??null),A=L.computed(()=>o.value>0&&c.value.length>1),d=L.computed(()=>o.value>=0&&o.value<c.value.length-1),g=L.computed(()=>c.value.length>1),y=(_,F,P,W)=>{a.value=P,o.value=W,n.value=_,i.value=F,e.value=!0},v=_=>{const F=l.value[_];F&&y(String(F.item.src),F.item.fileName||"",F.attachmentIndex,_)},p=_=>{const F=l.value.findIndex(P=>P.attachmentIndex===_);F<0||v(F)};return{filePreviewVisible:e,pdfPreviewUrlRef:n,previewFileNameRef:i,previewAttachmentIndexRef:a,previewFileIndexRef:o,filePreviewList:c,activeFilePreviewList:u,currentPreviewFile:h,hasPrevAttachment:A,hasNextAttachment:d,showAttachmentNavBar:g,handlePreview:(_,F)=>{const P=YM(_);if(!P){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=Aoe(s.value,_,{preferredIndex:F});if(W>=0){p(W);return}y(P,nb(_),-1,-1)},handleDownload:_=>{const F=rb(_);if(!F){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}vB(F,nb(_))},handleClosePreview:()=>{e.value=!1,a.value=-1,o.value=-1,n.value="",i.value=""},handlePreviewFileIndexChange:_=>{v(_)},goPrevAttachment:()=>{A.value&&v(o.value-1)},goNextAttachment:()=>{d.value&&v(o.value+1)},triggerBrowserDownload:vB,handleBatchDownloadAttachment:async()=>{const _=s.value.filter(F=>!!rb(F));if(_.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let F=0;F<_.length;F++){const P=_[F];await vB(rb(P),nb(P)),F<_.length-1&&await new Promise(W=>setTimeout(W,voe))}}}}const moe=r=>{const t=L.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}}},Ioe=r=>{let t=!0;return{start:()=>{L.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:()=>{L.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`}})}}},boe={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"}}},Coe={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:"戻る"}}},woe={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:"加载中...如长时间加载请重试!"}}},Eoe={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFilePreview:{empty:"Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an",unsupported:"Die Vorschau wird für diesen Dateityp nicht unterstützt",prev:"Zurück",next:"Weiter",download:"Herunterladen",close:"Schließen",modalTitle:"Dateivorschau",fileNameFallback:"Datei {index}",noPreviewUrl:"Keine Vorschau-URL verfügbar",noDownloadUrl:"Keine Download-URL verfügbar",noDownloadableFiles:"Keine herunterladbaren Anhänge verfügbar"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var ib={exports:{}},Boe=ib.exports,WM;function koe(){return WM||(WM=1,(function(r,t){(function(e,n){r.exports=n($I)})(Boe,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,s){return s==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(ib)),ib.exports}koe(),$I.locale("zh-cn");const Qoe={en_US:boe,ja_JP:Coe,zh_CN:woe,de_DE:Eoe},xoe=function(r,t){r.provide(Jo,t||{}),Object.values(coe).forEach(e=>{e&&typeof e.install=="function"&&r.use(e)}),Object.entries(hoe).forEach(([e,n])=>{r.directive(e,n)})},_oe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Soe=Object.defineProperty,Doe=Object.defineProperties,Roe=Object.getOwnPropertyDescriptors,JM=Object.getOwnPropertySymbols,Toe=Object.prototype.hasOwnProperty,Moe=Object.prototype.propertyIsEnumerable,VM=(r,t,e)=>t in r?Soe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ws=(r,t)=>{for(var e in t||(t={}))Toe.call(t,e)&&VM(r,e,t[e]);if(JM)for(var e of JM(t))Moe.call(t,e)&&VM(r,e,t[e]);return r},ab=(r,t)=>Doe(r,Roe(t)),Fs=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(c){i(c)}},o=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(r,...t){setTimeout(()=>r(t))});var ob=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Foe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function sb(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zM={exports:{}};/*!
2
2
 
3
3
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
4
  <http://stuartk.com/jszip>