"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/libs/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="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})(e)}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}(0,_baseComponent.default)({properties:{prefixCls:{type:String,value:"wux-landscape"},visible:{type:Boolean,value:!1},mask:{type:Boolean,value:!0,observer:function(e){this.setData({showMask:e})}},maskClosable:{type:Boolean,value:!1},closable:{type:Boolean,value:!0}},data:{showMask:!0},computed:{classes:["prefixCls, showMask",function(e,t){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--has-mask"),t)),popup:"".concat(e,"__popup"),popupBody:"".concat(e,"__popup-body"),popupClose:"".concat(e,"__popup-close"),inner:"".concat(e,"__inner"),close:"".concat(e,"__close"),x:"".concat(e,"__close-x")}}]},methods:{onClose:function(){this.triggerEvent("close",{visible:!this.data.visible})}},attached:function(){}});