@hb-hellotech/hb-ui 2.2.1 → 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.
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +15 -24
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts +0 -1
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts.map +1 -1
- package/dist/components/hooks/index.d.ts +4 -4
- package/dist/components/hooks/index.d.ts.map +1 -1
- package/dist/components/hooks/useFilePreview.d.ts +1 -1
- package/dist/components/hooks/useFilePreview.d.ts.map +1 -1
- package/dist/components/utils/util.d.ts +24 -0
- package/dist/components/utils/util.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1234 -1176
- package/dist/hb_component_lib.umd.cjs +3 -3
- package/dist/index.d.ts.map +1 -1
- package/hooks/useFilePreview.ts +5 -3
- package/package.json +3 -2
- package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts +0 -10
- package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts +0 -17
- package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
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 rt(l)},v=(t,l,o,n)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),n&&(t+=`--${n}`),t),rt=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}`:""}),st=["onMouseenter","onMouseleave"],ct=["onClick"],dt=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,b=K.useI18n().messages.value.zh_CN,a=t,i=e.computed(()=>a.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.computed(()=>a.title||r("hbLibComp.hbFormItemFilterModal.title")),m=o,f=de("sfcm"),N=ce.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),H=e.ref(!1),E=e.ref(600);let p=[];const d=e.ref([]),u=e.ref([]),S=e.computed(()=>d.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=d.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(b,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(b,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)){p=JSON.parse(JSON.stringify(I.originalList));const T=p.filter(D=>D?.isFixed),P=p.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)})),ge=q.slice(0,X).map(D=>({..._(D)}));d.value=[...ee,...se,...ge];const ue=d.value.map(D=>D.key),ye=p.map(D=>D.key).filter(D=>!ue.includes(D));return u.value=p.filter(D=>ye.includes(D.key)).map(D=>({..._(D),active:!1})),!0}}}catch(y){console.warn("加载保存的搜索配置失败:",y)}return!1},j=()=>{try{const y={originalList:p,showList:d.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=d.value.filter(T=>!T.isFixed&&!T.isLinked).length,I=d.value.filter(T=>T.isFixed||T.isLinked).length;return y>=i.value-I});e.watch(()=>a.list,y=>{let I=JSON.stringify(d.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(),m("confirm",d.value);else if(I){p=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,ge=q.map(D=>_(D)),ue=X.map(D=>_(D)),it=ee.slice(0,se).map(D=>_(D));d.value=[...ge,...ue,...it];const ye=ee.slice(se).map(D=>({..._(D),active:!1}));u.value=ye,m("confirm",d.value)}},{immediate:!0});const L=y=>{const I=d.value.findIndex(T=>T.key===y.key);I!==-1&&(d.value.splice(I,1),u.value.push({...y,active:!1}))},z=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);d.value.push({...T,active:!1})}},A=()=>{H.value=!1},R=()=>{H.value=!0},W=()=>{j(),m("confirm",d.value),A()},G=y=>{const I=u.value.findIndex(T=>T.key===y.key);I!==-1&&(u.value[I].active=!0)},he=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(f).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:W},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("title"))},e.toDisplayString(h.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:W},{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(f).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(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(f).e("show__tag"))},[e.createVNode(e.unref(le),{modelValue:d.value,"onUpdate:modelValue":I[0]||(I[0]=T=>d.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(f).e("show__tag__item"),e.unref(f).is("fixed",T.isFixed),e.unref(f).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(f).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(f).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("unshow__tag"))},[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.key,class:e.normalizeClass([e.unref(f).e("unshow__tag__item"),e.unref(f).is("fixed",T.isFixed||""),e.unref(f).is("linked",T.isLinked||"")]),onMouseenter:P=>G(T),onMouseleave:P=>he(T)},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),T.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(f).e("unshow__tag__item-add")),onClick:P=>z(T)},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.add")),11,ct)):e.createCommentVNode("",!0)],42,st))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(f).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},mt=U(dt,[["__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 Ce=O(mt),pt={key:0,class:"form-footer"},ft={class:"scheme-fontWeight"},bt={class:"scheme-fontWeight"},ht={class:"scheme-fontWeight"},gt={class:"scheme-fontWeight"},ke=O(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||[]),b=de("form"),a=t,i=e.computed(()=>a.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.ref("show"),m=e.computed(()=>a.needFooter||n.HbLibListForm?.needFooter),f=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 p=e.computed(()=>a.saveKey),d=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,z=L.querySelector(".hb-lib-form--container");if(z){const A=z.offsetHeight;L.style.height=A+"px",L.style.overflow="hidden",L.offsetHeight,requestAnimationFrame(()=>{L.style.height="0"})}},j=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return l({formRef:d,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 z=e.resolveComponent("a-button"),A=e.resolveComponent("a-tooltip"),R=e.resolveComponent("a-menu-item"),W=e.resolveComponent("a-menu"),G=e.resolveComponent("a-dropdown"),he=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:j},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(b).b(),"hb-lib-list-page-form-box","hb-form-item-ui",m.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(w.$attrs,{model:t.formData,ref_key:"formRef",ref:d,class:["hb-lib-form--container",h.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)),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",pt,[e.createVNode(z,{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(z,{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(W,{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",ft,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"]),m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(b).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("footer__left"))},[e.renderSlot(w.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("footer__right"))},[h.value=="show"?e.renderSlot(w.$slots,"form-footer-right",{key:0,formRef:d.value},()=>[e.createVNode(z,{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(z,{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(W,{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",gt,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(he,{showNumber:i.value,list:f.value,ref_key:"HbSfCmRef",ref:_,onConfirm:C,saveKey:p.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),ut={class:"hb-lib-list-page-act-box"},yt={class:"hb-lib-list-page-breadcrumb"},Ct={class:"hb-lib-list-page-act"},kt={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"},_t={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},_e=O(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 h=new Map;setTimeout(a?()=>{if(i?.length)for(let m=0;m<i.length;m++){const f=document.querySelector(i[m]);f&&(h.set(i[m],f.style.display),f.style.display="none")}}:()=>{if(i?.length)for(let m=0;m<i.length;m++){const f=document.querySelector(i[m]);if(f){const N=h.get(i[m]);f.style.display=N||"",h.delete(i[m])}}},0)});const s=e.ref(""),c=()=>{const a=ce.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",h=a?.path;if(i!=="[]"){let m=JSON.parse(i).find(f=>f.value===h);m&&(s.value=m.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const b=a=>{a.keyCode===192&&r()};return e.onMounted(()=>{window.addEventListener("keydown",b)}),e.onUnmounted(()=>{window.removeEventListener("keydown",b)}),(a,i)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ut,[e.createElementVNode("aside",yt,e.toDisplayString(s.value),1),e.createElementVNode("aside",Ct,[e.createVNode(h,{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]=(...m)=>e.unref(r)&&e.unref(r)(...m))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",_t,[...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",kt,[...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"]])),wt={class:"hb-lib-list-btns-box"},Lt={class:"hb-lib-list-btns-left"},St={class:"hb-lib-list-btns-right"},we=O(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=b=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(b,a)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",wt,[e.createElementVNode("aside",Lt,[e.renderSlot(b.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",St,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:b.$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?`${b.$t("hbLibComp.hbListBtnsAct.close")}`:`${b.$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(b.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),xt=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:n=300,timeOut:r=100}=t,s=e.ref(0);let c=null,b=null,a=null,i=null,h=null;const m=()=>{h&&clearTimeout(h),h=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const d=document.querySelector(".ant-table"),u=document.querySelector(".ant-pagination");if(d){const S=Math.floor(d.getBoundingClientRect().top),_=window.innerHeight,g=(u?u.offsetHeight+20:40)+o;let C=_-S-g;C<n&&(C=n),s.value=C}})})},100)},f=()=>{const d=document.querySelector(".ant-pagination");if(d){const u=new MutationObserver(()=>{m()});return u.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),u}return null},N=()=>{const d=document.querySelector(".hb-lib-list-page-form-box");d&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(S=>{S.style.display="none"}),m()}),c.observe(d))},B=()=>{const d=document.querySelector(".hb-lib-list-page-form-box");d&&(a=new MutationObserver(()=>{setTimeout(()=>{m()},r)}),a.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},H=()=>{i&&clearTimeout(i),i=setTimeout(()=>{m()},r)},E=()=>{window.addEventListener("resize",H),e.nextTick(()=>{N(),B(),b=f()})},p=()=>{window.removeEventListener("resize",H),c&&c.disconnect(),a&&a.disconnect(),b&&b.disconnect(),i&&clearTimeout(i),h&&clearTimeout(h)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{m()},200)},{deep:!0}),e.onMounted(()=>{m(),E()}),e.onUnmounted(()=>{p()}),{tableHeight:s,calTableHeight:m}},Le=O(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),b=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:h,tableHeight:m}=xt({offsetBottom:c.value,minHeight:b.value,timeOut:a.value}),f=e.computed(()=>m.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:m,calTableHeight:h}),(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)?f.value-s.value+"px":f.value-c.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(o)?f.value-s.value+"px":f.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"},zt={class:"hb-lib-footer-buttons"},Se=O(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(""),b=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(_))}),h=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),m=e.computed(()=>i.value.length===0?!1:i.value.every(_=>b.value.includes(_.value))),f=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(k=>b.value.includes(k.value)).length;return _>0&&_<i.value.length});e.watch(()=>r.value,_=>{_?b.value=Array.isArray(_)?[..._]:[_]:b.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,_=>{o.remoteSearch&&_!==void 0&&(c.value=_)},{immediate:!0});const N=_=>{_&&(s.value=_,B.value=[...b.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=()=>{b.value=[...B.value],s.value=!1,n("cancel")},E=e.ref([]),p=()=>{const _=o.multiple?b.value:b.value[0]||"",k=o.options.filter(g=>b.value.includes(g.value));E.value=k,console.log(_,k),B.value=[...b.value],r.value=_,n("update:value",_),n("change",_,k),n("confirm",_,k),s.value=!1},d=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(b.value);k.has(_.value)?k.delete(_.value):k.add(_.value),b.value=Array.from(k)}else b.value=[_.value],p()},S=_=>{if(_.target.checked){const g=new Set(b.value);i.value.forEach(C=>{g.add(C.value)}),b.value=Array.from(g)}else{const g=new Set(i.value.map(C=>C.value));b.value=b.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"),j=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":h.value}},_.$attrs),[e.createVNode(j,{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(d),"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:z,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(d)(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:b.value.includes(L.value)}]),onClick:()=>u(L)},[t.multiple?(e.openBlock(),e.createBlock(x,{key:0,checked:b.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:b.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:m.value,indeterminate:f.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",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:p},{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",zt,[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"]])),Ot={class:"hb-lib-form-item-filter-modal-search"},Pt={class:"hb-lib-form-item-filter-modal-buttons"},Ut={key:0},xe=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,r=o,s=e.ref(!1),c=e.ref(""),b=e.ref(),a=e.ref(),i=e.ref([]),h=e.ref([]),m=e.ref(),f=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(()=>{b.value?.focus()},100)}),{...g}))),H=()=>{let g="";h.value.forEach(C=>{g=g+C[n.labelKey]+","}),c.value=g.substring(0,g.length-1),s.value=!1,r("handleConfirm",h.value)},E=()=>{s.value=!1},p=()=>{s.value=!0,e.nextTick(()=>{const g=m.value?.$el?.querySelector(".ant-table-body");g&&(g.scrollTop=0)})},d=()=>{i.value=[],h.value=[]},u=()=>{c.value="",d()},S=(g,C,x)=>{C(),f.searchText=g[0],f.searchedColumn=x},_=(g,C)=>{g({confirm:!0}),f.searchText="",C()},k=(g,C)=>{i.value=g,h.value=C};return l({resetInputVal:u}),(g,C)=>{const x=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),M=e.resolveComponent("a-table"),j=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:p,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:p})]),_:1},8,["value","placeholder"]),e.createVNode(j,{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:d},{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:m,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:z,clearFilters:A,column:R})=>[e.createElementVNode("div",Ot,[e.createVNode(x,{ref_key:"searchInput",ref:b,placeholder:`请输入${R.title}`,value:L[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:W=>w(W.target.value?[W.target.value]:[]),onPressEnter:W=>S(L,z,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:W=>_(A,z)},{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:W=>S(L,z,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})=>[f.searchText&&f.searchedColumn===L.dataIndex?(e.openBlock(),e.createElementBlock("span",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`,"i")),(z,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[z.toLowerCase()===f.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:A,class:"highlight"},e.toDisplayString(z),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(z),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Rt={class:"hb-lib-table-act-box"},jt=["onClick"],Wt={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"},Be=O(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),b=e.computed(()=>o.actions.filter(E=>E.condition!==void 0?E.condition:!0)),a=e.computed(()=>b.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>h(b.value.slice(o.buttonDisplaysQuantity)));function h(E){if(o.filterPermission)return o.filterPermission(E);let p=[],d=[];return p=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(p)||E.length===0?(p=[],[]):(p=p.filter(u=>u.type!="2"),E.forEach(u=>{(!u.permissionsTag||p.findIndex(S=>S.action===u.permissionsTag)!==-1)&&d.push(u)}),d)}const m=E=>{E.handler&&E.handler(o.record)},f=E=>{c.value=E,r.value=!0},N=()=>{if(c.value){s.value=!0;try{m(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,p)=>{const d=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=>f(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,jt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(d,{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=>m(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Wt,[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(d,{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(d,{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=>m(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(d,{key:0,type:"vertical"},null,512)),[[u,S.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(F.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(F.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(S,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:_},{default:e.withCtx(()=>[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:k=>f(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Kt)),[[u,S.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:S.confirmTitle,onConfirm:k=>m(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=>m(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"]])),Ne=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,Te=Qt||Zt||Function("return this")(),ae=Te.Symbol,Ee=Object.prototype,vt=Ee.hasOwnProperty,eo=Ee.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]",Fe=ae?ae.toStringTag:void 0;function ro(t){return t==null?t===void 0?io:ao:Fe&&Fe 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 bo=/^\s+/;function ho(t){return t&&t.slice(0,fo(t)+1).replace(bo,"")}function me(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Ve=NaN,go=/^[-+]0x[0-9a-f]+$/i,uo=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,Co=parseInt;function He(t){if(typeof t=="number")return t;if(mo(t))return Ve;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=ho(t);var o=uo.test(t);return o||yo.test(t)?Co(t.slice(2),o?2:8):go.test(t)?Ve:+t}var pe=function(){return Te.Date.now()},ko="Expected a function",_o=Math.max,wo=Math.min;function $e(t,l,o){var n,r,s,c,b,a,i=0,h=!1,m=!1,f=!0;if(typeof t!="function")throw new TypeError(ko);l=He(l)||0,me(o)&&(h=!!o.leading,m="maxWait"in o,s=m?_o(He(o.maxWait)||0,l):s,f="trailing"in o?!!o.trailing:f);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,b=setTimeout(p,l),h?N(k):c}function H(k){var g=k-a,C=k-i,x=l-g;return m?wo(x,s-C):x}function E(k){var g=k-a,C=k-i;return a===void 0||g>=l||g<0||m&&C>=s}function p(){var k=pe();if(E(k))return d(k);b=setTimeout(p,H(k))}function d(k){return b=void 0,f&&n?N(k):(n=r=void 0,c)}function u(){b!==void 0&&clearTimeout(b),i=0,n=a=r=b=void 0}function S(){return b===void 0?c:d(pe())}function _(){var k=pe(),g=E(k);if(n=arguments,r=this,a=k,g){if(b===void 0)return B(a);if(m)return clearTimeout(b),b=setTimeout(p,l),N(a)}return b===void 0&&(b=setTimeout(p,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},Ie=O(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([]),b=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:a}=Ne(c),i=e.ref(a.value),h=e.computed(()=>s.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,p=>{const d=p.filter(S=>S!=null&&S.checked);c.value=d.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}=Ne(c);i.value=u.value},{immediate:!0,deep:!0});const m=$e(()=>{n("resizeCol",c)},o.listTable?.colSaveTimeOut||800),f=(p,d)=>{if(d){const u=typeof p=="string"?parseInt(p,10):p;d.width=isNaN(u)?o.listTable?.defaultColWidth||150:u,e.nextTick(()=>{m()})}},N=(p,d,u)=>{p?.current&&n("change",p,d,u)},B=(p,d="YYYY-MM-DD HH:mm:ss")=>p?ne(p).format(d):"",H=(p,d)=>p&&d[p]||"",E=(p,d=o.listTable?.ellipsisNumber||20)=>p?p.length>d?`${p.substring(0,d)}...`:p:"";return(p,d)=>{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"||""})},[p.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Lo,[e.renderSlot(p.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(p.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(g,e.mergeProps(p.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:f,onChange:N,scroll:h.value?{x:i.value}:{x:i.value,y:e.unref(b).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",So,[e.createVNode(u,{description:e.unref(r)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:C})=>[e.renderSlot(p.$slots,"headerCell",{column:C,title:C.title},()=>[e.createTextVNode(e.toDisplayString(C.title),1)],!0)]),key:"0"}:void 0,p.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:C,record:x,index:V,text:M})=>[e.renderSlot(p.$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,p.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:C,index:x})=>[e.renderSlot(p.$slots,"expandedRowRender",{record:C,index:x},void 0,!0)]),key:"2"}:void 0,p.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:C})=>[e.renderSlot(p.$slots,"customFilterDropdown",{column:C},void 0,!0)]),key:"3"}:void 0,p.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:C})=>[e.renderSlot(p.$slots,"customFilterIcon",{column:C},void 0,!0)]),key:"4"}:void 0,p.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:C,record:x,index:V})=>[e.renderSlot(p.$slots,"expandIcon",{expanded:C,record:x,index:V},void 0,!0)]),key:"5"}:void 0,p.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,p.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,p.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(p.$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"}},De=O(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 b=e.ref(!1),a=e.ref([]),i=e.ref(null),h=e.computed(()=>c.value.length>0&&c.value.length===s.value.length),m=e.computed(()=>c.value.length>0&&c.value.length<s.value.length),f=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},p=()=>{s.value=[...a.value],o("on-get-columns",s.value),b.value=!1},d=()=>{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 j=0;j<a.value.length;j++)a.value[j].fixed==="left"&&(C=j);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,()=>{d()},{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:b.value,"onUpdate:visible":g[1]||(g[1]=V=>b.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:f,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:h.value,indeterminate:m.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:p,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"]])),Me=O(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"),b=e.computed(()=>o.options??[]),a=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=B=>B.tooltip??B.label,h=B=>B.key??B.label,m=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(b.value,E=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:h(E),value:E.value,disabled:E.disabled},{ref_for:!0},E.optionProps),{default:e.withCtx(()=>[m(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"},zo={key:0,class:"hb_import_btn"},Oo=["href"],Ae=O(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}),b=f=>{if(f==null)return;const N=c.fileList.indexOf(f);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=f=>(c.fileList=[f],r.beforeUpload?r.beforeUpload(f.originFileObj):!1),h=()=>{n.value.validateFields().then(()=>{r.beforeSubmit&&(s.value=!0,r.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},m=()=>{c.visible=!0};return l({handleCancel:a,openModal:m,confirmLoading:s}),(f,N)=>{const B=e.resolveComponent("a-upload-dragger"),H=e.resolveComponent("a-form-item"),E=e.resolveComponent("a-form"),p=e.resolveComponent("a-modal"),d=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,e.mergeProps({visible:c.visible,"onUpdate:visible":N[0]||(N[0]=u=>c.visible=u),title:r.title,"confirm-loading":s.value},f.$attrs,{width:r.modalWidth,onCancel:a,onOk:h}),{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:b},{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",zo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:r.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,Oo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(f.$slots,"btn",{},()=>[e.createVNode(d,{type:"primary",onClick:m},{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=O(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"}],b=e.computed(()=>s.columns||c),a=e.computed(()=>s.title||n("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!r.title),h=e.ref(!1),m=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(d,u)=>u[0]+"-"+u[1]+" 总共"+d+"页",total:0}});e.watch(()=>s.pagination,d=>{d&&(m.pagination={...m.pagination,...d})},{deep:!0,immediate:!0});const f=()=>{const d={pageIndex:m.pagination.current,pageSize:m.pagination.pageSize,query:s.params};s.getLogData&&(h.value=!0,s.getLogData(d).then(u=>{Number(u.code)==200?(m.pagination.total=Number(u.data.total),m.list=u.data[s.dataStr]||[]):F.message.error(u.message)}).finally(()=>{h.value=!1}))},N=d=>{m.pagination.current=d.current,m.pagination.pageSize=d.pageSize,f()},B=()=>{m.list=[],p("update:visible",!1)},H=()=>{p("update:visible",!0)},E=(d,u="YYYY-MM-DD HH:mm:ss")=>d?ne(d).format(u):"",p=o;return e.watch(()=>s.visible,d=>{d&&f()}),l({close:B,loading:h}),(d,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(d.$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:b.value,dataSource:m.list,pagination:m.pagination,loading:h.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},[d.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:x})=>[e.renderSlot(d.$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(d.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(d.$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}},jo={class:"hb_ui_config"},Wo=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(fe,o),(n,r)=>(e.openBlock(),e.createElementBlock("div",jo,[e.renderSlot(n.$slots,"default")]))}}),fe=Symbol("GLOBAL_CONFIG_KEY"),Oe=O(Wo),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"},Pe=O(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(fe),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"],Ue=O(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(),h=a.target.startsWith("#")||a.target.startsWith(".")?a.target:`#${a.target}`,m=document.querySelector(h);if(!m)return;let f=m.offsetTop;i instanceof HTMLElement&&(f-=i.offsetTop),f-=n,i instanceof Window?window.scrollTo({top:f,behavior:"smooth"}):i.scrollTo({top:f,behavior:"smooth"}),o.value=a.target},b=()=>{const a=s();let i=0;a instanceof Window?i=window.scrollY+n+5:i=a.scrollTop+n+5;let h=r.value[0]?.target||"";for(const m of r.value){const f=m.target.startsWith("#")||m.target.startsWith(".")?m.target:`#${m.target}`,N=document.querySelector(f);if(!N)continue;let B=N.offsetTop;a instanceof HTMLElement&&(B-=a.offsetTop),i>=B&&(h=m.target)}o.value=h};return e.onMounted(()=>{s().addEventListener("scroll",b),b()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",b)}),(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,(h,m)=>(e.openBlock(),e.createElementBlock("div",{key:h.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===h.target}]),onClick:f=>c(h)},[e.createElementVNode("div",Zo,[m!==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:h.title},e.toDisplayString(h.title.length>12?h.title.slice(0,12)+"...":h.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"},Re=O(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(fe),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}),b=()=>document.querySelector(o.container),a=e.ref(!1),i=e.ref(null),{top:h}=Z.useElementBounding(i),m=e.computed(b),{y:f}=Z.useScroll(m);e.watch(f,H=>{a.value=H>h.value},{immediate:!0});const N=H=>{document.querySelectorAll(".hb_card_body").forEach(p=>{p.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 p=e.resolveComponent("RollbackOutlined"),d=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(p,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(d,{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(p),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(d,{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:b,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=O(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)=>$e(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(m=>{let f=[];if(m.startsWith("#")){const N=document.getElementById(m.slice(1));N&&f.push(N)}else f=Array.from(document.getElementsByClassName(m));f.forEach(N=>{i+=N.offsetWidth||0})}),i},c=()=>{l.leftElements&&(r.value=s(l.leftElements)+1)};let b=null;return e.onMounted(()=>{const a=l.getContainer();a!==window&&a instanceof HTMLElement&&a.addEventListener("scroll",()=>{}),c(),b=new MutationObserver(()=>{c()});const i=document.body;b.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{b&&b.disconnect()}),(a,i)=>{const h=e.resolveComponent("a-button"),m=e.resolveComponent("a-space"),f=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(f,{"offset-bottom":0,target:t.getContainer,style:{width:"100%"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:t.placeLeft,page_footer_btn_right:t.placeRight})},[e.createVNode(m,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,B=>e.withDirectives((e.openBlock(),e.createBlock(h,{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"},We=O(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),b=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:h,y:m,isDragging:f}=Z.useDraggable(c),N=e.ref(0),B=e.ref(0),H=e.ref(!1),E=e.ref(0),p=e.ref(0),d=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,p.value=0,d.value=0,u.value=0,H.value=!1};e.watch(s,V=>{V?setTimeout(()=>{k()},50):(_&&clearTimeout(_),_=setTimeout(()=>{E.value=0,p.value=0,d.value=0,u.value=0},300))}),e.watch([h,m],()=>{if(!H.value){N.value=h.value,B.value=m.value;const V=document.body.getBoundingClientRect(),M=c.value.getBoundingClientRect();S.value.right=V.width-M.width,S.value.bottom=V.height-M.height,d.value=E.value,u.value=p.value}H.value=!0}),e.watch(f,()=>{f||(H.value=!1)}),e.watchEffect(()=>{H.value&&(E.value=d.value+Math.min(Math.max(S.value.left,h.value),S.value.right)-N.value,p.value=u.value+Math.min(Math.max(S.value.top,m.value),S.value.bottom)-B.value)});const g=e.computed(()=>({transform:`translate(${E.value}px, ${p.value}px)`})),C=()=>{n("cancel")},x=()=>{n("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),l({handleOk:x,handleCancel:C}),(V,M)=>{const j=e.resolveComponent("a-spin"),w=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(w,e.mergeProps({style:b.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(j,{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"]])),bl={key:0,class:"hb_edit_header"},hl={class:"__detail-content"},gl={key:1,class:"hb_edit_footer"},ul={class:"hb-back-top-inner"},qe=O(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,b)=>(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",bl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",hl,[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"},Ye=O(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(f,N="offsetHeight"){let B=0;return(Array.isArray(f)?f:[f]).forEach(E=>{let p=[];if(E.startsWith("#")){const d=document.getElementById(E.slice(1));d&&p.push(d)}else p=Array.from(document.getElementsByClassName(E));p.forEach(d=>{B+=d[N]||0})}),B}const b=()=>{o.topElements&&(r.value=c(o.topElements))},a=e.ref(0),i=()=>{o.leftElements&&(a.value=c(o.leftElements,"offsetWidth")+1)};let h=null;e.onMounted(()=>{b(),i(),window.addEventListener("resize",b),h=new MutationObserver(()=>{i()});const f=document.body;h.observe(f,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",b),h&&h.disconnect()}),e.watch(()=>o.topElements,()=>{b()},{immediate:!0});const m=()=>{o.backFn?o.backFn():window.history.back()};return(f,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:m},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(f.$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=O(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(h=>h?.[l.K]===l.V);a=i?i[l.L]:""}}else l.K&&(a=l.data[l.K]);return a}),b=()=>{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(b,["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:""}},Ke=O(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,h=>{n.value=h},{deep:!0,immediate:!0});const r=de("drag"),s=l,c=h=>{console.log("drag start",h),s("handleDragStart",h)},b=h=>{console.log("drag end",h),s("handleDragEnd",h)},a=h=>{console.log("drag add",h),s("handleDragAdd",h)},i=h=>{console.log("drag remove",h),s("handleDragRemove",h)};return(h,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[h.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=f=>n.value=f),"item-key":"key",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:c,onEnd:b,onAdd:a,onRemove:i}),{item:e.withCtx(({element:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":m[1]||(m[1]=f=>n.value=f),"item-key":"id",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:c,onEnd:b,onAdd:a,onRemove:i}),{item:e.withCtx(({element:f})=>[e.createElementVNode("div",null,[e.renderSlot(h.$slots,"default",{item:f},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}},Ge=O(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(h=>{i=[...i,{label:`${h.label}升序`,value:`${h.value}`,sort:"Asc"},{label:`${h.label}降序`,value:`${h.value}`,sort:"Desc"}]}),s.value=i},{deep:!0,immediate:!0});const b=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 h=e.resolveComponent("a-menu-item"),m=e.resolveComponent("a-menu"),f=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(f,{trigger:[n.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,N=>(e.openBlock(),e.createBlock(h,{key:N.value+N.sort,onClick:B=>b(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"},Je=O(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"]])),oe=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},Nl=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),Tl=t=>Nl.has(oe(t)),Xe=t=>t.downloadUrl,El=(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||"",h="uploadDate"in l&&l.uploadDate||"";if(n(a)===n(l)&&(a.attachmentDesc||"")===(l.attachmentDesc||"")&&i===h)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 b=Xe(l);if(b){const a=t.findIndex(i=>Xe(i)===b);if(a>=0)return a}return t.indexOf(l)};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 Fl(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 Vl(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 Hl(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 Fl(t);Vl(n,o);return}catch{Hl(t)}}const $l=768;function Il(){return typeof window>"u"?!0:window.innerWidth>=$l}function et(){return!Il()}const 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"},zl=["src"],Ol=["src"],Pl={key:2,class:"file-preview-modal-body__pre"},Ul=["src"],Rl=["src"],jl={key:0,class:"file-preview-modal-footer__nav"},Wl={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"},tt=O(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%"),b=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(),z=w?oe(w):"",A=L?oe(L):"";return A&&z&&A!==z?L:z?w:A?L:w||L}),h=e.computed(()=>i.value?oe(i.value):""),m=e.computed(()=>`${r.url}\0${r.fileName||""}`),f=e.computed(()=>i.value?Tl(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"]),p=e.computed(()=>!H||!r.url?.trim()||B.value?!1:E.has(h.value)),d=e.computed(()=>h.value==="txt"),u=e.computed(()=>!r.url?.trim()||B.value?!1:d.value),S=e.ref("idle"),_=e.ref("");e.watch(()=>({visible:r.previewVisible,url:r.url,isTxt:d.value}),async({visible:w,url:L,isTxt:z})=>{if(_.value="",S.value="idle",!(!w||!z||!(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||d.value?!1:p.value?!0:!N.value&&!f.value),g=e.computed(()=>o.has(h.value)),C=e.computed(()=>{const w=(r.url||"").trim();return w?B.value||!N.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`:r.url}),x=e.ref("");e.watch(()=>({visible:r.previewVisible,src:C.value,doc:N.value,serverPage:B.value,skipIframe:p.value}),async({visible:w,src:L,doc:z,serverPage:A,skipIframe:R})=>{if(x.value="",!w||!(z||A)||R)return;const W=(L||"").trim();W&&(await e.nextTick(),await new Promise(G=>requestAnimationFrame(G)),r.previewVisible&&C.value===W&&(x.value=W))},{flush:"post"});const V=e.computed(()=>r.url&&(!f.value||!N.value)),M=async()=>{et()?window.open(r.url,"_blank"):await ie(r.url,r.fileName||"file")},j=()=>{n("closeModal")};return(w,L)=>{const z=e.resolveComponent("a-spin"),A=e.resolveComponent("VueFilesPreview"),R=e.resolveComponent("a-button"),W=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(W,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:b.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:j}),{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",jl,[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:j},{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:`${m.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,zl)):e.createCommentVNode("",!0)],64)):u.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${m.value}`,class:"file-preview-modal-body__plaintext"},[S.value==="loading"?(e.openBlock(),e.createBlock(z,{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,Ol)):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:${
|
|
3
|
-
`,1)):e.createCommentVNode("",!0)])):k.value?(e.openBlock(),e.createBlock(A,{key:`vfp:${m.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:`${m.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)):f.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${m.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Jl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${m.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:j},{default:e.withCtx(()=>[...L[13]||(L[13]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-858e082a"]])),Ql=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Ue,HbLibCard:Pe,HbLibCopy:be,HbLibDetailBox:Re,HbLibFilePreview:tt,HbLibFooterBar:je,HbLibFormItemFilterModal:Ce,HbLibFormTooltipSelect:Me,HbLibFuncCompDrag:Ke,HbLibImportFile:Ae,HbLibListBtnsAct:we,HbLibListForm:ke,HbLibListMultiSelect:Se,HbLibListPageAct:_e,HbLibListPageContainer:Le,HbLibListTable:Ie,HbLibLoading:Je,HbLibLogModal:ze,HbLibModal:We,HbLibMutilpleSelectModal:xe,HbLibPageHeader:Ye,HbLibSort:Ge,HbLibTableAct:Be,HbLibTableColumnSet:De,HbLibUnDetailBox:qe,HbUiConfig:Oe},Symbol.toStringTag,{value:"Module"})),J=new Map;let ot;Z.isClient&&(document.addEventListener("mousedown",t=>ot=t),document.addEventListener("mouseup",t=>{for(const l of J.values())for(const{documentHandler:o}of l)o(t,ot)}));function lt(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,b=r?.target,a=!l||!l.instance,i=!c||!b,h=t.contains(c)||t.contains(b),m=t===c,f=o.length&&o.some(B=>B?.contains(c))||o.length&&o.includes(b),N=s&&(s.contains(c)||s.contains(b));a||i||h||m||f||N||l.value(n,r)}}const Zl={beforeMount(t,l){J.has(t)||J.set(t,[]),J.get(t).push({documentHandler:lt(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:lt(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__)}},nt=(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}nt(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&nt(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=p=>p.previewUrl,c=e.computed(()=>{const p=t.value.attachmentInfos,d=r.value;if(d<=0)return!1;for(let u=d-1;u>=0;u--)if(s(p[u]))return!0;return!1}),b=e.computed(()=>{const p=t.value.attachmentInfos,d=r.value;if(d<0||d>=p.length-1)return!1;for(let u=d+1;u<p.length;u++)if(s(p[u]))return!0;return!1}),a=e.computed(()=>t.value.attachmentInfos.length>1),i=p=>{const u=t.value.attachmentInfos[p];if(!u)return;const S=s(u);S&&(r.value=p,o.value=S,n.value=u.attachmentDesc||"",l.value=!0)},h=()=>{const p=t.value.attachmentInfos,d=r.value;for(let u=d-1;u>=0;u--)if(s(p[u])){i(u);return}},m=()=>{const p=t.value.attachmentInfos,d=r.value;for(let u=d+1;u<p.length;u++)if(s(p[u])){i(u);return}},f=()=>{l.value=!1,r.value=-1,o.value="",n.value=""},N=(p,d)=>{const u=s(p);if(!u){F.message.warning("暂无预览地址");return}const S=t.value.attachmentInfos,_=El(S,p,{preferredIndex:d});_>=0?i(_):(r.value=-1,o.value=u,n.value=p.attachmentDesc||"",l.value=!0)},B=p=>{const d=p.downloadUrl;if(!d){F.message.warning("暂无下载地址");return}const u=p.attachmentDesc?.trim()||"download";ie(d,u)},H=400;return{filePreviewVisible:l,pdfPreviewUrlRef:o,previewFileNameRef:n,previewAttachmentIndexRef:r,hasPrevAttachment:c,hasNextAttachment:b,showAttachmentNavBar:a,handlePreview:N,handleDownload:B,handleClosePreview:f,goPrevAttachment:h,goNextAttachment:m,triggerBrowserDownload:ie,handleBatchDownloadAttachment:async()=>{const d=t.value.attachmentInfos.filter(u=>!!u.downloadUrl?.trim());if(d.length===0){F.message.warning("暂无可下载附件");return}for(let u=0;u<d.length;u++){const S=d[u],_=S.attachmentDesc?.trim()||"download";ie(S.downloadUrl,_),u<d.length-1&&await new Promise(k=>setTimeout(k,H))}}}}const on={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"}}},ln={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:"戻る"}}},nn={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:"加载中...如长时间加载请重试!"}}},an={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:{}},rn=re.exports,at;function sn(){return at||(at=1,(function(t,l){(function(o,n){t.exports=n(ne)})(rn,(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,b){return b==="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,b){var a=100*c+b;return a<600?"凌晨":a<900?"早上":a<1100?"上午":a<1300?"中午":a<1800?"下午":"晚上"}};return r.default.locale(s,null,!0),s}))})(re)),re.exports}sn(),ne.locale("zh-cn");const cn={en_US:on,ja_JP:ln,zh_CN:nn,de_DE:an},dn=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=Ue,$.HbLibCard=Pe,$.HbLibCopy=be,$.HbLibDetailBox=Re,$.HbLibFilePreview=tt,$.HbLibFooterBar=je,$.HbLibFormItemFilterModal=Ce,$.HbLibFormTooltipSelect=Me,$.HbLibFuncCompDrag=Ke,$.HbLibImportFile=Ae,$.HbLibListBtnsAct=we,$.HbLibListForm=ke,$.HbLibListMultiSelect=Se,$.HbLibListPageAct=_e,$.HbLibListPageContainer=Le,$.HbLibListTable=Ie,$.HbLibLoading=Je,$.HbLibLogModal=ze,$.HbLibModal=We,$.HbLibMutilpleSelectModal=xe,$.HbLibPageHeader=Ye,$.HbLibSort=Ge,$.HbLibTableAct=Be,$.HbLibTableColumnSet=De,$.HbLibUnDetailBox=qe,$.HbUiConfig=Oe,$.install=dn,$.locales=cn,$.useFilePreview=tn,Object.defineProperty($,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"})}));
|