/*! For license information please see 6824.app.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4164,6824],{4164:function(i,e,t){t.r(e),t.d(e,{c:function(){return n}});var o,a={exports:{}};o=a,function(){var i={}.hasOwnProperty;function e(){for(var t=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var n=typeof a;if("string"===n||"number"===n)t.push(a);else if(Array.isArray(a)){if(a.length){var r=e.apply(null,a);r&&t.push(r)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var l in a)i.call(a,l)&&a[l]&&t.push(l);else t.push(a.toString())}}return t.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var n=a.exports},6824:function(i,e,t){t.r(e),t.d(e,{va_notification:function(){return n}});var o=t(9213),a=t(4164),n=function(){function i(i){(0,o.r)(this,i),this.closeEvent=(0,o.c)(this,"closeEvent",7),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.visible=!0,this.symbol="none",this.closeBtnAriaLabel="Close notification",this.closeable=!1,this.hasBorder=!0,this.hasCloseText=!1,this.headline=void 0,this.headlineLevel="3",this.dateTime=void 0,this.href=void 0,this.text=void 0,this.disableAnalytics=!1}return i.prototype.handleLinkAnalytics=function(i){var e,t;if("va-notification"!==i.detail.componentName&&(i.stopPropagation(),!this.disableAnalytics)){var o={componentName:"va-notification",action:"linkClick",details:{clickLabel:null===(t=null===(e=i.detail)||void 0===e?void 0:e.details)||void 0===t?void 0:t.label,type:this.symbol,headline:this.headline}};this.componentLibraryAnalytics.emit(o)}},i.prototype.closeHandler=function(i){if(this.closeEvent.emit(i),!this.disableAnalytics){var e={componentName:"va-notification",action:"close",details:{type:this.symbol,headline:this.headline}};this.componentLibraryAnalytics.emit(e)}},i.prototype.getHeadlineLevel=function(){var i=parseInt(this.headlineLevel,10);return i>=1&&i<=6?"h".concat(i):"h3"},i.prototype.render=function(){var i=this,e=i.visible,t=i.symbol,n=i.headline,r=i.dateTime,l=i.href,s=i.text,c=i.closeable,h=i.hasBorder,d=i.hasCloseText,p=this.getHeadlineLevel();if(!e)return(0,o.h)("div",{"aria-live":"polite"});var v=(0,a.c)("va-notification",t,{"has-border":h}),f="".concat(n," ").concat(r);return(0,o.h)(o.H,null,(0,o.h)("va-card",{"show-shadow":"true"},(0,o.h)("div",{class:v},t&&"none"!==t?(0,o.h)("va-icon",{"aria-hidden":"true",role:"img",size:5,icon:"action-required"===t?"error":"update"===t?"info":null,class:t}):null,(0,o.h)("div",{class:"body",role:"presentation"},n?(0,o.h)(p,{part:"headline","aria-describedby":f},n):null,r?(0,o.h)("time",{dateTime:r},r):null,(0,o.h)("slot",null),l&&s?(0,o.h)("va-link",{active:!0,href:l,text:s}):null)),c&&(0,o.h)("button",{class:"va-notification-close","aria-label":this.closeBtnAriaLabel,onClick:this.closeHandler.bind(this)},(0,o.h)("va-icon",{icon:"close"}),d&&(0,o.h)("span",null,"CLOSE"))))},Object.defineProperty(i.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),i}();n.style=":host{display:block;position:relative}:host([has-border=false])>va-card{border:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}::slotted([slot=date]){display:block;color:var(--vads-color-base-darker);font-size:16px}va-link{display:block;margin-top:3px}:host va-icon{margin-right:16px}va-icon.action-required{color:var(--vads-color-secondary-dark)}va-icon.update{color:var(--vads-color-primary)}.va-notification{display:table;width:100%;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}div.body{display:table-cell;vertical-align:middle;width:100%}h1,h2,h3,h4,h5,h6{margin:0;font-size:17px;font-family:var(--font-serif);line-height:22px;width:66%}@media (min-width: 768px){h1,h2,h3,h4,h5,h6{width:100%}}p{line-height:24px}.va-notification-close{margin:18px 12px;padding:0px;width:auto;color:var(--vads-color-base-darker);font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0px;cursor:pointer;background:transparent;display:block;position:absolute;right:0px;top:0px}.va-notification-close:hover{color:var(--vads-color-base);background-color:transparent}.va-notification-close:active,.va-notification-close:focus{color:var(--vads-color-base);background-color:transparent;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.va-notification-close>i{margin-right:8px;vertical-align:middle}.va-notification-close>span{font-weight:600;margin-right:5px}"}}]);