Your IP : 52.14.13.151
this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};(function(t,e,i){"use strict";var n=function(){function t(){babelHelpers.classCallCheck(this,t);this.layout=e.Dom.create("div");e.Dom.addClass(this.layout,"landing-highlight-border");e.Dom.style(this.layout,{position:"absolute",border:"2px #2fc6f6 dashed",top:0,left:0,right:0,bottom:0,"z-index":9999,opacity:".4","pointer-events":"none",transform:"translateZ(0)","background-color":"rgba(47, 198, 246, .15)"})}babelHelpers.createClass(t,[{key:"show",value:function t(i,n){var o=this;this.hide();if(e.Type.isArray(i)){i.forEach((function(t){o.highlightNode(t)}))}else if(e.Type.isDomNode(i)){this.highlightNode(i,n)}}},{key:"hide",value:function i(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;t.highlights.forEach((function(t){if(n){e.Dom.remove(t.highlight);t.node.style.position="";t.node.style.userSelect="";t.node.style.cursor=""}else{BX.DOM.write((function(){e.Dom.remove(t.highlight);t.node.style.position="";t.node.style.userSelect="";t.node.style.cursor=""}))}}));t.highlights.clear()}},{key:"highlightNode",value:function n(o,h){var s=e.Runtime.clone(this.layout);if(h){BX.DOM.write((function(){e.Dom.style(s,{position:"fixed",width:"".concat(h.width,"px"),height:"".concat(h.height,"px"),top:"".concat(h.top,"px"),left:"".concat(h.left,"px"),right:"".concat(h.right,"px"),bottom:"".concat(h.bottom,"px")})}));i.PageObject.getInstance().view().then((function(t){BX.DOM.write((function(){e.Dom.append(s,t.contentDocument.body)}))}))}else{BX.DOM.write((function(){e.Dom.append(s,o)}))}BX.DOM.write((function(){e.Dom.style(o,{position:"relative",userSelect:"none",cursor:"pointer"})}));t.highlights.add({node:o,highlight:s})}}],[{key:"getInstance",value:function e(){if(!t.instance){t.instance=new t}return t.instance}},{key:"highlights",get:function e(){if(!t.highlightsStore){t.highlightsStore=new BX.Landing.Collection.BaseCollection}return t.highlightsStore}}]);return t}();babelHelpers.defineProperty(n,"highlightsStore",null);t.Highlight=n})(this.BX.Landing.UI=this.BX.Landing.UI||{},BX,BX.Landing);
//# sourceMappingURL=highlight.bundle.map.js