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?h("footer",{class:CSS$1.pagination},h("calcite-action",{class:CSS$1.pagePrevious,icon:t==="ltr"?ICONS$1.chevronLeft:ICONS$1.chevronRight,onClick:this.previousClicked,scale:"m",text:l}),h("span",{class:CSS$1.pagePosition},"".concat(m," ").concat(i+1,"/").concat(n)),h("calcite-action",{class:CSS$1.pageNext,icon:t==="ltr"?ICONS$1.chevronRight:ICONS$1.chevronLeft,onClick:this.nextClicked,scale:"m",text:c})):null};t.prototype.render=function(){var t;var e=this,i=e.closed,a=e.direction,n=e.headingLevel,r=e.groupTitle,o=e.selectedIndex,s=e.intlClose,c=e.total;var l=s||TEXT$1.close;if(c===0){return null}return h("section",{"aria-hidden":toAriaBoolean(i),class:CSS$1.container,hidden:i,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef,tabIndex:0},h("header",{class:CSS$1.header},h(Heading,{class:CSS$1.heading,level:n||HEADING_LEVEL$1},r),h("calcite-action",{class:CSS$1.close,onClick:this.hideTipManager,scale:"m",text:l},h("calcite-icon",{icon:ICONS$1.close,scale:"m"}))),h("div",{class:(t={},t[CSS$1.tipContainer]=true,t[CSS$1.tipContainerAdvancing]=!i&&a==="advancing",t[CSS$1.tipContainerRetreating]=!i&&a==="retreating",t),key:o,tabIndex:0},h("slot",null)),this.renderPagination())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}},enumerable:false,configurable:true});return t}();TipManager.style=tipManagerCss;export{Tip as calcite_tip,TipGroup as calcite_tip_group,TipManager as calcite_tip_manager};