优惠券 PC管理端 项目

253.34704276.js 27KB

1
  1. "use strict";(self["webpackChunkcoupon"]=self["webpackChunkcoupon"]||[]).push([[253],{50:function(e,t){var n={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};t.Z=n},7686:function(e,t,n){n.r(t),n.d(t,{default:function(){return dt}});var l=n(3396),o=n(7139),a=n(4870),s=n(5989),r=n(6734);const u={name:"ElContainer"},i=(0,l.aZ)({...u,props:{direction:{type:String}},setup(e){const t=e,n=(0,l.Rr)(),s=(0,r.s)("container"),u=(0,l.Fl)((()=>{if("vertical"===t.direction)return!0;if("horizontal"===t.direction)return!1;if(n&&n.default){const e=n.default();return e.some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))}return!1}));return(e,t)=>((0,l.wg)(),(0,l.iD)("section",{class:(0,o.C_)([(0,a.SU)(s).b(),(0,a.SU)(s).is("vertical",(0,a.SU)(u))])},[(0,l.WI)(e.$slots,"default")],2))}});var d=(0,s.Z)(i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const c={name:"ElAside"},p=(0,l.aZ)({...c,props:{width:{type:String,default:null}},setup(e){const t=e,n=(0,r.s)("aside"),s=(0,l.Fl)((()=>t.width?n.cssVarBlock({width:t.width}):{}));return(e,t)=>((0,l.wg)(),(0,l.iD)("aside",{class:(0,o.C_)((0,a.SU)(n).b()),style:(0,o.j5)((0,a.SU)(s))},[(0,l.WI)(e.$slots,"default")],6))}});var m=(0,s.Z)(p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const v={name:"ElFooter"},h=(0,l.aZ)({...v,props:{height:{type:String,default:null}},setup(e){const t=e,n=(0,r.s)("footer"),s=(0,l.Fl)((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>((0,l.wg)(),(0,l.iD)("footer",{class:(0,o.C_)((0,a.SU)(n).b()),style:(0,o.j5)((0,a.SU)(s))},[(0,l.WI)(e.$slots,"default")],6))}});var f=(0,s.Z)(h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const g={name:"ElHeader"},b=(0,l.aZ)({...g,props:{height:{type:String,default:null}},setup(e){const t=e,n=(0,r.s)("header"),s=(0,l.Fl)((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>((0,l.wg)(),(0,l.iD)("header",{class:(0,o.C_)((0,a.SU)(n).b()),style:(0,o.j5)((0,a.SU)(s))},[(0,l.WI)(e.$slots,"default")],6))}});var y=(0,s.Z)(b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const w={name:"ElMain"},x=(0,l.aZ)({...w,setup(e){const t=(0,r.s)("main");return(e,n)=>((0,l.wg)(),(0,l.iD)("main",{class:(0,o.C_)((0,a.SU)(t).b())},[(0,l.WI)(e.$slots,"default")],2))}});var I=(0,s.Z)(x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]),k=n(9015);const T=(0,k.nz)(d,{Aside:m,Footer:f,Header:y,Main:I}),M=(0,k.dp)(m),S=((0,k.dp)(f),(0,k.dp)(y)),_=(0,k.dp)(I);n(1758),n(7658);var E=n(5119),C=n(1015),A=n(2748),P=n(9619),D=n(1056);class F{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case P.n.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case P.n.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case P.n.tab:(0,D.qe)(e,"mouseleave");break;case P.n.enter:case P.n.space:n=!0,t.currentTarget.click();break}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}}class H{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new F(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case P.n.down:(0,D.qe)(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case P.n.up:(0,D.qe)(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case P.n.tab:(0,D.qe)(e.currentTarget,"mouseleave");break;case P.n.enter:case P.n.space:t=!0,e.currentTarget.click();break}t&&e.preventDefault()}))}}class B{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new H(t,e)}))}}var N=n(9242),O=n(529);const W=(0,l.aZ)({name:"ElMenuCollapseTransition",setup(){const e=(0,r.s)("menu"),t={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){(0,O.cn)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){(0,O.IV)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),(0,O.pv)(t,e.m("collapse"))?((0,O.IV)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,O.cn)(t,e.m("collapse"))):((0,O.cn)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,O.IV)(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){(0,O.cn)(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return{listeners:t}}});function Z(e,t,n,o,a,s){return(0,l.wg)(),(0,l.j4)(N.uT,(0,l.dG)({mode:"out-in"},e.listeners),{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"default")])),_:3},16)}var $=(0,s.Z)(W,[["render",Z],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]),L=n(6413);const z={name:"ElCollapseTransition"},j=(0,l.aZ)({...z,setup(e){const t=(0,r.s)("collapse-transition"),n={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return(e,o)=>((0,l.wg)(),(0,l.j4)(N.uT,(0,l.dG)({name:(0,a.SU)(t).b()},(0,l.mx)(n)),{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"default")])),_:3},16,["name"]))}});var U=(0,s.Z)(j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);U.install=e=>{e.component(U.name,U)};const Y=U;var q=n(4738);n(541);function R(e,t){const n=(0,l.Fl)((()=>{let n=e.parent;const l=[t.value];while("ElMenu"!==n.type.name)n.props.index&&l.unshift(n.props.index),n=n.parent;return l})),o=(0,l.Fl)((()=>{let t=e.parent;while(t&&!["ElMenu","ElSubMenu"].includes(t.type.name))t=t.parent;return t}));return{parentMenu:o,indexPath:n}}var G=n(9414);function V(e){const t=(0,l.Fl)((()=>{const t=e.backgroundColor;return t?new G.C(t).shade(20).toString():""}));return t}const J=(e,t)=>{const n=(0,r.s)("menu");return(0,l.Fl)((()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":V(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))};var K=n(5994),Q=n(2039),X=n(4620);const ee=(0,K.o8)({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Q.AA},expandOpenIcon:{type:Q.AA},collapseCloseIcon:{type:Q.AA},collapseOpenIcon:{type:Q.AA}}),te="ElSubMenu";var ne=(0,l.aZ)({name:te,props:ee,setup(e,{slots:t,expose:n}){const s=(0,l.FN)(),{indexPath:u,parentMenu:i}=R(s,(0,l.Fl)((()=>e.index))),d=(0,r.s)("menu"),c=(0,r.s)("sub-menu"),p=(0,l.f3)("rootMenu");p||(0,X._)(te,"can not inject root menu");const m=(0,l.f3)(`subMenu:${i.value.uid}`);m||(0,X._)(te,"can not inject sub menu");const v=(0,a.iH)({}),h=(0,a.iH)({});let f;const g=(0,a.iH)(!1),b=(0,a.iH)(),y=(0,a.iH)(null),w=(0,l.Fl)((()=>"horizontal"===F.value&&I.value?"bottom-start":"right-start")),x=(0,l.Fl)((()=>"horizontal"===F.value&&I.value||"vertical"===F.value&&!p.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:A.K5e:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:A.olP)),I=(0,l.Fl)((()=>0===m.level)),k=(0,l.Fl)((()=>void 0===e.popperAppendToBody?I.value:Boolean(e.popperAppendToBody))),T=(0,l.Fl)((()=>p.props.collapse?`${d.namespace.value}-zoom-in-left`:`${d.namespace.value}-zoom-in-top`)),M=(0,l.Fl)((()=>"horizontal"===F.value&&I.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"])),S=(0,l.Fl)((()=>p.openedMenus.includes(e.index))),_=(0,l.Fl)((()=>{let e=!1;return Object.values(v.value).forEach((t=>{t.active&&(e=!0)})),Object.values(h.value).forEach((t=>{t.active&&(e=!0)})),e})),E=(0,l.Fl)((()=>p.props.backgroundColor||"")),P=(0,l.Fl)((()=>p.props.activeTextColor||"")),D=(0,l.Fl)((()=>p.props.textColor||"")),F=(0,l.Fl)((()=>p.props.mode)),H=(0,a.qj)({index:e.index,indexPath:u,active:_}),B=(0,l.Fl)((()=>"horizontal"!==F.value?{color:D.value}:{borderBottomColor:_.value?p.props.activeTextColor?P.value:"":"transparent",color:_.value?P.value:D.value})),O=()=>{var e,t,n;return null==(n=null==(t=null==(e=y.value)?void 0:e.popperRef)?void 0:t.popperInstanceRef)?void 0:n.destroy()},W=e=>{e||O()},Z=()=>{"hover"===p.props.menuTrigger&&"horizontal"===p.props.mode||p.props.collapse&&"vertical"===p.props.mode||e.disabled||p.handleSubMenuClick({index:e.index,indexPath:u.value,active:_.value})},$=(t,n=e.showTimeout)=>{var l;"focus"!==t.type&&("click"===p.props.menuTrigger&&"horizontal"===p.props.mode||!p.props.collapse&&"vertical"===p.props.mode||e.disabled||(m.mouseInChild.value=!0,null==f||f(),({stop:f}=(0,L.eM)((()=>{p.openMenu(e.index,u.value)}),n)),k.value&&(null==(l=i.value.vnode.el)||l.dispatchEvent(new MouseEvent("mouseenter")))))},z=(t=!1)=>{var n,l;"click"===p.props.menuTrigger&&"horizontal"===p.props.mode||!p.props.collapse&&"vertical"===p.props.mode||(null==f||f(),m.mouseInChild.value=!1,({stop:f}=(0,L.eM)((()=>!g.value&&p.closeMenu(e.index,u.value)),e.hideTimeout)),k.value&&t&&"ElSubMenu"===(null==(n=s.parent)?void 0:n.type.name)&&(null==(l=m.handleMouseleave)||l.call(m,!0)))};(0,l.YP)((()=>p.props.collapse),(e=>W(Boolean(e))));{const e=e=>{h.value[e.index]=e},t=e=>{delete h.value[e.index]};(0,l.JJ)(`subMenu:${s.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:z,mouseInChild:g,level:m.level+1})}return n({opened:S}),(0,l.bv)((()=>{p.addSubMenu(H),m.addSubMenu(H)})),(0,l.Jd)((()=>{m.removeSubMenu(H),p.removeSubMenu(H)})),()=>{var n;const a=[null==(n=t.title)?void 0:n.call(t),(0,l.h)(C.gn,{class:c.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&p.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>(0,o.HD)(x.value)?(0,l.h)(s.appContext.components[x.value]):(0,l.h)(x.value)})],r=J(p.props,m.level+1),u=p.isMenuPopup?(0,l.h)(q.Q0,{ref:y,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:w.value,teleported:k.value,fallbackPlacements:M.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var n;return(0,l.h)("div",{class:[d.m(F.value),d.m("popup-container"),e.popperClass],onMouseenter:e=>$(e,100),onMouseleave:()=>z(!0),onFocus:e=>$(e,100)},[(0,l.h)("ul",{class:[d.b(),d.m("popup"),d.m(`popup-${w.value}`)],style:r.value},[null==(n=t.default)?void 0:n.call(t)])])},default:()=>(0,l.h)("div",{class:c.e("title"),style:[B.value,{backgroundColor:E.value}],onClick:Z},a)}):(0,l.h)(l.HY,{},[(0,l.h)("div",{class:c.e("title"),style:[B.value,{backgroundColor:E.value}],ref:b,onClick:Z},a),(0,l.h)(Y,{},{default:()=>{var e;return(0,l.wy)((0,l.h)("ul",{role:"menu",class:[d.b(),d.m("inline")],style:r.value},[null==(e=t.default)?void 0:e.call(t)]),[[N.F8,S.value]])}})]);return(0,l.h)("li",{class:[c.b(),c.is("active",_.value),c.is("opened",S.value),c.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:$,onMouseleave:()=>z(!0),onFocus:$},[u])}}}),le=n(3071),oe=n(2371);const ae=(0,K.o8)({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:(0,K.Cq)(Array),default:()=>(0,le.N)([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),se=e=>Array.isArray(e)&&e.every((e=>(0,o.HD)(e))),re={close:(e,t)=>(0,o.HD)(e)&&se(t),open:(e,t)=>(0,o.HD)(e)&&se(t),select:(e,t,n,l)=>(0,o.HD)(e)&&se(t)&&(0,o.Kn)(n)&&(void 0===l||l instanceof Promise)};var ue=(0,l.aZ)({name:"ElMenu",props:ae,emits:re,setup(e,{emit:t,slots:n,expose:o}){const s=(0,l.FN)(),u=s.appContext.config.globalProperties.$router,i=(0,a.iH)(),d=(0,r.s)("menu"),c=(0,r.s)("sub-menu"),p=(0,a.iH)(-1),m=(0,a.iH)(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),v=(0,a.iH)(e.defaultActive),h=(0,a.iH)({}),f=(0,a.iH)({}),g=(0,l.Fl)((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),b=()=>{const t=v.value&&h.value[v.value];if(!t||"horizontal"===e.mode||e.collapse)return;const n=t.indexPath;n.forEach((e=>{const t=f.value[e];t&&y(e,t.indexPath)}))},y=(n,l)=>{m.value.includes(n)||(e.uniqueOpened&&(m.value=m.value.filter((e=>l.includes(e)))),m.value.push(n),t("open",n,l))},w=(e,n)=>{const l=m.value.indexOf(e);-1!==l&&m.value.splice(l,1),t("close",e,n)},x=({index:e,indexPath:t})=>{const n=m.value.includes(e);n?w(e,t):y(e,t)},I=n=>{("horizontal"===e.mode||e.collapse)&&(m.value=[]);const{index:l,indexPath:o}=n;if(void 0!==l&&void 0!==o)if(e.router&&u){const e=n.route||l,a=u.push(e).then((e=>(e||(v.value=l),e)));t("select",l,o,{index:l,indexPath:o,route:e},a)}else v.value=l,t("select",l,o,{index:l,indexPath:o})},k=t=>{const n=h.value,l=n[t]||v.value&&n[v.value]||n[e.defaultActive];v.value=l?l.index:t},T=()=>{var e,t;if(!i.value)return-1;const n=Array.from(null!=(t=null==(e=i.value)?void 0:e.childNodes)?t:[]).filter((e=>"#text"!==e.nodeName||e.nodeValue)),l=64,o=Number.parseInt(getComputedStyle(i.value).paddingLeft,10),a=Number.parseInt(getComputedStyle(i.value).paddingRight,10),s=i.value.clientWidth-o-a;let r=0,u=0;return n.forEach(((e,t)=>{r+=e.offsetWidth||0,r<=s-l&&(u=t+1)})),u===n.length?-1:u},M=(e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{e()}),t)}};let S=!0;const _=()=>{const e=()=>{p.value=-1,(0,l.Y3)((()=>{p.value=T()}))};S?e():M(e)(),S=!1};let P;(0,l.YP)((()=>e.defaultActive),(e=>{h.value[e]||(v.value=""),k(e)})),(0,l.YP)((()=>e.collapse),(e=>{e&&(m.value=[])})),(0,l.YP)(h.value,b),(0,l.m0)((()=>{"horizontal"===e.mode&&e.ellipsis?P=(0,E.yU7)(i,_).stop:null==P||P()}));{const t=e=>{f.value[e.index]=e},n=e=>{delete f.value[e.index]},o=e=>{h.value[e.index]=e},r=e=>{delete h.value[e.index]};(0,l.JJ)("rootMenu",(0,a.qj)({props:e,openedMenus:m,items:h,subMenus:f,activeIndex:v,isMenuPopup:g,addMenuItem:o,removeMenuItem:r,addSubMenu:t,removeSubMenu:n,openMenu:y,closeMenu:w,handleMenuItemClick:I,handleSubMenuClick:x})),(0,l.JJ)(`subMenu:${s.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:(0,a.iH)(!1),level:0})}(0,l.bv)((()=>{"horizontal"===e.mode&&new B(s.vnode.el,d.namespace.value)}));{const e=e=>{const{indexPath:t}=f.value[e];t.forEach((e=>y(e,t)))};o({open:e,close:w,handleResize:_})}return()=>{var t,o;let a=null!=(o=null==(t=n.default)?void 0:t.call(n))?o:[];const s=[];if("horizontal"===e.mode&&i.value){const t=(0,oe.M3)(a),n=-1===p.value?t:t.slice(0,p.value),o=-1===p.value?[]:t.slice(p.value);(null==o?void 0:o.length)&&e.ellipsis&&(a=n,s.push((0,l.h)(ne,{index:"sub-menu-more",class:c.e("hide-arrow")},{title:()=>(0,l.h)(C.gn,{class:c.e("icon-more")},{default:()=>(0,l.h)(A.Tkc)}),default:()=>o})))}const r=J(e,0),u=(0,l.h)("ul",{key:String(e.collapse),role:"menubar",ref:i,style:r.value,class:{[d.b()]:!0,[d.m(e.mode)]:!0,[d.m("collapse")]:e.collapse}},[...a,...s]);return e.collapseTransition&&"vertical"===e.mode?(0,l.h)($,(()=>u)):u}}});const ie=(0,K.o8)({index:{type:(0,K.Cq)([String,null]),default:null},route:{type:(0,K.Cq)([String,Object])},disabled:Boolean}),de={click:e=>(0,o.HD)(e.index)&&Array.isArray(e.indexPath)};var ce=n(2572);const pe="ElMenuItem",me=(0,l.aZ)({name:pe,components:{ElTooltip:q.Q0},props:ie,emits:de,setup(e,{emit:t}){const n=(0,l.FN)(),o=(0,l.f3)("rootMenu"),s=(0,r.s)("menu"),u=(0,r.s)("menu-item");o||(0,X._)(pe,"can not inject root menu");const{parentMenu:i,indexPath:d}=R(n,(0,a.Vh)(e,"index")),c=(0,l.f3)(`subMenu:${i.value.uid}`);c||(0,X._)(pe,"can not inject sub menu");const p=(0,l.Fl)((()=>e.index===o.activeIndex)),m=(0,a.qj)({index:e.index,indexPath:d,active:p}),v=()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:d.value,route:e.route}),t("click",m))};return(0,l.bv)((()=>{c.addSubMenu(m),o.addMenuItem(m)})),(0,l.Jd)((()=>{c.removeSubMenu(m),o.removeMenuItem(m)})),{Effect:ce.Qm,parentMenu:i,rootMenu:o,active:p,nsMenu:s,nsMenuItem:u,handleClick:v}}});function ve(e,t,n,a,s,r){const u=(0,l.up)("el-tooltip");return(0,l.wg)(),(0,l.iD)("li",{class:(0,o.C_)([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?((0,l.wg)(),(0,l.j4)(u,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"title")])),default:(0,l.w5)((()=>[(0,l._)("div",{class:(0,o.C_)(e.nsMenu.be("tooltip","trigger"))},[(0,l.WI)(e.$slots,"default")],2)])),_:3},8,["effect"])):((0,l.wg)(),(0,l.iD)(l.HY,{key:1},[(0,l.WI)(e.$slots,"default"),(0,l.WI)(e.$slots,"title")],64))],2)}var he=(0,s.Z)(me,[["render",ve],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const fe={title:String},ge="ElMenuItemGroup",be=(0,l.aZ)({name:ge,props:fe,setup(){const e=(0,r.s)("menu-item-group");return{ns:e}}});function ye(e,t,n,a,s,r){return(0,l.wg)(),(0,l.iD)("li",{class:(0,o.C_)(e.ns.b())},[(0,l._)("div",{class:(0,o.C_)(e.ns.e("title"))},[e.$slots.title?(0,l.WI)(e.$slots,"title",{key:1}):((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l.Uk)((0,o.zw)(e.title),1)],64))],2),(0,l._)("ul",null,[(0,l.WI)(e.$slots,"default")])],2)}var we=(0,s.Z)(be,[["render",ye],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const xe=(0,k.nz)(ue,{MenuItem:he,MenuItemGroup:we,SubMenu:ne}),Ie=(0,k.dp)(he),ke=((0,k.dp)(we),(0,k.dp)(ne));n(4566);var Te=n(6373);const Me={style:{"margin-left":"8px"}},Se={key:0,style:{"margin-left":"8px"}},_e={key:1};var Ee=(0,l.aZ)({__name:"SidebarItem",props:["menuList"],setup(e){return(t,n)=>{const a=Te.Z,s=(0,l.up)("SidebarItem",!0),r=ke,u=Ie;return(0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.menuList,(e=>((0,l.wg)(),(0,l.iD)(l.HY,{key:e.path},[e.children&&e.children.length>0?((0,l.wg)(),(0,l.j4)(r,{key:0,index:e.path},{title:(0,l.w5)((()=>[e.meta.icon?((0,l.wg)(),(0,l.j4)(a,{key:0,name:e.meta.icon},null,8,["name"])):(0,l.kq)("",!0),(0,l._)("span",Me,(0,o.zw)(e?.meta?.title),1)])),default:(0,l.w5)((()=>[(0,l.Wm)(s,{"menu-list":e.children},null,8,["menu-list"])])),_:2},1032,["index"])):e.hidden?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(u,{key:1,index:e.path},{title:(0,l.w5)((()=>[e.children&&0!==e.children.length?((0,l.wg)(),(0,l.iD)("span",_e,(0,o.zw)(e?.meta?.title),1)):((0,l.wg)(),(0,l.iD)("span",Se,(0,o.zw)(e?.meta?.title),1))])),default:(0,l.w5)((()=>[e.meta.icon?((0,l.wg)(),(0,l.j4)(a,{key:0,name:e.meta.icon},null,8,["name"])):(0,l.kq)("",!0)])),_:2},1032,["index"]))],64)))),128)}}});const Ce=Ee;var Ae=Ce,Pe=n(2483),De=n(6320);const Fe={class:"wrap"};var He=(0,l.aZ)({__name:"BaseSidebar",setup(e){const t=De.Z[0].children,n=(0,Pe.yj)(),o=(0,l.Fl)((()=>n.path));return(e,n)=>{const s=Ae,r=xe;return(0,l.wg)(),(0,l.iD)("div",Fe,[(0,l.Wm)(r,{router:"","default-active":(0,a.SU)(o),"unique-opened":!0,"active-text-color":"#FF4040","text-color":"#666"},{default:(0,l.w5)((()=>[(0,l.Wm)(s,{"menu-list":(0,a.SU)(t)},null,8,["menu-list"])])),_:1},8,["default-active"])])}}}),Be=n(89);const Ne=(0,Be.Z)(He,[["__scopeId","data-v-74e2ab8d"]]);var Oe=Ne,We=(n(8474),n(573)),Ze=(n(3877),n(7960),n.p+"img/logo.b5510f63.png"),$e=n(6294),Le=n(43),ze=n(4147);const je=e=>((0,l.dD)("data-v-08e66e51"),e=e(),(0,l.Cn)(),e),Ue={class:"wrap"},Ye={class:"lt-wrap"},qe=je((()=>(0,l._)("img",{class:"logo-img",src:Ze},null,-1))),Re={class:"account-wrap"},Ge=je((()=>(0,l._)("span",{class:"label"},"淘宝账号ID",-1))),Ve={class:"rt-wrap"},Je={class:"login-wrap"},Ke={style:{"margin-left":"15px"}};var Qe=(0,l.aZ)({__name:"BaseHeader",setup(e){const t=ze.i8,n=(0,Pe.tv)(),s=(0,$e.L)(),r=(0,Le.w)(),u=(0,l.f3)("handleReloadPage"),i=(0,a.iH)(""),d=async e=>{r.setGlobalTbAccountId(e),i.value=e,u()},c=()=>{s.clearToken(),n.replace("/login")},p=()=>{s.clearToken(),n.replace("/login")};return(0,l.bv)((async()=>{await r.getGlobalTbAccountIdOptions(),r.globalTbAccountIdOptions.length&&!r.globalTbAccountId?(r.initGlobalTbAccountId(),i.value=r.globalTbAccountId):r.globalTbAccountIdOptions.length&&r.globalTbAccountId?i.value=r.globalTbAccountId:(r.clearGlobalTbAccountId(),i.value="")})),(e,n)=>{const u=We.BT,m=We.km,v=C.gn;return(0,l.wg)(),(0,l.iD)("div",Ue,[(0,l._)("div",Ye,[qe,(0,l._)("div",Re,[Ge,(0,l.Wm)(m,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),placeholder:"请选择淘宝账号ID",onChange:d},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,a.SU)(r).globalTbAccountIdOptions,(e=>((0,l.wg)(),(0,l.j4)(u,{key:e.id,label:`${e.accountId}(${e.tbNickname})`,value:e.accountId},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])]),(0,l._)("div",Ve,[(0,l._)("div",Je,[(0,l.Wm)(v,null,{default:(0,l.w5)((()=>[(0,l.Wm)((0,a.SU)(A.n5m))])),_:1}),(0,a.SU)(s).token?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"login-btn",onClick:p},"退出登录")):((0,l.wg)(),(0,l.iD)("span",{key:0,class:"login-btn",onClick:c},"登录"))]),(0,l._)("span",Ke,"v"+(0,o.zw)((0,a.SU)(t)),1)])])}}});const Xe=(0,Be.Z)(Qe,[["__scopeId","data-v-08e66e51"]]);var et=Xe,tt=n(1511);const nt=(0,k.nz)(tt.ZP);var lt=n(50);const ot={class:"wrap"};var at=(0,l.aZ)({__name:"BaseMain",setup(e){return(e,t)=>{const n=(0,l.up)("router-view"),o=nt;return(0,l.wg)(),(0,l.iD)("div",ot,[(0,l.Wm)(o,{locale:(0,a.SU)(lt.Z)},{default:(0,l.w5)((()=>[(0,l.Wm)(n,null,{default:(0,l.w5)((({Component:e})=>[(0,l.Wm)(N.uT,{name:"page",mode:"out-in"},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(e),{key:e}))])),_:2},1024)])),_:1})])),_:1},8,["locale"])])}}});const st=(0,Be.Z)(at,[["__scopeId","data-v-0ae44cc8"]]);var rt=st,ut=(0,l.aZ)({__name:"index",setup(e){return(e,t)=>{const n=S,o=M,a=_,s=T;return(0,l.wg)(),(0,l.j4)(s,{class:"container-wrap"},{default:(0,l.w5)((()=>[(0,l.Wm)(n,{class:"header-wrap"},{default:(0,l.w5)((()=>[(0,l.Wm)(et)])),_:1}),(0,l.Wm)(s,null,{default:(0,l.w5)((()=>[(0,l.Wm)(o,{class:"aside-wrap"},{default:(0,l.w5)((()=>[(0,l.Wm)(Oe)])),_:1}),(0,l.Wm)(a,{class:"main-wrap"},{default:(0,l.w5)((()=>[(0,l.Wm)(rt)])),_:1})])),_:1})])),_:1})}}});const it=(0,Be.Z)(ut,[["__scopeId","data-v-db20707a"]]);var dt=it},8474:function(e,t,n){n(1758)},4566:function(e,t,n){n(1758),n(6467)},1056:function(e,t,n){n.d(t,{b9:function(){return a},qe:function(){return r}});const l='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',o=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},a=e=>Array.from(e.querySelectorAll(l)).filter((e=>s(e)&&o(e))),s=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r=function(e,t,...n){let l;l=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(l);return o.initEvent(t,...n),e.dispatchEvent(o),e}},2371:function(e,t,n){n.d(t,{M3:function(){return a},y:function(){return o}});n(1703),n(7658);var l=n(7139);var o=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(o||{});const a=e=>{const t=(0,l.kJ)(e)?e:[e],n=[];return t.forEach((e=>{(0,l.kJ)(e.children)?n.push(...a(e.children)):n.push(e)})),n}},4147:function(e){e.exports={i8:"0.1.7"}}}]);