You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

3 lines
1.5 KiB

(function(_ds){var window=this;'use strict';var kT=function(){var a=_ds.R.call(this)||this;a.h=new _ds.Qj;return a};_ds.t(kT,_ds.R);_ds.f=kT.prototype;_ds.f.connectedCallback=function(){var a=this;this.h.listen(document.body,"devsite-sitemask-show",function(){return a.show()});this.h.listen(document.body,"keydown",function(b){"Escape"===b.key&&a.hasAttribute("visible")&&(b.preventDefault(),b.stopPropagation(),a.Mb())});this.h.listen(document.body,"devsite-sitemask-hide",function(){return a.Mb()});this.h.listen(this,"click",function(){return a.Mb()})};
_ds.f.attributeChangedCallback=function(a,b,c){"visible"===a&&(null==c?this.dispatchEvent(new CustomEvent("devsite-sitemask-hidden",{bubbles:!0})):this.dispatchEvent(new CustomEvent("devsite-sitemask-visible",{bubbles:!0})))};_ds.f.disconnectedCallback=function(){_ds.Wj(this.h)};_ds.f.show=function(){this.setAttribute("visible",this.getAttribute("visible")||"")};_ds.f.Mb=function(){this.removeAttribute("visible")};
_ds.fa.Object.defineProperties(kT,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["visible"]}}});kT.prototype.hide=kT.prototype.Mb;kT.prototype.show=kT.prototype.show;kT.prototype.disconnectedCallback=kT.prototype.disconnectedCallback;kT.prototype.attributeChangedCallback=kT.prototype.attributeChangedCallback;kT.prototype.connectedCallback=kT.prototype.connectedCallback;try{window.customElements.define("devsite-sitemask",kT)}catch(a){console.warn("devsite.app.customElement.DevsiteSitemask",a)};})(_ds_www);