/*! For license information please see 2858.app.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2858,4164],{2858:function(e,t,r){r.r(t),r.d(t,{va_tab_item:function(){return n}});var o=r(9213),a=r(4164),n=function(){function e(e){(0,o.r)(this,e),this.tabItemSelected=(0,o.c)(this,"tabItemSelected",7),this.tabItemKeyNavigated=(0,o.c)(this,"tabItemKeyNavigated",7),this.buttonText=void 0,this.targetId=void 0,this.selected=!1}return e.prototype.handleClick=function(e){e.preventDefault(),this.tabItemSelected.emit(e)},e.prototype.handleKeyDown=function(e){"ArrowLeft"===e.key||"ArrowRight"===e.key?(e.preventDefault(),this.tabItemKeyNavigated.emit(e)):"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick(new MouseEvent("click",{bubbles:!0,cancelable:!0})))},e.prototype.render=function(){var e=this,t=this,r=t.buttonText,n=t.targetId,i=t.selected,s=(0,a.c)({"va-tabs__tab_item":!0});return(0,o.h)(o.H,{key:"4bc83e092de4b77b228c5234c38ca74f410b15c0",role:"tab",class:s,"aria-selected":i?"true":"false","aria-controls":n,id:"".concat(n,"-tab"),ref:function(t){return e.buttonElement=t},tabIndex:i?0:-1,onClick:function(t){return e.handleClick(t)},onKeyDown:function(t){return e.handleKeyDown(t)},"data-label":r},r)},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();n.style=':host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;color:var(--vads-color-primary);position:relative;padding:1rem;padding-bottom:calc(1rem - 4px);border:none;border-bottom:4px solid transparent;min-width:2.75rem;max-width:10rem;font-family:var(--font-source-sans);font-size:var(--vads-font-size-source-sans-normalized);text-align:center;line-height:var(--vads-font-line-height-2)}@media (forced-colors: active){:host{background-color:ButtonFace;color:ButtonText;border-bottom-color:ButtonFace}}:host(:focus){outline-offset:-2px !important}:host([aria-selected=false]:hover){cursor:pointer;background:var(--vads-color-base-lightest);border-bottom-color:var(--vads-color-primary)}:host([aria-selected=true]){border-bottom-color:var(--vads-color-primary);color:transparent}:host([aria-selected=true]:hover){cursor:pointer;background:var(--vads-color-base-lightest);border-bottom-color:var(--vads-color-primary)}:host([aria-selected=true])::after{content:attr(data-label)/"";display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;height:calc(100% - (2rem - 4px));top:1rem;width:calc(100% - 4px);left:2px;font-weight:700;color:var(--vads-color-link)}:host([aria-selected=true]:hover)::after{background-color:var(--vads-color-base-lightest)}@media screen and (min-width: 320px){:host{min-width:4rem}}@media screen and (min-width: 768px){:host{max-width:unset}}'},4164:function(e,t,r){r.r(t),r.d(t,{c:function(){return n}});var o,a={exports:{}};o=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var n=typeof a;if("string"===n||"number"===n)r.push(a);else if(Array.isArray(a)){if(a.length){var i=t.apply(null,a);i&&r.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var s in a)e.call(a,s)&&a[s]&&r.push(s);else r.push(a.toString())}}return r.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var n=a.exports}}]);