var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n["throw"](e))}catch(t){o(t)}}function u(e){e.done?r(e.value):i(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(a){s=[6,a];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-ff3b0bee.system.js","./p-b771bfdd.system.js"],(function(e){"use strict";var t,r,n,i;return{setters:[function(e){t=e.r;r=e.h;n=e.g},function(e){i=e.e}],execute:function(){var o=e("anj_popover",function(){function e(e){var r=this;t(this,e);this.scrollListener=function(){return r.onScroll(window)};this.arrow=true;this.dismiss="explicit";this.placement="top"}e.prototype.componentWillLoad=function(){this.onScroll=i(this.onScroll.bind(this),50)};e.prototype.disconnectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(this.dismiss==="auto"){this.target=undefined;window.removeEventListener("scroll",this.scrollListener)}if(!this.overlay)return[3,2];return[4,this.overlay.popper()];case 1:e=t.sent();if(e){this.overlay.remove()}t.label=2;case 2:return[2]}}))}))};e.prototype.display=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.overlay.popper()];case 1:t=r.sent();if(t){t.reference=e;t.scheduleUpdate()}else{if(this.dismiss==="auto"){this.target=e;window.addEventListener("scroll",this.scrollListener)}return[2,this.overlay.open(e)]}return[2]}}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.disconnectedCallback();return[4,this.overlay.close()];case 1:e.sent();return[2]}}))}))};e.prototype.toggle=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.overlay.popper()];case 1:t=r.sent();if(t){return[2,this.hide()]}else{return[2,this.display(e)]}return[2]}}))}))};e.prototype.showing=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.overlay.popper()];case 1:e=t.sent();return[2,!!e]}}))}))};e.prototype.onScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.scrollY>this.target.offsetTop+this.target.offsetHeight||e.scrollY<this.target.offsetTop-this.target.offsetHeight){return[2,this.hide()]}return[2]}))}))};e.prototype.render=function(){var e=this;return r("anj-overlay",{class:"anj-popover",dismiss:this.dismiss,scrollable:true,placement:this.placement,offset:this.arrow?"0, 15":"0, 5",ref:function(t){return e.overlay=t}},this.arrow?r("anj-arrow",null):"",r("div",{class:"anj-popover-content"},r("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return".sc-anj-popover-h{display:none}"},enumerable:true,configurable:true});return e}());var s=e("anj_popover_header",function(){function e(e){t(this,e)}Object.defineProperty(e,"style",{get:function(){return"anj-popover-header{border-bottom:0;color:var(--anj-primary);display:block;font-size:.75rem;padding:0 0 .5rem}"},enumerable:true,configurable:true});return e}())}}}));