@hb-hellotech/hb-ui 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(z,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):(z=typeof globalThis<"u"?globalThis:z||self,e(z.HbComponentLib={},z.Vue,z.draggable,z.antDesignVue,z.vueRouter,z.vueI18n,z.lodash,z.iconsVue,z.core,z.dayjs))})(this,(function(z,e,Q,L,ne,K,ee,Y,re,Z){"use strict";const te=(o="")=>{const m=`hb-${o}`;return de(m)},J=(o,m,r,d)=>(m&&(o+=`-${m}`),r&&(o+=`__${r}`),d&&(o+=`--${d}`),o),de=o=>({b:m=>m?J(o,m,"",""):J(o,"","",""),e:m=>m?J(o,"",m,""):"",m:m=>J(o,"","",m),be:(m,r)=>J(o,m,r,""),em:(m,r)=>J(o,"",m,r),bem:(m,r,d)=>J(o,m,r,d),is:(m,r)=>r?`is-${m}`:""}),me=["onMouseenter","onMouseleave"],pe=["onClick"],fe=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{default:"自定义查询条件"},showNumber:{default:40},saveKey:{default:""}},emits:["confirm"],setup(o,{expose:m,emit:r}){const d=K.useI18n().t,g=K.useI18n().messages.value.en_US,h=K.useI18n().messages.value.ja_JP,a=K.useI18n().messages.value.zh_CN,i=o,p=r,t=te("sfcm"),b=ne.useRoute(),F=e.reactive({lan:window.localStorage.getItem("lan")}),y=e.ref(!1),V=e.ref(600);let T=[];const B=e.ref([]),l=e.ref([]),u=e.computed(()=>B.value.every(S=>S.isLinked||S.isFixed)),_=S=>({...S,label:s(S)||`${S.subLabel||""}${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:S.key,isFixed:S?.isFixed||!1,isLinked:S?.isLinked||!1,labelLanguage:S?.labelLanguage||void 0}),k=S=>{const C=S.draggedContext.element,N=S.relatedContext.index;if(C.isLinked||C.isFixed)return!1;const D=B.value.map((P,W)=>({item:P,index:W})).filter(({item:P})=>P.isLinked).map(({index:P})=>P);if(D.length===0)return!0;for(let P=0;P<D.length-1;P++){const W=D[P],G=D[P+1];if(N>W&&N<G)return!1}return!0},M=e.computed(()=>f()+"_"+i.saveKey),f=()=>{const S=localStorage.getItem("pro__Login_Userinfo");let C="anonymous";if(S)try{C=JSON.parse(S).value.jobNumber||"anonymous"}catch(D){console.warn("解析用户信息失败:",D)}let N=b?.path;return`searchFormConfig_${C}_${N}`},s=S=>({ja_JP:()=>ee.get(h,S.labelLanguage||""),en_US:()=>ee.get(g,S.labelLanguage||""),zh_CN:()=>ee.get(a,S.labelLanguage||"")})[F.lan]?.()||S.label,c=S=>{try{const C=localStorage.getItem(M.value);if(C){const N=JSON.parse(C);if(N.originalList&&Array.isArray(N.originalList)){T=JSON.parse(JSON.stringify(N.originalList));const D=T.filter(I=>I?.isFixed),P=T.filter(I=>I?.isLinked),W=N.showList.filter(I=>!I.isFixed&&!I.isLinked),G=i.showNumber&&i.showNumber>0?Math.max(0,i.showNumber-D.length-P.length):W.length,v=D.map(I=>({..._(I)})),oe=P.map(I=>({..._(I)})),le=W.slice(0,G).map(I=>({..._(I)}));console.log("我进来了这里2233"),B.value=[...v,...oe,...le];const ae=B.value.map(I=>I.key),O=T.map(I=>I.key).filter(I=>!ae.includes(I));return l.value=T.filter(I=>O.includes(I.key)).map(I=>({..._(I),active:!1})),!0}}}catch(C){console.warn("加载保存的搜索配置失败:",C)}return!1},n=()=>{try{const S={originalList:T,showList:B.value.map(C=>({...C,key:C.key,label:C.label,isFixed:C.isFixed,isLinked:C.isLinked,labelLanguage:C?.labelLanguage||void 0}))};localStorage.setItem(M.value,JSON.stringify(S))}catch(S){console.warn("保存搜索配置失败:",S)}},w=e.computed(()=>{const S=B.value.filter(N=>!N.isFixed&&!N.isLinked).length,C=B.value.filter(N=>N.isFixed||N.isLinked).length;return S>=i.showNumber-C});e.watch(()=>i.list,S=>{let C=JSON.stringify(B.value)!==JSON.stringify(S);if(!C)return;const N=localStorage.getItem(M.value),D=JSON.parse(N||"{}");if(D&&D?.originalList&&Array.isArray(D.originalList))c(),p("confirm",B.value);else if(C){T=JSON.parse(JSON.stringify(S));const P=S.filter(O=>O?.isFixed),W=S.filter(O=>O?.isLinked),G=S.filter(O=>!O?.isFixed&&!O?.isLinked),v=i.showNumber&&i.showNumber>0?Math.max(0,i.showNumber-P.length-W.length):G.length,oe=P.map(O=>_(O)),le=W.map(O=>_(O)),ae=G.slice(0,v).map(O=>_(O));B.value=[...oe,...le,...ae];const ce=G.slice(v).map(O=>({..._(O),active:!1}));l.value=ce}},{immediate:!0});const $=S=>{const C=B.value.findIndex(N=>N.key===S.key);C!==-1&&(B.value.splice(C,1),l.value.push({...S,active:!1}))},A=S=>{if(w.value)return;const C=l.value.findIndex(N=>N.key===S.key);if(C!==-1){const[N]=l.value.splice(C,1);B.value.push({...N,active:!1})}},j=()=>{y.value=!1},H=()=>{y.value=!0},E=()=>{n(),p("confirm",B.value),j()},q=S=>{const C=l.value.findIndex(N=>N.key===S.key);C!==-1&&(l.value[C].active=!0)},x=S=>{const C=l.value.findIndex(N=>N.key===S.key);C!==-1&&(l.value[C].active=!1)};return m({toOpenModal:H}),e.onMounted(()=>{console.log("我是保存的搜索条件")}),(S,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t).b())},[e.createVNode(e.unref(L.Modal),{visible:y.value,"onUpdate:visible":C[1]||(C[1]=N=>y.value=N),width:V.value,onCancel:j,onOk:E},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("title"))},e.toDisplayString(o.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(L.Button),{onClick:j},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(L.Button),{type:"primary",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(t).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(t).e("title__tip"))},e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(o.showNumber)+e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("show__tag"))},[e.createVNode(e.unref(Q),{modelValue:B.value,"onUpdate:modelValue":C[0]||(C[0]=N=>B.value=N),"item-key":"key",tag:"div",disabled:u.value,move:k},{item:e.withCtx(({element:N})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t).e("show__tag__item"),e.unref(t).is("fixed",N.isFixed),e.unref(t).is("linked",N.isLinked)])},[e.createTextVNode(e.toDisplayString(N.label)+" ",1),!N.isFixed&&!N.isLinked&&o.list.length>1?(e.openBlock(),e.createBlock(e.unref(Y.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(t).e("show__tag__item-close")),onClick:D=>$(N)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(t).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(t).e("title__tip"))},e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("unshow__tag"))},[l.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,N=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).e("unshow__tag__item"),e.unref(t).is("fixed",N.isFixed||""),e.unref(t).is("linked",N.isLinked||"")]),key:N.key,onMouseenter:D=>q(N),onMouseleave:D=>x(N)},[e.createTextVNode(e.toDisplayString(N.label)+" ",1),N.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(t).e("unshow__tag__item-add")),onClick:D=>A(N)},e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.add")),11,pe)):e.createCommentVNode("",!0)],42,me))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t).e("unshow__tag__empty"))},e.toDisplayString(S.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(o,m)=>{const r=o.__vccOpts||o;for(const[d,g]of m)r[d]=g;return r},he=U(fe,[["__scopeId","data-v-a8bc8c3a"]]),R=o=>(o.install=m=>{m.component(o.name||"AnonymousComponent",o)},o),be=R(he),ge={class:"form-footer"},Ce=R(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(o,{expose:m,emit:r}){const d=r,g=e.inject("HB_LIST_PAGE_CONTAINER"),h=e.computed(()=>i.searchList||[]),a=te("form"),i=o,p=e.ref("show"),t=e.computed(()=>[...i.items]),b=e.computed(()=>[...i.items].map(n=>({...n,label:n.label?.includes("多项搜索")?"":n.label}))),F=e.computed(()=>i.saveKey),y=e.ref(),V=()=>{d("handleSearch")},T=()=>{d("handleReset")},B=e.ref(),l=()=>{B.value&&B.value.toOpenModal()},u=n=>{d("handleMenuClick",n)},_=n=>{d("handleSfcmConfirm",n)},k=()=>{p.value=p.value==="show"?"hide":"show"};e.watch(()=>i.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 M=n=>{const w=n;w.style.height="",w.offsetHeight},f=n=>{const w=n;w.style.height="",w.style.overflow="",e.nextTick(()=>{g.calTableHeight&&g.calTableHeight()})},s=n=>{const w=n,$=w.querySelector(".hb-lib-form--container");if($){const A=$.offsetHeight;w.style.height=A+"px",w.style.overflow="hidden",w.offsetHeight,requestAnimationFrame(()=>{w.style.height="0"})}},c=()=>{e.nextTick(()=>{g.calTableHeight&&g.calTableHeight()})};return m({formRef:y,SelectOption:L.SelectOption,Form:L.Form,FormItem:L.FormItem,Row:L.Row,Col:L.Col,Input:L.Input,Select:L.Select,CheckboxGroup:L.CheckboxGroup,Checkbox:L.Checkbox,DatePicker:L.DatePicker,InputNumber:L.InputNumber,RadioGroup:L.RadioGroup,Radio:L.Radio,Switch:L.Switch,Button:L.Button,Tooltip:L.Tooltip}),(n,w)=>{const $=e.resolveComponent("a-button"),A=e.resolveComponent("a-tooltip"),j=e.resolveComponent("a-menu-item"),H=e.resolveComponent("a-menu"),E=e.resolveComponent("a-dropdown"),q=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:M,onAfterEnter:f,onLeave:s,onAfterLeave:c},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(a).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(L.Form),e.mergeProps(n.$attrs,{model:o.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(b.value,(x,S)=>(e.openBlock(),e.createBlock(e.unref(L.FormItem),e.mergeProps({key:S,ref_for:!0},x,{name:x.key,class:x.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[x.type==="slot"?e.renderSlot(n.$slots,x.key,{key:0,formData:o.formData,item:x},void 0,!0):e.createCommentVNode("",!0),x.type==="mixin"?e.renderSlot(n.$slots,x.key,{key:1,formData:o.formData,item:x},void 0,!0):e.createCommentVNode("",!0),x.type==="input"?(e.openBlock(),e.createBlock(e.unref(L.Input),e.mergeProps({key:2,value:o.formData[x.key],"onUpdate:value":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),x.type==="select"?(e.openBlock(),e.createBlock(e.unref(L.Select),e.mergeProps({key:3,value:o.formData[x.key],"onUpdate:value":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.options,(C,N)=>(e.openBlock(),e.createBlock(e.unref(L.SelectOption),{key:N,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),x.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(L.CheckboxGroup),e.mergeProps({key:4,value:o.formData[x.key],"onUpdate:value":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.options,(C,N)=>(e.openBlock(),e.createBlock(e.unref(L.Checkbox),{key:N,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),x.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(L.DatePicker),e.mergeProps({key:5,value:o.formData[x.key],"onUpdate:value":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),x.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(L.InputNumber),e.mergeProps({key:6,value:o.formData[x.key],"onUpdate:value":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),x.type==="radio"?(e.openBlock(),e.createBlock(e.unref(L.RadioGroup),e.mergeProps({key:7,value:o.formData[x.key],"onUpdate:value":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.options,(C,N)=>(e.openBlock(),e.createBlock(e.unref(L.Radio),{key:N,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),x.type==="switch"?(e.openBlock(),e.createBlock(e.unref(L.Switch),e.mergeProps({key:8,checked:o.formData[x.key],"onUpdate:checked":C=>o.formData[x.key]=C},{ref_for:!0},x.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[x.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label)+" ",1),e.createVNode(e.unref(L.Tooltip),{title:x.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"]))),128)),e.createElementVNode("section",ge,[e.createVNode($,{type:"primary",onClick:V,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($,{type:"link",onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),o.needFilter?(e.openBlock(),e.createBlock(A,{key:0,title:n.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:l},[...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",{},()=>[o.needSearchCase?(e.openBlock(),e.createBlock(E,{key:0},{overlay:e.withCtx(()=>[e.createVNode(H,{onClick:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,x=>(e.openBlock(),e.createBlock(j,{key:x.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.title),1)]),_:2},1024))),128)),e.createVNode(j,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(j,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{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"]),o.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("footer__left"))},[e.renderSlot(n.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("footer__right"))},[p.value=="show"?e.renderSlot(n.$slots,"form-footer-right",{key:0,formRef:y.value},()=>[e.createVNode(e.unref(L.Button),{type:"primary",onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(L.Button),{type:"primary",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(L.Button),{type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value=="show"?`${n.$t("hbLibComp.hbListPageAct.close")}`:`${n.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,o.isFormExpanded]])]),_:3}),e.createVNode(q,{list:t.value,ref_key:"HbSfCmRef",ref:B,onConfirm:_,saveKey:F.value},null,8,["list","saveKey"])],64)}}}),[["__scopeId","data-v-04ccb514"]])),ke={class:"hb-lib-list-page-act-box"},ye={class:"hb-lib-list-page-breadcrumb"},ue={class:"hb-lib-list-page-act"},_e={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"},Se={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"},Le=R(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0}},setup(o){const m=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:r,toggle:d}=re.useFullscreen(m.PageContainerRef),g=e.ref(""),h=()=>{const a=ne.useRoute();let i=localStorage.getItem("BreadCrumb")||"[]",p=a?.path;if(i!=="[]"){let t=JSON.parse(i).find(b=>b.value===p);t&&(g.value=t.label.replace(/-/g," / "))}};return e.onMounted(()=>{h()}),(a,i)=>{const p=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ke,[e.createElementVNode("aside",ye,e.toDisplayString(g.value),1),e.createElementVNode("aside",ue,[e.createVNode(p,{title:e.unref(r)?`${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...t)=>e.unref(d)&&e.unref(d)(...t))},[e.unref(r)?(e.openBlock(),e.createElementBlock("svg",Se,[...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",_e,[...i[1]||(i[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(a.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-a7ddfc50"]])),we={class:"hb-lib-list-btns-box"},xe={class:"hb-lib-list-btns-left"},Ne={class:"hb-lib-list-btns-right"},Be=R(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(o,{emit:m}){const r=m,d=e.ref(!0),g=()=>{d.value=!d.value,r("handleOpenOrClose",d.value)},h=()=>{r("handleReload")};return e.onMounted(()=>{}),(a,i)=>{const p=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",we,[e.createElementVNode("aside",xe,[e.renderSlot(a.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Ne,[o.needReload?(e.openBlock(),e.createBlock(p,{key:0,title:a.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:h},[...i[0]||(i[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),o.needOpenOrClose?(e.openBlock(),e.createBlock(p,{key:1,title:d.value?`${a.$t("hbLibComp.hbListBtnsAct.close")}`:`${a.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:g},[d.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(a.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-da13672b"]])),Te=(o={})=>{const{formRef:m,offsetBottom:r=50,minHeight:d=300}=o,g=e.ref(0);let h=null,a=null,i=null,p=null,t=null;const b=()=>{t&&clearTimeout(t),t=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const u=document.querySelector(".ant-table"),_=document.querySelector(".ant-pagination");if(u){const k=u.getBoundingClientRect().top,M=window.innerHeight,s=(_?_.offsetHeight+20:40)+r;let c=M-k-s;c<d&&(c=d),g.value=c}})})},100)},F=()=>{const u=document.querySelector(".ant-pagination");if(u){const _=new MutationObserver(()=>{b()});return _.observe(u,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),_}return null},y=()=>{const u=document.querySelector(".hb-lib-list-page-form-box");u&&(h=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(k=>{k.style.display="none"}),b()}),h.observe(u))},V=()=>{const u=document.querySelector(".hb-lib-list-page-form-box");u&&(i=new MutationObserver(()=>{setTimeout(()=>{b()},100)}),i.observe(u,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},T=()=>{p&&clearTimeout(p),p=setTimeout(()=>{b()},100)},B=()=>{window.addEventListener("resize",T),e.nextTick(()=>{y(),V(),a=F()})},l=()=>{window.removeEventListener("resize",T),h&&h.disconnect(),i&&i.disconnect(),a&&a.disconnect(),p&&clearTimeout(p),t&&clearTimeout(t)};return m&&e.watch(()=>m,()=>{setTimeout(()=>{b()},200)},{deep:!0}),e.onMounted(()=>{b(),B()}),e.onUnmounted(()=>{l()}),{tableHeight:g,calTableHeight:b}},Fe=R(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{default:400},tabelData:{default:()=>[]},offsetBottom:{default:20},minHeight:{}},setup(o){const m=o,r=e.useTemplateRef("PageContainerRef"),{calTableHeight:d,tableHeight:g}=Te({offsetBottom:m.offsetBottom||20,minHeight:m.minHeight||300}),h=e.computed(()=>g.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:g,calTableHeight:d}),(a,i)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:r},[e.renderSlot(a.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":h.value-m.offsetBottom+"px","--hb-list-ttable-height":o.tabelData.length?"":h.value-m.offsetBottom+"px"})},[e.renderSlot(a.$slots,"default")],4)],512))}})),Ve={style:{"font-weight":"500"}},$e={key:0,class:"hb-lib-search-tag__description"},Ee={class:"hb-lib-selector-dropdown"},Me={class:"hb-lib-selector-search"},Ie={class:"hb-lib-selector-list"},He=["onClick"],De={class:"hb-lib-option-content"},Ae={class:"hb-lib-option-label"},ze={key:0,class:"hb-lib-selector-empty"},Pe={key:1,class:"hb-lib-selector-footer"},Oe={class:"hb-lib-footer-buttons"},Re={key:2,class:"hb-lib-selector-footer"},Ue={class:"hb-lib-footer-buttons"},qe=R(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(o,{emit:m}){const r=o,d=m,g=e.useModel(o,"value"),h=e.ref(!1),a=e.ref(""),i=e.ref([]),p=e.ref(),t=e.computed(()=>{if(r.remoteSearch||!a.value)return r.options;const f=a.value.toLowerCase();return r.options.filter(s=>s.label.toLowerCase().includes(f)||s.description?.toLowerCase().includes(f))}),b=e.computed(()=>r.prefix?`${r.prefix.length*14+8}px`:"0px"),F=e.computed(()=>t.value.length===0?!1:t.value.every(f=>i.value.includes(f.value))),y=e.computed(()=>{if(t.value.length===0)return!1;const f=t.value.filter(s=>i.value.includes(s.value)).length;return f>0&&f<t.value.length});e.watch(()=>g.value,f=>{f?i.value=Array.isArray(f)?[...f]:[f]:i.value=[]},{immediate:!0}),e.watch(()=>r.searchValue,f=>{r.remoteSearch&&f!==void 0&&(a.value=f)},{immediate:!0});const V=f=>{f&&(h.value=f,T.value=[...i.value],a.value="",setTimeout(()=>{if(p.value){const s=p.value.input||p.value.$el?.querySelector("input");s&&s.focus()}},100))},T=e.ref([]),B=()=>{i.value=[...T.value],h.value=!1,d("cancel")},l=e.ref([]),u=()=>{const f=r.multiple?i.value:i.value[0]||"",s=r.options.filter(c=>i.value.includes(c.value));l.value=s,console.log(f,s),T.value=[...i.value],g.value=f,d("update:value",f),d("change",f,s),d("confirm",f,s),h.value=!1},_=re.useDebounceFn(f=>{const s=f!==void 0?f:a.value;r.remoteSearch&&(d("search",s),d("update:searchValue",s))},300),k=f=>{if(r.multiple){const s=new Set(i.value);s.has(f.value)?s.delete(f.value):s.add(f.value),i.value=Array.from(s)}else i.value=[f.value],u()},M=f=>{if(f.target.checked){const c=new Set(i.value);t.value.forEach(n=>{c.add(n.value)}),i.value=Array.from(c)}else{const c=new Set(t.value.map(n=>n.value));i.value=i.value.filter(n=>!c.has(n))}};return(f,s)=>{const c=e.resolveComponent("a-tag"),n=e.resolveComponent("a-input"),w=e.resolveComponent("a-checkbox"),$=e.resolveComponent("a-radio"),A=e.resolveComponent("a-button"),j=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":b.value}},f.$attrs),[e.createVNode(j,{value:g.value,"onUpdate:value":s[5]||(s[5]=H=>g.value=H),mode:o.multiple?"multiple":void 0,placeholder:o.placeholder,"show-search":!0,"filter-option":!1,open:h.value,allowClear:"",maxTagCount:o.maxTagCount,options:t.value,onDropdownVisibleChange:V,onSearch:e.unref(_),"max-tag-text-length":o.tagTextLength,class:e.normalizeClass({"has-prefix":o.prefix}),"data-prefix":o.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:H,label:E,closable:q,option:x})=>[e.createVNode(c,{class:"hb-lib-search-tag",onClick:s[0]||(s[0]=()=>V(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ve,e.toDisplayString(E),1),x?.description?(e.openBlock(),e.createElementBlock("span",$e," ("+e.toDisplayString(x.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:H})=>[e.createElementVNode("div",Ee,[e.createElementVNode("div",Me,[e.createVNode(n,{ref_key:"searchInputRef",ref:p,class:"hb-lib-selector-search-input",value:a.value,"onUpdate:value":s[1]||(s[1]=E=>a.value=E),placeholder:"请输入关键词搜索","allow-clear":"",onInput:s[2]||(s[2]=E=>e.unref(_)(E.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(Y.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:i.value.includes(E.value)}]),onClick:()=>k(E)},[o.multiple?(e.openBlock(),e.createBlock(w,{key:0,checked:i.value.includes(E.value),onChange:()=>k(E),onClick:s[3]||(s[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock($,{key:1,checked:i.value.includes(E.value),onChange:()=>k(E),onClick:s[4]||(s[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",De,[e.createElementVNode("div",Ae,e.toDisplayString(E.label),1)])],10,He))),128))]),t.value.length===0?(e.openBlock(),e.createElementBlock("div",ze,e.toDisplayString(f.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),o.multiple?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(w,{checked:F.value,indeterminate:y.value,onChange:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Oe,[e.createVNode(A,{size:"small",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(A,{type:"primary",size:"small",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Re,[s[6]||(s[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ue,[e.createVNode(A,{size:"small",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$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"]])),Ye={class:"hb-lib-form-item-filter-modal-search"},je={class:"hb-lib-form-item-filter-modal-buttons"},Ke={key:0},We=R(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(o,{expose:m,emit:r}){const d=o,g=r,h=e.ref(!1),a=e.ref(""),i=e.ref(),p=e.ref(),t=e.ref([]),b=e.ref([]),F=e.ref(),y=e.reactive({searchText:"",searchedColumn:""}),V=e.computed(()=>d.tableData.map(c=>(c.id=c.id||Math.random(),c))),T=e.computed(()=>d.tableColumn.map(c=>(c.customFilterDropdown&&(c.onFilter=(n,w)=>w[c.dataIndex].toString().toLowerCase().includes(n.toLowerCase()),c.onFilterDropdownVisibleChange=n=>{n&&setTimeout(()=>{i.value?.focus()},100)}),{...c}))),B=()=>{let c="";b.value.forEach(n=>{c=c+n[d.labelKey]+","}),a.value=c.substring(0,c.length-1),h.value=!1,g("handleConfirm",b.value)},l=()=>{h.value=!1},u=()=>{h.value=!0,e.nextTick(()=>{const c=F.value?.$el?.querySelector(".ant-table-body");c&&(c.scrollTop=0)})},_=()=>{t.value=[],b.value=[]},k=()=>{a.value="",_()},M=(c,n,w)=>{n(),y.searchText=c[0],y.searchedColumn=w},f=(c,n)=>{c({confirm:!0}),y.searchText="",n()},s=(c,n)=>{t.value=c,b.value=n};return m({resetInputVal:k}),(c,n)=>{const w=e.resolveComponent("a-input"),$=e.resolveComponent("a-button"),A=e.resolveComponent("a-table"),j=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:p},[e.createVNode(w,{readonly:"",onClick:u,value:a.value,"onUpdate:value":n[0]||(n[0]=H=>a.value=H),placeholder:c.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(Y.UnorderedListOutlined),{onClick:u})]),_:1},8,["value","placeholder"]),e.createVNode(j,{visible:h.value,"onUpdate:visible":n[1]||(n[1]=H=>h.value=H),title:o.modelTitle,width:o.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode($,{onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode($,{onClick:l},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{ref_key:"tableRef",ref:F,columns:T.value,dataSource:V.value,rowSelection:{selectedRowKeys:t.value,onChange:s},rowKey:H=>H[o.tableKey],scroll:{y:o.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:H,selectedKeys:E,confirm:q,clearFilters:x,column:S})=>[e.createElementVNode("div",Ye,[e.createVNode(w,{ref_key:"searchInput",ref:i,placeholder:`请输入${S.title}`,value:E[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:C=>H(C.target.value?[C.target.value]:[]),onPressEnter:C=>M(E,q,S.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",je,[e.createVNode($,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:C=>f(x,q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:C=>M(E,q,S.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:H})=>[e.createVNode(e.unref(Y.SearchOutlined),{style:e.normalizeStyle({color:H?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:H,column:E})=>[y.searchText&&y.searchedColumn===E.dataIndex?(e.openBlock(),e.createElementBlock("span",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.toString().split(new RegExp(`(?<=${y.searchText})|(?=${y.searchText})`,"i")),(q,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[q.toLowerCase()===y.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:x,class:"highlight"},e.toDisplayString(q),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(q),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Je={class:"hb-lib-table-act-box"},Ge=["onClick"],Qe={href:"javascript:;",class:"hb-lib-table-main-action"},Ze=["onClick"],Xe={href:"javascript:;",class:"hb-lib-table-more-action"},ve=["onClick"],et={href:"javascript:;"},tt=["onClick"],ot={class:"hb-lib-table-confirm-modal-content"},lt=R(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(o,{expose:m}){const r=o,{t:d}=K.useI18n(),g=e.ref(!1),h=e.ref(!1),a=e.ref(null),i=e.computed(()=>r.actions.filter(B=>B.condition!==void 0?B.condition:!0)),p=e.computed(()=>i.value.slice(0,r.buttonDisplaysQuantity)),t=e.computed(()=>i.value.slice(r.buttonDisplaysQuantity)),b=B=>{B.handler&&B.handler(r.record)},F=B=>{a.value=B,g.value=!0},y=()=>{if(a.value){h.value=!0;try{b(a.value),h.value=!1,g.value=!1}catch{h.value=!1}}},V=()=>{g.value=!1,a.value=null},T=e.computed(()=>a.value?{title:a.value.confirmTitle,content:a.value.confirmContent||a.value.confirmTitle}:{title:d("hbLibComp.hbTableAct.secendConfirm"),content:d("hbLibComp.hbTableAct.confirmContent")});return m({ADropdown:L.Dropdown,AMenu:L.Menu,AMenuItem:L.MenuItem,APopconfirm:L.Popconfirm,AModal:L.Modal,DownOutlined:Y.DownOutlined}),(B,l)=>{const u=e.resolveComponent("a-divider"),_=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(k,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[k.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:f=>F(k),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(k.label),1)],8,Ge)),[[_,k.permissionsTag||null]]),t.value&&t.value.length>0||M!==p.value.length-1?(e.openBlock(),e.createBlock(u,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(L.Popconfirm),{title:k.confirmTitle,onConfirm:f=>b(k)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Qe,[e.createTextVNode(e.toDisplayString(k.label),1)])),[[_,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),t.value&&t.value.length>0||M!==p.value.length-1?(e.openBlock(),e.createBlock(u,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:f=>b(k),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(k.label),1)],8,Ze)),[[_,k.permissionsTag||null]]),t.value&&t.value.length>0||M!==p.value.length-1?(e.openBlock(),e.createBlock(u,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),t.value&&t.value.length>0?(e.openBlock(),e.createBlock(e.unref(L.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(L.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,k=>(e.openBlock(),e.createBlock(e.unref(L.MenuItem),{key:k.key},{default:e.withCtx(()=>[k.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:M=>F(k)},[e.createTextVNode(e.toDisplayString(k.label),1)],8,ve)),[[_,k.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(L.Popconfirm),{key:1,title:k.confirmTitle,onConfirm:M=>b(k)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",et,[e.createTextVNode(e.toDisplayString(k.label),1)])),[[_,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:M=>b(k)},[e.createTextVNode(e.toDisplayString(k.label),1)],8,tt)),[[_,k.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Xe,[e.createTextVNode(e.toDisplayString(B.$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(L.Modal),{visible:g.value,title:T.value.title,"confirm-loading":h.value,onOk:y,onCancel:V},{default:e.withCtx(()=>[e.createElementVNode("p",ot,e.toDisplayString(T.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-a96574fa"]])),at=o=>({tableWidth:e.computed(()=>{const r=Array.isArray(o)?o:o.value;return!r||r.length===0?0:r.map(d=>d.width&&Number(d.width.toString().replace("px",""))||0).reduce((d,g)=>d+g,0)})}),nt={key:0,class:"hb-lib-list-table-act"},rt={class:"empty-container"},it=R(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{default:()=>150},tooltipPlacement:{default:()=>"topLeft"}},setup(o){const{t:m}=K.useI18n(),r=o,d=e.ref([]),g=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:h}=at(e.computed(()=>r.columns));e.watch(()=>r.columns,t=>{const b=t.filter(F=>F!=null&&F.checked);d.value=b.map(F=>{let y={...F,title:F.title||F.label};if(y.ellipsis&&!y.needTooltip&&(y.needTooltip=!0),!y.width)y.width=r.defaultWidth;else if(typeof y.width=="string"){const V=parseInt(y.width,10);y.width=isNaN(V)?r.defaultWidth:V}return y.resizable===void 0&&(y.resizable=!0),y})},{immediate:!0,deep:!0});const a=(t,b)=>{if(b){const F=typeof t=="string"?parseInt(t,10):t;b.width=isNaN(F)?150:F}},i=(t,b="YYYY-MM-DD HH:mm:ss")=>t?Z(t).format(b):"",p=(t,b)=>t&&b[t]||"";return(t,b)=>{const F=e.resolveComponent("a-empty"),y=e.resolveComponent("a-tooltip"),V=e.resolveComponent("HbLibCopy"),T=e.resolveComponent("a-tag"),B=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":o.rowHeight&&o.rowHeight+"px"||""})},[t.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",nt,[e.renderSlot(t.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(t.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(B,e.mergeProps(t.$attrs,{bordered:"",columns:d.value,onResizeColumn:a,scroll:{x:e.unref(h),y:e.unref(g).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",rt,[e.createVNode(F,{description:e.unref(m)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[t.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:l})=>[e.renderSlot(t.$slots,"headerCell",{column:l},()=>[e.createTextVNode(e.toDisplayString(l.title),1)],!0)]),key:"0"}:void 0,t.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"bodyCell",{column:l,record:u,index:_,text:k},void 0,!0),l&&l.needTooltip?(e.openBlock(),e.createBlock(y,{key:0,placement:o.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[l.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(u[l.dataIndex]),1)]),_:2},1032,["placement"])):e.createCommentVNode("",!0),l&&l.needCopy?(e.openBlock(),e.createBlock(V,{key:1,"cp-text":u[l.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),l&&l.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(i(u[l.dataIndex],l.format)),1)],64)):e.createCommentVNode("",!0),l&&l.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[p(u[l.dataIndex],l.tags)?(e.openBlock(),e.createBlock(T,{key:0,color:p(u[l.dataIndex],l.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[l.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,t.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"expandedRowRender",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"2"}:void 0,t.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"customFilterDropdown",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"3"}:void 0,t.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"customFilterIcon",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"4"}:void 0,t.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"expandIcon",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"5"}:void 0,t.$slots.footer?{name:"footer",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"footer",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"6"}:void 0,t.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"headerCell",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"7"}:void 0,t.$slots.summary?{name:"summary",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"summary",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"8"}:void 0,t.$slots.title?{name:"title",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"title",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"9"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-f3061eae"]])),st={class:"hb-lib-table-setting-box"},ct={key:0,class:"hb-lib-table-drag-item"},dt={key:0,class:"hb-lib-table-drag-item-act"},mt=["onClick"],pt=["onClick"],ft={class:"hb-lib-table-set-btn-group"},ht={class:"select-all-container",style:{"margin-right":"10px"}},bt=R(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(o,{emit:m}){const r=m,{t:d}=K.useI18n(),g=o,h=e.ref([]),a=e.computed(()=>p.value.filter(f=>f.checked));e.ref([]);const i=e.ref(!1),p=e.ref([]),t=e.ref(null),b=e.computed(()=>a.value.length>0&&a.value.length===h.value.length),F=e.computed(()=>a.value.length>0&&a.value.length<h.value.length),y=f=>{t.value=f.oldIndex},V=f=>{const s=f.newIndex;if(h.value.some(n=>n.fixed==="left"||n.fixed==="right"||n.fixed===!0)){const n=h.value.filter($=>$.fixed==="left").length,w=h.value.length-h.value.filter($=>$.fixed==="right").length;if((n>0&&s<n||w<h.value.length&&s>=w)&&(L.message.warning(d("hbLibComp.hbLibListTableColumsSet.errorTip")),t.value!==null)){const $=p.value.splice(s,1)[0];p.value.splice(t.value,0,$)}}t.value=null},T=f=>{f.target.checked?p.value.forEach(c=>c.checked=!0):p.value.forEach(c=>c.checked=!1)},B=(f,s)=>{s?f.checked=!0:f.checked=!1},l=()=>{h.value=[...p.value],r("on-get-columns",h.value),i.value=!1},u=()=>{h.value=g.tableColumns.map(s=>({...s,label:s.title&&s.title.tag?_(s.title):s.title||s.title2,value:s.dataIndex,checked:s.checked||s.checked===void 0})),p.value=[...h.value];let f=[];g.tableColumns.forEach(function(s){f.push(s.dataIndex)})},_=f=>f.children[0].text,k=f=>{delete f.fixed;const s=p.value.findIndex(c=>c.value===f.value);if(s!==-1){let c=-1;for(let n=0;n<p.value.length;n++)p.value[n].fixed==="left"&&(c=n);if(c!==-1&&s!==c+1){const n=[...p.value],[w]=n.splice(s,1);n.splice(c+1,0,w),p.value=n}}},M=f=>{const s=p.value.findIndex(c=>c.value===f.value);if(s!==-1){let c=-1;for(let A=0;A<p.value.length;A++)p.value[A].fixed==="left"&&(c=A);const n=[...p.value],[w]=n.splice(s,1);w.fixed="left";const $=c===-1?0:c+1;n.splice($,0,w),p.value=n}};return e.watch(()=>g.tableColumns,()=>{u()},{immediate:!0,deep:!0}),(f,s)=>{const c=e.resolveComponent("a-tooltip"),n=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",st,[e.createVNode(e.unref(L.Popover),{title:e.unref(d)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:i.value,"onUpdate:visible":s[1]||(s[1]=w=>i.value=w)},{content:e.withCtx(()=>[e.createVNode(e.unref(Q),{modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=w=>p.value=w),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:y,onEnd:V},{item:e.withCtx(({element:w})=>[w.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(e.unref(L.Checkbox),{checked:w.checked,onChange:$=>B(w,$.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.label),1)]),_:2},1032,["checked","onChange"]),w.checked?(e.openBlock(),e.createElementBlock("section",dt,[e.createElementVNode("span",{class:e.normalizeClass(w.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),w.fixed?(e.openBlock(),e.createBlock(c,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:$=>k(w)},[...s[2]||(s[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,mt)]),_:2},1024)):e.createCommentVNode("",!0),w.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:$=>M(w)},[...s[3]||(s[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,pt)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ft,[e.createElementVNode("div",ht,[e.createVNode(e.unref(L.Checkbox),{checked:b.value,indeterminate:F.value,onChange:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(n,{onClick:l,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(c,{title:e.unref(d)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...s[4]||(s[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-772844f6"]])),gt=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormItemFilterModal:be,HbLibListBtnsAct:Be,HbLibListForm:Ce,HbLibListMultiSelect:qe,HbLibListPageAct:Le,HbLibListPageContainer:Fe,HbLibListTable:it,HbLibMutilpleSelectModal:We,HbLibTableAct:lt,HbLibTableColumnSet:bt},Symbol.toStringTag,{value:"Module"})),Ct=R(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(o,{expose:m}){const r=o,d=e.useAttrs(),g=e.computed(()=>{const T=d,B=T.dropdownClassName;return{...T,dropdownClassName:B??"hb_lib_form_tooltip_select__dropdown"}}),h=e.ref(),a=e.useModel(o,"value"),i=e.computed(()=>r.options??[]),p=e.computed(()=>({maxWidth:typeof r.tooltipMaxWidth=="number"?`${r.tooltipMaxWidth}px`:r.tooltipMaxWidth})),t=T=>T.tooltip??T.label,b=T=>T.key??T.label,F=T=>!!(r.enableTooltip&&t(T));return m({focus:()=>{h.value?.focus?.()},blur:()=>{h.value?.blur?.()},selectRef:h}),(T,B)=>(e.openBlock(),e.createBlock(e.unref(L.Select),e.mergeProps({ref_key:"selectRef",ref:h,class:"hb_lib_form_tooltip_select"},g.value,{value:a.value,"onUpdate:value":B[0]||(B[0]=l=>a.value=l)}),{default:e.withCtx(()=>[T.$slots.default?e.renderSlot(T.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.value,l=>(e.openBlock(),e.createBlock(e.unref(L.SelectOption),e.mergeProps({key:b(l),value:l.value,disabled:l.disabled},{ref_for:!0},l.optionProps),{default:e.withCtx(()=>[F(l)?(e.openBlock(),e.createBlock(e.unref(L.Tooltip),{key:0,title:t(l),placement:r.tooltipPlacement,overlayStyle:p.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(l.label),3)]),_:2},1032,["title","placement","overlayStyle"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(l.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-b04f5675"]])),kt=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormTooltipSelect:Ct},Symbol.toStringTag,{value:"Module"})),yt={class:"ant-upload-drag-icon"},ut={class:"ant-upload-text"},_t={style:{color:"#ff5000"}},St={class:"ant-upload-hint"},Lt={key:0,class:"hb_import_btn"},wt=["href"],xt=R(U(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(o,{expose:m}){const{t:r}=K.useI18n(),d=e.ref(),g=o,h=e.ref(!1),a=e.reactive({fileList:[],visible:!1}),i=y=>{if(y==null)return;const V=a.fileList.indexOf(y);if(V!==-1){const T=a.fileList.slice();T.splice(V,1),a.fileList=T}},p=()=>{a.visible=!1,a.fileList=[],h.value=!1},t=y=>(a.fileList=[y],g.beforeUpload?g.beforeUpload(y):!1),b=()=>{d.value.validateFields().then(()=>{g.beforeSubmit&&(h.value=!0,g.beforeSubmit(a.fileList).then(y=>{}).finally(()=>{h.value=!1}))})},F=()=>{a.visible=!0};return m({handleCancel:p,openModal:F,confirmLoading:h}),(y,V)=>{const T=e.resolveComponent("a-upload-dragger"),B=e.resolveComponent("a-form-item"),l=e.resolveComponent("a-form"),u=e.resolveComponent("a-modal"),_=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,e.mergeProps({title:g.title,visible:a.visible,"onUpdate:visible":V[0]||(V[0]=k=>a.visible=k),"confirm-loading":h.value},y.$attrs,{onCancel:p,onOk:b,width:g.modalWidth}),{default:e.withCtx(()=>[e.createVNode(l,{ref_key:"modalFormRef",ref:d,model:a},{default:e.withCtx(()=>[e.createVNode(B,{name:"fileList",label:e.unref(r)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:g.isRequired,message:e.unref(r)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(T,{maxCount:g.maxCount,multiple:g.multiple,accept:g.acceptFile,name:"file",fileList:a.fileList,onRemove:i,beforeUpload:t},{default:e.withCtx(()=>[e.createElementVNode("p",yt,[e.createVNode(e.unref(Y.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",ut,[e.createTextVNode(e.toDisplayString(e.unref(r)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",_t,e.toDisplayString(e.unref(r)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",St,e.toDisplayString(e.unref(r)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(g.acceptFile),1)]),_:1},8,["maxCount","multiple","accept","fileList"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),g.templateUrl?(e.openBlock(),e.createElementBlock("p",Lt,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:g.templateUrl},e.toDisplayString(e.unref(r)("hbLibComp.HbImportFile.downloadTemplate")),9,wt)])):e.createCommentVNode("",!0)]),_:1},16,["title","visible","confirm-loading","width"]),e.renderSlot(y.$slots,"default",{},()=>[e.createVNode(_,{onClick:F,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-47fe70d9"]])),Nt=Object.freeze(Object.defineProperty({__proto__:null,HbLibImportFile:xt},Symbol.toStringTag,{value:"Module"})),Bt={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:"复制成功"},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},Tt=R(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Bt,setup(o){const m=o,r=e.ref();e.watchEffect(()=>{r.value=m.data});const d=e.computed(()=>{if(m.cpText)return m.cpText;let h="";if(m.data)if(Array.isArray(m.data)){if(m.K&&m.V&&m.L){const a=m.data.find(i=>i?.[m.K]===m.V);h=a?a[m.L]:""}}else m.K&&(h=m.data[m.K]);return h}),g=()=>{navigator.clipboard.writeText(d.value).then(()=>{L.message.success(m.copySuccessTip)}).catch(()=>{L.message.error("复制失败")})};return(h,a)=>{const i=e.resolveComponent("a-tooltip");return d.value?(e.openBlock(),e.createBlock(i,{key:0,title:h.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",h.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...h.cpStyle}),onClick:e.withModifiers(g,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d5ca4420"]])),Ft={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:""}},Vt=R(U(e.defineComponent({name:"HbDrag",__name:"index",props:Ft,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(o,{emit:m}){const r=o,d=e.shallowRef([]);e.watch(()=>r.dragList,b=>{d.value=b},{deep:!0,immediate:!0});const g=te("drag"),h=m,a=b=>{console.log("drag start",b),h("handleDragStart",b)},i=b=>{console.log("drag end",b),h("handleDragEnd",b)},p=b=>{console.log("drag add",b),h("handleDragAdd",b)},t=b=>{console.log("drag remove",b),h("handleDragRemove",b)};return(b,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(g).b())},[b.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(Q),e.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":F[0]||(F[0]=y=>d.value=y),"item-key":"key",class:{[b.dragClass]:b.dragClass}},b.$attrs,{"ghost-class":b.ghostClass,onStart:a,onEnd:i,onAdd:p,onRemove:t}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(Q),e.mergeProps({key:1,modelValue:d.value,"onUpdate:modelValue":F[1]||(F[1]=y=>d.value=y),"item-key":"id",class:{[b.dragClass]:b.dragClass}},b.$attrs,{"ghost-class":b.ghostClass,onStart:a,onEnd:i,onAdd:p,onRemove:t}),{item:e.withCtx(({element:y})=>[e.createElementVNode("div",null,[e.renderSlot(b.$slots,"default",{item:y},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),$t=Object.freeze(Object.defineProperty({__proto__:null,HbLibFuncCompCopy:Tt,HbLibFuncCompDrag:Vt},Symbol.toStringTag,{value:"Module"})),Et={class:"log_remark"},Mt=R(U(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},getLogData:{}},emits:["update:visible"],setup(o,{expose:m,emit:r}){const{t:d}=K.useI18n(),g=o,h=[{title:d("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:d("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:d("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],a=e.computed(()=>g.columns||h),i=e.computed(()=>g.title||d("hbLibComp.HbLogModal.operateLogs")),p=e.ref(!1),t=e.reactive({list:[],pagination:{current:1,pageSize:20,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(l,u)=>u[0]+"-"+u[1]+" 总共"+l+"页",total:0}});e.watch(()=>g.pagination,l=>{l&&(t.pagination={...t.pagination,...l})},{deep:!0,immediate:!0});const b=(l=1)=>{const u={pageIndex:l,pageSize:t.pagination.pageSize,query:g.params};g.getLogData&&(p.value=!0,g.getLogData(u).then(_=>{Number(_.code)==200&&(t.pagination.current=l,t.pagination.total=Number(_.data.total),t.list=_.data.records||[])}).finally(()=>{p.value=!1}))},F=l=>{t.pagination.current=l.current,t.pagination.pageSize=l.pageSize,b()},y=()=>{t.list=[],B("update:visible",!1)},V=()=>{B("update:visible",!0)},T=(l,u="YYYY-MM-DD HH:mm:ss")=>l?Z(l).format(u):"",B=r;return e.watch(()=>g.visible,l=>{l&&b()}),m({close:y,loading:p}),(l,u)=>{const _=e.resolveComponent("a-tooltip"),k=e.resolveComponent("HbLibCopy"),M=e.resolveComponent("a-table"),f=e.resolveComponent("a-button"),s=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(s,{visible:o.visible,title:i.value,width:o.width,onCancel:y},{footer:e.withCtx(()=>[e.createVNode(f,{onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(M,{bordered:"",rowKey:"id",columns:a.value,dataSource:t.list,pagination:t.pagination,loading:p.value,onChange:F},{bodyCell:e.withCtx(({column:c,record:n})=>[c&&c.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.needTooltip?(e.openBlock(),e.createBlock(_,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n[c.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n[c.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c&&c.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Et,e.toDisplayString(n[c.dataIndex]),1),e.createVNode(k,{"cp-text":n[c.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),c&&c.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(T(n[c.dataIndex],c.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","pagination","loading"])]),_:1},8,["visible","title","width"]),e.renderSlot(l.$slots,"default",{},()=>[e.createVNode(f,{onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.logBtnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-cee51270"]]));let ie={...gt,...kt,...Nt,...Object.freeze(Object.defineProperty({__proto__:null,HbLibLogModal:Mt},Symbol.toStringTag,{value:"Module"})),...$t};const It={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"},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"},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"}}},Ht={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:"表示される条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定"},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:"ファイルのアップロード"}}},Dt={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索"},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:"不能将列移动到固定列位置"},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:"文件上传"}}},At={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"},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"},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"}}};var X={exports:{}},zt=X.exports,se;function Pt(){return se||(se=1,(function(o,m){(function(r,d){o.exports=d(Z)})(zt,(function(r){function d(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var g=d(r),h={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(a,i){return i==="W"?a+"周":a+"日"},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(a,i){var p=100*a+i;return p<600?"凌晨":p<900?"早上":p<1100?"上午":p<1300?"中午":p<1800?"下午":"晚上"}};return g.default.locale(h,null,!0),h}))})(X)),X.exports}Pt(),Z.locale("zh-cn");const Ot={en_US:It,ja_JP:Ht,zh_CN:Dt,de_DE:At},Rt=function(o){Object.keys(ie).forEach(r=>{o.use(ie[r])})};z.install=Rt,z.locales=Ot,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(z,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):(z=typeof globalThis<"u"?globalThis:z||self,e(z.HbComponentLib={},z.Vue,z.draggable,z.antDesignVue,z.vueRouter,z.vueI18n,z.lodash,z.iconsVue,z.core,z.dayjs))})(this,(function(z,e,X,S,re,Y,Z,j,ie,v){"use strict";const oe=(o="")=>{const p=`hb-${o}`;return me(p)},J=(o,p,r,m)=>(p&&(o+=`-${p}`),r&&(o+=`__${r}`),m&&(o+=`--${m}`),o),me=o=>({b:p=>p?J(o,p,"",""):J(o,"","",""),e:p=>p?J(o,"",p,""):"",m:p=>J(o,"","",p),be:(p,r)=>J(o,p,r,""),em:(p,r)=>J(o,"",p,r),bem:(p,r,m)=>J(o,p,r,m),is:(p,r)=>r?`is-${p}`:""}),pe=["onMouseenter","onMouseleave"],fe=["onClick"],he=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{default:"自定义查询条件"},showNumber:{default:40},saveKey:{default:""}},emits:["confirm"],setup(o,{expose:p,emit:r}){const m=Y.useI18n().t,g=Y.useI18n().messages.value.en_US,f=Y.useI18n().messages.value.ja_JP,a=Y.useI18n().messages.value.zh_CN,s=o,h=r,t=oe("sfcm"),C=re.useRoute(),F=e.reactive({lan:window.localStorage.getItem("lan")}),y=e.ref(!1),V=e.ref(600);let N=[];const x=e.ref([]),l=e.ref([]),u=e.computed(()=>x.value.every(i=>i.isLinked||i.isFixed)),_=i=>({...i,label:c(i)||`${d(i)||""} (${m("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:i.key,isFixed:i?.isFixed||!1,isLinked:i?.isLinked||!1,labelLanguage:i?.labelLanguage||void 0}),k=i=>{const B=i.draggedContext.element,T=i.relatedContext.index;if(B.isLinked||B.isFixed)return!1;const D=x.value.map((P,W)=>({item:P,index:W})).filter(({item:P})=>P.isLinked).map(({index:P})=>P);if(D.length===0)return!0;for(let P=0;P<D.length-1;P++){const W=D[P],Q=D[P+1];if(T>W&&T<Q)return!1}return!0},E=e.computed(()=>b()+"_"+s.saveKey),b=()=>{const i=localStorage.getItem("pro__Login_Userinfo");let B="anonymous";if(i)try{B=JSON.parse(i).value.jobNumber||"anonymous"}catch(D){console.warn("解析用户信息失败:",D)}let T=C?.path;return`searchFormConfig_${B}_${T}`},c=i=>({ja_JP:()=>Z.get(f,i.labelLanguage||""),en_US:()=>Z.get(g,i.labelLanguage||""),zh_CN:()=>Z.get(a,i.labelLanguage||"")})[F.lan]?.()||i.label,d=i=>({ja_JP:()=>Z.get(f,i.subLabelLanguage||""),en_US:()=>Z.get(g,i.subLabelLanguage||""),zh_CN:()=>Z.get(a,i.subLabelLanguage||"")})[F.lan]?.()||i.subLabel,n=i=>{try{const B=localStorage.getItem(E.value);if(B){const T=JSON.parse(B);if(T.originalList&&Array.isArray(T.originalList)){N=JSON.parse(JSON.stringify(T.originalList));const D=N.filter(I=>I?.isFixed),P=N.filter(I=>I?.isLinked),W=T.showList.filter(I=>!I.isFixed&&!I.isLinked),Q=s.showNumber&&s.showNumber>0?Math.max(0,s.showNumber-D.length-P.length):W.length,te=D.map(I=>({..._(I)})),le=P.map(I=>({..._(I)})),ae=W.slice(0,Q).map(I=>({..._(I)}));console.log("我进来了这里2233"),x.value=[...te,...le,...ae];const ne=x.value.map(I=>I.key),O=N.map(I=>I.key).filter(I=>!ne.includes(I));return l.value=N.filter(I=>O.includes(I.key)).map(I=>({..._(I),active:!1})),!0}}}catch(B){console.warn("加载保存的搜索配置失败:",B)}return!1},L=()=>{try{const i={originalList:N,showList:x.value.map(B=>({...B,key:B.key,label:B.label,isFixed:B.isFixed,isLinked:B.isLinked,labelLanguage:B?.labelLanguage||void 0}))};localStorage.setItem(E.value,JSON.stringify(i))}catch(i){console.warn("保存搜索配置失败:",i)}},$=e.computed(()=>{const i=x.value.filter(T=>!T.isFixed&&!T.isLinked).length,B=x.value.filter(T=>T.isFixed||T.isLinked).length;return i>=s.showNumber-B});e.watch(()=>s.list,i=>{let B=JSON.stringify(x.value)!==JSON.stringify(i);if(!B)return;const T=localStorage.getItem(E.value),D=JSON.parse(T||"{}");if(D&&D?.originalList&&Array.isArray(D.originalList))n(),h("confirm",x.value);else if(B){N=JSON.parse(JSON.stringify(i));const P=i.filter(O=>O?.isFixed),W=i.filter(O=>O?.isLinked),Q=i.filter(O=>!O?.isFixed&&!O?.isLinked),te=s.showNumber&&s.showNumber>0?Math.max(0,s.showNumber-P.length-W.length):Q.length,le=P.map(O=>_(O)),ae=W.map(O=>_(O)),ne=Q.slice(0,te).map(O=>_(O));x.value=[...le,...ae,...ne];const de=Q.slice(te).map(O=>({..._(O),active:!1}));l.value=de}},{immediate:!0});const A=i=>{const B=x.value.findIndex(T=>T.key===i.key);B!==-1&&(x.value.splice(B,1),l.value.push({...i,active:!1}))},K=i=>{if($.value)return;const B=l.value.findIndex(T=>T.key===i.key);if(B!==-1){const[T]=l.value.splice(B,1);x.value.push({...T,active:!1})}},H=()=>{y.value=!1},M=()=>{y.value=!0},q=()=>{L(),h("confirm",x.value),H()},w=i=>{const B=l.value.findIndex(T=>T.key===i.key);B!==-1&&(l.value[B].active=!0)},G=i=>{const B=l.value.findIndex(T=>T.key===i.key);B!==-1&&(l.value[B].active=!1)};return p({toOpenModal:M}),e.onMounted(()=>{console.log("我是保存的搜索条件")}),(i,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t).b())},[e.createVNode(e.unref(S.Modal),{visible:y.value,"onUpdate:visible":B[1]||(B[1]=T=>y.value=T),width:V.value,onCancel:H,onOk:q},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("title"))},e.toDisplayString(o.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(S.Button),{onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(S.Button),{type:"primary",onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(t).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(t).e("title__tip"))},e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(o.showNumber)+e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("show__tag"))},[e.createVNode(e.unref(X),{modelValue:x.value,"onUpdate:modelValue":B[0]||(B[0]=T=>x.value=T),"item-key":"key",tag:"div",disabled:u.value,move:k},{item:e.withCtx(({element:T})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t).e("show__tag__item"),e.unref(t).is("fixed",T.isFixed),e.unref(t).is("linked",T.isLinked)])},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),!T.isFixed&&!T.isLinked&&o.list.length>1?(e.openBlock(),e.createBlock(e.unref(j.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(t).e("show__tag__item-close")),onClick:D=>A(T)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(t).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(t).e("title__tip"))},e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t).e("unshow__tag"))},[l.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,T=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).e("unshow__tag__item"),e.unref(t).is("fixed",T.isFixed||""),e.unref(t).is("linked",T.isLinked||"")]),key:T.key,onMouseenter:D=>w(T),onMouseleave:D=>G(T)},[e.createTextVNode(e.toDisplayString(T.label)+" ",1),T.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(t).e("unshow__tag__item-add")),onClick:D=>K(T)},e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.add")),11,fe)):e.createCommentVNode("",!0)],42,pe))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t).e("unshow__tag__empty"))},e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(o,p)=>{const r=o.__vccOpts||o;for(const[m,g]of p)r[m]=g;return r},be=U(he,[["__scopeId","data-v-abe66e59"]]),R=o=>(o.install=p=>{p.component(o.name||"AnonymousComponent",o)},o),ge=R(be),Ce={class:"form-footer"},ke=R(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(o,{expose:p,emit:r}){const m=r,g=e.inject("HB_LIST_PAGE_CONTAINER"),f=e.computed(()=>s.searchList||[]),a=oe("form"),s=o,h=e.ref("show"),t=e.computed(()=>[...s.items]),C=e.computed(()=>[...s.items].map(n=>({...n,label:n.label?.includes("多项搜索")?"":n.label}))),F=e.computed(()=>s.saveKey),y=e.ref(),V=()=>{m("handleSearch")},N=()=>{m("handleReset")},x=e.ref(),l=()=>{x.value&&x.value.toOpenModal()},u=n=>{m("handleMenuClick",n)},_=n=>{m("handleSfcmConfirm",n)},k=()=>{h.value=h.value==="show"?"hide":"show"};e.watch(()=>s.isFormExpanded,n=>{if(n){console.log(n);const L=document.querySelector("#subpackage_container");L instanceof HTMLElement&&(L.style.overflow="hidden",setTimeout(()=>{L.style.overflow="auto"},500))}});const E=n=>{const L=n;L.style.height="",L.offsetHeight},b=n=>{const L=n;L.style.height="",L.style.overflow="",e.nextTick(()=>{g.calTableHeight&&g.calTableHeight()})},c=n=>{const L=n,$=L.querySelector(".hb-lib-form--container");if($){const A=$.offsetHeight;L.style.height=A+"px",L.style.overflow="hidden",L.offsetHeight,requestAnimationFrame(()=>{L.style.height="0"})}},d=()=>{e.nextTick(()=>{g.calTableHeight&&g.calTableHeight()})};return p({formRef:y,SelectOption:S.SelectOption,Form:S.Form,FormItem:S.FormItem,Row:S.Row,Col:S.Col,Input:S.Input,Select:S.Select,CheckboxGroup:S.CheckboxGroup,Checkbox:S.Checkbox,DatePicker:S.DatePicker,InputNumber:S.InputNumber,RadioGroup:S.RadioGroup,Radio:S.Radio,Switch:S.Switch,Button:S.Button,Tooltip:S.Tooltip}),(n,L)=>{const $=e.resolveComponent("a-button"),A=e.resolveComponent("a-tooltip"),K=e.resolveComponent("a-menu-item"),H=e.resolveComponent("a-menu"),M=e.resolveComponent("a-dropdown"),q=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:E,onAfterEnter:b,onLeave:c,onAfterLeave:d},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(a).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(S.Form),e.mergeProps(n.$attrs,{model:o.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(C.value,(w,G)=>(e.openBlock(),e.createBlock(e.unref(S.FormItem),e.mergeProps({key:G,ref_for:!0},w,{name:w.key,class:w.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[w.type==="slot"?e.renderSlot(n.$slots,w.key,{key:0,formData:o.formData,item:w},void 0,!0):e.createCommentVNode("",!0),w.type==="mixin"?e.renderSlot(n.$slots,w.key,{key:1,formData:o.formData,item:w},void 0,!0):e.createCommentVNode("",!0),w.type==="input"?(e.openBlock(),e.createBlock(e.unref(S.Input),e.mergeProps({key:2,value:o.formData[w.key],"onUpdate:value":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),w.type==="select"?(e.openBlock(),e.createBlock(e.unref(S.Select),e.mergeProps({key:3,value:o.formData[w.key],"onUpdate:value":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.options,(i,B)=>(e.openBlock(),e.createBlock(e.unref(S.SelectOption),{key:B,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),w.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(S.CheckboxGroup),e.mergeProps({key:4,value:o.formData[w.key],"onUpdate:value":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.options,(i,B)=>(e.openBlock(),e.createBlock(e.unref(S.Checkbox),{key:B,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),w.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(S.DatePicker),e.mergeProps({key:5,value:o.formData[w.key],"onUpdate:value":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),w.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(S.InputNumber),e.mergeProps({key:6,value:o.formData[w.key],"onUpdate:value":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),w.type==="radio"?(e.openBlock(),e.createBlock(e.unref(S.RadioGroup),e.mergeProps({key:7,value:o.formData[w.key],"onUpdate:value":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.options,(i,B)=>(e.openBlock(),e.createBlock(e.unref(S.Radio),{key:B,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),w.type==="switch"?(e.openBlock(),e.createBlock(e.unref(S.Switch),e.mergeProps({key:8,checked:o.formData[w.key],"onUpdate:checked":i=>o.formData[w.key]=i},{ref_for:!0},w.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[w.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.label)+" ",1),e.createVNode(e.unref(S.Tooltip),{title:w.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"]))),128)),e.createElementVNode("section",Ce,[e.createVNode($,{type:"primary",onClick:V,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(j.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode($,{type:"link",onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),o.needFilter?(e.openBlock(),e.createBlock(A,{key:0,title:n.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:l},[...L[0]||(L[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"formBtns",{},()=>[o.needSearchCase?(e.openBlock(),e.createBlock(M,{key:0},{overlay:e.withCtx(()=>[e.createVNode(H,{onClick:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,w=>(e.openBlock(),e.createBlock(K,{key:w.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.title),1)]),_:2},1024))),128)),e.createVNode(K,{key:"add"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),e.createVNode(K,{key:"edit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{title:n.$t("hbLibComp.hbLibListForm.queryCase")},{default:e.withCtx(()=>[...L[1]||(L[1]=[e.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[e.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[e.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),e.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),e.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):e.createCommentVNode("",!0)],!0)])]),_:3},16,["model","class"]),o.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("footer__left"))},[e.renderSlot(n.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("footer__right"))},[h.value=="show"?e.renderSlot(n.$slots,"form-footer-right",{key:0,formRef:y.value},()=>[e.createVNode(e.unref(S.Button),{type:"primary",onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(S.Button),{type:"primary",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(S.Button),{type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.value=="show"?`${n.$t("hbLibComp.hbListPageAct.close")}`:`${n.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,o.isFormExpanded]])]),_:3}),e.createVNode(q,{list:t.value,ref_key:"HbSfCmRef",ref:x,onConfirm:_,saveKey:F.value},null,8,["list","saveKey"])],64)}}}),[["__scopeId","data-v-04ccb514"]])),ye={class:"hb-lib-list-page-act-box"},ue={class:"hb-lib-list-page-breadcrumb"},_e={class:"hb-lib-list-page-act"},Se={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"},Le={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},we=R(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0}},setup(o){const p=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:r,toggle:m}=ie.useFullscreen(p.PageContainerRef),g=e.ref(""),f=()=>{const a=re.useRoute();let s=localStorage.getItem("BreadCrumb")||"[]",h=a?.path;if(s!=="[]"){let t=JSON.parse(s).find(C=>C.value===h);t&&(g.value=t.label.replace(/-/g," / "))}};return e.onMounted(()=>{f()}),(a,s)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ye,[e.createElementVNode("aside",ue,e.toDisplayString(g.value),1),e.createElementVNode("aside",_e,[e.createVNode(h,{title:e.unref(r)?`${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:s[0]||(s[0]=(...t)=>e.unref(m)&&e.unref(m)(...t))},[e.unref(r)?(e.openBlock(),e.createElementBlock("svg",Le,[...s[2]||(s[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",Se,[...s[1]||(s[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(a.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-a7ddfc50"]])),xe={class:"hb-lib-list-btns-box"},Ne={class:"hb-lib-list-btns-left"},Be={class:"hb-lib-list-btns-right"},Te=R(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(o,{emit:p}){const r=p,m=e.ref(!0),g=()=>{m.value=!m.value,r("handleOpenOrClose",m.value)},f=()=>{r("handleReload")};return e.onMounted(()=>{}),(a,s)=>{const h=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",xe,[e.createElementVNode("aside",Ne,[e.renderSlot(a.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Be,[o.needReload?(e.openBlock(),e.createBlock(h,{key:0,title:a.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:f},[...s[0]||(s[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),o.needOpenOrClose?(e.openBlock(),e.createBlock(h,{key:1,title:m.value?`${a.$t("hbLibComp.hbListBtnsAct.close")}`:`${a.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:g},[m.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(a.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-da13672b"]])),Fe=(o={})=>{const{formRef:p,offsetBottom:r=50,minHeight:m=300}=o,g=e.ref(0);let f=null,a=null,s=null,h=null,t=null;const C=()=>{t&&clearTimeout(t),t=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const u=document.querySelector(".ant-table"),_=document.querySelector(".ant-pagination");if(u){const k=u.getBoundingClientRect().top,E=window.innerHeight,c=(_?_.offsetHeight+20:40)+r;let d=E-k-c;d<m&&(d=m),g.value=d}})})},100)},F=()=>{const u=document.querySelector(".ant-pagination");if(u){const _=new MutationObserver(()=>{C()});return _.observe(u,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),_}return null},y=()=>{const u=document.querySelector(".hb-lib-list-page-form-box");u&&(f=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(k=>{k.style.display="none"}),C()}),f.observe(u))},V=()=>{const u=document.querySelector(".hb-lib-list-page-form-box");u&&(s=new MutationObserver(()=>{setTimeout(()=>{C()},100)}),s.observe(u,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},N=()=>{h&&clearTimeout(h),h=setTimeout(()=>{C()},100)},x=()=>{window.addEventListener("resize",N),e.nextTick(()=>{y(),V(),a=F()})},l=()=>{window.removeEventListener("resize",N),f&&f.disconnect(),s&&s.disconnect(),a&&a.disconnect(),h&&clearTimeout(h),t&&clearTimeout(t)};return p&&e.watch(()=>p,()=>{setTimeout(()=>{C()},200)},{deep:!0}),e.onMounted(()=>{C(),x()}),e.onUnmounted(()=>{l()}),{tableHeight:g,calTableHeight:C}},Ve=R(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{default:400},tabelData:{default:()=>[]},offsetBottom:{default:20},minHeight:{}},setup(o){const p=o,r=e.useTemplateRef("PageContainerRef"),{calTableHeight:m,tableHeight:g}=Fe({offsetBottom:p.offsetBottom||20,minHeight:p.minHeight||300}),f=e.computed(()=>g.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:g,calTableHeight:m}),(a,s)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:r},[e.renderSlot(a.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":f.value-p.offsetBottom+"px","--hb-list-ttable-height":o.tabelData.length?"":f.value-p.offsetBottom+"px"})},[e.renderSlot(a.$slots,"default")],4)],512))}})),$e={style:{"font-weight":"500"}},Ee={key:0,class:"hb-lib-search-tag__description"},Me={class:"hb-lib-selector-dropdown"},Ie={class:"hb-lib-selector-search"},He={class:"hb-lib-selector-list"},De=["onClick"],Ae={class:"hb-lib-option-content"},ze={class:"hb-lib-option-label"},Pe={key:0,class:"hb-lib-selector-empty"},Oe={key:1,class:"hb-lib-selector-footer"},Re={class:"hb-lib-footer-buttons"},Ue={key:2,class:"hb-lib-selector-footer"},qe={class:"hb-lib-footer-buttons"},je=R(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(o,{emit:p}){const r=o,m=p,g=e.useModel(o,"value"),f=e.ref(!1),a=e.ref(""),s=e.ref([]),h=e.ref(),t=e.computed(()=>{if(r.remoteSearch||!a.value)return r.options;const b=a.value.toLowerCase();return r.options.filter(c=>c.label.toLowerCase().includes(b)||c.description?.toLowerCase().includes(b))}),C=e.computed(()=>r.prefix?`${r.prefix.length*14+8}px`:"0px"),F=e.computed(()=>t.value.length===0?!1:t.value.every(b=>s.value.includes(b.value))),y=e.computed(()=>{if(t.value.length===0)return!1;const b=t.value.filter(c=>s.value.includes(c.value)).length;return b>0&&b<t.value.length});e.watch(()=>g.value,b=>{b?s.value=Array.isArray(b)?[...b]:[b]:s.value=[]},{immediate:!0}),e.watch(()=>r.searchValue,b=>{r.remoteSearch&&b!==void 0&&(a.value=b)},{immediate:!0});const V=b=>{b&&(f.value=b,N.value=[...s.value],a.value="",setTimeout(()=>{if(h.value){const c=h.value.input||h.value.$el?.querySelector("input");c&&c.focus()}},100))},N=e.ref([]),x=()=>{s.value=[...N.value],f.value=!1,m("cancel")},l=e.ref([]),u=()=>{const b=r.multiple?s.value:s.value[0]||"",c=r.options.filter(d=>s.value.includes(d.value));l.value=c,console.log(b,c),N.value=[...s.value],g.value=b,m("update:value",b),m("change",b,c),m("confirm",b,c),f.value=!1},_=ie.useDebounceFn(b=>{const c=b!==void 0?b:a.value;r.remoteSearch&&(m("search",c),m("update:searchValue",c))},300),k=b=>{if(r.multiple){const c=new Set(s.value);c.has(b.value)?c.delete(b.value):c.add(b.value),s.value=Array.from(c)}else s.value=[b.value],u()},E=b=>{if(b.target.checked){const d=new Set(s.value);t.value.forEach(n=>{d.add(n.value)}),s.value=Array.from(d)}else{const d=new Set(t.value.map(n=>n.value));s.value=s.value.filter(n=>!d.has(n))}};return(b,c)=>{const d=e.resolveComponent("a-tag"),n=e.resolveComponent("a-input"),L=e.resolveComponent("a-checkbox"),$=e.resolveComponent("a-radio"),A=e.resolveComponent("a-button"),K=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":C.value}},b.$attrs),[e.createVNode(K,{value:g.value,"onUpdate:value":c[5]||(c[5]=H=>g.value=H),mode:o.multiple?"multiple":void 0,placeholder:o.placeholder,"show-search":!0,"filter-option":!1,open:f.value,allowClear:"",maxTagCount:o.maxTagCount,options:t.value,onDropdownVisibleChange:V,onSearch:e.unref(_),"max-tag-text-length":o.tagTextLength,class:e.normalizeClass({"has-prefix":o.prefix}),"data-prefix":o.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:H,label:M,closable:q,option:w})=>[e.createVNode(d,{class:"hb-lib-search-tag",onClick:c[0]||(c[0]=()=>V(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",$e,e.toDisplayString(M),1),w?.description?(e.openBlock(),e.createElementBlock("span",Ee," ("+e.toDisplayString(w.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:H})=>[e.createElementVNode("div",Me,[e.createElementVNode("div",Ie,[e.createVNode(n,{ref_key:"searchInputRef",ref:h,class:"hb-lib-selector-search-input",value:a.value,"onUpdate:value":c[1]||(c[1]=M=>a.value=M),placeholder:"请输入关键词搜索","allow-clear":"",onInput:c[2]||(c[2]=M=>e.unref(_)(M.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(j.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,M=>(e.openBlock(),e.createElementBlock("div",{key:M.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(M.value)}]),onClick:()=>k(M)},[o.multiple?(e.openBlock(),e.createBlock(L,{key:0,checked:s.value.includes(M.value),onChange:()=>k(M),onClick:c[3]||(c[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock($,{key:1,checked:s.value.includes(M.value),onChange:()=>k(M),onClick:c[4]||(c[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Ae,[e.createElementVNode("div",ze,e.toDisplayString(M.label),1)])],10,De))),128))]),t.value.length===0?(e.openBlock(),e.createElementBlock("div",Pe,e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),o.multiple?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(L,{checked:F.value,indeterminate:y.value,onChange:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Re,[e.createVNode(A,{size:"small",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(A,{type:"primary",size:"small",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Ue,[c[6]||(c[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",qe,[e.createVNode(A,{size:"small",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$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"]])),Ye={class:"hb-lib-form-item-filter-modal-search"},Ke={class:"hb-lib-form-item-filter-modal-buttons"},We={key:0},Je=R(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(o,{expose:p,emit:r}){const m=o,g=r,f=e.ref(!1),a=e.ref(""),s=e.ref(),h=e.ref(),t=e.ref([]),C=e.ref([]),F=e.ref(),y=e.reactive({searchText:"",searchedColumn:""}),V=e.computed(()=>m.tableData.map(d=>(d.id=d.id||Math.random(),d))),N=e.computed(()=>m.tableColumn.map(d=>(d.customFilterDropdown&&(d.onFilter=(n,L)=>L[d.dataIndex].toString().toLowerCase().includes(n.toLowerCase()),d.onFilterDropdownVisibleChange=n=>{n&&setTimeout(()=>{s.value?.focus()},100)}),{...d}))),x=()=>{let d="";C.value.forEach(n=>{d=d+n[m.labelKey]+","}),a.value=d.substring(0,d.length-1),f.value=!1,g("handleConfirm",C.value)},l=()=>{f.value=!1},u=()=>{f.value=!0,e.nextTick(()=>{const d=F.value?.$el?.querySelector(".ant-table-body");d&&(d.scrollTop=0)})},_=()=>{t.value=[],C.value=[]},k=()=>{a.value="",_()},E=(d,n,L)=>{n(),y.searchText=d[0],y.searchedColumn=L},b=(d,n)=>{d({confirm:!0}),y.searchText="",n()},c=(d,n)=>{t.value=d,C.value=n};return p({resetInputVal:k}),(d,n)=>{const L=e.resolveComponent("a-input"),$=e.resolveComponent("a-button"),A=e.resolveComponent("a-table"),K=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:h},[e.createVNode(L,{readonly:"",onClick:u,value:a.value,"onUpdate:value":n[0]||(n[0]=H=>a.value=H),placeholder:d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(j.UnorderedListOutlined),{onClick:u})]),_:1},8,["value","placeholder"]),e.createVNode(K,{visible:f.value,"onUpdate:visible":n[1]||(n[1]=H=>f.value=H),title:o.modelTitle,width:o.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode($,{onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode($,{onClick:l},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(A,{ref_key:"tableRef",ref:F,columns:N.value,dataSource:V.value,rowSelection:{selectedRowKeys:t.value,onChange:c},rowKey:H=>H[o.tableKey],scroll:{y:o.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:H,selectedKeys:M,confirm:q,clearFilters:w,column:G})=>[e.createElementVNode("div",Ye,[e.createVNode(L,{ref_key:"searchInput",ref:s,placeholder:`请输入${G.title}`,value:M[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:i=>H(i.target.value?[i.target.value]:[]),onPressEnter:i=>E(M,q,G.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Ke,[e.createVNode($,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:i=>b(w,q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode($,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:i=>E(M,q,G.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:H})=>[e.createVNode(e.unref(j.SearchOutlined),{style:e.normalizeStyle({color:H?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:H,column:M})=>[y.searchText&&y.searchedColumn===M.dataIndex?(e.openBlock(),e.createElementBlock("span",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.toString().split(new RegExp(`(?<=${y.searchText})|(?=${y.searchText})`,"i")),(q,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[q.toLowerCase()===y.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:w,class:"highlight"},e.toDisplayString(q),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(q),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Ge={class:"hb-lib-table-act-box"},Qe=["onClick"],Ze={href:"javascript:;",class:"hb-lib-table-main-action"},Xe=["onClick"],ve={href:"javascript:;",class:"hb-lib-table-more-action"},et=["onClick"],tt={href:"javascript:;"},ot=["onClick"],lt={class:"hb-lib-table-confirm-modal-content"},at=R(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(o,{expose:p}){const r=o,{t:m}=Y.useI18n(),g=e.ref(!1),f=e.ref(!1),a=e.ref(null),s=e.computed(()=>r.actions.filter(x=>x.condition!==void 0?x.condition:!0)),h=e.computed(()=>s.value.slice(0,r.buttonDisplaysQuantity)),t=e.computed(()=>s.value.slice(r.buttonDisplaysQuantity)),C=x=>{x.handler&&x.handler(r.record)},F=x=>{a.value=x,g.value=!0},y=()=>{if(a.value){f.value=!0;try{C(a.value),f.value=!1,g.value=!1}catch{f.value=!1}}},V=()=>{g.value=!1,a.value=null},N=e.computed(()=>a.value?{title:a.value.confirmTitle,content:a.value.confirmContent||a.value.confirmTitle}:{title:m("hbLibComp.hbTableAct.secendConfirm"),content:m("hbLibComp.hbTableAct.confirmContent")});return p({ADropdown:S.Dropdown,AMenu:S.Menu,AMenuItem:S.MenuItem,APopconfirm:S.Popconfirm,AModal:S.Modal,DownOutlined:j.DownOutlined}),(x,l)=>{const u=e.resolveComponent("a-divider"),_=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(k,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:E},[k.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:b=>F(k),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(k.label),1)],8,Qe)),[[_,k.permissionsTag||null]]),t.value&&t.value.length>0||E!==h.value.length-1?(e.openBlock(),e.createBlock(u,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(S.Popconfirm),{title:k.confirmTitle,onConfirm:b=>C(k)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Ze,[e.createTextVNode(e.toDisplayString(k.label),1)])),[[_,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),t.value&&t.value.length>0||E!==h.value.length-1?(e.openBlock(),e.createBlock(u,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:b=>C(k),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(k.label),1)],8,Xe)),[[_,k.permissionsTag||null]]),t.value&&t.value.length>0||E!==h.value.length-1?(e.openBlock(),e.createBlock(u,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),t.value&&t.value.length>0?(e.openBlock(),e.createBlock(e.unref(S.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(S.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,k=>(e.openBlock(),e.createBlock(e.unref(S.MenuItem),{key:k.key},{default:e.withCtx(()=>[k.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:E=>F(k)},[e.createTextVNode(e.toDisplayString(k.label),1)],8,et)),[[_,k.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(S.Popconfirm),{key:1,title:k.confirmTitle,onConfirm:E=>C(k)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",tt,[e.createTextVNode(e.toDisplayString(k.label),1)])),[[_,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:E=>C(k)},[e.createTextVNode(e.toDisplayString(k.label),1)],8,ot)),[[_,k.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",ve,[e.createTextVNode(e.toDisplayString(x.$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(S.Modal),{visible:g.value,title:N.value.title,"confirm-loading":f.value,onOk:y,onCancel:V},{default:e.withCtx(()=>[e.createElementVNode("p",lt,e.toDisplayString(N.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-a96574fa"]])),nt=o=>({tableWidth:e.computed(()=>{const r=Array.isArray(o)?o:o.value;return!r||r.length===0?0:r.map(m=>m.width&&Number(m.width.toString().replace("px",""))||0).reduce((m,g)=>m+g,0)})}),rt={key:0,class:"hb-lib-list-table-act"},it={class:"empty-container"},st=R(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{default:()=>150},tooltipPlacement:{default:()=>"topLeft"}},setup(o){const{t:p}=Y.useI18n(),r=o,m=e.ref([]),g=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:f}=nt(e.computed(()=>r.columns));e.watch(()=>r.columns,t=>{const C=t.filter(F=>F!=null&&F.checked);m.value=C.map(F=>{let y={...F,title:F.title||F.label};if(y.ellipsis&&!y.needTooltip&&(y.needTooltip=!0),!y.width)y.width=r.defaultWidth;else if(typeof y.width=="string"){const V=parseInt(y.width,10);y.width=isNaN(V)?r.defaultWidth:V}return y.resizable===void 0&&(y.resizable=!0),y})},{immediate:!0,deep:!0});const a=(t,C)=>{if(C){const F=typeof t=="string"?parseInt(t,10):t;C.width=isNaN(F)?150:F}},s=(t,C="YYYY-MM-DD HH:mm:ss")=>t?v(t).format(C):"",h=(t,C)=>t&&C[t]||"";return(t,C)=>{const F=e.resolveComponent("a-empty"),y=e.resolveComponent("a-tooltip"),V=e.resolveComponent("HbLibCopy"),N=e.resolveComponent("a-tag"),x=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":o.rowHeight&&o.rowHeight+"px"||""})},[t.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",rt,[e.renderSlot(t.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(t.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(x,e.mergeProps(t.$attrs,{bordered:"",columns:m.value,onResizeColumn:a,scroll:{x:e.unref(f),y:e.unref(g).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",it,[e.createVNode(F,{description:e.unref(p)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[t.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:l})=>[e.renderSlot(t.$slots,"headerCell",{column:l},()=>[e.createTextVNode(e.toDisplayString(l.title),1)],!0)]),key:"0"}:void 0,t.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"bodyCell",{column:l,record:u,index:_,text:k},void 0,!0),l&&l.needTooltip?(e.openBlock(),e.createBlock(y,{key:0,placement:o.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[l.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(u[l.dataIndex]),1)]),_:2},1032,["placement"])):e.createCommentVNode("",!0),l&&l.needCopy?(e.openBlock(),e.createBlock(V,{key:1,"cp-text":u[l.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),l&&l.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(s(u[l.dataIndex],l.format)),1)],64)):e.createCommentVNode("",!0),l&&l.tags?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[h(u[l.dataIndex],l.tags)?(e.openBlock(),e.createBlock(N,{key:0,color:h(u[l.dataIndex],l.tags)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[l.dataIndex]),1)]),_:2},1032,["color"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,t.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"expandedRowRender",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"2"}:void 0,t.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"customFilterDropdown",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"3"}:void 0,t.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"customFilterIcon",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"4"}:void 0,t.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"expandIcon",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"5"}:void 0,t.$slots.footer?{name:"footer",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"footer",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"6"}:void 0,t.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"headerCell",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"7"}:void 0,t.$slots.summary?{name:"summary",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"summary",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"8"}:void 0,t.$slots.title?{name:"title",fn:e.withCtx(({column:l,record:u,index:_,text:k})=>[e.renderSlot(t.$slots,"title",{record:u,column:l,index:_,text:k},void 0,!0)]),key:"9"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-f3061eae"]])),ct={class:"hb-lib-table-setting-box"},dt={key:0,class:"hb-lib-table-drag-item"},mt={key:0,class:"hb-lib-table-drag-item-act"},pt=["onClick"],ft=["onClick"],ht={class:"hb-lib-table-set-btn-group"},bt={class:"select-all-container",style:{"margin-right":"10px"}},gt=R(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(o,{emit:p}){const r=p,{t:m}=Y.useI18n(),g=o,f=e.ref([]),a=e.computed(()=>h.value.filter(b=>b.checked));e.ref([]);const s=e.ref(!1),h=e.ref([]),t=e.ref(null),C=e.computed(()=>a.value.length>0&&a.value.length===f.value.length),F=e.computed(()=>a.value.length>0&&a.value.length<f.value.length),y=b=>{t.value=b.oldIndex},V=b=>{const c=b.newIndex;if(f.value.some(n=>n.fixed==="left"||n.fixed==="right"||n.fixed===!0)){const n=f.value.filter($=>$.fixed==="left").length,L=f.value.length-f.value.filter($=>$.fixed==="right").length;if((n>0&&c<n||L<f.value.length&&c>=L)&&(S.message.warning(m("hbLibComp.hbLibListTableColumsSet.errorTip")),t.value!==null)){const $=h.value.splice(c,1)[0];h.value.splice(t.value,0,$)}}t.value=null},N=b=>{b.target.checked?h.value.forEach(d=>d.checked=!0):h.value.forEach(d=>d.checked=!1)},x=(b,c)=>{c?b.checked=!0:b.checked=!1},l=()=>{f.value=[...h.value],r("on-get-columns",f.value),s.value=!1},u=()=>{f.value=g.tableColumns.map(c=>({...c,label:c.title&&c.title.tag?_(c.title):c.title||c.title2,value:c.dataIndex,checked:c.checked||c.checked===void 0})),h.value=[...f.value];let b=[];g.tableColumns.forEach(function(c){b.push(c.dataIndex)})},_=b=>b.children[0].text,k=b=>{delete b.fixed;const c=h.value.findIndex(d=>d.value===b.value);if(c!==-1){let d=-1;for(let n=0;n<h.value.length;n++)h.value[n].fixed==="left"&&(d=n);if(d!==-1&&c!==d+1){const n=[...h.value],[L]=n.splice(c,1);n.splice(d+1,0,L),h.value=n}}},E=b=>{const c=h.value.findIndex(d=>d.value===b.value);if(c!==-1){let d=-1;for(let A=0;A<h.value.length;A++)h.value[A].fixed==="left"&&(d=A);const n=[...h.value],[L]=n.splice(c,1);L.fixed="left";const $=d===-1?0:d+1;n.splice($,0,L),h.value=n}};return e.watch(()=>g.tableColumns,()=>{u()},{immediate:!0,deep:!0}),(b,c)=>{const d=e.resolveComponent("a-tooltip"),n=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(e.unref(S.Popover),{title:e.unref(m)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"column_setting_popover",visible:s.value,"onUpdate:visible":c[1]||(c[1]=L=>s.value=L)},{content:e.withCtx(()=>[e.createVNode(e.unref(X),{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=L=>h.value=L),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:y,onEnd:V},{item:e.withCtx(({element:L})=>[L.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(e.unref(S.Checkbox),{checked:L.checked,onChange:$=>x(L,$.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.label),1)]),_:2},1032,["checked","onChange"]),L.checked?(e.openBlock(),e.createElementBlock("section",mt,[e.createElementVNode("span",{class:e.normalizeClass(L.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),L.fixed?(e.openBlock(),e.createBlock(d,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:$=>k(L)},[...c[2]||(c[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,pt)]),_:2},1024)):e.createCommentVNode("",!0),L.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:$=>E(L)},[...c[3]||(c[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,ft)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ht,[e.createElementVNode("div",bt,[e.createVNode(e.unref(S.Checkbox),{checked:C.value,indeterminate:F.value,onChange:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(n,{onClick:l,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(d,{title:e.unref(m)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...c[4]||(c[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-772844f6"]])),Ct=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormItemFilterModal:ge,HbLibListBtnsAct:Te,HbLibListForm:ke,HbLibListMultiSelect:je,HbLibListPageAct:we,HbLibListPageContainer:Ve,HbLibListTable:st,HbLibMutilpleSelectModal:Je,HbLibTableAct:at,HbLibTableColumnSet:gt},Symbol.toStringTag,{value:"Module"})),kt=R(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(o,{expose:p}){const r=o,m=e.useAttrs(),g=e.computed(()=>{const N=m,x=N.dropdownClassName;return{...N,dropdownClassName:x??"hb_lib_form_tooltip_select__dropdown"}}),f=e.ref(),a=e.useModel(o,"value"),s=e.computed(()=>r.options??[]),h=e.computed(()=>({maxWidth:typeof r.tooltipMaxWidth=="number"?`${r.tooltipMaxWidth}px`:r.tooltipMaxWidth})),t=N=>N.tooltip??N.label,C=N=>N.key??N.label,F=N=>!!(r.enableTooltip&&t(N));return p({focus:()=>{f.value?.focus?.()},blur:()=>{f.value?.blur?.()},selectRef:f}),(N,x)=>(e.openBlock(),e.createBlock(e.unref(S.Select),e.mergeProps({ref_key:"selectRef",ref:f,class:"hb_lib_form_tooltip_select"},g.value,{value:a.value,"onUpdate:value":x[0]||(x[0]=l=>a.value=l)}),{default:e.withCtx(()=>[N.$slots.default?e.renderSlot(N.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(s.value,l=>(e.openBlock(),e.createBlock(e.unref(S.SelectOption),e.mergeProps({key:C(l),value:l.value,disabled:l.disabled},{ref_for:!0},l.optionProps),{default:e.withCtx(()=>[F(l)?(e.openBlock(),e.createBlock(e.unref(S.Tooltip),{key:0,title:t(l),placement:r.tooltipPlacement,overlayStyle:h.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(l.label),3)]),_:2},1032,["title","placement","overlayStyle"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(l.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-b04f5675"]])),yt=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormTooltipSelect:kt},Symbol.toStringTag,{value:"Module"})),ut={class:"ant-upload-drag-icon"},_t={class:"ant-upload-text"},St={style:{color:"#ff5000"}},Lt={class:"ant-upload-hint"},wt={key:0,class:"hb_import_btn"},xt=["href"],Nt=R(U(e.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(o,{expose:p}){const{t:r}=Y.useI18n(),m=e.ref(),g=o,f=e.ref(!1),a=e.reactive({fileList:[],visible:!1}),s=y=>{if(y==null)return;const V=a.fileList.indexOf(y);if(V!==-1){const N=a.fileList.slice();N.splice(V,1),a.fileList=N}},h=()=>{a.visible=!1,a.fileList=[],f.value=!1},t=y=>(a.fileList=[y],g.beforeUpload?g.beforeUpload(y):!1),C=()=>{m.value.validateFields().then(()=>{g.beforeSubmit&&(f.value=!0,g.beforeSubmit(a.fileList).then(y=>{}).finally(()=>{f.value=!1}))})},F=()=>{a.visible=!0};return p({handleCancel:h,openModal:F,confirmLoading:f}),(y,V)=>{const N=e.resolveComponent("a-upload-dragger"),x=e.resolveComponent("a-form-item"),l=e.resolveComponent("a-form"),u=e.resolveComponent("a-modal"),_=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,e.mergeProps({title:g.title,visible:a.visible,"onUpdate:visible":V[0]||(V[0]=k=>a.visible=k),"confirm-loading":f.value},y.$attrs,{onCancel:h,onOk:C,width:g.modalWidth}),{default:e.withCtx(()=>[e.createVNode(l,{ref_key:"modalFormRef",ref:m,model:a},{default:e.withCtx(()=>[e.createVNode(x,{name:"fileList",label:e.unref(r)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:g.isRequired,message:e.unref(r)("hbLibComp.HbImportFile.clickUp")}]},{default:e.withCtx(()=>[e.createVNode(N,{maxCount:g.maxCount,multiple:g.multiple,accept:g.acceptFile,name:"file",fileList:a.fileList,onRemove:s,beforeUpload:t},{default:e.withCtx(()=>[e.createElementVNode("p",ut,[e.createVNode(e.unref(j.PlusCircleOutlined),{style:{"font-size":"37px"}})]),e.createElementVNode("p",_t,[e.createTextVNode(e.toDisplayString(e.unref(r)("hbLibComp.HbImportFile.uploadText")),1),e.createElementVNode("span",St,e.toDisplayString(e.unref(r)("hbLibComp.HbImportFile.clickUp")),1)]),e.createElementVNode("p",Lt,e.toDisplayString(e.unref(r)("hbLibComp.HbFileUploadModal.format"))+": "+e.toDisplayString(g.acceptFile),1)]),_:1},8,["maxCount","multiple","accept","fileList"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),g.templateUrl?(e.openBlock(),e.createElementBlock("p",wt,[e.createElementVNode("a",{download:"Import_number-template.xlsx",href:g.templateUrl},e.toDisplayString(e.unref(r)("hbLibComp.HbImportFile.downloadTemplate")),9,xt)])):e.createCommentVNode("",!0)]),_:1},16,["title","visible","confirm-loading","width"]),e.renderSlot(y.$slots,"default",{},()=>[e.createVNode(_,{onClick:F,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-47fe70d9"]])),Bt=Object.freeze(Object.defineProperty({__proto__:null,HbLibImportFile:Nt},Symbol.toStringTag,{value:"Module"})),Tt={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:"复制成功"},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},Ft=R(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Tt,setup(o){const p=o,r=e.ref();e.watchEffect(()=>{r.value=p.data});const m=e.computed(()=>{if(p.cpText)return p.cpText;let f="";if(p.data)if(Array.isArray(p.data)){if(p.K&&p.V&&p.L){const a=p.data.find(s=>s?.[p.K]===p.V);f=a?a[p.L]:""}}else p.K&&(f=p.data[p.K]);return f}),g=()=>{navigator.clipboard.writeText(m.value).then(()=>{S.message.success(p.copySuccessTip)}).catch(()=>{S.message.error("复制失败")})};return(f,a)=>{const s=e.resolveComponent("a-tooltip");return m.value?(e.openBlock(),e.createBlock(s,{key:0,title:f.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",f.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...f.cpStyle}),onClick:e.withModifiers(g,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d5ca4420"]])),Vt={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:""}},$t=R(U(e.defineComponent({name:"HbDrag",__name:"index",props:Vt,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(o,{emit:p}){const r=o,m=e.shallowRef([]);e.watch(()=>r.dragList,C=>{m.value=C},{deep:!0,immediate:!0});const g=oe("drag"),f=p,a=C=>{console.log("drag start",C),f("handleDragStart",C)},s=C=>{console.log("drag end",C),f("handleDragEnd",C)},h=C=>{console.log("drag add",C),f("handleDragAdd",C)},t=C=>{console.log("drag remove",C),f("handleDragRemove",C)};return(C,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(g).b())},[C.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(X),e.mergeProps({key:0,modelValue:m.value,"onUpdate:modelValue":F[0]||(F[0]=y=>m.value=y),"item-key":"key",class:{[C.dragClass]:C.dragClass}},C.$attrs,{"ghost-class":C.ghostClass,onStart:a,onEnd:s,onAdd:h,onRemove:t}),{item:e.withCtx(({element:y})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(X),e.mergeProps({key:1,modelValue:m.value,"onUpdate:modelValue":F[1]||(F[1]=y=>m.value=y),"item-key":"id",class:{[C.dragClass]:C.dragClass}},C.$attrs,{"ghost-class":C.ghostClass,onStart:a,onEnd:s,onAdd:h,onRemove:t}),{item:e.withCtx(({element:y})=>[e.createElementVNode("div",null,[e.renderSlot(C.$slots,"default",{item:y},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Et=Object.freeze(Object.defineProperty({__proto__:null,HbLibFuncCompCopy:Ft,HbLibFuncCompDrag:$t},Symbol.toStringTag,{value:"Module"})),Mt={class:"log_remark"},It=R(U(e.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},getLogData:{}},emits:["update:visible"],setup(o,{expose:p,emit:r}){const{t:m}=Y.useI18n(),g=o,f=[{title:m("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:m("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:m("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],a=e.computed(()=>g.columns||f),s=e.computed(()=>g.title||m("hbLibComp.HbLogModal.operateLogs")),h=e.ref(!1),t=e.reactive({list:[],pagination:{current:1,pageSize:20,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(l,u)=>u[0]+"-"+u[1]+" 总共"+l+"页",total:0}});e.watch(()=>g.pagination,l=>{l&&(t.pagination={...t.pagination,...l})},{deep:!0,immediate:!0});const C=(l=1)=>{const u={pageIndex:l,pageSize:t.pagination.pageSize,query:g.params};g.getLogData&&(h.value=!0,g.getLogData(u).then(_=>{Number(_.code)==200&&(t.pagination.current=l,t.pagination.total=Number(_.data.total),t.list=_.data.records||[])}).finally(()=>{h.value=!1}))},F=l=>{t.pagination.current=l.current,t.pagination.pageSize=l.pageSize,C()},y=()=>{t.list=[],x("update:visible",!1)},V=()=>{x("update:visible",!0)},N=(l,u="YYYY-MM-DD HH:mm:ss")=>l?v(l).format(u):"",x=r;return e.watch(()=>g.visible,l=>{l&&C()}),p({close:y,loading:h}),(l,u)=>{const _=e.resolveComponent("a-tooltip"),k=e.resolveComponent("HbLibCopy"),E=e.resolveComponent("a-table"),b=e.resolveComponent("a-button"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(c,{visible:o.visible,title:s.value,width:o.width,onCancel:y},{footer:e.withCtx(()=>[e.createVNode(b,{onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(E,{bordered:"",rowKey:"id",columns:a.value,dataSource:t.list,pagination:t.pagination,loading:h.value,onChange:F},{bodyCell:e.withCtx(({column:d,record:n})=>[d&&d.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d.needTooltip?(e.openBlock(),e.createBlock(_,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n[d.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n[d.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),d&&d.needCopy?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Mt,e.toDisplayString(n[d.dataIndex]),1),e.createVNode(k,{"cp-text":n[d.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):e.createCommentVNode("",!0),d&&d.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(N(n[d.dataIndex],d.operateTime)),1)],64)):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","pagination","loading"])]),_:1},8,["visible","title","width"]),e.renderSlot(l.$slots,"default",{},()=>[e.createVNode(b,{onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.logBtnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-cee51270"]]));let se={...Ct,...yt,...Bt,...Object.freeze(Object.defineProperty({__proto__:null,HbLibLogModal:It},Symbol.toStringTag,{value:"Module"})),...Et};const Ht={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"},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"},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"}}},Dt={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:"表示される条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定"},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:"ファイルのアップロード"}}},At={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索"},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:"不能将列移动到固定列位置"},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:"文件上传"}}},zt={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"},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"},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"}}};var ee={exports:{}},Pt=ee.exports,ce;function Ot(){return ce||(ce=1,(function(o,p){(function(r,m){o.exports=m(v)})(Pt,(function(r){function m(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var g=m(r),f={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(a,s){return s==="W"?a+"周":a+"日"},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(a,s){var h=100*a+s;return h<600?"凌晨":h<900?"早上":h<1100?"上午":h<1300?"中午":h<1800?"下午":"晚上"}};return g.default.locale(f,null,!0),f}))})(ee)),ee.exports}Ot(),v.locale("zh-cn");const Rt={en_US:Ht,ja_JP:Dt,zh_CN:At,de_DE:zt},Ut=function(o){Object.keys(se).forEach(r=>{o.use(se[r])})};z.install=Ut,z.locales=Rt,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hb-hellotech/hb-ui",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "main": "dist/hb_component_lib.umd.cjs",
6
6
  "module": "dist/hb_component_lib.js",