(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[6815],{16815:function(t,e,n){"use strict";n.d(e,{W:function(){return ts},_:function(){return V}});var o,i,s=n(94248),r=n(90015),a=n(10958),l=n.n(a),c=n(46052),d=n(34934),h=n.n(d),u=n(79772),f=n.n(u),p=n(15971),m=n.n(p),v=n(37209),g=n(18378),y=n(3517),b=n(27010),w=n.n(b),_=n(37183);n(16192),n(57743),n(4329),n(77123),n(92705),n(13730),n(43857),n(93770),n(48731),n(82761),n(27730);var E=n(43776),O=n(75564),B=n(56297),S=n(12500),P=n(97726),C=n(49464);/**
 * @tencent/wework-design v1.2.1
 * (c) 2024 wework
 * @license MIT
 *//**
 * tdesign v1.9.7
 * (c) 2024 tdesign
 * @license MIT
 */function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach(function(e){(0,s.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var $=r.ZP.extend({methods:{getConfirmBtn:function(t){var e=this.$createElement,n=t.confirmBtn,o=t.className,i=t.confirmLoading;if(null===n)return null;n&&this.$scopedSlots.confirmBtn&&console.warn("Both $props.confirmBtn and $scopedSlots.confirmBtn exist, $props.confirmBtn is preferred.");var s=this.getDefaultConfirmBtnProps(t);return n||this.$scopedSlots.confirmBtn?n&&["string","object"].includes((0,y.Z)(n))?this.getButtonByProps(n,{defaultButtonProps:s,className:o,confirmLoading:i}):(0,_.r)(this,"confirmBtn"):e(v.B,(0,g.h)([{class:o},{props:k({loading:i},s)}]))},getCancelBtn:function(t){var e=this.$createElement,n=t.cancelBtn,o=t.className;if(null===n)return null;n&&this.$scopedSlots.cancelBtn&&console.warn("Both $props.cancelBtn and $scopedSlots.cancelBtn exist, $props.cancelBtn is preferred.");var i=this.getDefaultCancelBtnProps(t);return n||this.$scopedSlots.cancelBtn?n&&["string","object"].includes((0,y.Z)(n))?this.getButtonByProps(n,{defaultButtonProps:i}):(0,_.r)(this,"cancelBtn"):e(v.B,(0,g.h)([{class:o},{props:k({},i)}]))},getButtonByProps:function(t,e){var n=this.$createElement,o=e.defaultButtonProps,i=e.className,s=e.confirmLoading,r=o;return l()(t)?r.content=t:w()(t)&&(r=k(k({},r),t)),void 0!==s&&(r.loading=s),n(v.B,(0,g.h)([{class:i},{props:r}]))},confirmBtnAction:function(t){},cancelBtnAction:function(t){},getDefaultConfirmBtnProps:function(t){var e=this,n=t.globalConfirm,o=t.theme,i=t.globalConfirmBtnTheme,s={theme:(null==i?void 0:i[o])||"primary",content:"确定",size:t.size,onClick:function(t){e.confirmBtnAction(t)}};return l()(n)?s.content=n:w()(n)&&(s=k(k({},s),n)),s},getDefaultCancelBtnProps:function(t){var e=this,n=t.globalCancel,o={theme:"default",content:"取消",size:t.size,onClick:function(t){e.cancelBtnAction(t)}};return l()(n)?o.content=n:w()(n)&&(o=k(k({},o),n)),o}}}),N=[],T={push:function(t){N.push(t)},pop:function(t){N.length&&N.includes(t)&&N.pop()},get top(){return N[N.length-1]}};/**
 * tdesign v1.9.7
 * (c) 2024 tdesign
 * @license MIT
 */function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach(function(e){(0,s.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}"undefined"!=typeof window&&window.document&&window.document.documentElement&&document.documentElement.addEventListener("click",function(t){i={x:t.clientX,y:t.clientY},setTimeout(function(){i=null},100)},!0);var j=1,W=(0,E.m)($,(0,E.b)("dialog"),(0,E.a)()).extend({name:"TDialog",components:{TButton:v.B},data:function(){return{uid:0,scrollWidth:0,disX:0,disY:0,windowInnerWidth:0,windowInnerHeight:0,dialogW:0,dialogH:0,dLeft:0,dTop:0,styleEl:null,timer:null,animationEnd:!1}},props:H(H({},{attach:{type:[String,Function]},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function]},closeBtn:{type:[String,Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function]},confirmLoading:{type:Boolean,default:void 0},confirmOnEnter:Boolean,default:{type:[String,Function]},destroyOnClose:Boolean,draggable:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},mode:{type:String,default:"modal",validator:function(t){return!t||["modal","normal","modeless","full-screen"].includes(t)}},placement:{type:String,default:"top",validator:function(t){return!t||["top","center"].includes(t)}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(t){return!t||["default","info","warning","danger","success"].includes(t)}},top:{type:[String,Number]},visible:Boolean,width:{type:[String,Number]},zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onClosed:Function,onConfirm:Function,onEscKeydown:Function,onOpened:Function,onOverlayClick:Function}),{},{instanceGlobal:Object}),computed:{isModal:function(){return"modal"===this.mode},isModeLess:function(){return"modeless"===this.mode},isNormal:function(){return"normal"===this.mode},isFullScreen:function(){return"full-screen"===this.mode},maskClass:function(){return["".concat(this.componentName,"__mask"),!this.showOverlay&&"".concat(this.classPrefix,"-is-hidden")]},dialogClass:function(){var t=["".concat(this.componentName),"".concat(this.componentName,"__modal-").concat(this.theme),this.isModeLess&&this.draggable&&"".concat(this.componentName,"--draggable")];return this.isFullScreen?t.push("".concat(this.componentName,"__fullscreen")):t.push("".concat(this.componentName,"--default")),t},positionClass:function(){return this.isNormal?[]:this.isFullScreen?["".concat(this.componentName,"__position_fullscreen")]:["".concat(this.componentName,"__position"),!!this.top&&"".concat(this.componentName,"--top"),"".concat(this.placement&&!this.top?"".concat(this.componentName,"--").concat(this.placement):"")]},wrapClass:function(){return[!this.isNormal&&"".concat(this.componentName,"__wrap")]},ctxClass:function(){return["".concat(this.componentName,"__ctx"),(0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(this.classPrefix,"-dialog__ctx--fixed"),"modal"===this.mode||this.isFullScreen),"".concat(this.classPrefix,"-dialog__ctx--absolute"),this.isModal&&this.showInAttachedElement),"".concat(this.componentName,"__ctx--modeless"),this.isModeLess)]},positionStyle:function(){if(this.isFullScreen)return{};var t={};return void 0!==this.top&&(f()(this.top)&&this.top<0?t.paddingTop="".concat(this.top,"px"):t.paddingTop=this.top),t},dialogStyle:function(){var t;return this.isFullScreen?{}:{width:isNaN(Number(t=this.width))?t:"".concat(Number(t),"px")}}},watch:{visible:{handler:function(t){var e=this;"undefined"!=typeof window&&(t?(this.animationEnd=!1,(this.isModal&&!this.showInAttachedElement||this.isFullScreen)&&(this.preventScrollThrough&&this.$nextTick(function(){document.head.appendChild(e.styleEl)}),this.$nextTick(function(){var t=e.$refs.dialog;i&&t&&(t.style.transformOrigin="".concat(i.x-t.offsetLeft,"px ").concat(i.y-t.offsetTop,"px"))})),document.activeElement.blur()):this.clearStyleFunc(),this.$nextTick(function(){e.storeUid(t)}),this.addKeyboardEvent(t),this.isModeLess&&this.draggable&&this.$nextTick(function(){e.initDragEvent(t)}),t&&!this.destroyOnClose&&requestAnimationFrame&&requestAnimationFrame(function(){!/**
 * @tencent/wework-design v1.2.1
 * (c) 2024 wework
 * @license MIT
 *//**
 * tdesign v1.9.7
 * (c) 2024 tdesign
 * @license MIT
 */function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e&&e.$children&&!(n>=6))for(var o=e.$children,i=0,s=o.length;i<s;i++){var r,a,l=o[i],c=null==l||null===(r=l.$options)||void 0===r?void 0:r.name;if(c&&/(TTable|TBaseTable|TPrimaryTable|TEnhancedTable)/i.test(c)&&l.refreshTable){l.refreshTable();return}null!=l&&null!==(a=l.$children)&&void 0!==a&&a.length&&t(l,n+1)}}(e)}))},immediate:!0}},mounted:function(){var t,e,n=document.documentElement.scrollHeight>document.documentElement.clientHeight?((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t),e):0;this.draggable&&window.addEventListener("resize",m()(this.resizeAdjustPosition,1e3)),this.uid=this._uid,this.styleEl=document.createElement("style"),this.styleEl.dataset.id="td_dialog_".concat(+new Date,"_").concat(j+=1),this.styleEl.innerHTML="\n      html body {\n        overflow-y: hidden;\n        width: calc(100% - ".concat(n,"px);\n      }\n    "),this.visible&&this.isModal&&this.preventScrollThrough&&!this.showInAttachedElement&&document.head.appendChild(this.styleEl)},beforeDestroy:function(){this.addKeyboardEvent(!1),this.destroySelf(),this.destroySelfStyle()},directives:{TransferDom:O.T},methods:{clearStyleFunc:function(){var t=this;clearTimeout(this.timer),this.timer=setTimeout(function(){t.destroySelfStyle()},150)},destroySelfStyle:function(){var t,e;null===(t=this.styleEl.parentNode)||void 0===t||null===(e=t.removeChild)||void 0===e||e.call(t,this.styleEl)},destroySelf:function(){var t,e;null===(t=this.$el.parentNode)||void 0===t||null===(e=t.removeChild)||void 0===e||e.call(t,this.$el)},storeUid:function(t){t?T.push(this.uid):T.pop(this.uid)},addKeyboardEvent:function(t){t?(document.addEventListener("keydown",this.keyboardEvent),this.confirmOnEnter&&document.addEventListener("keydown",this.keyboardEnterEvent)):(document.removeEventListener("keydown",this.keyboardEvent),this.confirmOnEnter&&document.removeEventListener("keydown",this.keyboardEnterEvent))},keyboardEvent:function(t){if("Escape"===t.code&&T.top===this.uid){var e;(0,B.e)(this,"esc-keydown",{e:t}),(null!==(e=this.closeOnEscKeydown)&&void 0!==e?e:this.global.closeOnEscKeydown)&&this.emitCloseEvent({e:t,trigger:"esc"})}},keyboardEnterEvent:function(t){var e=t.code;("Enter"===e||"NumpadEnter"===e)&&T.top===this.uid&&(0,B.e)(this,"confirm",{e:t})},overlayAction:function(t){var e;t.target===this.$refs.dialogPosition&&((0,B.e)(this,"overlay-click",{e:t}),this.showOverlay&&(null!==(e=this.closeOnOverlayClick)&&void 0!==e?e:this.global.closeOnOverlayClick)&&this.emitCloseEvent({e:t,trigger:"overlay"}))},closeBtnAction:function(t){(0,B.e)(this,"close-btn-click",{e:t}),this.emitCloseEvent({trigger:"close-btn",e:t})},cancelBtnAction:function(t){(0,B.e)(this,"cancel",{e:t}),this.emitCloseEvent({trigger:"cancel",e:t})},confirmBtnAction:function(t){(0,B.e)(this,"confirm",{e:t})},afterEnter:function(){(0,B.e)(this,"opened")},afterLeave:function(){if(this.isModeLess&&this.draggable){var t=this.$refs.dialog;if(!t)return;t.style.position="relative",t.style.left="unset",t.style.top="unset"}(0,B.e)(this,"closed"),this.animationEnd=!0},emitCloseEvent:function(t){(0,B.e)(this,"close",t),this.$emit("update:visible",!1)},hasEventOn:function(t){var e,n=null===(e=this._events)||void 0===e?void 0:e[t];return!!(null!=n&&n.length)},getIcon:function(){var t=this.$createElement,e=this.useGlobalIcon({InfoCircleFilledIcon:S.I,CheckCircleFilledIcon:P.C,ErrorCircleFilledIcon:P.E}),n=e.InfoCircleFilledIcon,o=e.CheckCircleFilledIcon,i=e.ErrorCircleFilledIcon;return({info:t(n,{class:"".concat(this.classPrefix,"-is-info")}),warning:t(i,{class:"".concat(this.classPrefix,"-is-warning")}),danger:t(i,{class:"".concat(this.classPrefix,"-is-error")}),success:t(o,{class:"".concat(this.classPrefix,"-is-success")})})[this.theme]},mousedownHandler:function(t){var e=this.$refs.dialog;this.disX=t.clientX-e.offsetLeft,this.disY=t.clientY-e.offsetTop,this.dialogW=e.offsetWidth,this.dialogH=e.offsetHeight,this.windowInnerWidth=window.innerWidth||document.documentElement.clientWidth,this.windowInnerHeight=window.innerHeight||document.documentElement.clientHeight,this.dialogW>this.windowInnerWidth||this.dialogH>this.windowInnerHeight||(document.addEventListener("mousemove",this.mouseMoverHandler),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("dragend",this.mouseUpHandler))},mouseMoverHandler:function(t){var e=this.$refs.dialog,n=t.clientX-this.disX,o=t.clientY-this.disY;n<0&&(n=0),o<0&&(o=0),this.windowInnerWidth-e.offsetWidth-n<0&&(n=this.windowInnerWidth-e.offsetWidth),this.windowInnerHeight-e.offsetHeight-o<0&&(o=this.windowInnerHeight-e.offsetHeight),e.style.position="absolute",e.style.left="".concat(n,"px"),e.style.top="".concat(o,"px")},mouseUpHandler:function(){document.removeEventListener("mousemove",this.mouseMoverHandler),document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("dragend",this.mouseUpHandler)},initDragEvent:function(t){var e=this.$refs.dialog;t?e.addEventListener("mousedown",this.mousedownHandler):e.removeEventListener("mousedown",this.mousedownHandler)},resizeAdjustPosition:function(){if(this.visible){var t=this.$refs.dialog;t.style.left="".concat(this.dLeft*(window.innerWidth/this.windowInnerWidth),"px"),t.style.top="".concat(this.dTop*(window.innerHeight/this.windowInnerHeight),"px")}},onStopDown:function(t){this.isModeLess&&this.draggable&&t.stopPropagation()},renderDialog:function(){var t,e,n,o=this.$createElement,i=this.useGlobalIcon({CloseIcon:C.C}).CloseIcon,s=o("h5",{class:"title"}),r=o(i),a=(0,_.a)(this,"default","body"),l=o("div",[this.getCancelBtn({cancelBtn:this.cancelBtn,globalCancel:(null===(t=this.instanceGlobal)||void 0===t?void 0:t.cancel)||this.global.cancel,className:"".concat(this.componentName,"__cancel")}),this.getConfirmBtn({theme:this.theme,confirmBtn:this.confirmBtn,confirmLoading:this.confirmLoading,globalConfirm:(null===(e=this.instanceGlobal)||void 0===e?void 0:e.confirm)||this.global.confirm,globalConfirmBtnTheme:(null===(n=this.instanceGlobal)||void 0===n?void 0:n.confirmBtnTheme)||this.global.confirmBtnTheme,className:"".concat(this.componentName,"__confirm")})]),c=this.isFullScreen?["".concat(this.componentName,"__header"),"".concat(this.componentName,"__header--fullscreen")]:"".concat(this.componentName,"__header"),d=this.isFullScreen?["".concat(this.componentName,"__close"),"".concat(this.componentName,"__close--fullscreen")]:"".concat(this.componentName,"__close"),h="default"===this.theme?["".concat(this.componentName,"__body")]:["".concat(this.componentName,"__body"),"".concat(this.componentName,"__body__icon")],u=(0,_.r)(this,"footer",l);this.isFullScreen&&u?h.push("".concat(this.componentName,"__body--fullscreen")):this.isFullScreen&&h.push("".concat(this.componentName,"__body--fullscreen--without-footer"));var f=this.isFullScreen?["".concat(this.componentName,"__footer"),"".concat(this.componentName,"__footer--fullscreen")]:"".concat(this.componentName,"__footer"),p=this.footer?o("div",{class:f,on:{mousedown:this.onStopDown}},[u]):null;return o("div",{class:this.wrapClass},[o("div",{class:this.positionClass,style:this.positionStyle,on:{click:this.overlayAction},ref:"dialogPosition"},[o("div",{key:"dialog",ref:"dialog",class:this.dialogClass,style:this.dialogStyle},[o("div",{class:c,on:{mousedown:this.onStopDown}},[o("div",{class:"".concat(this.componentName,"__header-content")},[this.getIcon(),(0,_.r)(this,"header",s)]),this.closeBtn?o("span",{class:d,on:{click:this.closeBtnAction}},[(0,_.r)(this,"closeBtn",r)]):null]),o("div",{class:h,on:{mousedown:this.onStopDown}},[a]),p])])])}},render:function(){var t=arguments[0],e=(this.isModal||this.isFullScreen)&&t("div",{key:"mask",class:this.maskClass}),n=this.renderDialog(),o={zIndex:this.zIndex};return this.destroyOnClose&&!this.visible&&this.animationEnd?null:t("transition",{attrs:{duration:300,name:"".concat(this.componentName,"-zoom__vue")},on:{afterEnter:this.afterEnter,afterLeave:this.afterLeave}},[t("div",{directives:[{name:"show",value:this.visible},{name:"transfer-dom",value:this.attach}],class:this.ctxClass,style:o},[[e,n]])])}}),I=n(34656);n(57693);/**
 * @tencent/wework-design v1.2.1
 * (c) 2024 wework
 * @license MIT
 *//**
 * tdesign v1.9.7
 * (c) 2024 tdesign
 * @license MIT
 */var L=(0,I.w)(W),F=n(4369),A=n.n(F),M=n(86235),z=n(36021),Z=n(46291),q=n(81269),G=n(60242),K={components:{WWButton:M.G,WWIcon:z.f},props:{title:{type:String},subtitle:{type:String},showBack:{type:Boolean},showClose:{type:Boolean}},computed:{isDeskTop:function(){return(0,Z.ow)()}},methods:{back:function(t){this.$emit("back",t)},close:function(t){this.$emit("close",t)}}},U=(0,q.n)({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wd-top-nav",class:{"wd-top-nav__withSub":this.$slots.subtitle||this.subtitle,is_desk_top:this.isDeskTop}},[this.$slots.prefix||this.showBack?e("div",{staticClass:"wd-top-nav__prefix"},[this.$slots.prefix?this._t("prefix"):[e("WWButton",{attrs:{variant:"text",size:"small",shape:"square"},on:{click:this.back}},[e("WWIcon",{attrs:{slot:"icon",size:"20",name:"arrow-left"},slot:"icon"})],1)]],2):this._e(),this._v(" "),e("div",{staticClass:"wd-top-nav__content"},[e("div",{staticClass:"wd-top-nav__title"},[this.$slots.default?this._t("default"):[this._v(this._s(this.title))]],2),this._v(" "),this.$slots.subtitle||this.subtitle?e("div",{staticClass:"wd-top-nav__subtitle"},[this.$slots.subtitle?this._t("subtitle"):[this._v(this._s(this.subtitle))]],2):this._e()]),this._v(" "),this.$slots.suffix||this.showClose?e("div",{staticClass:"wd-top-nav__suffix"},[this.$slots.suffix?this._t("suffix"):[e("WWButton",{staticClass:"wd-top-nav__close",attrs:{variant:"text",shape:"square",block:""},on:{click:this.close}},[e("WWIcon",{attrs:{name:"nav-close",size:"20"}})],1)]],2):this._e()])},staticRenderFns:[]},void 0,K,void 0,!1,void 0,!1,void 0,void 0,void 0),X=(0,G.Z)(U,"WWTopNav"),Y=n(20234);function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach(function(e){(0,s.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Q={components:{TDialog:L,WWTopNav:X,WWIcon:z.f},props:{closeOnOverlayClick:{type:Boolean,default:function(){return!1}},theme:{type:String,default:function(){return""}},showOverlay:{type:Boolean,default:function(){return!1}},closeBtn:{type:Boolean,default:function(){return!1}},draggable:Boolean,showHeader:{type:Boolean,default:function(){return!1}},type:{type:String,default:function(){return""}},topNavProps:{type:Object,default:function(){return{}}},placement:{type:String,default:"center",validator:function(t){return["center","top"].includes(t)}},footerDivider:{type:Boolean,default:!1},maxHeight:{type:Number,default:825},minHeight:{type:Number,default:400},dialogPadding:{type:Number,default:32},preventScrollThrough:{type:Boolean,default:!0},useNewPreventScrollThrough:{type:Boolean,default:!1}},data:function(){return{pluginPropsData:this.$options.propsData||{},instance:null}},computed:{isDeskTop:function(){return(0,Z.ow)()},allAttrs:function(){return J(J({},this.$attrs),this.pluginPropsData||{})},isBusiness:function(){return"business"===this.type},tAttrs:function(){return(0,Z.CE)(this.allAttrs,["header","closeOnOverlayClick","theme","showOverlay","closeBtn","draggable"])},tDraggable:function(){return!this.showOverlay&&this.draggable},tHeader:function(){var t;return this.showHeader?null!==(t=this.allAttrs.header)&&void 0!==t?t:"标题":""},tTheme:function(){return this.$slots.header?"":this.theme},wwThemeIconName:function(){return({info:"info-attention-20",warning:"info-warning-20",danger:"info-error-20",success:"info-success-20",await:"info-await-20"})[this.tTheme]},isNoBody:function(){return!this.allAttrs.body&&!this.$slots.default&&!this.$slots.body},isNoHeader:function(){return!this.tHeader&&!this.$slots.header},haveHeaderSlot:function(){return this.$slots.header},isBodyPaddingLeft:function(){return this.tTheme&&this.showHeader&&!this.$slots.default&&!this.$slots.body},tbody:function(){var t,e;return null===(t=this.instance)||void 0===t?void 0:null===(e=t.$el)||void 0===e?void 0:e.querySelector(".t-dialog__body")},dialogWrap:function(){var t,e;return null===(t=this.instance)||void 0===t?void 0:null===(e=t.$el)||void 0===e?void 0:e.querySelector(".t-dialog__wrap")},_useNewPreventScrollThrough:function(){return"undefined"!=typeof CSS&&!!CSS.supports("overscroll-behavior","contain")&&this.useNewPreventScrollThrough}},watch:{"instance.visible":(o=(0,c.Z)(h().mark(function t(e,n){var o,i,s,r;return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!("undefined"==typeof window||"undefined"==typeof document)){t.next=2;break}return t.abrupt("return");case 2:if(!this._useNewPreventScrollThrough){t.next=7;break}return t.next=5,this.$nextTick();case 5:this._useNewPreventScrollThrough&&e&&!this.tAttrs.showInAttachedElement&&(this.dialogWrap.addEventListener("wheel",this.preventScrollHandler,{passive:!1}),document.head.appendChild(this.styleEl)),n&&!e&&this.removePreventScroll();case 7:if(!(!e||"center"!==this.placement)){t.next=9;break}return t.abrupt("return");case 9:return t.next=11,this.$nextTick();case 11:if(o=this.instance.$el.querySelector(".t-dialog")){t.next=14;break}return t.abrupt("return");case 14:if(i=o.getBoundingClientRect().height,s=Math.max(window.innerHeight,this.minHeight+2*this.dialogPadding),r=this.instance.$el.querySelector(".t-dialog--center"),!(s-i<2*this.dialogPadding)){t.next=23;break}if(r){t.next=21;break}return t.abrupt("return");case 21:r.style.padding=0,o.style.maxHeight="".concat(Math.min(s-2*this.dialogPadding,this.maxHeight),"px");case 23:case"end":return t.stop()}},t,this)})),function(t,e){return o.apply(this,arguments)})},created:function(){this.isBusiness&&(this.closeBtn||this.header)&&console.error("请使用 topNavProps 修改业务弹窗导航")},mounted:function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var t,e;this.instance=this.$refs.tdialog,this.instance.$el.querySelector(".t-dialog").style.maxHeight="".concat(this.maxHeight,"px"),this.isBusiness&&(this.instance.$el.querySelector(".t-dialog").style.minHeight="".concat(this.minHeight,"px")),window.addEventListener("resize",A()(this.resizeDialog)),this.styleEl=document.createElement("style"),this.styleEl.innerHTML="\n      ::-webkit-scrollbar {\n        width: ".concat(((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t),e),"px;\n      }\n      ::-webkit-scrollbar-thumb {\n        display: none;\n      }\n      .t-dialog > * {\n        overscroll-behavior: contain;\n      }\n      .t-dialog ::-webkit-scrollbar-thumb {\n        display: block;\n      }\n    "),this._useNewPreventScrollThrough&&this.tAttrs.visible&&!this.tAttrs.showInAttachedElement&&(this.dialogWrap.addEventListener("wheel",this.preventScrollHandler,{passive:!1}),document.head.appendChild(this.styleEl))}},beforeDestroy:function(){this.removePreventScroll()},methods:{removePreventScroll:function(){var t,e;this.dialogWrap.removeEventListener("wheel",this.preventScrollHandler,{passive:!1}),null===(t=this.styleEl.parentNode)||void 0===t||null===(e=t.removeChild)||void 0===e||e.call(t,this.styleEl)},preventScrollHandler:function(t){this.tbody.contains(t.target)&&(0,Z.A1)(this.tbody)||(t.preventDefault(),t.stopPropagation())},updatePropsData:function(t){this.pluginPropsData=J(J({},this.pluginPropsData),t)},close:function(t){this.$refs.tdialog.closeBtnAction(t)},back:function(t){this.$emit("back",t)},resizeDialog:function(){var t=this;return(0,c.Z)(h().mark(function e(){var n,o,i;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.instance.visible){e.next=2;break}return e.abrupt("return");case 2:if(n=t.instance.$el.querySelector(".t-dialog"),o=Math.max(window.innerHeight,t.minHeight+2*t.dialogPadding),i=t.instance.$el.querySelector(".t-dialog--center")){e.next=8;break}return e.abrupt("return");case 8:i.style.padding="".concat(t.dialogPadding,"px 0"),n.style.maxHeight="".concat(Math.min(o-2*t.dialogPadding,t.maxHeight),"px");case 10:case"end":return e.stop()}},e)}))()}}},V=(0,q.n)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TDialog",t._g(t._b({ref:"tdialog",staticClass:"wd-dialog",class:{"wd-dialog__no__body":t.isNoBody,"wd-dialog__body__padding-left":t.isBodyPaddingLeft,"wd-dialog__no__header":t.isNoHeader,"wd-dialog__business":t.isBusiness,"wd-dialog__no-have-header-slot":!t.haveHeaderSlot,"wd-dialog__footer-divider":t.footerDivider,is_desk_top:t.isDeskTop},attrs:{closeOnOverlayClick:t.closeOnOverlayClick,showOverlay:t.showOverlay,placement:t.placement,closeBtn:t.closeBtn,draggable:t.tDraggable,preventScrollThrough:!t._useNewPreventScrollThrough&&t.preventScrollThrough},scopedSlots:t._u([t._l(t.$scopedSlots,function(e,n){return{key:n,fn:function(e){return["function"==typeof e?t._t(n,function(){return[t._v(t._s(e))]}):t._t(n,null,null,e)]}}})],null,!0)},"TDialog",t.tAttrs,!1),t.$listeners),[t.isBusiness?n("template",{slot:"header"},[n("WWTopNav",t._b({on:{close:t.close,back:t.back}},"WWTopNav",t.topNavProps,!1))],1):t.tTheme?n("template",{slot:"header"},[n("WWIcon",{attrs:{name:t.wwThemeIconName}}),t._v(" "),n("span",{},[t._v(t._s(t.tHeader))])],1):n("div",{class:{"wd-dialog_header_text":t.isNoBody},attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.tHeader))]),t._v(" "),t._l(t.$slots,function(e,n){return t._t(n,null,{slot:n})})],2)},staticRenderFns:[]},void 0,Q,void 0,!1,void 0,!1,void 0,void 0,void 0);function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(e){(0,s.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tn=function(t,e){var n,o="function"==typeof t?t(e):t;return o?l()(o)?document.querySelector(o):(null!=(n=HTMLElement)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](o):o instanceof n)?o:document.body:document.body},to=function(t){var e=te({},t),n=r.ZP.extend(V),o=te(te({visible:!1},e),{},{onClose:e.onClose||function(){i.updatePropsData({visible:!1})},instanceGlobal:Y.Z.dialog}),i=new n({propsData:o}).$mount();i.updatePropsData({visible:!0}),e.className&&e.className.split(" ").forEach(function(t){i.$el.classList.add(t.trim())}),e.style&&(i.$el.style.cssText+=e.style);var s=tn(e.attach);return s?s.appendChild(i.$el):console.error("attach is not exist"),{show:function(){i.updatePropsData({visible:!0})},hide:function(){i.updatePropsData({visible:!1})},update:function(t){i.updatePropsData(t)},destroy:function(){i.updatePropsData({visible:!1}),s.contains(i.$el)&&s.removeChild(i.$el)}}},ti={confirm:function(t){return to(t)},alert:function(t){var e=te({},t);return e.cancelBtn=null,to(e)}},ts={install:function(){r.ZP.prototype.$dialog=to,Object.keys(ti).forEach(function(t){r.ZP.prototype.$dialog[t]=ti[t]})}};Object.keys(ti).forEach(function(t){ts[t]=ti[t]})},15971:function(t,e,n){var o=n(4369),i=n(27010);t.exports=function(t,e,n){var s=!0,r=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),o(t,e,{leading:s,maxWait:e,trailing:r})}}}]);