"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.index=e():t.index=e()}(self,(()=>(self.webpackChunkindex=self.webpackChunkindex||[]).push([[57],{7922:(t,e,i)=>{function o(t){return o="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},o(t)}function n(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function r(t,e,i){return(e=a(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}i.r(e),i.d(e,{default:()=>d});var l=700,s=470,u=84;const d=new(function(){return t=function t(){var e,i,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,"plugin",void 0),r(this,"dialog",void 0),this.plugin=null===(e=window.Extention)||void 0===e?void 0:e.PluginManager.getPlugin(),null===(i=this.plugin)||void 0===i||i.ready(this.ready.bind(this)),null===(o=this.plugin)||void 0===o||o.onRunning(this.onRunning.bind(this))},e=[{key:"ready",value:function(){this.showMainDialog()}},{key:"onRunning",value:function(){this.dialog?(this.setDialogPosition(),this.dialog.show(),this.dialog.takeFocus()):this.showMainDialog()}},{key:"getUrlPath",value:function(){var t=document.location.toString();return-1!=(t=decodeURI(t)).indexOf("/")&&(t=t.substring(0,t.lastIndexOf("/"))),t}},{key:"onDestroy",value:function(){var t;null===(t=this.dialog)||void 0===t||t.removeDestroyListener(this.onDestroy.bind(this)),this.dialog=void 0}},{key:"showMainDialog",value:function(){var t=l,e=s;this.dialog=window.Extention.Webview.create({url:this.getUrlPath()+"/entry.html",id:"t4"+Date.now(),attrs:{winFlag:"DialogType",allowResize:!1,mode:!1,hasShadow:!0,bChildWindow:!0,escQuit:!0,hasFocus:!0},geo:{w:t,h:e},nativeState:{needFailedClose:!0}}),this.dialog.setDragArea({x:0,y:0,w:l,h:u}),this.dialog.addDestroyListener(this.onDestroy.bind(this)),this.setDialogPosition(),this.dialog.show()}},{key:"setDialogPosition",value:function(){if(this.dialog){var t=0,e=0,i=l,o=s,n=this.dialog.getSize();if(n.code&&n.result){var r=n.result;i=r.w,o=r.h}var a=this.dialog.getParentGeometry();if(a.code&&a.result){var u=a.result,d=u.w,f=u.h;t=.5*(d-i)+u.x,e=.5*(f-o)+u.y}this.dialog.setGeometry({x:t,y:e})}}}],e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i}())}},t=>{var e;return e=7922,t(t.s=e)}])));