@hb-hellotech/hb-ui 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts +3 -3
  3. package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.d.ts +1 -1
  4. package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/type.d.ts +2 -2
  5. package/dist/components/business_comp/list_page_comp/index.d.ts.map +1 -1
  6. package/dist/components/business_comp/unlist_page_comp/index.d.ts +1 -1
  7. package/dist/components/business_comp/unlist_page_comp/index.d.ts.map +1 -1
  8. package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
  9. package/dist/components/func_comp/hb_func_file_preview/index.d.ts +0 -1
  10. package/dist/components/func_comp/hb_func_file_preview/index.d.ts.map +1 -1
  11. package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts.map +1 -1
  12. package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts +43 -0
  13. package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts.map +1 -0
  14. package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts +44 -0
  15. package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts.map +1 -0
  16. package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts +4 -0
  17. package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts.map +1 -0
  18. package/dist/components/func_comp/index.d.ts +1 -1
  19. package/dist/components/func_comp/index.d.ts.map +1 -1
  20. package/dist/components/hooks/index.d.ts +6 -0
  21. package/dist/components/hooks/index.d.ts.map +1 -0
  22. package/dist/components/hooks/useFilePreview.d.ts +1 -1
  23. package/dist/components/hooks/useFilePreview.d.ts.map +1 -1
  24. package/dist/components/utils/triggerBrowserDownload.d.ts +5 -0
  25. package/dist/components/utils/triggerBrowserDownload.d.ts.map +1 -1
  26. package/dist/components/utils/util.d.ts +24 -0
  27. package/dist/components/utils/util.d.ts.map +1 -1
  28. package/dist/demo/HbFileViewSafe.d.ts +4 -0
  29. package/dist/demo/HbFileViewSafe.d.ts.map +1 -0
  30. package/dist/hb_component_lib.css +1 -1
  31. package/dist/hb_component_lib.js +2331 -2113
  32. package/dist/hb_component_lib.umd.cjs +3 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/hooks/useFilePreview.ts +183 -0
  36. package/hooks/useListFormItem.ts +27 -27
  37. package/hooks/useModalDrag.ts +65 -59
  38. package/package.json +87 -81
  39. package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts +0 -10
  40. package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts.map +0 -1
  41. package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts +0 -17
  42. package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts.map +0 -1
