text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mars3d")):"function"==typeof define&&define.amd?define(["exports","mars3d"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["mars3d-widget"]={},e.mars3d)}(this,(function(e,t){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,t}var n=i(t);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){c(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=u(e);if(t){var r=u(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return f(this,i)}}var h=new RegExp("\\.css"),p=document.head||document.getElementsByTagName("head")[0],v=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;function y(e){return"complete"===e.readyState||"loaded"===e.readyState}function w(e,t){var i;e.sheet&&(i=!0),setTimeout((function(){i?t():w(e,t)}),20)}function g(e,t,i){var n="onload"in e;function r(){e.onload=e.onreadystatechange=null,e=null,t()}"css"===i&&(v||!n)?setTimeout((function(){w(e,t)}),1):n?(e.onload=r,e.onerror=function(t){e.onerror=null,"css"===i?console.error("该css文件不存在："+e.href,t):console.error("该js文件不存在："+e.src,t),r()}):e.onreadystatechange=function(){y(e)&&r()}}function b(e,t,i,n){function r(){var i=t.indexOf(e);i>-1&&t.splice(i,1),0===t.length&&n()}e?h.test(e)?function(e,t,i){var n=document.createElement("link");n.rel="stylesheet",g(n,i,"css"),n.async=!0,n.href=e,p.appendChild(n)}(e,0,r):function(e,t,i){var n=document.createElement("script");n.charset="utf-8",g(n,i,"js"),n.async=!t.sync,n.src=e,p.appendChild(n)}(e,i,r):setTimeout((function(){r()}))}function _(e,t,i){var n=function(){i&&i()};if(0!==(e=Array.prototype.slice.call(e||[])).length)for(var r=0,o=e.length;r<o;r++)b(e[r],e,t,n);else n()}function m(e,t){if(y(e))t();else{var i=!1;window.addEventListener("load",(function(){i||(t(),i=!0)})),setTimeout((function(){i||(t(),i=!0)}),1500)}}var O,x,k,A,C,I=function(e,t){m(document,(function(){_(e,{},t)}))},P={beforeCreate:"beforeCreate",created:"created",beforeActivate:"beforeActivate",activated:"activated",openView:"openView",beforeDisable:"beforeDisable",disabled:"disabled",loadBefore:"loadBefore",load:"load"},W=window.jQuery,j=[],V=["_class"];function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O=e,j=[],x=n.Util.merge({windowOptions:{position:"rt",maxmin:!1,resize:!0},autoDisable:!0,disableOther:!0},t.defaultOptions),"time"===(k=t.version)&&(k=(new Date).getTime());var i=t.openAtStart;if(i&&i.length>0)for(var r=0;r<i.length;r++){var a=i[r];a.hasOwnProperty("uri")&&""!==a.uri?a.hasOwnProperty("visible")&&!a.visible||(a.autoDisable=!1,a.openAtStart=!0,a._nodebug=!0,S(a),a._firstConfigBak=o({},a),j.push(a)):console.error("widget未配置uri",a)}if(A=t.debugger){var s='<div id="widget-testbar" class="mars3d-widgetbar animation-slide-bottom no-print-view" >      <div style="height: 30px; line-height:30px;"><b style="color: #4db3ff;">widget测试栏</b>&nbsp;&nbsp;<button  id="widget-testbar-remove"  type="button" class="btn btn-link btn-xs">关闭</button> </div>     <button id="widget-testbar-disableAll" type="button" class="btn btn-info" ><i class="fa fa-globe"></i>漫游</button></div>';W("body").append(s),W("#widget-testbar-remove").click((function(e){Q()})),W("#widget-testbar-disableAll").click((function(e){U()}))}if((i=t.widgets)&&i.length>0){for(var c=0;c<i.length;c++){var u=i[c];if("group"===u.type){for(var l=' <div class="btn-group dropup">  <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-align-justify"></i>'+u.name+' <span class="caret"></span></button> <ul class="dropdown-menu">',f=0;f<u.children.length;f++){var d=u.children[f];d.hasOwnProperty("uri")&&""!==d.uri?(l+=' <li data-widget="'+d.uri+'" class="widget-btn" ><a href="#"><i class="fa fa-star"></i>'+d.name+"</a></li>",S(d),d._firstConfigBak=o({},d),j.push(d)):console.error("widget未配置uri",d)}l+="</ul></div>",A&&!u._nodebug&&W("#widget-testbar").append(l)}else{if(!u.hasOwnProperty("uri")||""===u.uri){console.error("widget未配置uri",u);continue}if(A&&!u._nodebug){var h='<button type="button" class="btn btn-primary widget-btn" data-widget="'+u.uri+'"  > <i class="fa fa-globe"></i>'+u.name+" </button>";W("#widget-testbar").append(h)}S(u),u._firstConfigBak=o({},u),j.push(u)}}A&&W("#widget-testbar .widget-btn").each((function(){W(this).click((function(e){var t=W(this).attr("data-widget");t&&""!==t&&(N(t)?R(t):D(t))}))}))}for(var p=0;p<j.length;p++){var v=j[p];(v.openAtStart||v.createAtStart)&&F.push(v)}if(W(window).resize((function(){for(var e=0;e<j.length;e++){var t=j[e];t._class&&t._class.indexResize()}})),A){var y=E();y&&D(y)}G()}function B(){return n.Util.clone(x.windowOptions,V)}function E(){var e=window.location.toString();return-1===e.indexOf("#")?"":(e=e.split("#"))&&e.length>0?e[1]:void 0}function S(e){if(x)for(var t in x)"windowOptions"===t||e.hasOwnProperty(t)||(e[t]=x[t]);var i,n;e.path=(i=""+e.uri,n=i.lastIndexOf("/"),i.substring(0,n+1)),e.name=e.name||e.label}function D(e,t){var i;!O&&e.map&&T(e.map,{},e.basePath),"string"==typeof e?(e={uri:e},null!=t&&(e.disableOther=!t)):e.uri||console.error("activate激活widget时需要uri参数！",e);for(var n=0;n<j.length;n++){var r=j[n];if(e.uri===r.uri||r.id&&e.uri===r.id){if((i=r).isloading)return i;for(var a in e)"uri"!==a&&(i[a]=e[a]);break}}if(i||(S(e),i=e,e._firstConfigBak||(e._firstConfigBak=o({},e)),j.push(e)),A&&(console.log("开始激活widget："+i.uri),window.location.hash="#"+i.uri),i.disableOther&&(Array.isArray(i.disableOther)?R(i.disableOther):U(i.uri,i.group)),i.group&&K(i.group,i.uri),i._class)i._class.isActivate?i._class.update?i._class.update():function(e){clearInterval(C),e._class.disableBase(),C=setInterval((function(){e._class.isActivate||(e._class.activateBase(),clearInterval(C))}),200)}(i):i._class.activateBase();else{for(var s=0;s<F.length;s++)if(F[s].uri===i.uri)return F[s];F.push(i),1===F.length&&G()}return i}function z(e){for(var t=0;t<j.length;t++){var i=j[t];if(e===i.uri||e===i.id)return i}}function H(e){var t=z(e);return t?t._class:null}function N(e){var t=H(e);return!!t&&t.isActivate}function R(e){if(!e)return!1;if(Array.isArray(e))for(var t=e,i=0;i<j.length;i++)for(var n=j[i],r=0;r<t.length;r++){var o=t[r];if(n._class&&(o===n.uri||o===n.id)){n._class.disableBase(),t.splice(r,1);break}}else{"object"===a(e)&&(e=e.uri);for(var s=0;s<j.length;s++){var c=j[s];if(c._class&&(e===c.uri||e===c.id))return c._class.disableBase(),!0}}return!1}function U(e,t){for(var i=0;i<j.length;i++){var n=j[i];if(t&&n.group===t);else if(!0!==e&&!n.autoDisable)continue;(!e||e!==n.uri&&e!==n.id)&&(n._class&&n._class.disableBase())}}function K(e,t){if(e)for(var i=0;i<j.length;i++){var n=j[i];if(n.group===e){if(t&&(t===n.uri||t===n.id))continue;n._class&&n._class.disableBase()}}}var M,L,F=[];function G(){if(0!==F.length)if(L)setTimeout(G,500);else{L=!0,(M=F[0]).isloading=!0;var e=M.uri;k&&(-1===e.indexOf("?")?e+="?cache="+k:e+="&cache="+k),window.NProgress&&window.NProgress.start(),J(P.loadBefore,{sourceTarget:M}),I([""+e],(function(){L=!1,M.isloading=!1,window.NProgress&&window.NProgress.done(!0),F.shift(),G()}))}}function Q(){W("#widget-testbar").remove()}function q(){return k}var $=new n.BaseClass;function J(e,t,i){return $.fire(e,t,i)}var X={__proto__:null,init:T,getDefWindowOptions:B,activate:D,getWidget:z,getClass:H,isActivate:N,disable:R,disableAll:U,disableGroup:K,eachWidget:function(e){for(var t=0;t<j.length;t++){e(j[t])}},bindClass:function(e){if(J(P.load,{sourceTarget:e}),M)return M.isloading=!1,M._class=new e(O,M),M._class.activateBase(),M._class;for(var t=function(){for(var e,t=document.scripts,i=t.length-1;i>=0;i--)if((e=t[i].src)&&-1!==e.indexOf("widgets"))return e;return""}(),i=0;i<j.length;i++){var n=j[i];if(t.endsWith(n.uri))return n.isloading=!1,n._class=new e(O,n),n._class.activateBase(),n._class}},removeDebugeBar:Q,getCacheVersion:q,getBasePath:function(){return""},destroy:function(){for(var e=0;e<j.length;e++){var t=j[e];t._class&&(t._class.disableBase(),t._class.destroy&&t._class.destroy(),delete t._class)}O=null},eventTarget:$,on:function(e,t,i){return $.on(e,t,i)},off:function(e,t,i){return $.off(e,t,i)},fire:J,once:function(e,t,i){return $.once(e,t,i)},listens:function(e,t){return $.listens(e,t)}},Y=window.jQuery,Z=window.layer,ee=n.BaseClass,te=[],ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(u,e);var t,i,r,c=d(u);function u(e,t){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(i=c.call(this,t)).map=e,i.options=t,i.config=t,i.path=t.path||"",i.isActivate=!1,i.isCreate=!1,i._viewcreate_allcount=0,i._viewcreate_okcount=0,i._viewConfig=i.view,i.init(),i}return t=u,i=[{key:"resources",get:function(){return null}},{key:"view",get:function(){return null}},{key:"activateBase",value:function(){var e=this;if(this.isActivate)this.eachView((function(e){e._dom&&(Y(".layui-layer").each((function(){Y(this).css("z-index",19891e3)})),Y(e._dom).css("z-index",19891014))}));else{if($.fire(P.beforeActivate,{sourceTarget:this}),this.beforeActivate(),this.isActivate=!0,!this.isCreate){if($.fire(P.beforeCreate,{sourceTarget:this}),this.resources&&this.resources.length>0){for(var t=[],i=0;i<this.resources.length;i++){var n=this.resources[i];n=this._getUrl(n),-1===te.indexOf(n)&&t.push(n)}return te=te.concat(t),void I(t,(function(){var t=e.create((function(){e._createWidgetView(),e.isCreate=!0}));if($.fire(P.created,{sourceTarget:e}),!t){if(e.options.createAtStart)return e.options.createAtStart=!1,e.isActivate=!1,void(e.isCreate=!0);e._createWidgetView(),e.isCreate=!0}}))}var r=this.create((function(){e._createWidgetView(),this.isCreate=!0}));if($.fire(P.created,{sourceTarget:this}),r)return;if(e.options.createAtStart)return e.options.createAtStart=!1,e.isActivate=!1,void(e.isCreate=!0);this.isCreate=!0}this._createWidgetView()}}},{key:"init",value:function(){}},{key:"create",value:function(){}},{key:"_createWidgetView",value:function(){var e=this._viewConfig;if(void 0===e||null==e)this._startActivate();else if(Array.isArray(e)){this._viewcreate_allcount=e.length,this._viewcreate_okcount=0;for(var t=0;t<e.length;t++)this.createItemView(e[t])}else this._viewcreate_allcount=1,this._viewcreate_okcount=0,this.createItemView(e)}},{key:"eachView",value:function(e,t){var i=this._viewConfig;if(void 0===i||null==i)return!1;if(Array.isArray(i)){var n=!1;if(null!=t)return e(i[t]);for(var r=0;r<i.length;r++)n=e(i[r]);return n}return e(i)}},{key:"createItemView",value:function(e){var t=this;switch(e.type){case"divwindow":this._openDivWindow(e);break;case"append":t.getHtml(this._getUrl(e.url),(function(i){t._appendView(e,i)}));break;case"custom":e.open(this._getUrl(e.url),(function(i){t.winCreateOK(e,i),$.fire(P.openView,{sourceTarget:t,view:e,dom:i}),t._viewcreate_okcount++,t._viewcreate_okcount>=t._viewcreate_allcount&&t._startActivate(i)}),this);break;default:this._openWindow(e)}}},{key:"_openWindow",value:function(e){var t=this,i=this._getUrl(e.url),r={type:2,content:[i,"no"],success:function(r,o){if(t.isActivate){e._layerIdx!==o&&(Z.close(e._layerIdx),e._layerIdx=o),e._layerOpening=!1,e._dom=r;var a,s=window[r.find("iframe")[0].name];s.map=t.map,s.mars3d=n,s.Cesium=n.Cesium,t.options.css&&Y("#layui-layer"+e._layerIdx).css(t.options.css),e.windowOptions.hasOwnProperty("show")&&!e.windowOptions.show&&Y(r).hide(),Z.setTop(r),t.winCreateOK(e,s),$.fire(P.openView,{sourceTarget:t,view:e,dom:r}),t._viewcreate_okcount++,t._viewcreate_okcount>=t._viewcreate_allcount&&t._startActivate(r),s&&s.initWidgetView?(null!==(a=t.config)&&void 0!==a&&a.style&&Y(s.document.body).addClass(t.config.style),s.initWidgetView(t)):n.Log.logError(i+"页面没有定义function initWidgetView(widget)方法，无法初始化widget页面!")}else Z.close(o)}};e._layerIdx&&e._layerIdx>0&&(Z.close(e._layerIdx),e._layerIdx=-1),e._layerOpening=!0,e._layerIdx=Z.open(this._getWinOpt(e,r))}},{key:"_openDivWindow",value:function(e){var t=this,i=this._getUrl(e.url);this.getHtml(i,(function(i){var n={type:1,content:i,success:function(i,n){t.isActivate?(e._layerIdx!==n&&(Z.close(e._layerIdx),e._layerIdx=n),e._layerOpening=!1,e._dom=i,e.windowOptions.hasOwnProperty("show")&&!e.windowOptions.show&&Y(i).hide(),Z.setTop(i),t.winCreateOK(e,i),$.fire(P.openView,{sourceTarget:t,view:e,dom:i}),t._viewcreate_okcount++,t._viewcreate_okcount>=t._viewcreate_allcount&&t._startActivate(i)):Z.close(n)}};e._layerOpening=!0,e._layerIdx=Z.open(t._getWinOpt(e,n))}))}},{key:"_getUrl",value:function(e){return(e=this.addCacheVersion(e)).startsWith("/")||e.startsWith(".")||e.startsWith("http")?e:this.path+e}},{key:"_getWinOpt",value:function(e,t){var i=o(o(o({},B()),e.windowOptions),this.options.windowOptions);e.windowOptions=i;var n=this,r=this._getWinSize(i),a=!1;return i.noTitle||(a=this.options.name||" ",this.options.icon&&(a='<i class="'+this.options.icon+'" ></i>&nbsp;'+a)),o(o(o({},{title:a,area:r.area,offset:r.offset,shade:0,maxmin:!1,beforeEnd:function(){n.beforeDisable()},end:function(){e._layerIdx=-1,e._dom=null,n.disableBase()},full:function(e){n.winFull(e)},min:function(e){n.winMin(e)},restore:function(e){n.winRestore(e)}}),i),t)}},{key:"_getWinSize",value:function(e){var t=this.bfb2Number(e.width,document.documentElement.clientWidth,e),i=this.bfb2Number(e.height,document.documentElement.clientHeight,e),n="",r=e.position;if(r)if("string"==typeof r)n=r;else if("object"===a(r)){var o,s;if(r.hasOwnProperty("top")&&null!=r.top&&(o=this.bfb2Number(r.top,document.documentElement.clientHeight,e)),r.hasOwnProperty("bottom")&&null!=r.bottom){e._hasresize=!0;var c=this.bfb2Number(r.bottom,document.documentElement.clientHeight,e);null!=o?i=document.documentElement.clientHeight-o-c:o=document.documentElement.clientHeight-i-c}if(r.hasOwnProperty("left")&&null!=r.left&&(s=this.bfb2Number(r.left,document.documentElement.clientWidth,e)),r.hasOwnProperty("right")&&null!=r.right){e._hasresize=!0;var u=this.bfb2Number(r.right,document.documentElement.clientWidth,e);null!=s?t=document.documentElement.clientWidth-s-u:s=document.documentElement.clientWidth-t-u}null!=o&&void 0!==o||(o=(document.documentElement.clientHeight-i)/2),null!=s&&void 0!==s||(s=(document.documentElement.clientWidth-t)/2),n=[o+"px",s+"px"]}return e.hasOwnProperty("minHeight")&&i<e.minHeight&&(e._hasresize=!0,i=e.minHeight),e.hasOwnProperty("maxHeight")&&i>e.maxHeight&&(e._hasresize=!0,i=e.maxHeight),e.hasOwnProperty("minWidth")&&t<e.minWidth&&(e._hasresize=!0,t=e.minWidth),e.hasOwnProperty("maxWidth")&&t>e.maxWidth&&(e._hasresize=!0,t=e.maxWidth),{area:t&&i?[t+"px",i+"px"]:t+"px",offset:n}}},{key:"indexResize",value:function(){if(this.isActivate){var e=this;this.eachView((function(t){if(t._layerIdx&&-1!==t._layerIdx&&t.windowOptions&&t.windowOptions._hasresize){var i=e._getWinSize(t.windowOptions),n={};Array.isArray(i.area)&&(i.area[0]&&(n.width=i.area[0]),i.area[1]&&(n.height=i.area[1])),Array.isArray(i.offset)&&(i.offset[1]&&(n.top=i.offset[0]),i.offset[1]&&(n.left=i.offset[1])),Y(t._dom).attr("myTopLeft",!0),Z.style(t._layerIdx,n),"divwindow"===t.type&&Z.iframeAuto(t._layerIdx)}}))}}},{key:"_appendView",value:function(e,t){e._dom=Y(t).appendTo(e.parent||"body"),this.options.css&&Y(e._dom).css(this.options.css),this.winCreateOK(e,t),this._viewcreate_okcount++,this._viewcreate_okcount>=this._viewcreate_allcount&&this._startActivate(t)}},{key:"winCreateOK",value:function(e,t){}},{key:"winFull",value:function(){}},{key:"winMin",value:function(){}},{key:"minView",value:function(){this.eachView((function(e){e._layerIdx&&Z.min(e._layerIdx,e)}))}},{key:"restoreView",value:function(){this.eachView((function(e){e._layerIdx&&Z.restore(e._layerIdx)}))}},{key:"fullView",value:function(){this.eachView((function(e){e._layerIdx&&Z.full(e._layerIdx,e)}))}},{key:"winRestore",value:function(){}},{key:"_startActivate",value:function(e){this.activate(e),$.fire(P.activated,{sourceTarget:this}),this.options.success&&(this.options.success(this),delete this.options.success),this.isActivate||this.disableBase()}},{key:"beforeActivate",value:function(){}},{key:"activate",value:function(){}},{key:"disableBase",value:function(){this.isActivate&&(this.isActivate=!1,this.beforeDisable(),$.fire(P.beforeDisable,{sourceTarget:this}),this.eachView((function(e){return e._layerIdx&&e._layerIdx>0?(Z.close(e._layerIdx),e._layerOpening||(e._layerIdx=-1),!0):("append"===e.type&&e._dom&&(e._dom.remove(),e._dom=null),"custom"===e.type&&e.close&&e.close(),!1)})),this.disable(),this.options.autoReset&&this.resetConfig(),$.fire(P.disabled,{sourceTarget:this}))}},{key:"beforeDisable",value:function(){}},{key:"disable",value:function(){}},{key:"bfb2Number",value:function(e,t,i){return"string"==typeof e&&-1!==e.indexOf("%")?(i._hasresize=!0,t*Number(e.replace("%",""))/100):e}},{key:"addCacheVersion",value:function(e){if(!e)return e;var t=q();return t&&(-1===e.indexOf("?")?e+="?cache="+t:-1===e.indexOf("cache="+t)&&(e+="&cache="+t)),e}},{key:"resetConfig",value:function(){if(this.options._firstConfigBak){var e=this.options._firstConfigBak;for(var t in e)"uri"!==t&&(this.options[t]=e[t])}}},{key:"setViewShow",value:function(e,t){this.eachView((function(t){t._layerIdx&&t._layerIdx>0?e?Y("#layui-layer"+t._layerIdx).show():Y("#layui-layer"+t._layerIdx).hide():"append"===t.type&&t._dom&&(e?Y(t._dom).show():Y(t._dom).hide())}),t)}},{key:"setViewCss",value:function(e,t){this.eachView((function(t){null!=t._layerIdx&&t._layerIdx>0?Z.style(t._layerIdx,e):"append"===t.type&&t._dom&&Y(t._dom).css(e)}),t)}},{key:"setTitle",value:function(e,t){this.eachView((function(t){t._dom&&t._dom.find(".layui-layer-title").html(e)}),t)}},{key:"getHtml",value:function(e,t){Y.ajax({url:e,type:"GET",dataType:"html",timeout:0,success:function(e){t(e)}})}}],i&&s(t.prototype,i),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(ee);n.widget=X,n.widget.BaseWidget=ie,n.widget.WidgetEventType=P,n.widget.EventType=P,e.widget=X,Object.defineProperty(e,"__esModule",{value:!0})}));
  