text: this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};(function(e,t,a){"use strict";function l(){var e=babelHelpers.taggedTemplateLiteral([""]);l=function t(){return e};return e}function i(){var e=babelHelpers.taggedTemplateLiteral(['<a href="','" class="ui-selector-footer-link">',"</a>"]);i=function t(){return e};return e}function s(){var e=babelHelpers.taggedTemplateLiteral([""]);s=function t(){return e};return e}function r(){var e=babelHelpers.taggedTemplateLiteral(['<span class="ui-selector-footer-conjunction">',"</span>"]);r=function t(){return e};return e}function n(){var e=babelHelpers.taggedTemplateLiteral([""]);n=function t(){return e};return e}function d(){var e=babelHelpers.taggedTemplateLiteral(['<a href="','" class="ui-selector-footer-link ui-selector-footer-link-add">',"</a>"]);d=function t(){return e};return e}function b(e,t,a){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return a}var v=new WeakMap;var c=new WeakMap;var o=new WeakMap;var h=new WeakMap;var u=new WeakMap;var p=new WeakMap;var g=new WeakMap;var H=new WeakMap;var f=new WeakMap;var F=new WeakMap;var P=new WeakMap;var w=new WeakMap;var G=new WeakSet;var S=new WeakSet;var k=new WeakSet;var m=new WeakSet;var L=new WeakSet;var T=new WeakSet;var W=function(){function e(t){babelHelpers.classCallCheck(this,e);T.add(this);L.add(this);m.add(this);k.add(this);S.add(this);G.add(this);v.set(this,{writable:true,value:null});c.set(this,{writable:true,value:void 0});o.set(this,{writable:true,value:void 0});h.set(this,{writable:true,value:void 0});u.set(this,{writable:true,value:void 0});p.set(this,{writable:true,value:void 0});g.set(this,{writable:true,value:void 0});H.set(this,{writable:true,value:void 0});f.set(this,{writable:true,value:void 0});F.set(this,{writable:true,value:void 0});P.set(this,{writable:true,value:void 0});w.set(this,{writable:true,value:void 0});babelHelpers.classPrivateFieldSet(this,c,t.node);babelHelpers.classPrivateFieldSet(this,o,t.input);babelHelpers.classPrivateFieldSet(this,h,t.urlLandingAdd||null);babelHelpers.classPrivateFieldSet(this,u,t.urlFolderAdd||null);babelHelpers.classPrivateFieldSet(this,p,t.siteType);babelHelpers.classPrivateFieldSet(this,g,t.siteId);this.folderId=t.folderId;this.landingId=t.landingId;babelHelpers.classPrivateFieldSet(this,H,t.items||[]);babelHelpers.classPrivateFieldSet(this,f,t.onSelect);babelHelpers.classPrivateFieldSet(this,F,BX("landing-selector"));if(babelHelpers.classPrivateFieldGet(this,c)){a.Event.bind(babelHelpers.classPrivateFieldGet(this,o),"click",b(this,S,B).bind(this));a.Event.bind(babelHelpers.classPrivateFieldGet(this,o),"input",b(this,T,E).bind(this))}}babelHelpers.createClass(e,[{key:"onAddPage",value:function e(){alert(this.landingId)}},{key:"onAddFolder",value:function e(){alert(this.folderId)}}]);return e}();var M=function e(){if(!babelHelpers.classPrivateFieldGet(this,v)){babelHelpers.classPrivateFieldSet(this,v,new t.Dialog({targetNode:babelHelpers.classPrivateFieldGet(this,c),width:565,height:300,enableSearch:false,dropdownMode:true,showAvatars:true,compactView:false,dynamicLoad:true,multiple:false,context:"landing",entities:[{id:"landing",options:{siteType:babelHelpers.classPrivateFieldGet(this,p),siteId:babelHelpers.classPrivateFieldGet(this,g),landingId:this.landingId}}],items:babelHelpers.classPrivateFieldGet(this,H),events:{onHide:b(this,m,X).bind(this),"Item:onSelect":babelHelpers.classPrivateFieldGet(this,f)},footer:[babelHelpers.classPrivateFieldGet(this,h)?a.Tag.render(d(),babelHelpers.classPrivateFieldGet(this,h),a.Loc.getMessage("LANDING_SELECTOR_ADD_PAGE")):a.Tag.render(n()),babelHelpers.classPrivateFieldGet(this,h)?a.Tag.render(r(),a.Loc.getMessage("LANDING_SELECTOR_ADD_OR")):a.Tag.render(s()),babelHelpers.classPrivateFieldGet(this,u)?a.Tag.render(i(),babelHelpers.classPrivateFieldGet(this,u),a.Loc.getMessage("LANDING_SELECTOR_ADD_FOLDER")):a.Tag.render(l())]}))}return babelHelpers.classPrivateFieldGet(this,v)};var B=function e(){b(this,k,I).call(this)};var I=function e(){b(this,G,M).call(this).show();b(this,L,C).call(this);BX.addClass(babelHelpers.classPrivateFieldGet(this,c),"landing-selector-active")};var X=function e(){var t=this;if(babelHelpers.classPrivateFieldGet(this,w)===true){BX.addClass(babelHelpers.classPrivateFieldGet(this,P),"landing-selector-overlay-hiding");setTimeout(function(){BX.removeClass(babelHelpers.classPrivateFieldGet(t,P),"landing-selector-overlay-hiding");BX.remove(babelHelpers.classPrivateFieldGet(t,P))},200);babelHelpers.classPrivateFieldSet(this,w,false)}BX.removeClass(babelHelpers.classPrivateFieldGet(this,c),"landing-selector-active")};var C=function e(){if(!babelHelpers.classPrivateFieldGet(this,P)){babelHelpers.classPrivateFieldSet(this,P,BX.create("div",{props:{className:"landing-selector-overlay"}}))}if(babelHelpers.classPrivateFieldGet(this,w)!==true){document.querySelector(".landing-ui-panel.landing-ui-panel-top").appendChild(babelHelpers.classPrivateFieldGet(this,P));babelHelpers.classPrivateFieldSet(this,w,true)}};var E=function e(t){if(babelHelpers.classPrivateFieldGet(this,v)){babelHelpers.classPrivateFieldGet(this,v).show();babelHelpers.classPrivateFieldGet(this,v).search(t.srcElement.value)}};e.Selector=W})(this.BX.Landing.Component=this.BX.Landing.Component||{},BX.UI.EntitySelector,BX);
  //# sourceMappingURL=script.map.js