@department-of-veterans-affairs/component-library 51.2.0 → 51.4.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 (114) hide show
  1. package/Modal.js +1 -1
  2. package/README.md +1 -1
  3. package/contacts.js +1 -1
  4. package/dist/0.app.bundle.js +1 -1
  5. package/dist/12.app.bundle.js +1 -1
  6. package/dist/1966.app.bundle.js +1 -1
  7. package/dist/2205.app.bundle.js +1 -1
  8. package/dist/2236.app.bundle.js +1 -1
  9. package/dist/272.app.bundle.js +1 -1
  10. package/dist/2923.app.bundle.js +2 -0
  11. package/dist/3305.app.bundle.js +1 -1
  12. package/dist/3589.app.bundle.js +1 -1
  13. package/dist/3600.app.bundle.js +1 -1
  14. package/dist/4400.app.bundle.js +1 -1
  15. package/dist/4432.app.bundle.js +1 -1
  16. package/dist/4475.app.bundle.js +1 -1
  17. package/dist/4780.app.bundle.js +1 -1
  18. package/dist/4996.app.bundle.js +2 -0
  19. package/dist/4996.app.bundle.js.LICENSE.txt +5 -0
  20. package/dist/5119.app.bundle.js +1 -1
  21. package/dist/5341.app.bundle.js +2 -0
  22. package/dist/5341.app.bundle.js.LICENSE.txt +5 -0
  23. package/dist/5663.app.bundle.js +1 -1
  24. package/dist/5689.app.bundle.js +1 -1
  25. package/dist/5845.app.bundle.js +1 -1
  26. package/dist/5938.app.bundle.js +2 -0
  27. package/dist/5938.app.bundle.js.LICENSE.txt +5 -0
  28. package/dist/5990.app.bundle.js +1 -1
  29. package/dist/606.app.bundle.js +1 -0
  30. package/dist/6095.app.bundle.js +1 -1
  31. package/dist/6308.app.bundle.js +1 -1
  32. package/dist/6555.app.bundle.js +1 -1
  33. package/dist/6650.app.bundle.js +1 -1
  34. package/dist/6696.app.bundle.js +1 -1
  35. package/dist/6718.app.bundle.js +1 -1
  36. package/dist/6849.app.bundle.js +1 -1
  37. package/dist/6850.app.bundle.js +1 -0
  38. package/dist/7166.app.bundle.js +1 -1
  39. package/dist/7307.app.bundle.js +1 -1
  40. package/dist/7372.app.bundle.js +1 -1
  41. package/dist/7481.app.bundle.js +1 -1
  42. package/dist/{7747.app.bundle.js → 7731.app.bundle.js} +1 -1
  43. package/dist/7734.app.bundle.js +1 -1
  44. package/dist/8255.app.bundle.js +1 -1
  45. package/dist/8463.app.bundle.js +1 -1
  46. package/dist/8913.app.bundle.js +1 -1
  47. package/dist/9186.app.bundle.js +1 -1
  48. package/dist/9376.app.bundle.js +1 -1
  49. package/dist/9496.app.bundle.js +1 -1
  50. package/dist/960.app.bundle.js +1 -1
  51. package/dist/9851.app.bundle.js +1 -1
  52. package/dist/app.bundle.js +1 -1
  53. package/dist/components/i18n-setup.js +1 -1
  54. package/dist/components/i18next.js +1 -1
  55. package/dist/components/index.d.ts +6 -0
  56. package/dist/components/index.js +1 -1
  57. package/dist/components/parsePhoneNumber_.js +1 -0
  58. package/dist/components/types/components.d.ts +203 -2
  59. package/dist/components/va-accordion-item2.js +1 -1
  60. package/dist/components/va-accordion2.js +1 -1
  61. package/dist/components/va-additional-info.js +1 -1
  62. package/dist/components/va-alert-expandable.js +1 -1
  63. package/dist/components/va-alert2.js +1 -1
  64. package/dist/components/va-back-to-top.js +1 -1
  65. package/dist/components/va-breadcrumbs.js +1 -1
  66. package/dist/components/va-button-icon2.js +1 -1
  67. package/dist/components/va-button-segmented.js +1 -1
  68. package/dist/components/va-button2.js +1 -1
  69. package/dist/components/va-checkbox-group2.js +1 -1
  70. package/dist/components/va-checkbox2.js +1 -1
  71. package/dist/components/va-combo-box2.js +1 -1
  72. package/dist/components/va-crisis-line-modal2.js +1 -1
  73. package/dist/components/va-file-input-multiple.js +1 -1
  74. package/dist/components/va-file-input2.js +1 -1
  75. package/dist/components/va-link-action.js +1 -1
  76. package/dist/components/va-link2.js +1 -1
  77. package/dist/components/va-maintenance-banner.js +1 -1
  78. package/dist/components/va-memorable-date.js +1 -1
  79. package/dist/components/va-minimal-footer.js +1 -1
  80. package/dist/components/va-modal2.js +1 -1
  81. package/dist/components/va-on-this-page.js +1 -1
  82. package/dist/components/va-pagination.js +1 -1
  83. package/dist/components/va-privacy-agreement.js +1 -1
  84. package/dist/components/va-promo-banner.js +1 -1
  85. package/dist/components/va-radio.js +1 -1
  86. package/dist/components/va-search-input.js +1 -1
  87. package/dist/components/va-segmented-progress-bar.js +1 -1
  88. package/dist/components/va-select2.js +1 -1
  89. package/dist/components/va-service-list-item.js +1 -1
  90. package/dist/components/va-sidenav-item.d.ts +11 -0
  91. package/dist/components/va-sidenav-item.js +1 -0
  92. package/dist/components/va-sidenav-submenu.d.ts +11 -0
  93. package/dist/components/va-sidenav-submenu.js +1 -0
  94. package/dist/components/va-sidenav.d.ts +11 -0
  95. package/dist/components/va-sidenav.js +1 -0
  96. package/dist/components/va-statement-of-truth.js +1 -1
  97. package/dist/components/va-summary-box.js +1 -1
  98. package/dist/components/va-table-inner2.js +1 -1
  99. package/dist/components/va-table-row.js +1 -1
  100. package/dist/components/va-table.js +1 -1
  101. package/dist/components/va-telephone-input.js +1 -1
  102. package/dist/components/va-telephone2.js +1 -1
  103. package/dist/components/va-text-input2.js +1 -1
  104. package/dist/components/va-textarea.js +1 -1
  105. package/dist/img/sprite.svg +4 -2
  106. package/dist/react-bindings/index.d.ts +3 -0
  107. package/dist/react-bindings/index.js +1 -1
  108. package/dist/react-bindings/index.js.map +1 -1
  109. package/dist/react-bindings/index.ts +3 -0
  110. package/format-date.js +1 -1
  111. package/package.json +2 -3
  112. package/test-helpers.js +1 -1
  113. package/dist/9474.app.bundle.js +0 -2
  114. /package/dist/{9474.app.bundle.js.LICENSE.txt → 2923.app.bundle.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 5845.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([[4569,5845],{4569:function(t,e,a){a.r(e),a.d(e,{c:function(){return s}});var o,u={exports:{}};o=u,function(){var t={}.hasOwnProperty;function e(){for(var a=[],o=0;o<arguments.length;o++){var u=arguments[o];if(u){var s=typeof u;if("string"===s||"number"===s)a.push(u);else if(Array.isArray(u)){if(u.length){var n=e.apply(null,u);n&&a.push(n)}}else if("object"===s)if(u.toString===Object.prototype.toString)for(var i in u)t.call(u,i)&&u[i]&&a.push(i);else a.push(u.toString())}}return a.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var s=u.exports},5845:function(t,e,a){a.r(e),a.d(e,{va_search_input:function(){return s}});var o=a(7911),u=a(4569),s=function(){function t(t){var e=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.handleBlur=function(){e.disableAnalytics||e.componentLibraryAnalytics.emit({componentName:"va-search-input",action:"blur",details:{value:e.value}}),e.isTouched=!1,e.isListboxOpen=!1},this.handleSubmit=function(){var t=e.el.shadowRoot.querySelector("form");t&&(t.onsubmit=function(t){t.preventDefault()}),e.el.dispatchEvent(new SubmitEvent("submit",{bubbles:!0,cancelable:!0,composed:!0})),e.disableAnalytics||e.componentLibraryAnalytics.emit({componentName:"va-search-input",action:"click",details:{value:e.value}})},this.handleInput=function(t){e.value=t.target.value,e.showClearButton=!!e.value,e.suggestions&&e.updateSuggestions(e.suggestions)},this.handleInputFocus=function(){e.isTouched=!0,e.formattedSuggestions.length&&!e.isListboxOpen&&(e.isListboxOpen=!0)},this.handleInputKeyDown=function(t){var a=e.el.shadowRoot.querySelectorAll('[role="option"]');switch(t.key){case"ArrowDown":if(t.preventDefault(),!(null==a?void 0:a.length))return;var o=a[0];e.selectSuggestion(o);break;case"ArrowUp":if(t.preventDefault(),!(null==a?void 0:a.length))return;var u=a[a.length-1];e.selectSuggestion(u);break;case"Enter":t.preventDefault(),e.handleSubmit();break;case"Escape":e.inputRef.value="",e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}));break;case"Tab":e.isListboxOpen=!1}},this.handleButtonClick=function(){e.handleSubmit()},this.handleClearButtonClick=function(){e.inputRef.value="",e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.focus()},this.handleListboxClick=function(t){var a=e.el.shadowRoot.getElementById("listbox-option-".concat(t));e.inputRef.value=a.innerText,e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.removeAttribute("aria-activedescendant"),e.isListboxOpen=!1,e.value=a.innerText,e.handleSubmit()},this.handleListboxKeyDown=function(t,a){var o=e.el.shadowRoot.querySelectorAll('[role="option"]');switch(t.key){case"ArrowUp":t.preventDefault(),0===a?e.selectSuggestion(o[o.length-1]):e.selectSuggestion(o[a-1]);break;case"ArrowDown":t.preventDefault(),a===o.length-1?e.selectSuggestion(o[0]):e.selectSuggestion(o[a+1]);break;case"Enter":t.preventDefault(),e.inputRef.value=o[a].innerText,e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.focus(),e.inputRef.removeAttribute("aria-activedescendant"),e.isListboxOpen=!1,e.isTouched=!1,e.handleSubmit();break;case"Escape":e.inputRef.value="",e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.focus(),e.inputRef.removeAttribute("aria-activedescendant"),e.isListboxOpen=!1;break;case"Home":t.preventDefault(),e.inputRef.focus(),e.inputRef.setSelectionRange(0,0);break;case"ArrowRight":case"End":t.preventDefault(),e.inputRef.focus(),e.inputRef.setSelectionRange(e.inputRef.value.length+1,e.inputRef.value.length+1);break;case"ArrowLeft":t.preventDefault(),e.inputRef.focus(),e.inputRef.setSelectionRange(e.inputRef.value.length,e.inputRef.value.length);break;default:e.inputRef.focus()}},this.formatSuggestion=function(t){var a=t.toLowerCase(),u=e.inputRef.value.toLowerCase();return a.includes(u)?(0,o.h)(o.F,null,u,(0,o.h)("strong",null,a.replace(u,""))):(0,o.h)("strong",null,a)},this.selectSuggestion=function(t){var a=e.el.shadowRoot.querySelector('[aria-selected="true"]');null==a||a.removeAttribute("aria-selected"),t.focus(),t.setAttribute("aria-selected","true"),e.inputRef.setAttribute("aria-activedescendant",t.id)},this.updateSuggestions=function(t){if(!t.length)return e.formattedSuggestions=[],void(e.isListboxOpen=!1);e.formattedSuggestions=t.slice(0,5).sort().map((function(t){return e.formatSuggestion(t)})),e.isTouched?e.isListboxOpen=!0:e.isListboxOpen=!1},this.formattedSuggestions=[],this.isListboxOpen=void 0,this.isTouched=!1,this.buttonText="Search",this.label="Search",this.suggestions=void 0,this.value="",this.big=!1,this.small=!1,this.disableAnalytics=!1,this.showClearButton=!1}return t.prototype.componentWillLoad=function(){this.showClearButton=!!this.value},t.prototype.componentDidLoad=function(){var t;Array.isArray(this.suggestions)&&(null===(t=this.suggestions)||void 0===t?void 0:t.length)&&this.updateSuggestions(this.suggestions)},t.prototype.watchValueHandler=function(){this.value=this.inputRef.value},t.prototype.watchSuggestionsHandler=function(t){Array.isArray(t)&&this.updateSuggestions(t)},t.prototype.render=function(){var t=this,e=this,a=e.buttonText,s=e.formattedSuggestions,n=e.handleBlur,i=e.handleButtonClick,r=e.handleClearButtonClick,b=e.handleInput,l=e.handleInputFocus,d=e.handleInputKeyDown,c=e.handleListboxClick,h=e.handleListboxKeyDown,p=e.isListboxOpen,v=e.label,f=e.value,m=e.big,g=e.small,y=e.showClearButton,w=s.length,x=w?"list":void 0,k=w?"va-search-listbox":void 0,_=w?p?"true":"false":void 0,S=w?"listbox":void 0,D=w?"combobox":void 0,C=(0,u.c)({"usa-search":!0,"usa-search--big":m&&!g,"usa-search--small":g&&!m}),R=(0,u.c)({"usa-search__clear-input":!0,"usa-search__clear-input_empty":!y});return(0,o.h)(o.H,{key:"c28006e25d0fd00d4f91695f09ce6f9ec491cda7",onBlur:n},(0,o.h)("form",{key:"3b056583d91d92fbc53f7a645d88830487164923",class:C,role:"search"},(0,o.h)("label",{key:"8471b1739cdca199dac95f3076e92a97017e982c",class:"usa-sr-only",htmlFor:"search-field"},v),(0,o.h)("div",{key:"ccac89ae2dd53dc0956ade2a5f9a6ce7a5c024f4",class:"usa-search__input-wrapper"},(0,o.h)("input",{key:"644a2908234517c5b8220ee0c0a630383cfdc6d4",class:"usa-input",id:"search-field",name:"search",type:"search",ref:function(e){return t.inputRef=e},"aria-autocomplete":x,"aria-controls":k,"aria-expanded":_,"aria-haspopup":S,"aria-label":v,autocomplete:"off",onFocus:l,onInput:b,onKeyDown:d,role:D,value:f}),(0,o.h)("button",{key:"f1dc6ba8bbeae3d36eca1b1f21507f28b4905816",type:"button",onClick:r,class:R,"aria-label":"Clear the search contents"},(0,o.h)("va-icon",{key:"2707c8a0dfabb234858dfe24d4aae0a36de817b7",class:"usa-search__clear-icon",icon:"close",size:3})),(0,o.h)("button",{key:"24e1a6bef1314387d27ba6a96f1658e06e67b2be",class:"usa-button",type:"submit",onClick:i},!g&&(0,o.h)("span",{key:"b61e84fe7c14deea0be9a11dd79c23fb314029a9",class:"usa-search__submit-text"},a),(0,o.h)("va-icon",{key:"d786f93cb2b366568ed4a045009a36e0c10278aa",class:"usa-search__submit-icon",icon:"search",size:3,srtext:"Search"}))),p&&(0,o.h)("ul",{key:"5aea1bb62818350b7b7b38a4c2ca31a28f77e023",id:"va-search-listbox","aria-label":"Search Suggestions",role:"listbox"},s.map((function(t,e){return(0,o.h)("li",{id:"listbox-option-".concat(e),class:"va-search-suggestion",onClick:function(){return c(e)},onKeyDown:function(t){return h(t,e)},role:"option",tabIndex:-1},t)})))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"watchers",{get:function(){return{value:["watchValueHandler"],suggestions:["watchSuggestionsHandler"]}},enumerable:!1,configurable:!0}),t}();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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}input,select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0.1rem solid var(--vads-color-base-dark);border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--vads-color-base-darkest);display:block;font-size:1.06rem;height:2.625rem;line-height:1.3;margin:0.2em 0;max-width:46rem;padding:1rem 0.7em;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-search{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;position:relative}.usa-search::after{clear:both;content:"";display:block}.usa-search[role=search],.usa-search[role=search]>div,.usa-search [role=search]{display:-ms-flexbox;display:flex}.usa-search [type=submit]{border-bottom-left-radius:0;border-top-left-radius:0;height:2rem;margin:0;padding:0;width:3rem}@media all and (min-width: 30em){.usa-search [type=submit]{padding-left:1rem;padding-right:1rem;width:auto}}@media (forced-colors: active){.usa-search [type=submit]::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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;content:"";vertical-align:middle;margin-right:auto}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-search [type=submit]::before{background:none;background-color:ButtonText;-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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}.usa-search [type=submit]:focus{outline-offset:0}}@media (forced-colors: active) and (min-width: 30em){.usa-search [type=submit]::before{content:none}}@media all and (min-width: 30em){.usa-search__submit-icon{display:none}}@media (forced-colors: active){.usa-search__submit-icon{display:none}}@media all and (min-width: 30em){.usa-search--big [type=search],.usa-search--big .usa-search__input{font-size:1.06rem;height:3rem}}@media all and (min-width: 30em){.usa-search--big [type=submit],.usa-search--big .usa-search__submit{padding-left:2rem;padding-right:2rem;font-size:1.46rem;height:3rem;width:auto}}.usa-search--small [type=submit],.usa-search--small .usa-search__submit{padding-left:0.75rem;padding-right:0.75rem;min-width:3rem}@media (forced-colors: active) and (min-width: 30em){.usa-search--small [type=submit]::before{content:""}}.usa-search--small .usa-search__submit-icon{height:1.5rem;width:1.5rem;display:block}@media (forced-colors: active){.usa-search--small .usa-search__submit-icon{display:none}}input[type=search]{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}[type=search],.usa-search__input{padding-bottom:0;padding-top:0;border-bottom-right-radius:0;border-right:none;border-top-right-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;font-size:1rem;height:2rem;margin:0}.usa-search__submit-text{display:none}@media all and (min-width: 30em){.usa-search__submit-text{display:block}}.usa-button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;color:white;background-color:#005ea2;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-align:center;align-items:center;border:0;border-radius:0.25rem;cursor:pointer;-webkit-column-gap:0.5rem;-moz-column-gap:0.5rem;column-gap:0.5rem;display:-ms-inline-flexbox;display:inline-flex;font-weight:700;-ms-flex-pack:center;justify-content:center;margin-right:0.5rem;padding:0.75rem 1.25rem;text-align:center;text-decoration:none;width:100%}@media all and (min-width: 30em){.usa-button{width:auto}}.usa-button:visited{color:white}.usa-button:hover,.usa-button.usa-button--hover{color:white;background-color:#1a4480;border-bottom:0;text-decoration:none}.usa-button:active,.usa-button.usa-button--active{color:white;background-color:#162e51}.usa-button:not([disabled]):focus,.usa-button:not([disabled]).usa-focus{outline-offset:0.25rem}.usa-button:disabled,.usa-button[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled:hover,.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled.usa-focus,.usa-button[aria-disabled=true]:hover,.usa-button[aria-disabled=true]:active,.usa-button[aria-disabled=true]:focus,.usa-button[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-button:disabled,.usa-button[aria-disabled=true]{border:0;color:GrayText}.usa-button:disabled:hover,.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled.usa-focus,.usa-button[aria-disabled=true]:hover,.usa-button[aria-disabled=true]:active,.usa-button[aria-disabled=true]:focus,.usa-button[aria-disabled=true].usa-focus{color:GrayText}}.usa-button:disabled.usa-button--hover,.usa-button:disabled.usa-button--active,.usa-button[aria-disabled=true].usa-button--hover,.usa-button[aria-disabled=true].usa-button--active{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled.usa-button--hover:hover,.usa-button:disabled.usa-button--hover:active,.usa-button:disabled.usa-button--hover:focus,.usa-button:disabled.usa-button--hover.usa-focus,.usa-button:disabled.usa-button--active:hover,.usa-button:disabled.usa-button--active:active,.usa-button:disabled.usa-button--active:focus,.usa-button:disabled.usa-button--active.usa-focus,.usa-button[aria-disabled=true].usa-button--hover:hover,.usa-button[aria-disabled=true].usa-button--hover:active,.usa-button[aria-disabled=true].usa-button--hover:focus,.usa-button[aria-disabled=true].usa-button--hover.usa-focus,.usa-button[aria-disabled=true].usa-button--active:hover,.usa-button[aria-disabled=true].usa-button--active:active,.usa-button[aria-disabled=true].usa-button--active:focus,.usa-button[aria-disabled=true].usa-button--active.usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-button:disabled.usa-button--hover,.usa-button:disabled.usa-button--active,.usa-button[aria-disabled=true].usa-button--hover,.usa-button[aria-disabled=true].usa-button--active{border:0;color:GrayText}.usa-button:disabled.usa-button--hover:hover,.usa-button:disabled.usa-button--hover:active,.usa-button:disabled.usa-button--hover:focus,.usa-button:disabled.usa-button--hover.usa-focus,.usa-button:disabled.usa-button--active:hover,.usa-button:disabled.usa-button--active:active,.usa-button:disabled.usa-button--active:focus,.usa-button:disabled.usa-button--active.usa-focus,.usa-button[aria-disabled=true].usa-button--hover:hover,.usa-button[aria-disabled=true].usa-button--hover:active,.usa-button[aria-disabled=true].usa-button--hover:focus,.usa-button[aria-disabled=true].usa-button--hover.usa-focus,.usa-button[aria-disabled=true].usa-button--active:hover,.usa-button[aria-disabled=true].usa-button--active:active,.usa-button[aria-disabled=true].usa-button--active:focus,.usa-button[aria-disabled=true].usa-button--active.usa-focus{color:GrayText}}@media (forced-colors: active){.usa-button:disabled:not(.usa-button--unstyled),.usa-button[aria-disabled=true]:not(.usa-button--unstyled){border:2px solid GrayText}}.usa-button .usa-icon{-ms-flex-negative:0;flex-shrink:0}@media (forced-colors: active){.usa-button:not(.usa-button--unstyled){border:2px solid transparent}}.usa-button--accent-cool{color:#1b1b1b;background-color:#00bde3}.usa-button--accent-cool:visited{color:#1b1b1b;background-color:#00bde3}.usa-button--accent-cool:hover,.usa-button--accent-cool.usa-button--hover{color:#1b1b1b;background-color:#28a0cb}.usa-button--accent-cool:active,.usa-button--accent-cool.usa-button--active{color:white;background-color:#07648d}.usa-button--accent-warm{color:#1b1b1b;background-color:#fa9441}.usa-button--accent-warm:visited{color:#1b1b1b;background-color:#fa9441}.usa-button--accent-warm:hover,.usa-button--accent-warm.usa-button--hover{color:white;background-color:#c05600}.usa-button--accent-warm:active,.usa-button--accent-warm.usa-button--active{color:white;background-color:#775540}.usa-button--outline{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px #005ea2;box-shadow:inset 0 0 0 2px #005ea2;color:#005ea2}.usa-button--outline:visited{color:#005ea2}.usa-button--outline:hover,.usa-button--outline.usa-button--hover{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px #1a4480;box-shadow:inset 0 0 0 2px #1a4480;color:#1a4480}.usa-button--outline:active,.usa-button--outline.usa-button--active{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px #162e51;box-shadow:inset 0 0 0 2px #162e51;color:#162e51}.usa-button--outline.usa-button--inverse{-webkit-box-shadow:inset 0 0 0 2px #dfe1e2;box-shadow:inset 0 0 0 2px #dfe1e2;color:#dfe1e2}.usa-button--outline.usa-button--inverse:visited{color:#dfe1e2}.usa-button--outline.usa-button--inverse:hover,.usa-button--outline.usa-button--inverse.usa-button--hover{-webkit-box-shadow:inset 0 0 0 2px #f0f0f0;box-shadow:inset 0 0 0 2px #f0f0f0;color:#f0f0f0}.usa-button--outline.usa-button--inverse:active,.usa-button--outline.usa-button--inverse.usa-button--active{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px white;box-shadow:inset 0 0 0 2px white;color:white}.usa-button--outline.usa-button--inverse.usa-button--unstyled{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;color:#dfe1e2}.usa-button--outline.usa-button--inverse.usa-button--unstyled:visited{color:#54278f}.usa-button--outline.usa-button--inverse.usa-button--unstyled:hover{color:#1a4480}.usa-button--outline.usa-button--inverse.usa-button--unstyled:active{color:#162e51}.usa-button--outline.usa-button--inverse.usa-button--unstyled:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-button--outline.usa-button--inverse.usa-button--unstyled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled.usa-button--hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true].usa-button--hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--active,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled.usa-button--active,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true].usa-button--active,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled.usa-focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true].usa-focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true],.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--hover{color:#1a4480}.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--active{color:#162e51}.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true],.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true],.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:focus{color:GrayText}}.usa-button--outline.usa-button--inverse.usa-button--unstyled:visited{color:#dfe1e2}.usa-button--outline.usa-button--inverse.usa-button--unstyled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--hover{color:#f0f0f0}.usa-button--outline.usa-button--inverse.usa-button--unstyled:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--active{color:white}.usa-button--base{color:white;background-color:#71767a}.usa-button--base:hover,.usa-button--base.usa-button--hover{color:white;background-color:#565c65}.usa-button--base:active,.usa-button--base.usa-button--active{color:white;background-color:#3d4551}.usa-button--secondary{color:white;background-color:#d83933}.usa-button--secondary:hover,.usa-button--secondary.usa-button--hover{color:white;background-color:#b50909}.usa-button--secondary:active,.usa-button--secondary.usa-button--active{color:white;background-color:#8b0a03}.usa-button--big{border-radius:0.25rem;font-size:1.46rem;padding:1rem 1.5rem}.usa-button--outline:disabled,.usa-button--outline:disabled:hover,.usa-button--outline:disabled:active,.usa-button--outline:disabled:focus,.usa-button--outline[aria-disabled=true],.usa-button--outline[aria-disabled=true]:hover,.usa-button--outline[aria-disabled=true]:active,.usa-button--outline[aria-disabled=true]:focus,.usa-button--outline-inverse:disabled,.usa-button--outline-inverse:disabled:hover,.usa-button--outline-inverse:disabled:active,.usa-button--outline-inverse:disabled:focus,.usa-button--outline-inverse[aria-disabled=true],.usa-button--outline-inverse[aria-disabled=true]:hover,.usa-button--outline-inverse[aria-disabled=true]:active,.usa-button--outline-inverse[aria-disabled=true]:focus{background-color:transparent;color:#757575}.usa-button--outline:disabled,.usa-button--outline[aria-disabled=true]{-webkit-box-shadow:inset 0 0 0 2px #c9c9c9;box-shadow:inset 0 0 0 2px #c9c9c9}.usa-button--outline:disabled.usa-button--inverse,.usa-button--outline[aria-disabled=true].usa-button--inverse{-webkit-box-shadow:inset 0 0 0 2px #919191;box-shadow:inset 0 0 0 2px #919191;color:#919191}@media (forced-colors: active){.usa-button--outline:disabled.usa-button--inverse,.usa-button--outline[aria-disabled=true].usa-button--inverse{color:GrayText}}.usa-button--unstyled{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto}.usa-button--unstyled:visited{color:#54278f}.usa-button--unstyled:hover{color:#1a4480}.usa-button--unstyled:active{color:#162e51}.usa-button--unstyled:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-button--unstyled:hover,.usa-button--unstyled.usa-button--hover,.usa-button--unstyled:disabled:hover,.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--unstyled:disabled.usa-button--hover,.usa-button--unstyled[aria-disabled=true].usa-button--hover,.usa-button--unstyled:active,.usa-button--unstyled.usa-button--active,.usa-button--unstyled:disabled:active,.usa-button--unstyled[aria-disabled=true]:active,.usa-button--unstyled:disabled.usa-button--active,.usa-button--unstyled[aria-disabled=true].usa-button--active,.usa-button--unstyled:disabled:focus,.usa-button--unstyled[aria-disabled=true]:focus,.usa-button--unstyled:disabled.usa-focus,.usa-button--unstyled[aria-disabled=true].usa-focus,.usa-button--unstyled:disabled,.usa-button--unstyled[aria-disabled=true],.usa-button--unstyled.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-button--unstyled.usa-button--hover{color:#1a4480}.usa-button--unstyled.usa-button--active{color:#162e51}.usa-button--unstyled:disabled,.usa-button--unstyled[aria-disabled=true],.usa-button--unstyled:disabled:hover,.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--unstyled[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-button--unstyled:disabled,.usa-button--unstyled[aria-disabled=true],.usa-button--unstyled:disabled:hover,.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--unstyled[aria-disabled=true]:focus{color:GrayText}}.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}:host input[type=search]::-webkit-search-decoration,:host input[type=search]::-webkit-search-cancel-button,:host input[type=search]::-webkit-search-results-button,:host input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.usa-input{margin-top:0}#va-search-listbox{position:absolute;top:37px;left:0;right:0;z-index:1;background-color:var(--vads-color-white);-webkit-box-shadow:0px 2px 6px 1px rgba(20, 20, 20, 0.14);box-shadow:0px 2px 6px 1px rgba(20, 20, 20, 0.14);line-height:24px;list-style-type:none;margin:0;padding:0}.va-search-suggestion{cursor:pointer;padding:8px}.va-search-suggestion[aria-selected=true],.va-search-suggestion:focus,.va-search-suggestion:hover{background-color:var(--vads-color-primary);color:var(--vads-color-white)}:host([big=true]) #va-search-listbox{top:52px}.usa-input{max-width:1024px}@media screen and (min-width: 480px){:host .usa-search [type=submit]{width:auto}}.usa-search__clear-input{cursor:pointer;background-color:transparent;opacity:0.6;border:0px;bottom:1px;position:absolute;top:1px;z-index:100;right:calc(3rem + 3px);margin-right:32px}button.usa-search__clear-input:not([disabled]):focus{outline-offset:-4px}:host([big=true]) .usa-search__clear-input{right:calc(6rem + 6px)}:host([small=true]) .usa-search__clear-input{right:calc(0.5rem + 6px)}@media (max-width: 29.99em){.usa-search__clear-input{right:calc(0.5rem + 6px) !important}}.usa-search__clear-input_empty{display:none}.usa-search__input-wrapper{width:100%;max-width:1024px;position:relative}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,5845],{4569:function(t,e,a){a.r(e),a.d(e,{c:function(){return s}});var o,u={exports:{}};o=u,function(){var t={}.hasOwnProperty;function e(){for(var a=[],o=0;o<arguments.length;o++){var u=arguments[o];if(u){var s=typeof u;if("string"===s||"number"===s)a.push(u);else if(Array.isArray(u)){if(u.length){var n=e.apply(null,u);n&&a.push(n)}}else if("object"===s)if(u.toString===Object.prototype.toString)for(var i in u)t.call(u,i)&&u[i]&&a.push(i);else a.push(u.toString())}}return a.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var s=u.exports},5845:function(t,e,a){a.r(e),a.d(e,{va_search_input:function(){return s}});var o=a(7911),u=a(4569),s=function(){function t(t){var e=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.handleBlur=function(){e.disableAnalytics||e.componentLibraryAnalytics.emit({componentName:"va-search-input",action:"blur",details:{value:e.value}}),e.isTouched=!1,e.isListboxOpen=!1},this.handleSubmit=function(){var t=e.el.shadowRoot.querySelector("form");t&&(t.onsubmit=function(t){t.preventDefault()}),e.el.dispatchEvent(new SubmitEvent("submit",{bubbles:!0,cancelable:!0,composed:!0})),e.disableAnalytics||e.componentLibraryAnalytics.emit({componentName:"va-search-input",action:"click",details:{value:e.value}})},this.handleInput=function(t){e.value=t.target.value,e.showClearButton=!!e.value,e.suggestions&&e.updateSuggestions(e.suggestions)},this.handleInputFocus=function(){e.isTouched=!0,e.formattedSuggestions.length&&!e.isListboxOpen&&(e.isListboxOpen=!0)},this.handleInputKeyDown=function(t){var a=e.el.shadowRoot.querySelectorAll('[role="option"]');switch(t.key){case"ArrowDown":if(t.preventDefault(),!(null==a?void 0:a.length))return;var o=a[0];e.selectSuggestion(o);break;case"ArrowUp":if(t.preventDefault(),!(null==a?void 0:a.length))return;var u=a[a.length-1];e.selectSuggestion(u);break;case"Enter":t.preventDefault(),e.handleSubmit();break;case"Escape":e.inputRef.value="",e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}));break;case"Tab":e.isListboxOpen=!1}},this.handleButtonClick=function(){e.handleSubmit()},this.handleClearButtonClick=function(){e.inputRef.value="",e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.focus()},this.handleListboxClick=function(t){var a=e.el.shadowRoot.getElementById("listbox-option-".concat(t));e.inputRef.value=a.innerText,e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.removeAttribute("aria-activedescendant"),e.isListboxOpen=!1,e.value=a.innerText,e.handleSubmit()},this.handleListboxKeyDown=function(t,a){var o=e.el.shadowRoot.querySelectorAll('[role="option"]');switch(t.key){case"ArrowUp":t.preventDefault(),0===a?e.selectSuggestion(o[o.length-1]):e.selectSuggestion(o[a-1]);break;case"ArrowDown":t.preventDefault(),a===o.length-1?e.selectSuggestion(o[0]):e.selectSuggestion(o[a+1]);break;case"Enter":t.preventDefault(),e.inputRef.value=o[a].innerText,e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.focus(),e.inputRef.removeAttribute("aria-activedescendant"),e.isListboxOpen=!1,e.isTouched=!1,e.handleSubmit();break;case"Escape":e.inputRef.value="",e.inputRef.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),e.inputRef.focus(),e.inputRef.removeAttribute("aria-activedescendant"),e.isListboxOpen=!1;break;case"Home":t.preventDefault(),e.inputRef.focus(),e.inputRef.setSelectionRange(0,0);break;case"ArrowRight":case"End":t.preventDefault(),e.inputRef.focus(),e.inputRef.setSelectionRange(e.inputRef.value.length+1,e.inputRef.value.length+1);break;case"ArrowLeft":t.preventDefault(),e.inputRef.focus(),e.inputRef.setSelectionRange(e.inputRef.value.length,e.inputRef.value.length);break;default:e.inputRef.focus()}},this.formatSuggestion=function(t){var a=t.toLowerCase(),u=e.inputRef.value.toLowerCase();return a.includes(u)?(0,o.h)(o.F,null,u,(0,o.h)("strong",null,a.replace(u,""))):(0,o.h)("strong",null,a)},this.selectSuggestion=function(t){var a=e.el.shadowRoot.querySelector('[aria-selected="true"]');null==a||a.removeAttribute("aria-selected"),t.focus(),t.setAttribute("aria-selected","true"),e.inputRef.setAttribute("aria-activedescendant",t.id)},this.updateSuggestions=function(t){if(!t.length)return e.formattedSuggestions=[],void(e.isListboxOpen=!1);e.formattedSuggestions=t.slice(0,5).sort().map((function(t){return e.formatSuggestion(t)})),e.isTouched?e.isListboxOpen=!0:e.isListboxOpen=!1},this.formattedSuggestions=[],this.isListboxOpen=void 0,this.isTouched=!1,this.buttonText="Search",this.label="Search",this.suggestions=void 0,this.value="",this.big=!1,this.small=!1,this.disableAnalytics=!1,this.showClearButton=!1}return t.prototype.componentWillLoad=function(){this.showClearButton=!!this.value},t.prototype.componentDidLoad=function(){var t;Array.isArray(this.suggestions)&&(null===(t=this.suggestions)||void 0===t?void 0:t.length)&&this.updateSuggestions(this.suggestions)},t.prototype.watchValueHandler=function(){this.value=this.inputRef.value},t.prototype.watchSuggestionsHandler=function(t){Array.isArray(t)&&this.updateSuggestions(t)},t.prototype.render=function(){var t=this,e=this,a=e.buttonText,s=e.formattedSuggestions,n=e.handleBlur,i=e.handleButtonClick,r=e.handleClearButtonClick,b=e.handleInput,l=e.handleInputFocus,d=e.handleInputKeyDown,c=e.handleListboxClick,h=e.handleListboxKeyDown,p=e.isListboxOpen,v=e.label,f=e.value,m=e.big,g=e.small,y=e.showClearButton,w=s.length,x=w?"list":void 0,k=w?"va-search-listbox":void 0,_=w?p?"true":"false":void 0,S=w?"listbox":void 0,D=w?"combobox":void 0,C=(0,u.c)({"usa-search":!0,"usa-search--big":m&&!g,"usa-search--small":g&&!m}),R=(0,u.c)({"usa-search__clear-input":!0,"usa-search__clear-input_empty":!y});return(0,o.h)(o.H,{key:"c28006e25d0fd00d4f91695f09ce6f9ec491cda7",onBlur:n},(0,o.h)("form",{key:"3b056583d91d92fbc53f7a645d88830487164923",class:C,role:"search"},(0,o.h)("label",{key:"8471b1739cdca199dac95f3076e92a97017e982c",class:"usa-sr-only",htmlFor:"search-field"},v),(0,o.h)("div",{key:"ccac89ae2dd53dc0956ade2a5f9a6ce7a5c024f4",class:"usa-search__input-wrapper"},(0,o.h)("input",{key:"644a2908234517c5b8220ee0c0a630383cfdc6d4",class:"usa-input",id:"search-field",name:"search",type:"search",ref:function(e){return t.inputRef=e},"aria-autocomplete":x,"aria-controls":k,"aria-expanded":_,"aria-haspopup":S,"aria-label":v,autocomplete:"off",onFocus:l,onInput:b,onKeyDown:d,role:D,value:f}),(0,o.h)("button",{key:"f1dc6ba8bbeae3d36eca1b1f21507f28b4905816",type:"button",onClick:r,class:R,"aria-label":"Clear the search contents"},(0,o.h)("va-icon",{key:"2707c8a0dfabb234858dfe24d4aae0a36de817b7",class:"usa-search__clear-icon",icon:"close",size:3})),(0,o.h)("button",{key:"24e1a6bef1314387d27ba6a96f1658e06e67b2be",class:"usa-button",type:"submit",onClick:i},!g&&(0,o.h)("span",{key:"b61e84fe7c14deea0be9a11dd79c23fb314029a9",class:"usa-search__submit-text"},a),(0,o.h)("va-icon",{key:"d786f93cb2b366568ed4a045009a36e0c10278aa",class:"usa-search__submit-icon",icon:"search",size:3,srtext:"Search"}))),p&&(0,o.h)("ul",{key:"5aea1bb62818350b7b7b38a4c2ca31a28f77e023",id:"va-search-listbox","aria-label":"Search Suggestions",role:"listbox"},s.map((function(t,e){return(0,o.h)("li",{id:"listbox-option-".concat(e),class:"va-search-suggestion",onClick:function(){return c(e)},onKeyDown:function(t){return h(t,e)},role:"option",tabIndex:-1},t)})))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"watchers",{get:function(){return{value:["watchValueHandler"],suggestions:["watchSuggestionsHandler"]}},enumerable:!1,configurable:!0}),t}();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}input,select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0.1rem solid var(--vads-color-base-dark);border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--vads-color-base-darkest);display:block;font-size:1.06rem;height:2.625rem;line-height:1.3;margin:0.2em 0;max-width:46rem;padding:1rem 0.7em;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-search{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;position:relative}.usa-search::after{clear:both;content:"";display:block}.usa-search[role=search],.usa-search[role=search]>div,.usa-search [role=search]{display:-ms-flexbox;display:flex}.usa-search [type=submit]{border-bottom-left-radius:0;border-top-left-radius:0;height:2rem;margin:0;padding:0;width:3rem}@media all and (min-width: 30em){.usa-search [type=submit]{padding-left:1rem;padding-right:1rem;width:auto}}@media (forced-colors: active){.usa-search [type=submit]::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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;content:"";vertical-align:middle;margin-right:auto}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-search [type=submit]::before{background:none;background-color:ButtonText;-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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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%22M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}.usa-search [type=submit]:focus{outline-offset:0}}@media (forced-colors: active) and (min-width: 30em){.usa-search [type=submit]::before{content:none}}@media all and (min-width: 30em){.usa-search__submit-icon{display:none}}@media (forced-colors: active){.usa-search__submit-icon{display:none}}@media all and (min-width: 30em){.usa-search--big [type=search],.usa-search--big .usa-search__input{font-size:1.06rem;height:3rem}}@media all and (min-width: 30em){.usa-search--big [type=submit],.usa-search--big .usa-search__submit{padding-left:2rem;padding-right:2rem;font-size:1.46rem;height:3rem;width:auto}}.usa-search--small [type=submit],.usa-search--small .usa-search__submit{padding-left:0.75rem;padding-right:0.75rem;min-width:3rem}@media (forced-colors: active) and (min-width: 30em){.usa-search--small [type=submit]::before{content:""}}.usa-search--small .usa-search__submit-icon{height:1.5rem;width:1.5rem;display:block}@media (forced-colors: active){.usa-search--small .usa-search__submit-icon{display:none}}input[type=search]{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}[type=search],.usa-search__input{padding-bottom:0;padding-top:0;border-bottom-right-radius:0;border-right:none;border-top-right-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;font-size:1rem;height:2rem;margin:0}.usa-search__submit-text{display:none}@media all and (min-width: 30em){.usa-search__submit-text{display:block}}.usa-button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;color:white;background-color:#005ea2;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-align:center;align-items:center;border:0;border-radius:0.25rem;cursor:pointer;-webkit-column-gap:0.5rem;-moz-column-gap:0.5rem;column-gap:0.5rem;display:-ms-inline-flexbox;display:inline-flex;font-weight:700;-ms-flex-pack:center;justify-content:center;margin-right:0.5rem;padding:0.75rem 1.25rem;text-align:center;text-decoration:none;width:100%}@media all and (min-width: 30em){.usa-button{width:auto}}.usa-button:visited{color:white}.usa-button:hover,.usa-button.usa-button--hover{color:white;background-color:#1a4480;border-bottom:0;text-decoration:none}.usa-button:active,.usa-button.usa-button--active{color:white;background-color:#162e51}.usa-button:not([disabled]):focus,.usa-button:not([disabled]).usa-focus{outline-offset:0.25rem}.usa-button:disabled,.usa-button[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled:hover,.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled.usa-focus,.usa-button[aria-disabled=true]:hover,.usa-button[aria-disabled=true]:active,.usa-button[aria-disabled=true]:focus,.usa-button[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-button:disabled,.usa-button[aria-disabled=true]{border:0;color:GrayText}.usa-button:disabled:hover,.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled.usa-focus,.usa-button[aria-disabled=true]:hover,.usa-button[aria-disabled=true]:active,.usa-button[aria-disabled=true]:focus,.usa-button[aria-disabled=true].usa-focus{color:GrayText}}.usa-button:disabled.usa-button--hover,.usa-button:disabled.usa-button--active,.usa-button[aria-disabled=true].usa-button--hover,.usa-button[aria-disabled=true].usa-button--active{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled.usa-button--hover:hover,.usa-button:disabled.usa-button--hover:active,.usa-button:disabled.usa-button--hover:focus,.usa-button:disabled.usa-button--hover.usa-focus,.usa-button:disabled.usa-button--active:hover,.usa-button:disabled.usa-button--active:active,.usa-button:disabled.usa-button--active:focus,.usa-button:disabled.usa-button--active.usa-focus,.usa-button[aria-disabled=true].usa-button--hover:hover,.usa-button[aria-disabled=true].usa-button--hover:active,.usa-button[aria-disabled=true].usa-button--hover:focus,.usa-button[aria-disabled=true].usa-button--hover.usa-focus,.usa-button[aria-disabled=true].usa-button--active:hover,.usa-button[aria-disabled=true].usa-button--active:active,.usa-button[aria-disabled=true].usa-button--active:focus,.usa-button[aria-disabled=true].usa-button--active.usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-button:disabled.usa-button--hover,.usa-button:disabled.usa-button--active,.usa-button[aria-disabled=true].usa-button--hover,.usa-button[aria-disabled=true].usa-button--active{border:0;color:GrayText}.usa-button:disabled.usa-button--hover:hover,.usa-button:disabled.usa-button--hover:active,.usa-button:disabled.usa-button--hover:focus,.usa-button:disabled.usa-button--hover.usa-focus,.usa-button:disabled.usa-button--active:hover,.usa-button:disabled.usa-button--active:active,.usa-button:disabled.usa-button--active:focus,.usa-button:disabled.usa-button--active.usa-focus,.usa-button[aria-disabled=true].usa-button--hover:hover,.usa-button[aria-disabled=true].usa-button--hover:active,.usa-button[aria-disabled=true].usa-button--hover:focus,.usa-button[aria-disabled=true].usa-button--hover.usa-focus,.usa-button[aria-disabled=true].usa-button--active:hover,.usa-button[aria-disabled=true].usa-button--active:active,.usa-button[aria-disabled=true].usa-button--active:focus,.usa-button[aria-disabled=true].usa-button--active.usa-focus{color:GrayText}}@media (forced-colors: active){.usa-button:disabled:not(.usa-button--unstyled),.usa-button[aria-disabled=true]:not(.usa-button--unstyled){border:2px solid GrayText}}.usa-button .usa-icon{-ms-flex-negative:0;flex-shrink:0}@media (forced-colors: active){.usa-button:not(.usa-button--unstyled){border:2px solid transparent}}.usa-button--accent-cool{color:#1b1b1b;background-color:#00bde3}.usa-button--accent-cool:visited{color:#1b1b1b;background-color:#00bde3}.usa-button--accent-cool:hover,.usa-button--accent-cool.usa-button--hover{color:#1b1b1b;background-color:#28a0cb}.usa-button--accent-cool:active,.usa-button--accent-cool.usa-button--active{color:white;background-color:#07648d}.usa-button--accent-warm{color:#1b1b1b;background-color:#fa9441}.usa-button--accent-warm:visited{color:#1b1b1b;background-color:#fa9441}.usa-button--accent-warm:hover,.usa-button--accent-warm.usa-button--hover{color:white;background-color:#c05600}.usa-button--accent-warm:active,.usa-button--accent-warm.usa-button--active{color:white;background-color:#775540}.usa-button--outline{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px #005ea2;box-shadow:inset 0 0 0 2px #005ea2;color:#005ea2}.usa-button--outline:visited{color:#005ea2}.usa-button--outline:hover,.usa-button--outline.usa-button--hover{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px #1a4480;box-shadow:inset 0 0 0 2px #1a4480;color:#1a4480}.usa-button--outline:active,.usa-button--outline.usa-button--active{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px #162e51;box-shadow:inset 0 0 0 2px #162e51;color:#162e51}.usa-button--outline.usa-button--inverse{-webkit-box-shadow:inset 0 0 0 2px #dfe1e2;box-shadow:inset 0 0 0 2px #dfe1e2;color:#dfe1e2}.usa-button--outline.usa-button--inverse:visited{color:#dfe1e2}.usa-button--outline.usa-button--inverse:hover,.usa-button--outline.usa-button--inverse.usa-button--hover{-webkit-box-shadow:inset 0 0 0 2px #f0f0f0;box-shadow:inset 0 0 0 2px #f0f0f0;color:#f0f0f0}.usa-button--outline.usa-button--inverse:active,.usa-button--outline.usa-button--inverse.usa-button--active{background-color:transparent;-webkit-box-shadow:inset 0 0 0 2px white;box-shadow:inset 0 0 0 2px white;color:white}.usa-button--outline.usa-button--inverse.usa-button--unstyled{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;color:#dfe1e2}.usa-button--outline.usa-button--inverse.usa-button--unstyled:visited{color:#54278f}.usa-button--outline.usa-button--inverse.usa-button--unstyled:hover{color:#1a4480}.usa-button--outline.usa-button--inverse.usa-button--unstyled:active{color:#162e51}.usa-button--outline.usa-button--inverse.usa-button--unstyled:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-button--outline.usa-button--inverse.usa-button--unstyled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled.usa-button--hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true].usa-button--hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--active,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled.usa-button--active,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true].usa-button--active,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled.usa-focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true].usa-focus,.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true],.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--hover{color:#1a4480}.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--active{color:#162e51}.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true],.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true],.usa-button--outline.usa-button--inverse.usa-button--unstyled:disabled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled[aria-disabled=true]:focus{color:GrayText}}.usa-button--outline.usa-button--inverse.usa-button--unstyled:visited{color:#dfe1e2}.usa-button--outline.usa-button--inverse.usa-button--unstyled:hover,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--hover{color:#f0f0f0}.usa-button--outline.usa-button--inverse.usa-button--unstyled:active,.usa-button--outline.usa-button--inverse.usa-button--unstyled.usa-button--active{color:white}.usa-button--base{color:white;background-color:#71767a}.usa-button--base:hover,.usa-button--base.usa-button--hover{color:white;background-color:#565c65}.usa-button--base:active,.usa-button--base.usa-button--active{color:white;background-color:#3d4551}.usa-button--secondary{color:white;background-color:#d83933}.usa-button--secondary:hover,.usa-button--secondary.usa-button--hover{color:white;background-color:#b50909}.usa-button--secondary:active,.usa-button--secondary.usa-button--active{color:white;background-color:#8b0a03}.usa-button--big{border-radius:0.25rem;font-size:1.46rem;padding:1rem 1.5rem}.usa-button--outline:disabled,.usa-button--outline:disabled:hover,.usa-button--outline:disabled:active,.usa-button--outline:disabled:focus,.usa-button--outline[aria-disabled=true],.usa-button--outline[aria-disabled=true]:hover,.usa-button--outline[aria-disabled=true]:active,.usa-button--outline[aria-disabled=true]:focus,.usa-button--outline-inverse:disabled,.usa-button--outline-inverse:disabled:hover,.usa-button--outline-inverse:disabled:active,.usa-button--outline-inverse:disabled:focus,.usa-button--outline-inverse[aria-disabled=true],.usa-button--outline-inverse[aria-disabled=true]:hover,.usa-button--outline-inverse[aria-disabled=true]:active,.usa-button--outline-inverse[aria-disabled=true]:focus{background-color:transparent;color:#757575}.usa-button--outline:disabled,.usa-button--outline[aria-disabled=true]{-webkit-box-shadow:inset 0 0 0 2px #c9c9c9;box-shadow:inset 0 0 0 2px #c9c9c9}.usa-button--outline:disabled.usa-button--inverse,.usa-button--outline[aria-disabled=true].usa-button--inverse{-webkit-box-shadow:inset 0 0 0 2px #919191;box-shadow:inset 0 0 0 2px #919191;color:#919191}@media (forced-colors: active){.usa-button--outline:disabled.usa-button--inverse,.usa-button--outline[aria-disabled=true].usa-button--inverse{color:GrayText}}.usa-button--unstyled{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto}.usa-button--unstyled:visited{color:#54278f}.usa-button--unstyled:hover{color:#1a4480}.usa-button--unstyled:active{color:#162e51}.usa-button--unstyled:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-button--unstyled:hover,.usa-button--unstyled.usa-button--hover,.usa-button--unstyled:disabled:hover,.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--unstyled:disabled.usa-button--hover,.usa-button--unstyled[aria-disabled=true].usa-button--hover,.usa-button--unstyled:active,.usa-button--unstyled.usa-button--active,.usa-button--unstyled:disabled:active,.usa-button--unstyled[aria-disabled=true]:active,.usa-button--unstyled:disabled.usa-button--active,.usa-button--unstyled[aria-disabled=true].usa-button--active,.usa-button--unstyled:disabled:focus,.usa-button--unstyled[aria-disabled=true]:focus,.usa-button--unstyled:disabled.usa-focus,.usa-button--unstyled[aria-disabled=true].usa-focus,.usa-button--unstyled:disabled,.usa-button--unstyled[aria-disabled=true],.usa-button--unstyled.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-button--unstyled.usa-button--hover{color:#1a4480}.usa-button--unstyled.usa-button--active{color:#162e51}.usa-button--unstyled:disabled,.usa-button--unstyled[aria-disabled=true],.usa-button--unstyled:disabled:hover,.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--unstyled[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-button--unstyled:disabled,.usa-button--unstyled[aria-disabled=true],.usa-button--unstyled:disabled:hover,.usa-button--unstyled[aria-disabled=true]:hover,.usa-button--unstyled[aria-disabled=true]:focus{color:GrayText}}.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}:host input[type=search]::-webkit-search-decoration,:host input[type=search]::-webkit-search-cancel-button,:host input[type=search]::-webkit-search-results-button,:host input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.usa-input{margin-top:0}#va-search-listbox{position:absolute;top:37px;left:0;right:0;z-index:1;background-color:var(--vads-color-white);-webkit-box-shadow:0px 2px 6px 1px rgba(20, 20, 20, 0.14);box-shadow:0px 2px 6px 1px rgba(20, 20, 20, 0.14);line-height:24px;list-style-type:none;margin:0;padding:0}.va-search-suggestion{cursor:pointer;padding:8px}.va-search-suggestion[aria-selected=true],.va-search-suggestion:focus,.va-search-suggestion:hover{background-color:var(--vads-color-primary);color:var(--vads-color-white)}:host([big=true]) #va-search-listbox{top:52px}.usa-input{max-width:1024px}@media screen and (min-width: 480px){:host .usa-search [type=submit]{width:auto}}.usa-search__clear-input{cursor:pointer;background-color:transparent;opacity:0.6;border:0px;bottom:1px;position:absolute;top:1px;z-index:100;right:calc(3rem + 3px);margin-right:32px}button.usa-search__clear-input:not([disabled]):focus{outline-offset:-4px}:host([big=true]) .usa-search__clear-input{right:calc(6rem + 6px)}:host([small=true]) .usa-search__clear-input{right:calc(0.5rem + 6px)}@media (max-width: 29.99em){.usa-search__clear-input{right:calc(0.5rem + 6px) !important}}.usa-search__clear-input_empty{display:none}.usa-search__input-wrapper{width:100%;max-width:1024px;position:relative}'}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5938.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([[4569,5938],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var n,i={exports:{}};n=i,function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if("string"===o||"number"===o)r.push(i);else if(Array.isArray(i)){if(i.length){var a=t.apply(null,i);a&&r.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&r.push(s);else r.push(i.toString())}}return r.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();var o=i.exports},5938:function(e,t,r){r.r(t),r.d(t,{va_sidenav_submenu:function(){return o}});var n=r(7911),i=r(4569),o=function(){function e(e){(0,n.r)(this,e),this.vaRouteChange=(0,n.c)(this,"vaRouteChange",7),this.label=void 0,this.href=void 0,this.currentPage=void 0,this.routerLink=void 0,this.hasCurrentPageItem=!1,this.isCurrentPage=!1}return e.prototype.componentWillLoad=function(){this.href&&this.currentPage&&(this.isCurrentPage=!0)},e.prototype.componentDidLoad=function(){var e=this;setTimeout((function(){e.checkForCurrentPageItem(),e.setupMutationObserver()}),0)},e.prototype.disconnectedCallback=function(){this.mutationObserver&&this.mutationObserver.disconnect()},e.prototype.onSlotChange=function(){this.checkForCurrentPageItem(),this.mutationObserver&&(this.mutationObserver.disconnect(),this.setupMutationObserver())},e.prototype.setupMutationObserver=function(){var e,t=this;this.mutationObserver=new MutationObserver((function(e){var r=e.some((function(e){return"attributes"===e.type&&"current-page"===e.attributeName}));r&&t.checkForCurrentPageItem()})),this.mutationObserver.observe(this.el,{attributes:!0,attributeFilter:["current-page"]});var r=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot");r&&r.assignedElements().forEach((function(e){t.mutationObserver.observe(e,{attributes:!0,attributeFilter:["current-page"]})}))},e.prototype.handleClick=function(e){this.routerLink&&(e.preventDefault(),this.vaRouteChange.emit({href:this.href}))},e.prototype.isCurrentPageItem=function(e){return"va-sidenav-item"===e.tagName.toLowerCase()&&e.hasAttribute("current-page")&&"false"!==e.getAttribute("current-page")},e.prototype.checkForCurrentPageItem=function(){var e,t=this,r=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot"),n=null==r?void 0:r.assignedElements();if(!r||!n||0===n.length)return this.isCurrentPage=this.href&&this.currentPage,void(this.hasCurrentPageItem=!1);var i=!1;n.forEach((function(e){t.isCurrentPageItem(e)&&(i=!0)})),this.hasCurrentPageItem=i,this.isCurrentPage=!i&&this.href&&this.currentPage},e.prototype.render=function(){var e=(0,i.c)({"va-sidenav-submenu__current":this.hasCurrentPageItem||this.isCurrentPage}),t=(0,i.c)({"va-sidenav-submenu__current-link":this.isCurrentPage,"va-sidenav-submenu__link":!0}),r=this.currentPage?"#content":this.href;return(0,n.h)(n.H,{key:"c26647708bdc5df137aab518127a30f7d808da8e",role:"listitem",class:e},this.href?(0,n.h)("a",{class:t,href:r,"aria-current":this.currentPage?"page":void 0,onClick:this.handleClick.bind(this)},this.label):(0,n.h)("div",{id:"va-sidenav-submenu__label",class:"va-sidenav-submenu__label"},this.label),(0,n.h)("div",{key:"9f15a2a0eacbe93a41cb6db42a2d215fb44e3c5c",role:"list","aria-describedby":"va-sidenav-submenu__label"},(0,n.h)("slot",{key:"6d01c9672e7d71941d6740fefdf5dc8e5396703f"})))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();o.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}:host{list-style-type:none;padding-left:0;margin:0;position:relative;display:block;height:100%}.va-sidenav-submenu__label{border-bottom:1px solid var(--vads-color-base-lightest);color:var(--vads-color-base);font-size:0.8625rem;font-weight:700;padding:0.7rem 1rem;padding-left:1rem;text-transform:uppercase}a:hover{background-color:var(--vads-color-base-lightest);-webkit-box-shadow:none;box-shadow:none}.va-sidenav-submenu__link{border-bottom:1px solid var(--vads-color-base-lightest);color:var(--vads-color-link);display:block;padding:0.7rem 1rem;padding-left:var(--va-sidenav-item-link-padding-left, 1rem);position:relative;text-decoration:none}.va-sidenav-submenu__current-link{font-weight:var(--font-weight-bold)}.va-sidenav-submenu__current-link::after{background-color:var(--vads-color-link);content:"";display:block;position:absolute;bottom:0.25rem;top:0.25rem;width:0.25rem;left:0;z-index:1}::slotted(va-sidenav-item){--va-sidenav-item-link-padding-left:2rem}:host(.va-sidenav-submenu__current)::after{background-color:var(--vads-color-primary-lighter);content:"";display:block;position:absolute;bottom:0;top:0;width:0.25rem;left:0}'}}]);
@@ -0,0 +1,5 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 5990.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([[4569,5990],{4569:function(t,o,e){e.r(o),e.d(o,{c:function(){return r}});var i,n={exports:{}};i=n,function(){var t={}.hasOwnProperty;function o(){for(var e=[],i=0;i<arguments.length;i++){var n=arguments[i];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)t.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}i.exports?(o.default=o,i.exports=o):window.classNames=o}();var r=n.exports},5990:function(t,o,e){e.r(o),e.d(o,{va_additional_info:function(){return r}});var i=e(7911),n=e(4569),r=function(){function t(t){(0,i.r)(this,t),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.open=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.disableBorder=!1}return t.prototype.handleResize=function(){this.updateInfoMaxHeight()},t.prototype.toggleOpen=function(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-additional-info",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open},t.prototype.handleKeydown=function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.toggleOpen())},t.prototype.updateInfoMaxHeight=function(){var t,o=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.getElementById("info");if(o){var e=o.scrollHeight+"px";o.style.setProperty("--calc-max-height","calc("+e+" + 1.125rem)")}},t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){return t.updateInfoMaxHeight()}))},t.prototype.render=function(){var t=(0,n.c)({open:this.open,closed:!this.open});return(0,i.h)(i.H,{key:"55d487f1c1ae022603a9dbd61dbfd1f83a8d8afa"},(0,i.h)("a",{key:"bfa55efc97aab5fb0809dd89c4b891840e6b3d71",role:"button","aria-controls":"info","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this)},(0,i.h)("div",{key:"e773fc4b5720c6cdd81c1eb53316602c298b8cbf"},(0,i.h)("span",{key:"c364063df56e845ea966b522e6a52c2ebc0960f6",class:"additional-info-title"},this.trigger),(0,i.h)("va-icon",{key:"ecad44dd464da88a67844af4eda51b47750224ed",class:"additional-info-icon",icon:"chevron_right",size:3}))),(0,i.h)("div",{key:"53c8dbd2478d6972e983268f94f93db41006eabd",id:"info",class:t},(0,i.h)("slot",{key:"b83dee0c9486de58f4281dc3b8987ab6ae708db7"})))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),t}();r.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}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)}:host{display:block}:host(:not([disable-border])) a[aria-expanded='true']~#info,:host([disable-border='false']) a[aria-expanded='true']~#info{padding-left:calc(20px - 4px);border-left:4px solid transparent;border-left-color:var(--vads-color-primary-alt-darkest)}#info{overflow:hidden}#info.closed{visibility:hidden}a{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex}.additional-info-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-darkest);color:var(--vads-color-base-darker);cursor:pointer}.closed{opacity:0;max-height:0}.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height);margin-bottom:16px;margin-top:16px}.additional-info-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded='true'] .additional-info-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}::slotted(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,5990],{4569:function(t,o,e){e.r(o),e.d(o,{c:function(){return a}});var i,n={exports:{}};i=n,function(){var t={}.hasOwnProperty;function o(){for(var e=[],i=0;i<arguments.length;i++){var n=arguments[i];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var r=o.apply(null,n);r&&e.push(r)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)t.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}i.exports?(o.default=o,i.exports=o):window.classNames=o}();var a=n.exports},5990:function(t,o,e){e.r(o),e.d(o,{va_additional_info:function(){return a}});var i=e(7911),n=e(4569),a=function(){function t(t){(0,i.r)(this,t),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.open=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.disableBorder=!1}return t.prototype.handleResize=function(){this.updateInfoMaxHeight()},t.prototype.toggleOpen=function(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-additional-info",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open},t.prototype.handleKeydown=function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.toggleOpen())},t.prototype.updateInfoMaxHeight=function(){var t,o=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.getElementById("info");if(o){var e=o.scrollHeight+"px";o.style.setProperty("--calc-max-height","calc("+e+" + 1.125rem)")}},t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){return t.updateInfoMaxHeight()}))},t.prototype.render=function(){var t=(0,n.c)({open:this.open,closed:!this.open});return(0,i.h)(i.H,{key:"55d487f1c1ae022603a9dbd61dbfd1f83a8d8afa"},(0,i.h)("a",{key:"bfa55efc97aab5fb0809dd89c4b891840e6b3d71",role:"button","aria-controls":"info","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this)},(0,i.h)("div",{key:"e773fc4b5720c6cdd81c1eb53316602c298b8cbf"},(0,i.h)("span",{key:"c364063df56e845ea966b522e6a52c2ebc0960f6",class:"additional-info-title"},this.trigger),(0,i.h)("va-icon",{key:"ecad44dd464da88a67844af4eda51b47750224ed",class:"additional-info-icon",icon:"chevron_right",size:3}))),(0,i.h)("div",{key:"53c8dbd2478d6972e983268f94f93db41006eabd",id:"info",class:t},(0,i.h)("slot",{key:"b83dee0c9486de58f4281dc3b8987ab6ae708db7"})))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),t}();a.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)}:host{display:block}:host(:not([disable-border])) a[aria-expanded='true']~#info,:host([disable-border='false']) a[aria-expanded='true']~#info{padding-left:calc(20px - 4px);border-left:4px solid transparent;border-left-color:var(--vads-color-primary-alt-darkest)}#info{overflow:hidden}#info.closed{visibility:hidden}a{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex}.additional-info-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-darkest);color:var(--vads-color-base-darker);cursor:pointer}.closed{opacity:0;max-height:0}.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height);margin-bottom:16px;margin-top:16px}.additional-info-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded='true'] .additional-info-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}::slotted(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[606],{606:function(e,t,r){r.r(t),r.d(t,{va_sidenav:function(){return a}});var n=r(7911),a=function(){function e(e){var t=this;(0,n.r)(this,e),this.isDesktop=window.innerWidth>640,this.iconBackgroundColorStyle=function(){return{backgroundColor:"var(--".concat(t.iconBackgroundColor,")")}},this.ariaLabel="Related pages menu",this.header=void 0,this.iconName=void 0,this.iconBackgroundColor="vads-color-primary"}return e.prototype.handleResize=function(){this.isDesktop=window.innerWidth>640,(0,n.f)(this)},e.prototype.setOnlyOneCurrentPage=function(){this.el.querySelectorAll("va-sidenav-item[current-page], va-sidenav-submenu[current-page]").forEach((function(e,t){t>0&&e.setAttribute("current-page","false")}))},e.prototype.setupCurrentPageObserver=function(){var e=this;this.mutationObserver=new MutationObserver((function(t){var r=t.filter((function(e){return"attributes"===e.type&&"current-page"===e.attributeName}));if(r.length>0){var n=r[0].target;"true"===n.getAttribute("current-page")&&e.el.querySelectorAll("va-sidenav-item[current-page], va-sidenav-submenu[current-page]").forEach((function(e){e!==n&&e.removeAttribute("current-page")}))}})),this.mutationObserver.observe(this.el,{attributes:!0,attributeFilter:["current-page"],subtree:!0})},e.prototype.componentWillLoad=function(){this.setOnlyOneCurrentPage()},e.prototype.componentDidLoad=function(){this.setupCurrentPageObserver()},e.prototype.disconnectedCallback=function(){this.mutationObserver&&this.mutationObserver.disconnect()},e.prototype.render=function(){return this.isDesktop?(0,n.h)(n.H,null,(0,n.h)("nav",{"aria-label":this.ariaLabel},this.header&&(0,n.h)("span",{class:"va-sidenav__header"},this.iconName?(0,n.h)("span",{class:"va-sidenav__icon-background",style:this.iconBackgroundColorStyle()},(0,n.h)("va-icon",{icon:this.iconName})):null,this.header),(0,n.h)("div",{role:"list",class:"va-sidenav__list"},(0,n.h)("slot",null)))):(0,n.h)(n.H,null,(0,n.h)("va-accordion",{"open-single":!0},(0,n.h)("va-accordion-item",{bordered:!0,header:this.ariaLabel},(0,n.h)("nav",{"aria-label":this.ariaLabel},(0,n.h)("div",{role:"list",class:"va-sidenav__list"},(0,n.h)("slot",null))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();a.style=":host{display:block}.va-sidenav__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;font-size:var(--vads-font-size-source-sans-normalized);line-height:var(--vads-font-line-height-2);border-top:1px solid var(--vads-color-base-lighter)}.va-sidenav__header{-ms-flex-align:center;align-items:center;color:var(--vads-color-base);display:-ms-flexbox;display:flex;font-family:var(--font-serif);font-size:var(--font-size-h4);font-weight:var(--font-weight-bold);margin-bottom:12px;margin-top:0}.va-sidenav__header .va-sidenav__icon-background{font-size:24px}.va-sidenav__icon-background{color:var(--vads-color-white);border-radius:50%;width:40px;height:40px;margin-right:8px;position:relative}.va-sidenav__icon-background va-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}va-accordion-item::part(accordion-header){padding-left:1.4rem}"}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 6095.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([[4569,6095],{4569:function(t,e,n){n.r(e),n.d(e,{c:function(){return r}});var o,i={exports:{}};o=i,function(){var t={}.hasOwnProperty;function e(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var r=typeof i;if("string"===r||"number"===r)n.push(i);else if(Array.isArray(i)){if(i.length){var s=e.apply(null,i);s&&n.push(s)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var a in i)t.call(i,a)&&i[a]&&n.push(a);else n.push(i.toString())}}return n.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var r=i.exports},6095:function(t,e,n){n.r(e),n.d(e,{va_back_to_top:function(){return r}});var o=n(7911),i=n(4569);!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=i(t);e;)e=i(t=e.ownerDocument);return t}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?u(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(a(n,"resize",o,!0),a(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",o,!0)),c(e,"scroll",o,!0),s&&s.disconnect()}));var l=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=l){var d=i(e);d&&this._monitorIntersections(d.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=o){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=d(i),a=this._rootContainsTarget(i),c=o.entry,l=t&&a&&this._computeTargetAndRootIntersection(i,s,e),h=null;this._rootContainsTarget(i)?n&&!this.root||(h=e):h={top:0,bottom:0,left:0,right:0,width:0,height:0};var u=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:h,intersectionRect:l});c?t&&a?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=p(e),c=!1;!c&&a;){var h=null,f=1==a.nodeType?window.getComputedStyle(a):{};if("none"==f.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==t)n&&!this.root?!o||0==o.width&&0==o.height?(a=null,h=null,s=null):h=o:h=r;else{var m=p(a),b=m&&d(m),v=m&&this._computeTargetAndRootIntersection(m,b,r);b&&v?(a=m,h=u(b,v)):(a=null,s=null)}else{var g=a.ownerDocument;a!=g.body&&a!=g.documentElement&&"visible"!=f.overflow&&(h=d(a))}if(h&&(s=l(h,s)),!s)break;a=a&&p(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=d(this.root);else{var n=m(this.root)?this.root:t,o=n.documentElement,i=n.body;e={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return f(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=h(t.rootBounds),this.boundingClientRect=h(t.boundingClientRect),this.intersectionRect=h(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function l(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function d(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function u(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(t){return t&&9===t.nodeType}}();var r=function(){function t(t){(0,o.r)(this,t),this.revealed=!1,this.isDocked=!1}return t.prototype.componentDidLoad=function(){var t=this;new IntersectionObserver((function(e){t.isDocked=e[0].isIntersecting||e[0].boundingClientRect.y<0}),{threshold:1}).observe(this.el),new IntersectionObserver((function(e){t.revealed=e[0].boundingClientRect.y<0})).observe(this.revealPixel)},t.prototype.navigateToTop=function(t){t.preventDefault();var e=document.querySelector("h1");return e&&(e.setAttribute("tabindex","-1"),e.focus(),e.addEventListener("blur",(function(){return e.removeAttribute("tabindex")}))),window.scrollTo(0,0)},t.prototype.render=function(){var t=this,e=this.el.getBoundingClientRect().width;return this.el.style.setProperty("--undocked-width","".concat(e,"px")),(0,o.h)(o.H,{key:"2380b1ff798373de627e6212f4961ad0dd946a69"},(0,o.h)("span",{key:"78c6f0c3cde57d74a4f600175aeeddf2166bb60e",id:"marginWrapper"},(0,o.h)("span",{key:"977141669a0614448a1f39a468fb2245f90e2582",class:"reveal-point",ref:function(e){return t.revealPixel=e}}),(0,o.h)("div",{key:"9f3a848fc6524d45d0815b433e22c578ba857a1f",class:(0,i.c)({docked:this.isDocked,reveal:this.revealed})},(0,o.h)("a",{key:"a6061c9dba57bedf6ae1cf0a28425794b33ae0dc",href:"#ds-back-to-top",onClick:this.navigateToTop.bind(this)},(0,o.h)("span",{key:"e79fb84ddd27847aa14954fca7bf7191d5150012"},(0,o.h)("va-icon",{key:"ad5397645db5828817def44b5192a60a1557cf9b",icon:"arrow_upward",size:3}),(0,o.h)("span",{key:"a84aea8771638ab6d03502ac00ead1bc700e6f29",class:"sr-only"},"Back to top")," ",(0,o.h)("span",{key:"5467174ebb64f61eb769f4db1c0898d6ed2f7d80",class:"text"},"Back to top"))))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();r.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}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}#marginWrapper{display:block;width:100%;height:44px;margin-top:2.5rem;margin-bottom:1.25rem}div{position:fixed;bottom:0;width:100%}.reveal-point{position:absolute;width:1px;height:1px;top:var(--reveal-breakpoint, 37.5rem);left:0;}a{border-bottom-right-radius:0;border-top-right-radius:0;bottom:0;color:var(--vads-color-link);right:0;background:rgba(255, 255, 255, 0.9);height:48px;width:48px;margin-bottom:0.313rem;opacity:0;padding:0;pointer-events:none;position:absolute;-webkit-transition:background-color 0.25s ease-in;transition:background-color 0.25s ease-in}a:not([disabled]):active,a:not([disabled]):focus{border-radius:5px;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a:not([disabled]):hover{border-radius:5px;background-color:var(--vads-color-gray-cool-light);color:var(--vads-color-primary-darker)}div a{display:none}div.reveal a{display:inherit;border-bottom-left-radius:5px;border-top-left-radius:5px;text-decoration:none;pointer-events:auto;opacity:1;-webkit-animation:slideInUp 0.25s;animation:slideInUp 0.25s}div.reveal a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}div:not(.reveal) a{-webkit-animation:slideOutDown 0.25s;animation:slideOutDown 0.25s}@media (prefers-reduced-motion){a{-webkit-transition:none;transition:none}div.reveal a{-webkit-animation:none;animation:none}div:not(.reveal) a{-webkit-animation:none;animation:none}}a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}a span.text{display:none;font-weight:700}a span.sr-only{visibility:visible}div.docked{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}div:not(.docked){max-width:var(--undocked-width)}div:not(.docked):not(.reveal){position:relative}div.docked a{position:relative}va-icon{margin-right:0px}@media (min-width: 768px){a{height:44px;width:44px;padding:0 1rem;text-decoration:none;width:auto}a span.text{color:var(--vads-color-link);display:inline-block;text-decoration:underline}a span.sr-only{visibility:hidden}va-icon{margin-right:4px}}"}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,6095],{4569:function(t,e,n){n.r(e),n.d(e,{c:function(){return r}});var o,i={exports:{}};o=i,function(){var t={}.hasOwnProperty;function e(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var r=typeof i;if("string"===r||"number"===r)n.push(i);else if(Array.isArray(i)){if(i.length){var s=e.apply(null,i);s&&n.push(s)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var a in i)t.call(i,a)&&i[a]&&n.push(a);else n.push(i.toString())}}return n.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var r=i.exports},6095:function(t,e,n){n.r(e),n.d(e,{va_back_to_top:function(){return r}});var o=n(7911),i=n(4569);!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=i(t);e;)e=i(t=e.ownerDocument);return t}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?u(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(a(n,"resize",o,!0),a(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",o,!0)),c(e,"scroll",o,!0),s&&s.disconnect()}));var l=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=l){var d=i(e);d&&this._monitorIntersections(d.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=o){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=d(i),a=this._rootContainsTarget(i),c=o.entry,l=t&&a&&this._computeTargetAndRootIntersection(i,s,e),h=null;this._rootContainsTarget(i)?n&&!this.root||(h=e):h={top:0,bottom:0,left:0,right:0,width:0,height:0};var u=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:h,intersectionRect:l});c?t&&a?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=p(e),c=!1;!c&&a;){var h=null,f=1==a.nodeType?window.getComputedStyle(a):{};if("none"==f.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==t)n&&!this.root?!o||0==o.width&&0==o.height?(a=null,h=null,s=null):h=o:h=r;else{var m=p(a),b=m&&d(m),v=m&&this._computeTargetAndRootIntersection(m,b,r);b&&v?(a=m,h=u(b,v)):(a=null,s=null)}else{var g=a.ownerDocument;a!=g.body&&a!=g.documentElement&&"visible"!=f.overflow&&(h=d(a))}if(h&&(s=l(h,s)),!s)break;a=a&&p(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=d(this.root);else{var n=m(this.root)?this.root:t,o=n.documentElement,i=n.body;e={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return f(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=h(t.rootBounds),this.boundingClientRect=h(t.boundingClientRect),this.intersectionRect=h(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function l(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function d(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function u(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(t){return t&&9===t.nodeType}}();var r=function(){function t(t){(0,o.r)(this,t),this.revealed=!1,this.isDocked=!1}return t.prototype.componentDidLoad=function(){var t=this;new IntersectionObserver((function(e){t.isDocked=e[0].isIntersecting||e[0].boundingClientRect.y<0}),{threshold:1}).observe(this.el),new IntersectionObserver((function(e){t.revealed=e[0].boundingClientRect.y<0})).observe(this.revealPixel)},t.prototype.navigateToTop=function(t){t.preventDefault();var e=document.querySelector("h1");return e&&(e.setAttribute("tabindex","-1"),e.focus(),e.addEventListener("blur",(function(){return e.removeAttribute("tabindex")}))),window.scrollTo(0,0)},t.prototype.render=function(){var t=this,e=this.el.getBoundingClientRect().width;return this.el.style.setProperty("--undocked-width","".concat(e,"px")),(0,o.h)(o.H,{key:"2380b1ff798373de627e6212f4961ad0dd946a69"},(0,o.h)("span",{key:"78c6f0c3cde57d74a4f600175aeeddf2166bb60e",id:"marginWrapper"},(0,o.h)("span",{key:"977141669a0614448a1f39a468fb2245f90e2582",class:"reveal-point",ref:function(e){return t.revealPixel=e}}),(0,o.h)("div",{key:"9f3a848fc6524d45d0815b433e22c578ba857a1f",class:(0,i.c)({docked:this.isDocked,reveal:this.revealed})},(0,o.h)("a",{key:"a6061c9dba57bedf6ae1cf0a28425794b33ae0dc",href:"#ds-back-to-top",onClick:this.navigateToTop.bind(this)},(0,o.h)("span",{key:"e79fb84ddd27847aa14954fca7bf7191d5150012"},(0,o.h)("va-icon",{key:"ad5397645db5828817def44b5192a60a1557cf9b",icon:"arrow_upward",size:3}),(0,o.h)("span",{key:"a84aea8771638ab6d03502ac00ead1bc700e6f29",class:"sr-only"},"Back to top")," ",(0,o.h)("span",{key:"5467174ebb64f61eb769f4db1c0898d6ed2f7d80",class:"text"},"Back to top"))))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();r.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}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}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}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}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}#marginWrapper{display:block;width:100%;height:44px;margin-top:2.5rem;margin-bottom:1.25rem}div{position:fixed;bottom:0;width:100%}.reveal-point{position:absolute;width:1px;height:1px;top:var(--reveal-breakpoint, 37.5rem);left:0;}a{border-bottom-right-radius:0;border-top-right-radius:0;bottom:0;color:var(--vads-color-link);right:0;background:rgba(255, 255, 255, 0.9);height:48px;width:48px;margin-bottom:0.313rem;opacity:0;padding:0;pointer-events:none;position:absolute;-webkit-transition:background-color 0.25s ease-in;transition:background-color 0.25s ease-in}a:not([disabled]):active,a:not([disabled]):focus{border-radius:5px;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a:not([disabled]):hover{border-radius:5px;background-color:var(--vads-color-gray-cool-light);color:var(--vads-color-primary-darker)}div a{display:none}div.reveal a{display:inherit;border-bottom-left-radius:5px;border-top-left-radius:5px;text-decoration:none;pointer-events:auto;opacity:1;-webkit-animation:slideInUp 0.25s;animation:slideInUp 0.25s}div.reveal a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}div:not(.reveal) a{-webkit-animation:slideOutDown 0.25s;animation:slideOutDown 0.25s}@media (prefers-reduced-motion){a{-webkit-transition:none;transition:none}div.reveal a{-webkit-animation:none;animation:none}div:not(.reveal) a{-webkit-animation:none;animation:none}}a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}a span.text{display:none;font-weight:700}a span.sr-only{visibility:visible}div.docked{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}div:not(.docked){max-width:var(--undocked-width)}div:not(.docked):not(.reveal){position:relative}div.docked a{position:relative}va-icon{margin-right:0px}@media (min-width: 768px){a{height:44px;width:44px;padding:0 1rem;text-decoration:none;width:auto}a span.text{color:var(--vads-color-link);display:inline-block;text-decoration:underline}a span.sr-only{visibility:hidden}va-icon{margin-right:4px}}"}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 6308.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([[4569,6308,7508],{4569:function(e,t,a){a.r(t),a.d(t,{c:function(){return n}});var r,i={exports:{}};r=i,function(){var e={}.hasOwnProperty;function t(){for(var a=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var n=typeof i;if("string"===n||"number"===n)a.push(i);else if(Array.isArray(i)){if(i.length){var s=t.apply(null,i);s&&a.push(s)}}else if("object"===n)if(i.toString===Object.prototype.toString)for(var l in i)e.call(i,l)&&i[l]&&a.push(l);else a.push(i.toString())}}return a.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var n=i.exports},7508:function(e,t,a){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,t,a){void 0===a&&(a="slot");var r=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(r)}function n(e){return 1===e?"":"s"}function s(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(n(t)," allowed");var a;if(e.length<=t){var r=t-e.length;a="".concat(r," character").concat(n(r)," left")}else r=e.length-t,a="".concat(r," character").concat(n(r)," over limit");return a}function l(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return i},b:function(){return r},c:function(){return p},d:function(){return _},e:function(){return s},f:function(){return m},g:function(){return c},i:function(){return b},m:function(){return l},s:function(){return u}}),a(7911);var o=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!o(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||o(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.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 m(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function b(e){return e&&"false"!==e||!1}function h(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function _(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=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 _(i.call(e),i.call(t),a,r)}if(e.constructor!==t.constructor)return!1;var n=Object.keys(e),s=Object.keys(t);if(0===n.length&&0===s.length)return!0;if(n.length!==s.length)return!1;for(var l=a.length;l--;)if(a[l]===e)return r[l]===t;a.push(e),r.push(t),n.sort(),s.sort();for(var o=n.length-1;o>=0;o--)if(n[o]!==s[o])return!1;for(var u=void 0,d=n.length-1;d>=0;d--)if(!_(e[u=n[d]],t[u],a,r))return!1;return a.pop(),r.pop(),!0}function p(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var r=e.charAt(0).toLowerCase();return a.includes(r)?"an":"a"}},6308:function(e,t,a){a.r(t),a.d(t,{va_breadcrumbs:function(){return s}});var r=a(7911),i=a(7508),n=a(4569),s=function(){function e(e){(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.routeChange=(0,r.c)(this,"routeChange",7),this.label="Breadcrumb",this.wrapping=!1,this.breadcrumbList=void 0,this.homeVeteransAffairs=!0,this.currentPageRedirect=!1,this.formattedBreadcrumbs=[],this.disableAnalytics=!1}return e.prototype.updateBreadCrumbList=function(e){var t=e.map((function(e){return Object.assign({},e)})),a=t[0];a&&this.homeVeteransAffairs&&(a.label="VA.gov home"),(0,i.d)(this.formattedBreadcrumbs,t)||(this.formattedBreadcrumbs=t)},e.prototype.getClickLevel=function(e){return Array.from(this.el.shadowRoot.querySelectorAll("a")).findIndex((function(t){return t.isEqualNode(e)}))+1},e.prototype.fireAnalyticsEvent=function(e){if(!this.disableAnalytics){var t=e.target;if("A"===(null==t?void 0:t.tagName)){var a={componentName:"va-breadcrumbs",action:"linkClick",details:{clickLabel:t.innerText.trim(),clickLevel:this.getClickLevel(t),totalLevels:this.el.shadowRoot.querySelectorAll("a").length+1}};this.componentLibraryAnalytics.emit(a)}}},e.prototype.handleAnchorNode=function(e,t,a){var r=document.createElement("li");r.classList.add("va-breadcrumbs-li"),t===a.length-1&&e.setAttribute("aria-current","page"),e.parentNode.replaceChild(r,e),r.appendChild(e)},e.prototype.handleListNode=function(e,t,a){e.classList.add("va-breadcrumbs-li");var r=e.querySelector("a");r&&t===a.length-1&&r.setAttribute("aria-current","page")},e.prototype.validateBreadcrumbs=function(e){var t;if(Array.isArray(e))t=e;else{if("string"!=typeof e)return!1;try{t=JSON.parse(e)}catch(e){return!1}}return!(!Array.isArray(t)||!t.every((function(e){return"object"==typeof e&&e.hasOwnProperty("label")&&e.hasOwnProperty("href")})))&&t},e.prototype.validateAndFormatBreadcrumbs=function(){var e;if(null===(e=this.breadcrumbList)||void 0===e?void 0:e.length){var t=this.validateBreadcrumbs(this.breadcrumbList);t&&this.updateBreadCrumbList(t)}},e.prototype.componentDidLoad=function(){var e,t=this,a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes();a&&a.forEach((function(e,r){"LI"===e.nodeName?t.handleListNode(e,r,a):"A"===e.nodeName&&t.handleAnchorNode(e,r,a)}))},e.prototype.componentWillLoad=function(){this.validateAndFormatBreadcrumbs()},e.prototype.componentDidUpdate=function(){this.validateAndFormatBreadcrumbs()},e.prototype.handleSlotChange=function(){var e,t=this,a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes().filter((function(e){return"LI"===e.nodeName}));a&&a.forEach((function(e,r){if("LI"===e.nodeName){e.classList.add("usa-breadcrumb__list-item");var i=e.querySelector("a");0===r&&i&&t.homeVeteransAffairs&&(i.innerText="VA.gov home"),(null==i?void 0:i.getAttribute("aria-current"))&&r!==a.length-1&&i.removeAttribute("aria-current");var n=document.createElement("span");if(n.textContent=i.textContent,i.innerHTML="",i.appendChild(n),r===a.length-1){var s=document.createElement("span");s.textContent=i.textContent,e.classList.add("usa-current"),e.replaceChild(s,i),null==e||e.setAttribute("aria-current","page")}}}))},e.prototype.handleRouteChange=function(e,t){e.preventDefault(),this.routeChange.emit({href:t})},e.prototype.handleClick=function(e,t){var a=t.href;t.isRouterLink&&this.handleRouteChange(e,a),this.fireAnalyticsEvent(e)},e.prototype.render=function(){var e=this,t=this.label,a=this.wrapping,i=(0,n.c)({"usa-breadcrumb":!0,"usa-breadcrumb--wrap":a});return(0,r.h)(r.H,{key:"6619628e96af9526d218b6623d446f9f2289db0c"},(0,r.h)("nav",{key:"8ab1f50f166c03572d91d8a33dcfcda1cbe386cb","aria-label":t,class:i},(0,r.h)("ol",{key:"56472ddf58e9e7755f74b2e0f298adabd85d0c0a",role:"list",class:"usa-breadcrumb__list"},this.formattedBreadcrumbs.map((function(t,a){return(0,r.h)("li",{class:"usa-breadcrumb__list-item ".concat(a===e.formattedBreadcrumbs.length-1?"usa-current":""),"aria-current":a===e.formattedBreadcrumbs.length-1?"page":void 0},e.currentPageRedirect||a!==e.formattedBreadcrumbs.length-1?(0,r.h)("a",{class:"usa-breadcrumb__link",href:t.href,onClick:function(a){return e.handleClick(a,t)},lang:t.lang||"en-US",hreflang:t.lang||"en-US"},(0,r.h)("span",null,t.label)):(0,r.h)("a",{class:"usa-breadcrumb__link",href:"#content",onClick:function(t){return e.fireAnalyticsEvent(t)},lang:t.lang||"en-US",hreflang:t.lang||"en-US"},(0,r.h)("span",null,t.label)))})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-breadcrumb{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;color:#1b1b1b;background-color:white;padding-left:0;padding-right:0}@media all and (min-width: 30em){.usa-breadcrumb{padding-bottom:1rem;padding-top:1rem}}@media all and (min-width: 30em){.usa-breadcrumb:not(.usa-breadcrumb--wrap) .usa-breadcrumb__list{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}.usa-breadcrumb__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem}.usa-breadcrumb__list>li{margin-bottom:0;max-width:unset}.usa-breadcrumb__list-item{position:absolute;left:-999em;right:auto;display:inline}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item{white-space:normal}.usa-breadcrumb__list-item:nth-last-child(2){position:static}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;padding-left:calc(2ex + 0px);text-indent:calc((2ex + 0px) * -1);color:#005ea2;display:inline-block;padding-bottom:1rem;padding-top:1rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:#757575}}@media (max-width: 29.99em) and (forced-colors: active){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:GrayText}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-right:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{background:none;background-color:#71767a;-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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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:2ex 2ex;mask-size:2ex 2ex}}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#1a4480}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:before{bottom:-0.2em;height:2ex;position:relative}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{text-decoration:none}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link span{text-decoration:underline}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{margin-right:0px}}@media all and (min-width: 30em){.usa-breadcrumb__list-item{position:static}.usa-breadcrumb__list-item:not(:last-child)::after{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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-left:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:not(:last-child)::after{background:none;background-color:#71767a;-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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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:2ex 2ex;mask-size:2ex 2ex}}.usa-breadcrumb__list-item:not(:last-child)::after{bottom:-0.2em;margin-left:0px;margin-right:0px;height:2ex;position:relative}}.usa-breadcrumb__link{color:#005ea2;display:inline;text-decoration:none}.usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__link:hover,.usa-breadcrumb__link:active{color:#1a4480}.usa-breadcrumb__link span{text-decoration:underline}@media all and (min-width: 30em){.usa-breadcrumb--wrap{line-height:1.4}}.usa-breadcrumb--wrap .usa-breadcrumb__list-item{display:inline-block}:host{display:block}.usa-breadcrumb__link span{pointer-events:none}@media screen and (max-width: 29.99em){.usa-breadcrumb__list-item:not(:nth-last-child(2)){display:none}}.usa-breadcrumb{padding-top:20px;padding-bottom:32px}@media (min-width: 768px){.usa-breadcrumb{padding-bottom:48px}}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__list-item:not(:last-child)::after{background:var(--vads-color-gray-medium)}@media (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{padding-top:0;padding-bottom:0}}.usa-current a{font-weight:bold}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,6308,7508],{4569:function(e,t,a){a.r(t),a.d(t,{c:function(){return n}});var r,i={exports:{}};r=i,function(){var e={}.hasOwnProperty;function t(){for(var a=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var n=typeof i;if("string"===n||"number"===n)a.push(i);else if(Array.isArray(i)){if(i.length){var s=t.apply(null,i);s&&a.push(s)}}else if("object"===n)if(i.toString===Object.prototype.toString)for(var l in i)e.call(i,l)&&i[l]&&a.push(l);else a.push(i.toString())}}return a.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var n=i.exports},7508:function(e,t,a){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,t,a){void 0===a&&(a="slot");var r=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(r)}function n(e){return 1===e?"":"s"}function s(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(n(t)," allowed");var a;if(e.length<=t){var r=t-e.length;a="".concat(r," character").concat(n(r)," left")}else r=e.length-t,a="".concat(r," character").concat(n(r)," over limit");return a}function l(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return i},b:function(){return r},c:function(){return p},d:function(){return _},e:function(){return s},f:function(){return m},g:function(){return c},i:function(){return b},m:function(){return l},s:function(){return u}}),a(7911);var o=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!o(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||o(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.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 m(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function b(e){return e&&"false"!==e||!1}function h(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function _(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=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 _(i.call(e),i.call(t),a,r)}if(e.constructor!==t.constructor)return!1;var n=Object.keys(e),s=Object.keys(t);if(0===n.length&&0===s.length)return!0;if(n.length!==s.length)return!1;for(var l=a.length;l--;)if(a[l]===e)return r[l]===t;a.push(e),r.push(t),n.sort(),s.sort();for(var o=n.length-1;o>=0;o--)if(n[o]!==s[o])return!1;for(var u=void 0,d=n.length-1;d>=0;d--)if(!_(e[u=n[d]],t[u],a,r))return!1;return a.pop(),r.pop(),!0}function p(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var r=e.charAt(0).toLowerCase();return a.includes(r)?"an":"a"}},6308:function(e,t,a){a.r(t),a.d(t,{va_breadcrumbs:function(){return s}});var r=a(7911),i=a(7508),n=a(4569),s=function(){function e(e){(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.routeChange=(0,r.c)(this,"routeChange",7),this.label="Breadcrumb",this.wrapping=!1,this.breadcrumbList=void 0,this.homeVeteransAffairs=!0,this.currentPageRedirect=!1,this.formattedBreadcrumbs=[],this.disableAnalytics=!1}return e.prototype.updateBreadCrumbList=function(e){var t=e.map((function(e){return Object.assign({},e)})),a=t[0];a&&this.homeVeteransAffairs&&(a.label="VA.gov home"),(0,i.d)(this.formattedBreadcrumbs,t)||(this.formattedBreadcrumbs=t)},e.prototype.getClickLevel=function(e){return Array.from(this.el.shadowRoot.querySelectorAll("a")).findIndex((function(t){return t.isEqualNode(e)}))+1},e.prototype.fireAnalyticsEvent=function(e){if(!this.disableAnalytics){var t=e.target;if("A"===(null==t?void 0:t.tagName)){var a={componentName:"va-breadcrumbs",action:"linkClick",details:{clickLabel:t.innerText.trim(),clickLevel:this.getClickLevel(t),totalLevels:this.el.shadowRoot.querySelectorAll("a").length+1}};this.componentLibraryAnalytics.emit(a)}}},e.prototype.handleAnchorNode=function(e,t,a){var r=document.createElement("li");r.classList.add("va-breadcrumbs-li"),t===a.length-1&&e.setAttribute("aria-current","page"),e.parentNode.replaceChild(r,e),r.appendChild(e)},e.prototype.handleListNode=function(e,t,a){e.classList.add("va-breadcrumbs-li");var r=e.querySelector("a");r&&t===a.length-1&&r.setAttribute("aria-current","page")},e.prototype.validateBreadcrumbs=function(e){var t;if(Array.isArray(e))t=e;else{if("string"!=typeof e)return!1;try{t=JSON.parse(e)}catch(e){return!1}}return!(!Array.isArray(t)||!t.every((function(e){return"object"==typeof e&&e.hasOwnProperty("label")&&e.hasOwnProperty("href")})))&&t},e.prototype.validateAndFormatBreadcrumbs=function(){var e;if(null===(e=this.breadcrumbList)||void 0===e?void 0:e.length){var t=this.validateBreadcrumbs(this.breadcrumbList);t&&this.updateBreadCrumbList(t)}},e.prototype.componentDidLoad=function(){var e,t=this,a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes();a&&a.forEach((function(e,r){"LI"===e.nodeName?t.handleListNode(e,r,a):"A"===e.nodeName&&t.handleAnchorNode(e,r,a)}))},e.prototype.componentWillLoad=function(){this.validateAndFormatBreadcrumbs()},e.prototype.componentDidUpdate=function(){this.validateAndFormatBreadcrumbs()},e.prototype.handleSlotChange=function(){var e,t=this,a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes().filter((function(e){return"LI"===e.nodeName}));a&&a.forEach((function(e,r){if("LI"===e.nodeName){e.classList.add("usa-breadcrumb__list-item");var i=e.querySelector("a");0===r&&i&&t.homeVeteransAffairs&&(i.innerText="VA.gov home"),(null==i?void 0:i.getAttribute("aria-current"))&&r!==a.length-1&&i.removeAttribute("aria-current");var n=document.createElement("span");if(n.textContent=i.textContent,i.innerHTML="",i.appendChild(n),r===a.length-1){var s=document.createElement("span");s.textContent=i.textContent,e.classList.add("usa-current"),e.replaceChild(s,i),null==e||e.setAttribute("aria-current","page")}}}))},e.prototype.handleRouteChange=function(e,t){e.preventDefault(),this.routeChange.emit({href:t})},e.prototype.handleClick=function(e,t){var a=t.href;t.isRouterLink&&this.handleRouteChange(e,a),this.fireAnalyticsEvent(e)},e.prototype.render=function(){var e=this,t=this.label,a=this.wrapping,i=(0,n.c)({"usa-breadcrumb":!0,"usa-breadcrumb--wrap":a});return(0,r.h)(r.H,{key:"6619628e96af9526d218b6623d446f9f2289db0c"},(0,r.h)("nav",{key:"8ab1f50f166c03572d91d8a33dcfcda1cbe386cb","aria-label":t,class:i},(0,r.h)("ol",{key:"56472ddf58e9e7755f74b2e0f298adabd85d0c0a",role:"list",class:"usa-breadcrumb__list"},this.formattedBreadcrumbs.map((function(t,a){return(0,r.h)("li",{class:"usa-breadcrumb__list-item ".concat(a===e.formattedBreadcrumbs.length-1?"usa-current":""),"aria-current":a===e.formattedBreadcrumbs.length-1?"page":void 0},e.currentPageRedirect||a!==e.formattedBreadcrumbs.length-1?(0,r.h)("a",{class:"usa-breadcrumb__link",href:t.href,onClick:function(a){return e.handleClick(a,t)},lang:t.lang||"en-US",hreflang:t.lang||"en-US"},(0,r.h)("span",null,t.label)):(0,r.h)("a",{class:"usa-breadcrumb__link",href:"#content",onClick:function(t){return e.fireAnalyticsEvent(t)},lang:t.lang||"en-US",hreflang:t.lang||"en-US"},(0,r.h)("span",null,t.label)))})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.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}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-breadcrumb{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;color:#1b1b1b;background-color:white;padding-left:0;padding-right:0}@media all and (min-width: 30em){.usa-breadcrumb{padding-bottom:1rem;padding-top:1rem}}@media all and (min-width: 30em){.usa-breadcrumb:not(.usa-breadcrumb--wrap) .usa-breadcrumb__list{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}.usa-breadcrumb__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem}.usa-breadcrumb__list>li{margin-bottom:0;max-width:unset}.usa-breadcrumb__list-item{position:absolute;left:-999em;right:auto;display:inline}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item{white-space:normal}.usa-breadcrumb__list-item:nth-last-child(2){position:static}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;padding-left:calc(2ex + 0px);text-indent:calc((2ex + 0px) * -1);color:#005ea2;display:inline-block;padding-bottom:1rem;padding-top:1rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:#757575}}@media (max-width: 29.99em) and (forced-colors: active){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:GrayText}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-right:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{background:none;background-color:#71767a;-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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%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:2ex 2ex;mask-size:2ex 2ex}}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#1a4480}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:before{bottom:-0.2em;height:2ex;position:relative}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{text-decoration:none}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link span{text-decoration:underline}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{margin-right:0px}}@media all and (min-width: 30em){.usa-breadcrumb__list-item{position:static}.usa-breadcrumb__list-item:not(:last-child)::after{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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-left:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:not(:last-child)::after{background:none;background-color:#71767a;-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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%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:2ex 2ex;mask-size:2ex 2ex}}.usa-breadcrumb__list-item:not(:last-child)::after{bottom:-0.2em;margin-left:0px;margin-right:0px;height:2ex;position:relative}}.usa-breadcrumb__link{color:#005ea2;display:inline;text-decoration:none}.usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__link:hover,.usa-breadcrumb__link:active{color:#1a4480}.usa-breadcrumb__link span{text-decoration:underline}@media all and (min-width: 30em){.usa-breadcrumb--wrap{line-height:1.4}}.usa-breadcrumb--wrap .usa-breadcrumb__list-item{display:inline-block}:host{display:block}.usa-breadcrumb__link span{pointer-events:none}@media screen and (max-width: 29.99em){.usa-breadcrumb__list-item:not(:nth-last-child(2)){display:none}}.usa-breadcrumb{padding-top:20px;padding-bottom:32px}@media (min-width: 768px){.usa-breadcrumb{padding-bottom:48px}}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__list-item:not(:last-child)::after{background:var(--vads-color-gray-medium)}@media (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{padding-top:0;padding-bottom:0}}.usa-current a{font-weight:bold}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6555,7508],{7508:function(e,t,a){function i(e){return!Number.isNaN(parseFloat(e))}function n(e,t,a){void 0===a&&(a="slot");var i=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(r(i)," left")}else i=e.length-t,a="".concat(i," character").concat(r(i)," over limit");return a}function s(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return n},b:function(){return i},c:function(){return b},d:function(){return m},e:function(){return o},f:function(){return h},g:function(){return f},i:function(){return u},m:function(){return s},s:function(){return c}}),a(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.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 h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function u(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=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(p(e)||p(t)){if(!p(e)||!p(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),a,i)}if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);if(0===r.length&&0===o.length)return!0;if(r.length!==o.length)return!1;for(var s=a.length;s--;)if(a[s]===e)return i[s]===t;a.push(e),i.push(t),r.sort(),o.sort();for(var l=r.length-1;l>=0;l--)if(r[l]!==o[l])return!1;for(var c=void 0,d=r.length-1;d>=0;d--)if(!m(e[c=r[d]],t[c],a,i))return!1;return a.pop(),i.pop(),!0}function b(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var i=e.charAt(0).toLowerCase();return a.includes(i)?"an":"a"}},6555:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return P}});var i=a(7911),n=(a(7470),a(7508)),r=a(3244),o="usa",s="".concat(o,"-file-input"),l=".".concat(s),c="".concat(o,"-file-input__input"),d="".concat(o,"-file-input__target"),f=".".concat(c),h="".concat(o,"-file-input__box"),u="".concat(o,"-file-input__instructions"),p="".concat(o,"-file-input__preview"),m="".concat(o,"-file-input__preview-heading"),b="".concat(o,"-file-input--disabled"),g="".concat(o,"-file-input__choose"),v="".concat(o,"-file-input__accepted-files-message"),y="".concat(o,"-file-input__drag-text"),x="".concat(o,"-file-input--drag"),w="is-loading",k="has-invalid-file",A="".concat(o,"-file-input__preview-image"),S="".concat(A,"--generic"),z="".concat(A,"--pdf"),T="".concat(A,"--word"),C="".concat(A,"--video"),L="".concat(A,"--excel"),F="".concat(o,"-sr-only"),M="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",_=Boolean(!0),E="",q="",H=function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"img_".concat(e.toLowerCase()):"__000".concat(t.toString(16).slice(-4))},N=function(e){return e.hasAttribute("multiple")?"files":"file"},B=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(h),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=N(e),i=document.createElement("div"),r="Drag ".concat(a," here or"),o="choose from folder";return E="".concat(r," ").concat(o),i.classList.add(u),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",E),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(r,'</span> <span class="').concat(g,'">').concat(o,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(y)).outerHTML=""),i}(e),r=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?r.classList.add(b):function(e){var t=document.createElement("div"),a=N(e),i=e.closest(l),n=e.closest(".".concat(d));q="No ".concat(a," selected."),t.classList.add(F),t.setAttribute("aria-live","polite"),t.textContent=q,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},R=function(e,t){var a=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},j=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var r=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var o=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var h=0;h<o.length;h+=1){var u=o[h];if(l=f.name.indexOf(u)>0||r(f.type,u.replace(/\*/g,""))){_=!0;break}}}l||(R(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),_=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===_&&function(e,t,a,i){var r=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],o=i.closest(".".concat(s)).querySelector(".".concat(F)),l=[];R(i,a);for(var c=function(e){var t,o=new FileReader,s=r[e].name;l.push(s),o.onloadstart=function(){t=function(e){return"".concat(e,"-").concat(Math.floor(Date.now()/1e3))}(function(e){return e.replace(/[^a-z0-9]/g,H)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(M,'" alt="" class="').concat(A," ").concat(w,'"/>').concat(s,"\n <div>")))},o.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(z,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(L,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(C,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(S,'")')),e.classList.remove(w),e.src=o.result},r[e]&&o.readAsDataURL(r[e])},f=0;f<r.length;f+=1)c(f);0===r.length?t.setAttribute("aria-label",E):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),r=i.querySelector(".".concat(u)),o="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(o,"</span>")):t.length>1&&(o="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(o,"</span>"))),r.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,r),e.setAttribute("aria-label",o)}(t,r),function(e,t,a){var i=e,n=q;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(o,r,l)}(e,t,a,i)},O={".txt":"text/plain",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".odt":"application/vnd.oasis.opendocument.text",".rtf":"application/rtf",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".bmp":"image/bmp",".webp":"image/webp",".tif":"image/tiff",".tiff":"image/tiff",".svg":"image/svg+xml",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac",".mp4":"video/mp4",".avi":"video/x-msvideo",".mov":"video/quicktime",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".mkv":"video/x-matroska",".webm":"video/webm",".zip":"application/zip",".rar":"application/x-rar-compressed",".7z":"application/x-7z-compressed",".tar":"application/x-tar",".gz":"application/gzip",".json":"application/json",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript"},P=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.vaPasswordChange=(0,i.c)(this,"vaPasswordChange",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.chooseFileString="choose from folder",this.dragFileString="Drag a file here or ",this.handleChange=function(e){t.resetVisualState=!1;var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e,a){if(void 0===a&&(a=!0),t.accept){var i=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,i))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}if(e.size>t.maxFileSize)return t.internalError="\n We can't upload your file because it's too big. Files must be less than ".concat(t.formatFileSize(t.maxFileSize),"."),t.fileContents=null,void(t.uploadStatus="idle");t.uploadedFile=null,t.file=e,a&&t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?O[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(a&&a>=1&&a<=6){var o="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(o,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.showSeparator=!0,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.value=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.statusText=void 0,this.uploadMessage=null,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1,this.readOnly=!1,this.encrypted=!1,this.uploadedFile=void 0,this.maxFileSize=1/0,this.percentUploaded=null,this.passwordError=void 0,this.resetVisualState=!1}return e.prototype.handleValueChange=function(e){var t=this;setTimeout((function(){t.updateStatusMessage(e)}))},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleError=function(e){e&&this.resetState()},e.prototype.resetState=function(){this.fileContents=null,this.uploadStatus="idle",this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var a=new FileReader;this.fileType=e.type,a.onloadend=function(){t.fileContents=a.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&a.readAsDataURL(e)}},e.prototype.componentWillRender=function(){var e=!!this.el.querySelector(":scope > *"),t=!(!this.value&&!this.file||this.readOnly);this.showSeparator=e||t},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=B(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){j(t,e,a,i);var r=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(r)}}),!1),e.addEventListener("input",(function(t){return j(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.getDefaultUploadMessage=function(){return(0,i.h)("span",null,this.dragFileString,(0,i.h)("span",{class:"file-input-choose-text"},this.chooseFileString))},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,o=t.required,s=t.accept,l=t.error,c=t.hint,d=t.file,f=t.uploadStatus,h=t.dragFileString,u=t.chooseFileString,p=t.uploadMessage,m=t.headerSize,b=t.fileContents,g=t.fileType,v=t.headless,y=t.value,x=t.readOnly,w=t.encrypted,k=t.statusText,A=t.uploadedFile,S=t.percentUploaded,z=t.passwordError,T=t.resetVisualState;y&&!this.file&&this.handleFile(y,!1);var C=l||this.internalError,L="".concat(c?"input-hint-message":""," ").concat(C?"input-error-message":"").trim()||null,F="file-input-target ".concat(C?"file-input-target-error":"").trim(),M=(0,i.h)("div",{key:"53a79bdafa997eff9f88b266d757b2f341d1d7d5",class:"thumbnail-container"},(0,i.h)("svg",{key:"b928660298751158bc09645da1bc58cd6fde63db",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"89a659b6922543b557bf963361d2311eb2ca4d92",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?M=(0,i.h)("div",{key:"52909e339e01e7e3e91a3fc819e416ab9b096b30",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"46bd4685280ac5a20f3972e4ba2fd63479d0da4e",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):b&&(g.startsWith("image/")?M=(0,i.h)("div",{key:"f3d0682fffcc8645f41403d106f5fad66fafcfd2",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"6375a7ce3b42a70cbd208754522796e6d5609ba6",class:"thumbnail-preview",src:b,alt:"image"})):"application/pdf"===g&&(M=(0,i.h)("div",{key:"5ec20758a6565d78d69bf435dd2e40df8fca7778",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"80477aee2978919a46956e0d0885aeabc64a6189",class:"thumbnail-preview",data:b,type:"application/pdf"}))));var _=v?"headless-selected-files-wrapper":"selected-files-wrapper",E="usa-hint"+(v?" usa-sr-only":""),q=null!==S&&S<100,H="file-status-label";return q&&(H="".concat(H," uploading-status")),(0,i.h)(i.H,{key:"8c2583b4b1c929a80905218663eebdeb3418235e",class:{"has-error":!!C}},!x&&(0,i.h)("span",{key:"276cbc15642f1f449c74d5143e70a97606766b90",class:{"usa-sr-only":!!v}},a&&this.renderLabelOrHeader(a,o,m)),c&&!x&&(0,i.h)("div",{key:"f404434b12e0eb1a531194adb91a2d37cd07939b",class:E,id:"input-hint-message"},c),(0,i.h)("div",{key:"0a4794667319ac9e7e620d292a0af476725de7e2",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"14dbb417f448e3d6d19897abf2cf6aa584b03529",id:"fileInputField",class:"file-input","aria-label":"".concat(a).concat(o?" "+r.i.t("required"):"",". ").concat(h).concat(u),style:{visibility:"success"===this.uploadStatus||A?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":L,onChange:this.handleChange}),"idle"===f&&(!A||T)&&(0,i.h)("div",{key:"8cb9873e85db8c87fb1fdc57025e9008cfe34045"},(0,i.h)("span",{key:"653da3b81d9890d146a23a6caea299ba5a91a177",id:"file-input-error-alert",role:"alert"},C&&(0,i.h)(i.F,{key:"6039b0e92253a68af7842d1d31f2b89eae2b10fc"},(0,i.h)("span",{key:"3277ea3bfef43067ceb4145e7bd3cde5efead155",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"d884a2be6d46ffc65375f8578b4114a8dbb4182d",class:"usa-error-message"},C))),(0,i.h)("div",{key:"eb1839fe9dc8c6cf86c84e1d502574309f900a1c",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"792f905650577e6ecb79f5af24085cfa1503ae6c",class:F},(0,i.h)("div",{key:"473985ba6ccb053070379463bd62ecde353c6167",class:"file-input-box"}),(0,i.h)("div",{key:"6a68c2a80f912defb459ad81ab8e5ebf625a20ae",class:"file-input-instructions"},p||this.getDefaultUploadMessage()))),!T&&("idle"!==f||A)&&(0,i.h)("div",{key:"b230da1f10d04febd6d2105b3547dd3ac863b51b",class:_},!v&&(0,i.h)("div",{key:"8b1ee14de184f900ebeea749118fe04dd7b9ecf1",class:"selected-files-label"},x?"Files you uploaded":"Selected files"),(0,i.h)("div",{key:"9065b6d54a047bfe710501238b608f415812b12b",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"4281756e43b82ebe4040a49403c766a99d66daa1",class:"va-card"},(0,i.h)("div",{key:"0d0c0f0f4d3ac469e9f6ef38fa385bd3ad0075cc",class:"file-info-section"},M,(0,i.h)("div",{key:"1421bf02a06c532a755f71f1c09813d9ba4638ba",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"9a14d6ed1b93bfa832bdb49a070d13bda7c71ec4",class:"file-label"},d?d.name:A.name),C&&(0,i.h)("span",{key:"df20ad43b92863a75015c451ed342b0a3c6fa1c5",id:"input-error-message",role:"alert"},(0,i.h)("span",{key:"04bc84bc7dcbd95daca3c0692c4c12da7a665226",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"58f56bbf30fee89b2dbfe4cc295b099544b839ca","aria-live":"polite",class:"usa-error-message"},C)),!q&&(0,i.h)("span",{key:"506590a78d2e893374d49fbf4ef6804577bcb84a",class:"file-size-label"},this.formatFileSize(d?d.size:A.size)),(0,i.h)("span",{key:"ad91249a927c29d03310ff3118420b6a0c49588b",class:H,"aria-live":"polite"},q?"Uploading...":k))),(d||y||A)&&(0,i.h)("div",{key:"c2e60ac5986e655c6246bddda02786390907ae65"},this.showSeparator&&(0,i.h)("hr",{key:"65655bb6f00c3fac24e15b61aee8c50baddfb84f",class:"separator"}),w&&(0,i.h)("va-text-input",{key:"af58d080a3c3efe7accb7d6689e789a213a1ac31",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:z}),(0,i.h)("div",{key:"d600303f38cc0f6b7844648e63104d7600d16bd7",class:"additional-info-slot"},(0,i.h)("slot",{key:"fb34e4ea9c66622cfaff923d46f28458bf2eb29b"})),x?null:q?(0,i.h)(i.F,null,(0,i.h)("va-progress-bar",{percent:S}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})):(0,i.h)(i.F,null,(0,i.h)("div",{class:"file-button-section"},(0,i.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file ".concat(d?d.name:A.name)}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file ".concat(d?d.name:A.name),label:"Delete"})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll delete the uploaded file"," ",(0,i.h)("span",{class:"file-label"},d?d.name:A.name))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{statusText:["handleValueChange"],percentUploaded:["percentHandler"],resetVisualState:["handleError"]}},enumerable:!1,configurable:!0}),e}();P.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}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{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}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6555,7508],{7508:function(e,t,a){function i(e){return!Number.isNaN(parseFloat(e))}function n(e,t,a){void 0===a&&(a="slot");var i=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(r(i)," left")}else i=e.length-t,a="".concat(i," character").concat(r(i)," over limit");return a}function s(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return n},b:function(){return i},c:function(){return b},d:function(){return m},e:function(){return o},f:function(){return h},g:function(){return f},i:function(){return u},m:function(){return s},s:function(){return c}}),a(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.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 h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function u(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=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(p(e)||p(t)){if(!p(e)||!p(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),a,i)}if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);if(0===r.length&&0===o.length)return!0;if(r.length!==o.length)return!1;for(var s=a.length;s--;)if(a[s]===e)return i[s]===t;a.push(e),i.push(t),r.sort(),o.sort();for(var l=r.length-1;l>=0;l--)if(r[l]!==o[l])return!1;for(var c=void 0,d=r.length-1;d>=0;d--)if(!m(e[c=r[d]],t[c],a,i))return!1;return a.pop(),i.pop(),!0}function b(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var i=e.charAt(0).toLowerCase();return a.includes(i)?"an":"a"}},6555:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return O}});var i=a(7911),n=(a(5384),a(7508)),r=a(4665),o="usa",s="".concat(o,"-file-input"),l=".".concat(s),c="".concat(o,"-file-input__input"),d="".concat(o,"-file-input__target"),f=".".concat(c),h="".concat(o,"-file-input__box"),u="".concat(o,"-file-input__instructions"),p="".concat(o,"-file-input__preview"),m="".concat(o,"-file-input__preview-heading"),b="".concat(o,"-file-input--disabled"),g="".concat(o,"-file-input__choose"),v="".concat(o,"-file-input__accepted-files-message"),y="".concat(o,"-file-input__drag-text"),x="".concat(o,"-file-input--drag"),w="is-loading",k="has-invalid-file",S="".concat(o,"-file-input__preview-image"),A="".concat(S,"--generic"),z="".concat(S,"--pdf"),T="".concat(S,"--word"),C="".concat(S,"--video"),L="".concat(S,"--excel"),F="".concat(o,"-sr-only"),_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=Boolean(!0),M="",q="",H=function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"img_".concat(e.toLowerCase()):"__000".concat(t.toString(16).slice(-4))},N=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(h),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=N(e),i=document.createElement("div"),r="Drag ".concat(a," here or"),o="choose from folder";return M="".concat(r," ").concat(o),i.classList.add(u),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",M),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(r,'</span> <span class="').concat(g,'">').concat(o,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(y)).outerHTML=""),i}(e),r=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?r.classList.add(b):function(e){var t=document.createElement("div"),a=N(e),i=e.closest(l),n=e.closest(".".concat(d));q="No ".concat(a," selected."),t.classList.add(F),t.setAttribute("aria-live","polite"),t.textContent=q,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},B=function(e,t){var a=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},I=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var r=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var o=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var h=0;h<o.length;h+=1){var u=o[h];if(l=f.name.indexOf(u)>0||r(f.type,u.replace(/\*/g,""))){E=!0;break}}}l||(B(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),E=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===E&&function(e,t,a,i){var r=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],o=i.closest(".".concat(s)).querySelector(".".concat(F)),l=[];B(i,a);for(var c=function(e){var t,o=new FileReader,s=r[e].name;l.push(s),o.onloadstart=function(){t=function(e){return"".concat(e,"-").concat(Math.floor(Date.now()/1e3))}(function(e){return e.replace(/[^a-z0-9]/g,H)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(_,'" alt="" class="').concat(S," ").concat(w,'"/>').concat(s,"\n <div>")))},o.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(z,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(L,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(C,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(A,'")')),e.classList.remove(w),e.src=o.result},r[e]&&o.readAsDataURL(r[e])},f=0;f<r.length;f+=1)c(f);0===r.length?t.setAttribute("aria-label",M):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),r=i.querySelector(".".concat(u)),o="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(o,"</span>")):t.length>1&&(o="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(o,"</span>"))),r.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,r),e.setAttribute("aria-label",o)}(t,r),function(e,t,a){var i=e,n=q;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(o,r,l)}(e,t,a,i)},j={".txt":"text/plain",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".odt":"application/vnd.oasis.opendocument.text",".rtf":"application/rtf",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".bmp":"image/bmp",".webp":"image/webp",".tif":"image/tiff",".tiff":"image/tiff",".svg":"image/svg+xml",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac",".mp4":"video/mp4",".avi":"video/x-msvideo",".mov":"video/quicktime",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".mkv":"video/x-matroska",".webm":"video/webm",".zip":"application/zip",".rar":"application/x-rar-compressed",".7z":"application/x-7z-compressed",".tar":"application/x-tar",".gz":"application/gzip",".json":"application/json",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript"},O=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.vaPasswordChange=(0,i.c)(this,"vaPasswordChange",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.chooseFileString="choose from folder",this.dragFileString="Drag a file here or ",this.FILE_PREVIEW_SIZE_LIMIT=5242880,this.handleChange=function(e){t.resetVisualState=!1;var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e,a){if(void 0===a&&(a=!0),t.accept){var i=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,i))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}return 0===e.size?(t.internalError="The file you selected is empty. Files must be larger than 0B.",void t.resetState()):e.size>t.maxFileSize?(t.internalError="\n We can't upload your file because it's too big. Files must be less than ".concat(t.formatFileSize(t.maxFileSize),"."),void t.resetState()):e.size<t.minFileSize?(t.internalError="We can't upload your file because it's too small. Files must be at least ".concat(t.formatFileSize(t.minFileSize),"."),void t.resetState()):(t.uploadedFile=null,t.file=e,a&&t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,e.size<t.FILE_PREVIEW_SIZE_LIMIT&&t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),void(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})))},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?j[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(a&&a>=1&&a<=6){var o="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(o,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.showSeparator=!0,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.value=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.statusText=void 0,this.uploadMessage=null,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1,this.readOnly=!1,this.encrypted=!1,this.uploadedFile=void 0,this.maxFileSize=1/0,this.minFileSize=0,this.percentUploaded=null,this.passwordError=void 0,this.resetVisualState=!1}return e.prototype.handleValueChange=function(e){var t=this;setTimeout((function(){t.updateStatusMessage(e)}))},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleError=function(e){e&&this.resetState()},e.prototype.resetState=function(){this.fileContents=null,this.uploadStatus="idle",this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var a=new FileReader;this.fileType=e.type,a.onloadend=function(){t.fileContents=a.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&a.readAsDataURL(e)}},e.prototype.componentWillRender=function(){var e=!!this.el.querySelector(":scope > *"),t=!(!this.value&&!this.file||this.readOnly);this.showSeparator=e||t},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=R(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){I(t,e,a,i);var r=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(r)}}),!1),e.addEventListener("input",(function(t){return I(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.getDefaultUploadMessage=function(){return(0,i.h)("span",null,this.dragFileString,(0,i.h)("span",{class:"file-input-choose-text"},this.chooseFileString))},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,o=t.required,s=t.accept,l=t.error,c=t.hint,d=t.file,f=t.uploadStatus,h=t.dragFileString,u=t.chooseFileString,p=t.uploadMessage,m=t.headerSize,b=t.fileContents,g=t.fileType,v=t.headless,y=t.value,x=t.readOnly,w=t.encrypted,k=t.statusText,S=t.uploadedFile,A=t.percentUploaded,z=t.passwordError,T=t.resetVisualState;y&&!this.file&&this.handleFile(y,!1);var C=l||this.internalError,L="".concat(c?"input-hint-message":""," ").concat(C?"input-error-message":"").trim()||null,F="file-input-target ".concat(C?"file-input-target-error":"").trim(),_=(0,i.h)("div",{key:"a8147f8da0cb8b080f33d487afba34d00a375ba5",class:"thumbnail-container"},(0,i.h)("svg",{key:"9adc7d012279d6d1c387473ec20bdd30398d594a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"6122c0411f084eda2039356f9e8c2464ddf4782e",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?_=(0,i.h)("div",{key:"f74993cb63fea2aaadb69feab51e3d6c5eec135a",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"fd79026cb78d04036aa7abd4f11b72f3c5146972",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):b&&(g.startsWith("image/")?_=(0,i.h)("div",{key:"bb009cbbb587c00d29dad4cc135b4c6effd81d4a",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"2a572be0dc1579962b4ccf96365de48cdcab697d",class:"thumbnail-preview",src:b,alt:"image"})):"application/pdf"===g&&(_=(0,i.h)("div",{key:"f0318c876c0c48cff42e5fdf5781388b37dd7c5e",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"fac0943836f9f502ca82b029260ee60a4be06dfc",class:"thumbnail-preview",data:b,type:"application/pdf"}))));var E=v?"headless-selected-files-wrapper":"selected-files-wrapper",M="usa-hint"+(v?" usa-sr-only":""),q=null!==A&&A<100,H="file-status-label";return q&&(H="".concat(H," uploading-status")),(0,i.h)(i.H,{key:"37781c9877d7f5c181df4dbc42adaa501044da54",class:{"has-error":!!C}},!x&&(0,i.h)("span",{key:"4cafef4d3360af3e1e20b5abee7116427678d1d7",class:{"usa-sr-only":!!v}},a&&this.renderLabelOrHeader(a,o,m)),c&&!x&&(0,i.h)("div",{key:"c0d30f964f241573f83e3178049425e6fb74bc65",class:M,id:"input-hint-message"},c),(0,i.h)("div",{key:"d7c4321d873eef1f4cf50a82955674d2d62db8ac",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"fcdfc42a3a71d2c5495a54e7c4b39dd491095ea5",id:"fileInputField",class:"file-input","aria-label":"".concat(a).concat(o?" "+r.i.t("required"):"",". ").concat(h).concat(u),style:{visibility:"success"===this.uploadStatus||S?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":L,onChange:this.handleChange}),"idle"===f&&(!S||T)&&(0,i.h)("div",{key:"758b3ade629346c31843f28b2d0a3f21d0987a3f"},(0,i.h)("span",{key:"130f00af6b61bbaeffe7f82ca11fec45365d5f04",id:"file-input-error-alert",role:"alert"},C&&(0,i.h)(i.F,{key:"70681de5a0f6f56a447b75ca76fb39602ec43f09"},(0,i.h)("span",{key:"1f15abf78d104092a9c25c3a5b9ea2f6b8e28a92",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"f1d535d569c6c1e5e217e087032a209b5f7d3bce",class:"usa-error-message"},C))),(0,i.h)("div",{key:"c4003675c5243e6db58660159faa275a1c46ec5e",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"d90c463c57946bb09419da3f39e364d10024fab8",class:F},(0,i.h)("div",{key:"efdc66ddc32316bf8223bd171761cac515837c6f",class:"file-input-box"}),(0,i.h)("div",{key:"56a57c1e586ddad014a52c54e79e722f48523f6a",class:"file-input-instructions"},p||this.getDefaultUploadMessage()))),!T&&("idle"!==f||S)&&(0,i.h)("div",{key:"e0dec646ae39cc6cbbe358f0ea376b032522ecb9",class:E},!v&&(0,i.h)("div",{key:"350a72c12e41fb2f3b6185f4e384bf18a62e1c1b",class:"selected-files-label"},x?"Files you uploaded":"Selected files"),(0,i.h)("div",{key:"6d99979169229ac6d3793bdcc287ffc52c2a5d77",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"f8e12be2be5e1cdd9cb85ea879ba11c9ec794299",class:"va-card"},(0,i.h)("div",{key:"830095c8b6eed03024d24f8afc523b84b4ec2275",class:"file-info-section"},_,(0,i.h)("div",{key:"55c5c74f081461a461593ebda2d87c828e8a4ccb",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"ffaac7a0b5faae4cb7b80ead605f5a01f8b942b2",class:"file-label"},d?d.name:S.name),C&&(0,i.h)("span",{key:"08d6db853f80afef3771c1d95d39555f26c41dbc",id:"input-error-message",role:"alert"},(0,i.h)("span",{key:"022ac299251482dfb5573b893e8bc2e258777d95",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"76e7aaac76ce6fb4546547461380c4563cec6e13","aria-live":"polite",class:"usa-error-message"},C)),!q&&(0,i.h)("span",{key:"5a0d65be1cd32bf27a29ea54acf8b11286ccd9b6",class:"file-size-label"},this.formatFileSize(d?d.size:S.size)),(0,i.h)("span",{key:"5c449f21a0bf5f2370901414da78d996fdbad733",class:H,"aria-live":"polite"},q?"Uploading...":k))),(d||y||S)&&(0,i.h)("div",{key:"0019699b466d8378d34de9501fb54e509db14e6e"},this.showSeparator&&(0,i.h)("hr",{key:"cfdd71b6c6f6cf29199d31eb4ec59833d3e3835d",class:"separator"}),w&&(0,i.h)("va-text-input",{key:"1db7bf8bfd8039c9dd042029887a87b27f4ce7e0",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:z}),(0,i.h)("div",{key:"c996bde181bd3301abacb7595708872293cd1565",class:"additional-info-slot"},(0,i.h)("slot",{key:"b79a5b765a7d004ee98c399a93b2ce405ee9a051"})),x?null:q?(0,i.h)(i.F,null,(0,i.h)("va-progress-bar",{percent:A}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})):(0,i.h)(i.F,null,(0,i.h)("div",{class:"file-button-section"},(0,i.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file ".concat(d?d.name:S.name)}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file ".concat(d?d.name:S.name),label:"Delete"})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll delete the uploaded file"," ",(0,i.h)("span",{class:"file-label"},d?d.name:S.name))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{statusText:["handleValueChange"],percentUploaded:["percentHandler"],resetVisualState:["handleError"]}},enumerable:!1,configurable:!0}),e}();O.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{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}'}}]);