@jt-home/mfe-components 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  require('./style.css');
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./index-Cp7s5Qwh.cjs"),e=require("vue"),W=require("element-plus/es"),Me=require("element-plus"),We=2,Bn=3;function $n(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function wt(t){if(!t.startsWith("on")||t.length<=We)return!1;const n=t.charCodeAt(We);return n<97||n>122}function Tn(t){if(t.startsWith("on-"))return t.slice(Bn);const[n,o]=t.slice(We).split(":"),r=$n(n);return o?`${r}:${o}`:r}function kt(t,n=new Set){return Object.fromEntries(Object.entries(t).filter(([o,r])=>!n.has(o)&&wt(o)&&typeof r=="function").map(([o,r])=>[Tn(o),r]))}function _t(t,n=new Set){return Object.fromEntries(Object.entries(t).filter(([o])=>!n.has(o)&&!wt(o)))}const En=e.defineComponent({name:"JtButton",__name:"index",props:{size:{},disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},dashed:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{}},setup(t){const n=t,o=e.useAttrs(),r=e.computed(()=>{const{icon:c,...l}=n;return{..._t(o),...l}}),a=e.computed(()=>kt(o));return(c,l)=>{const u=W.ElIcon,s=W.ElButton;return e.openBlock(),e.createBlock(s,e.mergeProps({class:"jt-button"},r.value,e.toHandlers(a.value)),{default:e.withCtx(()=>[c.$slots.icon?(e.openBlock(),e.createBlock(u,{key:0,class:"jt-button__icon"},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"icon",{},void 0,!0)]),_:3})):n.icon?(e.openBlock(),e.createBlock(u,{key:1,class:"jt-button__icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon)))]),_:1})):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16)}}}),se=(t,n)=>{const o=t.__vccOpts||t;for(const[r,a]of n)o[r]=a;return o},Te=se(En,[["__scopeId","data-v-28dbb12d"]]),Mn={options:()=>[],placeholder:G.t("common.请选择"),clearable:!0,persistent:!0};function dt(t){return Object.fromEntries(Object.entries(t).filter(([,n])=>n!==void 0))}function Dn(t){const n=dt(t);return n.props&&(n.props=dt(n.props)),n}const It=e.defineComponent({name:"JtCascader",__name:"index",props:e.mergeDefaults({size:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filterable:{type:Boolean},filterMethod:{type:Function},separator:{},showAllLevels:{type:Boolean},collapseTags:{type:Boolean},maxCollapseTags:{},collapseTagsTooltip:{type:Boolean},maxCollapseTagsTooltipHeight:{},debounce:{},beforeFilter:{type:Function},placement:{},fallbackPlacements:{},popperClass:{},popperStyle:{type:[Boolean,null,String,Object,Array]},teleported:{type:Boolean},effect:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},persistent:{type:Boolean},showCheckedStrategy:{},checkOnClickNode:{type:Boolean},showPrefix:{type:Boolean},fitInputWidth:{type:[Boolean,Number]},modelValue:{},props:{},virtualScroll:{type:Boolean},itemSize:{},height:{},emptyValues:{},valueOnClear:{type:[String,Number,Boolean,Function,null]},options:{}},Mn),emits:Me.cascaderEmits,setup(t,{emit:n}){const o=t,r=e.computed(()=>Dn(o)),a=e.ref(o.modelValue);e.watch(()=>o.modelValue,f=>{a.value=f},{deep:!0});const c=n;function l(f,...k){c(f,...k)}function u(f){a.value=f,l("update:modelValue",f)}function s(f){l("change",f)}function i(f){l("focus",f)}function S(f){l("blur",f)}function _(){l("clear")}function C(f){l("visibleChange",f)}function F(f){l("expandChange",f)}function P(f){l("removeTag",f)}return(f,k)=>{const T=W.ElCascader;return e.openBlock(),e.createBlock(T,e.mergeProps({class:"jt-cascader"},r.value,{"model-value":a.value,"onUpdate:modelValue":u,onChange:s,onFocus:i,onBlur:S,onClear:_,onVisibleChange:C,onExpandChange:F,onRemoveTag:P}),null,16,["model-value"])}}}),Vn=e.defineComponent({name:"JtDatePicker",__name:"index",props:{type:{default:"date"},showNow:{type:Boolean},showConfirm:{type:Boolean},showFooter:{type:Boolean},showWeekNumber:{type:Boolean},ariaLabel:{},emptyValues:{},valueOnClear:{},disabledDate:{},cellClassName:{},shortcuts:{},arrowControl:{type:Boolean},tabindex:{},validateEvent:{type:Boolean},unlinkPanels:{type:Boolean},singlePanel:{type:Boolean},placement:{},fallbackPlacements:{},disabledHours:{},disabledMinutes:{},disabledSeconds:{},automaticDropdown:{type:Boolean},id:{},name:{},popperClass:{},popperStyle:{},format:{},valueFormat:{default:"YYYY-MM-DD"},dateFormat:{},timeFormat:{},clearable:{type:Boolean,default:!0},clearIcon:{},editable:{type:Boolean},saveOnBlur:{type:Boolean},prefixIcon:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},placeholder:{default:G.t("common.请选择日期")},popperOptions:{},modelValue:{},rangeSeparator:{},startPlaceholder:{},endPlaceholder:{},defaultValue:{},defaultTime:{},isRange:{type:Boolean}},setup(t){const n=t,o=e.computed(()=>({...n,startPlaceholder:n.startPlaceholder??(r(n.type)?G.t("common.开始日期"):void 0),endPlaceholder:n.endPlaceholder??(r(n.type)?G.t("common.结束日期"):void 0)}));function r(a){return a?.includes("range")??!1}return(a,c)=>{const l=W.ElDatePicker;return e.openBlock(),e.createBlock(l,e.mergeProps({class:"jt-date-picker"},o.value,{"onUpdate:modelValue":c[0]||(c[0]=u=>a.$emit("update:modelValue",u))}),null,16)}}}),Ct=se(Vn,[["__scopeId","data-v-3ee50dbc"]]),Fn=e.defineComponent({name:"JtInput",__name:"index",props:{id:{},size:{},disabled:{type:Boolean},modelValue:{},modelModifiers:{},maxlength:{},minlength:{},type:{},resize:{},autosize:{type:[Object,Boolean]},autocomplete:{},formatter:{},parser:{},placeholder:{default:G.t("common.请输入")},form:{},readonly:{type:Boolean},clearable:{type:Boolean,default:!0},clearIcon:{},showPassword:{type:Boolean},showWordLimit:{type:Boolean},wordLimitPosition:{},suffixIcon:{},prefixIcon:{},containerRole:{},tabindex:{},validateEvent:{type:Boolean},inputStyle:{type:[Boolean,null,String,Object,Array]},autofocus:{type:Boolean},rows:{},ariaLabel:{},inputmode:{},name:{},countGraphemes:{}},emits:{...Me.inputEmits,enter:()=>!0},setup(t,{emit:n}){const o=t,r=n,a=e.computed(()=>Object.fromEntries(Object.keys(Me.inputEmits).map(c=>[c,(...l)=>r(c,...l)])));return(c,l)=>{const u=W.ElInput;return e.openBlock(),e.createBlock(u,e.mergeProps({class:"jt-input"},o,e.toHandlers(a.value),{onKeyup:l[0]||(l[0]=e.withKeys(s=>r("enter"),["enter"]))}),null,16)}}}),Le=se(Fn,[["__scopeId","data-v-10ac743d"]]),On=e.defineComponent({name:"JtSelect",__name:"index",props:{options:{},ariaLabel:{},emptyValues:{},valueOnClear:{},name:{},id:{},modelValue:{},autocomplete:{},automaticDropdown:{type:Boolean},size:{},effect:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean},loading:{type:Boolean},popperClass:{},popperStyle:{},popperOptions:{},remote:{type:Boolean},debounce:{},loadingText:{},noMatchText:{},noDataText:{},remoteMethod:{},filterMethod:{},multiple:{type:Boolean},multipleLimit:{},placeholder:{default:G.t("common.请选择")},defaultFirstOption:{type:Boolean},reserveKeyword:{type:Boolean},valueKey:{},collapseTags:{type:Boolean},collapseTagsTooltip:{type:Boolean},tagTooltip:{},maxCollapseTags:{},teleported:{type:Boolean},persistent:{type:Boolean},clearIcon:{},fitInputWidth:{type:Boolean},suffixIcon:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},remoteShowSuffix:{type:Boolean},showArrow:{type:Boolean},offset:{},placement:{},fallbackPlacements:{},tabindex:{},appendTo:{},props:{}},emits:Me.selectEmits,setup(t,{emit:n}){const o=t,r=e.computed(()=>{const{options:l,...u}=o;return u}),a=n,c=e.computed(()=>Object.fromEntries(Object.keys(Me.selectEmits).map(l=>[l,(...u)=>a(l,...u)])));return(l,u)=>{const s=W.ElOption,i=W.ElSelect;return e.openBlock(),e.createBlock(i,e.mergeProps({class:"jt-select"},r.value,e.toHandlers(c.value)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options??[],S=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:S.value,ref_for:!0},S),null,16))),128))]),_:1},16)}}}),Bt=se(On,[["__scopeId","data-v-8e1bf362"]]),Pn={class:"jt-form-items"},He=4,Nn=e.defineComponent({name:"JTFormItems",__name:"JtFormItems",props:{configs:{},formData:{},span:{}},setup(t){const n=t,o={input:Le,select:Bt,cascader:It,"date-picker":Ct},r={"remote-select":"select",date:"date-picker",daterange:"date-picker","date-range":"date-picker",dateRange:"date-picker"},a=new Set(["prop","label","itemType","span","options","rules","formItemProps","showSlot","show"]),c=Object.keys(o),l=new Map,u=e.computed(()=>n.configs.filter(v=>v.show!==!1)),s=v=>{const{itemType:h}=v;if(!h)return Le;if(typeof h!="string")return h;const E=r[h]??h;return c.includes(E)?o[E]:(console.error(`[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${c.join(", ")}`),Le)},i=v=>{const h=_t(v,a);return v.itemType==="select"||v.itemType==="remote-select"||v.itemType==="cascader"?{...h,options:v.options}:R(v.itemType)?{...h,type:"daterange"}:h},S=v=>kt(v,a),_=v=>({rules:v.rules,...v.formItemProps}),C=(v,h)=>{n.formData[v]=h};function F(v){return h=>{if(h){l.set(v,h);return}l.delete(v)}}function P(v,h){e.nextTick(()=>{l.get(v)?.validate(h).catch(()=>{})})}const f=v=>Math.min(Math.max(Math.trunc(v||1),1),4),k=e.computed(()=>{const h=u.value.reduce((E,y)=>E+f(n.span||y.span),0)%He;return h===0?{gridColumn:`1 / span ${He}`}:{gridColumn:`${h+1} / span ${He-h}`}}),T=v=>({gridColumn:`span ${f(n.span||v.span)}`});function R(v){return v==="daterange"||v==="date-range"||v==="dateRange"}return(v,h)=>{const E=W.ElFormItem;return e.openBlock(),e.createElementBlock("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,y=>(e.openBlock(),e.createBlock(E,e.mergeProps({key:y.prop,ref_for:!0,ref:F(y.prop),class:"jt-form-items__item",style:T(y),label:y.label,prop:y.prop},_(y)),{default:e.withCtx(()=>[y.showSlot?e.renderSlot(v.$slots,y.prop,{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(y)),e.mergeProps({key:1,"model-value":v.formData[y.prop],ref_for:!0},i(y),e.toHandlers(S(y)),{"onUpdate:modelValue":L=>C(y.prop,L),onChange:()=>P(y.prop,"change"),onBlur:()=>P(y.prop,"blur")}),null,16,["model-value","onUpdate:modelValue","onChange","onBlur"]))]),_:2},1040,["style","label","prop"]))),128)),v.$slots.actions?(e.openBlock(),e.createBlock(E,{key:0,class:"jt-form-items__actions",style:e.normalizeStyle(k.value)},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"actions",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0)])}}}),$t=se(Nn,[["__scopeId","data-v-d2355a20"]]);function Ln(){const t=e.ref(!1);function n(){t.value=!0}function o(){t.value=!1}return{searchDisabled:t,searchLoading:n,searchDone:o}}const xn="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e",Rn="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e",zn="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e",An={class:"jt-filter-bar__btns"},jn=["src"],Gn=["src"],qn=["src"],Kn=e.defineComponent({name:"JtFilterBar",__name:"JtFilterBar",props:{columns:{},option:{default:()=>({})},modelValue:{}},emits:["update:modelValue","search","reset"],setup(t,{expose:n,emit:o}){const r=t,a=o,c=e.ref(),l=e.useSlots(),u=e.ref({}),{searchDisabled:s,searchLoading:i,searchDone:S}=Ln(),_=e.computed(()=>r.option),C=e.ref(_.value.searchCollapsed??!0),F=e.computed(()=>r.columns.filter(O=>O.search===!0)),P=e.computed(()=>Math.max(1,_.value.searchSpan??4)),f=e.computed(()=>Math.max(1,_.value.searchCollapsedRows??1)),k=e.computed(()=>P.value),T=e.computed(()=>Math.max(1,k.value*f.value)),R=e.computed(()=>P.value),v=e.computed(()=>D.value?"264px":"174px"),h=e.computed(()=>q(_.value.searchLabelWidth??84)),E=e.computed(()=>_.value.searchLabelPosition??"top"),y=e.computed(()=>z(_.value.searchGutter,16)),L=e.computed(()=>z(_.value.searchRowGap,10)),w=e.computed(()=>U(_.value.searchPadding??"18px 4px 0")),D=e.computed(()=>_.value.searchCollapse===!1?!1:j(F.value)>T.value),$=e.computed(()=>{if(!D.value||!C.value)return F.value;let O=0;return F.value.filter(H=>{const oe=N(H);return O+oe>T.value?!1:(O+=oe,!0)})}),A=e.computed(()=>$.value.filter(O=>!!l[`${O.prop}-search`])),Z=e.computed(()=>{const O=j($.value);return $.value.length>0&&$.value.length<=2&&O<P.value}),X=e.computed(()=>{const O=j($.value);return`${Math.min(P.value,O+1)}`}),x=e.computed(()=>$.value.map(O=>b(O)));e.watch(()=>_.value.searchCollapsed,O=>{typeof O=="boolean"&&(C.value=O)}),e.watch(()=>r.modelValue,O=>{u.value={...O}},{deep:!0,immediate:!0});function M(O,H){if(s.value)return;const oe={...u.value,[O]:H};u.value=oe,a("update:modelValue",oe)}function b(O){const H=O.searchProps??{},oe=O.searchType??"input";return{...H,prop:O.prop,label:O.searchLabel??O.label,span:N(O),itemType:oe,showSlot:!!l[`${O.prop}-search`],options:H.options??O.searchOptions??O.dicData,placeholder:H.placeholder??O.searchPlaceholder,valueFormat:H.valueFormat??O.searchValueFormat,disabled:s.value||H.disabled===!0,formItemProps:{required:O.searchRequired,class:["jt-filter-bar__item",{"is-required":O.searchRequired}]},onEnter:(...ne)=>{d(H.onEnter,...ne),g()},"onUpdate:modelValue":ne=>{d(H["onUpdate:modelValue"],ne),M(O.prop,ne)}}}function d(O,...H){if(Array.isArray(O)){O.forEach(oe=>d(oe,...H));return}typeof O=="function"&&O(...H)}async function g(){if(!s.value){if(c.value)try{await c.value.validate()}catch{return}a("search")}}function I(){s.value||a("reset")}function V(){C.value=!C.value}function N(O){return Math.min(P.value,Math.max(1,O.searchSpan??1))}function j(O){return O.reduce((H,oe)=>H+N(oe),0)}function q(O){return typeof O=="number"?`${O}px`:O}function z(O,H){return typeof O=="number"?O:H}function U(O){return typeof O=="number"?`${O}px`:O}return n({formRef:c,searchDisabled:s,searchLoading:i,searchDone:S}),(O,H)=>{const oe=W.ElForm;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-filter-bar",[`is-label-${E.value}`,{"is-single-filter":Z.value}]]),style:e.normalizeStyle({"--jt-filter-columns":P.value,"--jt-filter-field-columns":R.value,"--jt-filter-btns-width":v.value,"--jt-filter-actions-start":X.value,"--jt-filter-label-width":h.value,"--jt-filter-column-gap":`${y.value}px`,"--jt-filter-row-gap":`${L.value}px`,"--jt-filter-padding":w.value})},[e.createVNode(oe,{ref_key:"formRef",ref:c,class:"jt-filter-bar__form",model:u.value,"label-position":E.value,"label-width":h.value,disabled:e.unref(s),onSubmit:H[0]||(H[0]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createVNode(e.unref($t),{configs:x.value,"form-data":u.value,style:{"--jt-form-label-gap":"6px","--jt-form-column-gap":"16px","--jt-form-row-gap":"10px"}},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",An,[e.renderSlot(O.$slots,"search-menu",{search:g,reset:I,disabled:e.unref(s),collapsed:C.value,toggleCollapse:V},()=>[D.value?(e.openBlock(),e.createBlock(e.unref(Te),{key:0,class:"jt-filter-bar__btn-collapse",size:"small",onClick:V},{icon:e.withCtx(()=>[e.createElementVNode("img",{class:e.normalizeClass(["jt-filter-bar__icon-arrow",{"is-collapsed":C.value}]),src:e.unref(xn),alt:""},null,10,jn)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(C.value?e.unref(G.t)("common.展开"):e.unref(G.t)("common.收起")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(Te),{class:"jt-filter-bar__btn-reset",size:"small",disabled:e.unref(s),onClick:I},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(Rn),alt:""},null,8,Gn)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(_.value.resetBtnText??e.unref(G.t)("common.重置")),1)]),_:1},8,["disabled"]),e.createVNode(e.unref(Te),{class:"jt-filter-bar__btn-query",type:"primary",size:"small",disabled:e.unref(s),onClick:g},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(zn),alt:""},null,8,qn)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(_.value.searchBtnText??e.unref(G.t)("common.查询")),1)]),_:1},8,["disabled"])],!0)])]),_:2},[e.renderList(A.value,ne=>({name:ne.prop,fn:e.withCtx(()=>[e.renderSlot(O.$slots,`${ne.prop}-search`,{value:u.value[ne.prop],column:ne,setValue:re=>M(ne.prop,re),search:g,reset:I,disabled:e.unref(s)},void 0,!0)])}))]),1032,["configs","form-data"])]),_:3},8,["model","label-position","label-width","disabled"])],6)}}}),Tt=se(Kn,[["__scopeId","data-v-fba58b18"]]),Yn={key:1},Un={key:2},Hn={key:3},Jn=e.defineComponent({name:"JtTable",__name:"JtTable",props:{data:{},columns:{},option:{},tableEvents:{}},setup(t,{expose:n}){const o=t,r=e.useSlots(),a=e.ref(),c=e.computed(()=>o.option??{}),l=e.computed(()=>o.columns.filter(f=>!f.hide)),u=e.computed(()=>c.value.menuFixed??"right");function s(f){return!!r[`${f}-header`]}function i(f){return!!r[`${f}-data`]}function S(f){return{width:f.width,minWidth:f.minWidth,align:f.align||"center",fixed:f.fixed,sortable:f.sortable,showOverflowTooltip:f.showOverflowTooltip??_(f),...f.columnOptions}}function _(f){return!i(f.prop)&&!F(f.columnOptions?.type)}function C(f){return!F(f.columnOptions?.type)}function F(f){return f==="selection"||f==="index"||f==="expand"}function P(f,k){return f.find(T=>T.value===k)?.label??String(k??"")}return n({tableRef:a}),(f,k)=>{const T=W.ElTableColumn,R=W.ElTable;return e.openBlock(),e.createBlock(R,e.mergeProps({ref_key:"tableRef",ref:a,data:f.data,"row-key":c.value.rowKey??"id","empty-text":c.value.emptyText,class:"jt-table"},c.value.tableProps,e.toHandlers(f.tableEvents)),{default:e.withCtx(()=>[c.value.selection?(e.openBlock(),e.createBlock(T,{key:0,type:"selection",width:"55",align:"center"})):e.createCommentVNode("",!0),c.value.index?(e.openBlock(),e.createBlock(T,{key:1,type:"index",label:c.value.indexLabel??e.unref(G.t)("common.序号"),width:"60",align:"center"},null,8,["label"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,v=>(e.openBlock(),e.createBlock(T,e.mergeProps({key:v.prop,prop:v.prop,label:v.label,formatter:!i(v.prop)&&!v.dicData?v.formatter:void 0,ref_for:!0},S(v)),e.createSlots({_:2},[s(v.prop)?{name:"header",fn:e.withCtx(h=>[e.renderSlot(f.$slots,`${v.prop}-header`,e.mergeProps({ref_for:!0},h),void 0,!0)]),key:"0"}:void 0,C(v)?{name:"default",fn:e.withCtx(h=>[i(v.prop)?e.renderSlot(f.$slots,`${v.prop}-data`,e.mergeProps({key:0,ref_for:!0},h),void 0,!0):v.dicData?(e.openBlock(),e.createElementBlock("span",Yn,e.toDisplayString(P(v.dicData,h.row[v.prop])),1)):v.formatter?(e.openBlock(),e.createElementBlock("span",Un,e.toDisplayString(v.formatter(h.row,h.column,h.row[v.prop],h.$index)),1)):(e.openBlock(),e.createElementBlock("span",Hn,e.toDisplayString(h.row[v.prop]),1))]),key:"1"}:void 0]),1040,["prop","label","formatter"]))),128)),c.value.menu?(e.openBlock(),e.createBlock(T,{key:2,label:c.value.menuLabel??e.unref(G.t)("common.操作"),width:c.value.menuWidth,"min-width":c.value.menuMinWidth,align:c.value.menuAlign??"center",fixed:u.value},{default:e.withCtx(v=>[e.renderSlot(f.$slots,"menu",e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)]),_:3},8,["label","width","min-width","align","fixed"])):e.createCommentVNode("",!0)]),_:3},16,["data","row-key","empty-text"])}}}),Et=se(Jn,[["__scopeId","data-v-b3cdd414"]]),Wn={class:"jt-pagination"},Zn={class:"jt-pagination__count"},Qn=e.defineComponent({name:"JtPagination",__name:"JtPagination",props:{currentPage:{},pageSize:{},total:{},option:{}},emits:["update:currentPage","update:pageSize","current-change","page-change","size-change"],setup(t,{emit:n}){const o=t,r=e.computed(()=>o.option??{}),a=n;function c(l){a("current-change",l),a("page-change",l)}return(l,u)=>{const s=W.ElPagination;return e.openBlock(),e.createElementBlock("div",Wn,[e.createVNode(s,{"current-page":l.currentPage,"page-size":l.pageSize,"page-sizes":r.value.pageSizes??[10,20,50,100],total:l.total,layout:r.value.paginationLayout??"sizes, prev, pager, next, jumper","onUpdate:currentPage":u[0]||(u[0]=i=>l.$emit("update:currentPage",i)),"onUpdate:pageSize":u[1]||(u[1]=i=>l.$emit("update:pageSize",i)),onCurrentChange:c,onSizeChange:u[2]||(u[2]=i=>l.$emit("size-change",i))},null,8,["current-page","page-size","page-sizes","total","layout"]),e.createElementVNode("span",Zn,e.toDisplayString(e.unref(G.t)("common.共"))+e.toDisplayString(l.total)+e.toDisplayString(e.unref(G.t)("common.条记录")),1)])}}}),Mt=se(Qn,[["__scopeId","data-v-8f04a5d2"]]),Xn={class:"jt-crud-table"},eo={class:"filter-bar-box"},to={class:"jt-crud-table__result"},no={class:"jt-crud-table__table-group"},oo={key:0,class:"jt-crud-table__toolbar"},ro=e.defineComponent({name:"JtCrudTable",__name:"JtCrudTable",props:e.mergeModels({columns:{},option:{default:()=>({})},data:{},total:{default:0},tableEvents:{}},{currentPage:{default:1},currentPageModifiers:{},pageSize:{default:20},pageSizeModifiers:{},searchModel:{default:()=>({})},searchModelModifiers:{}}),emits:e.mergeModels(["search","reset","page-change","size-change"],["update:currentPage","update:pageSize","update:searchModel"]),setup(t,{expose:n,emit:o}){const r=t,a=o,c=e.useModel(t,"currentPage"),l=e.useModel(t,"pageSize"),u=e.useModel(t,"searchModel"),s=e.useSlots(),i=e.ref(),S=e.ref(),_=e.computed(()=>r.option),C=e.computed(()=>_.value.searchShow!==!1),F=e.computed(()=>_.value.paginationShow!==!1),P=e.computed(()=>r.columns.filter(y=>y.search&&!!s[`${y.prop}-search`])),f=e.computed(()=>r.columns.filter(y=>!y.hide&&!!s[`${y.prop}-header`])),k=e.computed(()=>r.columns.filter(y=>!y.hide&&!!s[`${y.prop}-data`]));function T(){const y={};return r.columns.forEach(L=>{L.search&&(y[L.prop]=void 0)}),y}function R(){a("search",{...u.value})}function v(){u.value=T(),a("reset")}function h(){S.value?.searchLoading()}function E(){S.value?.searchDone()}return n({tableRef:e.computed(()=>i.value?.tableRef),filterBarRef:S,searchLoading:h,searchDone:E}),(y,L)=>{const w=W.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",Xn,[e.renderSlot(y.$slots,"header",{},void 0,!0),e.createElementVNode("div",eo,[C.value?(e.openBlock(),e.createBlock(Tt,{key:0,ref_key:"filterBarRef",ref:S,modelValue:u.value,"onUpdate:modelValue":L[0]||(L[0]=D=>u.value=D),columns:y.columns,option:_.value,onSearch:R,onReset:v},e.createSlots({_:2},[e.renderList(P.value,D=>({name:`${D.prop}-search`,fn:e.withCtx($=>[e.renderSlot(y.$slots,`${D.prop}-search`,e.normalizeProps(e.guardReactiveProps($)),void 0,!0)])}))]),1032,["modelValue","columns","option"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",to,[e.createElementVNode("div",no,[e.unref(s).toolbar?(e.openBlock(),e.createElementBlock("div",oo,[e.renderSlot(y.$slots,"toolbar",{},void 0,!0)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(Et,{ref_key:"jtTableRef",ref:i,data:y.data,columns:y.columns,option:_.value,"table-events":y.tableEvents},e.createSlots({_:2},[e.renderList(f.value,D=>({name:`${D.prop}-header`,fn:e.withCtx($=>[e.renderSlot(y.$slots,`${D.prop}-header`,e.normalizeProps(e.guardReactiveProps($)),void 0,!0)])})),e.renderList(k.value,D=>({name:`${D.prop}-data`,fn:e.withCtx($=>[e.renderSlot(y.$slots,`${D.prop}-data`,e.normalizeProps(e.guardReactiveProps($)),void 0,!0)])})),_.value.menu?{name:"menu",fn:e.withCtx(D=>[e.renderSlot(y.$slots,"menu",e.normalizeProps(e.guardReactiveProps(D)),void 0,!0)]),key:"0"}:void 0]),1032,["data","columns","option","table-events"])),[[w,_.value.loading]])]),F.value?(e.openBlock(),e.createBlock(Mt,{key:0,"current-page":c.value,"onUpdate:currentPage":L[1]||(L[1]=D=>c.value=D),"page-size":l.value,"onUpdate:pageSize":L[2]||(L[2]=D=>l.value=D),total:y.total,option:_.value,onPageChange:L[3]||(L[3]=D=>y.$emit("page-change",D)),onSizeChange:L[4]||(L[4]=D=>y.$emit("size-change",D))},null,8,["current-page","page-size","total","option"])):e.createCommentVNode("",!0)])])}}}),ao=se(ro,[["__scopeId","data-v-3454628a"]]),lo={class:"jt-page-header__title"},so={key:0},io={key:0,class:"jt-page-header__operates"},co=e.defineComponent({name:"JtPageHeader",__name:"index",props:{type:{default:"section"},title:{},operates:{default:()=>[]}},emits:["operate-click"],setup(t,{emit:n}){const o=t,r=n,a=e.useSlots(),c=e.computed(()=>o.operates.length>0||!!a.operates);function l(u,s){u.onClick?.(u,s),r("operate-click",u,s)}return(u,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["jt-page-header",`jt-page-header--${u.type}`]},u.$attrs),[e.createElementVNode("div",lo,[e.renderSlot(u.$slots,"title",{},()=>[u.title?(e.openBlock(),e.createElementBlock("span",so,e.toDisplayString(u.title),1)):e.createCommentVNode("",!0)],!0)]),c.value?(e.openBlock(),e.createElementBlock("div",io,[e.renderSlot(u.$slots,"operates",{operates:u.operates},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.operates,i=>(e.openBlock(),e.createBlock(e.unref(Te),e.mergeProps({key:i.key??i.label,ref_for:!0},i.buttonProps,{type:i.type,disabled:i.disabled,loading:i.loading,plain:i.plain,text:i.text,link:i.link,icon:i.icon,onClick:S=>l(i,S)}),{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(i.label),1)]),_:2},1040,["type","disabled","loading","plain","text","link","icon","onClick"]))),128))],!0)])):e.createCommentVNode("",!0)],16))}}),uo=se(co,[["__scopeId","data-v-bbbd4ec6"]]);function fo(t,n){n=n||(()=>"default-use-once-sync");const o=new Map;async function r(...a){const c=n(...a);if(o.get(c))return o.get(c);try{const l=t(...a).then(u=>u).catch(u=>{throw u});return o.set(c,l),l}catch(l){throw o.set(c,null),l}}return r.bind(t)}function Dt(t,n){n=n||(()=>"default-use-queue-sync");const o=new Map;async function r(...a){const c=n(...a),l=Symbol("single");return o.set(c,l),new Promise((u,s)=>{t(...a).then(i=>{o.get(c)===l&&u(i)}).catch(i=>{o.get(c)===l&&s(i)})})}return r.bind(t)}var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vt={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o=1e3,r=6e4,a=36e5,c="millisecond",l="second",u="minute",s="hour",i="day",S="week",_="month",C="quarter",F="year",P="date",f="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var M=["th","st","nd","rd"],b=x%100;return"["+x+(M[(b-20)%10]||M[b]||M[0])+"]"}},v=function(x,M,b){var d=String(x);return!d||d.length>=M?x:""+Array(M+1-d.length).join(b)+x},h={s:v,z:function(x){var M=-x.utcOffset(),b=Math.abs(M),d=Math.floor(b/60),g=b%60;return(M<=0?"+":"-")+v(d,2,"0")+":"+v(g,2,"0")},m:function x(M,b){if(M.date()<b.date())return-x(b,M);var d=12*(b.year()-M.year())+(b.month()-M.month()),g=M.clone().add(d,_),I=b-g<0,V=M.clone().add(d+(I?-1:1),_);return+(-(d+(b-g)/(I?g-V:V-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:_,y:F,w:S,d:i,D:P,h:s,m:u,s:l,ms:c,Q:C}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},E="en",y={};y[E]=R;var L="$isDayjsObject",w=function(x){return x instanceof Z||!(!x||!x[L])},D=function x(M,b,d){var g;if(!M)return E;if(typeof M=="string"){var I=M.toLowerCase();y[I]&&(g=I),b&&(y[I]=b,g=I);var V=M.split("-");if(!g&&V.length>1)return x(V[0])}else{var N=M.name;y[N]=M,g=N}return!d&&g&&(E=g),g||!d&&E},$=function(x,M){if(w(x))return x.clone();var b=typeof M=="object"?M:{};return b.date=x,b.args=arguments,new Z(b)},A=h;A.l=D,A.i=w,A.w=function(x,M){return $(x,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Z=function(){function x(b){this.$L=D(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[L]=!0}var M=x.prototype;return M.parse=function(b){this.$d=function(d){var g=d.date,I=d.utc;if(g===null)return new Date(NaN);if(A.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var V=g.match(k);if(V){var N=V[2]-1||0,j=(V[7]||"0").substring(0,3);return I?new Date(Date.UTC(V[1],N,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],N,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(g)}(b),this.init()},M.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},M.$utils=function(){return A},M.isValid=function(){return this.$d.toString()!==f},M.isSame=function(b,d){var g=$(b);return this.startOf(d)<=g&&g<=this.endOf(d)},M.isAfter=function(b,d){return $(b)<this.startOf(d)},M.isBefore=function(b,d){return this.endOf(d)<$(b)},M.$g=function(b,d,g){return A.u(b)?this[d]:this.set(g,b)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(b,d){var g=this,I=!!A.u(d)||d,V=A.p(b),N=function(ne,re){var ce=A.w(g.$u?Date.UTC(g.$y,re,ne):new Date(g.$y,re,ne),g);return I?ce:ce.endOf(i)},j=function(ne,re){return A.w(g.toDate()[ne].apply(g.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(re)),g)},q=this.$W,z=this.$M,U=this.$D,O="set"+(this.$u?"UTC":"");switch(V){case F:return I?N(1,0):N(31,11);case _:return I?N(1,z):N(0,z+1);case S:var H=this.$locale().weekStart||0,oe=(q<H?q+7:q)-H;return N(I?U-oe:U+(6-oe),z);case i:case P:return j(O+"Hours",0);case s:return j(O+"Minutes",1);case u:return j(O+"Seconds",2);case l:return j(O+"Milliseconds",3);default:return this.clone()}},M.endOf=function(b){return this.startOf(b,!1)},M.$set=function(b,d){var g,I=A.p(b),V="set"+(this.$u?"UTC":""),N=(g={},g[i]=V+"Date",g[P]=V+"Date",g[_]=V+"Month",g[F]=V+"FullYear",g[s]=V+"Hours",g[u]=V+"Minutes",g[l]=V+"Seconds",g[c]=V+"Milliseconds",g)[I],j=I===i?this.$D+(d-this.$W):d;if(I===_||I===F){var q=this.clone().set(P,1);q.$d[N](j),q.init(),this.$d=q.set(P,Math.min(this.$D,q.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},M.set=function(b,d){return this.clone().$set(b,d)},M.get=function(b){return this[A.p(b)]()},M.add=function(b,d){var g,I=this;b=Number(b);var V=A.p(d),N=function(z){var U=$(I);return A.w(U.date(U.date()+Math.round(z*b)),I)};if(V===_)return this.set(_,this.$M+b);if(V===F)return this.set(F,this.$y+b);if(V===i)return N(1);if(V===S)return N(7);var j=(g={},g[u]=r,g[s]=a,g[l]=o,g)[V]||1,q=this.$d.getTime()+b*j;return A.w(q,this)},M.subtract=function(b,d){return this.add(-1*b,d)},M.format=function(b){var d=this,g=this.$locale();if(!this.isValid())return g.invalidDate||f;var I=b||"YYYY-MM-DDTHH:mm:ssZ",V=A.z(this),N=this.$H,j=this.$m,q=this.$M,z=g.weekdays,U=g.months,O=g.meridiem,H=function(re,ce,he,ue){return re&&(re[ce]||re(d,I))||he[ce].slice(0,ue)},oe=function(re){return A.s(N%12||12,re,"0")},ne=O||function(re,ce,he){var ue=re<12?"AM":"PM";return he?ue.toLowerCase():ue};return I.replace(T,function(re,ce){return ce||function(he){switch(he){case"YY":return String(d.$y).slice(-2);case"YYYY":return A.s(d.$y,4,"0");case"M":return q+1;case"MM":return A.s(q+1,2,"0");case"MMM":return H(g.monthsShort,q,U,3);case"MMMM":return H(U,q);case"D":return d.$D;case"DD":return A.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return H(g.weekdaysMin,d.$W,z,2);case"ddd":return H(g.weekdaysShort,d.$W,z,3);case"dddd":return z[d.$W];case"H":return String(N);case"HH":return A.s(N,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ne(N,j,!0);case"A":return ne(N,j,!1);case"m":return String(j);case"mm":return A.s(j,2,"0");case"s":return String(d.$s);case"ss":return A.s(d.$s,2,"0");case"SSS":return A.s(d.$ms,3,"0");case"Z":return V}return null}(re)||V.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(b,d,g){var I,V=this,N=A.p(d),j=$(b),q=(j.utcOffset()-this.utcOffset())*r,z=this-j,U=function(){return A.m(V,j)};switch(N){case F:I=U()/12;break;case _:I=U();break;case C:I=U()/3;break;case S:I=(z-q)/6048e5;break;case i:I=(z-q)/864e5;break;case s:I=z/a;break;case u:I=z/r;break;case l:I=z/o;break;default:I=z}return g?I:A.a(I)},M.daysInMonth=function(){return this.endOf(_).$D},M.$locale=function(){return y[this.$L]},M.locale=function(b,d){if(!b)return this.$L;var g=this.clone(),I=D(b,d,!0);return I&&(g.$L=I),g},M.clone=function(){return A.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},x}(),X=Z.prototype;return $.prototype=X,[["$ms",c],["$s",l],["$m",u],["$H",s],["$W",i],["$M",_],["$y",F],["$D",P]].forEach(function(x){X[x[1]]=function(M){return this.$g(M,x[0],x[1])}}),$.extend=function(x,M){return x.$i||(x(M,Z,$),x.$i=!0),$},$.locale=D,$.isDayjs=w,$.unix=function(x){return $(1e3*x)},$.en=y[E],$.Ls=y,$.p={},$})})(Vt);var po=Vt.exports;const nt=je(po);var Ft={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,c=/\d\d/,l=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},i=function(k){return(k=+k)+(k>68?1900:2e3)},S=function(k){return function(T){this[k]=+T}},_=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(T){if(!T||T==="Z")return 0;var R=T.match(/([+-]|\d\d)/g),v=60*R[1]+(+R[2]||0);return v===0?0:R[0]==="+"?-v:v}(k)}],C=function(k){var T=s[k];return T&&(T.indexOf?T:T.s.concat(T.f))},F=function(k,T){var R,v=s.meridiem;if(v){for(var h=1;h<=24;h+=1)if(k.indexOf(v(h,0,T))>-1){R=h>12;break}}else R=k===(T?"pm":"PM");return R},P={A:[u,function(k){this.afternoon=F(k,!1)}],a:[u,function(k){this.afternoon=F(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[c,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[l,S("seconds")],ss:[l,S("seconds")],m:[l,S("minutes")],mm:[l,S("minutes")],H:[l,S("hours")],h:[l,S("hours")],HH:[l,S("hours")],hh:[l,S("hours")],D:[l,S("day")],DD:[c,S("day")],Do:[u,function(k){var T=s.ordinal,R=k.match(/\d+/);if(this.day=R[0],T)for(var v=1;v<=31;v+=1)T(v).replace(/\[|\]/g,"")===k&&(this.day=v)}],w:[l,S("week")],ww:[c,S("week")],M:[l,S("month")],MM:[c,S("month")],MMM:[u,function(k){var T=C("months"),R=(C("monthsShort")||T.map(function(v){return v.slice(0,3)})).indexOf(k)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(k){var T=C("months").indexOf(k)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,S("year")],YY:[c,function(k){this.year=i(k)}],YYYY:[/\d{4}/,S("year")],Z:_,ZZ:_};function f(k){var T,R;T=k,R=s&&s.formats;for(var v=(k=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,A,Z){var X=Z&&Z.toUpperCase();return A||R[Z]||o[Z]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,M,b){return M||b.slice(1)})})).match(r),h=v.length,E=0;E<h;E+=1){var y=v[E],L=P[y],w=L&&L[0],D=L&&L[1];v[E]=D?{regex:w,parser:D}:y.replace(/^\[|\]$/g,"")}return function($){for(var A={},Z=0,X=0;Z<h;Z+=1){var x=v[Z];if(typeof x=="string")X+=x.length;else{var M=x.regex,b=x.parser,d=$.slice(X),g=M.exec(d)[0];b.call(A,g),$=$.replace(g,"")}}return function(I){var V=I.afternoon;if(V!==void 0){var N=I.hours;V?N<12&&(I.hours+=12):N===12&&(I.hours=0),delete I.afternoon}}(A),A}}return function(k,T,R){R.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(i=k.parseTwoDigitYear);var v=T.prototype,h=v.parse;v.parse=function(E){var y=E.date,L=E.utc,w=E.args;this.$u=L;var D=w[1];if(typeof D=="string"){var $=w[2]===!0,A=w[3]===!0,Z=$||A,X=w[2];A&&(X=w[2]),s=this.$locale(),!$&&X&&(s=R.Ls[X]),this.$d=function(d,g,I,V){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1e3:1)*d);var N=f(g)(d),j=N.year,q=N.month,z=N.day,U=N.hours,O=N.minutes,H=N.seconds,oe=N.milliseconds,ne=N.zone,re=N.week,ce=new Date,he=z||(j||q?1:ce.getDate()),ue=j||ce.getFullYear(),ke=0;j&&!q||(ke=q>0?q-1:ce.getMonth());var _e,Pe=U||0,Ie=O||0,m=H||0,p=oe||0;return ne?new Date(Date.UTC(ue,ke,he,Pe,Ie,m,p+60*ne.offset*1e3)):I?new Date(Date.UTC(ue,ke,he,Pe,Ie,m,p)):(_e=new Date(ue,ke,he,Pe,Ie,m,p),re&&(_e=V(_e).week(re).toDate()),_e)}catch{return new Date("")}}(y,D,L,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),Z&&y!=this.format(D)&&(this.$d=new Date("")),s={}}else if(D instanceof Array)for(var x=D.length,M=1;M<=x;M+=1){w[1]=D[M-1];var b=R.apply(this,w);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}M===x&&(this.$d=new Date(""))}else h.call(this,E)}}})})(Ft);var mo=Ft.exports;const ho=je(mo);var Ot={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(a,c,l){var u,s=function(C,F,P){P===void 0&&(P={});var f=new Date(C),k=function(T,R){R===void 0&&(R={});var v=R.timeZoneName||"short",h=T+"|"+v,E=r[h];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),r[h]=E),E}(F,P);return k.formatToParts(f)},i=function(C,F){for(var P=s(C,F),f=[],k=0;k<P.length;k+=1){var T=P[k],R=T.type,v=T.value,h=o[R];h>=0&&(f[h]=parseInt(v,10))}var E=f[3],y=E===24?0:E,L=f[0]+"-"+f[1]+"-"+f[2]+" "+y+":"+f[4]+":"+f[5]+":000",w=+C;return(l.utc(L).valueOf()-(w-=w%1e3))/6e4},S=c.prototype;S.tz=function(C,F){C===void 0&&(C=u);var P,f=this.utcOffset(),k=this.toDate(),T=k.toLocaleString("en-US",{timeZone:C}),R=Math.round((k-new Date(T))/1e3/60),v=15*-Math.round(k.getTimezoneOffset()/15)-R;if(!Number(v))P=this.utcOffset(0,F);else if(P=l(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),F){var h=P.utcOffset();P=P.add(f-h,"minute")}return P.$x.$timezone=C,P},S.offsetName=function(C){var F=this.$x.$timezone||l.tz.guess(),P=s(this.valueOf(),F,{timeZoneName:C}).find(function(f){return f.type.toLowerCase()==="timezonename"});return P&&P.value};var _=S.startOf;S.startOf=function(C,F){if(!this.$x||!this.$x.$timezone)return _.call(this,C,F);var P=l(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return _.call(P,C,F).tz(this.$x.$timezone,!0)},l.tz=function(C,F,P){var f=P&&F,k=P||F||u,T=i(+l(),k);if(typeof C!="string")return l(C).tz(k);var R=function(y,L,w){var D=y-60*L*1e3,$=i(D,w);if(L===$)return[D,L];var A=i(D-=60*($-L)*1e3,w);return $===A?[D,$]:[y-60*Math.min($,A)*1e3,Math.max($,A)]}(l.utc(C,f).valueOf(),T,k),v=R[0],h=R[1],E=l(v).utcOffset(h);return E.$x.$timezone=k,E},l.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},l.tz.setDefault=function(C){u=C}}})})(Ot);var go=Ot.exports;const vo=je(go);var Pt={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(c,l,u){var s=l.prototype;u.utc=function(f){var k={date:f,utc:!0,args:arguments};return new l(k)},s.utc=function(f){var k=u(this.toDate(),{locale:this.$L,utc:!0});return f?k.add(this.utcOffset(),o):k},s.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var i=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),i.call(this,f)};var S=s.init;s.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else S.call(this)};var _=s.utcOffset;s.utcOffset=function(f,k){var T=this.$utils().u;if(T(f))return this.$u?0:T(this.$offset)?_.call(this):this.$offset;if(typeof f=="string"&&(f=function(E){E===void 0&&(E="");var y=E.match(r);if(!y)return null;var L=(""+y[0]).match(a)||["-",0,0],w=L[0],D=60*+L[1]+ +L[2];return D===0?0:w==="+"?D:-D}(f),f===null))return this;var R=Math.abs(f)<=16?60*f:f;if(R===0)return this.utc(k);var v=this.clone();if(k)return v.$offset=R,v.$u=!1,v;var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(R+h,o)).$offset=R,v.$x.$localOffset=h,v};var C=s.format;s.format=function(f){var k=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return C.call(this,k)},s.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var F=s.toDate;s.toDate=function(f){return f==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():F.call(this)};var P=s.diff;s.diff=function(f,k,T){if(f&&this.$u===f.$u)return P.call(this,f,k,T);var R=this.local(),v=u(f).local();return P.call(R,v,k,T)}}})})(Pt);var yo=Pt.exports;const bo=je(yo);nt.extend(bo);nt.extend(vo);nt.extend(ho);const Je=/\$\{([^}]+)\}/g;function we(t){if(!t)return[];const n=new Set;return(t.cascadeDependFields??[]).forEach(o=>{const r=String(o??"").trim();r&&n.add(r)}),So(t.interface).forEach(o=>n.add(o)),[...n]}function So(t){if(!t||typeof t!="object")return[];const n=t.params;if(!n||typeof n!="object"||Array.isArray(n))return[];const o=new Set;return Ze(n,o),[...o]}function Ze(t,n){if(typeof t=="string"){Je.lastIndex=0;let o=Je.exec(t);for(;o!==null;){const r=String(o[1]??"").trim();r&&n.add(r),o=Je.exec(t)}return}if(Array.isArray(t)){t.forEach(o=>Ze(o,n));return}!t||typeof t!="object"||Object.values(t).forEach(o=>Ze(o,n))}function ot(t){return mt(t.type||t.fieldType||t.frontInputType)||mt(t.renderType)||"text"}function rt(t){return ht(t.type||t.fieldType||t.frontInputType)||ht(t.renderType)||"text"}function Ge(t){return jt(t).some(n=>n==="select_remote"||n==="select_remote_descr")}function wo(t){return jt(t).some(n=>n==="select_remote_descr")}function ie(t){if(t==null)return!0;if(typeof t=="string")return t.trim()==="";if(Array.isArray(t))return t.length===0||t.every(n=>ie(n));if(t instanceof Date)return Number.isNaN(t.getTime());if(typeof File<"u"&&t instanceof File)return t.name.trim()==="";if(typeof t=="object"){const n=Object.entries(t).filter(([o])=>!o.startsWith("__"));return n.length===0||n.every(([,o])=>ie(o))}return!1}function Nt(t){if(t instanceof Error)return!0;if(!t||typeof t!="object")return!1;const n=t;return typeof n.message=="string"&&(typeof n.stack=="string"||n.name==="Error")}function Lt(t,n,o="-"){const r=rt(t);return r==="empty"||ie(n)?o:Nt(n)?(console.error("[globalInfo] field value render failed",n),o):r==="select"?Mo(t,n,o):r==="switch"?xt(n)?G.t("common.是"):G.t("common.否"):r==="file"?Do(n,o):r==="multi-row"?Vo(n,o):String(n)}function qe(t,n){return Array.isArray(n)?n:Ye(t)?typeof n=="string"?n.split(",").map(o=>o.trim()).filter(Boolean):ie(n)?[]:[n]:[n]}function ko(t,n){return Ye(t)?qe(t,n):n}function _o(t,n){return!Ye(t)||!Array.isArray(n)?ie(n)?"":n:n.map(o=>String(o??"").trim()).filter(Boolean).join(",")}function xt(t){if(typeof t=="boolean")return t;if(typeof t=="number")return t!==0;const n=String(t??"").trim().toLowerCase();return["true","1","y","yes","t",G.t("common.是")].includes(n)}function De(t,n){if(ie(n))return!1;const o=t.raw&&typeof t.raw=="object"?t.raw:{};return[t.value,t.code,o.fieldvalue,o.value,o.code,o.emplid].some(r=>!ie(r)&&(r===n||String(r)===String(n)))}function Ke(t,n,o,r={}){const a=$o(r);return t.filter(c=>c.visible?!To(c,n,o,a,r.rows):!1)}function ft(t){return zt(t).some(o=>[G.t("common.序号"),"index","idx","seq","seqno","serial","order","rownum","row_no"].includes(o))}function pt(t){return zt(t).includes("seqno")}function Io(t){return[t.type,t.fieldType,t.frontInputType,t.raw?.type,t.raw?.fieldType,t.raw?.frontInputType].some(n=>At(n)==="attach")}function Rt(t,n,o="-"){return!Io(t)||ie(n)?[]:(Array.isArray(n)?n:[n]).map((a,c)=>Co(a,c,o)).filter(a=>!!a)}function Co(t,n,o){if(ie(t))return null;if(typeof t=="string"){const r=t.trim();return r?{key:String(n),text:r,action:{type:"direct",options:r}}:null}if(typeof File<"u"&&t instanceof File)return{key:String(n),text:t.name||o};if(t&&typeof t=="object"){const r=t,a=Bo(r,o),c=ge(r.url);if(c){const u={url:c},s=ge(r.name),i=ge(r.mimeType),S=ge(r.extension);return s&&(u.name=s),i&&(u.mimeType=i),S&&(u.extension=S),{key:String(n),text:a,action:{type:"direct",options:u}}}const l=ge(r.fileId);return l?{key:String(n),text:a,action:{type:"params",params:{fileId:l}}}:{key:String(n),text:a}}return{key:String(n),text:String(t).trim()||o}}function Bo(t,n){return ge(t.name)||ge(t.fileName)||ge(t.filename)||ge(t.url)||ge(t.fileId)||n}function ge(t){return String(t??"").trim()}function mt(t){const n=String(t??"").toLowerCase();return n==="upload"||n==="attachment"||n==="attach"?"file":n==="radio"||n==="checkbox"?"select":n==="text"||n==="textarea"||n==="select"||n==="select_remote"||n==="select_remote_descr"||n==="date"||n==="number"||n==="switch"||n==="file"||n==="html"||n==="code"||n==="multi-row"||n==="empty"?n==="select_remote_descr"?"select_remote":n:""}function ht(t){const n=String(t??"").toLowerCase();return n==="upload"||n==="attachment"||n==="attach"?"file":n==="radio"||n==="checkbox"||n==="select_remote"||n==="select_remote_descr"?"select":n==="select"||n==="switch"||n==="file"||n==="html"||n==="code"||n==="multi-row"||n==="empty"?n:n==="textarea"||n==="date"||n==="number"||n==="text"?"text":""}function $o(t){return t.rows?.length?t.rows:[t.values??{}]}function To(t,n,o,r,a){const c=o?.hiddenRule;return c?r.some(l=>{try{const u=l[t.code];return c({field:t,section:n,values:l,allValues:l,value:u,currentValue:u,rows:a})}catch(u){return console.error("[globalInfo] hidden rule failed",u),!1}}):!1}function zt(t){return Eo([t.id,t.key,t.code,t.name,t.label,t.prop])}function Eo(t){return Array.from(new Set(t.map(n=>At(n)).filter(Boolean)))}function At(t){return String(t??"").trim().toLowerCase()}function Mo(t,n,o){const r=Ye(t);if(Array.isArray(n)||r){const a=qe(t,n).map(l=>gt(t,l)||String(l??"").trim()).filter(Boolean),c=r?",":"、";return a.length>0?a.join(c):o}return gt(t,n)||String(n).trim()||o}function Ye(t){return!!t.props?.multiple&&(ot(t)==="select"||rt(t)==="select")}function gt(t,n){return t.options?.find(r=>De(r,n))?.label??""}function jt(t){const n=t.raw&&typeof t.raw=="object"?t.raw:{};return[t.type,t.fieldType,t.frontInputType,n.type,n.fieldType,n.frontInputType].map(o=>String(o??"").trim().toLowerCase()).filter(Boolean)}function Do(t,n){if(Array.isArray(t)){const o=t.map(r=>vt(r)).filter(Boolean);return o.length>0?o.join("、"):n}return vt(t)||n}function vt(t){if(typeof File<"u"&&t instanceof File)return t.name;if(t&&typeof t=="object"){const n=t;return String(n.name??n.fileName??n.filename??n.url??"").trim()}return String(t??"").trim()}function Vo(t,n){return Array.isArray(t)?t.map(r=>Nt(r)?(console.error("[globalInfo] multi-row field item render failed",r),""):ie(r)?"":r&&typeof r=="object"?JSON.stringify(r):String(r).trim()).filter(Boolean).join(`
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./index-Cp7s5Qwh.cjs"),e=require("vue"),W=require("element-plus/es"),Me=require("element-plus"),We=2,Bn=3;function $n(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function wt(t){if(!t.startsWith("on")||t.length<=We)return!1;const n=t.charCodeAt(We);return n<97||n>122}function Tn(t){if(t.startsWith("on-"))return t.slice(Bn);const[n,o]=t.slice(We).split(":"),r=$n(n);return o?`${r}:${o}`:r}function kt(t,n=new Set){return Object.fromEntries(Object.entries(t).filter(([o,r])=>!n.has(o)&&wt(o)&&typeof r=="function").map(([o,r])=>[Tn(o),r]))}function _t(t,n=new Set){return Object.fromEntries(Object.entries(t).filter(([o])=>!n.has(o)&&!wt(o)))}const En=e.defineComponent({name:"JtButton",__name:"index",props:{size:{},disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},dashed:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{}},setup(t){const n=t,o=e.useAttrs(),r=e.computed(()=>{const{icon:c,...l}=n;return{..._t(o),...l}}),a=e.computed(()=>kt(o));return(c,l)=>{const u=W.ElIcon,s=W.ElButton;return e.openBlock(),e.createBlock(s,e.mergeProps({class:"jt-button"},r.value,e.toHandlers(a.value)),{default:e.withCtx(()=>[c.$slots.icon?(e.openBlock(),e.createBlock(u,{key:0,class:"jt-button__icon"},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"icon",{},void 0,!0)]),_:3})):n.icon?(e.openBlock(),e.createBlock(u,{key:1,class:"jt-button__icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon)))]),_:1})):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16)}}}),se=(t,n)=>{const o=t.__vccOpts||t;for(const[r,a]of n)o[r]=a;return o},Te=se(En,[["__scopeId","data-v-28dbb12d"]]),Mn={options:()=>[],placeholder:G.t("common.请选择"),clearable:!0,persistent:!0};function dt(t){return Object.fromEntries(Object.entries(t).filter(([,n])=>n!==void 0))}function Dn(t){const n=dt(t);return n.props&&(n.props=dt(n.props)),n}const It=e.defineComponent({name:"JtCascader",__name:"index",props:e.mergeDefaults({size:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filterable:{type:Boolean},filterMethod:{type:Function},separator:{},showAllLevels:{type:Boolean},collapseTags:{type:Boolean},maxCollapseTags:{},collapseTagsTooltip:{type:Boolean},maxCollapseTagsTooltipHeight:{},debounce:{},beforeFilter:{type:Function},placement:{},fallbackPlacements:{},popperClass:{},popperStyle:{type:[Boolean,null,String,Object,Array]},teleported:{type:Boolean},effect:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},persistent:{type:Boolean},showCheckedStrategy:{},checkOnClickNode:{type:Boolean},showPrefix:{type:Boolean},fitInputWidth:{type:[Boolean,Number]},modelValue:{},props:{},virtualScroll:{type:Boolean},itemSize:{},height:{},emptyValues:{},valueOnClear:{type:[String,Number,Boolean,Function,null]},options:{}},Mn),emits:Me.cascaderEmits,setup(t,{emit:n}){const o=t,r=e.computed(()=>Dn(o)),a=e.ref(o.modelValue);e.watch(()=>o.modelValue,f=>{a.value=f},{deep:!0});const c=n;function l(f,...k){c(f,...k)}function u(f){a.value=f,l("update:modelValue",f)}function s(f){l("change",f)}function i(f){l("focus",f)}function S(f){l("blur",f)}function _(){l("clear")}function C(f){l("visibleChange",f)}function F(f){l("expandChange",f)}function P(f){l("removeTag",f)}return(f,k)=>{const T=W.ElCascader;return e.openBlock(),e.createBlock(T,e.mergeProps({class:"jt-cascader"},r.value,{"model-value":a.value,"onUpdate:modelValue":u,onChange:s,onFocus:i,onBlur:S,onClear:_,onVisibleChange:C,onExpandChange:F,onRemoveTag:P}),null,16,["model-value"])}}}),Vn=e.defineComponent({name:"JtDatePicker",__name:"index",props:{type:{default:"date"},showNow:{type:Boolean},showConfirm:{type:Boolean},showFooter:{type:Boolean},showWeekNumber:{type:Boolean},ariaLabel:{},emptyValues:{},valueOnClear:{},disabledDate:{},cellClassName:{},shortcuts:{},arrowControl:{type:Boolean},tabindex:{},validateEvent:{type:Boolean},unlinkPanels:{type:Boolean},singlePanel:{type:Boolean},placement:{},fallbackPlacements:{},disabledHours:{},disabledMinutes:{},disabledSeconds:{},automaticDropdown:{type:Boolean},id:{},name:{},popperClass:{},popperStyle:{},format:{},valueFormat:{default:"YYYY-MM-DD"},dateFormat:{},timeFormat:{},clearable:{type:Boolean,default:!0},clearIcon:{},editable:{type:Boolean},saveOnBlur:{type:Boolean},prefixIcon:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},placeholder:{default:G.t("common.请选择日期")},popperOptions:{},modelValue:{},rangeSeparator:{},startPlaceholder:{},endPlaceholder:{},defaultValue:{},defaultTime:{},isRange:{type:Boolean}},setup(t){const n=t,o=e.computed(()=>({...n,startPlaceholder:n.startPlaceholder??(r(n.type)?G.t("common.开始日期"):void 0),endPlaceholder:n.endPlaceholder??(r(n.type)?G.t("common.结束日期"):void 0)}));function r(a){return a?.includes("range")??!1}return(a,c)=>{const l=W.ElDatePicker;return e.openBlock(),e.createBlock(l,e.mergeProps({class:"jt-date-picker"},o.value,{"onUpdate:modelValue":c[0]||(c[0]=u=>a.$emit("update:modelValue",u))}),null,16)}}}),Ct=se(Vn,[["__scopeId","data-v-3ee50dbc"]]),Fn=e.defineComponent({name:"JtInput",__name:"index",props:{id:{},size:{},disabled:{type:Boolean},modelValue:{},modelModifiers:{},maxlength:{},minlength:{},type:{},resize:{},autosize:{type:[Object,Boolean]},autocomplete:{},formatter:{},parser:{},placeholder:{default:G.t("common.请输入")},form:{},readonly:{type:Boolean},clearable:{type:Boolean,default:!0},clearIcon:{},showPassword:{type:Boolean},showWordLimit:{type:Boolean},wordLimitPosition:{},suffixIcon:{},prefixIcon:{},containerRole:{},tabindex:{},validateEvent:{type:Boolean},inputStyle:{type:[Boolean,null,String,Object,Array]},autofocus:{type:Boolean},rows:{},ariaLabel:{},inputmode:{},name:{},countGraphemes:{}},emits:{...Me.inputEmits,enter:()=>!0},setup(t,{emit:n}){const o=t,r=n,a=e.computed(()=>Object.fromEntries(Object.keys(Me.inputEmits).map(c=>[c,(...l)=>r(c,...l)])));return(c,l)=>{const u=W.ElInput;return e.openBlock(),e.createBlock(u,e.mergeProps({class:"jt-input"},o,e.toHandlers(a.value),{onKeyup:l[0]||(l[0]=e.withKeys(s=>r("enter"),["enter"]))}),null,16)}}}),Le=se(Fn,[["__scopeId","data-v-10ac743d"]]),On=e.defineComponent({name:"JtSelect",__name:"index",props:{options:{},ariaLabel:{},emptyValues:{},valueOnClear:{},name:{},id:{},modelValue:{},autocomplete:{},automaticDropdown:{type:Boolean},size:{},effect:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean},loading:{type:Boolean},popperClass:{},popperStyle:{},popperOptions:{},remote:{type:Boolean},debounce:{},loadingText:{},noMatchText:{},noDataText:{},remoteMethod:{},filterMethod:{},multiple:{type:Boolean},multipleLimit:{},placeholder:{default:G.t("common.请选择")},defaultFirstOption:{type:Boolean},reserveKeyword:{type:Boolean},valueKey:{},collapseTags:{type:Boolean},collapseTagsTooltip:{type:Boolean},tagTooltip:{},maxCollapseTags:{},teleported:{type:Boolean},persistent:{type:Boolean},clearIcon:{},fitInputWidth:{type:Boolean},suffixIcon:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},remoteShowSuffix:{type:Boolean},showArrow:{type:Boolean},offset:{},placement:{},fallbackPlacements:{},tabindex:{},appendTo:{},props:{}},emits:Me.selectEmits,setup(t,{emit:n}){const o=t,r=e.computed(()=>{const{options:l,...u}=o;return u}),a=n,c=e.computed(()=>Object.fromEntries(Object.keys(Me.selectEmits).map(l=>[l,(...u)=>a(l,...u)])));return(l,u)=>{const s=W.ElOption,i=W.ElSelect;return e.openBlock(),e.createBlock(i,e.mergeProps({class:"jt-select"},r.value,e.toHandlers(c.value)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options??[],S=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:S.value,ref_for:!0},S),null,16))),128))]),_:1},16)}}}),Bt=se(On,[["__scopeId","data-v-8e1bf362"]]),Pn={class:"jt-form-items"},He=4,Nn=e.defineComponent({name:"JTFormItems",__name:"JtFormItems",props:{configs:{},formData:{},span:{}},setup(t){const n=t,o={input:Le,select:Bt,cascader:It,"date-picker":Ct},r={"remote-select":"select",date:"date-picker",daterange:"date-picker","date-range":"date-picker",dateRange:"date-picker"},a=new Set(["prop","label","itemType","span","options","rules","formItemProps","showSlot","show"]),c=Object.keys(o),l=new Map,u=e.computed(()=>n.configs.filter(v=>v.show!==!1)),s=v=>{const{itemType:h}=v;if(!h)return Le;if(typeof h!="string")return h;const E=r[h]??h;return c.includes(E)?o[E]:(console.error(`[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${c.join(", ")}`),Le)},i=v=>{const h=_t(v,a);return v.itemType==="select"||v.itemType==="remote-select"||v.itemType==="cascader"?{...h,options:v.options}:R(v.itemType)?{...h,type:"daterange"}:h},S=v=>kt(v,a),_=v=>({rules:v.rules,...v.formItemProps}),C=(v,h)=>{n.formData[v]=h};function F(v){return h=>{if(h){l.set(v,h);return}l.delete(v)}}function P(v,h){e.nextTick(()=>{l.get(v)?.validate(h).catch(()=>{})})}const f=v=>Math.min(Math.max(Math.trunc(v||1),1),4),k=e.computed(()=>{const h=u.value.reduce((E,y)=>E+f(n.span||y.span),0)%He;return h===0?{gridColumn:`1 / span ${He}`}:{gridColumn:`${h+1} / span ${He-h}`}}),T=v=>({gridColumn:`span ${f(n.span||v.span)}`});function R(v){return v==="daterange"||v==="date-range"||v==="dateRange"}return(v,h)=>{const E=W.ElFormItem;return e.openBlock(),e.createElementBlock("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,y=>(e.openBlock(),e.createBlock(E,e.mergeProps({key:y.prop,ref_for:!0,ref:F(y.prop),class:"jt-form-items__item",style:T(y),label:y.label,prop:y.prop},_(y)),{default:e.withCtx(()=>[y.showSlot?e.renderSlot(v.$slots,y.prop,{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(y)),e.mergeProps({key:1,"model-value":v.formData[y.prop],ref_for:!0},i(y),e.toHandlers(S(y)),{"onUpdate:modelValue":L=>C(y.prop,L),onChange:()=>P(y.prop,"change"),onBlur:()=>P(y.prop,"blur")}),null,16,["model-value","onUpdate:modelValue","onChange","onBlur"]))]),_:2},1040,["style","label","prop"]))),128)),v.$slots.actions?(e.openBlock(),e.createBlock(E,{key:0,class:"jt-form-items__actions",style:e.normalizeStyle(k.value)},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"actions",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0)])}}}),$t=se(Nn,[["__scopeId","data-v-d2355a20"]]);function Ln(){const t=e.ref(!1);function n(){t.value=!0}function o(){t.value=!1}return{searchDisabled:t,searchLoading:n,searchDone:o}}const xn="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e",Rn="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e",zn="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e",An={class:"jt-filter-bar__btns"},jn=["src"],Gn=["src"],qn=["src"],Kn=e.defineComponent({name:"JtFilterBar",__name:"JtFilterBar",props:{columns:{},option:{default:()=>({})},modelValue:{}},emits:["update:modelValue","search","reset"],setup(t,{expose:n,emit:o}){const r=t,a=o,c=e.ref(),l=e.useSlots(),u=e.ref({}),{searchDisabled:s,searchLoading:i,searchDone:S}=Ln(),_=e.computed(()=>r.option),C=e.ref(_.value.searchCollapsed??!0),F=e.computed(()=>r.columns.filter(O=>O.search===!0)),P=e.computed(()=>Math.max(1,_.value.searchSpan??4)),f=e.computed(()=>Math.max(1,_.value.searchCollapsedRows??1)),k=e.computed(()=>P.value),T=e.computed(()=>Math.max(1,k.value*f.value)),R=e.computed(()=>P.value),v=e.computed(()=>D.value?"264px":"174px"),h=e.computed(()=>q(_.value.searchLabelWidth??84)),E=e.computed(()=>_.value.searchLabelPosition??"top"),y=e.computed(()=>z(_.value.searchGutter,16)),L=e.computed(()=>z(_.value.searchRowGap,10)),w=e.computed(()=>U(_.value.searchPadding??"18px 4px 0")),D=e.computed(()=>_.value.searchCollapse===!1?!1:j(F.value)>T.value),$=e.computed(()=>{if(!D.value||!C.value)return F.value;let O=0;return F.value.filter(H=>{const oe=N(H);return O+oe>T.value?!1:(O+=oe,!0)})}),A=e.computed(()=>$.value.filter(O=>!!l[`${O.prop}-search`])),Z=e.computed(()=>{const O=j($.value);return $.value.length>0&&$.value.length<=2&&O<P.value}),X=e.computed(()=>{const O=j($.value);return`${Math.min(P.value,O+1)}`}),x=e.computed(()=>$.value.map(O=>b(O)));e.watch(()=>_.value.searchCollapsed,O=>{typeof O=="boolean"&&(C.value=O)}),e.watch(()=>r.modelValue,O=>{u.value={...O}},{deep:!0,immediate:!0});function M(O,H){if(s.value)return;const oe={...u.value,[O]:H};u.value=oe,a("update:modelValue",oe)}function b(O){const H=O.searchProps??{},oe=O.searchType??"input";return{...H,prop:O.prop,label:O.searchLabel??O.label,span:N(O),itemType:oe,showSlot:!!l[`${O.prop}-search`],options:H.options??O.searchOptions??O.dicData,placeholder:H.placeholder??O.searchPlaceholder,valueFormat:H.valueFormat??O.searchValueFormat,disabled:s.value||H.disabled===!0,formItemProps:{required:O.searchRequired,class:["jt-filter-bar__item",{"is-required":O.searchRequired}]},onEnter:(...ne)=>{d(H.onEnter,...ne),g()},"onUpdate:modelValue":ne=>{d(H["onUpdate:modelValue"],ne),M(O.prop,ne)}}}function d(O,...H){if(Array.isArray(O)){O.forEach(oe=>d(oe,...H));return}typeof O=="function"&&O(...H)}async function g(){if(!s.value){if(c.value)try{await c.value.validate()}catch{return}a("search")}}function I(){s.value||a("reset")}function V(){C.value=!C.value}function N(O){return Math.min(P.value,Math.max(1,O.searchSpan??1))}function j(O){return O.reduce((H,oe)=>H+N(oe),0)}function q(O){return typeof O=="number"?`${O}px`:O}function z(O,H){return typeof O=="number"?O:H}function U(O){return typeof O=="number"?`${O}px`:O}return n({formRef:c,searchDisabled:s,searchLoading:i,searchDone:S}),(O,H)=>{const oe=W.ElForm;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-filter-bar",[`is-label-${E.value}`,{"is-single-filter":Z.value}]]),style:e.normalizeStyle({"--jt-filter-columns":P.value,"--jt-filter-field-columns":R.value,"--jt-filter-btns-width":v.value,"--jt-filter-actions-start":X.value,"--jt-filter-label-width":h.value,"--jt-filter-column-gap":`${y.value}px`,"--jt-filter-row-gap":`${L.value}px`,"--jt-filter-padding":w.value})},[e.createVNode(oe,{ref_key:"formRef",ref:c,class:"jt-filter-bar__form",model:u.value,"label-position":E.value,"label-width":h.value,disabled:e.unref(s),onSubmit:H[0]||(H[0]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createVNode(e.unref($t),{configs:x.value,"form-data":u.value,style:{"--jt-form-label-gap":"6px","--jt-form-column-gap":"16px","--jt-form-row-gap":"10px"}},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",An,[e.renderSlot(O.$slots,"search-menu",{search:g,reset:I,disabled:e.unref(s),collapsed:C.value,toggleCollapse:V},()=>[D.value?(e.openBlock(),e.createBlock(e.unref(Te),{key:0,class:"jt-filter-bar__btn-collapse",size:"small",onClick:V},{icon:e.withCtx(()=>[e.createElementVNode("img",{class:e.normalizeClass(["jt-filter-bar__icon-arrow",{"is-collapsed":C.value}]),src:e.unref(xn),alt:""},null,10,jn)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(C.value?e.unref(G.t)("common.展开"):e.unref(G.t)("common.收起")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(Te),{class:"jt-filter-bar__btn-reset",size:"small",disabled:e.unref(s),onClick:I},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(Rn),alt:""},null,8,Gn)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(_.value.resetBtnText??e.unref(G.t)("common.重置")),1)]),_:1},8,["disabled"]),e.createVNode(e.unref(Te),{class:"jt-filter-bar__btn-query",type:"primary",size:"small",disabled:e.unref(s),onClick:g},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(zn),alt:""},null,8,qn)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(_.value.searchBtnText??e.unref(G.t)("common.查询")),1)]),_:1},8,["disabled"])],!0)])]),_:2},[e.renderList(A.value,ne=>({name:ne.prop,fn:e.withCtx(()=>[e.renderSlot(O.$slots,`${ne.prop}-search`,{value:u.value[ne.prop],column:ne,setValue:re=>M(ne.prop,re),search:g,reset:I,disabled:e.unref(s)},void 0,!0)])}))]),1032,["configs","form-data"])]),_:3},8,["model","label-position","label-width","disabled"])],6)}}}),Tt=se(Kn,[["__scopeId","data-v-fba58b18"]]),Yn={key:1},Un={key:2},Hn={key:3},Jn=e.defineComponent({name:"JtTable",__name:"JtTable",props:{data:{},columns:{},option:{},tableEvents:{}},setup(t,{expose:n}){const o=t,r=e.useSlots(),a=e.ref(),c=e.computed(()=>o.option??{}),l=e.computed(()=>o.columns.filter(f=>!f.hide)),u=e.computed(()=>c.value.menuFixed??"right");function s(f){return!!r[`${f}-header`]}function i(f){return!!r[`${f}-data`]}function S(f){return{width:f.width,minWidth:f.minWidth,align:f.align||"center",fixed:f.fixed,sortable:f.sortable,showOverflowTooltip:f.showOverflowTooltip??_(f),...f.columnOptions}}function _(f){return!i(f.prop)&&!F(f.columnOptions?.type)}function C(f){return!F(f.columnOptions?.type)}function F(f){return f==="selection"||f==="index"||f==="expand"}function P(f,k){return f.find(T=>T.value===k)?.label??String(k??"")}return n({tableRef:a}),(f,k)=>{const T=W.ElTableColumn,R=W.ElTable;return e.openBlock(),e.createBlock(R,e.mergeProps({ref_key:"tableRef",ref:a,data:f.data,"row-key":c.value.rowKey??"id","empty-text":c.value.emptyText,class:"jt-table"},c.value.tableProps,e.toHandlers(f.tableEvents)),{default:e.withCtx(()=>[c.value.selection?(e.openBlock(),e.createBlock(T,{key:0,type:"selection",width:"55",align:"center"})):e.createCommentVNode("",!0),c.value.index?(e.openBlock(),e.createBlock(T,{key:1,type:"index",label:c.value.indexLabel??e.unref(G.t)("common.序号"),width:"60",align:"center"},null,8,["label"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,v=>(e.openBlock(),e.createBlock(T,e.mergeProps({key:v.prop,prop:v.prop,label:v.label,formatter:!i(v.prop)&&!v.dicData?v.formatter:void 0,ref_for:!0},S(v)),e.createSlots({_:2},[s(v.prop)?{name:"header",fn:e.withCtx(h=>[e.renderSlot(f.$slots,`${v.prop}-header`,e.mergeProps({ref_for:!0},h),void 0,!0)]),key:"0"}:void 0,C(v)?{name:"default",fn:e.withCtx(h=>[i(v.prop)?e.renderSlot(f.$slots,`${v.prop}-data`,e.mergeProps({key:0,ref_for:!0},h),void 0,!0):v.dicData?(e.openBlock(),e.createElementBlock("span",Yn,e.toDisplayString(P(v.dicData,h.row[v.prop])),1)):v.formatter?(e.openBlock(),e.createElementBlock("span",Un,e.toDisplayString(v.formatter(h.row,h.column,h.row[v.prop],h.$index)),1)):(e.openBlock(),e.createElementBlock("span",Hn,e.toDisplayString(h.row[v.prop]),1))]),key:"1"}:void 0]),1040,["prop","label","formatter"]))),128)),c.value.menu?(e.openBlock(),e.createBlock(T,{key:2,label:c.value.menuLabel??e.unref(G.t)("common.操作"),width:c.value.menuWidth,"min-width":c.value.menuMinWidth,align:c.value.menuAlign??"center",fixed:u.value},{default:e.withCtx(v=>[e.renderSlot(f.$slots,"menu",e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)]),_:3},8,["label","width","min-width","align","fixed"])):e.createCommentVNode("",!0)]),_:3},16,["data","row-key","empty-text"])}}}),Et=se(Jn,[["__scopeId","data-v-92c09ab1"]]),Wn={class:"jt-pagination"},Zn={class:"jt-pagination__count"},Qn=e.defineComponent({name:"JtPagination",__name:"JtPagination",props:{currentPage:{},pageSize:{},total:{},option:{}},emits:["update:currentPage","update:pageSize","current-change","page-change","size-change"],setup(t,{emit:n}){const o=t,r=e.computed(()=>o.option??{}),a=n;function c(l){a("current-change",l),a("page-change",l)}return(l,u)=>{const s=W.ElPagination;return e.openBlock(),e.createElementBlock("div",Wn,[e.createVNode(s,{"current-page":l.currentPage,"page-size":l.pageSize,"page-sizes":r.value.pageSizes??[10,20,50,100],total:l.total,layout:r.value.paginationLayout??"sizes, prev, pager, next, jumper","onUpdate:currentPage":u[0]||(u[0]=i=>l.$emit("update:currentPage",i)),"onUpdate:pageSize":u[1]||(u[1]=i=>l.$emit("update:pageSize",i)),onCurrentChange:c,onSizeChange:u[2]||(u[2]=i=>l.$emit("size-change",i))},null,8,["current-page","page-size","page-sizes","total","layout"]),e.createElementVNode("span",Zn,e.toDisplayString(e.unref(G.t)("common.共"))+e.toDisplayString(l.total)+e.toDisplayString(e.unref(G.t)("common.条记录")),1)])}}}),Mt=se(Qn,[["__scopeId","data-v-8f04a5d2"]]),Xn={class:"jt-crud-table"},eo={class:"filter-bar-box"},to={class:"jt-crud-table__result"},no={class:"jt-crud-table__table-group"},oo={key:0,class:"jt-crud-table__toolbar"},ro=e.defineComponent({name:"JtCrudTable",__name:"JtCrudTable",props:e.mergeModels({columns:{},option:{default:()=>({})},data:{},total:{default:0},tableEvents:{}},{currentPage:{default:1},currentPageModifiers:{},pageSize:{default:20},pageSizeModifiers:{},searchModel:{default:()=>({})},searchModelModifiers:{}}),emits:e.mergeModels(["search","reset","page-change","size-change"],["update:currentPage","update:pageSize","update:searchModel"]),setup(t,{expose:n,emit:o}){const r=t,a=o,c=e.useModel(t,"currentPage"),l=e.useModel(t,"pageSize"),u=e.useModel(t,"searchModel"),s=e.useSlots(),i=e.ref(),S=e.ref(),_=e.computed(()=>r.option),C=e.computed(()=>_.value.searchShow!==!1),F=e.computed(()=>_.value.paginationShow!==!1),P=e.computed(()=>r.columns.filter(y=>y.search&&!!s[`${y.prop}-search`])),f=e.computed(()=>r.columns.filter(y=>!y.hide&&!!s[`${y.prop}-header`])),k=e.computed(()=>r.columns.filter(y=>!y.hide&&!!s[`${y.prop}-data`]));function T(){const y={};return r.columns.forEach(L=>{L.search&&(y[L.prop]=void 0)}),y}function R(){a("search",{...u.value})}function v(){u.value=T(),a("reset")}function h(){S.value?.searchLoading()}function E(){S.value?.searchDone()}return n({tableRef:e.computed(()=>i.value?.tableRef),filterBarRef:S,searchLoading:h,searchDone:E}),(y,L)=>{const w=W.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",Xn,[e.renderSlot(y.$slots,"header",{},void 0,!0),e.createElementVNode("div",eo,[C.value?(e.openBlock(),e.createBlock(Tt,{key:0,ref_key:"filterBarRef",ref:S,modelValue:u.value,"onUpdate:modelValue":L[0]||(L[0]=D=>u.value=D),columns:y.columns,option:_.value,onSearch:R,onReset:v},e.createSlots({_:2},[e.renderList(P.value,D=>({name:`${D.prop}-search`,fn:e.withCtx($=>[e.renderSlot(y.$slots,`${D.prop}-search`,e.normalizeProps(e.guardReactiveProps($)),void 0,!0)])}))]),1032,["modelValue","columns","option"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",to,[e.createElementVNode("div",no,[e.unref(s).toolbar?(e.openBlock(),e.createElementBlock("div",oo,[e.renderSlot(y.$slots,"toolbar",{},void 0,!0)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(Et,{ref_key:"jtTableRef",ref:i,data:y.data,columns:y.columns,option:_.value,"table-events":y.tableEvents},e.createSlots({_:2},[e.renderList(f.value,D=>({name:`${D.prop}-header`,fn:e.withCtx($=>[e.renderSlot(y.$slots,`${D.prop}-header`,e.normalizeProps(e.guardReactiveProps($)),void 0,!0)])})),e.renderList(k.value,D=>({name:`${D.prop}-data`,fn:e.withCtx($=>[e.renderSlot(y.$slots,`${D.prop}-data`,e.normalizeProps(e.guardReactiveProps($)),void 0,!0)])})),_.value.menu?{name:"menu",fn:e.withCtx(D=>[e.renderSlot(y.$slots,"menu",e.normalizeProps(e.guardReactiveProps(D)),void 0,!0)]),key:"0"}:void 0]),1032,["data","columns","option","table-events"])),[[w,_.value.loading]])]),F.value?(e.openBlock(),e.createBlock(Mt,{key:0,"current-page":c.value,"onUpdate:currentPage":L[1]||(L[1]=D=>c.value=D),"page-size":l.value,"onUpdate:pageSize":L[2]||(L[2]=D=>l.value=D),total:y.total,option:_.value,onPageChange:L[3]||(L[3]=D=>y.$emit("page-change",D)),onSizeChange:L[4]||(L[4]=D=>y.$emit("size-change",D))},null,8,["current-page","page-size","total","option"])):e.createCommentVNode("",!0)])])}}}),ao=se(ro,[["__scopeId","data-v-3454628a"]]),lo={class:"jt-page-header__title"},so={key:0},io={key:0,class:"jt-page-header__operates"},co=e.defineComponent({name:"JtPageHeader",__name:"index",props:{type:{default:"section"},title:{},operates:{default:()=>[]}},emits:["operate-click"],setup(t,{emit:n}){const o=t,r=n,a=e.useSlots(),c=e.computed(()=>o.operates.length>0||!!a.operates);function l(u,s){u.onClick?.(u,s),r("operate-click",u,s)}return(u,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["jt-page-header",`jt-page-header--${u.type}`]},u.$attrs),[e.createElementVNode("div",lo,[e.renderSlot(u.$slots,"title",{},()=>[u.title?(e.openBlock(),e.createElementBlock("span",so,e.toDisplayString(u.title),1)):e.createCommentVNode("",!0)],!0)]),c.value?(e.openBlock(),e.createElementBlock("div",io,[e.renderSlot(u.$slots,"operates",{operates:u.operates},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.operates,i=>(e.openBlock(),e.createBlock(e.unref(Te),e.mergeProps({key:i.key??i.label,ref_for:!0},i.buttonProps,{type:i.type,disabled:i.disabled,loading:i.loading,plain:i.plain,text:i.text,link:i.link,icon:i.icon,onClick:S=>l(i,S)}),{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(i.label),1)]),_:2},1040,["type","disabled","loading","plain","text","link","icon","onClick"]))),128))],!0)])):e.createCommentVNode("",!0)],16))}}),uo=se(co,[["__scopeId","data-v-bbbd4ec6"]]);function fo(t,n){n=n||(()=>"default-use-once-sync");const o=new Map;async function r(...a){const c=n(...a);if(o.get(c))return o.get(c);try{const l=t(...a).then(u=>u).catch(u=>{throw u});return o.set(c,l),l}catch(l){throw o.set(c,null),l}}return r.bind(t)}function Dt(t,n){n=n||(()=>"default-use-queue-sync");const o=new Map;async function r(...a){const c=n(...a),l=Symbol("single");return o.set(c,l),new Promise((u,s)=>{t(...a).then(i=>{o.get(c)===l&&u(i)}).catch(i=>{o.get(c)===l&&s(i)})})}return r.bind(t)}var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vt={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o=1e3,r=6e4,a=36e5,c="millisecond",l="second",u="minute",s="hour",i="day",S="week",_="month",C="quarter",F="year",P="date",f="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var M=["th","st","nd","rd"],b=x%100;return"["+x+(M[(b-20)%10]||M[b]||M[0])+"]"}},v=function(x,M,b){var d=String(x);return!d||d.length>=M?x:""+Array(M+1-d.length).join(b)+x},h={s:v,z:function(x){var M=-x.utcOffset(),b=Math.abs(M),d=Math.floor(b/60),g=b%60;return(M<=0?"+":"-")+v(d,2,"0")+":"+v(g,2,"0")},m:function x(M,b){if(M.date()<b.date())return-x(b,M);var d=12*(b.year()-M.year())+(b.month()-M.month()),g=M.clone().add(d,_),I=b-g<0,V=M.clone().add(d+(I?-1:1),_);return+(-(d+(b-g)/(I?g-V:V-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:_,y:F,w:S,d:i,D:P,h:s,m:u,s:l,ms:c,Q:C}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},E="en",y={};y[E]=R;var L="$isDayjsObject",w=function(x){return x instanceof Z||!(!x||!x[L])},D=function x(M,b,d){var g;if(!M)return E;if(typeof M=="string"){var I=M.toLowerCase();y[I]&&(g=I),b&&(y[I]=b,g=I);var V=M.split("-");if(!g&&V.length>1)return x(V[0])}else{var N=M.name;y[N]=M,g=N}return!d&&g&&(E=g),g||!d&&E},$=function(x,M){if(w(x))return x.clone();var b=typeof M=="object"?M:{};return b.date=x,b.args=arguments,new Z(b)},A=h;A.l=D,A.i=w,A.w=function(x,M){return $(x,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Z=function(){function x(b){this.$L=D(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[L]=!0}var M=x.prototype;return M.parse=function(b){this.$d=function(d){var g=d.date,I=d.utc;if(g===null)return new Date(NaN);if(A.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var V=g.match(k);if(V){var N=V[2]-1||0,j=(V[7]||"0").substring(0,3);return I?new Date(Date.UTC(V[1],N,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],N,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(g)}(b),this.init()},M.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},M.$utils=function(){return A},M.isValid=function(){return this.$d.toString()!==f},M.isSame=function(b,d){var g=$(b);return this.startOf(d)<=g&&g<=this.endOf(d)},M.isAfter=function(b,d){return $(b)<this.startOf(d)},M.isBefore=function(b,d){return this.endOf(d)<$(b)},M.$g=function(b,d,g){return A.u(b)?this[d]:this.set(g,b)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(b,d){var g=this,I=!!A.u(d)||d,V=A.p(b),N=function(ne,re){var ce=A.w(g.$u?Date.UTC(g.$y,re,ne):new Date(g.$y,re,ne),g);return I?ce:ce.endOf(i)},j=function(ne,re){return A.w(g.toDate()[ne].apply(g.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(re)),g)},q=this.$W,z=this.$M,U=this.$D,O="set"+(this.$u?"UTC":"");switch(V){case F:return I?N(1,0):N(31,11);case _:return I?N(1,z):N(0,z+1);case S:var H=this.$locale().weekStart||0,oe=(q<H?q+7:q)-H;return N(I?U-oe:U+(6-oe),z);case i:case P:return j(O+"Hours",0);case s:return j(O+"Minutes",1);case u:return j(O+"Seconds",2);case l:return j(O+"Milliseconds",3);default:return this.clone()}},M.endOf=function(b){return this.startOf(b,!1)},M.$set=function(b,d){var g,I=A.p(b),V="set"+(this.$u?"UTC":""),N=(g={},g[i]=V+"Date",g[P]=V+"Date",g[_]=V+"Month",g[F]=V+"FullYear",g[s]=V+"Hours",g[u]=V+"Minutes",g[l]=V+"Seconds",g[c]=V+"Milliseconds",g)[I],j=I===i?this.$D+(d-this.$W):d;if(I===_||I===F){var q=this.clone().set(P,1);q.$d[N](j),q.init(),this.$d=q.set(P,Math.min(this.$D,q.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},M.set=function(b,d){return this.clone().$set(b,d)},M.get=function(b){return this[A.p(b)]()},M.add=function(b,d){var g,I=this;b=Number(b);var V=A.p(d),N=function(z){var U=$(I);return A.w(U.date(U.date()+Math.round(z*b)),I)};if(V===_)return this.set(_,this.$M+b);if(V===F)return this.set(F,this.$y+b);if(V===i)return N(1);if(V===S)return N(7);var j=(g={},g[u]=r,g[s]=a,g[l]=o,g)[V]||1,q=this.$d.getTime()+b*j;return A.w(q,this)},M.subtract=function(b,d){return this.add(-1*b,d)},M.format=function(b){var d=this,g=this.$locale();if(!this.isValid())return g.invalidDate||f;var I=b||"YYYY-MM-DDTHH:mm:ssZ",V=A.z(this),N=this.$H,j=this.$m,q=this.$M,z=g.weekdays,U=g.months,O=g.meridiem,H=function(re,ce,he,ue){return re&&(re[ce]||re(d,I))||he[ce].slice(0,ue)},oe=function(re){return A.s(N%12||12,re,"0")},ne=O||function(re,ce,he){var ue=re<12?"AM":"PM";return he?ue.toLowerCase():ue};return I.replace(T,function(re,ce){return ce||function(he){switch(he){case"YY":return String(d.$y).slice(-2);case"YYYY":return A.s(d.$y,4,"0");case"M":return q+1;case"MM":return A.s(q+1,2,"0");case"MMM":return H(g.monthsShort,q,U,3);case"MMMM":return H(U,q);case"D":return d.$D;case"DD":return A.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return H(g.weekdaysMin,d.$W,z,2);case"ddd":return H(g.weekdaysShort,d.$W,z,3);case"dddd":return z[d.$W];case"H":return String(N);case"HH":return A.s(N,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ne(N,j,!0);case"A":return ne(N,j,!1);case"m":return String(j);case"mm":return A.s(j,2,"0");case"s":return String(d.$s);case"ss":return A.s(d.$s,2,"0");case"SSS":return A.s(d.$ms,3,"0");case"Z":return V}return null}(re)||V.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(b,d,g){var I,V=this,N=A.p(d),j=$(b),q=(j.utcOffset()-this.utcOffset())*r,z=this-j,U=function(){return A.m(V,j)};switch(N){case F:I=U()/12;break;case _:I=U();break;case C:I=U()/3;break;case S:I=(z-q)/6048e5;break;case i:I=(z-q)/864e5;break;case s:I=z/a;break;case u:I=z/r;break;case l:I=z/o;break;default:I=z}return g?I:A.a(I)},M.daysInMonth=function(){return this.endOf(_).$D},M.$locale=function(){return y[this.$L]},M.locale=function(b,d){if(!b)return this.$L;var g=this.clone(),I=D(b,d,!0);return I&&(g.$L=I),g},M.clone=function(){return A.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},x}(),X=Z.prototype;return $.prototype=X,[["$ms",c],["$s",l],["$m",u],["$H",s],["$W",i],["$M",_],["$y",F],["$D",P]].forEach(function(x){X[x[1]]=function(M){return this.$g(M,x[0],x[1])}}),$.extend=function(x,M){return x.$i||(x(M,Z,$),x.$i=!0),$},$.locale=D,$.isDayjs=w,$.unix=function(x){return $(1e3*x)},$.en=y[E],$.Ls=y,$.p={},$})})(Vt);var po=Vt.exports;const nt=je(po);var Ft={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,c=/\d\d/,l=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},i=function(k){return(k=+k)+(k>68?1900:2e3)},S=function(k){return function(T){this[k]=+T}},_=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(T){if(!T||T==="Z")return 0;var R=T.match(/([+-]|\d\d)/g),v=60*R[1]+(+R[2]||0);return v===0?0:R[0]==="+"?-v:v}(k)}],C=function(k){var T=s[k];return T&&(T.indexOf?T:T.s.concat(T.f))},F=function(k,T){var R,v=s.meridiem;if(v){for(var h=1;h<=24;h+=1)if(k.indexOf(v(h,0,T))>-1){R=h>12;break}}else R=k===(T?"pm":"PM");return R},P={A:[u,function(k){this.afternoon=F(k,!1)}],a:[u,function(k){this.afternoon=F(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[c,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[l,S("seconds")],ss:[l,S("seconds")],m:[l,S("minutes")],mm:[l,S("minutes")],H:[l,S("hours")],h:[l,S("hours")],HH:[l,S("hours")],hh:[l,S("hours")],D:[l,S("day")],DD:[c,S("day")],Do:[u,function(k){var T=s.ordinal,R=k.match(/\d+/);if(this.day=R[0],T)for(var v=1;v<=31;v+=1)T(v).replace(/\[|\]/g,"")===k&&(this.day=v)}],w:[l,S("week")],ww:[c,S("week")],M:[l,S("month")],MM:[c,S("month")],MMM:[u,function(k){var T=C("months"),R=(C("monthsShort")||T.map(function(v){return v.slice(0,3)})).indexOf(k)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(k){var T=C("months").indexOf(k)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,S("year")],YY:[c,function(k){this.year=i(k)}],YYYY:[/\d{4}/,S("year")],Z:_,ZZ:_};function f(k){var T,R;T=k,R=s&&s.formats;for(var v=(k=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,A,Z){var X=Z&&Z.toUpperCase();return A||R[Z]||o[Z]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,M,b){return M||b.slice(1)})})).match(r),h=v.length,E=0;E<h;E+=1){var y=v[E],L=P[y],w=L&&L[0],D=L&&L[1];v[E]=D?{regex:w,parser:D}:y.replace(/^\[|\]$/g,"")}return function($){for(var A={},Z=0,X=0;Z<h;Z+=1){var x=v[Z];if(typeof x=="string")X+=x.length;else{var M=x.regex,b=x.parser,d=$.slice(X),g=M.exec(d)[0];b.call(A,g),$=$.replace(g,"")}}return function(I){var V=I.afternoon;if(V!==void 0){var N=I.hours;V?N<12&&(I.hours+=12):N===12&&(I.hours=0),delete I.afternoon}}(A),A}}return function(k,T,R){R.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(i=k.parseTwoDigitYear);var v=T.prototype,h=v.parse;v.parse=function(E){var y=E.date,L=E.utc,w=E.args;this.$u=L;var D=w[1];if(typeof D=="string"){var $=w[2]===!0,A=w[3]===!0,Z=$||A,X=w[2];A&&(X=w[2]),s=this.$locale(),!$&&X&&(s=R.Ls[X]),this.$d=function(d,g,I,V){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1e3:1)*d);var N=f(g)(d),j=N.year,q=N.month,z=N.day,U=N.hours,O=N.minutes,H=N.seconds,oe=N.milliseconds,ne=N.zone,re=N.week,ce=new Date,he=z||(j||q?1:ce.getDate()),ue=j||ce.getFullYear(),ke=0;j&&!q||(ke=q>0?q-1:ce.getMonth());var _e,Pe=U||0,Ie=O||0,m=H||0,p=oe||0;return ne?new Date(Date.UTC(ue,ke,he,Pe,Ie,m,p+60*ne.offset*1e3)):I?new Date(Date.UTC(ue,ke,he,Pe,Ie,m,p)):(_e=new Date(ue,ke,he,Pe,Ie,m,p),re&&(_e=V(_e).week(re).toDate()),_e)}catch{return new Date("")}}(y,D,L,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),Z&&y!=this.format(D)&&(this.$d=new Date("")),s={}}else if(D instanceof Array)for(var x=D.length,M=1;M<=x;M+=1){w[1]=D[M-1];var b=R.apply(this,w);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}M===x&&(this.$d=new Date(""))}else h.call(this,E)}}})})(Ft);var mo=Ft.exports;const ho=je(mo);var Ot={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(a,c,l){var u,s=function(C,F,P){P===void 0&&(P={});var f=new Date(C),k=function(T,R){R===void 0&&(R={});var v=R.timeZoneName||"short",h=T+"|"+v,E=r[h];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:v}),r[h]=E),E}(F,P);return k.formatToParts(f)},i=function(C,F){for(var P=s(C,F),f=[],k=0;k<P.length;k+=1){var T=P[k],R=T.type,v=T.value,h=o[R];h>=0&&(f[h]=parseInt(v,10))}var E=f[3],y=E===24?0:E,L=f[0]+"-"+f[1]+"-"+f[2]+" "+y+":"+f[4]+":"+f[5]+":000",w=+C;return(l.utc(L).valueOf()-(w-=w%1e3))/6e4},S=c.prototype;S.tz=function(C,F){C===void 0&&(C=u);var P,f=this.utcOffset(),k=this.toDate(),T=k.toLocaleString("en-US",{timeZone:C}),R=Math.round((k-new Date(T))/1e3/60),v=15*-Math.round(k.getTimezoneOffset()/15)-R;if(!Number(v))P=this.utcOffset(0,F);else if(P=l(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),F){var h=P.utcOffset();P=P.add(f-h,"minute")}return P.$x.$timezone=C,P},S.offsetName=function(C){var F=this.$x.$timezone||l.tz.guess(),P=s(this.valueOf(),F,{timeZoneName:C}).find(function(f){return f.type.toLowerCase()==="timezonename"});return P&&P.value};var _=S.startOf;S.startOf=function(C,F){if(!this.$x||!this.$x.$timezone)return _.call(this,C,F);var P=l(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return _.call(P,C,F).tz(this.$x.$timezone,!0)},l.tz=function(C,F,P){var f=P&&F,k=P||F||u,T=i(+l(),k);if(typeof C!="string")return l(C).tz(k);var R=function(y,L,w){var D=y-60*L*1e3,$=i(D,w);if(L===$)return[D,L];var A=i(D-=60*($-L)*1e3,w);return $===A?[D,$]:[y-60*Math.min($,A)*1e3,Math.max($,A)]}(l.utc(C,f).valueOf(),T,k),v=R[0],h=R[1],E=l(v).utcOffset(h);return E.$x.$timezone=k,E},l.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},l.tz.setDefault=function(C){u=C}}})})(Ot);var go=Ot.exports;const vo=je(go);var Pt={exports:{}};(function(t,n){(function(o,r){t.exports=r()})(Ae,function(){var o="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(c,l,u){var s=l.prototype;u.utc=function(f){var k={date:f,utc:!0,args:arguments};return new l(k)},s.utc=function(f){var k=u(this.toDate(),{locale:this.$L,utc:!0});return f?k.add(this.utcOffset(),o):k},s.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var i=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),i.call(this,f)};var S=s.init;s.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else S.call(this)};var _=s.utcOffset;s.utcOffset=function(f,k){var T=this.$utils().u;if(T(f))return this.$u?0:T(this.$offset)?_.call(this):this.$offset;if(typeof f=="string"&&(f=function(E){E===void 0&&(E="");var y=E.match(r);if(!y)return null;var L=(""+y[0]).match(a)||["-",0,0],w=L[0],D=60*+L[1]+ +L[2];return D===0?0:w==="+"?D:-D}(f),f===null))return this;var R=Math.abs(f)<=16?60*f:f;if(R===0)return this.utc(k);var v=this.clone();if(k)return v.$offset=R,v.$u=!1,v;var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(R+h,o)).$offset=R,v.$x.$localOffset=h,v};var C=s.format;s.format=function(f){var k=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return C.call(this,k)},s.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var F=s.toDate;s.toDate=function(f){return f==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():F.call(this)};var P=s.diff;s.diff=function(f,k,T){if(f&&this.$u===f.$u)return P.call(this,f,k,T);var R=this.local(),v=u(f).local();return P.call(R,v,k,T)}}})})(Pt);var yo=Pt.exports;const bo=je(yo);nt.extend(bo);nt.extend(vo);nt.extend(ho);const Je=/\$\{([^}]+)\}/g;function we(t){if(!t)return[];const n=new Set;return(t.cascadeDependFields??[]).forEach(o=>{const r=String(o??"").trim();r&&n.add(r)}),So(t.interface).forEach(o=>n.add(o)),[...n]}function So(t){if(!t||typeof t!="object")return[];const n=t.params;if(!n||typeof n!="object"||Array.isArray(n))return[];const o=new Set;return Ze(n,o),[...o]}function Ze(t,n){if(typeof t=="string"){Je.lastIndex=0;let o=Je.exec(t);for(;o!==null;){const r=String(o[1]??"").trim();r&&n.add(r),o=Je.exec(t)}return}if(Array.isArray(t)){t.forEach(o=>Ze(o,n));return}!t||typeof t!="object"||Object.values(t).forEach(o=>Ze(o,n))}function ot(t){return mt(t.type||t.fieldType||t.frontInputType)||mt(t.renderType)||"text"}function rt(t){return ht(t.type||t.fieldType||t.frontInputType)||ht(t.renderType)||"text"}function Ge(t){return jt(t).some(n=>n==="select_remote"||n==="select_remote_descr")}function wo(t){return jt(t).some(n=>n==="select_remote_descr")}function ie(t){if(t==null)return!0;if(typeof t=="string")return t.trim()==="";if(Array.isArray(t))return t.length===0||t.every(n=>ie(n));if(t instanceof Date)return Number.isNaN(t.getTime());if(typeof File<"u"&&t instanceof File)return t.name.trim()==="";if(typeof t=="object"){const n=Object.entries(t).filter(([o])=>!o.startsWith("__"));return n.length===0||n.every(([,o])=>ie(o))}return!1}function Nt(t){if(t instanceof Error)return!0;if(!t||typeof t!="object")return!1;const n=t;return typeof n.message=="string"&&(typeof n.stack=="string"||n.name==="Error")}function Lt(t,n,o="-"){const r=rt(t);return r==="empty"||ie(n)?o:Nt(n)?(console.error("[globalInfo] field value render failed",n),o):r==="select"?Mo(t,n,o):r==="switch"?xt(n)?G.t("common.是"):G.t("common.否"):r==="file"?Do(n,o):r==="multi-row"?Vo(n,o):String(n)}function qe(t,n){return Array.isArray(n)?n:Ye(t)?typeof n=="string"?n.split(",").map(o=>o.trim()).filter(Boolean):ie(n)?[]:[n]:[n]}function ko(t,n){return Ye(t)?qe(t,n):n}function _o(t,n){return!Ye(t)||!Array.isArray(n)?ie(n)?"":n:n.map(o=>String(o??"").trim()).filter(Boolean).join(",")}function xt(t){if(typeof t=="boolean")return t;if(typeof t=="number")return t!==0;const n=String(t??"").trim().toLowerCase();return["true","1","y","yes","t",G.t("common.是")].includes(n)}function De(t,n){if(ie(n))return!1;const o=t.raw&&typeof t.raw=="object"?t.raw:{};return[t.value,t.code,o.fieldvalue,o.value,o.code,o.emplid].some(r=>!ie(r)&&(r===n||String(r)===String(n)))}function Ke(t,n,o,r={}){const a=$o(r);return t.filter(c=>c.visible?!To(c,n,o,a,r.rows):!1)}function ft(t){return zt(t).some(o=>[G.t("common.序号"),"index","idx","seq","seqno","serial","order","rownum","row_no"].includes(o))}function pt(t){return zt(t).includes("seqno")}function Io(t){return[t.type,t.fieldType,t.frontInputType,t.raw?.type,t.raw?.fieldType,t.raw?.frontInputType].some(n=>At(n)==="attach")}function Rt(t,n,o="-"){return!Io(t)||ie(n)?[]:(Array.isArray(n)?n:[n]).map((a,c)=>Co(a,c,o)).filter(a=>!!a)}function Co(t,n,o){if(ie(t))return null;if(typeof t=="string"){const r=t.trim();return r?{key:String(n),text:r,action:{type:"direct",options:r}}:null}if(typeof File<"u"&&t instanceof File)return{key:String(n),text:t.name||o};if(t&&typeof t=="object"){const r=t,a=Bo(r,o),c=ge(r.url);if(c){const u={url:c},s=ge(r.name),i=ge(r.mimeType),S=ge(r.extension);return s&&(u.name=s),i&&(u.mimeType=i),S&&(u.extension=S),{key:String(n),text:a,action:{type:"direct",options:u}}}const l=ge(r.fileId);return l?{key:String(n),text:a,action:{type:"params",params:{fileId:l}}}:{key:String(n),text:a}}return{key:String(n),text:String(t).trim()||o}}function Bo(t,n){return ge(t.name)||ge(t.fileName)||ge(t.filename)||ge(t.url)||ge(t.fileId)||n}function ge(t){return String(t??"").trim()}function mt(t){const n=String(t??"").toLowerCase();return n==="upload"||n==="attachment"||n==="attach"?"file":n==="radio"||n==="checkbox"?"select":n==="text"||n==="textarea"||n==="select"||n==="select_remote"||n==="select_remote_descr"||n==="date"||n==="number"||n==="switch"||n==="file"||n==="html"||n==="code"||n==="multi-row"||n==="empty"?n==="select_remote_descr"?"select_remote":n:""}function ht(t){const n=String(t??"").toLowerCase();return n==="upload"||n==="attachment"||n==="attach"?"file":n==="radio"||n==="checkbox"||n==="select_remote"||n==="select_remote_descr"?"select":n==="select"||n==="switch"||n==="file"||n==="html"||n==="code"||n==="multi-row"||n==="empty"?n:n==="textarea"||n==="date"||n==="number"||n==="text"?"text":""}function $o(t){return t.rows?.length?t.rows:[t.values??{}]}function To(t,n,o,r,a){const c=o?.hiddenRule;return c?r.some(l=>{try{const u=l[t.code];return c({field:t,section:n,values:l,allValues:l,value:u,currentValue:u,rows:a})}catch(u){return console.error("[globalInfo] hidden rule failed",u),!1}}):!1}function zt(t){return Eo([t.id,t.key,t.code,t.name,t.label,t.prop])}function Eo(t){return Array.from(new Set(t.map(n=>At(n)).filter(Boolean)))}function At(t){return String(t??"").trim().toLowerCase()}function Mo(t,n,o){const r=Ye(t);if(Array.isArray(n)||r){const a=qe(t,n).map(l=>gt(t,l)||String(l??"").trim()).filter(Boolean),c=r?",":"、";return a.length>0?a.join(c):o}return gt(t,n)||String(n).trim()||o}function Ye(t){return!!t.props?.multiple&&(ot(t)==="select"||rt(t)==="select")}function gt(t,n){return t.options?.find(r=>De(r,n))?.label??""}function jt(t){const n=t.raw&&typeof t.raw=="object"?t.raw:{};return[t.type,t.fieldType,t.frontInputType,n.type,n.fieldType,n.frontInputType].map(o=>String(o??"").trim().toLowerCase()).filter(Boolean)}function Do(t,n){if(Array.isArray(t)){const o=t.map(r=>vt(r)).filter(Boolean);return o.length>0?o.join("、"):n}return vt(t)||n}function vt(t){if(typeof File<"u"&&t instanceof File)return t.name;if(t&&typeof t=="object"){const n=t;return String(n.name??n.fileName??n.filename??n.url??"").trim()}return String(t??"").trim()}function Vo(t,n){return Array.isArray(t)?t.map(r=>Nt(r)?(console.error("[globalInfo] multi-row field item render failed",r),""):ie(r)?"":r&&typeof r=="object"?JSON.stringify(r):String(r).trim()).filter(Boolean).join(`
3
3
  `)||n:String(t).trim()||n}function Gt(t=null){return{scheme:null,node:null,topNodes:[],treeNodes:[],activeNode:null,activeSection:null,sections:[],sectionMap:{},raw:t}}function Qe(t){const n=Qt(t),o=Zt(n),r=Ao(n).flatMap(a=>Wt(a,o));return{...Gt(t),scheme:o,topNodes:r,treeNodes:r}}function at(t,n,o){return t.map(r=>r.key===n||r.tagId===n||r.id===n?{...r,children:o,loaded:!0}:{...r,children:at(r.children,n,o)})}function qt(t,n={},o=null){const r=Qt(t),a=Zt(r,n),c=Oo(r,n,o),l=Object.fromEntries(c.map(u=>[u.key,u]));return{scheme:a,node:o,topNodes:[],treeNodes:[],activeNode:o,activeSection:c[0]??null,sections:c,sectionMap:l,raw:t}}function Kt(t){return t.multRow||t.htmlDisplay==="T"?"table":"form"}function Yt(t,n={}){const o=t.renderType==="table"?t.rows.map(s=>Xe(et(s))):[Xe(et(t.model))],r=te(t.operationInfo),a=te(r.editInfoSet),c=te(a.params),l=te(r.queryInfoSet),u=te(l.params);return{...n,infSchmId:n.infSchmId??Q(t.raw.infSchmId),emplid:n.emplid??Q(t.raw.emplid),tagId:J(t.tagId||c.tagId||u.tagId||n.tagId||t.requestTagId),infSetId:n.infSetId??t.infSetId,setId:n.setId??t.setId,infSetValues:o,section:t}}function Xe(t){return Object.fromEntries(Object.entries(t).map(([n,o])=>[n,Ut(o)]))}function Ut(t){return t===""?null:Array.isArray(t)?t.map(Ut):t&&typeof t=="object"?Xe(t):t}function Fo(t){const n=t;return!!(n&&typeof n=="object"&&typeof n.key=="string"&&typeof n.tagId=="string")}function Ht(t){const n=Xt(t);return(Array.isArray(n)?n:Ve(te(n),["options","list","records","data"])).map(r=>{const a=te(r),c=a.fieldvalue,l=c??a.value??a.code??a.emplid;return{id:a.id,code:c??a.value??a.code??a.emplid,label:J(a.fieldname??a.label??a.descr??a.name),labelDescr:Q(a.labelDescr),name:Q(a.name),value:l,raw:r}})}function Oo(t,n,o){const r=Ve(t,["sections","sets","list"]);return r.length>0?r.map(a=>yt(a,n,o,r.length===1)):t.infSetMark||t.infSetFields||t.fields?[yt(t,n,o,!0)]:[]}function yt(t,n,o,r){const a=te(t),c=Po(a.infSetMark??a),l=No(a.infSetFields??a.fields??[]),u=Kt(c),s=xo(a.infSetValues??a.rows??a.data,l,u),i=s[0]?et(s[0]):Jt(l),S=te(a.tag),_=J(a.tagId??a.infTagId??S.tagId??S.infTagId??c.raw.tagId??c.raw.infTagId),C=J(n.tagId??o?.tagId),F=J(o?.key),P=r?n.infSetId??o?.infSetId:void 0,f=r?n.setId:void 0,k=r?o?.code:void 0,T=c.setId||J(a.setId),R=J(a.infSetId)||T||J(P),v=T||J(f??R),h=c.code||J(a.code??k??v),E=v||h||R||_,y={key:E,id:E,setId:v,code:h,tagId:_,requestTagId:C||void 0,ownerNodeKey:F||void 0,infSetId:R,title:c.name||J(a.name??o?.tagName??E),renderType:u,mark:c,fields:l,model:i,rows:s,operationInfo:Ue(n.operationInfo??a.operationInfo),raw:a};return y.renderType==="form"&&s.length===0&&(y.rows=[{...i,__rowKey:`${E}-0`}]),y}function Po(t){const n=te(t),o=J(n.htmlDisplay||"F");return{name:J(n.name??n.title),parentName:Q(n.parentName),value:Q(n.value),type:Q(n.type),code:J(n.code),setId:J(n.setId??n.id??n.key),htmlDisplay:o,multRow:fe(n.multRow),isRequired:fe(n.isRequired),raw:n}}function No(t){return(Array.isArray(t)?t:[]).map((o,r)=>Lo(o,r))}function Lo(t,n){const o=te(t),r=J(o.code??o.fieldCode??o.prop??o.key??`field_${n}`),a=J(o.label??o.name??o.tagName??r),c=en(o.interface??o.interfaceField),l=bt(o.cascadeDependFields);return{id:J(o.id??o.key??o.prop??r),key:J(o.key??o.prop??r),code:r,label:a,value:o.value??o.defaultValue??"",type:qo(o),fieldType:Q(o.fieldType),frontInputType:Q(o.frontInputType),renderType:Go(o),required:fe(o.required??o.isRequired),readonly:fe(o.readonly??o.disabled),visible:o.visible===void 0?fe(o.visibled??!0):fe(o.visible),htmlDisplay:fe(o.htmlDisplay),multRow:fe(o.multRow),isRequired:fe(o.isRequired),disabled:o.disabled===void 0?void 0:fe(o.disabled),span:on(o.span??o.colSpan),width:St(o.width),minWidth:St(o.minWidth),placeholder:Q(o.placeholder),options:Ht(o.options),interface:c,cascadeClearFields:bt(o.cascadeClearFields),cascadeDependFields:we({cascadeDependFields:l,interface:c}),props:Ko(o),formItemProps:tn(o.formItemProps),raw:o}}function xo(t,n,o){if(Array.isArray(t)&&t.some(c=>{const l=te(c);return n.some(u=>l[u.code]!==void 0||l[u.key]!==void 0)}))return t.map((c,l)=>({...te(c),__rowKey:J(te(c).__rowKey??te(c).key??l)}));const r=Jt(n);return o==="form"&&Object.keys(r).length?[{...r,__rowKey:"0"}]:[]}function Jt(t){return t.reduce((n,o)=>(n[o.code||o.key]=o.value,n),{})}function Wt(t,n,o=""){const r=te(t),a=Ve(r,["children","list","tags"]).flatMap(l=>Wt(l,n,J(r.tagId??r.id??r.key))),c=jo(r.infSetList);return a.length===0&&c.length>0?c.map((l,u)=>zo(r,l,n,o,u)):[Ro(r,n,o,a)]}function Ro(t,n,o,r){const a=J(t.tagId??t.id??t.key),c=J(t.tagName??t.name??t.label??a);return{key:J(t.key??a),id:a,tagId:a,tagName:c,label:c,tagLevel:Q(t.tagLevel??t.level)??null,level:nn(t.tagLevel??t.level),parentTagId:Q(t.parentTagId??t.parentId??o),parentId:Q(t.parentTagId??t.parentId??o)??null,infSchmId:Q(t.infSchmId??n?.infSchmId),schemeId:J(t.infSchmId??n?.infSchmId),infSetId:Q(t.infSetId??t.setId),setId:Q(t.setId),code:Q(t.code),children:r,infSetList:[],operationInfo:Ue(t.operationInfo),loaded:r.length>0,raw:t}}function zo(t,n,o,r,a){const c=J(t.tagId??t.id??t.key),l=J(t.tagName??t.name??t.label??c),u=n.infSetId||J(n.setId),s=n.setId||u,i=u||`${c}-${a}`,S=n.code||Q(t.code??u);return{key:i,id:i,tagId:c,tagName:l,label:l,tagLevel:Q(t.tagLevel??t.level)??null,level:nn(t.tagLevel??t.level),parentTagId:Q(t.parentTagId??t.parentId??r),parentId:Q(t.parentTagId??t.parentId??r)??null,infSchmId:Q(t.infSchmId??o?.infSchmId),schemeId:J(t.infSchmId??o?.infSchmId),infSetId:u,setId:s,code:S,children:[],infSetList:[n],operationInfo:Ue(t.operationInfo),loaded:!0,raw:{...t,infSetId:u,setId:s,infSetList:[n.raw]}}}function Zt(t,n={}){const o=te(t.globalInfoSchmMark??t.scheme??t),r=J(o.infSchmId??n.infSchmId),a=J(o.emplid??n.emplid);return!r&&!a&&Object.keys(o).length===0?null:{infSchmId:r,emplid:a,id:r,mark:J(o.globalInfoSchmMark??t.globalInfoSchmMark),config:Array.isArray(t.globalInfoSchmConfig)?"":J(o.globalInfoSchmConfig??t.globalInfoSchmConfig),raw:o}}function Ao(t){if(Array.isArray(t.globalInfoSchmConfig))return t.globalInfoSchmConfig;const n=te(t.globalInfoSchmConfig),o=Ve(n,["children","tree","list","tags"]);return o.length?o:Ve(t,["children","tree","list","tags","records"])}function jo(t){return Array.isArray(t)?t.map(n=>{const o=te(n);return{infSetId:J(o.infSetId??o.setId??o.id),setId:Q(o.setId),code:Q(o.code),operationInfo:Ue(o.operationInfo),raw:o}}):[]}function Qt(t){return te(Xt(t))}function Xt(t){const n=te(t);return n.data??n.result??t}function Ve(t,n){for(const o of n){const r=t[o];if(Array.isArray(r))return r}return[]}function et(t){const n={...t};return delete n.__rowKey,delete n.fields,n}function en(t){const n=te(t);if(!(!n.method&&!n.url&&!n.params))return{...n,method:Q(n.method),url:Q(n.url),params:tn(n.params)}}function Ue(t){const n=te(t);if(Object.keys(n).length!==0)return Object.fromEntries(Object.entries(n).map(([o,r])=>[o,en(r)??r]))}function bt(t){if(!Array.isArray(t))return;const n=t.map(o=>J(o)).filter(Boolean);return n.length?n:void 0}function Go(t){if(fe(t.htmlDisplay))return"html";if(fe(t.multRow))return"multi-row";const n=J(t.renderType).toLowerCase();return n==="code"||n==="empty"?n:"text"}function qo(t){const n=J(t.fieldType??t.type??t.frontInputType??t.renderType).toLowerCase();return n==="dtpicker"||n.includes("date")?"date":n==="select_remote"||n==="select_remote_descr"?"select_remote":n.includes("select")||n.includes("enum")||n.includes("radio")||n.includes("checkbox")?"select":n.includes("number")||n.includes("int")?"number":n.includes("bool")||n.includes("switch")?"switch":n.includes("file")||n.includes("upload")||n.includes("attachment")||n==="attach"?"file":n.includes("textarea")||n.includes("text_area")?"textarea":"text"}function tn(t){const n=te(t);return Object.keys(n).length?n:void 0}function Ko(t){const n={...te(t.props)};return t.multiple!==void 0&&(n.multiple=fe(t.multiple)),Object.keys(n).length?n:void 0}function St(t){return typeof t=="string"||typeof t=="number"?t:void 0}function te(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function J(t){return t==null?"":String(t).trim()}function Q(t){return J(t)||void 0}function nn(t){const n=on(t);return n===void 0?null:n}function on(t){if(t==null||t==="")return;const n=Number(t);return Number.isFinite(n)?n:void 0}function fe(t){return typeof t=="string"?["true","1","y","yes","t",G.t("common.是")].includes(t.toLowerCase()):!!t}const ye=t=>t.key||t.code,me=t=>t.key||t.setId,Yo=t=>String(t??"").trim(),Oe=t=>Array.from(new Set(t.map(Yo).filter(Boolean))),$e=t=>!!(t&&typeof t=="object"&&"children"in t),Fe=t=>Oe([t?.key,t?.id,t?.setId,t?.infSetId,t?.tagId,t?.code,...(t?.infSetList??[]).map(n=>n.infSetId),...(t?.infSetList??[]).map(n=>n.setId)]),Uo=t=>Oe([t.key,t.id,t.setId,t.infSetId,t.tagId,t.code]);function rn(t,n,o){const r=Uo(t),a=Oe([o,...Fe(n)]);return a.length===0?!1:a.some(c=>r.includes(c))}function Ho(t,n,o){return Oe([o,...Fe(n)]).length===0?t:t.filter(a=>rn(a,n,o))}function Jo(t,n,o={}){const r=Object.keys(o).length>0?o:t.model,a=typeof n=="string"?n:ye(n),c=typeof n=="string"?t.fields.find(s=>ye(s)===a||s.code===a):n,u=we(c).some(s=>{if(s==="searchText"&&Object.prototype.hasOwnProperty.call(r,s)||s!=="searchText"&&!Zo(t,s))return!1;const i=r[s];return i==null||i===""});return{fieldKey:a,currentField:c,sourceModel:r,sourceRow:t.renderType==="table"?r:void 0,missingDependField:u}}function Wo(t){return!!(t&&!Ge(t)&&we(t).length===0&&(t.options??[]).length>0)}function Zo(t,n){return t.fields.some(o=>o.code===n||o.key===n||o.id===n||ye(o)===n)}function Qo(t){return Ht(t)}const pe=t=>t&&typeof t=="object"&&!Array.isArray(t)?t:{},xe=t=>{const n=pe(t);return!!(n.url||n.method||n.params)};function Xo(t){const n=pe(t.operationInfo).openTag;return xe(n)?n:void 0}function er(t,n,o){const r=pe(t?.operationInfo).queryInfoSet;if(xe(r))return r;const a=n?.infSetList.find(l=>l.infSetId===o),c=pe(a?.operationInfo).queryInfoSet;return xe(c)?c:void 0}function tr(t){const n=pe(t.operationInfo).editInfoSet;return xe(n)?n:void 0}async function an(t){const n=t.params===void 0?void 0:pe(t.params);return!t.formatter||!nr(t)?n:t.formatter({operation:t.operation,interfaceOperation:t.field?.interface,type:t.type,requestSource:t.requestSource,tagId:t.tagId,model:{...pe(t.section?.model),...pe(t.model)},row:t.row,section:t.section,field:t.field,node:t.node,viewModel:t.viewModel,sections:t.sections,activeNode:t.activeNode,activeSection:t.activeSection,searchText:t.searchText,params:n})}function nr(t){return t.requestSource==="inner"||t.requestSource==="sidebar"&&t.type==="openTag"}async function or(t){if(!t.service.requestOperation)throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");const n=t.operation.params===void 0?void 0:pe(t.operation.params),o=rr(n,t.context),r=await an({formatter:t.formatter,params:o,operation:t.operation,type:t.context?.type,requestSource:t.context?.requestSource,tagId:t.context?.tagId,section:t.context?.section,field:t.context?.field,model:t.context?.model,row:t.context?.row,node:t.context?.node,viewModel:t.viewModel,sections:t.sections,activeNode:t.activeNode,activeSection:t.activeSection,searchText:t.context?.searchText});return t.service.requestOperation({...t.operation,params:r},t.context?{...t.context,params:r}:t.context)}function rr(t,n){if(n?.params===void 0)return t;const o=pe(n.params);return n.type==="openTag"&&n.requestSource==="sidebar"?{...o,...pe(t)}:o}function Ee(t={}){return{loading:!1,saving:!1,error:null,loaded:!1,editing:!1,...t}}function ar(t){const n={...t.currentMap},o={...t.currentAliasMap},r=[...t.currentOrder],a={...t.currentStatusMap},c=Ho(t.nextViewModel.sections,t.node,t.targetKey),l=Oe([t.targetKey,...Fe(t.node)]).length>0,u=c.find(s=>rn(s,t.node,t.targetKey))??(l?null:t.nextViewModel.activeSection??c[0]??t.activeSection??null);return c.forEach(s=>{const i=me(s);n[i]=s,r.includes(i)||r.push(i),a[i]=Ee({...a[i],loaded:!0,loading:!1,error:null,editing:t.editingSectionKeys.includes(i)})}),t.targetKey&&u?o[t.targetKey]=me(u):t.targetKey&&(o[t.targetKey]=""),t.targetKey&&(a[t.targetKey]=Ee({...a[t.targetKey],loaded:!0,loading:!1,error:null,editing:!!(u&&t.editingSectionKeys.includes(me(u)))})),{sectionMap:n,sectionAliasMap:o,sectionOrder:r,sectionStatusMap:a,matchedSection:u,targetSections:c}}const lt=G.t("common.信息集不能为空,最后一条数据不可删除");function ln(t,n=[],o={}){return!t.mark.isRequired||n.length>0?null:lr(o.emptyMessage,{section:t,infSetValues:n})||lt}function lr(t,n){return typeof t=="function"?t(n):typeof t=="string"?t:lt}const Se=t=>new Error(`[GlobalInfo] ${t}`),sr=t=>[String(t.method??"").toLowerCase(),String(t.url??""),tt(pe(t.params))].join("::");function tt(t){return Array.isArray(t)?`[${t.map(n=>tt(n)).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([o],[r])=>o.localeCompare(r)).map(([o,r])=>`${JSON.stringify(o)}:${tt(r)}`).join(",")}}`:JSON.stringify(t)}const sn=t=>{const n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),a=e.shallowRef(null),c=e.shallowRef([]),l=e.shallowRef(null),u=e.shallowRef(null),s=e.shallowRef(null),i=e.shallowRef({}),S=e.shallowRef({}),_=e.ref([]),C=e.shallowRef({}),F=e.ref([]),P=e.computed(()=>{const m=_.value.map(B=>i.value[B]).filter(B=>!!B),p=Object.entries(i.value).filter(([B])=>!_.value.includes(B)).map(([,B])=>B);return[...m,...p]}),f=e.computed(()=>({loading:n.value,detailLoading:o.value,saving:r.value,editingSectionKeys:F.value,sectionMap:i.value,sectionStatusMap:Object.fromEntries(Object.entries(C.value).map(([m,p])=>[m,{...p,editing:F.value.includes(S.value[m]??m)}])),error:a.value})),k=()=>({adaptScene:t.adaptScene,emplid:t.emplid}),T=m=>({...k(),infSchmId:m.infSchmId,tagId:m.tagId,tagLevel:m.tagLevel,parentTagId:m.parentTagId}),R=(m=u.value,p=s.value)=>({...k(),infSchmId:m?.infSchmId,tagId:m?.tagId,infSetId:p?.infSetId??m?.infSetId,setId:p?.setId??m?.setId}),v=async(m,p)=>or({service:t.service,formatter:t.formatOperationParams,operation:m,context:p,viewModel:l.value,sections:P.value,activeNode:u.value,activeSection:s.value}),h=fo(async(m,p)=>{if(!t.service.requestOperation)throw Se("service.requestOperation is required");return t.service.requestOperation(m,p)},m=>sr(m)),E=async(m,p)=>{const B=await an({formatter:t.formatOperationParams,params:p?.params,operation:m,type:p?.type,requestSource:p?.requestSource,tagId:p?.tagId,section:p?.section,field:p?.field,model:p?.model,row:p?.row,node:p?.node,viewModel:l.value,sections:P.value,activeNode:u.value,activeSection:s.value,searchText:p?.searchText}),K={...m,params:B},Y=p&&{...p,params:B};return h(K,Y)},y=(m,p)=>{if(!p)return m[0]??null;for(const B of m){if(Fe(B).includes(p))return B;const K=y(B.children,p);if(K)return K}return null},L=(m=s.value)=>{if(m)return typeof m=="string"?m:$e(m)?$(m):me(m)},w=(m=s.value)=>{const p=L(m);if(!p)return null;const B=S.value[p]??p;return i.value[B]??null},D=(m=s.value)=>{const p=L(m);if(p)return S.value[p]??p},$=(m=s.value)=>{if(m)return typeof m=="string"?m:$e(m)?m.setId??m.infSetId??m.key:me(m)},A=(m=s.value)=>{if($e(m))return m;if(typeof m=="string"){const p=y(c.value,m);if(p)return p;const B=w(m);return B?.ownerNodeKey?y(c.value,B.ownerNodeKey)??u.value:B||u.value&&Fe(u.value).includes(m)?u.value:null}return m?.ownerNodeKey?y(c.value,m.ownerNodeKey)??u.value:u.value},Z=(m=s.value)=>!m||$e(m)?null:w(m),X=(m=s.value)=>{const p=$(m);if(!p)return Ee();const B=S.value[p]??p;return Ee({...C.value[p],...C.value[B],editing:F.value.includes(B)})},x=(m,p)=>{const B=$(m);B&&(C.value={...C.value,[B]:Ee({...C.value[B],...p,editing:F.value.includes(B)})})},M=(m=l.value?.raw??null,p=u.value)=>{const B=P.value,K=s.value&&B.find(Y=>me(Y)===me(s.value))?s.value:null;l.value={scheme:l.value?.scheme??null,node:p,topNodes:c.value,treeNodes:c.value,activeNode:p,activeSection:K,sections:B,sectionMap:i.value,raw:m},s.value=K},b=(m,p=u.value,B)=>{const K=ar({currentMap:i.value,currentAliasMap:S.value,currentOrder:_.value,currentStatusMap:C.value,editingSectionKeys:F.value,nextViewModel:m,node:p,targetKey:B,activeSection:s.value});return i.value=K.sectionMap,S.value=K.sectionAliasMap,_.value=K.sectionOrder,C.value=K.sectionStatusMap,l.value={...m,scheme:m.scheme??l.value?.scheme??null,topNodes:c.value,treeNodes:c.value,activeNode:p,activeSection:K.matchedSection,sections:K.targetSections,sectionMap:i.value},s.value=K.matchedSection,K.matchedSection},d=(m,p)=>{const B=D(m),K=B?i.value[B]:null;if(!B||!K)return;const Y=p(K);i.value={...i.value,[B]:Y},s.value=me(s.value??Y)===B?Y:s.value,M()},g=async(m=s.value??u.value)=>{const p=Z(m),B=A(m)??u.value,K=$(m);if(!B)return null;if(!t.service.requestOperation)throw Se("service.requestOperation is required");o.value=!0,a.value=null,x(K??B,{loading:!0,error:null});try{const Y=p?[{infSetId:p.infSetId,setId:p.setId,operationInfo:p.operationInfo,raw:p.raw}]:B.infSetList;if(Y.length===0)throw Se("node.infSetList is required");const de=await Promise.all(Y.map(async ee=>{const le=er(p,B,ee.infSetId),be=p?.requestTagId??p?.tagId??B.tagId,Ne={...R(B,p),tagId:be,infSetId:ee.infSetId,setId:ee.setId,operationInfo:ee.operationInfo};if(le){const Ce=await v(le,{type:"queryInfoSet",requestSource:"inner",tagId:be,node:B,section:p,params:Ne});return qt(Ce,Ne,B)}throw Se("infoSet.operationInfo.queryInfoSet is required")})),ae={...de[0],sections:de.flatMap(ee=>ee.sections),sectionMap:Object.fromEntries(de.flatMap(ee=>ee.sections).map(ee=>[ee.key,ee]))};return b(ae,B,K)}catch(Y){throw a.value=Y,x(K??B,{loading:!1,error:Y}),Y}finally{o.value=!1,x(K??B,{loading:!1})}},I=(m=s.value)=>g(m),V=(m=s.value)=>{if(!m)return null;if(!$e(m)&&typeof m!="string")return w(m);const p=$(m);return p?i.value[S.value[p]??p]??null:null},N=async(m=u.value)=>m?(await g(m),l.value):(l.value=null,s.value=null,i.value={},S.value={},_.value=[],C.value={},null),j=async m=>{const p=Xo(m);if(!p)return m.children;const B=T(m),K=await v(p,{type:"openTag",requestSource:"sidebar",tagId:m.tagId,node:m,params:B});return Qe(K).treeNodes},q=async m=>{if(m.loaded)return m.children;const p=await j(m);return p.length>0&&(c.value=at(c.value,m.key,p)),p},z=async m=>{const p=typeof m=="string"?y(c.value,m):m;return p?(u.value=p,s.value=null,F.value=[],await q(p),M(l.value?.raw,p),p):null},U=async()=>{const m=t.service.templateTree;if(!m)throw Se("service.templateTree is required");n.value=!0,a.value=null;try{const p=await m(k()),B=Qe(p),K=await Promise.all(B.treeNodes.map(async de=>{const ae=await j(de);return{...de,children:ae,loaded:ae.length>0||de.loaded}}));c.value=K,s.value=null,i.value={},S.value={},_.value=[],C.value={},F.value=[];const Y=y(K,t.initialActiveNodeKey)??y(K);return u.value=Y,l.value={...B,treeNodes:K,activeNode:Y,sectionMap:i.value,sections:P.value},c.value}catch(p){throw a.value=p,p}finally{n.value=!1}},O=async()=>{const m=L();await I(s.value??u.value);const p=P.value.find(B=>me(B)===m);return p&&(s.value=p),M(),l.value},H=(m=s.value)=>{const p=D(m);return!!(p&&F.value.includes(p))},oe=(m=s.value)=>{const p=D(m);!p||H(p)||(F.value=[...F.value,p],x(p,{editing:!0}))},ne=(m=s.value)=>{const p=D(m);p&&(F.value=F.value.filter(B=>B!==p),x(p,{editing:!1}))},re=(m,p,B)=>{const K=typeof p=="string"?p:ye(p);d(m,Y=>{const ae=(typeof p=="string"?Y.fields.find(le=>ye(le)===K||le.code===K):p)?.cascadeClearFields??[],ee={...Y.model,[K]:B};return ae.forEach(le=>{ee[le]=""}),{...Y,model:ee,rows:Y.renderType==="form"?[{...Y.rows[0],...ee}]:Y.rows,fields:Y.fields.map(le=>{const be=ye(le);return be===K||le.code===K?{...le,value:B}:ae.includes(be)||ae.includes(le.code)?{...le,value:""}:le})}})},ce=async(m,p,B={},K={})=>{const Y=w(m);if(!Y)return[];const de={...B,...K.searchText!==void 0?{searchText:K.searchText}:{}},{fieldKey:ae,currentField:ee,sourceModel:le,sourceRow:be,missingDependField:Ne}=Jo(Y,p,de),Ce=ee?.interface;if(!ee||!Ce)return ee?.options??[];if(Wo(ee))return ee.options??[];if(Ne)return d(Y,Be=>({...Be,fields:Be.fields.map(ve=>ye(ve)===ae||ve.code===ae?{...ve,options:[]}:ve)})),[];const Cn=await E({...Ce},{type:"fieldOptions",requestSource:"inner",tagId:Y.requestTagId??Y.tagId,node:A(Y),section:Y,field:ee,params:pe(Ce.params),model:le,row:be,searchText:K.searchText}),ut=Qo(Cn);return d(Y,Be=>({...Be,fields:Be.fields.map(ve=>ye(ve)===ae||ve.code===ae?{...ve,options:ut}:ve)})),ut},he=(m,p)=>{if(Array.isArray(p)){ue(m,p);return}d(m,B=>({...B,model:p,rows:B.renderType==="form"?[{...B.rows[0],...p}]:B.rows,fields:B.fields.map(K=>({...K,value:p[ye(K)]}))}))},ue=(m,p)=>{d(m,B=>({...B,rows:p,data:p}))},Ie={loadTree:U,selectNode:z,loadDetail:N,reloadActiveSection:O,loadSection:g,reloadSection:I,getSection:V,getSectionStatus:X,startEdit:oe,cancelEdit:ne,updateField:re,loadFieldOptions:ce,updateModel:he,updateTableRows:ue,saveRow:(m,p={},B=-1)=>{const Y=[...w(m)?.rows??[]];Y.splice(B>=0?B:Y.length,B>=0?1:0,p),ue(m,Y)},deleteRow:(m,p)=>{const B=w(m),K=typeof p=="string"?Number(p):p,Y=(B?.rows??[]).filter((de,ae)=>ae!==K);ue(m,Y)},saveSection:async(m=s.value)=>{const p=L(m),B=w(m);if(!B)return null;const K=tr(B);if(!K)throw Se("section.operationInfo.editInfoSet is required");r.value=!0,a.value=null,p&&p!==me(B)&&x(p,{saving:!0,error:null}),x(B,{saving:!0,error:null});try{const{tagId:Y,...de}=R(u.value,B),ae=Yt(B,de),ee=ln(B,ae.infSetValues??[],{emptyMessage:t.renderConfig?.requiredInfoSetEmptyMessage});if(ee)throw new Error(ee);const le=await v(K,{type:"editInfoSet",requestSource:"inner",tagId:B.requestTagId??B.tagId,node:u.value,section:B,params:ae,model:B.model});return ne(B),await I(B),le}catch(Y){throw a.value=Y,p&&p!==me(B)&&x(p,{saving:!1,error:Y}),x(B,{saving:!1,error:Y}),Y}finally{r.value=!1,p&&p!==me(B)&&x(p,{saving:!1}),x(B,{saving:!1})}},isEditing:H};return e.watch(()=>t.emplid,()=>{(t.autoLoad??!0)&&U()}),e.onMounted(()=>{(t.autoLoad??!0)&&U()}),{viewModel:l,nodes:c,sections:P,sectionMap:i,sectionStatusMap:C,activeNode:u,activeSection:s,state:f,actions:Ie}},ir=e.defineComponent({name:"GlobalInfoProvider",__name:"GlobalInfoProvider",props:{service:{},adaptScene:{},emplid:{},autoLoad:{type:Boolean,default:!0},initialActiveNodeKey:{},renderConfig:{},formatOperationParams:{}},setup(t){const n=t,o=sn(n),{viewModel:r,nodes:a,sections:c,activeNode:l,activeSection:u,state:s,actions:i}=o;return(S,_)=>e.renderSlot(S.$slots,"default",e.normalizeProps(e.guardReactiveProps({viewModel:e.unref(r),nodes:e.unref(a),sections:e.unref(c),activeNode:e.unref(l),activeSection:e.unref(u),state:e.unref(s),actions:e.unref(i),renderConfig:n.renderConfig})))}});function cn(t){if(t.action){if(t.action.type==="direct"){G.JtAttachmentPreview(t.action.options);return}G.JtAttachmentPreview.openByParams(t.action.params)}}const cr={key:0,class:"global-info-field-control__option"},ur={class:"global-info-field-control__option-label"},dr={key:0,class:"global-info-field-control__option-descr"},fr=["disabled","accept","multiple"],pr={key:0,class:"global-info-field-control__file-preview-list"},mr=["onClick"],hr={key:1,class:"global-info-field-control__file-text"},gr={key:2,class:"global-info-field-control__file-separator"},vr={key:1,class:"global-info-field-control__file-text"},yr={key:2,class:"global-info-field-control__file-upload"},br=e.defineComponent({name:"GlobalInfoFieldControl",__name:"GlobalInfoFieldControl",props:{field:{},modelValue:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change","loadOptions"],setup(t,{emit:n}){const o=t,r=n,a=["textarea","html","code","multi-row"],c=e.ref(null),l=e.computed(()=>ot(o.field)),u=e.computed(()=>Ge(o.field)),s=e.computed(()=>wo(o.field)),i=e.computed(()=>o.disabled||o.field.disabled||o.field.readonly),S=e.computed(()=>!!o.field.props?.multiple),_=e.computed(()=>o.modelValue===void 0||o.modelValue===null?"":String(o.modelValue)),C=e.computed(()=>a.includes(l.value)?o.field.props?.resize??"vertical":void 0),F=e.computed(()=>{if(o.modelValue===void 0||o.modelValue===null||o.modelValue==="")return;const b=typeof o.modelValue=="number"?o.modelValue:Number(o.modelValue);return Number.isFinite(b)?b:void 0}),P=e.computed(()=>ko(o.field,o.modelValue)),f=e.computed(()=>(o.field.options??[]).map(b=>({...b,value:L(b)}))),k=e.computed(()=>{const b=o.field.props?.activeValue??o.field.props?.["active-value"],d=o.field.props?.inactiveValue??o.field.props?.["inactive-value"];return b!==void 0||d!==void 0?o.modelValue??d??!1:xt(o.modelValue)}),T=e.computed(()=>l.value==="code"?5:1),R=e.computed(()=>l.value==="file"&&!ie(o.modelValue)),v=e.computed(()=>Lt(o.field,o.modelValue,G.t("common.请选择文件"))),h=e.computed(()=>Rt(o.field,o.modelValue,G.t("common.请选择文件"))),E=e.computed(()=>o.field.placeholder?o.field.placeholder:u.value?G.t("common.请输入关键词"):l.value==="select"?G.t("common.请选择"):l.value==="date"?G.t("common.请选择日期"):l.value==="file"?G.t("common.请选择文件"):G.t("common.请输入"));let y;function L(b){if(Array.isArray(P.value)){const d=P.value.find(g=>De(b,g));if(d!==void 0)return d}return De(b,P.value)?P.value:b.value}function w(b){r("update:modelValue",$(b))}function D(b){r("change",$(b))}function $(b){return l.value==="select"||l.value==="select_remote"?_o(o.field,b):b}function A(b){b&&r("loadOptions",u.value?{searchText:""}:void 0)}function Z(b){u.value&&(y&&clearTimeout(y),y=setTimeout(()=>{r("loadOptions",{searchText:b})},300))}function X(){i.value||c.value?.click()}function x(b){cn(b)}e.onBeforeUnmount(()=>{y&&clearTimeout(y)});function M(b){const d=b.target,g=Array.from(d.files??[]),I=o.field.props?.multiple?g:g[0]??null;w(I),D(I)}return(b,d)=>{const g=W.ElOption,I=W.ElSelect,V=W.ElDatePicker,N=W.ElInputNumber,j=W.ElSwitch,q=W.ElInput;return l.value==="select"||l.value==="select_remote"?(e.openBlock(),e.createBlock(I,e.mergeProps({key:0,class:"global-info-field-control"},b.field.props,{"model-value":P.value,placeholder:E.value,disabled:i.value,"collapse-tags":S.value,"collapse-tags-tooltip":S.value,"max-collapse-tags":1,filterable:u.value||!!b.field.props?.filterable,remote:u.value||!!b.field.props?.remote,"remote-method":u.value?Z:b.field.props?.remoteMethod,clearable:"",onVisibleChange:A,"onUpdate:modelValue":w,onChange:D}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,z=>(e.openBlock(),e.createBlock(g,{key:String(z.value),label:z.label,value:z.value},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",cr,[e.createElementVNode("div",ur,e.toDisplayString(z.label),1),z.labelDescr?(e.openBlock(),e.createElementBlock("div",dr,e.toDisplayString(z.labelDescr),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:2},1032,["label","value"]))),128))]),_:1},16,["model-value","placeholder","disabled","collapse-tags","collapse-tags-tooltip","filterable","remote","remote-method"])):l.value==="date"?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,class:"global-info-field-control"},b.field.props,{"model-value":b.modelValue,placeholder:E.value,disabled:i.value,type:"date","value-format":"YYYY-MM-DD","onUpdate:modelValue":w,onChange:D}),null,16,["model-value","placeholder","disabled"])):l.value==="number"?(e.openBlock(),e.createBlock(N,e.mergeProps({key:2,class:"global-info-field-control"},b.field.props,{"model-value":F.value,placeholder:E.value,disabled:i.value,"controls-position":"right","onUpdate:modelValue":w,onChange:D}),null,16,["model-value","placeholder","disabled"])):l.value==="switch"?(e.openBlock(),e.createBlock(j,e.mergeProps({key:3,class:"global-info-field-control global-info-field-control--switch"},b.field.props,{"model-value":k.value,disabled:i.value,"onUpdate:modelValue":w,onChange:D}),null,16,["model-value","disabled"])):l.value==="file"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["global-info-field-control global-info-field-control--file",{"is-disabled":i.value,"is-empty":!R.value,"is-filled":R.value}]),onClick:X},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:c,class:"global-info-field-control__file-input",type:"file",disabled:i.value,accept:String(b.field.props?.accept??""),multiple:!!b.field.props?.multiple,onChange:M},null,40,fr),h.value.length?(e.openBlock(),e.createElementBlock("span",pr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(z,U)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:z.key},[z.action?(e.openBlock(),e.createElementBlock("button",{key:0,class:"global-info-field-control__file-preview",type:"button",onClick:e.withModifiers(O=>x(z),["stop","prevent"])},e.toDisplayString(z.text),9,mr)):(e.openBlock(),e.createElementBlock("span",hr,e.toDisplayString(z.text),1)),U<h.value.length-1?(e.openBlock(),e.createElementBlock("span",gr,"、")):e.createCommentVNode("",!0)],64))),128))])):R.value?(e.openBlock(),e.createElementBlock("span",vr,e.toDisplayString(v.value),1)):(e.openBlock(),e.createElementBlock("span",yr,e.toDisplayString(e.unref(G.t)("common.上传")),1))],2)):l.value==="empty"?(e.openBlock(),e.createBlock(q,{key:5,class:"global-info-field-control","model-value":"",disabled:"",placeholder:"-"})):(e.openBlock(),e.createBlock(q,e.mergeProps({key:6,class:["global-info-field-control",{"global-info-field-control--textarea":a.includes(l.value),"global-info-field-control--code":l.value==="code"}]},b.field.props,{"model-value":_.value,placeholder:E.value,disabled:i.value,type:a.includes(l.value)?"textarea":"text",rows:a.includes(l.value)?T.value:void 0,resize:C.value,"onUpdate:modelValue":w,onChange:D}),null,16,["class","model-value","placeholder","disabled","type","rows","resize"]))}}}),st=se(br,[["__scopeId","data-v-2b58fdda"]]),Sr=["innerHTML"],wr={key:1,class:"global-info-field-value global-info-field-value--code"},kr={key:2,class:"global-info-field-value global-info-field-value--file"},_r=["onClick"],Ir={key:1},Cr={key:2},Br=e.defineComponent({name:"GlobalInfoFieldValue",__name:"GlobalInfoFieldValue",props:{field:{},value:{},emptyText:{default:"-"}},setup(t){const n=t,o=e.computed(()=>rt(n.field)),r=e.computed(()=>o.value==="empty"||ie(n.value)),a=e.computed(()=>Lt(n.field,n.value,n.emptyText)),c=e.computed(()=>Rt(n.field,n.value,n.emptyText));function l(u){cn(u)}return(u,s)=>o.value==="html"&&!r.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"global-info-field-value global-info-field-value--html",innerHTML:a.value},null,8,Sr)):o.value==="code"&&!r.value?(e.openBlock(),e.createElementBlock("pre",wr,e.toDisplayString(a.value),1)):c.value.length?(e.openBlock(),e.createElementBlock("span",kr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i.key},[i.action?(e.openBlock(),e.createElementBlock("button",{key:0,class:"global-info-field-value__attachment-preview",type:"button",onClick:_=>l(i)},e.toDisplayString(i.text),9,_r)):(e.openBlock(),e.createElementBlock("span",Ir,e.toDisplayString(i.text),1)),S<c.value.length-1?(e.openBlock(),e.createElementBlock("span",Cr,"、")):e.createCommentVNode("",!0)],64))),128))])):(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["global-info-field-value",{"global-info-field-value--multi-row":o.value==="multi-row","global-info-field-value--file":o.value==="file"&&!r.value}])},e.toDisplayString(a.value),3))}}),it=se(Br,[["__scopeId","data-v-efe9888d"]]);function $r(t){const n=ot(t);return(n==="select"||n==="select_remote")&&!!t.interface}function Re(t,n,o={},r=""){const a=n.key||n.id||n.code,l=we(n).map(u=>`${u}:${String(o[u]??"")}`).join("|");return[t,r,a,l].join("::")}function ze(t,n,o){return Array.isArray(t.options)&&t.options.length>0?n===o?!0:!n&&we(t).length===0:!1}function un(t={}){return Object.prototype.hasOwnProperty.call(t,"searchText")}function dn(t,n){const o=new Set([n.key,n.id,n.code].map(r=>String(r??"").trim()).filter(Boolean));return o.size===0?!1:we(t).some(r=>o.has(r))}function fn(t,n,o){return $r(t)?o?!0:(Ge(t),!ie(n)):!1}function pn(t,n){return[t.code,t.key,t.id].map(r=>n[r]).filter(r=>!ie(r))[0]??t.value}function mn(t,n){return Ge(t)?{searchText:n==null?"":String(n)}:{}}const Tr={class:"global-info-form-renderer__label"},Er={key:0,class:"global-info-form-renderer__required"},Mr=e.defineComponent({name:"GlobalInfoFormRenderer",__name:"GlobalInfoFormRenderer",props:{section:{},node:{},editing:{type:Boolean},state:{},actions:{},model:{},onUpdateModel:{type:Function},renderConfig:{}},setup(t){const n=t,o=e.useSlots(),r=e.computed(()=>n.model??n.section.model),a=new Map,c=e.computed(()=>Ke(n.section.fields,n.section,n.renderConfig,{values:r.value})),l=Dt(async(h,E,y)=>n.actions.loadFieldOptions(n.section,h,E,y),h=>`${n.section.key}:${T(h)}`);function u(h,E){const y={...r.value,[h.code]:E};(h.cascadeClearFields??[]).forEach(L=>{y[L]=""}),n.onUpdateModel?.(y),n.onUpdateModel||n.actions.updateField(n.section,h,E),s(h,E,y),F(y,h)}function s(h,E,y){const L=n.renderConfig?.onFieldBusinessChange;if(L)try{const w=i(h,E),D={field:h,value:E,section:n.section,model:y,values:y,node:n.node,activeNode:n.node,sections:S(),sectionValues:_(n.section,y),actions:n.actions,selectedOption:w[0],selectedOptions:w};Promise.resolve(L(D)).catch($=>{console.error("[GlobalInfoFormRenderer] field business change failed",$)})}catch(w){console.error("[GlobalInfoFormRenderer] field business change failed",w)}}function i(h,E){const y=qe(h,E);return(h.options??[]).filter(L=>y.some(w=>De(L,w)))}function S(){return Object.values(n.state.sectionMap)}function _(h,E){const L=S().flatMap(w=>{const D=w.key===h.key?E:w.renderType==="table"?w.rows:w.model;return[w.key,w.id,w.setId,w.infSetId,w.code].filter(Boolean).map($=>[String($),D])});return Object.fromEntries(L)}async function C(h,E={},y=r.value){const L=y,w=T(h),D=Re(n.section.key,h,L),$=a.get(w);if(!un(E)&&ze(h,$,D)){a.set(w,D);return}try{if(E.searchText!==void 0){await l(h,L,E);return}await n.actions.loadFieldOptions(n.section,h,L,E),a.set(w,D)}catch(Z){console.error("[GlobalInfoFormRenderer] load field options failed",Z)}}async function F(h=r.value,E){for(const y of c.value){if(E&&!dn(y,E))continue;const L=pn(y,h);if(!R(y,L))continue;const w=Re(n.section.key,y,h),D=T(y),$=a.get(D);if(ze(y,$,w)){a.set(D,w);continue}$!==w&&await C(y,mn(y,L),h)}}e.watch(()=>n.section.key,()=>{a.clear()}),e.watch(()=>n.editing,()=>{F()},{immediate:!0});function P(h){const E=r.value[h.code];return{field:h,section:n.section,sectionView:n.section,node:n.node,editing:n.editing,modelValue:E,value:E,state:n.state,actions:n.actions,updateModelValue:y=>u(h,y)}}function f(h){const E=String(h.code||"").trim(),y=E?`field-${E}`:"";if(y&&o[y])return y;const L=y.toLowerCase();return L!==y&&o[L]?L:""}function k(h){return h.span?Math.min(Math.max(h.span,1),24):6}function T(h){return h.key||h.id||h.code}function R(h,E){return fn(h,E,n.editing)}function v(h){return h.required||h.isRequired}return(h,E)=>{const y=W.ElFormItem,L=W.ElCol,w=W.ElRow,D=W.ElForm;return e.openBlock(),e.createBlock(D,{class:"global-info-form-renderer",model:r.value,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(w,{gutter:24},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,$=>(e.openBlock(),e.createBlock(L,{key:T($),span:k($)},{default:e.withCtx(()=>[e.createVNode(y,e.mergeProps({prop:$.code,ref_for:!0},$.formItemProps),{label:e.withCtx(()=>[e.createElementVNode("span",Tr,[v($)?(e.openBlock(),e.createElementBlock("span",Er,"*")):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString($.label),1)])]),default:e.withCtx(()=>[f($)?e.renderSlot(h.$slots,f($),e.mergeProps({key:0,ref_for:!0},P($)),void 0,!0):h.editing&&!$.readonly?(e.openBlock(),e.createBlock(st,{key:1,field:$,"model-value":r.value[$.code],section:h.section,onLoadOptions:A=>C($,A),"onUpdate:modelValue":A=>u($,A)},null,8,["field","model-value","section","onLoadOptions","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(it,{key:2,field:$,value:r.value[$.code],section:h.section},null,8,["field","value","section"]))]),_:2},1040,["prop"])]),_:2},1032,["span"]))),128))]),_:3})]),_:3},8,["model"])}}}),hn=se(Mr,[["__scopeId","data-v-a2728a86"]]),gn=e.defineComponent({name:"GlobalInfoDeleteConfirm",__name:"GlobalInfoDeleteConfirm",props:{title:{default:G.t("common.确认删除吗?")},confirmText:{default:G.t("common.确认")},cancelText:{default:G.t("common.取消")}},emits:["confirm","cancel"],setup(t){return(n,o)=>{const r=W.ElPopconfirm;return e.openBlock(),e.createBlock(r,{title:n.title,"confirm-button-text":n.confirmText,"cancel-button-text":n.cancelText,width:"240","popper-class":"global-info-delete-confirm",onConfirm:o[0]||(o[0]=a=>n.$emit("confirm")),onCancel:o[1]||(o[1]=a=>n.$emit("cancel"))},{reference:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-button-text","cancel-button-text"])}}}),Dr={class:"global-info-table-renderer__table-scroll"},Vr={class:"global-info-table-renderer__header"},Fr={key:0,class:"global-info-table-renderer__required"},Or=e.defineComponent({name:"GlobalInfoTableRenderer",__name:"GlobalInfoTableRenderer",props:{section:{},node:{},editing:{type:Boolean},state:{},actions:{},showAdd:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},renderConfig:{}},setup(t){const n=t,o=e.useSlots(),r=e.computed(()=>n.section.fields.some(d=>pt(d))),a=e.computed(()=>r.value),c=e.computed(()=>n.renderConfig?.sequenceLabel??G.t("common.序号")),l=e.computed(()=>n.renderConfig?.sequenceWidth??56),u=e.computed(()=>{const d=n.renderConfig?.sequenceStart;return typeof d=="number"&&Number.isFinite(d)?d:1}),s=e.computed(()=>{const d=Ke(n.section.fields,n.section,n.renderConfig,{rows:n.section.rows,values:n.section.model});return a.value?d.filter(g=>!Z(g)):d}),i=new Map,S=Dt(async(d,g,I)=>n.actions.loadFieldOptions(n.section,d,g,I),(d,g)=>`${n.section.key}:${M(g)}:${$(d)}`);function _(d){n.actions.deleteRow(n.section,d)}function C(d,g){const I=n.renderConfig?.rowDeleteVisibleRule;return n.showDelete&&(typeof I=="function"?I({section:n.section,row:d,rowIndex:g,node:n.node,state:n.state,actions:n.actions}):d.allowDelete!==!1)}function F(d,g,I,V){const N=n.section.rows.slice(),j=I.cascadeClearFields??[],q={...d,__rowKey:M(d),[I.code]:V};j.forEach(z=>{q[z]=""}),N[g]={...q},n.actions.updateTableRows(n.section,N),P(I,V,q,g,N),v(I,q)}function P(d,g,I,V,N){const j=n.renderConfig?.onFieldBusinessChange;if(j)try{const q=f(d,g),z={...n.section.model,...I},U={field:d,value:g,section:n.section,model:z,values:z,row:I,rowIndex:V,rows:N,node:n.node,activeNode:n.node,sections:k(),sectionValues:T(n.section,N),actions:n.actions,selectedOption:q[0],selectedOptions:q};Promise.resolve(j(U)).catch(O=>{console.error("[GlobalInfoTableRenderer] field business change failed",O)})}catch(q){console.error("[GlobalInfoTableRenderer] field business change failed",q)}}function f(d,g){const I=qe(d,g);return(d.options??[]).filter(V=>I.some(N=>De(V,N)))}function k(){return Object.values(n.state.sectionMap)}function T(d,g){const V=k().flatMap(N=>{const j=N.key===d.key?g:N.renderType==="table"?N.rows:N.model;return[N.key,N.id,N.setId,N.infSetId,N.code].filter(Boolean).map(q=>[String(q),j])});return Object.fromEntries(V)}async function R(d,g,I={},V=g){const N=M(V),j=`${N}:${$(d)}`,q=Re(n.section.key,d,V,N),z=i.get(j);if(!un(I)&&ze(d,z,q)){i.set(j,q);return}try{if(I.searchText!==void 0){await S(d,V,I);return}await n.actions.loadFieldOptions(n.section,d,V,I),i.set(j,q)}catch(O){console.error("[GlobalInfoTableRenderer] load field options failed",O)}}async function v(d,g){const I=g?[g]:n.section.rows;for(const V of I){const N=M(V);for(const j of s.value){if(d&&!dn(j,d))continue;const q=pn(j,V);if(!L(j,q))continue;const z=Re(n.section.key,j,V,N),U=`${N}:${$(j)}`,O=i.get(U);if(ze(j,O,z)){i.set(U,z);continue}O!==z&&await R(j,V,mn(j,q))}}}function h(d,g,I){const V=g[d.code];return{field:d,section:n.section,sectionView:n.section,node:n.node,row:g,rowIndex:I,editing:n.editing,modelValue:V,value:V,state:n.state,actions:n.actions,updateModelValue:N=>F(g,I,d,N)}}function E(d){const g=String(d.code||"").trim(),I=g?`field-${g}`:"";if(I&&o[I])return I;const V=I.toLowerCase();return V!==I&&o[V]?V:""}function y(d){return!d.readonly&&!d.disabled}function L(d,g){return fn(d,g,n.editing)}function w(d){return d.width??(ft(d)?56:void 0)}function D(d){if(!d.width)return d.minWidth??(ft(d)?56:void 0)}function $(d){return d.key||d.id||d.code}function A(d){return u.value+d}function Z(d){return pt(d)}let X=0;const x=new WeakMap;function M(d){const g=d.__rowKey??d.key??d.id??d.setId??d.infSetId;if(g!=null&&g!=="")return String(g);const I=d,V=x.get(I);if(V)return V;X+=1;const N=`local-${X}`;return x.set(I,N),N}function b(d){return d.required||d.isRequired}return e.watch(()=>n.section.key,()=>{i.clear()}),e.watch(()=>n.editing,()=>{v()},{immediate:!0}),(d,g)=>{const I=W.ElTableColumn,V=e.resolveComponent("Delete"),N=W.ElIcon,j=W.ElButton,q=W.ElTable;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["global-info-table-renderer",{"global-info-table-renderer--editing":d.editing}])},[e.createElementVNode("div",Dr,[e.createVNode(q,{class:"global-info-table-renderer__table",data:d.section.rows,fit:!0,"table-layout":"auto","row-key":M},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createBlock(I,{key:0,type:"index",label:c.value,width:l.value,index:A},null,8,["label","width"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,z=>(e.openBlock(),e.createBlock(I,{key:$(z),prop:z.code,label:z.label,width:w(z),"min-width":D(z)},{header:e.withCtx(()=>[e.createElementVNode("span",Vr,[b(z)?(e.openBlock(),e.createElementBlock("span",Fr,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(z.label),1)])]),default:e.withCtx(({row:U,$index:O})=>[E(z)?e.renderSlot(d.$slots,E(z),e.mergeProps({key:0,ref_for:!0},h(z,U,O)),void 0,!0):d.editing&&y(z)?(e.openBlock(),e.createBlock(st,{key:1,field:z,"model-value":U[z.code],section:d.section,row:U,"row-index":O,onLoadOptions:H=>R(z,U,H),"onUpdate:modelValue":H=>F(U,O,z,H)},null,8,["field","model-value","section","row","row-index","onLoadOptions","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(it,{key:2,field:z,value:U[z.code],section:d.section,row:U,"row-index":O},null,8,["field","value","section","row","row-index"]))]),_:2},1032,["prop","label","width","min-width"]))),128)),d.editing?(e.openBlock(),e.createBlock(I,{key:1,label:e.unref(G.t)("common.操作"),width:"104",fixed:"right"},{default:e.withCtx(({row:z,$index:U})=>[C(z,U)?(e.openBlock(),e.createBlock(gn,{key:0,onConfirm:O=>_(U)},{default:e.withCtx(()=>[e.createVNode(j,{class:"global-info-table-renderer__delete",link:"",type:"danger"},{default:e.withCtx(()=>[e.createVNode(N,{class:"global-info-table-renderer__delete-icon"},{default:e.withCtx(()=>[e.createVNode(V)]),_:1}),e.createTextVNode(e.toDisplayString(e.unref(G.t)("common.删除")),1)]),_:1})]),_:2},1032,["onConfirm"])):e.createCommentVNode("",!0)]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:3},8,["data"])])],2)}}}),vn=se(Or,[["__scopeId","data-v-ef398e69"]]),yn=e.defineComponent({name:"GlobalInfoAutoRenderer",__name:"GlobalInfoAutoRenderer",props:{section:{},node:{},editing:{type:Boolean},state:{},actions:{},renderConfig:{}},setup(t){return(n,o)=>n.section.renderType==="table"?(e.openBlock(),e.createBlock(vn,{key:0,section:n.section,node:n.node,editing:n.editing,state:n.state,actions:n.actions,"render-config":n.renderConfig},null,8,["section","node","editing","state","actions","render-config"])):(e.openBlock(),e.createBlock(hn,{key:1,section:n.section,node:n.node,editing:n.editing,state:n.state,actions:n.actions,"render-config":n.renderConfig},null,8,["section","node","editing","state","actions","render-config"]))}});function bn(t){return wn(t.code)}function Sn(t,n){return bn(t)||wn(n?.code)}function ct(t,n,o){if(!o)return"";const r=`${n}-${o}`;if(t[r])return r;const a=r.toLowerCase();return a!==r&&t[a]?a:""}function wn(t){return typeof t=="string"?t.trim():""}const kn=e.defineComponent({name:"GlobalInfoSectionOutlet",__name:"GlobalInfoSectionOutlet",props:{section:{},node:{},editing:{type:Boolean},state:{},actions:{},renderConfig:{}},setup(t){const n=t,o=e.useSlots(),r=e.computed(()=>Ke(n.section.fields,n.section,n.renderConfig,{values:n.section.model,rows:n.section.renderType==="table"?n.section.rows:void 0})),a=e.computed(()=>n.editing??n.actions.isEditing(n.section)),c=e.computed(()=>n.section.renderType==="table"&&n.section.rows.length===0||r.value.length===0),l=e.computed(()=>{const s=ct(o,"section",Sn(n.node??{},n.section)),i=u(n.section.renderType);return[s,i,"default"].find(S=>!!(S&&o[S]))??""});function u(s){return s==="form"||s==="table"?s:""}return(s,i)=>l.value?e.renderSlot(s.$slots,l.value,{key:0,section:s.section,sectionView:s.section,node:s.node,editing:a.value,isEmpty:c.value,empty:c.value,fields:r.value,renderConfig:s.renderConfig,state:s.state,actions:s.actions}):(e.openBlock(),e.createBlock(yn,{key:1,section:s.section,node:s.node,editing:a.value,state:s.state,actions:s.actions,"render-config":s.renderConfig},null,8,["section","node","editing","state","actions","render-config"]))}}),Pr=e.defineComponent({name:"GlobalInfoSlotErrorBoundary",props:{boundaryKey:{type:[String,Number],default:""},label:{type:String,default:""}},emits:{error:t=>!0},setup(t,{emit:n,slots:o}){const r=e.ref(!1);e.watch(()=>t.boundaryKey,()=>{r.value=!1}),e.onErrorCaptured(c=>(a(c),!1));function a(c){r.value=!0,console.error(`[GlobalInfoSlotErrorBoundary] ${t.label||"section"} slot render failed`,c),n("error",c)}return()=>{if(r.value)return o.fallback?.()??null;try{return o.default?.()??null}catch(c){return a(c),o.fallback?.()??null}}}}),Nr={class:"global-info-section-block"},Lr={key:0,class:"global-info-section-block__header"},xr={class:"global-info-section-block__title-wrap"},Rr={class:"global-info-section-block__title"},zr={key:0,class:"global-info-section-block__actions"},Ar={class:"global-info-section-block__body"},jr={class:"global-info-section-block__status"},Gr={class:"global-info-section-block__status"},qr={class:"global-info-section-block__status"},Kr=e.defineComponent({name:"GlobalInfoSectionBlock",__name:"GlobalInfoSectionBlock",props:{node:{},state:{},actions:{},hideHeader:{type:Boolean},renderConfig:{},onEdit:{type:Function},onCancel:{type:Function},onSave:{type:Function}},setup(t){const n=t,o=e.useSlots(),r=e.ref(!1),a=e.ref(null),c=e.ref(null),l=e.computed(()=>!!n.hideHeader),u=e.computed(()=>n.actions.getSectionStatus(n.node)),s=e.computed(()=>n.actions.getSection(n.node)??c.value),i=e.computed(()=>{const w=s.value;return w?Ke(w.fields,w,n.renderConfig,{values:w.model,rows:w.renderType==="table"?w.rows:void 0}):[]}),S=e.computed(()=>s.value?.title||n.node.tagName||n.node.label||"-"),_=e.computed(()=>!!(s.value&&n.actions.isEditing(s.value))),C=e.computed(()=>s.value?.renderType==="table"),F=e.computed(()=>r.value||u.value.loading),P=e.computed(()=>T(a.value||u.value.error)),f=e.computed(()=>{const w=s.value;return w?w.renderType==="table"&&w.rows.length===0||i.value.length===0:!0}),k=e.computed(()=>({node:n.node,section:s.value,sectionView:s.value,fields:i.value,renderConfig:n.renderConfig,title:S.value,editing:_.value,loading:F.value,error:a.value||u.value.error,errorMessage:P.value,isEmpty:f.value,empty:f.value,sectionStatus:u.value,state:n.state,actions:n.actions,reload:L,handleEdit:R,handleCancel:v,handleAddTableRow:h,handleSave:E}));function T(w){return w?w instanceof Error?w.message:String(w):""}async function R(){const w=s.value;w&&(await n.onEdit?.(w,n.node),n.onEdit||n.actions.startEdit(w))}async function v(){const w=s.value;w&&(await n.onCancel?.(w,n.node),n.onCancel||n.actions.cancelEdit(w))}function h(){const w=s.value;if(!w)return;const D=w.fields.reduce(($,A)=>($[A.code]=A.value??"",$),{__rowKey:`new-${Date.now()}`});n.actions.saveRow(w,D,-1)}async function E(){const w=s.value;if(w)try{if(n.onSave){await n.onSave(w,n.node);return}await n.actions.saveSection(w)}catch(D){a.value=D,console.error("[GlobalInfoSectionBlock] save section failed",D)}}function y(w){a.value=w}async function L(){r.value=!0,a.value=null,c.value=null;try{c.value=await n.actions.loadSection(n.node)}catch(w){a.value=w,console.error("[GlobalInfoSectionBlock] load section failed",w)}finally{r.value=!1}}return e.onMounted(()=>{L()}),e.watch(()=>n.node.key,()=>{L()}),(w,D)=>{const $=W.ElButton;return e.openBlock(),e.createElementBlock("section",Nr,[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",Lr,[e.renderSlot(w.$slots,"header",e.normalizeProps(e.guardReactiveProps(k.value)),()=>[e.createElementVNode("div",xr,[D[0]||(D[0]=e.createElementVNode("span",{class:"global-info-section-block__marker"},null,-1)),e.createElementVNode("h3",Rr,e.toDisplayString(S.value),1)]),e.renderSlot(w.$slots,"actions",e.normalizeProps(e.guardReactiveProps(k.value)),()=>[s.value?(e.openBlock(),e.createElementBlock("div",zr,[_.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode($,{class:"global-info-section-block__cancel",disabled:u.value.saving,onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(G.t)("common.取消")),1)]),_:1},8,["disabled"]),C.value?(e.openBlock(),e.createBlock($,{key:0,class:"global-info-section-block__add",disabled:u.value.saving,onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(G.t)("common.新增")),1)]),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.createVNode($,{class:"global-info-section-block__confirm",loading:u.value.saving,onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.value?e.unref(G.t)("common.确认"):e.unref(G.t)("common.保存")),1)]),_:1},8,["loading"])],64)):(e.openBlock(),e.createBlock($,{key:0,class:"global-info-section-block__edit",disabled:u.value.saving||F.value,onClick:R},{default:e.withCtx(()=>[D[1]||(D[1]=e.createElementVNode("svg",{class:"global-info-section-block__edit-icon",viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false"},[e.createElementVNode("path",{d:"M0.437665 12C0.316763 11.9845 0.205604 11.9251 0.125029 11.8329C0.0444551 11.7407 0 11.622 0 11.499C0 11.3761 0.0444551 11.2574 0.125029 11.1652C0.205604 11.0729 0.316763 11.0135 0.437665 10.998H11.5623C11.6832 11.0135 11.7944 11.0729 11.875 11.1652C11.9555 11.2574 12 11.3761 12 11.499C12 11.622 11.9555 11.7407 11.875 11.8329C11.7944 11.9251 11.6832 11.9845 11.5623 12H0.437665ZM9.59963 0.233088L10.72 1.36329C10.868 1.51347 10.9511 1.71663 10.9511 1.92839C10.9511 2.14015 10.868 2.34331 10.72 2.49349L3.61614 9.6354C3.54189 9.70969 3.45384 9.76846 3.35702 9.80835C3.26021 9.84824 3.15654 9.86846 3.05196 9.86785H1.57397C1.4686 9.86785 1.36754 9.82562 1.29303 9.75046C1.21852 9.6753 1.17666 9.57336 1.17666 9.46707V7.93609C1.17606 7.8306 1.1961 7.72602 1.23564 7.62836C1.27519 7.5307 1.33345 7.44188 1.4071 7.36698L8.47921 0.233088C8.62809 0.0837965 8.82949 0 9.03942 0C9.24935 0 9.45074 0.0837965 9.59963 0.233088ZM2.16993 8.01624V8.8659H3.01223L9.88569 1.9324L9.04339 1.07473L2.16993 8.01624Z",fill:"currentColor"})],-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(G.t)("common.编辑")),1)]),_:1},8,["disabled"]))])):e.createCommentVNode("",!0)],!0)],!0)])),e.createElementVNode("div",Ar,[F.value?e.renderSlot(w.$slots,"loading",e.normalizeProps(e.mergeProps({key:0},k.value)),()=>[e.createElementVNode("div",jr,e.toDisplayString(e.unref(G.t)("common.加载中___")),1)],!0):!s.value||f.value?e.renderSlot(w.$slots,"empty",e.normalizeProps(e.mergeProps({key:1},k.value)),()=>[e.createElementVNode("div",Gr,e.toDisplayString(e.unref(G.t)("common.暂无数据")),1)],!0):(e.openBlock(),e.createBlock(Pr,{key:2,"boundary-key":w.node.key,label:S.value,onError:y},{fallback:e.withCtx(()=>[e.renderSlot(w.$slots,"empty",e.normalizeProps(e.guardReactiveProps(k.value)),()=>[e.createElementVNode("div",qr,e.toDisplayString(e.unref(G.t)("common.暂无数据")),1)],!0)]),default:e.withCtx(()=>[e.createVNode(kn,{section:s.value,node:w.node,editing:_.value,state:w.state,actions:w.actions,"render-config":w.renderConfig},e.createSlots({_:2},[e.renderList(e.unref(o),(A,Z)=>({name:Z,fn:e.withCtx(X=>[e.renderSlot(w.$slots,Z,e.normalizeProps(e.guardReactiveProps({...k.value,...X})),void 0,!0)])}))]),1032,["section","node","editing","state","actions","render-config"])]),_:3},8,["boundary-key","label"]))])])}}}),_n=se(Kr,[["__scopeId","data-v-55cf6792"]]),Yr={class:"global-info-group"},Ur={class:"global-info-group__header"},Hr={class:"global-info-group__title"},Jr={class:"global-info-group__body"},Wr=["id"],Zr={class:"global-info-group__empty"},Qr=e.defineComponent({name:"GlobalInfoGroup",__name:"GlobalInfoGroup",props:{group:{},children:{},state:{},actions:{},index:{},renderConfig:{}},setup(t){const n=t,o=e.useSlots(),r=e.computed(()=>n.group.tagName||n.group.label||"-"),a=e.computed(()=>n.children.length<=1);function c(i,S){const _=n.actions.getSection(i);return{node:i,group:n.group,sectionNode:i,section:_,sectionView:_,state:n.state,actions:n.actions,renderConfig:n.renderConfig,index:S,editing:!!(_&&n.actions.isEditing(_)),sectionStatus:n.actions.getSectionStatus(i),isSelfSection:u(i,0)===u(n.group,0),handleEdit:()=>n.actions.startEdit(i),handleCancel:()=>n.actions.cancelEdit(i),handleSave:()=>n.actions.saveSection(i.key)}}function l(i){const S=n.actions.getSection(i);return ct(o,"section",Sn(i,S))}function u(i,S){return i.key||i.id||i.infSetId||i.tagId||`${S}`}function s(i){return`global-info-section-${u(i,0)}`}return(i,S)=>(e.openBlock(),e.createElementBlock("section",Yr,[e.renderSlot(i.$slots,"header",{group:i.group,children:i.children,state:i.state,actions:i.actions,renderConfig:i.renderConfig,title:r.value,index:i.index,isEmpty:i.children.length===0},()=>[e.createElementVNode("header",Ur,[S[0]||(S[0]=e.createElementVNode("span",{class:"global-info-group__marker"},null,-1)),e.createElementVNode("h2",Hr,e.toDisplayString(r.value),1)])],!0),e.createElementVNode("div",Jr,[e.unref(o).default?e.renderSlot(i.$slots,"default",{key:0,group:i.group,children:i.children,state:i.state,actions:i.actions,renderConfig:i.renderConfig,index:i.index,isEmpty:i.children.length===0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.children,(_,C)=>(e.openBlock(),e.createElementBlock("div",{id:s(_),key:u(_,C),class:"global-info-group__section"},[l(_)?e.renderSlot(i.$slots,l(_),e.mergeProps({key:0,ref_for:!0},c(_,C)),void 0,!0):e.unref(o).section?e.renderSlot(i.$slots,"section",e.mergeProps({key:1,ref_for:!0},c(_,C)),void 0,!0):(e.openBlock(),e.createBlock(_n,{key:2,node:_,state:i.state,actions:i.actions,"hide-header":a.value,"render-config":i.renderConfig},e.createSlots({_:2},[e.renderList(e.unref(o),(F,P)=>({name:P,fn:e.withCtx(f=>[e.renderSlot(i.$slots,P,e.mergeProps({ref_for:!0},f),void 0,!0)])}))]),1032,["node","state","actions","hide-header","render-config"]))],8,Wr))),128)),i.children.length===0?e.renderSlot(i.$slots,"empty",{key:0,node:null,group:i.group,sectionNode:null,state:i.state,actions:i.actions,index:-1,renderConfig:i.renderConfig},()=>[e.createElementVNode("div",Zr,e.toDisplayString(e.unref(G.t)("common.暂无数据")),1)],!0):e.createCommentVNode("",!0)],64))])]))}}),In=se(Qr,[["__scopeId","data-v-e86a3d32"]]),Xr={class:"global-info-sections"},ea=e.defineComponent({name:"GlobalInfoSections",__name:"GlobalInfoSections",props:{nodes:{},state:{},actions:{},renderConfig:{}},setup(t){const n=t,o=e.useSlots(),r=e.computed(()=>{const S=n.nodes.filter(T=>a(T).length>0),_=n.nodes.filter(T=>a(T).length===0),C=_.filter(T=>c(T)),F=_.filter(T=>!c(T)),P=S.map(T=>({group:T,children:a(T)})),f=C.map(T=>({group:T,children:[T]}));if(P.length===0)return C.length>0?f:i(F);const k=i(F);return[...P,...f,...k]});function a(S){return S.children??[]}function c(S){return!String(S.parentId||S.parentTagId||"").trim()}function l(S){return ct(o,"group",bn(S))}function u(S,_){return S.key||S.id||S.tagId||`${_}`}function s(S){const _=S[0],C=_?.raw??{},F=String(C.parentTagName||C.parentName||C.parentLabel||_?.parentId||G.t("common.信息"));return{..._,key:`${_?.parentId||_?.parentTagId||_?.key||"global-info"}-group`,id:String(_?.parentId||_?.parentTagId||_?.id||"global-info-group"),tagId:String(_?.parentTagId||_?.parentId||_?.tagId||"global-info-group"),tagName:F,label:F,children:S}}function i(S){const _=new Map;return S.forEach(C=>{const F=String(C.parentId||C.parentTagId||"global-info-flat"),P=_.get(F)??[];P.push(C),_.set(F,P)}),Array.from(_.values()).map(C=>({group:s(C),children:C}))}return(S,_)=>(e.openBlock(),e.createElementBlock("div",Xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(C,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u(C.group,F)},[l(C.group)?e.renderSlot(S.$slots,l(C.group),{key:0,group:C.group,children:C.children,state:S.state,actions:S.actions,renderConfig:S.renderConfig,index:F,isEmpty:C.children.length===0},void 0,!0):e.unref(o).group?e.renderSlot(S.$slots,"group",{key:1,group:C.group,children:C.children,state:S.state,actions:S.actions,renderConfig:S.renderConfig,index:F,isEmpty:C.children.length===0},void 0,!0):(e.openBlock(),e.createBlock(In,{key:2,group:C.group,children:C.children,state:S.state,actions:S.actions,"render-config":S.renderConfig,index:F},e.createSlots({_:2},[e.renderList(e.unref(o),(P,f)=>({name:f,fn:e.withCtx(k=>[e.renderSlot(S.$slots,f,e.mergeProps({ref_for:!0},k),void 0,!0)])}))]),1032,["group","children","state","actions","render-config","index"]))],64))),128))]))}}),ta=se(ea,[["__scopeId","data-v-d4ed3f80"]]);function na(t,n={}){G.installLocale(t,n)}exports.JtAttachmentPreview=G.JtAttachmentPreview;exports.JtAttachmentPreviewByParams=G.JtAttachmentPreviewByParams;exports.getJtLocale=G.getLocale;exports.installLocale=G.installLocale;exports.normalizeLocale=G.normalizeLocale;exports.resetJtLocale=G.resetLocale;exports.setJtLocale=G.setLocale;exports.setupJtAttachmentPreview=G.setupJtAttachmentPreview;exports.DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE=lt;exports.GlobalInfoAutoRenderer=yn;exports.GlobalInfoDeleteConfirm=gn;exports.GlobalInfoFieldControl=st;exports.GlobalInfoFieldValue=it;exports.GlobalInfoFormRenderer=hn;exports.GlobalInfoGroup=In;exports.GlobalInfoProvider=ir;exports.GlobalInfoSectionBlock=_n;exports.GlobalInfoSectionOutlet=kn;exports.GlobalInfoSections=ta;exports.GlobalInfoTableRenderer=vn;exports.JtButton=Te;exports.JtCascader=It;exports.JtCrudTable=ao;exports.JtDatePicker=Ct;exports.JtFilterBar=Tt;exports.JtFormItems=$t;exports.JtInput=Le;exports.JtPageHeader=uo;exports.JtPagination=Mt;exports.JtSelect=Bt;exports.JtTable=Et;exports.buildGlobalInfoUpdatePayload=Yt;exports.createEmptyGlobalInfoViewModel=Gt;exports.install=na;exports.isGlobalInfoNode=Fo;exports.mergeGlobalInfoChildren=at;exports.normalizeGlobalInfoDetail=qt;exports.normalizeGlobalInfoTree=Qe;exports.resolveGlobalInfoRenderType=Kt;exports.useGlobalInfoController=sn;exports.validateGlobalInfoRequiredInfoSet=ln;
package/dist/index.mjs CHANGED
@@ -916,7 +916,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
916
916
  }, 16, ["data", "row-key", "empty-text"]);
917
917
  };
918
918
  }
919
- }), zo = /* @__PURE__ */ be(No, [["__scopeId", "data-v-b3cdd414"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
919
+ }), zo = /* @__PURE__ */ be(No, [["__scopeId", "data-v-92c09ab1"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
920
920
  name: "JtPagination",
921
921
  __name: "JtPagination",
922
922
  props: {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .jt-attachment-preview-service-lock{overflow:hidden}.jt-attachment-preview-service{--jt-attachment-preview-service-image-fit: contain;position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:5vh 5vw;background:#00000080;color:#333}.jt-attachment-preview-service__modal{display:flex;flex-direction:column;width:90vw;height:90vh;overflow:hidden;border-radius:6px;background:#f7f7f7;box-shadow:0 2px 8px #1f232914}.jt-attachment-preview-service__header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:50px;border-bottom:1px solid #f5f5f5;background:#fff}.jt-attachment-preview-service__filename{position:relative;min-width:0;max-width:calc(90vw - 190px);padding-left:29px;overflow:hidden;font-size:16px;font-weight:500;line-height:50px;text-overflow:ellipsis;white-space:nowrap;color:#333}.jt-attachment-preview-service__filename:before{content:"";position:absolute;left:20px;top:50%;width:3px;height:10px;border-radius:1px;background:#e60000;transform:translateY(-50%)}.jt-attachment-preview-service__header-actions{display:flex;align-items:center;flex-shrink:0;height:100%}.jt-attachment-preview-service__top-download,.jt-attachment-preview-service__close{display:inline-flex;align-items:center;justify-content:center;height:100%;border:0;background:#fff;color:#0009;text-decoration:none;cursor:pointer}.jt-attachment-preview-service__top-download{gap:4px;min-width:72px;height:36px;padding:0 12px;font-size:16px;line-height:1;vertical-align:top}.jt-attachment-preview-service__close{width:42px;padding:0;font-size:22px;font-weight:400;line-height:1}.jt-attachment-preview-service__top-download:hover,.jt-attachment-preview-service__close:hover{background:#f9f9f9;color:#333}.jt-attachment-preview-service__download-icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;font-size:18px;line-height:1;transform:translateY(1px)}.jt-attachment-preview-service__download-icon svg{display:block}.jt-attachment-preview-service__download-text{display:inline-flex;align-items:center;height:18px;line-height:1}.jt-attachment-preview-service__body{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;background:#f7f7f7}.jt-attachment-preview-service__media,.jt-attachment-preview-service__iframe{display:block;width:100%;height:100%;border:0}.jt-attachment-preview-service__image-viewer{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.jt-attachment-preview-service__image{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:var(--jt-attachment-preview-service-image-fit);transform-origin:center center;transition:transform .16s ease;user-select:none;will-change:transform;-webkit-user-drag:none}.jt-attachment-preview-service__image--draggable{cursor:grab;touch-action:none}.jt-attachment-preview-service__image--dragging{cursor:grabbing;transition:none}.jt-attachment-preview-service__image-toolbar{position:absolute;left:50%;bottom:18px;z-index:2;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 8px;border-radius:4px;background:#000000a8;color:#fff;box-shadow:0 2px 8px #1f23291f;transform:translate(-50%)}.jt-attachment-preview-service__image-tool{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:#fff;font-size:16px;line-height:1;cursor:pointer}.jt-attachment-preview-service__image-tool:hover{background:#ffffff29}.jt-attachment-preview-service__image-scale{min-width:42px;color:#fff;font-size:12px;line-height:1;text-align:center}.jt-attachment-preview-service__audio{width:min(520px,100% - 32px)}.jt-attachment-preview-service__pdf-viewer{position:relative;width:100%;height:100%;overflow:hidden;background:#f7f7f7}.jt-attachment-preview-service__pdf-layout{display:flex;width:100%;height:100%;min-height:0}.jt-attachment-preview-service__pdf-layout--hidden{visibility:hidden}.jt-attachment-preview-service__pdf-outline{flex:0 0 220px;width:220px;height:100%;overflow:hidden;border-right:1px solid #f5f5f5;background:#fff}.jt-attachment-preview-service__pdf-outline-title{height:36px;padding:0 12px;border-bottom:1px solid #f5f5f5;color:#333;font-size:13px;font-weight:500;line-height:36px}.jt-attachment-preview-service__pdf-outline-list{height:calc(100% - 36px);overflow:auto;padding:8px 0}.jt-attachment-preview-service__pdf-outline-item{display:block;width:100%;height:32px;padding-right:10px;border:0;background:transparent;color:#0009;font-size:12px;line-height:32px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.jt-attachment-preview-service__pdf-outline-item:hover{background:#f9f9f9;color:#e60000}.jt-attachment-preview-service__pdf-outline-item:disabled{color:#00000080;cursor:not-allowed}.jt-attachment-preview-service__pdf-pages{display:flex;flex:1;flex-direction:column;align-items:center;gap:16px;min-width:0;min-height:100%;overflow:auto;padding:20px}.jt-attachment-preview-service__pdf-page{display:block;max-width:100%;background:#fff;box-shadow:0 2px 10px #1f232924}.jt-attachment-preview-service__pdf-state{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;color:#333;font-size:12px;text-align:center}.jt-attachment-preview-service__pdf-error{max-width:min(520px,90vw - 48px);color:#0009;font-size:11px;line-height:1.5}.jt-attachment-preview-service__detecting{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#333;text-align:center}.jt-attachment-preview-service__detecting-spinner{width:28px;height:28px;margin-bottom:14px;border:2px solid #d9d9d9;border-top-color:#e60000;border-radius:50%;animation:jt-attachment-preview-service-spin .8s linear infinite}.jt-attachment-preview-service__detecting-title{font-size:12px;font-weight:500}.jt-attachment-preview-service__detecting-desc{margin-top:6px;color:#0009;font-size:10px}@keyframes jt-attachment-preview-service-spin{to{transform:rotate(360deg)}}.jt-attachment-preview-service__pdf-fallback-tip{position:absolute;left:50%;bottom:16px;z-index:2;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:8px 12px;border-radius:4px;background:#000000b8;color:#fff;font-size:12px;transform:translate(-50%)}.jt-attachment-preview-service__fallback-download{border:0;background:transparent;flex-shrink:0;color:#fff;font-size:12px;text-decoration:underline;cursor:pointer}.jt-attachment-preview-service__empty,.jt-attachment-preview-service__unsupported{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:16px;text-align:center}.jt-attachment-preview-service__empty{color:#0009;font-size:14px}.jt-attachment-preview-service__file-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;max-width:calc(90vw - 48px);min-height:0}.jt-attachment-preview-service__preview-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}.jt-attachment-preview-service__preview-fallback-icon{display:block;width:72px;height:72px;object-fit:contain}.jt-attachment-preview-service__file-icon{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:44px;padding:0 6px;border-radius:4px;background:#2563eb;color:#fff;font-size:20px;font-weight:600;line-height:1}.jt-attachment-preview-service__unsupported-text{margin-top:12px;font-size:16px;color:#333;font-weight:500}.jt-attachment-preview-service__file-name{max-width:min(360px,90vw - 48px);margin-top:6px;overflow:hidden;color:#666;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.jt-attachment-preview-service__primary-download{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:34px;height:22px;margin-top:14px;padding:0 10px;border:0;border-radius:4px;background:#e60000;color:#fff;font-size:12px;text-decoration:none;cursor:pointer}.jt-attachment-preview-service__primary-download:hover{background:#e51e1b}:root{--color-primary: #e60000;--color-primary-light: #ff3a3a;--color-primary-hover: #e51e1b;--color-primary-bg-light: #ffe5e5;--color-primary-bg-lighter: #fdf7f7;--color-primary-bg-subtle: rgba(230, 0, 0, .05);--color-primary-bg-subtle-2: rgba(230, 0, 0, .1);--color-primary-tint-1: #ffecec;--color-primary-tint-2: #ffd1d1;--color-primary-tint-3: #f7b2b2;--color-bg-page: #f9f9f9;--color-bg-card: #ffffff;--color-bg-input: #f9fafb;--color-bg-table-header: #f6f3f3;--color-bg-elevated: #fbf9f9;--color-text-primary: #333333;--color-text-regular: rgba(0, 0, 0, .8);--color-text-secondary: rgba(0, 0, 0, .6);--color-text-tertiary: rgba(0, 0, 0, .4);--color-text-disabled: rgba(0, 0, 0, .2);--color-border-default: #e5e5e5;--color-border-light: #f5f5f5;--color-border-medium: #d9d9d9;--color-border-dark: #999999;--color-border-strong: #666666;--color-border-primary: #e60000;--color-link: #0066ff;--color-error: #e60000;--color-icon-gray: #a6a6a6;--gradient-primary-button: linear-gradient(90deg, #e60000 0%, #ff3a3a 100%);--gradient-secondary-button: linear-gradient(90deg, #ff3a3a 0%, #e60000 100%);--gradient-bg-soft: linear-gradient(90deg, #f9f9f9 0%, #ffecec 100%);--font-family-primary: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;--font-family-secondary: "Source Han Sans", "PingFang SC", sans-serif;--font-size-title-lg: 20px;--font-size-title: 16px;--font-size-body: 16px;--font-size-body-sm: 14px;--font-size-caption: 12px;--font-size-caption-sm: 10px;--font-size-ui: 13px;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--spacing-1: 2px;--spacing-2: 4px;--spacing-3: 8px;--spacing-4: 10px;--spacing-5: 12px;--spacing-6: 16px;--spacing-8: 20px;--spacing-10: 32px;--spacing-12: 50px;--spacing-16: 80px;--spacing-20: 160px;--radius-none: 0;--radius-xs: 2px;--radius-sm: 4px;--radius-md: 6px;--radius-base: 12px;--radius-lg: 14px;--radius-xl: 16px;--radius-pill: 50px;--shadow-card: 0px 2px 8px 0px rgba(0, 0, 0, .05);--shadow-dropdown: 0px 4px 4px 0px rgba(0, 0, 0, .1);--el-color-primary: #e60000;--el-color-primary-light-3: #f04d4d;--el-color-primary-light-5: #f38080;--el-color-primary-light-7: #f8b3b3;--el-color-primary-light-8: #facccc;--el-color-primary-light-9: #fde6e6;--el-color-primary-dark-2: #b80000;--el-border-color: #e5e5e5;--el-border-color-light: #e5e5e5;--el-border-color-lighter: #e5e5e5;--el-border-color-extra-light: #e5e5e5;--el-border-color-dark: #e5e5e5;--el-border-color-darker: #e5e5e5}[class^=jt-],[class*=" jt-"],[class^=jt-] *,[class*=" jt-"] *{box-sizing:border-box}.jt-button.el-button[data-v-28dbb12d]{--jt-button-icon-size: 14px;--jt-button-icon-gap: 6px;--jt-button-height: 28px;--jt-button-padding-x: 14px;--jt-button-radius: 4px;--jt-button-font-size: 14px;--jt-button-primary-color: #e60000;--jt-button-primary-bg: linear-gradient(90deg, #e60000 0%, #ff3a3a 100%);--el-button-hover-text-color: #333333;--el-button-hover-border-color: #e5e5e5;--el-button-hover-bg-color: #ffffff;--el-button-active-text-color: #333333;--el-button-active-border-color: #e5e5e5;--el-button-active-bg-color: #ffffff;height:var(--jt-button-height);min-width:64px;border-radius:var(--jt-button-radius);border:1px solid #e5e5e5;background:#fff;padding-left:var(--jt-button-padding-x);padding-right:var(--jt-button-padding-x);font-size:var(--jt-button-font-size);font-weight:400;color:#333}.jt-button.el-button.el-button--large[data-v-28dbb12d]{--jt-button-height: 36px}.jt-button.el-button.el-button--small[data-v-28dbb12d]{--jt-button-height: 28px;--jt-button-padding-x: 14px;--jt-button-font-size: 12px}.jt-button.el-button+.jt-button.el-button[data-v-28dbb12d]{margin-left:10px}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon{width:var(--jt-button-icon-size);height:var(--jt-button-icon-size);margin-right:var(--jt-button-icon-gap);font-size:var(--jt-button-icon-size)}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon svg,.jt-button.el-button[data-v-28dbb12d] .jt-button__icon img{width:var(--jt-button-icon-size);height:var(--jt-button-icon-size)}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon img{display:block}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon+span{margin-left:0}.jt-button.el-button[data-v-28dbb12d]:hover,.jt-button.el-button[data-v-28dbb12d]:focus,.jt-button.el-button[data-v-28dbb12d]:active{border-color:#e5e5e5;background:#fff;color:#333}.jt-button.el-button--primary[data-v-28dbb12d]{border:none;background:var(--jt-button-primary-bg);color:#fff}.jt-button.el-button--primary[data-v-28dbb12d]:hover,.jt-button.el-button--primary[data-v-28dbb12d]:focus{background:var(--jt-button-primary-bg);color:#fff}.jt-button.el-button--primary[data-v-28dbb12d] .el-icon{color:#fff}.jt-cascader{width:100%;--jt-cascader-text-color: #333333;--jt-cascader-placeholder-color: #999999;--jt-cascader-border-color: #e5e5e5;--jt-cascader-hover-border-color: #cccccc;--jt-cascader-focus-border-color: #e60000;--el-input-text-color: var(--jt-cascader-text-color);--el-input-placeholder-color: var(--jt-cascader-placeholder-color);--el-input-border-color: var(--jt-cascader-border-color);--el-input-hover-border-color: var(--jt-cascader-hover-border-color);--el-color-primary: var(--jt-cascader-focus-border-color);--jt-cascader-control-height: 36px;--el-component-size: var(--jt-cascader-control-height)}.jt-cascader.el-cascader--large{--jt-cascader-control-height: var(--el-component-size-large)}.jt-cascader.el-cascader--small{--jt-cascader-control-height: var(--el-component-size-small)}.jt-cascader .el-input,.jt-cascader .el-input__wrapper{height:var(--jt-cascader-control-height);min-height:var(--jt-cascader-control-height)}.jt-cascader .el-cascader__tags{height:var(--jt-cascader-control-height);max-height:var(--jt-cascader-control-height);align-items:center;flex-wrap:nowrap;overflow:hidden}.jt-cascader .el-cascader__tags .el-tag{flex:0 1 auto;min-width:0}.jt-cascader .el-cascader__tags .el-tag+.el-tag{flex:0 0 auto}.jt-cascader .el-cascader__search-input{width:0;min-width:0;flex:1 1 0}[data-v-3ee50dbc] .jt-date-picker.el-date-editor{--el-date-editor-width: 100%;--jt-date-picker-control-height: 36px;--jt-date-picker-text-color: #333333;--jt-date-picker-placeholder-color: #999999;--jt-date-picker-border-color: #e5e5e5;--jt-date-picker-hover-border-color: #cccccc;--jt-date-picker-focus-border-color: #e60000;--el-input-text-color: var(--jt-date-picker-text-color);--el-input-placeholder-color: var(--jt-date-picker-placeholder-color);--el-input-border-color: var(--jt-date-picker-border-color);--el-input-hover-border-color: var(--jt-date-picker-hover-border-color);--el-input-focus-border-color: var(--jt-date-picker-focus-border-color);--el-input-focus-border: var(--jt-date-picker-focus-border-color);--el-color-primary: var(--jt-date-picker-focus-border-color);--el-component-size: var(--jt-date-picker-control-height);min-height:var(--jt-date-picker-control-height)}[data-v-3ee50dbc] .jt-date-picker.el-date-editor .el-input__wrapper{min-height:var(--jt-date-picker-control-height)}.jt-input[data-v-10ac743d]{--jt-input-control-height: 36px;--jt-input-text-color: #333333;--jt-input-placeholder-color: #999999;--jt-input-border-color: #e5e5e5;--jt-input-hover-border-color: #cccccc;--jt-input-focus-border-color: #e60000;--el-input-text-color: var(--jt-input-text-color);--el-input-placeholder-color: var(--jt-input-placeholder-color);--el-input-border-color: var(--jt-input-border-color);--el-input-hover-border-color: var(--jt-input-hover-border-color);--el-input-focus-border-color: var(--jt-input-focus-border-color);--el-component-size: var(--jt-input-control-height)}.jt-input[data-v-10ac743d] .el-input__wrapper{min-height:var(--jt-input-control-height)}.jt-select[data-v-8e1bf362]{--jt-select-control-height: 36px;--jt-select-text-color: #333333;--jt-select-placeholder-color: #999999;--jt-select-border-color: #e5e5e5;--jt-select-hover-border-color: #cccccc;--jt-select-focus-border-color: #e60000;--el-input-text-color: var(--jt-select-text-color);--el-input-placeholder-color: var(--jt-select-placeholder-color);--el-input-border-color: var(--jt-select-border-color);--el-input-hover-border-color: var(--jt-select-hover-border-color);--el-color-primary: var(--jt-select-focus-border-color);--el-component-size: var(--jt-select-control-height)}.jt-select[data-v-8e1bf362] .el-select__wrapper{min-height:var(--jt-select-control-height)}.jt-form-items[data-v-d2355a20]{--jt-form-columns: 4;--jt-form-gap: 10px;--jt-form-column-gap: 10px;--jt-form-row-gap: 16px;--jt-form-control-height: 36px;--jt-form-control-radius: 8px;--jt-form-disabled-bg: #f9fafb;--jt-form-label-line-height: 20px;--jt-form-label-gap: 10px;--jt-form-label-color: #333333;--jt-form-label-font-weight: 400;--jt-form-required-color: #e60000;width:100%;display:grid;grid-template-columns:repeat(var(--jt-form-columns),minmax(0,1fr));column-gap:var(--jt-form-column-gap, var(--jt-form-gap));row-gap:var(--jt-form-row-gap, var(--jt-form-gap))}.jt-form-items__item[data-v-d2355a20]{margin:0;width:100%}.jt-form-items__item[data-v-d2355a20] .el-form-item__label{height:auto;line-height:var(--jt-form-label-line-height);margin-bottom:var(--jt-form-label-gap);font-size:14px;font-weight:var(--jt-form-label-font-weight);color:var(--jt-form-label-color)}.jt-form-items__item[data-v-d2355a20] .el-form-item__label:before{color:var(--jt-form-required-color)}.jt-form-items__actions[data-v-d2355a20]{margin:0;width:100%;align-self:end}.jt-form-items__item[data-v-d2355a20] .el-form-item__content{width:100%;min-width:0;line-height:var(--jt-form-control-height)}.jt-form-items__actions[data-v-d2355a20] .el-form-item__content{display:flex;justify-content:flex-end;align-items:center;width:100%;min-width:0}.jt-form-items__item[data-v-d2355a20] .el-input,.jt-form-items__item[data-v-d2355a20] .el-select,.jt-form-items__item[data-v-d2355a20] .el-cascader,.jt-form-items__item[data-v-d2355a20] .el-date-editor,.jt-form-items__item[data-v-d2355a20] .el-date-editor.el-input,.jt-form-items__item[data-v-d2355a20] .el-date-editor--daterange,.jt-form-items__item[data-v-d2355a20] .el-input__wrapper,.jt-form-items__item[data-v-d2355a20] .el-select__wrapper,.jt-form-items__item[data-v-d2355a20] .el-date-editor .el-input__wrapper{box-sizing:border-box;width:100%;min-width:0;height:var(--jt-form-control-height);min-height:var(--jt-form-control-height);border-radius:var(--jt-form-control-radius)}.jt-form-items__item[data-v-d2355a20] .el-input__inner,.jt-form-items__item[data-v-d2355a20] .el-select__placeholder,.jt-form-items__item[data-v-d2355a20] .el-cascader__placeholder,.jt-form-items__item[data-v-d2355a20] .el-range-input{height:calc(var(--jt-form-control-height) - 2px);line-height:calc(var(--jt-form-control-height) - 2px);font-size:14px}.jt-form-items__item[data-v-d2355a20] .el-input.is-disabled .el-input__wrapper,.jt-form-items__item[data-v-d2355a20] .el-select__wrapper.is-disabled,.jt-form-items__item[data-v-d2355a20] .el-cascader.is-disabled .el-input__wrapper,.jt-form-items__item[data-v-d2355a20] .el-date-editor.is-disabled,.jt-form-items__item[data-v-d2355a20] .el-date-editor .el-input__wrapper.is-disabled{background:var(--jt-form-disabled-bg)}.jt-form-items__item[data-v-d2355a20] .el-input.is-disabled .el-input__inner,.jt-form-items__item[data-v-d2355a20] .el-select.is-disabled .el-select__selected-item,.jt-form-items__item[data-v-d2355a20] .el-cascader.is-disabled .el-input__inner,.jt-form-items__item[data-v-d2355a20] .el-textarea.is-disabled .el-textarea__inner{color:#333;-webkit-text-fill-color:#333333}.jt-form-items__item[data-v-d2355a20] .el-textarea__inner{color:#333;font-size:14px;line-height:20px}.jt-filter-bar[data-v-fba58b18]{padding:var(--jt-filter-padding)}.jt-filter-bar__form[data-v-fba58b18]{width:100%;display:contents}.jt-filter-bar[data-v-fba58b18] .jt-form-items{grid-template-columns:repeat(var(--jt-filter-field-columns),minmax(0,1fr));column-gap:var(--jt-filter-column-gap);row-gap:var(--jt-filter-row-gap)}.jt-filter-bar[data-v-fba58b18] .jt-form-items__actions{grid-column:1/-1!important;width:100%;min-width:0;justify-self:end}.jt-filter-bar.is-single-filter[data-v-fba58b18] .jt-form-items__actions{grid-column:var(--jt-filter-actions-start)/-1!important}.jt-filter-bar[data-v-fba58b18] .jt-form-items__actions .el-form-item__content{width:100%;min-width:0}.jt-filter-bar__btns[data-v-fba58b18]{display:flex;justify-content:flex-end;align-items:center;width:var(--jt-filter-btns-width);height:28px;min-width:var(--jt-filter-btns-width);flex:0 0 var(--jt-filter-btns-width);text-align:right}.jt-filter-bar__btns[data-v-fba58b18] .jt-button.el-button{--jt-button-icon-gap: 4px;flex-shrink:0;min-width:max-content}.jt-filter-bar__btn-query.el-button--primary[data-v-fba58b18]{background:linear-gradient(90deg,#e60000,#ff3a3a);border-color:transparent}.jt-filter-bar__btn-query.el-button--primary[data-v-fba58b18]:hover,.jt-filter-bar__btn-query.el-button--primary[data-v-fba58b18]:focus{background:linear-gradient(90deg,#e60000,#ff3a3a);border-color:transparent}.jt-filter-bar__icon-arrow[data-v-fba58b18]{transition:transform .2s ease}.jt-filter-bar__icon-arrow.is-collapsed[data-v-fba58b18]{transform:rotate(180deg)}.jt-table[data-v-b3cdd414]{--jt-table-header-bg: #f9f9f9;--jt-table-row-striped-bg: #f9f9f9;--jt-table-row-height: 40px;--jt-table-row-gap: 10px;--jt-table-cell-line-height: 20px;--jt-table-radius: 6px;--jt-table-empty-min-height: 120px;--el-table-border-color: transparent;--el-table-bg-color: #fff;--el-table-tr-bg-color: #fff;--el-table-header-bg-color: var(--jt-table-header-bg);--el-table-header-text-color: #333333;--el-table-text-color: #333333;--el-table-row-hover-bg-color: transparent;--el-color-primary: #e60000;background:#fff;border-radius:var(--jt-table-radius)}.jt-table[data-v-b3cdd414] .el-table__inner-wrapper:before{height:0}.jt-table[data-v-b3cdd414] .el-table__header-wrapper{border-radius:var(--jt-table-radius);overflow:hidden}.jt-table[data-v-b3cdd414] .el-table__body{border-collapse:separate;border-spacing:0 var(--jt-table-row-gap)}.jt-table[data-v-b3cdd414] th.el-table__cell{height:var(--jt-table-row-height);background:#f9f9f9;font-size:14px;font-weight:400;color:#333;padding:0;border:none}.jt-table[data-v-b3cdd414] th.el-table__cell:first-child{border-radius:var(--jt-table-radius) 0 0 var(--jt-table-radius)}.jt-table[data-v-b3cdd414] th.el-table__cell:last-child{border-radius:0 var(--jt-table-radius) var(--jt-table-radius) 0}.jt-table[data-v-b3cdd414] th.el-table__cell .cell{padding:0 20px;line-height:20px;font-size:14px}.jt-table[data-v-b3cdd414] td.el-table__cell{height:var(--jt-table-row-height);font-size:14px;font-weight:500;color:#333;padding:0;border:none}.jt-table[data-v-b3cdd414] td.el-table__cell .cell{padding:0 12px;line-height:var(--jt-table-cell-line-height)}.jt-table[data-v-b3cdd414] td.el-table__cell .cell .el-checkbox .el-checkbox__inner{border-color:#333}.jt-table[data-v-b3cdd414] .el-table__row:nth-child(odd) td{background:#fff}.jt-table[data-v-b3cdd414] .el-table__row:nth-child(2n) td{background:var(--jt-table-row-striped-bg)}.jt-table[data-v-b3cdd414] .el-table__row td:first-child{border-radius:var(--jt-table-radius) 0 0 var(--jt-table-radius)}.jt-table[data-v-b3cdd414] .el-table__row td:last-child{border-radius:0 var(--jt-table-radius) var(--jt-table-radius) 0}.jt-table[data-v-b3cdd414] .el-table__fixed-right th.el-table__cell,.jt-table[data-v-b3cdd414] .el-table__fixed th.el-table__cell{background:var(--jt-table-header-bg)}.jt-table[data-v-b3cdd414] .el-table__fixed-right .el-table__row:nth-child(odd) td,.jt-table[data-v-b3cdd414] .el-table__fixed .el-table__row:nth-child(odd) td{background:#fff}.jt-table[data-v-b3cdd414] .el-table__fixed-right .el-table__row:nth-child(2n) td,.jt-table[data-v-b3cdd414] .el-table__fixed .el-table__row:nth-child(2n) td{background:var(--jt-table-row-striped-bg)}.jt-table[data-v-b3cdd414] .el-table__empty-block{min-height:120px}.jt-table[data-v-b3cdd414] .el-table__empty-text{line-height:20px}.jt-pagination[data-v-8f04a5d2]{--jt-pagination-height: 24px;--jt-pagination-gap: 8px;display:flex;justify-content:center;align-items:center;gap:var(--jt-pagination-gap);min-height:var(--jt-pagination-height);background:#fff}.jt-pagination[data-v-8f04a5d2] .el-pagination{--el-pagination-button-width: var(--jt-pagination-height);--el-pagination-button-height: var(--jt-pagination-height);--el-pagination-font-size: 14px;gap:14px;font-weight:400}.jt-pagination[data-v-8f04a5d2] .el-pager{gap:14px}.jt-pagination[data-v-8f04a5d2] .el-pager li{width:auto;height:var(--jt-pagination-height);min-width:var(--jt-pagination-height);border-radius:4px;border:1px solid #e1e4e7;font-size:12px;font-weight:400;color:#333;line-height:22px;padding:0 6px;margin:0;background:transparent}.jt-pagination[data-v-8f04a5d2] .el-pager li.is-active{background:#fdebe8;border-color:#e60000;color:#e60000}.jt-pagination[data-v-8f04a5d2] .btn-prev,.jt-pagination[data-v-8f04a5d2] .btn-next{width:var(--jt-pagination-height);height:var(--jt-pagination-height);min-width:var(--jt-pagination-height);border-radius:4px;border:1px solid #e1e4e7;padding:0;margin:0;background:transparent}.jt-pagination[data-v-8f04a5d2] .el-pagination__jump{height:var(--jt-pagination-height);font-size:14px;color:#333;margin-left:4px;line-height:var(--jt-pagination-height)}.jt-pagination[data-v-8f04a5d2] .el-pagination__jump .el-input{width:56px}.jt-pagination[data-v-8f04a5d2] .el-pagination__jump .el-input__wrapper{height:var(--jt-pagination-height);border-radius:4px;border:1px solid #e1e4e7;box-shadow:none!important;padding:0 4px}.jt-pagination[data-v-8f04a5d2] .el-pagination__sizes{display:none;height:var(--jt-pagination-height);margin:0 4px 0 0}.jt-pagination[data-v-8f04a5d2] .el-pagination__sizes .el-select__wrapper{min-height:var(--jt-pagination-height);border-radius:4px;box-shadow:0 0 0 1px #e1e4e7 inset;font-size:14px}.jt-pagination__count[data-v-8f04a5d2]{font-size:14px;font-weight:400;color:#333;line-height:20px}.jt-crud-table[data-v-3454628a]{--jt-crud-table-gap: 20px;--jt-crud-table-radius: 12px;--jt-crud-table-result-gap: 16px;--jt-crud-table-group-gap: 10px;width:100%;min-height:0;display:flex;flex-direction:column;gap:var(--jt-crud-table-gap);padding:0;border-radius:var(--jt-crud-table-radius);background:#fff}.jt-crud-table__result[data-v-3454628a]{min-height:0;display:flex;flex-direction:column;gap:var(--jt-crud-table-result-gap)}.jt-crud-table__table-group[data-v-3454628a]{min-height:0;display:flex;flex-direction:column;gap:var(--jt-crud-table-group-gap)}.jt-crud-table[data-v-3454628a] .jt-pagination{padding-top:0;flex-shrink:0}.jt-crud-table__toolbar[data-v-3454628a]{display:flex;justify-content:flex-end;align-items:center;min-width:0}.jt-page-header[data-v-bbbd4ec6]{--jt-page-header-bg-color: #f9f9f9;--jt-page-header-height: 44px;--jt-page-header-padding-x: 12px;--jt-page-header-border-radius: 6px;--jt-page-header-title-font-size: 16px;--jt-page-header-title-marker-width: 4px;--jt-page-header-title-marker-height: 12px;--jt-page-header-operates-gap: 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:var(--jt-page-header-height);padding-left:var(--jt-page-header-padding-x);padding-right:var(--jt-page-header-padding-x);background-color:var(--jt-page-header-bg-color);border-radius:var(--jt-page-header-border-radius)}.jt-page-header .jt-page-header__title[data-v-bbbd4ec6]{display:flex;align-items:center;min-width:0;line-height:20px;font-size:var(--jt-page-header-title-font-size);font-weight:600;color:#333}.jt-page-header .jt-page-header__title[data-v-bbbd4ec6]:before{content:"";display:block;width:var(--jt-page-header-title-marker-width);height:var(--jt-page-header-title-marker-height);margin-right:6px;background-color:#e60000;border-radius:1px}.jt-page-header--subsection[data-v-bbbd4ec6]{--jt-page-header-bg-color: #fff;--jt-page-header-height: 32px;--jt-page-header-padding-x: 0;--jt-page-header-title-font-size: 14px;--jt-page-header-title-marker-width: 3px;--jt-page-header-title-marker-height: 10px}.jt-page-header__title[data-v-bbbd4ec6],.jt-page-header__operates[data-v-bbbd4ec6]{min-width:0}.jt-page-header__operates[data-v-bbbd4ec6]{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:var(--jt-page-header-operates-gap)}.jt-page-header__operates[data-v-bbbd4ec6] .jt-button.el-button+.jt-button.el-button{margin-left:0}.global-info-field-control[data-v-2b58fdda]{--global-info-control-height: 32px;--global-info-control-border: #d9d9d9;--global-info-control-disabled-bg: #f9fafb;--global-info-control-radius: 4px;width:100%;height:var(--global-info-control-height);min-width:0;font-size:13px;box-sizing:border-box}.global-info-field-control[data-v-2b58fdda] *,.global-info-field-control[data-v-2b58fdda] *:before,.global-info-field-control[data-v-2b58fdda] *:after{box-sizing:border-box}.global-info-field-control.el-input[data-v-2b58fdda],.global-info-field-control.el-input-number[data-v-2b58fdda],.global-info-field-control.el-date-editor[data-v-2b58fdda],.global-info-field-control.el-select[data-v-2b58fdda]{width:100%;min-width:0;height:var(--global-info-control-height);line-height:var(--global-info-control-height)}.global-info-field-control.el-date-editor[data-v-2b58fdda]{--el-date-editor-width: 100%}.global-info-field-control.el-date-editor.el-input[data-v-2b58fdda],.global-info-field-control.el-date-editor.el-input__wrapper[data-v-2b58fdda]{width:100%;min-width:0;height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-input,.global-info-field-control[data-v-2b58fdda] .el-input-number,.global-info-field-control[data-v-2b58fdda] .el-date-editor,.global-info-field-control[data-v-2b58fdda] .el-select{width:100%;min-width:0;height:var(--global-info-control-height);line-height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-input__wrapper,.global-info-field-control[data-v-2b58fdda] .el-select__wrapper,.global-info-field-control[data-v-2b58fdda] .el-input-number__wrapper,.global-info-field-control[data-v-2b58fdda] .el-date-editor.el-input__wrapper,.global-info-field-control.el-date-editor.el-input__wrapper[data-v-2b58fdda]{width:100%;min-width:0;min-height:var(--global-info-control-height);height:var(--global-info-control-height);border-radius:var(--global-info-control-radius);background:#fff;box-shadow:0 0 0 1px var(--global-info-control-border) inset}.global-info-field-control[data-v-2b58fdda] .el-input__inner,.global-info-field-control[data-v-2b58fdda] .el-select__selection,.global-info-field-control[data-v-2b58fdda] .el-input-number .el-input__inner,.global-info-field-control[data-v-2b58fdda] .el-date-editor .el-input__inner,.global-info-field-control.el-date-editor[data-v-2b58fdda] .el-input__inner{height:var(--global-info-control-height);line-height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-input__prefix,.global-info-field-control[data-v-2b58fdda] .el-input__suffix,.global-info-field-control[data-v-2b58fdda] .el-select__prefix,.global-info-field-control[data-v-2b58fdda] .el-select__suffix{height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-select__wrapper{padding-top:0;padding-bottom:0}.global-info-field-control[data-v-2b58fdda] .el-input__wrapper.is-disabled,.global-info-field-control[data-v-2b58fdda] .el-select__wrapper.is-disabled,.global-info-field-control[data-v-2b58fdda] .el-textarea__inner:disabled,.global-info-field-control[data-v-2b58fdda] .el-input-number.is-disabled .el-input__wrapper,.global-info-field-control.el-date-editor.is-disabled.el-input__wrapper[data-v-2b58fdda]{background-color:var(--global-info-control-disabled-bg);box-shadow:0 0 0 1px #e5e5e5 inset}.global-info-field-control[data-v-2b58fdda] .el-input-number__decrease,.global-info-field-control[data-v-2b58fdda] .el-input-number__increase{height:calc(var(--global-info-control-height) / 2);line-height:calc(var(--global-info-control-height) / 2)}.global-info-field-control[data-v-2b58fdda] .el-textarea__inner{min-height:var(--global-info-control-height);border-color:#d9d9d9;border-radius:var(--global-info-control-radius);font-size:13px}.global-info-field-control--switch[data-v-2b58fdda]{display:inline-flex;height:var(--global-info-control-height);align-items:center}.global-info-field-control--file[data-v-2b58fdda]{display:flex;gap:2px;height:var(--global-info-control-height);min-width:0;align-items:center;justify-content:center;border:1px solid #e60000;border-radius:var(--global-info-control-radius);background:#fdebeb;color:#e60000;cursor:pointer;line-height:var(--global-info-control-height)}.global-info-field-control--file.is-filled[data-v-2b58fdda]{border-color:#e5e5e5;background:#fff}.global-info-field-control--file.is-disabled[data-v-2b58fdda]{background:var(--global-info-control-disabled-bg);color:#0003;cursor:not-allowed}.global-info-field-control--textarea[data-v-2b58fdda]{height:auto;min-height:var(--global-info-control-height);line-height:normal}.global-info-field-control__file-input[data-v-2b58fdda]{display:none}.global-info-field-control__file-text[data-v-2b58fdda],.global-info-field-control__file-upload[data-v-2b58fdda],.global-info-field-control__file-preview-list[data-v-2b58fdda],.global-info-field-control__file-preview[data-v-2b58fdda]{min-width:0;overflow:hidden;font-size:13px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.global-info-field-control__file-preview-list[data-v-2b58fdda]{display:inline-flex;max-width:100%;align-items:center}.global-info-field-control__file-preview[data-v-2b58fdda]{max-width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.global-info-field-control__file-separator[data-v-2b58fdda]{flex:none}.global-info-field-control--code[data-v-2b58fdda] .el-textarea__inner{font-family:Consolas,Monaco,Courier New,monospace}.global-info-field-control__option[data-v-2b58fdda]{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:8px 0;line-height:1.4}.global-info-field-control__option-label[data-v-2b58fdda],.global-info-field-control__option-descr[data-v-2b58fdda]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-info-field-control__option-label[data-v-2b58fdda]{color:#333;font-size:13px}.global-info-field-control__option-descr[data-v-2b58fdda]{margin-top:4px;color:#0009;font-size:12px}.global-info-field-value[data-v-efe9888d]{display:inline-block;min-height:32px;color:#333;line-height:32px;word-break:break-word}.global-info-field-value--html[data-v-efe9888d],.global-info-field-value--multi-row[data-v-efe9888d],.global-info-field-value--code[data-v-efe9888d]{white-space:pre-wrap}.global-info-field-value--code[data-v-efe9888d]{width:100%;margin:0;padding:8px 10px;border:1px solid #e5e5e5;border-radius:4px;background:#f9fafb;color:#333;font-family:Consolas,Monaco,Courier New,monospace;line-height:20px}.global-info-field-value--file[data-v-efe9888d]{color:#e60000;text-decoration:underline;text-underline-offset:3px}.global-info-field-value__attachment-preview[data-v-efe9888d]{padding:0;border:0;background:transparent;color:#e60000;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:3px}.global-info-form-renderer[data-v-a2728a86]{width:100%}.global-info-form-renderer__label[data-v-a2728a86]{display:inline-flex;align-items:center;gap:2px}.global-info-form-renderer__required[data-v-a2728a86]{color:#e60000}.global-info-form-renderer[data-v-a2728a86] .el-form-item{margin-bottom:18px}.global-info-form-renderer[data-v-a2728a86] .el-form-item__label{min-height:20px;margin-bottom:6px;color:#0009;font-size:13px;line-height:20px}.global-info-form-renderer[data-v-a2728a86] .el-input-number,.global-info-form-renderer[data-v-a2728a86] .el-date-editor,.global-info-form-renderer[data-v-a2728a86] .el-select{width:100%}.global-info-delete-confirm{min-width:240px;padding:12px;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 4px 12px #1f232924}.global-info-delete-confirm .el-popconfirm__main{color:#1f2329;font-size:13px;line-height:20px}.global-info-delete-confirm .el-popconfirm__action{margin-top:12px}.global-info-delete-confirm .el-button--primary{border-color:#e60000;background:#e60000}.global-info-table-renderer[data-v-ef398e69]{width:100%}.global-info-table-renderer__table-scroll[data-v-ef398e69]{width:100%;overflow-x:auto;border-radius:12px;background:#f9f9f9}.global-info-table-renderer__table[data-v-ef398e69]{min-width:100%;background:#f9f9f9;color:#222;font-family:PingFang SC,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;line-height:24px;--el-table-bg-color: #f9f9f9;--el-table-tr-bg-color: #f9f9f9;--el-table-header-bg-color: #f9f9f9;--el-table-row-hover-bg-color: #f9f9f9;--el-table-border-color: transparent;--el-table-text-color: #222222;--el-table-header-text-color: #333333}.global-info-table-renderer__header[data-v-ef398e69]{display:inline-flex;align-items:center;justify-content:center;gap:2px;color:#333;font-size:14px;font-weight:400;line-height:24px;white-space:nowrap}.global-info-table-renderer__required[data-v-ef398e69],.global-info-table-renderer__delete[data-v-ef398e69]{color:#e60000}.global-info-table-renderer__delete[data-v-ef398e69]{display:inline-flex;align-items:center;gap:4px;font-size:14px;line-height:24px}.global-info-table-renderer__delete-icon[data-v-ef398e69]{font-size:14px}.global-info-table-renderer[data-v-ef398e69] .el-table__inner-wrapper:before,.global-info-table-renderer[data-v-ef398e69] .el-table__border-left-patch,.global-info-table-renderer[data-v-ef398e69] .el-table__border-bottom-patch{display:none}.global-info-table-renderer[data-v-ef398e69] .el-table__header-wrapper th.el-table__cell,.global-info-table-renderer[data-v-ef398e69] .el-table__body-wrapper td.el-table__cell{padding:4px 0;border-bottom:0;background:#f9f9f9}.global-info-table-renderer[data-v-ef398e69] .el-table__header .cell,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell{min-height:24px;padding:0 12px;color:#222;font-size:14px;font-weight:400;line-height:24px;text-align:center;white-space:nowrap}.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell>.global-info-field-control,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .global-info-field-control,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input-number,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-select,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-date-editor{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input__wrapper,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-select__wrapper,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input-number__wrapper,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-date-editor.el-input__wrapper{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell{overflow:visible;text-overflow:initial}.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell>.global-info-field-control,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .global-info-field-control,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input-number,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-select,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-date-editor,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input__wrapper,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-select__wrapper,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input-number__wrapper,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-date-editor.el-input__wrapper{min-width:120px}.global-info-table-renderer[data-v-ef398e69] .el-table__header .cell{color:#333}.global-info-table-renderer[data-v-ef398e69] .el-table__fixed-right{background:#f9f9f9}.global-info-section-block[data-v-55cf6792]{width:100%;min-width:0;padding:0;background:transparent;border:0;border-radius:0}.global-info-section-block__header[data-v-55cf6792],.global-info-section-block__title-wrap[data-v-55cf6792],.global-info-section-block__actions[data-v-55cf6792]{display:flex;align-items:center}.global-info-section-block__header[data-v-55cf6792]{justify-content:space-between;gap:16px;margin-bottom:12px}.global-info-section-block__title-wrap[data-v-55cf6792]{min-width:0;gap:8px}.global-info-section-block__marker[data-v-55cf6792]{width:4px;height:4px;flex:0 0 auto;background:#e60000;border-radius:50%}.global-info-section-block__title[data-v-55cf6792]{margin:0;overflow:hidden;color:#333;font-size:14px;font-weight:600;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.global-info-section-block__actions[data-v-55cf6792]{flex:0 0 auto;gap:8px}.global-info-section-block__edit[data-v-55cf6792],.global-info-section-block__cancel[data-v-55cf6792],.global-info-section-block__add[data-v-55cf6792],.global-info-section-block__confirm[data-v-55cf6792]{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:48px;height:24px;padding:0 12px;border:1px solid transparent;border-radius:12px;font-size:12px;font-weight:400;line-height:24px;transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.global-info-section-block__edit[data-v-55cf6792],.global-info-section-block__add[data-v-55cf6792]{color:#e60000;background:#fff;border-color:#ffd1d1}.global-info-section-block__edit[data-v-55cf6792]{gap:0}.global-info-section-block__cancel[data-v-55cf6792]{color:#0009;background:#f5f5f5;border-color:#e5e5e5}.global-info-section-block__edit[data-v-55cf6792]:hover,.global-info-section-block__edit[data-v-55cf6792]:focus,.global-info-section-block__add[data-v-55cf6792]:hover,.global-info-section-block__add[data-v-55cf6792]:focus{color:#e51e1b;background:#fdf7f7;border-color:#f7b2b2}.global-info-section-block__cancel[data-v-55cf6792]:hover,.global-info-section-block__cancel[data-v-55cf6792]:focus{color:#333;background:#e5e5e5}.global-info-section-block__confirm[data-v-55cf6792]{--el-button-text-color: #ffffff;--el-button-bg-color: #e60000;--el-button-border-color: #e60000;--el-button-hover-text-color: #ffffff;--el-button-hover-bg-color: #e51e1b;--el-button-hover-border-color: #e51e1b;--el-button-active-text-color: #ffffff;--el-button-active-bg-color: #e51e1b;--el-button-active-border-color: #e51e1b;color:#fff;background:#e60000;border-color:#e60000;box-shadow:0 4px 8px #e6000029}.global-info-section-block__confirm[data-v-55cf6792]:hover,.global-info-section-block__confirm[data-v-55cf6792]:focus{color:#fff;background:#e51e1b;border-color:#e51e1b}.global-info-section-block__edit.is-disabled[data-v-55cf6792],.global-info-section-block__cancel.is-disabled[data-v-55cf6792],.global-info-section-block__add.is-disabled[data-v-55cf6792],.global-info-section-block__confirm.is-disabled[data-v-55cf6792]{color:#0003;background:#f5f5f5;border-color:transparent;box-shadow:none}.global-info-section-block__edit-icon[data-v-55cf6792]{width:12px;height:12px;flex:0 0 auto;display:block}.global-info-section-block__body[data-v-55cf6792]{min-width:0}.global-info-section-block__status[data-v-55cf6792]{min-height:80px;display:flex;align-items:center;justify-content:center;color:#0006;font-size:14px}.global-info-group[data-v-e86a3d32]{width:100%;min-width:0;padding:16px 20px 20px;background:#fff;border:1px solid #e5e5e5;border-radius:12px}.global-info-group__header[data-v-e86a3d32]{display:flex;min-width:0;align-items:center;gap:8px;margin-bottom:16px}.global-info-group__marker[data-v-e86a3d32]{width:3px;height:12px;flex:0 0 auto;background:#e60000;border-radius:2px}.global-info-group__title[data-v-e86a3d32]{min-width:0;margin:0;overflow:hidden;color:#333;font-size:16px;font-weight:600;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.global-info-group__body[data-v-e86a3d32]{min-width:0}.global-info-group__section[data-v-e86a3d32]{min-width:0;padding-bottom:20px;border-bottom:1px solid #e5e5e5}.global-info-group__section+.global-info-group__section[data-v-e86a3d32]{margin-top:20px}.global-info-group__section[data-v-e86a3d32]:last-child{padding-bottom:0;border-bottom:0}.global-info-group__empty[data-v-e86a3d32]{min-height:80px;display:flex;align-items:center;justify-content:center;color:#0006;font-size:14px}.global-info-sections[data-v-d4ed3f80]{display:flex;min-width:0;flex-direction:column;gap:12px}
1
+ .jt-attachment-preview-service-lock{overflow:hidden}.jt-attachment-preview-service{--jt-attachment-preview-service-image-fit: contain;position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:5vh 5vw;background:#00000080;color:#333}.jt-attachment-preview-service__modal{display:flex;flex-direction:column;width:90vw;height:90vh;overflow:hidden;border-radius:6px;background:#f7f7f7;box-shadow:0 2px 8px #1f232914}.jt-attachment-preview-service__header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:50px;border-bottom:1px solid #f5f5f5;background:#fff}.jt-attachment-preview-service__filename{position:relative;min-width:0;max-width:calc(90vw - 190px);padding-left:29px;overflow:hidden;font-size:16px;font-weight:500;line-height:50px;text-overflow:ellipsis;white-space:nowrap;color:#333}.jt-attachment-preview-service__filename:before{content:"";position:absolute;left:20px;top:50%;width:3px;height:10px;border-radius:1px;background:#e60000;transform:translateY(-50%)}.jt-attachment-preview-service__header-actions{display:flex;align-items:center;flex-shrink:0;height:100%}.jt-attachment-preview-service__top-download,.jt-attachment-preview-service__close{display:inline-flex;align-items:center;justify-content:center;height:100%;border:0;background:#fff;color:#0009;text-decoration:none;cursor:pointer}.jt-attachment-preview-service__top-download{gap:4px;min-width:72px;height:36px;padding:0 12px;font-size:16px;line-height:1;vertical-align:top}.jt-attachment-preview-service__close{width:42px;padding:0;font-size:22px;font-weight:400;line-height:1}.jt-attachment-preview-service__top-download:hover,.jt-attachment-preview-service__close:hover{background:#f9f9f9;color:#333}.jt-attachment-preview-service__download-icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;font-size:18px;line-height:1;transform:translateY(1px)}.jt-attachment-preview-service__download-icon svg{display:block}.jt-attachment-preview-service__download-text{display:inline-flex;align-items:center;height:18px;line-height:1}.jt-attachment-preview-service__body{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;background:#f7f7f7}.jt-attachment-preview-service__media,.jt-attachment-preview-service__iframe{display:block;width:100%;height:100%;border:0}.jt-attachment-preview-service__image-viewer{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.jt-attachment-preview-service__image{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:var(--jt-attachment-preview-service-image-fit);transform-origin:center center;transition:transform .16s ease;user-select:none;will-change:transform;-webkit-user-drag:none}.jt-attachment-preview-service__image--draggable{cursor:grab;touch-action:none}.jt-attachment-preview-service__image--dragging{cursor:grabbing;transition:none}.jt-attachment-preview-service__image-toolbar{position:absolute;left:50%;bottom:18px;z-index:2;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 8px;border-radius:4px;background:#000000a8;color:#fff;box-shadow:0 2px 8px #1f23291f;transform:translate(-50%)}.jt-attachment-preview-service__image-tool{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:#fff;font-size:16px;line-height:1;cursor:pointer}.jt-attachment-preview-service__image-tool:hover{background:#ffffff29}.jt-attachment-preview-service__image-scale{min-width:42px;color:#fff;font-size:12px;line-height:1;text-align:center}.jt-attachment-preview-service__audio{width:min(520px,100% - 32px)}.jt-attachment-preview-service__pdf-viewer{position:relative;width:100%;height:100%;overflow:hidden;background:#f7f7f7}.jt-attachment-preview-service__pdf-layout{display:flex;width:100%;height:100%;min-height:0}.jt-attachment-preview-service__pdf-layout--hidden{visibility:hidden}.jt-attachment-preview-service__pdf-outline{flex:0 0 220px;width:220px;height:100%;overflow:hidden;border-right:1px solid #f5f5f5;background:#fff}.jt-attachment-preview-service__pdf-outline-title{height:36px;padding:0 12px;border-bottom:1px solid #f5f5f5;color:#333;font-size:13px;font-weight:500;line-height:36px}.jt-attachment-preview-service__pdf-outline-list{height:calc(100% - 36px);overflow:auto;padding:8px 0}.jt-attachment-preview-service__pdf-outline-item{display:block;width:100%;height:32px;padding-right:10px;border:0;background:transparent;color:#0009;font-size:12px;line-height:32px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.jt-attachment-preview-service__pdf-outline-item:hover{background:#f9f9f9;color:#e60000}.jt-attachment-preview-service__pdf-outline-item:disabled{color:#00000080;cursor:not-allowed}.jt-attachment-preview-service__pdf-pages{display:flex;flex:1;flex-direction:column;align-items:center;gap:16px;min-width:0;min-height:100%;overflow:auto;padding:20px}.jt-attachment-preview-service__pdf-page{display:block;max-width:100%;background:#fff;box-shadow:0 2px 10px #1f232924}.jt-attachment-preview-service__pdf-state{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;color:#333;font-size:12px;text-align:center}.jt-attachment-preview-service__pdf-error{max-width:min(520px,90vw - 48px);color:#0009;font-size:11px;line-height:1.5}.jt-attachment-preview-service__detecting{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#333;text-align:center}.jt-attachment-preview-service__detecting-spinner{width:28px;height:28px;margin-bottom:14px;border:2px solid #d9d9d9;border-top-color:#e60000;border-radius:50%;animation:jt-attachment-preview-service-spin .8s linear infinite}.jt-attachment-preview-service__detecting-title{font-size:12px;font-weight:500}.jt-attachment-preview-service__detecting-desc{margin-top:6px;color:#0009;font-size:10px}@keyframes jt-attachment-preview-service-spin{to{transform:rotate(360deg)}}.jt-attachment-preview-service__pdf-fallback-tip{position:absolute;left:50%;bottom:16px;z-index:2;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:8px 12px;border-radius:4px;background:#000000b8;color:#fff;font-size:12px;transform:translate(-50%)}.jt-attachment-preview-service__fallback-download{border:0;background:transparent;flex-shrink:0;color:#fff;font-size:12px;text-decoration:underline;cursor:pointer}.jt-attachment-preview-service__empty,.jt-attachment-preview-service__unsupported{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:16px;text-align:center}.jt-attachment-preview-service__empty{color:#0009;font-size:14px}.jt-attachment-preview-service__file-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;max-width:calc(90vw - 48px);min-height:0}.jt-attachment-preview-service__preview-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}.jt-attachment-preview-service__preview-fallback-icon{display:block;width:72px;height:72px;object-fit:contain}.jt-attachment-preview-service__file-icon{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:44px;padding:0 6px;border-radius:4px;background:#2563eb;color:#fff;font-size:20px;font-weight:600;line-height:1}.jt-attachment-preview-service__unsupported-text{margin-top:12px;font-size:16px;color:#333;font-weight:500}.jt-attachment-preview-service__file-name{max-width:min(360px,90vw - 48px);margin-top:6px;overflow:hidden;color:#666;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.jt-attachment-preview-service__primary-download{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:34px;height:22px;margin-top:14px;padding:0 10px;border:0;border-radius:4px;background:#e60000;color:#fff;font-size:12px;text-decoration:none;cursor:pointer}.jt-attachment-preview-service__primary-download:hover{background:#e51e1b}:root{--color-primary: #e60000;--color-primary-light: #ff3a3a;--color-primary-hover: #e51e1b;--color-primary-bg-light: #ffe5e5;--color-primary-bg-lighter: #fdf7f7;--color-primary-bg-subtle: rgba(230, 0, 0, .05);--color-primary-bg-subtle-2: rgba(230, 0, 0, .1);--color-primary-tint-1: #ffecec;--color-primary-tint-2: #ffd1d1;--color-primary-tint-3: #f7b2b2;--color-bg-page: #f9f9f9;--color-bg-card: #ffffff;--color-bg-input: #f9fafb;--color-bg-table-header: #f6f3f3;--color-bg-elevated: #fbf9f9;--color-text-primary: #333333;--color-text-regular: rgba(0, 0, 0, .8);--color-text-secondary: rgba(0, 0, 0, .6);--color-text-tertiary: rgba(0, 0, 0, .4);--color-text-disabled: rgba(0, 0, 0, .2);--color-border-default: #e5e5e5;--color-border-light: #f5f5f5;--color-border-medium: #d9d9d9;--color-border-dark: #999999;--color-border-strong: #666666;--color-border-primary: #e60000;--color-link: #0066ff;--color-error: #e60000;--color-icon-gray: #a6a6a6;--gradient-primary-button: linear-gradient(90deg, #e60000 0%, #ff3a3a 100%);--gradient-secondary-button: linear-gradient(90deg, #ff3a3a 0%, #e60000 100%);--gradient-bg-soft: linear-gradient(90deg, #f9f9f9 0%, #ffecec 100%);--font-family-primary: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;--font-family-secondary: "Source Han Sans", "PingFang SC", sans-serif;--font-size-title-lg: 20px;--font-size-title: 16px;--font-size-body: 16px;--font-size-body-sm: 14px;--font-size-caption: 12px;--font-size-caption-sm: 10px;--font-size-ui: 13px;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--spacing-1: 2px;--spacing-2: 4px;--spacing-3: 8px;--spacing-4: 10px;--spacing-5: 12px;--spacing-6: 16px;--spacing-8: 20px;--spacing-10: 32px;--spacing-12: 50px;--spacing-16: 80px;--spacing-20: 160px;--radius-none: 0;--radius-xs: 2px;--radius-sm: 4px;--radius-md: 6px;--radius-base: 12px;--radius-lg: 14px;--radius-xl: 16px;--radius-pill: 50px;--shadow-card: 0px 2px 8px 0px rgba(0, 0, 0, .05);--shadow-dropdown: 0px 4px 4px 0px rgba(0, 0, 0, .1);--el-color-primary: #e60000;--el-color-primary-light-3: #f04d4d;--el-color-primary-light-5: #f38080;--el-color-primary-light-7: #f8b3b3;--el-color-primary-light-8: #facccc;--el-color-primary-light-9: #fde6e6;--el-color-primary-dark-2: #b80000;--el-border-color: #e5e5e5;--el-border-color-light: #e5e5e5;--el-border-color-lighter: #e5e5e5;--el-border-color-extra-light: #e5e5e5;--el-border-color-dark: #e5e5e5;--el-border-color-darker: #e5e5e5}[class^=jt-],[class*=" jt-"],[class^=jt-] *,[class*=" jt-"] *{box-sizing:border-box}.jt-button.el-button[data-v-28dbb12d]{--jt-button-icon-size: 14px;--jt-button-icon-gap: 6px;--jt-button-height: 28px;--jt-button-padding-x: 14px;--jt-button-radius: 4px;--jt-button-font-size: 14px;--jt-button-primary-color: #e60000;--jt-button-primary-bg: linear-gradient(90deg, #e60000 0%, #ff3a3a 100%);--el-button-hover-text-color: #333333;--el-button-hover-border-color: #e5e5e5;--el-button-hover-bg-color: #ffffff;--el-button-active-text-color: #333333;--el-button-active-border-color: #e5e5e5;--el-button-active-bg-color: #ffffff;height:var(--jt-button-height);min-width:64px;border-radius:var(--jt-button-radius);border:1px solid #e5e5e5;background:#fff;padding-left:var(--jt-button-padding-x);padding-right:var(--jt-button-padding-x);font-size:var(--jt-button-font-size);font-weight:400;color:#333}.jt-button.el-button.el-button--large[data-v-28dbb12d]{--jt-button-height: 36px}.jt-button.el-button.el-button--small[data-v-28dbb12d]{--jt-button-height: 28px;--jt-button-padding-x: 14px;--jt-button-font-size: 12px}.jt-button.el-button+.jt-button.el-button[data-v-28dbb12d]{margin-left:10px}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon{width:var(--jt-button-icon-size);height:var(--jt-button-icon-size);margin-right:var(--jt-button-icon-gap);font-size:var(--jt-button-icon-size)}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon svg,.jt-button.el-button[data-v-28dbb12d] .jt-button__icon img{width:var(--jt-button-icon-size);height:var(--jt-button-icon-size)}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon img{display:block}.jt-button.el-button[data-v-28dbb12d] .jt-button__icon+span{margin-left:0}.jt-button.el-button[data-v-28dbb12d]:hover,.jt-button.el-button[data-v-28dbb12d]:focus,.jt-button.el-button[data-v-28dbb12d]:active{border-color:#e5e5e5;background:#fff;color:#333}.jt-button.el-button--primary[data-v-28dbb12d]{border:none;background:var(--jt-button-primary-bg);color:#fff}.jt-button.el-button--primary[data-v-28dbb12d]:hover,.jt-button.el-button--primary[data-v-28dbb12d]:focus{background:var(--jt-button-primary-bg);color:#fff}.jt-button.el-button--primary[data-v-28dbb12d] .el-icon{color:#fff}.jt-cascader{width:100%;--jt-cascader-text-color: #333333;--jt-cascader-placeholder-color: #999999;--jt-cascader-border-color: #e5e5e5;--jt-cascader-hover-border-color: #cccccc;--jt-cascader-focus-border-color: #e60000;--el-input-text-color: var(--jt-cascader-text-color);--el-input-placeholder-color: var(--jt-cascader-placeholder-color);--el-input-border-color: var(--jt-cascader-border-color);--el-input-hover-border-color: var(--jt-cascader-hover-border-color);--el-color-primary: var(--jt-cascader-focus-border-color);--jt-cascader-control-height: 36px;--el-component-size: var(--jt-cascader-control-height)}.jt-cascader.el-cascader--large{--jt-cascader-control-height: var(--el-component-size-large)}.jt-cascader.el-cascader--small{--jt-cascader-control-height: var(--el-component-size-small)}.jt-cascader .el-input,.jt-cascader .el-input__wrapper{height:var(--jt-cascader-control-height);min-height:var(--jt-cascader-control-height)}.jt-cascader .el-cascader__tags{height:var(--jt-cascader-control-height);max-height:var(--jt-cascader-control-height);align-items:center;flex-wrap:nowrap;overflow:hidden}.jt-cascader .el-cascader__tags .el-tag{flex:0 1 auto;min-width:0}.jt-cascader .el-cascader__tags .el-tag+.el-tag{flex:0 0 auto}.jt-cascader .el-cascader__search-input{width:0;min-width:0;flex:1 1 0}[data-v-3ee50dbc] .jt-date-picker.el-date-editor{--el-date-editor-width: 100%;--jt-date-picker-control-height: 36px;--jt-date-picker-text-color: #333333;--jt-date-picker-placeholder-color: #999999;--jt-date-picker-border-color: #e5e5e5;--jt-date-picker-hover-border-color: #cccccc;--jt-date-picker-focus-border-color: #e60000;--el-input-text-color: var(--jt-date-picker-text-color);--el-input-placeholder-color: var(--jt-date-picker-placeholder-color);--el-input-border-color: var(--jt-date-picker-border-color);--el-input-hover-border-color: var(--jt-date-picker-hover-border-color);--el-input-focus-border-color: var(--jt-date-picker-focus-border-color);--el-input-focus-border: var(--jt-date-picker-focus-border-color);--el-color-primary: var(--jt-date-picker-focus-border-color);--el-component-size: var(--jt-date-picker-control-height);min-height:var(--jt-date-picker-control-height)}[data-v-3ee50dbc] .jt-date-picker.el-date-editor .el-input__wrapper{min-height:var(--jt-date-picker-control-height)}.jt-input[data-v-10ac743d]{--jt-input-control-height: 36px;--jt-input-text-color: #333333;--jt-input-placeholder-color: #999999;--jt-input-border-color: #e5e5e5;--jt-input-hover-border-color: #cccccc;--jt-input-focus-border-color: #e60000;--el-input-text-color: var(--jt-input-text-color);--el-input-placeholder-color: var(--jt-input-placeholder-color);--el-input-border-color: var(--jt-input-border-color);--el-input-hover-border-color: var(--jt-input-hover-border-color);--el-input-focus-border-color: var(--jt-input-focus-border-color);--el-component-size: var(--jt-input-control-height)}.jt-input[data-v-10ac743d] .el-input__wrapper{min-height:var(--jt-input-control-height)}.jt-select[data-v-8e1bf362]{--jt-select-control-height: 36px;--jt-select-text-color: #333333;--jt-select-placeholder-color: #999999;--jt-select-border-color: #e5e5e5;--jt-select-hover-border-color: #cccccc;--jt-select-focus-border-color: #e60000;--el-input-text-color: var(--jt-select-text-color);--el-input-placeholder-color: var(--jt-select-placeholder-color);--el-input-border-color: var(--jt-select-border-color);--el-input-hover-border-color: var(--jt-select-hover-border-color);--el-color-primary: var(--jt-select-focus-border-color);--el-component-size: var(--jt-select-control-height)}.jt-select[data-v-8e1bf362] .el-select__wrapper{min-height:var(--jt-select-control-height)}.jt-form-items[data-v-d2355a20]{--jt-form-columns: 4;--jt-form-gap: 10px;--jt-form-column-gap: 10px;--jt-form-row-gap: 16px;--jt-form-control-height: 36px;--jt-form-control-radius: 8px;--jt-form-disabled-bg: #f9fafb;--jt-form-label-line-height: 20px;--jt-form-label-gap: 10px;--jt-form-label-color: #333333;--jt-form-label-font-weight: 400;--jt-form-required-color: #e60000;width:100%;display:grid;grid-template-columns:repeat(var(--jt-form-columns),minmax(0,1fr));column-gap:var(--jt-form-column-gap, var(--jt-form-gap));row-gap:var(--jt-form-row-gap, var(--jt-form-gap))}.jt-form-items__item[data-v-d2355a20]{margin:0;width:100%}.jt-form-items__item[data-v-d2355a20] .el-form-item__label{height:auto;line-height:var(--jt-form-label-line-height);margin-bottom:var(--jt-form-label-gap);font-size:14px;font-weight:var(--jt-form-label-font-weight);color:var(--jt-form-label-color)}.jt-form-items__item[data-v-d2355a20] .el-form-item__label:before{color:var(--jt-form-required-color)}.jt-form-items__actions[data-v-d2355a20]{margin:0;width:100%;align-self:end}.jt-form-items__item[data-v-d2355a20] .el-form-item__content{width:100%;min-width:0;line-height:var(--jt-form-control-height)}.jt-form-items__actions[data-v-d2355a20] .el-form-item__content{display:flex;justify-content:flex-end;align-items:center;width:100%;min-width:0}.jt-form-items__item[data-v-d2355a20] .el-input,.jt-form-items__item[data-v-d2355a20] .el-select,.jt-form-items__item[data-v-d2355a20] .el-cascader,.jt-form-items__item[data-v-d2355a20] .el-date-editor,.jt-form-items__item[data-v-d2355a20] .el-date-editor.el-input,.jt-form-items__item[data-v-d2355a20] .el-date-editor--daterange,.jt-form-items__item[data-v-d2355a20] .el-input__wrapper,.jt-form-items__item[data-v-d2355a20] .el-select__wrapper,.jt-form-items__item[data-v-d2355a20] .el-date-editor .el-input__wrapper{box-sizing:border-box;width:100%;min-width:0;height:var(--jt-form-control-height);min-height:var(--jt-form-control-height);border-radius:var(--jt-form-control-radius)}.jt-form-items__item[data-v-d2355a20] .el-input__inner,.jt-form-items__item[data-v-d2355a20] .el-select__placeholder,.jt-form-items__item[data-v-d2355a20] .el-cascader__placeholder,.jt-form-items__item[data-v-d2355a20] .el-range-input{height:calc(var(--jt-form-control-height) - 2px);line-height:calc(var(--jt-form-control-height) - 2px);font-size:14px}.jt-form-items__item[data-v-d2355a20] .el-input.is-disabled .el-input__wrapper,.jt-form-items__item[data-v-d2355a20] .el-select__wrapper.is-disabled,.jt-form-items__item[data-v-d2355a20] .el-cascader.is-disabled .el-input__wrapper,.jt-form-items__item[data-v-d2355a20] .el-date-editor.is-disabled,.jt-form-items__item[data-v-d2355a20] .el-date-editor .el-input__wrapper.is-disabled{background:var(--jt-form-disabled-bg)}.jt-form-items__item[data-v-d2355a20] .el-input.is-disabled .el-input__inner,.jt-form-items__item[data-v-d2355a20] .el-select.is-disabled .el-select__selected-item,.jt-form-items__item[data-v-d2355a20] .el-cascader.is-disabled .el-input__inner,.jt-form-items__item[data-v-d2355a20] .el-textarea.is-disabled .el-textarea__inner{color:#333;-webkit-text-fill-color:#333333}.jt-form-items__item[data-v-d2355a20] .el-textarea__inner{color:#333;font-size:14px;line-height:20px}.jt-filter-bar[data-v-fba58b18]{padding:var(--jt-filter-padding)}.jt-filter-bar__form[data-v-fba58b18]{width:100%;display:contents}.jt-filter-bar[data-v-fba58b18] .jt-form-items{grid-template-columns:repeat(var(--jt-filter-field-columns),minmax(0,1fr));column-gap:var(--jt-filter-column-gap);row-gap:var(--jt-filter-row-gap)}.jt-filter-bar[data-v-fba58b18] .jt-form-items__actions{grid-column:1/-1!important;width:100%;min-width:0;justify-self:end}.jt-filter-bar.is-single-filter[data-v-fba58b18] .jt-form-items__actions{grid-column:var(--jt-filter-actions-start)/-1!important}.jt-filter-bar[data-v-fba58b18] .jt-form-items__actions .el-form-item__content{width:100%;min-width:0}.jt-filter-bar__btns[data-v-fba58b18]{display:flex;justify-content:flex-end;align-items:center;width:var(--jt-filter-btns-width);height:28px;min-width:var(--jt-filter-btns-width);flex:0 0 var(--jt-filter-btns-width);text-align:right}.jt-filter-bar__btns[data-v-fba58b18] .jt-button.el-button{--jt-button-icon-gap: 4px;flex-shrink:0;min-width:max-content}.jt-filter-bar__btn-query.el-button--primary[data-v-fba58b18]{background:linear-gradient(90deg,#e60000,#ff3a3a);border-color:transparent}.jt-filter-bar__btn-query.el-button--primary[data-v-fba58b18]:hover,.jt-filter-bar__btn-query.el-button--primary[data-v-fba58b18]:focus{background:linear-gradient(90deg,#e60000,#ff3a3a);border-color:transparent}.jt-filter-bar__icon-arrow[data-v-fba58b18]{transition:transform .2s ease}.jt-filter-bar__icon-arrow.is-collapsed[data-v-fba58b18]{transform:rotate(180deg)}.jt-table[data-v-92c09ab1]{--jt-table-header-bg: #f9f9f9;--jt-table-row-striped-bg: #f9f9f9;--jt-table-row-height: 40px;--jt-table-row-gap: 10px;--jt-table-cell-line-height: 20px;--jt-table-radius: 6px;--jt-table-empty-min-height: 120px;--el-table-border-color: transparent;--el-table-bg-color: #fff;--el-table-tr-bg-color: #fff;--el-table-header-bg-color: var(--jt-table-header-bg);--el-table-header-text-color: #333333;--el-table-text-color: #333333;--el-table-row-hover-bg-color: transparent;--el-color-primary: #e60000;background:#fff;border-radius:var(--jt-table-radius)}.jt-table[data-v-92c09ab1] .el-table__inner-wrapper:before{height:0}.jt-table[data-v-92c09ab1] .el-table__header-wrapper{border-radius:var(--jt-table-radius);overflow:hidden}.jt-table[data-v-92c09ab1] .el-table__body{border-collapse:separate;border-spacing:0 var(--jt-table-row-gap)}.jt-table[data-v-92c09ab1] th.el-table__cell{height:var(--jt-table-row-height);background:#f9f9f9;font-size:14px;font-weight:400;color:#333;padding:0;border:none}.jt-table[data-v-92c09ab1] th.el-table__cell:first-child{border-radius:var(--jt-table-radius) 0 0 var(--jt-table-radius)}.jt-table[data-v-92c09ab1] th.el-table__cell:last-child{border-radius:0 var(--jt-table-radius) var(--jt-table-radius) 0}.jt-table[data-v-92c09ab1] th.el-table__cell .cell{padding:0 20px;line-height:20px;font-size:14px}.jt-table[data-v-92c09ab1] td.el-table__cell{height:var(--jt-table-row-height);font-size:14px;font-weight:500;color:#333;padding:0;border:none}.jt-table[data-v-92c09ab1] td.el-table__cell .cell{padding:0 12px;line-height:var(--jt-table-cell-line-height)}.jt-table[data-v-92c09ab1] td.el-table__cell .cell .el-checkbox .el-checkbox__inner{border-color:#ccc}.jt-table[data-v-92c09ab1] .el-table__row:nth-child(odd) td{background:#fff}.jt-table[data-v-92c09ab1] .el-table__row:nth-child(2n) td{background:var(--jt-table-row-striped-bg)}.jt-table[data-v-92c09ab1] .el-table__row td:first-child{border-radius:var(--jt-table-radius) 0 0 var(--jt-table-radius)}.jt-table[data-v-92c09ab1] .el-table__row td:last-child{border-radius:0 var(--jt-table-radius) var(--jt-table-radius) 0}.jt-table[data-v-92c09ab1] .el-table__fixed-right th.el-table__cell,.jt-table[data-v-92c09ab1] .el-table__fixed th.el-table__cell{background:var(--jt-table-header-bg)}.jt-table[data-v-92c09ab1] .el-table__fixed-right .el-table__row:nth-child(odd) td,.jt-table[data-v-92c09ab1] .el-table__fixed .el-table__row:nth-child(odd) td{background:#fff}.jt-table[data-v-92c09ab1] .el-table__fixed-right .el-table__row:nth-child(2n) td,.jt-table[data-v-92c09ab1] .el-table__fixed .el-table__row:nth-child(2n) td{background:var(--jt-table-row-striped-bg)}.jt-table[data-v-92c09ab1] .el-table__empty-block{min-height:120px}.jt-table[data-v-92c09ab1] .el-table__empty-text{line-height:20px}.jt-pagination[data-v-8f04a5d2]{--jt-pagination-height: 24px;--jt-pagination-gap: 8px;display:flex;justify-content:center;align-items:center;gap:var(--jt-pagination-gap);min-height:var(--jt-pagination-height);background:#fff}.jt-pagination[data-v-8f04a5d2] .el-pagination{--el-pagination-button-width: var(--jt-pagination-height);--el-pagination-button-height: var(--jt-pagination-height);--el-pagination-font-size: 14px;gap:14px;font-weight:400}.jt-pagination[data-v-8f04a5d2] .el-pager{gap:14px}.jt-pagination[data-v-8f04a5d2] .el-pager li{width:auto;height:var(--jt-pagination-height);min-width:var(--jt-pagination-height);border-radius:4px;border:1px solid #e1e4e7;font-size:12px;font-weight:400;color:#333;line-height:22px;padding:0 6px;margin:0;background:transparent}.jt-pagination[data-v-8f04a5d2] .el-pager li.is-active{background:#fdebe8;border-color:#e60000;color:#e60000}.jt-pagination[data-v-8f04a5d2] .btn-prev,.jt-pagination[data-v-8f04a5d2] .btn-next{width:var(--jt-pagination-height);height:var(--jt-pagination-height);min-width:var(--jt-pagination-height);border-radius:4px;border:1px solid #e1e4e7;padding:0;margin:0;background:transparent}.jt-pagination[data-v-8f04a5d2] .el-pagination__jump{height:var(--jt-pagination-height);font-size:14px;color:#333;margin-left:4px;line-height:var(--jt-pagination-height)}.jt-pagination[data-v-8f04a5d2] .el-pagination__jump .el-input{width:56px}.jt-pagination[data-v-8f04a5d2] .el-pagination__jump .el-input__wrapper{height:var(--jt-pagination-height);border-radius:4px;border:1px solid #e1e4e7;box-shadow:none!important;padding:0 4px}.jt-pagination[data-v-8f04a5d2] .el-pagination__sizes{display:none;height:var(--jt-pagination-height);margin:0 4px 0 0}.jt-pagination[data-v-8f04a5d2] .el-pagination__sizes .el-select__wrapper{min-height:var(--jt-pagination-height);border-radius:4px;box-shadow:0 0 0 1px #e1e4e7 inset;font-size:14px}.jt-pagination__count[data-v-8f04a5d2]{font-size:14px;font-weight:400;color:#333;line-height:20px}.jt-crud-table[data-v-3454628a]{--jt-crud-table-gap: 20px;--jt-crud-table-radius: 12px;--jt-crud-table-result-gap: 16px;--jt-crud-table-group-gap: 10px;width:100%;min-height:0;display:flex;flex-direction:column;gap:var(--jt-crud-table-gap);padding:0;border-radius:var(--jt-crud-table-radius);background:#fff}.jt-crud-table__result[data-v-3454628a]{min-height:0;display:flex;flex-direction:column;gap:var(--jt-crud-table-result-gap)}.jt-crud-table__table-group[data-v-3454628a]{min-height:0;display:flex;flex-direction:column;gap:var(--jt-crud-table-group-gap)}.jt-crud-table[data-v-3454628a] .jt-pagination{padding-top:0;flex-shrink:0}.jt-crud-table__toolbar[data-v-3454628a]{display:flex;justify-content:flex-end;align-items:center;min-width:0}.jt-page-header[data-v-bbbd4ec6]{--jt-page-header-bg-color: #f9f9f9;--jt-page-header-height: 44px;--jt-page-header-padding-x: 12px;--jt-page-header-border-radius: 6px;--jt-page-header-title-font-size: 16px;--jt-page-header-title-marker-width: 4px;--jt-page-header-title-marker-height: 12px;--jt-page-header-operates-gap: 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:var(--jt-page-header-height);padding-left:var(--jt-page-header-padding-x);padding-right:var(--jt-page-header-padding-x);background-color:var(--jt-page-header-bg-color);border-radius:var(--jt-page-header-border-radius)}.jt-page-header .jt-page-header__title[data-v-bbbd4ec6]{display:flex;align-items:center;min-width:0;line-height:20px;font-size:var(--jt-page-header-title-font-size);font-weight:600;color:#333}.jt-page-header .jt-page-header__title[data-v-bbbd4ec6]:before{content:"";display:block;width:var(--jt-page-header-title-marker-width);height:var(--jt-page-header-title-marker-height);margin-right:6px;background-color:#e60000;border-radius:1px}.jt-page-header--subsection[data-v-bbbd4ec6]{--jt-page-header-bg-color: #fff;--jt-page-header-height: 32px;--jt-page-header-padding-x: 0;--jt-page-header-title-font-size: 14px;--jt-page-header-title-marker-width: 3px;--jt-page-header-title-marker-height: 10px}.jt-page-header__title[data-v-bbbd4ec6],.jt-page-header__operates[data-v-bbbd4ec6]{min-width:0}.jt-page-header__operates[data-v-bbbd4ec6]{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:var(--jt-page-header-operates-gap)}.jt-page-header__operates[data-v-bbbd4ec6] .jt-button.el-button+.jt-button.el-button{margin-left:0}.global-info-field-control[data-v-2b58fdda]{--global-info-control-height: 32px;--global-info-control-border: #d9d9d9;--global-info-control-disabled-bg: #f9fafb;--global-info-control-radius: 4px;width:100%;height:var(--global-info-control-height);min-width:0;font-size:13px;box-sizing:border-box}.global-info-field-control[data-v-2b58fdda] *,.global-info-field-control[data-v-2b58fdda] *:before,.global-info-field-control[data-v-2b58fdda] *:after{box-sizing:border-box}.global-info-field-control.el-input[data-v-2b58fdda],.global-info-field-control.el-input-number[data-v-2b58fdda],.global-info-field-control.el-date-editor[data-v-2b58fdda],.global-info-field-control.el-select[data-v-2b58fdda]{width:100%;min-width:0;height:var(--global-info-control-height);line-height:var(--global-info-control-height)}.global-info-field-control.el-date-editor[data-v-2b58fdda]{--el-date-editor-width: 100%}.global-info-field-control.el-date-editor.el-input[data-v-2b58fdda],.global-info-field-control.el-date-editor.el-input__wrapper[data-v-2b58fdda]{width:100%;min-width:0;height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-input,.global-info-field-control[data-v-2b58fdda] .el-input-number,.global-info-field-control[data-v-2b58fdda] .el-date-editor,.global-info-field-control[data-v-2b58fdda] .el-select{width:100%;min-width:0;height:var(--global-info-control-height);line-height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-input__wrapper,.global-info-field-control[data-v-2b58fdda] .el-select__wrapper,.global-info-field-control[data-v-2b58fdda] .el-input-number__wrapper,.global-info-field-control[data-v-2b58fdda] .el-date-editor.el-input__wrapper,.global-info-field-control.el-date-editor.el-input__wrapper[data-v-2b58fdda]{width:100%;min-width:0;min-height:var(--global-info-control-height);height:var(--global-info-control-height);border-radius:var(--global-info-control-radius);background:#fff;box-shadow:0 0 0 1px var(--global-info-control-border) inset}.global-info-field-control[data-v-2b58fdda] .el-input__inner,.global-info-field-control[data-v-2b58fdda] .el-select__selection,.global-info-field-control[data-v-2b58fdda] .el-input-number .el-input__inner,.global-info-field-control[data-v-2b58fdda] .el-date-editor .el-input__inner,.global-info-field-control.el-date-editor[data-v-2b58fdda] .el-input__inner{height:var(--global-info-control-height);line-height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-input__prefix,.global-info-field-control[data-v-2b58fdda] .el-input__suffix,.global-info-field-control[data-v-2b58fdda] .el-select__prefix,.global-info-field-control[data-v-2b58fdda] .el-select__suffix{height:var(--global-info-control-height)}.global-info-field-control[data-v-2b58fdda] .el-select__wrapper{padding-top:0;padding-bottom:0}.global-info-field-control[data-v-2b58fdda] .el-input__wrapper.is-disabled,.global-info-field-control[data-v-2b58fdda] .el-select__wrapper.is-disabled,.global-info-field-control[data-v-2b58fdda] .el-textarea__inner:disabled,.global-info-field-control[data-v-2b58fdda] .el-input-number.is-disabled .el-input__wrapper,.global-info-field-control.el-date-editor.is-disabled.el-input__wrapper[data-v-2b58fdda]{background-color:var(--global-info-control-disabled-bg);box-shadow:0 0 0 1px #e5e5e5 inset}.global-info-field-control[data-v-2b58fdda] .el-input-number__decrease,.global-info-field-control[data-v-2b58fdda] .el-input-number__increase{height:calc(var(--global-info-control-height) / 2);line-height:calc(var(--global-info-control-height) / 2)}.global-info-field-control[data-v-2b58fdda] .el-textarea__inner{min-height:var(--global-info-control-height);border-color:#d9d9d9;border-radius:var(--global-info-control-radius);font-size:13px}.global-info-field-control--switch[data-v-2b58fdda]{display:inline-flex;height:var(--global-info-control-height);align-items:center}.global-info-field-control--file[data-v-2b58fdda]{display:flex;gap:2px;height:var(--global-info-control-height);min-width:0;align-items:center;justify-content:center;border:1px solid #e60000;border-radius:var(--global-info-control-radius);background:#fdebeb;color:#e60000;cursor:pointer;line-height:var(--global-info-control-height)}.global-info-field-control--file.is-filled[data-v-2b58fdda]{border-color:#e5e5e5;background:#fff}.global-info-field-control--file.is-disabled[data-v-2b58fdda]{background:var(--global-info-control-disabled-bg);color:#0003;cursor:not-allowed}.global-info-field-control--textarea[data-v-2b58fdda]{height:auto;min-height:var(--global-info-control-height);line-height:normal}.global-info-field-control__file-input[data-v-2b58fdda]{display:none}.global-info-field-control__file-text[data-v-2b58fdda],.global-info-field-control__file-upload[data-v-2b58fdda],.global-info-field-control__file-preview-list[data-v-2b58fdda],.global-info-field-control__file-preview[data-v-2b58fdda]{min-width:0;overflow:hidden;font-size:13px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.global-info-field-control__file-preview-list[data-v-2b58fdda]{display:inline-flex;max-width:100%;align-items:center}.global-info-field-control__file-preview[data-v-2b58fdda]{max-width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.global-info-field-control__file-separator[data-v-2b58fdda]{flex:none}.global-info-field-control--code[data-v-2b58fdda] .el-textarea__inner{font-family:Consolas,Monaco,Courier New,monospace}.global-info-field-control__option[data-v-2b58fdda]{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:8px 0;line-height:1.4}.global-info-field-control__option-label[data-v-2b58fdda],.global-info-field-control__option-descr[data-v-2b58fdda]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-info-field-control__option-label[data-v-2b58fdda]{color:#333;font-size:13px}.global-info-field-control__option-descr[data-v-2b58fdda]{margin-top:4px;color:#0009;font-size:12px}.global-info-field-value[data-v-efe9888d]{display:inline-block;min-height:32px;color:#333;line-height:32px;word-break:break-word}.global-info-field-value--html[data-v-efe9888d],.global-info-field-value--multi-row[data-v-efe9888d],.global-info-field-value--code[data-v-efe9888d]{white-space:pre-wrap}.global-info-field-value--code[data-v-efe9888d]{width:100%;margin:0;padding:8px 10px;border:1px solid #e5e5e5;border-radius:4px;background:#f9fafb;color:#333;font-family:Consolas,Monaco,Courier New,monospace;line-height:20px}.global-info-field-value--file[data-v-efe9888d]{color:#e60000;text-decoration:underline;text-underline-offset:3px}.global-info-field-value__attachment-preview[data-v-efe9888d]{padding:0;border:0;background:transparent;color:#e60000;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:3px}.global-info-form-renderer[data-v-a2728a86]{width:100%}.global-info-form-renderer__label[data-v-a2728a86]{display:inline-flex;align-items:center;gap:2px}.global-info-form-renderer__required[data-v-a2728a86]{color:#e60000}.global-info-form-renderer[data-v-a2728a86] .el-form-item{margin-bottom:18px}.global-info-form-renderer[data-v-a2728a86] .el-form-item__label{min-height:20px;margin-bottom:6px;color:#0009;font-size:13px;line-height:20px}.global-info-form-renderer[data-v-a2728a86] .el-input-number,.global-info-form-renderer[data-v-a2728a86] .el-date-editor,.global-info-form-renderer[data-v-a2728a86] .el-select{width:100%}.global-info-delete-confirm{min-width:240px;padding:12px;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 4px 12px #1f232924}.global-info-delete-confirm .el-popconfirm__main{color:#1f2329;font-size:13px;line-height:20px}.global-info-delete-confirm .el-popconfirm__action{margin-top:12px}.global-info-delete-confirm .el-button--primary{border-color:#e60000;background:#e60000}.global-info-table-renderer[data-v-ef398e69]{width:100%}.global-info-table-renderer__table-scroll[data-v-ef398e69]{width:100%;overflow-x:auto;border-radius:12px;background:#f9f9f9}.global-info-table-renderer__table[data-v-ef398e69]{min-width:100%;background:#f9f9f9;color:#222;font-family:PingFang SC,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;line-height:24px;--el-table-bg-color: #f9f9f9;--el-table-tr-bg-color: #f9f9f9;--el-table-header-bg-color: #f9f9f9;--el-table-row-hover-bg-color: #f9f9f9;--el-table-border-color: transparent;--el-table-text-color: #222222;--el-table-header-text-color: #333333}.global-info-table-renderer__header[data-v-ef398e69]{display:inline-flex;align-items:center;justify-content:center;gap:2px;color:#333;font-size:14px;font-weight:400;line-height:24px;white-space:nowrap}.global-info-table-renderer__required[data-v-ef398e69],.global-info-table-renderer__delete[data-v-ef398e69]{color:#e60000}.global-info-table-renderer__delete[data-v-ef398e69]{display:inline-flex;align-items:center;gap:4px;font-size:14px;line-height:24px}.global-info-table-renderer__delete-icon[data-v-ef398e69]{font-size:14px}.global-info-table-renderer[data-v-ef398e69] .el-table__inner-wrapper:before,.global-info-table-renderer[data-v-ef398e69] .el-table__border-left-patch,.global-info-table-renderer[data-v-ef398e69] .el-table__border-bottom-patch{display:none}.global-info-table-renderer[data-v-ef398e69] .el-table__header-wrapper th.el-table__cell,.global-info-table-renderer[data-v-ef398e69] .el-table__body-wrapper td.el-table__cell{padding:4px 0;border-bottom:0;background:#f9f9f9}.global-info-table-renderer[data-v-ef398e69] .el-table__header .cell,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell{min-height:24px;padding:0 12px;color:#222;font-size:14px;font-weight:400;line-height:24px;text-align:center;white-space:nowrap}.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell>.global-info-field-control,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .global-info-field-control,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input-number,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-select,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-date-editor{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input__wrapper,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-select__wrapper,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-input-number__wrapper,.global-info-table-renderer[data-v-ef398e69] .el-table__body .cell .el-date-editor.el-input__wrapper{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell{overflow:visible;text-overflow:initial}.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell>.global-info-field-control,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .global-info-field-control,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input-number,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-select,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-date-editor,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input__wrapper,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-select__wrapper,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-input-number__wrapper,.global-info-table-renderer--editing[data-v-ef398e69] .el-table__body .cell .el-date-editor.el-input__wrapper{min-width:120px}.global-info-table-renderer[data-v-ef398e69] .el-table__header .cell{color:#333}.global-info-table-renderer[data-v-ef398e69] .el-table__fixed-right{background:#f9f9f9}.global-info-section-block[data-v-55cf6792]{width:100%;min-width:0;padding:0;background:transparent;border:0;border-radius:0}.global-info-section-block__header[data-v-55cf6792],.global-info-section-block__title-wrap[data-v-55cf6792],.global-info-section-block__actions[data-v-55cf6792]{display:flex;align-items:center}.global-info-section-block__header[data-v-55cf6792]{justify-content:space-between;gap:16px;margin-bottom:12px}.global-info-section-block__title-wrap[data-v-55cf6792]{min-width:0;gap:8px}.global-info-section-block__marker[data-v-55cf6792]{width:4px;height:4px;flex:0 0 auto;background:#e60000;border-radius:50%}.global-info-section-block__title[data-v-55cf6792]{margin:0;overflow:hidden;color:#333;font-size:14px;font-weight:600;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.global-info-section-block__actions[data-v-55cf6792]{flex:0 0 auto;gap:8px}.global-info-section-block__edit[data-v-55cf6792],.global-info-section-block__cancel[data-v-55cf6792],.global-info-section-block__add[data-v-55cf6792],.global-info-section-block__confirm[data-v-55cf6792]{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:48px;height:24px;padding:0 12px;border:1px solid transparent;border-radius:12px;font-size:12px;font-weight:400;line-height:24px;transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.global-info-section-block__edit[data-v-55cf6792],.global-info-section-block__add[data-v-55cf6792]{color:#e60000;background:#fff;border-color:#ffd1d1}.global-info-section-block__edit[data-v-55cf6792]{gap:0}.global-info-section-block__cancel[data-v-55cf6792]{color:#0009;background:#f5f5f5;border-color:#e5e5e5}.global-info-section-block__edit[data-v-55cf6792]:hover,.global-info-section-block__edit[data-v-55cf6792]:focus,.global-info-section-block__add[data-v-55cf6792]:hover,.global-info-section-block__add[data-v-55cf6792]:focus{color:#e51e1b;background:#fdf7f7;border-color:#f7b2b2}.global-info-section-block__cancel[data-v-55cf6792]:hover,.global-info-section-block__cancel[data-v-55cf6792]:focus{color:#333;background:#e5e5e5}.global-info-section-block__confirm[data-v-55cf6792]{--el-button-text-color: #ffffff;--el-button-bg-color: #e60000;--el-button-border-color: #e60000;--el-button-hover-text-color: #ffffff;--el-button-hover-bg-color: #e51e1b;--el-button-hover-border-color: #e51e1b;--el-button-active-text-color: #ffffff;--el-button-active-bg-color: #e51e1b;--el-button-active-border-color: #e51e1b;color:#fff;background:#e60000;border-color:#e60000;box-shadow:0 4px 8px #e6000029}.global-info-section-block__confirm[data-v-55cf6792]:hover,.global-info-section-block__confirm[data-v-55cf6792]:focus{color:#fff;background:#e51e1b;border-color:#e51e1b}.global-info-section-block__edit.is-disabled[data-v-55cf6792],.global-info-section-block__cancel.is-disabled[data-v-55cf6792],.global-info-section-block__add.is-disabled[data-v-55cf6792],.global-info-section-block__confirm.is-disabled[data-v-55cf6792]{color:#0003;background:#f5f5f5;border-color:transparent;box-shadow:none}.global-info-section-block__edit-icon[data-v-55cf6792]{width:12px;height:12px;flex:0 0 auto;display:block}.global-info-section-block__body[data-v-55cf6792]{min-width:0}.global-info-section-block__status[data-v-55cf6792]{min-height:80px;display:flex;align-items:center;justify-content:center;color:#0006;font-size:14px}.global-info-group[data-v-e86a3d32]{width:100%;min-width:0;padding:16px 20px 20px;background:#fff;border:1px solid #e5e5e5;border-radius:12px}.global-info-group__header[data-v-e86a3d32]{display:flex;min-width:0;align-items:center;gap:8px;margin-bottom:16px}.global-info-group__marker[data-v-e86a3d32]{width:3px;height:12px;flex:0 0 auto;background:#e60000;border-radius:2px}.global-info-group__title[data-v-e86a3d32]{min-width:0;margin:0;overflow:hidden;color:#333;font-size:16px;font-weight:600;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.global-info-group__body[data-v-e86a3d32]{min-width:0}.global-info-group__section[data-v-e86a3d32]{min-width:0;padding-bottom:20px;border-bottom:1px solid #e5e5e5}.global-info-group__section+.global-info-group__section[data-v-e86a3d32]{margin-top:20px}.global-info-group__section[data-v-e86a3d32]:last-child{padding-bottom:0;border-bottom:0}.global-info-group__empty[data-v-e86a3d32]{min-height:80px;display:flex;align-items:center;justify-content:center;color:#0006;font-size:14px}.global-info-sections[data-v-d4ed3f80]{display:flex;min-width:0;flex-direction:column;gap:12px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jt-home/mfe-components",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",