@hb-hellotech/hb-ui 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,2 @@
1
- (function(D,e){typeof exports=="object"&&typeof module<"u"?e(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"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.HbComponentLib={},D.Vue,D.draggable,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.iconsVue,D.core,D.dayjs))})(this,(function(D,e,he,F,Ce,ee,ae,Q,ie,be){"use strict";const ke=(t="")=>{const l=`hb-${t}`;return bt(l)},re=(t,l,o,a)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),a&&(t+=`--${a}`),t),bt=t=>({b:l=>l?re(t,l,"",""):re(t,"","",""),e:l=>l?re(t,"",l,""):"",m:l=>re(t,"","",l),be:(l,o)=>re(t,l,o,""),em:(l,o)=>re(t,"",l,o),bem:(l,o,a)=>re(t,l,o,a),is:(l,o)=>o?`is-${l}`:""}),gt=["onMouseenter","onMouseleave"],ut=["onClick"],yt=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const a=e.inject("globalCompConfig",{}),d=ee.useI18n().t,r=ee.useI18n().messages.value.en_US,s=ee.useI18n().messages.value.ja_JP,c=ee.useI18n().messages.value.zh_CN,n=t,i=e.computed(()=>n.showNumber||a.HbLibFormItemFilterModal?.defaultShowCount||40),m=e.computed(()=>n.title||d("hbLibComp.hbFormItemFilterModal.title")),C=o,f=ke("sfcm"),E=Ce.useRoute(),x=e.reactive({lan:window.localStorage.getItem("lan")}),$=e.ref(!1),T=e.ref(600);let h=[];const p=e.ref([]),u=e.ref([]),S=e.computed(()=>p.value.every(g=>g.isLinked||g.isFixed)),_=g=>({...g,label:L(g)||`${V(g)||""} (${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:g.key,isFixed:g?.isFixed||!1,isLinked:g?.isLinked||!1,labelLanguage:g?.labelLanguage||void 0}),k=g=>{const M=g.draggedContext.element,B=g.relatedContext.index;if(M.isLinked||M.isFixed)return!1;const O=p.value.map((G,oe)=>({item:G,index:oe})).filter(({item:G})=>G.isLinked).map(({index:G})=>G);if(O.length===0)return!0;for(let G=0;G<O.length-1;G++){const oe=O[G],te=O[G+1];if(B>oe&&B<te)return!1}return!0},b=e.computed(()=>y()+"_"+n.saveKey),y=()=>{const g=localStorage.getItem("pro__Login_Userinfo");let M="anonymous";if(g)try{M=JSON.parse(g).value.jobNumber||"anonymous"}catch(O){console.warn("解析用户信息失败:",O)}let B=E?.path;return`searchFormConfig_${M}_${B}`},L=g=>({ja_JP:()=>ae.get(s,g.labelLanguage||""),en_US:()=>ae.get(r,g.labelLanguage||""),zh_CN:()=>ae.get(c,g.labelLanguage||"")})[x.lan]?.()||g.label,V=g=>({ja_JP:()=>ae.get(s,g.subLabelLanguage||""),en_US:()=>ae.get(r,g.subLabelLanguage||""),zh_CN:()=>ae.get(c,g.subLabelLanguage||"")})[x.lan]?.()||g.subLabel,A=()=>{try{const g=localStorage.getItem(b.value);if(g){const M=JSON.parse(g);if(M.originalList&&Array.isArray(M.originalList)){h=JSON.parse(JSON.stringify(M.originalList));const B=h.filter(w=>w?.isFixed),O=h.filter(w=>w?.isLinked),G=M.showList.filter(w=>!w.isFixed&&!w.isLinked),oe=i.value&&i.value>0?Math.max(0,i.value-B.length-O.length):G.length,te=B.map(w=>({..._(w)})),U=O.map(w=>({..._(w)})),ce=G.slice(0,oe).map(w=>({..._(w)}));p.value=[...te,...U,...ce];const de=p.value.map(w=>w.key),I=h.map(w=>w.key).filter(w=>!de.includes(w));return u.value=h.filter(w=>I.includes(w.key)).map(w=>({..._(w),active:!1})),!0}}}catch(g){console.warn("加载保存的搜索配置失败:",g)}return!1},R=()=>{try{const g={originalList:h,showList:p.value.map(M=>({...M,key:M.key,label:M.label,isFixed:M.isFixed,isLinked:M.isLinked,labelLanguage:M?.labelLanguage||void 0}))};localStorage.setItem(b.value,JSON.stringify(g))}catch(g){console.warn("保存搜索配置失败:",g)}},N=e.computed(()=>{const g=p.value.filter(B=>!B.isFixed&&!B.isLinked).length,M=p.value.filter(B=>B.isFixed||B.isLinked).length;return g>=i.value-M});e.watch(()=>n.list,g=>{let M=JSON.stringify(p.value)!==JSON.stringify(g);if(!M)return;const B=localStorage.getItem(b.value),O=JSON.parse(B||"{}");if(O&&O?.originalList&&Array.isArray(O.originalList))A(),C("confirm",p.value);else if(M){h=JSON.parse(JSON.stringify(g));const G=g.filter(w=>w?.isFixed),oe=g.filter(w=>w?.isLinked),te=g.filter(w=>!w?.isFixed&&!w?.isLinked),U=i.value&&i.value>0?Math.max(0,i.value-G.length-oe.length):te.length,ce=G.map(w=>_(w)),de=oe.map(w=>_(w)),me=te.slice(0,U).map(w=>_(w));p.value=[...ce,...de,...me];const I=te.slice(U).map(w=>({..._(w),active:!1}));u.value=I,C("confirm",p.value)}},{immediate:!0});const H=g=>{const M=p.value.findIndex(B=>B.key===g.key);M!==-1&&(p.value.splice(M,1),u.value.push({...g,active:!1}))},j=g=>{if(N.value){F.message.warning(`当前已经超过${d(i.value)}个可选数量,请先删除已显示条件`);return}const M=u.value.findIndex(B=>B.key===g.key);if(M!==-1){const[B]=u.value.splice(M,1);p.value.push({...B,active:!1})}},q=()=>{$.value=!1},J=()=>{$.value=!0},Z=()=>{R(),C("confirm",p.value),q()},X=g=>{const M=u.value.findIndex(B=>B.key===g.key);M!==-1&&(u.value[M].active=!0)},v=g=>{const M=u.value.findIndex(B=>B.key===g.key);M!==-1&&(u.value[M].active=!1)};return l({toOpenModal:J}),e.onMounted(()=>{}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(f).b())},[e.createVNode(e.unref(F.Modal),{visible:$.value,"onUpdate:visible":M[1]||(M[1]=B=>$.value=B),width:T.value,onCancel:q,onOk:Z},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("title"))},e.toDisplayString(m.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(F.Button),{onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(F.Button),{type:"primary",onClick:Z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__tag"))},[e.createVNode(e.unref(he),{modelValue:p.value,"onUpdate:modelValue":M[0]||(M[0]=B=>p.value=B),"item-key":"key",tag:"div",disabled:S.value,move:k},{item:e.withCtx(({element:B})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).e("show__tag__item"),e.unref(f).is("fixed",B.isFixed),e.unref(f).is("linked",B.isLinked)])},[e.createTextVNode(e.toDisplayString(B.label)+" ",1),!B.isFixed&&!B.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Q.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(f).e("show__tag__item-close")),onClick:O=>H(B)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("unshow__tag"))},[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B.key,class:e.normalizeClass([e.unref(f).e("unshow__tag__item"),e.unref(f).is("fixed",B.isFixed||""),e.unref(f).is("linked",B.isLinked||"")]),onMouseenter:O=>X(B),onMouseleave:O=>v(B)},[e.createTextVNode(e.toDisplayString(B.label)+" ",1),B.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(f).e("unshow__tag__item-add")),onClick:O=>j(B)},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.add")),11,ut)):e.createCommentVNode("",!0)],42,gt))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(f).e("unshow__tag__empty"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),z=(t,l)=>{const o=t.__vccOpts||t;for(const[a,d]of l)o[a]=d;return o},Ct=z(yt,[["__scopeId","data-v-657502f3"]]);function P(t){const l=t;return l.install=o=>{const a=t.name;o.component(a??"AnonymousComponent",t)},l}const Ne=P(Ct),kt={key:0,class:"form-footer"},_t={class:"scheme-fontWeight"},wt={class:"scheme-fontWeight"},Lt={class:"scheme-fontWeight"},St={class:"scheme-fontWeight"},Te=P(z(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},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(t,{expose:l,emit:o}){const a=e.inject("globalCompConfig",{}),d=o,r=e.inject("HB_LIST_PAGE_CONTAINER"),s=e.computed(()=>n.searchList||[]),c=ke("form"),n=t,i=e.computed(()=>n.showNumber||a.HbLibFormItemFilterModal?.defaultShowCount||40),m=e.ref("show"),C=e.computed(()=>n.needFooter||a.HbLibListForm?.needFooter),f=e.computed(()=>[...n.items]),E=N=>N!==void 0,x=N=>typeof N=="function",$=N=>E(N.condition)?x(N.condition)?N.condition():N.condition:!0,T=e.computed(()=>[...n.items].map(N=>({...N,condition:$(N),label:N.label?.includes("多项搜索")?"":N.label})));console.log(T.value);const h=e.computed(()=>n.saveKey),p=e.ref(),u=()=>{d("handleSearch")},S=()=>{d("handleReset")},_=e.ref(),k=()=>{_.value&&_.value.toOpenModal()},b=N=>{d("handleMenuClick",N)},y=N=>{d("handleSfcmConfirm",N)};e.watch(()=>n.isFormExpanded,N=>{if(N){console.log(N);const H=document.querySelector("#subpackage_container");H instanceof HTMLElement&&(H.style.overflow="hidden",setTimeout(()=>{H.style.overflow="auto"},500))}});const L=N=>{const H=N;H.style.height="",H.offsetHeight},V=N=>{const H=N;H.style.height="",H.style.overflow="",e.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})},A=N=>{const H=N,j=H.querySelector(".hb-lib-form--container");if(j){const q=j.offsetHeight;H.style.height=q+"px",H.style.overflow="hidden",H.offsetHeight,requestAnimationFrame(()=>{H.style.height="0"})}},R=()=>{e.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})};return l({formRef:p,SelectOption:F.SelectOption,Form:F.Form,FormItem:F.FormItem,Row:F.Row,Col:F.Col,Input:F.Input,Select:F.Select,CheckboxGroup:F.CheckboxGroup,Checkbox:F.Checkbox,DatePicker:F.DatePicker,InputNumber:F.InputNumber,RadioGroup:F.RadioGroup,Radio:F.Radio,Switch:F.Switch,Button:F.Button,Tooltip:F.Tooltip}),(N,H)=>{const j=e.resolveComponent("a-button"),q=e.resolveComponent("a-tooltip"),J=e.resolveComponent("a-menu-item"),Z=e.resolveComponent("a-menu"),X=e.resolveComponent("a-dropdown"),v=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:L,onAfterEnter:V,onLeave:A,onAfterLeave:R},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(c).b(),"hb-lib-list-page-form-box","hb-form-item-ui",C.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(N.$attrs,{model:t.formData,ref_key:"formRef",ref:p,class:["hb-lib-form--container",m.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(g,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[g.condition?(e.openBlock(),e.createBlock(e.unref(F.FormItem),e.mergeProps({key:0,ref_for:!0},g,{name:g.key,class:{"hb-lib-form-item-border--unneed":g.isUnNeedBorder,"hb_lib_form_item--needShowAll":g.showAll}}),e.createSlots({default:e.withCtx(()=>[g.type==="slot"?e.renderSlot(N.$slots,g.key,{key:0,formData:t.formData,item:g},void 0,!0):e.createCommentVNode("",!0),g.type==="mixin"?e.renderSlot(N.$slots,g.key,{key:1,formData:t.formData,item:g},void 0,!0):e.createCommentVNode("",!0),g.type==="input"?(e.openBlock(),e.createBlock(e.unref(F.Input),e.mergeProps({key:2,value:t.formData[g.key],"onUpdate:value":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="select"?(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({key:3,value:t.formData[g.key],"onUpdate:value":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(B,O)=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),{key:O,value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(F.CheckboxGroup),e.mergeProps({key:4,value:t.formData[g.key],"onUpdate:value":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(B,O)=>(e.openBlock(),e.createBlock(e.unref(F.Checkbox),{key:O,value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(F.DatePicker),e.mergeProps({key:5,value:t.formData[g.key],"onUpdate:value":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(F.InputNumber),e.mergeProps({key:6,value:t.formData[g.key],"onUpdate:value":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="radio"?(e.openBlock(),e.createBlock(e.unref(F.RadioGroup),e.mergeProps({key:7,value:t.formData[g.key],"onUpdate:value":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(B,O)=>(e.openBlock(),e.createBlock(e.unref(F.Radio),{key:O,value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="switch"?(e.openBlock(),e.createBlock(e.unref(F.Switch),e.mergeProps({key:8,checked:t.formData[g.key],"onUpdate:checked":B=>t.formData[g.key]=B},{ref_for:!0},g.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[g.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label)+" ",1),e.createVNode(e.unref(F.Tooltip),{title:g.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",kt,[e.createVNode(j,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Q.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(j,{type:"link",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(q,{key:0,title:N.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...H[0]||(H[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(X,{key:0},{overlay:e.withCtx(()=>[e.createVNode(Z,{onClick:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,g=>(e.openBlock(),e.createBlock(J,{key:g.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128)),e.createVNode(J,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",_t,e.toDisplayString(N.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(J,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",wt,e.toDisplayString(N.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(q,{title:N.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...H[1]||(H[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(c).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("footer__left"))},[e.renderSlot(N.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("footer__right"))},[m.value=="show"?e.renderSlot(N.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[e.createVNode(j,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Q.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(j,{type:"link",onClick:S,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(q,{key:0,title:N.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...H[2]||(H[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(X,{key:0},{overlay:e.withCtx(()=>[e.createVNode(Z,{onClick:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,g=>(e.openBlock(),e.createBlock(J,{key:g.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128)),e.createVNode(J,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",Lt,e.toDisplayString(N.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(J,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",St,e.toDisplayString(N.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(q,{title:N.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...H[3]||(H[3]=[e.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)],!0):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(v,{showNumber:i.value,list:f.value,ref_key:"HbSfCmRef",ref:_,onConfirm:y,saveKey:h.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),xt={class:"hb-lib-list-page-act-box"},Bt={class:"hb-lib-list-page-breadcrumb"},Nt={class:"hb-lib-list-page-act"},Tt={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},Et={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},Ee=P(z(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:a,toggle:d}=ie.useFullscreen(document.body);e.watch(()=>a.value,n=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const m=new Map;setTimeout(n?()=>{if(i?.length)for(let C=0;C<i.length;C++){const f=document.querySelector(i[C]);f&&(m.set(i[C],f.style.display),f.style.display="none")}}:()=>{if(i?.length)for(let C=0;C<i.length;C++){const f=document.querySelector(i[C]);if(f){const E=m.get(i[C]);f.style.display=E||"",m.delete(i[C])}}},0)});const r=e.ref(""),s=()=>{const n=Ce.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",m=n?.path;if(i!=="[]"){let C=JSON.parse(i).find(f=>f.value===m);C&&(r.value=C.label.replace(/-/g," / "))}};e.onMounted(()=>{s()});const c=n=>{n.keyCode===192&&d()};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(n,i)=>{const m=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",xt,[e.createElementVNode("aside",Bt,e.toDisplayString(r.value),1),e.createElementVNode("aside",Nt,[e.createVNode(m,{title:e.unref(a)?`${n.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${n.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...C)=>e.unref(d)&&e.unref(d)(...C))},[e.unref(a)?(e.openBlock(),e.createElementBlock("svg",Et,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Tt,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(n.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Ft={class:"hb-lib-list-btns-box"},Vt={class:"hb-lib-list-btns-left"},$t={class:"hb-lib-list-btns-right"},Fe=P(z(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,a=e.ref(!0),d=()=>{a.value=!a.value,o("handleOpenOrClose",a.value)},r=()=>{o("handleReload")},s=c=>{};return e.onMounted(()=>{window.addEventListener("keydown",s)}),e.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(c,n)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Ft,[e.createElementVNode("aside",Vt,[e.renderSlot(c.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",$t,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:c.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:r},[...n[0]||(n[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:a.value?`${c.$t("hbLibComp.hbListBtnsAct.close")}`:`${c.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:d},[a.value?(e.openBlock(),e.createBlock(e.unref(Q.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Q.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Ve=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:a=300,timeOut:d=100}=t,r=e.ref(0);let s=null,c=null,n=null,i=null,m=null;const C=()=>{m&&clearTimeout(m),m=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const p=document.querySelector(".ant-table"),u=document.querySelector(".ant-pagination");if(p){const S=Math.floor(p.getBoundingClientRect().top),_=window.innerHeight,b=(u?u.offsetHeight+20:40)+o;let y=_-S-b;y<a&&(y=a),r.value=y}})})},100)},f=()=>{const p=document.querySelector(".ant-pagination");if(p){const u=new MutationObserver(()=>{C()});return u.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),u}return null},E=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(s=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(S=>{S.style.display="none"}),C()}),s.observe(p))},x=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(n=new MutationObserver(()=>{setTimeout(()=>{C()},d)}),n.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},$=()=>{i&&clearTimeout(i),i=setTimeout(()=>{C()},d)},T=()=>{window.addEventListener("resize",$),e.nextTick(()=>{E(),x(),c=f()})},h=()=>{window.removeEventListener("resize",$),s&&s.disconnect(),n&&n.disconnect(),c&&c.disconnect(),i&&clearTimeout(i),m&&clearTimeout(m)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{C()},200)},{deep:!0}),e.onMounted(()=>{C(),T()}),e.onUnmounted(()=>{h()}),{tableHeight:r,calTableHeight:C}},$e=P(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=ie.useFullscreen(document.body),a=t,d=e.useTemplateRef("PageContainerRef"),r=e.computed(()=>a.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),s=e.computed(()=>a.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),c=e.computed(()=>a.minHeight||l.HbLibListPageContainer?.minHeight||300),n=e.computed(()=>a.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>a.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(a.isUnFixTbHeight);const{calTableHeight:m,tableHeight:C}=Ve({offsetBottom:s.value,minHeight:c.value,timeOut:n.value}),f=e.computed(()=>C.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:d,tableHeight:C,calTableHeight:m}),(E,x)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:d},[e.renderSlot(E.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?f.value-r.value+"px":f.value-s.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(o)?f.value-r.value+"px":f.value-s.value+"px"})},[e.renderSlot(E.$slots,"default")],4)],512))}})),Ht={style:{"font-weight":"500"}},It={key:0,class:"hb-lib-search-tag__description"},Dt={class:"hb-lib-selector-dropdown"},Mt={class:"hb-lib-selector-search"},At={class:"hb-lib-selector-list"},Ot=["onClick"],Pt={class:"hb-lib-option-content"},zt={class:"hb-lib-option-label"},Ut={key:0,class:"hb-lib-selector-empty"},Rt={key:1,class:"hb-lib-selector-footer"},Wt={class:"hb-lib-footer-buttons"},jt={key:2,class:"hb-lib-selector-footer"},qt={class:"hb-lib-footer-buttons"},He=P(z(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,a=l,d=e.useModel(t,"value"),r=e.ref(!1),s=e.ref(""),c=e.ref([]),n=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!s.value)return o.options;const _=s.value.toLowerCase();return o.options.filter(k=>k.label.toLowerCase().includes(_)||k.description?.toLowerCase().includes(_))}),m=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),C=e.computed(()=>i.value.length===0?!1:i.value.every(_=>c.value.includes(_.value))),f=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(k=>c.value.includes(k.value)).length;return _>0&&_<i.value.length});e.watch(()=>d.value,_=>{_?c.value=Array.isArray(_)?[..._]:[_]:c.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,_=>{o.remoteSearch&&_!==void 0&&(s.value=_)},{immediate:!0});const E=_=>{_&&(r.value=_,x.value=[...c.value],s.value="",setTimeout(()=>{if(n.value){const k=n.value.input||n.value.$el?.querySelector("input");k&&k.focus()}},100))},x=e.ref([]),$=()=>{c.value=[...x.value],r.value=!1,a("cancel")},T=e.ref([]),h=()=>{const _=o.multiple?c.value:c.value[0]||"",k=o.options.filter(b=>c.value.includes(b.value));T.value=k,console.log(_,k),x.value=[...c.value],d.value=_,a("update:value",_),a("change",_,k),a("confirm",_,k),r.value=!1},p=ie.useDebounceFn(_=>{const k=_!==void 0?_:s.value;o.remoteSearch&&(a("search",k),a("update:searchValue",k))},300),u=_=>{if(o.multiple){const k=new Set(c.value);k.has(_.value)?k.delete(_.value):k.add(_.value),c.value=Array.from(k)}else c.value=[_.value],h()},S=_=>{if(_.target.checked){const b=new Set(c.value);i.value.forEach(y=>{b.add(y.value)}),c.value=Array.from(b)}else{const b=new Set(i.value.map(y=>y.value));c.value=c.value.filter(y=>!b.has(y))}};return(_,k)=>{const b=e.resolveComponent("a-tag"),y=e.resolveComponent("a-input"),L=e.resolveComponent("a-checkbox"),V=e.resolveComponent("a-radio"),A=e.resolveComponent("a-button"),R=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":m.value}},_.$attrs),[e.createVNode(R,{value:d.value,"onUpdate:value":k[5]||(k[5]=N=>d.value=N),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:r.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:E,onSearch:e.unref(p),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:N,label:H,closable:j,option:q})=>[e.createVNode(b,{class:"hb-lib-search-tag",onClick:k[0]||(k[0]=()=>E(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ht,e.toDisplayString(H),1),q?.description?(e.openBlock(),e.createElementBlock("span",It," ("+e.toDisplayString(q.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:N})=>[e.createElementVNode("div",Dt,[e.createElementVNode("div",Mt,[e.createVNode(y,{ref_key:"searchInputRef",ref:n,class:"hb-lib-selector-search-input",value:s.value,"onUpdate:value":k[1]||(k[1]=H=>s.value=H),placeholder:"请输入关键词搜索","allow-clear":"",onInput:k[2]||(k[2]=H=>e.unref(p)(H.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Q.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,H=>(e.openBlock(),e.createElementBlock("div",{key:H.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:c.value.includes(H.value)}]),onClick:()=>u(H)},[t.multiple?(e.openBlock(),e.createBlock(L,{key:0,checked:c.value.includes(H.value),onChange:()=>u(H),onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(V,{key:1,checked:c.value.includes(H.value),onChange:()=>u(H),onClick:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Pt,[e.createElementVNode("div",zt,e.toDisplayString(H.label),1)])],10,Ot))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",Ut,e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Rt,[e.createVNode(L,{checked:C.value,indeterminate:f.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Wt,[e.createVNode(A,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(A,{type:"primary",size:"small",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",jt,[k[6]||(k[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",qt,[e.createVNode(A,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),Yt={class:"hb-lib-form-item-filter-modal-search"},Kt={class:"hb-lib-form-item-filter-modal-buttons"},Gt={key:0},Ie=P(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:l,emit:o}){const a=t,d=o,r=e.ref(!1),s=e.ref(""),c=e.ref(),n=e.ref(),i=e.ref([]),m=e.ref([]),C=e.ref(),f=e.reactive({searchText:"",searchedColumn:""}),E=e.computed(()=>a.tableData.map(b=>(b.id=b.id||Math.random(),b))),x=e.computed(()=>a.tableColumn.map(b=>(b.customFilterDropdown&&(b.onFilter=(y,L)=>L[b.dataIndex].toString().toLowerCase().includes(y.toLowerCase()),b.onFilterDropdownVisibleChange=y=>{y&&setTimeout(()=>{c.value?.focus()},100)}),{...b}))),$=()=>{let b="";m.value.forEach(y=>{b=b+y[a.labelKey]+","}),s.value=b.substring(0,b.length-1),r.value=!1,d("handleConfirm",m.value)},T=()=>{r.value=!1},h=()=>{r.value=!0,e.nextTick(()=>{const b=C.value?.$el?.querySelector(".ant-table-body");b&&(b.scrollTop=0)})},p=()=>{i.value=[],m.value=[]},u=()=>{s.value="",p()},S=(b,y,L)=>{y(),f.searchText=b[0],f.searchedColumn=L},_=(b,y)=>{b({confirm:!0}),f.searchText="",y()},k=(b,y)=>{i.value=b,m.value=y};return l({resetInputVal:u}),(b,y)=>{const L=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),A=e.resolveComponent("a-table"),R=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:n},[e.createVNode(L,{readonly:"",onClick:h,value:s.value,"onUpdate:value":y[0]||(y[0]=N=>s.value=N),placeholder:b.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Q.UnorderedListOutlined),{onClick:h})]),_:1},8,["value","placeholder"]),e.createVNode(R,{visible:r.value,"onUpdate:visible":y[1]||(y[1]=N=>r.value=N),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(V,{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(V,{onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(V,{type:"primary",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{ref_key:"tableRef",ref:C,columns:x.value,dataSource:E.value,rowSelection:{selectedRowKeys:i.value,onChange:k},rowKey:N=>N[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:N,selectedKeys:H,confirm:j,clearFilters:q,column:J})=>[e.createElementVNode("div",Yt,[e.createVNode(L,{ref_key:"searchInput",ref:c,placeholder:`请输入${J.title}`,value:H[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:Z=>N(Z.target.value?[Z.target.value]:[]),onPressEnter:Z=>S(H,j,J.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Kt,[e.createVNode(V,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:Z=>_(q,j)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(V,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:Z=>S(H,j,J.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:N})=>[e.createVNode(e.unref(Q.SearchOutlined),{style:e.normalizeStyle({color:N?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:N,column:H})=>[f.searchText&&f.searchedColumn===H.dataIndex?(e.openBlock(),e.createElementBlock("span",Gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`,"i")),(j,q)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[j.toLowerCase()===f.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:q,class:"highlight"},e.toDisplayString(j),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(j),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Jt={class:"hb-lib-table-act-box"},Xt=["onClick"],Qt={href:"javascript:;",class:"hb-lib-table-main-action"},Zt=["onClick"],vt={href:"javascript:;",class:"hb-lib-table-more-action"},eo=["onClick"],to={href:"javascript:;"},oo=["onClick"],lo={class:"hb-lib-table-confirm-modal-content"},De=P(z(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:a}=ee.useI18n(),d=e.ref(!1),r=e.ref(!1),s=e.ref(null),c=e.computed(()=>o.actions.filter(T=>T.condition!==void 0?T.condition:!0)),n=e.computed(()=>c.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>m(c.value.slice(o.buttonDisplaysQuantity)));function m(T){if(o.filterPermission)return o.filterPermission(T);let h=[],p=[];return h=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(h)||T.length===0?(h=[],[]):(h=h.filter(u=>u.type!="2"),T.forEach(u=>{(!u.permissionsTag||h.findIndex(S=>S.action===u.permissionsTag)!==-1)&&p.push(u)}),p)}const C=T=>{T.handler&&T.handler(o.record)},f=T=>{s.value=T,d.value=!0},E=()=>{if(s.value){r.value=!0;try{C(s.value),r.value=!1,d.value=!1}catch{r.value=!1}}},x=()=>{d.value=!1,s.value=null},$=e.computed(()=>s.value?{title:s.value.confirmTitle,content:s.value.confirmContent||s.value.confirmTitle}:{title:a("hbLibComp.hbTableAct.secendConfirm"),content:a("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:F.Dropdown,AMenu:F.Menu,AMenuItem:F.MenuItem,APopconfirm:F.Popconfirm,AModal:F.Modal,DownOutlined:Q.DownOutlined}),(T,h)=>{const p=e.resolveComponent("a-divider"),u=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(S,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>f(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Xt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(F.Popconfirm),{title:S.confirmTitle,onConfirm:k=>C(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Qt,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[u,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):S.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(T.$slots,S.slot,{item:S},void 0,!0),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>C(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Zt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==n.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(p,{key:0,type:"vertical"},null,512)),[[u,S.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(F.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(F.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(S,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:_},{default:e.withCtx(()=>[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:k=>f(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,eo)),[[u,S.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:S.confirmTitle,onConfirm:k=>C(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",to,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[u,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[u,S.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:k=>C(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,oo)),[[u,S.permissionsTag||null]])]),_:2},1024)),[[u,S.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",vt,[e.createTextVNode(e.toDisplayString(T.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Q.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(F.Modal),{visible:d.value,title:$.value.title,"confirm-loading":r.value,onOk:E,onCancel:x},{default:e.withCtx(()=>[e.createElementVNode("p",lo,e.toDisplayString($.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),_e=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(a=>a.width&&Number(a.width.toString().replace("px",""))||0).reduce((a,d)=>a+d,0)})});var no=typeof global=="object"&&global&&global.Object===Object&&global,ao=typeof self=="object"&&self&&self.Object===Object&&self,Me=no||ao||Function("return this")(),ge=Me.Symbol,Ae=Object.prototype,io=Ae.hasOwnProperty,ro=Ae.toString,pe=ge?ge.toStringTag:void 0;function so(t){var l=io.call(t,pe),o=t[pe];try{t[pe]=void 0;var a=!0}catch{}var d=ro.call(t);return a&&(l?t[pe]=o:delete t[pe]),d}var co=Object.prototype,mo=co.toString;function po(t){return mo.call(t)}var fo="[object Null]",ho="[object Undefined]",Oe=ge?ge.toStringTag:void 0;function bo(t){return t==null?t===void 0?ho:fo:Oe&&Oe in Object(t)?so(t):po(t)}function go(t){return t!=null&&typeof t=="object"}var uo="[object Symbol]";function yo(t){return typeof t=="symbol"||go(t)&&bo(t)==uo}var Co=/\s/;function ko(t){for(var l=t.length;l--&&Co.test(t.charAt(l)););return l}var _o=/^\s+/;function wo(t){return t&&t.slice(0,ko(t)+1).replace(_o,"")}function we(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Pe=NaN,Lo=/^[-+]0x[0-9a-f]+$/i,So=/^0b[01]+$/i,xo=/^0o[0-7]+$/i,Bo=parseInt;function ze(t){if(typeof t=="number")return t;if(yo(t))return Pe;if(we(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=we(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=wo(t);var o=So.test(t);return o||xo.test(t)?Bo(t.slice(2),o?2:8):Lo.test(t)?Pe:+t}var Le=function(){return Me.Date.now()},No="Expected a function",To=Math.max,Eo=Math.min;function Ue(t,l,o){var a,d,r,s,c,n,i=0,m=!1,C=!1,f=!0;if(typeof t!="function")throw new TypeError(No);l=ze(l)||0,we(o)&&(m=!!o.leading,C="maxWait"in o,r=C?To(ze(o.maxWait)||0,l):r,f="trailing"in o?!!o.trailing:f);function E(k){var b=a,y=d;return a=d=void 0,i=k,s=t.apply(y,b),s}function x(k){return i=k,c=setTimeout(h,l),m?E(k):s}function $(k){var b=k-n,y=k-i,L=l-b;return C?Eo(L,r-y):L}function T(k){var b=k-n,y=k-i;return n===void 0||b>=l||b<0||C&&y>=r}function h(){var k=Le();if(T(k))return p(k);c=setTimeout(h,$(k))}function p(k){return c=void 0,f&&a?E(k):(a=d=void 0,s)}function u(){c!==void 0&&clearTimeout(c),i=0,a=n=d=c=void 0}function S(){return c===void 0?s:p(Le())}function _(){var k=Le(),b=T(k);if(a=arguments,d=this,n=k,b){if(c===void 0)return x(n);if(C)return clearTimeout(c),c=setTimeout(h,l),E(n)}return c===void 0&&(c=setTimeout(h,l)),s}return _.cancel=u,_.flush=S,_}const Fo={key:0,class:"hb-lib-list-table-act"},Vo={class:"empty-container"},$o={key:1},Ho={key:2},Re=P(z(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),a=l,{t:d}=ee.useI18n(),r=t,s=e.ref([]),c=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:n}=_e(s),i=e.ref(n.value),m=e.computed(()=>r.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>r.columns,h=>{const p=h.filter(S=>S!=null&&S.checked);s.value=p.map(S=>{let _={...S,title:S.title||S.label,align:S.align||o.listTable?.align||"center"};_.ellipsis&&!_.needTooltip&&(_.needTooltip=!0);let k=r.defaultWidth||o.listTable?.defaultColWidth||150;if(!_.width)_.width=k;else if(typeof _.width=="string"){const b=parseInt(_.width,10);_.width=isNaN(b)?k:b}return _.resizable===void 0&&(_.resizable=!0),_});const{tableWidth:u}=_e(s);i.value=u.value},{immediate:!0,deep:!0});const C=Ue(()=>{a("resizeCol",s)},o.listTable?.colSaveTimeOut||800),f=(h,p)=>{if(p){const u=typeof h=="string"?parseInt(h,10):h;p.width=isNaN(u)?o.listTable?.defaultColWidth||150:u,e.nextTick(()=>{C()})}},E=(h,p,u)=>{h?.current&&a("change",h,p,u)},x=(h,p="YYYY-MM-DD HH:mm:ss")=>h?be(h).format(p):"",$=(h,p)=>h&&p[h]||"",T=(h,p=o.listTable?.ellipsisNumber||20)=>h?h.length>p?`${h.substring(0,p)}...`:h:"";return(h,p)=>{const u=e.resolveComponent("a-empty"),S=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-tag"),b=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[h.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Fo,[e.renderSlot(h.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(h.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(b,e.mergeProps(h.$attrs,{bordered:"",columns:s.value,tableLayout:"fixed",onResizeColumn:f,onChange:E,scroll:m.value?{x:i.value}:{x:i.value,y:e.unref(c).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",Vo,[e.createVNode(u,{description:e.unref(d)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[h.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"headerCell",{column:y,title:y.title},()=>[e.createTextVNode(e.toDisplayString(y.title),1)],!0)]),key:"0"}:void 0,h.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:y,record:L,index:V,text:A})=>[e.renderSlot(h.$slots,"bodyCell",{column:y,record:L,index:V,text:A},void 0,!0),y&&y.needTooltip&&!y.needCopy?(e.openBlock(),e.createBlock(S,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L[y.dataIndex]),1)]),_:2},1032,["placement"])):y&&y.needCopy&&!y.needTooltip?(e.openBlock(),e.createElementBlock("div",$o,[e.createTextVNode(e.toDisplayString(L[y.dataIndex])+" ",1),e.createVNode(_,{"cp-text":L[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),y&&y.needTooltip&&y.needCopy?(e.openBlock(),e.createElementBlock("div",Ho,[e.createVNode(S,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T(L[y.dataIndex],y.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(_,{"cp-text":L[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):y&&y.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(x(L[y.dataIndex],y.format)),1)],64)):y&&y.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[$(L[y.dataIndex],y.tags)?(e.openBlock(),e.createBlock(k,{key:0,color:$(L[y.dataIndex],y.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[y.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,h.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:y,index:L})=>[e.renderSlot(h.$slots,"expandedRowRender",{record:y,index:L},void 0,!0)]),key:"2"}:void 0,h.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"customFilterDropdown",{column:y},void 0,!0)]),key:"3"}:void 0,h.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"customFilterIcon",{column:y},void 0,!0)]),key:"4"}:void 0,h.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:y,record:L,index:V})=>[e.renderSlot(h.$slots,"expandIcon",{expanded:y,record:L,index:V},void 0,!0)]),key:"5"}:void 0,h.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,h.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,h.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),Io={class:"hb-lib-table-setting-box"},Do={key:0,class:"hb-lib-table-drag-item"},Mo={key:0,class:"hb-lib-table-drag-item-act"},Ao=["onClick"],Oo=["onClick"],Po={class:"hb-lib-table-set-btn-group"},zo={class:"select-all-container",style:{"margin-right":"10px"}},We=P(z(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:a}=ee.useI18n(),d=t,r=e.ref([]),s=e.computed(()=>n.value.filter(k=>k.checked));e.ref([]);const c=e.ref(!1),n=e.ref([]),i=e.ref(null),m=e.computed(()=>s.value.length>0&&s.value.length===r.value.length),C=e.computed(()=>s.value.length>0&&s.value.length<r.value.length),f=k=>{i.value=k.oldIndex},E=k=>{const b=k.newIndex;if(r.value.some(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=r.value.filter(A=>A.fixed==="left").length,V=r.value.length-r.value.filter(A=>A.fixed==="right").length;if((L>0&&b<L||V<r.value.length&&b>=V)&&(F.message.warning(a("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const A=n.value.splice(b,1)[0];n.value.splice(i.value,0,A)}}i.value=null},x=k=>{k.target.checked?n.value.forEach(y=>y.checked=!0):n.value.forEach(y=>{y.dataIndex!=="action"&&y.dataIndex!=="actions"&&(y.checked=!1)})},$=()=>{r.value=d.localColumns.map(b=>({...b,label:b.title&&b.title.tag?u(b.title):b.title||b.title2,value:b.dataIndex,checked:b.checked||b.checked===void 0})),n.value=[...r.value];let k=[];d.tableColumns.forEach(function(b){k.push(b.dataIndex)})},T=(k,b)=>{b?k.checked=!0:k.checked=!1},h=()=>{r.value=[...n.value],o("on-get-columns",r.value),c.value=!1},p=()=>{r.value=d.tableColumns.map(b=>({...b,label:b.title&&b.title.tag?u(b.title):b.title||b.title2,value:b.dataIndex,checked:b.checked||b.checked===void 0})),n.value=[...r.value];let k=[];d.tableColumns.forEach(function(b){k.push(b.dataIndex)})},u=k=>k.children[0].text,S=k=>{delete k.fixed;const b=n.value.findIndex(y=>y.value===k.value);if(b!==-1){let y=-1;for(let L=0;L<n.value.length;L++)n.value[L].fixed==="left"&&(y=L);if(y!==-1&&b!==y+1){const L=[...n.value],[V]=L.splice(b,1);L.splice(y+1,0,V),n.value=L}}},_=k=>{const b=n.value.findIndex(y=>y.value===k.value);if(b!==-1){let y=-1;for(let R=0;R<n.value.length;R++)n.value[R].fixed==="left"&&(y=R);const L=[...n.value],[V]=L.splice(b,1);V.fixed="left";const A=y===-1?0:y+1;L.splice(A,0,V),n.value=L}};return e.watch(()=>d.tableColumns,()=>{p()},{immediate:!0,deep:!0}),(k,b)=>{const y=e.resolveComponent("a-tooltip"),L=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",Io,[e.createVNode(e.unref(F.Popover),{title:e.unref(a)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:c.value,"onUpdate:visible":b[1]||(b[1]=V=>c.value=V)},{content:e.withCtx(()=>[e.createVNode(e.unref(he),{modelValue:n.value,"onUpdate:modelValue":b[0]||(b[0]=V=>n.value=V),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:f,onEnd:E},{item:e.withCtx(({element:V})=>[V.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",Do,[e.createVNode(e.unref(F.Checkbox),{checked:V.checked,onChange:A=>T(V,A.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["checked","onChange"]),V.checked?(e.openBlock(),e.createElementBlock("section",Mo,[e.createElementVNode("span",{class:e.normalizeClass(V.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),V.fixed?(e.openBlock(),e.createBlock(y,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:A=>S(V)},[...b[2]||(b[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Ao)]),_:2},1024)):e.createCommentVNode("",!0),V.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:A=>_(V)},[...b[3]||(b[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,Oo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Po,[e.createElementVNode("div",zo,[e.createVNode(e.unref(F.Checkbox),{checked:m.value,indeterminate:C.value,onChange:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),d.localColumns.length?(e.openBlock(),e.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(L,{onClick:h,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(y,{title:e.unref(a)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...b[4]||(b[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-07a63550"]])),je=P(z(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,a=e.useAttrs(),d=e.computed(()=>{const x=a,$=x.dropdownClassName;return{...x,dropdownClassName:$??"hb_lib_form_tooltip_select__dropdown"}}),r=e.ref(),s=e.useModel(t,"value"),c=e.computed(()=>o.options??[]),n=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=x=>x.tooltip??x.label,m=x=>x.key??x.label,C=x=>!!(o.enableTooltip&&i(x));return l({focus:()=>{r.value?.focus?.()},blur:()=>{r.value?.blur?.()},selectRef:r}),(x,$)=>(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({ref_key:"selectRef",ref:r},d.value,{value:s.value,"onUpdate:value":$[0]||($[0]=T=>s.value=T),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[x.$slots.default?e.renderSlot(x.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(c.value,T=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:m(T),value:T.value,disabled:T.disabled},{ref_for:!0},T.optionProps),{default:e.withCtx(()=>[C(T)?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:i(T),placement:o.tooltipPlacement,"overlay-style":n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(T.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(T.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Uo={class:"ant-upload-drag-icon"},Ro={class:"ant-upload-text"},Wo={style:{color:"#ff5000"}},jo={class:"ant-upload-hint"},qo={key:0,class:"hb_import_btn"},Yo=["href"],qe=P(z(e.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(t,{expose:l}){const{t:o}=ee.useI18n(),a=e.ref(),d=t,r=e.ref(!1),s=e.reactive({fileList:[],visible:!1}),c=f=>{if(f==null)return;const E=s.fileList.indexOf(f);if(E!==-1){const x=s.fileList.slice();x.splice(E,1),s.fileList=x}},n=()=>{s.visible=!1,s.fileList=[],r.value=!1},i=f=>(s.fileList=[f],d.beforeUpload?d.beforeUpload(f.originFileObj):!1),m=()=>{a.value.validateFields().then(()=>{d.beforeSubmit&&(r.value=!0,d.beforeSubmit(s.fileList).then(()=>{}).finally(()=>{r.value=!1}))})},C=()=>{s.visible=!0};return l({handleCancel:n,openModal:C,confirmLoading:r}),(f,E)=>{const x=e.resolveComponent("a-upload-dragger"),$=e.resolveComponent("a-form-item"),T=e.resolveComponent("a-form"),h=e.resolveComponent("a-modal"),p=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,e.mergeProps({visible:s.visible,"onUpdate:visible":E[0]||(E[0]=u=>s.visible=u),title:d.title,"confirm-loading":r.value},f.$attrs,{width:d.modalWidth,onCancel:n,onOk:m}),{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"modalFormRef",ref:a,model:s},{default:e.withCtx(()=>[e.createVNode($,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:d.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(x,{"max-count":d.maxCount,multiple:d.multiple,accept:d.acceptFile,name:"file","file-list":s.fileList,"before-upload":i,onRemove:c},{default:e.withCtx(()=>[e.createElementVNode("p",Uo,[e.createVNode(e.unref(Q.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Ro,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Wo,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",jo,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(d.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),d.templateUrl?(e.openBlock(),e.createElementBlock("p",qo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:d.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,Yo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(f.$slots,"btn",{},()=>[e.createVNode(p,{type:"primary",onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Ko={class:"hb_lib_log_modal_content"},Go={class:"log_remark"},Ye=P(z(e.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(t,{expose:l,emit:o}){const{t:a}=ee.useI18n(),d=e.useSlots(),r=t,s=[{title:a("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:a("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:a("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],c=e.computed(()=>r.columns||s),n=e.computed(()=>r.title||a("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!d.title),m=e.ref(!1),C=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,u)=>u[0]+"-"+u[1]+" 总共"+p+"页",total:0}});e.watch(()=>r.pagination,p=>{p&&(C.pagination={...C.pagination,...p})},{deep:!0,immediate:!0});const f=()=>{const p={pageIndex:C.pagination.current,pageSize:C.pagination.pageSize,query:r.params};r.getLogData&&(m.value=!0,r.getLogData(p).then(u=>{Number(u.code)==200?(C.pagination.total=Number(u.data.total),C.list=u.data[r.dataStr]||[]):F.message.error(u.message)}).finally(()=>{m.value=!1}))},E=p=>{C.pagination.current=p.current,C.pagination.pageSize=p.pageSize,f()},x=()=>{C.list=[],h("update:visible",!1)},$=()=>{h("update:visible",!0)},T=(p,u="YYYY-MM-DD HH:mm:ss")=>p?be(p).format(u):"",h=o;return e.watch(()=>r.visible,p=>{p&&f()}),l({close:x,loading:m}),(p,u)=>{const S=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-table"),b=e.resolveComponent("a-button"),y=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,e.mergeProps(p.$attrs,{visible:t.visible,title:i.value?void 0:n.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:x}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(b,{onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Ko,[e.createVNode(k,{bordered:"",rowKey:"id",columns:c.value,dataSource:C.list,pagination:C.pagination,loading:m.value,scroll:{y:t.scrollY},onChange:E},e.createSlots({bodyCell:e.withCtx(({column:L,record:V})=>[L&&L.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.needTooltip?(e.openBlock(),e.createBlock(S,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V[L.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(V[L.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),L&&L.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Go,e.toDisplayString(V[L.dataIndex]),1),e.createVNode(_,{"cp-text":V[L.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),L&&L.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(T(V[L.dataIndex],L.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:L})=>[e.renderSlot(p.$slots,"headerCell",{column:L},()=>[e.createTextVNode(e.toDisplayString(L.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(p.$slots,"default",{key:0},()=>[e.createVNode(b,{onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Jo={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},Xo={class:"hb_ui_config"},Qo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,a=>{o=e.reactive(ae.merge({},Jo,a))},{deep:!0,immediate:!0}),e.provide(Se,o),(a,d)=>(e.openBlock(),e.createElementBlock("div",Xo,[e.renderSlot(a.$slots,"default")]))}}),Se=Symbol("GLOBAL_CONFIG_KEY"),Ke=P(Qo),Zo={class:"hb_card"},vo={key:0,class:"hb_card_header"},el={class:"hb_fix"},tl={class:"hb_card_header-title"},ol={class:"hb_card_header-action"},ll={class:"hb_card_body"},Ge=P(z(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(Se),o=t,a=e.computed(()=>{let d=o.formItemMb||l?.HbLibCard?.formItemMb;return d?{"--hb-card-form-item-mb":d+"px"}:{}});return(d,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},d.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",Zo,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("div",el,[e.createElementVNode("span",tl,[e.renderSlot(d.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",ol,[e.renderSlot(d.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ll,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(a.value)},[e.renderSlot(d.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),nl=["onClick"],al={class:"step"},il={key:0,class:"line"},rl=["title"],Je=P(z(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),a=l.offsetTop??160,d=e.computed(()=>l.anchors.filter(n=>typeof n.visible=="function"?n.visible():n.visible!==!1)),r=()=>{const n=l.containerSelector||"#subpackage_container";return document.querySelector(n)||window},s=n=>{const i=r(),m=n.target.startsWith("#")||n.target.startsWith(".")?n.target:`#${n.target}`,C=document.querySelector(m);if(!C)return;let f=C.offsetTop;i instanceof HTMLElement&&(f-=i.offsetTop),f-=a,i instanceof Window?window.scrollTo({top:f,behavior:"smooth"}):i.scrollTo({top:f,behavior:"smooth"}),o.value=n.target},c=()=>{const n=r();let i=0;n instanceof Window?i=window.scrollY+a+5:i=n.scrollTop+a+5;let m=d.value[0]?.target||"";for(const C of d.value){const f=C.target.startsWith("#")||C.target.startsWith(".")?C.target:`#${C.target}`,E=document.querySelector(f);if(!E)continue;let x=E.offsetTop;n instanceof HTMLElement&&(x-=n.offsetTop),i>=x&&(m=C.target)}o.value=m};return e.onMounted(()=>{r().addEventListener("scroll",c),c()}),e.onBeforeUnmount(()=>{r().removeEventListener("scroll",c)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(a)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(m,C)=>(e.openBlock(),e.createElementBlock("div",{key:m.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===m.target}]),onClick:f=>s(m)},[e.createElementVNode("div",al,[C!==d.value.length-1?(e.openBlock(),e.createElementBlock("div",il)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:m.title},e.toDisplayString(m.title.length>12?m.title.slice(0,12)+"...":m.title),9,rl)],10,nl))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),sl={class:"hb_detail_top_act_left"},cl={key:1,class:"hb_detail_top_wrapper_sticky"},dl={class:"hb_detail_top_act"},ml={key:0,class:"hb_detail_all_info"},pl={class:"hb_detail_all_info_left"},fl={class:"hb_detail_info_title"},hl={key:0,class:"hb_detail_info_content"},bl={class:"create_by"},gl={class:"hb_detail_all_info_right"},ul={class:"hb_edit_detail_content_wrapper"},yl={class:"hb_detail_content"},Cl={class:"hb-back-top-inner"},Xe=P(z(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=ee.useI18n(),o=t,a=e.inject(Se),d=()=>{o.backFn?o.backFn():window.history.back()},r=e.computed(()=>o.backTopBottom||a?.HbLibDetailBox?.backTopBottom||80),s=e.computed(()=>{const $={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||a?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||a?.HbLibDetailBox?.descValueWidth}:$}),c=()=>document.querySelector(o.container),n=e.ref(!1),i=e.ref(null),{top:m}=ie.useElementBounding(i),C=e.computed(c),{y:f}=ie.useScroll(C);e.watch(f,$=>{n.value=$>m.value},{immediate:!0});const E=$=>{document.querySelectorAll(".hb_card_body").forEach(h=>{h.querySelectorAll(".ant-descriptions-item-content span").forEach(u=>{u.textContent?.trim()||(u.textContent=$)})})};let x=null;return e.onMounted(()=>{a?.HbLibDetailBox?.needSetDesDefault&&(x=setTimeout(()=>{E(a?.HbLibDetailBox?.desDefault)},a?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{x&&clearTimeout(x)}),($,T)=>{const h=e.resolveComponent("RollbackOutlined"),p=e.resolveComponent("a-divider"),u=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(u,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",s.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":s.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":s.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",n.value?"can_show":""])},[e.createElementVNode("div",sl,[e.createVNode(h,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:d},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(p,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),T[0]||(T[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",cl,[e.createElementVNode("div",dl,[e.createVNode(h),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:d},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(p,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",ml,[e.createElementVNode("aside",pl,[e.renderSlot($.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",fl,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("span",bl,e.toDisplayString(t.totalInfo.totalInfoSubTitle1)+e.toDisplayString(t.totalInfo.totalInfoSubVal1),1),e.createElementVNode("span",null,e.toDisplayString(t.totalInfo.totalInfoSubTitle2)+e.toDisplayString(t.totalInfo.totalInfoSubVal2),1)])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("aside",gl,[e.renderSlot($.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ul,[e.createElementVNode("div",yl,[e.renderSlot($.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(F.BackTop),{target:c,style:e.normalizeStyle({bottom:r.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Cl,[e.createVNode(e.unref(Q.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),Qe=P(z(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(n,i=300)=>Ue(n,i),a=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),d=e.ref(0),r=n=>{let i=0;return(Array.isArray(n)?n:[n]).forEach(C=>{let f=[];if(C.startsWith("#")){const E=document.getElementById(C.slice(1));E&&f.push(E)}else f=Array.from(document.getElementsByClassName(C));f.forEach(E=>{i+=E.offsetWidth||0})}),i},s=()=>{l.leftElements&&(d.value=r(l.leftElements)+1)};let c=null;return e.onMounted(()=>{const n=l.getContainer();n!==window&&n instanceof HTMLElement&&n.addEventListener("scroll",()=>{}),s(),c=new MutationObserver(()=>{s()});const i=document.body;c.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{c&&c.disconnect()}),(n,i)=>{const m=e.resolveComponent("a-button"),C=e.resolveComponent("a-space"),f=e.resolveComponent("a-affix"),E=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":d.value+"px"})},[e.createVNode(f,{"offset-bottom":0,target:t.getContainer,style:{width:"100%"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:t.placeLeft,page_footer_btn_right:t.placeRight})},[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,x=>e.withDirectives((e.openBlock(),e.createBlock(m,{key:x.key,type:x.type||"default",danger:x.danger,loading:x.loading,disabled:x.disabled,onClick:x.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[E,x.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),kl={class:"modal__detail-content"},Ze=P(z(e.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(t,{expose:l,emit:o}){const a=o,d=t,r=e.computed({get:()=>d.visible,set:V=>a("update:visible",V)}),s=e.ref(null),c=e.computed(()=>({top:"10px",...d.modalStyle})),n=e.computed(()=>({overflow:"hidden",...d.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...d.bodyStyle})),{x:m,y:C,isDragging:f}=ie.useDraggable(s),E=e.ref(0),x=e.ref(0),$=e.ref(!1),T=e.ref(0),h=e.ref(0),p=e.ref(0),u=e.ref(0),S=e.ref({left:0,right:0,top:0,bottom:0});let _=null;const k=()=>{T.value=0,h.value=0,p.value=0,u.value=0,$.value=!1};e.watch(r,V=>{V?setTimeout(()=>{k()},50):(_&&clearTimeout(_),_=setTimeout(()=>{T.value=0,h.value=0,p.value=0,u.value=0},300))}),e.watch([m,C],()=>{if(!$.value){E.value=m.value,x.value=C.value;const V=document.body.getBoundingClientRect(),A=s.value.getBoundingClientRect();S.value.right=V.width-A.width,S.value.bottom=V.height-A.height,p.value=T.value,u.value=h.value}$.value=!0}),e.watch(f,()=>{f||($.value=!1)}),e.watchEffect(()=>{$.value&&(T.value=p.value+Math.min(Math.max(S.value.left,m.value),S.value.right)-E.value,h.value=u.value+Math.min(Math.max(S.value.top,C.value),S.value.bottom)-x.value)});const b=e.computed(()=>({transform:`translate(${T.value}px, ${h.value}px)`})),y=()=>{a("cancel")},L=()=>{a("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),l({handleOk:L,handleCancel:y}),(V,A)=>{const R=e.resolveComponent("a-spin"),N=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(N,e.mergeProps({style:c.value,bodyStyle:i.value,ref:"modalRef",visible:r.value,"onUpdate:visible":A[0]||(A[0]=H=>r.value=H),"wrap-style":n.value,onOk:L,onCancel:y},V.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:s,style:{width:"100%",cursor:"move"}},[e.renderSlot(V.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:H})=>[(e.openBlock(),e.createElementBlock("div",{key:r.value,style:e.normalizeStyle(b.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H)))],4))]),default:e.withCtx(()=>[e.createVNode(R,{spinning:d.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([t.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",t.descLabelWidth&&"hb_need_set_desc_label_width",t.descValueWidth&&"hb_need_set_desc_value_width"]),style:e.normalizeStyle({"--hb-detail-desc-label-width":t.descLabelWidth+"px","--hb-detail-desc-value-width":t.descValueWidth+"px"})},[e.createElementVNode("div",kl,[e.renderSlot(V.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[V.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),_l={key:0,class:"hb_edit_header"},wl={class:"__detail-content"},Ll={key:1,class:"hb_edit_footer"},Sl={class:"hb-back-top-inner"},ve=P(z(e.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(t){const l=e.ref("vertical"),o=t,a=()=>document.querySelector(o.container),d=e.inject("GLOBAL_CONFIG_KEY"),r=e.computed(()=>o.backTopBottom||d?.HbLibUnDetailBox?.backTopBottom||80);return(s,c)=>(e.openBlock(),e.createBlock(e.unref(F.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},s.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[s.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",_l,[e.renderSlot(s.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",wl,[e.renderSlot(s.$slots,"editContent",{},void 0,!0)])],2),s.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",Ll,[e.renderSlot(s.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(F.BackTop),{target:a,style:e.normalizeStyle({bottom:r.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Sl,[e.createVNode(e.unref(Q.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),xl={class:"hb_edit_header_left"},Bl={class:"hb_edit_header_title"},Nl={class:"hb_edit_header_right"},et=P(z(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=ee.useI18n(),o=t,a=Ce.useRoute(),d=e.ref(0),r=e.computed(()=>a?.meta?.title||"");function s(f,E="offsetHeight"){let x=0;return(Array.isArray(f)?f:[f]).forEach(T=>{let h=[];if(T.startsWith("#")){const p=document.getElementById(T.slice(1));p&&h.push(p)}else h=Array.from(document.getElementsByClassName(T));h.forEach(p=>{x+=p[E]||0})}),x}const c=()=>{o.topElements&&(d.value=s(o.topElements))},n=e.ref(0),i=()=>{o.leftElements&&(n.value=s(o.leftElements,"offsetWidth")+1)};let m=null;e.onMounted(()=>{c(),i(),window.addEventListener("resize",c),m=new MutationObserver(()=>{i()});const f=document.body;m.observe(f,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",c),m&&m.disconnect()}),e.watch(()=>o.topElements,()=>{c()},{immediate:!0});const C=()=>{o.backFn?o.backFn():window.history.back()};return(f,E)=>{const x=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:d.value+"px","--pageHeaderOrFonterLeft":n.value+"px"})},[e.createElementVNode("aside",xl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:C},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(x,{type:"vertical"}),e.createElementVNode("span",Bl,e.toDisplayString(r.value),1)]),e.createElementVNode("aside",Nl,[e.renderSlot(f.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Tl={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"}},xe=P(z(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Tl,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const a=e.computed(()=>l.tooltipTitle||"复制"),d=e.computed(()=>l.copySuccessTip||"复制成功"),r=e.computed(()=>l.copyFailTip||"复制失败"),s=e.computed(()=>{if(l.cpText)return l.cpText;let n="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(m=>m?.[l.K]===l.V);n=i?i[l.L]:""}}else l.K&&(n=l.data[l.K]);return n}),c=()=>{navigator.clipboard.writeText(s.value).then(()=>{F.message.success(d.value)}).catch(()=>{F.message.error(r.value)})};return(n,i)=>s.value?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:a.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...n.cpStyle}),onClick:e.withModifiers(c,["stop","prevent"])},[...i[0]||(i[0]=[e.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"},[e.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"}),e.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"}),e.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"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),El={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:""}},tt=P(z(e.defineComponent({name:"HbDrag",__name:"index",props:El,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,a=e.shallowRef([]);e.watch(()=>o.dragList,m=>{a.value=m},{deep:!0,immediate:!0});const d=ke("drag"),r=l,s=m=>{console.log("drag start",m),r("handleDragStart",m)},c=m=>{console.log("drag end",m),r("handleDragEnd",m)},n=m=>{console.log("drag add",m),r("handleDragAdd",m)},i=m=>{console.log("drag remove",m),r("handleDragRemove",m)};return(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d).b())},[m.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(he),e.mergeProps({key:0,modelValue:a.value,"onUpdate:modelValue":C[0]||(C[0]=f=>a.value=f),"item-key":"key",class:{[m.dragClass]:m.dragClass}},m.$attrs,{"ghost-class":m.ghostClass,onStart:s,onEnd:c,onAdd:n,onRemove:i}),{item:e.withCtx(({element:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(he),e.mergeProps({key:1,modelValue:a.value,"onUpdate:modelValue":C[1]||(C[1]=f=>a.value=f),"item-key":"id",class:{[m.dragClass]:m.dragClass}},m.$attrs,{"ghost-class":m.ghostClass,onStart:s,onEnd:c,onAdd:n,onRemove:i}),{item:e.withCtx(({element:f})=>[e.createElementVNode("div",null,[e.renderSlot(m.$slots,"default",{item:f},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Fl={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},ot=P(z(e.defineComponent({name:"HbLibSort",__name:"sort",props:Fl,emits:["change"],setup(t,{expose:l,emit:o}){const a=t,d=o,r=e.ref([]),s=e.ref("");e.watch(()=>a.menuItems,n=>{let i=[];Array.isArray(n)&&n.length&&n.forEach(m=>{i=[...i,{label:`${m.label}升序`,value:`${m.value}`,sort:"Asc"},{label:`${m.label}降序`,value:`${m.value}`,sort:"Desc"}]}),r.value=i},{deep:!0,immediate:!0});const c=n=>{s.value=n.value+n.sort,a.getSort&&a.getSort({orderFeild:n.value,orderBy:n.sort}),d("change",s)};return l({currentActiveItem:s}),(n,i)=>{const m=e.resolveComponent("a-menu-item"),C=e.resolveComponent("a-menu"),f=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(f,{trigger:[a.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,E=>(e.openBlock(),e.createBlock(m,{key:E.value+E.sort,onClick:x=>c(E)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(s.value==E.value+E.sort?"activted":"")},e.toDisplayString(E.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(a.colText)+" ",1),e.createVNode(e.unref(Q.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Vl={class:"hb_lib_loading"},$l={class:"hb_lib_loading_loading_anima"},Hl={class:"hb_lib_loading_load_tips"},lt=P(z(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=ee.useI18n(),o=t,a=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(d,r)=>(e.openBlock(),e.createElementBlock("div",Vl,[e.createElementVNode("div",$l,[r[0]||(r[0]=e.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)),e.createElementVNode("div",Hl,e.toDisplayString(a.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]]));function nt(t){const l=t.trim();try{return new URL(l).href}catch{const o=l.replace(/ /g,"%20");try{return new URL(o).href}catch{return o}}}function at(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function it(t){return new Promise((l,o)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.withCredentials=at(t),a.onload=()=>{a.status>=200&&a.status<300?l(a.response):o(new Error(String(a.status)))},a.onerror=()=>o(new Error("xhr")),a.send()})}async function Il(t){const l=nt(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return it(l);if(typeof fetch=="function"){const a=await fetch(l,{credentials:at(l)?"include":"omit",mode:"cors"});if(!a.ok)throw new Error(String(a.status));return a.blob()}return it(l)}function Dl(t,l){const o=l.trim()||"download",a=navigator;if(typeof a.msSaveOrOpenBlob=="function"){a.msSaveOrOpenBlob(t,o);return}const d=URL.createObjectURL(t);try{const r=document.createElement("a");r.href=d,r.rel="noopener noreferrer",r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}finally{URL.revokeObjectURL(d)}}function Ml(t){const l=nt(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function ue(t,l){const o=(l||"download").trim()||"download";try{const a=await Il(t);Dl(a,o);return}catch{Ml(t)}}const Al=768;function Ol(){return typeof window>"u"?!0:window.innerWidth>=Al}function rt(){return!Ol()}const Pl=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},st=t=>t.downloadUrl,zl=(t,l,o)=>{const a=n=>n.previewUrl,d=o?.preferredIndex;if(typeof d=="number"&&d>=0&&d<t.length){const n=t[d];if(n===l)return d;const i="uploadDate"in n&&n.uploadDate||"",m="uploadDate"in l&&l.uploadDate||"";if(a(n)===a(l)&&(n.attachmentDesc||"")===(l.attachmentDesc||"")&&i===m)return d}const r=l.attachmentId;if(r){const n=t.findIndex(i=>i.attachmentId===r);if(n>=0)return n}const s=a(l);if(s){const n=t.findIndex(i=>a(i)===s);if(n>=0)return n}const c=st(l);if(c){const n=t.findIndex(i=>st(i)===c);if(n>=0)return n}return t.indexOf(l)},Ul={class:"file-preview-modal-title"},Rl={key:0,class:"file-preview-modal-title__tip"},Wl={class:"file-preview-modal-body file-preview-modal-body--fill"},jl={key:0},ql=["src"],Yl={key:1},Kl=["src"],Gl=["src"],Jl={key:2,class:"file-preview-modal-body__pre"},Xl=["src"],Ql={key:0,class:"file-preview-modal-footer__nav"},Zl={class:"file-preview-modal-body file-preview-modal-body--fill"},vl=["src"],en=["src"],tn={key:2,class:"file-preview-modal-body__pre"},on=["src"],ln=["src"],nn={key:0,class:"file-preview-modal-footer__nav"},ct=P(z(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},needSafe:{type:Boolean,default:!1},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),a=new Set(["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv","txt"]),d=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),r={"application/pdf":"pdf","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","text/rtf":"rtf","text/plain":"txt","text/csv":"csv","image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/bmp":"bmp","image/webp":"webp","image/svg+xml":"svg","application/vnd.oasis.opendocument.text":"odt","application/vnd.oasis.opendocument.spreadsheet":"ods","application/vnd.oasis.opendocument.presentation":"odp"},s=l,c=t,n=e.ref(c.previewVisible);e.watch(()=>c.previewVisible,I=>{n.value=I});const i=e.computed(()=>c.mobile?"100%":"98%"),m=e.computed(()=>String(c.url||"").trim()),C=e.computed(()=>!!m.value),f=e.computed(()=>c.mobile?"large":"middle"),E=e.computed(()=>c.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),x=e.computed(()=>({height:c.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:c.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),$=I=>String(I||"").trim().replace(/^\./,"").toLowerCase(),T=I=>{const w=$(Pl(String(I||"")));return a.has(w)||d.has(w)?w:""},h=I=>{try{return decodeURIComponent(String(I||""))}catch{return String(I||"")}},p=I=>{const w=h(I).trim();if(!w)return"";const Y=T(w);if(Y)return Y;const W=w.match(/(?:\(|()\s*([a-z0-9]{2,8})\s*(?:\)|))\s*$/i),K=$(W?.[1]);return a.has(K)||d.has(K)?K:""},u=I=>{if(!I)return"";const w=I.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);if(w?.[1])return h(w[1]);const Y=I.match(/filename\s*=\s*"?([^";]+)"?/i);return Y?.[1]?h(Y[1]):""},S=I=>{const w=String(I||"").trim();if(!w)return"";const Y=T(w);if(Y)return Y;try{const W=new URL(w,"http://local.preview"),K=p(W.pathname.split("/").pop()||"");if(K)return K;const se=["filename","fileName","name","file","download","attachment","attname","key","object"];for(const Be of se){const fe=p(W.searchParams.get(Be)||"");if(fe)return fe}const le=W.searchParams.get("response-content-disposition")||W.searchParams.get("content-disposition"),ht=p(u(le));if(ht)return ht;for(const Be of W.searchParams.values()){const fe=p(Be);if(fe)return fe}}catch{}return""},_=async I=>{const w=String(I||"").trim();if(!w)return"";try{const Y=await fetch(w,{method:"HEAD",credentials:"include",mode:"cors"}),W=String(Y.headers.get("content-type")||"").split(";")[0].trim().toLowerCase();if(W&&r[W])return r[W];const K=u(Y.headers.get("content-disposition")||"");return p(K)}catch{return""}},k=e.ref("");let b=0;e.watch(()=>`${c.fileName||""}\0${m.value}`,async()=>{const I=++b,w=p(c.fileName||""),Y=S(m.value);if(k.value=w||Y||"",k.value)return;const W=await _(m.value);I===b&&(k.value=$(W))},{immediate:!0});const y=e.computed(()=>$(k.value)),L=e.computed(()=>`${c.url}\0${c.fileName||""}`),V=e.computed(()=>d.has(y.value)),A=e.computed(()=>a.has(y.value)),R=e.computed(()=>{const I=m.value;if(!I)return!1;try{const{pathname:w}=new URL(I);return/\/file(?:\/|-)preview\b/i.test(w)}catch{return/\/file(?:\/|-)preview\b/i.test(I)}}),N=e.getCurrentInstance(),H=e.computed(()=>{const I=N?.appContext?.components||{};return!!(I.VueFilesPreview||I.VueFilesPreview||I["vue-files-preview"])}),j=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),q=e.computed(()=>!H.value||!m.value||R.value?!1:j.has(y.value)),J=e.computed(()=>y.value==="txt"),Z=e.computed(()=>!m.value||R.value?!1:J.value),X={idle:"idle",loading:"loading",text:"text",iframeFallback:"iframe-fallback"},v=e.ref(X.idle),g=e.ref("");e.watch(()=>({visible:c.previewVisible,url:m.value,isTxt:J.value}),async({visible:I,url:w,isTxt:Y})=>{if(g.value="",v.value=X.idle,!(!I||!Y||!w)){v.value=X.loading;try{const W=await fetch(w,{credentials:"include",mode:"cors"});if(!W.ok)throw new Error(String(W.status));g.value=await W.text(),v.value=X.text}catch{v.value=X.iframeFallback}}},{flush:"post"});const M=e.computed(()=>!m.value||!H.value||J.value?!1:q.value?!0:!A.value&&!V.value),B=e.computed(()=>o.has(y.value)),O=e.computed(()=>{const I=m.value;return I?R.value||!A.value||c.needSafe||y.value==="pdf"?I:B.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(I)}`:`https://docs.google.com/gview?url=${encodeURIComponent(I)}&embedded=true`:c.url}),G=new Set(["view.officeapps.live.com","docs.google.com"]),oe=e.computed(()=>{const I=(O.value||"").trim();if(!I)return!1;try{const w=new URL(I).hostname.toLowerCase();return G.has(w)}catch{return/view\.officeapps\.live\.com|docs\.google\.com/i.test(I)}}),te=e.computed(()=>oe.value?{sandbox:"allow-scripts allow-same-origin",allow:"fullscreen"}:{}),U=e.ref("");e.watch(()=>({visible:c.previewVisible,src:O.value,doc:A.value,serverPage:R.value,skipIframe:q.value}),async({visible:I,src:w,doc:Y,serverPage:W,skipIframe:K})=>{if(U.value="",!I||!(Y||W)||K)return;const se=(w||"").trim();se&&(await e.nextTick(),await new Promise(le=>requestAnimationFrame(le)),c.previewVisible&&O.value===se&&(U.value=se))},{flush:"post"});const ce=e.computed(()=>C.value),de=async()=>{m.value&&(rt()?window.open(m.value,"_blank"):await ue(m.value,c.fileName||"file"))},me=()=>{s("closeModal")};return(I,w)=>{const Y=e.resolveComponent("VueFilesPreview"),W=e.resolveComponent("a-spin"),K=e.resolveComponent("a-button"),se=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(se,e.mergeProps({key:0,visible:n.value,"onUpdate:visible":w[2]||(w[2]=le=>n.value=le),width:i.value,"body-style":x.value,style:E.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},I.$attrs,{onCancel:me}),{title:e.withCtx(()=>[e.createElementVNode("div",Ul,[e.renderSlot(I.$slots,"title",{},()=>[e.createTextVNode("文件预览 "+e.toDisplayString(U.value),1)],!0),e.unref(rt)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Rl,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(I.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Ql,[e.createVNode(K,{disabled:!t.hasPrevAttachment,size:f.value,block:t.mobile,onClick:w[0]||(w[0]=le=>s("prevAttachment"))},{default:e.withCtx(()=>[...w[5]||(w[5]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(K,{disabled:!t.hasNextAttachment,size:f.value,block:t.mobile,onClick:w[1]||(w[1]=le=>s("nextAttachment"))},{default:e.withCtx(()=>[...w[6]||(w[6]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),ce.value?(e.openBlock(),e.createBlock(K,{key:1,size:f.value,block:t.mobile,onClick:de},{default:e.withCtx(()=>[...w[7]||(w[7]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(K,{type:"primary",class:"file-preview-modal-footer__close",size:f.value,block:t.mobile,onClick:me},{default:e.withCtx(()=>[...w[8]||(w[8]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Wl,[t.needSafe?(e.openBlock(),e.createElementBlock("section",jl,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[U.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${L.value}:${U.value}`,src:U.value},te.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,ql)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(Y,{key:`vfp:${L.value}`,url:t.url},null,8,["url"]))])):(e.openBlock(),e.createElementBlock("section",Yl,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[U.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${L.value}:${U.value}`,src:U.value},te.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,Kl)):e.createCommentVNode("",!0)],64)):Z.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${L.value}`,class:"file-preview-modal-body__plaintext"},[v.value===X.loading?(e.openBlock(),e.createBlock(W,{key:0,tip:"加载中..."})):v.value===X.iframeFallback?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:c.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Gl)):v.value===X.text?(e.openBlock(),e.createElementBlock("pre",Jl," "+e.toDisplayString(g.value)+`
2
- `,1)):e.createCommentVNode("",!0)])):A.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[U.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${L.value}:${U.value}`,src:U.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Xl)):e.createCommentVNode("",!0)],64)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${L.value}`,class:"no-preview"},e.toDisplayString(H.value?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]))])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Zl,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[U.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${L.value}:${U.value}`,src:U.value},te.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,vl)):e.createCommentVNode("",!0)],64)):Z.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${L.value}`,class:"file-preview-modal-body__plaintext"},[v.value===X.loading?(e.openBlock(),e.createBlock(W,{key:0,tip:"加载中..."})):v.value===X.iframeFallback?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:c.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,en)):v.value===X.text?(e.openBlock(),e.createElementBlock("pre",tn,e.toDisplayString(g.value)+`
3
- `,1)):e.createCommentVNode("",!0)])):M.value?(e.openBlock(),e.createBlock(Y,{key:`vfp:${L.value}`,url:t.url},null,8,["url"])):A.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[U.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${L.value}:${U.value}`,src:U.value},te.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,on)):e.createCommentVNode("",!0)],64)):V.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${L.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,ln)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${L.value}`,class:"no-preview"},e.toDisplayString(H.value?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(I.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",nn,[e.createVNode(K,{disabled:!t.hasPrevAttachment,size:f.value,block:t.mobile,onClick:w[3]||(w[3]=le=>s("prevAttachment"))},{default:e.withCtx(()=>[...w[9]||(w[9]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(K,{disabled:!t.hasNextAttachment,size:f.value,block:t.mobile,onClick:w[4]||(w[4]=le=>s("nextAttachment"))},{default:e.withCtx(()=>[...w[10]||(w[10]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),ce.value?(e.openBlock(),e.createBlock(K,{key:1,size:f.value,block:t.mobile,onClick:de},{default:e.withCtx(()=>[...w[11]||(w[11]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(K,{type:"primary",class:"file-preview-modal-footer__close",size:f.value,block:t.mobile,onClick:me},{default:e.withCtx(()=>[...w[12]||(w[12]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-d14508e1"]])),an=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Je,HbLibCard:Ge,HbLibCopy:xe,HbLibDetailBox:Xe,HbLibFilePreview:ct,HbLibFooterBar:Qe,HbLibFormItemFilterModal:Ne,HbLibFormTooltipSelect:je,HbLibFuncCompDrag:tt,HbLibImportFile:qe,HbLibListBtnsAct:Fe,HbLibListForm:Te,HbLibListMultiSelect:He,HbLibListPageAct:Ee,HbLibListPageContainer:$e,HbLibListTable:Re,HbLibLoading:lt,HbLibLogModal:Ye,HbLibModal:Ze,HbLibMutilpleSelectModal:Ie,HbLibPageHeader:et,HbLibSort:ot,HbLibTableAct:De,HbLibTableColumnSet:We,HbLibUnDetailBox:ve,HbUiConfig:Ke},Symbol.toStringTag,{value:"Module"})),ne=new Map;let dt;ie.isClient&&(document.addEventListener("mousedown",t=>dt=t),document.addEventListener("mouseup",t=>{for(const l of ne.values())for(const{documentHandler:o}of l)o(t,dt)}));function mt(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(a,d){const r=l.instance.popperRef,s=a.target,c=d?.target,n=!l||!l.instance,i=!s||!c,m=t.contains(s)||t.contains(c),C=t===s,f=o.length&&o.some(x=>x?.contains(s))||o.length&&o.includes(c),E=r&&(r.contains(s)||r.contains(c));n||i||m||C||f||E||l.value(a,d)}}const rn={beforeMount(t,l){ne.has(t)||ne.set(t,[]),ne.get(t).push({documentHandler:mt(t,l),bindingFn:l.value})},updated(t,l){ne.has(t)||ne.set(t,[]);const o=ne.get(t),a=o.findIndex(r=>r.bindingFn===l.oldValue),d={documentHandler:mt(t,l),bindingFn:l.value};a>=0?o.splice(a,1,d):o.push(d)},unmounted(t){ne.delete(t)}},sn={mounted(t,l){const{value:o,arg:a}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const d=parseInt(a,10)||300;let r;t.__debounceHandler__=function(...s){r&&clearTimeout(r),r=setTimeout(()=>{o(...s)},d)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},pt=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(xe,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},cn={cos:rn,dc:sn,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}pt(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&pt(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}};function dn(t){const l=e.ref(!1),o=e.ref(""),a=e.ref(""),d=e.ref(-1),r=h=>h.previewUrl,s=e.computed(()=>{const h=t.value.attachmentInfos,p=d.value;if(p<=0)return!1;for(let u=p-1;u>=0;u--)if(r(h[u]))return!0;return!1}),c=e.computed(()=>{const h=t.value.attachmentInfos,p=d.value;if(p<0||p>=h.length-1)return!1;for(let u=p+1;u<h.length;u++)if(r(h[u]))return!0;return!1}),n=e.computed(()=>t.value.attachmentInfos.length>1),i=h=>{const u=t.value.attachmentInfos[h];if(!u)return;const S=r(u);S&&(d.value=h,o.value=S,a.value=u.attachmentDesc||"",l.value=!0)},m=()=>{const h=t.value.attachmentInfos,p=d.value;for(let u=p-1;u>=0;u--)if(r(h[u])){i(u);return}},C=()=>{const h=t.value.attachmentInfos,p=d.value;for(let u=p+1;u<h.length;u++)if(r(h[u])){i(u);return}},f=()=>{l.value=!1,d.value=-1,o.value="",a.value=""},E=(h,p)=>{const u=r(h);if(!u){F.message.warning("暂无预览地址");return}const S=t.value.attachmentInfos,_=zl(S,h,{preferredIndex:p});_>=0?i(_):(d.value=-1,o.value=u,a.value=h.attachmentDesc||"",l.value=!0)},x=h=>{const p=h.downloadUrl;if(!p){F.message.warning("暂无下载地址");return}const u=h.attachmentDesc?.trim()||"download";ue(p,u)},$=400;return{filePreviewVisible:l,pdfPreviewUrlRef:o,previewFileNameRef:a,previewAttachmentIndexRef:d,hasPrevAttachment:s,hasNextAttachment:c,showAttachmentNavBar:n,handlePreview:E,handleDownload:x,handleClosePreview:f,goPrevAttachment:m,goNextAttachment:C,triggerBrowserDownload:ue,handleBatchDownloadAttachment:async()=>{const p=t.value.attachmentInfos.filter(u=>!!u.downloadUrl?.trim());if(p.length===0){F.message.warning("暂无可下载附件");return}for(let u=0;u<p.length;u++){const S=p[u],_=S.attachmentDesc?.trim()||"download";ue(S.downloadUrl,_),u<p.length-1&&await new Promise(k=>setTimeout(k,$))}}}}const mn=t=>{const l=e.ref();l.value=t.slice();const o=JSON.parse(JSON.stringify(l.value));return{formItems:l,DeepCloneFromItem:o,handleSearchCase:d=>{let r=[],s=Object.keys(d);o.forEach(c=>{s.includes(c.key)&&r.push(c)}),l.value=r}}},pn=t=>{let l=!0;return{start:()=>{e.nextTick(()=>{const r=document.querySelector(`.${t} .ant-modal`);if(r){let s=!1,c={x:0,y:0};const n=r.querySelector(".ant-modal-header"),i=r.querySelector(".ant-modal-footer");n&&(n.style.cursor="move",i.style.cursor="move",n.addEventListener("mousedown",m=>{s=!0,c.x=m.clientX-r.offsetLeft,c.y=m.clientY-r.offsetTop,document.body.style.userSelect="none"}),i.addEventListener("mousedown",m=>{s=!0,c.x=m.clientX-r.offsetLeft,c.y=m.clientY-r.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",m=>{if(!s||!l)return;const C=m.clientX-c.x,f=m.clientY-c.y;r.style.left=`${C}px`,r.style.top=`${f}px`}),document.addEventListener("mouseup",()=>{s=!1,document.body.style.userSelect=""}))}})},stop:()=>{l=!1},resetPosition:()=>{e.nextTick(()=>{const r=document.querySelector(`.${t} .ant-modal`);if(r){const s=window.innerWidth,c=window.innerHeight,n=r.offsetWidth,i=r.offsetHeight,m=(s-n)/2,C=(c-i)/2;r.style.left=`${m}px`,r.style.top=`${C}px`}})}}},fn={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"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},hn={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:"ファイルのアップロード"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},bn={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:"文件上传"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},gn={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"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var ye={exports:{}},un=ye.exports,ft;function yn(){return ft||(ft=1,(function(t,l){(function(o,a){t.exports=a(be)})(un,(function(o){function a(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var d=a(o),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,c){return c==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,c){var n=100*s+c;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return d.default.locale(r,null,!0),r}))})(ye)),ye.exports}yn(),be.locale("zh-cn");const Cn={en_US:fn,ja_JP:hn,zh_CN:bn,de_DE:gn},kn=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(an).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),Object.entries(cn).forEach(([o,a])=>{t.directive(o,a)})};D.HbLibAnchor=Je,D.HbLibCard=Ge,D.HbLibCopy=xe,D.HbLibDetailBox=Xe,D.HbLibFilePreview=ct,D.HbLibFooterBar=Qe,D.HbLibFormItemFilterModal=Ne,D.HbLibFormTooltipSelect=je,D.HbLibFuncCompDrag=tt,D.HbLibImportFile=qe,D.HbLibListBtnsAct=Fe,D.HbLibListForm=Te,D.HbLibListMultiSelect=He,D.HbLibListPageAct=Ee,D.HbLibListPageContainer=$e,D.HbLibListTable=Re,D.HbLibLoading=lt,D.HbLibLogModal=Ye,D.HbLibModal=Ze,D.HbLibMutilpleSelectModal=Ie,D.HbLibPageHeader=et,D.HbLibSort=ot,D.HbLibTableAct=De,D.HbLibTableColumnSet=We,D.HbLibUnDetailBox=ve,D.HbUiConfig=Ke,D.install=kn,D.locales=Cn,D.useCalTableHeight=Ve,D.useCalTableWidth=_e,D.useFilePreview=dn,D.useListFormItem=mn,D.useModalDrag=pn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(D,he){typeof exports=="object"&&typeof module<"u"?he(exports,require("vue-files-preview"),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-files-preview","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],he):(D=typeof globalThis<"u"?globalThis:D||self,he(D.HbComponentLib={},D.VueFilesPreview,D.Vue,D.draggable,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.iconsVue,D.core,D.dayjs))})(this,(function(D,he,e,ue,E,we,te,ie,Z,re,ye){"use strict";const Le=(t="")=>{const l=`hb-${t}`;return kt(l)},se=(t,l,o,a)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),a&&(t+=`--${a}`),t),kt=t=>({b:l=>l?se(t,l,"",""):se(t,"","",""),e:l=>l?se(t,"",l,""):"",m:l=>se(t,"","",l),be:(l,o)=>se(t,l,o,""),em:(l,o)=>se(t,"",l,o),bem:(l,o,a)=>se(t,l,o,a),is:(l,o)=>o?`is-${l}`:""}),_t=["onMouseenter","onMouseleave"],wt=["onClick"],Lt=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const a=e.inject("globalCompConfig",{}),d=te.useI18n().t,r=te.useI18n().messages.value.en_US,c=te.useI18n().messages.value.ja_JP,s=te.useI18n().messages.value.zh_CN,n=t,i=e.computed(()=>n.showNumber||a.HbLibFormItemFilterModal?.defaultShowCount||40),m=e.computed(()=>n.title||d("hbLibComp.hbFormItemFilterModal.title")),C=o,f=Le("sfcm"),T=we.useRoute(),S=e.reactive({lan:window.localStorage.getItem("lan")}),H=e.ref(!1),N=e.ref(600);let h=[];const p=e.ref([]),u=e.ref([]),L=e.computed(()=>p.value.every(g=>g.isLinked||g.isFixed)),_=g=>({...g,label:w(g)||`${F(g)||""} (${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:g.key,isFixed:g?.isFixed||!1,isLinked:g?.isLinked||!1,labelLanguage:g?.labelLanguage||void 0}),k=g=>{const M=g.draggedContext.element,x=g.relatedContext.index;if(M.isLinked||M.isFixed)return!1;const P=p.value.map((J,le)=>({item:J,index:le})).filter(({item:J})=>J.isLinked).map(({index:J})=>J);if(P.length===0)return!0;for(let J=0;J<P.length-1;J++){const le=P[J],oe=P[J+1];if(x>le&&x<oe)return!1}return!0},b=e.computed(()=>y()+"_"+n.saveKey),y=()=>{const g=localStorage.getItem("pro__Login_Userinfo");let M="anonymous";if(g)try{M=JSON.parse(g).value.jobNumber||"anonymous"}catch(P){console.warn("解析用户信息失败:",P)}let x=T?.path;return`searchFormConfig_${M}_${x}`},w=g=>({ja_JP:()=>ie.get(c,g.labelLanguage||""),en_US:()=>ie.get(r,g.labelLanguage||""),zh_CN:()=>ie.get(s,g.labelLanguage||"")})[S.lan]?.()||g.label,F=g=>({ja_JP:()=>ie.get(c,g.subLabelLanguage||""),en_US:()=>ie.get(r,g.subLabelLanguage||""),zh_CN:()=>ie.get(s,g.subLabelLanguage||"")})[S.lan]?.()||g.subLabel,O=()=>{try{const g=localStorage.getItem(b.value);if(g){const M=JSON.parse(g);if(M.originalList&&Array.isArray(M.originalList)){h=JSON.parse(JSON.stringify(M.originalList));const x=h.filter(A=>A?.isFixed),P=h.filter(A=>A?.isLinked),J=M.showList.filter(A=>!A.isFixed&&!A.isLinked),le=i.value&&i.value>0?Math.max(0,i.value-x.length-P.length):J.length,oe=x.map(A=>({..._(A)})),j=P.map(A=>({..._(A)})),de=J.slice(0,le).map(A=>({..._(A)}));p.value=[...oe,...j,...de];const me=p.value.map(A=>A.key),fe=h.map(A=>A.key).filter(A=>!me.includes(A));return u.value=h.filter(A=>fe.includes(A.key)).map(A=>({..._(A),active:!1})),!0}}}catch(g){console.warn("加载保存的搜索配置失败:",g)}return!1},R=()=>{try{const g={originalList:h,showList:p.value.map(M=>({...M,key:M.key,label:M.label,isFixed:M.isFixed,isLinked:M.isLinked,labelLanguage:M?.labelLanguage||void 0}))};localStorage.setItem(b.value,JSON.stringify(g))}catch(g){console.warn("保存搜索配置失败:",g)}},B=e.computed(()=>{const g=p.value.filter(x=>!x.isFixed&&!x.isLinked).length,M=p.value.filter(x=>x.isFixed||x.isLinked).length;return g>=i.value-M});e.watch(()=>n.list,g=>{let M=JSON.stringify(p.value)!==JSON.stringify(g);if(!M)return;const x=localStorage.getItem(b.value),P=JSON.parse(x||"{}");if(P&&P?.originalList&&Array.isArray(P.originalList))O(),C("confirm",p.value);else if(M){h=JSON.parse(JSON.stringify(g));const J=g.filter(A=>A?.isFixed),le=g.filter(A=>A?.isLinked),oe=g.filter(A=>!A?.isFixed&&!A?.isLinked),j=i.value&&i.value>0?Math.max(0,i.value-J.length-le.length):oe.length,de=J.map(A=>_(A)),me=le.map(A=>_(A)),pe=oe.slice(0,j).map(A=>_(A));p.value=[...de,...me,...pe];const fe=oe.slice(j).map(A=>({..._(A),active:!1}));u.value=fe,C("confirm",p.value)}},{immediate:!0});const I=g=>{const M=p.value.findIndex(x=>x.key===g.key);M!==-1&&(p.value.splice(M,1),u.value.push({...g,active:!1}))},q=g=>{if(B.value){E.message.warning(`当前已经超过${d(i.value)}个可选数量,请先删除已显示条件`);return}const M=u.value.findIndex(x=>x.key===g.key);if(M!==-1){const[x]=u.value.splice(M,1);p.value.push({...x,active:!1})}},Y=()=>{H.value=!1},X=()=>{H.value=!0},v=()=>{R(),C("confirm",p.value),Y()},Q=g=>{const M=u.value.findIndex(x=>x.key===g.key);M!==-1&&(u.value[M].active=!0)},ee=g=>{const M=u.value.findIndex(x=>x.key===g.key);M!==-1&&(u.value[M].active=!1)};return l({toOpenModal:X}),e.onMounted(()=>{}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(f).b())},[e.createVNode(e.unref(E.Modal),{visible:H.value,"onUpdate:visible":M[1]||(M[1]=x=>H.value=x),width:N.value,onCancel:Y,onOk:v},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("title"))},e.toDisplayString(m.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(E.Button),{onClick:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(E.Button),{type:"primary",onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__tag"))},[e.createVNode(e.unref(ue),{modelValue:p.value,"onUpdate:modelValue":M[0]||(M[0]=x=>p.value=x),"item-key":"key",tag:"div",disabled:L.value,move:k},{item:e.withCtx(({element:x})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).e("show__tag__item"),e.unref(f).is("fixed",x.isFixed),e.unref(f).is("linked",x.isLinked)])},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),!x.isFixed&&!x.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Z.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(f).e("show__tag__item-close")),onClick:P=>I(x)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("unshow__tag"))},[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x.key,class:e.normalizeClass([e.unref(f).e("unshow__tag__item"),e.unref(f).is("fixed",x.isFixed||""),e.unref(f).is("linked",x.isLinked||"")]),onMouseenter:P=>Q(x),onMouseleave:P=>ee(x)},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),x.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(f).e("unshow__tag__item-add")),onClick:P=>q(x)},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.add")),11,wt)):e.createCommentVNode("",!0)],42,_t))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(f).e("unshow__tag__empty"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(t,l)=>{const o=t.__vccOpts||t;for(const[a,d]of l)o[a]=d;return o},St=U(Lt,[["__scopeId","data-v-657502f3"]]);function z(t){const l=t;return l.install=o=>{const a=t.name;o.component(a??"AnonymousComponent",t)},l}const Fe=z(St),xt={key:0,class:"form-footer"},Bt={class:"scheme-fontWeight"},Nt={class:"scheme-fontWeight"},Tt={class:"scheme-fontWeight"},Et={class:"scheme-fontWeight"},Ve=z(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},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(t,{expose:l,emit:o}){const a=e.inject("globalCompConfig",{}),d=o,r=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>n.searchList||[]),s=Le("form"),n=t,i=e.computed(()=>n.showNumber||a.HbLibFormItemFilterModal?.defaultShowCount||40),m=e.ref("show"),C=e.computed(()=>n.needFooter||a.HbLibListForm?.needFooter),f=e.computed(()=>[...n.items]),T=B=>B!==void 0,S=B=>typeof B=="function",H=B=>T(B.condition)?S(B.condition)?B.condition():B.condition:!0,N=e.computed(()=>[...n.items].map(B=>({...B,condition:H(B),label:B.label?.includes("多项搜索")?"":B.label})));console.log(N.value);const h=e.computed(()=>n.saveKey),p=e.ref(),u=()=>{d("handleSearch")},L=()=>{d("handleReset")},_=e.ref(),k=()=>{_.value&&_.value.toOpenModal()},b=B=>{d("handleMenuClick",B)},y=B=>{d("handleSfcmConfirm",B)};e.watch(()=>n.isFormExpanded,B=>{if(B){console.log(B);const I=document.querySelector("#subpackage_container");I instanceof HTMLElement&&(I.style.overflow="hidden",setTimeout(()=>{I.style.overflow="auto"},500))}});const w=B=>{const I=B;I.style.height="",I.offsetHeight},F=B=>{const I=B;I.style.height="",I.style.overflow="",e.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})},O=B=>{const I=B,q=I.querySelector(".hb-lib-form--container");if(q){const Y=q.offsetHeight;I.style.height=Y+"px",I.style.overflow="hidden",I.offsetHeight,requestAnimationFrame(()=>{I.style.height="0"})}},R=()=>{e.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})};return l({formRef:p,SelectOption:E.SelectOption,Form:E.Form,FormItem:E.FormItem,Row:E.Row,Col:E.Col,Input:E.Input,Select:E.Select,CheckboxGroup:E.CheckboxGroup,Checkbox:E.Checkbox,DatePicker:E.DatePicker,InputNumber:E.InputNumber,RadioGroup:E.RadioGroup,Radio:E.Radio,Switch:E.Switch,Button:E.Button,Tooltip:E.Tooltip}),(B,I)=>{const q=e.resolveComponent("a-button"),Y=e.resolveComponent("a-tooltip"),X=e.resolveComponent("a-menu-item"),v=e.resolveComponent("a-menu"),Q=e.resolveComponent("a-dropdown"),ee=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:w,onAfterEnter:F,onLeave:O,onAfterLeave:R},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",C.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(E.Form),e.mergeProps(B.$attrs,{model:t.formData,ref_key:"formRef",ref:p,class:["hb-lib-form--container",m.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(g,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[g.condition?(e.openBlock(),e.createBlock(e.unref(E.FormItem),e.mergeProps({key:0,ref_for:!0},g,{name:g.key,class:{"hb-lib-form-item-border--unneed":g.isUnNeedBorder,"hb_lib_form_item--needShowAll":g.showAll}}),e.createSlots({default:e.withCtx(()=>[g.type==="slot"?e.renderSlot(B.$slots,g.key,{key:0,formData:t.formData,item:g},void 0,!0):e.createCommentVNode("",!0),g.type==="mixin"?e.renderSlot(B.$slots,g.key,{key:1,formData:t.formData,item:g},void 0,!0):e.createCommentVNode("",!0),g.type==="input"?(e.openBlock(),e.createBlock(e.unref(E.Input),e.mergeProps({key:2,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="select"?(e.openBlock(),e.createBlock(e.unref(E.Select),e.mergeProps({key:3,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(x,P)=>(e.openBlock(),e.createBlock(e.unref(E.SelectOption),{key:P,value:x.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(E.CheckboxGroup),e.mergeProps({key:4,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(x,P)=>(e.openBlock(),e.createBlock(e.unref(E.Checkbox),{key:P,value:x.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(E.DatePicker),e.mergeProps({key:5,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(E.InputNumber),e.mergeProps({key:6,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="radio"?(e.openBlock(),e.createBlock(e.unref(E.RadioGroup),e.mergeProps({key:7,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(x,P)=>(e.openBlock(),e.createBlock(e.unref(E.Radio),{key:P,value:x.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="switch"?(e.openBlock(),e.createBlock(e.unref(E.Switch),e.mergeProps({key:8,checked:t.formData[g.key],"onUpdate:checked":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[g.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label)+" ",1),e.createVNode(e.unref(E.Tooltip),{title:g.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",xt,[e.createVNode(q,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Z.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(q,{type:"link",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(Y,{key:0,title:B.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...I[0]||(I[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(Q,{key:0},{overlay:e.withCtx(()=>[e.createVNode(v,{onClick:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,g=>(e.openBlock(),e.createBlock(X,{key:g.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128)),e.createVNode(X,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",Bt,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(X,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",Nt,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(Y,{title:B.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...I[1]||(I[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("footer__left"))},[e.renderSlot(B.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("footer__right"))},[m.value=="show"?e.renderSlot(B.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[e.createVNode(q,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Z.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(q,{type:"link",onClick:L,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(Y,{key:0,title:B.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...I[2]||(I[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(Q,{key:0},{overlay:e.withCtx(()=>[e.createVNode(v,{onClick:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,g=>(e.openBlock(),e.createBlock(X,{key:g.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128)),e.createVNode(X,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",Tt,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(X,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",Et,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(Y,{title:B.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...I[3]||(I[3]=[e.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)],!0):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(ee,{showNumber:i.value,list:f.value,ref_key:"HbSfCmRef",ref:_,onConfirm:y,saveKey:h.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),Ft={class:"hb-lib-list-page-act-box"},Vt={class:"hb-lib-list-page-breadcrumb"},$t={class:"hb-lib-list-page-act"},Ht={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},It={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},$e=z(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:a,toggle:d}=re.useFullscreen(document.body);e.watch(()=>a.value,n=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const m=new Map;setTimeout(n?()=>{if(i?.length)for(let C=0;C<i.length;C++){const f=document.querySelector(i[C]);f&&(m.set(i[C],f.style.display),f.style.display="none")}}:()=>{if(i?.length)for(let C=0;C<i.length;C++){const f=document.querySelector(i[C]);if(f){const T=m.get(i[C]);f.style.display=T||"",m.delete(i[C])}}},0)});const r=e.ref(""),c=()=>{const n=we.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",m=n?.path;if(i!=="[]"){let C=JSON.parse(i).find(f=>f.value===m);C&&(r.value=C.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const s=n=>{n.keyCode===192&&d()};return e.onMounted(()=>{window.addEventListener("keydown",s)}),e.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(n,i)=>{const m=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Ft,[e.createElementVNode("aside",Vt,e.toDisplayString(r.value),1),e.createElementVNode("aside",$t,[e.createVNode(m,{title:e.unref(a)?`${n.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${n.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...C)=>e.unref(d)&&e.unref(d)(...C))},[e.unref(a)?(e.openBlock(),e.createElementBlock("svg",It,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Ht,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(n.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Dt={class:"hb-lib-list-btns-box"},Mt={class:"hb-lib-list-btns-left"},At={class:"hb-lib-list-btns-right"},He=z(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,a=e.ref(!0),d=()=>{a.value=!a.value,o("handleOpenOrClose",a.value)},r=()=>{o("handleReload")},c=s=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(s,n)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Dt,[e.createElementVNode("aside",Mt,[e.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",At,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:r},[...n[0]||(n[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:a.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:d},[a.value?(e.openBlock(),e.createBlock(e.unref(Z.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Z.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Ie=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:a=300,timeOut:d=100}=t,r=e.ref(0);let c=null,s=null,n=null,i=null,m=null;const C=()=>{m&&clearTimeout(m),m=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const p=document.querySelector(".ant-table"),u=document.querySelector(".ant-pagination");if(p){const L=Math.floor(p.getBoundingClientRect().top),_=window.innerHeight,b=(u?u.offsetHeight+20:40)+o;let y=_-L-b;y<a&&(y=a),r.value=y}})})},100)},f=()=>{const p=document.querySelector(".ant-pagination");if(p){const u=new MutationObserver(()=>{C()});return u.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),u}return null},T=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(L=>{L.style.display="none"}),C()}),c.observe(p))},S=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(n=new MutationObserver(()=>{setTimeout(()=>{C()},d)}),n.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},H=()=>{i&&clearTimeout(i),i=setTimeout(()=>{C()},d)},N=()=>{window.addEventListener("resize",H),e.nextTick(()=>{T(),S(),s=f()})},h=()=>{window.removeEventListener("resize",H),c&&c.disconnect(),n&&n.disconnect(),s&&s.disconnect(),i&&clearTimeout(i),m&&clearTimeout(m)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{C()},200)},{deep:!0}),e.onMounted(()=>{C(),N()}),e.onUnmounted(()=>{h()}),{tableHeight:r,calTableHeight:C}},De=z(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=re.useFullscreen(document.body),a=t,d=e.useTemplateRef("PageContainerRef"),r=e.computed(()=>a.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>a.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),s=e.computed(()=>a.minHeight||l.HbLibListPageContainer?.minHeight||300),n=e.computed(()=>a.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>a.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(a.isUnFixTbHeight);const{calTableHeight:m,tableHeight:C}=Ie({offsetBottom:c.value,minHeight:s.value,timeOut:n.value}),f=e.computed(()=>C.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:d,tableHeight:C,calTableHeight:m}),(T,S)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:d},[e.renderSlot(T.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?f.value-r.value+"px":f.value-c.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(o)?f.value-r.value+"px":f.value-c.value+"px"})},[e.renderSlot(T.$slots,"default")],4)],512))}})),Ot={style:{"font-weight":"500"}},Pt={key:0,class:"hb-lib-search-tag__description"},zt={class:"hb-lib-selector-dropdown"},Ut={class:"hb-lib-selector-search"},Rt={class:"hb-lib-selector-list"},jt=["onClick"],Wt={class:"hb-lib-option-content"},qt={class:"hb-lib-option-label"},Yt={key:0,class:"hb-lib-selector-empty"},Kt={key:1,class:"hb-lib-selector-footer"},Gt={class:"hb-lib-footer-buttons"},Jt={key:2,class:"hb-lib-selector-footer"},Xt={class:"hb-lib-footer-buttons"},Me=z(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,a=l,d=e.useModel(t,"value"),r=e.ref(!1),c=e.ref(""),s=e.ref([]),n=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!c.value)return o.options;const _=c.value.toLowerCase();return o.options.filter(k=>k.label.toLowerCase().includes(_)||k.description?.toLowerCase().includes(_))}),m=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),C=e.computed(()=>i.value.length===0?!1:i.value.every(_=>s.value.includes(_.value))),f=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(k=>s.value.includes(k.value)).length;return _>0&&_<i.value.length});e.watch(()=>d.value,_=>{_?s.value=Array.isArray(_)?[..._]:[_]:s.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,_=>{o.remoteSearch&&_!==void 0&&(c.value=_)},{immediate:!0});const T=_=>{_&&(r.value=_,S.value=[...s.value],c.value="",setTimeout(()=>{if(n.value){const k=n.value.input||n.value.$el?.querySelector("input");k&&k.focus()}},100))},S=e.ref([]),H=()=>{s.value=[...S.value],r.value=!1,a("cancel")},N=e.ref([]),h=()=>{const _=o.multiple?s.value:s.value[0]||"",k=o.options.filter(b=>s.value.includes(b.value));N.value=k,console.log(_,k),S.value=[...s.value],d.value=_,a("update:value",_),a("change",_,k),a("confirm",_,k),r.value=!1},p=re.useDebounceFn(_=>{const k=_!==void 0?_:c.value;o.remoteSearch&&(a("search",k),a("update:searchValue",k))},300),u=_=>{if(o.multiple){const k=new Set(s.value);k.has(_.value)?k.delete(_.value):k.add(_.value),s.value=Array.from(k)}else s.value=[_.value],h()},L=_=>{if(_.target.checked){const b=new Set(s.value);i.value.forEach(y=>{b.add(y.value)}),s.value=Array.from(b)}else{const b=new Set(i.value.map(y=>y.value));s.value=s.value.filter(y=>!b.has(y))}};return(_,k)=>{const b=e.resolveComponent("a-tag"),y=e.resolveComponent("a-input"),w=e.resolveComponent("a-checkbox"),F=e.resolveComponent("a-radio"),O=e.resolveComponent("a-button"),R=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":m.value}},_.$attrs),[e.createVNode(R,{value:d.value,"onUpdate:value":k[5]||(k[5]=B=>d.value=B),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:r.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:T,onSearch:e.unref(p),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:B,label:I,closable:q,option:Y})=>[e.createVNode(b,{class:"hb-lib-search-tag",onClick:k[0]||(k[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ot,e.toDisplayString(I),1),Y?.description?(e.openBlock(),e.createElementBlock("span",Pt," ("+e.toDisplayString(Y.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:B})=>[e.createElementVNode("div",zt,[e.createElementVNode("div",Ut,[e.createVNode(y,{ref_key:"searchInputRef",ref:n,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":k[1]||(k[1]=I=>c.value=I),placeholder:"请输入关键词搜索","allow-clear":"",onInput:k[2]||(k[2]=I=>e.unref(p)(I.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Z.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,I=>(e.openBlock(),e.createElementBlock("div",{key:I.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(I.value)}]),onClick:()=>u(I)},[t.multiple?(e.openBlock(),e.createBlock(w,{key:0,checked:s.value.includes(I.value),onChange:()=>u(I),onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(F,{key:1,checked:s.value.includes(I.value),onChange:()=>u(I),onClick:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Wt,[e.createElementVNode("div",qt,e.toDisplayString(I.label),1)])],10,jt))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",Yt,e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Kt,[e.createVNode(w,{checked:C.value,indeterminate:f.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Gt,[e.createVNode(O,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(O,{type:"primary",size:"small",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Jt,[k[6]||(k[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Xt,[e.createVNode(O,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),Qt={class:"hb-lib-form-item-filter-modal-search"},Zt={class:"hb-lib-form-item-filter-modal-buttons"},vt={key:0},Ae=z(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:l,emit:o}){const a=t,d=o,r=e.ref(!1),c=e.ref(""),s=e.ref(),n=e.ref(),i=e.ref([]),m=e.ref([]),C=e.ref(),f=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>a.tableData.map(b=>(b.id=b.id||Math.random(),b))),S=e.computed(()=>a.tableColumn.map(b=>(b.customFilterDropdown&&(b.onFilter=(y,w)=>w[b.dataIndex].toString().toLowerCase().includes(y.toLowerCase()),b.onFilterDropdownVisibleChange=y=>{y&&setTimeout(()=>{s.value?.focus()},100)}),{...b}))),H=()=>{let b="";m.value.forEach(y=>{b=b+y[a.labelKey]+","}),c.value=b.substring(0,b.length-1),r.value=!1,d("handleConfirm",m.value)},N=()=>{r.value=!1},h=()=>{r.value=!0,e.nextTick(()=>{const b=C.value?.$el?.querySelector(".ant-table-body");b&&(b.scrollTop=0)})},p=()=>{i.value=[],m.value=[]},u=()=>{c.value="",p()},L=(b,y,w)=>{y(),f.searchText=b[0],f.searchedColumn=w},_=(b,y)=>{b({confirm:!0}),f.searchText="",y()},k=(b,y)=>{i.value=b,m.value=y};return l({resetInputVal:u}),(b,y)=>{const w=e.resolveComponent("a-input"),F=e.resolveComponent("a-button"),O=e.resolveComponent("a-table"),R=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:n},[e.createVNode(w,{readonly:"",onClick:h,value:c.value,"onUpdate:value":y[0]||(y[0]=B=>c.value=B),placeholder:b.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Z.UnorderedListOutlined),{onClick:h})]),_:1},8,["value","placeholder"]),e.createVNode(R,{visible:r.value,"onUpdate:visible":y[1]||(y[1]=B=>r.value=B),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(F,{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(F,{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(F,{type:"primary",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{ref_key:"tableRef",ref:C,columns:S.value,dataSource:T.value,rowSelection:{selectedRowKeys:i.value,onChange:k},rowKey:B=>B[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:B,selectedKeys:I,confirm:q,clearFilters:Y,column:X})=>[e.createElementVNode("div",Qt,[e.createVNode(w,{ref_key:"searchInput",ref:s,placeholder:`请输入${X.title}`,value:I[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:v=>B(v.target.value?[v.target.value]:[]),onPressEnter:v=>L(I,q,X.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Zt,[e.createVNode(F,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:v=>_(Y,q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(F,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:v=>L(I,q,X.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:B})=>[e.createVNode(e.unref(Z.SearchOutlined),{style:e.normalizeStyle({color:B?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:B,column:I})=>[f.searchText&&f.searchedColumn===I.dataIndex?(e.openBlock(),e.createElementBlock("span",vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`,"i")),(q,Y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[q.toLowerCase()===f.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:Y,class:"highlight"},e.toDisplayString(q),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(q),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),eo={class:"hb-lib-table-act-box"},to=["onClick"],oo={href:"javascript:;",class:"hb-lib-table-main-action"},lo=["onClick"],no={href:"javascript:;",class:"hb-lib-table-more-action"},ao=["onClick"],io={href:"javascript:;"},ro=["onClick"],so={class:"hb-lib-table-confirm-modal-content"},Oe=z(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:a}=te.useI18n(),d=e.ref(!1),r=e.ref(!1),c=e.ref(null),s=e.computed(()=>o.actions.filter(N=>N.condition!==void 0?N.condition:!0)),n=e.computed(()=>s.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>m(s.value.slice(o.buttonDisplaysQuantity)));function m(N){if(o.filterPermission)return o.filterPermission(N);let h=[],p=[];return h=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(h)||N.length===0?(h=[],[]):(h=h.filter(u=>u.type!="2"),N.forEach(u=>{(!u.permissionsTag||h.findIndex(L=>L.action===u.permissionsTag)!==-1)&&p.push(u)}),p)}const C=N=>{N.handler&&N.handler(o.record)},f=N=>{c.value=N,d.value=!0},T=()=>{if(c.value){r.value=!0;try{C(c.value),r.value=!1,d.value=!1}catch{r.value=!1}}},S=()=>{d.value=!1,c.value=null},H=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:a("hbLibComp.hbTableAct.secendConfirm"),content:a("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:E.Dropdown,AMenu:E.Menu,AMenuItem:E.MenuItem,APopconfirm:E.Popconfirm,AModal:E.Modal,DownOutlined:Z.DownOutlined}),(N,h)=>{const p=e.resolveComponent("a-divider"),u=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(L,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[L.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>f(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,to)),[[u,L.permissionsTag||null]]),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(E.Popconfirm),{title:L.confirmTitle,onConfirm:k=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",oo,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[u,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):L.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(N.$slots,L.slot,{item:L},void 0,!0),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>C(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,lo)),[[u,L.permissionsTag||null]]),i.value&&i.value.length>0||_!==n.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(p,{key:0,type:"vertical"},null,512)),[[u,L.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(E.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(E.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(L,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(E.MenuItem),{key:_},{default:e.withCtx(()=>[L.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:k=>f(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,ao)),[[u,L.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(E.Popconfirm),{key:1,title:L.confirmTitle,onConfirm:k=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",io,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[u,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[u,L.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:k=>C(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,ro)),[[u,L.permissionsTag||null]])]),_:2},1024)),[[u,L.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",no,[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Z.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(E.Modal),{visible:d.value,title:H.value.title,"confirm-loading":r.value,onOk:T,onCancel:S},{default:e.withCtx(()=>[e.createElementVNode("p",so,e.toDisplayString(H.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Se=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(a=>a.width&&Number(a.width.toString().replace("px",""))||0).reduce((a,d)=>a+d,0)})});var co=typeof global=="object"&&global&&global.Object===Object&&global,mo=typeof self=="object"&&self&&self.Object===Object&&self,Pe=co||mo||Function("return this")(),Ce=Pe.Symbol,ze=Object.prototype,po=ze.hasOwnProperty,fo=ze.toString,be=Ce?Ce.toStringTag:void 0;function ho(t){var l=po.call(t,be),o=t[be];try{t[be]=void 0;var a=!0}catch{}var d=fo.call(t);return a&&(l?t[be]=o:delete t[be]),d}var bo=Object.prototype,go=bo.toString;function uo(t){return go.call(t)}var yo="[object Null]",Co="[object Undefined]",Ue=Ce?Ce.toStringTag:void 0;function ko(t){return t==null?t===void 0?Co:yo:Ue&&Ue in Object(t)?ho(t):uo(t)}function _o(t){return t!=null&&typeof t=="object"}var wo="[object Symbol]";function Lo(t){return typeof t=="symbol"||_o(t)&&ko(t)==wo}var So=/\s/;function xo(t){for(var l=t.length;l--&&So.test(t.charAt(l)););return l}var Bo=/^\s+/;function No(t){return t&&t.slice(0,xo(t)+1).replace(Bo,"")}function xe(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Re=NaN,To=/^[-+]0x[0-9a-f]+$/i,Eo=/^0b[01]+$/i,Fo=/^0o[0-7]+$/i,Vo=parseInt;function je(t){if(typeof t=="number")return t;if(Lo(t))return Re;if(xe(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=xe(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=No(t);var o=Eo.test(t);return o||Fo.test(t)?Vo(t.slice(2),o?2:8):To.test(t)?Re:+t}var Be=function(){return Pe.Date.now()},$o="Expected a function",Ho=Math.max,Io=Math.min;function We(t,l,o){var a,d,r,c,s,n,i=0,m=!1,C=!1,f=!0;if(typeof t!="function")throw new TypeError($o);l=je(l)||0,xe(o)&&(m=!!o.leading,C="maxWait"in o,r=C?Ho(je(o.maxWait)||0,l):r,f="trailing"in o?!!o.trailing:f);function T(k){var b=a,y=d;return a=d=void 0,i=k,c=t.apply(y,b),c}function S(k){return i=k,s=setTimeout(h,l),m?T(k):c}function H(k){var b=k-n,y=k-i,w=l-b;return C?Io(w,r-y):w}function N(k){var b=k-n,y=k-i;return n===void 0||b>=l||b<0||C&&y>=r}function h(){var k=Be();if(N(k))return p(k);s=setTimeout(h,H(k))}function p(k){return s=void 0,f&&a?T(k):(a=d=void 0,c)}function u(){s!==void 0&&clearTimeout(s),i=0,a=n=d=s=void 0}function L(){return s===void 0?c:p(Be())}function _(){var k=Be(),b=N(k);if(a=arguments,d=this,n=k,b){if(s===void 0)return S(n);if(C)return clearTimeout(s),s=setTimeout(h,l),T(n)}return s===void 0&&(s=setTimeout(h,l)),c}return _.cancel=u,_.flush=L,_}const Do={key:0,class:"hb-lib-list-table-act"},Mo={class:"empty-container"},Ao={key:1},Oo={key:2},qe=z(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),a=l,{t:d}=te.useI18n(),r=t,c=e.ref([]),s=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:n}=Se(c),i=e.ref(n.value),m=e.computed(()=>r.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>r.columns,h=>{const p=h.filter(L=>L!=null&&L.checked);c.value=p.map(L=>{let _={...L,title:L.title||L.label,align:L.align||o.listTable?.align||"center"};_.ellipsis&&!_.needTooltip&&(_.needTooltip=!0);let k=r.defaultWidth||o.listTable?.defaultColWidth||150;if(!_.width)_.width=k;else if(typeof _.width=="string"){const b=parseInt(_.width,10);_.width=isNaN(b)?k:b}return _.resizable===void 0&&(_.resizable=!0),_});const{tableWidth:u}=Se(c);i.value=u.value},{immediate:!0,deep:!0});const C=We(()=>{a("resizeCol",c)},o.listTable?.colSaveTimeOut||800),f=(h,p)=>{if(p){const u=typeof h=="string"?parseInt(h,10):h;p.width=isNaN(u)?o.listTable?.defaultColWidth||150:u,e.nextTick(()=>{C()})}},T=(h,p,u)=>{h?.current&&a("change",h,p,u)},S=(h,p="YYYY-MM-DD HH:mm:ss")=>h?ye(h).format(p):"",H=(h,p)=>h&&p[h]||"",N=(h,p=o.listTable?.ellipsisNumber||20)=>h?h.length>p?`${h.substring(0,p)}...`:h:"";return(h,p)=>{const u=e.resolveComponent("a-empty"),L=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-tag"),b=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[h.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Do,[e.renderSlot(h.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(h.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(b,e.mergeProps(h.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:f,onChange:T,scroll:m.value?{x:i.value}:{x:i.value,y:e.unref(s).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",Mo,[e.createVNode(u,{description:e.unref(d)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[h.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"headerCell",{column:y,title:y.title},()=>[e.createTextVNode(e.toDisplayString(y.title),1)],!0)]),key:"0"}:void 0,h.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:y,record:w,index:F,text:O})=>[e.renderSlot(h.$slots,"bodyCell",{column:y,record:w,index:F,text:O},void 0,!0),y&&y.needTooltip&&!y.needCopy?(e.openBlock(),e.createBlock(L,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w[y.dataIndex]),1)]),_:2},1032,["placement"])):y&&y.needCopy&&!y.needTooltip?(e.openBlock(),e.createElementBlock("div",Ao,[e.createTextVNode(e.toDisplayString(w[y.dataIndex])+" ",1),e.createVNode(_,{"cp-text":w[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),y&&y.needTooltip&&y.needCopy?(e.openBlock(),e.createElementBlock("div",Oo,[e.createVNode(L,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N(w[y.dataIndex],y.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(_,{"cp-text":w[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):y&&y.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(S(w[y.dataIndex],y.format)),1)],64)):y&&y.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[H(w[y.dataIndex],y.tags)?(e.openBlock(),e.createBlock(k,{key:0,color:H(w[y.dataIndex],y.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[y.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,h.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:y,index:w})=>[e.renderSlot(h.$slots,"expandedRowRender",{record:y,index:w},void 0,!0)]),key:"2"}:void 0,h.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"customFilterDropdown",{column:y},void 0,!0)]),key:"3"}:void 0,h.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"customFilterIcon",{column:y},void 0,!0)]),key:"4"}:void 0,h.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:y,record:w,index:F})=>[e.renderSlot(h.$slots,"expandIcon",{expanded:y,record:w,index:F},void 0,!0)]),key:"5"}:void 0,h.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,h.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,h.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),Po={class:"hb-lib-table-setting-box"},zo={key:0,class:"hb-lib-table-drag-item"},Uo={key:0,class:"hb-lib-table-drag-item-act"},Ro=["onClick"],jo=["onClick"],Wo={class:"hb-lib-table-set-btn-group"},qo={class:"select-all-container",style:{"margin-right":"10px"}},Ye=z(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:a}=te.useI18n(),d=t,r=e.ref([]),c=e.computed(()=>n.value.filter(k=>k.checked));e.ref([]);const s=e.ref(!1),n=e.ref([]),i=e.ref(null),m=e.computed(()=>c.value.length>0&&c.value.length===r.value.length),C=e.computed(()=>c.value.length>0&&c.value.length<r.value.length),f=k=>{i.value=k.oldIndex},T=k=>{const b=k.newIndex;if(r.value.some(w=>w.fixed==="left"||w.fixed==="right"||w.fixed===!0)){const w=r.value.filter(O=>O.fixed==="left").length,F=r.value.length-r.value.filter(O=>O.fixed==="right").length;if((w>0&&b<w||F<r.value.length&&b>=F)&&(E.message.warning(a("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const O=n.value.splice(b,1)[0];n.value.splice(i.value,0,O)}}i.value=null},S=k=>{k.target.checked?n.value.forEach(y=>y.checked=!0):n.value.forEach(y=>{y.dataIndex!=="action"&&y.dataIndex!=="actions"&&(y.checked=!1)})},H=()=>{r.value=d.localColumns.map(b=>({...b,label:b.title&&b.title.tag?u(b.title):b.title||b.title2,value:b.dataIndex,checked:b.checked||b.checked===void 0})),n.value=[...r.value];let k=[];d.tableColumns.forEach(function(b){k.push(b.dataIndex)})},N=(k,b)=>{b?k.checked=!0:k.checked=!1},h=()=>{r.value=[...n.value],o("on-get-columns",r.value),s.value=!1},p=()=>{r.value=d.tableColumns.map(b=>({...b,label:b.title&&b.title.tag?u(b.title):b.title||b.title2,value:b.dataIndex,checked:b.checked||b.checked===void 0})),n.value=[...r.value];let k=[];d.tableColumns.forEach(function(b){k.push(b.dataIndex)})},u=k=>k.children[0].text,L=k=>{delete k.fixed;const b=n.value.findIndex(y=>y.value===k.value);if(b!==-1){let y=-1;for(let w=0;w<n.value.length;w++)n.value[w].fixed==="left"&&(y=w);if(y!==-1&&b!==y+1){const w=[...n.value],[F]=w.splice(b,1);w.splice(y+1,0,F),n.value=w}}},_=k=>{const b=n.value.findIndex(y=>y.value===k.value);if(b!==-1){let y=-1;for(let R=0;R<n.value.length;R++)n.value[R].fixed==="left"&&(y=R);const w=[...n.value],[F]=w.splice(b,1);F.fixed="left";const O=y===-1?0:y+1;w.splice(O,0,F),n.value=w}};return e.watch(()=>d.tableColumns,()=>{p()},{immediate:!0,deep:!0}),(k,b)=>{const y=e.resolveComponent("a-tooltip"),w=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",Po,[e.createVNode(e.unref(E.Popover),{title:e.unref(a)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:s.value,"onUpdate:visible":b[1]||(b[1]=F=>s.value=F)},{content:e.withCtx(()=>[e.createVNode(e.unref(ue),{modelValue:n.value,"onUpdate:modelValue":b[0]||(b[0]=F=>n.value=F),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:f,onEnd:T},{item:e.withCtx(({element:F})=>[F.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",zo,[e.createVNode(e.unref(E.Checkbox),{checked:F.checked,onChange:O=>N(F,O.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(F.label),1)]),_:2},1032,["checked","onChange"]),F.checked?(e.openBlock(),e.createElementBlock("section",Uo,[e.createElementVNode("span",{class:e.normalizeClass(F.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),F.fixed?(e.openBlock(),e.createBlock(y,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:O=>L(F)},[...b[2]||(b[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Ro)]),_:2},1024)):e.createCommentVNode("",!0),F.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:O=>_(F)},[...b[3]||(b[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,jo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Wo,[e.createElementVNode("div",qo,[e.createVNode(e.unref(E.Checkbox),{checked:m.value,indeterminate:C.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),d.localColumns.length?(e.openBlock(),e.createBlock(w,{key:0,style:{"margin-right":"6px"},onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(w,{onClick:h,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(y,{title:e.unref(a)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...b[4]||(b[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-07a63550"]])),Ke=z(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,a=e.useAttrs(),d=e.computed(()=>{const S=a,H=S.dropdownClassName;return{...S,dropdownClassName:H??"hb_lib_form_tooltip_select__dropdown"}}),r=e.ref(),c=e.useModel(t,"value"),s=e.computed(()=>o.options??[]),n=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=S=>S.tooltip??S.label,m=S=>S.key??S.label,C=S=>!!(o.enableTooltip&&i(S));return l({focus:()=>{r.value?.focus?.()},blur:()=>{r.value?.blur?.()},selectRef:r}),(S,H)=>(e.openBlock(),e.createBlock(e.unref(E.Select),e.mergeProps({ref_key:"selectRef",ref:r},d.value,{value:c.value,"onUpdate:value":H[0]||(H[0]=N=>c.value=N),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[S.$slots.default?e.renderSlot(S.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(s.value,N=>(e.openBlock(),e.createBlock(e.unref(E.SelectOption),e.mergeProps({key:m(N),value:N.value,disabled:N.disabled},{ref_for:!0},N.optionProps),{default:e.withCtx(()=>[C(N)?(e.openBlock(),e.createBlock(e.unref(E.Tooltip),{key:0,title:i(N),placement:o.tooltipPlacement,"overlay-style":n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(N.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(N.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Yo={class:"ant-upload-drag-icon"},Ko={class:"ant-upload-text"},Go={style:{color:"#ff5000"}},Jo={class:"ant-upload-hint"},Xo={key:0,class:"hb_import_btn"},Qo=["href"],Ge=z(U(e.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(t,{expose:l}){const{t:o}=te.useI18n(),a=e.ref(),d=t,r=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),s=f=>{if(f==null)return;const T=c.fileList.indexOf(f);if(T!==-1){const S=c.fileList.slice();S.splice(T,1),c.fileList=S}},n=()=>{c.visible=!1,c.fileList=[],r.value=!1},i=f=>(c.fileList=[f],d.beforeUpload?d.beforeUpload(f.originFileObj):!1),m=()=>{a.value.validateFields().then(()=>{d.beforeSubmit&&(r.value=!0,d.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{r.value=!1}))})},C=()=>{c.visible=!0};return l({handleCancel:n,openModal:C,confirmLoading:r}),(f,T)=>{const S=e.resolveComponent("a-upload-dragger"),H=e.resolveComponent("a-form-item"),N=e.resolveComponent("a-form"),h=e.resolveComponent("a-modal"),p=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,e.mergeProps({visible:c.visible,"onUpdate:visible":T[0]||(T[0]=u=>c.visible=u),title:d.title,"confirm-loading":r.value},f.$attrs,{width:d.modalWidth,onCancel:n,onOk:m}),{default:e.withCtx(()=>[e.createVNode(N,{ref_key:"modalFormRef",ref:a,model:c},{default:e.withCtx(()=>[e.createVNode(H,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:d.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(S,{"max-count":d.maxCount,multiple:d.multiple,accept:d.acceptFile,name:"file","file-list":c.fileList,"before-upload":i,onRemove:s},{default:e.withCtx(()=>[e.createElementVNode("p",Yo,[e.createVNode(e.unref(Z.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Ko,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Go,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Jo,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(d.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),d.templateUrl?(e.openBlock(),e.createElementBlock("p",Xo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:d.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,Qo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(f.$slots,"btn",{},()=>[e.createVNode(p,{type:"primary",onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Zo={class:"hb_lib_log_modal_content"},vo={class:"log_remark"},Je=z(U(e.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(t,{expose:l,emit:o}){const{t:a}=te.useI18n(),d=e.useSlots(),r=t,c=[{title:a("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:a("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:a("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],s=e.computed(()=>r.columns||c),n=e.computed(()=>r.title||a("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!d.title),m=e.ref(!1),C=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,u)=>u[0]+"-"+u[1]+" 总共"+p+"页",total:0}});e.watch(()=>r.pagination,p=>{p&&(C.pagination={...C.pagination,...p})},{deep:!0,immediate:!0});const f=()=>{const p={pageIndex:C.pagination.current,pageSize:C.pagination.pageSize,query:r.params};r.getLogData&&(m.value=!0,r.getLogData(p).then(u=>{Number(u.code)==200?(C.pagination.total=Number(u.data.total),C.list=u.data[r.dataStr]||[]):E.message.error(u.message)}).finally(()=>{m.value=!1}))},T=p=>{C.pagination.current=p.current,C.pagination.pageSize=p.pageSize,f()},S=()=>{C.list=[],h("update:visible",!1)},H=()=>{h("update:visible",!0)},N=(p,u="YYYY-MM-DD HH:mm:ss")=>p?ye(p).format(u):"",h=o;return e.watch(()=>r.visible,p=>{p&&f()}),l({close:S,loading:m}),(p,u)=>{const L=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-table"),b=e.resolveComponent("a-button"),y=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,e.mergeProps(p.$attrs,{visible:t.visible,title:i.value?void 0:n.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:S}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(b,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Zo,[e.createVNode(k,{bordered:"",rowKey:"id",columns:s.value,dataSource:C.list,pagination:C.pagination,loading:m.value,scroll:{y:t.scrollY},onChange:T},e.createSlots({bodyCell:e.withCtx(({column:w,record:F})=>[w&&w.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.needTooltip?(e.openBlock(),e.createBlock(L,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(F[w.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(F[w.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),w&&w.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",vo,e.toDisplayString(F[w.dataIndex]),1),e.createVNode(_,{"cp-text":F[w.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),w&&w.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(N(F[w.dataIndex],w.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:w})=>[e.renderSlot(p.$slots,"headerCell",{column:w},()=>[e.createTextVNode(e.toDisplayString(w.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(p.$slots,"default",{key:0},()=>[e.createVNode(b,{onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),el={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},tl={class:"hb_ui_config"},ol=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,a=>{o=e.reactive(ie.merge({},el,a))},{deep:!0,immediate:!0}),e.provide(Ne,o),(a,d)=>(e.openBlock(),e.createElementBlock("div",tl,[e.renderSlot(a.$slots,"default")]))}}),Ne=Symbol("GLOBAL_CONFIG_KEY"),Xe=z(ol),ll={class:"hb_card"},nl={key:0,class:"hb_card_header"},al={class:"hb_fix"},il={class:"hb_card_header-title"},rl={class:"hb_card_header-action"},sl={class:"hb_card_body"},Qe=z(U(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(Ne),o=t,a=e.computed(()=>{let d=o.formItemMb||l?.HbLibCard?.formItemMb;return d?{"--hb-card-form-item-mb":d+"px"}:{}});return(d,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},d.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",ll,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("div",al,[e.createElementVNode("span",il,[e.renderSlot(d.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",rl,[e.renderSlot(d.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",sl,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(a.value)},[e.renderSlot(d.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),cl=["onClick"],dl={class:"step"},ml={key:0,class:"line"},pl=["title"],Ze=z(U(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),a=l.offsetTop??160,d=e.computed(()=>l.anchors.filter(n=>typeof n.visible=="function"?n.visible():n.visible!==!1)),r=()=>{const n=l.containerSelector||"#subpackage_container";return document.querySelector(n)||window},c=n=>{const i=r(),m=n.target.startsWith("#")||n.target.startsWith(".")?n.target:`#${n.target}`,C=document.querySelector(m);if(!C)return;let f=C.offsetTop;i instanceof HTMLElement&&(f-=i.offsetTop),f-=a,i instanceof Window?window.scrollTo({top:f,behavior:"smooth"}):i.scrollTo({top:f,behavior:"smooth"}),o.value=n.target},s=()=>{const n=r();let i=0;n instanceof Window?i=window.scrollY+a+5:i=n.scrollTop+a+5;let m=d.value[0]?.target||"";for(const C of d.value){const f=C.target.startsWith("#")||C.target.startsWith(".")?C.target:`#${C.target}`,T=document.querySelector(f);if(!T)continue;let S=T.offsetTop;n instanceof HTMLElement&&(S-=n.offsetTop),i>=S&&(m=C.target)}o.value=m};return e.onMounted(()=>{r().addEventListener("scroll",s),s()}),e.onBeforeUnmount(()=>{r().removeEventListener("scroll",s)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(a)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(m,C)=>(e.openBlock(),e.createElementBlock("div",{key:m.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===m.target}]),onClick:f=>c(m)},[e.createElementVNode("div",dl,[C!==d.value.length-1?(e.openBlock(),e.createElementBlock("div",ml)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:m.title},e.toDisplayString(m.title.length>12?m.title.slice(0,12)+"...":m.title),9,pl)],10,cl))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),fl={class:"hb_detail_top_act_left"},hl={key:1,class:"hb_detail_top_wrapper_sticky"},bl={class:"hb_detail_top_act"},gl={key:0,class:"hb_detail_all_info"},ul={class:"hb_detail_all_info_left"},yl={class:"hb_detail_info_title"},Cl={key:0,class:"hb_detail_info_content"},kl={class:"create_by"},_l={class:"hb_detail_all_info_right"},wl={class:"hb_edit_detail_content_wrapper"},Ll={class:"hb_detail_content"},Sl={class:"hb-back-top-inner"},ve=z(U(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=te.useI18n(),o=t,a=e.inject(Ne),d=()=>{o.backFn?o.backFn():window.history.back()},r=e.computed(()=>o.backTopBottom||a?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const H={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||a?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||a?.HbLibDetailBox?.descValueWidth}:H}),s=()=>document.querySelector(o.container),n=e.ref(!1),i=e.ref(null),{top:m}=re.useElementBounding(i),C=e.computed(s),{y:f}=re.useScroll(C);e.watch(f,H=>{n.value=H>m.value},{immediate:!0});const T=H=>{document.querySelectorAll(".hb_card_body").forEach(h=>{h.querySelectorAll(".ant-descriptions-item-content span").forEach(u=>{u.textContent?.trim()||(u.textContent=H)})})};let S=null;return e.onMounted(()=>{a?.HbLibDetailBox?.needSetDesDefault&&(S=setTimeout(()=>{T(a?.HbLibDetailBox?.desDefault)},a?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{S&&clearTimeout(S)}),(H,N)=>{const h=e.resolveComponent("RollbackOutlined"),p=e.resolveComponent("a-divider"),u=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(u,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",c.value]),style:e.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"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",n.value?"can_show":""])},[e.createElementVNode("div",fl,[e.createVNode(h,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:d},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(p,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),N[0]||(N[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",bl,[e.createVNode(h),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:d},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(p,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("aside",ul,[e.renderSlot(H.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",yl,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",Cl,[e.createElementVNode("span",kl,e.toDisplayString(t.totalInfo.totalInfoSubTitle1)+e.toDisplayString(t.totalInfo.totalInfoSubVal1),1),e.createElementVNode("span",null,e.toDisplayString(t.totalInfo.totalInfoSubTitle2)+e.toDisplayString(t.totalInfo.totalInfoSubVal2),1)])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("aside",_l,[e.renderSlot(H.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",wl,[e.createElementVNode("div",Ll,[e.renderSlot(H.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(E.BackTop),{target:s,style:e.normalizeStyle({bottom:r.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Sl,[e.createVNode(e.unref(Z.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),et=z(U(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(n,i=300)=>We(n,i),a=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),d=e.ref(0),r=n=>{let i=0;return(Array.isArray(n)?n:[n]).forEach(C=>{let f=[];if(C.startsWith("#")){const T=document.getElementById(C.slice(1));T&&f.push(T)}else f=Array.from(document.getElementsByClassName(C));f.forEach(T=>{i+=T.offsetWidth||0})}),i},c=()=>{l.leftElements&&(d.value=r(l.leftElements)+1)};let s=null;return e.onMounted(()=>{const n=l.getContainer();n!==window&&n instanceof HTMLElement&&n.addEventListener("scroll",()=>{}),c(),s=new MutationObserver(()=>{c()});const i=document.body;s.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{s&&s.disconnect()}),(n,i)=>{const m=e.resolveComponent("a-button"),C=e.resolveComponent("a-space"),f=e.resolveComponent("a-affix"),T=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":d.value+"px"})},[e.createVNode(f,{"offset-bottom":0,target:t.getContainer,style:{width:"100%"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:t.placeLeft,page_footer_btn_right:t.placeRight})},[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,S=>e.withDirectives((e.openBlock(),e.createBlock(m,{key:S.key,type:S.type||"default",danger:S.danger,loading:S.loading,disabled:S.disabled,onClick:S.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[T,S.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),xl={class:"modal__detail-content"},tt=z(U(e.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(t,{expose:l,emit:o}){const a=o,d=t,r=e.computed({get:()=>d.visible,set:F=>a("update:visible",F)}),c=e.ref(null),s=e.computed(()=>({top:"10px",...d.modalStyle})),n=e.computed(()=>({overflow:"hidden",...d.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...d.bodyStyle})),{x:m,y:C,isDragging:f}=re.useDraggable(c),T=e.ref(0),S=e.ref(0),H=e.ref(!1),N=e.ref(0),h=e.ref(0),p=e.ref(0),u=e.ref(0),L=e.ref({left:0,right:0,top:0,bottom:0});let _=null;const k=()=>{N.value=0,h.value=0,p.value=0,u.value=0,H.value=!1};e.watch(r,F=>{F?setTimeout(()=>{k()},50):(_&&clearTimeout(_),_=setTimeout(()=>{N.value=0,h.value=0,p.value=0,u.value=0},300))}),e.watch([m,C],()=>{if(!H.value){T.value=m.value,S.value=C.value;const F=document.body.getBoundingClientRect(),O=c.value.getBoundingClientRect();L.value.right=F.width-O.width,L.value.bottom=F.height-O.height,p.value=N.value,u.value=h.value}H.value=!0}),e.watch(f,()=>{f||(H.value=!1)}),e.watchEffect(()=>{H.value&&(N.value=p.value+Math.min(Math.max(L.value.left,m.value),L.value.right)-T.value,h.value=u.value+Math.min(Math.max(L.value.top,C.value),L.value.bottom)-S.value)});const b=e.computed(()=>({transform:`translate(${N.value}px, ${h.value}px)`})),y=()=>{a("cancel")},w=()=>{a("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),l({handleOk:w,handleCancel:y}),(F,O)=>{const R=e.resolveComponent("a-spin"),B=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(B,e.mergeProps({style:s.value,bodyStyle:i.value,ref:"modalRef",visible:r.value,"onUpdate:visible":O[0]||(O[0]=I=>r.value=I),"wrap-style":n.value,onOk:w,onCancel:y},F.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,style:{width:"100%",cursor:"move"}},[e.renderSlot(F.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:I})=>[(e.openBlock(),e.createElementBlock("div",{key:r.value,style:e.normalizeStyle(b.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I)))],4))]),default:e.withCtx(()=>[e.createVNode(R,{spinning:d.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([t.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",t.descLabelWidth&&"hb_need_set_desc_label_width",t.descValueWidth&&"hb_need_set_desc_value_width"]),style:e.normalizeStyle({"--hb-detail-desc-label-width":t.descLabelWidth+"px","--hb-detail-desc-value-width":t.descValueWidth+"px"})},[e.createElementVNode("div",xl,[e.renderSlot(F.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[F.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(F.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),Bl={key:0,class:"hb_edit_header"},Nl={class:"__detail-content"},Tl={key:1,class:"hb_edit_footer"},El={class:"hb-back-top-inner"},ot=z(U(e.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(t){const l=e.ref("vertical"),o=t,a=()=>document.querySelector(o.container),d=e.inject("GLOBAL_CONFIG_KEY"),r=e.computed(()=>o.backTopBottom||d?.HbLibUnDetailBox?.backTopBottom||80);return(c,s)=>(e.openBlock(),e.createBlock(e.unref(E.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",Bl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",Nl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",Tl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(E.BackTop),{target:a,style:e.normalizeStyle({bottom:r.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",El,[e.createVNode(e.unref(Z.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Fl={class:"hb_edit_header_left"},Vl={class:"hb_edit_header_title"},$l={class:"hb_edit_header_right"},lt=z(U(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=te.useI18n(),o=t,a=we.useRoute(),d=e.ref(0),r=e.computed(()=>a?.meta?.title||"");function c(f,T="offsetHeight"){let S=0;return(Array.isArray(f)?f:[f]).forEach(N=>{let h=[];if(N.startsWith("#")){const p=document.getElementById(N.slice(1));p&&h.push(p)}else h=Array.from(document.getElementsByClassName(N));h.forEach(p=>{S+=p[T]||0})}),S}const s=()=>{o.topElements&&(d.value=c(o.topElements))},n=e.ref(0),i=()=>{o.leftElements&&(n.value=c(o.leftElements,"offsetWidth")+1)};let m=null;e.onMounted(()=>{s(),i(),window.addEventListener("resize",s),m=new MutationObserver(()=>{i()});const f=document.body;m.observe(f,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",s),m&&m.disconnect()}),e.watch(()=>o.topElements,()=>{s()},{immediate:!0});const C=()=>{o.backFn?o.backFn():window.history.back()};return(f,T)=>{const S=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:d.value+"px","--pageHeaderOrFonterLeft":n.value+"px"})},[e.createElementVNode("aside",Fl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:C},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(S,{type:"vertical"}),e.createElementVNode("span",Vl,e.toDisplayString(r.value),1)]),e.createElementVNode("aside",$l,[e.renderSlot(f.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Hl={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"}},Te=z(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Hl,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const a=e.computed(()=>l.tooltipTitle||"复制"),d=e.computed(()=>l.copySuccessTip||"复制成功"),r=e.computed(()=>l.copyFailTip||"复制失败"),c=e.computed(()=>{if(l.cpText)return l.cpText;let n="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(m=>m?.[l.K]===l.V);n=i?i[l.L]:""}}else l.K&&(n=l.data[l.K]);return n}),s=()=>{navigator.clipboard.writeText(c.value).then(()=>{E.message.success(d.value)}).catch(()=>{E.message.error(r.value)})};return(n,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(E.Tooltip),{key:0,title:a.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...n.cpStyle}),onClick:e.withModifiers(s,["stop","prevent"])},[...i[0]||(i[0]=[e.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"},[e.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"}),e.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"}),e.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"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),Il={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:""}},nt=z(U(e.defineComponent({name:"HbDrag",__name:"index",props:Il,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,a=e.shallowRef([]);e.watch(()=>o.dragList,m=>{a.value=m},{deep:!0,immediate:!0});const d=Le("drag"),r=l,c=m=>{console.log("drag start",m),r("handleDragStart",m)},s=m=>{console.log("drag end",m),r("handleDragEnd",m)},n=m=>{console.log("drag add",m),r("handleDragAdd",m)},i=m=>{console.log("drag remove",m),r("handleDragRemove",m)};return(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d).b())},[m.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(ue),e.mergeProps({key:0,modelValue:a.value,"onUpdate:modelValue":C[0]||(C[0]=f=>a.value=f),"item-key":"key",class:{[m.dragClass]:m.dragClass}},m.$attrs,{"ghost-class":m.ghostClass,onStart:c,onEnd:s,onAdd:n,onRemove:i}),{item:e.withCtx(({element:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(ue),e.mergeProps({key:1,modelValue:a.value,"onUpdate:modelValue":C[1]||(C[1]=f=>a.value=f),"item-key":"id",class:{[m.dragClass]:m.dragClass}},m.$attrs,{"ghost-class":m.ghostClass,onStart:c,onEnd:s,onAdd:n,onRemove:i}),{item:e.withCtx(({element:f})=>[e.createElementVNode("div",null,[e.renderSlot(m.$slots,"default",{item:f},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Dl={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},at=z(U(e.defineComponent({name:"HbLibSort",__name:"sort",props:Dl,emits:["change"],setup(t,{expose:l,emit:o}){const a=t,d=o,r=e.ref([]),c=e.ref("");e.watch(()=>a.menuItems,n=>{let i=[];Array.isArray(n)&&n.length&&n.forEach(m=>{i=[...i,{label:`${m.label}升序`,value:`${m.value}`,sort:"Asc"},{label:`${m.label}降序`,value:`${m.value}`,sort:"Desc"}]}),r.value=i},{deep:!0,immediate:!0});const s=n=>{c.value=n.value+n.sort,a.getSort&&a.getSort({orderFeild:n.value,orderBy:n.sort}),d("change",c)};return l({currentActiveItem:c}),(n,i)=>{const m=e.resolveComponent("a-menu-item"),C=e.resolveComponent("a-menu"),f=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(f,{trigger:[a.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,T=>(e.openBlock(),e.createBlock(m,{key:T.value+T.sort,onClick:S=>s(T)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(c.value==T.value+T.sort?"activted":"")},e.toDisplayString(T.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(a.colText)+" ",1),e.createVNode(e.unref(Z.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Ml={class:"hb_lib_loading"},Al={class:"hb_lib_loading_loading_anima"},Ol={class:"hb_lib_loading_load_tips"},it=z(U(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=te.useI18n(),o=t,a=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(d,r)=>(e.openBlock(),e.createElementBlock("div",Ml,[e.createElementVNode("div",Al,[r[0]||(r[0]=e.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)),e.createElementVNode("div",Ol,e.toDisplayString(a.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]]));function rt(t){const l=t.trim();try{return new URL(l).href}catch{const o=l.replace(/ /g,"%20");try{return new URL(o).href}catch{return o}}}function st(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function ct(t){return new Promise((l,o)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.withCredentials=st(t),a.onload=()=>{a.status>=200&&a.status<300?l(a.response):o(new Error(String(a.status)))},a.onerror=()=>o(new Error("xhr")),a.send()})}async function Pl(t){const l=rt(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return ct(l);if(typeof fetch=="function"){const a=await fetch(l,{credentials:st(l)?"include":"omit",mode:"cors"});if(!a.ok)throw new Error(String(a.status));return a.blob()}return ct(l)}function zl(t,l){const o=l.trim()||"download",a=navigator;if(typeof a.msSaveOrOpenBlob=="function"){a.msSaveOrOpenBlob(t,o);return}const d=URL.createObjectURL(t);try{const r=document.createElement("a");r.href=d,r.rel="noopener noreferrer",r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}finally{URL.revokeObjectURL(d)}}function Ul(t){const l=rt(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function ke(t,l){const o=(l||"download").trim()||"download";try{const a=await Pl(t);zl(a,o);return}catch{Ul(t)}}const Rl=768;function jl(){return typeof window>"u"?!0:window.innerWidth>=Rl}function dt(){return!jl()}const Wl=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},mt=t=>t.downloadUrl,ql=(t,l,o)=>{const a=n=>n.previewUrl,d=o?.preferredIndex;if(typeof d=="number"&&d>=0&&d<t.length){const n=t[d];if(n===l)return d;const i="uploadDate"in n&&n.uploadDate||"",m="uploadDate"in l&&l.uploadDate||"";if(a(n)===a(l)&&(n.attachmentDesc||"")===(l.attachmentDesc||"")&&i===m)return d}const r=l.attachmentId;if(r){const n=t.findIndex(i=>i.attachmentId===r);if(n>=0)return n}const c=a(l);if(c){const n=t.findIndex(i=>a(i)===c);if(n>=0)return n}const s=mt(l);if(s){const n=t.findIndex(i=>mt(i)===s);if(n>=0)return n}return t.indexOf(l)},Yl={class:"file-preview-modal-title"},Kl={key:0,class:"file-preview-modal-title__tip"},Gl={class:"file-preview-modal-body file-preview-modal-body--fill"},Jl={key:0},Xl=["src"],Ql=["src"],Zl={key:1},vl=["src"],en=["src"],tn={key:2,class:"file-preview-modal-body__pre"},on=["src"],ln=["src"],nn={key:0,class:"file-preview-modal-footer__nav"},an={class:"file-preview-modal-body file-preview-modal-body--fill"},rn=["src"],sn=["src"],cn={key:2,class:"file-preview-modal-body__pre"},dn=["src"],mn=["src"],pn={key:0,class:"file-preview-modal-footer__nav"},pt=z(U(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},needSafe:{type:Boolean,default:!1},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),a=new Set(["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv","txt"]),d=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),r={"application/pdf":"pdf","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","text/rtf":"rtf","text/plain":"txt","text/csv":"csv","image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/bmp":"bmp","image/webp":"webp","image/svg+xml":"svg","application/vnd.oasis.opendocument.text":"odt","application/vnd.oasis.opendocument.spreadsheet":"ods","application/vnd.oasis.opendocument.presentation":"odp"},c=l,s=t,n=e.ref(s.previewVisible);e.watch(()=>s.previewVisible,V=>{n.value=V});const i=e.computed(()=>s.mobile?"100%":"98%"),m=e.computed(()=>String(s.url||"").trim()),C=e.computed(()=>!!m.value),f=e.computed(()=>s.mobile?"large":"middle"),T=e.computed(()=>s.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),S=e.computed(()=>({height:s.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:s.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),H=V=>String(V||"").trim().replace(/^\./,"").toLowerCase(),N=V=>{const $=H(Wl(String(V||"")));return a.has($)||d.has($)?$:""},h=V=>{try{return decodeURIComponent(String(V||""))}catch{return String(V||"")}},p=V=>{const $=h(V).trim();if(!$)return"";const K=N($);if(K)return K;const W=$.match(/(?:\(|()\s*([a-z0-9]{2,8})\s*(?:\)|))\s*$/i),G=H(W?.[1]);return a.has(G)||d.has(G)?G:""},u=V=>{if(!V)return"";const $=V.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);if($?.[1])return h($[1]);const K=V.match(/filename\s*=\s*"?([^";]+)"?/i);return K?.[1]?h(K[1]):""},L=V=>{const $=String(V||"").trim();if(!$)return"";const K=N($);if(K)return K;try{const W=new URL($,"http://local.preview"),G=p(W.pathname.split("/").pop()||"");if(G)return G;const ce=["filename","fileName","name","file","download","attachment","attname","key","object"];for(const Ee of ce){const ge=p(W.searchParams.get(Ee)||"");if(ge)return ge}const ne=W.searchParams.get("response-content-disposition")||W.searchParams.get("content-disposition"),Ct=p(u(ne));if(Ct)return Ct;for(const Ee of W.searchParams.values()){const ge=p(Ee);if(ge)return ge}}catch{}return""},_=async V=>{const $=String(V||"").trim();if(!$)return"";try{const K=await fetch($,{method:"HEAD",credentials:"include",mode:"cors"}),W=String(K.headers.get("content-type")||"").split(";")[0].trim().toLowerCase();if(W&&r[W])return r[W];const G=u(K.headers.get("content-disposition")||"");return p(G)}catch{return""}},k=e.ref("");let b=0;e.watch(()=>`${s.fileName||""}\0${m.value}`,async()=>{const V=++b,$=p(s.fileName||""),K=L(m.value);if(k.value=$||K||"",k.value)return;const W=await _(m.value);V===b&&(k.value=H(W))},{immediate:!0});const y=e.computed(()=>H(k.value)),w=e.computed(()=>`${s.url}\0${s.fileName||""}`),F=e.computed(()=>d.has(y.value)),O=e.computed(()=>a.has(y.value)),R=e.computed(()=>{const V=m.value;if(!V)return!1;try{const{pathname:$}=new URL(V);return/\/file(?:\/|-)preview\b/i.test($)}catch{return/\/file(?:\/|-)preview\b/i.test(V)}}),B=e.getCurrentInstance(),I=e.computed(()=>{const V=B?.appContext?.components||{};return!!(V.VueFilesPreview||V.VueFilesPreview||V["vue-files-preview"])}),q=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),Y=e.computed(()=>!I.value||!m.value||R.value?!1:q.has(y.value)),X=e.computed(()=>y.value==="txt"),v=e.computed(()=>!m.value||R.value?!1:X.value),Q={idle:"idle",loading:"loading",text:"text",iframeFallback:"iframe-fallback"},ee=e.ref(Q.idle),g=e.ref("");e.watch(()=>({visible:s.previewVisible,url:m.value,isTxt:X.value}),async({visible:V,url:$,isTxt:K})=>{if(g.value="",ee.value=Q.idle,!(!V||!K||!$)){ee.value=Q.loading;try{const W=await fetch($,{credentials:"include",mode:"cors"});if(!W.ok)throw new Error(String(W.status));g.value=await W.text(),ee.value=Q.text}catch{ee.value=Q.iframeFallback}}},{flush:"post"});const M=e.computed(()=>!m.value||!I.value||X.value?!1:Y.value?!0:!O.value&&!F.value),x=e.computed(()=>o.has(y.value)),P=e.computed(()=>{const V=m.value;return V?R.value||!O.value||s.needSafe||y.value==="pdf"?V:x.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(V)}`:`https://docs.google.com/gview?url=${encodeURIComponent(V)}&embedded=true`:s.url}),J=new Set(["view.officeapps.live.com","docs.google.com"]),le=e.computed(()=>{const V=(P.value||"").trim();if(!V)return!1;try{const $=new URL(V).hostname.toLowerCase();return J.has($)}catch{return/view\.officeapps\.live\.com|docs\.google\.com/i.test(V)}}),oe=e.computed(()=>le.value?{sandbox:"allow-scripts allow-same-origin",allow:"fullscreen"}:{}),j=e.ref("");e.watch(()=>({visible:s.previewVisible,src:P.value,doc:O.value,serverPage:R.value,skipIframe:Y.value}),async({visible:V,src:$,doc:K,serverPage:W,skipIframe:G})=>{if(j.value="",!V||!(K||W)||G)return;const ce=($||"").trim();ce&&(await e.nextTick(),await new Promise(ne=>requestAnimationFrame(ne)),s.previewVisible&&P.value===ce&&(j.value=ce))},{flush:"post"});const de=e.computed(()=>C.value),me=async()=>{m.value&&(dt()?window.open(m.value,"_blank"):await ke(m.value,s.fileName||"file"))},pe=()=>{c("closeModal")},fe=V=>{const $=V instanceof Error?V.message:typeof V=="string"?V:"";E.message.warning($?`文件预览加载失败:${$},可尝试下载后查看`:"文件预览加载失败,可尝试下载后查看")},A=V=>V instanceof TypeError&&typeof V.message=="string"&&/failed to fetch/i.test(V.message),ut=V=>{A(V.error)&&s.previewVisible&&E.message.error("文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看")},yt=V=>{A(V.reason)&&s.previewVisible&&E.message.error("文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看")};return e.onMounted(()=>{window.addEventListener("error",ut),window.addEventListener("unhandledrejection",yt)}),e.onUnmounted(()=>{window.removeEventListener("error",ut),window.removeEventListener("unhandledrejection",yt)}),(V,$)=>{const K=e.resolveComponent("VueFilesPreview"),W=e.resolveComponent("a-spin"),G=e.resolveComponent("a-button"),ce=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(ce,e.mergeProps({key:0,visible:n.value,"onUpdate:visible":$[2]||($[2]=ne=>n.value=ne),width:i.value,"body-style":S.value,style:T.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},V.$attrs,{onCancel:pe}),{title:e.withCtx(()=>[e.createElementVNode("div",Yl,[e.renderSlot(V.$slots,"title",{},()=>[$[5]||($[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(dt)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Kl,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(V.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",nn,[e.createVNode(G,{disabled:!t.hasPrevAttachment,size:f.value,block:t.mobile,onClick:$[0]||($[0]=ne=>c("prevAttachment"))},{default:e.withCtx(()=>[...$[6]||($[6]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(G,{disabled:!t.hasNextAttachment,size:f.value,block:t.mobile,onClick:$[1]||($[1]=ne=>c("nextAttachment"))},{default:e.withCtx(()=>[...$[7]||($[7]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createBlock(G,{key:1,size:f.value,block:t.mobile,onClick:me},{default:e.withCtx(()=>[...$[8]||($[8]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(G,{type:"primary",class:"file-preview-modal-footer__close",size:f.value,block:t.mobile,onClick:pe},{default:e.withCtx(()=>[...$[9]||($[9]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Gl,[t.needSafe?(e.openBlock(),e.createElementBlock("section",Jl,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,Xl)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${w.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Ql)):(e.openBlock(),e.createBlock(K,{key:`vfp:${w.value}`,url:t.url,onError:fe},null,8,["url"]))])):(e.openBlock(),e.createElementBlock("section",Zl,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,vl)):e.createCommentVNode("",!0)],64)):v.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${w.value}`,class:"file-preview-modal-body__plaintext"},[ee.value===Q.loading?(e.openBlock(),e.createBlock(W,{key:0,tip:"加载中..."})):ee.value===Q.iframeFallback?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:s.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,en)):ee.value===Q.text?(e.openBlock(),e.createElementBlock("pre",tn,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])):O.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[j.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${w.value}:${j.value}`,src:j.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,on)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${w.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,ln)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${w.value}`,class:"no-preview"},e.toDisplayString(I.value?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]))])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",an,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,rn)):e.createCommentVNode("",!0)],64)):v.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${w.value}`,class:"file-preview-modal-body__plaintext"},[ee.value===Q.loading?(e.openBlock(),e.createBlock(W,{key:0,tip:"加载中..."})):ee.value===Q.iframeFallback?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:s.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,sn)):ee.value===Q.text?(e.openBlock(),e.createElementBlock("pre",cn,e.toDisplayString(g.value)+`
2
+ `,1)):e.createCommentVNode("",!0)])):M.value?(e.openBlock(),e.createBlock(K,{key:`vfp:${w.value}`,url:t.url,onError:fe},null,8,["url"])):O.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,dn)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${w.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,mn)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${w.value}`,class:"no-preview"},e.toDisplayString(I.value?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(V.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",pn,[e.createVNode(G,{disabled:!t.hasPrevAttachment,size:f.value,block:t.mobile,onClick:$[3]||($[3]=ne=>c("prevAttachment"))},{default:e.withCtx(()=>[...$[10]||($[10]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(G,{disabled:!t.hasNextAttachment,size:f.value,block:t.mobile,onClick:$[4]||($[4]=ne=>c("nextAttachment"))},{default:e.withCtx(()=>[...$[11]||($[11]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createBlock(G,{key:1,size:f.value,block:t.mobile,onClick:me},{default:e.withCtx(()=>[...$[12]||($[12]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(G,{type:"primary",class:"file-preview-modal-footer__close",size:f.value,block:t.mobile,onClick:pe},{default:e.withCtx(()=>[...$[13]||($[13]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-e7a92b86"]])),fn=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Ze,HbLibCard:Qe,HbLibCopy:Te,HbLibDetailBox:ve,HbLibFilePreview:pt,HbLibFooterBar:et,HbLibFormItemFilterModal:Fe,HbLibFormTooltipSelect:Ke,HbLibFuncCompDrag:nt,HbLibImportFile:Ge,HbLibListBtnsAct:He,HbLibListForm:Ve,HbLibListMultiSelect:Me,HbLibListPageAct:$e,HbLibListPageContainer:De,HbLibListTable:qe,HbLibLoading:it,HbLibLogModal:Je,HbLibModal:tt,HbLibMutilpleSelectModal:Ae,HbLibPageHeader:lt,HbLibSort:at,HbLibTableAct:Oe,HbLibTableColumnSet:Ye,HbLibUnDetailBox:ot,HbUiConfig:Xe},Symbol.toStringTag,{value:"Module"})),ae=new Map;let ft;re.isClient&&(document.addEventListener("mousedown",t=>ft=t),document.addEventListener("mouseup",t=>{for(const l of ae.values())for(const{documentHandler:o}of l)o(t,ft)}));function ht(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(a,d){const r=l.instance.popperRef,c=a.target,s=d?.target,n=!l||!l.instance,i=!c||!s,m=t.contains(c)||t.contains(s),C=t===c,f=o.length&&o.some(S=>S?.contains(c))||o.length&&o.includes(s),T=r&&(r.contains(c)||r.contains(s));n||i||m||C||f||T||l.value(a,d)}}const hn={beforeMount(t,l){ae.has(t)||ae.set(t,[]),ae.get(t).push({documentHandler:ht(t,l),bindingFn:l.value})},updated(t,l){ae.has(t)||ae.set(t,[]);const o=ae.get(t),a=o.findIndex(r=>r.bindingFn===l.oldValue),d={documentHandler:ht(t,l),bindingFn:l.value};a>=0?o.splice(a,1,d):o.push(d)},unmounted(t){ae.delete(t)}},bn={mounted(t,l){const{value:o,arg:a}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const d=parseInt(a,10)||300;let r;t.__debounceHandler__=function(...c){r&&clearTimeout(r),r=setTimeout(()=>{o(...c)},d)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},bt=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(Te,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},gn={cos:hn,dc:bn,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}bt(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&bt(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}};function un(t){const l=e.ref(!1),o=e.ref(""),a=e.ref(""),d=e.ref(-1),r=h=>h.previewUrl,c=e.computed(()=>{const h=t.value.attachmentInfos,p=d.value;if(p<=0)return!1;for(let u=p-1;u>=0;u--)if(r(h[u]))return!0;return!1}),s=e.computed(()=>{const h=t.value.attachmentInfos,p=d.value;if(p<0||p>=h.length-1)return!1;for(let u=p+1;u<h.length;u++)if(r(h[u]))return!0;return!1}),n=e.computed(()=>t.value.attachmentInfos.length>1),i=h=>{const u=t.value.attachmentInfos[h];if(!u)return;const L=r(u);L&&(d.value=h,o.value=L,a.value=u.attachmentDesc||"",l.value=!0)},m=()=>{const h=t.value.attachmentInfos,p=d.value;for(let u=p-1;u>=0;u--)if(r(h[u])){i(u);return}},C=()=>{const h=t.value.attachmentInfos,p=d.value;for(let u=p+1;u<h.length;u++)if(r(h[u])){i(u);return}},f=()=>{l.value=!1,d.value=-1,o.value="",a.value=""},T=(h,p)=>{const u=r(h);if(!u){E.message.warning("暂无预览地址");return}const L=t.value.attachmentInfos,_=ql(L,h,{preferredIndex:p});_>=0?i(_):(d.value=-1,o.value=u,a.value=h.attachmentDesc||"",l.value=!0)},S=h=>{const p=h.downloadUrl;if(!p){E.message.warning("暂无下载地址");return}const u=h.attachmentDesc?.trim()||"download";ke(p,u)},H=400;return{filePreviewVisible:l,pdfPreviewUrlRef:o,previewFileNameRef:a,previewAttachmentIndexRef:d,hasPrevAttachment:c,hasNextAttachment:s,showAttachmentNavBar:n,handlePreview:T,handleDownload:S,handleClosePreview:f,goPrevAttachment:m,goNextAttachment:C,triggerBrowserDownload:ke,handleBatchDownloadAttachment:async()=>{const p=t.value.attachmentInfos.filter(u=>!!u.downloadUrl?.trim());if(p.length===0){E.message.warning("暂无可下载附件");return}for(let u=0;u<p.length;u++){const L=p[u],_=L.attachmentDesc?.trim()||"download";ke(L.downloadUrl,_),u<p.length-1&&await new Promise(k=>setTimeout(k,H))}}}}const yn=t=>{const l=e.ref();l.value=t.slice();const o=JSON.parse(JSON.stringify(l.value));return{formItems:l,DeepCloneFromItem:o,handleSearchCase:d=>{let r=[],c=Object.keys(d);o.forEach(s=>{c.includes(s.key)&&r.push(s)}),l.value=r}}},Cn=t=>{let l=!0;return{start:()=>{e.nextTick(()=>{const r=document.querySelector(`.${t} .ant-modal`);if(r){let c=!1,s={x:0,y:0};const n=r.querySelector(".ant-modal-header"),i=r.querySelector(".ant-modal-footer");n&&(n.style.cursor="move",i.style.cursor="move",n.addEventListener("mousedown",m=>{c=!0,s.x=m.clientX-r.offsetLeft,s.y=m.clientY-r.offsetTop,document.body.style.userSelect="none"}),i.addEventListener("mousedown",m=>{c=!0,s.x=m.clientX-r.offsetLeft,s.y=m.clientY-r.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",m=>{if(!c||!l)return;const C=m.clientX-s.x,f=m.clientY-s.y;r.style.left=`${C}px`,r.style.top=`${f}px`}),document.addEventListener("mouseup",()=>{c=!1,document.body.style.userSelect=""}))}})},stop:()=>{l=!1},resetPosition:()=>{e.nextTick(()=>{const r=document.querySelector(`.${t} .ant-modal`);if(r){const c=window.innerWidth,s=window.innerHeight,n=r.offsetWidth,i=r.offsetHeight,m=(c-n)/2,C=(s-i)/2;r.style.left=`${m}px`,r.style.top=`${C}px`}})}}},kn={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"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},_n={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:"ファイルのアップロード"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},wn={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:"文件上传"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},Ln={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"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var _e={exports:{}},Sn=_e.exports,gt;function xn(){return gt||(gt=1,(function(t,l){(function(o,a){t.exports=a(ye)})(Sn,(function(o){function a(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var d=a(o),r={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(c,s){return s==="W"?c+"周":c+"日"},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(c,s){var n=100*c+s;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return d.default.locale(r,null,!0),r}))})(_e)),_e.exports}xn(),ye.locale("zh-cn");const Bn={en_US:kn,ja_JP:_n,zh_CN:wn,de_DE:Ln},Nn=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(fn).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),t.use(he),Object.entries(gn).forEach(([o,a])=>{t.directive(o,a)})};D.HbLibAnchor=Ze,D.HbLibCard=Qe,D.HbLibCopy=Te,D.HbLibDetailBox=ve,D.HbLibFilePreview=pt,D.HbLibFooterBar=et,D.HbLibFormItemFilterModal=Fe,D.HbLibFormTooltipSelect=Ke,D.HbLibFuncCompDrag=nt,D.HbLibImportFile=Ge,D.HbLibListBtnsAct=He,D.HbLibListForm=Ve,D.HbLibListMultiSelect=Me,D.HbLibListPageAct=$e,D.HbLibListPageContainer=De,D.HbLibListTable=qe,D.HbLibLoading=it,D.HbLibLogModal=Je,D.HbLibModal=tt,D.HbLibMutilpleSelectModal=Ae,D.HbLibPageHeader=lt,D.HbLibSort=at,D.HbLibTableAct=Oe,D.HbLibTableColumnSet=Ye,D.HbLibUnDetailBox=ot,D.HbUiConfig=Xe,D.install=Nn,D.locales=Bn,D.useCalTableHeight=Ie,D.useCalTableWidth=Se,D.useFilePreview=un,D.useListFormItem=yn,D.useModalDrag=Cn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));