index-legacy-4b059b58.js 19 KB

1
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(B){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),u=new k(r||[]);return i(a,"_invoke",{value:x(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(B){return{type:"throw",arg:B}}}n.wrap=f;var p={};function d(){}function m(){}function g(){}var y={};s(y,u,(function(){return this}));var v=Object.getPrototypeOf,A=v&&v(v(L([])));A&&A!==r&&o.call(A,u)&&(y=A);var w=g.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,a,u,c){var l=h(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function x(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=h(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=h(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=s(g,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,c,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new _(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,l,"Generator"),s(w,u,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(z),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},n}function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void n(l)}u.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(s){l=!0,o=s}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy-0e645915.js","./Checker-legacy-46baf011.js"],(function(t,n){"use strict";var i,a,u,c,l,s,f,h,p,d,m,g,y,v,A,w,b,_,x,E,S,z,k,L,T,B;return{setters:[function(t){i=t.t,a=t.d,u=t.a4,c=t.A,l=t.g,s=t.x,f=t.T,h=t.G,p=t.a5,d=t.K,m=t.a6,g=t.a7,y=t.i,v=t.w,A=t.N,w=t.a8,b=t.X,_=t.a,x=t.h,E=t.I,S=t.P,z=t.O,k=t.j,L=t.a9},function(t){T=t.c,B=t.s}],execute:function(){var n=document.createElement("style");n.textContent="._mProtocol_ay5z2_1{font-size:.32rem;padding:.4rem .37333rem;color:var(--k-gray-4)}._mProtocol_ay5z2_1._center_ay5z2_6{display:flex;align-items:center;justify-content:center}._mProtocol_ay5z2_1 ._protocolText_ay5z2_11{color:#f96a33;line-height:.4rem}._mProtocol_ay5z2_1 ._boxStyle_ay5z2_15{background:transparent!important;width:.4rem;height:.4rem;font-size:.4rem;border:transparent!important}._mProtocol_ay5z2_1 .van-checkbox{display:inline-block;align-items:inherit;overflow:inherit}._mProtocol_ay5z2_1 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:sub}._mProtocol_ay5z2_1 .van-checkbox__label{line-height:.4rem;color:var(--k-gray-4)}._mProtocol_ay5z2_1 ._protocolContent_ay5z2_37{font-size:.37333rem;padding:.32rem;color:#333;line-height:1.4}._dialogTitle_zz3gi_1{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_zz3gi_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._oDialog_zz3gi_18 .van-dialog__header{padding-top:.53333rem}._oDialog_zz3gi_18 .van-dialog__message{font-size:.42667rem;color:#333;font-weight:400;line-height:.64rem}._oDialog_zz3gi_18 .van-dialog__cancel,._oDialog_zz3gi_18 .van-dialog__confirm{font-size:.48rem;height:1.33333rem;line-height:1.33333rem}._oDialog_zz3gi_18 .van-dialog__cancel{color:#777}._oDialog_zz3gi_18 .van-dialog__confirm{color:#f67146}\n",document.head.appendChild(n);var P=o(i("form"),2),C=P[0],O=P[1],V={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:s,labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:f,showErrorMessage:f,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}},R=a({name:C,props:V,emits:["submit","failed"],setup:function(t,e){var n=e.emit,r=e.slots,o=u(p),i=o.children,a=o.linkChildren,s=function(t){return t?i.filter((function(e){return t.includes(e.name)})):i},f=function(e){return"string"==typeof e?function(t){var e=i.find((function(e){return e.name===t}));return e?new Promise((function(t,n){e.validate().then((function(e){e?n(e):t()}))})):Promise.reject()}(e):t.validateFirst?(n=e,new Promise((function(t,e){var r=[];s(n).reduce((function(t,e){return t.then((function(){if(!r.length)return e.validate().then((function(t){t&&r.push(t)}))}))}),Promise.resolve()).then((function(){r.length?e(r):t()}))}))):function(t){return new Promise((function(e,n){var r=s(t);Promise.all(r.map((function(t){return t.validate()}))).then((function(t){(t=t.filter(Boolean)).length?n(t):e()}))}))}(e);var n},d=function(t,e){i.some((function(n){return n.name===t&&(n.$el.scrollIntoView(e),!0)}))},m=function(){return i.reduce((function(t,e){return void 0!==e.name&&(t[e.name]=e.formValue.value),t}),{})},g=function(){var e=m();f().then((function(){return n("submit",e)})).catch((function(r){n("failed",{values:e,errors:r}),t.scrollToError&&r[0].name&&d(r[0].name)}))},y=function(t){h(t),g()};return a({props:t}),c({submit:g,validate:f,getValues:m,scrollToField:d,resetValidation:function(t){"string"==typeof t&&(t=[t]),s(t).forEach((function(t){t.resetValidation()}))},getValidationStatus:function(){return i.reduce((function(t,e){return t[e.name]=e.getValidationStatus(),t}),{})}}),function(){var t;return l("form",{class:O(),onSubmit:y},[null==(t=r.default)?void 0:t.call(r)])}}}),j=(t("F",d(R)),o(i("checkbox-group"),2)),U=j[0],N=(j[1],Symbol(U)),G=o(i("checkbox"),2),H=G[0],Q=G[1],D=m({},T,{bindGroup:f}),M=a({name:H,props:D,emits:["change","update:modelValue"],setup:function(t,e){var n=e.emit,r=e.slots,o=g(N).parent,i=y((function(){return o&&t.bindGroup?-1!==o.props.modelValue.indexOf(t.name):!!t.modelValue})),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!i.value;o&&t.bindGroup?function(e){var n=t.name,r=o.props,i=r.max,a=r.modelValue.slice();if(e)i&&a.length>=+i||a.includes(n)||(a.push(n),t.bindGroup&&o.updateValue(a));else{var u=a.indexOf(n);-1!==u&&(a.splice(u,1),t.bindGroup&&o.updateValue(a))}}(e):n("update:modelValue",e)};return v((function(){return t.modelValue}),(function(t){return n("change",t)})),c({toggle:a,props:t,checked:i}),A((function(){return t.modelValue})),function(){return l(B,b({bem:Q,role:"checkbox",parent:o,checked:i.value,onToggle:a},t),w(r,["default","icon"]))}}}),X=d(M),I="_mProtocol_ay5z2_1",q="_center_ay5z2_6",F="_protocolText_ay5z2_11",Y="_boxStyle_ay5z2_15",K="_protocolContent_ay5z2_37",Z={BUY_ORDER:"《课堂乐器服务协议》",REGISTER:"《课堂乐器注册协议》"},J=(t("O",a({name:"o-protocol",props:{showHeader:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},prototcolType:{type:String,default:"BUY_ORDER"},center:{type:Boolean,default:!1}},data:function(){return{exists:!0,checked:this.modelValue,popupStatus:!1,protocolHTML:"",protocolPopup:null}},mounted:function(){var t=this;return r(e().mark((function n(){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t.checked=t.checked||t.exists,t.$emit("update:modelValue",t.checked||t.exists)}catch(n){}t.checked=t.modelValue,window.addEventListener("hashchange",t.onHash,!1);case 3:case"end":return e.stop()}}),n)})))()},unmounted:function(){window.removeEventListener("hashchange",this.onHash,!1)},watch:{checked:function(t){this.$emit("update:modelValue",t)},modelValue:function(){this.checked=this.modelValue}},methods:{getContractDetail:function(){var t=this;return r(e().mark((function n(){var r,o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.protocolHTML){e.next=7;break}return e.next=4,_.get("/edu-app/schoolContractTemplate/queryLatestContractTemplate",{params:{contractType:t.prototcolType}});case 4:r=e.sent,o=r.data,t.protocolHTML=o.contractTemplateContent;case 7:t.onPopupClose(),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),n,null,[[0,10]])})))()},onHash:function(){this.popupStatus=!1},onPopupClose:function(){if(this.popupStatus=!this.popupStatus,this.popupStatus){var t=this.$route,e=0;for(var n in t.query)e+=1;var r=window.location.href,o=e>0?"&pto="+ +new Date:"?pto="+ +new Date;history.pushState("","","".concat(r).concat(o))}else window.history.go(-1);this.protocolPopup&&(this.protocolPopup.scrollTop=0)}},render:function(){var t=this;return l("div",{class:[I,this.center?q:""]},[l(X,{modelValue:this.checked,"onUpdate:modelValue":function(e){return t.checked=e}},{default:function(){return[x("我已阅读并同意")]},icon:function(t){return l(E,{class:Y,name:t.checked?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAAn1JREFUSEu9lstPU1EQh79pSwEJKkoMcWeMGl24cGEgCtXNrUSWiIH/waWoSHxENJG/wJ278tClxtgFCCwgrkw0UaOJr8RHgGAbIgUpY869thZ629uHuXd7ZuabO+c3c0bw+RMvnirCuNWOylmUNkQOgDY5frKE6juEWUQf0xOfEUGLxSwK1BGrG5EhlENeiTl83qI6KL3xh4XsXYE6bu0jTQyktSRQnpHOEaRPeuIfth7lATXWGUE2TIbNlcGyXgtooFv6nkzlxtkE/AuLA+EqYRn3NTRg5UKzQKeM8vw//NnWXBcI6vFMef8BR6zZyu/Mqx46J73xNkdXgK1G5IGXW3Xnes6oV+w+G4u+Lln6lVJNy5x/elh0zOpgQzYpqdKY1O6AuiZIfHQPEdCIaMwaRuRixZCM4879cPoOhLfDRD/Mv8wPKQyLjkSngfaqgLsOwqnbEG6E9BrEL0Dik1vIGdHRM99QbSkIDISwp6Ouu5s0H4HILahpgPUUzNyAHy/cbUW+i45GUyi1rhYm4857ztHkACS3ZL3nKHTchFA9/P4F09dg/lXhYgmrxYH1u6HrPgTDkFqCiUuQ/OwEbDkGJ69DqBbWlmFqEBbfFL8ZB+hR0tzAKwbaD4174cRVJ5HVJDwbgKX33jKwS1qKaHJLl0pAuAHM3aZ+wuQVSOQ9CoXgRjTRuyj9nunZ4hiCmm2O6coiTF6G5BdP16yB3RblNL6Rv4EaNRrY8tfSYcbSbvxyR1uoDlQhvVoeLDPajJevwzuTpvr5PNl/6fcDbEOdfcafFSNbWj+XqCzUzzUxV+u+LcKboJlVP00XIq2uq77ai++jqlf98jq7NOs/zmIUSB061JIAAAAASUVORK5CYII=":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAHgAAAAAefafCAAACnUlEQVRIDb2Wv4sTQRTHk0ksU10XUyiSH62CkOawuko4Ba2Oa4RrBe0PjoP0iv+AjVgp3B1YWck1AUHb3QTR4u6sUqU0Jn4/mzd7m9zlVs1uBpLZmXnv+5l5+3ZmCoUVl+Lf8Pr9/u3RaPSwWCyuTyaT6/Kpmt+Z+k7Vd1wulw/q9frXNL0rgUEQPJZAR4LNNCHGBQ9V7bZarXeL7C8FCnRTkLdyauMooRO1D51zH7SSb5VK5Yz+4XBY1cpvjcfj+7J5IJsa/SpdtbcE/j5tnv9fACp89yTyXiZrciJke41G47Xq3+duF58EK/V6vSeq9/Uj5ANN7pHC/ClpPQM02EcZXBPgSPW2ZjlMOqQ9KzoV2bwRdFP1L0E3ktAYaGH8LCNW9qrZbD5XPU4DXDYumNNqXyrUTzU+kM5dH17nHWTEOwN2tAwMPSaq1/AMLTRNm6FCBLRsbMuAZNjGIRpd4s800EKzbYwpUB0dtDW496/vDL9FBS00bXzKsI/6iwZOFMobqq/MxkXii/oVzlIYhj9U15RAdxw7CMbqOMwahi6aaPMMy6ljnQYfNXUexWvDcqKzNxbYQfKAJbVhkaXRRuy3qzygCe1q/B3mAZrXVEgnAOONeN4gqzabPFoK6U+S5pQGuz51HsVrwyJpjoFwxOQBS2rDcsrOAzpF5zwrZQ1FE210YTmuBeoINVDjPMsaaGdkDQYsn6W7gATd1ybLeZZJQQtNE4sYEVCbLHeQrgbJJg5PP5H/BpsGWmh2jRGfFrzDLQ0MZLCpzfbFMlB8OYDRQtO0o8nHJz6tVVwxZkLH3UOZtMGsbHaBVruj59TsxQZb+QZ+ZWihyWJ8mVmh79TLXt010UOp7VrQ0YzzvQgnoTzbrSCTq/68du7tP2r9kkP+2pKJAAAAAElFTkSuQmCC"},null)}}),l("span",{onClick:this.getContractDetail,class:F},[Z[this.prototcolType]]),l(S,{ref:this.protocolPopup,show:this.popupStatus,position:"bottom",style:{height:"100%"}},{default:function(){return[t.showHeader&&l(z,{title:"管乐团平台服务协议"},null),t.popupStatus&&l("div",{id:"mProtocol"},[l("div",{class:K,innerHTML:t.protocolHTML},null)])]}})])}})),"_dialogTitle_zz3gi_1"),W="_oDialog_zz3gi_18";t("a",a({name:"o-dialog",props:{show:{type:Boolean,default:!1},message:{type:String,default:""},title:{type:String,default:"提示"},confirmButtonText:{type:String,default:"确认"},cancelButtonText:{type:String,default:"取消"},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},messageAlign:{type:String,default:"center"},dialogMarginTop:{type:String,default:"0px"}},emits:["cancel","confirm","update:show"],setup:function(t,e){var n=e.emit,r=k({show:t.show||!1});return v((function(){return t.show}),(function(){r.show=t.show})),function(){return l(L,{class:W,style:{marginTop:t.dialogMarginTop},show:r.show,"onUpdate:show":function(t){return r.show=t},message:t.message,messageAlign:t.messageAlign,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,showConfirmButton:t.showConfirmButton,showCancelButton:t.showCancelButton,onConfirm:function(){n("update:show",!1),n("confirm")},onCancel:function(){n("update:show",!1),n("cancel")}},{title:function(){return l("div",{class:J},[l("i",null,null),t.title])}})}}}))}}}))}();