@department-of-veterans-affairs/component-library 51.4.0 → 52.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/0.app.bundle.js +1 -1
  2. package/dist/1822.app.bundle.js +1 -1
  3. package/dist/2236.app.bundle.js +1 -1
  4. package/dist/251.app.bundle.js +1 -1
  5. package/dist/2923.app.bundle.js +1 -1
  6. package/dist/2986.app.bundle.js +1 -1
  7. package/dist/3397.app.bundle.js +1 -1
  8. package/dist/3589.app.bundle.js +1 -1
  9. package/dist/3601.app.bundle.js +2 -0
  10. package/dist/3601.app.bundle.js.LICENSE.txt +5 -0
  11. package/dist/4400.app.bundle.js +1 -1
  12. package/dist/4432.app.bundle.js +1 -1
  13. package/dist/4475.app.bundle.js +1 -1
  14. package/dist/4780.app.bundle.js +1 -1
  15. package/dist/5341.app.bundle.js +1 -1
  16. package/dist/5348.app.bundle.js +2 -0
  17. package/dist/5348.app.bundle.js.LICENSE.txt +5 -0
  18. package/dist/5663.app.bundle.js +1 -1
  19. package/dist/606.app.bundle.js +1 -1
  20. package/dist/6308.app.bundle.js +1 -1
  21. package/dist/6555.app.bundle.js +1 -1
  22. package/dist/6650.app.bundle.js +1 -1
  23. package/dist/6830.app.bundle.js +1 -1
  24. package/dist/6849.app.bundle.js +1 -1
  25. package/dist/7166.app.bundle.js +1 -1
  26. package/dist/7307.app.bundle.js +1 -1
  27. package/dist/7372.app.bundle.js +1 -1
  28. package/dist/7734.app.bundle.js +1 -1
  29. package/dist/8039.app.bundle.js +1 -0
  30. package/dist/8255.app.bundle.js +1 -1
  31. package/dist/8762.app.bundle.js +1 -0
  32. package/dist/8913.app.bundle.js +1 -1
  33. package/dist/9186.app.bundle.js +1 -1
  34. package/dist/9376.app.bundle.js +1 -1
  35. package/dist/9496.app.bundle.js +1 -1
  36. package/dist/960.app.bundle.js +1 -1
  37. package/dist/app.bundle.js +1 -1
  38. package/dist/components/index.d.ts +6 -0
  39. package/dist/components/index.js +1 -1
  40. package/dist/components/types/components.d.ts +215 -15
  41. package/dist/components/utils.js +1 -1
  42. package/dist/components/va-accordion-item2.js +1 -1
  43. package/dist/components/va-alert-expandable.js +1 -1
  44. package/dist/components/va-alert2.js +1 -1
  45. package/dist/components/va-banner.js +1 -1
  46. package/dist/components/va-checkbox2.js +1 -1
  47. package/dist/components/va-file-input-multiple.js +1 -1
  48. package/dist/components/va-file-input2.js +1 -1
  49. package/dist/components/va-link2.js +1 -1
  50. package/dist/components/va-modal2.js +1 -1
  51. package/dist/components/va-omb-info.js +1 -1
  52. package/dist/components/va-segmented-progress-bar.js +1 -1
  53. package/dist/components/va-service-list-item.js +1 -1
  54. package/dist/components/va-sidenav.js +1 -1
  55. package/dist/components/va-tab-item.d.ts +11 -0
  56. package/dist/components/va-tab-item.js +1 -0
  57. package/dist/components/va-tab-panel.d.ts +11 -0
  58. package/dist/components/va-tab-panel.js +1 -0
  59. package/dist/components/va-tabs.d.ts +11 -0
  60. package/dist/components/va-tabs.js +1 -0
  61. package/dist/components/va-telephone-input.js +1 -1
  62. package/dist/components/va-telephone2.js +1 -1
  63. package/dist/components/va-text-input2.js +1 -1
  64. package/dist/components/va-textarea.js +1 -1
  65. package/dist/react-bindings/index.d.ts +3 -0
  66. package/dist/react-bindings/index.js +1 -1
  67. package/dist/react-bindings/index.js.map +1 -1
  68. package/dist/react-bindings/index.ts +3 -0
  69. package/package.json +3 -3
  70. package/dist/7508.app.bundle.js +0 -1
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 0.app.bundle.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[0,4569],{4569:function(i,n,e){e.r(n),e.d(n,{c:function(){return t}});var o,a={exports:{}};o=a,function(){var i={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var t=typeof a;if("string"===t||"number"===t)e.push(a);else if(Array.isArray(a)){if(a.length){var r=n.apply(null,a);r&&e.push(r)}}else if("object"===t)if(a.toString===Object.prototype.toString)for(var l in a)i.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}o.exports?(n.default=n,o.exports=n):window.classNames=n}();var t=a.exports},0:function(i,n,e){e.r(n),e.d(n,{va_link:function(){return t}});var o=e(7911),a=e(4569),t=function(){function i(i){var n=this;(0,o.r)(this,i),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.handleClick=function(i){if(!n.disableAnalytics){var e={componentName:"va-link",action:"click",details:{label:n.text,destination:n.href,origin:window.location.href}};n.componentLibraryAnalytics.emit(e)}},this.getAbbreviationTitle=function(){var i=n,e=i.abbrTitle;return"PDF"===i.filetype?"Portable Document Format":e},this.abbrTitle=void 0,this.active=!1,this.back=!1,this.calendar=!1,this.channel=!1,this.disableAnalytics=!1,this.download=!1,this.href=void 0,this.filename=void 0,this.filetype=void 0,this.pages=void 0,this.text=void 0,this.video=!1,this.reverse=!1,this.external=!1,this.label=null,this.iconName=null,this.iconSize=3,this.language=void 0}return i.prototype.render=function(){var i=this,n=i.active,e=i.back,t=i.calendar,r=i.channel,l=i.download,s=i.filetype,c=i.filename,h=i.getAbbreviationTitle,u=i.handleClick,f=i.href,v=i.pages,d=i.text,b=i.video,k=i.reverse,p=i.external,g=i.iconName,m=i.iconSize,y=i.language,x=i.label,w=(0,a.c)({"va-link--reverse":k,"link--center":g});if(n)return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,class:w,onClick:u,"aria-label":x},d,(0,o.h)("va-icon",{class:"link-icon--active",icon:"chevron_right"})));if(e){var _=(0,o.h)("va-icon",{icon:"arrow_back",class:"link-icon--left link-icon--back"});return(0,o.h)(o.H,null,(0,o.h)("div",{class:"link-container"},_,(0,o.h)("a",{href:f,class:w,onClick:u,"aria-label":x},d)))}if(r||b){var C=r?"youtube":"play_circle";return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,class:w,"aria-label":x,onClick:u,rel:"noopener",target:"_blank"},(0,o.h)("va-icon",{class:"link-icon--left",icon:C}),d," ",(0,o.h)("dfn",null,r?"YouTube":"on YouTube")))}if(t)return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,class:w,download:c,"aria-label":x,onClick:u},(0,o.h)("va-icon",{class:"link-icon--left",icon:"calendar_today"}),d));if(l)return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,class:w,download:c,"aria-label":x,onClick:u},(0,o.h)("va-icon",{class:"link-icon--left",icon:"file_download"}),d," ",s&&(0,o.h)("dfn",null,"(",(0,o.h)("abbr",{title:h()},s),v&&", ".concat(v," pages"),")")));if(g)return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,class:w,"aria-label":x,onClick:u},(0,o.h)("va-icon",{icon:g,size:m,part:"icon"}),d));if(p)return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,rel:"noreferrer",class:w,onClick:u,"aria-label":x,target:"_blank"},d," ",(0,o.h)("span",{class:"screen-only"},"(opens in a new tab)")));var H=y||null;return(0,o.h)(o.H,null,(0,o.h)("a",{href:f,class:w,onClick:u,"aria-label":x,part:"anchor",lang:H,hrefLang:H},d))},i}();t.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:inline}:host([href]:focus){outline:none !important}:host a{cursor:pointer;text-decoration:underline;font:inherit}:host a.va-link--reverse,:host a.va-link--reverse .link-icon--back{color:var(--vads-color-white)}:host a.va-link--reverse:hover,:host a.va-link--reverse:active,:host a.va-link--reverse:hover .link-icon--back,:host a.va-link--reverse:active .link-icon--back,:host a.va-link--reverse .link-icon--back:hover,:host a.va-link--reverse .link-icon--back:active,:host a.va-link--reverse .link-icon--back:hover .link-icon--back,:host a.va-link--reverse .link-icon--back:active .link-icon--back{color:var(--vads-color-action-focus-on-light);background-color:transparent}:host([active]:not([active=false])) a{font-weight:700}:host([icon-name]) va-icon{margin-right:4px}.link-icon--active{vertical-align:baseline;position:relative;top:3px}.link-icon--left{margin-right:4px;vertical-align:baseline;position:relative;top:3px}.link-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.link-icon--back{color:var(--vads-color-gray-medium);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}.link--center{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}dfn{font-style:normal}abbr{text-decoration:none}.external-link-icon{margin-left:4px}@media print{.screen-only{display:none}}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[0,4569],{4569:function(i,n,e){e.r(n),e.d(n,{c:function(){return t}});var o,a={exports:{}};o=a,function(){var i={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var t=typeof a;if("string"===t||"number"===t)e.push(a);else if(Array.isArray(a)){if(a.length){var r=n.apply(null,a);r&&e.push(r)}}else if("object"===t)if(a.toString===Object.prototype.toString)for(var l in a)i.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}o.exports?(n.default=n,o.exports=n):window.classNames=n}();var t=a.exports},0:function(i,n,e){e.r(n),e.d(n,{va_link:function(){return t}});var o=e(7911),a=e(4569),t=function(){function i(i){var n=this;(0,o.r)(this,i),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.handleClick=function(i){if(!n.disableAnalytics){var e={componentName:"va-link",action:"click",details:{label:n.text,destination:n.href,origin:window.location.href}};n.componentLibraryAnalytics.emit(e)}},this.getAbbreviationTitle=function(){var i=n,e=i.abbrTitle;return"PDF"===i.filetype?"Portable Document Format":e},this.abbrTitle=void 0,this.active=!1,this.back=!1,this.calendar=!1,this.channel=!1,this.disableAnalytics=!1,this.download=!1,this.href=void 0,this.filename=void 0,this.filetype=void 0,this.pages=void 0,this.text=void 0,this.video=!1,this.reverse=!1,this.external=!1,this.label=null,this.iconName=null,this.iconSize=3,this.language=void 0}return i.prototype.render=function(){var i=this,n=i.active,e=i.back,t=i.calendar,r=i.channel,l=i.download,c=i.filetype,s=i.filename,h=i.getAbbreviationTitle,u=i.handleClick,v=i.href,f=i.pages,d=i.text,b=i.video,k=i.reverse,p=i.external,g=i.iconName,m=i.iconSize,y=i.language,x=i.label,w=(0,a.c)({"va-link--reverse":k,"link--center":g});if(n)return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,class:w,onClick:u,"aria-label":x},d,(0,o.h)("span",{class:"link-icon--active-icon-wrapper"},(0,o.h)("va-icon",{class:"link-icon--active",icon:"chevron_right"}))));if(e){var _=(0,o.h)("va-icon",{icon:"arrow_back",class:"link-icon--left link-icon--back"});return(0,o.h)(o.H,null,(0,o.h)("div",{class:"link-container"},_,(0,o.h)("a",{href:v,class:w,onClick:u,"aria-label":x},d)))}if(r||b){var C=r?"youtube":"play_circle";return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,class:w,"aria-label":x,onClick:u,rel:"noopener",target:"_blank"},(0,o.h)("va-icon",{class:"link-icon--left",icon:C}),d," ",(0,o.h)("dfn",null,r?"YouTube":"on YouTube")))}if(t)return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,class:w,download:s,"aria-label":x,onClick:u},(0,o.h)("va-icon",{class:"link-icon--left",icon:"calendar_today"}),d));if(l)return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,class:w,download:s,"aria-label":x,onClick:u},(0,o.h)("va-icon",{class:"link-icon--left",icon:"file_download"}),d," ",c&&(0,o.h)("dfn",null,"(",(0,o.h)("abbr",{title:h()},c),f&&", ".concat(f," pages"),")")));if(g)return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,class:w,"aria-label":x,onClick:u},(0,o.h)("va-icon",{icon:g,size:m,part:"icon"}),d));if(p)return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,rel:"noreferrer",class:w,onClick:u,"aria-label":x,target:"_blank"},d," ",(0,o.h)("span",{class:"screen-only"},"(opens in a new tab)")));var H=y||null;return(0,o.h)(o.H,null,(0,o.h)("a",{href:v,class:w,onClick:u,"aria-label":x,part:"anchor",lang:H,hrefLang:H},d))},i}();t.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:inline}:host([href]:focus){outline:none !important}:host a{cursor:pointer;text-decoration:underline;font:inherit}:host a.va-link--reverse,:host a.va-link--reverse .link-icon--back{color:var(--vads-color-white)}:host a.va-link--reverse:hover,:host a.va-link--reverse:active,:host a.va-link--reverse:hover .link-icon--back,:host a.va-link--reverse:active .link-icon--back,:host a.va-link--reverse .link-icon--back:hover,:host a.va-link--reverse .link-icon--back:active,:host a.va-link--reverse .link-icon--back:hover .link-icon--back,:host a.va-link--reverse .link-icon--back:active .link-icon--back{color:var(--vads-color-action-focus-on-light);background-color:transparent}:host([active]:not([active=false])) a{font-weight:700}:host([icon-name]) va-icon{margin-right:4px}:host .link-icon--active-icon-wrapper{white-space:nowrap}.link-icon--active{vertical-align:baseline;position:relative;top:3px}.link-icon--left{margin-right:4px;vertical-align:baseline;position:relative;top:3px}.link-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.link-icon--back{color:var(--vads-color-gray-medium);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}.link--center{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}dfn{font-style:normal}abbr{text-decoration:none}.external-link-icon{margin-left:4px}@media print{.screen-only{display:none}}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 1822.app.bundle.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[1822,4569,7508],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var a,n={exports:{}};a=n,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var n=arguments[a];if(n){var o=typeof n;if("string"===o||"number"===o)r.push(n);else if(Array.isArray(n)){if(n.length){var i=t.apply(null,n);i&&r.push(i)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)e.call(n,s)&&n[s]&&r.push(s);else r.push(n.toString())}}return r.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var o=n.exports},7508:function(e,t,r){function a(e){return!Number.isNaN(parseFloat(e))}function n(e,t,r){void 0===r&&(r="slot");var a=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(a)}function o(e){return 1===e?"":"s"}function i(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var a=t-e.length;r="".concat(a," character").concat(o(a)," left")}else a=e.length-t,r="".concat(a," character").concat(o(a)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return g},a:function(){return n},b:function(){return a},c:function(){return f},d:function(){return v},e:function(){return i},f:function(){return c},g:function(){return h},i:function(){return m},m:function(){return s},s:function(){return u}}),r(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&r.push(t),r}var g={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return g._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(g._entity,g.getEntity));return t}};function h(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function c(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function m(e){return e&&"false"!==e||!1}function d(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function v(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(d(e)||d(t)){if(!d(e)||!d(t))return!1;var n=Array.prototype.slice;return v(n.call(e),n.call(t),r,a)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),i=Object.keys(t);if(0===o.length&&0===i.length)return!0;if(o.length!==i.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return a[s]===t;r.push(e),a.push(t),o.sort(),i.sort();for(var l=o.length-1;l>=0;l--)if(o[l]!==i[l])return!1;for(var u=void 0,g=o.length-1;g>=0;g--)if(!v(e[u=o[g]],t[u],r,a))return!1;return r.pop(),a.pop(),!0}function f(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var a=e.charAt(0).toLowerCase();return r.includes(a)?"an":"a"}},1822:function(e,t,r){r.r(t),r.d(t,{va_alert_sign_in:function(){return l}});var a,n,o=r(7911),i=r(4569),s=r(7508);(n=a||(a={})).signInRequired="signInRequired",n.signInOptional="signInOptional",n.signInOptionalNoPrefill="signInOptionalNoPrefill",n.verifyIdMe="verifyIdMe",n.verifyLoginGov="verifyLoginGov",n.signInEither="signInEither";var l=function(){function e(e){(0,o.r)(this,e),this.variant=a.signInRequired,this.headingLevel=2,this.visible=!0,this.timeLimit="15 minutes",this.noSignInLink=void 0}return e.prototype.render=function(){var e,t=this,r=this.visible,n=this.variant;if(Object.values(a).includes(n)||(console.error("A non-allowed variant name was provided, please check your spelling."),n=a.signInRequired),!r)return(0,o.h)("div",{"aria-live":"polite"});var l=(0,i.c)("usa-alert","va-alert-sign-in--".concat(n),{"usa-alert--info":n===a.signInRequired||n===a.signInOptional||n===a.signInOptionalNoPrefill,"usa-alert--warning":n!==a.signInRequired&&n!==a.signInOptional&&n!==a.signInOptionalNoPrefill}),u=(0,s.g)(this.headingLevel),g=((e={})[a.signInEither]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"You need to sign in with a different account"),(0,o.h)("p",null,"We need you to sign in with an identity-verified account. This helps us protect all Veterans’ information and prevent scammers from stealing your benefits. You have 2 options: a verified"," ",(0,o.h)("strong",null,"Login.gov")," or a verified ",(0,o.h)("strong",null,"ID.me")," ","account."),(0,o.h)("p",null,(0,o.h)("strong",null,"If you already have a Login.gov or ID.me account,")," ","sign in with that account. If you still need to verify your identity for your account, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("strong",null,"If you don’t have a Login.gov or ID.me account,")," ","create one now. We’ll help you verify your identity."),(0,o.h)("p",null,(0,o.h)("slot",{name:"LoginGovSignInButton"})),(0,o.h)("p",null,(0,o.h)("slot",{name:"IdMeSignInButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0})))},e[a.signInOptional]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Sign in with a verified account"),(0,o.h)("p",null,"Here’s how signing in with an identity-verified account helps you:"),(0,o.h)("ul",null,(0,o.h)("li",null,"We can fill in some of your information for you to save you time."),(0,o.h)("li",null,"You can save your work in progress. You’ll have ",t.timeLimit," ","from when you start or make changes to submit your form.")),(0,o.h)("p",null,(0,o.h)("strong",null,"Don’t yet have a verified account?")," Create a"," ",(0,o.h)("strong",null,"Login.gov")," or ",(0,o.h)("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),(0,o.h)("p",null,(0,o.h)("slot",{name:"SignInButton"})),t.noSignInLink&&(0,o.h)("p",null,(0,o.h)("va-link",{href:t.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0})))},e[a.signInOptionalNoPrefill]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Sign in with a verified account"),(0,o.h)("p",null,"When you sign in with an identity-verified account, you can save your work in progress. You’ll have 60 days from when you start or make changes to submit your form."),(0,o.h)("p",null,(0,o.h)("strong",null,"Don’t yet have a verified account?")," Create a"," ",(0,o.h)("strong",null,"Login.gov")," or ",(0,o.h)("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),(0,o.h)("p",null,(0,o.h)("slot",{name:"SignInButton"})),t.noSignInLink&&(0,o.h)("p",null,(0,o.h)("va-link",{href:t.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0})))},e[a.signInRequired]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Sign in with a verified account"),(0,o.h)("p",null,"You’ll need to sign in with an identity-verified account through one of our account providers. Identity verification helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),(0,o.h)("p",null,(0,o.h)("strong",null,"Don’t yet have a verified account?")," Create a"," ",(0,o.h)("strong",null,"Login.gov")," or ",(0,o.h)("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("slot",{name:"SignInButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0})))},e[a.verifyIdMe]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Verify your identity"),(0,o.h)("p",null,"We need you to verify your identity for your ",(0,o.h)("strong",null,"ID.me")," ","account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),(0,o.h)("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),(0,o.h)("p",null,(0,o.h)("slot",{name:"IdMeVerifyButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0})))},e[a.verifyLoginGov]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Verify your identity"),(0,o.h)("p",null,"We need you to verify your identity for your"," ",(0,o.h)("strong",null,"Login.gov")," account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),(0,o.h)("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),(0,o.h)("p",null,(0,o.h)("slot",{name:"LoginGovVerifyButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0})))},e)[n];return(0,o.h)(o.H,null,(0,o.h)("div",{role:this.el.getAttribute("data-role"),class:l,"aria-label":this.el.getAttribute("data-label")},(0,o.h)("div",{class:"usa-alert__body"},(0,o.h)("div",null,(0,o.h)("va-icon",{class:"va-alert-sign-in__lock-icon",icon:"lock",size:4}),(0,o.h)(g,null)))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();l.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-alert{background-color:#f0f0f0;border-left:0.5rem solid #a9aeb1;color:#1b1b1b}.usa-alert .usa-alert__body{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;padding-bottom:1rem;padding-top:1rem;position:relative}.usa-alert .usa-alert__text{margin-bottom:0;margin-top:0}.usa-alert .usa-alert__text:only-child{padding-bottom:0;padding-top:0}.usa-alert .usa-alert__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:0.9;margin-top:0;margin-bottom:0.5rem}.usa-alert>.usa-list,.usa-alert .usa-alert__body>.usa-list{padding-left:2ch}.usa-alert>.usa-list:last-child,.usa-alert .usa-alert__body>.usa-list:last-child{margin-bottom:0}.usa-alert .usa-alert__body{padding-left:1.25rem;padding-right:1.25rem}.usa-alert .usa-alert__body::before{left:1.0833333333rem}*+.usa-alert{margin-top:1rem}.usa-alert--success{background-color:#ecf3ec;border-left-color:#00a91c}.usa-alert--success .usa-alert__body{color:#1b1b1b;background-color:#ecf3ec;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--success .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--success .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--success .usa-alert__body>*{margin-left:2.5rem}.usa-alert--success .usa-alert__body .usa-link{color:#005ea2}.usa-alert--success .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--success .usa-alert__body .usa-link:hover,.usa-alert--success .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--warning{background-color:#faf3d1;border-left-color:#ffbe2e}.usa-alert--warning .usa-alert__body{color:#1b1b1b;background-color:#faf3d1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--warning .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--warning .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--warning .usa-alert__body>*{margin-left:2.5rem}.usa-alert--warning .usa-alert__body .usa-link{color:#005ea2}.usa-alert--warning .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--warning .usa-alert__body .usa-link:hover,.usa-alert--warning .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--error{background-color:#f4e3db;border-left-color:#d54309}.usa-alert--error .usa-alert__body{color:#1b1b1b;background-color:#f4e3db;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--error .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--error .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--error .usa-alert__body>*{margin-left:2.5rem}.usa-alert--error .usa-alert__body .usa-link{color:#005ea2}.usa-alert--error .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--error .usa-alert__body .usa-link:hover,.usa-alert--error .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--info{background-color:#e7f6f8;border-left-color:#00bde3}.usa-alert--info .usa-alert__body{color:#1b1b1b;background-color:#e7f6f8;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--info .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--info .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--info .usa-alert__body>*{margin-left:2.5rem}.usa-alert--info .usa-alert__body .usa-link{color:#005ea2}.usa-alert--info .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--info .usa-alert__body .usa-link:hover,.usa-alert--info .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--emergency{background-color:#9c3d10;border-left-color:#9c3d10}.usa-alert--emergency .usa-alert__body{color:white;background-color:#9c3d10;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--emergency .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 width%3D%2224%22%3E%3Cpath d%3D%22M0 0h24v24H0z%22 fill%3D%22none%22%2F%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--emergency .usa-alert__body::before{background:none;background-color:white;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--emergency .usa-alert__body>*{margin-left:2.5rem}.usa-alert--emergency .usa-alert__body .usa-link{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:visited{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:hover,.usa-alert--emergency .usa-alert__body .usa-link:active{color:#f0f0f0}.usa-alert--slim .usa-alert__body{padding-bottom:0.5rem;padding-top:0.5rem;min-height:0}.usa-alert--slim .usa-alert__body:before{height:1.5rem;top:0.5rem;width:1.5rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--slim .usa-alert__body:before{-webkit-mask-size:1.5rem;mask-size:1.5rem}}.usa-alert--slim .usa-alert__body>*{margin-left:2rem}.usa-alert--slim .usa-alert__body::before{left:1.125rem}.usa-alert--no-icon .usa-alert__body{min-height:0}.usa-alert--no-icon .usa-alert__body:before{display:none}.usa-alert--no-icon .usa-alert__body>*{margin-left:0}.usa-alert--validation .usa-checklist{margin-top:1rem}:host{display:block;position:relative}.usa-alert--info .usa-alert__body::before,.usa-alert--warning .usa-alert__body::before{-webkit-mask:none;mask:none;background:transparent}.va-alert-sign-in__lock-icon{position:absolute;top:12px;left:24px}@media screen and (max-width: 64em){.va-alert-sign-in__lock-icon{left:12px}}:host .headline{font-size:1.33rem;margin-top:0;margin-bottom:0.5rem;font-family:var(--font-serif)}:host ul{-webkit-padding-start:1.2em;padding-inline-start:1.2em}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[1822,4569,8039],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var n,a={exports:{}};n=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var a=arguments[n];if(a){var o=typeof a;if("string"===o||"number"===o)r.push(a);else if(Array.isArray(a)){if(a.length){var i=t.apply(null,a);i&&r.push(i)}}else if("object"===o)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(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();var o=a.exports},8039:function(e,t,r){function n(e){return!Number.isNaN(parseFloat(e))}function a(e,t,r){void 0===r&&(r="slot");var n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(n)}function o(e){return 1===e?"":"s"}function i(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var n=t-e.length;r="".concat(n," character").concat(o(n)," left")}else n=e.length-t,r="".concat(n," character").concat(o(n)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return g},a:function(){return a},b:function(){return n},c:function(){return v},d:function(){return f},e:function(){return p},f:function(){return b},g:function(){return c},h:function(){return i},i:function(){return m},j:function(){return h},m:function(){return s},s:function(){return u},u:function(){return y}}),r(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&r.push(t),r}var g={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return g._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(g._entity,g.getEntity));return t}};function c(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function m(e){return e&&"false"!==e||!1}function d(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(d(e)||d(t)){if(!d(e)||!d(t))return!1;var a=Array.prototype.slice;return f(a.call(e),a.call(t),r,n)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),i=Object.keys(t);if(0===o.length&&0===i.length)return!0;if(o.length!==i.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return n[s]===t;r.push(e),n.push(t),o.sort(),i.sort();for(var l=o.length-1;l>=0;l--)if(o[l]!==i[l])return!1;for(var u=void 0,g=o.length-1;g>=0;g--)if(!f(e[u=o[g]],t[u],r,n))return!1;return r.pop(),n.pop(),!0}function v(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var n=e.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}function p(e,t){var r;return function(){for(var n=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];clearTimeout(r),r=setTimeout((function(){return e.apply(n,a)}),t)}}function b(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function y(e,t,r){e&&(e.innerText=i(t,b(r)))}},1822:function(e,t,r){r.r(t),r.d(t,{va_alert_sign_in:function(){return l}});var n,a,o=r(7911),i=r(4569),s=r(8039);(a=n||(n={})).signInRequired="signInRequired",a.signInOptional="signInOptional",a.signInOptionalNoPrefill="signInOptionalNoPrefill",a.verifyIdMe="verifyIdMe",a.verifyLoginGov="verifyLoginGov",a.signInEither="signInEither";var l=function(){function e(e){(0,o.r)(this,e),this.variant=n.signInRequired,this.headingLevel=2,this.visible=!0,this.timeLimit="15 minutes",this.noSignInLink=void 0}return e.prototype.render=function(){var e,t=this,r=this.visible,a=this.variant;if(Object.values(n).includes(a)||(console.error("A non-allowed variant name was provided, please check your spelling."),a=n.signInRequired),!r)return(0,o.h)("div",{"aria-live":"polite"});var l=(0,i.c)("usa-alert","va-alert-sign-in--".concat(a),{"usa-alert--info":a===n.signInRequired||a===n.signInOptional||a===n.signInOptionalNoPrefill,"usa-alert--warning":a!==n.signInRequired&&a!==n.signInOptional&&a!==n.signInOptionalNoPrefill}),u=(0,s.g)(this.headingLevel),g=((e={})[n.signInEither]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"You need to sign in with a different account"),(0,o.h)("p",null,"We need you to sign in with an identity-verified account. This helps us protect all Veterans’ information and prevent scammers from stealing your benefits. You have 2 options: a verified"," ",(0,o.h)("strong",null,"Login.gov")," or a verified ",(0,o.h)("strong",null,"ID.me")," ","account."),(0,o.h)("p",null,(0,o.h)("strong",null,"If you already have a Login.gov or ID.me account,")," ","sign in with that account. If you still need to verify your identity for your account, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("strong",null,"If you don’t have a Login.gov or ID.me account,")," ","create one now. We’ll help you verify your identity."),(0,o.h)("p",null,(0,o.h)("slot",{name:"LoginGovSignInButton"})),(0,o.h)("p",null,(0,o.h)("slot",{name:"IdMeSignInButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0})))},e[n.signInOptional]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Sign in with a verified account"),(0,o.h)("p",null,"Here’s how signing in with an identity-verified account helps you:"),(0,o.h)("ul",null,(0,o.h)("li",null,"We can fill in some of your information for you to save you time."),(0,o.h)("li",null,"You can save your work in progress. You’ll have ",t.timeLimit," ","from when you start or make changes to submit your form.")),(0,o.h)("p",null,(0,o.h)("strong",null,"Don’t yet have a verified account?")," Create a"," ",(0,o.h)("strong",null,"Login.gov")," or ",(0,o.h)("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),(0,o.h)("p",null,(0,o.h)("slot",{name:"SignInButton"})),t.noSignInLink&&(0,o.h)("p",null,(0,o.h)("va-link",{href:t.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0})))},e[n.signInOptionalNoPrefill]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Sign in with a verified account"),(0,o.h)("p",null,"When you sign in with an identity-verified account, you can save your work in progress. You’ll have 60 days from when you start or make changes to submit your form."),(0,o.h)("p",null,(0,o.h)("strong",null,"Don’t yet have a verified account?")," Create a"," ",(0,o.h)("strong",null,"Login.gov")," or ",(0,o.h)("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),(0,o.h)("p",null,(0,o.h)("slot",{name:"SignInButton"})),t.noSignInLink&&(0,o.h)("p",null,(0,o.h)("va-link",{href:t.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0})))},e[n.signInRequired]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Sign in with a verified account"),(0,o.h)("p",null,"You’ll need to sign in with an identity-verified account through one of our account providers. Identity verification helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),(0,o.h)("p",null,(0,o.h)("strong",null,"Don’t yet have a verified account?")," Create a"," ",(0,o.h)("strong",null,"Login.gov")," or ",(0,o.h)("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),(0,o.h)("p",null,(0,o.h)("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),(0,o.h)("p",null,(0,o.h)("slot",{name:"SignInButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0})))},e[n.verifyIdMe]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Verify your identity"),(0,o.h)("p",null,"We need you to verify your identity for your ",(0,o.h)("strong",null,"ID.me")," ","account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),(0,o.h)("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),(0,o.h)("p",null,(0,o.h)("slot",{name:"IdMeVerifyButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0})))},e[n.verifyLoginGov]=function(){return(0,o.h)("div",{class:"va-alert-sign-in__body"},(0,o.h)(u,{class:"headline"},"Verify your identity"),(0,o.h)("p",null,"We need you to verify your identity for your"," ",(0,o.h)("strong",null,"Login.gov")," account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),(0,o.h)("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),(0,o.h)("p",null,(0,o.h)("slot",{name:"LoginGovVerifyButton"})),(0,o.h)("p",null,(0,o.h)("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0})))},e)[a];return(0,o.h)(o.H,null,(0,o.h)("div",{role:this.el.getAttribute("data-role"),class:l,"aria-label":this.el.getAttribute("data-label")},(0,o.h)("div",{class:"usa-alert__body"},(0,o.h)("div",null,(0,o.h)("va-icon",{class:"va-alert-sign-in__lock-icon",icon:"lock",size:4}),(0,o.h)(g,null)))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();l.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-alert{background-color:#f0f0f0;border-left:0.5rem solid #a9aeb1;color:#1b1b1b}.usa-alert .usa-alert__body{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;padding-bottom:1rem;padding-top:1rem;position:relative}.usa-alert .usa-alert__text{margin-bottom:0;margin-top:0}.usa-alert .usa-alert__text:only-child{padding-bottom:0;padding-top:0}.usa-alert .usa-alert__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:0.9;margin-top:0;margin-bottom:0.5rem}.usa-alert>.usa-list,.usa-alert .usa-alert__body>.usa-list{padding-left:2ch}.usa-alert>.usa-list:last-child,.usa-alert .usa-alert__body>.usa-list:last-child{margin-bottom:0}.usa-alert .usa-alert__body{padding-left:1.25rem;padding-right:1.25rem}.usa-alert .usa-alert__body::before{left:1.0833333333rem}*+.usa-alert{margin-top:1rem}.usa-alert--success{background-color:#ecf3ec;border-left-color:#00a91c}.usa-alert--success .usa-alert__body{color:#1b1b1b;background-color:#ecf3ec;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--success .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--success .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--success .usa-alert__body>*{margin-left:2.5rem}.usa-alert--success .usa-alert__body .usa-link{color:#005ea2}.usa-alert--success .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--success .usa-alert__body .usa-link:hover,.usa-alert--success .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--warning{background-color:#faf3d1;border-left-color:#ffbe2e}.usa-alert--warning .usa-alert__body{color:#1b1b1b;background-color:#faf3d1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--warning .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--warning .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--warning .usa-alert__body>*{margin-left:2.5rem}.usa-alert--warning .usa-alert__body .usa-link{color:#005ea2}.usa-alert--warning .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--warning .usa-alert__body .usa-link:hover,.usa-alert--warning .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--error{background-color:#f4e3db;border-left-color:#d54309}.usa-alert--error .usa-alert__body{color:#1b1b1b;background-color:#f4e3db;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--error .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--error .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--error .usa-alert__body>*{margin-left:2.5rem}.usa-alert--error .usa-alert__body .usa-link{color:#005ea2}.usa-alert--error .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--error .usa-alert__body .usa-link:hover,.usa-alert--error .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--info{background-color:#e7f6f8;border-left-color:#00bde3}.usa-alert--info .usa-alert__body{color:#1b1b1b;background-color:#e7f6f8;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--info .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--info .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--info .usa-alert__body>*{margin-left:2.5rem}.usa-alert--info .usa-alert__body .usa-link{color:#005ea2}.usa-alert--info .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--info .usa-alert__body .usa-link:hover,.usa-alert--info .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--emergency{background-color:#9c3d10;border-left-color:#9c3d10}.usa-alert--emergency .usa-alert__body{color:white;background-color:#9c3d10;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--emergency .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 width%3D%2224%22%3E%3Cpath d%3D%22M0 0h24v24H0z%22 fill%3D%22none%22%2F%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--emergency .usa-alert__body::before{background:none;background-color:white;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--emergency .usa-alert__body>*{margin-left:2.5rem}.usa-alert--emergency .usa-alert__body .usa-link{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:visited{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:hover,.usa-alert--emergency .usa-alert__body .usa-link:active{color:#f0f0f0}.usa-alert--slim .usa-alert__body{padding-bottom:0.5rem;padding-top:0.5rem;min-height:0}.usa-alert--slim .usa-alert__body:before{height:1.5rem;top:0.5rem;width:1.5rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--slim .usa-alert__body:before{-webkit-mask-size:1.5rem;mask-size:1.5rem}}.usa-alert--slim .usa-alert__body>*{margin-left:2rem}.usa-alert--slim .usa-alert__body::before{left:1.125rem}.usa-alert--no-icon .usa-alert__body{min-height:0}.usa-alert--no-icon .usa-alert__body:before{display:none}.usa-alert--no-icon .usa-alert__body>*{margin-left:0}.usa-alert--validation .usa-checklist{margin-top:1rem}:host{display:block;position:relative}.usa-alert--info .usa-alert__body::before,.usa-alert--warning .usa-alert__body::before{-webkit-mask:none;mask:none;background:transparent}.va-alert-sign-in__lock-icon{position:absolute;top:12px;left:24px}@media screen and (max-width: 64em){.va-alert-sign-in__lock-icon{left:12px}}:host .headline{font-size:1.33rem;margin-top:0;margin-bottom:0.5rem;font-family:var(--font-serif)}:host ul{-webkit-padding-start:1.2em;padding-inline-start:1.2em}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2236],{2236:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(7911),o=(i(5384),i(4665)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.getAdditionalFileUploadMessage=function(){return(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder"))},this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.encrypted=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files,!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files,!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.handlePasswordChange=function(e,t){var i=this.findFileByKey(t);i.password=e.detail.password;var r=this.buildFilesArray(this.files,!1,this.findIndexByKey(t)),o={action:"PASSWORD_UPDATE",file:i.file,state:r};this.vaMultipleChange.emit(o)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e.file})).map((function(e){return{file:e.file,changed:!1,password:e.password}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.encrypted,u=t.enableAnalytics,c=t.readOnly,p=this.isEmpty()?"":"outer-wrap",m=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"e3d3e198a6130f40dd794b43addbf85c24f3dcad",class:m},i&&!c&&this.renderLabelOrHeader(i,o,n),a&&!c&&(0,r.h)("div",{key:"7cad009f630d43d2dae17dbc586e05479e683729",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"80d1628e194e996f0c1755da37aed7bbe60a4b3c",class:p},(0,r.h)("div",{key:"b91935dd0e321f8c974c28cd8ca3c9089f3ab32b",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"cbbe66995b42dadc6febadd7521a3e49e9a8122f",class:"selected-files-label"},c?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.getAdditionalFileUploadMessage()}:{},{error:d[n],encrypted:f[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},onVaPasswordChange:function(i){return e.handlePasswordChange(i,t.key)},"enable-analytics":u,value:t.file,readOnly:c,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"3a3b2707a3e1ce8d514a63078bd6d65e1aec1e2c"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2236],{2236:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(7911),o=(i(5384),i(4665)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.getAdditionalFileUploadMessage=function(){return(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder"))},this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.resetVisualState=[],this.passwordErrors=[],this.encrypted=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.percentUploaded=[],this.maxFileSize=1/0,this.minFileSize=0,this.statusText=void 0,this.uploadedFiles=void 0,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files,!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File deleted."}),1e3),r=this.buildFilesArray(this.files,!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.handlePasswordChange=function(e,t){var i=this.findFileByKey(t);i.password=e.detail.password;var r=this.buildFilesArray(this.files,!1,this.findIndexByKey(t)),o={action:"PASSWORD_UPDATE",file:i.file,state:r};this.vaMultipleChange.emit(o)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e.file})).map((function(e){return{file:e.file,changed:!1,password:e.password}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.encrypted,u=t.percentUploaded,c=t.resetVisualState,p=t.passwordErrors,m=t.enableAnalytics,b=t.readOnly,g=t.maxFileSize,v=t.minFileSize,y=t.statusText,x=t.uploadedFiles,w=this.isEmpty()?"":"outer-wrap",k=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"3dc516a236a33dfbc9f5b8b758217ca74db469f8",class:k,error:k?"error":""},i&&!b&&this.renderLabelOrHeader(i,o,n),a&&!b&&(0,r.h)("div",{key:"4fd99dfa200e76634ccb96d813d32f8019c84005",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"9837e22074958047802a04ebb1aec9d6823440e4",class:w},(0,r.h)("div",{key:"fbd861906c27008cf0ce1d2475a784d65eee048d",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"1afe5e9bc08e5edb728199550f8fece4e5e94bd6",class:"selected-files-label"},b?"Files you uploaded":"Selected files"),s.map((function(t,n){var s=c&&c.length>=n?c[n]:null,w=u&&u.length>=n?u[n]:null,k=p&&p.length>=n?p[n]:null,z=x&&x.length>=n?x[n]:null;return(0,r.h)("va-file-input",Object.assign({key:t.key,id:"instance-".concat(n),headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.getAdditionalFileUploadMessage()}:{},{error:d[n],encrypted:f[n],percentUploaded:w,resetVisualState:s,passwordError:k,onVaChange:function(i){return e.handleChange(i,t.key,n)},onVaPasswordChange:function(i){return e.handlePasswordChange(i,t.key)},"enable-analytics":m,value:t.file,readOnly:b,maxFileSize:g,minFileSize:v,statusText:y,uploadedFile:z,class:t.file?"has-file":"no-file","max-file-size":g,"min-file-size":v}))}))),(0,r.h)("slot",{key:"c6d7ba29dc7feeeb446d631cbc4b6d62f8f65048"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[251,7508],{7508:function(t,e,r){function i(t){return!Number.isNaN(parseFloat(t))}function n(t,e,r){void 0===r&&(r="slot");var i=t.shadowRoot.querySelector(r).assignedNodes();return null!==e?Array.from(i).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(i)}function o(t){return 1===t?"":"s"}function a(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(o(e)," allowed");var r;if(t.length<=e){var i=e-t.length;r="".concat(i," character").concat(o(i)," left")}else i=t.length-e,r="".concat(i," character").concat(o(i)," over limit");return r}function l(t,e){return Array.from({length:e-t+1},(function(e,r){return t+r}))}r.r(e),r.d(e,{S:function(){return h},a:function(){return n},b:function(){return i},c:function(){return v},d:function(){return m},e:function(){return a},f:function(){return u},g:function(){return f},i:function(){return g},m:function(){return l},s:function(){return c}}),r(7911);var s=function(t){return t&&"object"==typeof t&&1===t.nodeType};function c(t,e){var r=function(t,e){if("string"!=typeof t)return[];if(!e||!s(e))return[];var r=e.shadowRoot.querySelectorAll(t);return Array.from(r)}(t,e);return"string"!=typeof t||s(e)&&e.matches(t)&&r.push(e),r}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(t){return h._entities[t]},escapeHTML:function(t){for(var e="",r=0;r<t.length;r++)e+=t[r],r+1<arguments.length&&(e+=String(arguments[r+1]||"").replace(h._entity,h.getEntity));return e}};function f(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}function u(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function g(t){return t&&"false"!==t||!1}function p(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!=typeof t||"object"!=typeof e)return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(p(t)||p(e)){if(!p(t)||!p(e))return!1;var n=Array.prototype.slice;return m(n.call(t),n.call(e),r,i)}if(t.constructor!==e.constructor)return!1;var o=Object.keys(t),a=Object.keys(e);if(0===o.length&&0===a.length)return!0;if(o.length!==a.length)return!1;for(var l=r.length;l--;)if(r[l]===t)return i[l]===e;r.push(t),i.push(e),o.sort(),a.sort();for(var s=o.length-1;s>=0;s--)if(o[s]!==a[s])return!1;for(var c=void 0,h=o.length-1;h>=0;h--)if(!m(t[c=o[h]],e[c],r,i))return!1;return r.pop(),i.pop(),!0}function v(t,e){void 0===e&&(e=!0);var r=["a","i","e","o"];e&&r.push("u");var i=t.charAt(0).toLowerCase();return r.includes(i)?"an":"a"}},251:function(t,e,r){r.r(e),r.d(e,{va_search_filter:function(){return o}});var i=r(7911),n=r(7508),o=function(){function t(e){var r=this;(0,i.r)(this,e),this.vaFilterChange=(0,i.c)(this,"vaFilterChange",7),this.vaFilterApply=(0,i.c)(this,"vaFilterApply",7),this.vaFilterClearAll=(0,i.c)(this,"vaFilterClearAll",7),this.isDesktop=window.innerWidth>640,this.handleFilterChange=function(e){var i=e.facetId,n=e.categoryId,o=e.active;r.filterOptions=r.filterOptions.map((function(t){return t.id===i?Object.assign(Object.assign({},t),{category:t.category.map((function(t){return t.id===n?Object.assign(Object.assign({},t),{active:o}):t}))}):t})),r.totalActiveFilters=r.getTotalActiveFilters(),r.filterOptions=r.filterOptions.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})})),r.vaFilterChange.emit(r.getActiveFiltersWithCategories())},this.handleClearAllFilters=function(){r.filterOptions=r.filterOptions.map((function(t){var e=Object.assign(Object.assign({},t),{category:t.category.map((function(t){return Object.assign(Object.assign({},t),{active:!1})}))});return Object.assign(Object.assign({},e),{activeFiltersCount:0})})),r.totalActiveFilters=0,r.vaFilterClearAll.emit()},this.handleApplyFilters=function(){r.vaFilterApply.emit(r.getActiveFiltersWithCategories())},this.header="Filters",this.filterOptions=[],this.totalActiveFilters=0}return t.prototype.filterOptionsChanged=function(e){if(e&&e.length>0){this.totalActiveFilters=this.getTotalActiveFilters();var r=e.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})}));!(0,n.d)(r,this.filterOptions)&&(this.filterOptions=r)}},t.prototype.handleResize=function(){this.isDesktop=window.innerWidth>640,(0,i.f)(this)},t.prototype.getTotalActiveFilters=function(){return this.getActiveFiltersWithCategories().reduce((function(t,e){return t+e.category.length}),0)},t.prototype.getActiveFiltersWithCategories=function(){return this.filterOptions.map((function(t){return Object.assign(Object.assign({},t),{category:t.category.filter((function(t){return!0===t.active}))})})).filter((function(t){return t.category.length>0}))},t.getSrOnlyProp=function(t,e){var r;return t>0?((r={})[e]="".concat(1===t?"filter":"filters"," applied"),r):{}},t.getTotalActiveFiltersByFacet=function(t){return t.category.filter((function(t){return!0===t.active})).length},t.validateFilterOptions=function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing filterOptions:",t),null}if(!Array.isArray(t))return console.error("filterOptions must be an array"),null;var e=t.every((function(t){var e="string"==typeof t.label&&t.label.length>0,r=Array.isArray(t.category)&&t.category.length>0&&t.category.every((function(t){var e="string"==typeof t.label&&t.label.length>0,r="number"==typeof t.id||"string"==typeof t.id;return e&&r})),i="number"==typeof t.id||"string"==typeof t.id;return e&&r&&i}));return e?t:null},t.prototype.componentWillLoad=function(){var e;if(null===(e=this.filterOptions)||void 0===e?void 0:e.length){var r=t.validateFilterOptions(this.filterOptions);r?(this.totalActiveFilters=this.getTotalActiveFilters(),this.filterOptions=r.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})}))):this.filterOptions=[]}},t.prototype.render=function(){var e=this,r=e.header,n=e.filterOptions,o=e.isDesktop,a=e.totalActiveFilters,l=e.handleFilterChange,s=e.handleClearAllFilters,c=e.handleApplyFilters,h=(0,i.h)("div",{id:"filter-buttons"},(0,i.h)("va-button",{onClick:c,text:"Apply filters","full-width":!0}),(0,i.h)("va-button",{onClick:s,text:"Clear all filters",secondary:!0,"full-width":!0})),f=function(t,e){return(0,i.h)("va-checkbox",{label:e.label,key:e.id,checked:e.active,onVaChange:function(r){return l({facetId:t.id,categoryId:e.id,active:r.target.checked})}})};return o?(0,i.h)(i.H,null,(0,i.h)("h2",{id:"header"},r,a>0?" (".concat(a,")"):"",a>0&&(0,i.h)("span",{class:"usa-sr-only"}," applied")),n.length>0&&(0,i.h)("va-accordion",{class:"va-search-filter__accordion"},n.map((function(e){return(0,i.h)("va-accordion-item",Object.assign({header:e.label+(e.activeFiltersCount>0?" (".concat(e.activeFiltersCount,")"):"")},t.getSrOnlyProp(e.activeFiltersCount,"headerSrOnly"),{key:e.id,level:3,open:!0}),(0,i.h)("va-checkbox-group",{label:e.label,class:"va-search-filter__checkbox-group"},e.category.map((function(t){return f(e,t)}))))}))),h):(0,i.h)(i.H,null,n.length>0&&(0,i.h)("va-accordion",{class:"va-search-filter__accordion"},(0,i.h)("va-accordion-item",{header:r+(a>0?" (".concat(a,")"):""),headerSrOnly:"applied",open:!0},(0,i.h)("span",{slot:"icon"},(0,i.h)("va-icon",{icon:"filter_list"})),n.map((function(e){return(0,i.h)("va-checkbox-group",Object.assign({label:e.label+(e.activeFiltersCount>0?" (".concat(e.activeFiltersCount,")"):"")},t.getSrOnlyProp(e.activeFiltersCount,"labelSrOnly"),{key:e.id,"label-header-level":"3"}),e.category.map((function(t){return f(e,t)})))})),h)))},Object.defineProperty(t,"watchers",{get:function(){return{filterOptions:["filterOptionsChanged"]}},enumerable:!1,configurable:!0}),t}();o.style='h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:block}#header{margin-bottom:20px}va-accordion-item::part(accordion-content){padding-top:0}va-checkbox-group{margin-top:10px}va-checkbox-group::part(legend){font-weight:bold}va-checkbox-group::part(header){font-family:var(--font-source-sans);font-size:var(--font-size-md)}#filter-buttons{margin-top:25px}#filter-buttons va-button{margin-bottom:15px}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[251,8039],{8039:function(t,e,r){function n(t){return!Number.isNaN(parseFloat(t))}function i(t,e,r){void 0===r&&(r="slot");var n=t.shadowRoot.querySelector(r).assignedNodes();return null!==e?Array.from(n).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(n)}function o(t){return 1===t?"":"s"}function a(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(o(e)," allowed");var r;if(t.length<=e){var n=e-t.length;r="".concat(n," character").concat(o(n)," left")}else n=t.length-e,r="".concat(n," character").concat(o(n)," over limit");return r}function l(t,e){return Array.from({length:e-t+1},(function(e,r){return t+r}))}r.r(e),r.d(e,{S:function(){return h},a:function(){return i},b:function(){return n},c:function(){return v},d:function(){return m},e:function(){return d},f:function(){return y},g:function(){return f},h:function(){return a},i:function(){return g},j:function(){return u},m:function(){return l},s:function(){return c},u:function(){return b}}),r(7911);var s=function(t){return t&&"object"==typeof t&&1===t.nodeType};function c(t,e){var r=function(t,e){if("string"!=typeof t)return[];if(!e||!s(e))return[];var r=e.shadowRoot.querySelectorAll(t);return Array.from(r)}(t,e);return"string"!=typeof t||s(e)&&e.matches(t)&&r.push(e),r}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(t){return h._entities[t]},escapeHTML:function(t){for(var e="",r=0;r<t.length;r++)e+=t[r],r+1<arguments.length&&(e+=String(arguments[r+1]||"").replace(h._entity,h.getEntity));return e}};function f(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}function u(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function g(t){return t&&"false"!==t||!1}function p(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!=typeof t||"object"!=typeof e)return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(p(t)||p(e)){if(!p(t)||!p(e))return!1;var i=Array.prototype.slice;return m(i.call(t),i.call(e),r,n)}if(t.constructor!==e.constructor)return!1;var o=Object.keys(t),a=Object.keys(e);if(0===o.length&&0===a.length)return!0;if(o.length!==a.length)return!1;for(var l=r.length;l--;)if(r[l]===t)return n[l]===e;r.push(t),n.push(e),o.sort(),a.sort();for(var s=o.length-1;s>=0;s--)if(o[s]!==a[s])return!1;for(var c=void 0,h=o.length-1;h>=0;h--)if(!m(t[c=o[h]],e[c],r,n))return!1;return r.pop(),n.pop(),!0}function v(t,e){void 0===e&&(e=!0);var r=["a","i","e","o"];e&&r.push("u");var n=t.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}function d(t,e){var r;return function(){for(var n=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(r),r=setTimeout((function(){return t.apply(n,i)}),e)}}function y(t){if(null!=t){var e="string"==typeof t?parseInt(t,10):t;if(!(e<=0||isNaN(e)))return e}}function b(t,e,r){t&&(t.innerText=a(e,y(r)))}},251:function(t,e,r){r.r(e),r.d(e,{va_search_filter:function(){return o}});var n=r(7911),i=r(8039),o=function(){function t(e){var r=this;(0,n.r)(this,e),this.vaFilterChange=(0,n.c)(this,"vaFilterChange",7),this.vaFilterApply=(0,n.c)(this,"vaFilterApply",7),this.vaFilterClearAll=(0,n.c)(this,"vaFilterClearAll",7),this.isDesktop=window.innerWidth>640,this.handleFilterChange=function(e){var n=e.facetId,i=e.categoryId,o=e.active;r.filterOptions=r.filterOptions.map((function(t){return t.id===n?Object.assign(Object.assign({},t),{category:t.category.map((function(t){return t.id===i?Object.assign(Object.assign({},t),{active:o}):t}))}):t})),r.totalActiveFilters=r.getTotalActiveFilters(),r.filterOptions=r.filterOptions.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})})),r.vaFilterChange.emit(r.getActiveFiltersWithCategories())},this.handleClearAllFilters=function(){r.filterOptions=r.filterOptions.map((function(t){var e=Object.assign(Object.assign({},t),{category:t.category.map((function(t){return Object.assign(Object.assign({},t),{active:!1})}))});return Object.assign(Object.assign({},e),{activeFiltersCount:0})})),r.totalActiveFilters=0,r.vaFilterClearAll.emit()},this.handleApplyFilters=function(){r.vaFilterApply.emit(r.getActiveFiltersWithCategories())},this.header="Filters",this.filterOptions=[],this.totalActiveFilters=0}return t.prototype.filterOptionsChanged=function(e){if(e&&e.length>0){this.totalActiveFilters=this.getTotalActiveFilters();var r=e.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})}));!(0,i.d)(r,this.filterOptions)&&(this.filterOptions=r)}},t.prototype.handleResize=function(){this.isDesktop=window.innerWidth>640,(0,n.f)(this)},t.prototype.getTotalActiveFilters=function(){return this.getActiveFiltersWithCategories().reduce((function(t,e){return t+e.category.length}),0)},t.prototype.getActiveFiltersWithCategories=function(){return this.filterOptions.map((function(t){return Object.assign(Object.assign({},t),{category:t.category.filter((function(t){return!0===t.active}))})})).filter((function(t){return t.category.length>0}))},t.getSrOnlyProp=function(t,e){var r;return t>0?((r={})[e]="".concat(1===t?"filter":"filters"," applied"),r):{}},t.getTotalActiveFiltersByFacet=function(t){return t.category.filter((function(t){return!0===t.active})).length},t.validateFilterOptions=function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing filterOptions:",t),null}if(!Array.isArray(t))return console.error("filterOptions must be an array"),null;var e=t.every((function(t){var e="string"==typeof t.label&&t.label.length>0,r=Array.isArray(t.category)&&t.category.length>0&&t.category.every((function(t){var e="string"==typeof t.label&&t.label.length>0,r="number"==typeof t.id||"string"==typeof t.id;return e&&r})),n="number"==typeof t.id||"string"==typeof t.id;return e&&r&&n}));return e?t:null},t.prototype.componentWillLoad=function(){var e;if(null===(e=this.filterOptions)||void 0===e?void 0:e.length){var r=t.validateFilterOptions(this.filterOptions);r?(this.totalActiveFilters=this.getTotalActiveFilters(),this.filterOptions=r.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})}))):this.filterOptions=[]}},t.prototype.render=function(){var e=this,r=e.header,i=e.filterOptions,o=e.isDesktop,a=e.totalActiveFilters,l=e.handleFilterChange,s=e.handleClearAllFilters,c=e.handleApplyFilters,h=(0,n.h)("div",{id:"filter-buttons"},(0,n.h)("va-button",{onClick:c,text:"Apply filters","full-width":!0}),(0,n.h)("va-button",{onClick:s,text:"Clear all filters",secondary:!0,"full-width":!0})),f=function(t,e){return(0,n.h)("va-checkbox",{label:e.label,key:e.id,checked:e.active,onVaChange:function(r){return l({facetId:t.id,categoryId:e.id,active:r.target.checked})}})};return o?(0,n.h)(n.H,null,(0,n.h)("h2",{id:"header"},r,a>0?" (".concat(a,")"):"",a>0&&(0,n.h)("span",{class:"usa-sr-only"}," applied")),i.length>0&&(0,n.h)("va-accordion",{class:"va-search-filter__accordion"},i.map((function(e){return(0,n.h)("va-accordion-item",Object.assign({header:e.label+(e.activeFiltersCount>0?" (".concat(e.activeFiltersCount,")"):"")},t.getSrOnlyProp(e.activeFiltersCount,"headerSrOnly"),{key:e.id,level:3,open:!0}),(0,n.h)("va-checkbox-group",{label:e.label,class:"va-search-filter__checkbox-group"},e.category.map((function(t){return f(e,t)}))))}))),h):(0,n.h)(n.H,null,i.length>0&&(0,n.h)("va-accordion",{class:"va-search-filter__accordion"},(0,n.h)("va-accordion-item",{header:r+(a>0?" (".concat(a,")"):""),headerSrOnly:"applied",open:!0},(0,n.h)("span",{slot:"icon"},(0,n.h)("va-icon",{icon:"filter_list"})),i.map((function(e){return(0,n.h)("va-checkbox-group",Object.assign({label:e.label+(e.activeFiltersCount>0?" (".concat(e.activeFiltersCount,")"):"")},t.getSrOnlyProp(e.activeFiltersCount,"labelSrOnly"),{key:e.id,"label-header-level":"3"}),e.category.map((function(t){return f(e,t)})))})),h)))},Object.defineProperty(t,"watchers",{get:function(){return{filterOptions:["filterOptionsChanged"]}},enumerable:!1,configurable:!0}),t}();o.style='h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:block}#header{margin-bottom:20px}va-accordion-item::part(accordion-content){padding-top:0}va-checkbox-group{margin-top:10px}va-checkbox-group::part(legend){font-weight:bold}va-checkbox-group::part(header){font-family:var(--font-source-sans);font-size:var(--font-size-md)}#filter-buttons{margin-top:25px}#filter-buttons va-button{margin-bottom:15px}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 2923.app.bundle.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2923,4569,7508],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return i}});var n,o={exports:{}};n=o,function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)r.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&r.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&r.push(s);else r.push(o.toString())}}return r.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();var i=o.exports},7508:function(e,t,r){function n(e){return!Number.isNaN(parseFloat(e))}function o(e,t,r){void 0===r&&(r="slot");var n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(n)}function i(e){return 1===e?"":"s"}function a(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(i(t)," allowed");var r;if(e.length<=t){var n=t-e.length;r="".concat(n," character").concat(i(n)," left")}else n=e.length-t,r="".concat(n," character").concat(i(n)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return c},a:function(){return o},b:function(){return n},c:function(){return g},d:function(){return p},e:function(){return a},f:function(){return u},g:function(){return h},i:function(){return d},m:function(){return s},s:function(){return l}}),r(7911);var f=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!f(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||f(t)&&t.matches(e)&&r.push(t),r}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(c._entity,c.getEntity));return t}};function h(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function u(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function d(e){return e&&"false"!==e||!1}function m(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(m(e)||m(t)){if(!m(e)||!m(t))return!1;var o=Array.prototype.slice;return p(o.call(e),o.call(t),r,n)}if(e.constructor!==t.constructor)return!1;var i=Object.keys(e),a=Object.keys(t);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return n[s]===t;r.push(e),n.push(t),i.sort(),a.sort();for(var f=i.length-1;f>=0;f--)if(i[f]!==a[f])return!1;for(var l=void 0,c=i.length-1;c>=0;c--)if(!p(e[l=i[c]],t[l],r,n))return!1;return r.pop(),n.pop(),!0}function g(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var n=e.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}},2923:function(e,t,r){r.r(t),r.d(t,{va_checkbox_group:function(){return s}});var n=r(7911),o=r(4569),i=(r(5384),r(7508)),a=r(4665),s=function(){function e(e){(0,n.r)(this,e),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.label=void 0,this.labelSrOnly=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.hint=void 0,this.labelHeaderLevel=void 0,this.messageAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.vaChangeHandler=function(e){var t=e.target;this.enableAnalytics&&this.fireAnalyticsEvent(t.label)},e.prototype.handleResize=function(){(0,n.f)(this)},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-checkbox-group",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;a.i.on("languageChanged",(function(){(0,n.f)(e.el)}))},e.prototype.disconnectedCallback=function(){a.i.off("languageChanged")},e.prototype.render=function(){var e=this,t=e.label,r=e.required,s=e.error,f=e.hint,l=e.messageAriaDescribedby,c=e.useFormsPattern,h=e.formHeadingLevel,u=e.formHeading,d=e.labelSrOnly,m=this.getHeaderLevel(),p="".concat(c&&u?"form-question":""," ").concat(c?"form-description":""," ").concat("multiple"===c?"header-message":"").trim()||null,g=l?"description-message":null,b=(0,o.c)({"usa-legend":!0,"usa-label--error":s,"usa-sr-only":this.el.classList.contains("va-search-filter__checkbox-group")}),y=null;if("single"===c||"multiple"===c){var v=(0,i.g)(h);y=(0,n.h)(n.F,{key:"d185cb7ee355c9886da5a1cd735556521643c4a9"},u&&(0,n.h)(v,{key:"181e52c2fe8e7bf418859f2ce7fa165a8d7b6aa7",id:"form-question",part:"form-header"},u),(0,n.h)("div",{key:"53c489830757919c33260ef2f593985194eec4f3",id:"form-description"},(0,n.h)("slot",{key:"88cc00277fa2f4faeec153d47fd5b91570c630cb",name:"form-description"})))}return(0,n.h)(n.H,{key:"179c193056910747f712ff05f8d86538f9b2756f",role:"group"},y,(0,n.h)("div",{key:"e5d5504b9a7344f51b8e604775c7723d46cf2bb5",class:"input-wrap"},(0,n.h)("fieldset",{key:"50a6aa691447c86c345dfe73f4f453c259f551d1",class:"usa-fieldset","aria-labelledby":p},(0,n.h)("legend",{key:"e24a555fb69694c01d3e602c438918939c094503",class:b,"aria-describedby":g,part:"legend"},m?(0,n.h)(m,{part:"header"},t):t," ","multiple"===c&&(0,n.h)("span",{key:"2495c7519b102b593ee0d0f1cf704be182003e6b",id:"header-message",class:"usa-sr-only"},t),d&&(0,n.h)("span",{key:"e0ba71ad5fee6b7f90ad1c2657454ba3df175e64",class:"usa-sr-only"},d),(0,i.i)(l)&&(0,n.h)("span",{key:"8a78b6d9420b50037d7609ef431dc983808bfc87",id:"description-message",class:"usa-sr-only"},l),r&&(0,n.h)("span",{key:"d06fa9a6ae58d7d54b85e5799881dfd0c9cda5ce",class:"usa-label--required"},a.i.t("required")),f&&(0,n.h)("div",{key:"557f32e324f224d251ff18eefd3584b69d9a0636",class:"usa-hint"},f)),(0,n.h)("span",{key:"5e51e28fdc90a4c43569445fc0631039505a63cb",id:"checkbox-error-message",role:"alert"},s&&(0,n.h)(n.F,{key:"00df4f0973ea584df2d0251e49964fe4f52ab404"},(0,n.h)("span",{key:"f3642703caf5beee4fb958acfbb3275b52c80aad",class:"usa-sr-only"},a.i.t("error")),(0,n.h)("span",{key:"ab16f0f0b42027044aeedd720c41449db20d0f05",class:"usa-error-message"},s))),(0,n.h)("slot",{key:"19e49c88deb64a6ed4204877eefd84edeae79329"}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-fieldset{border:none;margin:0;padding:0}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px}:host .usa-hint{font-weight:normal}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2923,4569,8039],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return i}});var n,o={exports:{}};n=o,function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)r.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&r.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&r.push(s);else r.push(o.toString())}}return r.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();var i=o.exports},8039:function(e,t,r){function n(e){return!Number.isNaN(parseFloat(e))}function o(e,t,r){void 0===r&&(r="slot");var n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(n)}function i(e){return 1===e?"":"s"}function a(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(i(t)," allowed");var r;if(e.length<=t){var n=t-e.length;r="".concat(n," character").concat(i(n)," left")}else n=e.length-t,r="".concat(n," character").concat(i(n)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return c},a:function(){return o},b:function(){return n},c:function(){return g},d:function(){return p},e:function(){return b},f:function(){return y},g:function(){return u},h:function(){return a},i:function(){return d},j:function(){return h},m:function(){return s},s:function(){return l},u:function(){return v}}),r(7911);var f=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!f(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||f(t)&&t.matches(e)&&r.push(t),r}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(c._entity,c.getEntity));return t}};function u(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function d(e){return e&&"false"!==e||!1}function m(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(m(e)||m(t)){if(!m(e)||!m(t))return!1;var o=Array.prototype.slice;return p(o.call(e),o.call(t),r,n)}if(e.constructor!==t.constructor)return!1;var i=Object.keys(e),a=Object.keys(t);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return n[s]===t;r.push(e),n.push(t),i.sort(),a.sort();for(var f=i.length-1;f>=0;f--)if(i[f]!==a[f])return!1;for(var l=void 0,c=i.length-1;c>=0;c--)if(!p(e[l=i[c]],t[l],r,n))return!1;return r.pop(),n.pop(),!0}function g(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var n=e.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}function b(e,t){var r;return function(){for(var n=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];clearTimeout(r),r=setTimeout((function(){return e.apply(n,o)}),t)}}function y(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function v(e,t,r){e&&(e.innerText=a(t,y(r)))}},2923:function(e,t,r){r.r(t),r.d(t,{va_checkbox_group:function(){return s}});var n=r(7911),o=r(4569),i=(r(5384),r(8039)),a=r(4665),s=function(){function e(e){(0,n.r)(this,e),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.label=void 0,this.labelSrOnly=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.hint=void 0,this.labelHeaderLevel=void 0,this.messageAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.vaChangeHandler=function(e){var t=e.target;this.enableAnalytics&&this.fireAnalyticsEvent(t.label)},e.prototype.handleResize=function(){(0,n.f)(this)},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-checkbox-group",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;a.i.on("languageChanged",(function(){(0,n.f)(e.el)}))},e.prototype.disconnectedCallback=function(){a.i.off("languageChanged")},e.prototype.render=function(){var e=this,t=e.label,r=e.required,s=e.error,f=e.hint,l=e.messageAriaDescribedby,c=e.useFormsPattern,u=e.formHeadingLevel,h=e.formHeading,d=e.labelSrOnly,m=this.getHeaderLevel(),p="".concat(c&&h?"form-question":""," ").concat(c?"form-description":""," ").concat("multiple"===c?"header-message":"").trim()||null,g=l?"description-message":null,b=(0,o.c)({"usa-legend":!0,"usa-label--error":s,"usa-sr-only":this.el.classList.contains("va-search-filter__checkbox-group")}),y=null;if("single"===c||"multiple"===c){var v=(0,i.g)(u);y=(0,n.h)(n.F,{key:"d185cb7ee355c9886da5a1cd735556521643c4a9"},h&&(0,n.h)(v,{key:"181e52c2fe8e7bf418859f2ce7fa165a8d7b6aa7",id:"form-question",part:"form-header"},h),(0,n.h)("div",{key:"53c489830757919c33260ef2f593985194eec4f3",id:"form-description"},(0,n.h)("slot",{key:"88cc00277fa2f4faeec153d47fd5b91570c630cb",name:"form-description"})))}return(0,n.h)(n.H,{key:"179c193056910747f712ff05f8d86538f9b2756f",role:"group"},y,(0,n.h)("div",{key:"e5d5504b9a7344f51b8e604775c7723d46cf2bb5",class:"input-wrap"},(0,n.h)("fieldset",{key:"50a6aa691447c86c345dfe73f4f453c259f551d1",class:"usa-fieldset","aria-labelledby":p},(0,n.h)("legend",{key:"e24a555fb69694c01d3e602c438918939c094503",class:b,"aria-describedby":g,part:"legend"},m?(0,n.h)(m,{part:"header"},t):t," ","multiple"===c&&(0,n.h)("span",{key:"2495c7519b102b593ee0d0f1cf704be182003e6b",id:"header-message",class:"usa-sr-only"},t),d&&(0,n.h)("span",{key:"e0ba71ad5fee6b7f90ad1c2657454ba3df175e64",class:"usa-sr-only"},d),(0,i.i)(l)&&(0,n.h)("span",{key:"8a78b6d9420b50037d7609ef431dc983808bfc87",id:"description-message",class:"usa-sr-only"},l),r&&(0,n.h)("span",{key:"d06fa9a6ae58d7d54b85e5799881dfd0c9cda5ce",class:"usa-label--required"},a.i.t("required")),f&&(0,n.h)("div",{key:"557f32e324f224d251ff18eefd3584b69d9a0636",class:"usa-hint"},f)),(0,n.h)("span",{key:"5e51e28fdc90a4c43569445fc0631039505a63cb",id:"checkbox-error-message",role:"alert"},s&&(0,n.h)(n.F,{key:"00df4f0973ea584df2d0251e49964fe4f52ab404"},(0,n.h)("span",{key:"f3642703caf5beee4fb958acfbb3275b52c80aad",class:"usa-sr-only"},a.i.t("error")),(0,n.h)("span",{key:"ab16f0f0b42027044aeedd720c41449db20d0f05",class:"usa-error-message"},s))),(0,n.h)("slot",{key:"19e49c88deb64a6ed4204877eefd84edeae79329"}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-fieldset{border:none;margin:0;padding:0}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px}:host .usa-hint{font-weight:normal}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2986,7508],{7508:function(e,t,r){function s(e){return!Number.isNaN(parseFloat(e))}function i(e,t,r){void 0===r&&(r="slot");var s=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(s).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(s)}function n(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(n(t)," allowed");var r;if(e.length<=t){var s=t-e.length;r="".concat(s," character").concat(n(s)," left")}else s=e.length-t,r="".concat(s," character").concat(n(s)," over limit");return r}function a(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return u},a:function(){return i},b:function(){return s},c:function(){return g},d:function(){return m},e:function(){return o},f:function(){return f},g:function(){return p},i:function(){return d},m:function(){return a},s:function(){return l}}),r(7911);var c=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!c(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||c(t)&&t.matches(e)&&r.push(t),r}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return u._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(u._entity,u.getEntity));return t}};function p(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function d(e){return e&&"false"!==e||!1}function h(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(h(e)||h(t)){if(!h(e)||!h(t))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(t),r,s)}if(e.constructor!==t.constructor)return!1;var n=Object.keys(e),o=Object.keys(t);if(0===n.length&&0===o.length)return!0;if(n.length!==o.length)return!1;for(var a=r.length;a--;)if(r[a]===e)return s[a]===t;r.push(e),s.push(t),n.sort(),o.sort();for(var c=n.length-1;c>=0;c--)if(n[c]!==o[c])return!1;for(var l=void 0,u=n.length-1;u>=0;u--)if(!m(e[l=n[u]],t[l],r,s))return!1;return r.pop(),s.pop(),!0}function g(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var s=e.charAt(0).toLowerCase();return r.includes(s)?"an":"a"}},2986:function(e,t,r){r.r(t),r.d(t,{va_process_list_item:function(){return n}});var s=r(7911),i=r(7508),n=function(){function e(e){(0,s.r)(this,e),this.header=void 0,this.level=3,this.active=!1,this.pending=!1,this.checkmark=!1,this.statusText=void 0}return e.prototype.render=function(){var e=this,t=e.header,r=e.level,n=e.checkmark,o=e.active,a=e.pending,c=e.statusText,l=(0,i.g)(r),u=n?"checkmark":o?"active":a?"pending":null,p={checkmark:c||"Complete",active:c||"Active",pending:c||"Pending"};return(0,s.h)(s.H,{key:"1e337ec872597e69da6b0859e272c08e0e2edf57",role:"listitem",class:"usa-process-list__item"},t||u?(0,s.h)(l,{part:"header",class:"usa-process-list__heading"},u?(0,s.h)("div",{class:"usa-process-list__heading-eyebrow"},p[u]):null,t?(0,s.h)("div",null,t):null):null,(0,s.h)("slot",{key:"8cc142970cc3f1f9850ab0b16c91750db37f63dd"}))},e}();n.style='.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-process-list>li{margin-bottom:0;max-width:unset}.usa-process-list>.usa-process-list__item{max-width:72ex}.usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-prose .usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-prose .usa-process-list>li{margin-bottom:0;max-width:unset}.usa-prose .usa-process-list>.usa-process-list__item{max-width:72ex}.usa-prose .usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-process-list__item:last-child{border-left:0.5rem solid transparent}.usa-process-list__item::before{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.5rem;border-radius:99rem;width:2.5rem;background-color:white;border:0.25rem solid #1b1b1b;-webkit-box-shadow:0 0 0 0.25rem white;box-shadow:0 0 0 0.25rem white;color:#1b1b1b;content:counter(usa-numbered-list, decimal);counter-increment:usa-numbered-list;display:-ms-flexbox;display:flex;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;font-weight:700;height:2.5rem;left:0;line-height:0.9;margin-top:-0.4rem;position:absolute;width:2.5rem}.usa-process-list__item ul{list-style-type:disc}.usa-process-list__item ul li{margin-bottom:0.25rem}.usa-process-list__item ul li:last-child{margin-bottom:0}.usa-process-list__item>*:first-child{margin-top:0}.usa-process-list__item>*:last-child{margin-bottom:0}.usa-process-list__heading,.usa-process-list__heading-eyebrow{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;color:#1b1b1b;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-weight:700;margin:0}.usa-process-list__heading+*,.usa-process-list__heading-eyebrow+*{margin-top:0.25rem}.usa-process-list__item{display:list-item}.usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker);text-transform:uppercase;font-weight:normal;font-size:var(--vads-font-size-source-sans-normalized)}va-process-list-item[pending=true] .usa-process-list__heading,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow{color:var(--vads-process-list-color-text-pending-on-light)}va-process-list-item[pending=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}va-process-list-item[active=true] .usa-process-list__heading,va-process-list-item[active=true] .usa-process-list__heading-eyebrow{color:var(--vads-color-primary)}va-process-list-item[active=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[active=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}.usa-process-list__heading:is(h1,h2,h3,h4,h5),.usa-process-list__heading-eyebrow:is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}h1.usa-process-list__heading,h1.usa-process-list__heading-eyebrow{font-size:40px}h2.usa-process-list__heading,h2.usa-process-list__heading-eyebrow{font-size:30px}h3.usa-process-list__heading,h3.usa-process-list__heading-eyebrow{font-size:20px}h4.usa-process-list__heading,h4.usa-process-list__heading-eyebrow{font-size:17px}h5.usa-process-list__heading,h5.usa-process-list__heading-eyebrow,h6.usa-process-list__heading,h6.usa-process-list__heading-eyebrow{font-size:15px}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2986,8039],{8039:function(e,t,r){function s(e){return!Number.isNaN(parseFloat(e))}function i(e,t,r){void 0===r&&(r="slot");var s=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(s).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(s)}function n(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(n(t)," allowed");var r;if(e.length<=t){var s=t-e.length;r="".concat(s," character").concat(n(s)," left")}else s=e.length-t,r="".concat(s," character").concat(n(s)," over limit");return r}function a(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return u},a:function(){return i},b:function(){return s},c:function(){return g},d:function(){return m},e:function(){return _},f:function(){return b},g:function(){return f},h:function(){return o},i:function(){return h},j:function(){return p},m:function(){return a},s:function(){return l},u:function(){return v}}),r(7911);var c=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!c(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||c(t)&&t.matches(e)&&r.push(t),r}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return u._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(u._entity,u.getEntity));return t}};function f(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function p(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function d(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(d(e)||d(t)){if(!d(e)||!d(t))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(t),r,s)}if(e.constructor!==t.constructor)return!1;var n=Object.keys(e),o=Object.keys(t);if(0===n.length&&0===o.length)return!0;if(n.length!==o.length)return!1;for(var a=r.length;a--;)if(r[a]===e)return s[a]===t;r.push(e),s.push(t),n.sort(),o.sort();for(var c=n.length-1;c>=0;c--)if(n[c]!==o[c])return!1;for(var l=void 0,u=n.length-1;u>=0;u--)if(!m(e[l=n[u]],t[l],r,s))return!1;return r.pop(),s.pop(),!0}function g(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var s=e.charAt(0).toLowerCase();return r.includes(s)?"an":"a"}function _(e,t){var r;return function(){for(var s=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];clearTimeout(r),r=setTimeout((function(){return e.apply(s,i)}),t)}}function b(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function v(e,t,r){e&&(e.innerText=o(t,b(r)))}},2986:function(e,t,r){r.r(t),r.d(t,{va_process_list_item:function(){return n}});var s=r(7911),i=r(8039),n=function(){function e(e){(0,s.r)(this,e),this.header=void 0,this.level=3,this.active=!1,this.pending=!1,this.checkmark=!1,this.statusText=void 0}return e.prototype.render=function(){var e=this,t=e.header,r=e.level,n=e.checkmark,o=e.active,a=e.pending,c=e.statusText,l=(0,i.g)(r),u=n?"checkmark":o?"active":a?"pending":null,f={checkmark:c||"Complete",active:c||"Active",pending:c||"Pending"};return(0,s.h)(s.H,{key:"1e337ec872597e69da6b0859e272c08e0e2edf57",role:"listitem",class:"usa-process-list__item"},t||u?(0,s.h)(l,{part:"header",class:"usa-process-list__heading"},u?(0,s.h)("div",{class:"usa-process-list__heading-eyebrow"},f[u]):null,t?(0,s.h)("div",null,t):null):null,(0,s.h)("slot",{key:"8cc142970cc3f1f9850ab0b16c91750db37f63dd"}))},e}();n.style='.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-process-list>li{margin-bottom:0;max-width:unset}.usa-process-list>.usa-process-list__item{max-width:72ex}.usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-prose .usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-prose .usa-process-list>li{margin-bottom:0;max-width:unset}.usa-prose .usa-process-list>.usa-process-list__item{max-width:72ex}.usa-prose .usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-process-list__item:last-child{border-left:0.5rem solid transparent}.usa-process-list__item::before{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.5rem;border-radius:99rem;width:2.5rem;background-color:white;border:0.25rem solid #1b1b1b;-webkit-box-shadow:0 0 0 0.25rem white;box-shadow:0 0 0 0.25rem white;color:#1b1b1b;content:counter(usa-numbered-list, decimal);counter-increment:usa-numbered-list;display:-ms-flexbox;display:flex;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;font-weight:700;height:2.5rem;left:0;line-height:0.9;margin-top:-0.4rem;position:absolute;width:2.5rem}.usa-process-list__item ul{list-style-type:disc}.usa-process-list__item ul li{margin-bottom:0.25rem}.usa-process-list__item ul li:last-child{margin-bottom:0}.usa-process-list__item>*:first-child{margin-top:0}.usa-process-list__item>*:last-child{margin-bottom:0}.usa-process-list__heading,.usa-process-list__heading-eyebrow{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;color:#1b1b1b;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-weight:700;margin:0}.usa-process-list__heading+*,.usa-process-list__heading-eyebrow+*{margin-top:0.25rem}.usa-process-list__item{display:list-item}.usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker);text-transform:uppercase;font-weight:normal;font-size:var(--vads-font-size-source-sans-normalized)}va-process-list-item[pending=true] .usa-process-list__heading,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow{color:var(--vads-process-list-color-text-pending-on-light)}va-process-list-item[pending=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}va-process-list-item[active=true] .usa-process-list__heading,va-process-list-item[active=true] .usa-process-list__heading-eyebrow{color:var(--vads-color-primary)}va-process-list-item[active=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[active=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}.usa-process-list__heading:is(h1,h2,h3,h4,h5),.usa-process-list__heading-eyebrow:is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}h1.usa-process-list__heading,h1.usa-process-list__heading-eyebrow{font-size:40px}h2.usa-process-list__heading,h2.usa-process-list__heading-eyebrow{font-size:30px}h3.usa-process-list__heading,h3.usa-process-list__heading-eyebrow{font-size:20px}h4.usa-process-list__heading,h4.usa-process-list__heading-eyebrow{font-size:17px}h5.usa-process-list__heading,h5.usa-process-list__heading-eyebrow,h6.usa-process-list__heading,h6.usa-process-list__heading-eyebrow{font-size:15px}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3397],{3397:function(e,t,o){o.r(t),o.d(t,{va_omb_info:function(){return i}});var n=o(7911),i=function(){function e(e){var t=this;(0,n.r)(this,e),this.modalContents=null,this.toggleModalVisible=function(){t.visible=!t.visible},this.handleSlotChange=function(){t.modalContents=null},this.visible=void 0,this.shifted=!1,this.benefitType="benefits",this.expDate=void 0,this.ombNumber=void 0,this.resBurden=void 0}return e.prototype.trackShiftKey=function(e){this.shifted=e.shiftKey},e.prototype.trapFocus=function(){var e,t=null===(e=this.el)||void 0===e?void 0:e.shadowRoot.querySelector("va-modal"),o=null==t?void 0:t.getAttribute("visible");if(null!==o&&"false"!==o){var n=void 0,i=this.shifted?".last-focusable-child":'[role="document"]';null==(n=this.shifted?null==t?void 0:t.querySelector("va-telephone").shadowRoot.querySelector(i):null==t?void 0:t.shadowRoot.querySelector(i))||n.focus()}},e.prototype.componentWillLoad=function(){this.modalContents=(0,n.h)("div",null,this.resBurden&&(0,n.h)("p",null,(0,n.h)("strong",null,"Respondent Burden:")," We need this information to determine your eligibility for ",this.benefitType," (38 U.S.C. 3471). Title 38, United States Code, allows us to ask for this information. We estimate that you will need an average of ",this.resBurden," ","minutes to review the instructions, find the information, and complete this form. The VA cannot conduct or sponsor a collection of information unless a valid OMB (Office of Management and Budget) control number is displayed. You are not required to respond to a collection of information if this number is not displayed. Valid OMB control numbers can be located on the OMB Internet Page at www.reginfo.gov/public/do/PRAMain. If desired, you can call"," ",(0,n.h)("va-telephone",{contact:"8008271000",international:!0})," to get information on where to send comments or suggestions about this form."),(0,n.h)("p",null,(0,n.h)("strong",null,"Privacy Act Notice:")," The VA will not disclose information collected on this form to any source other than what has been authorized under the Privacy Act of 1974 or title 38, Code of Federal Regulations, section 1.576 for routine uses (e.g., the VA sends educational forms or letters with a veteran’s identifying information to the Veteran’s school or training establishment to (1) assist the veteran in the completion of claims forms or (2) for the VA to obtain further information as may be necessary from the school for VA to properly process the Veteran’s education claim or to monitor his or her progress during training) as identified in the VA system of records, 58VA21/22/28, Compensation, Pension, Education, and Vocational Rehabilitation and Employment Records - VA, and published in the Federal Register. Your obligation to respond is required to obtain or retain",this.benefitType,". Giving us your SSN account information is voluntary. Refusal to provide your SSN by itself will not result in the denial of benefits. The VA will not deny an individual benefits for refusing to provide his or her SSN unless the disclosure of the SSN is required by a Federal Statute of law enacted before January 1, 1975, and still in effect. The requested information is considered relevant and necessary to determine the maximum benefits under the law. While you do not have to respond, VA cannot process your claim for education assistance unless the information is furnished as required by existing law (38 U.S.C. 3471). The responses you submit are considered confidential (38 U.S.C. 5701). Any information provided by applicants, recipients, and others may be subject to verification through computer matching programs with other agencies."))},e.prototype.render=function(){var e=this,t=this,o=t.expDate,i=t.handleSlotChange,a=t.modalContents,r=t.ombNumber,s=t.resBurden,d=t.toggleModalVisible,l=t.visible;return(0,n.h)(n.H,{key:"86e4a23aba294931ecf0c03cde0d8e7409b3386f"},s&&(0,n.h)("div",{key:"b8e5cdf014e8d47d1dcf172c984f62987c550cf3"},"Respondent burden: ",(0,n.h)("strong",{key:"9414c31ebb710f70b975bfbf8968fba78bfc09f5"},s," minutes")),r&&(0,n.h)("div",{key:"7775ce3ddc484518b65c43e2f03f1a1aec45900f"},"OMB Control #: ",(0,n.h)("strong",{key:"d690ec7742f000804fd797de30e8a5c258ccfcdf"},r)),(0,n.h)("div",{key:"9b07a65e55d7d4fa2a143e1ad28a50d87781c779"},"Expiration date: ",(0,n.h)("strong",{key:"14e27e487b6cff5706bc9237d76a163891b180ff"},o)),(0,n.h)("div",{key:"f82659e06df7f1e838c57b14f52ee2ec2c671db3"},(0,n.h)("va-button",{key:"081a79564237fa55d33b282c8c2682d2dea53eff",onClick:d,onFocusin:function(){return e.trapFocus()},secondary:!0,text:"View Privacy Act Statement"})),(0,n.h)("va-modal",{key:"48ceca855b4ce7154a044ea7bb6083df6a5d21de",large:!0,modalTitle:"Privacy Act Statement",onCloseEvent:d,visible:l,ariaHiddenNodeExceptions:[this.el]},(0,n.h)("slot",{key:"eb3d30d719f383c1a429f48e28d557a93da4af38",onSlotchange:i}),a))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();i.style=":host{display:block;font-size:1.06rem}"}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3397],{3397:function(e,t,o){o.r(t),o.d(t,{va_omb_info:function(){return i}});var n=o(7911),i=function(){function e(e){var t=this;(0,n.r)(this,e),this.modalContents=null,this.toggleModalVisible=function(){t.visible=!t.visible},this.handleSlotChange=function(){t.modalContents=null},this.visible=void 0,this.shifted=!1,this.benefitType="benefits",this.expDate=void 0,this.ombNumber=void 0,this.formId=void 0,this.resBurden=void 0}return e.prototype.trackShiftKey=function(e){this.shifted=e.shiftKey},e.prototype.trapFocus=function(){var e,t=null===(e=this.el)||void 0===e?void 0:e.shadowRoot.querySelector("va-modal"),o=null==t?void 0:t.getAttribute("visible");if(null!==o&&"false"!==o){var n=void 0,i=this.shifted?".last-focusable-child":'[role="document"]';null==(n=this.shifted?null==t?void 0:t.querySelector("va-telephone").shadowRoot.querySelector(i):null==t?void 0:t.shadowRoot.querySelector(i))||n.focus()}},e.prototype.componentWillLoad=function(){this.modalContents=(0,n.h)("div",null,this.resBurden&&(0,n.h)("p",null,(0,n.h)("strong",null,"Respondent Burden:")," We need this information to determine your eligibility for ",this.benefitType," (38 U.S.C. 3471). Title 38, United States Code, allows us to ask for this information. We estimate that you will need an average of ",this.resBurden," ","minutes to review the instructions, find the information, and complete this form. The VA cannot conduct or sponsor a collection of information unless a valid OMB (Office of Management and Budget) control number is displayed. You are not required to respond to a collection of information if this number is not displayed. Valid OMB control numbers can be located on the OMB Internet Page at www.reginfo.gov/public/do/PRAMain. If desired, you can call"," ",(0,n.h)("va-telephone",{contact:"8008271000",international:!0})," to get information on where to send comments or suggestions about this form."),(0,n.h)("p",null,(0,n.h)("strong",null,"Privacy Act Notice:")," The VA will not disclose information collected on this form to any source other than what has been authorized under the Privacy Act of 1974 or title 38, Code of Federal Regulations, section 1.576 for routine uses (e.g., the VA sends educational forms or letters with a veteran’s identifying information to the Veteran’s school or training establishment to (1) assist the veteran in the completion of claims forms or (2) for the VA to obtain further information as may be necessary from the school for VA to properly process the Veteran’s education claim or to monitor his or her progress during training) as identified in the VA system of records, 58VA21/22/28, Compensation, Pension, Education, and Vocational Rehabilitation and Employment Records - VA, and published in the Federal Register. Your obligation to respond is required to obtain or retain",this.benefitType,". Giving us your SSN account information is voluntary. Refusal to provide your SSN by itself will not result in the denial of benefits. The VA will not deny an individual benefits for refusing to provide his or her SSN unless the disclosure of the SSN is required by a Federal Statute of law enacted before January 1, 1975, and still in effect. The requested information is considered relevant and necessary to determine the maximum benefits under the law. While you do not have to respond, VA cannot process your claim for education assistance unless the information is furnished as required by existing law (38 U.S.C. 3471). The responses you submit are considered confidential (38 U.S.C. 5701). Any information provided by applicants, recipients, and others may be subject to verification through computer matching programs with other agencies."))},e.prototype.render=function(){var e=this,t=this,o=t.expDate,i=t.handleSlotChange,a=t.modalContents,r=t.ombNumber,s=t.resBurden,d=t.toggleModalVisible,l=t.visible,c=t.formId;return(0,n.h)(n.H,{key:"e8e5023d60900ab5efe4bc80b89309eb4460b408"},s&&(0,n.h)("div",{key:"17563964647684beafd2d2e3845af7c62cf11740"},"Respondent burden: ",(0,n.h)("strong",{key:"11ebce61fed8b21047d2daa3d4fafc0bcff85614"},s," minutes")),r&&(0,n.h)("div",{key:"e551c626d100118cacb9f968b2c360e8126204d9"},"OMB Control #: ",(0,n.h)("strong",{key:"f617517962d16680cc41eb70d5a8a7b1ca6e15b9"},r)),(0,n.h)("div",{key:"f6ec6d6e21f7008a4c2c865dc1d7b82e3a4a9f39"},"Expiration date: ",(0,n.h)("strong",{key:"fa3295d778fcd1cbbdbd871f64688bc82b75e0a1"},o)),(0,n.h)("div",{key:"27e1889430227077fc9d23148ad9b1f021160c40"},(0,n.h)("va-button",{key:"d0c88acc8eaa26443f158e2927dfe39ab7fa781a",onClick:d,onFocusin:function(){return e.trapFocus()},secondary:!0,text:c?"View Privacy Act Statement for VA Form ".concat(c):"View Privacy Act Statement"})),(0,n.h)("va-modal",{key:"af4ad559b005024d25f4b17b4d985bc39e8b89d5",large:!0,modalTitle:"Privacy Act Statement",onCloseEvent:d,visible:l,ariaHiddenNodeExceptions:[this.el]},(0,n.h)("slot",{key:"4483eafb4e9cb2d30753a9eb9c09230e1d30aff7",onSlotchange:i}),a))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();i.style=":host{display:block;font-size:1.06rem}"}}]);