@hb-hellotech/hb-ui 2.3.2 → 2.4.1
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/App.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +51 -24
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts +6 -0
- 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 +2 -0
- package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts.map +1 -1
- package/dist/components/func_comp/index.d.ts +1 -2
- package/dist/components/func_comp/index.d.ts.map +1 -1
- package/dist/demo/hb_file_preview.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +2516 -2597
- package/dist/hb_component_lib.umd.cjs +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/package.json +23 -17
- package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts +0 -44
- package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts +0 -44
- package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts +0 -4
- package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts.map +0 -1
- package/dist/demo/HbFileViewSafe.d.ts +0 -4
- package/dist/demo/HbFileViewSafe.d.ts.map +0 -1
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
(function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs"),require("vue-files-preview"),require("@vue-office/docx"),require("@vue-office/excel"),require("@vue-office/pdf"),require("@vue-office/pptx")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs","vue-files-preview","@vue-office/docx","@vue-office/excel","@vue-office/pdf","@vue-office/pptx"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.HbComponentLib={},D.Vue,D.draggable,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.iconsVue,D.core,D.dayjs,D.VueFilesPreview,D.VueOfficeDocx,D.VueOfficeExcel,D.VueOfficePdf,D.VueOfficePptx))})(this,(function(D,e,ae,H,de,G,Z,K,v,ie,we,mt,pt,ft,ht){"use strict";const me=(t="")=>{const n=`hb-${t}`;return bt(n)},ee=(t,n,l,o)=>(n&&(t+=`-${n}`),l&&(t+=`__${l}`),o&&(t+=`--${o}`),t),bt=t=>({b:n=>n?ee(t,n,"",""):ee(t,"","",""),e:n=>n?ee(t,"",n,""):"",m:n=>ee(t,"","",n),be:(n,l)=>ee(t,n,l,""),em:(n,l)=>ee(t,"",n,l),bem:(n,l,o)=>ee(t,n,l,o),is:(n,l)=>l?`is-${n}`:""}),gt=["onMouseenter","onMouseleave"],ut=["onClick"],yt=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:n,emit:l}){const o=e.inject("globalCompConfig",{}),r=G.useI18n().t,s=G.useI18n().messages.value.en_US,c=G.useI18n().messages.value.ja_JP,p=G.useI18n().messages.value.zh_CN,a=t,i=e.computed(()=>a.showNumber||o.HbLibFormItemFilterModal?.defaultShowCount||40),f=e.computed(()=>a.title||r("hbLibComp.hbFormItemFilterModal.title")),h=l,b=me("sfcm"),N=de.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),F=e.ref(!1),T=e.ref(600);let g=[];const d=e.ref([]),y=e.ref([]),L=e.computed(()=>d.value.every(C=>C.isLinked||C.isFixed)),_=C=>({...C,label:S(C)||`${$(C)||""} (${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:C.key,isFixed:C?.isFixed||!1,isLinked:C?.isLinked||!1,labelLanguage:C?.labelLanguage||void 0}),w=C=>{const M=C.draggedContext.element,E=C.relatedContext.index;if(M.isLinked||M.isFixed)return!1;const W=d.value.map((Y,Q)=>({item:Y,index:Q})).filter(({item:Y})=>Y.isLinked).map(({index:Y})=>Y);if(W.length===0)return!0;for(let Y=0;Y<W.length-1;Y++){const Q=W[Y],te=W[Y+1];if(E>Q&&E<te)return!1}return!0},u=e.computed(()=>k()+"_"+a.saveKey),k=()=>{const C=localStorage.getItem("pro__Login_Userinfo");let M="anonymous";if(C)try{M=JSON.parse(C).value.jobNumber||"anonymous"}catch(W){console.warn("解析用户信息失败:",W)}let E=N?.path;return`searchFormConfig_${M}_${E}`},S=C=>({ja_JP:()=>Z.get(c,C.labelLanguage||""),en_US:()=>Z.get(s,C.labelLanguage||""),zh_CN:()=>Z.get(p,C.labelLanguage||"")})[B.lan]?.()||C.label,$=C=>({ja_JP:()=>Z.get(c,C.subLabelLanguage||""),en_US:()=>Z.get(s,C.subLabelLanguage||""),zh_CN:()=>Z.get(p,C.subLabelLanguage||"")})[B.lan]?.()||C.subLabel,O=()=>{try{const C=localStorage.getItem(u.value);if(C){const M=JSON.parse(C);if(M.originalList&&Array.isArray(M.originalList)){g=JSON.parse(JSON.stringify(M.originalList));const E=g.filter(A=>A?.isFixed),W=g.filter(A=>A?.isLinked),Y=M.showList.filter(A=>!A.isFixed&&!A.isLinked),Q=i.value&&i.value>0?Math.max(0,i.value-E.length-W.length):Y.length,te=E.map(A=>({..._(A)})),ce=W.map(A=>({..._(A)})),Ce=Y.slice(0,Q).map(A=>({..._(A)}));d.value=[...te,...ce,...Ce];const ke=d.value.map(A=>A.key),_e=g.map(A=>A.key).filter(A=>!ke.includes(A));return y.value=g.filter(A=>_e.includes(A.key)).map(A=>({..._(A),active:!1})),!0}}}catch(C){console.warn("加载保存的搜索配置失败:",C)}return!1},q=()=>{try{const C={originalList:g,showList:d.value.map(M=>({...M,key:M.key,label:M.label,isFixed:M.isFixed,isLinked:M.isLinked,labelLanguage:M?.labelLanguage||void 0}))};localStorage.setItem(u.value,JSON.stringify(C))}catch(C){console.warn("保存搜索配置失败:",C)}},x=e.computed(()=>{const C=d.value.filter(E=>!E.isFixed&&!E.isLinked).length,M=d.value.filter(E=>E.isFixed||E.isLinked).length;return C>=i.value-M});e.watch(()=>a.list,C=>{let M=JSON.stringify(d.value)!==JSON.stringify(C);if(!M)return;const E=localStorage.getItem(u.value),W=JSON.parse(E||"{}");if(W&&W?.originalList&&Array.isArray(W.originalList))O(),h("confirm",d.value);else if(M){g=JSON.parse(JSON.stringify(C));const Y=C.filter(A=>A?.isFixed),Q=C.filter(A=>A?.isLinked),te=C.filter(A=>!A?.isFixed&&!A?.isLinked),ce=i.value&&i.value>0?Math.max(0,i.value-Y.length-Q.length):te.length,Ce=Y.map(A=>_(A)),ke=Q.map(A=>_(A)),dt=te.slice(0,ce).map(A=>_(A));d.value=[...Ce,...ke,...dt];const _e=te.slice(ce).map(A=>({..._(A),active:!1}));y.value=_e,h("confirm",d.value)}},{immediate:!0});const m=C=>{const M=d.value.findIndex(E=>E.key===C.key);M!==-1&&(d.value.splice(M,1),y.value.push({...C,active:!1}))},V=C=>{if(x.value){H.message.warning(`当前已经超过${r(i.value)}个可选数量,请先删除已显示条件`);return}const M=y.value.findIndex(E=>E.key===C.key);if(M!==-1){const[E]=y.value.splice(M,1);d.value.push({...E,active:!1})}},I=()=>{F.value=!1},z=()=>{F.value=!0},P=()=>{q(),h("confirm",d.value),I()},j=C=>{const M=y.value.findIndex(E=>E.key===C.key);M!==-1&&(y.value[M].active=!0)},oe=C=>{const M=y.value.findIndex(E=>E.key===C.key);M!==-1&&(y.value[M].active=!1)};return n({toOpenModal:z}),e.onMounted(()=>{}),(C,M)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(b).b())},[e.createVNode(e.unref(H.Modal),{visible:F.value,"onUpdate:visible":M[1]||(M[1]=E=>F.value=E),width:T.value,onCancel:I,onOk:P},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("title"))},e.toDisplayString(f.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(H.Button),{onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(H.Button),{type:"primary",onClick:P},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$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(C.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("show__tag"))},[e.createVNode(e.unref(ae),{modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=E=>d.value=E),"item-key":"key",tag:"div",disabled:L.value,move:w},{item:e.withCtx(({element:E})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(b).e("show__tag__item"),e.unref(b).is("fixed",E.isFixed),e.unref(b).is("linked",E.isLinked)])},[e.createTextVNode(e.toDisplayString(E.label)+" ",1),!E.isFixed&&!E.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(K.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(b).e("show__tag__item-close")),onClick:W=>m(E)},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(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("unshow__tag"))},[y.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(y.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E.key,class:e.normalizeClass([e.unref(b).e("unshow__tag__item"),e.unref(b).is("fixed",E.isFixed||""),e.unref(b).is("linked",E.isLinked||"")]),onMouseenter:W=>j(E),onMouseleave:W=>oe(E)},[e.createTextVNode(e.toDisplayString(E.label)+" ",1),E.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(b).e("unshow__tag__item-add")),onClick:W=>V(E)},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.add")),11,ut)):e.createCommentVNode("",!0)],42,gt))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(b).e("unshow__tag__empty"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),R=(t,n)=>{const l=t.__vccOpts||t;for(const[o,r]of n)l[o]=r;return l},Ct=R(yt,[["__scopeId","data-v-657502f3"]]);function U(t){const n=t;return n.install=l=>{const o=t.name;l.component(o??"AnonymousComponent",t)},n}const xe=U(Ct),kt={key:0,class:"form-footer"},_t={class:"scheme-fontWeight"},wt={class:"scheme-fontWeight"},xt={class:"scheme-fontWeight"},Lt={class:"scheme-fontWeight"},Le=U(R(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:n,emit:l}){const o=e.inject("globalCompConfig",{}),r=l,s=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>a.searchList||[]),p=me("form"),a=t,i=e.computed(()=>a.showNumber||o.HbLibFormItemFilterModal?.defaultShowCount||40),f=e.ref("show"),h=e.computed(()=>a.needFooter||o.HbLibListForm?.needFooter),b=e.computed(()=>[...a.items]),N=x=>x!==void 0,B=x=>typeof x=="function",F=x=>N(x.condition)?B(x.condition)?x.condition():x.condition:!0,T=e.computed(()=>[...a.items].map(x=>({...x,condition:F(x),label:x.label?.includes("多项搜索")?"":x.label})));console.log(T.value);const g=e.computed(()=>a.saveKey),d=e.ref(),y=()=>{r("handleSearch")},L=()=>{r("handleReset")},_=e.ref(),w=()=>{_.value&&_.value.toOpenModal()},u=x=>{r("handleMenuClick",x)},k=x=>{r("handleSfcmConfirm",x)};e.watch(()=>a.isFormExpanded,x=>{if(x){console.log(x);const m=document.querySelector("#subpackage_container");m instanceof HTMLElement&&(m.style.overflow="hidden",setTimeout(()=>{m.style.overflow="auto"},500))}});const S=x=>{const m=x;m.style.height="",m.offsetHeight},$=x=>{const m=x;m.style.height="",m.style.overflow="",e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})},O=x=>{const m=x,V=m.querySelector(".hb-lib-form--container");if(V){const I=V.offsetHeight;m.style.height=I+"px",m.style.overflow="hidden",m.offsetHeight,requestAnimationFrame(()=>{m.style.height="0"})}},q=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return n({formRef:d,SelectOption:H.SelectOption,Form:H.Form,FormItem:H.FormItem,Row:H.Row,Col:H.Col,Input:H.Input,Select:H.Select,CheckboxGroup:H.CheckboxGroup,Checkbox:H.Checkbox,DatePicker:H.DatePicker,InputNumber:H.InputNumber,RadioGroup:H.RadioGroup,Radio:H.Radio,Switch:H.Switch,Button:H.Button,Tooltip:H.Tooltip}),(x,m)=>{const V=e.resolveComponent("a-button"),I=e.resolveComponent("a-tooltip"),z=e.resolveComponent("a-menu-item"),P=e.resolveComponent("a-menu"),j=e.resolveComponent("a-dropdown"),oe=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:S,onAfterEnter:$,onLeave:O,onAfterLeave:q},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(p).b(),"hb-lib-list-page-form-box","hb-form-item-ui",h.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(H.Form),e.mergeProps(x.$attrs,{model:t.formData,ref_key:"formRef",ref:d,class:["hb-lib-form--container",f.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(C,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[C.condition?(e.openBlock(),e.createBlock(e.unref(H.FormItem),e.mergeProps({key:0,ref_for:!0},C,{name:C.key,class:{"hb-lib-form-item-border--unneed":C.isUnNeedBorder,"hb_lib_form_item--needShowAll":C.showAll}}),e.createSlots({default:e.withCtx(()=>[C.type==="slot"?e.renderSlot(x.$slots,C.key,{key:0,formData:t.formData,item:C},void 0,!0):e.createCommentVNode("",!0),C.type==="mixin"?e.renderSlot(x.$slots,C.key,{key:1,formData:t.formData,item:C},void 0,!0):e.createCommentVNode("",!0),C.type==="input"?(e.openBlock(),e.createBlock(e.unref(H.Input),e.mergeProps({key:2,value:t.formData[C.key],"onUpdate:value":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),C.type==="select"?(e.openBlock(),e.createBlock(e.unref(H.Select),e.mergeProps({key:3,value:t.formData[C.key],"onUpdate:value":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.options,(E,W)=>(e.openBlock(),e.createBlock(e.unref(H.SelectOption),{key:W,value:E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),C.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(H.CheckboxGroup),e.mergeProps({key:4,value:t.formData[C.key],"onUpdate:value":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.options,(E,W)=>(e.openBlock(),e.createBlock(e.unref(H.Checkbox),{key:W,value:E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),C.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(H.DatePicker),e.mergeProps({key:5,value:t.formData[C.key],"onUpdate:value":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),C.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(H.InputNumber),e.mergeProps({key:6,value:t.formData[C.key],"onUpdate:value":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),C.type==="radio"?(e.openBlock(),e.createBlock(e.unref(H.RadioGroup),e.mergeProps({key:7,value:t.formData[C.key],"onUpdate:value":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.options,(E,W)=>(e.openBlock(),e.createBlock(e.unref(H.Radio),{key:W,value:E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),C.type==="switch"?(e.openBlock(),e.createBlock(e.unref(H.Switch),e.mergeProps({key:8,checked:t.formData[C.key],"onUpdate:checked":E=>t.formData[C.key]=E},{ref_for:!0},C.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[C.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label)+" ",1),e.createVNode(e.unref(H.Tooltip),{title:C.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(K.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",kt,[e.createVNode(V,{type:"primary",onClick:y,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(K.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(V,{type:"link",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(I,{key:0,title:x.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...m[0]||(m[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(x.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(j,{key:0},{overlay:e.withCtx(()=>[e.createVNode(P,{onClick:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,C=>(e.openBlock(),e.createBlock(z,{key:C.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.title),1)]),_:2},1024))),128)),e.createVNode(z,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",_t,e.toDisplayString(x.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(z,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",wt,e.toDisplayString(x.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{title:x.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...m[1]||(m[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(p).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("footer__left"))},[e.renderSlot(x.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("footer__right"))},[f.value=="show"?e.renderSlot(x.$slots,"form-footer-right",{key:0,formRef:d.value},()=>[e.createVNode(V,{type:"primary",onClick:y,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(K.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(V,{type:"link",onClick:L,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(I,{key:0,title:x.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...m[2]||(m[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(x.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(j,{key:0},{overlay:e.withCtx(()=>[e.createVNode(P,{onClick:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,C=>(e.openBlock(),e.createBlock(z,{key:C.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.title),1)]),_:2},1024))),128)),e.createVNode(z,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",xt,e.toDisplayString(x.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(z,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",Lt,e.toDisplayString(x.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{title:x.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...m[3]||(m[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(oe,{showNumber:i.value,list:b.value,ref_key:"HbSfCmRef",ref:_,onConfirm:k,saveKey:g.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),St={class:"hb-lib-list-page-act-box"},Bt={class:"hb-lib-list-page-breadcrumb"},Nt={class:"hb-lib-list-page-act"},Tt={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},Et={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},Se=U(R(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const n=e.inject("globalCompConfig",{}),l=t,{isFullscreen:o,toggle:r}=v.useFullscreen(document.body);e.watch(()=>o.value,a=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(l.hideDomList)&&l.hideDomList.length?i=[...l.hideDomList]:n.HbLibListPageAct?.hideDomList&&(i=[...n.HbLibListPageAct.hideDomList]);const f=new Map;setTimeout(a?()=>{if(i?.length)for(let h=0;h<i.length;h++){const b=document.querySelector(i[h]);b&&(f.set(i[h],b.style.display),b.style.display="none")}}:()=>{if(i?.length)for(let h=0;h<i.length;h++){const b=document.querySelector(i[h]);if(b){const N=f.get(i[h]);b.style.display=N||"",f.delete(i[h])}}},0)});const s=e.ref(""),c=()=>{const a=de.useRoute();let i=localStorage.getItem(n.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",f=a?.path;if(i!=="[]"){let h=JSON.parse(i).find(b=>b.value===f);h&&(s.value=h.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const p=a=>{a.keyCode===192&&r()};return e.onMounted(()=>{window.addEventListener("keydown",p)}),e.onUnmounted(()=>{window.removeEventListener("keydown",p)}),(a,i)=>{const f=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",St,[e.createElementVNode("aside",Bt,e.toDisplayString(s.value),1),e.createElementVNode("aside",Nt,[e.createVNode(f,{title:e.unref(o)?`${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]=(...h)=>e.unref(r)&&e.unref(r)(...h))},[e.unref(o)?(e.openBlock(),e.createElementBlock("svg",Et,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Tt,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(a.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Vt={class:"hb-lib-list-btns-box"},Ft={class:"hb-lib-list-btns-left"},$t={class:"hb-lib-list-btns-right"},Be=U(R(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:n}){const l=n,o=e.ref(!0),r=()=>{o.value=!o.value,l("handleOpenOrClose",o.value)},s=()=>{l("handleReload")},c=p=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(p,a)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Vt,[e.createElementVNode("aside",Ft,[e.renderSlot(p.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",$t,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:p.$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:o.value?`${p.$t("hbLibComp.hbListBtnsAct.close")}`:`${p.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:r},[o.value?(e.openBlock(),e.createBlock(e.unref(K.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(K.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Ne=(t={})=>{const{formRef:n,offsetBottom:l=50,minHeight:o=300,timeOut:r=100}=t,s=e.ref(0);let c=null,p=null,a=null,i=null,f=null;const h=()=>{f&&clearTimeout(f),f=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const d=document.querySelector(".ant-table"),y=document.querySelector(".ant-pagination");if(d){const L=Math.floor(d.getBoundingClientRect().top),_=window.innerHeight,u=(y?y.offsetHeight+20:40)+l;let k=_-L-u;k<o&&(k=o),s.value=k}})})},100)},b=()=>{const d=document.querySelector(".ant-pagination");if(d){const y=new MutationObserver(()=>{h()});return y.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),y}return null},N=()=>{const d=document.querySelector(".hb-lib-list-page-form-box");d&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(L=>{L.style.display="none"}),h()}),c.observe(d))},B=()=>{const d=document.querySelector(".hb-lib-list-page-form-box");d&&(a=new MutationObserver(()=>{setTimeout(()=>{h()},r)}),a.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},F=()=>{i&&clearTimeout(i),i=setTimeout(()=>{h()},r)},T=()=>{window.addEventListener("resize",F),e.nextTick(()=>{N(),B(),p=b()})},g=()=>{window.removeEventListener("resize",F),c&&c.disconnect(),a&&a.disconnect(),p&&p.disconnect(),i&&clearTimeout(i),f&&clearTimeout(f)};return n&&e.watch(()=>n,()=>{setTimeout(()=>{h()},200)},{deep:!0}),e.onMounted(()=>{h(),T()}),e.onUnmounted(()=>{g()}),{tableHeight:s,calTableHeight:h}},Te=U(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const n=e.inject("globalCompConfig",{}),{isFullscreen:l}=v.useFullscreen(document.body),o=t,r=e.useTemplateRef("PageContainerRef"),s=e.computed(()=>o.offsetHeight||n.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>o.offsetBottom||n.HbLibListPageContainer?.offsetBottom||20),p=e.computed(()=>o.minHeight||n.HbLibListPageContainer?.minHeight||300),a=e.computed(()=>o.timeOut||n.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>o.isUnFixTbHeight||n.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(o.isUnFixTbHeight);const{calTableHeight:f,tableHeight:h}=Ne({offsetBottom:c.value,minHeight:p.value,timeOut:a.value}),b=e.computed(()=>h.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:h,calTableHeight:f}),(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(l)?b.value-s.value+"px":b.value-c.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(l)?b.value-s.value+"px":b.value-c.value+"px"})},[e.renderSlot(N.$slots,"default")],4)],512))}})),Ht={style:{"font-weight":"500"}},It={key:0,class:"hb-lib-search-tag__description"},Dt={class:"hb-lib-selector-dropdown"},Mt={class:"hb-lib-selector-search"},At={class:"hb-lib-selector-list"},Ot=["onClick"],zt={class:"hb-lib-option-content"},Pt={class:"hb-lib-option-label"},Ut={key:0,class:"hb-lib-selector-empty"},Rt={key:1,class:"hb-lib-selector-footer"},Wt={class:"hb-lib-footer-buttons"},jt={key:2,class:"hb-lib-selector-footer"},qt={class:"hb-lib-footer-buttons"},Ee=U(R(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:n}){const l=t,o=n,r=e.useModel(t,"value"),s=e.ref(!1),c=e.ref(""),p=e.ref([]),a=e.ref(),i=e.computed(()=>{if(l.remoteSearch||!c.value)return l.options;const _=c.value.toLowerCase();return l.options.filter(w=>w.label.toLowerCase().includes(_)||w.description?.toLowerCase().includes(_))}),f=e.computed(()=>l.prefix?`${l.prefix.length*14+8}px`:"0px"),h=e.computed(()=>i.value.length===0?!1:i.value.every(_=>p.value.includes(_.value))),b=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(w=>p.value.includes(w.value)).length;return _>0&&_<i.value.length});e.watch(()=>r.value,_=>{_?p.value=Array.isArray(_)?[..._]:[_]:p.value=[]},{immediate:!0}),e.watch(()=>l.searchValue,_=>{l.remoteSearch&&_!==void 0&&(c.value=_)},{immediate:!0});const N=_=>{_&&(s.value=_,B.value=[...p.value],c.value="",setTimeout(()=>{if(a.value){const w=a.value.input||a.value.$el?.querySelector("input");w&&w.focus()}},100))},B=e.ref([]),F=()=>{p.value=[...B.value],s.value=!1,o("cancel")},T=e.ref([]),g=()=>{const _=l.multiple?p.value:p.value[0]||"",w=l.options.filter(u=>p.value.includes(u.value));T.value=w,console.log(_,w),B.value=[...p.value],r.value=_,o("update:value",_),o("change",_,w),o("confirm",_,w),s.value=!1},d=v.useDebounceFn(_=>{const w=_!==void 0?_:c.value;l.remoteSearch&&(o("search",w),o("update:searchValue",w))},300),y=_=>{if(l.multiple){const w=new Set(p.value);w.has(_.value)?w.delete(_.value):w.add(_.value),p.value=Array.from(w)}else p.value=[_.value],g()},L=_=>{if(_.target.checked){const u=new Set(p.value);i.value.forEach(k=>{u.add(k.value)}),p.value=Array.from(u)}else{const u=new Set(i.value.map(k=>k.value));p.value=p.value.filter(k=>!u.has(k))}};return(_,w)=>{const u=e.resolveComponent("a-tag"),k=e.resolveComponent("a-input"),S=e.resolveComponent("a-checkbox"),$=e.resolveComponent("a-radio"),O=e.resolveComponent("a-button"),q=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":f.value}},_.$attrs),[e.createVNode(q,{value:r.value,"onUpdate:value":w[5]||(w[5]=x=>r.value=x),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:x,label:m,closable:V,option:I})=>[e.createVNode(u,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>N(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ht,e.toDisplayString(m),1),I?.description?(e.openBlock(),e.createElementBlock("span",It," ("+e.toDisplayString(I.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:x})=>[e.createElementVNode("div",Dt,[e.createElementVNode("div",Mt,[e.createVNode(k,{ref_key:"searchInputRef",ref:a,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":w[1]||(w[1]=m=>c.value=m),placeholder:"请输入关键词搜索","allow-clear":"",onInput:w[2]||(w[2]=m=>e.unref(d)(m.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(K.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,m=>(e.openBlock(),e.createElementBlock("div",{key:m.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:p.value.includes(m.value)}]),onClick:()=>y(m)},[t.multiple?(e.openBlock(),e.createBlock(S,{key:0,checked:p.value.includes(m.value),onChange:()=>y(m),onClick:w[3]||(w[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock($,{key:1,checked:p.value.includes(m.value),onChange:()=>y(m),onClick:w[4]||(w[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",zt,[e.createElementVNode("div",Pt,e.toDisplayString(m.label),1)])],10,Ot))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",Ut,e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Rt,[e.createVNode(S,{checked:h.value,indeterminate:b.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Wt,[e.createVNode(O,{size:"small",onClick:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(O,{type:"primary",size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",jt,[w[6]||(w[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",qt,[e.createVNode(O,{size:"small",onClick:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),Yt={class:"hb-lib-form-item-filter-modal-search"},Kt={class:"hb-lib-form-item-filter-modal-buttons"},Gt={key:0},Ve=U(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:n,emit:l}){const o=t,r=l,s=e.ref(!1),c=e.ref(""),p=e.ref(),a=e.ref(),i=e.ref([]),f=e.ref([]),h=e.ref(),b=e.reactive({searchText:"",searchedColumn:""}),N=e.computed(()=>o.tableData.map(u=>(u.id=u.id||Math.random(),u))),B=e.computed(()=>o.tableColumn.map(u=>(u.customFilterDropdown&&(u.onFilter=(k,S)=>S[u.dataIndex].toString().toLowerCase().includes(k.toLowerCase()),u.onFilterDropdownVisibleChange=k=>{k&&setTimeout(()=>{p.value?.focus()},100)}),{...u}))),F=()=>{let u="";f.value.forEach(k=>{u=u+k[o.labelKey]+","}),c.value=u.substring(0,u.length-1),s.value=!1,r("handleConfirm",f.value)},T=()=>{s.value=!1},g=()=>{s.value=!0,e.nextTick(()=>{const u=h.value?.$el?.querySelector(".ant-table-body");u&&(u.scrollTop=0)})},d=()=>{i.value=[],f.value=[]},y=()=>{c.value="",d()},L=(u,k,S)=>{k(),b.searchText=u[0],b.searchedColumn=S},_=(u,k)=>{u({confirm:!0}),b.searchText="",k()},w=(u,k)=>{i.value=u,f.value=k};return n({resetInputVal:y}),(u,k)=>{const S=e.resolveComponent("a-input"),$=e.resolveComponent("a-button"),O=e.resolveComponent("a-table"),q=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:a},[e.createVNode(S,{readonly:"",onClick:g,value:c.value,"onUpdate:value":k[0]||(k[0]=x=>c.value=x),placeholder:u.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(K.UnorderedListOutlined),{onClick:g})]),_:1},8,["value","placeholder"]),e.createVNode(q,{visible:s.value,"onUpdate:visible":k[1]||(k[1]=x=>s.value=x),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode($,{onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode($,{onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",onClick:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{ref_key:"tableRef",ref:h,columns:B.value,dataSource:N.value,rowSelection:{selectedRowKeys:i.value,onChange:w},rowKey:x=>x[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:x,selectedKeys:m,confirm:V,clearFilters:I,column:z})=>[e.createElementVNode("div",Yt,[e.createVNode(S,{ref_key:"searchInput",ref:p,placeholder:`请输入${z.title}`,value:m[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:P=>x(P.target.value?[P.target.value]:[]),onPressEnter:P=>L(m,V,z.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Kt,[e.createVNode($,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:P=>_(I,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:P=>L(m,V,z.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:x})=>[e.createVNode(e.unref(K.SearchOutlined),{style:e.normalizeStyle({color:x?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:x,column:m})=>[b.searchText&&b.searchedColumn===m.dataIndex?(e.openBlock(),e.createElementBlock("span",Gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.toString().split(new RegExp(`(?<=${b.searchText})|(?=${b.searchText})`,"i")),(V,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[V.toLowerCase()===b.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:I,class:"highlight"},e.toDisplayString(V),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(V),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Jt={class:"hb-lib-table-act-box"},Xt=["onClick"],Qt={href:"javascript:;",class:"hb-lib-table-main-action"},Zt=["onClick"],vt={href:"javascript:;",class:"hb-lib-table-more-action"},eo=["onClick"],to={href:"javascript:;"},oo=["onClick"],lo={class:"hb-lib-table-confirm-modal-content"},Fe=U(R(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:n}){const l=t,{t:o}=G.useI18n(),r=e.ref(!1),s=e.ref(!1),c=e.ref(null),p=e.computed(()=>l.actions.filter(T=>T.condition!==void 0?T.condition:!0)),a=e.computed(()=>p.value.slice(0,l.buttonDisplaysQuantity)),i=e.computed(()=>f(p.value.slice(l.buttonDisplaysQuantity)));function f(T){if(l.filterPermission)return l.filterPermission(T);let g=[],d=[];return g=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(g)||T.length===0?(g=[],[]):(g=g.filter(y=>y.type!="2"),T.forEach(y=>{(!y.permissionsTag||g.findIndex(L=>L.action===y.permissionsTag)!==-1)&&d.push(y)}),d)}const h=T=>{T.handler&&T.handler(l.record)},b=T=>{c.value=T,r.value=!0},N=()=>{if(c.value){s.value=!0;try{h(c.value),s.value=!1,r.value=!1}catch{s.value=!1}}},B=()=>{r.value=!1,c.value=null},F=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:o("hbLibComp.hbTableAct.secendConfirm"),content:o("hbLibComp.hbTableAct.confirmContent")});return n({ADropdown:H.Dropdown,AMenu:H.Menu,AMenuItem:H.MenuItem,APopconfirm:H.Popconfirm,AModal:H.Modal,DownOutlined:K.DownOutlined}),(T,g)=>{const d=e.resolveComponent("a-divider"),y=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(L,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[L.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:w=>b(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,Xt)),[[y,L.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(H.Popconfirm),{title:L.confirmTitle,onConfirm:w=>h(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Qt,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[y,L.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)):L.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(T.$slots,L.slot,{item:L},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:w=>h(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,Zt)),[[y,L.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)),[[y,L.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(H.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(H.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(L,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(H.MenuItem),{key:_},{default:e.withCtx(()=>[L.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:w=>b(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,eo)),[[y,L.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(H.Popconfirm),{key:1,title:L.confirmTitle,onConfirm:w=>h(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",to,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[y,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[y,L.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:w=>h(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,oo)),[[y,L.permissionsTag||null]])]),_:2},1024)),[[y,L.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",vt,[e.createTextVNode(e.toDisplayString(T.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(K.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(H.Modal),{visible:r.value,title:F.value.title,"confirm-loading":s.value,onOk:N,onCancel:B},{default:e.withCtx(()=>[e.createElementVNode("p",lo,e.toDisplayString(F.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),pe=t=>({tableWidth:e.computed(()=>{const l=Array.isArray(t)?t:t.value;return!l||l.length===0?0:l.map(o=>o.width&&Number(o.width.toString().replace("px",""))||0).reduce((o,r)=>o+r,0)})});var no=typeof global=="object"&&global&&global.Object===Object&&global,ao=typeof self=="object"&&self&&self.Object===Object&&self,$e=no||ao||Function("return this")(),re=$e.Symbol,He=Object.prototype,io=He.hasOwnProperty,ro=He.toString,le=re?re.toStringTag:void 0;function so(t){var n=io.call(t,le),l=t[le];try{t[le]=void 0;var o=!0}catch{}var r=ro.call(t);return o&&(n?t[le]=l:delete t[le]),r}var co=Object.prototype,mo=co.toString;function po(t){return mo.call(t)}var fo="[object Null]",ho="[object Undefined]",Ie=re?re.toStringTag:void 0;function bo(t){return t==null?t===void 0?ho:fo:Ie&&Ie in Object(t)?so(t):po(t)}function go(t){return t!=null&&typeof t=="object"}var uo="[object Symbol]";function yo(t){return typeof t=="symbol"||go(t)&&bo(t)==uo}var Co=/\s/;function ko(t){for(var n=t.length;n--&&Co.test(t.charAt(n)););return n}var _o=/^\s+/;function wo(t){return t&&t.slice(0,ko(t)+1).replace(_o,"")}function fe(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var De=NaN,xo=/^[-+]0x[0-9a-f]+$/i,Lo=/^0b[01]+$/i,So=/^0o[0-7]+$/i,Bo=parseInt;function Me(t){if(typeof t=="number")return t;if(yo(t))return De;if(fe(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=fe(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=wo(t);var l=Lo.test(t);return l||So.test(t)?Bo(t.slice(2),l?2:8):xo.test(t)?De:+t}var he=function(){return $e.Date.now()},No="Expected a function",To=Math.max,Eo=Math.min;function Ae(t,n,l){var o,r,s,c,p,a,i=0,f=!1,h=!1,b=!0;if(typeof t!="function")throw new TypeError(No);n=Me(n)||0,fe(l)&&(f=!!l.leading,h="maxWait"in l,s=h?To(Me(l.maxWait)||0,n):s,b="trailing"in l?!!l.trailing:b);function N(w){var u=o,k=r;return o=r=void 0,i=w,c=t.apply(k,u),c}function B(w){return i=w,p=setTimeout(g,n),f?N(w):c}function F(w){var u=w-a,k=w-i,S=n-u;return h?Eo(S,s-k):S}function T(w){var u=w-a,k=w-i;return a===void 0||u>=n||u<0||h&&k>=s}function g(){var w=he();if(T(w))return d(w);p=setTimeout(g,F(w))}function d(w){return p=void 0,b&&o?N(w):(o=r=void 0,c)}function y(){p!==void 0&&clearTimeout(p),i=0,o=a=r=p=void 0}function L(){return p===void 0?c:d(he())}function _(){var w=he(),u=T(w);if(o=arguments,r=this,a=w,u){if(p===void 0)return B(a);if(h)return clearTimeout(p),p=setTimeout(g,n),N(a)}return p===void 0&&(p=setTimeout(g,n)),c}return _.cancel=y,_.flush=L,_}const Vo={key:0,class:"hb-lib-list-table-act"},Fo={class:"empty-container"},$o={key:1},Ho={key:2},Oe=U(R(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:n}){const l=e.inject("globalCompConfig",{}),o=n,{t:r}=G.useI18n(),s=t,c=e.ref([]),p=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:a}=pe(c),i=e.ref(a.value),f=e.computed(()=>s.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,g=>{const d=g.filter(L=>L!=null&&L.checked);c.value=d.map(L=>{let _={...L,title:L.title||L.label,align:L.align||l.listTable?.align||"center"};_.ellipsis&&!_.needTooltip&&(_.needTooltip=!0);let w=s.defaultWidth||l.listTable?.defaultColWidth||150;if(!_.width)_.width=w;else if(typeof _.width=="string"){const u=parseInt(_.width,10);_.width=isNaN(u)?w:u}return _.resizable===void 0&&(_.resizable=!0),_});const{tableWidth:y}=pe(c);i.value=y.value},{immediate:!0,deep:!0});const h=Ae(()=>{o("resizeCol",c)},l.listTable?.colSaveTimeOut||800),b=(g,d)=>{if(d){const y=typeof g=="string"?parseInt(g,10):g;d.width=isNaN(y)?l.listTable?.defaultColWidth||150:y,e.nextTick(()=>{h()})}},N=(g,d,y)=>{g?.current&&o("change",g,d,y)},B=(g,d="YYYY-MM-DD HH:mm:ss")=>g?ie(g).format(d):"",F=(g,d)=>g&&d[g]||"",T=(g,d=l.listTable?.ellipsisNumber||20)=>g?g.length>d?`${g.substring(0,d)}...`:g:"";return(g,d)=>{const y=e.resolveComponent("a-empty"),L=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),w=e.resolveComponent("a-tag"),u=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"||""})},[g.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Vo,[e.renderSlot(g.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(g.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(u,e.mergeProps(g.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:b,onChange:N,scroll:f.value?{x:i.value}:{x:i.value,y:e.unref(p).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",Fo,[e.createVNode(y,{description:e.unref(r)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[g.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:k})=>[e.renderSlot(g.$slots,"headerCell",{column:k,title:k.title},()=>[e.createTextVNode(e.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,g.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:k,record:S,index:$,text:O})=>[e.renderSlot(g.$slots,"bodyCell",{column:k,record:S,index:$,text:O},void 0,!0),k&&k.needTooltip&&!k.needCopy?(e.openBlock(),e.createBlock(L,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S[k.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(S[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(e.openBlock(),e.createElementBlock("div",$o,[e.createTextVNode(e.toDisplayString(S[k.dataIndex])+" ",1),e.createVNode(_,{"cp-text":S[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(e.openBlock(),e.createElementBlock("div",Ho,[e.createVNode(L,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S[k.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T(S[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(_,{"cp-text":S[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(B(S[k.dataIndex],k.format)),1)],64)):k&&k.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[F(S[k.dataIndex],k.tags)?(e.openBlock(),e.createBlock(w,{key:0,color:F(S[k.dataIndex],k.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S[k.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,g.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:k,index:S})=>[e.renderSlot(g.$slots,"expandedRowRender",{record:k,index:S},void 0,!0)]),key:"2"}:void 0,g.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:k})=>[e.renderSlot(g.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,g.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:k})=>[e.renderSlot(g.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,g.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:k,record:S,index:$})=>[e.renderSlot(g.$slots,"expandIcon",{expanded:k,record:S,index:$},void 0,!0)]),key:"5"}:void 0,g.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,g.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,g.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(g.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),Io={class:"hb-lib-table-setting-box"},Do={key:0,class:"hb-lib-table-drag-item"},Mo={key:0,class:"hb-lib-table-drag-item-act"},Ao=["onClick"],Oo=["onClick"],zo={class:"hb-lib-table-set-btn-group"},Po={class:"select-all-container",style:{"margin-right":"10px"}},ze=U(R(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:n}){const l=n,{t:o}=G.useI18n(),r=t,s=e.ref([]),c=e.computed(()=>a.value.filter(w=>w.checked));e.ref([]);const p=e.ref(!1),a=e.ref([]),i=e.ref(null),f=e.computed(()=>c.value.length>0&&c.value.length===s.value.length),h=e.computed(()=>c.value.length>0&&c.value.length<s.value.length),b=w=>{i.value=w.oldIndex},N=w=>{const u=w.newIndex;if(s.value.some(S=>S.fixed==="left"||S.fixed==="right"||S.fixed===!0)){const S=s.value.filter(O=>O.fixed==="left").length,$=s.value.length-s.value.filter(O=>O.fixed==="right").length;if((S>0&&u<S||$<s.value.length&&u>=$)&&(H.message.warning(o("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const O=a.value.splice(u,1)[0];a.value.splice(i.value,0,O)}}i.value=null},B=w=>{w.target.checked?a.value.forEach(k=>k.checked=!0):a.value.forEach(k=>{k.dataIndex!=="action"&&k.dataIndex!=="actions"&&(k.checked=!1)})},F=()=>{s.value=r.localColumns.map(u=>({...u,label:u.title&&u.title.tag?y(u.title):u.title||u.title2,value:u.dataIndex,checked:u.checked||u.checked===void 0})),a.value=[...s.value];let w=[];r.tableColumns.forEach(function(u){w.push(u.dataIndex)})},T=(w,u)=>{u?w.checked=!0:w.checked=!1},g=()=>{s.value=[...a.value],l("on-get-columns",s.value),p.value=!1},d=()=>{s.value=r.tableColumns.map(u=>({...u,label:u.title&&u.title.tag?y(u.title):u.title||u.title2,value:u.dataIndex,checked:u.checked||u.checked===void 0})),a.value=[...s.value];let w=[];r.tableColumns.forEach(function(u){w.push(u.dataIndex)})},y=w=>w.children[0].text,L=w=>{delete w.fixed;const u=a.value.findIndex(k=>k.value===w.value);if(u!==-1){let k=-1;for(let S=0;S<a.value.length;S++)a.value[S].fixed==="left"&&(k=S);if(k!==-1&&u!==k+1){const S=[...a.value],[$]=S.splice(u,1);S.splice(k+1,0,$),a.value=S}}},_=w=>{const u=a.value.findIndex(k=>k.value===w.value);if(u!==-1){let k=-1;for(let q=0;q<a.value.length;q++)a.value[q].fixed==="left"&&(k=q);const S=[...a.value],[$]=S.splice(u,1);$.fixed="left";const O=k===-1?0:k+1;S.splice(O,0,$),a.value=S}};return e.watch(()=>r.tableColumns,()=>{d()},{immediate:!0,deep:!0}),(w,u)=>{const k=e.resolveComponent("a-tooltip"),S=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",Io,[e.createVNode(e.unref(H.Popover),{title:e.unref(o)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:p.value,"onUpdate:visible":u[1]||(u[1]=$=>p.value=$)},{content:e.withCtx(()=>[e.createVNode(e.unref(ae),{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=$=>a.value=$),"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:$})=>[$.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",Do,[e.createVNode(e.unref(H.Checkbox),{checked:$.checked,onChange:O=>T($,O.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["checked","onChange"]),$.checked?(e.openBlock(),e.createElementBlock("section",Mo,[e.createElementVNode("span",{class:e.normalizeClass($.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),$.fixed?(e.openBlock(),e.createBlock(k,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:O=>L($)},[...u[2]||(u[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Ao)]),_:2},1024)):e.createCommentVNode("",!0),$.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(k,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:O=>_($)},[...u[3]||(u[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,Oo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",zo,[e.createElementVNode("div",Po,[e.createVNode(e.unref(H.Checkbox),{checked:f.value,indeterminate:h.value,onChange:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),r.localColumns.length?(e.openBlock(),e.createBlock(S,{key:0,style:{"margin-right":"6px"},onClick:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(S,{onClick:g,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(k,{title:e.unref(o)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...u[4]||(u[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"]])),Pe=U(R(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:n}){const l=t,o=e.useAttrs(),r=e.computed(()=>{const B=o,F=B.dropdownClassName;return{...B,dropdownClassName:F??"hb_lib_form_tooltip_select__dropdown"}}),s=e.ref(),c=e.useModel(t,"value"),p=e.computed(()=>l.options??[]),a=e.computed(()=>({maxWidth:typeof l.tooltipMaxWidth=="number"?`${l.tooltipMaxWidth}px`:l.tooltipMaxWidth})),i=B=>B.tooltip??B.label,f=B=>B.key??B.label,h=B=>!!(l.enableTooltip&&i(B));return n({focus:()=>{s.value?.focus?.()},blur:()=>{s.value?.blur?.()},selectRef:s}),(B,F)=>(e.openBlock(),e.createBlock(e.unref(H.Select),e.mergeProps({ref_key:"selectRef",ref:s},r.value,{value:c.value,"onUpdate:value":F[0]||(F[0]=T=>c.value=T),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(p.value,T=>(e.openBlock(),e.createBlock(e.unref(H.SelectOption),e.mergeProps({key:f(T),value:T.value,disabled:T.disabled},{ref_for:!0},T.optionProps),{default:e.withCtx(()=>[h(T)?(e.openBlock(),e.createBlock(e.unref(H.Tooltip),{key:0,title:i(T),placement:l.tooltipPlacement,"overlay-style":a.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":l.enableEllipsis}])},e.toDisplayString(T.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":l.enableEllipsis}])},e.toDisplayString(T.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Uo={class:"ant-upload-drag-icon"},Ro={class:"ant-upload-text"},Wo={style:{color:"#ff5000"}},jo={class:"ant-upload-hint"},qo={key:0,class:"hb_import_btn"},Yo=["href"],Ue=U(R(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:n}){const{t:l}=G.useI18n(),o=e.ref(),r=t,s=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),p=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),f=()=>{o.value.validateFields().then(()=>{r.beforeSubmit&&(s.value=!0,r.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},h=()=>{c.visible=!0};return n({handleCancel:a,openModal:h,confirmLoading:s}),(b,N)=>{const B=e.resolveComponent("a-upload-dragger"),F=e.resolveComponent("a-form-item"),T=e.resolveComponent("a-form"),g=e.resolveComponent("a-modal"),d=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,e.mergeProps({visible:c.visible,"onUpdate:visible":N[0]||(N[0]=y=>c.visible=y),title:r.title,"confirm-loading":s.value},b.$attrs,{width:r.modalWidth,onCancel:a,onOk:f}),{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"modalFormRef",ref:o,model:c},{default:e.withCtx(()=>[e.createVNode(F,{name:"fileList",label:e.unref(l)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:r.isRequired,message:e.unref(l)("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:p},{default:e.withCtx(()=>[e.createElementVNode("p",Uo,[e.createVNode(e.unref(K.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Ro,[e.createTextVNode(e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Wo,e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",jo,e.toDisplayString(e.unref(l)("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",qo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:r.templateUrl},e.toDisplayString(e.unref(l)("hbLibComp.HbImportFile.downloadTemplate")),9,Yo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(b.$slots,"btn",{},()=>[e.createVNode(d,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Ko={class:"hb_lib_log_modal_content"},Go={class:"log_remark"},Re=U(R(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:n,emit:l}){const{t:o}=G.useI18n(),r=e.useSlots(),s=t,c=[{title:o("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:o("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:o("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],p=e.computed(()=>s.columns||c),a=e.computed(()=>s.title||o("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!r.title),f=e.ref(!1),h=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(d,y)=>y[0]+"-"+y[1]+" 总共"+d+"页",total:0}});e.watch(()=>s.pagination,d=>{d&&(h.pagination={...h.pagination,...d})},{deep:!0,immediate:!0});const b=()=>{const d={pageIndex:h.pagination.current,pageSize:h.pagination.pageSize,query:s.params};s.getLogData&&(f.value=!0,s.getLogData(d).then(y=>{Number(y.code)==200?(h.pagination.total=Number(y.data.total),h.list=y.data[s.dataStr]||[]):H.message.error(y.message)}).finally(()=>{f.value=!1}))},N=d=>{h.pagination.current=d.current,h.pagination.pageSize=d.pageSize,b()},B=()=>{h.list=[],g("update:visible",!1)},F=()=>{g("update:visible",!0)},T=(d,y="YYYY-MM-DD HH:mm:ss")=>d?ie(d).format(y):"",g=l;return e.watch(()=>s.visible,d=>{d&&b()}),n({close:B,loading:f}),(d,y)=>{const L=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),w=e.resolveComponent("a-table"),u=e.resolveComponent("a-button"),k=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,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(u,{onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Ko,[e.createVNode(w,{bordered:"",rowKey:"id",columns:p.value,dataSource:h.list,pagination:h.pagination,loading:f.value,scroll:{y:t.scrollY},onChange:N},e.createSlots({bodyCell:e.withCtx(({column:S,record:$})=>[S&&S.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.needTooltip?(e.openBlock(),e.createBlock(L,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($[S.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString($[S.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),S&&S.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Go,e.toDisplayString($[S.dataIndex]),1),e.createVNode(_,{"cp-text":$[S.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),S&&S.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(T($[S.dataIndex],S.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[d.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:S})=>[e.renderSlot(d.$slots,"headerCell",{column:S},()=>[e.createTextVNode(e.toDisplayString(S.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(u,{onClick:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Jo={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},Xo={class:"hb_ui_config"},Qo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const n=t;let l=null;return e.watch(()=>n.config,o=>{l=e.reactive(Z.merge({},Jo,o))},{deep:!0,immediate:!0}),e.provide(be,l),(o,r)=>(e.openBlock(),e.createElementBlock("div",Xo,[e.renderSlot(o.$slots,"default")]))}}),be=Symbol("GLOBAL_CONFIG_KEY"),We=U(Qo),Zo={class:"hb_card"},vo={key:0,class:"hb_card_header"},el={class:"hb_fix"},tl={class:"hb_card_header-title"},ol={class:"hb_card_header-action"},ll={class:"hb_card_body"},je=U(R(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const n=e.inject(be),l=t,o=e.computed(()=>{let r=l.formItemMb||n?.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",Zo,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("div",el,[e.createElementVNode("span",tl,[e.renderSlot(r.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",ol,[e.renderSlot(r.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ll,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(o.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),nl=["onClick"],al={class:"step"},il={key:0,class:"line"},rl=["title"],qe=U(R(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const n=t,l=e.ref(""),o=n.offsetTop??160,r=e.computed(()=>n.anchors.filter(a=>typeof a.visible=="function"?a.visible():a.visible!==!1)),s=()=>{const a=n.containerSelector||"#subpackage_container";return document.querySelector(a)||window},c=a=>{const i=s(),f=a.target.startsWith("#")||a.target.startsWith(".")?a.target:`#${a.target}`,h=document.querySelector(f);if(!h)return;let b=h.offsetTop;i instanceof HTMLElement&&(b-=i.offsetTop),b-=o,i instanceof Window?window.scrollTo({top:b,behavior:"smooth"}):i.scrollTo({top:b,behavior:"smooth"}),l.value=a.target},p=()=>{const a=s();let i=0;a instanceof Window?i=window.scrollY+o+5:i=a.scrollTop+o+5;let f=r.value[0]?.target||"";for(const h of r.value){const b=h.target.startsWith("#")||h.target.startsWith(".")?h.target:`#${h.target}`,N=document.querySelector(b);if(!N)continue;let B=N.offsetTop;a instanceof HTMLElement&&(B-=a.offsetTop),i>=B&&(f=h.target)}l.value=f};return e.onMounted(()=>{s().addEventListener("scroll",p),p()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",p)}),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(o)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(f,h)=>(e.openBlock(),e.createElementBlock("div",{key:f.target,class:e.normalizeClass(["anchor-item",{isActive:l.value===f.target}]),onClick:b=>c(f)},[e.createElementVNode("div",al,[h!==r.value.length-1?(e.openBlock(),e.createElementBlock("div",il)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:f.title},e.toDisplayString(f.title.length>12?f.title.slice(0,12)+"...":f.title),9,rl)],10,nl))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),sl={class:"hb_detail_top_act_left"},cl={key:1,class:"hb_detail_top_wrapper_sticky"},dl={class:"hb_detail_top_act"},ml={key:0,class:"hb_detail_all_info"},pl={class:"hb_detail_all_info_left"},fl={class:"hb_detail_info_title"},hl={key:0,class:"hb_detail_info_content"},bl={class:"create_by"},gl={class:"hb_detail_all_info_right"},ul={class:"hb_edit_detail_content_wrapper"},yl={class:"hb_detail_content"},Cl={class:"hb-back-top-inner"},Ye=U(R(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:n}=G.useI18n(),l=t,o=e.inject(be),r=()=>{l.backFn?l.backFn():window.history.back()},s=e.computed(()=>l.backTopBottom||o?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const F={};return l.needFixWidth?{hb_need_set_desc_label_width:l.descLabelWidth||o?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:l.descValueWidth||o?.HbLibDetailBox?.descValueWidth}:F}),p=()=>document.querySelector(l.container),a=e.ref(!1),i=e.ref(null),{top:f}=v.useElementBounding(i),h=e.computed(p),{y:b}=v.useScroll(h);e.watch(b,F=>{a.value=F>f.value},{immediate:!0});const N=F=>{document.querySelectorAll(".hb_card_body").forEach(g=>{g.querySelectorAll(".ant-descriptions-item-content span").forEach(y=>{y.textContent?.trim()||(y.textContent=F)})})};let B=null;return e.onMounted(()=>{o?.HbLibDetailBox?.needSetDesDefault&&(B=setTimeout(()=>{N(o?.HbLibDetailBox?.desDefault)},o?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{B&&clearTimeout(B)}),(F,T)=>{const g=e.resolveComponent("RollbackOutlined"),d=e.resolveComponent("a-divider"),y=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(y,{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",sl,[e.createVNode(g,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(n)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(d,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),T[0]||(T[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",cl,[e.createElementVNode("div",dl,[e.createVNode(g),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(n)("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",ml,[e.createElementVNode("aside",pl,[e.renderSlot(F.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",fl,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("span",bl,e.toDisplayString(t.totalInfo.totalInfoSubTitle1)+e.toDisplayString(t.totalInfo.totalInfoSubVal1),1),e.createElementVNode("span",null,e.toDisplayString(t.totalInfo.totalInfoSubTitle2)+e.toDisplayString(t.totalInfo.totalInfoSubVal2),1)])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("aside",gl,[e.renderSlot(F.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ul,[e.createElementVNode("div",yl,[e.renderSlot(F.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(H.BackTop),{target:p,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Cl,[e.createVNode(e.unref(K.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),Ke=U(R(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const n=t,l=(a,i=300)=>Ae(a,i),o=e.computed(()=>n.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:l(i.onClick,i.debounceTime||300)}))),r=e.ref(0),s=a=>{let i=0;return(Array.isArray(a)?a:[a]).forEach(h=>{let b=[];if(h.startsWith("#")){const N=document.getElementById(h.slice(1));N&&b.push(N)}else b=Array.from(document.getElementsByClassName(h));b.forEach(N=>{i+=N.offsetWidth||0})}),i},c=()=>{n.leftElements&&(r.value=s(n.leftElements)+1)};let p=null;return e.onMounted(()=>{const a=n.getContainer();a!==window&&a instanceof HTMLElement&&a.addEventListener("scroll",()=>{}),c(),p=new MutationObserver(()=>{c()});const i=document.body;p.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{p&&p.disconnect()}),(a,i)=>{const f=e.resolveComponent("a-button"),h=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(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,B=>e.withDirectives((e.openBlock(),e.createBlock(f,{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"]])),kl={class:"modal__detail-content"},Ge=U(R(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:n,emit:l}){const o=l,r=t,s=e.computed({get:()=>r.visible,set:$=>o("update:visible",$)}),c=e.ref(null),p=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:f,y:h,isDragging:b}=v.useDraggable(c),N=e.ref(0),B=e.ref(0),F=e.ref(!1),T=e.ref(0),g=e.ref(0),d=e.ref(0),y=e.ref(0),L=e.ref({left:0,right:0,top:0,bottom:0});let _=null;const w=()=>{T.value=0,g.value=0,d.value=0,y.value=0,F.value=!1};e.watch(s,$=>{$?setTimeout(()=>{w()},50):(_&&clearTimeout(_),_=setTimeout(()=>{T.value=0,g.value=0,d.value=0,y.value=0},300))}),e.watch([f,h],()=>{if(!F.value){N.value=f.value,B.value=h.value;const $=document.body.getBoundingClientRect(),O=c.value.getBoundingClientRect();L.value.right=$.width-O.width,L.value.bottom=$.height-O.height,d.value=T.value,y.value=g.value}F.value=!0}),e.watch(b,()=>{b||(F.value=!1)}),e.watchEffect(()=>{F.value&&(T.value=d.value+Math.min(Math.max(L.value.left,f.value),L.value.right)-N.value,g.value=y.value+Math.min(Math.max(L.value.top,h.value),L.value.bottom)-B.value)});const u=e.computed(()=>({transform:`translate(${T.value}px, ${g.value}px)`})),k=()=>{o("cancel")},S=()=>{o("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),n({handleOk:S,handleCancel:k}),($,O)=>{const q=e.resolveComponent("a-spin"),x=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(x,e.mergeProps({style:p.value,bodyStyle:i.value,ref:"modalRef",visible:s.value,"onUpdate:visible":O[0]||(O[0]=m=>s.value=m),"wrap-style":a.value,onOk:S,onCancel:k},$.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,style:{width:"100%",cursor:"move"}},[e.renderSlot($.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:m})=>[(e.openBlock(),e.createElementBlock("div",{key:s.value,style:e.normalizeStyle(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m)))],4))]),default:e.withCtx(()=>[e.createVNode(q,{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",kl,[e.renderSlot($.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[$.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot($.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),_l={key:0,class:"hb_edit_header"},wl={class:"__detail-content"},xl={key:1,class:"hb_edit_footer"},Ll={class:"hb-back-top-inner"},Je=U(R(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const n=e.ref("vertical"),l=t,o=()=>document.querySelector(l.container),r=e.inject("GLOBAL_CONFIG_KEY"),s=e.computed(()=>l.backTopBottom||r?.HbLibUnDetailBox?.backTopBottom||80);return(c,p)=>(e.openBlock(),e.createBlock(e.unref(H.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",_l,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",n.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",wl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",xl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(H.BackTop),{target:o,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Ll,[e.createVNode(e.unref(K.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Sl={class:"hb_edit_header_left"},Bl={class:"hb_edit_header_title"},Nl={class:"hb_edit_header_right"},Xe=U(R(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:n}=G.useI18n(),l=t,o=de.useRoute(),r=e.ref(0),s=e.computed(()=>o?.meta?.title||"");function c(b,N="offsetHeight"){let B=0;return(Array.isArray(b)?b:[b]).forEach(T=>{let g=[];if(T.startsWith("#")){const d=document.getElementById(T.slice(1));d&&g.push(d)}else g=Array.from(document.getElementsByClassName(T));g.forEach(d=>{B+=d[N]||0})}),B}const p=()=>{l.topElements&&(r.value=c(l.topElements))},a=e.ref(0),i=()=>{l.leftElements&&(a.value=c(l.leftElements,"offsetWidth")+1)};let f=null;e.onMounted(()=>{p(),i(),window.addEventListener("resize",p),f=new MutationObserver(()=>{i()});const b=document.body;f.observe(b,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",p),f&&f.disconnect()}),e.watch(()=>l.topElements,()=>{p()},{immediate:!0});const h=()=>{l.backFn?l.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",Sl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:h},e.toDisplayString(e.unref(n)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(B,{type:"vertical"}),e.createElementVNode("span",Bl,e.toDisplayString(s.value),1)]),e.createElementVNode("aside",Nl,[e.renderSlot(b.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Tl={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},ge=U(R(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Tl,setup(t){const n=t,l=e.ref();e.watchEffect(()=>{l.value=n.data});const o=e.computed(()=>n.tooltipTitle||"复制"),r=e.computed(()=>n.copySuccessTip||"复制成功"),s=e.computed(()=>n.copyFailTip||"复制失败"),c=e.computed(()=>{if(n.cpText)return n.cpText;let a="";if(n.data)if(Array.isArray(n.data)){if(n.K&&n.V&&n.L){const i=n.data.find(f=>f?.[n.K]===n.V);a=i?i[n.L]:""}}else n.K&&(a=n.data[n.K]);return a}),p=()=>{navigator.clipboard.writeText(c.value).then(()=>{H.message.success(r.value)}).catch(()=>{H.message.error(s.value)})};return(a,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(H.Tooltip),{key:0,title:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...a.cpStyle}),onClick:e.withModifiers(p,["stop","prevent"])},[...i[0]||(i[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),El={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},Qe=U(R(e.defineComponent({name:"HbDrag",__name:"index",props:El,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:n}){const l=t,o=e.shallowRef([]);e.watch(()=>l.dragList,f=>{o.value=f},{deep:!0,immediate:!0});const r=me("drag"),s=n,c=f=>{console.log("drag start",f),s("handleDragStart",f)},p=f=>{console.log("drag end",f),s("handleDragEnd",f)},a=f=>{console.log("drag add",f),s("handleDragAdd",f)},i=f=>{console.log("drag remove",f),s("handleDragRemove",f)};return(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[f.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(ae),e.mergeProps({key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=b=>o.value=b),"item-key":"key",class:{[f.dragClass]:f.dragClass}},f.$attrs,{"ghost-class":f.ghostClass,onStart:c,onEnd:p,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(ae),e.mergeProps({key:1,modelValue:o.value,"onUpdate:modelValue":h[1]||(h[1]=b=>o.value=b),"item-key":"id",class:{[f.dragClass]:f.dragClass}},f.$attrs,{"ghost-class":f.ghostClass,onStart:c,onEnd:p,onAdd:a,onRemove:i}),{item:e.withCtx(({element:b})=>[e.createElementVNode("div",null,[e.renderSlot(f.$slots,"default",{item:b},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Vl={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Ze=U(R(e.defineComponent({name:"HbLibSort",__name:"sort",props:Vl,emits:["change"],setup(t,{expose:n,emit:l}){const o=t,r=l,s=e.ref([]),c=e.ref("");e.watch(()=>o.menuItems,a=>{let i=[];Array.isArray(a)&&a.length&&a.forEach(f=>{i=[...i,{label:`${f.label}升序`,value:`${f.value}`,sort:"Asc"},{label:`${f.label}降序`,value:`${f.value}`,sort:"Desc"}]}),s.value=i},{deep:!0,immediate:!0});const p=a=>{c.value=a.value+a.sort,o.getSort&&o.getSort({orderFeild:a.value,orderBy:a.sort}),r("change",c)};return n({currentActiveItem:c}),(a,i)=>{const f=e.resolveComponent("a-menu-item"),h=e.resolveComponent("a-menu"),b=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(b,{trigger:[o.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,N=>(e.openBlock(),e.createBlock(f,{key:N.value+N.sort,onClick:B=>p(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(o.colText)+" ",1),e.createVNode(e.unref(K.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Fl={class:"hb_lib_loading"},$l={class:"hb_lib_loading_loading_anima"},Hl={class:"hb_lib_loading_load_tips"},ve=U(R(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:n}=G.useI18n(),l=t,o=e.computed(()=>l.loadTips||n("hbLibComp.HbLibLoading.loadingTips"));return(r,s)=>(e.openBlock(),e.createElementBlock("div",Fl,[e.createElementVNode("div",$l,[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",Hl,e.toDisplayString(o.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]]));function ue(t){const n=t.trim();try{return new URL(n).href}catch{const l=n.replace(/ /g,"%20");try{return new URL(l).href}catch{return l}}}function et(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function tt(t){return new Promise((n,l)=>{const o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="blob",o.withCredentials=et(t),o.onload=()=>{o.status>=200&&o.status<300?n(o.response):l(new Error(String(o.status)))},o.onerror=()=>l(new Error("xhr")),o.send()})}async function Il(t){const n=ue(t),l=typeof document<"u"?document.documentMode:void 0;if(typeof l=="number"&&l>0)return tt(n);if(typeof fetch=="function"){const o=await fetch(n,{credentials:et(n)?"include":"omit",mode:"cors"});if(!o.ok)throw new Error(String(o.status));return o.blob()}return tt(n)}function Dl(t,n){const l=n.trim()||"download",o=navigator;if(typeof o.msSaveOrOpenBlob=="function"){o.msSaveOrOpenBlob(t,l);return}const r=URL.createObjectURL(t);try{const s=document.createElement("a");s.href=r,s.rel="noopener noreferrer",s.setAttribute("download",l),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)}finally{URL.revokeObjectURL(r)}}function Ml(t){const n=ue(t),l=document.createElement("iframe");l.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",l.src=n,document.body.appendChild(l),window.setTimeout(()=>{try{document.body.removeChild(l)}catch{}},12e4)}async function ne(t,n){const l=(n||"download").trim()||"download";try{const o=await Il(t);Dl(o,l);return}catch{Ml(t)}}const Al=768;function Ol(){return typeof window>"u"?!0:window.innerWidth>=Al}function ye(){return!Ol()}const J=t=>{const l=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return l?l[1].toLowerCase():""},zl=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),ot=t=>zl.has(J(t)),lt=t=>t.downloadUrl,Pl=(t,n,l)=>{const o=a=>a.previewUrl,r=l?.preferredIndex;if(typeof r=="number"&&r>=0&&r<t.length){const a=t[r];if(a===n)return r;const i="uploadDate"in a&&a.uploadDate||"",f="uploadDate"in n&&n.uploadDate||"";if(o(a)===o(n)&&(a.attachmentDesc||"")===(n.attachmentDesc||"")&&i===f)return r}const s=n.attachmentId;if(s){const a=t.findIndex(i=>i.attachmentId===s);if(a>=0)return a}const c=o(n);if(c){const a=t.findIndex(i=>o(i)===c);if(a>=0)return a}const p=lt(n);if(p){const a=t.findIndex(i=>lt(i)===p);if(a>=0)return a}return t.indexOf(n)},Ul={class:"file-preview-modal-title"},Rl={key:0,class:"file-preview-modal-title__tip"},Wl={class:"file-preview-modal-body file-preview-modal-body--fill"},jl=["src"],ql=["src"],Yl={key:2,class:"file-preview-modal-body__pre"},Kl=["src"],Gl=["src"],Jl={key:0,class:"file-preview-modal-footer__nav"},Xl={class:"file-preview-modal-body file-preview-modal-body--fill"},Ql=["src"],Zl=["src"],vl={key:2,class:"file-preview-modal-body__pre"},en=["src"],tn=["src"],on={key:0,class:"file-preview-modal-footer__nav"},nt=U(R(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:n}){const l=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),o=n,r=t,s=e.ref(r.previewVisible);e.watch(()=>r.previewVisible,x=>{s.value=x});const c=e.computed(()=>r.mobile?"100%":"98%"),p=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 x=(r.fileName||"").trim(),m=(r.url||"").trim(),V=x?J(x):"",I=m?J(m):"";return I&&V&&I!==V?m:V?x:I?m:x||m}),f=e.computed(()=>i.value?J(i.value):""),h=e.computed(()=>`${r.url}\0${r.fileName||""}`),b=e.computed(()=>i.value?ot(i.value):!1),N=e.computed(()=>{if(!i.value)return!1;const x=J(i.value);return["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv"].includes(x)}),B=e.computed(()=>{const x=(r.url||"").trim();if(!x)return!1;try{const{pathname:m}=new URL(x);return/\/file(?:\/|-)preview\b/i.test(m)}catch{return/\/file(?:\/|-)preview\b/i.test(x)}}),F=typeof window<"u",T=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),g=e.computed(()=>!F||!r.url?.trim()||B.value?!1:T.has(f.value)),d=e.computed(()=>f.value==="txt"),y=e.computed(()=>!r.url?.trim()||B.value?!1:d.value),L=e.ref("idle"),_=e.ref("");e.watch(()=>({visible:r.previewVisible,url:r.url,isTxt:d.value}),async({visible:x,url:m,isTxt:V})=>{if(_.value="",L.value="idle",!(!x||!V||!(m||"").trim())){L.value="loading";try{const I=await fetch(m.trim(),{credentials:"include",mode:"cors"});if(!I.ok)throw new Error(String(I.status));_.value=await I.text(),L.value="text"}catch{L.value="iframe-fallback"}}},{flush:"post"});const w=e.computed(()=>!r.url?.trim()||!F||d.value?!1:g.value?!0:!N.value&&!b.value),u=e.computed(()=>l.has(f.value)),k=e.computed(()=>{const x=(r.url||"").trim();return x?B.value||!N.value||f.value==="pdf"?x:u.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(x)}`:`https://docs.google.com/gview?url=${encodeURIComponent(x)}&embedded=true`:r.url}),S=e.ref("");e.watch(()=>({visible:r.previewVisible,src:k.value,doc:N.value,serverPage:B.value,skipIframe:g.value}),async({visible:x,src:m,doc:V,serverPage:I,skipIframe:z})=>{if(S.value="",!x||!(V||I)||z)return;const P=(m||"").trim();P&&(await e.nextTick(),await new Promise(j=>requestAnimationFrame(j)),r.previewVisible&&k.value===P&&(S.value=P))},{flush:"post"});const $=e.computed(()=>r.url&&(!b.value||!N.value)),O=async()=>{ye()?window.open(r.url,"_blank"):await ne(r.url,r.fileName||"file")},q=()=>{o("closeModal")};return(x,m)=>{const V=e.resolveComponent("a-spin"),I=e.resolveComponent("a-button"),z=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(z,e.mergeProps({key:0,visible:s.value,"onUpdate:visible":m[2]||(m[2]=P=>s.value=P),width:c.value,"body-style":a.value,style:p.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},x.$attrs,{onCancel:q}),{title:e.withCtx(()=>[e.createElementVNode("div",Ul,[e.renderSlot(x.$slots,"title",{},()=>[m[5]||(m[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(ye)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Rl,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(x.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(I,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:m[0]||(m[0]=P=>o("prevAttachment"))},{default:e.withCtx(()=>[...m[6]||(m[6]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(I,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:m[1]||(m[1]=P=>o("nextAttachment"))},{default:e.withCtx(()=>[...m[7]||(m[7]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),$.value&&r.url?(e.openBlock(),e.createBlock(I,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:O},{default:e.withCtx(()=>[...m[8]||(m[8]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(I,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:q},{default:e.withCtx(()=>[...m[9]||(m[9]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Wl,[B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${h.value}:${S.value}`,src:S.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,jl)):e.createCommentVNode("",!0)],64)):y.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${h.value}`,class:"file-preview-modal-body__plaintext"},[L.value==="loading"?(e.openBlock(),e.createBlock(V,{key:0,tip:"加载中..."})):L.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,ql)):L.value==="text"?(e.openBlock(),e.createElementBlock("pre",Yl," "+e.toDisplayString(_.value)+`
|
|
2
|
-
`,1)):e.createCommentVNode("",!0)])):w.value?(e.openBlock(),e.createBlock(e.unref(we),{key:`vfp:${h.value}`,url:t.url},null,8,["url"])):N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[S.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${h.value}:${S.value}`,src:S.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Kl)):e.createCommentVNode("",!0)],64)):b.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${h.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Gl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${h.value}`,class:"no-preview"},e.toDisplayString(F?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),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",Xl,[B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${h.value}:${S.value}`,src:S.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ql)):e.createCommentVNode("",!0)],64)):y.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${h.value}`,class:"file-preview-modal-body__plaintext"},[L.value==="loading"?(e.openBlock(),e.createBlock(V,{key:0,tip:"加载中..."})):L.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)):L.value==="text"?(e.openBlock(),e.createElementBlock("pre",vl,e.toDisplayString(_.value)+`
|
|
3
|
-
`,1)):e.createCommentVNode("",!0)])):w.value?(e.openBlock(),e.createBlock(e.unref(we),{key:`vfp:${h.value}`,url:t.url},null,8,["url"])):N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[S.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${h.value}:${S.value}`,src:S.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,en)):e.createCommentVNode("",!0)],64)):b.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${h.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,tn)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${h.value}`,class:"no-preview"},e.toDisplayString(F?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(x.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",on,[e.createVNode(I,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:m[3]||(m[3]=P=>o("prevAttachment"))},{default:e.withCtx(()=>[...m[10]||(m[10]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(I,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:m[4]||(m[4]=P=>o("nextAttachment"))},{default:e.withCtx(()=>[...m[11]||(m[11]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),$.value&&r.url?(e.openBlock(),e.createBlock(I,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:O},{default:e.withCtx(()=>[...m[12]||(m[12]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(I,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:q},{default:e.withCtx(()=>[...m[13]||(m[13]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-24ce269f"]])),ln={class:"hb-file-preview-s__title"},nn={key:0,class:"hb-file-preview-s__title-tip"},an={class:"hb-file-preview-s__body hb-file-preview-s__body--fill"},rn={key:1,class:"hb-file-preview-s__state hb-file-preview-s__state--error"},sn={key:2,class:"hb-file-preview-s__state"},cn={key:3,class:"hb-file-preview-s__state"},dn=["src"],mn={key:0,class:"hb-file-preview-s__nav"},at=U(R(e.defineComponent({__name:"file_preview",props:{url:{default:""},fileName:{default:""},file:{default:null},previewVisible:{type:Boolean,default:!1},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},fetchInit:{default:void 0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:n}){const l=n,o=t,r={showContextmenu:!1},s={pdf:ft,docx:mt,excel:pt,pptx:ht},c=e.computed({get:()=>o.previewVisible,set:m=>{m||l("closeModal")}}),p=e.computed(()=>o.mobile?"100%":"98%"),a=e.computed(()=>o.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),i=e.computed(()=>({height:o.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:o.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),f=e.computed(()=>{const m=(o.fileName||"").trim(),V=(o.url||"").trim(),I=m?J(m):"",z=V?J(V):"";return z&&I&&z!==I?V:I?m:z?V:m||V}),h=e.computed(()=>f.value?J(f.value):""),b=e.computed(()=>`${o.url}\0${o.fileName||""}`),N=e.computed(()=>{const m=h.value;return m?ot(`x.${m}`)?"image":m==="pdf"?"pdf":m==="docx"||m==="doc"?"docx":m==="xlsx"||m==="xls"||m==="xlsm"||m==="xlsb"||m==="csv"?"excel":m==="pptx"||m==="pptm"||m==="ppsx"||m==="ppsm"||m==="potx"||m==="potm"||m==="ppt"||m==="pps"?"pptx":m==="txt"?"text":"unsupported":(o.url||"").trim()?"unsupported":"empty"}),B=e.ref("idle"),F=e.ref(""),T=e.ref(null),g=e.ref(""),d=e.ref(""),y=e.computed(()=>!!o.url?.trim()),L=()=>({credentials:"include",mode:"cors"}),_=()=>{d.value&&(URL.revokeObjectURL(d.value),d.value="")},w=()=>{T.value=null,g.value="",_(),F.value=""},u=()=>({...L(),...o.fetchInit||{}});function k(m,V){const I=m.byteLength>V?m.slice(0,V):m;return new TextDecoder("utf-8",{fatal:!1}).decode(I)}function S(m,V){if(V!=="pdf"&&V!=="excel"&&V!=="docx"&&V!=="pptx")return;if(m.byteLength<4)throw new Error("响应体过短,不是有效文件");const I=new Uint8Array(m,0,Math.min(8,m.byteLength)),z=I[0]===37&&I[1]===80&&I[2]===68&&I[3]===70,P=I[0]===80&&I[1]===75,j=k(m,400).trimStart();if(V==="pdf"&&!z)throw/<html[\s>]/i.test(j)||/^<!doctype/i.test(j)?new Error("返回的是网页而非 PDF(常见:未登录、鉴权失败、或地址不是文件直链)"):new Error("返回内容不是 PDF 二进制流");if((V==="excel"||V==="docx"||V==="pptx")&&!P)throw/<html[\s>]/i.test(j)||/^<!doctype/i.test(j)?new Error("返回的是网页而非 Office 文件(常见:未登录、网关预览页、或嵌套 url 未 encode 导致参数被截断)"):j.startsWith("{")||j.startsWith("[")?new Error("返回的是 JSON 等非文件内容;请换用「直接返回文件流」的下载/预览直链,或先由业务解析出真实文件地址"):new Error("返回内容不是 Office 文档(zip)二进制流")}const $=()=>{B.value="ready"},O=()=>{B.value="error",F.value=N.value==="pptx"?"幻灯片解析失败;若为旧版 .ppt/.pps,请先另存为 .pptx 后再预览":"文档解析失败,请确认格式是否匹配或尝试下载查看"};e.watch(()=>({visible:o.previewVisible,url:o.url,kind:N.value,key:b.value}),async({visible:m,url:V,kind:I})=>{if(w(),!m){B.value="idle";return}const z=(V||"").trim();if(!z||I==="empty"||I==="unsupported"){B.value=I==="unsupported"?"ready":"idle";return}B.value="loading";try{const P=ue(z),j=await fetch(P,u());if(!j.ok)throw new Error(`HTTP ${j.status}`);if(I==="image"){const C=await j.blob();_(),d.value=URL.createObjectURL(C),B.value="ready";return}if(I==="text"){g.value=await j.text(),B.value="ready";return}const oe=await j.arrayBuffer();S(oe,I),T.value=oe,B.value="ready"}catch(P){B.value="error",F.value=P instanceof Error?`文件加载失败:${P.message}`:"文件加载失败,请检查网络或登录态"}},{flush:"post"});const q=async()=>{/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?window.open(o.url,"_blank"):await ne(o.url,o.fileName||"file")},x=()=>{l("closeModal")};return e.onUnmounted(()=>{_()}),(m,V)=>{const I=e.resolveComponent("a-spin"),z=e.resolveComponent("a-button"),P=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(P,{visible:c.value,"onUpdate:visible":V[2]||(V[2]=j=>c.value=j),width:p.value,"body-style":i.value,style:e.normalizeStyle(a.value),"wrap-class-name":o.mobile?"hb-file-preview-s-wrap hb-file-preview-s-wrap--mobile":"hb-file-preview-s-wrap","destroy-on-close":"",onCancel:x},{title:e.withCtx(()=>[e.createElementVNode("div",ln,[V[3]||(V[3]=e.createTextVNode(" 文件预览(内网解析) ",-1)),e.unref(ye)()?(e.openBlock(),e.createElementBlock("span",nn," 敏感文件不会走外网在线预览,首次加载可能较慢 ")):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb-file-preview-s__footer",{"hb-file-preview-s__footer--mobile":o.mobile}])},[o.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",mn,[e.createVNode(z,{disabled:!o.hasPrevAttachment,size:o.mobile?"large":"middle",block:o.mobile,onClick:V[0]||(V[0]=j=>l("prevAttachment"))},{default:e.withCtx(()=>[...V[4]||(V[4]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(z,{disabled:!o.hasNextAttachment,size:o.mobile?"large":"middle",block:o.mobile,onClick:V[1]||(V[1]=j=>l("nextAttachment"))},{default:e.withCtx(()=>[...V[5]||(V[5]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),y.value&&o.url?(e.openBlock(),e.createBlock(z,{key:1,size:o.mobile?"large":"middle",block:o.mobile,onClick:q},{default:e.withCtx(()=>[...V[6]||(V[6]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(z,{type:"primary",class:"hb-file-preview-s__close",size:o.mobile?"large":"middle",block:o.mobile,onClick:x},{default:e.withCtx(()=>[...V[7]||(V[7]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],2)]),default:e.withCtx(()=>[e.createElementVNode("div",an,[B.value==="loading"?(e.openBlock(),e.createBlock(I,{key:0,class:"hb-file-preview-s__spin",tip:"正在拉取文件..."})):B.value==="error"?(e.openBlock(),e.createElementBlock("div",rn,e.toDisplayString(F.value),1)):N.value==="empty"?(e.openBlock(),e.createElementBlock("div",sn," 暂无可预览地址 ")):N.value==="unsupported"?(e.openBlock(),e.createElementBlock("div",cn," 当前格式在内网预览中不支持,请下载后查看(已支持:Word / Excel / PDF / PowerPoint) ")):T.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[N.value]),{key:`${N.value}:${b.value}`,src:T.value,options:r,onRendered:$,onError:O},null,40,["src"])):N.value==="image"?(e.openBlock(),e.createElementBlock("div",{key:`img:${b.value}`,class:"hb-file-preview-s__img-wrap"},[e.createElementVNode("img",{class:"hb-file-preview-s__img",src:d.value,alt:"图片预览"},null,8,dn)])):N.value==="text"?(e.openBlock(),e.createElementBlock("pre",{key:`txt:${b.value}`,class:"hb-file-preview-s__pre"}," "+e.toDisplayString(g.value)+`
|
|
4
|
-
`,1)):e.createCommentVNode("",!0)])]),_:1},8,["visible","width","body-style","style","wrap-class-name"])}}}),[["__scopeId","data-v-4a9301ca"]])),pn=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:qe,HbLibCard:je,HbLibCopy:ge,HbLibDetailBox:Ye,HbLibFilePreview:nt,HbLibFilePreviewSafe:at,HbLibFooterBar:Ke,HbLibFormItemFilterModal:xe,HbLibFormTooltipSelect:Pe,HbLibFuncCompDrag:Qe,HbLibImportFile:Ue,HbLibListBtnsAct:Be,HbLibListForm:Le,HbLibListMultiSelect:Ee,HbLibListPageAct:Se,HbLibListPageContainer:Te,HbLibListTable:Oe,HbLibLoading:ve,HbLibLogModal:Re,HbLibModal:Ge,HbLibMutilpleSelectModal:Ve,HbLibPageHeader:Xe,HbLibSort:Ze,HbLibTableAct:Fe,HbLibTableColumnSet:ze,HbLibUnDetailBox:Je,HbUiConfig:We},Symbol.toStringTag,{value:"Module"})),X=new Map;let it;v.isClient&&(document.addEventListener("mousedown",t=>it=t),document.addEventListener("mouseup",t=>{for(const n of X.values())for(const{documentHandler:l}of n)l(t,it)}));function rt(t,n){let l=[];return Array.isArray(n.arg)?l=n.arg:n.arg instanceof HTMLElement&&l.push(n.arg),function(o,r){const s=n.instance.popperRef,c=o.target,p=r?.target,a=!n||!n.instance,i=!c||!p,f=t.contains(c)||t.contains(p),h=t===c,b=l.length&&l.some(B=>B?.contains(c))||l.length&&l.includes(p),N=s&&(s.contains(c)||s.contains(p));a||i||f||h||b||N||n.value(o,r)}}const fn={beforeMount(t,n){X.has(t)||X.set(t,[]),X.get(t).push({documentHandler:rt(t,n),bindingFn:n.value})},updated(t,n){X.has(t)||X.set(t,[]);const l=X.get(t),o=l.findIndex(s=>s.bindingFn===n.oldValue),r={documentHandler:rt(t,n),bindingFn:n.value};o>=0?l.splice(o,1,r):l.push(r)},unmounted(t){X.delete(t)}},hn={mounted(t,n){const{value:l,arg:o}=n;if(console.log(n),typeof l!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const r=parseInt(o,10)||300;let s;t.__debounceHandler__=function(...c){s&&clearTimeout(s),s=setTimeout(()=>{l(...c)},r)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},st=(t,n)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const l=e.createApp(ge,{cpText:n});l.mount(t._dynamicContainer),t._dynamicApp=l,t._dynamicPrevValue=n},bn={cos:fn,dc:hn,icp:{mounted(t,n){if(!t._dynamicContainer){const l=document.createElement("div");l.style.display="inline-flex",l.style.alignItems="center",l.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(l,t.nextSibling),t._dynamicContainer=l}st(t,n.value)},updated(t,n){n.value!==t._dynamicPrevValue&&st(t,n.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}};function gn(t){const n=e.ref(!1),l=e.ref(""),o=e.ref(""),r=e.ref(-1),s=g=>g.previewUrl,c=e.computed(()=>{const g=t.value.attachmentInfos,d=r.value;if(d<=0)return!1;for(let y=d-1;y>=0;y--)if(s(g[y]))return!0;return!1}),p=e.computed(()=>{const g=t.value.attachmentInfos,d=r.value;if(d<0||d>=g.length-1)return!1;for(let y=d+1;y<g.length;y++)if(s(g[y]))return!0;return!1}),a=e.computed(()=>t.value.attachmentInfos.length>1),i=g=>{const y=t.value.attachmentInfos[g];if(!y)return;const L=s(y);L&&(r.value=g,l.value=L,o.value=y.attachmentDesc||"",n.value=!0)},f=()=>{const g=t.value.attachmentInfos,d=r.value;for(let y=d-1;y>=0;y--)if(s(g[y])){i(y);return}},h=()=>{const g=t.value.attachmentInfos,d=r.value;for(let y=d+1;y<g.length;y++)if(s(g[y])){i(y);return}},b=()=>{n.value=!1,r.value=-1,l.value="",o.value=""},N=(g,d)=>{const y=s(g);if(!y){H.message.warning("暂无预览地址");return}const L=t.value.attachmentInfos,_=Pl(L,g,{preferredIndex:d});_>=0?i(_):(r.value=-1,l.value=y,o.value=g.attachmentDesc||"",n.value=!0)},B=g=>{const d=g.downloadUrl;if(!d){H.message.warning("暂无下载地址");return}const y=g.attachmentDesc?.trim()||"download";ne(d,y)},F=400;return{filePreviewVisible:n,pdfPreviewUrlRef:l,previewFileNameRef:o,previewAttachmentIndexRef:r,hasPrevAttachment:c,hasNextAttachment:p,showAttachmentNavBar:a,handlePreview:N,handleDownload:B,handleClosePreview:b,goPrevAttachment:f,goNextAttachment:h,triggerBrowserDownload:ne,handleBatchDownloadAttachment:async()=>{const d=t.value.attachmentInfos.filter(y=>!!y.downloadUrl?.trim());if(d.length===0){H.message.warning("暂无可下载附件");return}for(let y=0;y<d.length;y++){const L=d[y],_=L.attachmentDesc?.trim()||"download";ne(L.downloadUrl,_),y<d.length-1&&await new Promise(w=>setTimeout(w,F))}}}}const un=t=>{const n=e.ref();n.value=t.slice();const l=JSON.parse(JSON.stringify(n.value));return{formItems:n,DeepCloneFromItem:l,handleSearchCase:r=>{let s=[],c=Object.keys(r);l.forEach(p=>{c.includes(p.key)&&s.push(p)}),n.value=s}}},yn=t=>{let n=!0;return{start:()=>{e.nextTick(()=>{const s=document.querySelector(`.${t} .ant-modal`);if(s){let c=!1,p={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",f=>{c=!0,p.x=f.clientX-s.offsetLeft,p.y=f.clientY-s.offsetTop,document.body.style.userSelect="none"}),i.addEventListener("mousedown",f=>{c=!0,p.x=f.clientX-s.offsetLeft,p.y=f.clientY-s.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",f=>{if(!c||!n)return;const h=f.clientX-p.x,b=f.clientY-p.y;s.style.left=`${h}px`,s.style.top=`${b}px`}),document.addEventListener("mouseup",()=>{c=!1,document.body.style.userSelect=""}))}})},stop:()=>{n=!1},resetPosition:()=>{e.nextTick(()=>{const s=document.querySelector(`.${t} .ant-modal`);if(s){const c=window.innerWidth,p=window.innerHeight,a=s.offsetWidth,i=s.offsetHeight,f=(c-a)/2,h=(p-i)/2;s.style.left=`${f}px`,s.style.top=`${h}px`}})}}},Cn={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"}}},kn={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:"戻る"}}},_n={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:"加载中...如长时间加载请重试!"}}},wn={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 se={exports:{}},xn=se.exports,ct;function Ln(){return ct||(ct=1,(function(t,n){(function(l,o){t.exports=o(ie)})(xn,(function(l){function o(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=o(l),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,p){return p==="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,p){var a=100*c+p;return a<600?"凌晨":a<900?"早上":a<1100?"上午":a<1300?"中午":a<1800?"下午":"晚上"}};return r.default.locale(s,null,!0),s}))})(se)),se.exports}Ln(),ie.locale("zh-cn");const Sn={en_US:Cn,ja_JP:kn,zh_CN:_n,de_DE:wn},Bn=function(t,n={}){t.provide("globalCompConfig",n||{}),Object.values(pn).forEach(l=>{l&&typeof l.install=="function"&&t.use(l)}),Object.entries(bn).forEach(([l,o])=>{t.directive(l,o)})};D.HbLibAnchor=qe,D.HbLibCard=je,D.HbLibCopy=ge,D.HbLibDetailBox=Ye,D.HbLibFilePreview=nt,D.HbLibFilePreviewSafe=at,D.HbLibFooterBar=Ke,D.HbLibFormItemFilterModal=xe,D.HbLibFormTooltipSelect=Pe,D.HbLibFuncCompDrag=Qe,D.HbLibImportFile=Ue,D.HbLibListBtnsAct=Be,D.HbLibListForm=Le,D.HbLibListMultiSelect=Ee,D.HbLibListPageAct=Se,D.HbLibListPageContainer=Te,D.HbLibListTable=Oe,D.HbLibLoading=ve,D.HbLibLogModal=Re,D.HbLibModal=Ge,D.HbLibMutilpleSelectModal=Ve,D.HbLibPageHeader=Xe,D.HbLibSort=Ze,D.HbLibTableAct=Fe,D.HbLibTableColumnSet=ze,D.HbLibUnDetailBox=Je,D.HbUiConfig=We,D.install=Bn,D.locales=Sn,D.useCalTableHeight=Ne,D.useCalTableWidth=pe,D.useFilePreview=gn,D.useListFormItem=un,D.useModalDrag=yn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(D,he){typeof exports=="object"&&typeof module<"u"?he(exports,require("vue-files-preview"),require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue-files-preview","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],he):(D=typeof globalThis<"u"?globalThis:D||self,he(D.HbComponentLib={},D.VueFilesPreview,D.Vue,D.draggable,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.iconsVue,D.core,D.dayjs))})(this,(function(D,he,e,ue,E,we,te,ie,Z,re,ye){"use strict";const Le=(t="")=>{const l=`hb-${t}`;return kt(l)},se=(t,l,o,a)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),a&&(t+=`--${a}`),t),kt=t=>({b:l=>l?se(t,l,"",""):se(t,"","",""),e:l=>l?se(t,"",l,""):"",m:l=>se(t,"","",l),be:(l,o)=>se(t,l,o,""),em:(l,o)=>se(t,"",l,o),bem:(l,o,a)=>se(t,l,o,a),is:(l,o)=>o?`is-${l}`:""}),_t=["onMouseenter","onMouseleave"],wt=["onClick"],Lt=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const a=e.inject("globalCompConfig",{}),d=te.useI18n().t,r=te.useI18n().messages.value.en_US,c=te.useI18n().messages.value.ja_JP,s=te.useI18n().messages.value.zh_CN,n=t,i=e.computed(()=>n.showNumber||a.HbLibFormItemFilterModal?.defaultShowCount||40),m=e.computed(()=>n.title||d("hbLibComp.hbFormItemFilterModal.title")),C=o,f=Le("sfcm"),T=we.useRoute(),S=e.reactive({lan:window.localStorage.getItem("lan")}),H=e.ref(!1),N=e.ref(600);let h=[];const p=e.ref([]),u=e.ref([]),L=e.computed(()=>p.value.every(g=>g.isLinked||g.isFixed)),_=g=>({...g,label:w(g)||`${V(g)||""} (${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:g.key,isFixed:g?.isFixed||!1,isLinked:g?.isLinked||!1,labelLanguage:g?.labelLanguage||void 0}),k=g=>{const M=g.draggedContext.element,x=g.relatedContext.index;if(M.isLinked||M.isFixed)return!1;const P=p.value.map((J,le)=>({item:J,index:le})).filter(({item:J})=>J.isLinked).map(({index:J})=>J);if(P.length===0)return!0;for(let J=0;J<P.length-1;J++){const le=P[J],oe=P[J+1];if(x>le&&x<oe)return!1}return!0},b=e.computed(()=>y()+"_"+n.saveKey),y=()=>{const g=localStorage.getItem("pro__Login_Userinfo");let M="anonymous";if(g)try{M=JSON.parse(g).value.jobNumber||"anonymous"}catch(P){console.warn("解析用户信息失败:",P)}let x=T?.path;return`searchFormConfig_${M}_${x}`},w=g=>({ja_JP:()=>ie.get(c,g.labelLanguage||""),en_US:()=>ie.get(r,g.labelLanguage||""),zh_CN:()=>ie.get(s,g.labelLanguage||"")})[S.lan]?.()||g.label,V=g=>({ja_JP:()=>ie.get(c,g.subLabelLanguage||""),en_US:()=>ie.get(r,g.subLabelLanguage||""),zh_CN:()=>ie.get(s,g.subLabelLanguage||"")})[S.lan]?.()||g.subLabel,O=()=>{try{const g=localStorage.getItem(b.value);if(g){const M=JSON.parse(g);if(M.originalList&&Array.isArray(M.originalList)){h=JSON.parse(JSON.stringify(M.originalList));const x=h.filter(A=>A?.isFixed),P=h.filter(A=>A?.isLinked),J=M.showList.filter(A=>!A.isFixed&&!A.isLinked),le=i.value&&i.value>0?Math.max(0,i.value-x.length-P.length):J.length,oe=x.map(A=>({..._(A)})),j=P.map(A=>({..._(A)})),de=J.slice(0,le).map(A=>({..._(A)}));p.value=[...oe,...j,...de];const me=p.value.map(A=>A.key),fe=h.map(A=>A.key).filter(A=>!me.includes(A));return u.value=h.filter(A=>fe.includes(A.key)).map(A=>({..._(A),active:!1})),!0}}}catch(g){console.warn("加载保存的搜索配置失败:",g)}return!1},R=()=>{try{const g={originalList:h,showList:p.value.map(M=>({...M,key:M.key,label:M.label,isFixed:M.isFixed,isLinked:M.isLinked,labelLanguage:M?.labelLanguage||void 0}))};localStorage.setItem(b.value,JSON.stringify(g))}catch(g){console.warn("保存搜索配置失败:",g)}},B=e.computed(()=>{const g=p.value.filter(x=>!x.isFixed&&!x.isLinked).length,M=p.value.filter(x=>x.isFixed||x.isLinked).length;return g>=i.value-M});e.watch(()=>n.list,g=>{let M=JSON.stringify(p.value)!==JSON.stringify(g);if(!M)return;const x=localStorage.getItem(b.value),P=JSON.parse(x||"{}");if(P&&P?.originalList&&Array.isArray(P.originalList))O(),C("confirm",p.value);else if(M){h=JSON.parse(JSON.stringify(g));const J=g.filter(A=>A?.isFixed),le=g.filter(A=>A?.isLinked),oe=g.filter(A=>!A?.isFixed&&!A?.isLinked),j=i.value&&i.value>0?Math.max(0,i.value-J.length-le.length):oe.length,de=J.map(A=>_(A)),me=le.map(A=>_(A)),pe=oe.slice(0,j).map(A=>_(A));p.value=[...de,...me,...pe];const fe=oe.slice(j).map(A=>({..._(A),active:!1}));u.value=fe,C("confirm",p.value)}},{immediate:!0});const I=g=>{const M=p.value.findIndex(x=>x.key===g.key);M!==-1&&(p.value.splice(M,1),u.value.push({...g,active:!1}))},q=g=>{if(B.value){E.message.warning(`当前已经超过${d(i.value)}个可选数量,请先删除已显示条件`);return}const M=u.value.findIndex(x=>x.key===g.key);if(M!==-1){const[x]=u.value.splice(M,1);p.value.push({...x,active:!1})}},Y=()=>{H.value=!1},X=()=>{H.value=!0},v=()=>{R(),C("confirm",p.value),Y()},Q=g=>{const M=u.value.findIndex(x=>x.key===g.key);M!==-1&&(u.value[M].active=!0)},ee=g=>{const M=u.value.findIndex(x=>x.key===g.key);M!==-1&&(u.value[M].active=!1)};return l({toOpenModal:X}),e.onMounted(()=>{}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(f).b())},[e.createVNode(e.unref(E.Modal),{visible:H.value,"onUpdate:visible":M[1]||(M[1]=x=>H.value=x),width:N.value,onCancel:Y,onOk:v},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("title"))},e.toDisplayString(m.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(E.Button),{onClick:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(E.Button),{type:"primary",onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__tag"))},[e.createVNode(e.unref(ue),{modelValue:p.value,"onUpdate:modelValue":M[0]||(M[0]=x=>p.value=x),"item-key":"key",tag:"div",disabled:L.value,move:k},{item:e.withCtx(({element:x})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).e("show__tag__item"),e.unref(f).is("fixed",x.isFixed),e.unref(f).is("linked",x.isLinked)])},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),!x.isFixed&&!x.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Z.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(f).e("show__tag__item-close")),onClick:P=>I(x)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("unshow__tag"))},[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x.key,class:e.normalizeClass([e.unref(f).e("unshow__tag__item"),e.unref(f).is("fixed",x.isFixed||""),e.unref(f).is("linked",x.isLinked||"")]),onMouseenter:P=>Q(x),onMouseleave:P=>ee(x)},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),x.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(f).e("unshow__tag__item-add")),onClick:P=>q(x)},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.add")),11,wt)):e.createCommentVNode("",!0)],42,_t))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(f).e("unshow__tag__empty"))},e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(t,l)=>{const o=t.__vccOpts||t;for(const[a,d]of l)o[a]=d;return o},St=U(Lt,[["__scopeId","data-v-657502f3"]]);function z(t){const l=t;return l.install=o=>{const a=t.name;o.component(a??"AnonymousComponent",t)},l}const Fe=z(St),xt={key:0,class:"form-footer"},Bt={class:"scheme-fontWeight"},Nt={class:"scheme-fontWeight"},Tt={class:"scheme-fontWeight"},Et={class:"scheme-fontWeight"},Ve=z(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:l,emit:o}){const a=e.inject("globalCompConfig",{}),d=o,r=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>n.searchList||[]),s=Le("form"),n=t,i=e.computed(()=>n.showNumber||a.HbLibFormItemFilterModal?.defaultShowCount||40),m=e.ref("show"),C=e.computed(()=>n.needFooter||a.HbLibListForm?.needFooter),f=e.computed(()=>[...n.items]),T=B=>B!==void 0,S=B=>typeof B=="function",H=B=>T(B.condition)?S(B.condition)?B.condition():B.condition:!0,N=e.computed(()=>[...n.items].map(B=>({...B,condition:H(B),label:B.label?.includes("多项搜索")?"":B.label})));console.log(N.value);const h=e.computed(()=>n.saveKey),p=e.ref(),u=()=>{d("handleSearch")},L=()=>{d("handleReset")},_=e.ref(),k=()=>{_.value&&_.value.toOpenModal()},b=B=>{d("handleMenuClick",B)},y=B=>{d("handleSfcmConfirm",B)};e.watch(()=>n.isFormExpanded,B=>{if(B){console.log(B);const I=document.querySelector("#subpackage_container");I instanceof HTMLElement&&(I.style.overflow="hidden",setTimeout(()=>{I.style.overflow="auto"},500))}});const w=B=>{const I=B;I.style.height="",I.offsetHeight},V=B=>{const I=B;I.style.height="",I.style.overflow="",e.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})},O=B=>{const I=B,q=I.querySelector(".hb-lib-form--container");if(q){const Y=q.offsetHeight;I.style.height=Y+"px",I.style.overflow="hidden",I.offsetHeight,requestAnimationFrame(()=>{I.style.height="0"})}},R=()=>{e.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})};return l({formRef:p,SelectOption:E.SelectOption,Form:E.Form,FormItem:E.FormItem,Row:E.Row,Col:E.Col,Input:E.Input,Select:E.Select,CheckboxGroup:E.CheckboxGroup,Checkbox:E.Checkbox,DatePicker:E.DatePicker,InputNumber:E.InputNumber,RadioGroup:E.RadioGroup,Radio:E.Radio,Switch:E.Switch,Button:E.Button,Tooltip:E.Tooltip}),(B,I)=>{const q=e.resolveComponent("a-button"),Y=e.resolveComponent("a-tooltip"),X=e.resolveComponent("a-menu-item"),v=e.resolveComponent("a-menu"),Q=e.resolveComponent("a-dropdown"),ee=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:w,onAfterEnter:V,onLeave:O,onAfterLeave:R},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",C.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(E.Form),e.mergeProps(B.$attrs,{model:t.formData,ref_key:"formRef",ref:p,class:["hb-lib-form--container",m.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(g,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[g.condition?(e.openBlock(),e.createBlock(e.unref(E.FormItem),e.mergeProps({key:0,ref_for:!0},g,{name:g.key,class:{"hb-lib-form-item-border--unneed":g.isUnNeedBorder,"hb_lib_form_item--needShowAll":g.showAll}}),e.createSlots({default:e.withCtx(()=>[g.type==="slot"?e.renderSlot(B.$slots,g.key,{key:0,formData:t.formData,item:g},void 0,!0):e.createCommentVNode("",!0),g.type==="mixin"?e.renderSlot(B.$slots,g.key,{key:1,formData:t.formData,item:g},void 0,!0):e.createCommentVNode("",!0),g.type==="input"?(e.openBlock(),e.createBlock(e.unref(E.Input),e.mergeProps({key:2,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="select"?(e.openBlock(),e.createBlock(e.unref(E.Select),e.mergeProps({key:3,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(x,P)=>(e.openBlock(),e.createBlock(e.unref(E.SelectOption),{key:P,value:x.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(E.CheckboxGroup),e.mergeProps({key:4,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(x,P)=>(e.openBlock(),e.createBlock(e.unref(E.Checkbox),{key:P,value:x.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(E.DatePicker),e.mergeProps({key:5,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(E.InputNumber),e.mergeProps({key:6,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="radio"?(e.openBlock(),e.createBlock(e.unref(E.RadioGroup),e.mergeProps({key:7,value:t.formData[g.key],"onUpdate:value":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,(x,P)=>(e.openBlock(),e.createBlock(e.unref(E.Radio),{key:P,value:x.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),g.type==="switch"?(e.openBlock(),e.createBlock(e.unref(E.Switch),e.mergeProps({key:8,checked:t.formData[g.key],"onUpdate:checked":x=>t.formData[g.key]=x},{ref_for:!0},g.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[g.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label)+" ",1),e.createVNode(e.unref(E.Tooltip),{title:g.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",xt,[e.createVNode(q,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Z.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(q,{type:"link",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(Y,{key:0,title:B.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...I[0]||(I[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(Q,{key:0},{overlay:e.withCtx(()=>[e.createVNode(v,{onClick:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,g=>(e.openBlock(),e.createBlock(X,{key:g.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128)),e.createVNode(X,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",Bt,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(X,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",Nt,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(Y,{title:B.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...I[1]||(I[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("footer__left"))},[e.renderSlot(B.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("footer__right"))},[m.value=="show"?e.renderSlot(B.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[e.createVNode(q,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Z.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(q,{type:"link",onClick:L,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(Y,{key:0,title:B.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...I[2]||(I[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(Q,{key:0},{overlay:e.withCtx(()=>[e.createVNode(v,{onClick:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,g=>(e.openBlock(),e.createBlock(X,{key:g.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128)),e.createVNode(X,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",Tt,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(X,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",Et,e.toDisplayString(B.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(Y,{title:B.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...I[3]||(I[3]=[e.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)],!0):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(ee,{showNumber:i.value,list:f.value,ref_key:"HbSfCmRef",ref:_,onConfirm:y,saveKey:h.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),Ft={class:"hb-lib-list-page-act-box"},Vt={class:"hb-lib-list-page-breadcrumb"},$t={class:"hb-lib-list-page-act"},Ht={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},It={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},$e=z(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:a,toggle:d}=re.useFullscreen(document.body);e.watch(()=>a.value,n=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const m=new Map;setTimeout(n?()=>{if(i?.length)for(let C=0;C<i.length;C++){const f=document.querySelector(i[C]);f&&(m.set(i[C],f.style.display),f.style.display="none")}}:()=>{if(i?.length)for(let C=0;C<i.length;C++){const f=document.querySelector(i[C]);if(f){const T=m.get(i[C]);f.style.display=T||"",m.delete(i[C])}}},0)});const r=e.ref(""),c=()=>{const n=we.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",m=n?.path;if(i!=="[]"){let C=JSON.parse(i).find(f=>f.value===m);C&&(r.value=C.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const s=n=>{n.keyCode===192&&d()};return e.onMounted(()=>{window.addEventListener("keydown",s)}),e.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(n,i)=>{const m=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Ft,[e.createElementVNode("aside",Vt,e.toDisplayString(r.value),1),e.createElementVNode("aside",$t,[e.createVNode(m,{title:e.unref(a)?`${n.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${n.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...C)=>e.unref(d)&&e.unref(d)(...C))},[e.unref(a)?(e.openBlock(),e.createElementBlock("svg",It,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Ht,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(n.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Dt={class:"hb-lib-list-btns-box"},Mt={class:"hb-lib-list-btns-left"},At={class:"hb-lib-list-btns-right"},He=z(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,a=e.ref(!0),d=()=>{a.value=!a.value,o("handleOpenOrClose",a.value)},r=()=>{o("handleReload")},c=s=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(s,n)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Dt,[e.createElementVNode("aside",Mt,[e.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",At,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:r},[...n[0]||(n[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:a.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:d},[a.value?(e.openBlock(),e.createBlock(e.unref(Z.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Z.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Ie=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:a=300,timeOut:d=100}=t,r=e.ref(0);let c=null,s=null,n=null,i=null,m=null;const C=()=>{m&&clearTimeout(m),m=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const p=document.querySelector(".ant-table"),u=document.querySelector(".ant-pagination");if(p){const L=Math.floor(p.getBoundingClientRect().top),_=window.innerHeight,b=(u?u.offsetHeight+20:40)+o;let y=_-L-b;y<a&&(y=a),r.value=y}})})},100)},f=()=>{const p=document.querySelector(".ant-pagination");if(p){const u=new MutationObserver(()=>{C()});return u.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),u}return null},T=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(L=>{L.style.display="none"}),C()}),c.observe(p))},S=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(n=new MutationObserver(()=>{setTimeout(()=>{C()},d)}),n.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},H=()=>{i&&clearTimeout(i),i=setTimeout(()=>{C()},d)},N=()=>{window.addEventListener("resize",H),e.nextTick(()=>{T(),S(),s=f()})},h=()=>{window.removeEventListener("resize",H),c&&c.disconnect(),n&&n.disconnect(),s&&s.disconnect(),i&&clearTimeout(i),m&&clearTimeout(m)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{C()},200)},{deep:!0}),e.onMounted(()=>{C(),N()}),e.onUnmounted(()=>{h()}),{tableHeight:r,calTableHeight:C}},De=z(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=re.useFullscreen(document.body),a=t,d=e.useTemplateRef("PageContainerRef"),r=e.computed(()=>a.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>a.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),s=e.computed(()=>a.minHeight||l.HbLibListPageContainer?.minHeight||300),n=e.computed(()=>a.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>a.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(a.isUnFixTbHeight);const{calTableHeight:m,tableHeight:C}=Ie({offsetBottom:c.value,minHeight:s.value,timeOut:n.value}),f=e.computed(()=>C.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:d,tableHeight:C,calTableHeight:m}),(T,S)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:d},[e.renderSlot(T.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?f.value-r.value+"px":f.value-c.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(o)?f.value-r.value+"px":f.value-c.value+"px"})},[e.renderSlot(T.$slots,"default")],4)],512))}})),Ot={style:{"font-weight":"500"}},Pt={key:0,class:"hb-lib-search-tag__description"},zt={class:"hb-lib-selector-dropdown"},Ut={class:"hb-lib-selector-search"},Rt={class:"hb-lib-selector-list"},jt=["onClick"],Wt={class:"hb-lib-option-content"},qt={class:"hb-lib-option-label"},Yt={key:0,class:"hb-lib-selector-empty"},Kt={key:1,class:"hb-lib-selector-footer"},Gt={class:"hb-lib-footer-buttons"},Jt={key:2,class:"hb-lib-selector-footer"},Xt={class:"hb-lib-footer-buttons"},Me=z(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,a=l,d=e.useModel(t,"value"),r=e.ref(!1),c=e.ref(""),s=e.ref([]),n=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!c.value)return o.options;const _=c.value.toLowerCase();return o.options.filter(k=>k.label.toLowerCase().includes(_)||k.description?.toLowerCase().includes(_))}),m=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),C=e.computed(()=>i.value.length===0?!1:i.value.every(_=>s.value.includes(_.value))),f=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(k=>s.value.includes(k.value)).length;return _>0&&_<i.value.length});e.watch(()=>d.value,_=>{_?s.value=Array.isArray(_)?[..._]:[_]:s.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,_=>{o.remoteSearch&&_!==void 0&&(c.value=_)},{immediate:!0});const T=_=>{_&&(r.value=_,S.value=[...s.value],c.value="",setTimeout(()=>{if(n.value){const k=n.value.input||n.value.$el?.querySelector("input");k&&k.focus()}},100))},S=e.ref([]),H=()=>{s.value=[...S.value],r.value=!1,a("cancel")},N=e.ref([]),h=()=>{const _=o.multiple?s.value:s.value[0]||"",k=o.options.filter(b=>s.value.includes(b.value));N.value=k,console.log(_,k),S.value=[...s.value],d.value=_,a("update:value",_),a("change",_,k),a("confirm",_,k),r.value=!1},p=re.useDebounceFn(_=>{const k=_!==void 0?_:c.value;o.remoteSearch&&(a("search",k),a("update:searchValue",k))},300),u=_=>{if(o.multiple){const k=new Set(s.value);k.has(_.value)?k.delete(_.value):k.add(_.value),s.value=Array.from(k)}else s.value=[_.value],h()},L=_=>{if(_.target.checked){const b=new Set(s.value);i.value.forEach(y=>{b.add(y.value)}),s.value=Array.from(b)}else{const b=new Set(i.value.map(y=>y.value));s.value=s.value.filter(y=>!b.has(y))}};return(_,k)=>{const b=e.resolveComponent("a-tag"),y=e.resolveComponent("a-input"),w=e.resolveComponent("a-checkbox"),V=e.resolveComponent("a-radio"),O=e.resolveComponent("a-button"),R=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":m.value}},_.$attrs),[e.createVNode(R,{value:d.value,"onUpdate:value":k[5]||(k[5]=B=>d.value=B),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:r.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:T,onSearch:e.unref(p),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:B,label:I,closable:q,option:Y})=>[e.createVNode(b,{class:"hb-lib-search-tag",onClick:k[0]||(k[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ot,e.toDisplayString(I),1),Y?.description?(e.openBlock(),e.createElementBlock("span",Pt," ("+e.toDisplayString(Y.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:B})=>[e.createElementVNode("div",zt,[e.createElementVNode("div",Ut,[e.createVNode(y,{ref_key:"searchInputRef",ref:n,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":k[1]||(k[1]=I=>c.value=I),placeholder:"请输入关键词搜索","allow-clear":"",onInput:k[2]||(k[2]=I=>e.unref(p)(I.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Z.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,I=>(e.openBlock(),e.createElementBlock("div",{key:I.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(I.value)}]),onClick:()=>u(I)},[t.multiple?(e.openBlock(),e.createBlock(w,{key:0,checked:s.value.includes(I.value),onChange:()=>u(I),onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(V,{key:1,checked:s.value.includes(I.value),onChange:()=>u(I),onClick:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Wt,[e.createElementVNode("div",qt,e.toDisplayString(I.label),1)])],10,jt))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",Yt,e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Kt,[e.createVNode(w,{checked:C.value,indeterminate:f.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Gt,[e.createVNode(O,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(O,{type:"primary",size:"small",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Jt,[k[6]||(k[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Xt,[e.createVNode(O,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),Qt={class:"hb-lib-form-item-filter-modal-search"},Zt={class:"hb-lib-form-item-filter-modal-buttons"},vt={key:0},Ae=z(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:l,emit:o}){const a=t,d=o,r=e.ref(!1),c=e.ref(""),s=e.ref(),n=e.ref(),i=e.ref([]),m=e.ref([]),C=e.ref(),f=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>a.tableData.map(b=>(b.id=b.id||Math.random(),b))),S=e.computed(()=>a.tableColumn.map(b=>(b.customFilterDropdown&&(b.onFilter=(y,w)=>w[b.dataIndex].toString().toLowerCase().includes(y.toLowerCase()),b.onFilterDropdownVisibleChange=y=>{y&&setTimeout(()=>{s.value?.focus()},100)}),{...b}))),H=()=>{let b="";m.value.forEach(y=>{b=b+y[a.labelKey]+","}),c.value=b.substring(0,b.length-1),r.value=!1,d("handleConfirm",m.value)},N=()=>{r.value=!1},h=()=>{r.value=!0,e.nextTick(()=>{const b=C.value?.$el?.querySelector(".ant-table-body");b&&(b.scrollTop=0)})},p=()=>{i.value=[],m.value=[]},u=()=>{c.value="",p()},L=(b,y,w)=>{y(),f.searchText=b[0],f.searchedColumn=w},_=(b,y)=>{b({confirm:!0}),f.searchText="",y()},k=(b,y)=>{i.value=b,m.value=y};return l({resetInputVal:u}),(b,y)=>{const w=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),O=e.resolveComponent("a-table"),R=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:n},[e.createVNode(w,{readonly:"",onClick:h,value:c.value,"onUpdate:value":y[0]||(y[0]=B=>c.value=B),placeholder:b.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Z.UnorderedListOutlined),{onClick:h})]),_:1},8,["value","placeholder"]),e.createVNode(R,{visible:r.value,"onUpdate:visible":y[1]||(y[1]=B=>r.value=B),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(V,{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(V,{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(V,{type:"primary",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{ref_key:"tableRef",ref:C,columns:S.value,dataSource:T.value,rowSelection:{selectedRowKeys:i.value,onChange:k},rowKey:B=>B[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:B,selectedKeys:I,confirm:q,clearFilters:Y,column:X})=>[e.createElementVNode("div",Qt,[e.createVNode(w,{ref_key:"searchInput",ref:s,placeholder:`请输入${X.title}`,value:I[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:v=>B(v.target.value?[v.target.value]:[]),onPressEnter:v=>L(I,q,X.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Zt,[e.createVNode(V,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:v=>_(Y,q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(V,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:v=>L(I,q,X.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:B})=>[e.createVNode(e.unref(Z.SearchOutlined),{style:e.normalizeStyle({color:B?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:B,column:I})=>[f.searchText&&f.searchedColumn===I.dataIndex?(e.openBlock(),e.createElementBlock("span",vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`,"i")),(q,Y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[q.toLowerCase()===f.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:Y,class:"highlight"},e.toDisplayString(q),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(q),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),eo={class:"hb-lib-table-act-box"},to=["onClick"],oo={href:"javascript:;",class:"hb-lib-table-main-action"},lo=["onClick"],no={href:"javascript:;",class:"hb-lib-table-more-action"},ao=["onClick"],io={href:"javascript:;"},ro=["onClick"],so={class:"hb-lib-table-confirm-modal-content"},Oe=z(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:a}=te.useI18n(),d=e.ref(!1),r=e.ref(!1),c=e.ref(null),s=e.computed(()=>o.actions.filter(N=>N.condition!==void 0?N.condition:!0)),n=e.computed(()=>s.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>m(s.value.slice(o.buttonDisplaysQuantity)));function m(N){if(o.filterPermission)return o.filterPermission(N);let h=[],p=[];return h=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(h)||N.length===0?(h=[],[]):(h=h.filter(u=>u.type!="2"),N.forEach(u=>{(!u.permissionsTag||h.findIndex(L=>L.action===u.permissionsTag)!==-1)&&p.push(u)}),p)}const C=N=>{N.handler&&N.handler(o.record)},f=N=>{c.value=N,d.value=!0},T=()=>{if(c.value){r.value=!0;try{C(c.value),r.value=!1,d.value=!1}catch{r.value=!1}}},S=()=>{d.value=!1,c.value=null},H=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:a("hbLibComp.hbTableAct.secendConfirm"),content:a("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:E.Dropdown,AMenu:E.Menu,AMenuItem:E.MenuItem,APopconfirm:E.Popconfirm,AModal:E.Modal,DownOutlined:Z.DownOutlined}),(N,h)=>{const p=e.resolveComponent("a-divider"),u=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(L,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[L.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>f(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,to)),[[u,L.permissionsTag||null]]),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(E.Popconfirm),{title:L.confirmTitle,onConfirm:k=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",oo,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[u,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):L.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(N.$slots,L.slot,{item:L},void 0,!0),i.value&&i.value.length>0||_!==n.value.length-1?(e.openBlock(),e.createBlock(p,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>C(L),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(L.label),1)],8,lo)),[[u,L.permissionsTag||null]]),i.value&&i.value.length>0||_!==n.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(p,{key:0,type:"vertical"},null,512)),[[u,L.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(E.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(E.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(L,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(E.MenuItem),{key:_},{default:e.withCtx(()=>[L.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:k=>f(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,ao)),[[u,L.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(E.Popconfirm),{key:1,title:L.confirmTitle,onConfirm:k=>C(L)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",io,[e.createTextVNode(e.toDisplayString(L.label),1)])),[[u,L.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[u,L.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:k=>C(L)},[e.createTextVNode(e.toDisplayString(L.label),1)],8,ro)),[[u,L.permissionsTag||null]])]),_:2},1024)),[[u,L.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",no,[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Z.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(E.Modal),{visible:d.value,title:H.value.title,"confirm-loading":r.value,onOk:T,onCancel:S},{default:e.withCtx(()=>[e.createElementVNode("p",so,e.toDisplayString(H.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Se=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(a=>a.width&&Number(a.width.toString().replace("px",""))||0).reduce((a,d)=>a+d,0)})});var co=typeof global=="object"&&global&&global.Object===Object&&global,mo=typeof self=="object"&&self&&self.Object===Object&&self,Pe=co||mo||Function("return this")(),Ce=Pe.Symbol,ze=Object.prototype,po=ze.hasOwnProperty,fo=ze.toString,be=Ce?Ce.toStringTag:void 0;function ho(t){var l=po.call(t,be),o=t[be];try{t[be]=void 0;var a=!0}catch{}var d=fo.call(t);return a&&(l?t[be]=o:delete t[be]),d}var bo=Object.prototype,go=bo.toString;function uo(t){return go.call(t)}var yo="[object Null]",Co="[object Undefined]",Ue=Ce?Ce.toStringTag:void 0;function ko(t){return t==null?t===void 0?Co:yo:Ue&&Ue in Object(t)?ho(t):uo(t)}function _o(t){return t!=null&&typeof t=="object"}var wo="[object Symbol]";function Lo(t){return typeof t=="symbol"||_o(t)&&ko(t)==wo}var So=/\s/;function xo(t){for(var l=t.length;l--&&So.test(t.charAt(l)););return l}var Bo=/^\s+/;function No(t){return t&&t.slice(0,xo(t)+1).replace(Bo,"")}function xe(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Re=NaN,To=/^[-+]0x[0-9a-f]+$/i,Eo=/^0b[01]+$/i,Fo=/^0o[0-7]+$/i,Vo=parseInt;function je(t){if(typeof t=="number")return t;if(Lo(t))return Re;if(xe(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=xe(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=No(t);var o=Eo.test(t);return o||Fo.test(t)?Vo(t.slice(2),o?2:8):To.test(t)?Re:+t}var Be=function(){return Pe.Date.now()},$o="Expected a function",Ho=Math.max,Io=Math.min;function We(t,l,o){var a,d,r,c,s,n,i=0,m=!1,C=!1,f=!0;if(typeof t!="function")throw new TypeError($o);l=je(l)||0,xe(o)&&(m=!!o.leading,C="maxWait"in o,r=C?Ho(je(o.maxWait)||0,l):r,f="trailing"in o?!!o.trailing:f);function T(k){var b=a,y=d;return a=d=void 0,i=k,c=t.apply(y,b),c}function S(k){return i=k,s=setTimeout(h,l),m?T(k):c}function H(k){var b=k-n,y=k-i,w=l-b;return C?Io(w,r-y):w}function N(k){var b=k-n,y=k-i;return n===void 0||b>=l||b<0||C&&y>=r}function h(){var k=Be();if(N(k))return p(k);s=setTimeout(h,H(k))}function p(k){return s=void 0,f&&a?T(k):(a=d=void 0,c)}function u(){s!==void 0&&clearTimeout(s),i=0,a=n=d=s=void 0}function L(){return s===void 0?c:p(Be())}function _(){var k=Be(),b=N(k);if(a=arguments,d=this,n=k,b){if(s===void 0)return S(n);if(C)return clearTimeout(s),s=setTimeout(h,l),T(n)}return s===void 0&&(s=setTimeout(h,l)),c}return _.cancel=u,_.flush=L,_}const Do={key:0,class:"hb-lib-list-table-act"},Mo={class:"empty-container"},Ao={key:1},Oo={key:2},qe=z(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),a=l,{t:d}=te.useI18n(),r=t,c=e.ref([]),s=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:n}=Se(c),i=e.ref(n.value),m=e.computed(()=>r.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>r.columns,h=>{const p=h.filter(L=>L!=null&&L.checked);c.value=p.map(L=>{let _={...L,title:L.title||L.label,align:L.align||o.listTable?.align||"center"};_.ellipsis&&!_.needTooltip&&(_.needTooltip=!0);let k=r.defaultWidth||o.listTable?.defaultColWidth||150;if(!_.width)_.width=k;else if(typeof _.width=="string"){const b=parseInt(_.width,10);_.width=isNaN(b)?k:b}return _.resizable===void 0&&(_.resizable=!0),_});const{tableWidth:u}=Se(c);i.value=u.value},{immediate:!0,deep:!0});const C=We(()=>{a("resizeCol",c)},o.listTable?.colSaveTimeOut||800),f=(h,p)=>{if(p){const u=typeof h=="string"?parseInt(h,10):h;p.width=isNaN(u)?o.listTable?.defaultColWidth||150:u,e.nextTick(()=>{C()})}},T=(h,p,u)=>{h?.current&&a("change",h,p,u)},S=(h,p="YYYY-MM-DD HH:mm:ss")=>h?ye(h).format(p):"",H=(h,p)=>h&&p[h]||"",N=(h,p=o.listTable?.ellipsisNumber||20)=>h?h.length>p?`${h.substring(0,p)}...`:h:"";return(h,p)=>{const u=e.resolveComponent("a-empty"),L=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-tag"),b=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[h.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Do,[e.renderSlot(h.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(h.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(b,e.mergeProps(h.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:f,onChange:T,scroll:m.value?{x:i.value}:{x:i.value,y:e.unref(s).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",Mo,[e.createVNode(u,{description:e.unref(d)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[h.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"headerCell",{column:y,title:y.title},()=>[e.createTextVNode(e.toDisplayString(y.title),1)],!0)]),key:"0"}:void 0,h.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:y,record:w,index:V,text:O})=>[e.renderSlot(h.$slots,"bodyCell",{column:y,record:w,index:V,text:O},void 0,!0),y&&y.needTooltip&&!y.needCopy?(e.openBlock(),e.createBlock(L,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w[y.dataIndex]),1)]),_:2},1032,["placement"])):y&&y.needCopy&&!y.needTooltip?(e.openBlock(),e.createElementBlock("div",Ao,[e.createTextVNode(e.toDisplayString(w[y.dataIndex])+" ",1),e.createVNode(_,{"cp-text":w[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),y&&y.needTooltip&&y.needCopy?(e.openBlock(),e.createElementBlock("div",Oo,[e.createVNode(L,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N(w[y.dataIndex],y.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(_,{"cp-text":w[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):y&&y.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(S(w[y.dataIndex],y.format)),1)],64)):y&&y.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[H(w[y.dataIndex],y.tags)?(e.openBlock(),e.createBlock(k,{key:0,color:H(w[y.dataIndex],y.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w[y.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,h.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:y,index:w})=>[e.renderSlot(h.$slots,"expandedRowRender",{record:y,index:w},void 0,!0)]),key:"2"}:void 0,h.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"customFilterDropdown",{column:y},void 0,!0)]),key:"3"}:void 0,h.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:y})=>[e.renderSlot(h.$slots,"customFilterIcon",{column:y},void 0,!0)]),key:"4"}:void 0,h.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:y,record:w,index:V})=>[e.renderSlot(h.$slots,"expandIcon",{expanded:y,record:w,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"]])),Po={class:"hb-lib-table-setting-box"},zo={key:0,class:"hb-lib-table-drag-item"},Uo={key:0,class:"hb-lib-table-drag-item-act"},Ro=["onClick"],jo=["onClick"],Wo={class:"hb-lib-table-set-btn-group"},qo={class:"select-all-container",style:{"margin-right":"10px"}},Ye=z(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:a}=te.useI18n(),d=t,r=e.ref([]),c=e.computed(()=>n.value.filter(k=>k.checked));e.ref([]);const s=e.ref(!1),n=e.ref([]),i=e.ref(null),m=e.computed(()=>c.value.length>0&&c.value.length===r.value.length),C=e.computed(()=>c.value.length>0&&c.value.length<r.value.length),f=k=>{i.value=k.oldIndex},T=k=>{const b=k.newIndex;if(r.value.some(w=>w.fixed==="left"||w.fixed==="right"||w.fixed===!0)){const w=r.value.filter(O=>O.fixed==="left").length,V=r.value.length-r.value.filter(O=>O.fixed==="right").length;if((w>0&&b<w||V<r.value.length&&b>=V)&&(E.message.warning(a("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const O=n.value.splice(b,1)[0];n.value.splice(i.value,0,O)}}i.value=null},S=k=>{k.target.checked?n.value.forEach(y=>y.checked=!0):n.value.forEach(y=>{y.dataIndex!=="action"&&y.dataIndex!=="actions"&&(y.checked=!1)})},H=()=>{r.value=d.localColumns.map(b=>({...b,label:b.title&&b.title.tag?u(b.title):b.title||b.title2,value:b.dataIndex,checked:b.checked||b.checked===void 0})),n.value=[...r.value];let k=[];d.tableColumns.forEach(function(b){k.push(b.dataIndex)})},N=(k,b)=>{b?k.checked=!0:k.checked=!1},h=()=>{r.value=[...n.value],o("on-get-columns",r.value),s.value=!1},p=()=>{r.value=d.tableColumns.map(b=>({...b,label:b.title&&b.title.tag?u(b.title):b.title||b.title2,value:b.dataIndex,checked:b.checked||b.checked===void 0})),n.value=[...r.value];let k=[];d.tableColumns.forEach(function(b){k.push(b.dataIndex)})},u=k=>k.children[0].text,L=k=>{delete k.fixed;const b=n.value.findIndex(y=>y.value===k.value);if(b!==-1){let y=-1;for(let w=0;w<n.value.length;w++)n.value[w].fixed==="left"&&(y=w);if(y!==-1&&b!==y+1){const w=[...n.value],[V]=w.splice(b,1);w.splice(y+1,0,V),n.value=w}}},_=k=>{const b=n.value.findIndex(y=>y.value===k.value);if(b!==-1){let y=-1;for(let R=0;R<n.value.length;R++)n.value[R].fixed==="left"&&(y=R);const w=[...n.value],[V]=w.splice(b,1);V.fixed="left";const O=y===-1?0:y+1;w.splice(O,0,V),n.value=w}};return e.watch(()=>d.tableColumns,()=>{p()},{immediate:!0,deep:!0}),(k,b)=>{const y=e.resolveComponent("a-tooltip"),w=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",Po,[e.createVNode(e.unref(E.Popover),{title:e.unref(a)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:s.value,"onUpdate:visible":b[1]||(b[1]=V=>s.value=V)},{content:e.withCtx(()=>[e.createVNode(e.unref(ue),{modelValue:n.value,"onUpdate:modelValue":b[0]||(b[0]=V=>n.value=V),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:f,onEnd:T},{item:e.withCtx(({element:V})=>[V.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",zo,[e.createVNode(e.unref(E.Checkbox),{checked:V.checked,onChange:O=>N(V,O.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["checked","onChange"]),V.checked?(e.openBlock(),e.createElementBlock("section",Uo,[e.createElementVNode("span",{class:e.normalizeClass(V.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),V.fixed?(e.openBlock(),e.createBlock(y,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:O=>L(V)},[...b[2]||(b[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Ro)]),_:2},1024)):e.createCommentVNode("",!0),V.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:O=>_(V)},[...b[3]||(b[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,jo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Wo,[e.createElementVNode("div",qo,[e.createVNode(e.unref(E.Checkbox),{checked:m.value,indeterminate:C.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),d.localColumns.length?(e.openBlock(),e.createBlock(w,{key:0,style:{"margin-right":"6px"},onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(w,{onClick:h,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(y,{title:e.unref(a)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...b[4]||(b[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-07a63550"]])),Ke=z(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,a=e.useAttrs(),d=e.computed(()=>{const S=a,H=S.dropdownClassName;return{...S,dropdownClassName:H??"hb_lib_form_tooltip_select__dropdown"}}),r=e.ref(),c=e.useModel(t,"value"),s=e.computed(()=>o.options??[]),n=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=S=>S.tooltip??S.label,m=S=>S.key??S.label,C=S=>!!(o.enableTooltip&&i(S));return l({focus:()=>{r.value?.focus?.()},blur:()=>{r.value?.blur?.()},selectRef:r}),(S,H)=>(e.openBlock(),e.createBlock(e.unref(E.Select),e.mergeProps({ref_key:"selectRef",ref:r},d.value,{value:c.value,"onUpdate:value":H[0]||(H[0]=N=>c.value=N),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[S.$slots.default?e.renderSlot(S.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(s.value,N=>(e.openBlock(),e.createBlock(e.unref(E.SelectOption),e.mergeProps({key:m(N),value:N.value,disabled:N.disabled},{ref_for:!0},N.optionProps),{default:e.withCtx(()=>[C(N)?(e.openBlock(),e.createBlock(e.unref(E.Tooltip),{key:0,title:i(N),placement:o.tooltipPlacement,"overlay-style":n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(N.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(N.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Yo={class:"ant-upload-drag-icon"},Ko={class:"ant-upload-text"},Go={style:{color:"#ff5000"}},Jo={class:"ant-upload-hint"},Xo={key:0,class:"hb_import_btn"},Qo=["href"],Ge=z(U(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:l}){const{t:o}=te.useI18n(),a=e.ref(),d=t,r=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),s=f=>{if(f==null)return;const T=c.fileList.indexOf(f);if(T!==-1){const S=c.fileList.slice();S.splice(T,1),c.fileList=S}},n=()=>{c.visible=!1,c.fileList=[],r.value=!1},i=f=>(c.fileList=[f],d.beforeUpload?d.beforeUpload(f.originFileObj):!1),m=()=>{a.value.validateFields().then(()=>{d.beforeSubmit&&(r.value=!0,d.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{r.value=!1}))})},C=()=>{c.visible=!0};return l({handleCancel:n,openModal:C,confirmLoading:r}),(f,T)=>{const S=e.resolveComponent("a-upload-dragger"),H=e.resolveComponent("a-form-item"),N=e.resolveComponent("a-form"),h=e.resolveComponent("a-modal"),p=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,e.mergeProps({visible:c.visible,"onUpdate:visible":T[0]||(T[0]=u=>c.visible=u),title:d.title,"confirm-loading":r.value},f.$attrs,{width:d.modalWidth,onCancel:n,onOk:m}),{default:e.withCtx(()=>[e.createVNode(N,{ref_key:"modalFormRef",ref:a,model:c},{default:e.withCtx(()=>[e.createVNode(H,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:d.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(S,{"max-count":d.maxCount,multiple:d.multiple,accept:d.acceptFile,name:"file","file-list":c.fileList,"before-upload":i,onRemove:s},{default:e.withCtx(()=>[e.createElementVNode("p",Yo,[e.createVNode(e.unref(Z.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Ko,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Go,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Jo,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(d.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),d.templateUrl?(e.openBlock(),e.createElementBlock("p",Xo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:d.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,Qo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(f.$slots,"btn",{},()=>[e.createVNode(p,{type:"primary",onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Zo={class:"hb_lib_log_modal_content"},vo={class:"log_remark"},Je=z(U(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:l,emit:o}){const{t:a}=te.useI18n(),d=e.useSlots(),r=t,c=[{title:a("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:a("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:a("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],s=e.computed(()=>r.columns||c),n=e.computed(()=>r.title||a("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!d.title),m=e.ref(!1),C=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,u)=>u[0]+"-"+u[1]+" 总共"+p+"页",total:0}});e.watch(()=>r.pagination,p=>{p&&(C.pagination={...C.pagination,...p})},{deep:!0,immediate:!0});const f=()=>{const p={pageIndex:C.pagination.current,pageSize:C.pagination.pageSize,query:r.params};r.getLogData&&(m.value=!0,r.getLogData(p).then(u=>{Number(u.code)==200?(C.pagination.total=Number(u.data.total),C.list=u.data[r.dataStr]||[]):E.message.error(u.message)}).finally(()=>{m.value=!1}))},T=p=>{C.pagination.current=p.current,C.pagination.pageSize=p.pageSize,f()},S=()=>{C.list=[],h("update:visible",!1)},H=()=>{h("update:visible",!0)},N=(p,u="YYYY-MM-DD HH:mm:ss")=>p?ye(p).format(u):"",h=o;return e.watch(()=>r.visible,p=>{p&&f()}),l({close:S,loading:m}),(p,u)=>{const L=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-table"),b=e.resolveComponent("a-button"),y=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,e.mergeProps(p.$attrs,{visible:t.visible,title:i.value?void 0:n.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:S}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(b,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Zo,[e.createVNode(k,{bordered:"",rowKey:"id",columns:s.value,dataSource:C.list,pagination:C.pagination,loading:m.value,scroll:{y:t.scrollY},onChange:T},e.createSlots({bodyCell:e.withCtx(({column:w,record:V})=>[w&&w.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.needTooltip?(e.openBlock(),e.createBlock(L,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V[w.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(V[w.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),w&&w.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",vo,e.toDisplayString(V[w.dataIndex]),1),e.createVNode(_,{"cp-text":V[w.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),w&&w.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(N(V[w.dataIndex],w.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:w})=>[e.renderSlot(p.$slots,"headerCell",{column:w},()=>[e.createTextVNode(e.toDisplayString(w.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(p.$slots,"default",{key:0},()=>[e.createVNode(b,{onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),el={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},tl={class:"hb_ui_config"},ol=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,a=>{o=e.reactive(ie.merge({},el,a))},{deep:!0,immediate:!0}),e.provide(Ne,o),(a,d)=>(e.openBlock(),e.createElementBlock("div",tl,[e.renderSlot(a.$slots,"default")]))}}),Ne=Symbol("GLOBAL_CONFIG_KEY"),Xe=z(ol),ll={class:"hb_card"},nl={key:0,class:"hb_card_header"},al={class:"hb_fix"},il={class:"hb_card_header-title"},rl={class:"hb_card_header-action"},sl={class:"hb_card_body"},Qe=z(U(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(Ne),o=t,a=e.computed(()=>{let d=o.formItemMb||l?.HbLibCard?.formItemMb;return d?{"--hb-card-form-item-mb":d+"px"}:{}});return(d,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},d.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",ll,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("div",al,[e.createElementVNode("span",il,[e.renderSlot(d.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",rl,[e.renderSlot(d.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",sl,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(a.value)},[e.renderSlot(d.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),cl=["onClick"],dl={class:"step"},ml={key:0,class:"line"},pl=["title"],Ze=z(U(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),a=l.offsetTop??160,d=e.computed(()=>l.anchors.filter(n=>typeof n.visible=="function"?n.visible():n.visible!==!1)),r=()=>{const n=l.containerSelector||"#subpackage_container";return document.querySelector(n)||window},c=n=>{const i=r(),m=n.target.startsWith("#")||n.target.startsWith(".")?n.target:`#${n.target}`,C=document.querySelector(m);if(!C)return;let f=C.offsetTop;i instanceof HTMLElement&&(f-=i.offsetTop),f-=a,i instanceof Window?window.scrollTo({top:f,behavior:"smooth"}):i.scrollTo({top:f,behavior:"smooth"}),o.value=n.target},s=()=>{const n=r();let i=0;n instanceof Window?i=window.scrollY+a+5:i=n.scrollTop+a+5;let m=d.value[0]?.target||"";for(const C of d.value){const f=C.target.startsWith("#")||C.target.startsWith(".")?C.target:`#${C.target}`,T=document.querySelector(f);if(!T)continue;let S=T.offsetTop;n instanceof HTMLElement&&(S-=n.offsetTop),i>=S&&(m=C.target)}o.value=m};return e.onMounted(()=>{r().addEventListener("scroll",s),s()}),e.onBeforeUnmount(()=>{r().removeEventListener("scroll",s)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(a)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(m,C)=>(e.openBlock(),e.createElementBlock("div",{key:m.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===m.target}]),onClick:f=>c(m)},[e.createElementVNode("div",dl,[C!==d.value.length-1?(e.openBlock(),e.createElementBlock("div",ml)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:m.title},e.toDisplayString(m.title.length>12?m.title.slice(0,12)+"...":m.title),9,pl)],10,cl))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),fl={class:"hb_detail_top_act_left"},hl={key:1,class:"hb_detail_top_wrapper_sticky"},bl={class:"hb_detail_top_act"},gl={key:0,class:"hb_detail_all_info"},ul={class:"hb_detail_all_info_left"},yl={class:"hb_detail_info_title"},Cl={key:0,class:"hb_detail_info_content"},kl={class:"create_by"},_l={class:"hb_detail_all_info_right"},wl={class:"hb_edit_detail_content_wrapper"},Ll={class:"hb_detail_content"},Sl={class:"hb-back-top-inner"},ve=z(U(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=te.useI18n(),o=t,a=e.inject(Ne),d=()=>{o.backFn?o.backFn():window.history.back()},r=e.computed(()=>o.backTopBottom||a?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const H={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||a?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||a?.HbLibDetailBox?.descValueWidth}:H}),s=()=>document.querySelector(o.container),n=e.ref(!1),i=e.ref(null),{top:m}=re.useElementBounding(i),C=e.computed(s),{y:f}=re.useScroll(C);e.watch(f,H=>{n.value=H>m.value},{immediate:!0});const T=H=>{document.querySelectorAll(".hb_card_body").forEach(h=>{h.querySelectorAll(".ant-descriptions-item-content span").forEach(u=>{u.textContent?.trim()||(u.textContent=H)})})};let S=null;return e.onMounted(()=>{a?.HbLibDetailBox?.needSetDesDefault&&(S=setTimeout(()=>{T(a?.HbLibDetailBox?.desDefault)},a?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{S&&clearTimeout(S)}),(H,N)=>{const h=e.resolveComponent("RollbackOutlined"),p=e.resolveComponent("a-divider"),u=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(u,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",c.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":c.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":c.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",n.value?"can_show":""])},[e.createElementVNode("div",fl,[e.createVNode(h,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:d},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(p,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),N[0]||(N[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",bl,[e.createVNode(h),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:d},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(p,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("aside",ul,[e.renderSlot(H.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",yl,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",Cl,[e.createElementVNode("span",kl,e.toDisplayString(t.totalInfo.totalInfoSubTitle1)+e.toDisplayString(t.totalInfo.totalInfoSubVal1),1),e.createElementVNode("span",null,e.toDisplayString(t.totalInfo.totalInfoSubTitle2)+e.toDisplayString(t.totalInfo.totalInfoSubVal2),1)])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("aside",_l,[e.renderSlot(H.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",wl,[e.createElementVNode("div",Ll,[e.renderSlot(H.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(E.BackTop),{target:s,style:e.normalizeStyle({bottom:r.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",Sl,[e.createVNode(e.unref(Z.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),et=z(U(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(n,i=300)=>We(n,i),a=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),d=e.ref(0),r=n=>{let i=0;return(Array.isArray(n)?n:[n]).forEach(C=>{let f=[];if(C.startsWith("#")){const T=document.getElementById(C.slice(1));T&&f.push(T)}else f=Array.from(document.getElementsByClassName(C));f.forEach(T=>{i+=T.offsetWidth||0})}),i},c=()=>{l.leftElements&&(d.value=r(l.leftElements)+1)};let s=null;return e.onMounted(()=>{const n=l.getContainer();n!==window&&n instanceof HTMLElement&&n.addEventListener("scroll",()=>{}),c(),s=new MutationObserver(()=>{c()});const i=document.body;s.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{s&&s.disconnect()}),(n,i)=>{const m=e.resolveComponent("a-button"),C=e.resolveComponent("a-space"),f=e.resolveComponent("a-affix"),T=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":d.value+"px"})},[e.createVNode(f,{"offset-bottom":0,target:t.getContainer,style:{width:"100%"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:t.placeLeft,page_footer_btn_right:t.placeRight})},[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,S=>e.withDirectives((e.openBlock(),e.createBlock(m,{key:S.key,type:S.type||"default",danger:S.danger,loading:S.loading,disabled:S.disabled,onClick:S.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[T,S.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),xl={class:"modal__detail-content"},tt=z(U(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:l,emit:o}){const a=o,d=t,r=e.computed({get:()=>d.visible,set:V=>a("update:visible",V)}),c=e.ref(null),s=e.computed(()=>({top:"10px",...d.modalStyle})),n=e.computed(()=>({overflow:"hidden",...d.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...d.bodyStyle})),{x:m,y:C,isDragging:f}=re.useDraggable(c),T=e.ref(0),S=e.ref(0),H=e.ref(!1),N=e.ref(0),h=e.ref(0),p=e.ref(0),u=e.ref(0),L=e.ref({left:0,right:0,top:0,bottom:0});let _=null;const k=()=>{N.value=0,h.value=0,p.value=0,u.value=0,H.value=!1};e.watch(r,V=>{V?setTimeout(()=>{k()},50):(_&&clearTimeout(_),_=setTimeout(()=>{N.value=0,h.value=0,p.value=0,u.value=0},300))}),e.watch([m,C],()=>{if(!H.value){T.value=m.value,S.value=C.value;const V=document.body.getBoundingClientRect(),O=c.value.getBoundingClientRect();L.value.right=V.width-O.width,L.value.bottom=V.height-O.height,p.value=N.value,u.value=h.value}H.value=!0}),e.watch(f,()=>{f||(H.value=!1)}),e.watchEffect(()=>{H.value&&(N.value=p.value+Math.min(Math.max(L.value.left,m.value),L.value.right)-T.value,h.value=u.value+Math.min(Math.max(L.value.top,C.value),L.value.bottom)-S.value)});const b=e.computed(()=>({transform:`translate(${N.value}px, ${h.value}px)`})),y=()=>{a("cancel")},w=()=>{a("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),l({handleOk:w,handleCancel:y}),(V,O)=>{const R=e.resolveComponent("a-spin"),B=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(B,e.mergeProps({style:s.value,bodyStyle:i.value,ref:"modalRef",visible:r.value,"onUpdate:visible":O[0]||(O[0]=I=>r.value=I),"wrap-style":n.value,onOk:w,onCancel:y},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:I})=>[(e.openBlock(),e.createElementBlock("div",{key:r.value,style:e.normalizeStyle(b.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I)))],4))]),default:e.withCtx(()=>[e.createVNode(R,{spinning:d.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([t.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",t.descLabelWidth&&"hb_need_set_desc_label_width",t.descValueWidth&&"hb_need_set_desc_value_width"]),style:e.normalizeStyle({"--hb-detail-desc-label-width":t.descLabelWidth+"px","--hb-detail-desc-value-width":t.descValueWidth+"px"})},[e.createElementVNode("div",xl,[e.renderSlot(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"},Nl={class:"__detail-content"},Tl={key:1,class:"hb_edit_footer"},El={class:"hb-back-top-inner"},ot=z(U(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const l=e.ref("vertical"),o=t,a=()=>document.querySelector(o.container),d=e.inject("GLOBAL_CONFIG_KEY"),r=e.computed(()=>o.backTopBottom||d?.HbLibUnDetailBox?.backTopBottom||80);return(c,s)=>(e.openBlock(),e.createBlock(e.unref(E.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",Bl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",Nl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",Tl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(E.BackTop),{target:a,style:e.normalizeStyle({bottom:r.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",El,[e.createVNode(e.unref(Z.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Fl={class:"hb_edit_header_left"},Vl={class:"hb_edit_header_title"},$l={class:"hb_edit_header_right"},lt=z(U(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=te.useI18n(),o=t,a=we.useRoute(),d=e.ref(0),r=e.computed(()=>a?.meta?.title||"");function c(f,T="offsetHeight"){let S=0;return(Array.isArray(f)?f:[f]).forEach(N=>{let h=[];if(N.startsWith("#")){const p=document.getElementById(N.slice(1));p&&h.push(p)}else h=Array.from(document.getElementsByClassName(N));h.forEach(p=>{S+=p[T]||0})}),S}const s=()=>{o.topElements&&(d.value=c(o.topElements))},n=e.ref(0),i=()=>{o.leftElements&&(n.value=c(o.leftElements,"offsetWidth")+1)};let m=null;e.onMounted(()=>{s(),i(),window.addEventListener("resize",s),m=new MutationObserver(()=>{i()});const f=document.body;m.observe(f,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",s),m&&m.disconnect()}),e.watch(()=>o.topElements,()=>{s()},{immediate:!0});const C=()=>{o.backFn?o.backFn():window.history.back()};return(f,T)=>{const S=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:d.value+"px","--pageHeaderOrFonterLeft":n.value+"px"})},[e.createElementVNode("aside",Fl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:C},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(S,{type:"vertical"}),e.createElementVNode("span",Vl,e.toDisplayString(r.value),1)]),e.createElementVNode("aside",$l,[e.renderSlot(f.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Hl={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},Te=z(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Hl,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const a=e.computed(()=>l.tooltipTitle||"复制"),d=e.computed(()=>l.copySuccessTip||"复制成功"),r=e.computed(()=>l.copyFailTip||"复制失败"),c=e.computed(()=>{if(l.cpText)return l.cpText;let n="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(m=>m?.[l.K]===l.V);n=i?i[l.L]:""}}else l.K&&(n=l.data[l.K]);return n}),s=()=>{navigator.clipboard.writeText(c.value).then(()=>{E.message.success(d.value)}).catch(()=>{E.message.error(r.value)})};return(n,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(E.Tooltip),{key:0,title:a.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...n.cpStyle}),onClick:e.withModifiers(s,["stop","prevent"])},[...i[0]||(i[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),Il={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},nt=z(U(e.defineComponent({name:"HbDrag",__name:"index",props:Il,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,a=e.shallowRef([]);e.watch(()=>o.dragList,m=>{a.value=m},{deep:!0,immediate:!0});const d=Le("drag"),r=l,c=m=>{console.log("drag start",m),r("handleDragStart",m)},s=m=>{console.log("drag end",m),r("handleDragEnd",m)},n=m=>{console.log("drag add",m),r("handleDragAdd",m)},i=m=>{console.log("drag remove",m),r("handleDragRemove",m)};return(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d).b())},[m.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(ue),e.mergeProps({key:0,modelValue:a.value,"onUpdate:modelValue":C[0]||(C[0]=f=>a.value=f),"item-key":"key",class:{[m.dragClass]:m.dragClass}},m.$attrs,{"ghost-class":m.ghostClass,onStart:c,onEnd:s,onAdd:n,onRemove:i}),{item:e.withCtx(({element:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(ue),e.mergeProps({key:1,modelValue:a.value,"onUpdate:modelValue":C[1]||(C[1]=f=>a.value=f),"item-key":"id",class:{[m.dragClass]:m.dragClass}},m.$attrs,{"ghost-class":m.ghostClass,onStart:c,onEnd:s,onAdd:n,onRemove:i}),{item:e.withCtx(({element:f})=>[e.createElementVNode("div",null,[e.renderSlot(m.$slots,"default",{item:f},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Dl={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},at=z(U(e.defineComponent({name:"HbLibSort",__name:"sort",props:Dl,emits:["change"],setup(t,{expose:l,emit:o}){const a=t,d=o,r=e.ref([]),c=e.ref("");e.watch(()=>a.menuItems,n=>{let i=[];Array.isArray(n)&&n.length&&n.forEach(m=>{i=[...i,{label:`${m.label}升序`,value:`${m.value}`,sort:"Asc"},{label:`${m.label}降序`,value:`${m.value}`,sort:"Desc"}]}),r.value=i},{deep:!0,immediate:!0});const s=n=>{c.value=n.value+n.sort,a.getSort&&a.getSort({orderFeild:n.value,orderBy:n.sort}),d("change",c)};return l({currentActiveItem:c}),(n,i)=>{const m=e.resolveComponent("a-menu-item"),C=e.resolveComponent("a-menu"),f=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(f,{trigger:[a.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,T=>(e.openBlock(),e.createBlock(m,{key:T.value+T.sort,onClick:S=>s(T)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(c.value==T.value+T.sort?"activted":"")},e.toDisplayString(T.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(a.colText)+" ",1),e.createVNode(e.unref(Z.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Ml={class:"hb_lib_loading"},Al={class:"hb_lib_loading_loading_anima"},Ol={class:"hb_lib_loading_load_tips"},it=z(U(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=te.useI18n(),o=t,a=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(d,r)=>(e.openBlock(),e.createElementBlock("div",Ml,[e.createElementVNode("div",Al,[r[0]||(r[0]=e.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),e.createElementVNode("div",Ol,e.toDisplayString(a.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]]));function rt(t){const l=t.trim();try{return new URL(l).href}catch{const o=l.replace(/ /g,"%20");try{return new URL(o).href}catch{return o}}}function st(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function ct(t){return new Promise((l,o)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.withCredentials=st(t),a.onload=()=>{a.status>=200&&a.status<300?l(a.response):o(new Error(String(a.status)))},a.onerror=()=>o(new Error("xhr")),a.send()})}async function Pl(t){const l=rt(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return ct(l);if(typeof fetch=="function"){const a=await fetch(l,{credentials:st(l)?"include":"omit",mode:"cors"});if(!a.ok)throw new Error(String(a.status));return a.blob()}return ct(l)}function zl(t,l){const o=l.trim()||"download",a=navigator;if(typeof a.msSaveOrOpenBlob=="function"){a.msSaveOrOpenBlob(t,o);return}const d=URL.createObjectURL(t);try{const r=document.createElement("a");r.href=d,r.rel="noopener noreferrer",r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}finally{URL.revokeObjectURL(d)}}function Ul(t){const l=rt(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function ke(t,l){const o=(l||"download").trim()||"download";try{const a=await Pl(t);zl(a,o);return}catch{Ul(t)}}const Rl=768;function jl(){return typeof window>"u"?!0:window.innerWidth>=Rl}function dt(){return!jl()}const Wl=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},mt=t=>t.downloadUrl,ql=(t,l,o)=>{const a=n=>n.previewUrl,d=o?.preferredIndex;if(typeof d=="number"&&d>=0&&d<t.length){const n=t[d];if(n===l)return d;const i="uploadDate"in n&&n.uploadDate||"",m="uploadDate"in l&&l.uploadDate||"";if(a(n)===a(l)&&(n.attachmentDesc||"")===(l.attachmentDesc||"")&&i===m)return d}const r=l.attachmentId;if(r){const n=t.findIndex(i=>i.attachmentId===r);if(n>=0)return n}const c=a(l);if(c){const n=t.findIndex(i=>a(i)===c);if(n>=0)return n}const s=mt(l);if(s){const n=t.findIndex(i=>mt(i)===s);if(n>=0)return n}return t.indexOf(l)},Yl={class:"file-preview-modal-title"},Kl={key:0,class:"file-preview-modal-title__tip"},Gl={class:"file-preview-modal-body file-preview-modal-body--fill"},Jl={key:0},Xl=["src"],Ql={key:1},Zl=["src"],vl=["src"],en={key:2,class:"file-preview-modal-body__pre"},tn=["src"],on={key:0,class:"file-preview-modal-footer__nav"},ln={class:"file-preview-modal-body file-preview-modal-body--fill"},nn=["src"],an=["src"],rn={key:2,class:"file-preview-modal-body__pre"},sn=["src"],cn=["src"],dn={key:0,class:"file-preview-modal-footer__nav"},pt=z(U(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},needSafe:{type:Boolean,default:!1},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),a=new Set(["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv","txt"]),d=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),r={"application/pdf":"pdf","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","text/rtf":"rtf","text/plain":"txt","text/csv":"csv","image/jpeg":"jpg","image/jpg":"jpg","image/png":"png","image/gif":"gif","image/bmp":"bmp","image/webp":"webp","image/svg+xml":"svg","application/vnd.oasis.opendocument.text":"odt","application/vnd.oasis.opendocument.spreadsheet":"ods","application/vnd.oasis.opendocument.presentation":"odp"},c=l,s=t,n=e.ref(s.previewVisible);e.watch(()=>s.previewVisible,F=>{n.value=F});const i=e.computed(()=>s.mobile?"100%":"98%"),m=e.computed(()=>String(s.url||"").trim()),C=e.computed(()=>!!m.value),f=e.computed(()=>s.mobile?"large":"middle"),T=e.computed(()=>s.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),S=e.computed(()=>({height:s.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:s.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),H=F=>String(F||"").trim().replace(/^\./,"").toLowerCase(),N=F=>{const $=H(Wl(String(F||"")));return a.has($)||d.has($)?$:""},h=F=>{try{return decodeURIComponent(String(F||""))}catch{return String(F||"")}},p=F=>{const $=h(F).trim();if(!$)return"";const K=N($);if(K)return K;const W=$.match(/(?:\(|()\s*([a-z0-9]{2,8})\s*(?:\)|))\s*$/i),G=H(W?.[1]);return a.has(G)||d.has(G)?G:""},u=F=>{if(!F)return"";const $=F.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);if($?.[1])return h($[1]);const K=F.match(/filename\s*=\s*"?([^";]+)"?/i);return K?.[1]?h(K[1]):""},L=F=>{const $=String(F||"").trim();if(!$)return"";const K=N($);if(K)return K;try{const W=new URL($,"http://local.preview"),G=p(W.pathname.split("/").pop()||"");if(G)return G;const ce=["filename","fileName","name","file","download","attachment","attname","key","object"];for(const Ee of ce){const ge=p(W.searchParams.get(Ee)||"");if(ge)return ge}const ne=W.searchParams.get("response-content-disposition")||W.searchParams.get("content-disposition"),Ct=p(u(ne));if(Ct)return Ct;for(const Ee of W.searchParams.values()){const ge=p(Ee);if(ge)return ge}}catch{}return""},_=async F=>{const $=String(F||"").trim();if(!$)return"";try{const K=await fetch($,{method:"HEAD",credentials:"include",mode:"cors"}),W=String(K.headers.get("content-type")||"").split(";")[0].trim().toLowerCase();if(W&&r[W])return r[W];const G=u(K.headers.get("content-disposition")||"");return p(G)}catch{return""}},k=e.ref("");let b=0;e.watch(()=>`${s.fileName||""}\0${m.value}`,async()=>{const F=++b,$=p(s.fileName||""),K=L(m.value);if(k.value=$||K||"",k.value)return;const W=await _(m.value);F===b&&(k.value=H(W))},{immediate:!0});const y=e.computed(()=>H(k.value)),w=e.computed(()=>`${s.url}\0${s.fileName||""}`),V=e.computed(()=>d.has(y.value)),O=e.computed(()=>a.has(y.value)),R=e.computed(()=>{const F=m.value;if(!F)return!1;try{const{pathname:$}=new URL(F);return/\/file(?:\/|-)preview\b/i.test($)}catch{return/\/file(?:\/|-)preview\b/i.test(F)}}),B=e.getCurrentInstance(),I=e.computed(()=>{const F=B?.appContext?.components||{};return!!(F.VueFilesPreview||F.VueFilesPreview||F["vue-files-preview"])}),q=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),Y=e.computed(()=>!I.value||!m.value||R.value?!1:q.has(y.value)),X=e.computed(()=>y.value==="txt"),v=e.computed(()=>!m.value||R.value?!1:X.value),Q={idle:"idle",loading:"loading",text:"text",iframeFallback:"iframe-fallback"},ee=e.ref(Q.idle),g=e.ref("");e.watch(()=>({visible:s.previewVisible,url:m.value,isTxt:X.value}),async({visible:F,url:$,isTxt:K})=>{if(g.value="",ee.value=Q.idle,!(!F||!K||!$)){ee.value=Q.loading;try{const W=await fetch($,{credentials:"include",mode:"cors"});if(!W.ok)throw new Error(String(W.status));g.value=await W.text(),ee.value=Q.text}catch{ee.value=Q.iframeFallback}}},{flush:"post"});const M=e.computed(()=>!m.value||!I.value||X.value?!1:Y.value?!0:!O.value&&!V.value),x=e.computed(()=>o.has(y.value)),P=e.computed(()=>{const F=m.value;return F?R.value||!O.value||s.needSafe||y.value==="pdf"?F:x.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(F)}`:`https://docs.google.com/gview?url=${encodeURIComponent(F)}&embedded=true`:s.url}),J=new Set(["view.officeapps.live.com","docs.google.com"]),le=e.computed(()=>{const F=(P.value||"").trim();if(!F)return!1;try{const $=new URL(F).hostname.toLowerCase();return J.has($)}catch{return/view\.officeapps\.live\.com|docs\.google\.com/i.test(F)}}),oe=e.computed(()=>le.value?{sandbox:"allow-scripts allow-same-origin",allow:"fullscreen"}:{}),j=e.ref("");e.watch(()=>({visible:s.previewVisible,src:P.value,doc:O.value,serverPage:R.value,skipIframe:Y.value}),async({visible:F,src:$,doc:K,serverPage:W,skipIframe:G})=>{if(j.value="",!F||!(K||W)||G)return;const ce=($||"").trim();ce&&(await e.nextTick(),await new Promise(ne=>requestAnimationFrame(ne)),s.previewVisible&&P.value===ce&&(j.value=ce))},{flush:"post"});const de=e.computed(()=>C.value),me=async()=>{m.value&&(dt()?window.open(m.value,"_blank"):await ke(m.value,s.fileName||"file"))},pe=()=>{c("closeModal")},fe=F=>{const $=F instanceof Error?F.message:typeof F=="string"?F:"";E.message.warning($?`文件预览加载失败:${$},可尝试下载后查看`:"文件预览加载失败,可尝试下载后查看")},A=F=>F instanceof TypeError&&typeof F.message=="string"&&/failed to fetch/i.test(F.message),ut=F=>{A(F.error)&&s.previewVisible&&E.message.error("文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看")},yt=F=>{A(F.reason)&&s.previewVisible&&E.message.error("文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看")};return e.onMounted(()=>{window.addEventListener("error",ut),window.addEventListener("unhandledrejection",yt)}),e.onUnmounted(()=>{window.removeEventListener("error",ut),window.removeEventListener("unhandledrejection",yt)}),(F,$)=>{const K=e.resolveComponent("VueFilesPreview"),W=e.resolveComponent("a-spin"),G=e.resolveComponent("a-button"),ce=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(ce,e.mergeProps({key:0,visible:n.value,"onUpdate:visible":$[2]||($[2]=ne=>n.value=ne),width:i.value,"body-style":S.value,style:T.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},F.$attrs,{onCancel:pe}),{title:e.withCtx(()=>[e.createElementVNode("div",Yl,[e.renderSlot(F.$slots,"title",{},()=>[$[5]||($[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(dt)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Kl,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(F.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",on,[e.createVNode(G,{disabled:!t.hasPrevAttachment,size:f.value,block:t.mobile,onClick:$[0]||($[0]=ne=>c("prevAttachment"))},{default:e.withCtx(()=>[...$[6]||($[6]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(G,{disabled:!t.hasNextAttachment,size:f.value,block:t.mobile,onClick:$[1]||($[1]=ne=>c("nextAttachment"))},{default:e.withCtx(()=>[...$[7]||($[7]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createBlock(G,{key:1,size:f.value,block:t.mobile,onClick:me},{default:e.withCtx(()=>[...$[8]||($[8]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(G,{type:"primary",class:"file-preview-modal-footer__close",size:f.value,block:t.mobile,onClick:pe},{default:e.withCtx(()=>[...$[9]||($[9]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Gl,[t.needSafe?(e.openBlock(),e.createElementBlock("section",Jl,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,Xl)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(K,{key:`vfp:${w.value}`,url:t.url,onError:fe},null,8,["url"]))])):(e.openBlock(),e.createElementBlock("section",Ql,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,Zl)):e.createCommentVNode("",!0)],64)):v.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${w.value}`,class:"file-preview-modal-body__plaintext"},[ee.value===Q.loading?(e.openBlock(),e.createBlock(W,{key:0,tip:"加载中..."})):ee.value===Q.iframeFallback?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:s.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,vl)):ee.value===Q.text?(e.openBlock(),e.createElementBlock("pre",en,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])):O.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[j.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${w.value}:${j.value}`,src:j.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,tn)):e.createCommentVNode("",!0)],64)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${w.value}`,class:"no-preview"},e.toDisplayString(I.value?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]))])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ln,[R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,nn)):e.createCommentVNode("",!0)],64)):v.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${w.value}`,class:"file-preview-modal-body__plaintext"},[ee.value===Q.loading?(e.openBlock(),e.createBlock(W,{key:0,tip:"加载中..."})):ee.value===Q.iframeFallback?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:s.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,an)):ee.value===Q.text?(e.openBlock(),e.createElementBlock("pre",rn,e.toDisplayString(g.value)+`
|
|
2
|
+
`,1)):e.createCommentVNode("",!0)])):M.value?(e.openBlock(),e.createBlock(K,{key:`vfp:${w.value}`,url:t.url,onError:fe},null,8,["url"])):O.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[j.value?(e.openBlock(),e.createElementBlock("iframe",e.mergeProps({key:`${w.value}:${j.value}`,src:j.value},oe.value,{class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"}),null,16,sn)):e.createCommentVNode("",!0)],64)):V.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${w.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,cn)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${w.value}`,class:"no-preview"},e.toDisplayString(I.value?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(F.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(G,{disabled:!t.hasPrevAttachment,size:f.value,block:t.mobile,onClick:$[3]||($[3]=ne=>c("prevAttachment"))},{default:e.withCtx(()=>[...$[10]||($[10]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(G,{disabled:!t.hasNextAttachment,size:f.value,block:t.mobile,onClick:$[4]||($[4]=ne=>c("nextAttachment"))},{default:e.withCtx(()=>[...$[11]||($[11]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createBlock(G,{key:1,size:f.value,block:t.mobile,onClick:me},{default:e.withCtx(()=>[...$[12]||($[12]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(G,{type:"primary",class:"file-preview-modal-footer__close",size:f.value,block:t.mobile,onClick:pe},{default:e.withCtx(()=>[...$[13]||($[13]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-53d28d41"]])),mn=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Ze,HbLibCard:Qe,HbLibCopy:Te,HbLibDetailBox:ve,HbLibFilePreview:pt,HbLibFooterBar:et,HbLibFormItemFilterModal:Fe,HbLibFormTooltipSelect:Ke,HbLibFuncCompDrag:nt,HbLibImportFile:Ge,HbLibListBtnsAct:He,HbLibListForm:Ve,HbLibListMultiSelect:Me,HbLibListPageAct:$e,HbLibListPageContainer:De,HbLibListTable:qe,HbLibLoading:it,HbLibLogModal:Je,HbLibModal:tt,HbLibMutilpleSelectModal:Ae,HbLibPageHeader:lt,HbLibSort:at,HbLibTableAct:Oe,HbLibTableColumnSet:Ye,HbLibUnDetailBox:ot,HbUiConfig:Xe},Symbol.toStringTag,{value:"Module"})),ae=new Map;let ft;re.isClient&&(document.addEventListener("mousedown",t=>ft=t),document.addEventListener("mouseup",t=>{for(const l of ae.values())for(const{documentHandler:o}of l)o(t,ft)}));function ht(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(a,d){const r=l.instance.popperRef,c=a.target,s=d?.target,n=!l||!l.instance,i=!c||!s,m=t.contains(c)||t.contains(s),C=t===c,f=o.length&&o.some(S=>S?.contains(c))||o.length&&o.includes(s),T=r&&(r.contains(c)||r.contains(s));n||i||m||C||f||T||l.value(a,d)}}const pn={beforeMount(t,l){ae.has(t)||ae.set(t,[]),ae.get(t).push({documentHandler:ht(t,l),bindingFn:l.value})},updated(t,l){ae.has(t)||ae.set(t,[]);const o=ae.get(t),a=o.findIndex(r=>r.bindingFn===l.oldValue),d={documentHandler:ht(t,l),bindingFn:l.value};a>=0?o.splice(a,1,d):o.push(d)},unmounted(t){ae.delete(t)}},fn={mounted(t,l){const{value:o,arg:a}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const d=parseInt(a,10)||300;let r;t.__debounceHandler__=function(...c){r&&clearTimeout(r),r=setTimeout(()=>{o(...c)},d)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},bt=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(Te,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},hn={cos:pn,dc:fn,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}bt(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&bt(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}};function bn(t){const l=e.ref(!1),o=e.ref(""),a=e.ref(""),d=e.ref(-1),r=h=>h.previewUrl,c=e.computed(()=>{const h=t.value.attachmentInfos,p=d.value;if(p<=0)return!1;for(let u=p-1;u>=0;u--)if(r(h[u]))return!0;return!1}),s=e.computed(()=>{const h=t.value.attachmentInfos,p=d.value;if(p<0||p>=h.length-1)return!1;for(let u=p+1;u<h.length;u++)if(r(h[u]))return!0;return!1}),n=e.computed(()=>t.value.attachmentInfos.length>1),i=h=>{const u=t.value.attachmentInfos[h];if(!u)return;const L=r(u);L&&(d.value=h,o.value=L,a.value=u.attachmentDesc||"",l.value=!0)},m=()=>{const h=t.value.attachmentInfos,p=d.value;for(let u=p-1;u>=0;u--)if(r(h[u])){i(u);return}},C=()=>{const h=t.value.attachmentInfos,p=d.value;for(let u=p+1;u<h.length;u++)if(r(h[u])){i(u);return}},f=()=>{l.value=!1,d.value=-1,o.value="",a.value=""},T=(h,p)=>{const u=r(h);if(!u){E.message.warning("暂无预览地址");return}const L=t.value.attachmentInfos,_=ql(L,h,{preferredIndex:p});_>=0?i(_):(d.value=-1,o.value=u,a.value=h.attachmentDesc||"",l.value=!0)},S=h=>{const p=h.downloadUrl;if(!p){E.message.warning("暂无下载地址");return}const u=h.attachmentDesc?.trim()||"download";ke(p,u)},H=400;return{filePreviewVisible:l,pdfPreviewUrlRef:o,previewFileNameRef:a,previewAttachmentIndexRef:d,hasPrevAttachment:c,hasNextAttachment:s,showAttachmentNavBar:n,handlePreview:T,handleDownload:S,handleClosePreview:f,goPrevAttachment:m,goNextAttachment:C,triggerBrowserDownload:ke,handleBatchDownloadAttachment:async()=>{const p=t.value.attachmentInfos.filter(u=>!!u.downloadUrl?.trim());if(p.length===0){E.message.warning("暂无可下载附件");return}for(let u=0;u<p.length;u++){const L=p[u],_=L.attachmentDesc?.trim()||"download";ke(L.downloadUrl,_),u<p.length-1&&await new Promise(k=>setTimeout(k,H))}}}}const gn=t=>{const l=e.ref();l.value=t.slice();const o=JSON.parse(JSON.stringify(l.value));return{formItems:l,DeepCloneFromItem:o,handleSearchCase:d=>{let r=[],c=Object.keys(d);o.forEach(s=>{c.includes(s.key)&&r.push(s)}),l.value=r}}},un=t=>{let l=!0;return{start:()=>{e.nextTick(()=>{const r=document.querySelector(`.${t} .ant-modal`);if(r){let c=!1,s={x:0,y:0};const n=r.querySelector(".ant-modal-header"),i=r.querySelector(".ant-modal-footer");n&&(n.style.cursor="move",i.style.cursor="move",n.addEventListener("mousedown",m=>{c=!0,s.x=m.clientX-r.offsetLeft,s.y=m.clientY-r.offsetTop,document.body.style.userSelect="none"}),i.addEventListener("mousedown",m=>{c=!0,s.x=m.clientX-r.offsetLeft,s.y=m.clientY-r.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",m=>{if(!c||!l)return;const C=m.clientX-s.x,f=m.clientY-s.y;r.style.left=`${C}px`,r.style.top=`${f}px`}),document.addEventListener("mouseup",()=>{c=!1,document.body.style.userSelect=""}))}})},stop:()=>{l=!1},resetPosition:()=>{e.nextTick(()=>{const r=document.querySelector(`.${t} .ant-modal`);if(r){const c=window.innerWidth,s=window.innerHeight,n=r.offsetWidth,i=r.offsetHeight,m=(c-n)/2,C=(s-i)/2;r.style.left=`${m}px`,r.style.top=`${C}px`}})}}},yn={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"}}},Cn={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:"戻る"}}},kn={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:"加载中...如长时间加载请重试!"}}},_n={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var _e={exports:{}},wn=_e.exports,gt;function Ln(){return gt||(gt=1,(function(t,l){(function(o,a){t.exports=a(ye)})(wn,(function(o){function a(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var d=a(o),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c,s){return s==="W"?c+"周":c+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(c,s){var n=100*c+s;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return d.default.locale(r,null,!0),r}))})(_e)),_e.exports}Ln(),ye.locale("zh-cn");const Sn={en_US:yn,ja_JP:Cn,zh_CN:kn,de_DE:_n},xn=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(mn).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),t.use(he),Object.entries(hn).forEach(([o,a])=>{t.directive(o,a)})};D.HbLibAnchor=Ze,D.HbLibCard=Qe,D.HbLibCopy=Te,D.HbLibDetailBox=ve,D.HbLibFilePreview=pt,D.HbLibFooterBar=et,D.HbLibFormItemFilterModal=Fe,D.HbLibFormTooltipSelect=Ke,D.HbLibFuncCompDrag=nt,D.HbLibImportFile=Ge,D.HbLibListBtnsAct=He,D.HbLibListForm=Ve,D.HbLibListMultiSelect=Me,D.HbLibListPageAct=$e,D.HbLibListPageContainer=De,D.HbLibListTable=qe,D.HbLibLoading=it,D.HbLibLogModal=Je,D.HbLibModal=tt,D.HbLibMutilpleSelectModal=Ae,D.HbLibPageHeader=lt,D.HbLibSort=at,D.HbLibTableAct=Oe,D.HbLibTableColumnSet=Ye,D.HbLibUnDetailBox=ot,D.HbUiConfig=Xe,D.install=xn,D.locales=Sn,D.useCalTableHeight=Ie,D.useCalTableWidth=Se,D.useFilePreview=bn,D.useListFormItem=gn,D.useModalDrag=un,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|