index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/519.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[519],{2134:function(t,a,e){function s(){return"rtl"===document.dir}e.d(a,{i:function(){return s}})},519:function(t,a,e){e.r(a),e.d(a,{sc_tab:function(){return u}});var s=e(5861),i=e(5671),r=e(3144),n=e(1284),c=e.n(n),o=e(8860),l=e(2134),h=0,u=function(){function t(a){(0,i.Z)(this,t),(0,o.r)(this,a),this.scClose=(0,o.c)(this,"scClose",7),this.componentId="tab-".concat(++h),this.panel="",this.href=void 0,this.active=!1,this.disabled=!1,this.count=void 0,this.hasPrefix=!1,this.hasSuffix=!1}var a,e;return(0,r.Z)(t,[{key:"triggerFocus",value:(e=(0,s.Z)(c().mark((function t(a){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.tab.focus(a);case 1:case"end":return t.stop()}}),t,this)}))),function(_x){return e.apply(this,arguments)})},{key:"triggerBlur",value:(a=(0,s.Z)(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.tab.blur();case 1:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"handleSlotChange",value:function(){this.hasPrefix=!!this.el.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.el.querySelector('[slot="suffix"]')}},{key:"render",value:function(){var t=this;this.el.id=this.el.id||this.componentId;var a=this.href?"a":"div";return(0,o.h)(a,{part:"base ".concat(this.active?"active":""),href:this.href,class:{tab:!0,"tab--active":this.active,"tab--disabled":this.disabled,"tab--has-prefix":this.hasPrefix,"tab--has-suffix":this.hasSuffix,"tab--is-rtl":(0,l.i)()},ref:function(a){return t.tab=a},role:"tab","aria-disabled":this.disabled?"true":"false","aria-selected":this.active?"true":"false",tabindex:this.disabled?"-1":"0"},(0,o.h)("span",{part:"prefix",class:"tab__prefix"},(0,o.h)("slot",{onSlotchange:function(){return t.handleSlotChange()},name:"prefix"})),(0,o.h)("div",{class:"tab__content",part:"content"},(0,o.h)("slot",null)),(0,o.h)("span",{part:"suffix",class:"tab__suffix"},(0,o.h)("slot",{onSlotchange:function(){return t.handleSlotChange()},name:"suffix"})),(0,o.h)("slot",{name:"suffix"},!!this.count&&(0,o.h)("div",{class:"tab__counter",part:"counter"},this.count)))}},{key:"el",get:function(){return(0,o.a)(this)}}]),t}();u.style=":host{display:block}.tab{font-family:var(--sc-font-sans);color:var(--sc-color-gray-600);display:flex;align-items:center;justify-content:flex-start;line-height:1;padding:var(--sc-spacing-small) var(--sc-spacing-small);font-size:var(--sc-font-size-medium);font-weight:var(--sc-font-weight-semibold);border-radius:var(--sc-border-radius-small);cursor:pointer;transition:color 0.35s ease, background-color 0.35s ease;user-select:none;text-decoration:none}.tab.tab--active,.tab:hover{color:var(--sc-tab-active-color, var(--sc-color-gray-900));background-color:var(--sc-tab-active-background, var(--sc-color-gray-100))}.tab.tab--disabled{cursor:not-allowed;color:var(--sc-color-gray-400)}.tab__content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--sc-line-height-dense)}.tab__prefix,.tab__suffix{flex:0 0 auto;display:flex;align-items:center}.tab__suffix{margin-left:auto}.tab__counter{background:var(--sc-color-gray-200);display:inline-block;padding:var(--sc-spacing-xx-small) var(--sc-spacing-small);border-radius:var(--sc-border-radius-pill);font-size:var(--sc-font-size-small);text-align:center;line-height:1;transition:color 0.35s ease, background-color 0.35s ease}.tab.tab--active .tab__counter,.tab:hover .tab__counter{background:var(--sc-color-white)}.tab--has-prefix{padding-left:var(--sc-spacing-small)}.tab--has-prefix .tab__content{padding-left:var(--sc-spacing-small)}.tab--has-suffix{padding-right:var(--sc-spacing-small)}.tab--has-suffix .tab__label{padding-right:var(--sc-spacing-small)}.tab--is-rtl.tab--has-prefix .tab__content{padding-left:0;padding-right:var(--sc-spacing-small)}"}}]);