var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{c(a.next(t))}catch(t){r(t)}}function s(t){try{c(a["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):n(t.value).then(o,s)}c((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]1?a("footer",{class:u.pagination},a("calcite-action",{class:u.pagePrevious,icon:t==="ltr"?h.chevronLeft:h.chevronRight,onClick:this.previousClicked,scale:"m",text:d}),a("span",{class:u.pagePosition},"".concat(p," ").concat(i+1,"/").concat(r)),a("calcite-action",{class:u.pageNext,icon:t==="ltr"?h.chevronRight:h.chevronLeft,onClick:this.nextClicked,scale:"m",text:m})):null};t.prototype.render=function(){var t;var e=this,i=e.closed,n=e.direction,r=e.headingLevel,o=e.groupTitle,s=e.selectedIndex,m=e.intlClose,d=e.total;var p=m||g.close;if(d===0){return null}return a("section",{"aria-hidden":c(i),class:u.container,hidden:i,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef,tabIndex:0},a("header",{class:u.header},a(l,{class:u.heading,level:r||b},o),a("calcite-action",{class:u.close,onClick:this.hideTipManager,scale:"m",text:p},a("calcite-icon",{icon:h.close,scale:"m"}))),a("div",{class:(t={},t[u.tipContainer]=true,t[u.tipContainerAdvancing]=!i&&n==="advancing",t[u.tipContainerRetreating]=!i&&n==="retreating",t),key:s,tabIndex:0},a("slot",null)),this.renderPagination())};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}},enumerable:false,configurable:true});return t}());I.style=C}}}));