@hb-hellotech/hb-ui 2.1.1 → 2.2.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/business_comp/list_page_comp/hb_list_page_container/index.d.ts +3 -3
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/type.d.ts +2 -2
- package/dist/components/business_comp/list_page_comp/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/index.d.ts +1 -1
- package/dist/components/business_comp/unlist_page_comp/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +24 -15
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts +103 -0
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts +44 -0
- package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts +10 -0
- package/dist/components/func_comp/hb_func_file_preview/src/type.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts +17 -0
- package/dist/components/func_comp/hb_func_file_preview/src/util.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts +43 -0
- package/dist/components/func_comp/hb_func_file_preview_safe/index.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts +44 -0
- package/dist/components/func_comp/hb_func_file_preview_safe/src/file_preview.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts +4 -0
- package/dist/components/func_comp/hb_func_file_preview_safe/src/type.d.ts.map +1 -0
- package/dist/components/func_comp/index.d.ts +2 -1
- package/dist/components/func_comp/index.d.ts.map +1 -1
- package/dist/components/hooks/index.d.ts +6 -0
- package/dist/components/hooks/index.d.ts.map +1 -0
- package/dist/components/hooks/useFilePreview.d.ts +27 -0
- package/dist/components/hooks/useFilePreview.d.ts.map +1 -0
- package/dist/components/utils/triggerBrowserDownload.d.ts +11 -0
- package/dist/components/utils/triggerBrowserDownload.d.ts.map +1 -0
- package/dist/components/utils/util.d.ts +10 -0
- package/dist/components/utils/util.d.ts.map +1 -1
- package/dist/demo/HbFileViewSafe.d.ts +4 -0
- package/dist/demo/HbFileViewSafe.d.ts.map +1 -0
- package/dist/demo/hb_file_preview.d.ts +4 -0
- package/dist/demo/hb_file_preview.d.ts.map +1 -0
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +2526 -1931
- package/dist/hb_component_lib.umd.cjs +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/hooks/useFilePreview.ts +181 -0
- package/hooks/useListFormItem.ts +27 -27
- package/hooks/useModalDrag.ts +65 -59
- package/package.json +86 -80
|
@@ -1 +1,3 @@
|
|
|
1
|
-
(function(M,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],e):(M=typeof globalThis<"u"?globalThis:M||self,e(M.HbComponentLib={},M.Vue,M.draggable,M.antDesignVue,M.vueRouter,M.vueI18n,M.lodash,M.iconsVue,M.core,M.dayjs))})(this,(function(M,e,te,F,re,q,Q,j,Z,oe){"use strict";const se=(t="")=>{const l=`hb-${t}`;return ve(l)},X=(t,l,o,i)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),i&&(t+=`--${i}`),t),ve=t=>({b:l=>l?X(t,l,"",""):X(t,"","",""),e:l=>l?X(t,"",l,""):"",m:l=>X(t,"","",l),be:(l,o)=>X(t,l,o,""),em:(l,o)=>X(t,"",l,o),bem:(l,o,i)=>X(t,l,o,i),is:(l,o)=>o?`is-${l}`:""}),et=["onMouseenter","onMouseleave"],tt=["onClick"],ot=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 i=e.inject("globalCompConfig",{}),c=q.useI18n().t,s=q.useI18n().messages.value.en_US,r=q.useI18n().messages.value.ja_JP,f=q.useI18n().messages.value.zh_CN,n=t,a=e.computed(()=>n.showNumber||i.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.computed(()=>n.title||c("hbLibComp.hbFormItemFilterModal.title")),g=o,p=se("sfcm"),N=re.useRoute(),w=e.reactive({lan:window.localStorage.getItem("lan")}),E=e.ref(!1),T=e.ref(600);let u=[];const y=e.ref([]),_=e.ref([]),S=e.computed(()=>y.value.every(m=>m.isLinked||m.isFixed)),k=m=>({...m,label:L(m)||`${H(m)||""} (${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:m.key,isFixed:m?.isFixed||!1,isLinked:m?.isLinked||!1,labelLanguage:m?.labelLanguage||void 0}),C=m=>{const $=m.draggedContext.element,x=m.relatedContext.index;if($.isLinked||$.isFixed)return!1;const O=y.value.map((U,J)=>({item:U,index:J})).filter(({item:U})=>U.isLinked).map(({index:U})=>U);if(O.length===0)return!0;for(let U=0;U<O.length-1;U++){const J=O[U],v=O[U+1];if(x>J&&x<v)return!1}return!0},d=e.computed(()=>b()+"_"+n.saveKey),b=()=>{const m=localStorage.getItem("pro__Login_Userinfo");let $="anonymous";if(m)try{$=JSON.parse(m).value.jobNumber||"anonymous"}catch(O){console.warn("解析用户信息失败:",O)}let x=N?.path;return`searchFormConfig_${$}_${x}`},L=m=>({ja_JP:()=>Q.get(r,m.labelLanguage||""),en_US:()=>Q.get(s,m.labelLanguage||""),zh_CN:()=>Q.get(f,m.labelLanguage||"")})[w.lan]?.()||m.label,H=m=>({ja_JP:()=>Q.get(r,m.subLabelLanguage||""),en_US:()=>Q.get(s,m.subLabelLanguage||""),zh_CN:()=>Q.get(f,m.subLabelLanguage||"")})[w.lan]?.()||m.subLabel,I=()=>{try{const m=localStorage.getItem(d.value);if(m){const $=JSON.parse(m);if($.originalList&&Array.isArray($.originalList)){u=JSON.parse(JSON.stringify($.originalList));const x=u.filter(D=>D?.isFixed),O=u.filter(D=>D?.isLinked),U=$.showList.filter(D=>!D.isFixed&&!D.isLinked),J=a.value&&a.value>0?Math.max(0,a.value-x.length-O.length):U.length,v=x.map(D=>({...k(D)})),ie=O.map(D=>({...k(D)})),be=U.slice(0,J).map(D=>({...k(D)}));y.value=[...v,...ie,...be];const he=y.value.map(D=>D.key),ge=u.map(D=>D.key).filter(D=>!he.includes(D));return _.value=u.filter(D=>ge.includes(D.key)).map(D=>({...k(D),active:!1})),!0}}}catch(m){console.warn("加载保存的搜索配置失败:",m)}return!1},W=()=>{try{const m={originalList:u,showList:y.value.map($=>({...$,key:$.key,label:$.label,isFixed:$.isFixed,isLinked:$.isLinked,labelLanguage:$?.labelLanguage||void 0}))};localStorage.setItem(d.value,JSON.stringify(m))}catch(m){console.warn("保存搜索配置失败:",m)}},B=e.computed(()=>{const m=y.value.filter(x=>!x.isFixed&&!x.isLinked).length,$=y.value.filter(x=>x.isFixed||x.isLinked).length;return m>=a.value-$});e.watch(()=>n.list,m=>{let $=JSON.stringify(y.value)!==JSON.stringify(m);if(!$)return;const x=localStorage.getItem(d.value),O=JSON.parse(x||"{}");if(O&&O?.originalList&&Array.isArray(O.originalList))I(),g("confirm",y.value);else if($){u=JSON.parse(JSON.stringify(m));const U=m.filter(D=>D?.isFixed),J=m.filter(D=>D?.isLinked),v=m.filter(D=>!D?.isFixed&&!D?.isLinked),ie=a.value&&a.value>0?Math.max(0,a.value-U.length-J.length):v.length,be=U.map(D=>k(D)),he=J.map(D=>k(D)),Xe=v.slice(0,ie).map(D=>k(D));y.value=[...be,...he,...Xe];const ge=v.slice(ie).map(D=>({...k(D),active:!1}));_.value=ge,g("confirm",y.value)}},{immediate:!0});const V=m=>{const $=y.value.findIndex(x=>x.key===m.key);$!==-1&&(y.value.splice($,1),_.value.push({...m,active:!1}))},P=m=>{if(B.value){F.message.warning(`当前已经超过${c(a.value)}个可选数量,请先删除已显示条件`);return}const $=_.value.findIndex(x=>x.key===m.key);if($!==-1){const[x]=_.value.splice($,1);y.value.push({...x,active:!1})}},R=()=>{E.value=!1},Y=()=>{E.value=!0},K=()=>{W(),g("confirm",y.value),R()},ne=m=>{const $=_.value.findIndex(x=>x.key===m.key);$!==-1&&(_.value[$].active=!0)},fe=m=>{const $=_.value.findIndex(x=>x.key===m.key);$!==-1&&(_.value[$].active=!1)};return l({toOpenModal:Y}),e.onMounted(()=>{}),(m,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).b())},[e.createVNode(e.unref(F.Modal),{visible:E.value,"onUpdate:visible":$[1]||($[1]=x=>E.value=x),width:T.value,onCancel:R,onOk:K},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("title"))},e.toDisplayString(h.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(F.Button),{onClick:R},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(F.Button),{type:"primary",onClick:K},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(p).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p).e("title__tip"))},e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(a.value)+e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__tag"))},[e.createVNode(e.unref(te),{modelValue:y.value,"onUpdate:modelValue":$[0]||($[0]=x=>y.value=x),"item-key":"key",tag:"div",disabled:S.value,move:C},{item:e.withCtx(({element:x})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(p).e("show__tag__item"),e.unref(p).is("fixed",x.isFixed),e.unref(p).is("linked",x.isLinked)])},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),!x.isFixed&&!x.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(j.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(p).e("show__tag__item-close")),onClick:O=>V(x)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(p).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p).e("title__tip"))},e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("unshow__tag"))},[_.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(_.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x.key,class:e.normalizeClass([e.unref(p).e("unshow__tag__item"),e.unref(p).is("fixed",x.isFixed||""),e.unref(p).is("linked",x.isLinked||"")]),onMouseenter:O=>ne(x),onMouseleave:O=>fe(x)},[e.createTextVNode(e.toDisplayString(x.label)+" ",1),x.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(p).e("unshow__tag__item-add")),onClick:O=>P(x)},e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.add")),11,tt)):e.createCommentVNode("",!0)],42,et))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).e("unshow__tag__empty"))},e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),z=(t,l)=>{const o=t.__vccOpts||t;for(const[i,c]of l)o[i]=c;return o},lt=z(ot,[["__scopeId","data-v-657502f3"]]);function A(t){const l=t;return l.install=o=>{const i=t.name;o.component(i??"AnonymousComponent",t)},l}const ye=A(lt),at={key:0,class:"form-footer"},Ce=A(z(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:l,emit:o}){const i=e.inject("globalCompConfig",{}),c=o,s=e.inject("HB_LIST_PAGE_CONTAINER"),r=e.computed(()=>n.searchList||[]),f=se("form"),n=t,a=e.computed(()=>n.showNumber||i.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.ref("show"),g=e.computed(()=>n.needFooter||i.HbLibListForm?.needFooter),p=e.computed(()=>[...n.items]),N=B=>B!==void 0,w=B=>typeof B=="function",E=B=>N(B.condition)?w(B.condition)?B.condition():B.condition:!0,T=e.computed(()=>[...n.items].map(B=>({...B,condition:E(B),label:B.label?.includes("多项搜索")?"":B.label})));console.log(T.value);const u=e.computed(()=>n.saveKey),y=e.ref(),_=()=>{c("handleSearch")},S=()=>{c("handleReset")},k=e.ref(),C=()=>{k.value&&k.value.toOpenModal()},d=B=>{c("handleMenuClick",B)},b=B=>{c("handleSfcmConfirm",B)};e.watch(()=>n.isFormExpanded,B=>{if(B){console.log(B);const V=document.querySelector("#subpackage_container");V instanceof HTMLElement&&(V.style.overflow="hidden",setTimeout(()=>{V.style.overflow="auto"},500))}});const L=B=>{const V=B;V.style.height="",V.offsetHeight},H=B=>{const V=B;V.style.height="",V.style.overflow="",e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})},I=B=>{const V=B,P=V.querySelector(".hb-lib-form--container");if(P){const R=P.offsetHeight;V.style.height=R+"px",V.style.overflow="hidden",V.offsetHeight,requestAnimationFrame(()=>{V.style.height="0"})}},W=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return l({formRef:y,SelectOption:F.SelectOption,Form:F.Form,FormItem:F.FormItem,Row:F.Row,Col:F.Col,Input:F.Input,Select:F.Select,CheckboxGroup:F.CheckboxGroup,Checkbox:F.Checkbox,DatePicker:F.DatePicker,InputNumber:F.InputNumber,RadioGroup:F.RadioGroup,Radio:F.Radio,Switch:F.Switch,Button:F.Button,Tooltip:F.Tooltip}),(B,V)=>{const P=e.resolveComponent("a-button"),R=e.resolveComponent("a-tooltip"),Y=e.resolveComponent("a-menu-item"),K=e.resolveComponent("a-menu"),ne=e.resolveComponent("a-dropdown"),fe=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:L,onAfterEnter:H,onLeave:I,onAfterLeave:W},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box","hb-form-item-ui",g.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(B.$attrs,{model:t.formData,ref_key:"formRef",ref:y,class:["hb-lib-form--container",h.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(m,$)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:$},[m.condition?(e.openBlock(),e.createBlock(e.unref(F.FormItem),e.mergeProps({key:0,ref_for:!0},m,{name:m.key,class:{"hb-lib-form-item-border--unneed":m.isUnNeedBorder,"hb_lib_form_item--needShowAll":m.showAll}}),e.createSlots({default:e.withCtx(()=>[m.type==="slot"?e.renderSlot(B.$slots,m.key,{key:0,formData:t.formData,item:m},void 0,!0):e.createCommentVNode("",!0),m.type==="mixin"?e.renderSlot(B.$slots,m.key,{key:1,formData:t.formData,item:m},void 0,!0):e.createCommentVNode("",!0),m.type==="input"?(e.openBlock(),e.createBlock(e.unref(F.Input),e.mergeProps({key:2,value:t.formData[m.key],"onUpdate:value":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),m.type==="select"?(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({key:3,value:t.formData[m.key],"onUpdate:value":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.options,(x,O)=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),{key:O,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),m.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(F.CheckboxGroup),e.mergeProps({key:4,value:t.formData[m.key],"onUpdate:value":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.options,(x,O)=>(e.openBlock(),e.createBlock(e.unref(F.Checkbox),{key:O,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),m.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(F.DatePicker),e.mergeProps({key:5,value:t.formData[m.key],"onUpdate:value":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),m.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(F.InputNumber),e.mergeProps({key:6,value:t.formData[m.key],"onUpdate:value":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),m.type==="radio"?(e.openBlock(),e.createBlock(e.unref(F.RadioGroup),e.mergeProps({key:7,value:t.formData[m.key],"onUpdate:value":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.options,(x,O)=>(e.openBlock(),e.createBlock(e.unref(F.Radio),{key:O,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),m.type==="switch"?(e.openBlock(),e.createBlock(e.unref(F.Switch),e.mergeProps({key:8,checked:t.formData[m.key],"onUpdate:checked":x=>t.formData[m.key]=x},{ref_for:!0},m.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[m.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.label)+" ",1),e.createVNode(e.unref(F.Tooltip),{title:m.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(j.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",at,[e.createVNode(P,{type:"primary",onClick:_,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(j.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(P,{type:"link",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(R,{key:0,title:B.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:C},[...V[0]||(V[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(ne,{key:0},{overlay:e.withCtx(()=>[e.createVNode(K,{onClick:d},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,m=>(e.openBlock(),e.createBlock(Y,{key:m.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.title),1)]),_:2},1024))),128)),e.createVNode(Y,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(Y,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(R,{title:B.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...V[1]||(V[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),g.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(B.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[h.value=="show"?e.renderSlot(B.$slots,"form-footer-right",{key:0,formRef:y.value},()=>[e.createVNode(P,{type:"primary",onClick:_,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(j.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(P,{type:"link",onClick:S,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(R,{key:0,title:B.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:C},[...V[2]||(V[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(ne,{key:0},{overlay:e.withCtx(()=>[e.createVNode(K,{onClick:d},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,m=>(e.openBlock(),e.createBlock(Y,{key:m.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.title),1)]),_:2},1024))),128)),e.createVNode(Y,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(Y,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(R,{title:B.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...V[3]||(V[3]=[e.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)],!0):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(fe,{showNumber:a.value,list:p.value,ref_key:"HbSfCmRef",ref:k,onConfirm:b,saveKey:u.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-8307bb07"]])),nt={class:"hb-lib-list-page-act-box"},it={class:"hb-lib-list-page-breadcrumb"},rt={class:"hb-lib-list-page-act"},st={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"},ct={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"},ue=A(z(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:i,toggle:c}=Z.useFullscreen(document.body);e.watch(()=>i.value,n=>{let a=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?a=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(a=[...l.HbLibListPageAct.hideDomList]);const h=new Map;setTimeout(n?()=>{if(a?.length)for(let g=0;g<a.length;g++){const p=document.querySelector(a[g]);p&&(h.set(a[g],p.style.display),p.style.display="none")}}:()=>{if(a?.length)for(let g=0;g<a.length;g++){const p=document.querySelector(a[g]);if(p){const N=h.get(a[g]);p.style.display=N||"",h.delete(a[g])}}},0)});const s=e.ref(""),r=()=>{const n=re.useRoute();let a=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",h=n?.path;if(a!=="[]"){let g=JSON.parse(a).find(p=>p.value===h);g&&(s.value=g.label.replace(/-/g," / "))}};e.onMounted(()=>{r()});const f=n=>{n.keyCode===192&&c()};return e.onMounted(()=>{window.addEventListener("keydown",f)}),e.onUnmounted(()=>{window.removeEventListener("keydown",f)}),(n,a)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",nt,[e.createElementVNode("aside",it,e.toDisplayString(s.value),1),e.createElementVNode("aside",rt,[e.createVNode(h,{title:e.unref(i)?`${n.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${n.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:a[0]||(a[0]=(...g)=>e.unref(c)&&e.unref(c)(...g))},[e.unref(i)?(e.openBlock(),e.createElementBlock("svg",ct,[...a[2]||(a[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",st,[...a[1]||(a[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(n.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),dt={class:"hb-lib-list-btns-box"},mt={class:"hb-lib-list-btns-left"},pt={class:"hb-lib-list-btns-right"},ke=A(z(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,i=e.ref(!0),c=()=>{i.value=!i.value,o("handleOpenOrClose",i.value)},s=()=>{o("handleReload")},r=f=>{};return e.onMounted(()=>{window.addEventListener("keydown",r)}),e.onUnmounted(()=>{window.removeEventListener("keydown",r)}),(f,n)=>{const a=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",dt,[e.createElementVNode("aside",mt,[e.renderSlot(f.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",pt,[t.needReload?(e.openBlock(),e.createBlock(a,{key:0,title:f.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:s},[...n[0]||(n[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(a,{key:1,title:i.value?`${f.$t("hbLibComp.hbListBtnsAct.close")}`:`${f.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:c},[i.value?(e.openBlock(),e.createBlock(e.unref(j.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(j.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),ft=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:i=300,timeOut:c=100}=t,s=e.ref(0);let r=null,f=null,n=null,a=null,h=null;const g=()=>{h&&clearTimeout(h),h=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const y=document.querySelector(".ant-table"),_=document.querySelector(".ant-pagination");if(y){const S=Math.floor(y.getBoundingClientRect().top),k=window.innerHeight,d=(_?_.offsetHeight+20:40)+o;let b=k-S-d;b<i&&(b=i),s.value=b}})})},100)},p=()=>{const y=document.querySelector(".ant-pagination");if(y){const _=new MutationObserver(()=>{g()});return _.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),_}return null},N=()=>{const y=document.querySelector(".hb-lib-list-page-form-box");y&&(r=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(S=>{S.style.display="none"}),g()}),r.observe(y))},w=()=>{const y=document.querySelector(".hb-lib-list-page-form-box");y&&(n=new MutationObserver(()=>{setTimeout(()=>{g()},c)}),n.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},E=()=>{a&&clearTimeout(a),a=setTimeout(()=>{g()},c)},T=()=>{window.addEventListener("resize",E),e.nextTick(()=>{N(),w(),f=p()})},u=()=>{window.removeEventListener("resize",E),r&&r.disconnect(),n&&n.disconnect(),f&&f.disconnect(),a&&clearTimeout(a),h&&clearTimeout(h)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{g()},200)},{deep:!0}),e.onMounted(()=>{g(),T()}),e.onUnmounted(()=>{u()}),{tableHeight:s,calTableHeight:g}},_e=A(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=Z.useFullscreen(document.body),i=t,c=e.useTemplateRef("PageContainerRef"),s=e.computed(()=>i.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),r=e.computed(()=>i.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),f=e.computed(()=>i.minHeight||l.HbLibListPageContainer?.minHeight||300),n=e.computed(()=>i.timeOut||l.HbLibListPageContainer?.timeOut||100),a=e.computed(()=>i.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(i.isUnFixTbHeight);const{calTableHeight:h,tableHeight:g}=ft({offsetBottom:r.value,minHeight:f.value,timeOut:n.value}),p=e.computed(()=>g.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:c,tableHeight:g,calTableHeight:h}),(N,w)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:c},[e.renderSlot(N.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(a.value?null:{"--hb-list-table-height":e.unref(o)?p.value-s.value+"px":p.value-r.value+"px","--hb-list-ttable-height":t.tabelData.length?"":e.unref(o)?p.value-s.value+"px":p.value-r.value+"px"})},[e.renderSlot(N.$slots,"default")],4)],512))}})),bt={style:{"font-weight":"500"}},ht={key:0,class:"hb-lib-search-tag__description"},gt={class:"hb-lib-selector-dropdown"},yt={class:"hb-lib-selector-search"},Ct={class:"hb-lib-selector-list"},ut=["onClick"],kt={class:"hb-lib-option-content"},_t={class:"hb-lib-option-label"},Lt={key:0,class:"hb-lib-selector-empty"},St={key:1,class:"hb-lib-selector-footer"},wt={class:"hb-lib-footer-buttons"},xt={key:2,class:"hb-lib-selector-footer"},Bt={class:"hb-lib-footer-buttons"},Le=A(z(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,i=l,c=e.useModel(t,"value"),s=e.ref(!1),r=e.ref(""),f=e.ref([]),n=e.ref(),a=e.computed(()=>{if(o.remoteSearch||!r.value)return o.options;const k=r.value.toLowerCase();return o.options.filter(C=>C.label.toLowerCase().includes(k)||C.description?.toLowerCase().includes(k))}),h=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),g=e.computed(()=>a.value.length===0?!1:a.value.every(k=>f.value.includes(k.value))),p=e.computed(()=>{if(a.value.length===0)return!1;const k=a.value.filter(C=>f.value.includes(C.value)).length;return k>0&&k<a.value.length});e.watch(()=>c.value,k=>{k?f.value=Array.isArray(k)?[...k]:[k]:f.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,k=>{o.remoteSearch&&k!==void 0&&(r.value=k)},{immediate:!0});const N=k=>{k&&(s.value=k,w.value=[...f.value],r.value="",setTimeout(()=>{if(n.value){const C=n.value.input||n.value.$el?.querySelector("input");C&&C.focus()}},100))},w=e.ref([]),E=()=>{f.value=[...w.value],s.value=!1,i("cancel")},T=e.ref([]),u=()=>{const k=o.multiple?f.value:f.value[0]||"",C=o.options.filter(d=>f.value.includes(d.value));T.value=C,console.log(k,C),w.value=[...f.value],c.value=k,i("update:value",k),i("change",k,C),i("confirm",k,C),s.value=!1},y=Z.useDebounceFn(k=>{const C=k!==void 0?k:r.value;o.remoteSearch&&(i("search",C),i("update:searchValue",C))},300),_=k=>{if(o.multiple){const C=new Set(f.value);C.has(k.value)?C.delete(k.value):C.add(k.value),f.value=Array.from(C)}else f.value=[k.value],u()},S=k=>{if(k.target.checked){const d=new Set(f.value);a.value.forEach(b=>{d.add(b.value)}),f.value=Array.from(d)}else{const d=new Set(a.value.map(b=>b.value));f.value=f.value.filter(b=>!d.has(b))}};return(k,C)=>{const d=e.resolveComponent("a-tag"),b=e.resolveComponent("a-input"),L=e.resolveComponent("a-checkbox"),H=e.resolveComponent("a-radio"),I=e.resolveComponent("a-button"),W=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":h.value}},k.$attrs),[e.createVNode(W,{value:c.value,"onUpdate:value":C[5]||(C[5]=B=>c.value=B),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:s.value,allowClear:"",maxTagCount:t.maxTagCount,options:a.value,onDropdownVisibleChange:N,onSearch:e.unref(y),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:B,label:V,closable:P,option:R})=>[e.createVNode(d,{class:"hb-lib-search-tag",onClick:C[0]||(C[0]=()=>N(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",bt,e.toDisplayString(V),1),R?.description?(e.openBlock(),e.createElementBlock("span",ht," ("+e.toDisplayString(R.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:B})=>[e.createElementVNode("div",gt,[e.createElementVNode("div",yt,[e.createVNode(b,{ref_key:"searchInputRef",ref:n,class:"hb-lib-selector-search-input",value:r.value,"onUpdate:value":C[1]||(C[1]=V=>r.value=V),placeholder:"请输入关键词搜索","allow-clear":"",onInput:C[2]||(C[2]=V=>e.unref(y)(V.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(j.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:f.value.includes(V.value)}]),onClick:()=>_(V)},[t.multiple?(e.openBlock(),e.createBlock(L,{key:0,checked:f.value.includes(V.value),onChange:()=>_(V),onClick:C[3]||(C[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(H,{key:1,checked:f.value.includes(V.value),onChange:()=>_(V),onClick:C[4]||(C[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",kt,[e.createElementVNode("div",_t,e.toDisplayString(V.label),1)])],10,ut))),128))]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",Lt,e.toDisplayString(k.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(L,{checked:g.value,indeterminate:p.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",wt,[e.createVNode(I,{size:"small",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",size:"small",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",xt,[C[6]||(C[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Bt,[e.createVNode(I,{size:"small",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$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"]])),Tt={class:"hb-lib-form-item-filter-modal-search"},Nt={class:"hb-lib-form-item-filter-modal-buttons"},Ft={key:0},Se=A(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 i=t,c=o,s=e.ref(!1),r=e.ref(""),f=e.ref(),n=e.ref(),a=e.ref([]),h=e.ref([]),g=e.ref(),p=e.reactive({searchText:"",searchedColumn:""}),N=e.computed(()=>i.tableData.map(d=>(d.id=d.id||Math.random(),d))),w=e.computed(()=>i.tableColumn.map(d=>(d.customFilterDropdown&&(d.onFilter=(b,L)=>L[d.dataIndex].toString().toLowerCase().includes(b.toLowerCase()),d.onFilterDropdownVisibleChange=b=>{b&&setTimeout(()=>{f.value?.focus()},100)}),{...d}))),E=()=>{let d="";h.value.forEach(b=>{d=d+b[i.labelKey]+","}),r.value=d.substring(0,d.length-1),s.value=!1,c("handleConfirm",h.value)},T=()=>{s.value=!1},u=()=>{s.value=!0,e.nextTick(()=>{const d=g.value?.$el?.querySelector(".ant-table-body");d&&(d.scrollTop=0)})},y=()=>{a.value=[],h.value=[]},_=()=>{r.value="",y()},S=(d,b,L)=>{b(),p.searchText=d[0],p.searchedColumn=L},k=(d,b)=>{d({confirm:!0}),p.searchText="",b()},C=(d,b)=>{a.value=d,h.value=b};return l({resetInputVal:_}),(d,b)=>{const L=e.resolveComponent("a-input"),H=e.resolveComponent("a-button"),I=e.resolveComponent("a-table"),W=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:n},[e.createVNode(L,{readonly:"",onClick:u,value:r.value,"onUpdate:value":b[0]||(b[0]=B=>r.value=B),placeholder:d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(j.UnorderedListOutlined),{onClick:u})]),_:1},8,["value","placeholder"]),e.createVNode(W,{visible:s.value,"onUpdate:visible":b[1]||(b[1]=B=>s.value=B),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(H,{onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(H,{onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(H,{type:"primary",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{ref_key:"tableRef",ref:g,columns:w.value,dataSource:N.value,rowSelection:{selectedRowKeys:a.value,onChange:C},rowKey:B=>B[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:B,selectedKeys:V,confirm:P,clearFilters:R,column:Y})=>[e.createElementVNode("div",Tt,[e.createVNode(L,{ref_key:"searchInput",ref:f,placeholder:`请输入${Y.title}`,value:V[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:K=>B(K.target.value?[K.target.value]:[]),onPressEnter:K=>S(V,P,Y.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Nt,[e.createVNode(H,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:K=>k(R,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(H,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:K=>S(V,P,Y.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:B})=>[e.createVNode(e.unref(j.SearchOutlined),{style:e.normalizeStyle({color:B?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:B,column:V})=>[p.searchText&&p.searchedColumn===V.dataIndex?(e.openBlock(),e.createElementBlock("span",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`,"i")),(P,R)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[P.toLowerCase()===p.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:R,class:"highlight"},e.toDisplayString(P),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(P),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Ht={class:"hb-lib-table-act-box"},Vt=["onClick"],Et={href:"javascript:;",class:"hb-lib-table-main-action"},$t=["onClick"],Mt={href:"javascript:;",class:"hb-lib-table-more-action"},Dt=["onClick"],It={href:"javascript:;"},At=["onClick"],Ot={class:"hb-lib-table-confirm-modal-content"},we=A(z(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:i}=q.useI18n(),c=e.ref(!1),s=e.ref(!1),r=e.ref(null),f=e.computed(()=>o.actions.filter(T=>T.condition!==void 0?T.condition:!0)),n=e.computed(()=>f.value.slice(0,o.buttonDisplaysQuantity)),a=e.computed(()=>h(f.value.slice(o.buttonDisplaysQuantity)));function h(T){if(o.filterPermission)return o.filterPermission(T);let u=[],y=[];return u=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(u)||T.length===0?(u=[],[]):(u=u.filter(_=>_.type!="2"),T.forEach(_=>{(!_.permissionsTag||u.findIndex(S=>S.action===_.permissionsTag)!==-1)&&y.push(_)}),y)}const g=T=>{T.handler&&T.handler(o.record)},p=T=>{r.value=T,c.value=!0},N=()=>{if(r.value){s.value=!0;try{g(r.value),s.value=!1,c.value=!1}catch{s.value=!1}}},w=()=>{c.value=!1,r.value=null},E=e.computed(()=>r.value?{title:r.value.confirmTitle,content:r.value.confirmContent||r.value.confirmTitle}:{title:i("hbLibComp.hbTableAct.secendConfirm"),content:i("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:F.Dropdown,AMenu:F.Menu,AMenuItem:F.MenuItem,APopconfirm:F.Popconfirm,AModal:F.Modal,DownOutlined:j.DownOutlined}),(T,u)=>{const y=e.resolveComponent("a-divider"),_=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(S,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:k},[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:C=>p(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Vt)),[[_,S.permissionsTag||null]]),a.value&&a.value.length>0||k!==n.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(F.Popconfirm),{title:S.confirmTitle,onConfirm:C=>g(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Et,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[_,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),a.value&&a.value.length>0||k!==n.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):S.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(T.$slots,S.slot,{item:S},void 0,!0),a.value&&a.value.length>0||k!==n.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:C=>g(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,$t)),[[_,S.permissionsTag||null]]),a.value&&a.value.length>0||k!==n.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(y,{key:0,type:"vertical"},null,512)),[[_,S.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),a.value&&a.value.length>0?(e.openBlock(),e.createBlock(e.unref(F.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(F.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,k)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:k},{default:e.withCtx(()=>[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:C=>p(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Dt)),[[_,S.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:S.confirmTitle,onConfirm:C=>g(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",It,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[_,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[_,S.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:C=>g(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,At)),[[_,S.permissionsTag||null]])]),_:2},1024)),[[_,S.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Mt,[e.createTextVNode(e.toDisplayString(T.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(j.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(F.Modal),{visible:c.value,title:E.value.title,"confirm-loading":s.value,onOk:N,onCancel:w},{default:e.withCtx(()=>[e.createElementVNode("p",Ot,e.toDisplayString(E.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),xe=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(i=>i.width&&Number(i.width.toString().replace("px",""))||0).reduce((i,c)=>i+c,0)})});var zt=typeof global=="object"&&global&&global.Object===Object&&global,Pt=typeof self=="object"&&self&&self.Object===Object&&self,Be=zt||Pt||Function("return this")(),le=Be.Symbol,Te=Object.prototype,Rt=Te.hasOwnProperty,Ut=Te.toString,ee=le?le.toStringTag:void 0;function jt(t){var l=Rt.call(t,ee),o=t[ee];try{t[ee]=void 0;var i=!0}catch{}var c=Ut.call(t);return i&&(l?t[ee]=o:delete t[ee]),c}var Wt=Object.prototype,qt=Wt.toString;function Yt(t){return qt.call(t)}var Kt="[object Null]",Gt="[object Undefined]",Ne=le?le.toStringTag:void 0;function Jt(t){return t==null?t===void 0?Gt:Kt:Ne&&Ne in Object(t)?jt(t):Yt(t)}function Qt(t){return t!=null&&typeof t=="object"}var Zt="[object Symbol]";function Xt(t){return typeof t=="symbol"||Qt(t)&&Jt(t)==Zt}var vt=/\s/;function eo(t){for(var l=t.length;l--&&vt.test(t.charAt(l)););return l}var to=/^\s+/;function oo(t){return t&&t.slice(0,eo(t)+1).replace(to,"")}function ce(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Fe=NaN,lo=/^[-+]0x[0-9a-f]+$/i,ao=/^0b[01]+$/i,no=/^0o[0-7]+$/i,io=parseInt;function He(t){if(typeof t=="number")return t;if(Xt(t))return Fe;if(ce(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=ce(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=oo(t);var o=ao.test(t);return o||no.test(t)?io(t.slice(2),o?2:8):lo.test(t)?Fe:+t}var de=function(){return Be.Date.now()},ro="Expected a function",so=Math.max,co=Math.min;function Ve(t,l,o){var i,c,s,r,f,n,a=0,h=!1,g=!1,p=!0;if(typeof t!="function")throw new TypeError(ro);l=He(l)||0,ce(o)&&(h=!!o.leading,g="maxWait"in o,s=g?so(He(o.maxWait)||0,l):s,p="trailing"in o?!!o.trailing:p);function N(C){var d=i,b=c;return i=c=void 0,a=C,r=t.apply(b,d),r}function w(C){return a=C,f=setTimeout(u,l),h?N(C):r}function E(C){var d=C-n,b=C-a,L=l-d;return g?co(L,s-b):L}function T(C){var d=C-n,b=C-a;return n===void 0||d>=l||d<0||g&&b>=s}function u(){var C=de();if(T(C))return y(C);f=setTimeout(u,E(C))}function y(C){return f=void 0,p&&i?N(C):(i=c=void 0,r)}function _(){f!==void 0&&clearTimeout(f),a=0,i=n=c=f=void 0}function S(){return f===void 0?r:y(de())}function k(){var C=de(),d=T(C);if(i=arguments,c=this,n=C,d){if(f===void 0)return w(n);if(g)return clearTimeout(f),f=setTimeout(u,l),N(n)}return f===void 0&&(f=setTimeout(u,l)),r}return k.cancel=_,k.flush=S,k}const mo={key:0,class:"hb-lib-list-table-act"},po={class:"empty-container"},fo={key:1},bo={key:2},Ee=A(z(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),i=l,{t:c}=q.useI18n(),s=t,r=e.ref([]),f=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:n}=xe(r),a=e.ref(n.value),h=e.computed(()=>s.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,u=>{const y=u.filter(S=>S!=null&&S.checked);r.value=y.map(S=>{let k={...S,title:S.title||S.label,align:S.align||o.listTable?.align||"center"};k.ellipsis&&!k.needTooltip&&(k.needTooltip=!0);let C=s.defaultWidth||o.listTable?.defaultColWidth||150;if(!k.width)k.width=C;else if(typeof k.width=="string"){const d=parseInt(k.width,10);k.width=isNaN(d)?C:d}return k.resizable===void 0&&(k.resizable=!0),k});const{tableWidth:_}=xe(r);a.value=_.value},{immediate:!0,deep:!0});const g=Ve(()=>{i("resizeCol",r)},o.listTable?.colSaveTimeOut||800),p=(u,y)=>{if(y){const _=typeof u=="string"?parseInt(u,10):u;y.width=isNaN(_)?o.listTable?.defaultColWidth||150:_,e.nextTick(()=>{g()})}},N=(u,y,_)=>{u?.current&&i("change",u,y,_)},w=(u,y="YYYY-MM-DD HH:mm:ss")=>u?oe(u).format(y):"",E=(u,y)=>u&&y[u]||"",T=(u,y=o.listTable?.ellipsisNumber||20)=>u?u.length>y?`${u.substring(0,y)}...`:u:"";return(u,y)=>{const _=e.resolveComponent("a-empty"),S=e.resolveComponent("a-tooltip"),k=e.resolveComponent("HbLibCopy"),C=e.resolveComponent("a-tag"),d=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"||""})},[u.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",mo,[e.renderSlot(u.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(u.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(d,e.mergeProps(u.$attrs,{bordered:"",columns:r.value,tableLayout:"fixed",onResizeColumn:p,onChange:N,scroll:h.value?{x:a.value}:{x:a.value,y:e.unref(f).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",po,[e.createVNode(_,{description:e.unref(c)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[u.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:b})=>[e.renderSlot(u.$slots,"headerCell",{column:b,title:b.title},()=>[e.createTextVNode(e.toDisplayString(b.title),1)],!0)]),key:"0"}:void 0,u.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:b,record:L,index:H,text:I})=>[e.renderSlot(u.$slots,"bodyCell",{column:b,record:L,index:H,text:I},void 0,!0),b&&b.needTooltip&&!b.needCopy?(e.openBlock(),e.createBlock(S,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[b.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L[b.dataIndex]),1)]),_:2},1032,["placement"])):b&&b.needCopy&&!b.needTooltip?(e.openBlock(),e.createElementBlock("div",fo,[e.createTextVNode(e.toDisplayString(L[b.dataIndex])+" ",1),e.createVNode(k,{"cp-text":L[b.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),b&&b.needTooltip&&b.needCopy?(e.openBlock(),e.createElementBlock("div",bo,[e.createVNode(S,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[b.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(T(L[b.dataIndex],b.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(k,{"cp-text":L[b.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):b&&b.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(w(L[b.dataIndex],b.format)),1)],64)):b&&b.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[E(L[b.dataIndex],b.tags)?(e.openBlock(),e.createBlock(C,{key:0,color:E(L[b.dataIndex],b.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[b.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,u.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:b,index:L})=>[e.renderSlot(u.$slots,"expandedRowRender",{record:b,index:L},void 0,!0)]),key:"2"}:void 0,u.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:b})=>[e.renderSlot(u.$slots,"customFilterDropdown",{column:b},void 0,!0)]),key:"3"}:void 0,u.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:b})=>[e.renderSlot(u.$slots,"customFilterIcon",{column:b},void 0,!0)]),key:"4"}:void 0,u.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:b,record:L,index:H})=>[e.renderSlot(u.$slots,"expandIcon",{expanded:b,record:L,index:H},void 0,!0)]),key:"5"}:void 0,u.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,u.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,u.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),ho={class:"hb-lib-table-setting-box"},go={key:0,class:"hb-lib-table-drag-item"},yo={key:0,class:"hb-lib-table-drag-item-act"},Co=["onClick"],uo=["onClick"],ko={class:"hb-lib-table-set-btn-group"},_o={class:"select-all-container",style:{"margin-right":"10px"}},$e=A(z(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:i}=q.useI18n(),c=t,s=e.ref([]),r=e.computed(()=>n.value.filter(C=>C.checked));e.ref([]);const f=e.ref(!1),n=e.ref([]),a=e.ref(null),h=e.computed(()=>r.value.length>0&&r.value.length===s.value.length),g=e.computed(()=>r.value.length>0&&r.value.length<s.value.length),p=C=>{a.value=C.oldIndex},N=C=>{const d=C.newIndex;if(s.value.some(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=s.value.filter(I=>I.fixed==="left").length,H=s.value.length-s.value.filter(I=>I.fixed==="right").length;if((L>0&&d<L||H<s.value.length&&d>=H)&&(F.message.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")),a.value!==null)){const I=n.value.splice(d,1)[0];n.value.splice(a.value,0,I)}}a.value=null},w=C=>{C.target.checked?n.value.forEach(b=>b.checked=!0):n.value.forEach(b=>{b.dataIndex!=="action"&&b.dataIndex!=="actions"&&(b.checked=!1)})},E=()=>{s.value=c.localColumns.map(d=>({...d,label:d.title&&d.title.tag?_(d.title):d.title||d.title2,value:d.dataIndex,checked:d.checked||d.checked===void 0})),n.value=[...s.value];let C=[];c.tableColumns.forEach(function(d){C.push(d.dataIndex)})},T=(C,d)=>{d?C.checked=!0:C.checked=!1},u=()=>{s.value=[...n.value],o("on-get-columns",s.value),f.value=!1},y=()=>{s.value=c.tableColumns.map(d=>({...d,label:d.title&&d.title.tag?_(d.title):d.title||d.title2,value:d.dataIndex,checked:d.checked||d.checked===void 0})),n.value=[...s.value];let C=[];c.tableColumns.forEach(function(d){C.push(d.dataIndex)})},_=C=>C.children[0].text,S=C=>{delete C.fixed;const d=n.value.findIndex(b=>b.value===C.value);if(d!==-1){let b=-1;for(let L=0;L<n.value.length;L++)n.value[L].fixed==="left"&&(b=L);if(b!==-1&&d!==b+1){const L=[...n.value],[H]=L.splice(d,1);L.splice(b+1,0,H),n.value=L}}},k=C=>{const d=n.value.findIndex(b=>b.value===C.value);if(d!==-1){let b=-1;for(let W=0;W<n.value.length;W++)n.value[W].fixed==="left"&&(b=W);const L=[...n.value],[H]=L.splice(d,1);H.fixed="left";const I=b===-1?0:b+1;L.splice(I,0,H),n.value=L}};return e.watch(()=>c.tableColumns,()=>{y()},{immediate:!0,deep:!0}),(C,d)=>{const b=e.resolveComponent("a-tooltip"),L=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",ho,[e.createVNode(e.unref(F.Popover),{title:e.unref(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:f.value,"onUpdate:visible":d[1]||(d[1]=H=>f.value=H)},{content:e.withCtx(()=>[e.createVNode(e.unref(te),{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=H=>n.value=H),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:p,onEnd:N},{item:e.withCtx(({element:H})=>[H.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",go,[e.createVNode(e.unref(F.Checkbox),{checked:H.checked,onChange:I=>T(H,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(H.label),1)]),_:2},1032,["checked","onChange"]),H.checked?(e.openBlock(),e.createElementBlock("section",yo,[e.createElementVNode("span",{class:e.normalizeClass(H.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),H.fixed?(e.openBlock(),e.createBlock(b,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>S(H)},[...d[2]||(d[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,Co)]),_:2},1024)):e.createCommentVNode("",!0),H.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>k(H)},[...d[3]||(d[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,uo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ko,[e.createElementVNode("div",_o,[e.createVNode(e.unref(F.Checkbox),{checked:h.value,indeterminate:g.value,onChange:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),c.localColumns.length?(e.openBlock(),e.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(L,{onClick:u,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(b,{title:e.unref(i)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...d[4]||(d[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-07a63550"]])),Me=A(z(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,i=e.useAttrs(),c=e.computed(()=>{const w=i,E=w.dropdownClassName;return{...w,dropdownClassName:E??"hb_lib_form_tooltip_select__dropdown"}}),s=e.ref(),r=e.useModel(t,"value"),f=e.computed(()=>o.options??[]),n=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),a=w=>w.tooltip??w.label,h=w=>w.key??w.label,g=w=>!!(o.enableTooltip&&a(w));return l({focus:()=>{s.value?.focus?.()},blur:()=>{s.value?.blur?.()},selectRef:s}),(w,E)=>(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({ref_key:"selectRef",ref:s},c.value,{value:r.value,"onUpdate:value":E[0]||(E[0]=T=>r.value=T),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[w.$slots.default?e.renderSlot(w.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(f.value,T=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:h(T),value:T.value,disabled:T.disabled},{ref_for:!0},T.optionProps),{default:e.withCtx(()=>[g(T)?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:a(T),placement:o.tooltipPlacement,"overlay-style":n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(T.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(T.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Lo={class:"ant-upload-drag-icon"},So={class:"ant-upload-text"},wo={style:{color:"#ff5000"}},xo={class:"ant-upload-hint"},Bo={key:0,class:"hb_import_btn"},To=["href"],De=A(z(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:l}){const{t:o}=q.useI18n(),i=e.ref(),c=t,s=e.ref(!1),r=e.reactive({fileList:[],visible:!1}),f=p=>{if(p==null)return;const N=r.fileList.indexOf(p);if(N!==-1){const w=r.fileList.slice();w.splice(N,1),r.fileList=w}},n=()=>{r.visible=!1,r.fileList=[],s.value=!1},a=p=>(r.fileList=[p],c.beforeUpload?c.beforeUpload(p.originFileObj):!1),h=()=>{i.value.validateFields().then(()=>{c.beforeSubmit&&(s.value=!0,c.beforeSubmit(r.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},g=()=>{r.visible=!0};return l({handleCancel:n,openModal:g,confirmLoading:s}),(p,N)=>{const w=e.resolveComponent("a-upload-dragger"),E=e.resolveComponent("a-form-item"),T=e.resolveComponent("a-form"),u=e.resolveComponent("a-modal"),y=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,e.mergeProps({visible:r.visible,"onUpdate:visible":N[0]||(N[0]=_=>r.visible=_),title:c.title,"confirm-loading":s.value},p.$attrs,{width:c.modalWidth,onCancel:n,onOk:h}),{default:e.withCtx(()=>[e.createVNode(T,{ref_key:"modalFormRef",ref:i,model:r},{default:e.withCtx(()=>[e.createVNode(E,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:c.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(w,{"max-count":c.maxCount,multiple:c.multiple,accept:c.acceptFile,name:"file","file-list":r.fileList,"before-upload":a,onRemove:f},{default:e.withCtx(()=>[e.createElementVNode("p",Lo,[e.createVNode(e.unref(j.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",So,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",wo,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",xo,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(c.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),c.templateUrl?(e.openBlock(),e.createElementBlock("p",Bo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:c.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,To)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(p.$slots,"btn",{},()=>[e.createVNode(y,{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),No={class:"hb_lib_log_modal_content"},Fo={class:"log_remark"},Ie=A(z(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:l,emit:o}){const{t:i}=q.useI18n(),c=e.useSlots(),s=t,r=[{title:i("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:i("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:i("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],f=e.computed(()=>s.columns||r),n=e.computed(()=>s.title||i("hbLibComp.HbLogModal.operateLogs")),a=e.computed(()=>!!c.title),h=e.ref(!1),g=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(y,_)=>_[0]+"-"+_[1]+" 总共"+y+"页",total:0}});e.watch(()=>s.pagination,y=>{y&&(g.pagination={...g.pagination,...y})},{deep:!0,immediate:!0});const p=()=>{const y={pageIndex:g.pagination.current,pageSize:g.pagination.pageSize,query:s.params};s.getLogData&&(h.value=!0,s.getLogData(y).then(_=>{Number(_.code)==200?(g.pagination.total=Number(_.data.total),g.list=_.data[s.dataStr]||[]):F.message.error(_.message)}).finally(()=>{h.value=!1}))},N=y=>{g.pagination.current=y.current,g.pagination.pageSize=y.pageSize,p()},w=()=>{g.list=[],u("update:visible",!1)},E=()=>{u("update:visible",!0)},T=(y,_="YYYY-MM-DD HH:mm:ss")=>y?oe(y).format(_):"",u=o;return e.watch(()=>s.visible,y=>{y&&p()}),l({close:w,loading:h}),(y,_)=>{const S=e.resolveComponent("a-tooltip"),k=e.resolveComponent("HbLibCopy"),C=e.resolveComponent("a-table"),d=e.resolveComponent("a-button"),b=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b,e.mergeProps(y.$attrs,{visible:t.visible,title:a.value?void 0:n.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:w}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(d,{onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",No,[e.createVNode(C,{bordered:"",rowKey:"id",columns:f.value,dataSource:g.list,pagination:g.pagination,loading:h.value,scroll:{y:t.scrollY},onChange:N},e.createSlots({bodyCell:e.withCtx(({column:L,record:H})=>[L&&L.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.needTooltip?(e.openBlock(),e.createBlock(S,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(H[L.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(H[L.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),L&&L.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Fo,e.toDisplayString(H[L.dataIndex]),1),e.createVNode(k,{"cp-text":H[L.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),L&&L.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(T(H[L.dataIndex],L.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[y.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:L})=>[e.renderSlot(y.$slots,"headerCell",{column:L},()=>[e.createTextVNode(e.toDisplayString(L.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[a.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(y.$slots,"default",{key:0},()=>[e.createVNode(d,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Ho={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}},Vo={class:"hb_ui_config"},Eo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,i=>{o=e.reactive(Q.merge({},Ho,i))},{deep:!0,immediate:!0}),e.provide(me,o),(i,c)=>(e.openBlock(),e.createElementBlock("div",Vo,[e.renderSlot(i.$slots,"default")]))}}),me=Symbol("GLOBAL_CONFIG_KEY"),Ae=A(Eo),$o={class:"hb_card"},Mo={key:0,class:"hb_card_header"},Do={class:"hb_fix"},Io={class:"hb_card_header-title"},Ao={class:"hb_card_header-action"},Oo={class:"hb_card_body"},Oe=A(z(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(me),o=t,i=e.computed(()=>{let c=o.formItemMb||l?.HbLibCard?.formItemMb;return c?{"--hb-card-form-item-mb":c+"px"}:{}});return(c,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},c.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",$o,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("div",Do,[e.createElementVNode("span",Io,[e.renderSlot(c.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",Ao,[e.renderSlot(c.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Oo,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(i.value)},[e.renderSlot(c.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),zo=["onClick"],Po={class:"step"},Ro={key:0,class:"line"},Uo=["title"],ze=A(z(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),i=l.offsetTop??160,c=e.computed(()=>l.anchors.filter(n=>typeof n.visible=="function"?n.visible():n.visible!==!1)),s=()=>{const n=l.containerSelector||"#subpackage_container";return document.querySelector(n)||window},r=n=>{const a=s(),h=n.target.startsWith("#")||n.target.startsWith(".")?n.target:`#${n.target}`,g=document.querySelector(h);if(!g)return;let p=g.offsetTop;a instanceof HTMLElement&&(p-=a.offsetTop),p-=i,a instanceof Window?window.scrollTo({top:p,behavior:"smooth"}):a.scrollTo({top:p,behavior:"smooth"}),o.value=n.target},f=()=>{const n=s();let a=0;n instanceof Window?a=window.scrollY+i+5:a=n.scrollTop+i+5;let h=c.value[0]?.target||"";for(const g of c.value){const p=g.target.startsWith("#")||g.target.startsWith(".")?g.target:`#${g.target}`,N=document.querySelector(p);if(!N)continue;let w=N.offsetTop;n instanceof HTMLElement&&(w-=n.offsetTop),a>=w&&(h=g.target)}o.value=h};return e.onMounted(()=>{s().addEventListener("scroll",f),f()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",f)}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(h,g)=>(e.openBlock(),e.createElementBlock("div",{key:h.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===h.target}]),onClick:p=>r(h)},[e.createElementVNode("div",Po,[g!==c.value.length-1?(e.openBlock(),e.createElementBlock("div",Ro)):e.createCommentVNode("",!0),a[0]||(a[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:h.title},e.toDisplayString(h.title.length>12?h.title.slice(0,12)+"...":h.title),9,Uo)],10,zo))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),jo={class:"hb_detail_top_act_left"},Wo={key:1,class:"hb_detail_top_wrapper_sticky"},qo={class:"hb_detail_top_act"},Yo={key:0,class:"hb_detail_all_info"},Ko={class:"hb_detail_all_info_left"},Go={class:"hb_detail_info_title"},Jo={key:0,class:"hb_detail_info_content"},Qo={class:"create_by"},Zo={class:"hb_detail_all_info_right"},Xo={class:"hb_edit_detail_content_wrapper"},vo={class:"hb_detail_content"},el={class:"hb-back-top-inner"},Pe=A(z(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=q.useI18n(),o=t,i=e.inject(me),c=()=>{o.backFn?o.backFn():window.history.back()},s=e.computed(()=>o.backTopBottom||i?.HbLibDetailBox?.backTopBottom||80),r=e.computed(()=>{const E={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||i?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||i?.HbLibDetailBox?.descValueWidth}:E}),f=()=>document.querySelector(o.container),n=e.ref(!1),a=e.ref(null),{top:h}=Z.useElementBounding(a),g=e.computed(f),{y:p}=Z.useScroll(g);e.watch(p,E=>{n.value=E>h.value},{immediate:!0});const N=E=>{document.querySelectorAll(".hb_card_body").forEach(u=>{u.querySelectorAll(".ant-descriptions-item-content span").forEach(_=>{_.textContent?.trim()||(_.textContent=E)})})};let w=null;return e.onMounted(()=>{i?.HbLibDetailBox?.needSetDesDefault&&(w=setTimeout(()=>{N(i?.HbLibDetailBox?.desDefault)},i?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{w&&clearTimeout(w)}),(E,T)=>{const u=e.resolveComponent("RollbackOutlined"),y=e.resolveComponent("a-divider"),_=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(_,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",r.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":r.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":r.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",n.value?"can_show":""])},[e.createElementVNode("div",jo,[e.createVNode(u,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:c},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{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",Wo,[e.createElementVNode("div",qo,[e.createVNode(u),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:c},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("aside",Ko,[e.renderSlot(E.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",Go,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("span",Qo,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",Zo,[e.renderSlot(E.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Xo,[e.createElementVNode("div",vo,[e.renderSlot(E.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(F.BackTop),{target:f,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",el,[e.createVNode(e.unref(j.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),Re=A(z(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(n,a=300)=>Ve(n,a),i=e.computed(()=>l.buttons.filter(a=>{if(a.condition===void 0||a.condition===null)return!0;if(typeof a.condition=="boolean")return a.condition;if(typeof a.condition=="function")return a.condition()}).map(a=>({...a,onClick:o(a.onClick,a.debounceTime||300)}))),c=e.ref(0),s=n=>{let a=0;return(Array.isArray(n)?n:[n]).forEach(g=>{let p=[];if(g.startsWith("#")){const N=document.getElementById(g.slice(1));N&&p.push(N)}else p=Array.from(document.getElementsByClassName(g));p.forEach(N=>{a+=N.offsetWidth||0})}),a},r=()=>{l.leftElements&&(c.value=s(l.leftElements)+1)};let f=null;return e.onMounted(()=>{const n=l.getContainer();n!==window&&n instanceof HTMLElement&&n.addEventListener("scroll",()=>{}),r(),f=new MutationObserver(()=>{r()});const a=document.body;f.observe(a,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{f&&f.disconnect()}),(n,a)=>{const h=e.resolveComponent("a-button"),g=e.resolveComponent("a-space"),p=e.resolveComponent("a-affix"),N=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":c.value+"px"})},[e.createVNode(p,{"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(g,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,w=>e.withDirectives((e.openBlock(),e.createBlock(h,{key:w.key,type:w.type||"default",danger:w.danger,loading:w.loading,disabled:w.disabled,onClick:w.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[N,w.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),tl={class:"modal__detail-content"},Ue=A(z(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:l,emit:o}){const i=o,c=t,s=e.computed({get:()=>c.visible,set:H=>i("update:visible",H)}),r=e.ref(null),f=e.computed(()=>({top:"10px",...c.modalStyle})),n=e.computed(()=>({overflow:"hidden",...c.modalStyle})),a=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...c.bodyStyle})),{x:h,y:g,isDragging:p}=Z.useDraggable(r),N=e.ref(0),w=e.ref(0),E=e.ref(!1),T=e.ref(0),u=e.ref(0),y=e.ref(0),_=e.ref(0),S=e.ref({left:0,right:0,top:0,bottom:0});let k=null;const C=()=>{T.value=0,u.value=0,y.value=0,_.value=0,E.value=!1};e.watch(s,H=>{H?setTimeout(()=>{C()},50):(k&&clearTimeout(k),k=setTimeout(()=>{T.value=0,u.value=0,y.value=0,_.value=0},300))}),e.watch([h,g],()=>{if(!E.value){N.value=h.value,w.value=g.value;const H=document.body.getBoundingClientRect(),I=r.value.getBoundingClientRect();S.value.right=H.width-I.width,S.value.bottom=H.height-I.height,y.value=T.value,_.value=u.value}E.value=!0}),e.watch(p,()=>{p||(E.value=!1)}),e.watchEffect(()=>{E.value&&(T.value=y.value+Math.min(Math.max(S.value.left,h.value),S.value.right)-N.value,u.value=_.value+Math.min(Math.max(S.value.top,g.value),S.value.bottom)-w.value)});const d=e.computed(()=>({transform:`translate(${T.value}px, ${u.value}px)`})),b=()=>{i("cancel")},L=()=>{i("ok")};return e.onUnmounted(()=>{k&&clearTimeout(k)}),l({handleOk:L,handleCancel:b}),(H,I)=>{const W=e.resolveComponent("a-spin"),B=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(B,e.mergeProps({style:f.value,bodyStyle:a.value,ref:"modalRef",visible:s.value,"onUpdate:visible":I[0]||(I[0]=V=>s.value=V),"wrap-style":n.value,onOk:L,onCancel:b},H.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:r,style:{width:"100%",cursor:"move"}},[e.renderSlot(H.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:V})=>[(e.openBlock(),e.createElementBlock("div",{key:s.value,style:e.normalizeStyle(d.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V)))],4))]),default:e.withCtx(()=>[e.createVNode(W,{spinning:c.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([t.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",t.descLabelWidth&&"hb_need_set_desc_label_width",t.descValueWidth&&"hb_need_set_desc_value_width"]),style:e.normalizeStyle({"--hb-detail-desc-label-width":t.descLabelWidth+"px","--hb-detail-desc-value-width":t.descValueWidth+"px"})},[e.createElementVNode("div",tl,[e.renderSlot(H.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[H.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(H.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),ol={key:0,class:"hb_edit_header"},ll={class:"__detail-content"},al={key:1,class:"hb_edit_footer"},nl={class:"hb-back-top-inner"},je=A(z(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const l=e.ref("vertical"),o=t,i=()=>document.querySelector(o.container),c=e.inject("GLOBAL_CONFIG_KEY"),s=e.computed(()=>o.backTopBottom||c?.HbLibUnDetailBox?.backTopBottom||80);return(r,f)=>(e.openBlock(),e.createBlock(e.unref(F.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},r.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[r.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",ol,[e.renderSlot(r.$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",ll,[e.renderSlot(r.$slots,"editContent",{},void 0,!0)])],2),r.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",al,[e.renderSlot(r.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(F.BackTop),{target:i,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",nl,[e.createVNode(e.unref(j.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),il={class:"hb_edit_header_left"},rl={class:"hb_edit_header_title"},sl={class:"hb_edit_header_right"},We=A(z(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=q.useI18n(),o=t,i=re.useRoute(),c=e.ref(0),s=e.computed(()=>i?.meta?.title||"");function r(p,N="offsetHeight"){let w=0;return(Array.isArray(p)?p:[p]).forEach(T=>{let u=[];if(T.startsWith("#")){const y=document.getElementById(T.slice(1));y&&u.push(y)}else u=Array.from(document.getElementsByClassName(T));u.forEach(y=>{w+=y[N]||0})}),w}const f=()=>{o.topElements&&(c.value=r(o.topElements))},n=e.ref(0),a=()=>{o.leftElements&&(n.value=r(o.leftElements,"offsetWidth")+1)};let h=null;e.onMounted(()=>{f(),a(),window.addEventListener("resize",f),h=new MutationObserver(()=>{a()});const p=document.body;h.observe(p,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",f),h&&h.disconnect()}),e.watch(()=>o.topElements,()=>{f()},{immediate:!0});const g=()=>{o.backFn?o.backFn():window.history.back()};return(p,N)=>{const w=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:c.value+"px","--pageHeaderOrFonterLeft":n.value+"px"})},[e.createElementVNode("aside",il,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:g},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(w,{type:"vertical"}),e.createElementVNode("span",rl,e.toDisplayString(s.value),1)]),e.createElementVNode("aside",sl,[e.renderSlot(p.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),cl={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"}},pe=A(z(e.defineComponent({name:"HbLibCopy",__name:"copy",props:cl,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const i=e.computed(()=>l.tooltipTitle||"复制"),c=e.computed(()=>l.copySuccessTip||"复制成功"),s=e.computed(()=>l.copyFailTip||"复制失败"),r=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 a=l.data.find(h=>h?.[l.K]===l.V);n=a?a[l.L]:""}}else l.K&&(n=l.data[l.K]);return n}),f=()=>{navigator.clipboard.writeText(r.value).then(()=>{F.message.success(c.value)}).catch(()=>{F.message.error(s.value)})};return(n,a)=>r.value?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:i.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...n.cpStyle}),onClick:e.withModifiers(f,["stop","prevent"])},[...a[0]||(a[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),dl={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=A(z(e.defineComponent({name:"HbDrag",__name:"index",props:dl,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,i=e.shallowRef([]);e.watch(()=>o.dragList,h=>{i.value=h},{deep:!0,immediate:!0});const c=se("drag"),s=l,r=h=>{console.log("drag start",h),s("handleDragStart",h)},f=h=>{console.log("drag end",h),s("handleDragEnd",h)},n=h=>{console.log("drag add",h),s("handleDragAdd",h)},a=h=>{console.log("drag remove",h),s("handleDragRemove",h)};return(h,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(c).b())},[h.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(te),e.mergeProps({key:0,modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=p=>i.value=p),"item-key":"key",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:r,onEnd:f,onAdd:n,onRemove:a}),{item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(te),e.mergeProps({key:1,modelValue:i.value,"onUpdate:modelValue":g[1]||(g[1]=p=>i.value=p),"item-key":"id",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:r,onEnd:f,onAdd:n,onRemove:a}),{item:e.withCtx(({element:p})=>[e.createElementVNode("div",null,[e.renderSlot(h.$slots,"default",{item:p},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),ml={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Ye=A(z(e.defineComponent({name:"HbLibSort",__name:"sort",props:ml,emits:["change"],setup(t,{expose:l,emit:o}){const i=t,c=o,s=e.ref([]),r=e.ref("");e.watch(()=>i.menuItems,n=>{let a=[];Array.isArray(n)&&n.length&&n.forEach(h=>{a=[...a,{label:`${h.label}升序`,value:`${h.value}`,sort:"Asc"},{label:`${h.label}降序`,value:`${h.value}`,sort:"Desc"}]}),s.value=a},{deep:!0,immediate:!0});const f=n=>{r.value=n.value+n.sort,i.getSort&&i.getSort({orderFeild:n.value,orderBy:n.sort}),c("change",r)};return l({currentActiveItem:r}),(n,a)=>{const h=e.resolveComponent("a-menu-item"),g=e.resolveComponent("a-menu"),p=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(p,{trigger:[i.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,N=>(e.openBlock(),e.createBlock(h,{key:N.value+N.sort,onClick:w=>f(N)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(r.value==N.value+N.sort?"activted":"")},e.toDisplayString(N.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(i.colText)+" ",1),e.createVNode(e.unref(j.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),pl={class:"hb_lib_loading"},fl={class:"hb_lib_loading_loading_anima"},bl={class:"hb_lib_loading_load_tips"},Ke=A(z(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=q.useI18n(),o=t,i=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(c,s)=>(e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("div",fl,[s[0]||(s[0]=e.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),e.createElementVNode("div",bl,e.toDisplayString(i.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),hl=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:ze,HbLibCard:Oe,HbLibCopy:pe,HbLibDetailBox:Pe,HbLibFooterBar:Re,HbLibFormItemFilterModal:ye,HbLibFormTooltipSelect:Me,HbLibFuncCompDrag:qe,HbLibImportFile:De,HbLibListBtnsAct:ke,HbLibListForm:Ce,HbLibListMultiSelect:Le,HbLibListPageAct:ue,HbLibListPageContainer:_e,HbLibListTable:Ee,HbLibLoading:Ke,HbLibLogModal:Ie,HbLibModal:Ue,HbLibMutilpleSelectModal:Se,HbLibPageHeader:We,HbLibSort:Ye,HbLibTableAct:we,HbLibTableColumnSet:$e,HbLibUnDetailBox:je,HbUiConfig:Ae},Symbol.toStringTag,{value:"Module"})),G=new Map;let Ge;Z.isClient&&(document.addEventListener("mousedown",t=>Ge=t),document.addEventListener("mouseup",t=>{for(const l of G.values())for(const{documentHandler:o}of l)o(t,Ge)}));function Je(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(i,c){const s=l.instance.popperRef,r=i.target,f=c?.target,n=!l||!l.instance,a=!r||!f,h=t.contains(r)||t.contains(f),g=t===r,p=o.length&&o.some(w=>w?.contains(r))||o.length&&o.includes(f),N=s&&(s.contains(r)||s.contains(f));n||a||h||g||p||N||l.value(i,c)}}const gl={beforeMount(t,l){G.has(t)||G.set(t,[]),G.get(t).push({documentHandler:Je(t,l),bindingFn:l.value})},updated(t,l){G.has(t)||G.set(t,[]);const o=G.get(t),i=o.findIndex(s=>s.bindingFn===l.oldValue),c={documentHandler:Je(t,l),bindingFn:l.value};i>=0?o.splice(i,1,c):o.push(c)},unmounted(t){G.delete(t)}},yl={mounted(t,l){const{value:o,arg:i}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const c=parseInt(i,10)||300;let s;t.__debounceHandler__=function(...r){s&&clearTimeout(s),s=setTimeout(()=>{o(...r)},c)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},Qe=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(pe,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},Cl={cos:gl,dc:yl,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}Qe(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&Qe(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}},ul={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"}}},kl={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:"戻る"}}},_l={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:"加载中...如长时间加载请重试!"}}},Ll={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 ae={exports:{}},Sl=ae.exports,Ze;function wl(){return Ze||(Ze=1,(function(t,l){(function(o,i){t.exports=i(oe)})(Sl,(function(o){function i(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var c=i(o),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(r,f){return f==="W"?r+"周":r+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(r,f){var n=100*r+f;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return c.default.locale(s,null,!0),s}))})(ae)),ae.exports}wl(),oe.locale("zh-cn");const xl={en_US:ul,ja_JP:kl,zh_CN:_l,de_DE:Ll},Bl=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(hl).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),Object.entries(Cl).forEach(([o,i])=>{t.directive(o,i)})};M.HbLibAnchor=ze,M.HbLibCard=Oe,M.HbLibCopy=pe,M.HbLibDetailBox=Pe,M.HbLibFooterBar=Re,M.HbLibFormItemFilterModal=ye,M.HbLibFormTooltipSelect=Me,M.HbLibFuncCompDrag=qe,M.HbLibImportFile=De,M.HbLibListBtnsAct=ke,M.HbLibListForm=Ce,M.HbLibListMultiSelect=Le,M.HbLibListPageAct=ue,M.HbLibListPageContainer=_e,M.HbLibListTable=Ee,M.HbLibLoading=Ke,M.HbLibLogModal=Ie,M.HbLibModal=Ue,M.HbLibMutilpleSelectModal=Se,M.HbLibPageHeader=We,M.HbLibSort=Ye,M.HbLibTableAct=we,M.HbLibTableColumnSet=$e,M.HbLibUnDetailBox=je,M.HbUiConfig=Ae,M.install=Bl,M.locales=xl,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function($,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],e):($=typeof globalThis<"u"?globalThis:$||self,e($.HbComponentLib={},$.Vue,$.draggable,$.antDesignVue,$.vueRouter,$.vueI18n,$.lodash,$.iconsVue,$.core,$.dayjs))})(this,(function($,e,le,F,ce,K,Q,Y,Z,ne){"use strict";const de=(t="")=>{const l=`hb-${t}`;return rt(l)},v=(t,l,o,n)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),n&&(t+=`--${n}`),t),rt=t=>({b:l=>l?v(t,l,"",""):v(t,"","",""),e:l=>l?v(t,"",l,""):"",m:l=>v(t,"","",l),be:(l,o)=>v(t,l,o,""),em:(l,o)=>v(t,"",l,o),bem:(l,o,n)=>v(t,l,o,n),is:(l,o)=>o?`is-${l}`:""}),st=["onMouseenter","onMouseleave"],ct=["onClick"],dt=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),r=K.useI18n().t,s=K.useI18n().messages.value.en_US,c=K.useI18n().messages.value.ja_JP,b=K.useI18n().messages.value.zh_CN,a=t,i=e.computed(()=>a.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.computed(()=>a.title||r("hbLibComp.hbFormItemFilterModal.title")),m=o,f=de("sfcm"),N=ce.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),H=e.ref(!1),E=e.ref(600);let p=[];const d=e.ref([]),u=e.ref([]),S=e.computed(()=>d.value.every(y=>y.isLinked||y.isFixed)),_=y=>({...y,label:x(y)||`${V(y)||""} (${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:y.key,isFixed:y?.isFixed||!1,isLinked:y?.isLinked||!1,labelLanguage:y?.labelLanguage||void 0}),k=y=>{const I=y.draggedContext.element,T=y.relatedContext.index;if(I.isLinked||I.isFixed)return!1;const P=d.value.map((q,X)=>({item:q,index:X})).filter(({item:q})=>q.isLinked).map(({index:q})=>q);if(P.length===0)return!0;for(let q=0;q<P.length-1;q++){const X=P[q],ee=P[q+1];if(T>X&&T<ee)return!1}return!0},g=e.computed(()=>C()+"_"+a.saveKey),C=()=>{const y=localStorage.getItem("pro__Login_Userinfo");let I="anonymous";if(y)try{I=JSON.parse(y).value.jobNumber||"anonymous"}catch(P){console.warn("解析用户信息失败:",P)}let T=N?.path;return`searchFormConfig_${I}_${T}`},x=y=>({ja_JP:()=>Q.get(c,y.labelLanguage||""),en_US:()=>Q.get(s,y.labelLanguage||""),zh_CN:()=>Q.get(b,y.labelLanguage||"")})[B.lan]?.()||y.label,V=y=>({ja_JP:()=>Q.get(c,y.subLabelLanguage||""),en_US:()=>Q.get(s,y.subLabelLanguage||""),zh_CN:()=>Q.get(b,y.subLabelLanguage||"")})[B.lan]?.()||y.subLabel,M=()=>{try{const y=localStorage.getItem(g.value);if(y){const I=JSON.parse(y);if(I.originalList&&Array.isArray(I.originalList)){p=JSON.parse(JSON.stringify(I.originalList));const T=p.filter(D=>D?.isFixed),P=p.filter(D=>D?.isLinked),q=I.showList.filter(D=>!D.isFixed&&!D.isLinked),X=i.value&&i.value>0?Math.max(0,i.value-T.length-P.length):q.length,ee=T.map(D=>({..._(D)})),se=P.map(D=>({..._(D)})),ge=q.slice(0,X).map(D=>({..._(D)}));d.value=[...ee,...se,...ge];const ue=d.value.map(D=>D.key),ye=p.map(D=>D.key).filter(D=>!ue.includes(D));return u.value=p.filter(D=>ye.includes(D.key)).map(D=>({..._(D),active:!1})),!0}}}catch(y){console.warn("加载保存的搜索配置失败:",y)}return!1},j=()=>{try{const y={originalList:p,showList:d.value.map(I=>({...I,key:I.key,label:I.label,isFixed:I.isFixed,isLinked:I.isLinked,labelLanguage:I?.labelLanguage||void 0}))};localStorage.setItem(g.value,JSON.stringify(y))}catch(y){console.warn("保存搜索配置失败:",y)}},w=e.computed(()=>{const y=d.value.filter(T=>!T.isFixed&&!T.isLinked).length,I=d.value.filter(T=>T.isFixed||T.isLinked).length;return y>=i.value-I});e.watch(()=>a.list,y=>{let I=JSON.stringify(d.value)!==JSON.stringify(y);if(!I)return;const T=localStorage.getItem(g.value),P=JSON.parse(T||"{}");if(P&&P?.originalList&&Array.isArray(P.originalList))M(),m("confirm",d.value);else if(I){p=JSON.parse(JSON.stringify(y));const q=y.filter(D=>D?.isFixed),X=y.filter(D=>D?.isLinked),ee=y.filter(D=>!D?.isFixed&&!D?.isLinked),se=i.value&&i.value>0?Math.max(0,i.value-q.length-X.length):ee.length,ge=q.map(D=>_(D)),ue=X.map(D=>_(D)),it=ee.slice(0,se).map(D=>_(D));d.value=[...ge,...ue,...it];const ye=ee.slice(se).map(D=>({..._(D),active:!1}));u.value=ye,m("confirm",d.value)}},{immediate:!0});const L=y=>{const I=d.value.findIndex(T=>T.key===y.key);I!==-1&&(d.value.splice(I,1),u.value.push({...y,active:!1}))},z=y=>{if(w.value){F.message.warning(`当前已经超过${r(i.value)}个可选数量,请先删除已显示条件`);return}const I=u.value.findIndex(T=>T.key===y.key);if(I!==-1){const[T]=u.value.splice(I,1);d.value.push({...T,active:!1})}},A=()=>{H.value=!1},R=()=>{H.value=!0},W=()=>{j(),m("confirm",d.value),A()},G=y=>{const I=u.value.findIndex(T=>T.key===y.key);I!==-1&&(u.value[I].active=!0)},he=y=>{const I=u.value.findIndex(T=>T.key===y.key);I!==-1&&(u.value[I].active=!1)};return l({toOpenModal:R}),e.onMounted(()=>{}),(y,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(f).b())},[e.createVNode(e.unref(F.Modal),{visible:H.value,"onUpdate:visible":I[1]||(I[1]=T=>H.value=T),width:E.value,onCancel:A,onOk:W},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("title"))},e.toDisplayString(h.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(F.Button),{onClick:A},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(F.Button),{type:"primary",onClick:W},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__tag"))},[e.createVNode(e.unref(le),{modelValue:d.value,"onUpdate:modelValue":I[0]||(I[0]=T=>d.value=T),"item-key":"key",tag:"div",disabled:S.value,move:k},{item:e.withCtx(({element:T})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).e("show__tag__item"),e.unref(f).is("fixed",T.isFixed),e.unref(f).is("linked",T.isLinked)])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),!T.isFixed&&!T.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Y.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(f).e("show__tag__item-close")),onClick:P=>L(T)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(f).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("unshow__tag"))},[u.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.key,class:e.normalizeClass([e.unref(f).e("unshow__tag__item"),e.unref(f).is("fixed",T.isFixed||""),e.unref(f).is("linked",T.isLinked||"")]),onMouseenter:P=>G(T),onMouseleave:P=>he(T)},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),T.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(f).e("unshow__tag__item-add")),onClick:P=>z(T)},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.add")),11,ct)):e.createCommentVNode("",!0)],42,st))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(f).e("unshow__tag__empty"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(t,l)=>{const o=t.__vccOpts||t;for(const[n,r]of l)o[n]=r;return o},mt=U(dt,[["__scopeId","data-v-657502f3"]]);function O(t){const l=t;return l.install=o=>{const n=t.name;o.component(n??"AnonymousComponent",t)},l}const Ce=O(mt),pt={key:0,class:"form-footer"},ft={class:"scheme-fontWeight"},bt={class:"scheme-fontWeight"},ht={class:"scheme-fontWeight"},gt={class:"scheme-fontWeight"},ke=O(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),r=o,s=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>a.searchList||[]),b=de("form"),a=t,i=e.computed(()=>a.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),h=e.ref("show"),m=e.computed(()=>a.needFooter||n.HbLibListForm?.needFooter),f=e.computed(()=>[...a.items]),N=w=>w!==void 0,B=w=>typeof w=="function",H=w=>N(w.condition)?B(w.condition)?w.condition():w.condition:!0,E=e.computed(()=>[...a.items].map(w=>({...w,condition:H(w),label:w.label?.includes("多项搜索")?"":w.label})));console.log(E.value);const p=e.computed(()=>a.saveKey),d=e.ref(),u=()=>{r("handleSearch")},S=()=>{r("handleReset")},_=e.ref(),k=()=>{_.value&&_.value.toOpenModal()},g=w=>{r("handleMenuClick",w)},C=w=>{r("handleSfcmConfirm",w)};e.watch(()=>a.isFormExpanded,w=>{if(w){console.log(w);const L=document.querySelector("#subpackage_container");L instanceof HTMLElement&&(L.style.overflow="hidden",setTimeout(()=>{L.style.overflow="auto"},500))}});const x=w=>{const L=w;L.style.height="",L.offsetHeight},V=w=>{const L=w;L.style.height="",L.style.overflow="",e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})},M=w=>{const L=w,z=L.querySelector(".hb-lib-form--container");if(z){const A=z.offsetHeight;L.style.height=A+"px",L.style.overflow="hidden",L.offsetHeight,requestAnimationFrame(()=>{L.style.height="0"})}},j=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return l({formRef:d,SelectOption:F.SelectOption,Form:F.Form,FormItem:F.FormItem,Row:F.Row,Col:F.Col,Input:F.Input,Select:F.Select,CheckboxGroup:F.CheckboxGroup,Checkbox:F.Checkbox,DatePicker:F.DatePicker,InputNumber:F.InputNumber,RadioGroup:F.RadioGroup,Radio:F.Radio,Switch:F.Switch,Button:F.Button,Tooltip:F.Tooltip}),(w,L)=>{const z=e.resolveComponent("a-button"),A=e.resolveComponent("a-tooltip"),R=e.resolveComponent("a-menu-item"),W=e.resolveComponent("a-menu"),G=e.resolveComponent("a-dropdown"),he=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:x,onAfterEnter:V,onLeave:M,onAfterLeave:j},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(b).b(),"hb-lib-list-page-form-box","hb-form-item-ui",m.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(F.Form),e.mergeProps(w.$attrs,{model:t.formData,ref_key:"formRef",ref:d,class:["hb-lib-form--container",h.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(y,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:I},[y.condition?(e.openBlock(),e.createBlock(e.unref(F.FormItem),e.mergeProps({key:0,ref_for:!0},y,{name:y.key,class:{"hb-lib-form-item-border--unneed":y.isUnNeedBorder,"hb_lib_form_item--needShowAll":y.showAll}}),e.createSlots({default:e.withCtx(()=>[y.type==="slot"?e.renderSlot(w.$slots,y.key,{key:0,formData:t.formData,item:y},void 0,!0):e.createCommentVNode("",!0),y.type==="mixin"?e.renderSlot(w.$slots,y.key,{key:1,formData:t.formData,item:y},void 0,!0):e.createCommentVNode("",!0),y.type==="input"?(e.openBlock(),e.createBlock(e.unref(F.Input),e.mergeProps({key:2,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="select"?(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({key:3,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(T,P)=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),{key:P,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(F.CheckboxGroup),e.mergeProps({key:4,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(T,P)=>(e.openBlock(),e.createBlock(e.unref(F.Checkbox),{key:P,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(F.DatePicker),e.mergeProps({key:5,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(F.InputNumber),e.mergeProps({key:6,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="radio"?(e.openBlock(),e.createBlock(e.unref(F.RadioGroup),e.mergeProps({key:7,value:t.formData[y.key],"onUpdate:value":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(T,P)=>(e.openBlock(),e.createBlock(e.unref(F.Radio),{key:P,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),y.type==="switch"?(e.openBlock(),e.createBlock(e.unref(F.Switch),e.mergeProps({key:8,checked:t.formData[y.key],"onUpdate:checked":T=>t.formData[y.key]=T},{ref_for:!0},y.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[y.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label)+" ",1),e.createVNode(e.unref(F.Tooltip),{title:y.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",pt,[e.createVNode(z,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(z,{type:"link",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(A,{key:0,title:w.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...L[0]||(L[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(w.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(G,{key:0},{overlay:e.withCtx(()=>[e.createVNode(W,{onClick:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,y=>(e.openBlock(),e.createBlock(R,{key:y.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128)),e.createVNode(R,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",ft,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(R,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",bt,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{title:w.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...L[1]||(L[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(b).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("footer__left"))},[e.renderSlot(w.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b).e("footer__right"))},[h.value=="show"?e.renderSlot(w.$slots,"form-footer-right",{key:0,formRef:d.value},()=>[e.createVNode(z,{type:"primary",onClick:u,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(z,{type:"link",onClick:S,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(A,{key:0,title:w.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:k},[...L[2]||(L[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(w.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(G,{key:0},{overlay:e.withCtx(()=>[e.createVNode(W,{onClick:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,y=>(e.openBlock(),e.createBlock(R,{key:y.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128)),e.createVNode(R,{key:"add"},{default:e.withCtx(()=>[e.createElementVNode("span",ht,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(R,{key:"edit"},{default:e.withCtx(()=>[e.createElementVNode("span",gt,e.toDisplayString(w.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{title:w.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...L[3]||(L[3]=[e.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)],!0):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(he,{showNumber:i.value,list:f.value,ref_key:"HbSfCmRef",ref:_,onConfirm:C,saveKey:p.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),ut={class:"hb-lib-list-page-act-box"},yt={class:"hb-lib-list-page-breadcrumb"},Ct={class:"hb-lib-list-page-act"},kt={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},_t={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},_e=O(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:n,toggle:r}=Z.useFullscreen(document.body);e.watch(()=>n.value,a=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const h=new Map;setTimeout(a?()=>{if(i?.length)for(let m=0;m<i.length;m++){const f=document.querySelector(i[m]);f&&(h.set(i[m],f.style.display),f.style.display="none")}}:()=>{if(i?.length)for(let m=0;m<i.length;m++){const f=document.querySelector(i[m]);if(f){const N=h.get(i[m]);f.style.display=N||"",h.delete(i[m])}}},0)});const s=e.ref(""),c=()=>{const a=ce.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",h=a?.path;if(i!=="[]"){let m=JSON.parse(i).find(f=>f.value===h);m&&(s.value=m.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const b=a=>{a.keyCode===192&&r()};return e.onMounted(()=>{window.addEventListener("keydown",b)}),e.onUnmounted(()=>{window.removeEventListener("keydown",b)}),(a,i)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ut,[e.createElementVNode("aside",yt,e.toDisplayString(s.value),1),e.createElementVNode("aside",Ct,[e.createVNode(h,{title:e.unref(n)?`${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...m)=>e.unref(r)&&e.unref(r)(...m))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",_t,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",kt,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(a.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),wt={class:"hb-lib-list-btns-box"},Lt={class:"hb-lib-list-btns-left"},St={class:"hb-lib-list-btns-right"},we=O(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,n=e.ref(!0),r=()=>{n.value=!n.value,o("handleOpenOrClose",n.value)},s=()=>{o("handleReload")},c=b=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(b,a)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",wt,[e.createElementVNode("aside",Lt,[e.renderSlot(b.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",St,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:b.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:s},[...a[0]||(a[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:n.value?`${b.$t("hbLibComp.hbListBtnsAct.close")}`:`${b.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:r},[n.value?(e.openBlock(),e.createBlock(e.unref(Y.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Y.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(b.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),xt=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:n=300,timeOut:r=100}=t,s=e.ref(0);let c=null,b=null,a=null,i=null,h=null;const m=()=>{h&&clearTimeout(h),h=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const d=document.querySelector(".ant-table"),u=document.querySelector(".ant-pagination");if(d){const S=Math.floor(d.getBoundingClientRect().top),_=window.innerHeight,g=(u?u.offsetHeight+20:40)+o;let C=_-S-g;C<n&&(C=n),s.value=C}})})},100)},f=()=>{const d=document.querySelector(".ant-pagination");if(d){const u=new MutationObserver(()=>{m()});return u.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),u}return null},N=()=>{const d=document.querySelector(".hb-lib-list-page-form-box");d&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(S=>{S.style.display="none"}),m()}),c.observe(d))},B=()=>{const d=document.querySelector(".hb-lib-list-page-form-box");d&&(a=new MutationObserver(()=>{setTimeout(()=>{m()},r)}),a.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},H=()=>{i&&clearTimeout(i),i=setTimeout(()=>{m()},r)},E=()=>{window.addEventListener("resize",H),e.nextTick(()=>{N(),B(),b=f()})},p=()=>{window.removeEventListener("resize",H),c&&c.disconnect(),a&&a.disconnect(),b&&b.disconnect(),i&&clearTimeout(i),h&&clearTimeout(h)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{m()},200)},{deep:!0}),e.onMounted(()=>{m(),E()}),e.onUnmounted(()=>{p()}),{tableHeight:s,calTableHeight:m}},Le=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=Z.useFullscreen(document.body),n=t,r=e.useTemplateRef("PageContainerRef"),s=e.computed(()=>n.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>n.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),b=e.computed(()=>n.minHeight||l.HbLibListPageContainer?.minHeight||300),a=e.computed(()=>n.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>n.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(n.isUnFixTbHeight);const{calTableHeight:h,tableHeight:m}=xt({offsetBottom:c.value,minHeight:b.value,timeOut:a.value}),f=e.computed(()=>m.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:m,calTableHeight:h}),(N,B)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:r},[e.renderSlot(N.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?f.value-s.value+"px":f.value-c.value+"px","--hb-list-ttable-height":t.tableData.length?"":e.unref(o)?f.value-s.value+"px":f.value-c.value+"px"})},[e.renderSlot(N.$slots,"default")],4)],512))}})),Bt={style:{"font-weight":"500"}},Nt={key:0,class:"hb-lib-search-tag__description"},Tt={class:"hb-lib-selector-dropdown"},Et={class:"hb-lib-selector-search"},Ft={class:"hb-lib-selector-list"},Vt=["onClick"],Ht={class:"hb-lib-option-content"},$t={class:"hb-lib-option-label"},It={key:0,class:"hb-lib-selector-empty"},Dt={key:1,class:"hb-lib-selector-footer"},Mt={class:"hb-lib-footer-buttons"},At={key:2,class:"hb-lib-selector-footer"},zt={class:"hb-lib-footer-buttons"},Se=O(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,n=l,r=e.useModel(t,"value"),s=e.ref(!1),c=e.ref(""),b=e.ref([]),a=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!c.value)return o.options;const _=c.value.toLowerCase();return o.options.filter(k=>k.label.toLowerCase().includes(_)||k.description?.toLowerCase().includes(_))}),h=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),m=e.computed(()=>i.value.length===0?!1:i.value.every(_=>b.value.includes(_.value))),f=e.computed(()=>{if(i.value.length===0)return!1;const _=i.value.filter(k=>b.value.includes(k.value)).length;return _>0&&_<i.value.length});e.watch(()=>r.value,_=>{_?b.value=Array.isArray(_)?[..._]:[_]:b.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,_=>{o.remoteSearch&&_!==void 0&&(c.value=_)},{immediate:!0});const N=_=>{_&&(s.value=_,B.value=[...b.value],c.value="",setTimeout(()=>{if(a.value){const k=a.value.input||a.value.$el?.querySelector("input");k&&k.focus()}},100))},B=e.ref([]),H=()=>{b.value=[...B.value],s.value=!1,n("cancel")},E=e.ref([]),p=()=>{const _=o.multiple?b.value:b.value[0]||"",k=o.options.filter(g=>b.value.includes(g.value));E.value=k,console.log(_,k),B.value=[...b.value],r.value=_,n("update:value",_),n("change",_,k),n("confirm",_,k),s.value=!1},d=Z.useDebounceFn(_=>{const k=_!==void 0?_:c.value;o.remoteSearch&&(n("search",k),n("update:searchValue",k))},300),u=_=>{if(o.multiple){const k=new Set(b.value);k.has(_.value)?k.delete(_.value):k.add(_.value),b.value=Array.from(k)}else b.value=[_.value],p()},S=_=>{if(_.target.checked){const g=new Set(b.value);i.value.forEach(C=>{g.add(C.value)}),b.value=Array.from(g)}else{const g=new Set(i.value.map(C=>C.value));b.value=b.value.filter(C=>!g.has(C))}};return(_,k)=>{const g=e.resolveComponent("a-tag"),C=e.resolveComponent("a-input"),x=e.resolveComponent("a-checkbox"),V=e.resolveComponent("a-radio"),M=e.resolveComponent("a-button"),j=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":h.value}},_.$attrs),[e.createVNode(j,{value:r.value,"onUpdate:value":k[5]||(k[5]=w=>r.value=w),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:s.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:N,onSearch:e.unref(d),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:w,label:L,closable:z,option:A})=>[e.createVNode(g,{class:"hb-lib-search-tag",onClick:k[0]||(k[0]=()=>N(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Bt,e.toDisplayString(L),1),A?.description?(e.openBlock(),e.createElementBlock("span",Nt," ("+e.toDisplayString(A.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:w})=>[e.createElementVNode("div",Tt,[e.createElementVNode("div",Et,[e.createVNode(C,{ref_key:"searchInputRef",ref:a,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":k[1]||(k[1]=L=>c.value=L),placeholder:"请输入关键词搜索","allow-clear":"",onInput:k[2]||(k[2]=L=>e.unref(d)(L.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,L=>(e.openBlock(),e.createElementBlock("div",{key:L.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:b.value.includes(L.value)}]),onClick:()=>u(L)},[t.multiple?(e.openBlock(),e.createBlock(x,{key:0,checked:b.value.includes(L.value),onChange:()=>u(L),onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(V,{key:1,checked:b.value.includes(L.value),onChange:()=>u(L),onClick:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Ht,[e.createElementVNode("div",$t,e.toDisplayString(L.label),1)])],10,Vt))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Dt,[e.createVNode(x,{checked:m.value,indeterminate:f.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Mt,[e.createVNode(M,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(M,{type:"primary",size:"small",onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",At,[k[6]||(k[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",zt,[e.createVNode(M,{size:"small",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),Ot={class:"hb-lib-form-item-filter-modal-search"},Pt={class:"hb-lib-form-item-filter-modal-buttons"},Ut={key:0},xe=O(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:l,emit:o}){const n=t,r=o,s=e.ref(!1),c=e.ref(""),b=e.ref(),a=e.ref(),i=e.ref([]),h=e.ref([]),m=e.ref(),f=e.reactive({searchText:"",searchedColumn:""}),N=e.computed(()=>n.tableData.map(g=>(g.id=g.id||Math.random(),g))),B=e.computed(()=>n.tableColumn.map(g=>(g.customFilterDropdown&&(g.onFilter=(C,x)=>x[g.dataIndex].toString().toLowerCase().includes(C.toLowerCase()),g.onFilterDropdownVisibleChange=C=>{C&&setTimeout(()=>{b.value?.focus()},100)}),{...g}))),H=()=>{let g="";h.value.forEach(C=>{g=g+C[n.labelKey]+","}),c.value=g.substring(0,g.length-1),s.value=!1,r("handleConfirm",h.value)},E=()=>{s.value=!1},p=()=>{s.value=!0,e.nextTick(()=>{const g=m.value?.$el?.querySelector(".ant-table-body");g&&(g.scrollTop=0)})},d=()=>{i.value=[],h.value=[]},u=()=>{c.value="",d()},S=(g,C,x)=>{C(),f.searchText=g[0],f.searchedColumn=x},_=(g,C)=>{g({confirm:!0}),f.searchText="",C()},k=(g,C)=>{i.value=g,h.value=C};return l({resetInputVal:u}),(g,C)=>{const x=e.resolveComponent("a-input"),V=e.resolveComponent("a-button"),M=e.resolveComponent("a-table"),j=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:a},[e.createVNode(x,{readonly:"",onClick:p,value:c.value,"onUpdate:value":C[0]||(C[0]=w=>c.value=w),placeholder:g.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Y.UnorderedListOutlined),{onClick:p})]),_:1},8,["value","placeholder"]),e.createVNode(j,{visible:s.value,"onUpdate:visible":C[1]||(C[1]=w=>s.value=w),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(V,{onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(V,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(V,{type:"primary",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(M,{ref_key:"tableRef",ref:m,columns:B.value,dataSource:N.value,rowSelection:{selectedRowKeys:i.value,onChange:k},rowKey:w=>w[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:w,selectedKeys:L,confirm:z,clearFilters:A,column:R})=>[e.createElementVNode("div",Ot,[e.createVNode(x,{ref_key:"searchInput",ref:b,placeholder:`请输入${R.title}`,value:L[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:W=>w(W.target.value?[W.target.value]:[]),onPressEnter:W=>S(L,z,R.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Pt,[e.createVNode(V,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:W=>_(A,z)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(V,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:W=>S(L,z,R.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:w})=>[e.createVNode(e.unref(Y.SearchOutlined),{style:e.normalizeStyle({color:w?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:w,column:L})=>[f.searchText&&f.searchedColumn===L.dataIndex?(e.openBlock(),e.createElementBlock("span",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`,"i")),(z,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[z.toLowerCase()===f.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:A,class:"highlight"},e.toDisplayString(z),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(z),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Rt={class:"hb-lib-table-act-box"},jt=["onClick"],Wt={href:"javascript:;",class:"hb-lib-table-main-action"},qt=["onClick"],Yt={href:"javascript:;",class:"hb-lib-table-more-action"},Kt=["onClick"],Gt={href:"javascript:;"},Jt=["onClick"],Xt={class:"hb-lib-table-confirm-modal-content"},Be=O(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:n}=K.useI18n(),r=e.ref(!1),s=e.ref(!1),c=e.ref(null),b=e.computed(()=>o.actions.filter(E=>E.condition!==void 0?E.condition:!0)),a=e.computed(()=>b.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>h(b.value.slice(o.buttonDisplaysQuantity)));function h(E){if(o.filterPermission)return o.filterPermission(E);let p=[],d=[];return p=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(p)||E.length===0?(p=[],[]):(p=p.filter(u=>u.type!="2"),E.forEach(u=>{(!u.permissionsTag||p.findIndex(S=>S.action===u.permissionsTag)!==-1)&&d.push(u)}),d)}const m=E=>{E.handler&&E.handler(o.record)},f=E=>{c.value=E,r.value=!0},N=()=>{if(c.value){s.value=!0;try{m(c.value),s.value=!1,r.value=!1}catch{s.value=!1}}},B=()=>{r.value=!1,c.value=null},H=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:F.Dropdown,AMenu:F.Menu,AMenuItem:F.MenuItem,APopconfirm:F.Popconfirm,AModal:F.Modal,DownOutlined:Y.DownOutlined}),(E,p)=>{const d=e.resolveComponent("a-divider"),u=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>f(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,jt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(d,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(F.Popconfirm),{title:S.confirmTitle,onConfirm:k=>m(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Wt,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[u,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(d,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):S.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(E.$slots,S.slot,{item:S},void 0,!0),i.value&&i.value.length>0||_!==a.value.length-1?(e.openBlock(),e.createBlock(d,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:k=>m(S),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(S.label),1)],8,qt)),[[u,S.permissionsTag||null]]),i.value&&i.value.length>0||_!==a.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(d,{key:0,type:"vertical"},null,512)),[[u,S.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(F.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(F.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(S,_)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.MenuItem),{key:_},{default:e.withCtx(()=>[S.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:k=>f(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Kt)),[[u,S.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(F.Popconfirm),{key:1,title:S.confirmTitle,onConfirm:k=>m(S)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Gt,[e.createTextVNode(e.toDisplayString(S.label),1)])),[[u,S.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[u,S.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:k=>m(S)},[e.createTextVNode(e.toDisplayString(S.label),1)],8,Jt)),[[u,S.permissionsTag||null]])]),_:2},1024)),[[u,S.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Yt,[e.createTextVNode(e.toDisplayString(E.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Y.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(F.Modal),{visible:r.value,title:H.value.title,"confirm-loading":s.value,onOk:N,onCancel:B},{default:e.withCtx(()=>[e.createElementVNode("p",Xt,e.toDisplayString(H.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Ne=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,r)=>n+r,0)})});var Qt=typeof global=="object"&&global&&global.Object===Object&&global,Zt=typeof self=="object"&&self&&self.Object===Object&&self,Te=Qt||Zt||Function("return this")(),ae=Te.Symbol,Ee=Object.prototype,vt=Ee.hasOwnProperty,eo=Ee.toString,te=ae?ae.toStringTag:void 0;function to(t){var l=vt.call(t,te),o=t[te];try{t[te]=void 0;var n=!0}catch{}var r=eo.call(t);return n&&(l?t[te]=o:delete t[te]),r}var oo=Object.prototype,lo=oo.toString;function no(t){return lo.call(t)}var ao="[object Null]",io="[object Undefined]",Fe=ae?ae.toStringTag:void 0;function ro(t){return t==null?t===void 0?io:ao:Fe&&Fe in Object(t)?to(t):no(t)}function so(t){return t!=null&&typeof t=="object"}var co="[object Symbol]";function mo(t){return typeof t=="symbol"||so(t)&&ro(t)==co}var po=/\s/;function fo(t){for(var l=t.length;l--&&po.test(t.charAt(l)););return l}var bo=/^\s+/;function ho(t){return t&&t.slice(0,fo(t)+1).replace(bo,"")}function me(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Ve=NaN,go=/^[-+]0x[0-9a-f]+$/i,uo=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,Co=parseInt;function He(t){if(typeof t=="number")return t;if(mo(t))return Ve;if(me(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=me(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=ho(t);var o=uo.test(t);return o||yo.test(t)?Co(t.slice(2),o?2:8):go.test(t)?Ve:+t}var pe=function(){return Te.Date.now()},ko="Expected a function",_o=Math.max,wo=Math.min;function $e(t,l,o){var n,r,s,c,b,a,i=0,h=!1,m=!1,f=!0;if(typeof t!="function")throw new TypeError(ko);l=He(l)||0,me(o)&&(h=!!o.leading,m="maxWait"in o,s=m?_o(He(o.maxWait)||0,l):s,f="trailing"in o?!!o.trailing:f);function N(k){var g=n,C=r;return n=r=void 0,i=k,c=t.apply(C,g),c}function B(k){return i=k,b=setTimeout(p,l),h?N(k):c}function H(k){var g=k-a,C=k-i,x=l-g;return m?wo(x,s-C):x}function E(k){var g=k-a,C=k-i;return a===void 0||g>=l||g<0||m&&C>=s}function p(){var k=pe();if(E(k))return d(k);b=setTimeout(p,H(k))}function d(k){return b=void 0,f&&n?N(k):(n=r=void 0,c)}function u(){b!==void 0&&clearTimeout(b),i=0,n=a=r=b=void 0}function S(){return b===void 0?c:d(pe())}function _(){var k=pe(),g=E(k);if(n=arguments,r=this,a=k,g){if(b===void 0)return B(a);if(m)return clearTimeout(b),b=setTimeout(p,l),N(a)}return b===void 0&&(b=setTimeout(p,l)),c}return _.cancel=u,_.flush=S,_}const Lo={key:0,class:"hb-lib-list-table-act"},So={class:"empty-container"},xo={key:1},Bo={key:2},Ie=O(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),n=l,{t:r}=K.useI18n(),s=t,c=e.ref([]),b=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:a}=Ne(c),i=e.ref(a.value),h=e.computed(()=>s.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,p=>{const d=p.filter(S=>S!=null&&S.checked);c.value=d.map(S=>{let _={...S,title:S.title||S.label,align:S.align||o.listTable?.align||"center"};_.ellipsis&&!_.needTooltip&&(_.needTooltip=!0);let k=s.defaultWidth||o.listTable?.defaultColWidth||150;if(!_.width)_.width=k;else if(typeof _.width=="string"){const g=parseInt(_.width,10);_.width=isNaN(g)?k:g}return _.resizable===void 0&&(_.resizable=!0),_});const{tableWidth:u}=Ne(c);i.value=u.value},{immediate:!0,deep:!0});const m=$e(()=>{n("resizeCol",c)},o.listTable?.colSaveTimeOut||800),f=(p,d)=>{if(d){const u=typeof p=="string"?parseInt(p,10):p;d.width=isNaN(u)?o.listTable?.defaultColWidth||150:u,e.nextTick(()=>{m()})}},N=(p,d,u)=>{p?.current&&n("change",p,d,u)},B=(p,d="YYYY-MM-DD HH:mm:ss")=>p?ne(p).format(d):"",H=(p,d)=>p&&d[p]||"",E=(p,d=o.listTable?.ellipsisNumber||20)=>p?p.length>d?`${p.substring(0,d)}...`:p:"";return(p,d)=>{const u=e.resolveComponent("a-empty"),S=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-tag"),g=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":s.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[p.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",Lo,[e.renderSlot(p.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(p.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(g,e.mergeProps(p.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:f,onChange:N,scroll:h.value?{x:i.value}:{x:i.value,y:e.unref(b).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",So,[e.createVNode(u,{description:e.unref(r)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:C})=>[e.renderSlot(p.$slots,"headerCell",{column:C,title:C.title},()=>[e.createTextVNode(e.toDisplayString(C.title),1)],!0)]),key:"0"}:void 0,p.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:C,record:x,index:V,text:M})=>[e.renderSlot(p.$slots,"bodyCell",{column:C,record:x,index:V,text:M},void 0,!0),C&&C.needTooltip&&!C.needCopy?(e.openBlock(),e.createBlock(S,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[C.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x[C.dataIndex]),1)]),_:2},1032,["placement"])):C&&C.needCopy&&!C.needTooltip?(e.openBlock(),e.createElementBlock("div",xo,[e.createTextVNode(e.toDisplayString(x[C.dataIndex])+" ",1),e.createVNode(_,{"cp-text":x[C.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),C&&C.needTooltip&&C.needCopy?(e.openBlock(),e.createElementBlock("div",Bo,[e.createVNode(S,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[C.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(E(x[C.dataIndex],C.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(_,{"cp-text":x[C.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):C&&C.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(B(x[C.dataIndex],C.format)),1)],64)):C&&C.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[H(x[C.dataIndex],C.tags)?(e.openBlock(),e.createBlock(k,{key:0,color:H(x[C.dataIndex],C.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[C.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,p.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:C,index:x})=>[e.renderSlot(p.$slots,"expandedRowRender",{record:C,index:x},void 0,!0)]),key:"2"}:void 0,p.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:C})=>[e.renderSlot(p.$slots,"customFilterDropdown",{column:C},void 0,!0)]),key:"3"}:void 0,p.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:C})=>[e.renderSlot(p.$slots,"customFilterIcon",{column:C},void 0,!0)]),key:"4"}:void 0,p.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:C,record:x,index:V})=>[e.renderSlot(p.$slots,"expandIcon",{expanded:C,record:x,index:V},void 0,!0)]),key:"5"}:void 0,p.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,p.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,p.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),No={class:"hb-lib-table-setting-box"},To={key:0,class:"hb-lib-table-drag-item"},Eo={key:0,class:"hb-lib-table-drag-item-act"},Fo=["onClick"],Vo=["onClick"],Ho={class:"hb-lib-table-set-btn-group"},$o={class:"select-all-container",style:{"margin-right":"10px"}},De=O(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:n}=K.useI18n(),r=t,s=e.ref([]),c=e.computed(()=>a.value.filter(k=>k.checked));e.ref([]);const b=e.ref(!1),a=e.ref([]),i=e.ref(null),h=e.computed(()=>c.value.length>0&&c.value.length===s.value.length),m=e.computed(()=>c.value.length>0&&c.value.length<s.value.length),f=k=>{i.value=k.oldIndex},N=k=>{const g=k.newIndex;if(s.value.some(x=>x.fixed==="left"||x.fixed==="right"||x.fixed===!0)){const x=s.value.filter(M=>M.fixed==="left").length,V=s.value.length-s.value.filter(M=>M.fixed==="right").length;if((x>0&&g<x||V<s.value.length&&g>=V)&&(F.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const M=a.value.splice(g,1)[0];a.value.splice(i.value,0,M)}}i.value=null},B=k=>{k.target.checked?a.value.forEach(C=>C.checked=!0):a.value.forEach(C=>{C.dataIndex!=="action"&&C.dataIndex!=="actions"&&(C.checked=!1)})},H=()=>{s.value=r.localColumns.map(g=>({...g,label:g.title&&g.title.tag?u(g.title):g.title||g.title2,value:g.dataIndex,checked:g.checked||g.checked===void 0})),a.value=[...s.value];let k=[];r.tableColumns.forEach(function(g){k.push(g.dataIndex)})},E=(k,g)=>{g?k.checked=!0:k.checked=!1},p=()=>{s.value=[...a.value],o("on-get-columns",s.value),b.value=!1},d=()=>{s.value=r.tableColumns.map(g=>({...g,label:g.title&&g.title.tag?u(g.title):g.title||g.title2,value:g.dataIndex,checked:g.checked||g.checked===void 0})),a.value=[...s.value];let k=[];r.tableColumns.forEach(function(g){k.push(g.dataIndex)})},u=k=>k.children[0].text,S=k=>{delete k.fixed;const g=a.value.findIndex(C=>C.value===k.value);if(g!==-1){let C=-1;for(let x=0;x<a.value.length;x++)a.value[x].fixed==="left"&&(C=x);if(C!==-1&&g!==C+1){const x=[...a.value],[V]=x.splice(g,1);x.splice(C+1,0,V),a.value=x}}},_=k=>{const g=a.value.findIndex(C=>C.value===k.value);if(g!==-1){let C=-1;for(let j=0;j<a.value.length;j++)a.value[j].fixed==="left"&&(C=j);const x=[...a.value],[V]=x.splice(g,1);V.fixed="left";const M=C===-1?0:C+1;x.splice(M,0,V),a.value=x}};return e.watch(()=>r.tableColumns,()=>{d()},{immediate:!0,deep:!0}),(k,g)=>{const C=e.resolveComponent("a-tooltip"),x=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",No,[e.createVNode(e.unref(F.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:b.value,"onUpdate:visible":g[1]||(g[1]=V=>b.value=V)},{content:e.withCtx(()=>[e.createVNode(e.unref(le),{modelValue:a.value,"onUpdate:modelValue":g[0]||(g[0]=V=>a.value=V),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:f,onEnd:N},{item:e.withCtx(({element:V})=>[V.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",To,[e.createVNode(e.unref(F.Checkbox),{checked:V.checked,onChange:M=>E(V,M.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["checked","onChange"]),V.checked?(e.openBlock(),e.createElementBlock("section",Eo,[e.createElementVNode("span",{class:e.normalizeClass(V.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),V.fixed?(e.openBlock(),e.createBlock(C,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:M=>S(V)},[...g[2]||(g[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Fo)]),_:2},1024)):e.createCommentVNode("",!0),V.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:M=>_(V)},[...g[3]||(g[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,Vo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Ho,[e.createElementVNode("div",$o,[e.createVNode(e.unref(F.Checkbox),{checked:h.value,indeterminate:m.value,onChange:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),r.localColumns.length?(e.openBlock(),e.createBlock(x,{key:0,style:{"margin-right":"6px"},onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(x,{onClick:p,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(C,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...g[4]||(g[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-07a63550"]])),Me=O(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,n=e.useAttrs(),r=e.computed(()=>{const B=n,H=B.dropdownClassName;return{...B,dropdownClassName:H??"hb_lib_form_tooltip_select__dropdown"}}),s=e.ref(),c=e.useModel(t,"value"),b=e.computed(()=>o.options??[]),a=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=B=>B.tooltip??B.label,h=B=>B.key??B.label,m=B=>!!(o.enableTooltip&&i(B));return l({focus:()=>{s.value?.focus?.()},blur:()=>{s.value?.blur?.()},selectRef:s}),(B,H)=>(e.openBlock(),e.createBlock(e.unref(F.Select),e.mergeProps({ref_key:"selectRef",ref:s},r.value,{value:c.value,"onUpdate:value":H[0]||(H[0]=E=>c.value=E),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[B.$slots.default?e.renderSlot(B.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(b.value,E=>(e.openBlock(),e.createBlock(e.unref(F.SelectOption),e.mergeProps({key:h(E),value:E.value,disabled:E.disabled},{ref_for:!0},E.optionProps),{default:e.withCtx(()=>[m(E)?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:i(E),placement:o.tooltipPlacement,"overlay-style":a.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(E.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(E.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Io={class:"ant-upload-drag-icon"},Do={class:"ant-upload-text"},Mo={style:{color:"#ff5000"}},Ao={class:"ant-upload-hint"},zo={key:0,class:"hb_import_btn"},Oo=["href"],Ae=O(U(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:l}){const{t:o}=K.useI18n(),n=e.ref(),r=t,s=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),b=f=>{if(f==null)return;const N=c.fileList.indexOf(f);if(N!==-1){const B=c.fileList.slice();B.splice(N,1),c.fileList=B}},a=()=>{c.visible=!1,c.fileList=[],s.value=!1},i=f=>(c.fileList=[f],r.beforeUpload?r.beforeUpload(f.originFileObj):!1),h=()=>{n.value.validateFields().then(()=>{r.beforeSubmit&&(s.value=!0,r.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},m=()=>{c.visible=!0};return l({handleCancel:a,openModal:m,confirmLoading:s}),(f,N)=>{const B=e.resolveComponent("a-upload-dragger"),H=e.resolveComponent("a-form-item"),E=e.resolveComponent("a-form"),p=e.resolveComponent("a-modal"),d=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,e.mergeProps({visible:c.visible,"onUpdate:visible":N[0]||(N[0]=u=>c.visible=u),title:r.title,"confirm-loading":s.value},f.$attrs,{width:r.modalWidth,onCancel:a,onOk:h}),{default:e.withCtx(()=>[e.createVNode(E,{ref_key:"modalFormRef",ref:n,model:c},{default:e.withCtx(()=>[e.createVNode(H,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:r.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(B,{"max-count":r.maxCount,multiple:r.multiple,accept:r.acceptFile,name:"file","file-list":c.fileList,"before-upload":i,onRemove:b},{default:e.withCtx(()=>[e.createElementVNode("p",Io,[e.createVNode(e.unref(Y.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Do,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Mo,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Ao,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(r.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),r.templateUrl?(e.openBlock(),e.createElementBlock("p",zo,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:r.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,Oo)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(f.$slots,"btn",{},()=>[e.createVNode(d,{type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Po={class:"hb_lib_log_modal_content"},Uo={class:"log_remark"},ze=O(U(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:l,emit:o}){const{t:n}=K.useI18n(),r=e.useSlots(),s=t,c=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],b=e.computed(()=>s.columns||c),a=e.computed(()=>s.title||n("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!r.title),h=e.ref(!1),m=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(d,u)=>u[0]+"-"+u[1]+" 总共"+d+"页",total:0}});e.watch(()=>s.pagination,d=>{d&&(m.pagination={...m.pagination,...d})},{deep:!0,immediate:!0});const f=()=>{const d={pageIndex:m.pagination.current,pageSize:m.pagination.pageSize,query:s.params};s.getLogData&&(h.value=!0,s.getLogData(d).then(u=>{Number(u.code)==200?(m.pagination.total=Number(u.data.total),m.list=u.data[s.dataStr]||[]):F.message.error(u.message)}).finally(()=>{h.value=!1}))},N=d=>{m.pagination.current=d.current,m.pagination.pageSize=d.pageSize,f()},B=()=>{m.list=[],p("update:visible",!1)},H=()=>{p("update:visible",!0)},E=(d,u="YYYY-MM-DD HH:mm:ss")=>d?ne(d).format(u):"",p=o;return e.watch(()=>s.visible,d=>{d&&f()}),l({close:B,loading:h}),(d,u)=>{const S=e.resolveComponent("a-tooltip"),_=e.resolveComponent("HbLibCopy"),k=e.resolveComponent("a-table"),g=e.resolveComponent("a-button"),C=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(C,e.mergeProps(d.$attrs,{visible:t.visible,title:i.value?void 0:a.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:B}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(g,{onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Po,[e.createVNode(k,{bordered:"",rowKey:"id",columns:b.value,dataSource:m.list,pagination:m.pagination,loading:h.value,scroll:{y:t.scrollY},onChange:N},e.createSlots({bodyCell:e.withCtx(({column:x,record:V})=>[x&&x.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.needTooltip?(e.openBlock(),e.createBlock(S,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V[x.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(V[x.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),x&&x.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Uo,e.toDisplayString(V[x.dataIndex]),1),e.createVNode(_,{"cp-text":V[x.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),x&&x.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(E(V[x.dataIndex],x.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[d.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:x})=>[e.renderSlot(d.$slots,"headerCell",{column:x},()=>[e.createTextVNode(e.toDisplayString(x.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(d.$slots,"default",{key:0},()=>[e.createVNode(g,{onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Ro={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},jo={class:"hb_ui_config"},Wo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,n=>{o=e.reactive(Q.merge({},Ro,n))},{deep:!0,immediate:!0}),e.provide(fe,o),(n,r)=>(e.openBlock(),e.createElementBlock("div",jo,[e.renderSlot(n.$slots,"default")]))}}),fe=Symbol("GLOBAL_CONFIG_KEY"),Oe=O(Wo),qo={class:"hb_card"},Yo={key:0,class:"hb_card_header"},Ko={class:"hb_fix"},Go={class:"hb_card_header-title"},Jo={class:"hb_card_header-action"},Xo={class:"hb_card_body"},Pe=O(U(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(fe),o=t,n=e.computed(()=>{let r=o.formItemMb||l?.HbLibCard?.formItemMb;return r?{"--hb-card-form-item-mb":r+"px"}:{}});return(r,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},r.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",qo,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Ko,[e.createElementVNode("span",Go,[e.renderSlot(r.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",Jo,[e.renderSlot(r.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Xo,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(n.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),Qo=["onClick"],Zo={class:"step"},vo={key:0,class:"line"},el=["title"],Ue=O(U(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),n=l.offsetTop??160,r=e.computed(()=>l.anchors.filter(a=>typeof a.visible=="function"?a.visible():a.visible!==!1)),s=()=>{const a=l.containerSelector||"#subpackage_container";return document.querySelector(a)||window},c=a=>{const i=s(),h=a.target.startsWith("#")||a.target.startsWith(".")?a.target:`#${a.target}`,m=document.querySelector(h);if(!m)return;let f=m.offsetTop;i instanceof HTMLElement&&(f-=i.offsetTop),f-=n,i instanceof Window?window.scrollTo({top:f,behavior:"smooth"}):i.scrollTo({top:f,behavior:"smooth"}),o.value=a.target},b=()=>{const a=s();let i=0;a instanceof Window?i=window.scrollY+n+5:i=a.scrollTop+n+5;let h=r.value[0]?.target||"";for(const m of r.value){const f=m.target.startsWith("#")||m.target.startsWith(".")?m.target:`#${m.target}`,N=document.querySelector(f);if(!N)continue;let B=N.offsetTop;a instanceof HTMLElement&&(B-=a.offsetTop),i>=B&&(h=m.target)}o.value=h};return e.onMounted(()=>{s().addEventListener("scroll",b),b()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",b)}),(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(n)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(h,m)=>(e.openBlock(),e.createElementBlock("div",{key:h.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===h.target}]),onClick:f=>c(h)},[e.createElementVNode("div",Zo,[m!==r.value.length-1?(e.openBlock(),e.createElementBlock("div",vo)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:h.title},e.toDisplayString(h.title.length>12?h.title.slice(0,12)+"...":h.title),9,el)],10,Qo))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),tl={class:"hb_detail_top_act_left"},ol={key:1,class:"hb_detail_top_wrapper_sticky"},ll={class:"hb_detail_top_act"},nl={key:0,class:"hb_detail_all_info"},al={class:"hb_detail_all_info_left"},il={class:"hb_detail_info_title"},rl={key:0,class:"hb_detail_info_content"},sl={class:"create_by"},cl={class:"hb_detail_all_info_right"},dl={class:"hb_edit_detail_content_wrapper"},ml={class:"hb_detail_content"},pl={class:"hb-back-top-inner"},Re=O(U(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.inject(fe),r=()=>{o.backFn?o.backFn():window.history.back()},s=e.computed(()=>o.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const H={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:H}),b=()=>document.querySelector(o.container),a=e.ref(!1),i=e.ref(null),{top:h}=Z.useElementBounding(i),m=e.computed(b),{y:f}=Z.useScroll(m);e.watch(f,H=>{a.value=H>h.value},{immediate:!0});const N=H=>{document.querySelectorAll(".hb_card_body").forEach(p=>{p.querySelectorAll(".ant-descriptions-item-content span").forEach(u=>{u.textContent?.trim()||(u.textContent=H)})})};let B=null;return e.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(B=setTimeout(()=>{N(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{B&&clearTimeout(B)}),(H,E)=>{const p=e.resolveComponent("RollbackOutlined"),d=e.resolveComponent("a-divider"),u=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(u,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",c.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":c.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":c.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",a.value?"can_show":""])},[e.createElementVNode("div",tl,[e.createVNode(p,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(d,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),E[0]||(E[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("div",ll,[e.createVNode(p),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:r},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(d,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("aside",al,[e.renderSlot(H.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",il,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",rl,[e.createElementVNode("span",sl,e.toDisplayString(t.totalInfo.totalInfoSubTitle1)+e.toDisplayString(t.totalInfo.totalInfoSubVal1),1),e.createElementVNode("span",null,e.toDisplayString(t.totalInfo.totalInfoSubTitle2)+e.toDisplayString(t.totalInfo.totalInfoSubVal2),1)])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("aside",cl,[e.renderSlot(H.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",dl,[e.createElementVNode("div",ml,[e.renderSlot(H.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(F.BackTop),{target:b,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",pl,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),je=O(U(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(a,i=300)=>$e(a,i),n=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),r=e.ref(0),s=a=>{let i=0;return(Array.isArray(a)?a:[a]).forEach(m=>{let f=[];if(m.startsWith("#")){const N=document.getElementById(m.slice(1));N&&f.push(N)}else f=Array.from(document.getElementsByClassName(m));f.forEach(N=>{i+=N.offsetWidth||0})}),i},c=()=>{l.leftElements&&(r.value=s(l.leftElements)+1)};let b=null;return e.onMounted(()=>{const a=l.getContainer();a!==window&&a instanceof HTMLElement&&a.addEventListener("scroll",()=>{}),c(),b=new MutationObserver(()=>{c()});const i=document.body;b.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{b&&b.disconnect()}),(a,i)=>{const h=e.resolveComponent("a-button"),m=e.resolveComponent("a-space"),f=e.resolveComponent("a-affix"),N=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":r.value+"px"})},[e.createVNode(f,{"offset-bottom":0,target:t.getContainer,style:{width:"100%"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:t.placeLeft,page_footer_btn_right:t.placeRight})},[e.createVNode(m,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,B=>e.withDirectives((e.openBlock(),e.createBlock(h,{key:B.key,type:B.type||"default",danger:B.danger,loading:B.loading,disabled:B.disabled,onClick:B.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[N,B.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),fl={class:"modal__detail-content"},We=O(U(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:l,emit:o}){const n=o,r=t,s=e.computed({get:()=>r.visible,set:V=>n("update:visible",V)}),c=e.ref(null),b=e.computed(()=>({top:"10px",...r.modalStyle})),a=e.computed(()=>({overflow:"hidden",...r.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...r.bodyStyle})),{x:h,y:m,isDragging:f}=Z.useDraggable(c),N=e.ref(0),B=e.ref(0),H=e.ref(!1),E=e.ref(0),p=e.ref(0),d=e.ref(0),u=e.ref(0),S=e.ref({left:0,right:0,top:0,bottom:0});let _=null;const k=()=>{E.value=0,p.value=0,d.value=0,u.value=0,H.value=!1};e.watch(s,V=>{V?setTimeout(()=>{k()},50):(_&&clearTimeout(_),_=setTimeout(()=>{E.value=0,p.value=0,d.value=0,u.value=0},300))}),e.watch([h,m],()=>{if(!H.value){N.value=h.value,B.value=m.value;const V=document.body.getBoundingClientRect(),M=c.value.getBoundingClientRect();S.value.right=V.width-M.width,S.value.bottom=V.height-M.height,d.value=E.value,u.value=p.value}H.value=!0}),e.watch(f,()=>{f||(H.value=!1)}),e.watchEffect(()=>{H.value&&(E.value=d.value+Math.min(Math.max(S.value.left,h.value),S.value.right)-N.value,p.value=u.value+Math.min(Math.max(S.value.top,m.value),S.value.bottom)-B.value)});const g=e.computed(()=>({transform:`translate(${E.value}px, ${p.value}px)`})),C=()=>{n("cancel")},x=()=>{n("ok")};return e.onUnmounted(()=>{_&&clearTimeout(_)}),l({handleOk:x,handleCancel:C}),(V,M)=>{const j=e.resolveComponent("a-spin"),w=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(w,e.mergeProps({style:b.value,bodyStyle:i.value,ref:"modalRef",visible:s.value,"onUpdate:visible":M[0]||(M[0]=L=>s.value=L),"wrap-style":a.value,onOk:x,onCancel:C},V.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,style:{width:"100%",cursor:"move"}},[e.renderSlot(V.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:L})=>[(e.openBlock(),e.createElementBlock("div",{key:s.value,style:e.normalizeStyle(g.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L)))],4))]),default:e.withCtx(()=>[e.createVNode(j,{spinning:r.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([t.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",t.descLabelWidth&&"hb_need_set_desc_label_width",t.descValueWidth&&"hb_need_set_desc_value_width"]),style:e.normalizeStyle({"--hb-detail-desc-label-width":t.descLabelWidth+"px","--hb-detail-desc-value-width":t.descValueWidth+"px"})},[e.createElementVNode("div",fl,[e.renderSlot(V.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[V.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),bl={key:0,class:"hb_edit_header"},hl={class:"__detail-content"},gl={key:1,class:"hb_edit_footer"},ul={class:"hb-back-top-inner"},qe=O(U(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const l=e.ref("vertical"),o=t,n=()=>document.querySelector(o.container),r=e.inject("GLOBAL_CONFIG_KEY"),s=e.computed(()=>o.backTopBottom||r?.HbLibUnDetailBox?.backTopBottom||80);return(c,b)=>(e.openBlock(),e.createBlock(e.unref(F.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",bl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",hl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",gl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(F.BackTop),{target:n,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",ul,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),yl={class:"hb_edit_header_left"},Cl={class:"hb_edit_header_title"},kl={class:"hb_edit_header_right"},Ye=O(U(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=K.useI18n(),o=t,n=ce.useRoute(),r=e.ref(0),s=e.computed(()=>n?.meta?.title||"");function c(f,N="offsetHeight"){let B=0;return(Array.isArray(f)?f:[f]).forEach(E=>{let p=[];if(E.startsWith("#")){const d=document.getElementById(E.slice(1));d&&p.push(d)}else p=Array.from(document.getElementsByClassName(E));p.forEach(d=>{B+=d[N]||0})}),B}const b=()=>{o.topElements&&(r.value=c(o.topElements))},a=e.ref(0),i=()=>{o.leftElements&&(a.value=c(o.leftElements,"offsetWidth")+1)};let h=null;e.onMounted(()=>{b(),i(),window.addEventListener("resize",b),h=new MutationObserver(()=>{i()});const f=document.body;h.observe(f,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",b),h&&h.disconnect()}),e.watch(()=>o.topElements,()=>{b()},{immediate:!0});const m=()=>{o.backFn?o.backFn():window.history.back()};return(f,N)=>{const B=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:r.value+"px","--pageHeaderOrFonterLeft":a.value+"px"})},[e.createElementVNode("aside",yl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:m},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(B,{type:"vertical"}),e.createElementVNode("span",Cl,e.toDisplayString(s.value),1)]),e.createElementVNode("aside",kl,[e.renderSlot(f.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),_l={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},be=O(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:_l,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const n=e.computed(()=>l.tooltipTitle||"复制"),r=e.computed(()=>l.copySuccessTip||"复制成功"),s=e.computed(()=>l.copyFailTip||"复制失败"),c=e.computed(()=>{if(l.cpText)return l.cpText;let a="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(h=>h?.[l.K]===l.V);a=i?i[l.L]:""}}else l.K&&(a=l.data[l.K]);return a}),b=()=>{navigator.clipboard.writeText(c.value).then(()=>{F.message.success(r.value)}).catch(()=>{F.message.error(s.value)})};return(a,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(F.Tooltip),{key:0,title:n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...a.cpStyle}),onClick:e.withModifiers(b,["stop","prevent"])},[...i[0]||(i[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),wl={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},Ke=O(U(e.defineComponent({name:"HbDrag",__name:"index",props:wl,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,n=e.shallowRef([]);e.watch(()=>o.dragList,h=>{n.value=h},{deep:!0,immediate:!0});const r=de("drag"),s=l,c=h=>{console.log("drag start",h),s("handleDragStart",h)},b=h=>{console.log("drag end",h),s("handleDragEnd",h)},a=h=>{console.log("drag add",h),s("handleDragAdd",h)},i=h=>{console.log("drag remove",h),s("handleDragRemove",h)};return(h,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[h.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=f=>n.value=f),"item-key":"key",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:c,onEnd:b,onAdd:a,onRemove:i}),{item:e.withCtx(({element:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(le),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":m[1]||(m[1]=f=>n.value=f),"item-key":"id",class:{[h.dragClass]:h.dragClass}},h.$attrs,{"ghost-class":h.ghostClass,onStart:c,onEnd:b,onAdd:a,onRemove:i}),{item:e.withCtx(({element:f})=>[e.createElementVNode("div",null,[e.renderSlot(h.$slots,"default",{item:f},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Ll={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Ge=O(U(e.defineComponent({name:"HbLibSort",__name:"sort",props:Ll,emits:["change"],setup(t,{expose:l,emit:o}){const n=t,r=o,s=e.ref([]),c=e.ref("");e.watch(()=>n.menuItems,a=>{let i=[];Array.isArray(a)&&a.length&&a.forEach(h=>{i=[...i,{label:`${h.label}升序`,value:`${h.value}`,sort:"Asc"},{label:`${h.label}降序`,value:`${h.value}`,sort:"Desc"}]}),s.value=i},{deep:!0,immediate:!0});const b=a=>{c.value=a.value+a.sort,n.getSort&&n.getSort({orderFeild:a.value,orderBy:a.sort}),r("change",c)};return l({currentActiveItem:c}),(a,i)=>{const h=e.resolveComponent("a-menu-item"),m=e.resolveComponent("a-menu"),f=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(f,{trigger:[n.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,N=>(e.openBlock(),e.createBlock(h,{key:N.value+N.sort,onClick:B=>b(N)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(c.value==N.value+N.sort?"activted":"")},e.toDisplayString(N.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(n.colText)+" ",1),e.createVNode(e.unref(Y.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Sl={class:"hb_lib_loading"},xl={class:"hb_lib_loading_loading_anima"},Bl={class:"hb_lib_loading_load_tips"},Je=O(U(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(r,s)=>(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",xl,[s[0]||(s[0]=e.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),e.createElementVNode("div",Bl,e.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),oe=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},Nl=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),Tl=t=>Nl.has(oe(t)),Xe=t=>t.downloadUrl,El=(t,l,o)=>{const n=a=>a.previewUrl,r=o?.preferredIndex;if(typeof r=="number"&&r>=0&&r<t.length){const a=t[r];if(a===l)return r;const i="uploadDate"in a&&a.uploadDate||"",h="uploadDate"in l&&l.uploadDate||"";if(n(a)===n(l)&&(a.attachmentDesc||"")===(l.attachmentDesc||"")&&i===h)return r}const s=l.attachmentId;if(s){const a=t.findIndex(i=>i.attachmentId===s);if(a>=0)return a}const c=n(l);if(c){const a=t.findIndex(i=>n(i)===c);if(a>=0)return a}const b=Xe(l);if(b){const a=t.findIndex(i=>Xe(i)===b);if(a>=0)return a}return t.indexOf(l)};function Qe(t){const l=t.trim();try{return new URL(l).href}catch{const o=l.replace(/ /g,"%20");try{return new URL(o).href}catch{return o}}}function Ze(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function ve(t){return new Promise((l,o)=>{const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.withCredentials=Ze(t),n.onload=()=>{n.status>=200&&n.status<300?l(n.response):o(new Error(String(n.status)))},n.onerror=()=>o(new Error("xhr")),n.send()})}async function Fl(t){const l=Qe(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return ve(l);if(typeof fetch=="function"){const n=await fetch(l,{credentials:Ze(l)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return ve(l)}function Vl(t,l){const o=l.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(t,o);return}const r=URL.createObjectURL(t);try{const s=document.createElement("a");s.href=r,s.rel="noopener noreferrer",s.setAttribute("download",o),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)}finally{URL.revokeObjectURL(r)}}function Hl(t){const l=Qe(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function ie(t,l){const o=(l||"download").trim()||"download";try{const n=await Fl(t);Vl(n,o);return}catch{Hl(t)}}const $l=768;function Il(){return typeof window>"u"?!0:window.innerWidth>=$l}function et(){return!Il()}const Dl={class:"file-preview-modal-title"},Ml={key:0,class:"file-preview-modal-title__tip"},Al={class:"file-preview-modal-body file-preview-modal-body--fill"},zl=["src"],Ol=["src"],Pl={key:2,class:"file-preview-modal-body__pre"},Ul=["src"],Rl=["src"],jl={key:0,class:"file-preview-modal-footer__nav"},Wl={class:"file-preview-modal-body file-preview-modal-body--fill"},ql=["src"],Yl=["src"],Kl={key:2,class:"file-preview-modal-body__pre"},Gl=["src"],Jl=["src"],Xl={key:0,class:"file-preview-modal-footer__nav"},tt=O(U(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),n=l,r=t,s=e.ref(r.previewVisible);e.watch(()=>r.previewVisible,w=>{s.value=w});const c=e.computed(()=>r.mobile?"100%":"98%"),b=e.computed(()=>r.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),a=e.computed(()=>({height:r.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:r.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),i=e.computed(()=>{const w=(r.fileName||"").trim(),L=(r.url||"").trim(),z=w?oe(w):"",A=L?oe(L):"";return A&&z&&A!==z?L:z?w:A?L:w||L}),h=e.computed(()=>i.value?oe(i.value):""),m=e.computed(()=>`${r.url}\0${r.fileName||""}`),f=e.computed(()=>i.value?Tl(i.value):!1),N=e.computed(()=>{if(!i.value)return!1;const w=oe(i.value);return["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv"].includes(w)}),B=e.computed(()=>{const w=(r.url||"").trim();if(!w)return!1;try{const{pathname:L}=new URL(w);return/\/file(?:\/|-)preview\b/i.test(L)}catch{return/\/file(?:\/|-)preview\b/i.test(w)}}),H=typeof window<"u",E=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),p=e.computed(()=>!H||!r.url?.trim()||B.value?!1:E.has(h.value)),d=e.computed(()=>h.value==="txt"),u=e.computed(()=>!r.url?.trim()||B.value?!1:d.value),S=e.ref("idle"),_=e.ref("");e.watch(()=>({visible:r.previewVisible,url:r.url,isTxt:d.value}),async({visible:w,url:L,isTxt:z})=>{if(_.value="",S.value="idle",!(!w||!z||!(L||"").trim())){S.value="loading";try{const A=await fetch(L.trim(),{credentials:"include",mode:"cors"});if(!A.ok)throw new Error(String(A.status));_.value=await A.text(),S.value="text"}catch{S.value="iframe-fallback"}}},{flush:"post"});const k=e.computed(()=>!r.url?.trim()||!H||d.value?!1:p.value?!0:!N.value&&!f.value),g=e.computed(()=>o.has(h.value)),C=e.computed(()=>{const w=(r.url||"").trim();return w?B.value||!N.value||h.value==="pdf"?w:g.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(w)}`:`https://docs.google.com/gview?url=${encodeURIComponent(w)}&embedded=true`:r.url}),x=e.ref("");e.watch(()=>({visible:r.previewVisible,src:C.value,doc:N.value,serverPage:B.value,skipIframe:p.value}),async({visible:w,src:L,doc:z,serverPage:A,skipIframe:R})=>{if(x.value="",!w||!(z||A)||R)return;const W=(L||"").trim();W&&(await e.nextTick(),await new Promise(G=>requestAnimationFrame(G)),r.previewVisible&&C.value===W&&(x.value=W))},{flush:"post"});const V=e.computed(()=>r.url&&(!f.value||!N.value)),M=async()=>{et()?window.open(r.url,"_blank"):await ie(r.url,r.fileName||"file")},j=()=>{n("closeModal")};return(w,L)=>{const z=e.resolveComponent("a-spin"),A=e.resolveComponent("VueFilesPreview"),R=e.resolveComponent("a-button"),W=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(W,e.mergeProps({key:0,visible:s.value,"onUpdate:visible":L[2]||(L[2]=G=>s.value=G),width:c.value,"body-style":a.value,style:b.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},w.$attrs,{onCancel:j}),{title:e.withCtx(()=>[e.createElementVNode("div",Dl,[e.renderSlot(w.$slots,"title",{},()=>[L[5]||(L[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(et)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Ml,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",jl,[e.createVNode(R,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[0]||(L[0]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...L[6]||(L[6]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(R,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[1]||(L[1]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...L[7]||(L[7]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),V.value&&r.url?(e.openBlock(),e.createBlock(R,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:M},{default:e.withCtx(()=>[...L[8]||(L[8]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(R,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:j},{default:e.withCtx(()=>[...L[9]||(L[9]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Al,[B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${m.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,zl)):e.createCommentVNode("",!0)],64)):u.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${m.value}`,class:"file-preview-modal-body__plaintext"},[S.value==="loading"?(e.openBlock(),e.createBlock(z,{key:0,tip:"加载中..."})):S.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:r.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ol)):S.value==="text"?(e.openBlock(),e.createElementBlock("pre",Pl," "+e.toDisplayString(_.value)+`
|
|
2
|
+
`,1)):e.createCommentVNode("",!0)])):k.value?(e.openBlock(),e.createBlock(A,{key:`vfp:${m.value}`,url:t.url},null,8,["url"])):N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${m.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ul)):e.createCommentVNode("",!0)],64)):f.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${m.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Rl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${m.value}`,class:"no-preview"},e.toDisplayString(H?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Wl,[B.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${m.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,ql)):e.createCommentVNode("",!0)],64)):u.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${m.value}`,class:"file-preview-modal-body__plaintext"},[S.value==="loading"?(e.openBlock(),e.createBlock(z,{key:0,tip:"加载中..."})):S.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:r.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Yl)):S.value==="text"?(e.openBlock(),e.createElementBlock("pre",Kl,e.toDisplayString(_.value)+`
|
|
3
|
+
`,1)):e.createCommentVNode("",!0)])):k.value?(e.openBlock(),e.createBlock(A,{key:`vfp:${m.value}`,url:t.url},null,8,["url"])):N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${m.value}:${x.value}`,src:x.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Gl)):e.createCommentVNode("",!0)],64)):f.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${m.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Jl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${m.value}`,class:"no-preview"},e.toDisplayString(H?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Xl,[e.createVNode(R,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[3]||(L[3]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...L[10]||(L[10]=[e.createTextVNode(" 上一个 ",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(R,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:L[4]||(L[4]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...L[11]||(L[11]=[e.createTextVNode(" 下一个 ",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),V.value&&r.url?(e.openBlock(),e.createBlock(R,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:M},{default:e.withCtx(()=>[...L[12]||(L[12]=[e.createTextVNode(" 下载 ",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(R,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:j},{default:e.withCtx(()=>[...L[13]||(L[13]=[e.createTextVNode(" 关闭 ",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-858e082a"]])),Ql=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Ue,HbLibCard:Pe,HbLibCopy:be,HbLibDetailBox:Re,HbLibFilePreview:tt,HbLibFooterBar:je,HbLibFormItemFilterModal:Ce,HbLibFormTooltipSelect:Me,HbLibFuncCompDrag:Ke,HbLibImportFile:Ae,HbLibListBtnsAct:we,HbLibListForm:ke,HbLibListMultiSelect:Se,HbLibListPageAct:_e,HbLibListPageContainer:Le,HbLibListTable:Ie,HbLibLoading:Je,HbLibLogModal:ze,HbLibModal:We,HbLibMutilpleSelectModal:xe,HbLibPageHeader:Ye,HbLibSort:Ge,HbLibTableAct:Be,HbLibTableColumnSet:De,HbLibUnDetailBox:qe,HbUiConfig:Oe},Symbol.toStringTag,{value:"Module"})),J=new Map;let ot;Z.isClient&&(document.addEventListener("mousedown",t=>ot=t),document.addEventListener("mouseup",t=>{for(const l of J.values())for(const{documentHandler:o}of l)o(t,ot)}));function lt(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(n,r){const s=l.instance.popperRef,c=n.target,b=r?.target,a=!l||!l.instance,i=!c||!b,h=t.contains(c)||t.contains(b),m=t===c,f=o.length&&o.some(B=>B?.contains(c))||o.length&&o.includes(b),N=s&&(s.contains(c)||s.contains(b));a||i||h||m||f||N||l.value(n,r)}}const Zl={beforeMount(t,l){J.has(t)||J.set(t,[]),J.get(t).push({documentHandler:lt(t,l),bindingFn:l.value})},updated(t,l){J.has(t)||J.set(t,[]);const o=J.get(t),n=o.findIndex(s=>s.bindingFn===l.oldValue),r={documentHandler:lt(t,l),bindingFn:l.value};n>=0?o.splice(n,1,r):o.push(r)},unmounted(t){J.delete(t)}},vl={mounted(t,l){const{value:o,arg:n}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const r=parseInt(n,10)||300;let s;t.__debounceHandler__=function(...c){s&&clearTimeout(s),s=setTimeout(()=>{o(...c)},r)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},nt=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(be,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},en={cos:Zl,dc:vl,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}nt(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&nt(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}};function tn(t){const l=e.ref(!1),o=e.ref(""),n=e.ref(""),r=e.ref(-1),s=p=>p.previewUrl,c=e.computed(()=>{const p=t.value.attachmentInfos,d=r.value;if(d<=0)return!1;for(let u=d-1;u>=0;u--)if(s(p[u]))return!0;return!1}),b=e.computed(()=>{const p=t.value.attachmentInfos,d=r.value;if(d<0||d>=p.length-1)return!1;for(let u=d+1;u<p.length;u++)if(s(p[u]))return!0;return!1}),a=e.computed(()=>t.value.attachmentInfos.length>1),i=p=>{const u=t.value.attachmentInfos[p];if(!u)return;const S=s(u);S&&(r.value=p,o.value=S,n.value=u.attachmentDesc||"",l.value=!0)},h=()=>{const p=t.value.attachmentInfos,d=r.value;for(let u=d-1;u>=0;u--)if(s(p[u])){i(u);return}},m=()=>{const p=t.value.attachmentInfos,d=r.value;for(let u=d+1;u<p.length;u++)if(s(p[u])){i(u);return}},f=()=>{l.value=!1,r.value=-1,o.value="",n.value=""},N=(p,d)=>{const u=s(p);if(!u){F.message.warning("暂无预览地址");return}const S=t.value.attachmentInfos,_=El(S,p,{preferredIndex:d});_>=0?i(_):(r.value=-1,o.value=u,n.value=p.attachmentDesc||"",l.value=!0)},B=p=>{const d=p.downloadUrl;if(!d){F.message.warning("暂无下载地址");return}const u=p.attachmentDesc?.trim()||"download";ie(d,u)},H=400;return{filePreviewVisible:l,pdfPreviewUrlRef:o,previewFileNameRef:n,previewAttachmentIndexRef:r,hasPrevAttachment:c,hasNextAttachment:b,showAttachmentNavBar:a,handlePreview:N,handleDownload:B,handleClosePreview:f,goPrevAttachment:h,goNextAttachment:m,triggerBrowserDownload:ie,handleBatchDownloadAttachment:async()=>{const d=t.value.attachmentInfos.filter(u=>!!u.downloadUrl?.trim());if(d.length===0){F.message.warning("暂无可下载附件");return}for(let u=0;u<d.length;u++){const S=d[u],_=S.attachmentDesc?.trim()||"download";ie(S.downloadUrl,_),u<d.length-1&&await new Promise(k=>setTimeout(k,H))}}}}const on={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload",format:"Supported formats"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown",overTip1:"Currently has exceeded",overTip2:"Optional quantity, please delete the displayed conditions first",title:"Custom query conditions"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan",addScheme:"Add scenario",editScheme:"Edit plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings",reset:"reduction"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"},HbImportFile:{clickUp:"Click to upload",downloadTemplate:"Click to download template",pleaseUploadFiles:"Please upload files",uploadText:"Drag files here or",fileLabel:"document",importBtn:"File upload"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},ln={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください",format:"サポートされている形式"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件",overTip1:"現在は超えています",overTip2:"オプションの数量です。最初に表示されている条件を削除してください",title:"カスタムクエリ条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定",reset:"削減"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"},HbImportFile:{clickUp:"クリックしてアップロード",downloadTemplate:"クリックしてテンプレートをダウンロード",pleaseUploadFiles:"ファイルをアップロードしてください",uploadText:"ファイルをここにドラッグするか、",fileLabel:"書類",importBtn:"ファイルのアップロード"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},nn={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索",title:"自定义查询条件",overTip1:"当前已经超过",overTip2:"个可选数量,请先删除已显示条件"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置",reset:"还原"},hbLibListForm:{queryCase:"查询方案",addScheme:"添加方案",editScheme:"编辑方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载",format:"支持格式"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"},HbImportFile:{uploadText:"将文件拖到此处或",clickUp:"请上传文件",downloadTemplate:"点击下载模板",pleaseUploadFiles:"请上传文件",fileLabel:"文件",importBtn:"文件上传"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},an={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var re={exports:{}},rn=re.exports,at;function sn(){return at||(at=1,(function(t,l){(function(o,n){t.exports=n(ne)})(rn,(function(o){function n(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=n(o),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c,b){return b==="W"?c+"周":c+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(c,b){var a=100*c+b;return a<600?"凌晨":a<900?"早上":a<1100?"上午":a<1300?"中午":a<1800?"下午":"晚上"}};return r.default.locale(s,null,!0),s}))})(re)),re.exports}sn(),ne.locale("zh-cn");const cn={en_US:on,ja_JP:ln,zh_CN:nn,de_DE:an},dn=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(Ql).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),Object.entries(en).forEach(([o,n])=>{t.directive(o,n)})};$.HbLibAnchor=Ue,$.HbLibCard=Pe,$.HbLibCopy=be,$.HbLibDetailBox=Re,$.HbLibFilePreview=tt,$.HbLibFooterBar=je,$.HbLibFormItemFilterModal=Ce,$.HbLibFormTooltipSelect=Me,$.HbLibFuncCompDrag=Ke,$.HbLibImportFile=Ae,$.HbLibListBtnsAct=we,$.HbLibListForm=ke,$.HbLibListMultiSelect=Se,$.HbLibListPageAct=_e,$.HbLibListPageContainer=Le,$.HbLibListTable=Ie,$.HbLibLoading=Je,$.HbLibLogModal=ze,$.HbLibModal=We,$.HbLibMutilpleSelectModal=xe,$.HbLibPageHeader=Ye,$.HbLibSort=Ge,$.HbLibTableAct=Be,$.HbLibTableColumnSet=De,$.HbLibUnDetailBox=qe,$.HbUiConfig=Oe,$.install=dn,$.locales=cn,$.useFilePreview=tn,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|