优惠券 PC管理端 项目

652.b6dc379c.js 12KB

1
  1. "use strict";(self["webpackChunkcoupon"]=self["webpackChunkcoupon"]||[]).push([[652],{2710:function(e,o,t){t.d(o,{d0:function(){return L}});var n=t(3396),l=t(4870),s=t(9242),a=t(7139),u=t(5407),r=t(1015),c=t(6044),d=t(5989),i=t(3257),f=t(2039);const p=Symbol("dialogInjectionKey");var m=t(8917);const v=(...e)=>o=>{e.forEach((e=>{(0,a.mf)(e)?e(o):e.value=o}))};var y=t(4389);const S=["aria-label"],C=["id"],g={name:"ElDialogContent"},b=(0,n.aZ)({...g,props:c.q,emits:c.b,setup(e){const o=e,{t:t}=(0,i.bU)(),{Close:u}=f.NK,{dialogRef:c,headerRef:d,bodyId:g,ns:b,style:h}=(0,n.f3)(p),{focusTrapRef:E}=(0,n.f3)(m.D5),U=v(E,c),k=(0,n.Fl)((()=>o.draggable));return(0,y.O)(c,d,k),(e,o)=>((0,n.wg)(),(0,n.iD)("div",{ref:(0,l.SU)(U),class:(0,a.C_)([(0,l.SU)(b).b(),(0,l.SU)(b).is("fullscreen",e.fullscreen),(0,l.SU)(b).is("draggable",(0,l.SU)(k)),(0,l.SU)(b).is("align-center",e.alignCenter),{[(0,l.SU)(b).m("center")]:e.center},e.customClass]),style:(0,a.j5)((0,l.SU)(h)),tabindex:"-1",onClick:o[1]||(o[1]=(0,s.iM)((()=>{}),["stop"]))},[(0,n._)("header",{ref_key:"headerRef",ref:d,class:(0,a.C_)((0,l.SU)(b).e("header"))},[(0,n.WI)(e.$slots,"header",{},(()=>[(0,n._)("span",{role:"heading",class:(0,a.C_)((0,l.SU)(b).e("title"))},(0,a.zw)(e.title),3)])),e.showClose?((0,n.wg)(),(0,n.iD)("button",{key:0,"aria-label":(0,l.SU)(t)("el.dialog.close"),class:(0,a.C_)((0,l.SU)(b).e("headerbtn")),type:"button",onClick:o[0]||(o[0]=o=>e.$emit("close"))},[(0,n.Wm)((0,l.SU)(r.gn),{class:(0,a.C_)((0,l.SU)(b).e("close"))},{default:(0,n.w5)((()=>[((0,n.wg)(),(0,n.j4)((0,n.LL)(e.closeIcon||(0,l.SU)(u))))])),_:1},8,["class"])],10,S)):(0,n.kq)("v-if",!0)],2),(0,n._)("div",{id:(0,l.SU)(g),class:(0,a.C_)((0,l.SU)(b).e("body"))},[(0,n.WI)(e.$slots,"default")],10,C),e.$slots.footer?((0,n.wg)(),(0,n.iD)("footer",{key:0,class:(0,a.C_)((0,l.SU)(b).e("footer"))},[(0,n.WI)(e.$slots,"footer")],2)):(0,n.kq)("v-if",!0)],6))}});var h=(0,d.Z)(b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]),E=t(6203),U=t(4770),k=t(7643),A=t(6734),w=t(3319),M=t(5554);const I=["aria-label","aria-labelledby","aria-describedby"],_={name:"ElDialog",inheritAttrs:!1},T=(0,n.aZ)({..._,props:E.B,emits:E.A,setup(e,{expose:o}){const t=e,r=(0,n.Rr)();(0,k.A)({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},(0,n.Fl)((()=>!!r.title))),(0,k.A)({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},(0,n.Fl)((()=>!!t.customClass)));const c=(0,A.s)("dialog"),d=(0,l.iH)(),i=(0,l.iH)(),f=(0,l.iH)(),{visible:m,titleId:v,bodyId:y,style:S,overlayDialogStyle:C,rendered:g,zIndex:b,afterEnter:E,afterLeave:_,beforeLeave:T,handleClose:F,onModalClick:R,onOpenAutoFocus:L,onCloseAutoFocus:D,onCloseRequested:B}=(0,U.R)(t,d);(0,n.JJ)(p,{dialogRef:d,headerRef:i,bodyId:y,ns:c,rendered:g,style:S});const N=(0,w.S)(R),x=(0,n.Fl)((()=>t.draggable&&!t.fullscreen));return o({visible:m,dialogContentRef:f}),(e,o)=>((0,n.wg)(),(0,n.j4)(n.lR,{to:"body",disabled:!e.appendToBody},[(0,n.Wm)(s.uT,{name:"dialog-fade",onAfterEnter:(0,l.SU)(E),onAfterLeave:(0,l.SU)(_),onBeforeLeave:(0,l.SU)(T),persisted:""},{default:(0,n.w5)((()=>[(0,n.wy)((0,n.Wm)((0,l.SU)(u.F6),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":(0,l.SU)(b)},{default:(0,n.w5)((()=>[(0,n._)("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:(0,l.SU)(v),"aria-describedby":(0,l.SU)(y),class:(0,a.C_)(`${(0,l.SU)(c).namespace.value}-overlay-dialog`),style:(0,a.j5)((0,l.SU)(C)),onClick:o[0]||(o[0]=(...e)=>(0,l.SU)(N).onClick&&(0,l.SU)(N).onClick(...e)),onMousedown:o[1]||(o[1]=(...e)=>(0,l.SU)(N).onMousedown&&(0,l.SU)(N).onMousedown(...e)),onMouseup:o[2]||(o[2]=(...e)=>(0,l.SU)(N).onMouseup&&(0,l.SU)(N).onMouseup(...e))},[(0,n.Wm)((0,l.SU)(M.Z),{loop:"",trapped:(0,l.SU)(m),"focus-start-el":"container",onFocusAfterTrapped:(0,l.SU)(L),onFocusAfterReleased:(0,l.SU)(D),onReleaseRequested:(0,l.SU)(B)},{default:(0,n.w5)((()=>[(0,l.SU)(g)?((0,n.wg)(),(0,n.j4)(h,(0,n.dG)({key:0,ref_key:"dialogContentRef",ref:f},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:(0,l.SU)(x),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:(0,l.SU)(F)}),(0,n.Nv)({header:(0,n.w5)((()=>[e.$slots.title?(0,n.WI)(e.$slots,"title",{key:1}):(0,n.WI)(e.$slots,"header",{key:0,close:(0,l.SU)(F),titleId:(0,l.SU)(v),titleClass:(0,l.SU)(c).e("title")})])),default:(0,n.w5)((()=>[(0,n.WI)(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:(0,n.w5)((()=>[(0,n.WI)(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):(0,n.kq)("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,I)])),_:3},8,["mask","overlay-class","z-index"]),[[s.F8,(0,l.SU)(m)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var F=(0,d.Z)(T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]),R=t(9015);const L=(0,R.nz)(F)},6044:function(e,o,t){t.d(o,{b:function(){return a},q:function(){return s}});var n=t(5994),l=t(2039);const s=(0,n.o8)({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:l.AA},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),a={close:()=>!0}},6203:function(e,o,t){t.d(o,{A:function(){return r},B:function(){return u}});var n=t(6044),l=t(5994),s=t(6835),a=t(6413);const u=(0,l.o8)({...n.q,appendToBody:{type:Boolean,default:!1},beforeClose:{type:(0,l.Cq)(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),r={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[s.f_]:e=>(0,a.jn)(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0}},4770:function(e,o,t){t.d(o,{R:function(){return p}});var n=t(3396),l=t(4870),s=t(6413),a=t(7750),u=t(8925),r=t(67),c=t(6734),d=t(529),i=t(6835),f=t(3388);const p=(e,o)=>{const t=(0,n.FN)(),p=t.emit,{nextZIndex:m}=(0,a.C)();let v="";const y=(0,u.M)(),S=(0,u.M)(),C=(0,l.iH)(!1),g=(0,l.iH)(!1),b=(0,l.iH)(!1),h=(0,l.iH)(e.zIndex||m());let E,U;const k=(0,r.W)("namespace",c.t),A=(0,n.Fl)((()=>{const o={},t=`--${k.value}-dialog`;return e.fullscreen||(e.top&&(o[`${t}-margin-top`]=e.top),e.width&&(o[`${t}-width`]=(0,d.Nn)(e.width))),o})),w=(0,n.Fl)((()=>e.alignCenter?{display:"flex"}:{}));function M(){p("opened")}function I(){p("closed"),p(i.f_,!1),e.destroyOnClose&&(b.value=!1)}function _(){p("close")}function T(){null==U||U(),null==E||E(),e.openDelay&&e.openDelay>0?({stop:E}=(0,s.eM)((()=>D()),e.openDelay)):D()}function F(){null==E||E(),null==U||U(),e.closeDelay&&e.closeDelay>0?({stop:U}=(0,s.eM)((()=>B()),e.closeDelay)):B()}function R(){function o(e){e||(g.value=!0,C.value=!1)}e.beforeClose?e.beforeClose(o):F()}function L(){e.closeOnClickModal&&R()}function D(){s.C5&&(C.value=!0)}function B(){C.value=!1}function N(){p("openAutoFocus")}function x(){p("closeAutoFocus")}function $(){e.closeOnPressEscape&&R()}return e.lockScroll&&(0,f.W)(C),(0,n.YP)((()=>e.modelValue),(t=>{t?(g.value=!1,T(),b.value=!0,h.value=e.zIndex?h.value++:m(),(0,n.Y3)((()=>{p("open"),o.value&&(o.value.scrollTop=0)}))):C.value&&F()})),(0,n.YP)((()=>e.fullscreen),(e=>{o.value&&(e?(v=o.value.style.transform,o.value.style.transform=""):o.value.style.transform=v)})),(0,n.bv)((()=>{e.modelValue&&(C.value=!0,b.value=!0,T())})),{afterEnter:M,afterLeave:I,beforeLeave:_,handleClose:R,onModalClick:L,close:F,doClose:B,onOpenAutoFocus:N,onCloseAutoFocus:x,onCloseRequested:$,titleId:y,bodyId:S,closed:g,style:A,overlayDialogStyle:w,rendered:b,visible:C,zIndex:h}}},9910:function(e,o,t){t(1758),t(7195)},5407:function(e,o,t){t.d(o,{F6:function(){return i}});var n=t(3396),l=t(5994),s=t(6734),a=t(3319),u=t(2371);const r=(0,l.o8)({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:(0,l.Cq)([String,Array,Object])},zIndex:{type:(0,l.Cq)([String,Number])}}),c={click:e=>e instanceof MouseEvent};var d=(0,n.aZ)({name:"ElOverlay",props:r,emits:c,setup(e,{slots:o,emit:t}){const l=(0,s.s)("overlay"),r=e=>{t("click",e)},{onClick:c,onMousedown:d,onMouseup:i}=(0,a.S)(e.customMaskEvent?void 0:r);return()=>e.mask?(0,n.Wm)("div",{class:[l.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:c,onMousedown:d,onMouseup:i},[(0,n.WI)(o,"default")],u.y.STYLE|u.y.CLASS|u.y.PROPS,["onClick","onMouseup","onMousedown"]):(0,n.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,n.WI)(o,"default")])}});const i=d},7195:function(e,o,t){t(1758)},7643:function(e,o,t){t.d(o,{A:function(){return a}});var n=t(3396),l=t(4870),s=t(4620);const a=({from:e,replacement:o,scope:t,version:a,ref:u,type:r="API"},c)=>{(0,n.YP)((()=>(0,l.SU)(c)),(n=>{n&&(0,s.N)(t,`[${r}] ${e} is about to be deprecated in version ${a}, please use ${o} instead.\nFor more detail, please visit: ${u}\n`)}),{immediate:!0})}},4389:function(e,o,t){t.d(o,{O:function(){return s}});var n=t(3396),l=t(529);const s=(e,o,t)=>{let s={offsetX:0,offsetY:0};const a=o=>{const t=o.clientX,n=o.clientY,{offsetX:a,offsetY:u}=s,r=e.value.getBoundingClientRect(),c=r.left,d=r.top,i=r.width,f=r.height,p=document.documentElement.clientWidth,m=document.documentElement.clientHeight,v=-c+a,y=-d+u,S=p-c-i+a,C=m-d-f+u,g=o=>{const r=Math.min(Math.max(a+o.clientX-t,v),S),c=Math.min(Math.max(u+o.clientY-n,y),C);s={offsetX:r,offsetY:c},e.value.style.transform=`translate(${(0,l.Nn)(r)}, ${(0,l.Nn)(c)})`},b=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",b)},u=()=>{o.value&&e.value&&o.value.addEventListener("mousedown",a)},r=()=>{o.value&&e.value&&o.value.removeEventListener("mousedown",a)};(0,n.bv)((()=>{(0,n.m0)((()=>{t.value?u():r()}))})),(0,n.Jd)((()=>{r()}))}},3388:function(e,o,t){t.d(o,{W:function(){return d}});var n=t(4870),l=t(3396),s=t(6413),a=t(6734),u=t(4620),r=t(529),c=t(9304);const d=e=>{(0,n.dq)(e)||(0,u._)("[useLockscreen]","You need to pass a ref param to this function");const o=(0,a.s)("popup"),t=(0,n.Fl)((()=>o.bm("parent","hidden")));if(!s.C5||(0,r.pv)(document.body,t.value))return;let d=0,i=!1,f="0";const p=()=>{setTimeout((()=>{(0,r.IV)(document.body,t.value),i&&(document.body.style.width=f)}),200)};(0,l.YP)(e,(e=>{if(!e)return void p();i=!(0,r.pv)(document.body,t.value),i&&(f=document.body.style.width),d=(0,c.Iz)(o.namespace.value);const n=document.documentElement.clientHeight<document.body.scrollHeight,l=(0,r.C2)(document.body,"overflowY");d>0&&(n||"scroll"===l)&&i&&(document.body.style.width=`calc(100% - ${d}px)`),(0,r.cn)(document.body,t.value)})),(0,n.EB)((()=>p()))}},3319:function(e,o,t){t.d(o,{S:function(){return l}});var n=t(7139);const l=e=>{if(!e)return{onClick:n.dG,onMousedown:n.dG,onMouseup:n.dG};let o=!1,t=!1;const l=n=>{o&&t&&e(n),o=t=!1},s=e=>{o=e.target===e.currentTarget},a=e=>{t=e.target===e.currentTarget};return{onClick:l,onMousedown:s,onMouseup:a}}},2371:function(e,o,t){t.d(o,{M3:function(){return s},y:function(){return l}});t(1703),t(7658);var n=t(7139);var l=(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))(l||{});const s=e=>{const o=(0,n.kJ)(e)?e:[e],t=[];return o.forEach((e=>{(0,n.kJ)(e.children)?t.push(...s(e.children)):t.push(e)})),t}}}]);