@hb-hellotech/hb-ui 1.3.15 → 1.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R.HbComponentLib={},R.Vue,R.draggable,R.antDesignVue,R.vueRouter,R.vueI18n,R.lodash,R.iconsVue,R.core,R.dayjs))})(this,(function(R,e,le,F,ce,Y,Z,W,X,ne){"use strict";const de=(t="")=>{const o=`hb-${t}`;return Ee(o)},v=(t,o,l,i)=>(o&&(t+=`-${o}`),l&&(t+=`__${l}`),i&&(t+=`--${i}`),t),Ee=t=>({b:o=>o?v(t,o,"",""):v(t,"","",""),e:o=>o?v(t,"",o,""):"",m:o=>v(t,"","",o),be:(o,l)=>v(t,o,l,""),em:(o,l)=>v(t,"",o,l),bem:(o,l,i)=>v(t,o,l,i),is:(o,l)=>l?`is-${o}`:""}),He=["onMouseenter","onMouseleave"],$e=["onClick"],Ie=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:o,emit:l}){const i=e.inject("globalCompConfig",{}),s=Y.useI18n().t,d=Y.useI18n().messages.value.en_US,c=Y.useI18n().messages.value.ja_JP,m=Y.useI18n().messages.value.zh_CN,n=t,a=e.computed(()=>n.showNumber||i.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.computed(()=>n.title||s("hbLibComp.hbFormItemFilterModal.title")),C=l,p=de("sfcm"),N=ce.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),E=e.ref(!1),k=e.ref(600);let y=[];const _=e.ref([]),T=e.ref([]),L=e.computed(()=>_.value.every(b=>b.isLinked||b.isFixed)),u=b=>({...b,label:w(b)||`${H(b)||""} (${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:b.key,isFixed:b?.isFixed||!1,isLinked:b?.isLinked||!1,labelLanguage:b?.labelLanguage||void 0}),g=b=>{const $=b.draggedContext.element,S=b.relatedContext.index;if($.isLinked||$.isFixed)return!1;const M=_.value.map((U,J)=>({item:U,index:J})).filter(({item:U})=>U.isLinked).map(({index:U})=>U);if(M.length===0)return!0;for(let U=0;U<M.length-1;U++){const J=M[U],te=M[U+1];if(S>J&&S<te)return!1}return!0},r=e.computed(()=>f()+"_"+n.saveKey),f=()=>{const b=localStorage.getItem("pro__Login_Userinfo");let $="anonymous";if(b)try{$=JSON.parse(b).value.jobNumber||"anonymous"}catch(M){console.warn("解析用户信息失败:",M)}let S=N?.path;return`searchFormConfig_${$}_${S}`},w=b=>({ja_JP:()=>Z.get(c,b.labelLanguage||""),en_US:()=>Z.get(d,b.labelLanguage||""),zh_CN:()=>Z.get(m,b.labelLanguage||"")})[B.lan]?.()||b.label,H=b=>({ja_JP:()=>Z.get(c,b.subLabelLanguage||""),en_US:()=>Z.get(d,b.subLabelLanguage||""),zh_CN:()=>Z.get(m,b.subLabelLanguage||"")})[B.lan]?.()||b.subLabel,I=b=>{try{const $=localStorage.getItem(r.value);if($){const S=JSON.parse($);if(S.originalList&&Array.isArray(S.originalList)){y=JSON.parse(JSON.stringify(S.originalList));const M=y.filter(A=>A?.isFixed),U=y.filter(A=>A?.isLinked),J=S.showList.filter(A=>!A.isFixed&&!A.isLinked),te=a.value&&a.value>0?Math.max(0,a.value-M.length-U.length):J.length,se=M.map(A=>({...u(A)})),be=U.map(A=>({...u(A)})),ge=J.slice(0,te).map(A=>({...u(A)}));_.value=[...se,...be,...ge];const ye=_.value.map(A=>A.key),j=y.map(A=>A.key).filter(A=>!ye.includes(A));return T.value=y.filter(A=>j.includes(A.key)).map(A=>({...u(A),active:!1})),!0}}}catch($){console.warn("加载保存的搜索配置失败:",$)}return!1},q=()=>{try{const b={originalList:y,showList:_.value.map($=>({...$,key:$.key,label:$.label,isFixed:$.isFixed,isLinked:$.isLinked,labelLanguage:$?.labelLanguage||void 0}))};localStorage.setItem(r.value,JSON.stringify(b))}catch(b){console.warn("保存搜索配置失败:",b)}},x=e.computed(()=>{const b=_.value.filter(S=>!S.isFixed&&!S.isLinked).length,$=_.value.filter(S=>S.isFixed||S.isLinked).length;return b>=a.value-$});e.watch(()=>n.list,b=>{let $=JSON.stringify(_.value)!==JSON.stringify(b);if(!$)return;const S=localStorage.getItem(r.value),M=JSON.parse(S||"{}");if(M&&M?.originalList&&Array.isArray(M.originalList))I(),C("confirm",_.value);else if($){y=JSON.parse(JSON.stringify(b));const U=b.filter(j=>j?.isFixed),J=b.filter(j=>j?.isLinked),te=b.filter(j=>!j?.isFixed&&!j?.isLinked),se=a.value&&a.value>0?Math.max(0,a.value-U.length-J.length):te.length,be=U.map(j=>u(j)),ge=J.map(j=>u(j)),ye=te.slice(0,se).map(j=>u(j));_.value=[...be,...ge,...ye];const Ve=te.slice(se).map(j=>({...u(j),active:!1}));T.value=Ve,C("confirm",_.value)}},{immediate:!0});const V=b=>{const $=_.value.findIndex(S=>S.key===b.key);$!==-1&&(_.value.splice($,1),T.value.push({...b,active:!1}))},z=b=>{if(x.value){F.message.warning(`当前已经超过${s(a.value)}个可选数量,请先删除已显示条件`);return}const $=T.value.findIndex(S=>S.key===b.key);if($!==-1){const[S]=T.value.splice($,1);_.value.push({...S,active:!1})}},P=()=>{E.value=!1},K=()=>{E.value=!0},G=()=>{q(),C("confirm",_.value),P()},re=b=>{const $=T.value.findIndex(S=>S.key===b.key);$!==-1&&(T.value[$].active=!0)},he=b=>{const $=T.value.findIndex(S=>S.key===b.key);$!==-1&&(T.value[$].active=!1)};return o({toOpenModal:K}),e.onMounted(()=>{}),(b,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).b())},[e.createVNode(e.unref(F.Modal),{visible:E.value,"onUpdate:visible":$[1]||($[1]=S=>E.value=S),width:k.value,onCancel:P,onOk:G},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("title"))},e.toDisplayString(h.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(F.Button),{onClick:P},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(F.Button),{type:"primary",onClick:G},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(p).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(a.value)+e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__tag"))},[e.createVNode(e.unref(le),{modelValue:_.value,"onUpdate:modelValue":$[0]||($[0]=S=>_.value=S),"item-key":"key",tag:"div",disabled:L.value,move:g},{item:e.withCtx(({element:S})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(p).e("show__tag__item"),e.unref(p).is("fixed",S.isFixed),e.unref(p).is("linked",S.isLinked)])},[e.createTextVNode(e.toDisplayString(S.label)+" ",1),!S.isFixed&&!S.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(W.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(p).e("show__tag__item-close")),onClick:M=>V(S)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(p).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("unshow__tag"))},[T.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(T.value,S=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p).e("unshow__tag__item"),e.unref(p).is("fixed",S.isFixed||""),e.unref(p).is("linked",S.isLinked||"")]),key:S.key,onMouseenter:M=>re(S),onMouseleave:M=>he(S)},[e.createTextVNode(e.toDisplayString(S.label)+" ",1),S.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(p).e("unshow__tag__item-add")),onClick:M=>z(S)},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.add")),11,$e)):e.createCommentVNode("",!0)],42,He))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).e("unshow__tag__empty"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),D=(t,o)=>{const l=t.__vccOpts||t;for(const[i,s]of o)l[i]=s;return l},Me=D(Ie,[["__scopeId","data-v-93f23c9d"]]),O=t=>(t.install=o=>{o.component(t.name||"AnonymousComponent",t)},t),De=O(Me),Ae={key:0,class:"form-footer"},Oe=O(D(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:o,emit:l}){const i=e.inject("globalCompConfig",{}),s=l,d=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>n.searchList||[]),m=de("form"),n=t,a=e.computed(()=>n.showNumber||i.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.ref("show"),C=e.computed(()=>n.needFooter||i.HbLibListForm?.needFooter),p=e.computed(()=>[...n.items]),N=x=>x!==void 0,B=x=>typeof x=="function",E=x=>N(x.condition)?B(x.condition)?x.condition():x.condition:!0,k=e.computed(()=>[...n.items].map(x=>({...x,condition:E(x),label:x.label?.includes("多项搜索")?"":x.label})));console.log(k.value);const y=e.computed(()=>n.saveKey),_=e.ref(),T=()=>{s("handleSearch")},L=()=>{s("handleReset")},u=e.ref(),g=()=>{u.value&&u.value.toOpenModal()},r=x=>{s("handleMenuClick",x)},f=x=>{s("handleSfcmConfirm",x)};e.watch(()=>n.isFormExpanded,x=>{if(x){console.log(x);const V=document.querySelector("#subpackage_container");V instanceof HTMLElement&&(V.style.overflow="hidden",setTimeout(()=>{V.style.overflow="auto"},500))}});const w=x=>{const V=x;V.style.height="",V.offsetHeight},H=x=>{const V=x;V.style.height="",V.style.overflow="",e.nextTick(()=>{d.calTableHeight&&d.calTableHeight()})},I=x=>{const V=x,z=V.querySelector(".hb-lib-form--container");if(z){const P=z.offsetHeight;V.style.height=P+"px",V.style.overflow="hidden",V.offsetHeight,requestAnimationFrame(()=>{V.style.height="0"})}},q=()=>{e.nextTick(()=>{d.calTableHeight&&d.calTableHeight()})};return o({formRef:_,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}),(x,V)=>{const z=e.resolveComponent("a-button"),P=e.resolveComponent("a-tooltip"),K=e.resolveComponent("a-menu-item"),G=e.resolveComponent("a-menu"),re=e.resolveComponent("a-dropdown"),he=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:w,onAfterEnter:H,onLeave:I,onAfterLeave:q},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(m).b(),"hb-lib-list-page-form-box","hb-form-item-ui",C.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(x.$attrs,{model:t.formData,ref_key:"formRef",ref:_,class:["hb-lib-form--container",h.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,$)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:$},[b.condition?(e.openBlock(),e.createBlock(e.unref(F.FormItem),e.mergeProps({key:0,ref_for:!0},b,{name:b.key,class:{"hb-lib-form-item-border--unneed":b.isUnNeedBorder,"hb_lib_form_item--needShowAll":b.showAll}}),e.createSlots({default:e.withCtx(()=>[b.type==="slot"?e.renderSlot(x.$slots,b.key,{key:0,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="mixin"?e.renderSlot(x.$slots,b.key,{key:1,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="input"?(e.openBlock(),e.createBlock(e.unref(F.Input),e.mergeProps({key:2,value:t.formData[b.key],"onUpdate:value":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="select"?(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({key:3,value:t.formData[b.key],"onUpdate:value":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(S,M)=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),{key:M,value:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(F.CheckboxGroup),e.mergeProps({key:4,value:t.formData[b.key],"onUpdate:value":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(S,M)=>(e.openBlock(),e.createBlock(e.unref(F.Checkbox),{key:M,value:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(F.DatePicker),e.mergeProps({key:5,value:t.formData[b.key],"onUpdate:value":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(F.InputNumber),e.mergeProps({key:6,value:t.formData[b.key],"onUpdate:value":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="radio"?(e.openBlock(),e.createBlock(e.unref(F.RadioGroup),e.mergeProps({key:7,value:t.formData[b.key],"onUpdate:value":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(S,M)=>(e.openBlock(),e.createBlock(e.unref(F.Radio),{key:M,value:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="switch"?(e.openBlock(),e.createBlock(e.unref(F.Switch),e.mergeProps({key:8,checked:t.formData[b.key],"onUpdate:checked":S=>t.formData[b.key]=S},{ref_for:!0},b.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[b.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.label)+" ",1),e.createVNode(e.unref(F.Tooltip),{title:b.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(W.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",Ae,[e.createVNode(z,{type:"primary",onClick:T,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(W.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(z,{type:"link",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(P,{key:0,title:x.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:g},[...V[0]||(V[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(x.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(re,{key:0},{overlay:e.withCtx(()=>[e.createVNode(G,{onClick:r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createBlock(K,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(K,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(K,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(P,{title:x.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...V[1]||(V[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(m).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(m).e("footer__left"))},[e.renderSlot(x.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m).e("footer__right"))},[h.value=="show"?e.renderSlot(x.$slots,"form-footer-right",{key:0,formRef:_.value},()=>[e.createVNode(z,{type:"primary",onClick:T,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(W.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(z,{type:"link",onClick:L,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(P,{key:0,title:x.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:g},[...V[2]||(V[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(x.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(re,{key:0},{overlay:e.withCtx(()=>[e.createVNode(G,{onClick:r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createBlock(K,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(K,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(K,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(P,{title:x.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...V[3]||(V[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(he,{showNumber:a.value,list:p.value,ref_key:"HbSfCmRef",ref:u,onConfirm:f,saveKey:y.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-8307bb07"]])),ze={class:"hb-lib-list-page-act-box"},Pe={class:"hb-lib-list-page-breadcrumb"},Re={class:"hb-lib-list-page-act"},Ue={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"},je={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"},We=O(D(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const o=e.inject("globalCompConfig",{}),l=t,{isFullscreen:i,toggle:s}=X.useFullscreen(document.body);e.watch(()=>i.value,n=>{let a=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(l.hideDomList)&&l.hideDomList.length?a=[...l.hideDomList]:o.HbLibListPageAct?.hideDomList&&(a=[...o.HbLibListPageAct.hideDomList]);const h=new Map;setTimeout(n?()=>{if(a?.length)for(let C=0;C<a.length;C++){const p=document.querySelector(a[C]);p&&(h.set(a[C],p.style.display),p.style.display="none")}}:()=>{if(a?.length)for(let C=0;C<a.length;C++){const p=document.querySelector(a[C]);if(p){const N=h.get(a[C]);p.style.display=N||"",h.delete(a[C])}}},0)});const d=e.ref(""),c=()=>{const n=ce.useRoute();let a=localStorage.getItem(o.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",h=n?.path;if(a!=="[]"){let C=JSON.parse(a).find(p=>p.value===h);C&&(d.value=C.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const m=n=>{n.keyCode===192&&s()};return e.onMounted(()=>{window.addEventListener("keydown",m)}),e.onUnmounted(()=>{window.removeEventListener("keydown",m)}),(n,a)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ze,[e.createElementVNode("aside",Pe,e.toDisplayString(d.value),1),e.createElementVNode("aside",Re,[e.createVNode(h,{title:e.unref(i)?`${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:a[0]||(a[0]=(...C)=>e.unref(s)&&e.unref(s)(...C))},[e.unref(i)?(e.openBlock(),e.createElementBlock("svg",je,[...a[2]||(a[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",Ue,[...a[1]||(a[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"]])),qe={class:"hb-lib-list-btns-box"},Ye={class:"hb-lib-list-btns-left"},Ke={class:"hb-lib-list-btns-right"},Ge=O(D(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:o}){const l=o,i=e.ref(!0),s=()=>{i.value=!i.value,l("handleOpenOrClose",i.value)},d=()=>{l("handleReload")},c=m=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(m,n)=>{const a=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",qe,[e.createElementVNode("aside",Ye,[e.renderSlot(m.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Ke,[t.needReload?(e.openBlock(),e.createBlock(a,{key:0,title:m.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:d},[...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(a,{key:1,title:i.value?`${m.$t("hbLibComp.hbListBtnsAct.close")}`:`${m.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:s},[i.value?(e.openBlock(),e.createBlock(e.unref(W.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(W.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-de62f20a"]])),Je=(t={})=>{const{formRef:o,offsetBottom:l=50,minHeight:i=300,timeOut:s=100}=t,d=e.ref(0);let c=null,m=null,n=null,a=null,h=null;const C=()=>{h&&clearTimeout(h),h=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const _=document.querySelector(".ant-table"),T=document.querySelector(".ant-pagination");if(_){const L=Math.floor(_.getBoundingClientRect().top),u=window.innerHeight,r=(T?T.offsetHeight+20:40)+l;let f=u-L-r;f<i&&(f=i),d.value=f}})})},100)},p=()=>{const _=document.querySelector(".ant-pagination");if(_){const T=new MutationObserver(()=>{C()});return T.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),T}return null},N=()=>{const _=document.querySelector(".hb-lib-list-page-form-box");_&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(L=>{L.style.display="none"}),C()}),c.observe(_))},B=()=>{const _=document.querySelector(".hb-lib-list-page-form-box");_&&(n=new MutationObserver(()=>{setTimeout(()=>{C()},s)}),n.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},E=()=>{a&&clearTimeout(a),a=setTimeout(()=>{C()},s)},k=()=>{window.addEventListener("resize",E),e.nextTick(()=>{N(),B(),m=p()})},y=()=>{window.removeEventListener("resize",E),c&&c.disconnect(),n&&n.disconnect(),m&&m.disconnect(),a&&clearTimeout(a),h&&clearTimeout(h)};return o&&e.watch(()=>o,()=>{setTimeout(()=>{C()},200)},{deep:!0}),e.onMounted(()=>{C(),k()}),e.onUnmounted(()=>{y()}),{tableHeight:d,calTableHeight:C}},Qe=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const o=e.inject("globalCompConfig",{}),{isFullscreen:l}=X.useFullscreen(document.body),i=t,s=e.useTemplateRef("PageContainerRef"),d=e.computed(()=>i.offsetHeight||o.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>i.offsetBottom||o.HbLibListPageContainer?.offsetBottom||20),m=e.computed(()=>i.minHeight||o.HbLibListPageContainer?.minHeight||300),n=e.computed(()=>i.timeOut||o.HbLibListPageContainer?.timeOut||100),a=e.computed(()=>i.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(i.isUnFixTbHeight);const{calTableHeight:h,tableHeight:C}=Je({offsetBottom:c.value,minHeight:m.value,timeOut:n.value}),p=e.computed(()=>C.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:s,tableHeight:C,calTableHeight:h}),(N,B)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:s},[e.renderSlot(N.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(a.value?null:{"--hb-list-table-height":e.unref(l)?p.value-d.value+"px":p.value-c.value+"px","--hb-list-ttable-height":t.tabelData.length?"":e.unref(l)?p.value-d.value+"px":p.value-c.value+"px"})},[e.renderSlot(N.$slots,"default")],4)],512))}})),Ze={style:{"font-weight":"500"}},Xe={key:0,class:"hb-lib-search-tag__description"},ve={class:"hb-lib-selector-dropdown"},et={class:"hb-lib-selector-search"},tt={class:"hb-lib-selector-list"},ot=["onClick"],lt={class:"hb-lib-option-content"},nt={class:"hb-lib-option-label"},at={key:0,class:"hb-lib-selector-empty"},it={key:1,class:"hb-lib-selector-footer"},rt={class:"hb-lib-footer-buttons"},st={key:2,class:"hb-lib-selector-footer"},ct={class:"hb-lib-footer-buttons"},dt=O(D(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:o}){const l=t,i=o,s=e.useModel(t,"value"),d=e.ref(!1),c=e.ref(""),m=e.ref([]),n=e.ref(),a=e.computed(()=>{if(l.remoteSearch||!c.value)return l.options;const u=c.value.toLowerCase();return l.options.filter(g=>g.label.toLowerCase().includes(u)||g.description?.toLowerCase().includes(u))}),h=e.computed(()=>l.prefix?`${l.prefix.length*14+8}px`:"0px"),C=e.computed(()=>a.value.length===0?!1:a.value.every(u=>m.value.includes(u.value))),p=e.computed(()=>{if(a.value.length===0)return!1;const u=a.value.filter(g=>m.value.includes(g.value)).length;return u>0&&u<a.value.length});e.watch(()=>s.value,u=>{u?m.value=Array.isArray(u)?[...u]:[u]:m.value=[]},{immediate:!0}),e.watch(()=>l.searchValue,u=>{l.remoteSearch&&u!==void 0&&(c.value=u)},{immediate:!0});const N=u=>{u&&(d.value=u,B.value=[...m.value],c.value="",setTimeout(()=>{if(n.value){const g=n.value.input||n.value.$el?.querySelector("input");g&&g.focus()}},100))},B=e.ref([]),E=()=>{m.value=[...B.value],d.value=!1,i("cancel")},k=e.ref([]),y=()=>{const u=l.multiple?m.value:m.value[0]||"",g=l.options.filter(r=>m.value.includes(r.value));k.value=g,console.log(u,g),B.value=[...m.value],s.value=u,i("update:value",u),i("change",u,g),i("confirm",u,g),d.value=!1},_=X.useDebounceFn(u=>{const g=u!==void 0?u:c.value;l.remoteSearch&&(i("search",g),i("update:searchValue",g))},300),T=u=>{if(l.multiple){const g=new Set(m.value);g.has(u.value)?g.delete(u.value):g.add(u.value),m.value=Array.from(g)}else m.value=[u.value],y()},L=u=>{if(u.target.checked){const r=new Set(m.value);a.value.forEach(f=>{r.add(f.value)}),m.value=Array.from(r)}else{const r=new Set(a.value.map(f=>f.value));m.value=m.value.filter(f=>!r.has(f))}};return(u,g)=>{const r=e.resolveComponent("a-tag"),f=e.resolveComponent("a-input"),w=e.resolveComponent("a-checkbox"),H=e.resolveComponent("a-radio"),I=e.resolveComponent("a-button"),q=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":h.value}},u.$attrs),[e.createVNode(q,{value:s.value,"onUpdate:value":g[5]||(g[5]=x=>s.value=x),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:d.value,allowClear:"",maxTagCount:t.maxTagCount,options:a.value,onDropdownVisibleChange:N,onSearch:e.unref(_),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:x,label:V,closable:z,option:P})=>[e.createVNode(r,{class:"hb-lib-search-tag",onClick:g[0]||(g[0]=()=>N(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ze,e.toDisplayString(V),1),P?.description?(e.openBlock(),e.createElementBlock("span",Xe," ("+e.toDisplayString(P.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:x})=>[e.createElementVNode("div",ve,[e.createElementVNode("div",et,[e.createVNode(f,{ref_key:"searchInputRef",ref:n,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":g[1]||(g[1]=V=>c.value=V),placeholder:"请输入关键词搜索","allow-clear":"",onInput:g[2]||(g[2]=V=>e.unref(_)(V.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(W.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:m.value.includes(V.value)}]),onClick:()=>T(V)},[t.multiple?(e.openBlock(),e.createBlock(w,{key:0,checked:m.value.includes(V.value),onChange:()=>T(V),onClick:g[3]||(g[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(H,{key:1,checked:m.value.includes(V.value),onChange:()=>T(V),onClick:g[4]||(g[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",lt,[e.createElementVNode("div",nt,e.toDisplayString(V.label),1)])],10,ot))),128))]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",at,e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(w,{checked:C.value,indeterminate:p.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",rt,[e.createVNode(I,{size:"small",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",size:"small",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",st,[g[6]||(g[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",ct,[e.createVNode(I,{size:"small",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$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"]])),mt={class:"hb-lib-form-item-filter-modal-search"},pt={class:"hb-lib-form-item-filter-modal-buttons"},ft={key:0},ht=O(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:o,emit:l}){const i=t,s=l,d=e.ref(!1),c=e.ref(""),m=e.ref(),n=e.ref(),a=e.ref([]),h=e.ref([]),C=e.ref(),p=e.reactive({searchText:"",searchedColumn:""}),N=e.computed(()=>i.tableData.map(r=>(r.id=r.id||Math.random(),r))),B=e.computed(()=>i.tableColumn.map(r=>(r.customFilterDropdown&&(r.onFilter=(f,w)=>w[r.dataIndex].toString().toLowerCase().includes(f.toLowerCase()),r.onFilterDropdownVisibleChange=f=>{f&&setTimeout(()=>{m.value?.focus()},100)}),{...r}))),E=()=>{let r="";h.value.forEach(f=>{r=r+f[i.labelKey]+","}),c.value=r.substring(0,r.length-1),d.value=!1,s("handleConfirm",h.value)},k=()=>{d.value=!1},y=()=>{d.value=!0,e.nextTick(()=>{const r=C.value?.$el?.querySelector(".ant-table-body");r&&(r.scrollTop=0)})},_=()=>{a.value=[],h.value=[]},T=()=>{c.value="",_()},L=(r,f,w)=>{f(),p.searchText=r[0],p.searchedColumn=w},u=(r,f)=>{r({confirm:!0}),p.searchText="",f()},g=(r,f)=>{a.value=r,h.value=f};return o({resetInputVal:T}),(r,f)=>{const w=e.resolveComponent("a-input"),H=e.resolveComponent("a-button"),I=e.resolveComponent("a-table"),q=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:y,value:c.value,"onUpdate:value":f[0]||(f[0]=x=>c.value=x),placeholder:r.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(W.UnorderedListOutlined),{onClick:y})]),_:1},8,["value","placeholder"]),e.createVNode(q,{visible:d.value,"onUpdate:visible":f[1]||(f[1]=x=>d.value=x),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(H,{onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(H,{onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(H,{type:"primary",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{ref_key:"tableRef",ref:C,columns:B.value,dataSource:N.value,rowSelection:{selectedRowKeys:a.value,onChange:g},rowKey:x=>x[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:x,selectedKeys:V,confirm:z,clearFilters:P,column:K})=>[e.createElementVNode("div",mt,[e.createVNode(w,{ref_key:"searchInput",ref:m,placeholder:`请输入${K.title}`,value:V[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:G=>x(G.target.value?[G.target.value]:[]),onPressEnter:G=>L(V,z,K.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",pt,[e.createVNode(H,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:G=>u(P,z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(H,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:G=>L(V,z,K.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:x})=>[e.createVNode(e.unref(W.SearchOutlined),{style:e.normalizeStyle({color:x?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:x,column:V})=>[p.searchText&&p.searchedColumn===V.dataIndex?(e.openBlock(),e.createElementBlock("span",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`,"i")),(z,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[z.toLowerCase()===p.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:P,class:"highlight"},e.toDisplayString(z),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(z),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),bt={class:"hb-lib-table-act-box"},gt=["onClick"],yt={href:"javascript:;",class:"hb-lib-table-main-action"},Ct=["onClick"],ut={href:"javascript:;",class:"hb-lib-table-more-action"},_t=["onClick"],kt={href:"javascript:;"},Lt=["onClick"],St={class:"hb-lib-table-confirm-modal-content"},xt=O(D(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:o}){const l=t,{t:i}=Y.useI18n(),s=e.ref(!1),d=e.ref(!1),c=e.ref(null),m=e.computed(()=>l.actions.filter(k=>k.condition!==void 0?k.condition:!0)),n=e.computed(()=>m.value.slice(0,l.buttonDisplaysQuantity)),a=e.computed(()=>h(m.value.slice(l.buttonDisplaysQuantity)));function h(k){if(l.filterPermission)return l.filterPermission(k);let y=[],_=[];return y=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(y)||k.length===0?(y=[],[]):(y=y.filter(T=>T.type!="2"),k.forEach(T=>{(!T.permissionsTag||y.findIndex(L=>L.action===T.permissionsTag)!==-1)&&_.push(T)}),_)}const C=k=>{k.handler&&k.handler(l.record)},p=k=>{c.value=k,s.value=!0},N=()=>{if(c.value){d.value=!0;try{C(c.value),d.value=!1,s.value=!1}catch{d.value=!1}}},B=()=>{s.value=!1,c.value=null},E=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:i("hbLibComp.hbTableAct.secendConfirm"),content:i("hbLibComp.hbTableAct.confirmContent")});return o({ADropdown:F.Dropdown,AMenu:F.Menu,AMenuItem:F.MenuItem,APopconfirm:F.Popconfirm,AModal:F.Modal,DownOutlined:W.DownOutlined}),(k,y)=>{const _=e.resolveComponent("a-divider"),T=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(L,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[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:g=>p(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,gt)),[[T,L.permissionsTag||null]]),a.value&&a.value.length>0||u!==n.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(F.Popconfirm),{title:L.confirmTitle,onConfirm:g=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",yt,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[T,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),a.value&&a.value.length>0||u!==n.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):L.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(k.$slots,L.slot,{item:L},void 0,!0),a.value&&a.value.length>0||u!==n.value.length-1?(e.openBlock(),e.createBlock(_,{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:g=>C(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,Ct)),[[T,L.permissionsTag||null]]),a.value&&a.value.length>0||u!==n.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(_,{key:0,type:"vertical"},null,512)),[[T,L.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),a.value&&a.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(a.value,(L,u)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:u},{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:g=>p(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,_t)),[[T,L.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:L.confirmTitle,onConfirm:g=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",kt,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[T,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[T,L.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:g=>C(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,Lt)),[[T,L.permissionsTag||null]])]),_:2},1024)),[[T,L.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",ut,[e.createTextVNode(e.toDisplayString(k.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(W.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(F.Modal),{visible:s.value,title:E.value.title,"confirm-loading":d.value,onOk:N,onCancel:B},{default:e.withCtx(()=>[e.createElementVNode("p",St,e.toDisplayString(E.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Ce=t=>({tableWidth:e.computed(()=>{const l=Array.isArray(t)?t:t.value;return!l||l.length===0?0:l.map(i=>i.width&&Number(i.width.toString().replace("px",""))||0).reduce((i,s)=>i+s,0)})});var wt=typeof global=="object"&&global&&global.Object===Object&&global,Bt=typeof self=="object"&&self&&self.Object===Object&&self,ue=wt||Bt||Function("return this")(),ae=ue.Symbol,_e=Object.prototype,Nt=_e.hasOwnProperty,Tt=_e.toString,oe=ae?ae.toStringTag:void 0;function Ft(t){var o=Nt.call(t,oe),l=t[oe];try{t[oe]=void 0;var i=!0}catch{}var s=Tt.call(t);return i&&(o?t[oe]=l:delete t[oe]),s}var Vt=Object.prototype,Et=Vt.toString;function Ht(t){return Et.call(t)}var $t="[object Null]",It="[object Undefined]",ke=ae?ae.toStringTag:void 0;function Mt(t){return t==null?t===void 0?It:$t:ke&&ke in Object(t)?Ft(t):Ht(t)}function Dt(t){return t!=null&&typeof t=="object"}var At="[object Symbol]";function Ot(t){return typeof t=="symbol"||Dt(t)&&Mt(t)==At}var zt=/\s/;function Pt(t){for(var o=t.length;o--&&zt.test(t.charAt(o)););return o}var Rt=/^\s+/;function Ut(t){return t&&t.slice(0,Pt(t)+1).replace(Rt,"")}function me(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}var Le=NaN,jt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,qt=/^0o[0-7]+$/i,Yt=parseInt;function Se(t){if(typeof t=="number")return t;if(Ot(t))return Le;if(me(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=me(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=Ut(t);var l=Wt.test(t);return l||qt.test(t)?Yt(t.slice(2),l?2:8):jt.test(t)?Le:+t}var pe=function(){return ue.Date.now()},Kt="Expected a function",Gt=Math.max,Jt=Math.min;function Qt(t,o,l){var i,s,d,c,m,n,a=0,h=!1,C=!1,p=!0;if(typeof t!="function")throw new TypeError(Kt);o=Se(o)||0,me(l)&&(h=!!l.leading,C="maxWait"in l,d=C?Gt(Se(l.maxWait)||0,o):d,p="trailing"in l?!!l.trailing:p);function N(g){var r=i,f=s;return i=s=void 0,a=g,c=t.apply(f,r),c}function B(g){return a=g,m=setTimeout(y,o),h?N(g):c}function E(g){var r=g-n,f=g-a,w=o-r;return C?Jt(w,d-f):w}function k(g){var r=g-n,f=g-a;return n===void 0||r>=o||r<0||C&&f>=d}function y(){var g=pe();if(k(g))return _(g);m=setTimeout(y,E(g))}function _(g){return m=void 0,p&&i?N(g):(i=s=void 0,c)}function T(){m!==void 0&&clearTimeout(m),a=0,i=n=s=m=void 0}function L(){return m===void 0?c:_(pe())}function u(){var g=pe(),r=k(g);if(i=arguments,s=this,n=g,r){if(m===void 0)return B(n);if(C)return clearTimeout(m),m=setTimeout(y,o),N(n)}return m===void 0&&(m=setTimeout(y,o)),c}return u.cancel=T,u.flush=L,u}const Zt={key:0,class:"hb-lib-list-table-act"},Xt={class:"empty-container"},vt={key:1},eo={key:2},to=O(D(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:o}){const l=e.inject("globalCompConfig",{}),i=o,{t:s}=Y.useI18n(),d=t,c=e.ref([]),m=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:n}=Ce(c),a=e.ref(n.value),h=e.computed(()=>d.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>d.columns,y=>{const _=y.filter(L=>L!=null&&L.checked);c.value=_.map(L=>{let u={...L,title:L.title||L.label,align:L.align||l.listTable?.align||"center"};u.ellipsis&&!u.needTooltip&&(u.needTooltip=!0);let g=d.defaultWidth||l.listTable?.defaultColWidth||150;if(!u.width)u.width=g;else if(typeof u.width=="string"){const r=parseInt(u.width,10);u.width=isNaN(r)?g:r}return u.resizable===void 0&&(u.resizable=!0),u});const{tableWidth:T}=Ce(c);a.value=T.value},{immediate:!0,deep:!0});const C=Qt(()=>{i("resizeCol",c)},l.listTable?.colSaveTimeOut||800),p=(y,_)=>{if(_){const T=typeof y=="string"?parseInt(y,10):y;_.width=isNaN(T)?l.listTable?.defaultColWidth||150:T,e.nextTick(()=>{C()})}},N=(y,_,T)=>{y?.current&&i("change",y,_,T)},B=(y,_="YYYY-MM-DD HH:mm:ss")=>y?ne(y).format(_):"",E=(y,_)=>y&&_[y]||"",k=(y,_=l.listTable?.ellipsisNumber||20)=>y?y.length>_?`${y.substring(0,_)}...`:y:"";return(y,_)=>{const T=e.resolveComponent("a-empty"),L=e.resolveComponent("a-tooltip"),u=e.resolveComponent("HbLibCopy"),g=e.resolveComponent("a-tag"),r=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":d.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[y.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Zt,[e.renderSlot(y.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(y.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(r,e.mergeProps(y.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:p,onChange:N,scroll:h.value?{x:a.value}:{x:a.value,y:e.unref(m).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",Xt,[e.createVNode(T,{description:e.unref(s)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[y.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:f})=>[e.renderSlot(y.$slots,"headerCell",{column:f,title:f.title},()=>[e.createTextVNode(e.toDisplayString(f.title),1)],!0)]),key:"0"}:void 0,y.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:f,record:w,index:H,text:I})=>[e.renderSlot(y.$slots,"bodyCell",{column:f,record:w,index:H,text:I},void 0,!0),f&&f.needTooltip&&!f.needCopy?(e.openBlock(),e.createBlock(L,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[f.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w[f.dataIndex]),1)]),_:2},1032,["placement"])):f&&f.needCopy&&!f.needTooltip?(e.openBlock(),e.createElementBlock("div",vt,[e.createTextVNode(e.toDisplayString(w[f.dataIndex])+" ",1),e.createVNode(u,{"cp-text":w[f.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),f&&f.needTooltip&&f.needCopy?(e.openBlock(),e.createElementBlock("div",eo,[e.createVNode(L,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[f.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(k(w[f.dataIndex],f.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(u,{"cp-text":w[f.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):f&&f.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(B(w[f.dataIndex],f.format)),1)],64)):f&&f.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[E(w[f.dataIndex],f.tags)?(e.openBlock(),e.createBlock(g,{key:0,color:E(w[f.dataIndex],f.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[f.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,y.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:f,index:w})=>[e.renderSlot(y.$slots,"expandedRowRender",{record:f,index:w},void 0,!0)]),key:"2"}:void 0,y.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:f})=>[e.renderSlot(y.$slots,"customFilterDropdown",{column:f},void 0,!0)]),key:"3"}:void 0,y.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:f})=>[e.renderSlot(y.$slots,"customFilterIcon",{column:f},void 0,!0)]),key:"4"}:void 0,y.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:f,record:w,index:H})=>[e.renderSlot(y.$slots,"expandIcon",{expanded:f,record:w,index:H},void 0,!0)]),key:"5"}:void 0,y.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,y.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,y.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),oo={class:"hb-lib-table-setting-box"},lo={key:0,class:"hb-lib-table-drag-item"},no={key:0,class:"hb-lib-table-drag-item-act"},ao=["onClick"],io=["onClick"],ro={class:"hb-lib-table-set-btn-group"},so={class:"select-all-container",style:{"margin-right":"10px"}},co=O(D(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:o}){const l=o,{t:i}=Y.useI18n(),s=t,d=e.ref([]),c=e.computed(()=>n.value.filter(g=>g.checked));e.ref([]);const m=e.ref(!1),n=e.ref([]),a=e.ref(null),h=e.computed(()=>c.value.length>0&&c.value.length===d.value.length),C=e.computed(()=>c.value.length>0&&c.value.length<d.value.length),p=g=>{a.value=g.oldIndex},N=g=>{const r=g.newIndex;if(d.value.some(w=>w.fixed==="left"||w.fixed==="right"||w.fixed===!0)){const w=d.value.filter(I=>I.fixed==="left").length,H=d.value.length-d.value.filter(I=>I.fixed==="right").length;if((w>0&&r<w||H<d.value.length&&r>=H)&&(F.message.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")),a.value!==null)){const I=n.value.splice(r,1)[0];n.value.splice(a.value,0,I)}}a.value=null},B=g=>{g.target.checked?n.value.forEach(f=>f.checked=!0):n.value.forEach(f=>{f.dataIndex!=="action"&&f.dataIndex!=="actions"&&(f.checked=!1)})},E=()=>{d.value=s.localColumns.map(r=>({...r,label:r.title&&r.title.tag?T(r.title):r.title||r.title2,value:r.dataIndex,checked:r.checked||r.checked===void 0})),n.value=[...d.value];let g=[];s.tableColumns.forEach(function(r){g.push(r.dataIndex)})},k=(g,r)=>{r?g.checked=!0:g.checked=!1},y=()=>{d.value=[...n.value],l("on-get-columns",d.value),m.value=!1},_=()=>{d.value=s.tableColumns.map(r=>({...r,label:r.title&&r.title.tag?T(r.title):r.title||r.title2,value:r.dataIndex,checked:r.checked||r.checked===void 0})),n.value=[...d.value];let g=[];s.tableColumns.forEach(function(r){g.push(r.dataIndex)})},T=g=>g.children[0].text,L=g=>{delete g.fixed;const r=n.value.findIndex(f=>f.value===g.value);if(r!==-1){let f=-1;for(let w=0;w<n.value.length;w++)n.value[w].fixed==="left"&&(f=w);if(f!==-1&&r!==f+1){const w=[...n.value],[H]=w.splice(r,1);w.splice(f+1,0,H),n.value=w}}},u=g=>{const r=n.value.findIndex(f=>f.value===g.value);if(r!==-1){let f=-1;for(let q=0;q<n.value.length;q++)n.value[q].fixed==="left"&&(f=q);const w=[...n.value],[H]=w.splice(r,1);H.fixed="left";const I=f===-1?0:f+1;w.splice(I,0,H),n.value=w}};return e.watch(()=>s.tableColumns,()=>{_()},{immediate:!0,deep:!0}),(g,r)=>{const f=e.resolveComponent("a-tooltip"),w=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",oo,[e.createVNode(e.unref(F.Popover),{title:e.unref(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:m.value,"onUpdate:visible":r[1]||(r[1]=H=>m.value=H)},{content:e.withCtx(()=>[e.createVNode(e.unref(le),{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=H=>n.value=H),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:p,onEnd:N},{item:e.withCtx(({element:H})=>[H.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",lo,[e.createVNode(e.unref(F.Checkbox),{checked:H.checked,onChange:I=>k(H,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(H.label),1)]),_:2},1032,["checked","onChange"]),H.checked?(e.openBlock(),e.createElementBlock("section",no,[e.createElementVNode("span",{class:e.normalizeClass(H.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),H.fixed?(e.openBlock(),e.createBlock(f,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>L(H)},[...r[2]||(r[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),H.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>u(H)},[...r[3]||(r[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,io)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ro,[e.createElementVNode("div",so,[e.createVNode(e.unref(F.Checkbox),{checked:h.value,indeterminate:C.value,onChange:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),s.localColumns.length?(e.openBlock(),e.createBlock(w,{key:0,style:{"margin-right":"6px"},onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(w,{onClick:y,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(f,{title:e.unref(i)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...r[4]||(r[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"]])),mo=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormItemFilterModal:De,HbLibListBtnsAct:Ge,HbLibListForm:Oe,HbLibListMultiSelect:dt,HbLibListPageAct:We,HbLibListPageContainer:Qe,HbLibListTable:to,HbLibMutilpleSelectModal:ht,HbLibTableAct:xt,HbLibTableColumnSet:co},Symbol.toStringTag,{value:"Module"})),po=O(D(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:o}){const l=t,i=e.useAttrs(),s=e.computed(()=>{const B=i,E=B.dropdownClassName;return{...B,dropdownClassName:E??"hb_lib_form_tooltip_select__dropdown"}}),d=e.ref(),c=e.useModel(t,"value"),m=e.computed(()=>l.options??[]),n=e.computed(()=>({maxWidth:typeof l.tooltipMaxWidth=="number"?`${l.tooltipMaxWidth}px`:l.tooltipMaxWidth})),a=B=>B.tooltip??B.label,h=B=>B.key??B.label,C=B=>!!(l.enableTooltip&&a(B));return o({focus:()=>{d.value?.focus?.()},blur:()=>{d.value?.blur?.()},selectRef:d}),(B,E)=>(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({ref_key:"selectRef",ref:d,class:"hb_lib_form_tooltip_select"},s.value,{value:c.value,"onUpdate:value":E[0]||(E[0]=k=>c.value=k)}),{default:e.withCtx(()=>[B.$slots.default?e.renderSlot(B.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(m.value,k=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:h(k),value:k.value,disabled:k.disabled},{ref_for:!0},k.optionProps),{default:e.withCtx(()=>[C(k)?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:a(k),placement:l.tooltipPlacement,overlayStyle:n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":l.enableEllipsis}])},e.toDisplayString(k.label),3)]),_:2},1032,["title","placement","overlayStyle"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":l.enableEllipsis}])},e.toDisplayString(k.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-b04f5675"]])),fo=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormTooltipSelect:po},Symbol.toStringTag,{value:"Module"})),ho={class:"ant-upload-drag-icon"},bo={class:"ant-upload-text"},go={style:{color:"#ff5000"}},yo={class:"ant-upload-hint"},Co={key:0,class:"hb_import_btn"},uo=["href"],_o=O(D(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:o}){const{t:l}=Y.useI18n(),i=e.ref(),s=t,d=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),m=p=>{if(p==null)return;const N=c.fileList.indexOf(p);if(N!==-1){const B=c.fileList.slice();B.splice(N,1),c.fileList=B}},n=()=>{c.visible=!1,c.fileList=[],d.value=!1},a=p=>(c.fileList=[p],s.beforeUpload?s.beforeUpload(p):!1),h=()=>{i.value.validateFields().then(()=>{s.beforeSubmit&&(d.value=!0,s.beforeSubmit(c.fileList).then(p=>{}).finally(()=>{d.value=!1}))})},C=()=>{c.visible=!0};return o({handleCancel:n,openModal:C,confirmLoading:d}),(p,N)=>{const B=e.resolveComponent("a-upload-dragger"),E=e.resolveComponent("a-form-item"),k=e.resolveComponent("a-form"),y=e.resolveComponent("a-modal"),_=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,e.mergeProps({title:s.title,visible:c.visible,"onUpdate:visible":N[0]||(N[0]=T=>c.visible=T),"confirm-loading":d.value},p.$attrs,{onCancel:n,onOk:h,width:s.modalWidth}),{default:e.withCtx(()=>[e.createVNode(k,{ref_key:"modalFormRef",ref:i,model:c},{default:e.withCtx(()=>[e.createVNode(E,{name:"fileList",label:e.unref(l)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:s.isRequired,message:e.unref(l)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(B,{maxCount:s.maxCount,multiple:s.multiple,accept:s.acceptFile,name:"file",fileList:c.fileList,onRemove:m,beforeUpload:a},{default:e.withCtx(()=>[e.createElementVNode("p",ho,[e.createVNode(e.unref(W.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",bo,[e.createTextVNode(e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",go,e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",yo,e.toDisplayString(e.unref(l)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(s.acceptFile),1)]),_:1},8,["maxCount","multiple","accept","fileList"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),s.templateUrl?(e.openBlock(),e.createElementBlock("p",Co,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:s.templateUrl},e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.downloadTemplate")),9,uo)])):e.createCommentVNode("",!0)]),_:1},16,["title","visible","confirm-loading","width"]),e.renderSlot(p.$slots,"btn",{},()=>[e.createVNode(_,{onClick:C,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-d61501db"]])),ko=Object.freeze(Object.defineProperty({__proto__:null,HbLibImportFile:_o},Symbol.toStringTag,{value:"Module"})),Lo={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=O(D(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Lo,setup(t){const o=t,l=e.ref();e.watchEffect(()=>{l.value=o.data});const i=e.computed(()=>o.tooltipTitle||"复制"),s=e.computed(()=>o.copySuccessTip||"复制成功"),d=e.computed(()=>o.copyFailTip||"复制失败"),c=e.computed(()=>{if(o.cpText)return o.cpText;let n="";if(o.data)if(Array.isArray(o.data)){if(o.K&&o.V&&o.L){const a=o.data.find(h=>h?.[o.K]===o.V);n=a?a[o.L]:""}}else o.K&&(n=o.data[o.K]);return n}),m=()=>{navigator.clipboard.writeText(c.value).then(()=>{F.message.success(s.value)}).catch(()=>{F.message.error(d.value)})};return(n,a)=>c.value?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:i.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...n.cpStyle}),onClick:e.withModifiers(m,["stop","prevent"])},[...a[0]||(a[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"]])),So={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:""}},xo=O(D(e.defineComponent({name:"HbDrag",__name:"index",props:So,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:o}){const l=t,i=e.shallowRef([]);e.watch(()=>l.dragList,h=>{i.value=h},{deep:!0,immediate:!0});const s=de("drag"),d=o,c=h=>{console.log("drag start",h),d("handleDragStart",h)},m=h=>{console.log("drag end",h),d("handleDragEnd",h)},n=h=>{console.log("drag add",h),d("handleDragAdd",h)},a=h=>{console.log("drag remove",h),d("handleDragRemove",h)};return(h,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s).b())},[h.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:0,modelValue:i.value,"onUpdate:modelValue":C[0]||(C[0]=p=>i.value=p),"item-key":"key",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:c,onEnd:m,onAdd:n,onRemove:a}),{item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:1,modelValue:i.value,"onUpdate:modelValue":C[1]||(C[1]=p=>i.value=p),"item-key":"id",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:c,onEnd:m,onAdd:n,onRemove:a}),{item:e.withCtx(({element:p})=>[e.createElementVNode("div",null,[e.renderSlot(h.$slots,"default",{item:p},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),wo={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Bo=O(D(e.defineComponent({name:"HbLibSort",__name:"sort",props:wo,emits:["change"],setup(t,{expose:o,emit:l}){const i=t,s=l,d=e.ref([]),c=e.ref("");e.watch(()=>i.menuItems,n=>{let a=[];Array.isArray(n)&&n.length&&n.forEach(h=>{a=[...a,{label:`${h.label}升序`,value:`${h.value}`,sort:"Asc"},{label:`${h.label}降序`,value:`${h.value}`,sort:"Desc"}]}),d.value=a},{deep:!0,immediate:!0});const m=n=>{c.value=n.value+n.sort,i.getSort&&i.getSort({orderFeild:n.value,orderBy:n.sort}),s("change",c)};return o({currentActiveItem:c}),(n,a)=>{const h=e.resolveComponent("a-menu-item"),C=e.resolveComponent("a-menu"),p=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(p,{trigger:[i.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,N=>(e.openBlock(),e.createBlock(h,{key:N.value+N.sort,onClick:B=>m(N)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(c.value==N.value+N.sort?"activted":"")},e.toDisplayString(N.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(i.colText)+" ",1),e.createVNode(e.unref(W.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),No={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},HbLibCard:{formItemMb:10}},To={class:"hb_ui_config"},Fo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const o=t;let l=null;return e.watch(()=>o.config,i=>{l=e.reactive(Z.merge({},No,i))},{deep:!0,immediate:!0}),e.provide(fe,l),(i,s)=>(e.openBlock(),e.createElementBlock("div",To,[e.renderSlot(i.$slots,"default")]))}}),fe=Symbol("GLOBAL_CONFIG_KEY"),Vo=O(Fo),Eo={class:"hb_lib_loading"},Ho={class:"hb_lib_loading_loading_anima"},$o={class:"hb_lib_loading_load_tips"},Io=O(D(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:o}=Y.useI18n(),l=t,i=e.computed(()=>l.loadTips||o("hbLibComp.HbLibLoading.loadingTips"));return(s,d)=>(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("div",Ho,[d[0]||(d[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",$o,e.toDisplayString(i.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),Mo=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:xe,HbLibFuncCompDrag:xo,HbLibLoading:Io,HbLibSort:Bo,HbUiConfig:Vo},Symbol.toStringTag,{value:"Module"})),Do={class:"hb_lib_log_modal_content"},Ao={class:"log_remark"},Oo=O(D(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:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:o,emit:l}){const{t:i}=Y.useI18n(),s=t,d=[{title:i("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:i("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:i("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],c=e.computed(()=>s.columns||d),m=e.computed(()=>s.title||i("hbLibComp.HbLogModal.operateLogs")),n=e.ref(!1),a=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(k,y)=>y[0]+"-"+y[1]+" 总共"+k+"页",total:0}});e.watch(()=>s.pagination,k=>{k&&(a.pagination={...a.pagination,...k})},{deep:!0,immediate:!0});const h=()=>{const k={pageIndex:a.pagination.current,pageSize:a.pagination.pageSize,query:s.params};s.getLogData&&(n.value=!0,s.getLogData(k).then(y=>{Number(y.code)==200?(a.pagination.total=Number(y.data.total),a.list=y.data[s.dataStr]||[]):F.message.error(y.message)}).finally(()=>{n.value=!1}))},C=k=>{a.pagination.current=k.current,a.pagination.pageSize=k.pageSize,h()},p=()=>{a.list=[],E("update:visible",!1)},N=()=>{E("update:visible",!0)},B=(k,y="YYYY-MM-DD HH:mm:ss")=>k?ne(k).format(y):"",E=l;return e.watch(()=>s.visible,k=>{k&&h()}),o({close:p,loading:n}),(k,y)=>{const _=e.resolveComponent("a-tooltip"),T=e.resolveComponent("HbLibCopy"),L=e.resolveComponent("a-table"),u=e.resolveComponent("a-button"),g=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{visible:t.visible,title:m.value,width:t.width,height:t.height,onCancel:p},{footer:e.withCtx(()=>[e.createVNode(u,{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Do,[e.createVNode(L,{bordered:"",rowKey:"id",columns:c.value,dataSource:a.list,pagination:a.pagination,loading:n.value,scroll:{y:t.scrollY},onChange:C},e.createSlots({bodyCell:e.withCtx(({column:r,record:f})=>[r&&r.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.needTooltip?(e.openBlock(),e.createBlock(_,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f[r.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(f[r.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r&&r.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Ao,e.toDisplayString(f[r.dataIndex]),1),e.createVNode(T,{"cp-text":f[r.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),r&&r.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(B(f[r.dataIndex],r.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[k.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:r})=>[e.renderSlot(k.$slots,"headerCell",{column:r},()=>[e.createTextVNode(e.toDisplayString(r.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:3},8,["visible","title","width","height"]),t.needBtn?e.renderSlot(k.$slots,"default",{key:0},()=>[e.createVNode(u,{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-9f8979b3"]])),zo=Object.freeze(Object.defineProperty({__proto__:null,HbLibLogModal:Oo},Symbol.toStringTag,{value:"Module"})),ee=t=>(t.install=o=>{o.component(t.name||"AnonymousComponent",t)},t),Po={class:"hb_card_wrapper"},Ro={class:"hb_card"},Uo={key:0,class:"hb_card_header"},jo={class:"hb_fix"},Wo={class:"hb_card_header-title"},qo={class:"hb_card_header-action"},Yo={class:"hb_card_body"},Ko=ee(D(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 o=e.inject(fe),l=t,i=e.computed(()=>{let s=l.formItemMb||o?.HbLibCard?.formItemMb;return s?{"--hb-card-form-item-mb":s+"px"}:{}});return(s,d)=>(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",Ro,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",jo,[e.createElementVNode("span",Wo,[e.renderSlot(s.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",qo,[e.renderSlot(s.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Yo,[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(i.value)},[e.renderSlot(s.$slots,"default",{},void 0,!0)],6)])])],2)]))}}),[["__scopeId","data-v-927846d4"]])),Go=["onClick"],Jo={class:"step"},Qo={key:0,class:"line"},Zo=["title"],Xo=ee(D(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const o=t,l=e.ref(""),i=o.offsetTop??160,s=e.computed(()=>o.anchors.filter(n=>typeof n.visible=="function"?n.visible():n.visible!==!1)),d=()=>{const n=o.containerSelector||"#subpackage_container";return document.querySelector(n)||window},c=n=>{const a=d(),h=n.target.startsWith("#")||n.target.startsWith(".")?n.target:`#${n.target}`,C=document.querySelector(h);if(!C)return;let p=C.offsetTop;a instanceof HTMLElement&&(p-=a.offsetTop),p-=i,a instanceof Window?window.scrollTo({top:p,behavior:"smooth"}):a.scrollTo({top:p,behavior:"smooth"}),l.value=n.target},m=()=>{const n=d();let a=0;n instanceof Window?a=window.scrollY+i+5:a=n.scrollTop+i+5;let h=s.value[0]?.target||"";for(const C of s.value){const p=C.target.startsWith("#")||C.target.startsWith(".")?C.target:`#${C.target}`,N=document.querySelector(p);if(!N)continue;let B=N.offsetTop;n instanceof HTMLElement&&(B-=n.offsetTop),a>=B&&(h=C.target)}l.value=h};return e.onMounted(()=>{d().addEventListener("scroll",m),m()}),e.onBeforeUnmount(()=>{d().removeEventListener("scroll",m)}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(h,C)=>(e.openBlock(),e.createElementBlock("div",{key:h.target,class:e.normalizeClass(["anchor-item",{isActive:l.value===h.target}]),onClick:p=>c(h)},[e.createElementVNode("div",Jo,[C!==s.value.length-1?(e.openBlock(),e.createElementBlock("div",Qo)):e.createCommentVNode("",!0),a[0]||(a[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:h.title},e.toDisplayString(h.title.length>12?h.title.slice(0,12)+"...":h.title),9,Zo)],10,Go))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),vo={class:"hb_detail_top_act_left"},el={key:1,class:"hb_detail_top_wrapper_sticky"},tl={class:"hb_detail_top_act"},ol={key:0,class:"hb_detail_all_info"},ll={class:"hb_detail_all_info_left"},nl={class:"hb_detail_info_title"},al={key:0,class:"hb_detail_info_content"},il={class:"create_by"},rl={class:"hb_detail_all_info_right"},sl={class:"hb_edit_detail_content_wrapper"},cl={class:"hb_detail_content"},dl={class:"hb-back-top-inner"},ml=ee(D(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,default:80},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:o}=Y.useI18n(),l=t,i=e.inject(fe),s=()=>{l.backFn?l.backFn():window.history.back()},d=e.computed(()=>{const B={};return l.needFixWidth?{hb_need_set_desc_label_width:l.descLabelWidth||i?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:l.descValueWidth||i?.HbLibDetailBox?.descValueWidth}:B}),c=()=>document.querySelector(l.container),m=e.ref(!1),n=e.ref(null),{top:a}=X.useElementBounding(n),h=e.computed(c),{y:C}=X.useScroll(h);e.watch(C,B=>{m.value=B>a.value},{immediate:!0});const p=B=>{document.querySelectorAll(".hb_card_body").forEach(k=>{k.querySelectorAll(".ant-descriptions-item-content span").forEach(_=>{_.textContent?.trim()||(_.textContent=B)})})};let N=null;return e.onMounted(()=>{i?.HbLibDetailBox?.needSetDesDefault&&(N=setTimeout(()=>{p(i?.HbLibDetailBox?.desDefault)},i?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{N&&clearTimeout(N)}),(B,E)=>{const k=e.resolveComponent("RollbackOutlined"),y=e.resolveComponent("a-divider"),_=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(_,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",d.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":d.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":d.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",m.value?"can_show":""])},[e.createElementVNode("div",vo,[e.createVNode(k,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:s},e.toDisplayString(e.unref(o)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),E[0]||(E[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",tl,[e.createVNode(k),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:s},e.toDisplayString(e.unref(o)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("aside",ll,[e.renderSlot(B.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",nl,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",al,[e.createElementVNode("span",il,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",rl,[e.renderSlot(B.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",sl,[e.createElementVNode("div",cl,[e.renderSlot(B.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(F.BackTop),{target:c,style:e.normalizeStyle({bottom:t.backTopBottom+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",dl,[e.createVNode(e.unref(W.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-dc66a005"]])),pl=ee(D(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 o=t,l=e.computed(()=>o.buttons.filter(m=>m.condition!==void 0?m.condition:!0)),i=e.ref(0),s=m=>{let n=0;return(Array.isArray(m)?m:[m]).forEach(h=>{let C=[];if(h.startsWith("#")){const p=document.getElementById(h.slice(1));p&&C.push(p)}else C=Array.from(document.getElementsByClassName(h));C.forEach(p=>{n+=p.offsetWidth||0})}),n},d=()=>{o.leftElements&&(i.value=s(o.leftElements)+1)};let c=null;return e.onMounted(()=>{const m=o.getContainer();m!==window&&m instanceof HTMLElement&&m.addEventListener("scroll",()=>{}),d(),c=new MutationObserver(()=>{d()});const n=document.body;c.observe(n,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{c&&c.disconnect()}),(m,n)=>{const a=e.resolveComponent("a-button"),h=e.resolveComponent("a-space"),C=e.resolveComponent("a-affix"),p=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[e.createVNode(C,{"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(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,N=>e.withDirectives((e.openBlock(),e.createBlock(a,{key:N.key,type:N.type||"default",danger:N.danger,loading:N.loading,disabled:N.disabled,onClick:N.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[p,N.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-37376438"]])),fl={class:"modal__detail-content"},hl=ee(D(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["ok","cancel"],setup(t,{expose:o,emit:l}){const i=l,s=t,d=e.ref(!1),c=e.ref(null),m=e.computed(()=>({top:"50px",...s.modalStyle})),n=e.computed(()=>({overflow:"hidden",...s.modalStyle})),a=e.computed(()=>({maxHeight:"calc(100vh - 200px)",overflowY:"auto",padding:"0 6px",...s.bodyStyle})),{x:h,y:C,isDragging:p}=X.useDraggable(c),N=e.ref(0),B=e.ref(0),E=e.ref(!1),k=e.ref(0),y=e.ref(0),_=e.ref(0),T=e.ref(0),L=e.ref({left:0,right:0,top:0,bottom:0});let u=null;e.watch(d,w=>{w||(u&&clearTimeout(u),u=setTimeout(()=>{k.value=0,y.value=0,_.value=0,T.value=0},300))}),e.watch([h,C],()=>{if(!E.value){N.value=h.value,B.value=C.value;const w=document.body.getBoundingClientRect(),H=c.value.getBoundingClientRect();L.value.right=w.width-H.width,L.value.bottom=w.height-H.height,_.value=k.value,T.value=y.value}E.value=!0}),e.watch(p,()=>{p||(E.value=!1)}),e.watchEffect(()=>{E.value&&(k.value=_.value+Math.min(Math.max(L.value.left,h.value),L.value.right)-N.value,y.value=T.value+Math.min(Math.max(L.value.top,C.value),L.value.bottom)-B.value)});const g=e.computed(()=>({transform:`translate(${k.value}px, ${y.value}px)`})),r=()=>{d.value=!1,i("cancel")},f=()=>{i("ok")};return e.onUnmounted(()=>{u&&clearTimeout(u)}),o({handleOk:f,handleCancel:r,visible:d}),(w,H)=>{const I=e.resolveComponent("a-spin"),q=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(q,e.mergeProps({style:m.value,bodyStyle:a.value,ref:"modalRef",visible:d.value,"onUpdate:visible":H[0]||(H[0]=x=>d.value=x),"wrap-style":n.value,onOk:f,onCancel:r},w.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,style:{width:"100%",cursor:"move"}},[e.renderSlot(w.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:x})=>[e.createElementVNode("div",{style:e.normalizeStyle(g.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x)))],4)]),default:e.withCtx(()=>[e.createVNode(I,{spinning:s.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",fl,[e.renderSlot(w.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[w.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(w.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-599f3ede"]])),bl={key:0,class:"hb_edit_header"},gl={class:"__detail-content"},yl={key:1,class:"hb_edit_footer"},Cl={class:"hb-back-top-inner"},ul=ee(D(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number,default:80},spinning:{type:Boolean,default:!1}},setup(t){const o=e.ref("vertical"),l=t,i=()=>document.querySelector(l.container);return(s,d)=>(e.openBlock(),e.createBlock(e.unref(F.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_wrapper",t.formLabelWidth?"isNeedSetLabelWidth":""]),style:e.normalizeStyle({"--hb-edit-form-label":t.formLabelWidth})},[s.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",bl,[e.renderSlot(s.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",o.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",gl,[e.renderSlot(s.$slots,"editContent",{},void 0,!0)])],2),s.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",yl,[e.renderSlot(s.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(F.BackTop),{target:i,style:e.normalizeStyle({bottom:t.backTopBottom+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Cl,[e.createVNode(e.unref(W.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-8fa9c63b"]])),_l={class:"hb_edit_header_left"},kl={class:"hb_edit_header_title"},Ll={class:"hb_edit_header_right"},Sl=ee(D(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:o}=Y.useI18n(),l=t,i=ce.useRoute(),s=e.ref(0),d=e.computed(()=>i?.meta?.title||"");function c(p,N="offsetHeight"){let B=0;return(Array.isArray(p)?p:[p]).forEach(k=>{let y=[];if(k.startsWith("#")){const _=document.getElementById(k.slice(1));_&&y.push(_)}else y=Array.from(document.getElementsByClassName(k));y.forEach(_=>{B+=_[N]||0})}),B}const m=()=>{l.topElements&&(s.value=c(l.topElements))},n=e.ref(0),a=()=>{l.leftElements&&(n.value=c(l.leftElements,"offsetWidth")+1)};let h=null;e.onMounted(()=>{m(),a(),window.addEventListener("resize",m),h=new MutationObserver(()=>{a()});const p=document.body;h.observe(p,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",m),h&&h.disconnect()}),e.watch(()=>l.topElements,()=>{m()},{immediate:!0});const C=()=>{l.backFn?l.backFn():window.history.back()};return(p,N)=>{const B=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:s.value+"px","--pageHeaderOrFonterLeft":n.value+"px"})},[e.createElementVNode("aside",_l,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:C},e.toDisplayString(e.unref(o)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(B,{type:"vertical"}),e.createElementVNode("span",kl,e.toDisplayString(d.value),1)]),e.createElementVNode("aside",Ll,[e.renderSlot(p.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]]));let we={...mo,...fo,...ko,...zo,...Mo,...Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Xo,HbLibCard:Ko,HbLibDetailBox:ml,HbLibFooterBar:pl,HbLibModal:hl,HbLibPageHeader:Sl,HbLibUnDetailBox:ul},Symbol.toStringTag,{value:"Module"}))};const Q=new Map;let Be;X.isClient&&(document.addEventListener("mousedown",t=>Be=t),document.addEventListener("mouseup",t=>{for(const o of Q.values())for(const{documentHandler:l}of o)l(t,Be)}));function Ne(t,o){let l=[];return Array.isArray(o.arg)?l=o.arg:o.arg instanceof HTMLElement&&l.push(o.arg),function(i,s){const d=o.instance.popperRef,c=i.target,m=s?.target,n=!o||!o.instance,a=!c||!m,h=t.contains(c)||t.contains(m),C=t===c,p=l.length&&l.some(B=>B?.contains(c))||l.length&&l.includes(m),N=d&&(d.contains(c)||d.contains(m));n||a||h||C||p||N||o.value(i,s)}}const xl={beforeMount(t,o){Q.has(t)||Q.set(t,[]),Q.get(t).push({documentHandler:Ne(t,o),bindingFn:o.value})},updated(t,o){Q.has(t)||Q.set(t,[]);const l=Q.get(t),i=l.findIndex(d=>d.bindingFn===o.oldValue),s={documentHandler:Ne(t,o),bindingFn:o.value};i>=0?l.splice(i,1,s):l.push(s)},unmounted(t){Q.delete(t)}},wl={mounted(t,o){const{value:l,arg:i}=o;if(console.log(o),typeof l!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const s=parseInt(i,10)||300;let d;t.__debounceHandler__=function(...c){d&&clearTimeout(d),d=setTimeout(()=>{l(...c)},s)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},Te=(t,o)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const l=e.createApp(xe,{cpText:o});l.mount(t._dynamicContainer),t._dynamicApp=l,t._dynamicPrevValue=o},Bl={cos:xl,dc:wl,icp:{mounted(t,o){if(!t._dynamicContainer){const l=document.createElement("div");l.style.display="inline-flex",l.style.alignItems="center",l.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(l,t.nextSibling),t._dynamicContainer=l}Te(t,o.value)},updated(t,o){o.value!==t._dynamicPrevValue&&Te(t,o.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}},Nl={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"}}},Tl={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:"戻る"}}},Fl={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:"加载中...如长时间加载请重试!"}}},Vl={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 ie={exports:{}},El=ie.exports,Fe;function Hl(){return Fe||(Fe=1,(function(t,o){(function(l,i){t.exports=i(ne)})(El,(function(l){function i(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var s=i(l),d={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,m){return m==="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,m){var n=100*c+m;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return s.default.locale(d,null,!0),d}))})(ie)),ie.exports}Hl(),ne.locale("zh-cn");const $l={en_US:Nl,ja_JP:Tl,zh_CN:Fl,de_DE:Vl},Il=function(t,o={}){t.provide("globalCompConfig",o||{}),Object.keys(we).forEach(i=>{t.use(we[i])}),Object.entries(Bl).forEach(([i,s])=>{t.directive(i,s)})};R.install=Il,R.locales=$l,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R.HbComponentLib={},R.Vue,R.draggable,R.antDesignVue,R.vueRouter,R.vueI18n,R.lodash,R.iconsVue,R.core,R.dayjs))})(this,(function(R,e,le,F,ce,Y,Z,W,X,ne){"use strict";const de=(t="")=>{const o=`hb-${t}`;return Ee(o)},v=(t,o,l,i)=>(o&&(t+=`-${o}`),l&&(t+=`__${l}`),i&&(t+=`--${i}`),t),Ee=t=>({b:o=>o?v(t,o,"",""):v(t,"","",""),e:o=>o?v(t,"",o,""):"",m:o=>v(t,"","",o),be:(o,l)=>v(t,o,l,""),em:(o,l)=>v(t,"",o,l),bem:(o,l,i)=>v(t,o,l,i),is:(o,l)=>l?`is-${o}`:""}),He=["onMouseenter","onMouseleave"],$e=["onClick"],Ie=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:o,emit:l}){const i=e.inject("globalCompConfig",{}),c=Y.useI18n().t,d=Y.useI18n().messages.value.en_US,r=Y.useI18n().messages.value.ja_JP,m=Y.useI18n().messages.value.zh_CN,n=t,a=e.computed(()=>n.showNumber||i.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.computed(()=>n.title||c("hbLibComp.hbFormItemFilterModal.title")),C=l,p=de("sfcm"),T=ce.useRoute(),N=e.reactive({lan:window.localStorage.getItem("lan")}),V=e.ref(!1),k=e.ref(600);let g=[];const _=e.ref([]),S=e.ref([]),L=e.computed(()=>_.value.every(b=>b.isLinked||b.isFixed)),u=b=>({...b,label:B(b)||`${H(b)||""} (${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:b.key,isFixed:b?.isFixed||!1,isLinked:b?.isLinked||!1,labelLanguage:b?.labelLanguage||void 0}),y=b=>{const $=b.draggedContext.element,x=b.relatedContext.index;if($.isLinked||$.isFixed)return!1;const M=_.value.map((U,J)=>({item:U,index:J})).filter(({item:U})=>U.isLinked).map(({index:U})=>U);if(M.length===0)return!0;for(let U=0;U<M.length-1;U++){const J=M[U],te=M[U+1];if(x>J&&x<te)return!1}return!0},s=e.computed(()=>f()+"_"+n.saveKey),f=()=>{const b=localStorage.getItem("pro__Login_Userinfo");let $="anonymous";if(b)try{$=JSON.parse(b).value.jobNumber||"anonymous"}catch(M){console.warn("解析用户信息失败:",M)}let x=T?.path;return`searchFormConfig_${$}_${x}`},B=b=>({ja_JP:()=>Z.get(r,b.labelLanguage||""),en_US:()=>Z.get(d,b.labelLanguage||""),zh_CN:()=>Z.get(m,b.labelLanguage||"")})[N.lan]?.()||b.label,H=b=>({ja_JP:()=>Z.get(r,b.subLabelLanguage||""),en_US:()=>Z.get(d,b.subLabelLanguage||""),zh_CN:()=>Z.get(m,b.subLabelLanguage||"")})[N.lan]?.()||b.subLabel,I=b=>{try{const $=localStorage.getItem(s.value);if($){const x=JSON.parse($);if(x.originalList&&Array.isArray(x.originalList)){g=JSON.parse(JSON.stringify(x.originalList));const M=g.filter(A=>A?.isFixed),U=g.filter(A=>A?.isLinked),J=x.showList.filter(A=>!A.isFixed&&!A.isLinked),te=a.value&&a.value>0?Math.max(0,a.value-M.length-U.length):J.length,se=M.map(A=>({...u(A)})),be=U.map(A=>({...u(A)})),ge=J.slice(0,te).map(A=>({...u(A)}));_.value=[...se,...be,...ge];const ye=_.value.map(A=>A.key),j=g.map(A=>A.key).filter(A=>!ye.includes(A));return S.value=g.filter(A=>j.includes(A.key)).map(A=>({...u(A),active:!1})),!0}}}catch($){console.warn("加载保存的搜索配置失败:",$)}return!1},q=()=>{try{const b={originalList:g,showList:_.value.map($=>({...$,key:$.key,label:$.label,isFixed:$.isFixed,isLinked:$.isLinked,labelLanguage:$?.labelLanguage||void 0}))};localStorage.setItem(s.value,JSON.stringify(b))}catch(b){console.warn("保存搜索配置失败:",b)}},w=e.computed(()=>{const b=_.value.filter(x=>!x.isFixed&&!x.isLinked).length,$=_.value.filter(x=>x.isFixed||x.isLinked).length;return b>=a.value-$});e.watch(()=>n.list,b=>{let $=JSON.stringify(_.value)!==JSON.stringify(b);if(!$)return;const x=localStorage.getItem(s.value),M=JSON.parse(x||"{}");if(M&&M?.originalList&&Array.isArray(M.originalList))I(),C("confirm",_.value);else if($){g=JSON.parse(JSON.stringify(b));const U=b.filter(j=>j?.isFixed),J=b.filter(j=>j?.isLinked),te=b.filter(j=>!j?.isFixed&&!j?.isLinked),se=a.value&&a.value>0?Math.max(0,a.value-U.length-J.length):te.length,be=U.map(j=>u(j)),ge=J.map(j=>u(j)),ye=te.slice(0,se).map(j=>u(j));_.value=[...be,...ge,...ye];const Ve=te.slice(se).map(j=>({...u(j),active:!1}));S.value=Ve,C("confirm",_.value)}},{immediate:!0});const E=b=>{const $=_.value.findIndex(x=>x.key===b.key);$!==-1&&(_.value.splice($,1),S.value.push({...b,active:!1}))},z=b=>{if(w.value){F.message.warning(`当前已经超过${c(a.value)}个可选数量,请先删除已显示条件`);return}const $=S.value.findIndex(x=>x.key===b.key);if($!==-1){const[x]=S.value.splice($,1);_.value.push({...x,active:!1})}},P=()=>{V.value=!1},K=()=>{V.value=!0},G=()=>{q(),C("confirm",_.value),P()},re=b=>{const $=S.value.findIndex(x=>x.key===b.key);$!==-1&&(S.value[$].active=!0)},he=b=>{const $=S.value.findIndex(x=>x.key===b.key);$!==-1&&(S.value[$].active=!1)};return o({toOpenModal:K}),e.onMounted(()=>{}),(b,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).b())},[e.createVNode(e.unref(F.Modal),{visible:V.value,"onUpdate:visible":$[1]||($[1]=x=>V.value=x),width:k.value,onCancel:P,onOk:G},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("title"))},e.toDisplayString(h.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(F.Button),{onClick:P},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(F.Button),{type:"primary",onClick:G},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(p).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(a.value)+e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__tag"))},[e.createVNode(e.unref(le),{modelValue:_.value,"onUpdate:modelValue":$[0]||($[0]=x=>_.value=x),"item-key":"key",tag:"div",disabled:L.value,move:y},{item:e.withCtx(({element:x})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(p).e("show__tag__item"),e.unref(p).is("fixed",x.isFixed),e.unref(p).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(W.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(p).e("show__tag__item-close")),onClick:M=>E(x)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(p).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("unshow__tag"))},[S.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(S.value,x=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p).e("unshow__tag__item"),e.unref(p).is("fixed",x.isFixed||""),e.unref(p).is("linked",x.isLinked||"")]),key:x.key,onMouseenter:M=>re(x),onMouseleave:M=>he(x)},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),x.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(p).e("unshow__tag__item-add")),onClick:M=>z(x)},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.add")),11,$e)):e.createCommentVNode("",!0)],42,He))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).e("unshow__tag__empty"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),D=(t,o)=>{const l=t.__vccOpts||t;for(const[i,c]of o)l[i]=c;return l},Me=D(Ie,[["__scopeId","data-v-93f23c9d"]]),O=t=>(t.install=o=>{o.component(t.name||"AnonymousComponent",t)},t),De=O(Me),Ae={key:0,class:"form-footer"},Oe=O(D(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:o,emit:l}){const i=e.inject("globalCompConfig",{}),c=l,d=e.inject("HB_LIST_PAGE_CONTAINER"),r=e.computed(()=>n.searchList||[]),m=de("form"),n=t,a=e.computed(()=>n.showNumber||i.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.ref("show"),C=e.computed(()=>n.needFooter||i.HbLibListForm?.needFooter),p=e.computed(()=>[...n.items]),T=w=>w!==void 0,N=w=>typeof w=="function",V=w=>T(w.condition)?N(w.condition)?w.condition():w.condition:!0,k=e.computed(()=>[...n.items].map(w=>({...w,condition:V(w),label:w.label?.includes("多项搜索")?"":w.label})));console.log(k.value);const g=e.computed(()=>n.saveKey),_=e.ref(),S=()=>{c("handleSearch")},L=()=>{c("handleReset")},u=e.ref(),y=()=>{u.value&&u.value.toOpenModal()},s=w=>{c("handleMenuClick",w)},f=w=>{c("handleSfcmConfirm",w)};e.watch(()=>n.isFormExpanded,w=>{if(w){console.log(w);const E=document.querySelector("#subpackage_container");E instanceof HTMLElement&&(E.style.overflow="hidden",setTimeout(()=>{E.style.overflow="auto"},500))}});const B=w=>{const E=w;E.style.height="",E.offsetHeight},H=w=>{const E=w;E.style.height="",E.style.overflow="",e.nextTick(()=>{d.calTableHeight&&d.calTableHeight()})},I=w=>{const E=w,z=E.querySelector(".hb-lib-form--container");if(z){const P=z.offsetHeight;E.style.height=P+"px",E.style.overflow="hidden",E.offsetHeight,requestAnimationFrame(()=>{E.style.height="0"})}},q=()=>{e.nextTick(()=>{d.calTableHeight&&d.calTableHeight()})};return o({formRef:_,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}),(w,E)=>{const z=e.resolveComponent("a-button"),P=e.resolveComponent("a-tooltip"),K=e.resolveComponent("a-menu-item"),G=e.resolveComponent("a-menu"),re=e.resolveComponent("a-dropdown"),he=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:B,onAfterEnter:H,onLeave:I,onAfterLeave:q},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(m).b(),"hb-lib-list-page-form-box","hb-form-item-ui",C.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(w.$attrs,{model:t.formData,ref_key:"formRef",ref:_,class:["hb-lib-form--container",h.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,$)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:$},[b.condition?(e.openBlock(),e.createBlock(e.unref(F.FormItem),e.mergeProps({key:0,ref_for:!0},b,{name:b.key,class:{"hb-lib-form-item-border--unneed":b.isUnNeedBorder,"hb_lib_form_item--needShowAll":b.showAll}}),e.createSlots({default:e.withCtx(()=>[b.type==="slot"?e.renderSlot(w.$slots,b.key,{key:0,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="mixin"?e.renderSlot(w.$slots,b.key,{key:1,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="input"?(e.openBlock(),e.createBlock(e.unref(F.Input),e.mergeProps({key:2,value:t.formData[b.key],"onUpdate:value":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="select"?(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({key:3,value:t.formData[b.key],"onUpdate:value":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(x,M)=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),{key:M,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),b.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(F.CheckboxGroup),e.mergeProps({key:4,value:t.formData[b.key],"onUpdate:value":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(x,M)=>(e.openBlock(),e.createBlock(e.unref(F.Checkbox),{key:M,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),b.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(F.DatePicker),e.mergeProps({key:5,value:t.formData[b.key],"onUpdate:value":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(F.InputNumber),e.mergeProps({key:6,value:t.formData[b.key],"onUpdate:value":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="radio"?(e.openBlock(),e.createBlock(e.unref(F.RadioGroup),e.mergeProps({key:7,value:t.formData[b.key],"onUpdate:value":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(x,M)=>(e.openBlock(),e.createBlock(e.unref(F.Radio),{key:M,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),b.type==="switch"?(e.openBlock(),e.createBlock(e.unref(F.Switch),e.mergeProps({key:8,checked:t.formData[b.key],"onUpdate:checked":x=>t.formData[b.key]=x},{ref_for:!0},b.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[b.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.label)+" ",1),e.createVNode(e.unref(F.Tooltip),{title:b.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(W.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",Ae,[e.createVNode(z,{type:"primary",onClick:S,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(W.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(z,{type:"link",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(P,{key:0,title:w.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:y},[...E[0]||(E[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(w.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(re,{key:0},{overlay:e.withCtx(()=>[e.createVNode(G,{onClick:s},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,b=>(e.openBlock(),e.createBlock(K,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(K,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(K,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(P,{title:w.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...E[1]||(E[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(m).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(m).e("footer__left"))},[e.renderSlot(w.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m).e("footer__right"))},[h.value=="show"?e.renderSlot(w.$slots,"form-footer-right",{key:0,formRef:_.value},()=>[e.createVNode(z,{type:"primary",onClick:S,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(W.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(z,{type:"link",onClick:L,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(P,{key:0,title:w.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:y},[...E[2]||(E[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(w.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(re,{key:0},{overlay:e.withCtx(()=>[e.createVNode(G,{onClick:s},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,b=>(e.openBlock(),e.createBlock(K,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(K,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(K,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(P,{title:w.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...E[3]||(E[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(he,{showNumber:a.value,list:p.value,ref_key:"HbSfCmRef",ref:u,onConfirm:f,saveKey:g.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-8307bb07"]])),ze={class:"hb-lib-list-page-act-box"},Pe={class:"hb-lib-list-page-breadcrumb"},Re={class:"hb-lib-list-page-act"},Ue={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"},je={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"},We=O(D(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const o=e.inject("globalCompConfig",{}),l=t,{isFullscreen:i,toggle:c}=X.useFullscreen(document.body);e.watch(()=>i.value,n=>{let a=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(l.hideDomList)&&l.hideDomList.length?a=[...l.hideDomList]:o.HbLibListPageAct?.hideDomList&&(a=[...o.HbLibListPageAct.hideDomList]);const h=new Map;setTimeout(n?()=>{if(a?.length)for(let C=0;C<a.length;C++){const p=document.querySelector(a[C]);p&&(h.set(a[C],p.style.display),p.style.display="none")}}:()=>{if(a?.length)for(let C=0;C<a.length;C++){const p=document.querySelector(a[C]);if(p){const T=h.get(a[C]);p.style.display=T||"",h.delete(a[C])}}},0)});const d=e.ref(""),r=()=>{const n=ce.useRoute();let a=localStorage.getItem(o.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",h=n?.path;if(a!=="[]"){let C=JSON.parse(a).find(p=>p.value===h);C&&(d.value=C.label.replace(/-/g," / "))}};e.onMounted(()=>{r()});const m=n=>{n.keyCode===192&&c()};return e.onMounted(()=>{window.addEventListener("keydown",m)}),e.onUnmounted(()=>{window.removeEventListener("keydown",m)}),(n,a)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ze,[e.createElementVNode("aside",Pe,e.toDisplayString(d.value),1),e.createElementVNode("aside",Re,[e.createVNode(h,{title:e.unref(i)?`${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:a[0]||(a[0]=(...C)=>e.unref(c)&&e.unref(c)(...C))},[e.unref(i)?(e.openBlock(),e.createElementBlock("svg",je,[...a[2]||(a[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",Ue,[...a[1]||(a[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"]])),qe={class:"hb-lib-list-btns-box"},Ye={class:"hb-lib-list-btns-left"},Ke={class:"hb-lib-list-btns-right"},Ge=O(D(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:o}){const l=o,i=e.ref(!0),c=()=>{i.value=!i.value,l("handleOpenOrClose",i.value)},d=()=>{l("handleReload")},r=m=>{};return e.onMounted(()=>{window.addEventListener("keydown",r)}),e.onUnmounted(()=>{window.removeEventListener("keydown",r)}),(m,n)=>{const a=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",qe,[e.createElementVNode("aside",Ye,[e.renderSlot(m.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Ke,[t.needReload?(e.openBlock(),e.createBlock(a,{key:0,title:m.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:d},[...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(a,{key:1,title:i.value?`${m.$t("hbLibComp.hbListBtnsAct.close")}`:`${m.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:c},[i.value?(e.openBlock(),e.createBlock(e.unref(W.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(W.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-de62f20a"]])),Je=(t={})=>{const{formRef:o,offsetBottom:l=50,minHeight:i=300,timeOut:c=100}=t,d=e.ref(0);let r=null,m=null,n=null,a=null,h=null;const C=()=>{h&&clearTimeout(h),h=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const _=document.querySelector(".ant-table"),S=document.querySelector(".ant-pagination");if(_){const L=Math.floor(_.getBoundingClientRect().top),u=window.innerHeight,s=(S?S.offsetHeight+20:40)+l;let f=u-L-s;f<i&&(f=i),d.value=f}})})},100)},p=()=>{const _=document.querySelector(".ant-pagination");if(_){const S=new MutationObserver(()=>{C()});return S.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),S}return null},T=()=>{const _=document.querySelector(".hb-lib-list-page-form-box");_&&(r=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(L=>{L.style.display="none"}),C()}),r.observe(_))},N=()=>{const _=document.querySelector(".hb-lib-list-page-form-box");_&&(n=new MutationObserver(()=>{setTimeout(()=>{C()},c)}),n.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},V=()=>{a&&clearTimeout(a),a=setTimeout(()=>{C()},c)},k=()=>{window.addEventListener("resize",V),e.nextTick(()=>{T(),N(),m=p()})},g=()=>{window.removeEventListener("resize",V),r&&r.disconnect(),n&&n.disconnect(),m&&m.disconnect(),a&&clearTimeout(a),h&&clearTimeout(h)};return o&&e.watch(()=>o,()=>{setTimeout(()=>{C()},200)},{deep:!0}),e.onMounted(()=>{C(),k()}),e.onUnmounted(()=>{g()}),{tableHeight:d,calTableHeight:C}},Qe=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const o=e.inject("globalCompConfig",{}),{isFullscreen:l}=X.useFullscreen(document.body),i=t,c=e.useTemplateRef("PageContainerRef"),d=e.computed(()=>i.offsetHeight||o.HbLibListPageContainer?.offsetHeight||110),r=e.computed(()=>i.offsetBottom||o.HbLibListPageContainer?.offsetBottom||20),m=e.computed(()=>i.minHeight||o.HbLibListPageContainer?.minHeight||300),n=e.computed(()=>i.timeOut||o.HbLibListPageContainer?.timeOut||100),a=e.computed(()=>i.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(i.isUnFixTbHeight);const{calTableHeight:h,tableHeight:C}=Je({offsetBottom:r.value,minHeight:m.value,timeOut:n.value}),p=e.computed(()=>C.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:c,tableHeight:C,calTableHeight:h}),(T,N)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:c},[e.renderSlot(T.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(a.value?null:{"--hb-list-table-height":e.unref(l)?p.value-d.value+"px":p.value-r.value+"px","--hb-list-ttable-height":t.tabelData.length?"":e.unref(l)?p.value-d.value+"px":p.value-r.value+"px"})},[e.renderSlot(T.$slots,"default")],4)],512))}})),Ze={style:{"font-weight":"500"}},Xe={key:0,class:"hb-lib-search-tag__description"},ve={class:"hb-lib-selector-dropdown"},et={class:"hb-lib-selector-search"},tt={class:"hb-lib-selector-list"},ot=["onClick"],lt={class:"hb-lib-option-content"},nt={class:"hb-lib-option-label"},at={key:0,class:"hb-lib-selector-empty"},it={key:1,class:"hb-lib-selector-footer"},rt={class:"hb-lib-footer-buttons"},st={key:2,class:"hb-lib-selector-footer"},ct={class:"hb-lib-footer-buttons"},dt=O(D(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:o}){const l=t,i=o,c=e.useModel(t,"value"),d=e.ref(!1),r=e.ref(""),m=e.ref([]),n=e.ref(),a=e.computed(()=>{if(l.remoteSearch||!r.value)return l.options;const u=r.value.toLowerCase();return l.options.filter(y=>y.label.toLowerCase().includes(u)||y.description?.toLowerCase().includes(u))}),h=e.computed(()=>l.prefix?`${l.prefix.length*14+8}px`:"0px"),C=e.computed(()=>a.value.length===0?!1:a.value.every(u=>m.value.includes(u.value))),p=e.computed(()=>{if(a.value.length===0)return!1;const u=a.value.filter(y=>m.value.includes(y.value)).length;return u>0&&u<a.value.length});e.watch(()=>c.value,u=>{u?m.value=Array.isArray(u)?[...u]:[u]:m.value=[]},{immediate:!0}),e.watch(()=>l.searchValue,u=>{l.remoteSearch&&u!==void 0&&(r.value=u)},{immediate:!0});const T=u=>{u&&(d.value=u,N.value=[...m.value],r.value="",setTimeout(()=>{if(n.value){const y=n.value.input||n.value.$el?.querySelector("input");y&&y.focus()}},100))},N=e.ref([]),V=()=>{m.value=[...N.value],d.value=!1,i("cancel")},k=e.ref([]),g=()=>{const u=l.multiple?m.value:m.value[0]||"",y=l.options.filter(s=>m.value.includes(s.value));k.value=y,console.log(u,y),N.value=[...m.value],c.value=u,i("update:value",u),i("change",u,y),i("confirm",u,y),d.value=!1},_=X.useDebounceFn(u=>{const y=u!==void 0?u:r.value;l.remoteSearch&&(i("search",y),i("update:searchValue",y))},300),S=u=>{if(l.multiple){const y=new Set(m.value);y.has(u.value)?y.delete(u.value):y.add(u.value),m.value=Array.from(y)}else m.value=[u.value],g()},L=u=>{if(u.target.checked){const s=new Set(m.value);a.value.forEach(f=>{s.add(f.value)}),m.value=Array.from(s)}else{const s=new Set(a.value.map(f=>f.value));m.value=m.value.filter(f=>!s.has(f))}};return(u,y)=>{const s=e.resolveComponent("a-tag"),f=e.resolveComponent("a-input"),B=e.resolveComponent("a-checkbox"),H=e.resolveComponent("a-radio"),I=e.resolveComponent("a-button"),q=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":h.value}},u.$attrs),[e.createVNode(q,{value:c.value,"onUpdate:value":y[5]||(y[5]=w=>c.value=w),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:d.value,allowClear:"",maxTagCount:t.maxTagCount,options:a.value,onDropdownVisibleChange:T,onSearch:e.unref(_),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:w,label:E,closable:z,option:P})=>[e.createVNode(s,{class:"hb-lib-search-tag",onClick:y[0]||(y[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ze,e.toDisplayString(E),1),P?.description?(e.openBlock(),e.createElementBlock("span",Xe," ("+e.toDisplayString(P.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:w})=>[e.createElementVNode("div",ve,[e.createElementVNode("div",et,[e.createVNode(f,{ref_key:"searchInputRef",ref:n,class:"hb-lib-selector-search-input",value:r.value,"onUpdate:value":y[1]||(y[1]=E=>r.value=E),placeholder:"请输入关键词搜索","allow-clear":"",onInput:y[2]||(y[2]=E=>e.unref(_)(E.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(W.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:m.value.includes(E.value)}]),onClick:()=>S(E)},[t.multiple?(e.openBlock(),e.createBlock(B,{key:0,checked:m.value.includes(E.value),onChange:()=>S(E),onClick:y[3]||(y[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(H,{key:1,checked:m.value.includes(E.value),onChange:()=>S(E),onClick:y[4]||(y[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",lt,[e.createElementVNode("div",nt,e.toDisplayString(E.label),1)])],10,ot))),128))]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",at,e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(B,{checked:C.value,indeterminate:p.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",rt,[e.createVNode(I,{size:"small",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",st,[y[6]||(y[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",ct,[e.createVNode(I,{size:"small",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$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"]])),mt={class:"hb-lib-form-item-filter-modal-search"},pt={class:"hb-lib-form-item-filter-modal-buttons"},ft={key:0},ht=O(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:o,emit:l}){const i=t,c=l,d=e.ref(!1),r=e.ref(""),m=e.ref(),n=e.ref(),a=e.ref([]),h=e.ref([]),C=e.ref(),p=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>i.tableData.map(s=>(s.id=s.id||Math.random(),s))),N=e.computed(()=>i.tableColumn.map(s=>(s.customFilterDropdown&&(s.onFilter=(f,B)=>B[s.dataIndex].toString().toLowerCase().includes(f.toLowerCase()),s.onFilterDropdownVisibleChange=f=>{f&&setTimeout(()=>{m.value?.focus()},100)}),{...s}))),V=()=>{let s="";h.value.forEach(f=>{s=s+f[i.labelKey]+","}),r.value=s.substring(0,s.length-1),d.value=!1,c("handleConfirm",h.value)},k=()=>{d.value=!1},g=()=>{d.value=!0,e.nextTick(()=>{const s=C.value?.$el?.querySelector(".ant-table-body");s&&(s.scrollTop=0)})},_=()=>{a.value=[],h.value=[]},S=()=>{r.value="",_()},L=(s,f,B)=>{f(),p.searchText=s[0],p.searchedColumn=B},u=(s,f)=>{s({confirm:!0}),p.searchText="",f()},y=(s,f)=>{a.value=s,h.value=f};return o({resetInputVal:S}),(s,f)=>{const B=e.resolveComponent("a-input"),H=e.resolveComponent("a-button"),I=e.resolveComponent("a-table"),q=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:n},[e.createVNode(B,{readonly:"",onClick:g,value:r.value,"onUpdate:value":f[0]||(f[0]=w=>r.value=w),placeholder:s.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(W.UnorderedListOutlined),{onClick:g})]),_:1},8,["value","placeholder"]),e.createVNode(q,{visible:d.value,"onUpdate:visible":f[1]||(f[1]=w=>d.value=w),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(H,{onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(H,{onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(H,{type:"primary",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{ref_key:"tableRef",ref:C,columns:N.value,dataSource:T.value,rowSelection:{selectedRowKeys:a.value,onChange:y},rowKey:w=>w[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:w,selectedKeys:E,confirm:z,clearFilters:P,column:K})=>[e.createElementVNode("div",mt,[e.createVNode(B,{ref_key:"searchInput",ref:m,placeholder:`请输入${K.title}`,value:E[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:G=>w(G.target.value?[G.target.value]:[]),onPressEnter:G=>L(E,z,K.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",pt,[e.createVNode(H,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:G=>u(P,z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(H,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:G=>L(E,z,K.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:w})=>[e.createVNode(e.unref(W.SearchOutlined),{style:e.normalizeStyle({color:w?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:w,column:E})=>[p.searchText&&p.searchedColumn===E.dataIndex?(e.openBlock(),e.createElementBlock("span",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`,"i")),(z,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[z.toLowerCase()===p.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:P,class:"highlight"},e.toDisplayString(z),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(z),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),bt={class:"hb-lib-table-act-box"},gt=["onClick"],yt={href:"javascript:;",class:"hb-lib-table-main-action"},Ct=["onClick"],ut={href:"javascript:;",class:"hb-lib-table-more-action"},_t=["onClick"],kt={href:"javascript:;"},Lt=["onClick"],St={class:"hb-lib-table-confirm-modal-content"},xt=O(D(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:o}){const l=t,{t:i}=Y.useI18n(),c=e.ref(!1),d=e.ref(!1),r=e.ref(null),m=e.computed(()=>l.actions.filter(k=>k.condition!==void 0?k.condition:!0)),n=e.computed(()=>m.value.slice(0,l.buttonDisplaysQuantity)),a=e.computed(()=>h(m.value.slice(l.buttonDisplaysQuantity)));function h(k){if(l.filterPermission)return l.filterPermission(k);let g=[],_=[];return g=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(g)||k.length===0?(g=[],[]):(g=g.filter(S=>S.type!="2"),k.forEach(S=>{(!S.permissionsTag||g.findIndex(L=>L.action===S.permissionsTag)!==-1)&&_.push(S)}),_)}const C=k=>{k.handler&&k.handler(l.record)},p=k=>{r.value=k,c.value=!0},T=()=>{if(r.value){d.value=!0;try{C(r.value),d.value=!1,c.value=!1}catch{d.value=!1}}},N=()=>{c.value=!1,r.value=null},V=e.computed(()=>r.value?{title:r.value.confirmTitle,content:r.value.confirmContent||r.value.confirmTitle}:{title:i("hbLibComp.hbTableAct.secendConfirm"),content:i("hbLibComp.hbTableAct.confirmContent")});return o({ADropdown:F.Dropdown,AMenu:F.Menu,AMenuItem:F.MenuItem,APopconfirm:F.Popconfirm,AModal:F.Modal,DownOutlined:W.DownOutlined}),(k,g)=>{const _=e.resolveComponent("a-divider"),S=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(L,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[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:y=>p(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,gt)),[[S,L.permissionsTag||null]]),a.value&&a.value.length>0||u!==n.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(F.Popconfirm),{title:L.confirmTitle,onConfirm:y=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",yt,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[S,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),a.value&&a.value.length>0||u!==n.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):L.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(k.$slots,L.slot,{item:L},void 0,!0),a.value&&a.value.length>0||u!==n.value.length-1?(e.openBlock(),e.createBlock(_,{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:y=>C(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,Ct)),[[S,L.permissionsTag||null]]),a.value&&a.value.length>0||u!==n.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(_,{key:0,type:"vertical"},null,512)),[[S,L.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),a.value&&a.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(a.value,(L,u)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:u},{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:y=>p(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,_t)),[[S,L.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:L.confirmTitle,onConfirm:y=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",kt,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[S,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[S,L.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:y=>C(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,Lt)),[[S,L.permissionsTag||null]])]),_:2},1024)),[[S,L.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",ut,[e.createTextVNode(e.toDisplayString(k.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(W.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(F.Modal),{visible:c.value,title:V.value.title,"confirm-loading":d.value,onOk:T,onCancel:N},{default:e.withCtx(()=>[e.createElementVNode("p",St,e.toDisplayString(V.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Ce=t=>({tableWidth:e.computed(()=>{const l=Array.isArray(t)?t:t.value;return!l||l.length===0?0:l.map(i=>i.width&&Number(i.width.toString().replace("px",""))||0).reduce((i,c)=>i+c,0)})});var wt=typeof global=="object"&&global&&global.Object===Object&&global,Bt=typeof self=="object"&&self&&self.Object===Object&&self,ue=wt||Bt||Function("return this")(),ae=ue.Symbol,_e=Object.prototype,Tt=_e.hasOwnProperty,Nt=_e.toString,oe=ae?ae.toStringTag:void 0;function Ft(t){var o=Tt.call(t,oe),l=t[oe];try{t[oe]=void 0;var i=!0}catch{}var c=Nt.call(t);return i&&(o?t[oe]=l:delete t[oe]),c}var Vt=Object.prototype,Et=Vt.toString;function Ht(t){return Et.call(t)}var $t="[object Null]",It="[object Undefined]",ke=ae?ae.toStringTag:void 0;function Mt(t){return t==null?t===void 0?It:$t:ke&&ke in Object(t)?Ft(t):Ht(t)}function Dt(t){return t!=null&&typeof t=="object"}var At="[object Symbol]";function Ot(t){return typeof t=="symbol"||Dt(t)&&Mt(t)==At}var zt=/\s/;function Pt(t){for(var o=t.length;o--&&zt.test(t.charAt(o)););return o}var Rt=/^\s+/;function Ut(t){return t&&t.slice(0,Pt(t)+1).replace(Rt,"")}function me(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}var Le=NaN,jt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,qt=/^0o[0-7]+$/i,Yt=parseInt;function Se(t){if(typeof t=="number")return t;if(Ot(t))return Le;if(me(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=me(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=Ut(t);var l=Wt.test(t);return l||qt.test(t)?Yt(t.slice(2),l?2:8):jt.test(t)?Le:+t}var pe=function(){return ue.Date.now()},Kt="Expected a function",Gt=Math.max,Jt=Math.min;function Qt(t,o,l){var i,c,d,r,m,n,a=0,h=!1,C=!1,p=!0;if(typeof t!="function")throw new TypeError(Kt);o=Se(o)||0,me(l)&&(h=!!l.leading,C="maxWait"in l,d=C?Gt(Se(l.maxWait)||0,o):d,p="trailing"in l?!!l.trailing:p);function T(y){var s=i,f=c;return i=c=void 0,a=y,r=t.apply(f,s),r}function N(y){return a=y,m=setTimeout(g,o),h?T(y):r}function V(y){var s=y-n,f=y-a,B=o-s;return C?Jt(B,d-f):B}function k(y){var s=y-n,f=y-a;return n===void 0||s>=o||s<0||C&&f>=d}function g(){var y=pe();if(k(y))return _(y);m=setTimeout(g,V(y))}function _(y){return m=void 0,p&&i?T(y):(i=c=void 0,r)}function S(){m!==void 0&&clearTimeout(m),a=0,i=n=c=m=void 0}function L(){return m===void 0?r:_(pe())}function u(){var y=pe(),s=k(y);if(i=arguments,c=this,n=y,s){if(m===void 0)return N(n);if(C)return clearTimeout(m),m=setTimeout(g,o),T(n)}return m===void 0&&(m=setTimeout(g,o)),r}return u.cancel=S,u.flush=L,u}const Zt={key:0,class:"hb-lib-list-table-act"},Xt={class:"empty-container"},vt={key:1},eo={key:2},to=O(D(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:o}){const l=e.inject("globalCompConfig",{}),i=o,{t:c}=Y.useI18n(),d=t,r=e.ref([]),m=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:n}=Ce(r),a=e.ref(n.value),h=e.computed(()=>d.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>d.columns,g=>{const _=g.filter(L=>L!=null&&L.checked);r.value=_.map(L=>{let u={...L,title:L.title||L.label,align:L.align||l.listTable?.align||"center"};u.ellipsis&&!u.needTooltip&&(u.needTooltip=!0);let y=d.defaultWidth||l.listTable?.defaultColWidth||150;if(!u.width)u.width=y;else if(typeof u.width=="string"){const s=parseInt(u.width,10);u.width=isNaN(s)?y:s}return u.resizable===void 0&&(u.resizable=!0),u});const{tableWidth:S}=Ce(r);a.value=S.value},{immediate:!0,deep:!0});const C=Qt(()=>{i("resizeCol",r)},l.listTable?.colSaveTimeOut||800),p=(g,_)=>{if(_){const S=typeof g=="string"?parseInt(g,10):g;_.width=isNaN(S)?l.listTable?.defaultColWidth||150:S,e.nextTick(()=>{C()})}},T=(g,_,S)=>{g?.current&&i("change",g,_,S)},N=(g,_="YYYY-MM-DD HH:mm:ss")=>g?ne(g).format(_):"",V=(g,_)=>g&&_[g]||"",k=(g,_=l.listTable?.ellipsisNumber||20)=>g?g.length>_?`${g.substring(0,_)}...`:g:"";return(g,_)=>{const S=e.resolveComponent("a-empty"),L=e.resolveComponent("a-tooltip"),u=e.resolveComponent("HbLibCopy"),y=e.resolveComponent("a-tag"),s=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":d.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[g.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Zt,[e.renderSlot(g.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(g.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(s,e.mergeProps(g.$attrs,{bordered:"",columns:r.value,tableLayout:"fixed",onResizeColumn:p,onChange:T,scroll:h.value?{x:a.value}:{x:a.value,y:e.unref(m).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",Xt,[e.createVNode(S,{description:e.unref(c)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[g.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:f})=>[e.renderSlot(g.$slots,"headerCell",{column:f,title:f.title},()=>[e.createTextVNode(e.toDisplayString(f.title),1)],!0)]),key:"0"}:void 0,g.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:f,record:B,index:H,text:I})=>[e.renderSlot(g.$slots,"bodyCell",{column:f,record:B,index:H,text:I},void 0,!0),f&&f.needTooltip&&!f.needCopy?(e.openBlock(),e.createBlock(L,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B[f.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B[f.dataIndex]),1)]),_:2},1032,["placement"])):f&&f.needCopy&&!f.needTooltip?(e.openBlock(),e.createElementBlock("div",vt,[e.createTextVNode(e.toDisplayString(B[f.dataIndex])+" ",1),e.createVNode(u,{"cp-text":B[f.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),f&&f.needTooltip&&f.needCopy?(e.openBlock(),e.createElementBlock("div",eo,[e.createVNode(L,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B[f.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(k(B[f.dataIndex],f.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(u,{"cp-text":B[f.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):f&&f.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(N(B[f.dataIndex],f.format)),1)],64)):f&&f.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[V(B[f.dataIndex],f.tags)?(e.openBlock(),e.createBlock(y,{key:0,color:V(B[f.dataIndex],f.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B[f.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,g.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:f,index:B})=>[e.renderSlot(g.$slots,"expandedRowRender",{record:f,index:B},void 0,!0)]),key:"2"}:void 0,g.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:f})=>[e.renderSlot(g.$slots,"customFilterDropdown",{column:f},void 0,!0)]),key:"3"}:void 0,g.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:f})=>[e.renderSlot(g.$slots,"customFilterIcon",{column:f},void 0,!0)]),key:"4"}:void 0,g.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:f,record:B,index:H})=>[e.renderSlot(g.$slots,"expandIcon",{expanded:f,record:B,index:H},void 0,!0)]),key:"5"}:void 0,g.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,g.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,g.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),oo={class:"hb-lib-table-setting-box"},lo={key:0,class:"hb-lib-table-drag-item"},no={key:0,class:"hb-lib-table-drag-item-act"},ao=["onClick"],io=["onClick"],ro={class:"hb-lib-table-set-btn-group"},so={class:"select-all-container",style:{"margin-right":"10px"}},co=O(D(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:o}){const l=o,{t:i}=Y.useI18n(),c=t,d=e.ref([]),r=e.computed(()=>n.value.filter(y=>y.checked));e.ref([]);const m=e.ref(!1),n=e.ref([]),a=e.ref(null),h=e.computed(()=>r.value.length>0&&r.value.length===d.value.length),C=e.computed(()=>r.value.length>0&&r.value.length<d.value.length),p=y=>{a.value=y.oldIndex},T=y=>{const s=y.newIndex;if(d.value.some(B=>B.fixed==="left"||B.fixed==="right"||B.fixed===!0)){const B=d.value.filter(I=>I.fixed==="left").length,H=d.value.length-d.value.filter(I=>I.fixed==="right").length;if((B>0&&s<B||H<d.value.length&&s>=H)&&(F.message.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")),a.value!==null)){const I=n.value.splice(s,1)[0];n.value.splice(a.value,0,I)}}a.value=null},N=y=>{y.target.checked?n.value.forEach(f=>f.checked=!0):n.value.forEach(f=>{f.dataIndex!=="action"&&f.dataIndex!=="actions"&&(f.checked=!1)})},V=()=>{d.value=c.localColumns.map(s=>({...s,label:s.title&&s.title.tag?S(s.title):s.title||s.title2,value:s.dataIndex,checked:s.checked||s.checked===void 0})),n.value=[...d.value];let y=[];c.tableColumns.forEach(function(s){y.push(s.dataIndex)})},k=(y,s)=>{s?y.checked=!0:y.checked=!1},g=()=>{d.value=[...n.value],l("on-get-columns",d.value),m.value=!1},_=()=>{d.value=c.tableColumns.map(s=>({...s,label:s.title&&s.title.tag?S(s.title):s.title||s.title2,value:s.dataIndex,checked:s.checked||s.checked===void 0})),n.value=[...d.value];let y=[];c.tableColumns.forEach(function(s){y.push(s.dataIndex)})},S=y=>y.children[0].text,L=y=>{delete y.fixed;const s=n.value.findIndex(f=>f.value===y.value);if(s!==-1){let f=-1;for(let B=0;B<n.value.length;B++)n.value[B].fixed==="left"&&(f=B);if(f!==-1&&s!==f+1){const B=[...n.value],[H]=B.splice(s,1);B.splice(f+1,0,H),n.value=B}}},u=y=>{const s=n.value.findIndex(f=>f.value===y.value);if(s!==-1){let f=-1;for(let q=0;q<n.value.length;q++)n.value[q].fixed==="left"&&(f=q);const B=[...n.value],[H]=B.splice(s,1);H.fixed="left";const I=f===-1?0:f+1;B.splice(I,0,H),n.value=B}};return e.watch(()=>c.tableColumns,()=>{_()},{immediate:!0,deep:!0}),(y,s)=>{const f=e.resolveComponent("a-tooltip"),B=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",oo,[e.createVNode(e.unref(F.Popover),{title:e.unref(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:m.value,"onUpdate:visible":s[1]||(s[1]=H=>m.value=H)},{content:e.withCtx(()=>[e.createVNode(e.unref(le),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=H=>n.value=H),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:p,onEnd:T},{item:e.withCtx(({element:H})=>[H.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",lo,[e.createVNode(e.unref(F.Checkbox),{checked:H.checked,onChange:I=>k(H,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(H.label),1)]),_:2},1032,["checked","onChange"]),H.checked?(e.openBlock(),e.createElementBlock("section",no,[e.createElementVNode("span",{class:e.normalizeClass(H.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),H.fixed?(e.openBlock(),e.createBlock(f,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>L(H)},[...s[2]||(s[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),H.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>u(H)},[...s[3]||(s[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,io)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ro,[e.createElementVNode("div",so,[e.createVNode(e.unref(F.Checkbox),{checked:h.value,indeterminate:C.value,onChange:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),c.localColumns.length?(e.openBlock(),e.createBlock(B,{key:0,style:{"margin-right":"6px"},onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(B,{onClick:g,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(f,{title:e.unref(i)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...s[4]||(s[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"]])),mo=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormItemFilterModal:De,HbLibListBtnsAct:Ge,HbLibListForm:Oe,HbLibListMultiSelect:dt,HbLibListPageAct:We,HbLibListPageContainer:Qe,HbLibListTable:to,HbLibMutilpleSelectModal:ht,HbLibTableAct:xt,HbLibTableColumnSet:co},Symbol.toStringTag,{value:"Module"})),po=O(D(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:o}){const l=t,i=e.useAttrs(),c=e.computed(()=>{const N=i,V=N.dropdownClassName;return{...N,dropdownClassName:V??"hb_lib_form_tooltip_select__dropdown"}}),d=e.ref(),r=e.useModel(t,"value"),m=e.computed(()=>l.options??[]),n=e.computed(()=>({maxWidth:typeof l.tooltipMaxWidth=="number"?`${l.tooltipMaxWidth}px`:l.tooltipMaxWidth})),a=N=>N.tooltip??N.label,h=N=>N.key??N.label,C=N=>!!(l.enableTooltip&&a(N));return o({focus:()=>{d.value?.focus?.()},blur:()=>{d.value?.blur?.()},selectRef:d}),(N,V)=>(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({ref_key:"selectRef",ref:d,class:"hb_lib_form_tooltip_select"},c.value,{value:r.value,"onUpdate:value":V[0]||(V[0]=k=>r.value=k)}),{default:e.withCtx(()=>[N.$slots.default?e.renderSlot(N.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(m.value,k=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:h(k),value:k.value,disabled:k.disabled},{ref_for:!0},k.optionProps),{default:e.withCtx(()=>[C(k)?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:a(k),placement:l.tooltipPlacement,overlayStyle:n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":l.enableEllipsis}])},e.toDisplayString(k.label),3)]),_:2},1032,["title","placement","overlayStyle"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":l.enableEllipsis}])},e.toDisplayString(k.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-b04f5675"]])),fo=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormTooltipSelect:po},Symbol.toStringTag,{value:"Module"})),ho={class:"ant-upload-drag-icon"},bo={class:"ant-upload-text"},go={style:{color:"#ff5000"}},yo={class:"ant-upload-hint"},Co={key:0,class:"hb_import_btn"},uo=["href"],_o=O(D(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:o}){const{t:l}=Y.useI18n(),i=e.ref(),c=t,d=e.ref(!1),r=e.reactive({fileList:[],visible:!1}),m=p=>{if(p==null)return;const T=r.fileList.indexOf(p);if(T!==-1){const N=r.fileList.slice();N.splice(T,1),r.fileList=N}},n=()=>{r.visible=!1,r.fileList=[],d.value=!1},a=p=>(r.fileList=[p],c.beforeUpload?c.beforeUpload(p):!1),h=()=>{i.value.validateFields().then(()=>{c.beforeSubmit&&(d.value=!0,c.beforeSubmit(r.fileList).then(p=>{}).finally(()=>{d.value=!1}))})},C=()=>{r.visible=!0};return o({handleCancel:n,openModal:C,confirmLoading:d}),(p,T)=>{const N=e.resolveComponent("a-upload-dragger"),V=e.resolveComponent("a-form-item"),k=e.resolveComponent("a-form"),g=e.resolveComponent("a-modal"),_=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,e.mergeProps({title:c.title,visible:r.visible,"onUpdate:visible":T[0]||(T[0]=S=>r.visible=S),"confirm-loading":d.value},p.$attrs,{onCancel:n,onOk:h,width:c.modalWidth}),{default:e.withCtx(()=>[e.createVNode(k,{ref_key:"modalFormRef",ref:i,model:r},{default:e.withCtx(()=>[e.createVNode(V,{name:"fileList",label:e.unref(l)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:c.isRequired,message:e.unref(l)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(N,{maxCount:c.maxCount,multiple:c.multiple,accept:c.acceptFile,name:"file",fileList:r.fileList,onRemove:m,beforeUpload:a},{default:e.withCtx(()=>[e.createElementVNode("p",ho,[e.createVNode(e.unref(W.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",bo,[e.createTextVNode(e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",go,e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",yo,e.toDisplayString(e.unref(l)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(c.acceptFile),1)]),_:1},8,["maxCount","multiple","accept","fileList"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),c.templateUrl?(e.openBlock(),e.createElementBlock("p",Co,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:c.templateUrl},e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.downloadTemplate")),9,uo)])):e.createCommentVNode("",!0)]),_:1},16,["title","visible","confirm-loading","width"]),e.renderSlot(p.$slots,"btn",{},()=>[e.createVNode(_,{onClick:C,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-d61501db"]])),ko=Object.freeze(Object.defineProperty({__proto__:null,HbLibImportFile:_o},Symbol.toStringTag,{value:"Module"})),Lo={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=O(D(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Lo,setup(t){const o=t,l=e.ref();e.watchEffect(()=>{l.value=o.data});const i=e.computed(()=>o.tooltipTitle||"复制"),c=e.computed(()=>o.copySuccessTip||"复制成功"),d=e.computed(()=>o.copyFailTip||"复制失败"),r=e.computed(()=>{if(o.cpText)return o.cpText;let n="";if(o.data)if(Array.isArray(o.data)){if(o.K&&o.V&&o.L){const a=o.data.find(h=>h?.[o.K]===o.V);n=a?a[o.L]:""}}else o.K&&(n=o.data[o.K]);return n}),m=()=>{navigator.clipboard.writeText(r.value).then(()=>{F.message.success(c.value)}).catch(()=>{F.message.error(d.value)})};return(n,a)=>r.value?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:i.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...n.cpStyle}),onClick:e.withModifiers(m,["stop","prevent"])},[...a[0]||(a[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"]])),So={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:""}},xo=O(D(e.defineComponent({name:"HbDrag",__name:"index",props:So,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:o}){const l=t,i=e.shallowRef([]);e.watch(()=>l.dragList,h=>{i.value=h},{deep:!0,immediate:!0});const c=de("drag"),d=o,r=h=>{console.log("drag start",h),d("handleDragStart",h)},m=h=>{console.log("drag end",h),d("handleDragEnd",h)},n=h=>{console.log("drag add",h),d("handleDragAdd",h)},a=h=>{console.log("drag remove",h),d("handleDragRemove",h)};return(h,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(c).b())},[h.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:0,modelValue:i.value,"onUpdate:modelValue":C[0]||(C[0]=p=>i.value=p),"item-key":"key",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:r,onEnd:m,onAdd:n,onRemove:a}),{item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:1,modelValue:i.value,"onUpdate:modelValue":C[1]||(C[1]=p=>i.value=p),"item-key":"id",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:r,onEnd:m,onAdd:n,onRemove:a}),{item:e.withCtx(({element:p})=>[e.createElementVNode("div",null,[e.renderSlot(h.$slots,"default",{item:p},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),wo={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Bo=O(D(e.defineComponent({name:"HbLibSort",__name:"sort",props:wo,emits:["change"],setup(t,{expose:o,emit:l}){const i=t,c=l,d=e.ref([]),r=e.ref("");e.watch(()=>i.menuItems,n=>{let a=[];Array.isArray(n)&&n.length&&n.forEach(h=>{a=[...a,{label:`${h.label}升序`,value:`${h.value}`,sort:"Asc"},{label:`${h.label}降序`,value:`${h.value}`,sort:"Desc"}]}),d.value=a},{deep:!0,immediate:!0});const m=n=>{r.value=n.value+n.sort,i.getSort&&i.getSort({orderFeild:n.value,orderBy:n.sort}),c("change",r)};return o({currentActiveItem:r}),(n,a)=>{const h=e.resolveComponent("a-menu-item"),C=e.resolveComponent("a-menu"),p=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(p,{trigger:[i.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,T=>(e.openBlock(),e.createBlock(h,{key:T.value+T.sort,onClick:N=>m(T)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(r.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:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(i.colText)+" ",1),e.createVNode(e.unref(W.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),To={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}},No={class:"hb_ui_config"},Fo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const o=t;let l=null;return e.watch(()=>o.config,i=>{l=e.reactive(Z.merge({},To,i))},{deep:!0,immediate:!0}),e.provide(fe,l),(i,c)=>(e.openBlock(),e.createElementBlock("div",No,[e.renderSlot(i.$slots,"default")]))}}),fe=Symbol("GLOBAL_CONFIG_KEY"),Vo=O(Fo),Eo={class:"hb_lib_loading"},Ho={class:"hb_lib_loading_loading_anima"},$o={class:"hb_lib_loading_load_tips"},Io=O(D(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:o}=Y.useI18n(),l=t,i=e.computed(()=>l.loadTips||o("hbLibComp.HbLibLoading.loadingTips"));return(c,d)=>(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("div",Ho,[d[0]||(d[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",$o,e.toDisplayString(i.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),Mo=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:xe,HbLibFuncCompDrag:xo,HbLibLoading:Io,HbLibSort:Bo,HbUiConfig:Vo},Symbol.toStringTag,{value:"Module"})),Do={class:"hb_lib_log_modal_content"},Ao={class:"log_remark"},Oo=O(D(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:o,emit:l}){const{t:i}=Y.useI18n(),c=t,d=[{title:i("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:i("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:i("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],r=e.computed(()=>c.columns||d),m=e.computed(()=>c.title||i("hbLibComp.HbLogModal.operateLogs")),n=e.ref(!1),a=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(k,g)=>g[0]+"-"+g[1]+" 总共"+k+"页",total:0}});e.watch(()=>c.pagination,k=>{k&&(a.pagination={...a.pagination,...k})},{deep:!0,immediate:!0});const h=()=>{const k={pageIndex:a.pagination.current,pageSize:a.pagination.pageSize,query:c.params};c.getLogData&&(n.value=!0,c.getLogData(k).then(g=>{Number(g.code)==200?(a.pagination.total=Number(g.data.total),a.list=g.data[c.dataStr]||[]):F.message.error(g.message)}).finally(()=>{n.value=!1}))},C=k=>{a.pagination.current=k.current,a.pagination.pageSize=k.pageSize,h()},p=()=>{a.list=[],V("update:visible",!1)},T=()=>{V("update:visible",!0)},N=(k,g="YYYY-MM-DD HH:mm:ss")=>k?ne(k).format(g):"",V=l;return e.watch(()=>c.visible,k=>{k&&h()}),o({close:p,loading:n}),(k,g)=>{const _=e.resolveComponent("a-tooltip"),S=e.resolveComponent("HbLibCopy"),L=e.resolveComponent("a-table"),u=e.resolveComponent("a-button"),y=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,e.mergeProps(k.$attrs,{visible:t.visible,title:m.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:p}),{footer:e.withCtx(()=>[e.createVNode(u,{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Do,[e.createVNode(L,{bordered:"",rowKey:"id",columns:r.value,dataSource:a.list,pagination:a.pagination,loading:n.value,scroll:{y:t.scrollY},onChange:C},e.createSlots({bodyCell:e.withCtx(({column:s,record:f})=>[s&&s.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.needTooltip?(e.openBlock(),e.createBlock(_,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f[s.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(f[s.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s&&s.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Ao,e.toDisplayString(f[s.dataIndex]),1),e.createVNode(S,{"cp-text":f[s.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),s&&s.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(N(f[s.dataIndex],s.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[k.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:s})=>[e.renderSlot(k.$slots,"headerCell",{column:s},()=>[e.createTextVNode(e.toDisplayString(s.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:3},16,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(k.$slots,"default",{key:0},()=>[e.createVNode(u,{onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-341c37f6"]])),zo=Object.freeze(Object.defineProperty({__proto__:null,HbLibLogModal:Oo},Symbol.toStringTag,{value:"Module"})),ee=t=>(t.install=o=>{o.component(t.name||"AnonymousComponent",t)},t),Po={class:"hb_card_wrapper"},Ro={class:"hb_card"},Uo={key:0,class:"hb_card_header"},jo={class:"hb_fix"},Wo={class:"hb_card_header-title"},qo={class:"hb_card_header-action"},Yo={class:"hb_card_body"},Ko=ee(D(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 o=e.inject(fe),l=t,i=e.computed(()=>{let c=l.formItemMb||o?.HbLibCard?.formItemMb;return c?{"--hb-card-form-item-mb":c+"px"}:{}});return(c,d)=>(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",Ro,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",jo,[e.createElementVNode("span",Wo,[e.renderSlot(c.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",qo,[e.renderSlot(c.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Yo,[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(i.value)},[e.renderSlot(c.$slots,"default",{},void 0,!0)],6)])])],2)]))}}),[["__scopeId","data-v-927846d4"]])),Go=["onClick"],Jo={class:"step"},Qo={key:0,class:"line"},Zo=["title"],Xo=ee(D(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const o=t,l=e.ref(""),i=o.offsetTop??160,c=e.computed(()=>o.anchors.filter(n=>typeof n.visible=="function"?n.visible():n.visible!==!1)),d=()=>{const n=o.containerSelector||"#subpackage_container";return document.querySelector(n)||window},r=n=>{const a=d(),h=n.target.startsWith("#")||n.target.startsWith(".")?n.target:`#${n.target}`,C=document.querySelector(h);if(!C)return;let p=C.offsetTop;a instanceof HTMLElement&&(p-=a.offsetTop),p-=i,a instanceof Window?window.scrollTo({top:p,behavior:"smooth"}):a.scrollTo({top:p,behavior:"smooth"}),l.value=n.target},m=()=>{const n=d();let a=0;n instanceof Window?a=window.scrollY+i+5:a=n.scrollTop+i+5;let h=c.value[0]?.target||"";for(const C of c.value){const p=C.target.startsWith("#")||C.target.startsWith(".")?C.target:`#${C.target}`,T=document.querySelector(p);if(!T)continue;let N=T.offsetTop;n instanceof HTMLElement&&(N-=n.offsetTop),a>=N&&(h=C.target)}l.value=h};return e.onMounted(()=>{d().addEventListener("scroll",m),m()}),e.onBeforeUnmount(()=>{d().removeEventListener("scroll",m)}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(h,C)=>(e.openBlock(),e.createElementBlock("div",{key:h.target,class:e.normalizeClass(["anchor-item",{isActive:l.value===h.target}]),onClick:p=>r(h)},[e.createElementVNode("div",Jo,[C!==c.value.length-1?(e.openBlock(),e.createElementBlock("div",Qo)):e.createCommentVNode("",!0),a[0]||(a[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:h.title},e.toDisplayString(h.title.length>12?h.title.slice(0,12)+"...":h.title),9,Zo)],10,Go))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),vo={class:"hb_detail_top_act_left"},el={key:1,class:"hb_detail_top_wrapper_sticky"},tl={class:"hb_detail_top_act"},ol={key:0,class:"hb_detail_all_info"},ll={class:"hb_detail_all_info_left"},nl={class:"hb_detail_info_title"},al={key:0,class:"hb_detail_info_content"},il={class:"create_by"},rl={class:"hb_detail_all_info_right"},sl={class:"hb_edit_detail_content_wrapper"},cl={class:"hb_detail_content"},dl={class:"hb-back-top-inner"},ml=ee(D(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:o}=Y.useI18n(),l=t,i=e.inject(fe),c=()=>{l.backFn?l.backFn():window.history.back()},d=e.computed(()=>l.backTopBottom||i?.HbLibDetailBox?.backTopBottom||80),r=e.computed(()=>{const V={};return l.needFixWidth?{hb_need_set_desc_label_width:l.descLabelWidth||i?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:l.descValueWidth||i?.HbLibDetailBox?.descValueWidth}:V}),m=()=>document.querySelector(l.container),n=e.ref(!1),a=e.ref(null),{top:h}=X.useElementBounding(a),C=e.computed(m),{y:p}=X.useScroll(C);e.watch(p,V=>{n.value=V>h.value},{immediate:!0});const T=V=>{document.querySelectorAll(".hb_card_body").forEach(g=>{g.querySelectorAll(".ant-descriptions-item-content span").forEach(S=>{S.textContent?.trim()||(S.textContent=V)})})};let N=null;return e.onMounted(()=>{i?.HbLibDetailBox?.needSetDesDefault&&(N=setTimeout(()=>{T(i?.HbLibDetailBox?.desDefault)},i?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{N&&clearTimeout(N)}),(V,k)=>{const g=e.resolveComponent("RollbackOutlined"),_=e.resolveComponent("a-divider"),S=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(S,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",r.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":r.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":r.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",vo,[e.createVNode(g,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:c},e.toDisplayString(e.unref(o)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(_,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),k[0]||(k[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",tl,[e.createVNode(g),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:c},e.toDisplayString(e.unref(o)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(_,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("aside",ll,[e.renderSlot(V.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",nl,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",al,[e.createElementVNode("span",il,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",rl,[e.renderSlot(V.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",sl,[e.createElementVNode("div",cl,[e.renderSlot(V.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(F.BackTop),{target:m,style:e.normalizeStyle({bottom:d.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",dl,[e.createVNode(e.unref(W.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),pl=ee(D(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 o=t,l=e.computed(()=>o.buttons.filter(m=>m.condition!==void 0?m.condition:!0)),i=e.ref(0),c=m=>{let n=0;return(Array.isArray(m)?m:[m]).forEach(h=>{let C=[];if(h.startsWith("#")){const p=document.getElementById(h.slice(1));p&&C.push(p)}else C=Array.from(document.getElementsByClassName(h));C.forEach(p=>{n+=p.offsetWidth||0})}),n},d=()=>{o.leftElements&&(i.value=c(o.leftElements)+1)};let r=null;return e.onMounted(()=>{const m=o.getContainer();m!==window&&m instanceof HTMLElement&&m.addEventListener("scroll",()=>{}),d(),r=new MutationObserver(()=>{d()});const n=document.body;r.observe(n,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{r&&r.disconnect()}),(m,n)=>{const a=e.resolveComponent("a-button"),h=e.resolveComponent("a-space"),C=e.resolveComponent("a-affix"),p=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[e.createVNode(C,{"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(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,T=>e.withDirectives((e.openBlock(),e.createBlock(a,{key:T.key,type:T.type||"default",danger:T.danger,loading:T.loading,disabled:T.disabled,onClick:T.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[p,T.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-37376438"]])),fl={class:"modal__detail-content"},hl=ee(D(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{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:["ok","cancel"],setup(t,{expose:o,emit:l}){const i=l,c=t,d=e.ref(!1),r=e.ref(null),m=e.computed(()=>({top:"10px",...c.modalStyle})),n=e.computed(()=>({overflow:"hidden",...c.modalStyle})),a=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...c.bodyStyle})),{x:h,y:C,isDragging:p}=X.useDraggable(r),T=e.ref(0),N=e.ref(0),V=e.ref(!1),k=e.ref(0),g=e.ref(0),_=e.ref(0),S=e.ref(0),L=e.ref({left:0,right:0,top:0,bottom:0});let u=null;e.watch(d,B=>{B||(u&&clearTimeout(u),u=setTimeout(()=>{k.value=0,g.value=0,_.value=0,S.value=0},300))}),e.watch([h,C],()=>{if(!V.value){T.value=h.value,N.value=C.value;const B=document.body.getBoundingClientRect(),H=r.value.getBoundingClientRect();L.value.right=B.width-H.width,L.value.bottom=B.height-H.height,_.value=k.value,S.value=g.value}V.value=!0}),e.watch(p,()=>{p||(V.value=!1)}),e.watchEffect(()=>{V.value&&(k.value=_.value+Math.min(Math.max(L.value.left,h.value),L.value.right)-T.value,g.value=S.value+Math.min(Math.max(L.value.top,C.value),L.value.bottom)-N.value)});const y=e.computed(()=>({transform:`translate(${k.value}px, ${g.value}px)`})),s=()=>{d.value=!1,i("cancel")},f=()=>{i("ok")};return e.onUnmounted(()=>{u&&clearTimeout(u)}),o({handleOk:f,handleCancel:s,visible:d}),(B,H)=>{const I=e.resolveComponent("a-spin"),q=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(q,e.mergeProps({style:m.value,bodyStyle:a.value,ref:"modalRef",visible:d.value,"onUpdate:visible":H[0]||(H[0]=w=>d.value=w),"wrap-style":n.value,onOk:f,onCancel:s},B.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:r,style:{width:"100%",cursor:"move"}},[e.renderSlot(B.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:w})=>[e.createElementVNode("div",{style:e.normalizeStyle(y.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w)))],4)]),default:e.withCtx(()=>[e.createVNode(I,{spinning:c.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",fl,[e.renderSlot(B.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[B.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(B.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-e986d7ee"]])),bl={key:0,class:"hb_edit_header"},gl={class:"__detail-content"},yl={key:1,class:"hb_edit_footer"},Cl={class:"hb-back-top-inner"},ul=ee(D(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 o=e.ref("vertical"),l=t,i=()=>document.querySelector(l.container),c=e.inject("GLOBAL_CONFIG_KEY"),d=e.computed(()=>l.backTopBottom||c?.HbLibUnDetailBox?.backTopBottom||80);return(r,m)=>(e.openBlock(),e.createBlock(e.unref(F.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_wrapper",t.formLabelWidth?"isNeedSetLabelWidth":""]),style:e.normalizeStyle({"--hb-edit-form-label":t.formLabelWidth})},[r.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",bl,[e.renderSlot(r.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",o.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",gl,[e.renderSlot(r.$slots,"editContent",{},void 0,!0)])],2),r.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",yl,[e.renderSlot(r.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(F.BackTop),{target:i,style:e.normalizeStyle({bottom:d.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Cl,[e.createVNode(e.unref(W.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-ee7895be"]])),_l={class:"hb_edit_header_left"},kl={class:"hb_edit_header_title"},Ll={class:"hb_edit_header_right"},Sl=ee(D(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:o}=Y.useI18n(),l=t,i=ce.useRoute(),c=e.ref(0),d=e.computed(()=>i?.meta?.title||"");function r(p,T="offsetHeight"){let N=0;return(Array.isArray(p)?p:[p]).forEach(k=>{let g=[];if(k.startsWith("#")){const _=document.getElementById(k.slice(1));_&&g.push(_)}else g=Array.from(document.getElementsByClassName(k));g.forEach(_=>{N+=_[T]||0})}),N}const m=()=>{l.topElements&&(c.value=r(l.topElements))},n=e.ref(0),a=()=>{l.leftElements&&(n.value=r(l.leftElements,"offsetWidth")+1)};let h=null;e.onMounted(()=>{m(),a(),window.addEventListener("resize",m),h=new MutationObserver(()=>{a()});const p=document.body;h.observe(p,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",m),h&&h.disconnect()}),e.watch(()=>l.topElements,()=>{m()},{immediate:!0});const C=()=>{l.backFn?l.backFn():window.history.back()};return(p,T)=>{const N=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:c.value+"px","--pageHeaderOrFonterLeft":n.value+"px"})},[e.createElementVNode("aside",_l,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:C},e.toDisplayString(e.unref(o)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(N,{type:"vertical"}),e.createElementVNode("span",kl,e.toDisplayString(d.value),1)]),e.createElementVNode("aside",Ll,[e.renderSlot(p.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]]));let we={...mo,...fo,...ko,...zo,...Mo,...Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Xo,HbLibCard:Ko,HbLibDetailBox:ml,HbLibFooterBar:pl,HbLibModal:hl,HbLibPageHeader:Sl,HbLibUnDetailBox:ul},Symbol.toStringTag,{value:"Module"}))};const Q=new Map;let Be;X.isClient&&(document.addEventListener("mousedown",t=>Be=t),document.addEventListener("mouseup",t=>{for(const o of Q.values())for(const{documentHandler:l}of o)l(t,Be)}));function Te(t,o){let l=[];return Array.isArray(o.arg)?l=o.arg:o.arg instanceof HTMLElement&&l.push(o.arg),function(i,c){const d=o.instance.popperRef,r=i.target,m=c?.target,n=!o||!o.instance,a=!r||!m,h=t.contains(r)||t.contains(m),C=t===r,p=l.length&&l.some(N=>N?.contains(r))||l.length&&l.includes(m),T=d&&(d.contains(r)||d.contains(m));n||a||h||C||p||T||o.value(i,c)}}const xl={beforeMount(t,o){Q.has(t)||Q.set(t,[]),Q.get(t).push({documentHandler:Te(t,o),bindingFn:o.value})},updated(t,o){Q.has(t)||Q.set(t,[]);const l=Q.get(t),i=l.findIndex(d=>d.bindingFn===o.oldValue),c={documentHandler:Te(t,o),bindingFn:o.value};i>=0?l.splice(i,1,c):l.push(c)},unmounted(t){Q.delete(t)}},wl={mounted(t,o){const{value:l,arg:i}=o;if(console.log(o),typeof l!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const c=parseInt(i,10)||300;let d;t.__debounceHandler__=function(...r){d&&clearTimeout(d),d=setTimeout(()=>{l(...r)},c)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},Ne=(t,o)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const l=e.createApp(xe,{cpText:o});l.mount(t._dynamicContainer),t._dynamicApp=l,t._dynamicPrevValue=o},Bl={cos:xl,dc:wl,icp:{mounted(t,o){if(!t._dynamicContainer){const l=document.createElement("div");l.style.display="inline-flex",l.style.alignItems="center",l.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(l,t.nextSibling),t._dynamicContainer=l}Ne(t,o.value)},updated(t,o){o.value!==t._dynamicPrevValue&&Ne(t,o.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}},Tl={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"}}},Nl={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:"戻る"}}},Fl={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:"加载中...如长时间加载请重试!"}}},Vl={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 ie={exports:{}},El=ie.exports,Fe;function Hl(){return Fe||(Fe=1,(function(t,o){(function(l,i){t.exports=i(ne)})(El,(function(l){function i(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var c=i(l),d={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(r,m){return m==="W"?r+"周":r+"日"},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(r,m){var n=100*r+m;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return c.default.locale(d,null,!0),d}))})(ie)),ie.exports}Hl(),ne.locale("zh-cn");const $l={en_US:Tl,ja_JP:Nl,zh_CN:Fl,de_DE:Vl},Il=function(t,o={}){t.provide("globalCompConfig",o||{}),Object.keys(we).forEach(i=>{t.use(we[i])}),Object.entries(Bl).forEach(([i,c])=>{t.directive(i,c)})};R.install=Il,R.locales=$l,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));