var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){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(t){return function(e){return u([t,e])}}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=e.call(t,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-9910f372.system.js","./p-b771bfdd.system.js"],(function(t){"use strict";var e,r,n,i;return{setters:[function(t){e=t.r;r=t.h;n=t.g},function(t){i=t.e}],execute:function(){var o=t("anj_popover",function(){function t(t){var r=this;e(this,t);this.scrollListener=function(){return r.onScroll(window)};this.arrow=true;this.dismiss="explicit";this.placement="top"}t.prototype.componentWillLoad=function(){this.onScroll=i(this.onScroll.bind(this),50)};t.prototype.disconnectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.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:t=e.sent();if(t){this.overlay.remove()}e.label=2;case 2:return[2]}}))}))};t.prototype.display=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.overlay.popper()];case 1:e=r.sent();if(e){e.reference=t;e.scheduleUpdate()}else{if(this.dismiss==="auto"){this.target=t;window.addEventListener("scroll",this.scrollListener)}return[2,this.overlay.open(t)]}return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.disconnectedCallback();return[4,this.overlay.close()];case 1:t.sent();return[2]}}))}))};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.overlay.popper()];case 1:e=r.sent();if(e){return[2,this.hide()]}else{return[2,this.display(t)]}return[2]}}))}))};t.prototype.showing=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.overlay.popper()];case 1:t=e.sent();return[2,!!t]}}))}))};t.prototype.onScroll=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(t.scrollY>this.target.offsetTop+this.target.offsetHeight||t.scrollY<this.target.offsetTop-this.target.offsetHeight){return[2,this.hide()]}return[2]}))}))};t.prototype.render=function(){var t=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(e){return t.overlay=e}},this.arrow?r("anj-arrow",null):"",r("div",{class:"anj-popover-content"},r("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return".sc-anj-popover-h{display:none}"},enumerable:true,configurable:true});return t}());var s=t("anj_popover_header",function(){function t(t){e(this,t)}Object.defineProperty(t,"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 t}())}}}));