@@ -1 +1,3 @@
1
- (function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.HbComponentLib={},D.Vue,D.draggable,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.iconsVue,D.core,D.dayjs))})(this,(function(D,e,ne,H,ce,K,Z,Y,v,ae){"use strict";const de=(t="")=>{const l=`hb-${t}`;return at(l)},ee=(t,l,o,n)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),n&&(t+=`--${n}`),t),at=t=>({b:l=>l?ee(t,l,"",""):ee(t,"","",""),e:l=>l?ee(t,"",l,""):"",m:l=>ee(t,"","",l),be:(l,o)=>ee(t,l,o,""),em:(l,o)=>ee(t,"",l,o),bem:(l,o,n)=>ee(t,l,o,n),is:(l,o)=>o?`is-${l}`:""}),it=["onMouseenter","onMouseleave"],rt=["onClick"],st=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),a=K.useI18n().t,s=K.useI18n().messages.value.en_US,c=K.useI18n().messages.value.ja_JP,f=K.useI18n().messages.value.zh_CN,r=t,i=e.computed(()=>r.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),p=e.computed(()=>r.title||a("hbLibComp.hbFormItemFilterModal.title")),h=o,d=de("sfcm"),F=ce.useRoute(),S=e.reactive({lan:window.localStorage.getItem("lan")}),$=e.ref(!1),V=e.ref(600);let k=[];const y=e.ref([]),_=e.ref([]),x=e.computed(()=>y.value.every(b=>b.isLinked||b.isFixed)),C=b=>({...b,label:L(b)||`${B(b)||""} (${a("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:b.key,isFixed:b?.isFixed||!1,isLinked:b?.isLinked||!1,labelLanguage:b?.labelLanguage||void 0}),u=b=>{const I=b.draggedContext.element,T=b.relatedContext.index;if(I.isLinked||I.isFixed)return!1;const U=y.value.map((q,Q)=>({item:q,index:Q})).filter(({item:q})=>q.isLinked).map(({index:q})=>q);if(U.length===0)return!0;for(let q=0;q<U.length-1;q++){const Q=U[q],te=U[q+1];if(T>Q&&T<te)return!1}return!0},m=e.computed(()=>g()+"_"+r.saveKey),g=()=>{const b=localStorage.getItem("pro__Login_Userinfo");let I="anonymous";if(b)try{I=JSON.parse(b).value.jobNumber||"anonymous"}catch(U){console.warn("解析用户信息失败:",U)}let T=F?.path;return`searchFormConfig_${I}_${T}`},L=b=>({ja_JP:()=>Z.get(c,b.labelLanguage||""),en_US:()=>Z.get(s,b.labelLanguage||""),zh_CN:()=>Z.get(f,b.labelLanguage||"")})[S.lan]?.()||b.label,B=b=>({ja_JP:()=>Z.get(c,b.subLabelLanguage||""),en_US:()=>Z.get(s,b.subLabelLanguage||""),zh_CN:()=>Z.get(f,b.subLabelLanguage||"")})[S.lan]?.()||b.subLabel,A=()=>{try{const b=localStorage.getItem(m.value);if(b){const I=JSON.parse(b);if(I.originalList&&Array.isArray(I.originalList)){k=JSON.parse(JSON.stringify(I.originalList));const T=k.filter(M=>M?.isFixed),U=k.filter(M=>M?.isLinked),q=I.showList.filter(M=>!M.isFixed&&!M.isLinked),Q=i.value&&i.value>0?Math.max(0,i.value-T.length-U.length):q.length,te=T.map(M=>({...C(M)})),se=U.map(M=>({...C(M)})),he=q.slice(0,Q).map(M=>({...C(M)}));y.value=[...te,...se,...he];const ge=y.value.map(M=>M.key),ye=k.map(M=>M.key).filter(M=>!ge.includes(M));return _.value=k.filter(M=>ye.includes(M.key)).map(M=>({...C(M),active:!1})),!0}}}catch(b){console.warn("加载保存的搜索配置失败:",b)}return!1},W=()=>{try{const b={originalList:k,showList:y.value.map(I=>({...I,key:I.key,label:I.label,isFixed:I.isFixed,isLinked:I.isLinked,labelLanguage:I?.labelLanguage||void 0}))};localStorage.setItem(m.value,JSON.stringify(b))}catch(b){console.warn("保存搜索配置失败:",b)}},N=e.computed(()=>{const b=y.value.filter(T=>!T.isFixed&&!T.isLinked).length,I=y.value.filter(T=>T.isFixed||T.isLinked).length;return b>=i.value-I});e.watch(()=>r.list,b=>{let I=JSON.stringify(y.value)!==JSON.stringify(b);if(!I)return;const T=localStorage.getItem(m.value),U=JSON.parse(T||"{}");if(U&&U?.originalList&&Array.isArray(U.originalList))A(),h("confirm",y.value);else if(I){k=JSON.parse(JSON.stringify(b));const q=b.filter(M=>M?.isFixed),Q=b.filter(M=>M?.isLinked),te=b.filter(M=>!M?.isFixed&&!M?.isLinked),se=i.value&&i.value>0?Math.max(0,i.value-q.length-Q.length):te.length,he=q.map(M=>C(M)),ge=Q.map(M=>C(M)),nt=te.slice(0,se).map(M=>C(M));y.value=[...he,...ge,...nt];const ye=te.slice(se).map(M=>({...C(M),active:!1}));_.value=ye,h("confirm",y.value)}},{immediate:!0});const w=b=>{const I=y.value.findIndex(T=>T.key===b.key);I!==-1&&(y.value.splice(I,1),_.value.push({...b,active:!1}))},E=b=>{if(N.value){H.message.warning(`当前已经超过${a(i.value)}个可选数量,请先删除已显示条件`);return}const I=_.value.findIndex(T=>T.key===b.key);if(I!==-1){const[T]=_.value.splice(I,1);y.value.push({...T,active:!1})}},z=()=>{$.value=!1},P=()=>{$.value=!0},j=()=>{W(),h("confirm",y.value),z()},J=b=>{const I=_.value.findIndex(T=>T.key===b.key);I!==-1&&(_.value[I].active=!0)},G=b=>{const I=_.value.findIndex(T=>T.key===b.key);I!==-1&&(_.value[I].active=!1)};return l({toOpenModal:P}),e.onMounted(()=>{}),(b,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d).b())},[e.createVNode(e.unref(H.Modal),{visible:$.value,"onUpdate:visible":I[1]||(I[1]=T=>$.value=T),width:V.value,onCancel:z,onOk:j},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("title"))},e.toDisplayString(p.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(H.Button),{onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(H.Button),{type:"primary",onClick:j},{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(d).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("show__tag"))},[e.createVNode(e.unref(ne),{modelValue:y.value,"onUpdate:modelValue":I[0]||(I[0]=T=>y.value=T),"item-key":"key",tag:"div",disabled:x.value,move:u},{item:e.withCtx(({element:T})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(d).e("show__tag__item"),e.unref(d).is("fixed",T.isFixed),e.unref(d).is("linked",T.isLinked)])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),!T.isFixed&&!T.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Y.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(d).e("show__tag__item-close")),onClick:U=>w(T)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(d).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("unshow__tag"))},[_.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(_.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.key,class:e.normalizeClass([e.unref(d).e("unshow__tag__item"),e.unref(d).is("fixed",T.isFixed||""),e.unref(d).is("linked",T.isLinked||"")]),onMouseenter:U=>J(T),onMouseleave:U=>G(T)},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),T.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(d).e("unshow__tag__item-add")),onClick:U=>E(T)},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.add")),11,rt)):e.createCommentVNode("",!0)],42,it))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(d).e("unshow__tag__empty"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),R=(t,l)=>{const o=t.__vccOpts||t;for(const[n,a]of l)o[n]=a;return o},ct=R(st,[["__scopeId","data-v-657502f3"]]);function O(t){const l=t;return l.install=o=>{const n=t.name;o.component(n??"AnonymousComponent",t)},l}const ue=O(ct),dt={key:0,class:"form-footer"},Ce=O(R(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),a=o,s=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>r.searchList||[]),f=de("form"),r=t,i=e.computed(()=>r.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),p=e.ref("show"),h=e.computed(()=>r.needFooter||n.HbLibListForm?.needFooter),d=e.computed(()=>[...r.items]),F=N=>N!==void 0,S=N=>typeof N=="function",$=N=>F(N.condition)?S(N.condition)?N.condition():N.condition:!0,V=e.computed(()=>[...r.items].map(N=>({...N,condition:$(N),label:N.label?.includes("多项搜索")?"":N.label})));console.log(V.value);const k=e.computed(()=>r.saveKey),y=e.ref(),_=()=>{a("handleSearch")},x=()=>{a("handleReset")},C=e.ref(),u=()=>{C.value&&C.value.toOpenModal()},m=N=>{a("handleMenuClick",N)},g=N=>{a("handleSfcmConfirm",N)};e.watch(()=>r.isFormExpanded,N=>{if(N){console.log(N);const w=document.querySelector("#subpackage_container");w instanceof HTMLElement&&(w.style.overflow="hidden",setTimeout(()=>{w.style.overflow="auto"},500))}});const L=N=>{const w=N;w.style.height="",w.offsetHeight},B=N=>{const w=N;w.style.height="",w.style.overflow="",e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})},A=N=>{const w=N,E=w.querySelector(".hb-lib-form--container");if(E){const z=E.offsetHeight;w.style.height=z+"px",w.style.overflow="hidden",w.offsetHeight,requestAnimationFrame(()=>{w.style.height="0"})}},W=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return l({formRef:y,SelectOption:H.SelectOption,Form:H.Form,FormItem:H.FormItem,Row:H.Row,Col:H.Col,Input:H.Input,Select:H.Select,CheckboxGroup:H.CheckboxGroup,Checkbox:H.Checkbox,DatePicker:H.DatePicker,InputNumber:H.InputNumber,RadioGroup:H.RadioGroup,Radio:H.Radio,Switch:H.Switch,Button:H.Button,Tooltip:H.Tooltip}),(N,w)=>{const E=e.resolveComponent("a-button"),z=e.resolveComponent("a-tooltip"),P=e.resolveComponent("a-menu-item"),j=e.resolveComponent("a-menu"),J=e.resolveComponent("a-dropdown"),G=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:L,onAfterEnter:B,onLeave:A,onAfterLeave:W},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box","hb-form-item-ui",h.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(H.Form),e.mergeProps(N.$attrs,{model:t.formData,ref_key:"formRef",ref:y,class:["hb-lib-form--container",p.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(b,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:I},[b.condition?(e.openBlock(),e.createBlock(e.unref(H.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(N.$slots,b.key,{key:0,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="mixin"?e.renderSlot(N.$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(H.Input),e.mergeProps({key:2,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="select"?(e.openBlock(),e.createBlock(e.unref(H.Select),e.mergeProps({key:3,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(T,U)=>(e.openBlock(),e.createBlock(e.unref(H.SelectOption),{key:U,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(H.CheckboxGroup),e.mergeProps({key:4,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(T,U)=>(e.openBlock(),e.createBlock(e.unref(H.Checkbox),{key:U,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(H.DatePicker),e.mergeProps({key:5,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(H.InputNumber),e.mergeProps({key:6,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="radio"?(e.openBlock(),e.createBlock(e.unref(H.RadioGroup),e.mergeProps({key:7,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(T,U)=>(e.openBlock(),e.createBlock(e.unref(H.Radio),{key:U,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="switch"?(e.openBlock(),e.createBlock(e.unref(H.Switch),e.mergeProps({key:8,checked:t.formData[b.key],"onUpdate:checked":T=>t.formData[b.key]=T},{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(H.Tooltip),{title:b.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",dt,[e.createVNode(E,{type:"primary",onClick:_,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(E,{type:"link",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(z,{key:0,title:N.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:u},[...w[0]||(w[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(J,{key:0},{overlay:e.withCtx(()=>[e.createVNode(j,{onClick:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createBlock(P,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(P,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(P,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(z,{title:N.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...w[1]||(w[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"]),h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(N.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[p.value=="show"?e.renderSlot(N.$slots,"form-footer-right",{key:0,formRef:y.value},()=>[e.createVNode(E,{type:"primary",onClick:_,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(E,{type:"link",onClick:x,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(z,{key:0,title:N.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:u},[...w[2]||(w[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(J,{key:0},{overlay:e.withCtx(()=>[e.createVNode(j,{onClick:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createBlock(P,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(P,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(P,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(z,{title:N.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...w[3]||(w[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(G,{showNumber:i.value,list:d.value,ref_key:"HbSfCmRef",ref:C,onConfirm:g,saveKey:k.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-8307bb07"]])),mt={class:"hb-lib-list-page-act-box"},pt={class:"hb-lib-list-page-breadcrumb"},ft={class:"hb-lib-list-page-act"},bt={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"},ht={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"},ke=O(R(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:n,toggle:a}=v.useFullscreen(document.body);e.watch(()=>n.value,r=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const p=new Map;setTimeout(r?()=>{if(i?.length)for(let h=0;h<i.length;h++){const d=document.querySelector(i[h]);d&&(p.set(i[h],d.style.display),d.style.display="none")}}:()=>{if(i?.length)for(let h=0;h<i.length;h++){const d=document.querySelector(i[h]);if(d){const F=p.get(i[h]);d.style.display=F||"",p.delete(i[h])}}},0)});const s=e.ref(""),c=()=>{const r=ce.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",p=r?.path;if(i!=="[]"){let h=JSON.parse(i).find(d=>d.value===p);h&&(s.value=h.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const f=r=>{r.keyCode===192&&a()};return e.onMounted(()=>{window.addEventListener("keydown",f)}),e.onUnmounted(()=>{window.removeEventListener("keydown",f)}),(r,i)=>{const p=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",mt,[e.createElementVNode("aside",pt,e.toDisplayString(s.value),1),e.createElementVNode("aside",ft,[e.createVNode(p,{title:e.unref(n)?`${r.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${r.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...h)=>e.unref(a)&&e.unref(a)(...h))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",ht,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",bt,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(r.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),gt={class:"hb-lib-list-btns-box"},yt={class:"hb-lib-list-btns-left"},ut={class:"hb-lib-list-btns-right"},_e=O(R(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,n=e.ref(!0),a=()=>{n.value=!n.value,o("handleOpenOrClose",n.value)},s=()=>{o("handleReload")},c=f=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(f,r)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",gt,[e.createElementVNode("aside",yt,[e.renderSlot(f.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",ut,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:f.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:s},[...r[0]||(r[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:n.value?`${f.$t("hbLibComp.hbListBtnsAct.close")}`:`${f.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:a},[n.value?(e.openBlock(),e.createBlock(e.unref(Y.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Y.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Ct=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:n=300,timeOut:a=100}=t,s=e.ref(0);let c=null,f=null,r=null,i=null,p=null;const h=()=>{p&&clearTimeout(p),p=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const y=document.querySelector(".ant-table"),_=document.querySelector(".ant-pagination");if(y){const x=Math.floor(y.getBoundingClientRect().top),C=window.innerHeight,m=(_?_.offsetHeight+20:40)+o;let g=C-x-m;g<n&&(g=n),s.value=g}})})},100)},d=()=>{const y=document.querySelector(".ant-pagination");if(y){const _=new MutationObserver(()=>{h()});return _.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),_}return null},F=()=>{const y=document.querySelector(".hb-lib-list-page-form-box");y&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(x=>{x.style.display="none"}),h()}),c.observe(y))},S=()=>{const y=document.querySelector(".hb-lib-list-page-form-box");y&&(r=new MutationObserver(()=>{setTimeout(()=>{h()},a)}),r.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},$=()=>{i&&clearTimeout(i),i=setTimeout(()=>{h()},a)},V=()=>{window.addEventListener("resize",$),e.nextTick(()=>{F(),S(),f=d()})},k=()=>{window.removeEventListener("resize",$),c&&c.disconnect(),r&&r.disconnect(),f&&f.disconnect(),i&&clearTimeout(i),p&&clearTimeout(p)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{h()},200)},{deep:!0}),e.onMounted(()=>{h(),V()}),e.onUnmounted(()=>{k()}),{tableHeight:s,calTableHeight:h}},we=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=v.useFullscreen(document.body),n=t,a=e.useTemplateRef("PageContainerRef"),s=e.computed(()=>n.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>n.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),f=e.computed(()=>n.minHeight||l.HbLibListPageContainer?.minHeight||300),r=e.computed(()=>n.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>n.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(n.isUnFixTbHeight);const{calTableHeight:p,tableHeight:h}=Ct({offsetBottom:c.value,minHeight:f.value,timeOut:r.value}),d=e.computed(()=>h.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:a,tableHeight:h,calTableHeight:p}),(F,S)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:a},[e.renderSlot(F.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?d.value-s.value+"px":d.value-c.value+"px","--hb-list-ttable-height":t.tabelData.length?"":e.unref(o)?d.value-s.value+"px":d.value-c.value+"px"})},[e.renderSlot(F.$slots,"default")],4)],512))}})),kt={style:{"font-weight":"500"}},_t={key:0,class:"hb-lib-search-tag__description"},wt={class:"hb-lib-selector-dropdown"},Lt={class:"hb-lib-selector-search"},St={class:"hb-lib-selector-list"},xt=["onClick"],Bt={class:"hb-lib-option-content"},Nt={class:"hb-lib-option-label"},Tt={key:0,class:"hb-lib-selector-empty"},Vt={key:1,class:"hb-lib-selector-footer"},Ft={class:"hb-lib-footer-buttons"},Et={key:2,class:"hb-lib-selector-footer"},Ht={class:"hb-lib-footer-buttons"},Le=O(R(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,n=l,a=e.useModel(t,"value"),s=e.ref(!1),c=e.ref(""),f=e.ref([]),r=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!c.value)return o.options;const C=c.value.toLowerCase();return o.options.filter(u=>u.label.toLowerCase().includes(C)||u.description?.toLowerCase().includes(C))}),p=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),h=e.computed(()=>i.value.length===0?!1:i.value.every(C=>f.value.includes(C.value))),d=e.computed(()=>{if(i.value.length===0)return!1;const C=i.value.filter(u=>f.value.includes(u.value)).length;return C>0&&C<i.value.length});e.watch(()=>a.value,C=>{C?f.value=Array.isArray(C)?[...C]:[C]:f.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,C=>{o.remoteSearch&&C!==void 0&&(c.value=C)},{immediate:!0});const F=C=>{C&&(s.value=C,S.value=[...f.value],c.value="",setTimeout(()=>{if(r.value){const u=r.value.input||r.value.$el?.querySelector("input");u&&u.focus()}},100))},S=e.ref([]),$=()=>{f.value=[...S.value],s.value=!1,n("cancel")},V=e.ref([]),k=()=>{const C=o.multiple?f.value:f.value[0]||"",u=o.options.filter(m=>f.value.includes(m.value));V.value=u,console.log(C,u),S.value=[...f.value],a.value=C,n("update:value",C),n("change",C,u),n("confirm",C,u),s.value=!1},y=v.useDebounceFn(C=>{const u=C!==void 0?C:c.value;o.remoteSearch&&(n("search",u),n("update:searchValue",u))},300),_=C=>{if(o.multiple){const u=new Set(f.value);u.has(C.value)?u.delete(C.value):u.add(C.value),f.value=Array.from(u)}else f.value=[C.value],k()},x=C=>{if(C.target.checked){const m=new Set(f.value);i.value.forEach(g=>{m.add(g.value)}),f.value=Array.from(m)}else{const m=new Set(i.value.map(g=>g.value));f.value=f.value.filter(g=>!m.has(g))}};return(C,u)=>{const m=e.resolveComponent("a-tag"),g=e.resolveComponent("a-input"),L=e.resolveComponent("a-checkbox"),B=e.resolveComponent("a-radio"),A=e.resolveComponent("a-button"),W=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":p.value}},C.$attrs),[e.createVNode(W,{value:a.value,"onUpdate:value":u[5]||(u[5]=N=>a.value=N),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:s.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:F,onSearch:e.unref(y),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:N,label:w,closable:E,option:z})=>[e.createVNode(m,{class:"hb-lib-search-tag",onClick:u[0]||(u[0]=()=>F(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",kt,e.toDisplayString(w),1),z?.description?(e.openBlock(),e.createElementBlock("span",_t," ("+e.toDisplayString(z.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:N})=>[e.createElementVNode("div",wt,[e.createElementVNode("div",Lt,[e.createVNode(g,{ref_key:"searchInputRef",ref:r,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":u[1]||(u[1]=w=>c.value=w),placeholder:"请输入关键词搜索","allow-clear":"",onInput:u[2]||(u[2]=w=>e.unref(y)(w.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,w=>(e.openBlock(),e.createElementBlock("div",{key:w.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:f.value.includes(w.value)}]),onClick:()=>_(w)},[t.multiple?(e.openBlock(),e.createBlock(L,{key:0,checked:f.value.includes(w.value),onChange:()=>_(w),onClick:u[3]||(u[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(B,{key:1,checked:f.value.includes(w.value),onChange:()=>_(w),onClick:u[4]||(u[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Bt,[e.createElementVNode("div",Nt,e.toDisplayString(w.label),1)])],10,xt))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(L,{checked:h.value,indeterminate:d.value,onChange:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Ft,[e.createVNode(A,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(A,{type:"primary",size:"small",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Et,[u[6]||(u[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ht,[e.createVNode(A,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$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"]])),$t={class:"hb-lib-form-item-filter-modal-search"},It={class:"hb-lib-form-item-filter-modal-buttons"},Dt={key:0},Se=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:l,emit:o}){const n=t,a=o,s=e.ref(!1),c=e.ref(""),f=e.ref(),r=e.ref(),i=e.ref([]),p=e.ref([]),h=e.ref(),d=e.reactive({searchText:"",searchedColumn:""}),F=e.computed(()=>n.tableData.map(m=>(m.id=m.id||Math.random(),m))),S=e.computed(()=>n.tableColumn.map(m=>(m.customFilterDropdown&&(m.onFilter=(g,L)=>L[m.dataIndex].toString().toLowerCase().includes(g.toLowerCase()),m.onFilterDropdownVisibleChange=g=>{g&&setTimeout(()=>{f.value?.focus()},100)}),{...m}))),$=()=>{let m="";p.value.forEach(g=>{m=m+g[n.labelKey]+","}),c.value=m.substring(0,m.length-1),s.value=!1,a("handleConfirm",p.value)},V=()=>{s.value=!1},k=()=>{s.value=!0,e.nextTick(()=>{const m=h.value?.$el?.querySelector(".ant-table-body");m&&(m.scrollTop=0)})},y=()=>{i.value=[],p.value=[]},_=()=>{c.value="",y()},x=(m,g,L)=>{g(),d.searchText=m[0],d.searchedColumn=L},C=(m,g)=>{m({confirm:!0}),d.searchText="",g()},u=(m,g)=>{i.value=m,p.value=g};return l({resetInputVal:_}),(m,g)=>{const L=e.resolveComponent("a-input"),B=e.resolveComponent("a-button"),A=e.resolveComponent("a-table"),W=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:r},[e.createVNode(L,{readonly:"",onClick:k,value:c.value,"onUpdate:value":g[0]||(g[0]=N=>c.value=N),placeholder:m.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Y.UnorderedListOutlined),{onClick:k})]),_:1},8,["value","placeholder"]),e.createVNode(W,{visible:s.value,"onUpdate:visible":g[1]||(g[1]=N=>s.value=N),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(B,{onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(B,{onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(B,{type:"primary",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{ref_key:"tableRef",ref:h,columns:S.value,dataSource:F.value,rowSelection:{selectedRowKeys:i.value,onChange:u},rowKey:N=>N[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:N,selectedKeys:w,confirm:E,clearFilters:z,column:P})=>[e.createElementVNode("div",$t,[e.createVNode(L,{ref_key:"searchInput",ref:f,placeholder:`请输入${P.title}`,value:w[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:j=>N(j.target.value?[j.target.value]:[]),onPressEnter:j=>x(w,E,P.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",It,[e.createVNode(B,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:j=>C(z,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(B,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:j=>x(w,E,P.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:N})=>[e.createVNode(e.unref(Y.SearchOutlined),{style:e.normalizeStyle({color:N?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:N,column:w})=>[d.searchText&&d.searchedColumn===w.dataIndex?(e.openBlock(),e.createElementBlock("span",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.toString().split(new RegExp(`(?<=${d.searchText})|(?=${d.searchText})`,"i")),(E,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[E.toLowerCase()===d.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:z,class:"highlight"},e.toDisplayString(E),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(E),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Mt={class:"hb-lib-table-act-box"},At=["onClick"],zt={href:"javascript:;",class:"hb-lib-table-main-action"},Ot=["onClick"],Pt={href:"javascript:;",class:"hb-lib-table-more-action"},Ut=["onClick"],Rt={href:"javascript:;"},jt=["onClick"],Wt={class:"hb-lib-table-confirm-modal-content"},xe=O(R(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:n}=K.useI18n(),a=e.ref(!1),s=e.ref(!1),c=e.ref(null),f=e.computed(()=>o.actions.filter(V=>V.condition!==void 0?V.condition:!0)),r=e.computed(()=>f.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>p(f.value.slice(o.buttonDisplaysQuantity)));function p(V){if(o.filterPermission)return o.filterPermission(V);let k=[],y=[];return k=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(k)||V.length===0?(k=[],[]):(k=k.filter(_=>_.type!="2"),V.forEach(_=>{(!_.permissionsTag||k.findIndex(x=>x.action===_.permissionsTag)!==-1)&&y.push(_)}),y)}const h=V=>{V.handler&&V.handler(o.record)},d=V=>{c.value=V,a.value=!0},F=()=>{if(c.value){s.value=!0;try{h(c.value),s.value=!1,a.value=!1}catch{s.value=!1}}},S=()=>{a.value=!1,c.value=null},$=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:H.Dropdown,AMenu:H.Menu,AMenuItem:H.MenuItem,APopconfirm:H.Popconfirm,AModal:H.Modal,DownOutlined:Y.DownOutlined}),(V,k)=>{const y=e.resolveComponent("a-divider"),_=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(x,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[x.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:u=>d(x),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(x.label),1)],8,At)),[[_,x.permissionsTag||null]]),i.value&&i.value.length>0||C!==r.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(H.Popconfirm),{title:x.confirmTitle,onConfirm:u=>h(x)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",zt,[e.createTextVNode(e.toDisplayString(x.label),1)])),[[_,x.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||C!==r.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):x.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(V.$slots,x.slot,{item:x},void 0,!0),i.value&&i.value.length>0||C!==r.value.length-1?(e.openBlock(),e.createBlock(y,{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:u=>h(x),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(x.label),1)],8,Ot)),[[_,x.permissionsTag||null]]),i.value&&i.value.length>0||C!==r.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(y,{key:0,type:"vertical"},null,512)),[[_,x.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(H.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(H.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(x,C)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(H.MenuItem),{key:C},{default:e.withCtx(()=>[x.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:u=>d(x)},[e.createTextVNode(e.toDisplayString(x.label),1)],8,Ut)),[[_,x.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(H.Popconfirm),{key:1,title:x.confirmTitle,onConfirm:u=>h(x)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Rt,[e.createTextVNode(e.toDisplayString(x.label),1)])),[[_,x.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[_,x.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:u=>h(x)},[e.createTextVNode(e.toDisplayString(x.label),1)],8,jt)),[[_,x.permissionsTag||null]])]),_:2},1024)),[[_,x.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Pt,[e.createTextVNode(e.toDisplayString(V.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Y.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(H.Modal),{visible:a.value,title:$.value.title,"confirm-loading":s.value,onOk:F,onCancel:S},{default:e.withCtx(()=>[e.createElementVNode("p",Wt,e.toDisplayString($.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Be=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,a)=>n+a,0)})});var qt=typeof global=="object"&&global&&global.Object===Object&&global,Yt=typeof self=="object"&&self&&self.Object===Object&&self,Ne=qt||Yt||Function("return this")(),ie=Ne.Symbol,Te=Object.prototype,Kt=Te.hasOwnProperty,Gt=Te.toString,oe=ie?ie.toStringTag:void 0;function Jt(t){var l=Kt.call(t,oe),o=t[oe];try{t[oe]=void 0;var n=!0}catch{}var a=Gt.call(t);return n&&(l?t[oe]=o:delete t[oe]),a}var Xt=Object.prototype,Qt=Xt.toString;function Zt(t){return Qt.call(t)}var vt="[object Null]",eo="[object Undefined]",Ve=ie?ie.toStringTag:void 0;function to(t){return t==null?t===void 0?eo:vt:Ve&&Ve in Object(t)?Jt(t):Zt(t)}function oo(t){return t!=null&&typeof t=="object"}var lo="[object Symbol]";function no(t){return typeof t=="symbol"||oo(t)&&to(t)==lo}var ao=/\s/;function io(t){for(var l=t.length;l--&&ao.test(t.charAt(l)););return l}var ro=/^\s+/;function so(t){return t&&t.slice(0,io(t)+1).replace(ro,"")}function me(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Fe=NaN,co=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,po=/^0o[0-7]+$/i,fo=parseInt;function Ee(t){if(typeof t=="number")return t;if(no(t))return Fe;if(me(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=me(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=so(t);var o=mo.test(t);return o||po.test(t)?fo(t.slice(2),o?2:8):co.test(t)?Fe:+t}var pe=function(){return Ne.Date.now()},bo="Expected a function",ho=Math.max,go=Math.min;function He(t,l,o){var n,a,s,c,f,r,i=0,p=!1,h=!1,d=!0;if(typeof t!="function")throw new TypeError(bo);l=Ee(l)||0,me(o)&&(p=!!o.leading,h="maxWait"in o,s=h?ho(Ee(o.maxWait)||0,l):s,d="trailing"in o?!!o.trailing:d);function F(u){var m=n,g=a;return n=a=void 0,i=u,c=t.apply(g,m),c}function S(u){return i=u,f=setTimeout(k,l),p?F(u):c}function $(u){var m=u-r,g=u-i,L=l-m;return h?go(L,s-g):L}function V(u){var m=u-r,g=u-i;return r===void 0||m>=l||m<0||h&&g>=s}function k(){var u=pe();if(V(u))return y(u);f=setTimeout(k,$(u))}function y(u){return f=void 0,d&&n?F(u):(n=a=void 0,c)}function _(){f!==void 0&&clearTimeout(f),i=0,n=r=a=f=void 0}function x(){return f===void 0?c:y(pe())}function C(){var u=pe(),m=V(u);if(n=arguments,a=this,r=u,m){if(f===void 0)return S(r);if(h)return clearTimeout(f),f=setTimeout(k,l),F(r)}return f===void 0&&(f=setTimeout(k,l)),c}return C.cancel=_,C.flush=x,C}const yo={key:0,class:"hb-lib-list-table-act"},uo={class:"empty-container"},Co={key:1},ko={key:2},$e=O(R(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),n=l,{t:a}=K.useI18n(),s=t,c=e.ref([]),f=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:r}=Be(c),i=e.ref(r.value),p=e.computed(()=>s.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,k=>{const y=k.filter(x=>x!=null&&x.checked);c.value=y.map(x=>{let C={...x,title:x.title||x.label,align:x.align||o.listTable?.align||"center"};C.ellipsis&&!C.needTooltip&&(C.needTooltip=!0);let u=s.defaultWidth||o.listTable?.defaultColWidth||150;if(!C.width)C.width=u;else if(typeof C.width=="string"){const m=parseInt(C.width,10);C.width=isNaN(m)?u:m}return C.resizable===void 0&&(C.resizable=!0),C});const{tableWidth:_}=Be(c);i.value=_.value},{immediate:!0,deep:!0});const h=He(()=>{n("resizeCol",c)},o.listTable?.colSaveTimeOut||800),d=(k,y)=>{if(y){const _=typeof k=="string"?parseInt(k,10):k;y.width=isNaN(_)?o.listTable?.defaultColWidth||150:_,e.nextTick(()=>{h()})}},F=(k,y,_)=>{k?.current&&n("change",k,y,_)},S=(k,y="YYYY-MM-DD HH:mm:ss")=>k?ae(k).format(y):"",$=(k,y)=>k&&y[k]||"",V=(k,y=o.listTable?.ellipsisNumber||20)=>k?k.length>y?`${k.substring(0,y)}...`:k:"";return(k,y)=>{const _=e.resolveComponent("a-empty"),x=e.resolveComponent("a-tooltip"),C=e.resolveComponent("HbLibCopy"),u=e.resolveComponent("a-tag"),m=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":s.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[k.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",yo,[e.renderSlot(k.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(k.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(m,e.mergeProps(k.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:d,onChange:F,scroll:p.value?{x:i.value}:{x:i.value,y:e.unref(f).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",uo,[e.createVNode(_,{description:e.unref(a)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[k.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:g})=>[e.renderSlot(k.$slots,"headerCell",{column:g,title:g.title},()=>[e.createTextVNode(e.toDisplayString(g.title),1)],!0)]),key:"0"}:void 0,k.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:g,record:L,index:B,text:A})=>[e.renderSlot(k.$slots,"bodyCell",{column:g,record:L,index:B,text:A},void 0,!0),g&&g.needTooltip&&!g.needCopy?(e.openBlock(),e.createBlock(x,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[g.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L[g.dataIndex]),1)]),_:2},1032,["placement"])):g&&g.needCopy&&!g.needTooltip?(e.openBlock(),e.createElementBlock("div",Co,[e.createTextVNode(e.toDisplayString(L[g.dataIndex])+" ",1),e.createVNode(C,{"cp-text":L[g.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),g&&g.needTooltip&&g.needCopy?(e.openBlock(),e.createElementBlock("div",ko,[e.createVNode(x,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[g.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(V(L[g.dataIndex],g.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(C,{"cp-text":L[g.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):g&&g.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(S(L[g.dataIndex],g.format)),1)],64)):g&&g.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[$(L[g.dataIndex],g.tags)?(e.openBlock(),e.createBlock(u,{key:0,color:$(L[g.dataIndex],g.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[g.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,k.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:g,index:L})=>[e.renderSlot(k.$slots,"expandedRowRender",{record:g,index:L},void 0,!0)]),key:"2"}:void 0,k.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:g})=>[e.renderSlot(k.$slots,"customFilterDropdown",{column:g},void 0,!0)]),key:"3"}:void 0,k.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:g})=>[e.renderSlot(k.$slots,"customFilterIcon",{column:g},void 0,!0)]),key:"4"}:void 0,k.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:g,record:L,index:B})=>[e.renderSlot(k.$slots,"expandIcon",{expanded:g,record:L,index:B},void 0,!0)]),key:"5"}:void 0,k.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,k.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,k.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),_o={class:"hb-lib-table-setting-box"},wo={key:0,class:"hb-lib-table-drag-item"},Lo={key:0,class:"hb-lib-table-drag-item-act"},So=["onClick"],xo=["onClick"],Bo={class:"hb-lib-table-set-btn-group"},No={class:"select-all-container",style:{"margin-right":"10px"}},Ie=O(R(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:n}=K.useI18n(),a=t,s=e.ref([]),c=e.computed(()=>r.value.filter(u=>u.checked));e.ref([]);const f=e.ref(!1),r=e.ref([]),i=e.ref(null),p=e.computed(()=>c.value.length>0&&c.value.length===s.value.length),h=e.computed(()=>c.value.length>0&&c.value.length<s.value.length),d=u=>{i.value=u.oldIndex},F=u=>{const m=u.newIndex;if(s.value.some(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=s.value.filter(A=>A.fixed==="left").length,B=s.value.length-s.value.filter(A=>A.fixed==="right").length;if((L>0&&m<L||B<s.value.length&&m>=B)&&(H.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const A=r.value.splice(m,1)[0];r.value.splice(i.value,0,A)}}i.value=null},S=u=>{u.target.checked?r.value.forEach(g=>g.checked=!0):r.value.forEach(g=>{g.dataIndex!=="action"&&g.dataIndex!=="actions"&&(g.checked=!1)})},$=()=>{s.value=a.localColumns.map(m=>({...m,label:m.title&&m.title.tag?_(m.title):m.title||m.title2,value:m.dataIndex,checked:m.checked||m.checked===void 0})),r.value=[...s.value];let u=[];a.tableColumns.forEach(function(m){u.push(m.dataIndex)})},V=(u,m)=>{m?u.checked=!0:u.checked=!1},k=()=>{s.value=[...r.value],o("on-get-columns",s.value),f.value=!1},y=()=>{s.value=a.tableColumns.map(m=>({...m,label:m.title&&m.title.tag?_(m.title):m.title||m.title2,value:m.dataIndex,checked:m.checked||m.checked===void 0})),r.value=[...s.value];let u=[];a.tableColumns.forEach(function(m){u.push(m.dataIndex)})},_=u=>u.children[0].text,x=u=>{delete u.fixed;const m=r.value.findIndex(g=>g.value===u.value);if(m!==-1){let g=-1;for(let L=0;L<r.value.length;L++)r.value[L].fixed==="left"&&(g=L);if(g!==-1&&m!==g+1){const L=[...r.value],[B]=L.splice(m,1);L.splice(g+1,0,B),r.value=L}}},C=u=>{const m=r.value.findIndex(g=>g.value===u.value);if(m!==-1){let g=-1;for(let W=0;W<r.value.length;W++)r.value[W].fixed==="left"&&(g=W);const L=[...r.value],[B]=L.splice(m,1);B.fixed="left";const A=g===-1?0:g+1;L.splice(A,0,B),r.value=L}};return e.watch(()=>a.tableColumns,()=>{y()},{immediate:!0,deep:!0}),(u,m)=>{const g=e.resolveComponent("a-tooltip"),L=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",_o,[e.createVNode(e.unref(H.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:f.value,"onUpdate:visible":m[1]||(m[1]=B=>f.value=B)},{content:e.withCtx(()=>[e.createVNode(e.unref(ne),{modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=B=>r.value=B),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:d,onEnd:F},{item:e.withCtx(({element:B})=>[B.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",wo,[e.createVNode(e.unref(H.Checkbox),{checked:B.checked,onChange:A=>V(B,A.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["checked","onChange"]),B.checked?(e.openBlock(),e.createElementBlock("section",Lo,[e.createElementVNode("span",{class:e.normalizeClass(B.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),B.fixed?(e.openBlock(),e.createBlock(g,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:A=>x(B)},[...m[2]||(m[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,So)]),_:2},1024)):e.createCommentVNode("",!0),B.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(g,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:A=>C(B)},[...m[3]||(m[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,xo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Bo,[e.createElementVNode("div",No,[e.createVNode(e.unref(H.Checkbox),{checked:p.value,indeterminate:h.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),a.localColumns.length?(e.openBlock(),e.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(L,{onClick:k,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(g,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...m[4]||(m[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"]])),De=O(R(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,n=e.useAttrs(),a=e.computed(()=>{const S=n,$=S.dropdownClassName;return{...S,dropdownClassName:$??"hb_lib_form_tooltip_select__dropdown"}}),s=e.ref(),c=e.useModel(t,"value"),f=e.computed(()=>o.options??[]),r=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=S=>S.tooltip??S.label,p=S=>S.key??S.label,h=S=>!!(o.enableTooltip&&i(S));return l({focus:()=>{s.value?.focus?.()},blur:()=>{s.value?.blur?.()},selectRef:s}),(S,$)=>(e.openBlock(),e.createBlock(e.unref(H.Select),e.mergeProps({ref_key:"selectRef",ref:s},a.value,{value:c.value,"onUpdate:value":$[0]||($[0]=V=>c.value=V),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[S.$slots.default?e.renderSlot(S.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(f.value,V=>(e.openBlock(),e.createBlock(e.unref(H.SelectOption),e.mergeProps({key:p(V),value:V.value,disabled:V.disabled},{ref_for:!0},V.optionProps),{default:e.withCtx(()=>[h(V)?(e.openBlock(),e.createBlock(e.unref(H.Tooltip),{key:0,title:i(V),placement:o.tooltipPlacement,"overlay-style":r.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(V.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(V.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),To={class:"ant-upload-drag-icon"},Vo={class:"ant-upload-text"},Fo={style:{color:"#ff5000"}},Eo={class:"ant-upload-hint"},Ho={key:0,class:"hb_import_btn"},$o=["href"],Me=O(R(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:l}){const{t:o}=K.useI18n(),n=e.ref(),a=t,s=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),f=d=>{if(d==null)return;const F=c.fileList.indexOf(d);if(F!==-1){const S=c.fileList.slice();S.splice(F,1),c.fileList=S}},r=()=>{c.visible=!1,c.fileList=[],s.value=!1},i=d=>(c.fileList=[d],a.beforeUpload?a.beforeUpload(d.originFileObj):!1),p=()=>{n.value.validateFields().then(()=>{a.beforeSubmit&&(s.value=!0,a.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},h=()=>{c.visible=!0};return l({handleCancel:r,openModal:h,confirmLoading:s}),(d,F)=>{const S=e.resolveComponent("a-upload-dragger"),$=e.resolveComponent("a-form-item"),V=e.resolveComponent("a-form"),k=e.resolveComponent("a-modal"),y=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,e.mergeProps({visible:c.visible,"onUpdate:visible":F[0]||(F[0]=_=>c.visible=_),title:a.title,"confirm-loading":s.value},d.$attrs,{width:a.modalWidth,onCancel:r,onOk:p}),{default:e.withCtx(()=>[e.createVNode(V,{ref_key:"modalFormRef",ref:n,model:c},{default:e.withCtx(()=>[e.createVNode($,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:a.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(S,{"max-count":a.maxCount,multiple:a.multiple,accept:a.acceptFile,name:"file","file-list":c.fileList,"before-upload":i,onRemove:f},{default:e.withCtx(()=>[e.createElementVNode("p",To,[e.createVNode(e.unref(Y.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Vo,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Fo,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Eo,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(a.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),a.templateUrl?(e.openBlock(),e.createElementBlock("p",Ho,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:a.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,$o)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(d.$slots,"btn",{},()=>[e.createVNode(y,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Io={class:"hb_lib_log_modal_content"},Do={class:"log_remark"},Ae=O(R(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:l,emit:o}){const{t:n}=K.useI18n(),a=e.useSlots(),s=t,c=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],f=e.computed(()=>s.columns||c),r=e.computed(()=>s.title||n("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!a.title),p=e.ref(!1),h=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(y,_)=>_[0]+"-"+_[1]+" 总共"+y+"页",total:0}});e.watch(()=>s.pagination,y=>{y&&(h.pagination={...h.pagination,...y})},{deep:!0,immediate:!0});const d=()=>{const y={pageIndex:h.pagination.current,pageSize:h.pagination.pageSize,query:s.params};s.getLogData&&(p.value=!0,s.getLogData(y).then(_=>{Number(_.code)==200?(h.pagination.total=Number(_.data.total),h.list=_.data[s.dataStr]||[]):H.message.error(_.message)}).finally(()=>{p.value=!1}))},F=y=>{h.pagination.current=y.current,h.pagination.pageSize=y.pageSize,d()},S=()=>{h.list=[],k("update:visible",!1)},$=()=>{k("update:visible",!0)},V=(y,_="YYYY-MM-DD HH:mm:ss")=>y?ae(y).format(_):"",k=o;return e.watch(()=>s.visible,y=>{y&&d()}),l({close:S,loading:p}),(y,_)=>{const x=e.resolveComponent("a-tooltip"),C=e.resolveComponent("HbLibCopy"),u=e.resolveComponent("a-table"),m=e.resolveComponent("a-button"),g=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,e.mergeProps(y.$attrs,{visible:t.visible,title:i.value?void 0:r.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:S}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(m,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Io,[e.createVNode(u,{bordered:"",rowKey:"id",columns:f.value,dataSource:h.list,pagination:h.pagination,loading:p.value,scroll:{y:t.scrollY},onChange:F},e.createSlots({bodyCell:e.withCtx(({column:L,record:B})=>[L&&L.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.needTooltip?(e.openBlock(),e.createBlock(x,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B[L.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B[L.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),L&&L.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Do,e.toDisplayString(B[L.dataIndex]),1),e.createVNode(C,{"cp-text":B[L.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),L&&L.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(V(B[L.dataIndex],L.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[y.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:L})=>[e.renderSlot(y.$slots,"headerCell",{column:L},()=>[e.createTextVNode(e.toDisplayString(L.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(y.$slots,"default",{key:0},()=>[e.createVNode(m,{onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Mo={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}},Ao={class:"hb_ui_config"},zo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,n=>{o=e.reactive(Z.merge({},Mo,n))},{deep:!0,immediate:!0}),e.provide(fe,o),(n,a)=>(e.openBlock(),e.createElementBlock("div",Ao,[e.renderSlot(n.$slots,"default")]))}}),fe=Symbol("GLOBAL_CONFIG_KEY"),ze=O(zo),Oo={class:"hb_card"},Po={key:0,class:"hb_card_header"},Uo={class:"hb_fix"},Ro={class:"hb_card_header-title"},jo={class:"hb_card_header-action"},Wo={class:"hb_card_body"},Oe=O(R(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(fe),o=t,n=e.computed(()=>{let a=o.formItemMb||l?.HbLibCard?.formItemMb;return a?{"--hb-card-form-item-mb":a+"px"}:{}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},a.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",Oo,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("div",Uo,[e.createElementVNode("span",Ro,[e.renderSlot(a.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",jo,[e.renderSlot(a.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Wo,[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(n.value)},[e.renderSlot(a.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),qo=["onClick"],Yo={class:"step"},Ko={key:0,class:"line"},Go=["title"],Pe=O(R(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),n=l.offsetTop??160,a=e.computed(()=>l.anchors.filter(r=>typeof r.visible=="function"?r.visible():r.visible!==!1)),s=()=>{const r=l.containerSelector||"#subpackage_container";return document.querySelector(r)||window},c=r=>{const i=s(),p=r.target.startsWith("#")||r.target.startsWith(".")?r.target:`#${r.target}`,h=document.querySelector(p);if(!h)return;let d=h.offsetTop;i instanceof HTMLElement&&(d-=i.offsetTop),d-=n,i instanceof Window?window.scrollTo({top:d,behavior:"smooth"}):i.scrollTo({top:d,behavior:"smooth"}),o.value=r.target},f=()=>{const r=s();let i=0;r instanceof Window?i=window.scrollY+n+5:i=r.scrollTop+n+5;let p=a.value[0]?.target||"";for(const h of a.value){const d=h.target.startsWith("#")||h.target.startsWith(".")?h.target:`#${h.target}`,F=document.querySelector(d);if(!F)continue;let S=F.offsetTop;r instanceof HTMLElement&&(S-=r.offsetTop),i>=S&&(p=h.target)}o.value=p};return e.onMounted(()=>{s().addEventListener("scroll",f),f()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",f)}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(n)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(p,h)=>(e.openBlock(),e.createElementBlock("div",{key:p.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===p.target}]),onClick:d=>c(p)},[e.createElementVNode("div",Yo,[h!==a.value.length-1?(e.openBlock(),e.createElementBlock("div",Ko)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:p.title},e.toDisplayString(p.title.length>12?p.title.slice(0,12)+"...":p.title),9,Go)],10,qo))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),Jo={class:"hb_detail_top_act_left"},Xo={key:1,class:"hb_detail_top_wrapper_sticky"},Qo={class:"hb_detail_top_act"},Zo={key:0,class:"hb_detail_all_info"},vo={class:"hb_detail_all_info_left"},el={class:"hb_detail_info_title"},tl={key:0,class:"hb_detail_info_content"},ol={class:"create_by"},ll={class:"hb_detail_all_info_right"},nl={class:"hb_edit_detail_content_wrapper"},al={class:"hb_detail_content"},il={class:"hb-back-top-inner"},Ue=O(R(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.inject(fe),a=()=>{o.backFn?o.backFn():window.history.back()},s=e.computed(()=>o.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const $={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:$}),f=()=>document.querySelector(o.container),r=e.ref(!1),i=e.ref(null),{top:p}=v.useElementBounding(i),h=e.computed(f),{y:d}=v.useScroll(h);e.watch(d,$=>{r.value=$>p.value},{immediate:!0});const F=$=>{document.querySelectorAll(".hb_card_body").forEach(k=>{k.querySelectorAll(".ant-descriptions-item-content span").forEach(_=>{_.textContent?.trim()||(_.textContent=$)})})};let S=null;return e.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(S=setTimeout(()=>{F(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{S&&clearTimeout(S)}),($,V)=>{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",c.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":c.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":c.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",r.value?"can_show":""])},[e.createElementVNode("div",Jo,[e.createVNode(k,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:a},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),V[0]||(V[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("div",Qo,[e.createVNode(k),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:a},e.toDisplayString(e.unref(l)("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",Zo,[e.createElementVNode("aside",vo,[e.renderSlot($.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",el,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("span",ol,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",ll,[e.renderSlot($.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nl,[e.createElementVNode("div",al,[e.renderSlot($.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(H.BackTop),{target:f,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",il,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),Re=O(R(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(r,i=300)=>He(r,i),n=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),a=e.ref(0),s=r=>{let i=0;return(Array.isArray(r)?r:[r]).forEach(h=>{let d=[];if(h.startsWith("#")){const F=document.getElementById(h.slice(1));F&&d.push(F)}else d=Array.from(document.getElementsByClassName(h));d.forEach(F=>{i+=F.offsetWidth||0})}),i},c=()=>{l.leftElements&&(a.value=s(l.leftElements)+1)};let f=null;return e.onMounted(()=>{const r=l.getContainer();r!==window&&r instanceof HTMLElement&&r.addEventListener("scroll",()=>{}),c(),f=new MutationObserver(()=>{c()});const i=document.body;f.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{f&&f.disconnect()}),(r,i)=>{const p=e.resolveComponent("a-button"),h=e.resolveComponent("a-space"),d=e.resolveComponent("a-affix"),F=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":a.value+"px"})},[e.createVNode(d,{"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(n.value,S=>e.withDirectives((e.openBlock(),e.createBlock(p,{key:S.key,type:S.type||"default",danger:S.danger,loading:S.loading,disabled:S.disabled,onClick:S.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[F,S.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),rl={class:"modal__detail-content"},je=O(R(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:l,emit:o}){const n=o,a=t,s=e.computed({get:()=>a.visible,set:B=>n("update:visible",B)}),c=e.ref(null),f=e.computed(()=>({top:"10px",...a.modalStyle})),r=e.computed(()=>({overflow:"hidden",...a.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...a.bodyStyle})),{x:p,y:h,isDragging:d}=v.useDraggable(c),F=e.ref(0),S=e.ref(0),$=e.ref(!1),V=e.ref(0),k=e.ref(0),y=e.ref(0),_=e.ref(0),x=e.ref({left:0,right:0,top:0,bottom:0});let C=null;const u=()=>{V.value=0,k.value=0,y.value=0,_.value=0,$.value=!1};e.watch(s,B=>{B?setTimeout(()=>{u()},50):(C&&clearTimeout(C),C=setTimeout(()=>{V.value=0,k.value=0,y.value=0,_.value=0},300))}),e.watch([p,h],()=>{if(!$.value){F.value=p.value,S.value=h.value;const B=document.body.getBoundingClientRect(),A=c.value.getBoundingClientRect();x.value.right=B.width-A.width,x.value.bottom=B.height-A.height,y.value=V.value,_.value=k.value}$.value=!0}),e.watch(d,()=>{d||($.value=!1)}),e.watchEffect(()=>{$.value&&(V.value=y.value+Math.min(Math.max(x.value.left,p.value),x.value.right)-F.value,k.value=_.value+Math.min(Math.max(x.value.top,h.value),x.value.bottom)-S.value)});const m=e.computed(()=>({transform:`translate(${V.value}px, ${k.value}px)`})),g=()=>{n("cancel")},L=()=>{n("ok")};return e.onUnmounted(()=>{C&&clearTimeout(C)}),l({handleOk:L,handleCancel:g}),(B,A)=>{const W=e.resolveComponent("a-spin"),N=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(N,e.mergeProps({style:f.value,bodyStyle:i.value,ref:"modalRef",visible:s.value,"onUpdate:visible":A[0]||(A[0]=w=>s.value=w),"wrap-style":r.value,onOk:L,onCancel:g},B.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,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.openBlock(),e.createElementBlock("div",{key:s.value,style:e.normalizeStyle(m.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w)))],4))]),default:e.withCtx(()=>[e.createVNode(W,{spinning:a.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",rl,[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-866a050a"]])),sl={key:0,class:"hb_edit_header"},cl={class:"__detail-content"},dl={key:1,class:"hb_edit_footer"},ml={class:"hb-back-top-inner"},We=O(R(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const l=e.ref("vertical"),o=t,n=()=>document.querySelector(o.container),a=e.inject("GLOBAL_CONFIG_KEY"),s=e.computed(()=>o.backTopBottom||a?.HbLibUnDetailBox?.backTopBottom||80);return(c,f)=>(e.openBlock(),e.createBlock(e.unref(H.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",sl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",cl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(H.BackTop),{target:n,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",ml,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),pl={class:"hb_edit_header_left"},fl={class:"hb_edit_header_title"},bl={class:"hb_edit_header_right"},qe=O(R(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=K.useI18n(),o=t,n=ce.useRoute(),a=e.ref(0),s=e.computed(()=>n?.meta?.title||"");function c(d,F="offsetHeight"){let S=0;return(Array.isArray(d)?d:[d]).forEach(V=>{let k=[];if(V.startsWith("#")){const y=document.getElementById(V.slice(1));y&&k.push(y)}else k=Array.from(document.getElementsByClassName(V));k.forEach(y=>{S+=y[F]||0})}),S}const f=()=>{o.topElements&&(a.value=c(o.topElements))},r=e.ref(0),i=()=>{o.leftElements&&(r.value=c(o.leftElements,"offsetWidth")+1)};let p=null;e.onMounted(()=>{f(),i(),window.addEventListener("resize",f),p=new MutationObserver(()=>{i()});const d=document.body;p.observe(d,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",f),p&&p.disconnect()}),e.watch(()=>o.topElements,()=>{f()},{immediate:!0});const h=()=>{o.backFn?o.backFn():window.history.back()};return(d,F)=>{const S=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:a.value+"px","--pageHeaderOrFonterLeft":r.value+"px"})},[e.createElementVNode("aside",pl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:h},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(S,{type:"vertical"}),e.createElementVNode("span",fl,e.toDisplayString(s.value),1)]),e.createElementVNode("aside",bl,[e.renderSlot(d.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),hl={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},be=O(R(e.defineComponent({name:"HbLibCopy",__name:"copy",props:hl,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const n=e.computed(()=>l.tooltipTitle||"复制"),a=e.computed(()=>l.copySuccessTip||"复制成功"),s=e.computed(()=>l.copyFailTip||"复制失败"),c=e.computed(()=>{if(l.cpText)return l.cpText;let r="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(p=>p?.[l.K]===l.V);r=i?i[l.L]:""}}else l.K&&(r=l.data[l.K]);return r}),f=()=>{navigator.clipboard.writeText(c.value).then(()=>{H.message.success(a.value)}).catch(()=>{H.message.error(s.value)})};return(r,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(H.Tooltip),{key:0,title:n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...r.cpStyle}),onClick:e.withModifiers(f,["stop","prevent"])},[...i[0]||(i[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),gl={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:""}},Ye=O(R(e.defineComponent({name:"HbDrag",__name:"index",props:gl,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,n=e.shallowRef([]);e.watch(()=>o.dragList,p=>{n.value=p},{deep:!0,immediate:!0});const a=de("drag"),s=l,c=p=>{console.log("drag start",p),s("handleDragStart",p)},f=p=>{console.log("drag end",p),s("handleDragEnd",p)},r=p=>{console.log("drag add",p),s("handleDragAdd",p)},i=p=>{console.log("drag remove",p),s("handleDragRemove",p)};return(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[p.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":h[0]||(h[0]=d=>n.value=d),"item-key":"key",class:{[p.dragClass]:p.dragClass}},p.$attrs,{"ghost-class":p.ghostClass,onStart:c,onEnd:f,onAdd:r,onRemove:i}),{item:e.withCtx(({element:d})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":h[1]||(h[1]=d=>n.value=d),"item-key":"id",class:{[p.dragClass]:p.dragClass}},p.$attrs,{"ghost-class":p.ghostClass,onStart:c,onEnd:f,onAdd:r,onRemove:i}),{item:e.withCtx(({element:d})=>[e.createElementVNode("div",null,[e.renderSlot(p.$slots,"default",{item:d},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),yl={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Ke=O(R(e.defineComponent({name:"HbLibSort",__name:"sort",props:yl,emits:["change"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref([]),c=e.ref("");e.watch(()=>n.menuItems,r=>{let i=[];Array.isArray(r)&&r.length&&r.forEach(p=>{i=[...i,{label:`${p.label}升序`,value:`${p.value}`,sort:"Asc"},{label:`${p.label}降序`,value:`${p.value}`,sort:"Desc"}]}),s.value=i},{deep:!0,immediate:!0});const f=r=>{c.value=r.value+r.sort,n.getSort&&n.getSort({orderFeild:r.value,orderBy:r.sort}),a("change",c)};return l({currentActiveItem:c}),(r,i)=>{const p=e.resolveComponent("a-menu-item"),h=e.resolveComponent("a-menu"),d=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(d,{trigger:[n.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,F=>(e.openBlock(),e.createBlock(p,{key:F.value+F.sort,onClick:S=>f(F)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(c.value==F.value+F.sort?"activted":"")},e.toDisplayString(F.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(n.colText)+" ",1),e.createVNode(e.unref(Y.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),ul={class:"hb_lib_loading"},Cl={class:"hb_lib_loading_loading_anima"},kl={class:"hb_lib_loading_load_tips"},Ge=O(R(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(a,s)=>(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",Cl,[s[0]||(s[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",kl,e.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),le=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},_l=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),wl=t=>_l.has(le(t));function Je(t){const l=t.trim();try{return new URL(l).href}catch{return l}}function Xe(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function Qe(t){return new Promise((l,o)=>{const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.withCredentials=Xe(t),n.onload=()=>{n.status>=200&&n.status<300?l(n.response):o(new Error(String(n.status)))},n.onerror=()=>o(new Error("xhr")),n.send()})}async function Ll(t){const l=Je(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return Qe(l);if(typeof fetch=="function"){const n=await fetch(l,{credentials:Xe(l)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return Qe(l)}function Sl(t,l){const o=l.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(t,o);return}const a=URL.createObjectURL(t);try{const s=document.createElement("a");s.href=a,s.rel="noopener noreferrer",s.setAttribute("download",o),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)}finally{URL.revokeObjectURL(a)}}function xl(t){const l=Je(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function Bl(t,l){const o=l.trim()||"download";try{const n=await Ll(t);Sl(n,o);return}catch{xl(t)}}const Nl=768;function Tl(){return typeof window>"u"?!0:window.innerWidth>=Nl}function Ze(){return!Tl()}const Vl={class:"file-preview-modal-title"},Fl={key:0,class:"file-preview-modal-title__tip"},El={class:"file-preview-modal-body file-preview-modal-body--fill"},Hl=["src"],$l=["src"],Il={key:2,class:"file-preview-modal-body__pre"},Dl=["src"],Ml=["src"],Al={key:0,class:"file-preview-modal-footer__nav"},zl={class:"file-preview-modal-body file-preview-modal-body--fill"},Ol=["src"],Pl=["src"],Ul={key:2,class:"file-preview-modal-body__pre"},Rl=["src"],jl=["src"],Wl={key:0,class:"file-preview-modal-footer__nav"},ve=O(R(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),n=l,a=t,s=e.ref(a.previewVisible);e.watch(()=>a.previewVisible,w=>{s.value=w});const c=e.computed(()=>a.mobile?"100%":"98%"),f=e.computed(()=>a.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),r=e.computed(()=>({height:a.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:a.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),i=e.computed(()=>typeof dd<"u"&&dd.env&&dd.env.platform),p=e.computed(()=>{const w=(a.fileName||"").trim(),E=(a.url||"").trim(),z=w?le(w):"",P=E?le(E):"";return P&&z&&P!==z?E:z?w:P?E:w||E}),h=e.computed(()=>p.value?le(p.value):""),d=e.computed(()=>`${a.url}\0${a.fileName||""}`),F=e.computed(()=>p.value?wl(p.value):!1),S=e.computed(()=>{if(!p.value)return!1;const w=le(p.value);return["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv"].includes(w)}),$=e.computed(()=>{const w=(a.url||"").trim();if(!w)return!1;try{const{pathname:E}=new URL(w);return/\/file(?:\/|-)preview\b/i.test(E)}catch{return/\/file(?:\/|-)preview\b/i.test(w)}}),V=typeof window<"u",k=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),y=e.computed(()=>!V||!a.url?.trim()||$.value?!1:k.has(h.value)),_=e.computed(()=>h.value==="txt"),x=e.computed(()=>!a.url?.trim()||$.value?!1:_.value),C=e.ref("idle"),u=e.ref("");e.watch(()=>({visible:a.previewVisible,url:a.url,isTxt:_.value}),async({visible:w,url:E,isTxt:z})=>{if(u.value="",C.value="idle",!(!w||!z||!(E||"").trim())){C.value="loading";try{const P=await fetch(E.trim(),{credentials:"include",mode:"cors"});if(!P.ok)throw new Error(String(P.status));u.value=await P.text(),C.value="text"}catch{C.value="iframe-fallback"}}},{flush:"post"});const m=e.computed(()=>!a.url?.trim()||!V||_.value?!1:y.value?!0:!S.value&&!F.value),g=e.computed(()=>o.has(h.value)),L=e.computed(()=>{const w=(a.url||"").trim();return w?$.value||!S.value||h.value==="pdf"?w:g.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(w)}`:`https://docs.google.com/gview?url=${encodeURIComponent(w)}&embedded=true`:a.url}),B=e.ref("");e.watch(()=>({visible:a.previewVisible,src:L.value,doc:S.value,serverPage:$.value,skipIframe:y.value}),async({visible:w,src:E,doc:z,serverPage:P,skipIframe:j})=>{if(B.value="",!w||!(z||P)||j)return;const J=(E||"").trim();J&&(await e.nextTick(),await new Promise(G=>requestAnimationFrame(G)),a.previewVisible&&L.value===J&&(B.value=J))},{flush:"post"});const A=e.computed(()=>a.url&&(i.value||!F.value||!S.value)),W=async()=>{i.value&&dd.biz?.util?.downloadFile?dd.biz.util.downloadFile({url:a.url,name:a.fileName,size:a.file?.size}):Ze()?window.open(a.url,"_blank"):await Bl(a.url,a.fileName||"file")},N=()=>{n("closeModal")};return(w,E)=>{const z=e.resolveComponent("a-spin"),P=e.resolveComponent("VueFilesPreview"),j=e.resolveComponent("a-button"),J=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(J,e.mergeProps({key:0,visible:s.value,"onUpdate:visible":E[2]||(E[2]=G=>s.value=G),width:c.value,"body-style":r.value,style:f.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},w.$attrs,{onCancel:N}),{title:e.withCtx(()=>[e.createElementVNode("div",Vl,[e.renderSlot(w.$slots,"title",{},()=>[E[5]||(E[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(Ze)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Fl,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Al,[e.createVNode(j,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[0]||(E[0]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...E[6]||(E[6]=[e.createTextVNode("上一个",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(j,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[1]||(E[1]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...E[7]||(E[7]=[e.createTextVNode("下一个",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),A.value&&a.url?(e.openBlock(),e.createBlock(j,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:W},{default:e.withCtx(()=>[...E[8]||(E[8]=[e.createTextVNode("下载",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(j,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:N},{default:e.withCtx(()=>[...E[9]||(E[9]=[e.createTextVNode("关闭",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",El,[$.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Hl)):e.createCommentVNode("",!0)],64)):x.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${d.value}`,class:"file-preview-modal-body__plaintext"},[C.value==="loading"?(e.openBlock(),e.createBlock(z,{key:0,tip:"加载中..."})):C.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:a.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,$l)):C.value==="text"?(e.openBlock(),e.createElementBlock("pre",Il,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)])):m.value?(e.openBlock(),e.createBlock(P,{key:`vfp:${d.value}`,url:t.url},null,8,["url"])):S.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Dl)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${d.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Ml)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${d.value}`,class:"no-preview"},e.toDisplayString(V?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",zl,[$.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ol)):e.createCommentVNode("",!0)],64)):x.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${d.value}`,class:"file-preview-modal-body__plaintext"},[C.value==="loading"?(e.openBlock(),e.createBlock(z,{key:0,tip:"加载中..."})):C.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:a.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Pl)):C.value==="text"?(e.openBlock(),e.createElementBlock("pre",Ul,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)])):m.value?(e.openBlock(),e.createBlock(P,{key:`vfp:${d.value}`,url:t.url},null,8,["url"])):S.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Rl)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${d.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,jl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${d.value}`,class:"no-preview"},e.toDisplayString(V?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Wl,[e.createVNode(j,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[3]||(E[3]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...E[10]||(E[10]=[e.createTextVNode("上一个",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(j,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[4]||(E[4]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...E[11]||(E[11]=[e.createTextVNode("下一个",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),A.value&&a.url?(e.openBlock(),e.createBlock(j,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:W},{default:e.withCtx(()=>[...E[12]||(E[12]=[e.createTextVNode("下载",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(j,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:N},{default:e.withCtx(()=>[...E[13]||(E[13]=[e.createTextVNode("关闭",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-280342d7"]])),ql=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Pe,HbLibCard:Oe,HbLibCopy:be,HbLibDetailBox:Ue,HbLibFilePreview:ve,HbLibFooterBar:Re,HbLibFormItemFilterModal:ue,HbLibFormTooltipSelect:De,HbLibFuncCompDrag:Ye,HbLibImportFile:Me,HbLibListBtnsAct:_e,HbLibListForm:Ce,HbLibListMultiSelect:Le,HbLibListPageAct:ke,HbLibListPageContainer:we,HbLibListTable:$e,HbLibLoading:Ge,HbLibLogModal:Ae,HbLibModal:je,HbLibMutilpleSelectModal:Se,HbLibPageHeader:qe,HbLibSort:Ke,HbLibTableAct:xe,HbLibTableColumnSet:Ie,HbLibUnDetailBox:We,HbUiConfig:ze},Symbol.toStringTag,{value:"Module"})),X=new Map;let et;v.isClient&&(document.addEventListener("mousedown",t=>et=t),document.addEventListener("mouseup",t=>{for(const l of X.values())for(const{documentHandler:o}of l)o(t,et)}));function tt(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(n,a){const s=l.instance.popperRef,c=n.target,f=a?.target,r=!l||!l.instance,i=!c||!f,p=t.contains(c)||t.contains(f),h=t===c,d=o.length&&o.some(S=>S?.contains(c))||o.length&&o.includes(f),F=s&&(s.contains(c)||s.contains(f));r||i||p||h||d||F||l.value(n,a)}}const Yl={beforeMount(t,l){X.has(t)||X.set(t,[]),X.get(t).push({documentHandler:tt(t,l),bindingFn:l.value})},updated(t,l){X.has(t)||X.set(t,[]);const o=X.get(t),n=o.findIndex(s=>s.bindingFn===l.oldValue),a={documentHandler:tt(t,l),bindingFn:l.value};n>=0?o.splice(n,1,a):o.push(a)},unmounted(t){X.delete(t)}},Kl={mounted(t,l){const{value:o,arg:n}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const a=parseInt(n,10)||300;let s;t.__debounceHandler__=function(...c){s&&clearTimeout(s),s=setTimeout(()=>{o(...c)},a)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},ot=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(be,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},Gl={cos:Yl,dc:Kl,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}ot(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&ot(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}},Jl={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"}}},Xl={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:"戻る"}}},Ql={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:"加载中...如长时间加载请重试!"}}},Zl={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 re={exports:{}},vl=re.exports,lt;function en(){return lt||(lt=1,(function(t,l){(function(o,n){t.exports=n(ae)})(vl,(function(o){function n(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=n(o),s={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,f){return f==="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,f){var r=100*c+f;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return a.default.locale(s,null,!0),s}))})(re)),re.exports}en(),ae.locale("zh-cn");const tn={en_US:Jl,ja_JP:Xl,zh_CN:Ql,de_DE:Zl},on=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(ql).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),Object.entries(Gl).forEach(([o,n])=>{t.directive(o,n)})};D.HbLibAnchor=Pe,D.HbLibCard=Oe,D.HbLibCopy=be,D.HbLibDetailBox=Ue,D.HbLibFilePreview=ve,D.HbLibFooterBar=Re,D.HbLibFormItemFilterModal=ue,D.HbLibFormTooltipSelect=De,D.HbLibFuncCompDrag=Ye,D.HbLibImportFile=Me,D.HbLibListBtnsAct=_e,D.HbLibListForm=Ce,D.HbLibListMultiSelect=Le,D.HbLibListPageAct=ke,D.HbLibListPageContainer=we,D.HbLibListTable=$e,D.HbLibLoading=Ge,D.HbLibLogModal=Ae,D.HbLibModal=je,D.HbLibMutilpleSelectModal=Se,D.HbLibPageHeader=qe,D.HbLibSort=Ke,D.HbLibTableAct=xe,D.HbLibTableColumnSet=Ie,D.HbLibUnDetailBox=We,D.HbUiConfig=ze,D.install=on,D.locales=tn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
1
+ (function($,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):($=typeof globalThis<"u"?globalThis:$||self,e($.HbComponentLib={},$.Vue,$.draggable,$.antDesignVue,$.vueRouter,$.vueI18n,$.lodash,$.iconsVue,$.core,$.dayjs))})(this,(function($,e,le,F,ce,K,Q,Y,Z,ne){"use strict";const de=(t="")=>{const l=`hb-${t}`;return st(l)},v=(t,l,o,n)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),n&&(t+=`--${n}`),t),st=t=>({b:l=>l?v(t,l,"",""):v(t,"","",""),e:l=>l?v(t,"",l,""):"",m:l=>v(t,"","",l),be:(l,o)=>v(t,l,o,""),em:(l,o)=>v(t,"",l,o),bem:(l,o,n)=>v(t,l,o,n),is:(l,o)=>o?`is-${l}`:""}),ct=["onMouseenter","onMouseleave"],dt=["onClick"],mt=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),r=K.useI18n().t,s=K.useI18n().messages.value.en_US,c=K.useI18n().messages.value.ja_JP,d=K.useI18n().messages.value.zh_CN,a=t,i=e.computed(()=>a.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),p=e.computed(()=>a.title||r("hbLibComp.hbFormItemFilterModal.title")),f=o,b=de("sfcm"),N=ce.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),H=e.ref(!1),E=e.ref(600);let h=[];const m=e.ref([]),u=e.ref([]),S=e.computed(()=>m.value.every(y=>y.isLinked||y.isFixed)),_=y=>({...y,label:x(y)||`${V(y)||""} (${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:y.key,isFixed:y?.isFixed||!1,isLinked:y?.isLinked||!1,labelLanguage:y?.labelLanguage||void 0}),k=y=>{const I=y.draggedContext.element,T=y.relatedContext.index;if(I.isLinked||I.isFixed)return!1;const P=m.value.map((q,X)=>({item:q,index:X})).filter(({item:q})=>q.isLinked).map(({index:q})=>q);if(P.length===0)return!0;for(let q=0;q<P.length-1;q++){const X=P[q],ee=P[q+1];if(T>X&&T<ee)return!1}return!0},g=e.computed(()=>C()+"_"+a.saveKey),C=()=>{const y=localStorage.getItem("pro__Login_Userinfo");let I="anonymous";if(y)try{I=JSON.parse(y).value.jobNumber||"anonymous"}catch(P){console.warn("解析用户信息失败:",P)}let T=N?.path;return`searchFormConfig_${I}_${T}`},x=y=>({ja_JP:()=>Q.get(c,y.labelLanguage||""),en_US:()=>Q.get(s,y.labelLanguage||""),zh_CN:()=>Q.get(d,y.labelLanguage||"")})[B.lan]?.()||y.label,V=y=>({ja_JP:()=>Q.get(c,y.subLabelLanguage||""),en_US:()=>Q.get(s,y.subLabelLanguage||""),zh_CN:()=>Q.get(d,y.subLabelLanguage||"")})[B.lan]?.()||y.subLabel,M=()=>{try{const y=localStorage.getItem(g.value);if(y){const I=JSON.parse(y);if(I.originalList&&Array.isArray(I.originalList)){h=JSON.parse(JSON.stringify(I.originalList));const T=h.filter(D=>D?.isFixed),P=h.filter(D=>D?.isLinked),q=I.showList.filter(D=>!D.isFixed&&!D.isLinked),X=i.value&&i.value>0?Math.max(0,i.value-T.length-P.length):q.length,ee=T.map(D=>({..._(D)})),se=P.map(D=>({..._(D)})),ue=q.slice(0,X).map(D=>({..._(D)}));m.value=[...ee,...se,...ue];const ye=m.value.map(D=>D.key),Ce=h.map(D=>D.key).filter(D=>!ye.includes(D));return u.value=h.filter(D=>Ce.includes(D.key)).map(D=>({..._(D),active:!1})),!0}}}catch(y){console.warn("加载保存的搜索配置失败:",y)}return!1},W=()=>{try{const y={originalList:h,showList:m.value.map(I=>({...I,key:I.key,label:I.label,isFixed:I.isFixed,isLinked:I.isLinked,labelLanguage:I?.labelLanguage||void 0}))};localStorage.setItem(g.value,JSON.stringify(y))}catch(y){console.warn("保存搜索配置失败:",y)}},w=e.computed(()=>{const y=m.value.filter(T=>!T.isFixed&&!T.isLinked).length,I=m.value.filter(T=>T.isFixed||T.isLinked).length;return y>=i.value-I});e.watch(()=>a.list,y=>{let I=JSON.stringify(m.value)!==JSON.stringify(y);if(!I)return;const T=localStorage.getItem(g.value),P=JSON.parse(T||"{}");if(P&&P?.originalList&&Array.isArray(P.originalList))M(),f("confirm",m.value);else if(I){h=JSON.parse(JSON.stringify(y));const q=y.filter(D=>D?.isFixed),X=y.filter(D=>D?.isLinked),ee=y.filter(D=>!D?.isFixed&&!D?.isLinked),se=i.value&&i.value>0?Math.max(0,i.value-q.length-X.length):ee.length,ue=q.map(D=>_(D)),ye=X.map(D=>_(D)),rt=ee.slice(0,se).map(D=>_(D));m.value=[...ue,...ye,...rt];const Ce=ee.slice(se).map(D=>({..._(D),active:!1}));u.value=Ce,f("confirm",m.value)}},{immediate:!0});const L=y=>{const I=m.value.findIndex(T=>T.key===y.key);I!==-1&&(m.value.splice(I,1),u.value.push({...y,active:!1}))},O=y=>{if(w.value){F.message.warning(`当前已经超过${r(i.value)}个可选数量,请先删除已显示条件`);return}const I=u.value.findIndex(T=>T.key===y.key);if(I!==-1){const[T]=u.value.splice(I,1);m.value.push({...T,active:!1})}},A=()=>{H.value=!1},R=()=>{H.value=!0},j=()=>{W(),f("confirm",m.value),A()},G=y=>{const I=u.value.findIndex(T=>T.key===y.key);I!==-1&&(u.value[I].active=!0)},ge=y=>{const I=u.value.findIndex(T=>T.key===y.key);I!==-1&&(u.value[I].active=!1)};return l({toOpenModal:R}),e.onMounted(()=>{}),(y,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(b).b())},[e.createVNode(e.unref(F.Modal),{visible:H.value,"onUpdate:visible":I[1]||(I[1]=T=>H.value=T),width:E.value,onCancel:A,onOk:j},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("title"))},e.toDisplayString(p.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(F.Button),{onClick:A},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(F.Button),{type:"primary",onClick:j},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(b).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(b).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("show__tag"))},[e.createVNode(e.unref(le),{modelValue:m.value,"onUpdate:modelValue":I[0]||(I[0]=T=>m.value=T),"item-key":"key",tag:"div",disabled:S.value,move:k},{item:e.withCtx(({element:T})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(b).e("show__tag__item"),e.unref(b).is("fixed",T.isFixed),e.unref(b).is("linked",T.isLinked)])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),!T.isFixed&&!T.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Y.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(b).e("show__tag__item-close")),onClick:P=>L(T)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(b).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(b).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("unshow__tag"))},[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.key,class:e.normalizeClass([e.unref(b).e("unshow__tag__item"),e.unref(b).is("fixed",T.isFixed||""),e.unref(b).is("linked",T.isLinked||"")]),onMouseenter:P=>G(T),onMouseleave:P=>ge(T)},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),T.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(b).e("unshow__tag__item-add")),onClick:P=>O(T)},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.add")),11,dt)):e.createCommentVNode("",!0)],42,ct))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(b).e("unshow__tag__empty"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(t,l)=>{const o=t.__vccOpts||t;for(const[n,r]of l)o[n]=r;return o},pt=U(mt,[["__scopeId","data-v-657502f3"]]);function z(t){const l=t;return l.install=o=>{const n=t.name;o.component(n??"AnonymousComponent",t)},l}const ke=z(pt),ft={key:0,class:"form-footer"},ht={class:"scheme-fontWeight"},bt={class:"scheme-fontWeight"},gt={class:"scheme-fontWeight"},ut={class:"scheme-fontWeight"},_e=z(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),r=o,s=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>a.searchList||[]),d=de("form"),a=t,i=e.computed(()=>a.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),p=e.ref("show"),f=e.computed(()=>a.needFooter||n.HbLibListForm?.needFooter),b=e.computed(()=>[...a.items]),N=w=>w!==void 0,B=w=>typeof w=="function",H=w=>N(w.condition)?B(w.condition)?w.condition():w.condition:!0,E=e.computed(()=>[...a.items].map(w=>({...w,condition:H(w),label:w.label?.includes("多项搜索")?"":w.label})));console.log(E.value);const h=e.computed(()=>a.saveKey),m=e.ref(),u=()=>{r("handleSearch")},S=()=>{r("handleReset")},_=e.ref(),k=()=>{_.value&&_.value.toOpenModal()},g=w=>{r("handleMenuClick",w)},C=w=>{r("handleSfcmConfirm",w)};e.watch(()=>a.isFormExpanded,w=>{if(w){console.log(w);const L=document.querySelector("#subpackage_container");L instanceof HTMLElement&&(L.style.overflow="hidden",setTimeout(()=>{L.style.overflow="auto"},500))}});const x=w=>{const L=w;L.style.height="",L.offsetHeight},V=w=>{const L=w;L.style.height="",L.style.overflow="",e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})},M=w=>{const L=w,O=L.querySelector(".hb-lib-form--container");if(O){const A=O.offsetHeight;L.style.height=A+"px",L.style.overflow="hidden",L.offsetHeight,requestAnimationFrame(()=>{L.style.height="0"})}},W=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return l({formRef:m,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,L)=>{const O=e.resolveComponent("a-button"),A=e.resolveComponent("a-tooltip"),R=e.resolveComponent("a-menu-item"),j=e.resolveComponent("a-menu"),G=e.resolveComponent("a-dropdown"),ge=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:x,onAfterEnter:V,onLeave:M,onAfterLeave:W},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(d).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(w.$attrs,{model:t.formData,ref_key:"formRef",ref:m,class:["hb-lib-form--container",p.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(y,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:I},[y.condition?(e.openBlock(),e.createBlock(e.unref(F.FormItem),e.mergeProps({key:0,ref_for:!0},y,{name:y.key,class:{"hb-lib-form-item-border--unneed":y.isUnNeedBorder,"hb_lib_form_item--needShowAll":y.showAll}}),e.createSlots({default:e.withCtx(()=>[y.type==="slot"?e.renderSlot(w.$slots,y.key,{key:0,formData:t.formData,item:y},void 0,!0):e.createCommentVNode("",!0),y.type==="mixin"?e.renderSlot(w.$slots,y.key,{key:1,formData:t.formData,item:y},void 0,!0):e.createCommentVNode("",!0),y.type==="input"?(e.openBlock(),e.createBlock(e.unref(F.Input),e.mergeProps({key:2,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="select"?(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({key:3,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(T,P)=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),{key:P,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(F.CheckboxGroup),e.mergeProps({key:4,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(T,P)=>(e.openBlock(),e.createBlock(e.unref(F.Checkbox),{key:P,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(F.DatePicker),e.mergeProps({key:5,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(F.InputNumber),e.mergeProps({key:6,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="radio"?(e.openBlock(),e.createBlock(e.unref(F.RadioGroup),e.mergeProps({key:7,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(T,P)=>(e.openBlock(),e.createBlock(e.unref(F.Radio),{key:P,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="switch"?(e.openBlock(),e.createBlock(e.unref(F.Switch),e.mergeProps({key:8,checked:t.formData[y.key],"onUpdate:checked":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[y.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label)+" ",1),e.createVNode(e.unref(F.Tooltip),{title:y.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",ft,[e.createVNode(O,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(O,{type:"link",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(A,{key:0,title:w.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...L[0]||(L[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(G,{key:0},{overlay:e.withCtx(()=>[e.createVNode(j,{onClick:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,y=>(e.openBlock(),e.createBlock(R,{key:y.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128)),e.createVNode(R,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",ht,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(R,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",bt,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{title:w.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...L[1]||(L[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"]),f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(d).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("footer__left"))},[e.renderSlot(w.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("footer__right"))},[p.value=="show"?e.renderSlot(w.$slots,"form-footer-right",{key:0,formRef:m.value},()=>[e.createVNode(O,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(O,{type:"link",onClick:S,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(A,{key:0,title:w.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...L[2]||(L[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(G,{key:0},{overlay:e.withCtx(()=>[e.createVNode(j,{onClick:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,y=>(e.openBlock(),e.createBlock(R,{key:y.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128)),e.createVNode(R,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",gt,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(R,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",ut,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{title:w.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...L[3]||(L[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(ge,{showNumber:i.value,list:b.value,ref_key:"HbSfCmRef",ref:_,onConfirm:C,saveKey:h.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),yt={class:"hb-lib-list-page-act-box"},Ct={class:"hb-lib-list-page-breadcrumb"},kt={class:"hb-lib-list-page-act"},_t={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"},wt={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=z(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:n,toggle:r}=Z.useFullscreen(document.body);e.watch(()=>n.value,a=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const p=new Map;setTimeout(a?()=>{if(i?.length)for(let f=0;f<i.length;f++){const b=document.querySelector(i[f]);b&&(p.set(i[f],b.style.display),b.style.display="none")}}:()=>{if(i?.length)for(let f=0;f<i.length;f++){const b=document.querySelector(i[f]);if(b){const N=p.get(i[f]);b.style.display=N||"",p.delete(i[f])}}},0)});const s=e.ref(""),c=()=>{const a=ce.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",p=a?.path;if(i!=="[]"){let f=JSON.parse(i).find(b=>b.value===p);f&&(s.value=f.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const d=a=>{a.keyCode===192&&r()};return e.onMounted(()=>{window.addEventListener("keydown",d)}),e.onUnmounted(()=>{window.removeEventListener("keydown",d)}),(a,i)=>{const p=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",yt,[e.createElementVNode("aside",Ct,e.toDisplayString(s.value),1),e.createElementVNode("aside",kt,[e.createVNode(p,{title:e.unref(n)?`${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...f)=>e.unref(r)&&e.unref(r)(...f))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",wt,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",_t,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(a.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Lt={class:"hb-lib-list-btns-box"},St={class:"hb-lib-list-btns-left"},xt={class:"hb-lib-list-btns-right"},Le=z(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,n=e.ref(!0),r=()=>{n.value=!n.value,o("handleOpenOrClose",n.value)},s=()=>{o("handleReload")},c=d=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(d,a)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Lt,[e.createElementVNode("aside",St,[e.renderSlot(d.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",xt,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:d.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:s},[...a[0]||(a[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:n.value?`${d.$t("hbLibComp.hbListBtnsAct.close")}`:`${d.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:r},[n.value?(e.openBlock(),e.createBlock(e.unref(Y.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Y.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Se=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:n=300,timeOut:r=100}=t,s=e.ref(0);let c=null,d=null,a=null,i=null,p=null;const f=()=>{p&&clearTimeout(p),p=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const m=document.querySelector(".ant-table"),u=document.querySelector(".ant-pagination");if(m){const S=Math.floor(m.getBoundingClientRect().top),_=window.innerHeight,g=(u?u.offsetHeight+20:40)+o;let C=_-S-g;C<n&&(C=n),s.value=C}})})},100)},b=()=>{const m=document.querySelector(".ant-pagination");if(m){const u=new MutationObserver(()=>{f()});return u.observe(m,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),u}return null},N=()=>{const m=document.querySelector(".hb-lib-list-page-form-box");m&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(S=>{S.style.display="none"}),f()}),c.observe(m))},B=()=>{const m=document.querySelector(".hb-lib-list-page-form-box");m&&(a=new MutationObserver(()=>{setTimeout(()=>{f()},r)}),a.observe(m,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},H=()=>{i&&clearTimeout(i),i=setTimeout(()=>{f()},r)},E=()=>{window.addEventListener("resize",H),e.nextTick(()=>{N(),B(),d=b()})},h=()=>{window.removeEventListener("resize",H),c&&c.disconnect(),a&&a.disconnect(),d&&d.disconnect(),i&&clearTimeout(i),p&&clearTimeout(p)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{f()},200)},{deep:!0}),e.onMounted(()=>{f(),E()}),e.onUnmounted(()=>{h()}),{tableHeight:s,calTableHeight:f}},xe=z(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=Z.useFullscreen(document.body),n=t,r=e.useTemplateRef("PageContainerRef"),s=e.computed(()=>n.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>n.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),d=e.computed(()=>n.minHeight||l.HbLibListPageContainer?.minHeight||300),a=e.computed(()=>n.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>n.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(n.isUnFixTbHeight);const{calTableHeight:p,tableHeight:f}=Se({offsetBottom:c.value,minHeight:d.value,timeOut:a.value}),b=e.computed(()=>f.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:f,calTableHeight:p}),(N,B)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:r},[e.renderSlot(N.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?b.value-s.value+"px":b.value-c.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(o)?b.value-s.value+"px":b.value-c.value+"px"})},[e.renderSlot(N.$slots,"default")],4)],512))}})),Bt={style:{"font-weight":"500"}},Nt={key:0,class:"hb-lib-search-tag__description"},Tt={class:"hb-lib-selector-dropdown"},Et={class:"hb-lib-selector-search"},Ft={class:"hb-lib-selector-list"},Vt=["onClick"],Ht={class:"hb-lib-option-content"},$t={class:"hb-lib-option-label"},It={key:0,class:"hb-lib-selector-empty"},Dt={key:1,class:"hb-lib-selector-footer"},Mt={class:"hb-lib-footer-buttons"},At={key:2,class:"hb-lib-selector-footer"},Ot={class:"hb-lib-footer-buttons"},Be=z(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,n=l,r=e.useModel(t,"value"),s=e.ref(!1),c=e.ref(""),d=e.ref([]),a=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!c.value)return o.options;const _=c.value.toLowerCase();return o.options.filter(k=>k.label.toLowerCase().includes(_)||k.description?.toLowerCase().includes(_))}),p=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),f=e.computed(()=>i.value.length===0?!1:i.value.every(_=>d.value.includes(_.value))),b=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(k=>d.value.includes(k.value)).length;return _>0&&_<i.value.length});e.watch(()=>r.value,_=>{_?d.value=Array.isArray(_)?[..._]:[_]:d.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,_=>{o.remoteSearch&&_!==void 0&&(c.value=_)},{immediate:!0});const N=_=>{_&&(s.value=_,B.value=[...d.value],c.value="",setTimeout(()=>{if(a.value){const k=a.value.input||a.value.$el?.querySelector("input");k&&k.focus()}},100))},B=e.ref([]),H=()=>{d.value=[...B.value],s.value=!1,n("cancel")},E=e.ref([]),h=()=>{const _=o.multiple?d.value:d.value[0]||"",k=o.options.filter(g=>d.value.includes(g.value));E.value=k,console.log(_,k),B.value=[...d.value],r.value=_,n("update:value",_),n("change",_,k),n("confirm",_,k),s.value=!1},m=Z.useDebounceFn(_=>{const k=_!==void 0?_:c.value;o.remoteSearch&&(n("search",k),n("update:searchValue",k))},300),u=_=>{if(o.multiple){const k=new Set(d.value);k.has(_.value)?k.delete(_.value):k.add(_.value),d.value=Array.from(k)}else d.value=[_.value],h()},S=_=>{if(_.target.checked){const g=new Set(d.value);i.value.forEach(C=>{g.add(C.value)}),d.value=Array.from(g)}else{const g=new Set(i.value.map(C=>C.value));d.value=d.value.filter(C=>!g.has(C))}};return(_,k)=>{const g=e.resolveComponent("a-tag"),C=e.resolveComponent("a-input"),x=e.resolveComponent("a-checkbox"),V=e.resolveComponent("a-radio"),M=e.resolveComponent("a-button"),W=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":p.value}},_.$attrs),[e.createVNode(W,{value:r.value,"onUpdate:value":k[5]||(k[5]=w=>r.value=w),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:s.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:N,onSearch:e.unref(m),"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:L,closable:O,option:A})=>[e.createVNode(g,{class:"hb-lib-search-tag",onClick:k[0]||(k[0]=()=>N(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Bt,e.toDisplayString(L),1),A?.description?(e.openBlock(),e.createElementBlock("span",Nt," ("+e.toDisplayString(A.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:w})=>[e.createElementVNode("div",Tt,[e.createElementVNode("div",Et,[e.createVNode(C,{ref_key:"searchInputRef",ref:a,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":k[1]||(k[1]=L=>c.value=L),placeholder:"请输入关键词搜索","allow-clear":"",onInput:k[2]||(k[2]=L=>e.unref(m)(L.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,L=>(e.openBlock(),e.createElementBlock("div",{key:L.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:d.value.includes(L.value)}]),onClick:()=>u(L)},[t.multiple?(e.openBlock(),e.createBlock(x,{key:0,checked:d.value.includes(L.value),onChange:()=>u(L),onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(V,{key:1,checked:d.value.includes(L.value),onChange:()=>u(L),onClick:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Ht,[e.createElementVNode("div",$t,e.toDisplayString(L.label),1)])],10,Vt))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Dt,[e.createVNode(x,{checked:f.value,indeterminate:b.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Mt,[e.createVNode(M,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(M,{type:"primary",size:"small",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",At,[k[6]||(k[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ot,[e.createVNode(M,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),zt={class:"hb-lib-form-item-filter-modal-search"},Pt={class:"hb-lib-form-item-filter-modal-buttons"},Ut={key:0},Ne=z(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:l,emit:o}){const n=t,r=o,s=e.ref(!1),c=e.ref(""),d=e.ref(),a=e.ref(),i=e.ref([]),p=e.ref([]),f=e.ref(),b=e.reactive({searchText:"",searchedColumn:""}),N=e.computed(()=>n.tableData.map(g=>(g.id=g.id||Math.random(),g))),B=e.computed(()=>n.tableColumn.map(g=>(g.customFilterDropdown&&(g.onFilter=(C,x)=>x[g.dataIndex].toString().toLowerCase().includes(C.toLowerCase()),g.onFilterDropdownVisibleChange=C=>{C&&setTimeout(()=>{d.value?.focus()},100)}),{...g}))),H=()=>{let g="";p.value.forEach(C=>{g=g+C[n.labelKey]+","}),c.value=g.substring(0,g.length-1),s.value=!1,r("handleConfirm",p.value)},E=()=>{s.value=!1},h=()=>{s.value=!0,e.nextTick(()=>{const g=f.value?.$el?.querySelector(".ant-table-body");g&&(g.scrollTop=0)})},m=()=>{i.value=[],p.value=[]},u=()=>{c.value="",m()},S=(g,C,x)=>{C(),b.searchText=g[0],b.searchedColumn=x},_=(g,C)=>{g({confirm:!0}),b.searchText="",C()},k=(g,C)=>{i.value=g,p.value=C};return l({resetInputVal:u}),(g,C)=>{const x=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),M=e.resolveComponent("a-table"),W=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:a},[e.createVNode(x,{readonly:"",onClick:h,value:c.value,"onUpdate:value":C[0]||(C[0]=w=>c.value=w),placeholder:g.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Y.UnorderedListOutlined),{onClick:h})]),_:1},8,["value","placeholder"]),e.createVNode(W,{visible:s.value,"onUpdate:visible":C[1]||(C[1]=w=>s.value=w),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(V,{onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(V,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(V,{type:"primary",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(M,{ref_key:"tableRef",ref:f,columns:B.value,dataSource:N.value,rowSelection:{selectedRowKeys:i.value,onChange:k},rowKey:w=>w[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:w,selectedKeys:L,confirm:O,clearFilters:A,column:R})=>[e.createElementVNode("div",zt,[e.createVNode(x,{ref_key:"searchInput",ref:d,placeholder:`请输入${R.title}`,value:L[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:j=>w(j.target.value?[j.target.value]:[]),onPressEnter:j=>S(L,O,R.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Pt,[e.createVNode(V,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:j=>_(A,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(V,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:j=>S(L,O,R.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:w})=>[e.createVNode(e.unref(Y.SearchOutlined),{style:e.normalizeStyle({color:w?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:w,column:L})=>[b.searchText&&b.searchedColumn===L.dataIndex?(e.openBlock(),e.createElementBlock("span",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.toString().split(new RegExp(`(?<=${b.searchText})|(?=${b.searchText})`,"i")),(O,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[O.toLowerCase()===b.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:A,class:"highlight"},e.toDisplayString(O),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(O),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Rt={class:"hb-lib-table-act-box"},Wt=["onClick"],jt={href:"javascript:;",class:"hb-lib-table-main-action"},qt=["onClick"],Yt={href:"javascript:;",class:"hb-lib-table-more-action"},Kt=["onClick"],Gt={href:"javascript:;"},Jt=["onClick"],Xt={class:"hb-lib-table-confirm-modal-content"},Te=z(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:n}=K.useI18n(),r=e.ref(!1),s=e.ref(!1),c=e.ref(null),d=e.computed(()=>o.actions.filter(E=>E.condition!==void 0?E.condition:!0)),a=e.computed(()=>d.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>p(d.value.slice(o.buttonDisplaysQuantity)));function p(E){if(o.filterPermission)return o.filterPermission(E);let h=[],m=[];return h=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(h)||E.length===0?(h=[],[]):(h=h.filter(u=>u.type!="2"),E.forEach(u=>{(!u.permissionsTag||h.findIndex(S=>S.action===u.permissionsTag)!==-1)&&m.push(u)}),m)}const f=E=>{E.handler&&E.handler(o.record)},b=E=>{c.value=E,r.value=!0},N=()=>{if(c.value){s.value=!0;try{f(c.value),s.value=!1,r.value=!1}catch{s.value=!1}}},B=()=>{r.value=!1,c.value=null},H=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:F.Dropdown,AMenu:F.Menu,AMenuItem:F.MenuItem,APopconfirm:F.Popconfirm,AModal:F.Modal,DownOutlined:Y.DownOutlined}),(E,h)=>{const m=e.resolveComponent("a-divider"),u=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>b(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Wt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(m,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(F.Popconfirm),{title:S.confirmTitle,onConfirm:k=>f(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",jt,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[u,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(m,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):S.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(E.$slots,S.slot,{item:S},void 0,!0),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(m,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>f(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,qt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==a.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(m,{key:0,type:"vertical"},null,512)),[[u,S.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(F.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(F.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(S,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:_},{default:e.withCtx(()=>[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:k=>b(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Kt)),[[u,S.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:S.confirmTitle,onConfirm:k=>f(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Gt,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[u,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[u,S.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:k=>f(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Jt)),[[u,S.permissionsTag||null]])]),_:2},1024)),[[u,S.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Yt,[e.createTextVNode(e.toDisplayString(E.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Y.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(F.Modal),{visible:r.value,title:H.value.title,"confirm-loading":s.value,onOk:N,onCancel:B},{default:e.withCtx(()=>[e.createElementVNode("p",Xt,e.toDisplayString(H.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),me=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,r)=>n+r,0)})});var Qt=typeof global=="object"&&global&&global.Object===Object&&global,Zt=typeof self=="object"&&self&&self.Object===Object&&self,Ee=Qt||Zt||Function("return this")(),ae=Ee.Symbol,Fe=Object.prototype,vt=Fe.hasOwnProperty,eo=Fe.toString,te=ae?ae.toStringTag:void 0;function to(t){var l=vt.call(t,te),o=t[te];try{t[te]=void 0;var n=!0}catch{}var r=eo.call(t);return n&&(l?t[te]=o:delete t[te]),r}var oo=Object.prototype,lo=oo.toString;function no(t){return lo.call(t)}var ao="[object Null]",io="[object Undefined]",Ve=ae?ae.toStringTag:void 0;function ro(t){return t==null?t===void 0?io:ao:Ve&&Ve in Object(t)?to(t):no(t)}function so(t){return t!=null&&typeof t=="object"}var co="[object Symbol]";function mo(t){return typeof t=="symbol"||so(t)&&ro(t)==co}var po=/\s/;function fo(t){for(var l=t.length;l--&&po.test(t.charAt(l)););return l}var ho=/^\s+/;function bo(t){return t&&t.slice(0,fo(t)+1).replace(ho,"")}function pe(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var He=NaN,go=/^[-+]0x[0-9a-f]+$/i,uo=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,Co=parseInt;function $e(t){if(typeof t=="number")return t;if(mo(t))return He;if(pe(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=pe(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=bo(t);var o=uo.test(t);return o||yo.test(t)?Co(t.slice(2),o?2:8):go.test(t)?He:+t}var fe=function(){return Ee.Date.now()},ko="Expected a function",_o=Math.max,wo=Math.min;function Ie(t,l,o){var n,r,s,c,d,a,i=0,p=!1,f=!1,b=!0;if(typeof t!="function")throw new TypeError(ko);l=$e(l)||0,pe(o)&&(p=!!o.leading,f="maxWait"in o,s=f?_o($e(o.maxWait)||0,l):s,b="trailing"in o?!!o.trailing:b);function N(k){var g=n,C=r;return n=r=void 0,i=k,c=t.apply(C,g),c}function B(k){return i=k,d=setTimeout(h,l),p?N(k):c}function H(k){var g=k-a,C=k-i,x=l-g;return f?wo(x,s-C):x}function E(k){var g=k-a,C=k-i;return a===void 0||g>=l||g<0||f&&C>=s}function h(){var k=fe();if(E(k))return m(k);d=setTimeout(h,H(k))}function m(k){return d=void 0,b&&n?N(k):(n=r=void 0,c)}function u(){d!==void 0&&clearTimeout(d),i=0,n=a=r=d=void 0}function S(){return d===void 0?c:m(fe())}function _(){var k=fe(),g=E(k);if(n=arguments,r=this,a=k,g){if(d===void 0)return B(a);if(f)return clearTimeout(d),d=setTimeout(h,l),N(a)}return d===void 0&&(d=setTimeout(h,l)),c}return _.cancel=u,_.flush=S,_}const Lo={key:0,class:"hb-lib-list-table-act"},So={class:"empty-container"},xo={key:1},Bo={key:2},De=z(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),n=l,{t:r}=K.useI18n(),s=t,c=e.ref([]),d=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:a}=me(c),i=e.ref(a.value),p=e.computed(()=>s.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,h=>{const m=h.filter(S=>S!=null&&S.checked);c.value=m.map(S=>{let _={...S,title:S.title||S.label,align:S.align||o.listTable?.align||"center"};_.ellipsis&&!_.needTooltip&&(_.needTooltip=!0);let k=s.defaultWidth||o.listTable?.defaultColWidth||150;if(!_.width)_.width=k;else if(typeof _.width=="string"){const g=parseInt(_.width,10);_.width=isNaN(g)?k:g}return _.resizable===void 0&&(_.resizable=!0),_});const{tableWidth:u}=me(c);i.value=u.value},{immediate:!0,deep:!0});const f=Ie(()=>{n("resizeCol",c)},o.listTable?.colSaveTimeOut||800),b=(h,m)=>{if(m){const u=typeof h=="string"?parseInt(h,10):h;m.width=isNaN(u)?o.listTable?.defaultColWidth||150:u,e.nextTick(()=>{f()})}},N=(h,m,u)=>{h?.current&&n("change",h,m,u)},B=(h,m="YYYY-MM-DD HH:mm:ss")=>h?ne(h).format(m):"",H=(h,m)=>h&&m[h]||"",E=(h,m=o.listTable?.ellipsisNumber||20)=>h?h.length>m?`${h.substring(0,m)}...`:h:"";return(h,m)=>{const u=e.resolveComponent("a-empty"),S=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-tag"),g=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":s.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[h.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Lo,[e.renderSlot(h.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(h.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(g,e.mergeProps(h.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:b,onChange:N,scroll:p.value?{x:i.value}:{x:i.value,y:e.unref(d).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",So,[e.createVNode(u,{description:e.unref(r)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[h.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:C})=>[e.renderSlot(h.$slots,"headerCell",{column:C,title:C.title},()=>[e.createTextVNode(e.toDisplayString(C.title),1)],!0)]),key:"0"}:void 0,h.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:C,record:x,index:V,text:M})=>[e.renderSlot(h.$slots,"bodyCell",{column:C,record:x,index:V,text:M},void 0,!0),C&&C.needTooltip&&!C.needCopy?(e.openBlock(),e.createBlock(S,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[C.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x[C.dataIndex]),1)]),_:2},1032,["placement"])):C&&C.needCopy&&!C.needTooltip?(e.openBlock(),e.createElementBlock("div",xo,[e.createTextVNode(e.toDisplayString(x[C.dataIndex])+" ",1),e.createVNode(_,{"cp-text":x[C.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),C&&C.needTooltip&&C.needCopy?(e.openBlock(),e.createElementBlock("div",Bo,[e.createVNode(S,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[C.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(E(x[C.dataIndex],C.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(_,{"cp-text":x[C.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):C&&C.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(B(x[C.dataIndex],C.format)),1)],64)):C&&C.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[H(x[C.dataIndex],C.tags)?(e.openBlock(),e.createBlock(k,{key:0,color:H(x[C.dataIndex],C.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[C.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,h.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:C,index:x})=>[e.renderSlot(h.$slots,"expandedRowRender",{record:C,index:x},void 0,!0)]),key:"2"}:void 0,h.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:C})=>[e.renderSlot(h.$slots,"customFilterDropdown",{column:C},void 0,!0)]),key:"3"}:void 0,h.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:C})=>[e.renderSlot(h.$slots,"customFilterIcon",{column:C},void 0,!0)]),key:"4"}:void 0,h.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:C,record:x,index:V})=>[e.renderSlot(h.$slots,"expandIcon",{expanded:C,record:x,index:V},void 0,!0)]),key:"5"}:void 0,h.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,h.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,h.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),No={class:"hb-lib-table-setting-box"},To={key:0,class:"hb-lib-table-drag-item"},Eo={key:0,class:"hb-lib-table-drag-item-act"},Fo=["onClick"],Vo=["onClick"],Ho={class:"hb-lib-table-set-btn-group"},$o={class:"select-all-container",style:{"margin-right":"10px"}},Me=z(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:n}=K.useI18n(),r=t,s=e.ref([]),c=e.computed(()=>a.value.filter(k=>k.checked));e.ref([]);const d=e.ref(!1),a=e.ref([]),i=e.ref(null),p=e.computed(()=>c.value.length>0&&c.value.length===s.value.length),f=e.computed(()=>c.value.length>0&&c.value.length<s.value.length),b=k=>{i.value=k.oldIndex},N=k=>{const g=k.newIndex;if(s.value.some(x=>x.fixed==="left"||x.fixed==="right"||x.fixed===!0)){const x=s.value.filter(M=>M.fixed==="left").length,V=s.value.length-s.value.filter(M=>M.fixed==="right").length;if((x>0&&g<x||V<s.value.length&&g>=V)&&(F.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const M=a.value.splice(g,1)[0];a.value.splice(i.value,0,M)}}i.value=null},B=k=>{k.target.checked?a.value.forEach(C=>C.checked=!0):a.value.forEach(C=>{C.dataIndex!=="action"&&C.dataIndex!=="actions"&&(C.checked=!1)})},H=()=>{s.value=r.localColumns.map(g=>({...g,label:g.title&&g.title.tag?u(g.title):g.title||g.title2,value:g.dataIndex,checked:g.checked||g.checked===void 0})),a.value=[...s.value];let k=[];r.tableColumns.forEach(function(g){k.push(g.dataIndex)})},E=(k,g)=>{g?k.checked=!0:k.checked=!1},h=()=>{s.value=[...a.value],o("on-get-columns",s.value),d.value=!1},m=()=>{s.value=r.tableColumns.map(g=>({...g,label:g.title&&g.title.tag?u(g.title):g.title||g.title2,value:g.dataIndex,checked:g.checked||g.checked===void 0})),a.value=[...s.value];let k=[];r.tableColumns.forEach(function(g){k.push(g.dataIndex)})},u=k=>k.children[0].text,S=k=>{delete k.fixed;const g=a.value.findIndex(C=>C.value===k.value);if(g!==-1){let C=-1;for(let x=0;x<a.value.length;x++)a.value[x].fixed==="left"&&(C=x);if(C!==-1&&g!==C+1){const x=[...a.value],[V]=x.splice(g,1);x.splice(C+1,0,V),a.value=x}}},_=k=>{const g=a.value.findIndex(C=>C.value===k.value);if(g!==-1){let C=-1;for(let W=0;W<a.value.length;W++)a.value[W].fixed==="left"&&(C=W);const x=[...a.value],[V]=x.splice(g,1);V.fixed="left";const M=C===-1?0:C+1;x.splice(M,0,V),a.value=x}};return e.watch(()=>r.tableColumns,()=>{m()},{immediate:!0,deep:!0}),(k,g)=>{const C=e.resolveComponent("a-tooltip"),x=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",No,[e.createVNode(e.unref(F.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:d.value,"onUpdate:visible":g[1]||(g[1]=V=>d.value=V)},{content:e.withCtx(()=>[e.createVNode(e.unref(le),{modelValue:a.value,"onUpdate:modelValue":g[0]||(g[0]=V=>a.value=V),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:b,onEnd:N},{item:e.withCtx(({element:V})=>[V.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",To,[e.createVNode(e.unref(F.Checkbox),{checked:V.checked,onChange:M=>E(V,M.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["checked","onChange"]),V.checked?(e.openBlock(),e.createElementBlock("section",Eo,[e.createElementVNode("span",{class:e.normalizeClass(V.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),V.fixed?(e.openBlock(),e.createBlock(C,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:M=>S(V)},[...g[2]||(g[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,Fo)]),_:2},1024)):e.createCommentVNode("",!0),V.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:M=>_(V)},[...g[3]||(g[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,Vo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Ho,[e.createElementVNode("div",$o,[e.createVNode(e.unref(F.Checkbox),{checked:p.value,indeterminate:f.value,onChange:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),r.localColumns.length?(e.openBlock(),e.createBlock(x,{key:0,style:{"margin-right":"6px"},onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(x,{onClick:h,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(C,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...g[4]||(g[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"]])),Ae=z(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,n=e.useAttrs(),r=e.computed(()=>{const B=n,H=B.dropdownClassName;return{...B,dropdownClassName:H??"hb_lib_form_tooltip_select__dropdown"}}),s=e.ref(),c=e.useModel(t,"value"),d=e.computed(()=>o.options??[]),a=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=B=>B.tooltip??B.label,p=B=>B.key??B.label,f=B=>!!(o.enableTooltip&&i(B));return l({focus:()=>{s.value?.focus?.()},blur:()=>{s.value?.blur?.()},selectRef:s}),(B,H)=>(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({ref_key:"selectRef",ref:s},r.value,{value:c.value,"onUpdate:value":H[0]||(H[0]=E=>c.value=E),class:"hb_lib_form_tooltip_select"}),{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(d.value,E=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:p(E),value:E.value,disabled:E.disabled},{ref_for:!0},E.optionProps),{default:e.withCtx(()=>[f(E)?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:i(E),placement:o.tooltipPlacement,"overlay-style":a.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(E.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(E.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Io={class:"ant-upload-drag-icon"},Do={class:"ant-upload-text"},Mo={style:{color:"#ff5000"}},Ao={class:"ant-upload-hint"},Oo={key:0,class:"hb_import_btn"},zo=["href"],Oe=z(U(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:l}){const{t:o}=K.useI18n(),n=e.ref(),r=t,s=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),d=b=>{if(b==null)return;const N=c.fileList.indexOf(b);if(N!==-1){const B=c.fileList.slice();B.splice(N,1),c.fileList=B}},a=()=>{c.visible=!1,c.fileList=[],s.value=!1},i=b=>(c.fileList=[b],r.beforeUpload?r.beforeUpload(b.originFileObj):!1),p=()=>{n.value.validateFields().then(()=>{r.beforeSubmit&&(s.value=!0,r.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},f=()=>{c.visible=!0};return l({handleCancel:a,openModal:f,confirmLoading:s}),(b,N)=>{const B=e.resolveComponent("a-upload-dragger"),H=e.resolveComponent("a-form-item"),E=e.resolveComponent("a-form"),h=e.resolveComponent("a-modal"),m=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,e.mergeProps({visible:c.visible,"onUpdate:visible":N[0]||(N[0]=u=>c.visible=u),title:r.title,"confirm-loading":s.value},b.$attrs,{width:r.modalWidth,onCancel:a,onOk:p}),{default:e.withCtx(()=>[e.createVNode(E,{ref_key:"modalFormRef",ref:n,model:c},{default:e.withCtx(()=>[e.createVNode(H,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:r.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(B,{"max-count":r.maxCount,multiple:r.multiple,accept:r.acceptFile,name:"file","file-list":c.fileList,"before-upload":i,onRemove:d},{default:e.withCtx(()=>[e.createElementVNode("p",Io,[e.createVNode(e.unref(Y.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Do,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Mo,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Ao,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(r.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),r.templateUrl?(e.openBlock(),e.createElementBlock("p",Oo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:r.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,zo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(b.$slots,"btn",{},()=>[e.createVNode(m,{type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Po={class:"hb_lib_log_modal_content"},Uo={class:"log_remark"},ze=z(U(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:l,emit:o}){const{t:n}=K.useI18n(),r=e.useSlots(),s=t,c=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],d=e.computed(()=>s.columns||c),a=e.computed(()=>s.title||n("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!r.title),p=e.ref(!1),f=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(m,u)=>u[0]+"-"+u[1]+" 总共"+m+"页",total:0}});e.watch(()=>s.pagination,m=>{m&&(f.pagination={...f.pagination,...m})},{deep:!0,immediate:!0});const b=()=>{const m={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:s.params};s.getLogData&&(p.value=!0,s.getLogData(m).then(u=>{Number(u.code)==200?(f.pagination.total=Number(u.data.total),f.list=u.data[s.dataStr]||[]):F.message.error(u.message)}).finally(()=>{p.value=!1}))},N=m=>{f.pagination.current=m.current,f.pagination.pageSize=m.pageSize,b()},B=()=>{f.list=[],h("update:visible",!1)},H=()=>{h("update:visible",!0)},E=(m,u="YYYY-MM-DD HH:mm:ss")=>m?ne(m).format(u):"",h=o;return e.watch(()=>s.visible,m=>{m&&b()}),l({close:B,loading:p}),(m,u)=>{const S=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-table"),g=e.resolveComponent("a-button"),C=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(C,e.mergeProps(m.$attrs,{visible:t.visible,title:i.value?void 0:a.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:B}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(g,{onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Po,[e.createVNode(k,{bordered:"",rowKey:"id",columns:d.value,dataSource:f.list,pagination:f.pagination,loading:p.value,scroll:{y:t.scrollY},onChange:N},e.createSlots({bodyCell:e.withCtx(({column:x,record:V})=>[x&&x.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.needTooltip?(e.openBlock(),e.createBlock(S,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V[x.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(V[x.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),x&&x.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Uo,e.toDisplayString(V[x.dataIndex]),1),e.createVNode(_,{"cp-text":V[x.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),x&&x.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(E(V[x.dataIndex],x.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[m.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:x})=>[e.renderSlot(m.$slots,"headerCell",{column:x},()=>[e.createTextVNode(e.toDisplayString(x.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(m.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(m.$slots,"default",{key:0},()=>[e.createVNode(g,{onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Ro={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}},Wo={class:"hb_ui_config"},jo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,n=>{o=e.reactive(Q.merge({},Ro,n))},{deep:!0,immediate:!0}),e.provide(he,o),(n,r)=>(e.openBlock(),e.createElementBlock("div",Wo,[e.renderSlot(n.$slots,"default")]))}}),he=Symbol("GLOBAL_CONFIG_KEY"),Pe=z(jo),qo={class:"hb_card"},Yo={key:0,class:"hb_card_header"},Ko={class:"hb_fix"},Go={class:"hb_card_header-title"},Jo={class:"hb_card_header-action"},Xo={class:"hb_card_body"},Ue=z(U(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(he),o=t,n=e.computed(()=>{let r=o.formItemMb||l?.HbLibCard?.formItemMb;return r?{"--hb-card-form-item-mb":r+"px"}:{}});return(r,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},r.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",qo,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Ko,[e.createElementVNode("span",Go,[e.renderSlot(r.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",Jo,[e.renderSlot(r.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Xo,[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(n.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),Qo=["onClick"],Zo={class:"step"},vo={key:0,class:"line"},el=["title"],Re=z(U(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),n=l.offsetTop??160,r=e.computed(()=>l.anchors.filter(a=>typeof a.visible=="function"?a.visible():a.visible!==!1)),s=()=>{const a=l.containerSelector||"#subpackage_container";return document.querySelector(a)||window},c=a=>{const i=s(),p=a.target.startsWith("#")||a.target.startsWith(".")?a.target:`#${a.target}`,f=document.querySelector(p);if(!f)return;let b=f.offsetTop;i instanceof HTMLElement&&(b-=i.offsetTop),b-=n,i instanceof Window?window.scrollTo({top:b,behavior:"smooth"}):i.scrollTo({top:b,behavior:"smooth"}),o.value=a.target},d=()=>{const a=s();let i=0;a instanceof Window?i=window.scrollY+n+5:i=a.scrollTop+n+5;let p=r.value[0]?.target||"";for(const f of r.value){const b=f.target.startsWith("#")||f.target.startsWith(".")?f.target:`#${f.target}`,N=document.querySelector(b);if(!N)continue;let B=N.offsetTop;a instanceof HTMLElement&&(B-=a.offsetTop),i>=B&&(p=f.target)}o.value=p};return e.onMounted(()=>{s().addEventListener("scroll",d),d()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",d)}),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(n)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,f)=>(e.openBlock(),e.createElementBlock("div",{key:p.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===p.target}]),onClick:b=>c(p)},[e.createElementVNode("div",Zo,[f!==r.value.length-1?(e.openBlock(),e.createElementBlock("div",vo)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:p.title},e.toDisplayString(p.title.length>12?p.title.slice(0,12)+"...":p.title),9,el)],10,Qo))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),tl={class:"hb_detail_top_act_left"},ol={key:1,class:"hb_detail_top_wrapper_sticky"},ll={class:"hb_detail_top_act"},nl={key:0,class:"hb_detail_all_info"},al={class:"hb_detail_all_info_left"},il={class:"hb_detail_info_title"},rl={key:0,class:"hb_detail_info_content"},sl={class:"create_by"},cl={class:"hb_detail_all_info_right"},dl={class:"hb_edit_detail_content_wrapper"},ml={class:"hb_detail_content"},pl={class:"hb-back-top-inner"},We=z(U(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.inject(he),r=()=>{o.backFn?o.backFn():window.history.back()},s=e.computed(()=>o.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const H={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:H}),d=()=>document.querySelector(o.container),a=e.ref(!1),i=e.ref(null),{top:p}=Z.useElementBounding(i),f=e.computed(d),{y:b}=Z.useScroll(f);e.watch(b,H=>{a.value=H>p.value},{immediate:!0});const N=H=>{document.querySelectorAll(".hb_card_body").forEach(h=>{h.querySelectorAll(".ant-descriptions-item-content span").forEach(u=>{u.textContent?.trim()||(u.textContent=H)})})};let B=null;return e.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(B=setTimeout(()=>{N(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{B&&clearTimeout(B)}),(H,E)=>{const h=e.resolveComponent("RollbackOutlined"),m=e.resolveComponent("a-divider"),u=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(u,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",c.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":c.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":c.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",a.value?"can_show":""])},[e.createElementVNode("div",tl,[e.createVNode(h,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(m,{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",ol,[e.createElementVNode("div",ll,[e.createVNode(h),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(m,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("aside",al,[e.renderSlot(H.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",il,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",rl,[e.createElementVNode("span",sl,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",cl,[e.renderSlot(H.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",dl,[e.createElementVNode("div",ml,[e.renderSlot(H.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(F.BackTop),{target:d,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",pl,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),je=z(U(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(a,i=300)=>Ie(a,i),n=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),r=e.ref(0),s=a=>{let i=0;return(Array.isArray(a)?a:[a]).forEach(f=>{let b=[];if(f.startsWith("#")){const N=document.getElementById(f.slice(1));N&&b.push(N)}else b=Array.from(document.getElementsByClassName(f));b.forEach(N=>{i+=N.offsetWidth||0})}),i},c=()=>{l.leftElements&&(r.value=s(l.leftElements)+1)};let d=null;return e.onMounted(()=>{const a=l.getContainer();a!==window&&a instanceof HTMLElement&&a.addEventListener("scroll",()=>{}),c(),d=new MutationObserver(()=>{c()});const i=document.body;d.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{d&&d.disconnect()}),(a,i)=>{const p=e.resolveComponent("a-button"),f=e.resolveComponent("a-space"),b=e.resolveComponent("a-affix"),N=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":r.value+"px"})},[e.createVNode(b,{"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(f,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,B=>e.withDirectives((e.openBlock(),e.createBlock(p,{key:B.key,type:B.type||"default",danger:B.danger,loading:B.loading,disabled:B.disabled,onClick:B.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[N,B.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),fl={class:"modal__detail-content"},qe=z(U(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:l,emit:o}){const n=o,r=t,s=e.computed({get:()=>r.visible,set:V=>n("update:visible",V)}),c=e.ref(null),d=e.computed(()=>({top:"10px",...r.modalStyle})),a=e.computed(()=>({overflow:"hidden",...r.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...r.bodyStyle})),{x:p,y:f,isDragging:b}=Z.useDraggable(c),N=e.ref(0),B=e.ref(0),H=e.ref(!1),E=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref(0),S=e.ref({left:0,right:0,top:0,bottom:0});let _=null;const k=()=>{E.value=0,h.value=0,m.value=0,u.value=0,H.value=!1};e.watch(s,V=>{V?setTimeout(()=>{k()},50):(_&&clearTimeout(_),_=setTimeout(()=>{E.value=0,h.value=0,m.value=0,u.value=0},300))}),e.watch([p,f],()=>{if(!H.value){N.value=p.value,B.value=f.value;const V=document.body.getBoundingClientRect(),M=c.value.getBoundingClientRect();S.value.right=V.width-M.width,S.value.bottom=V.height-M.height,m.value=E.value,u.value=h.value}H.value=!0}),e.watch(b,()=>{b||(H.value=!1)}),e.watchEffect(()=>{H.value&&(E.value=m.value+Math.min(Math.max(S.value.left,p.value),S.value.right)-N.value,h.value=u.value+Math.min(Math.max(S.value.top,f.value),S.value.bottom)-B.value)});const g=e.computed(()=>({transform:`translate(${E.value}px, ${h.value}px)`})),C=()=>{n("cancel")},x=()=>{n("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),l({handleOk:x,handleCancel:C}),(V,M)=>{const W=e.resolveComponent("a-spin"),w=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(w,e.mergeProps({style:d.value,bodyStyle:i.value,ref:"modalRef",visible:s.value,"onUpdate:visible":M[0]||(M[0]=L=>s.value=L),"wrap-style":a.value,onOk:x,onCancel:C},V.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,style:{width:"100%",cursor:"move"}},[e.renderSlot(V.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:L})=>[(e.openBlock(),e.createElementBlock("div",{key:s.value,style:e.normalizeStyle(g.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L)))],4))]),default:e.withCtx(()=>[e.createVNode(W,{spinning:r.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(V.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[V.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),hl={key:0,class:"hb_edit_header"},bl={class:"__detail-content"},gl={key:1,class:"hb_edit_footer"},ul={class:"hb-back-top-inner"},Ye=z(U(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const l=e.ref("vertical"),o=t,n=()=>document.querySelector(o.container),r=e.inject("GLOBAL_CONFIG_KEY"),s=e.computed(()=>o.backTopBottom||r?.HbLibUnDetailBox?.backTopBottom||80);return(c,d)=>(e.openBlock(),e.createBlock(e.unref(F.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",hl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",bl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",gl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(F.BackTop),{target:n,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",ul,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),yl={class:"hb_edit_header_left"},Cl={class:"hb_edit_header_title"},kl={class:"hb_edit_header_right"},Ke=z(U(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=K.useI18n(),o=t,n=ce.useRoute(),r=e.ref(0),s=e.computed(()=>n?.meta?.title||"");function c(b,N="offsetHeight"){let B=0;return(Array.isArray(b)?b:[b]).forEach(E=>{let h=[];if(E.startsWith("#")){const m=document.getElementById(E.slice(1));m&&h.push(m)}else h=Array.from(document.getElementsByClassName(E));h.forEach(m=>{B+=m[N]||0})}),B}const d=()=>{o.topElements&&(r.value=c(o.topElements))},a=e.ref(0),i=()=>{o.leftElements&&(a.value=c(o.leftElements,"offsetWidth")+1)};let p=null;e.onMounted(()=>{d(),i(),window.addEventListener("resize",d),p=new MutationObserver(()=>{i()});const b=document.body;p.observe(b,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",d),p&&p.disconnect()}),e.watch(()=>o.topElements,()=>{d()},{immediate:!0});const f=()=>{o.backFn?o.backFn():window.history.back()};return(b,N)=>{const B=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:r.value+"px","--pageHeaderOrFonterLeft":a.value+"px"})},[e.createElementVNode("aside",yl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(B,{type:"vertical"}),e.createElementVNode("span",Cl,e.toDisplayString(s.value),1)]),e.createElementVNode("aside",kl,[e.renderSlot(b.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),_l={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"}},be=z(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:_l,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const n=e.computed(()=>l.tooltipTitle||"复制"),r=e.computed(()=>l.copySuccessTip||"复制成功"),s=e.computed(()=>l.copyFailTip||"复制失败"),c=e.computed(()=>{if(l.cpText)return l.cpText;let a="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(p=>p?.[l.K]===l.V);a=i?i[l.L]:""}}else l.K&&(a=l.data[l.K]);return a}),d=()=>{navigator.clipboard.writeText(c.value).then(()=>{F.message.success(r.value)}).catch(()=>{F.message.error(s.value)})};return(a,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...a.cpStyle}),onClick:e.withModifiers(d,["stop","prevent"])},[...i[0]||(i[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),wl={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:""}},Ge=z(U(e.defineComponent({name:"HbDrag",__name:"index",props:wl,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,n=e.shallowRef([]);e.watch(()=>o.dragList,p=>{n.value=p},{deep:!0,immediate:!0});const r=de("drag"),s=l,c=p=>{console.log("drag start",p),s("handleDragStart",p)},d=p=>{console.log("drag end",p),s("handleDragEnd",p)},a=p=>{console.log("drag add",p),s("handleDragAdd",p)},i=p=>{console.log("drag remove",p),s("handleDragRemove",p)};return(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[p.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=b=>n.value=b),"item-key":"key",class:{[p.dragClass]:p.dragClass}},p.$attrs,{"ghost-class":p.ghostClass,onStart:c,onEnd:d,onAdd:a,onRemove:i}),{item:e.withCtx(({element:b})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=b=>n.value=b),"item-key":"id",class:{[p.dragClass]:p.dragClass}},p.$attrs,{"ghost-class":p.ghostClass,onStart:c,onEnd:d,onAdd:a,onRemove:i}),{item:e.withCtx(({element:b})=>[e.createElementVNode("div",null,[e.renderSlot(p.$slots,"default",{item:b},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Ll={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Je=z(U(e.defineComponent({name:"HbLibSort",__name:"sort",props:Ll,emits:["change"],setup(t,{expose:l,emit:o}){const n=t,r=o,s=e.ref([]),c=e.ref("");e.watch(()=>n.menuItems,a=>{let i=[];Array.isArray(a)&&a.length&&a.forEach(p=>{i=[...i,{label:`${p.label}升序`,value:`${p.value}`,sort:"Asc"},{label:`${p.label}降序`,value:`${p.value}`,sort:"Desc"}]}),s.value=i},{deep:!0,immediate:!0});const d=a=>{c.value=a.value+a.sort,n.getSort&&n.getSort({orderFeild:a.value,orderBy:a.sort}),r("change",c)};return l({currentActiveItem:c}),(a,i)=>{const p=e.resolveComponent("a-menu-item"),f=e.resolveComponent("a-menu"),b=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(b,{trigger:[n.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,N=>(e.openBlock(),e.createBlock(p,{key:N.value+N.sort,onClick:B=>d(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:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(n.colText)+" ",1),e.createVNode(e.unref(Y.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Sl={class:"hb_lib_loading"},xl={class:"hb_lib_loading_loading_anima"},Bl={class:"hb_lib_loading_load_tips"},Xe=z(U(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(r,s)=>(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",xl,[s[0]||(s[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",Bl,e.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]]));function Qe(t){const l=t.trim();try{return new URL(l).href}catch{const o=l.replace(/ /g,"%20");try{return new URL(o).href}catch{return o}}}function Ze(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function ve(t){return new Promise((l,o)=>{const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.withCredentials=Ze(t),n.onload=()=>{n.status>=200&&n.status<300?l(n.response):o(new Error(String(n.status)))},n.onerror=()=>o(new Error("xhr")),n.send()})}async function Nl(t){const l=Qe(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return ve(l);if(typeof fetch=="function"){const n=await fetch(l,{credentials:Ze(l)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return ve(l)}function Tl(t,l){const o=l.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(t,o);return}const r=URL.createObjectURL(t);try{const s=document.createElement("a");s.href=r,s.rel="noopener noreferrer",s.setAttribute("download",o),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)}finally{URL.revokeObjectURL(r)}}function El(t){const l=Qe(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function ie(t,l){const o=(l||"download").trim()||"download";try{const n=await Nl(t);Tl(n,o);return}catch{El(t)}}const Fl=768;function Vl(){return typeof window>"u"?!0:window.innerWidth>=Fl}function et(){return!Vl()}const oe=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},Hl=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),$l=t=>Hl.has(oe(t)),tt=t=>t.downloadUrl,Il=(t,l,o)=>{const n=a=>a.previewUrl,r=o?.preferredIndex;if(typeof r=="number"&&r>=0&&r<t.length){const a=t[r];if(a===l)return r;const i="uploadDate"in a&&a.uploadDate||"",p="uploadDate"in l&&l.uploadDate||"";if(n(a)===n(l)&&(a.attachmentDesc||"")===(l.attachmentDesc||"")&&i===p)return r}const s=l.attachmentId;if(s){const a=t.findIndex(i=>i.attachmentId===s);if(a>=0)return a}const c=n(l);if(c){const a=t.findIndex(i=>n(i)===c);if(a>=0)return a}const d=tt(l);if(d){const a=t.findIndex(i=>tt(i)===d);if(a>=0)return a}return t.indexOf(l)},Dl={class:"file-preview-modal-title"},Ml={key:0,class:"file-preview-modal-title__tip"},Al={class:"file-preview-modal-body file-preview-modal-body--fill"},Ol=["src"],zl=["src"],Pl={key:2,class:"file-preview-modal-body__pre"},Ul=["src"],Rl=["src"],Wl={key:0,class:"file-preview-modal-footer__nav"},jl={class:"file-preview-modal-body file-preview-modal-body--fill"},ql=["src"],Yl=["src"],Kl={key:2,class:"file-preview-modal-body__pre"},Gl=["src"],Jl=["src"],Xl={key:0,class:"file-preview-modal-footer__nav"},ot=z(U(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),n=l,r=t,s=e.ref(r.previewVisible);e.watch(()=>r.previewVisible,w=>{s.value=w});const c=e.computed(()=>r.mobile?"100%":"98%"),d=e.computed(()=>r.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),a=e.computed(()=>({height:r.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:r.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),i=e.computed(()=>{const w=(r.fileName||"").trim(),L=(r.url||"").trim(),O=w?oe(w):"",A=L?oe(L):"";return A&&O&&A!==O?L:O?w:A?L:w||L}),p=e.computed(()=>i.value?oe(i.value):""),f=e.computed(()=>`${r.url}\0${r.fileName||""}`),b=e.computed(()=>i.value?$l(i.value):!1),N=e.computed(()=>{if(!i.value)return!1;const w=oe(i.value);return["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv"].includes(w)}),B=e.computed(()=>{const w=(r.url||"").trim();if(!w)return!1;try{const{pathname:L}=new URL(w);return/\/file(?:\/|-)preview\b/i.test(L)}catch{return/\/file(?:\/|-)preview\b/i.test(w)}}),H=typeof window<"u",E=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),h=e.computed(()=>!H||!r.url?.trim()||B.value?!1:E.has(p.value)),m=e.computed(()=>p.value==="txt"),u=e.computed(()=>!r.url?.trim()||B.value?!1:m.value),S=e.ref("idle"),_=e.ref("");e.watch(()=>({visible:r.previewVisible,url:r.url,isTxt:m.value}),async({visible:w,url:L,isTxt:O})=>{if(_.value="",S.value="idle",!(!w||!O||!(L||"").trim())){S.value="loading";try{const A=await fetch(L.trim(),{credentials:"include",mode:"cors"});if(!A.ok)throw new Error(String(A.status));_.value=await A.text(),S.value="text"}catch{S.value="iframe-fallback"}}},{flush:"post"});const k=e.computed(()=>!r.url?.trim()||!H||m.value?!1:h.value?!0:!N.value&&!b.value),g=e.computed(()=>o.has(p.value)),C=e.computed(()=>{const w=(r.url||"").trim();return w?B.value||!N.value||p.value==="pdf"?w:g.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(w)}`:`https://docs.google.com/gview?url=${encodeURIComponent(w)}&embedded=true`:r.url}),x=e.ref("");e.watch(()=>({visible:r.previewVisible,src:C.value,doc:N.value,serverPage:B.value,skipIframe:h.value}),async({visible:w,src:L,doc:O,serverPage:A,skipIframe:R})=>{if(x.value="",!w||!(O||A)||R)return;const j=(L||"").trim();j&&(await e.nextTick(),await new Promise(G=>requestAnimationFrame(G)),r.previewVisible&&C.value===j&&(x.value=j))},{flush:"post"});const V=e.computed(()=>r.url&&(!b.value||!N.value)),M=async()=>{et()?window.open(r.url,"_blank"):await ie(r.url,r.fileName||"file")},W=()=>{n("closeModal")};return(w,L)=>{const O=e.resolveComponent("a-spin"),A=e.resolveComponent("VueFilesPreview"),R=e.resolveComponent("a-button"),j=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(j,e.mergeProps({key:0,visible:s.value,"onUpdate:visible":L[2]||(L[2]=G=>s.value=G),width:c.value,"body-style":a.value,style:d.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},w.$attrs,{onCancel:W}),{title:e.withCtx(()=>[e.createElementVNode("div",Dl,[e.renderSlot(w.$slots,"title",{},()=>[L[5]||(L[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(et)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Ml,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Wl,[e.createVNode(R,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[0]||(L[0]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...L[6]||(L[6]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(R,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[1]||(L[1]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...L[7]||(L[7]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),V.value&&r.url?(e.openBlock(),e.createBlock(R,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:M},{default:e.withCtx(()=>[...L[8]||(L[8]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(R,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:W},{default:e.withCtx(()=>[...L[9]||(L[9]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Al,[B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${f.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ol)):e.createCommentVNode("",!0)],64)):u.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${f.value}`,class:"file-preview-modal-body__plaintext"},[S.value==="loading"?(e.openBlock(),e.createBlock(O,{key:0,tip:"加载中..."})):S.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:r.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,zl)):S.value==="text"?(e.openBlock(),e.createElementBlock("pre",Pl," "+e.toDisplayString(_.value)+`
2
+ `,1)):e.createCommentVNode("",!0)])):k.value?(e.openBlock(),e.createBlock(A,{key:`vfp:${f.value}`,url:t.url},null,8,["url"])):N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${f.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ul)):e.createCommentVNode("",!0)],64)):b.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${f.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Rl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${f.value}`,class:"no-preview"},e.toDisplayString(H?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",jl,[B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${f.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,ql)):e.createCommentVNode("",!0)],64)):u.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${f.value}`,class:"file-preview-modal-body__plaintext"},[S.value==="loading"?(e.openBlock(),e.createBlock(O,{key:0,tip:"加载中..."})):S.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:r.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Yl)):S.value==="text"?(e.openBlock(),e.createElementBlock("pre",Kl,e.toDisplayString(_.value)+`
3
+ `,1)):e.createCommentVNode("",!0)])):k.value?(e.openBlock(),e.createBlock(A,{key:`vfp:${f.value}`,url:t.url},null,8,["url"])):N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${f.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Gl)):e.createCommentVNode("",!0)],64)):b.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${f.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Jl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${f.value}`,class:"no-preview"},e.toDisplayString(H?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Xl,[e.createVNode(R,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[3]||(L[3]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...L[10]||(L[10]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(R,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[4]||(L[4]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...L[11]||(L[11]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),V.value&&r.url?(e.openBlock(),e.createBlock(R,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:M},{default:e.withCtx(()=>[...L[12]||(L[12]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(R,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:W},{default:e.withCtx(()=>[...L[13]||(L[13]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-fcdd69c0"]])),Ql=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Re,HbLibCard:Ue,HbLibCopy:be,HbLibDetailBox:We,HbLibFilePreview:ot,HbLibFooterBar:je,HbLibFormItemFilterModal:ke,HbLibFormTooltipSelect:Ae,HbLibFuncCompDrag:Ge,HbLibImportFile:Oe,HbLibListBtnsAct:Le,HbLibListForm:_e,HbLibListMultiSelect:Be,HbLibListPageAct:we,HbLibListPageContainer:xe,HbLibListTable:De,HbLibLoading:Xe,HbLibLogModal:ze,HbLibModal:qe,HbLibMutilpleSelectModal:Ne,HbLibPageHeader:Ke,HbLibSort:Je,HbLibTableAct:Te,HbLibTableColumnSet:Me,HbLibUnDetailBox:Ye,HbUiConfig:Pe},Symbol.toStringTag,{value:"Module"})),J=new Map;let lt;Z.isClient&&(document.addEventListener("mousedown",t=>lt=t),document.addEventListener("mouseup",t=>{for(const l of J.values())for(const{documentHandler:o}of l)o(t,lt)}));function nt(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(n,r){const s=l.instance.popperRef,c=n.target,d=r?.target,a=!l||!l.instance,i=!c||!d,p=t.contains(c)||t.contains(d),f=t===c,b=o.length&&o.some(B=>B?.contains(c))||o.length&&o.includes(d),N=s&&(s.contains(c)||s.contains(d));a||i||p||f||b||N||l.value(n,r)}}const Zl={beforeMount(t,l){J.has(t)||J.set(t,[]),J.get(t).push({documentHandler:nt(t,l),bindingFn:l.value})},updated(t,l){J.has(t)||J.set(t,[]);const o=J.get(t),n=o.findIndex(s=>s.bindingFn===l.oldValue),r={documentHandler:nt(t,l),bindingFn:l.value};n>=0?o.splice(n,1,r):o.push(r)},unmounted(t){J.delete(t)}},vl={mounted(t,l){const{value:o,arg:n}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const r=parseInt(n,10)||300;let s;t.__debounceHandler__=function(...c){s&&clearTimeout(s),s=setTimeout(()=>{o(...c)},r)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},at=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(be,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},en={cos:Zl,dc:vl,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}at(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&at(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}};function tn(t){const l=e.ref(!1),o=e.ref(""),n=e.ref(""),r=e.ref(-1),s=h=>h.previewUrl,c=e.computed(()=>{const h=t.value.attachmentInfos,m=r.value;if(m<=0)return!1;for(let u=m-1;u>=0;u--)if(s(h[u]))return!0;return!1}),d=e.computed(()=>{const h=t.value.attachmentInfos,m=r.value;if(m<0||m>=h.length-1)return!1;for(let u=m+1;u<h.length;u++)if(s(h[u]))return!0;return!1}),a=e.computed(()=>t.value.attachmentInfos.length>1),i=h=>{const u=t.value.attachmentInfos[h];if(!u)return;const S=s(u);S&&(r.value=h,o.value=S,n.value=u.attachmentDesc||"",l.value=!0)},p=()=>{const h=t.value.attachmentInfos,m=r.value;for(let u=m-1;u>=0;u--)if(s(h[u])){i(u);return}},f=()=>{const h=t.value.attachmentInfos,m=r.value;for(let u=m+1;u<h.length;u++)if(s(h[u])){i(u);return}},b=()=>{l.value=!1,r.value=-1,o.value="",n.value=""},N=(h,m)=>{const u=s(h);if(!u){F.message.warning("暂无预览地址");return}const S=t.value.attachmentInfos,_=Il(S,h,{preferredIndex:m});_>=0?i(_):(r.value=-1,o.value=u,n.value=h.attachmentDesc||"",l.value=!0)},B=h=>{const m=h.downloadUrl;if(!m){F.message.warning("暂无下载地址");return}const u=h.attachmentDesc?.trim()||"download";ie(m,u)},H=400;return{filePreviewVisible:l,pdfPreviewUrlRef:o,previewFileNameRef:n,previewAttachmentIndexRef:r,hasPrevAttachment:c,hasNextAttachment:d,showAttachmentNavBar:a,handlePreview:N,handleDownload:B,handleClosePreview:b,goPrevAttachment:p,goNextAttachment:f,triggerBrowserDownload:ie,handleBatchDownloadAttachment:async()=>{const m=t.value.attachmentInfos.filter(u=>!!u.downloadUrl?.trim());if(m.length===0){F.message.warning("暂无可下载附件");return}for(let u=0;u<m.length;u++){const S=m[u],_=S.attachmentDesc?.trim()||"download";ie(S.downloadUrl,_),u<m.length-1&&await new Promise(k=>setTimeout(k,H))}}}}const on=t=>{const l=e.ref();l.value=t.slice();const o=JSON.parse(JSON.stringify(l.value));return{formItems:l,DeepCloneFromItem:o,handleSearchCase:r=>{let s=[],c=Object.keys(r);o.forEach(d=>{c.includes(d.key)&&s.push(d)}),l.value=s}}},ln=t=>{let l=!0;return{start:()=>{e.nextTick(()=>{const s=document.querySelector(`.${t} .ant-modal`);if(s){let c=!1,d={x:0,y:0};const a=s.querySelector(".ant-modal-header"),i=s.querySelector(".ant-modal-footer");a&&(a.style.cursor="move",i.style.cursor="move",a.addEventListener("mousedown",p=>{c=!0,d.x=p.clientX-s.offsetLeft,d.y=p.clientY-s.offsetTop,document.body.style.userSelect="none"}),i.addEventListener("mousedown",p=>{c=!0,d.x=p.clientX-s.offsetLeft,d.y=p.clientY-s.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",p=>{if(!c||!l)return;const f=p.clientX-d.x,b=p.clientY-d.y;s.style.left=`${f}px`,s.style.top=`${b}px`}),document.addEventListener("mouseup",()=>{c=!1,document.body.style.userSelect=""}))}})},stop:()=>{l=!1},resetPosition:()=>{e.nextTick(()=>{const s=document.querySelector(`.${t} .ant-modal`);if(s){const c=window.innerWidth,d=window.innerHeight,a=s.offsetWidth,i=s.offsetHeight,p=(c-a)/2,f=(d-i)/2;s.style.left=`${p}px`,s.style.top=`${f}px`}})}}},nn={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"}}},an={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:"戻る"}}},rn={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:"加载中...如长时间加载请重试!"}}},sn={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 re={exports:{}},cn=re.exports,it;function dn(){return it||(it=1,(function(t,l){(function(o,n){t.exports=n(ne)})(cn,(function(o){function n(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=n(o),s={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,d){return d==="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,d){var a=100*c+d;return a<600?"凌晨":a<900?"早上":a<1100?"上午":a<1300?"中午":a<1800?"下午":"晚上"}};return r.default.locale(s,null,!0),s}))})(re)),re.exports}dn(),ne.locale("zh-cn");const mn={en_US:nn,ja_JP:an,zh_CN:rn,de_DE:sn},pn=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(Ql).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),Object.entries(en).forEach(([o,n])=>{t.directive(o,n)})};$.HbLibAnchor=Re,$.HbLibCard=Ue,$.HbLibCopy=be,$.HbLibDetailBox=We,$.HbLibFilePreview=ot,$.HbLibFooterBar=je,$.HbLibFormItemFilterModal=ke,$.HbLibFormTooltipSelect=Ae,$.HbLibFuncCompDrag=Ge,$.HbLibImportFile=Oe,$.HbLibListBtnsAct=Le,$.HbLibListForm=_e,$.HbLibListMultiSelect=Be,$.HbLibListPageAct=we,$.HbLibListPageContainer=xe,$.HbLibListTable=De,$.HbLibLoading=Xe,$.HbLibLogModal=ze,$.HbLibModal=qe,$.HbLibMutilpleSelectModal=Ne,$.HbLibPageHeader=Ke,$.HbLibSort=Je,$.HbLibTableAct=Te,$.HbLibTableColumnSet=Me,$.HbLibUnDetailBox=Ye,$.HbUiConfig=Pe,$.install=pn,$.locales=mn,$.useCalTableHeight=Se,$.useCalTableWidth=me,$.useFilePreview=tn,$.useListFormItem=on,$.useModalDrag=ln,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));