@hb-hellotech/hb-ui 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.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/index.d.ts +2 -1
- package/dist/components/func_comp/index.d.ts.map +1 -1
- 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 +6 -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/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 +2398 -1963
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
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(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.HbComponentLib={},D.Vue,D.draggable,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.iconsVue,D.core,D.dayjs))})(this,(function(D,e,ne,H,ce,K,Z,Y,v,ae){"use strict";const de=(t="")=>{const l=`hb-${t}`;return at(l)},ee=(t,l,o,n)=>(l&&(t+=`-${l}`),o&&(t+=`__${o}`),n&&(t+=`--${n}`),t),at=t=>({b:l=>l?ee(t,l,"",""):ee(t,"","",""),e:l=>l?ee(t,"",l,""):"",m:l=>ee(t,"","",l),be:(l,o)=>ee(t,l,o,""),em:(l,o)=>ee(t,"",l,o),bem:(l,o,n)=>ee(t,l,o,n),is:(l,o)=>o?`is-${l}`:""}),it=["onMouseenter","onMouseleave"],rt=["onClick"],st=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),a=K.useI18n().t,s=K.useI18n().messages.value.en_US,c=K.useI18n().messages.value.ja_JP,f=K.useI18n().messages.value.zh_CN,r=t,i=e.computed(()=>r.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),p=e.computed(()=>r.title||a("hbLibComp.hbFormItemFilterModal.title")),h=o,d=de("sfcm"),F=ce.useRoute(),S=e.reactive({lan:window.localStorage.getItem("lan")}),$=e.ref(!1),V=e.ref(600);let k=[];const y=e.ref([]),_=e.ref([]),x=e.computed(()=>y.value.every(b=>b.isLinked||b.isFixed)),C=b=>({...b,label:L(b)||`${B(b)||""} (${a("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:b.key,isFixed:b?.isFixed||!1,isLinked:b?.isLinked||!1,labelLanguage:b?.labelLanguage||void 0}),u=b=>{const I=b.draggedContext.element,T=b.relatedContext.index;if(I.isLinked||I.isFixed)return!1;const U=y.value.map((q,Q)=>({item:q,index:Q})).filter(({item:q})=>q.isLinked).map(({index:q})=>q);if(U.length===0)return!0;for(let q=0;q<U.length-1;q++){const Q=U[q],te=U[q+1];if(T>Q&&T<te)return!1}return!0},m=e.computed(()=>g()+"_"+r.saveKey),g=()=>{const b=localStorage.getItem("pro__Login_Userinfo");let I="anonymous";if(b)try{I=JSON.parse(b).value.jobNumber||"anonymous"}catch(U){console.warn("解析用户信息失败:",U)}let T=F?.path;return`searchFormConfig_${I}_${T}`},L=b=>({ja_JP:()=>Z.get(c,b.labelLanguage||""),en_US:()=>Z.get(s,b.labelLanguage||""),zh_CN:()=>Z.get(f,b.labelLanguage||"")})[S.lan]?.()||b.label,B=b=>({ja_JP:()=>Z.get(c,b.subLabelLanguage||""),en_US:()=>Z.get(s,b.subLabelLanguage||""),zh_CN:()=>Z.get(f,b.subLabelLanguage||"")})[S.lan]?.()||b.subLabel,A=()=>{try{const b=localStorage.getItem(m.value);if(b){const I=JSON.parse(b);if(I.originalList&&Array.isArray(I.originalList)){k=JSON.parse(JSON.stringify(I.originalList));const T=k.filter(M=>M?.isFixed),U=k.filter(M=>M?.isLinked),q=I.showList.filter(M=>!M.isFixed&&!M.isLinked),Q=i.value&&i.value>0?Math.max(0,i.value-T.length-U.length):q.length,te=T.map(M=>({...C(M)})),se=U.map(M=>({...C(M)})),he=q.slice(0,Q).map(M=>({...C(M)}));y.value=[...te,...se,...he];const ge=y.value.map(M=>M.key),ye=k.map(M=>M.key).filter(M=>!ge.includes(M));return _.value=k.filter(M=>ye.includes(M.key)).map(M=>({...C(M),active:!1})),!0}}}catch(b){console.warn("加载保存的搜索配置失败:",b)}return!1},W=()=>{try{const b={originalList:k,showList:y.value.map(I=>({...I,key:I.key,label:I.label,isFixed:I.isFixed,isLinked:I.isLinked,labelLanguage:I?.labelLanguage||void 0}))};localStorage.setItem(m.value,JSON.stringify(b))}catch(b){console.warn("保存搜索配置失败:",b)}},N=e.computed(()=>{const b=y.value.filter(T=>!T.isFixed&&!T.isLinked).length,I=y.value.filter(T=>T.isFixed||T.isLinked).length;return b>=i.value-I});e.watch(()=>r.list,b=>{let I=JSON.stringify(y.value)!==JSON.stringify(b);if(!I)return;const T=localStorage.getItem(m.value),U=JSON.parse(T||"{}");if(U&&U?.originalList&&Array.isArray(U.originalList))A(),h("confirm",y.value);else if(I){k=JSON.parse(JSON.stringify(b));const q=b.filter(M=>M?.isFixed),Q=b.filter(M=>M?.isLinked),te=b.filter(M=>!M?.isFixed&&!M?.isLinked),se=i.value&&i.value>0?Math.max(0,i.value-q.length-Q.length):te.length,he=q.map(M=>C(M)),ge=Q.map(M=>C(M)),nt=te.slice(0,se).map(M=>C(M));y.value=[...he,...ge,...nt];const ye=te.slice(se).map(M=>({...C(M),active:!1}));_.value=ye,h("confirm",y.value)}},{immediate:!0});const w=b=>{const I=y.value.findIndex(T=>T.key===b.key);I!==-1&&(y.value.splice(I,1),_.value.push({...b,active:!1}))},E=b=>{if(N.value){H.message.warning(`当前已经超过${a(i.value)}个可选数量,请先删除已显示条件`);return}const I=_.value.findIndex(T=>T.key===b.key);if(I!==-1){const[T]=_.value.splice(I,1);y.value.push({...T,active:!1})}},z=()=>{$.value=!1},P=()=>{$.value=!0},j=()=>{W(),h("confirm",y.value),z()},J=b=>{const I=_.value.findIndex(T=>T.key===b.key);I!==-1&&(_.value[I].active=!0)},G=b=>{const I=_.value.findIndex(T=>T.key===b.key);I!==-1&&(_.value[I].active=!1)};return l({toOpenModal:P}),e.onMounted(()=>{}),(b,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d).b())},[e.createVNode(e.unref(H.Modal),{visible:$.value,"onUpdate:visible":I[1]||(I[1]=T=>$.value=T),width:V.value,onCancel:z,onOk:j},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("title"))},e.toDisplayString(p.value),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(H.Button),{onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(H.Button),{type:"primary",onClick:j},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(d).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(i.value)+e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("show__tag"))},[e.createVNode(e.unref(ne),{modelValue:y.value,"onUpdate:modelValue":I[0]||(I[0]=T=>y.value=T),"item-key":"key",tag:"div",disabled:x.value,move:u},{item:e.withCtx(({element:T})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(d).e("show__tag__item"),e.unref(d).is("fixed",T.isFixed),e.unref(d).is("linked",T.isLinked)])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),!T.isFixed&&!T.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(Y.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(d).e("show__tag__item-close")),onClick:U=>w(T)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(d).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d).e("title__tip"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d).e("unshow__tag"))},[_.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(_.value,T=>(e.openBlock(),e.createElementBlock("div",{key:T.key,class:e.normalizeClass([e.unref(d).e("unshow__tag__item"),e.unref(d).is("fixed",T.isFixed||""),e.unref(d).is("linked",T.isLinked||"")]),onMouseenter:U=>J(T),onMouseleave:U=>G(T)},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),T.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(d).e("unshow__tag__item-add")),onClick:U=>E(T)},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.add")),11,rt)):e.createCommentVNode("",!0)],42,it))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(d).e("unshow__tag__empty"))},e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),R=(t,l)=>{const o=t.__vccOpts||t;for(const[n,a]of l)o[n]=a;return o},ct=R(st,[["__scopeId","data-v-657502f3"]]);function O(t){const l=t;return l.install=o=>{const n=t.name;o.component(n??"AnonymousComponent",t)},l}const ue=O(ct),dt={key:0,class:"form-footer"},Ce=O(R(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(t,{expose:l,emit:o}){const n=e.inject("globalCompConfig",{}),a=o,s=e.inject("HB_LIST_PAGE_CONTAINER"),c=e.computed(()=>r.searchList||[]),f=de("form"),r=t,i=e.computed(()=>r.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),p=e.ref("show"),h=e.computed(()=>r.needFooter||n.HbLibListForm?.needFooter),d=e.computed(()=>[...r.items]),F=N=>N!==void 0,S=N=>typeof N=="function",$=N=>F(N.condition)?S(N.condition)?N.condition():N.condition:!0,V=e.computed(()=>[...r.items].map(N=>({...N,condition:$(N),label:N.label?.includes("多项搜索")?"":N.label})));console.log(V.value);const k=e.computed(()=>r.saveKey),y=e.ref(),_=()=>{a("handleSearch")},x=()=>{a("handleReset")},C=e.ref(),u=()=>{C.value&&C.value.toOpenModal()},m=N=>{a("handleMenuClick",N)},g=N=>{a("handleSfcmConfirm",N)};e.watch(()=>r.isFormExpanded,N=>{if(N){console.log(N);const w=document.querySelector("#subpackage_container");w instanceof HTMLElement&&(w.style.overflow="hidden",setTimeout(()=>{w.style.overflow="auto"},500))}});const L=N=>{const w=N;w.style.height="",w.offsetHeight},B=N=>{const w=N;w.style.height="",w.style.overflow="",e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})},A=N=>{const w=N,E=w.querySelector(".hb-lib-form--container");if(E){const z=E.offsetHeight;w.style.height=z+"px",w.style.overflow="hidden",w.offsetHeight,requestAnimationFrame(()=>{w.style.height="0"})}},W=()=>{e.nextTick(()=>{s.calTableHeight&&s.calTableHeight()})};return l({formRef:y,SelectOption:H.SelectOption,Form:H.Form,FormItem:H.FormItem,Row:H.Row,Col:H.Col,Input:H.Input,Select:H.Select,CheckboxGroup:H.CheckboxGroup,Checkbox:H.Checkbox,DatePicker:H.DatePicker,InputNumber:H.InputNumber,RadioGroup:H.RadioGroup,Radio:H.Radio,Switch:H.Switch,Button:H.Button,Tooltip:H.Tooltip}),(N,w)=>{const E=e.resolveComponent("a-button"),z=e.resolveComponent("a-tooltip"),P=e.resolveComponent("a-menu-item"),j=e.resolveComponent("a-menu"),J=e.resolveComponent("a-dropdown"),G=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:L,onAfterEnter:B,onLeave:A,onAfterLeave:W},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box","hb-form-item-ui",h.value?"isNeedFooterCss":""])},[e.createVNode(e.unref(H.Form),e.mergeProps(N.$attrs,{model:t.formData,ref_key:"formRef",ref:y,class:["hb-lib-form--container",p.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(b,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:I},[b.condition?(e.openBlock(),e.createBlock(e.unref(H.FormItem),e.mergeProps({key:0,ref_for:!0},b,{name:b.key,class:{"hb-lib-form-item-border--unneed":b.isUnNeedBorder,"hb_lib_form_item--needShowAll":b.showAll}}),e.createSlots({default:e.withCtx(()=>[b.type==="slot"?e.renderSlot(N.$slots,b.key,{key:0,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="mixin"?e.renderSlot(N.$slots,b.key,{key:1,formData:t.formData,item:b},void 0,!0):e.createCommentVNode("",!0),b.type==="input"?(e.openBlock(),e.createBlock(e.unref(H.Input),e.mergeProps({key:2,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="select"?(e.openBlock(),e.createBlock(e.unref(H.Select),e.mergeProps({key:3,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(T,U)=>(e.openBlock(),e.createBlock(e.unref(H.SelectOption),{key:U,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(H.CheckboxGroup),e.mergeProps({key:4,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(T,U)=>(e.openBlock(),e.createBlock(e.unref(H.Checkbox),{key:U,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(H.DatePicker),e.mergeProps({key:5,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(H.InputNumber),e.mergeProps({key:6,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="radio"?(e.openBlock(),e.createBlock(e.unref(H.RadioGroup),e.mergeProps({key:7,value:t.formData[b.key],"onUpdate:value":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.options,(T,U)=>(e.openBlock(),e.createBlock(e.unref(H.Radio),{key:U,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),b.type==="switch"?(e.openBlock(),e.createBlock(e.unref(H.Switch),e.mergeProps({key:8,checked:t.formData[b.key],"onUpdate:checked":T=>t.formData[b.key]=T},{ref_for:!0},b.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[b.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.label)+" ",1),e.createVNode(e.unref(H.Tooltip),{title:b.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):e.createCommentVNode("",!0)],64))),128)),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",dt,[e.createVNode(E,{type:"primary",onClick:_,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(E,{type:"link",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(z,{key:0,title:N.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:u},[...w[0]||(w[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(J,{key:0},{overlay:e.withCtx(()=>[e.createVNode(j,{onClick:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createBlock(P,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(P,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(P,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(z,{title:N.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...w[1]||(w[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).e("footer"),"form-footer"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(N.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[p.value=="show"?e.renderSlot(N.$slots,"form-footer-right",{key:0,formRef:y.value},()=>[e.createVNode(E,{type:"primary",onClick:_,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(N.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(E,{type:"link",onClick:x,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(z,{key:0,title:N.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:u},[...w[2]||(w[2]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"formBtns",{},()=>[t.needSearchCase?(e.openBlock(),e.createBlock(J,{key:0},{overlay:e.withCtx(()=>[e.createVNode(j,{onClick:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createBlock(P,{key:b.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024))),128)),e.createVNode(P,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(P,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(z,{title:N.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...w[3]||(w[3]=[e.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)],!0):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(G,{showNumber:i.value,list:d.value,ref_key:"HbSfCmRef",ref:C,onConfirm:g,saveKey:k.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-8307bb07"]])),mt={class:"hb-lib-list-page-act-box"},pt={class:"hb-lib-list-page-breadcrumb"},ft={class:"hb-lib-list-page-act"},bt={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},ht={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},ke=O(R(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(t){const l=e.inject("globalCompConfig",{}),o=t,{isFullscreen:n,toggle:a}=v.useFullscreen(document.body);e.watch(()=>n.value,r=>{let i=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(o.hideDomList)&&o.hideDomList.length?i=[...o.hideDomList]:l.HbLibListPageAct?.hideDomList&&(i=[...l.HbLibListPageAct.hideDomList]);const p=new Map;setTimeout(r?()=>{if(i?.length)for(let h=0;h<i.length;h++){const d=document.querySelector(i[h]);d&&(p.set(i[h],d.style.display),d.style.display="none")}}:()=>{if(i?.length)for(let h=0;h<i.length;h++){const d=document.querySelector(i[h]);if(d){const F=p.get(i[h]);d.style.display=F||"",p.delete(i[h])}}},0)});const s=e.ref(""),c=()=>{const r=ce.useRoute();let i=localStorage.getItem(l.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",p=r?.path;if(i!=="[]"){let h=JSON.parse(i).find(d=>d.value===p);h&&(s.value=h.label.replace(/-/g," / "))}};e.onMounted(()=>{c()});const f=r=>{r.keyCode===192&&a()};return e.onMounted(()=>{window.addEventListener("keydown",f)}),e.onUnmounted(()=>{window.removeEventListener("keydown",f)}),(r,i)=>{const p=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",mt,[e.createElementVNode("aside",pt,e.toDisplayString(s.value),1),e.createElementVNode("aside",ft,[e.createVNode(p,{title:e.unref(n)?`${r.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${r.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...h)=>e.unref(a)&&e.unref(a)(...h))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",ht,[...i[2]||(i[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",bt,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(r.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),gt={class:"hb-lib-list-btns-box"},yt={class:"hb-lib-list-btns-left"},ut={class:"hb-lib-list-btns-right"},_e=O(R(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:l}){const o=l,n=e.ref(!0),a=()=>{n.value=!n.value,o("handleOpenOrClose",n.value)},s=()=>{o("handleReload")},c=f=>{};return e.onMounted(()=>{window.addEventListener("keydown",c)}),e.onUnmounted(()=>{window.removeEventListener("keydown",c)}),(f,r)=>{const i=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",gt,[e.createElementVNode("aside",yt,[e.renderSlot(f.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",ut,[t.needReload?(e.openBlock(),e.createBlock(i,{key:0,title:f.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:s},[...r[0]||(r[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(i,{key:1,title:n.value?`${f.$t("hbLibComp.hbListBtnsAct.close")}`:`${f.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:a},[n.value?(e.openBlock(),e.createBlock(e.unref(Y.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(Y.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),Ct=(t={})=>{const{formRef:l,offsetBottom:o=50,minHeight:n=300,timeOut:a=100}=t,s=e.ref(0);let c=null,f=null,r=null,i=null,p=null;const h=()=>{p&&clearTimeout(p),p=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const y=document.querySelector(".ant-table"),_=document.querySelector(".ant-pagination");if(y){const x=Math.floor(y.getBoundingClientRect().top),C=window.innerHeight,m=(_?_.offsetHeight+20:40)+o;let g=C-x-m;g<n&&(g=n),s.value=g}})})},100)},d=()=>{const y=document.querySelector(".ant-pagination");if(y){const _=new MutationObserver(()=>{h()});return _.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),_}return null},F=()=>{const y=document.querySelector(".hb-lib-list-page-form-box");y&&(c=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(x=>{x.style.display="none"}),h()}),c.observe(y))},S=()=>{const y=document.querySelector(".hb-lib-list-page-form-box");y&&(r=new MutationObserver(()=>{setTimeout(()=>{h()},a)}),r.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},$=()=>{i&&clearTimeout(i),i=setTimeout(()=>{h()},a)},V=()=>{window.addEventListener("resize",$),e.nextTick(()=>{F(),S(),f=d()})},k=()=>{window.removeEventListener("resize",$),c&&c.disconnect(),r&&r.disconnect(),f&&f.disconnect(),i&&clearTimeout(i),p&&clearTimeout(p)};return l&&e.watch(()=>l,()=>{setTimeout(()=>{h()},200)},{deep:!0}),e.onMounted(()=>{h(),V()}),e.onUnmounted(()=>{k()}),{tableHeight:s,calTableHeight:h}},we=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(t){const l=e.inject("globalCompConfig",{}),{isFullscreen:o}=v.useFullscreen(document.body),n=t,a=e.useTemplateRef("PageContainerRef"),s=e.computed(()=>n.offsetHeight||l.HbLibListPageContainer?.offsetHeight||110),c=e.computed(()=>n.offsetBottom||l.HbLibListPageContainer?.offsetBottom||20),f=e.computed(()=>n.minHeight||l.HbLibListPageContainer?.minHeight||300),r=e.computed(()=>n.timeOut||l.HbLibListPageContainer?.timeOut||100),i=e.computed(()=>n.isUnFixTbHeight||l.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(n.isUnFixTbHeight);const{calTableHeight:p,tableHeight:h}=Ct({offsetBottom:c.value,minHeight:f.value,timeOut:r.value}),d=e.computed(()=>h.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:a,tableHeight:h,calTableHeight:p}),(F,S)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:a},[e.renderSlot(F.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle(i.value?null:{"--hb-list-table-height":e.unref(o)?d.value-s.value+"px":d.value-c.value+"px","--hb-list-ttable-height":t.tabelData.length?"":e.unref(o)?d.value-s.value+"px":d.value-c.value+"px"})},[e.renderSlot(F.$slots,"default")],4)],512))}})),kt={style:{"font-weight":"500"}},_t={key:0,class:"hb-lib-search-tag__description"},wt={class:"hb-lib-selector-dropdown"},Lt={class:"hb-lib-selector-search"},St={class:"hb-lib-selector-list"},xt=["onClick"],Bt={class:"hb-lib-option-content"},Nt={class:"hb-lib-option-label"},Tt={key:0,class:"hb-lib-selector-empty"},Vt={key:1,class:"hb-lib-selector-footer"},Ft={class:"hb-lib-footer-buttons"},Et={key:2,class:"hb-lib-selector-footer"},Ht={class:"hb-lib-footer-buttons"},Le=O(R(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:l}){const o=t,n=l,a=e.useModel(t,"value"),s=e.ref(!1),c=e.ref(""),f=e.ref([]),r=e.ref(),i=e.computed(()=>{if(o.remoteSearch||!c.value)return o.options;const C=c.value.toLowerCase();return o.options.filter(u=>u.label.toLowerCase().includes(C)||u.description?.toLowerCase().includes(C))}),p=e.computed(()=>o.prefix?`${o.prefix.length*14+8}px`:"0px"),h=e.computed(()=>i.value.length===0?!1:i.value.every(C=>f.value.includes(C.value))),d=e.computed(()=>{if(i.value.length===0)return!1;const C=i.value.filter(u=>f.value.includes(u.value)).length;return C>0&&C<i.value.length});e.watch(()=>a.value,C=>{C?f.value=Array.isArray(C)?[...C]:[C]:f.value=[]},{immediate:!0}),e.watch(()=>o.searchValue,C=>{o.remoteSearch&&C!==void 0&&(c.value=C)},{immediate:!0});const F=C=>{C&&(s.value=C,S.value=[...f.value],c.value="",setTimeout(()=>{if(r.value){const u=r.value.input||r.value.$el?.querySelector("input");u&&u.focus()}},100))},S=e.ref([]),$=()=>{f.value=[...S.value],s.value=!1,n("cancel")},V=e.ref([]),k=()=>{const C=o.multiple?f.value:f.value[0]||"",u=o.options.filter(m=>f.value.includes(m.value));V.value=u,console.log(C,u),S.value=[...f.value],a.value=C,n("update:value",C),n("change",C,u),n("confirm",C,u),s.value=!1},y=v.useDebounceFn(C=>{const u=C!==void 0?C:c.value;o.remoteSearch&&(n("search",u),n("update:searchValue",u))},300),_=C=>{if(o.multiple){const u=new Set(f.value);u.has(C.value)?u.delete(C.value):u.add(C.value),f.value=Array.from(u)}else f.value=[C.value],k()},x=C=>{if(C.target.checked){const m=new Set(f.value);i.value.forEach(g=>{m.add(g.value)}),f.value=Array.from(m)}else{const m=new Set(i.value.map(g=>g.value));f.value=f.value.filter(g=>!m.has(g))}};return(C,u)=>{const m=e.resolveComponent("a-tag"),g=e.resolveComponent("a-input"),L=e.resolveComponent("a-checkbox"),B=e.resolveComponent("a-radio"),A=e.resolveComponent("a-button"),W=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":p.value}},C.$attrs),[e.createVNode(W,{value:a.value,"onUpdate:value":u[5]||(u[5]=N=>a.value=N),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:s.value,allowClear:"",maxTagCount:t.maxTagCount,options:i.value,onDropdownVisibleChange:F,onSearch:e.unref(y),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:N,label:w,closable:E,option:z})=>[e.createVNode(m,{class:"hb-lib-search-tag",onClick:u[0]||(u[0]=()=>F(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",kt,e.toDisplayString(w),1),z?.description?(e.openBlock(),e.createElementBlock("span",_t," ("+e.toDisplayString(z.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:N})=>[e.createElementVNode("div",wt,[e.createElementVNode("div",Lt,[e.createVNode(g,{ref_key:"searchInputRef",ref:r,class:"hb-lib-selector-search-input",value:c.value,"onUpdate:value":u[1]||(u[1]=w=>c.value=w),placeholder:"请输入关键词搜索","allow-clear":"",onInput:u[2]||(u[2]=w=>e.unref(y)(w.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,w=>(e.openBlock(),e.createElementBlock("div",{key:w.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:f.value.includes(w.value)}]),onClick:()=>_(w)},[t.multiple?(e.openBlock(),e.createBlock(L,{key:0,checked:f.value.includes(w.value),onChange:()=>_(w),onClick:u[3]||(u[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(B,{key:1,checked:f.value.includes(w.value),onChange:()=>_(w),onClick:u[4]||(u[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Bt,[e.createElementVNode("div",Nt,e.toDisplayString(w.label),1)])],10,xt))),128))]),i.value.length===0?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(L,{checked:h.value,indeterminate:d.value,onChange:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Ft,[e.createVNode(A,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(A,{type:"primary",size:"small",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Et,[u[6]||(u[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ht,[e.createVNode(A,{size:"small",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),$t={class:"hb-lib-form-item-filter-modal-search"},It={class:"hb-lib-form-item-filter-modal-buttons"},Dt={key:0},Se=O(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref(!1),c=e.ref(""),f=e.ref(),r=e.ref(),i=e.ref([]),p=e.ref([]),h=e.ref(),d=e.reactive({searchText:"",searchedColumn:""}),F=e.computed(()=>n.tableData.map(m=>(m.id=m.id||Math.random(),m))),S=e.computed(()=>n.tableColumn.map(m=>(m.customFilterDropdown&&(m.onFilter=(g,L)=>L[m.dataIndex].toString().toLowerCase().includes(g.toLowerCase()),m.onFilterDropdownVisibleChange=g=>{g&&setTimeout(()=>{f.value?.focus()},100)}),{...m}))),$=()=>{let m="";p.value.forEach(g=>{m=m+g[n.labelKey]+","}),c.value=m.substring(0,m.length-1),s.value=!1,a("handleConfirm",p.value)},V=()=>{s.value=!1},k=()=>{s.value=!0,e.nextTick(()=>{const m=h.value?.$el?.querySelector(".ant-table-body");m&&(m.scrollTop=0)})},y=()=>{i.value=[],p.value=[]},_=()=>{c.value="",y()},x=(m,g,L)=>{g(),d.searchText=m[0],d.searchedColumn=L},C=(m,g)=>{m({confirm:!0}),d.searchText="",g()},u=(m,g)=>{i.value=m,p.value=g};return l({resetInputVal:_}),(m,g)=>{const L=e.resolveComponent("a-input"),B=e.resolveComponent("a-button"),A=e.resolveComponent("a-table"),W=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:r},[e.createVNode(L,{readonly:"",onClick:k,value:c.value,"onUpdate:value":g[0]||(g[0]=N=>c.value=N),placeholder:m.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Y.UnorderedListOutlined),{onClick:k})]),_:1},8,["value","placeholder"]),e.createVNode(W,{visible:s.value,"onUpdate:visible":g[1]||(g[1]=N=>s.value=N),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(B,{onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(B,{onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(B,{type:"primary",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{ref_key:"tableRef",ref:h,columns:S.value,dataSource:F.value,rowSelection:{selectedRowKeys:i.value,onChange:u},rowKey:N=>N[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:N,selectedKeys:w,confirm:E,clearFilters:z,column:P})=>[e.createElementVNode("div",$t,[e.createVNode(L,{ref_key:"searchInput",ref:f,placeholder:`请输入${P.title}`,value:w[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:j=>N(j.target.value?[j.target.value]:[]),onPressEnter:j=>x(w,E,P.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",It,[e.createVNode(B,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:j=>C(z,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(B,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:j=>x(w,E,P.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:N})=>[e.createVNode(e.unref(Y.SearchOutlined),{style:e.normalizeStyle({color:N?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:N,column:w})=>[d.searchText&&d.searchedColumn===w.dataIndex?(e.openBlock(),e.createElementBlock("span",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.toString().split(new RegExp(`(?<=${d.searchText})|(?=${d.searchText})`,"i")),(E,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[E.toLowerCase()===d.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:z,class:"highlight"},e.toDisplayString(E),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(E),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Mt={class:"hb-lib-table-act-box"},At=["onClick"],zt={href:"javascript:;",class:"hb-lib-table-main-action"},Ot=["onClick"],Pt={href:"javascript:;",class:"hb-lib-table-more-action"},Ut=["onClick"],Rt={href:"javascript:;"},jt=["onClick"],Wt={class:"hb-lib-table-confirm-modal-content"},xe=O(R(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:l}){const o=t,{t:n}=K.useI18n(),a=e.ref(!1),s=e.ref(!1),c=e.ref(null),f=e.computed(()=>o.actions.filter(V=>V.condition!==void 0?V.condition:!0)),r=e.computed(()=>f.value.slice(0,o.buttonDisplaysQuantity)),i=e.computed(()=>p(f.value.slice(o.buttonDisplaysQuantity)));function p(V){if(o.filterPermission)return o.filterPermission(V);let k=[],y=[];return k=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(k)||V.length===0?(k=[],[]):(k=k.filter(_=>_.type!="2"),V.forEach(_=>{(!_.permissionsTag||k.findIndex(x=>x.action===_.permissionsTag)!==-1)&&y.push(_)}),y)}const h=V=>{V.handler&&V.handler(o.record)},d=V=>{c.value=V,a.value=!0},F=()=>{if(c.value){s.value=!0;try{h(c.value),s.value=!1,a.value=!1}catch{s.value=!1}}},S=()=>{a.value=!1,c.value=null},$=e.computed(()=>c.value?{title:c.value.confirmTitle,content:c.value.confirmContent||c.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return l({ADropdown:H.Dropdown,AMenu:H.Menu,AMenuItem:H.MenuItem,APopconfirm:H.Popconfirm,AModal:H.Modal,DownOutlined:Y.DownOutlined}),(V,k)=>{const y=e.resolveComponent("a-divider"),_=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(x,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[x.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:u=>d(x),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(x.label),1)],8,At)),[[_,x.permissionsTag||null]]),i.value&&i.value.length>0||C!==r.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(H.Popconfirm),{title:x.confirmTitle,onConfirm:u=>h(x)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",zt,[e.createTextVNode(e.toDisplayString(x.label),1)])),[[_,x.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),i.value&&i.value.length>0||C!==r.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):x.slot?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(V.$slots,x.slot,{item:x},void 0,!0),i.value&&i.value.length>0||C!==r.value.length-1?(e.openBlock(),e.createBlock(y,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:u=>h(x),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(x.label),1)],8,Ot)),[[_,x.permissionsTag||null]]),i.value&&i.value.length>0||C!==r.value.length-1?e.withDirectives((e.openBlock(),e.createBlock(y,{key:0,type:"vertical"},null,512)),[[_,x.permissionsTag||null]]):e.createCommentVNode("",!0)],64))],64))),128)),i.value&&i.value.length>0?(e.openBlock(),e.createBlock(e.unref(H.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(H.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(x,C)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(H.MenuItem),{key:C},{default:e.withCtx(()=>[x.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:u=>d(x)},[e.createTextVNode(e.toDisplayString(x.label),1)],8,Ut)),[[_,x.permissionsTag||null]]):e.withDirectives((e.openBlock(),e.createBlock(e.unref(H.Popconfirm),{key:1,title:x.confirmTitle,onConfirm:u=>h(x)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Rt,[e.createTextVNode(e.toDisplayString(x.label),1)])),[[_,x.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[_,x.permissionsTag||null]])],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:u=>h(x)},[e.createTextVNode(e.toDisplayString(x.label),1)],8,jt)),[[_,x.permissionsTag||null]])]),_:2},1024)),[[_,x.permissionsTag||null]])),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Pt,[e.createTextVNode(e.toDisplayString(V.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(Y.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(H.Modal),{visible:a.value,title:$.value.title,"confirm-loading":s.value,onOk:F,onCancel:S},{default:e.withCtx(()=>[e.createElementVNode("p",Wt,e.toDisplayString($.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),Be=t=>({tableWidth:e.computed(()=>{const o=Array.isArray(t)?t:t.value;return!o||o.length===0?0:o.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,a)=>n+a,0)})});var qt=typeof global=="object"&&global&&global.Object===Object&&global,Yt=typeof self=="object"&&self&&self.Object===Object&&self,Ne=qt||Yt||Function("return this")(),ie=Ne.Symbol,Te=Object.prototype,Kt=Te.hasOwnProperty,Gt=Te.toString,oe=ie?ie.toStringTag:void 0;function Jt(t){var l=Kt.call(t,oe),o=t[oe];try{t[oe]=void 0;var n=!0}catch{}var a=Gt.call(t);return n&&(l?t[oe]=o:delete t[oe]),a}var Xt=Object.prototype,Qt=Xt.toString;function Zt(t){return Qt.call(t)}var vt="[object Null]",eo="[object Undefined]",Ve=ie?ie.toStringTag:void 0;function to(t){return t==null?t===void 0?eo:vt:Ve&&Ve in Object(t)?Jt(t):Zt(t)}function oo(t){return t!=null&&typeof t=="object"}var lo="[object Symbol]";function no(t){return typeof t=="symbol"||oo(t)&&to(t)==lo}var ao=/\s/;function io(t){for(var l=t.length;l--&&ao.test(t.charAt(l)););return l}var ro=/^\s+/;function so(t){return t&&t.slice(0,io(t)+1).replace(ro,"")}function me(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var Fe=NaN,co=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,po=/^0o[0-7]+$/i,fo=parseInt;function Ee(t){if(typeof t=="number")return t;if(no(t))return Fe;if(me(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=me(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=so(t);var o=mo.test(t);return o||po.test(t)?fo(t.slice(2),o?2:8):co.test(t)?Fe:+t}var pe=function(){return Ne.Date.now()},bo="Expected a function",ho=Math.max,go=Math.min;function He(t,l,o){var n,a,s,c,f,r,i=0,p=!1,h=!1,d=!0;if(typeof t!="function")throw new TypeError(bo);l=Ee(l)||0,me(o)&&(p=!!o.leading,h="maxWait"in o,s=h?ho(Ee(o.maxWait)||0,l):s,d="trailing"in o?!!o.trailing:d);function F(u){var m=n,g=a;return n=a=void 0,i=u,c=t.apply(g,m),c}function S(u){return i=u,f=setTimeout(k,l),p?F(u):c}function $(u){var m=u-r,g=u-i,L=l-m;return h?go(L,s-g):L}function V(u){var m=u-r,g=u-i;return r===void 0||m>=l||m<0||h&&g>=s}function k(){var u=pe();if(V(u))return y(u);f=setTimeout(k,$(u))}function y(u){return f=void 0,d&&n?F(u):(n=a=void 0,c)}function _(){f!==void 0&&clearTimeout(f),i=0,n=r=a=f=void 0}function x(){return f===void 0?c:y(pe())}function C(){var u=pe(),m=V(u);if(n=arguments,a=this,r=u,m){if(f===void 0)return S(r);if(h)return clearTimeout(f),f=setTimeout(k,l),F(r)}return f===void 0&&(f=setTimeout(k,l)),c}return C.cancel=_,C.flush=x,C}const yo={key:0,class:"hb-lib-list-table-act"},uo={class:"empty-container"},Co={key:1},ko={key:2},$e=O(R(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(t,{emit:l}){const o=e.inject("globalCompConfig",{}),n=l,{t:a}=K.useI18n(),s=t,c=e.ref([]),f=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:r}=Be(c),i=e.ref(r.value),p=e.computed(()=>s.isUnFixTbHeight||o.HbLibListPageContainer?.isUnFixTbHeight||!1);e.watch(()=>s.columns,k=>{const y=k.filter(x=>x!=null&&x.checked);c.value=y.map(x=>{let C={...x,title:x.title||x.label,align:x.align||o.listTable?.align||"center"};C.ellipsis&&!C.needTooltip&&(C.needTooltip=!0);let u=s.defaultWidth||o.listTable?.defaultColWidth||150;if(!C.width)C.width=u;else if(typeof C.width=="string"){const m=parseInt(C.width,10);C.width=isNaN(m)?u:m}return C.resizable===void 0&&(C.resizable=!0),C});const{tableWidth:_}=Be(c);i.value=_.value},{immediate:!0,deep:!0});const h=He(()=>{n("resizeCol",c)},o.listTable?.colSaveTimeOut||800),d=(k,y)=>{if(y){const _=typeof k=="string"?parseInt(k,10):k;y.width=isNaN(_)?o.listTable?.defaultColWidth||150:_,e.nextTick(()=>{h()})}},F=(k,y,_)=>{k?.current&&n("change",k,y,_)},S=(k,y="YYYY-MM-DD HH:mm:ss")=>k?ae(k).format(y):"",$=(k,y)=>k&&y[k]||"",V=(k,y=o.listTable?.ellipsisNumber||20)=>k?k.length>y?`${k.substring(0,y)}...`:k:"";return(k,y)=>{const _=e.resolveComponent("a-empty"),x=e.resolveComponent("a-tooltip"),C=e.resolveComponent("HbLibCopy"),u=e.resolveComponent("a-tag"),m=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":s.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[k.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",yo,[e.renderSlot(k.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(k.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(m,e.mergeProps(k.$attrs,{bordered:"",columns:c.value,tableLayout:"fixed",onResizeColumn:d,onChange:F,scroll:p.value?{x:i.value}:{x:i.value,y:e.unref(f).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",uo,[e.createVNode(_,{description:e.unref(a)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[k.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:g})=>[e.renderSlot(k.$slots,"headerCell",{column:g,title:g.title},()=>[e.createTextVNode(e.toDisplayString(g.title),1)],!0)]),key:"0"}:void 0,k.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:g,record:L,index:B,text:A})=>[e.renderSlot(k.$slots,"bodyCell",{column:g,record:L,index:B,text:A},void 0,!0),g&&g.needTooltip&&!g.needCopy?(e.openBlock(),e.createBlock(x,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[g.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L[g.dataIndex]),1)]),_:2},1032,["placement"])):g&&g.needCopy&&!g.needTooltip?(e.openBlock(),e.createElementBlock("div",Co,[e.createTextVNode(e.toDisplayString(L[g.dataIndex])+" ",1),e.createVNode(C,{"cp-text":L[g.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):e.createCommentVNode("",!0),g&&g.needTooltip&&g.needCopy?(e.openBlock(),e.createElementBlock("div",ko,[e.createVNode(x,{placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[g.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(V(L[g.dataIndex],g.strLen)),1)]),_:2},1032,["placement"]),e.createVNode(C,{"cp-text":L[g.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):g&&g.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(S(L[g.dataIndex],g.format)),1)],64)):g&&g.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[$(L[g.dataIndex],g.tags)?(e.openBlock(),e.createBlock(u,{key:0,color:$(L[g.dataIndex],g.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L[g.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,k.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:g,index:L})=>[e.renderSlot(k.$slots,"expandedRowRender",{record:g,index:L},void 0,!0)]),key:"2"}:void 0,k.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:g})=>[e.renderSlot(k.$slots,"customFilterDropdown",{column:g},void 0,!0)]),key:"3"}:void 0,k.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:g})=>[e.renderSlot(k.$slots,"customFilterIcon",{column:g},void 0,!0)]),key:"4"}:void 0,k.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({expanded:g,record:L,index:B})=>[e.renderSlot(k.$slots,"expandIcon",{expanded:g,record:L,index:B},void 0,!0)]),key:"5"}:void 0,k.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,k.$slots.summary?{name:"summary",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,k.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-4a8b9aaa"]])),_o={class:"hb-lib-table-setting-box"},wo={key:0,class:"hb-lib-table-drag-item"},Lo={key:0,class:"hb-lib-table-drag-item-act"},So=["onClick"],xo=["onClick"],Bo={class:"hb-lib-table-set-btn-group"},No={class:"select-all-container",style:{"margin-right":"10px"}},Ie=O(R(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(t,{emit:l}){const o=l,{t:n}=K.useI18n(),a=t,s=e.ref([]),c=e.computed(()=>r.value.filter(u=>u.checked));e.ref([]);const f=e.ref(!1),r=e.ref([]),i=e.ref(null),p=e.computed(()=>c.value.length>0&&c.value.length===s.value.length),h=e.computed(()=>c.value.length>0&&c.value.length<s.value.length),d=u=>{i.value=u.oldIndex},F=u=>{const m=u.newIndex;if(s.value.some(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=s.value.filter(A=>A.fixed==="left").length,B=s.value.length-s.value.filter(A=>A.fixed==="right").length;if((L>0&&m<L||B<s.value.length&&m>=B)&&(H.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),i.value!==null)){const A=r.value.splice(m,1)[0];r.value.splice(i.value,0,A)}}i.value=null},S=u=>{u.target.checked?r.value.forEach(g=>g.checked=!0):r.value.forEach(g=>{g.dataIndex!=="action"&&g.dataIndex!=="actions"&&(g.checked=!1)})},$=()=>{s.value=a.localColumns.map(m=>({...m,label:m.title&&m.title.tag?_(m.title):m.title||m.title2,value:m.dataIndex,checked:m.checked||m.checked===void 0})),r.value=[...s.value];let u=[];a.tableColumns.forEach(function(m){u.push(m.dataIndex)})},V=(u,m)=>{m?u.checked=!0:u.checked=!1},k=()=>{s.value=[...r.value],o("on-get-columns",s.value),f.value=!1},y=()=>{s.value=a.tableColumns.map(m=>({...m,label:m.title&&m.title.tag?_(m.title):m.title||m.title2,value:m.dataIndex,checked:m.checked||m.checked===void 0})),r.value=[...s.value];let u=[];a.tableColumns.forEach(function(m){u.push(m.dataIndex)})},_=u=>u.children[0].text,x=u=>{delete u.fixed;const m=r.value.findIndex(g=>g.value===u.value);if(m!==-1){let g=-1;for(let L=0;L<r.value.length;L++)r.value[L].fixed==="left"&&(g=L);if(g!==-1&&m!==g+1){const L=[...r.value],[B]=L.splice(m,1);L.splice(g+1,0,B),r.value=L}}},C=u=>{const m=r.value.findIndex(g=>g.value===u.value);if(m!==-1){let g=-1;for(let W=0;W<r.value.length;W++)r.value[W].fixed==="left"&&(g=W);const L=[...r.value],[B]=L.splice(m,1);B.fixed="left";const A=g===-1?0:g+1;L.splice(A,0,B),r.value=L}};return e.watch(()=>a.tableColumns,()=>{y()},{immediate:!0,deep:!0}),(u,m)=>{const g=e.resolveComponent("a-tooltip"),L=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",_o,[e.createVNode(e.unref(H.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:f.value,"onUpdate:visible":m[1]||(m[1]=B=>f.value=B)},{content:e.withCtx(()=>[e.createVNode(e.unref(ne),{modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=B=>r.value=B),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:d,onEnd:F},{item:e.withCtx(({element:B})=>[B.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",wo,[e.createVNode(e.unref(H.Checkbox),{checked:B.checked,onChange:A=>V(B,A.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["checked","onChange"]),B.checked?(e.openBlock(),e.createElementBlock("section",Lo,[e.createElementVNode("span",{class:e.normalizeClass(B.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),B.fixed?(e.openBlock(),e.createBlock(g,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:A=>x(B)},[...m[2]||(m[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,So)]),_:2},1024)):e.createCommentVNode("",!0),B.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(g,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:A=>C(B)},[...m[3]||(m[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,xo)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",Bo,[e.createElementVNode("div",No,[e.createVNode(e.unref(H.Checkbox),{checked:p.value,indeterminate:h.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),a.localColumns.length?(e.openBlock(),e.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(L,{onClick:k,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(g,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...m[4]||(m[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-07a63550"]])),De=O(R(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:l}){const o=t,n=e.useAttrs(),a=e.computed(()=>{const S=n,$=S.dropdownClassName;return{...S,dropdownClassName:$??"hb_lib_form_tooltip_select__dropdown"}}),s=e.ref(),c=e.useModel(t,"value"),f=e.computed(()=>o.options??[]),r=e.computed(()=>({maxWidth:typeof o.tooltipMaxWidth=="number"?`${o.tooltipMaxWidth}px`:o.tooltipMaxWidth})),i=S=>S.tooltip??S.label,p=S=>S.key??S.label,h=S=>!!(o.enableTooltip&&i(S));return l({focus:()=>{s.value?.focus?.()},blur:()=>{s.value?.blur?.()},selectRef:s}),(S,$)=>(e.openBlock(),e.createBlock(e.unref(H.Select),e.mergeProps({ref_key:"selectRef",ref:s},a.value,{value:c.value,"onUpdate:value":$[0]||($[0]=V=>c.value=V),class:"hb_lib_form_tooltip_select"}),{default:e.withCtx(()=>[S.$slots.default?e.renderSlot(S.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(f.value,V=>(e.openBlock(),e.createBlock(e.unref(H.SelectOption),e.mergeProps({key:p(V),value:V.value,disabled:V.disabled},{ref_for:!0},V.optionProps),{default:e.withCtx(()=>[h(V)?(e.openBlock(),e.createBlock(e.unref(H.Tooltip),{key:0,title:i(V),placement:o.tooltipPlacement,"overlay-style":r.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(V.label),3)]),_:2},1032,["title","placement","overlay-style"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":o.enableEllipsis}])},e.toDisplayString(V.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),To={class:"ant-upload-drag-icon"},Vo={class:"ant-upload-text"},Fo={style:{color:"#ff5000"}},Eo={class:"ant-upload-hint"},Ho={key:0,class:"hb_import_btn"},$o=["href"],Me=O(R(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(t,{expose:l}){const{t:o}=K.useI18n(),n=e.ref(),a=t,s=e.ref(!1),c=e.reactive({fileList:[],visible:!1}),f=d=>{if(d==null)return;const F=c.fileList.indexOf(d);if(F!==-1){const S=c.fileList.slice();S.splice(F,1),c.fileList=S}},r=()=>{c.visible=!1,c.fileList=[],s.value=!1},i=d=>(c.fileList=[d],a.beforeUpload?a.beforeUpload(d.originFileObj):!1),p=()=>{n.value.validateFields().then(()=>{a.beforeSubmit&&(s.value=!0,a.beforeSubmit(c.fileList).then(()=>{}).finally(()=>{s.value=!1}))})},h=()=>{c.visible=!0};return l({handleCancel:r,openModal:h,confirmLoading:s}),(d,F)=>{const S=e.resolveComponent("a-upload-dragger"),$=e.resolveComponent("a-form-item"),V=e.resolveComponent("a-form"),k=e.resolveComponent("a-modal"),y=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,e.mergeProps({visible:c.visible,"onUpdate:visible":F[0]||(F[0]=_=>c.visible=_),title:a.title,"confirm-loading":s.value},d.$attrs,{width:a.modalWidth,onCancel:r,onOk:p}),{default:e.withCtx(()=>[e.createVNode(V,{ref_key:"modalFormRef",ref:n,model:c},{default:e.withCtx(()=>[e.createVNode($,{name:"fileList",label:e.unref(o)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:a.isRequired,message:e.unref(o)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(S,{"max-count":a.maxCount,multiple:a.multiple,accept:a.acceptFile,name:"file","file-list":c.fileList,"before-upload":i,onRemove:f},{default:e.withCtx(()=>[e.createElementVNode("p",To,[e.createVNode(e.unref(Y.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",Vo,[e.createTextVNode(e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",Fo,e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Eo,e.toDisplayString(e.unref(o)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(a.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),a.templateUrl?(e.openBlock(),e.createElementBlock("p",Ho,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:a.templateUrl},e.toDisplayString(e.unref(o)("hbLibComp.HbImportFile.downloadTemplate")),9,$o)])):e.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),e.renderSlot(d.$slots,"btn",{},()=>[e.createVNode(y,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),Io={class:"hb_lib_log_modal_content"},Do={class:"log_remark"},Ae=O(R(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(t,{expose:l,emit:o}){const{t:n}=K.useI18n(),a=e.useSlots(),s=t,c=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],f=e.computed(()=>s.columns||c),r=e.computed(()=>s.title||n("hbLibComp.HbLogModal.operateLogs")),i=e.computed(()=>!!a.title),p=e.ref(!1),h=e.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(y,_)=>_[0]+"-"+_[1]+" 总共"+y+"页",total:0}});e.watch(()=>s.pagination,y=>{y&&(h.pagination={...h.pagination,...y})},{deep:!0,immediate:!0});const d=()=>{const y={pageIndex:h.pagination.current,pageSize:h.pagination.pageSize,query:s.params};s.getLogData&&(p.value=!0,s.getLogData(y).then(_=>{Number(_.code)==200?(h.pagination.total=Number(_.data.total),h.list=_.data[s.dataStr]||[]):H.message.error(_.message)}).finally(()=>{p.value=!1}))},F=y=>{h.pagination.current=y.current,h.pagination.pageSize=y.pageSize,d()},S=()=>{h.list=[],k("update:visible",!1)},$=()=>{k("update:visible",!0)},V=(y,_="YYYY-MM-DD HH:mm:ss")=>y?ae(y).format(_):"",k=o;return e.watch(()=>s.visible,y=>{y&&d()}),l({close:S,loading:p}),(y,_)=>{const x=e.resolveComponent("a-tooltip"),C=e.resolveComponent("HbLibCopy"),u=e.resolveComponent("a-table"),m=e.resolveComponent("a-button"),g=e.resolveComponent("HbLibModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,e.mergeProps(y.$attrs,{visible:t.visible,title:i.value?void 0:r.value,width:t.width,height:t.height,modalStyle:t.modalStyle,bodyStyle:t.bodyStyle,onCancel:S}),e.createSlots({footer:e.withCtx(()=>[e.createVNode(m,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Io,[e.createVNode(u,{bordered:"",rowKey:"id",columns:f.value,dataSource:h.list,pagination:h.pagination,loading:p.value,scroll:{y:t.scrollY},onChange:F},e.createSlots({bodyCell:e.withCtx(({column:L,record:B})=>[L&&L.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.needTooltip?(e.openBlock(),e.createBlock(x,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B[L.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(B[L.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),L&&L.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Do,e.toDisplayString(B[L.dataIndex]),1),e.createVNode(C,{"cp-text":B[L.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),L&&L.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(V(B[L.dataIndex],L.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:2},[y.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:L})=>[e.renderSlot(y.$slots,"headerCell",{column:L},()=>[e.createTextVNode(e.toDisplayString(L.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[i.value?{name:"title",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),t.needBtn?e.renderSlot(y.$slots,"default",{key:0},()=>[e.createVNode(m,{onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.logBtnText),1)]),_:1})],!0):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),Mo={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},Ao={class:"hb_ui_config"},zo=e.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(t){const l=t;let o=null;return e.watch(()=>l.config,n=>{o=e.reactive(Z.merge({},Mo,n))},{deep:!0,immediate:!0}),e.provide(fe,o),(n,a)=>(e.openBlock(),e.createElementBlock("div",Ao,[e.renderSlot(n.$slots,"default")]))}}),fe=Symbol("GLOBAL_CONFIG_KEY"),ze=O(zo),Oo={class:"hb_card"},Po={key:0,class:"hb_card_header"},Uo={class:"hb_fix"},Ro={class:"hb_card_header-title"},jo={class:"hb_card_header-action"},Wo={class:"hb_card_body"},Oe=O(R(e.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(t){const l=e.inject(fe),o=t,n=e.computed(()=>{let a=o.formItemMb||l?.HbLibCard?.formItemMb;return a?{"--hb-card-form-item-mb":a+"px"}:{}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb_card_wrapper"},a.$attrs),[e.createElementVNode("div",{class:e.normalizeClass(t.isModal?"modal__module-card":"__module-card")},[e.createElementVNode("div",Oo,[t.cardTitle?(e.openBlock(),e.createElementBlock("div",Po,[e.createElementVNode("div",Uo,[e.createElementVNode("span",Ro,[e.renderSlot(a.$slots,"cardTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.cardTitle),1)],!0)]),e.createElementVNode("div",jo,[e.renderSlot(a.$slots,"cardAct",{},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Wo,[e.createElementVNode("section",{class:e.normalizeClass({hb_card_form:t.isForm&&!t.isModal,hb_card_flex_form:t.isForm&&t.isModal,l1c:t.layout==1,l3c:t.layout==3,l4c:t.layout==4}),style:e.normalizeStyle(n.value)},[e.renderSlot(a.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),qo=["onClick"],Yo={class:"step"},Ko={key:0,class:"line"},Go=["title"],Pe=O(R(e.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(t){const l=t,o=e.ref(""),n=l.offsetTop??160,a=e.computed(()=>l.anchors.filter(r=>typeof r.visible=="function"?r.visible():r.visible!==!1)),s=()=>{const r=l.containerSelector||"#subpackage_container";return document.querySelector(r)||window},c=r=>{const i=s(),p=r.target.startsWith("#")||r.target.startsWith(".")?r.target:`#${r.target}`,h=document.querySelector(p);if(!h)return;let d=h.offsetTop;i instanceof HTMLElement&&(d-=i.offsetTop),d-=n,i instanceof Window?window.scrollTo({top:d,behavior:"smooth"}):i.scrollTo({top:d,behavior:"smooth"}),o.value=r.target},f=()=>{const r=s();let i=0;r instanceof Window?i=window.scrollY+n+5:i=r.scrollTop+n+5;let p=a.value[0]?.target||"";for(const h of a.value){const d=h.target.startsWith("#")||h.target.startsWith(".")?h.target:`#${h.target}`,F=document.querySelector(d);if(!F)continue;let S=F.offsetTop;r instanceof HTMLElement&&(S-=r.offsetTop),i>=S&&(p=h.target)}o.value=p};return e.onMounted(()=>{s().addEventListener("scroll",f),f()}),e.onBeforeUnmount(()=>{s().removeEventListener("scroll",f)}),(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:"anchors",style:e.normalizeStyle({top:`${e.unref(n)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(p,h)=>(e.openBlock(),e.createElementBlock("div",{key:p.target,class:e.normalizeClass(["anchor-item",{isActive:o.value===p.target}]),onClick:d=>c(p)},[e.createElementVNode("div",Yo,[h!==a.value.length-1?(e.openBlock(),e.createElementBlock("div",Ko)):e.createCommentVNode("",!0),i[0]||(i[0]=e.createElementVNode("div",{class:"circle"},null,-1))]),e.createElementVNode("span",{class:"title",title:p.title},e.toDisplayString(p.title.length>12?p.title.slice(0,12)+"...":p.title),9,Go)],10,qo))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),Jo={class:"hb_detail_top_act_left"},Xo={key:1,class:"hb_detail_top_wrapper_sticky"},Qo={class:"hb_detail_top_act"},Zo={key:0,class:"hb_detail_all_info"},vo={class:"hb_detail_all_info_left"},el={class:"hb_detail_info_title"},tl={key:0,class:"hb_detail_info_content"},ol={class:"create_by"},ll={class:"hb_detail_all_info_right"},nl={class:"hb_edit_detail_content_wrapper"},al={class:"hb_detail_content"},il={class:"hb-back-top-inner"},Ue=O(R(e.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.inject(fe),a=()=>{o.backFn?o.backFn():window.history.back()},s=e.computed(()=>o.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),c=e.computed(()=>{const $={};return o.needFixWidth?{hb_need_set_desc_label_width:o.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:o.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:$}),f=()=>document.querySelector(o.container),r=e.ref(!1),i=e.ref(null),{top:p}=v.useElementBounding(i),h=e.computed(f),{y:d}=v.useScroll(h);e.watch(d,$=>{r.value=$>p.value},{immediate:!0});const F=$=>{document.querySelectorAll(".hb_card_body").forEach(k=>{k.querySelectorAll(".ant-descriptions-item-content span").forEach(_=>{_.textContent?.trim()||(_.textContent=$)})})};let S=null;return e.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(S=setTimeout(()=>{F(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),e.onUnmounted(()=>{S&&clearTimeout(S)}),($,V)=>{const k=e.resolveComponent("RollbackOutlined"),y=e.resolveComponent("a-divider"),_=e.resolveComponent("a-spin");return e.openBlock(),e.createBlock(_,{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["hb_detail_wrapper",c.value]),style:e.normalizeStyle({"--hb-detail-desc-label-width":c.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":c.value?.hb_need_set_desc_value_width+"px"})},[t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["hb_detail_top_act_sticky",r.value?"can_show":""])},[e.createElementVNode("div",Jo,[e.createVNode(k,{style:{color:"#ff5000"}}),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:a},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),V[0]||(V[0]=e.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):e.createCommentVNode("",!0),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("div",Qo,[e.createVNode(k),e.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:a},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(y,{type:"vertical"}),e.createElementVNode("span",null,e.toDisplayString(t.stickyTitle),1)]),t.needTotalInfoBox?(e.openBlock(),e.createElementBlock("div",Zo,[e.createElementVNode("aside",vo,[e.renderSlot($.$slots,"totalInfoLeft",{},()=>[e.createElementVNode("div",el,e.toDisplayString(t.totalInfo.totalInfoTitle),1),t.totalInfo.totalInfoSubTitle1?(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("span",ol,e.toDisplayString(t.totalInfo.totalInfoSubTitle1)+e.toDisplayString(t.totalInfo.totalInfoSubVal1),1),e.createElementVNode("span",null,e.toDisplayString(t.totalInfo.totalInfoSubTitle2)+e.toDisplayString(t.totalInfo.totalInfoSubVal2),1)])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("aside",ll,[e.renderSlot($.$slots,"totalInfoRight",{},void 0,!0)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nl,[e.createElementVNode("div",al,[e.renderSlot($.$slots,"detailContent",{},void 0,!0)])]),e.createVNode(e.unref(H.BackTop),{target:f,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",il,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),Re=O(R(e.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const t=document.querySelector("#subpackage_container");return t&&t.scrollHeight>t.clientHeight?t:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(t){const l=t,o=(r,i=300)=>He(r,i),n=e.computed(()=>l.buttons.filter(i=>{if(i.condition===void 0||i.condition===null)return!0;if(typeof i.condition=="boolean")return i.condition;if(typeof i.condition=="function")return i.condition()}).map(i=>({...i,onClick:o(i.onClick,i.debounceTime||300)}))),a=e.ref(0),s=r=>{let i=0;return(Array.isArray(r)?r:[r]).forEach(h=>{let d=[];if(h.startsWith("#")){const F=document.getElementById(h.slice(1));F&&d.push(F)}else d=Array.from(document.getElementsByClassName(h));d.forEach(F=>{i+=F.offsetWidth||0})}),i},c=()=>{l.leftElements&&(a.value=s(l.leftElements)+1)};let f=null;return e.onMounted(()=>{const r=l.getContainer();r!==window&&r instanceof HTMLElement&&r.addEventListener("scroll",()=>{}),c(),f=new MutationObserver(()=>{c()});const i=document.body;f.observe(i,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{f&&f.disconnect()}),(r,i)=>{const p=e.resolveComponent("a-button"),h=e.resolveComponent("a-space"),d=e.resolveComponent("a-affix"),F=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",{class:"footer-affix-wrapper",style:e.normalizeStyle({"--pageHeaderOrFonterLeft":a.value+"px"})},[e.createVNode(d,{"offset-bottom":0,target:t.getContainer,style:{width:"100%"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:t.placeLeft,page_footer_btn_right:t.placeRight})},[e.createVNode(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,S=>e.withDirectives((e.openBlock(),e.createBlock(p,{key:S.key,type:S.type||"default",danger:S.danger,loading:S.loading,disabled:S.disabled,onClick:S.onClick,class:"hb_list_page_button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[F,S.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),rl={class:"modal__detail-content"},je=O(R(e.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(t,{expose:l,emit:o}){const n=o,a=t,s=e.computed({get:()=>a.visible,set:B=>n("update:visible",B)}),c=e.ref(null),f=e.computed(()=>({top:"10px",...a.modalStyle})),r=e.computed(()=>({overflow:"hidden",...a.modalStyle})),i=e.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...a.bodyStyle})),{x:p,y:h,isDragging:d}=v.useDraggable(c),F=e.ref(0),S=e.ref(0),$=e.ref(!1),V=e.ref(0),k=e.ref(0),y=e.ref(0),_=e.ref(0),x=e.ref({left:0,right:0,top:0,bottom:0});let C=null;const u=()=>{V.value=0,k.value=0,y.value=0,_.value=0,$.value=!1};e.watch(s,B=>{B?setTimeout(()=>{u()},50):(C&&clearTimeout(C),C=setTimeout(()=>{V.value=0,k.value=0,y.value=0,_.value=0},300))}),e.watch([p,h],()=>{if(!$.value){F.value=p.value,S.value=h.value;const B=document.body.getBoundingClientRect(),A=c.value.getBoundingClientRect();x.value.right=B.width-A.width,x.value.bottom=B.height-A.height,y.value=V.value,_.value=k.value}$.value=!0}),e.watch(d,()=>{d||($.value=!1)}),e.watchEffect(()=>{$.value&&(V.value=y.value+Math.min(Math.max(x.value.left,p.value),x.value.right)-F.value,k.value=_.value+Math.min(Math.max(x.value.top,h.value),x.value.bottom)-S.value)});const m=e.computed(()=>({transform:`translate(${V.value}px, ${k.value}px)`})),g=()=>{n("cancel")},L=()=>{n("ok")};return e.onUnmounted(()=>{C&&clearTimeout(C)}),l({handleOk:L,handleCancel:g}),(B,A)=>{const W=e.resolveComponent("a-spin"),N=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(N,e.mergeProps({style:f.value,bodyStyle:i.value,ref:"modalRef",visible:s.value,"onUpdate:visible":A[0]||(A[0]=w=>s.value=w),"wrap-style":r.value,onOk:L,onCancel:g},B.$attrs),e.createSlots({title:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"modalTitleRef",ref:c,style:{width:"100%",cursor:"move"}},[e.renderSlot(B.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)],512)]),modalRender:e.withCtx(({originVNode:w})=>[(e.openBlock(),e.createElementBlock("div",{key:s.value,style:e.normalizeStyle(m.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w)))],4))]),default:e.withCtx(()=>[e.createVNode(W,{spinning:a.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([t.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",t.descLabelWidth&&"hb_need_set_desc_label_width",t.descValueWidth&&"hb_need_set_desc_value_width"]),style:e.normalizeStyle({"--hb-detail-desc-label-width":t.descLabelWidth+"px","--hb-detail-desc-value-width":t.descValueWidth+"px"})},[e.createElementVNode("div",rl,[e.renderSlot(B.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[B.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(B.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),sl={key:0,class:"hb_edit_header"},cl={class:"__detail-content"},dl={key:1,class:"hb_edit_footer"},ml={class:"hb-back-top-inner"},We=O(R(e.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(t){const l=e.ref("vertical"),o=t,n=()=>document.querySelector(o.container),a=e.inject("GLOBAL_CONFIG_KEY"),s=e.computed(()=>o.backTopBottom||a?.HbLibUnDetailBox?.backTopBottom||80);return(c,f)=>(e.openBlock(),e.createBlock(e.unref(H.Spin),{spinning:t.spinning},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({class:"hb_edit_wrapper"},c.$attrs,{style:{"--hb-edit-form-label":t.formLabelWidth},class:t.formLabelWidth?"isNeedSetLabelWidth":""}),[c.$slots.editHeader?(e.openBlock(),e.createElementBlock("div",sl,[e.renderSlot(c.$slots,"editHeader",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["hb_edit_detail_content_wrapper",l.value==="vertical"?"form_vertical":""])},[e.createElementVNode("div",cl,[e.renderSlot(c.$slots,"editContent",{},void 0,!0)])],2),c.$slots.editFooter?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(c.$slots,"editFooter",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(H.BackTop),{target:n,style:e.normalizeStyle({bottom:s.value+"px"})},{default:e.withCtx(()=>[e.createElementVNode("div",ml,[e.createVNode(e.unref(Y.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),pl={class:"hb_edit_header_left"},fl={class:"hb_edit_header_title"},bl={class:"hb_edit_header_right"},qe=O(R(e.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(t){const{t:l}=K.useI18n(),o=t,n=ce.useRoute(),a=e.ref(0),s=e.computed(()=>n?.meta?.title||"");function c(d,F="offsetHeight"){let S=0;return(Array.isArray(d)?d:[d]).forEach(V=>{let k=[];if(V.startsWith("#")){const y=document.getElementById(V.slice(1));y&&k.push(y)}else k=Array.from(document.getElementsByClassName(V));k.forEach(y=>{S+=y[F]||0})}),S}const f=()=>{o.topElements&&(a.value=c(o.topElements))},r=e.ref(0),i=()=>{o.leftElements&&(r.value=c(o.leftElements,"offsetWidth")+1)};let p=null;e.onMounted(()=>{f(),i(),window.addEventListener("resize",f),p=new MutationObserver(()=>{i()});const d=document.body;p.observe(d,{childList:!0,subtree:!0,attributes:!0})}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",f),p&&p.disconnect()}),e.watch(()=>o.topElements,()=>{f()},{immediate:!0});const h=()=>{o.backFn?o.backFn():window.history.back()};return(d,F)=>{const S=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",{class:"hb_edit_header",style:e.normalizeStyle({top:a.value+"px","--pageHeaderOrFonterLeft":r.value+"px"})},[e.createElementVNode("aside",pl,[e.createElementVNode("a",{href:"#",class:"backBtn",onClick:h},e.toDisplayString(e.unref(l)("hbLibComp.HbLibDetailBox.back")),1),e.createVNode(S,{type:"vertical"}),e.createElementVNode("span",fl,e.toDisplayString(s.value),1)]),e.createElementVNode("aside",bl,[e.renderSlot(d.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),hl={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},be=O(R(e.defineComponent({name:"HbLibCopy",__name:"copy",props:hl,setup(t){const l=t,o=e.ref();e.watchEffect(()=>{o.value=l.data});const n=e.computed(()=>l.tooltipTitle||"复制"),a=e.computed(()=>l.copySuccessTip||"复制成功"),s=e.computed(()=>l.copyFailTip||"复制失败"),c=e.computed(()=>{if(l.cpText)return l.cpText;let r="";if(l.data)if(Array.isArray(l.data)){if(l.K&&l.V&&l.L){const i=l.data.find(p=>p?.[l.K]===l.V);r=i?i[l.L]:""}}else l.K&&(r=l.data[l.K]);return r}),f=()=>{navigator.clipboard.writeText(c.value).then(()=>{H.message.success(a.value)}).catch(()=>{H.message.error(s.value)})};return(r,i)=>c.value?(e.openBlock(),e.createBlock(e.unref(H.Tooltip),{key:0,title:n.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:e.normalizeStyle({...r.cpStyle}),onClick:e.withModifiers(f,["stop","prevent"])},[...i[0]||(i[0]=[e.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[e.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),e.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),e.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),gl={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},Ye=O(R(e.defineComponent({name:"HbDrag",__name:"index",props:gl,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:l}){const o=t,n=e.shallowRef([]);e.watch(()=>o.dragList,p=>{n.value=p},{deep:!0,immediate:!0});const a=de("drag"),s=l,c=p=>{console.log("drag start",p),s("handleDragStart",p)},f=p=>{console.log("drag end",p),s("handleDragEnd",p)},r=p=>{console.log("drag add",p),s("handleDragAdd",p)},i=p=>{console.log("drag remove",p),s("handleDragRemove",p)};return(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[p.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":h[0]||(h[0]=d=>n.value=d),"item-key":"key",class:{[p.dragClass]:p.dragClass}},p.$attrs,{"ghost-class":p.ghostClass,onStart:c,onEnd:f,onAdd:r,onRemove:i}),{item:e.withCtx(({element:d})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":h[1]||(h[1]=d=>n.value=d),"item-key":"id",class:{[p.dragClass]:p.dragClass}},p.$attrs,{"ghost-class":p.ghostClass,onStart:c,onEnd:f,onAdd:r,onRemove:i}),{item:e.withCtx(({element:d})=>[e.createElementVNode("div",null,[e.renderSlot(p.$slots,"default",{item:d},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),yl={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},Ke=O(R(e.defineComponent({name:"HbLibSort",__name:"sort",props:yl,emits:["change"],setup(t,{expose:l,emit:o}){const n=t,a=o,s=e.ref([]),c=e.ref("");e.watch(()=>n.menuItems,r=>{let i=[];Array.isArray(r)&&r.length&&r.forEach(p=>{i=[...i,{label:`${p.label}升序`,value:`${p.value}`,sort:"Asc"},{label:`${p.label}降序`,value:`${p.value}`,sort:"Desc"}]}),s.value=i},{deep:!0,immediate:!0});const f=r=>{c.value=r.value+r.sort,n.getSort&&n.getSort({orderFeild:r.value,orderBy:r.sort}),a("change",c)};return l({currentActiveItem:c}),(r,i)=>{const p=e.resolveComponent("a-menu-item"),h=e.resolveComponent("a-menu"),d=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(d,{trigger:[n.triggerWay]},{overlay:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,F=>(e.openBlock(),e.createBlock(p,{key:F.value+F.sort,onClick:S=>f(F)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(c.value==F.value+F.sort?"activted":"")},e.toDisplayString(F.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createTextVNode(e.toDisplayString(n.colText)+" ",1),e.createVNode(e.unref(Y.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),ul={class:"hb_lib_loading"},Cl={class:"hb_lib_loading_loading_anima"},kl={class:"hb_lib_loading_load_tips"},Ge=O(R(e.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(t){const{t:l}=K.useI18n(),o=t,n=e.computed(()=>o.loadTips||l("hbLibComp.HbLibLoading.loadingTips"));return(a,s)=>(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",Cl,[s[0]||(s[0]=e.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),e.createElementVNode("div",kl,e.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),le=t=>{const o=t.trim().split(/[?#]/)[0].match(/\.([^.]+)$/);return o?o[1].toLowerCase():""},_l=new Set(["png","jpg","jpeg","gif","bmp","webp","svg"]),wl=t=>_l.has(le(t));function Je(t){const l=t.trim();try{return new URL(l).href}catch{return l}}function Xe(t){try{return typeof window>"u"||!window.location?.origin?!1:new URL(t).origin===window.location.origin}catch{return!1}}function Qe(t){return new Promise((l,o)=>{const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.withCredentials=Xe(t),n.onload=()=>{n.status>=200&&n.status<300?l(n.response):o(new Error(String(n.status)))},n.onerror=()=>o(new Error("xhr")),n.send()})}async function Ll(t){const l=Je(t),o=typeof document<"u"?document.documentMode:void 0;if(typeof o=="number"&&o>0)return Qe(l);if(typeof fetch=="function"){const n=await fetch(l,{credentials:Xe(l)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return Qe(l)}function Sl(t,l){const o=l.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(t,o);return}const a=URL.createObjectURL(t);try{const s=document.createElement("a");s.href=a,s.rel="noopener noreferrer",s.setAttribute("download",o),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)}finally{URL.revokeObjectURL(a)}}function xl(t){const l=Je(t),o=document.createElement("iframe");o.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",o.src=l,document.body.appendChild(o),window.setTimeout(()=>{try{document.body.removeChild(o)}catch{}},12e4)}async function Bl(t,l){const o=l.trim()||"download";try{const n=await Ll(t);Sl(n,o);return}catch{xl(t)}}const Nl=768;function Tl(){return typeof window>"u"?!0:window.innerWidth>=Nl}function Ze(){return!Tl()}const Vl={class:"file-preview-modal-title"},Fl={key:0,class:"file-preview-modal-title__tip"},El={class:"file-preview-modal-body file-preview-modal-body--fill"},Hl=["src"],$l=["src"],Il={key:2,class:"file-preview-modal-body__pre"},Dl=["src"],Ml=["src"],Al={key:0,class:"file-preview-modal-footer__nav"},zl={class:"file-preview-modal-body file-preview-modal-body--fill"},Ol=["src"],Pl=["src"],Ul={key:2,class:"file-preview-modal-body__pre"},Rl=["src"],jl=["src"],Wl={key:0,class:"file-preview-modal-footer__nav"},ve=O(R(Object.assign({name:"HbLibFilePreview"},{__name:"file_preview",props:{url:{type:String,default:""},fileName:{type:String,default:""},file:{type:File,default:null},previewVisible:{type:Boolean},showAttachmentNav:{type:Boolean,default:!1},hasPrevAttachment:{type:Boolean,default:!1},hasNextAttachment:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},isTitleTip:{type:Boolean,default:!0},titleTip:{type:String,default:"温馨提示:移动端预览会消耗流量,请在WIFI环境下预览 如果无法预览请下载后查看"},needModal:{type:Boolean,default:!0}},emits:["closeModal","prevAttachment","nextAttachment"],setup(t,{emit:l}){const o=new Set(["doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx"]),n=l,a=t,s=e.ref(a.previewVisible);e.watch(()=>a.previewVisible,w=>{s.value=w});const c=e.computed(()=>a.mobile?"100%":"98%"),f=e.computed(()=>a.mobile?{top:0,paddingBottom:0,maxWidth:"100vw"}:{top:"20px"}),r=e.computed(()=>({height:a.mobile?"calc(100vh - 132px)":"calc(100vh - 150px)",padding:a.mobile?"8px":void 0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",boxSizing:"border-box"})),i=e.computed(()=>typeof dd<"u"&&dd.env&&dd.env.platform),p=e.computed(()=>{const w=(a.fileName||"").trim(),E=(a.url||"").trim(),z=w?le(w):"",P=E?le(E):"";return P&&z&&P!==z?E:z?w:P?E:w||E}),h=e.computed(()=>p.value?le(p.value):""),d=e.computed(()=>`${a.url}\0${a.fileName||""}`),F=e.computed(()=>p.value?wl(p.value):!1),S=e.computed(()=>{if(!p.value)return!1;const w=le(p.value);return["pdf","doc","docx","xls","xlsx","xlsb","xlsm","ppt","pptx","pps","ppsx","odt","ods","odp","rtf","csv"].includes(w)}),$=e.computed(()=>{const w=(a.url||"").trim();if(!w)return!1;try{const{pathname:E}=new URL(w);return/\/file(?:\/|-)preview\b/i.test(E)}catch{return/\/file(?:\/|-)preview\b/i.test(w)}}),V=typeof window<"u",k=new Set(["xlsx","xls","xlsm","xlsb","csv","ods","ots","fods","xlt","xltm"]),y=e.computed(()=>!V||!a.url?.trim()||$.value?!1:k.has(h.value)),_=e.computed(()=>h.value==="txt"),x=e.computed(()=>!a.url?.trim()||$.value?!1:_.value),C=e.ref("idle"),u=e.ref("");e.watch(()=>({visible:a.previewVisible,url:a.url,isTxt:_.value}),async({visible:w,url:E,isTxt:z})=>{if(u.value="",C.value="idle",!(!w||!z||!(E||"").trim())){C.value="loading";try{const P=await fetch(E.trim(),{credentials:"include",mode:"cors"});if(!P.ok)throw new Error(String(P.status));u.value=await P.text(),C.value="text"}catch{C.value="iframe-fallback"}}},{flush:"post"});const m=e.computed(()=>!a.url?.trim()||!V||_.value?!1:y.value?!0:!S.value&&!F.value),g=e.computed(()=>o.has(h.value)),L=e.computed(()=>{const w=(a.url||"").trim();return w?$.value||!S.value||h.value==="pdf"?w:g.value?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(w)}`:`https://docs.google.com/gview?url=${encodeURIComponent(w)}&embedded=true`:a.url}),B=e.ref("");e.watch(()=>({visible:a.previewVisible,src:L.value,doc:S.value,serverPage:$.value,skipIframe:y.value}),async({visible:w,src:E,doc:z,serverPage:P,skipIframe:j})=>{if(B.value="",!w||!(z||P)||j)return;const J=(E||"").trim();J&&(await e.nextTick(),await new Promise(G=>requestAnimationFrame(G)),a.previewVisible&&L.value===J&&(B.value=J))},{flush:"post"});const A=e.computed(()=>a.url&&(i.value||!F.value||!S.value)),W=async()=>{i.value&&dd.biz?.util?.downloadFile?dd.biz.util.downloadFile({url:a.url,name:a.fileName,size:a.file?.size}):Ze()?window.open(a.url,"_blank"):await Bl(a.url,a.fileName||"file")},N=()=>{n("closeModal")};return(w,E)=>{const z=e.resolveComponent("a-spin"),P=e.resolveComponent("VueFilesPreview"),j=e.resolveComponent("a-button"),J=e.resolveComponent("a-modal");return t.needModal?(e.openBlock(),e.createBlock(J,e.mergeProps({key:0,visible:s.value,"onUpdate:visible":E[2]||(E[2]=G=>s.value=G),width:c.value,"body-style":r.value,style:f.value,"wrap-class-name":t.mobile?"file-preview-modal-wrap file-preview-modal-wrap--mobile":"file-preview-modal-wrap","destroy-on-close":""},w.$attrs,{onCancel:N}),{title:e.withCtx(()=>[e.createElementVNode("div",Vl,[e.renderSlot(w.$slots,"title",{},()=>[E[5]||(E[5]=e.createTextVNode("文件预览",-1))],!0),e.unref(Ze)()&&t.isTitleTip?(e.openBlock(),e.createElementBlock("span",Fl,e.toDisplayString(t.titleTip),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Al,[e.createVNode(j,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[0]||(E[0]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...E[6]||(E[6]=[e.createTextVNode("上一个",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(j,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[1]||(E[1]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...E[7]||(E[7]=[e.createTextVNode("下一个",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),A.value&&a.url?(e.openBlock(),e.createBlock(j,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:W},{default:e.withCtx(()=>[...E[8]||(E[8]=[e.createTextVNode("下载",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(j,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:N},{default:e.withCtx(()=>[...E[9]||(E[9]=[e.createTextVNode("关闭",-1)])]),_:1},8,["size","block"])],!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",El,[$.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Hl)):e.createCommentVNode("",!0)],64)):x.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${d.value}`,class:"file-preview-modal-body__plaintext"},[C.value==="loading"?(e.openBlock(),e.createBlock(z,{key:0,tip:"加载中..."})):C.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:a.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,$l)):C.value==="text"?(e.openBlock(),e.createElementBlock("pre",Il,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)])):m.value?(e.openBlock(),e.createBlock(P,{key:`vfp:${d.value}`,url:t.url},null,8,["url"])):S.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Dl)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${d.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,Ml)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${d.value}`,class:"no-preview"},e.toDisplayString(V?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)])]),_:3},16,["visible","width","body-style","style","wrap-class-name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",zl,[$.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Ol)):e.createCommentVNode("",!0)],64)):x.value?(e.openBlock(),e.createElementBlock("div",{key:`txt:${d.value}`,class:"file-preview-modal-body__plaintext"},[C.value==="loading"?(e.openBlock(),e.createBlock(z,{key:0,tip:"加载中..."})):C.value==="iframe-fallback"?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:a.url,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Pl)):C.value==="text"?(e.openBlock(),e.createElementBlock("pre",Ul,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)])):m.value?(e.openBlock(),e.createBlock(P,{key:`vfp:${d.value}`,url:t.url},null,8,["url"])):S.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[B.value?(e.openBlock(),e.createElementBlock("iframe",{key:`${d.value}:${B.value}`,src:B.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Rl)):e.createCommentVNode("",!0)],64)):F.value?(e.openBlock(),e.createElementBlock("img",{key:`img:${d.value}`,class:"file-preview-modal-body__img",src:t.url,alt:"预览"},null,8,jl)):t.url?(e.openBlock(),e.createElementBlock("div",{key:`nop:${d.value}`,class:"no-preview"},e.toDisplayString(V?"当前格式暂不支持预览,请下载后查看":"预览组件未加载,请检查依赖"),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["file-preview-modal-footer",{"file-preview-modal-footer--mobile":t.mobile}])},[e.renderSlot(w.$slots,"footer",{},()=>[t.showAttachmentNav?(e.openBlock(),e.createElementBlock("div",Wl,[e.createVNode(j,{disabled:!t.hasPrevAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[3]||(E[3]=G=>n("prevAttachment"))},{default:e.withCtx(()=>[...E[10]||(E[10]=[e.createTextVNode("上一个",-1)])]),_:1},8,["disabled","size","block"]),e.createVNode(j,{disabled:!t.hasNextAttachment,size:t.mobile?"large":"middle",block:t.mobile,onClick:E[4]||(E[4]=G=>n("nextAttachment"))},{default:e.withCtx(()=>[...E[11]||(E[11]=[e.createTextVNode("下一个",-1)])]),_:1},8,["disabled","size","block"])])):e.createCommentVNode("",!0),A.value&&a.url?(e.openBlock(),e.createBlock(j,{key:1,size:t.mobile?"large":"middle",block:t.mobile,onClick:W},{default:e.withCtx(()=>[...E[12]||(E[12]=[e.createTextVNode("下载",-1)])]),_:1},8,["size","block"])):e.createCommentVNode("",!0),e.createVNode(j,{type:"primary",class:"file-preview-modal-footer__close",size:t.mobile?"large":"middle",block:t.mobile,onClick:N},{default:e.withCtx(()=>[...E[13]||(E[13]=[e.createTextVNode("关闭",-1)])]),_:1},8,["size","block"])],!0)],2)],64))}}}),[["__scopeId","data-v-280342d7"]])),ql=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:Pe,HbLibCard:Oe,HbLibCopy:be,HbLibDetailBox:Ue,HbLibFilePreview:ve,HbLibFooterBar:Re,HbLibFormItemFilterModal:ue,HbLibFormTooltipSelect:De,HbLibFuncCompDrag:Ye,HbLibImportFile:Me,HbLibListBtnsAct:_e,HbLibListForm:Ce,HbLibListMultiSelect:Le,HbLibListPageAct:ke,HbLibListPageContainer:we,HbLibListTable:$e,HbLibLoading:Ge,HbLibLogModal:Ae,HbLibModal:je,HbLibMutilpleSelectModal:Se,HbLibPageHeader:qe,HbLibSort:Ke,HbLibTableAct:xe,HbLibTableColumnSet:Ie,HbLibUnDetailBox:We,HbUiConfig:ze},Symbol.toStringTag,{value:"Module"})),X=new Map;let et;v.isClient&&(document.addEventListener("mousedown",t=>et=t),document.addEventListener("mouseup",t=>{for(const l of X.values())for(const{documentHandler:o}of l)o(t,et)}));function tt(t,l){let o=[];return Array.isArray(l.arg)?o=l.arg:l.arg instanceof HTMLElement&&o.push(l.arg),function(n,a){const s=l.instance.popperRef,c=n.target,f=a?.target,r=!l||!l.instance,i=!c||!f,p=t.contains(c)||t.contains(f),h=t===c,d=o.length&&o.some(S=>S?.contains(c))||o.length&&o.includes(f),F=s&&(s.contains(c)||s.contains(f));r||i||p||h||d||F||l.value(n,a)}}const Yl={beforeMount(t,l){X.has(t)||X.set(t,[]),X.get(t).push({documentHandler:tt(t,l),bindingFn:l.value})},updated(t,l){X.has(t)||X.set(t,[]);const o=X.get(t),n=o.findIndex(s=>s.bindingFn===l.oldValue),a={documentHandler:tt(t,l),bindingFn:l.value};n>=0?o.splice(n,1,a):o.push(a)},unmounted(t){X.delete(t)}},Kl={mounted(t,l){const{value:o,arg:n}=l;if(console.log(l),typeof o!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const a=parseInt(n,10)||300;let s;t.__debounceHandler__=function(...c){s&&clearTimeout(s),s=setTimeout(()=>{o(...c)},a)},t.addEventListener("click",t.__debounceHandler__)},unmounted(t){t.__debounceHandler__&&(t.removeEventListener("click",t.__debounceHandler__),delete t.__debounceHandler__)}},ot=(t,l)=>{t._dynamicApp&&(t._dynamicApp.unmount(),t._dynamicContainer.innerHTML="");const o=e.createApp(be,{cpText:l});o.mount(t._dynamicContainer),t._dynamicApp=o,t._dynamicPrevValue=l},Gl={cos:Yl,dc:Kl,icp:{mounted(t,l){if(!t._dynamicContainer){const o=document.createElement("div");o.style.display="inline-flex",o.style.alignItems="center",o.setAttribute("data-dynamic-container",""),t.parentNode?.insertBefore(o,t.nextSibling),t._dynamicContainer=o}ot(t,l.value)},updated(t,l){l.value!==t._dynamicPrevValue&&ot(t,l.value)},unmounted(t){t._dynamicApp&&(t._dynamicApp.unmount(),delete t._dynamicApp),t._dynamicContainer&&(t._dynamicContainer.remove(),delete t._dynamicContainer),delete t._dynamicPrevValue}}},Jl={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload",format:"Supported formats"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown",overTip1:"Currently has exceeded",overTip2:"Optional quantity, please delete the displayed conditions first",title:"Custom query conditions"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan",addScheme:"Add scenario",editScheme:"Edit plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings",reset:"reduction"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"},HbImportFile:{clickUp:"Click to upload",downloadTemplate:"Click to download template",pleaseUploadFiles:"Please upload files",uploadText:"Drag files here or",fileLabel:"document",importBtn:"File upload"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},Xl={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください",format:"サポートされている形式"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件",overTip1:"現在は超えています",overTip2:"オプションの数量です。最初に表示されている条件を削除してください",title:"カスタムクエリ条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定",reset:"削減"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"},HbImportFile:{clickUp:"クリックしてアップロード",downloadTemplate:"クリックしてテンプレートをダウンロード",pleaseUploadFiles:"ファイルをアップロードしてください",uploadText:"ファイルをここにドラッグするか、",fileLabel:"書類",importBtn:"ファイルのアップロード"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},Ql={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索",title:"自定义查询条件",overTip1:"当前已经超过",overTip2:"个可选数量,请先删除已显示条件"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置",reset:"还原"},hbLibListForm:{queryCase:"查询方案",addScheme:"添加方案",editScheme:"编辑方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载",format:"支持格式"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"},HbImportFile:{uploadText:"将文件拖到此处或",clickUp:"请上传文件",downloadTemplate:"点击下载模板",pleaseUploadFiles:"请上传文件",fileLabel:"文件",importBtn:"文件上传"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},Zl={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var re={exports:{}},vl=re.exports,lt;function en(){return lt||(lt=1,(function(t,l){(function(o,n){t.exports=n(ae)})(vl,(function(o){function n(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=n(o),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c,f){return f==="W"?c+"周":c+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(c,f){var r=100*c+f;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return a.default.locale(s,null,!0),s}))})(re)),re.exports}en(),ae.locale("zh-cn");const tn={en_US:Jl,ja_JP:Xl,zh_CN:Ql,de_DE:Zl},on=function(t,l={}){t.provide("globalCompConfig",l||{}),Object.values(ql).forEach(o=>{o&&typeof o.install=="function"&&t.use(o)}),Object.entries(Gl).forEach(([o,n])=>{t.directive(o,n)})};D.HbLibAnchor=Pe,D.HbLibCard=Oe,D.HbLibCopy=be,D.HbLibDetailBox=Ue,D.HbLibFilePreview=ve,D.HbLibFooterBar=Re,D.HbLibFormItemFilterModal=ue,D.HbLibFormTooltipSelect=De,D.HbLibFuncCompDrag=Ye,D.HbLibImportFile=Me,D.HbLibListBtnsAct=_e,D.HbLibListForm=Ce,D.HbLibListMultiSelect=Le,D.HbLibListPageAct=ke,D.HbLibListPageContainer=we,D.HbLibListTable=$e,D.HbLibLoading=Ge,D.HbLibLogModal=Ae,D.HbLibModal=je,D.HbLibMutilpleSelectModal=Se,D.HbLibPageHeader=qe,D.HbLibSort=Ke,D.HbLibTableAct=xe,D.HbLibTableColumnSet=Ie,D.HbLibUnDetailBox=We,D.HbUiConfig=ze,D.install=on,D.locales=tn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|