@department-of-veterans-affairs/component-library 54.5.1 → 54.6.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 (124) hide show
  1. package/dist/1214.app.bundle.js +1 -1
  2. package/dist/1339.app.bundle.js +1 -1
  3. package/dist/1365.app.bundle.js +1 -1
  4. package/dist/1450.app.bundle.js +1 -1
  5. package/dist/196.app.bundle.js +2 -0
  6. package/dist/2222.app.bundle.js +1 -1
  7. package/dist/2387.app.bundle.js +1 -1
  8. package/dist/2472.app.bundle.js +1 -1
  9. package/dist/2515.app.bundle.js +2 -0
  10. package/dist/2654.app.bundle.js +1 -1
  11. package/dist/2664.app.bundle.js +1 -1
  12. package/dist/2801.app.bundle.js +1 -1
  13. package/dist/2858.app.bundle.js +1 -1
  14. package/dist/3071.app.bundle.js +1 -1
  15. package/dist/3156.app.bundle.js +1 -1
  16. package/dist/3349.app.bundle.js +1 -0
  17. package/dist/4064.app.bundle.js +1 -1
  18. package/dist/4117.app.bundle.js +1 -1
  19. package/dist/4140.app.bundle.js +1 -1
  20. package/dist/415.app.bundle.js +1 -1
  21. package/dist/4708.app.bundle.js +1 -1
  22. package/dist/4715.app.bundle.js +1 -1
  23. package/dist/5019.app.bundle.js +1 -1
  24. package/dist/5155.app.bundle.js +1 -1
  25. package/dist/5189.app.bundle.js +1 -1
  26. package/dist/5306.app.bundle.js +1 -1
  27. package/dist/5610.app.bundle.js +1 -1
  28. package/dist/5699.app.bundle.js +1 -1
  29. package/dist/575.app.bundle.js +1 -1
  30. package/dist/5830.app.bundle.js +1 -1
  31. package/dist/6034.app.bundle.js +1 -1
  32. package/dist/6247.app.bundle.js +1 -1
  33. package/dist/6349.app.bundle.js +1 -1
  34. package/dist/641.app.bundle.js +1 -1
  35. package/dist/6527.app.bundle.js +1 -1
  36. package/dist/6633.app.bundle.js +1 -1
  37. package/dist/6683.app.bundle.js +1 -1
  38. package/dist/6771.app.bundle.js +1 -1
  39. package/dist/6824.app.bundle.js +1 -1
  40. package/dist/712.app.bundle.js +1 -1
  41. package/dist/7367.app.bundle.js +1 -1
  42. package/dist/7531.app.bundle.js +1 -1
  43. package/dist/7663.app.bundle.js +1 -1
  44. package/dist/7814.app.bundle.js +1 -1
  45. package/dist/7821.app.bundle.js +1 -1
  46. package/dist/817.app.bundle.js +1 -0
  47. package/dist/8175.app.bundle.js +1 -1
  48. package/dist/82.app.bundle.js +1 -1
  49. package/dist/8206.app.bundle.js +1 -1
  50. package/dist/8495.app.bundle.js +1 -1
  51. package/dist/8735.app.bundle.js +1 -1
  52. package/dist/8762.app.bundle.js +1 -1
  53. package/dist/8859.app.bundle.js +1 -1
  54. package/dist/890.app.bundle.js +1 -1
  55. package/dist/9096.app.bundle.js +1 -0
  56. package/dist/{3126.app.bundle.js → 9176.app.bundle.js} +1 -1
  57. package/dist/9288.app.bundle.js +1 -1
  58. package/dist/9409.app.bundle.js +1 -1
  59. package/dist/9463.app.bundle.js +1 -1
  60. package/dist/9670.app.bundle.js +1 -1
  61. package/dist/9724.app.bundle.js +1 -1
  62. package/dist/9755.app.bundle.js +1 -1
  63. package/dist/9794.app.bundle.js +1 -1
  64. package/dist/9800.app.bundle.js +1 -1
  65. package/dist/9915.app.bundle.js +1 -1
  66. package/dist/app.bundle.js +1 -1
  67. package/dist/components/index.d.ts +2 -0
  68. package/dist/components/index.js +1 -1
  69. package/dist/components/types/components.d.ts +113 -0
  70. package/dist/components/va-button2.js +1 -1
  71. package/dist/components/va-card-status.d.ts +11 -0
  72. package/dist/components/va-card-status.js +1 -0
  73. package/dist/components/va-checkbox-group2.js +1 -1
  74. package/dist/components/va-checkbox2.js +1 -1
  75. package/dist/components/va-combo-box2.js +1 -1
  76. package/dist/components/va-crisis-line-modal2.js +1 -1
  77. package/dist/components/va-file-input-multiple.js +1 -1
  78. package/dist/components/va-file-input2.js +1 -1
  79. package/dist/components/va-header-minimal.js +1 -1
  80. package/dist/components/va-icon2.js +1 -1
  81. package/dist/components/va-language-toggle.js +1 -1
  82. package/dist/components/va-link-action.js +1 -1
  83. package/dist/components/va-link-action2.js +1 -0
  84. package/dist/components/va-loading-indicator.js +1 -1
  85. package/dist/components/va-minimal-footer.js +1 -1
  86. package/dist/components/va-need-help.js +1 -1
  87. package/dist/components/va-official-gov-banner2.js +1 -1
  88. package/dist/components/va-omb-info.js +1 -1
  89. package/dist/components/va-pagination.js +1 -1
  90. package/dist/components/va-privacy-agreement.js +1 -1
  91. package/dist/components/va-process-list-item.js +1 -1
  92. package/dist/components/va-process-list.js +1 -1
  93. package/dist/components/va-progress-bar2.js +1 -1
  94. package/dist/components/va-radio-option.js +1 -1
  95. package/dist/components/va-radio.js +1 -1
  96. package/dist/components/va-search-input.js +1 -1
  97. package/dist/components/va-select2.js +1 -1
  98. package/dist/components/va-sidenav-item.js +1 -1
  99. package/dist/components/va-sidenav-submenu.js +1 -1
  100. package/dist/components/va-statement-of-truth.js +1 -1
  101. package/dist/components/va-summary-box.js +1 -1
  102. package/dist/components/va-tab-item.js +1 -1
  103. package/dist/components/va-tab-panel.js +1 -1
  104. package/dist/components/va-table-inner2.js +1 -1
  105. package/dist/components/va-table-row.js +1 -1
  106. package/dist/components/va-table.js +1 -1
  107. package/dist/components/va-tag-status.js +1 -1
  108. package/dist/components/va-tag-status2.js +1 -0
  109. package/dist/components/va-telephone-input.js +1 -1
  110. package/dist/components/va-telephone2.js +1 -1
  111. package/dist/components/va-textarea.js +1 -1
  112. package/dist/react-bindings/index.d.ts +1 -0
  113. package/dist/react-bindings/index.js +1 -1
  114. package/dist/react-bindings/index.js.map +1 -1
  115. package/dist/react-bindings/index.ts +1 -0
  116. package/index.js +1 -1
  117. package/package.json +3 -3
  118. package/dist/3238.app.bundle.js +0 -1
  119. package/dist/6246.app.bundle.js +0 -2
  120. package/dist/6655.app.bundle.js +0 -2
  121. package/dist/9966.app.bundle.js +0 -2
  122. package/dist/9966.app.bundle.js.LICENSE.txt +0 -5
  123. /package/dist/{6246.app.bundle.js.LICENSE.txt → 196.app.bundle.js.LICENSE.txt} +0 -0
  124. /package/dist/{6655.app.bundle.js.LICENSE.txt → 2515.app.bundle.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 2858.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([[2858,4164],{4164:function(e,t,r){r.r(t),r.d(t,{c:function(){return n}});var o,a={exports:{}};o=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var n=typeof a;if("string"===n||"number"===n)r.push(a);else if(Array.isArray(a)){if(a.length){var i=t.apply(null,a);i&&r.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var s in a)e.call(a,s)&&a[s]&&r.push(s);else r.push(a.toString())}}return r.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var n=a.exports},2858:function(e,t,r){r.r(t),r.d(t,{va_tab_item:function(){return n}});var o=r(2625),a=r(4164),n=function(){function e(e){(0,o.r)(this,e),this.tabItemSelected=(0,o.c)(this,"tabItemSelected",7),this.tabItemKeyNavigated=(0,o.c)(this,"tabItemKeyNavigated",7),this.buttonText=void 0,this.targetId=void 0,this.selected=!1}return e.prototype.handleClick=function(e){e.preventDefault(),this.tabItemSelected.emit(e)},e.prototype.handleKeyDown=function(e){"ArrowLeft"===e.key||"ArrowRight"===e.key?(e.preventDefault(),this.tabItemKeyNavigated.emit(e)):"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick(new MouseEvent("click",{bubbles:!0,cancelable:!0})))},e.prototype.render=function(){var e=this,t=this,r=t.buttonText,n=t.targetId,i=t.selected,s=(0,a.c)({"va-tabs__tab_item":!0});return(0,o.h)(o.H,{key:"16837d82edd5d18ea2988e282796b942e65fde83",role:"tab",class:s,"aria-selected":i?"true":"false","aria-controls":n,id:"".concat(n,"-tab"),ref:function(t){return e.buttonElement=t},tabIndex:i?0:-1,onClick:function(t){return e.handleClick(t)},onKeyDown:function(t){return e.handleKeyDown(t)},"data-label":r},r)},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();n.style=':host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;color:var(--vads-color-primary);position:relative;padding:1rem;padding-bottom:calc(1rem - 4px);border:none;border-bottom:4px solid transparent;min-width:2.75rem;max-width:10rem;font-family:var(--font-source-sans);font-size:var(--vads-font-size-source-sans-normalized);text-align:center;line-height:var(--vads-font-line-height-2)}@media (forced-colors: active){:host{background-color:ButtonFace;color:ButtonText;border-bottom-color:ButtonFace}}:host(:focus){outline-offset:-2px !important}:host([aria-selected=false]:hover){cursor:pointer;background:var(--vads-color-base-lightest);border-bottom-color:var(--vads-color-primary)}:host([aria-selected=true]){border-bottom-color:var(--vads-color-primary);color:transparent}:host([aria-selected=true]:hover){cursor:pointer;background:var(--vads-color-base-lightest);border-bottom-color:var(--vads-color-primary)}:host([aria-selected=true])::after{content:attr(data-label)/"";display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;height:calc(100% - (2rem - 4px));top:1rem;width:calc(100% - 4px);left:2px;font-weight:700;color:var(--vads-color-link)}:host([aria-selected=true]:hover)::after{background-color:var(--vads-color-base-lightest)}@media screen and (min-width: 320px){:host{min-width:4rem}}@media screen and (min-width: 768px){:host{max-width:unset}}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2858,4164],{4164:function(e,t,r){r.r(t),r.d(t,{c:function(){return n}});var o,a={exports:{}};o=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var n=typeof a;if("string"===n||"number"===n)r.push(a);else if(Array.isArray(a)){if(a.length){var i=t.apply(null,a);i&&r.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var s in a)e.call(a,s)&&a[s]&&r.push(s);else r.push(a.toString())}}return r.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var n=a.exports},2858:function(e,t,r){r.r(t),r.d(t,{va_tab_item:function(){return n}});var o=r(9213),a=r(4164),n=function(){function e(e){(0,o.r)(this,e),this.tabItemSelected=(0,o.c)(this,"tabItemSelected",7),this.tabItemKeyNavigated=(0,o.c)(this,"tabItemKeyNavigated",7),this.buttonText=void 0,this.targetId=void 0,this.selected=!1}return e.prototype.handleClick=function(e){e.preventDefault(),this.tabItemSelected.emit(e)},e.prototype.handleKeyDown=function(e){"ArrowLeft"===e.key||"ArrowRight"===e.key?(e.preventDefault(),this.tabItemKeyNavigated.emit(e)):"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick(new MouseEvent("click",{bubbles:!0,cancelable:!0})))},e.prototype.render=function(){var e=this,t=this,r=t.buttonText,n=t.targetId,i=t.selected,s=(0,a.c)({"va-tabs__tab_item":!0});return(0,o.h)(o.H,{key:"bc5daf482704295550d6dfb95cf408a4b73d0157",role:"tab",class:s,"aria-selected":i?"true":"false","aria-controls":n,id:"".concat(n,"-tab"),ref:function(t){return e.buttonElement=t},tabIndex:i?0:-1,onClick:function(t){return e.handleClick(t)},onKeyDown:function(t){return e.handleKeyDown(t)},"data-label":r},r)},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();n.style=':host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;color:var(--vads-color-primary);position:relative;padding:1rem;padding-bottom:calc(1rem - 4px);border:none;border-bottom:4px solid transparent;min-width:2.75rem;max-width:10rem;font-family:var(--font-source-sans);font-size:var(--vads-font-size-source-sans-normalized);text-align:center;line-height:var(--vads-font-line-height-2)}@media (forced-colors: active){:host{background-color:ButtonFace;color:ButtonText;border-bottom-color:ButtonFace}}:host(:focus){outline-offset:-2px !important}:host([aria-selected=false]:hover){cursor:pointer;background:var(--vads-color-base-lightest);border-bottom-color:var(--vads-color-primary)}:host([aria-selected=true]){border-bottom-color:var(--vads-color-primary);color:transparent}:host([aria-selected=true]:hover){cursor:pointer;background:var(--vads-color-base-lightest);border-bottom-color:var(--vads-color-primary)}:host([aria-selected=true])::after{content:attr(data-label)/"";display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;height:calc(100% - (2rem - 4px));top:1rem;width:calc(100% - 4px);left:2px;font-weight:700;color:var(--vads-color-link)}:host([aria-selected=true]:hover)::after{background-color:var(--vads-color-base-lightest)}@media screen and (min-width: 320px){:host{min-width:4rem}}@media screen and (min-width: 768px){:host{max-width:unset}}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3071],{3071:function(e,t,s){s.r(t),s.d(t,{va_process_list:function(){return r}});var o=s(2625),r=function(){function e(e){(0,o.r)(this,e)}return e.prototype.render=function(){return(0,o.h)("ol",{key:"18d4a895572026d3e69a985d0328b84d13e75521",role:"list",class:"usa-process-list"},(0,o.h)("slot",{key:"d16849806040f638f1b87321630c7980e498fd85"}))},e}();r.style='.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-process-list>li{margin-bottom:0;max-width:unset}.usa-process-list>.usa-process-list__item{max-width:72ex}.usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-prose .usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-prose .usa-process-list>li{margin-bottom:0;max-width:unset}.usa-prose .usa-process-list>.usa-process-list__item{max-width:72ex}.usa-prose .usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-process-list__item:last-child{border-left:0.5rem solid transparent}.usa-process-list__item::before{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.5rem;border-radius:99rem;width:2.5rem;background-color:white;border:0.25rem solid #1b1b1b;-webkit-box-shadow:0 0 0 0.25rem white;box-shadow:0 0 0 0.25rem white;color:#1b1b1b;content:counter(usa-numbered-list, decimal);counter-increment:usa-numbered-list;display:-ms-flexbox;display:flex;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;font-weight:700;height:2.5rem;left:0;line-height:0.9;margin-top:-0.4rem;position:absolute;width:2.5rem}.usa-process-list__item ul{list-style-type:disc}.usa-process-list__item ul li{margin-bottom:0.25rem}.usa-process-list__item ul li:last-child{margin-bottom:0}.usa-process-list__item>*:first-child{margin-top:0}.usa-process-list__item>*:last-child{margin-bottom:0}.usa-process-list__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;color:#1b1b1b;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-weight:700;margin:0}.usa-process-list__heading+*{margin-top:0.25rem}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}:host{counter-reset:usa-numbered-list}::slotted(va-process-list-item[checkmark=true]):before{color:var(--vads-color-success-dark) !important;border-color:var(--vads-color-success-dark) !important;content:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg width%3D%2218px%22 height%3D%2215px%22 viewBox%3D%220 0 18 15%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E %3Ctitle%3EIcons %2F Font Awesome %2F fa-check%3C%2Ftitle%3E %3Cg id%3D%22----Process-List%22 stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22%3E %3Cg id%3D%22Process-List-%2F-_elements-%2F-number-%2F-complete-%22 transform%3D%22translate(-11.000000%2C -12.000000)%22 fill%3D%22%23008817%22%3E %3Cg id%3D%22Icons-%2F-Font-Awesome-%2F-fa-check%22 transform%3D%22translate(11.000000%2C 12.250000)%22%3E %3Cpath d%3D%22M18%2C2.69419355 C18%2C2.98451613 17.883871%2C3.27483871 17.6748387%2C3.48387097 L7.68774194%2C13.4709677 C7.47870968%2C13.68 7.1883871%2C13.796129 6.89806452%2C13.796129 C6.60774194%2C13.796129 6.31741935%2C13.68 6.1083871%2C13.4709677 L0.32516129%2C7.68774194 C0.116129032%2C7.47870968 0%2C7.1883871 0%2C6.89806452 C0%2C6.60774194 0.116129032%2C6.31741935 0.32516129%2C6.1083871 L1.90451613%2C4.52903226 C2.11354839%2C4.32 2.40387097%2C4.20387097 2.69419355%2C4.20387097 C2.98451613%2C4.20387097 3.27483871%2C4.32 3.48387097%2C4.52903226 L6.89806452%2C7.95483871 L14.516129%2C0.32516129 C14.7251613%2C0.116129032 15.0154839%2C-1.77635684e-15 15.3058065%2C-1.77635684e-15 C15.596129%2C-1.77635684e-15 15.8864516%2C0.116129032 16.0954839%2C0.32516129 L17.6748387%2C1.90451613 C17.883871%2C2.11354839 18%2C2.40387097 18%2C2.69419355 Z%22 id%3D%22icon%22%3E%3C%2Fpath%3E %3C%2Fg%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E") !important;content:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg width%3D%2218px%22 height%3D%2215px%22 viewBox%3D%220 0 18 15%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E %3Ctitle%3EIcons %2F Font Awesome %2F fa-check%3C%2Ftitle%3E %3Cg id%3D%22----Process-List%22 stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22%3E %3Cg id%3D%22Process-List-%2F-_elements-%2F-number-%2F-complete-%22 transform%3D%22translate(-11.000000%2C -12.000000)%22 fill%3D%22%23008817%22%3E %3Cg id%3D%22Icons-%2F-Font-Awesome-%2F-fa-check%22 transform%3D%22translate(11.000000%2C 12.250000)%22%3E %3Cpath d%3D%22M18%2C2.69419355 C18%2C2.98451613 17.883871%2C3.27483871 17.6748387%2C3.48387097 L7.68774194%2C13.4709677 C7.47870968%2C13.68 7.1883871%2C13.796129 6.89806452%2C13.796129 C6.60774194%2C13.796129 6.31741935%2C13.68 6.1083871%2C13.4709677 L0.32516129%2C7.68774194 C0.116129032%2C7.47870968 0%2C7.1883871 0%2C6.89806452 C0%2C6.60774194 0.116129032%2C6.31741935 0.32516129%2C6.1083871 L1.90451613%2C4.52903226 C2.11354839%2C4.32 2.40387097%2C4.20387097 2.69419355%2C4.20387097 C2.98451613%2C4.20387097 3.27483871%2C4.32 3.48387097%2C4.52903226 L6.89806452%2C7.95483871 L14.516129%2C0.32516129 C14.7251613%2C0.116129032 15.0154839%2C-1.77635684e-15 15.3058065%2C-1.77635684e-15 C15.596129%2C-1.77635684e-15 15.8864516%2C0.116129032 16.0954839%2C0.32516129 L17.6748387%2C1.90451613 C17.883871%2C2.11354839 18%2C2.40387097 18%2C2.69419355 Z%22 id%3D%22icon%22%3E%3C%2Fpath%3E %3C%2Fg%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E")/"Completed" !important}::slotted(va-process-list-item[active=true]):before{color:var(--vads-color-primary) !important;border-color:var(--vads-color-primary) !important}::slotted(va-process-list-item[pending=true]):before{color:var(--vads-process-list-color-text-pending-on-light) !important;border-color:var(--vads-color-gray-medium) !important}::slotted(va-process-list-item[pending=true]){color:var(--vads-process-list-color-text-pending-on-light) !important}::slotted(va-process-list-item){border-left:8px solid var(--vads-color-gray-cool-light)}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3071],{3071:function(e,t,s){s.r(t),s.d(t,{va_process_list:function(){return r}});var o=s(9213),r=function(){function e(e){(0,o.r)(this,e)}return e.prototype.render=function(){return(0,o.h)("ol",{key:"cf21ea1bd31522d6086ea7fb651f086ce9451c39",role:"list",class:"usa-process-list"},(0,o.h)("slot",{key:"6e1014150994173368af819cc996ef4cc32e9c3c"}))},e}();r.style='.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-process-list>li{margin-bottom:0;max-width:unset}.usa-process-list>.usa-process-list__item{max-width:72ex}.usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-prose .usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-prose .usa-process-list>li{margin-bottom:0;max-width:unset}.usa-prose .usa-process-list>.usa-process-list__item{max-width:72ex}.usa-prose .usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-process-list__item:last-child{border-left:0.5rem solid transparent}.usa-process-list__item::before{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.5rem;border-radius:99rem;width:2.5rem;background-color:white;border:0.25rem solid #1b1b1b;-webkit-box-shadow:0 0 0 0.25rem white;box-shadow:0 0 0 0.25rem white;color:#1b1b1b;content:counter(usa-numbered-list, decimal);counter-increment:usa-numbered-list;display:-ms-flexbox;display:flex;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;font-weight:700;height:2.5rem;left:0;line-height:0.9;margin-top:-0.4rem;position:absolute;width:2.5rem}.usa-process-list__item ul{list-style-type:disc}.usa-process-list__item ul li{margin-bottom:0.25rem}.usa-process-list__item ul li:last-child{margin-bottom:0}.usa-process-list__item>*:first-child{margin-top:0}.usa-process-list__item>*:last-child{margin-bottom:0}.usa-process-list__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;color:#1b1b1b;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-weight:700;margin:0}.usa-process-list__heading+*{margin-top:0.25rem}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}:host{counter-reset:usa-numbered-list}::slotted(va-process-list-item[checkmark=true]):before{color:var(--vads-color-success-dark) !important;border-color:var(--vads-color-success-dark) !important;content:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg width%3D%2218px%22 height%3D%2215px%22 viewBox%3D%220 0 18 15%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E %3Ctitle%3EIcons %2F Font Awesome %2F fa-check%3C%2Ftitle%3E %3Cg id%3D%22----Process-List%22 stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22%3E %3Cg id%3D%22Process-List-%2F-_elements-%2F-number-%2F-complete-%22 transform%3D%22translate(-11.000000%2C -12.000000)%22 fill%3D%22%23008817%22%3E %3Cg id%3D%22Icons-%2F-Font-Awesome-%2F-fa-check%22 transform%3D%22translate(11.000000%2C 12.250000)%22%3E %3Cpath d%3D%22M18%2C2.69419355 C18%2C2.98451613 17.883871%2C3.27483871 17.6748387%2C3.48387097 L7.68774194%2C13.4709677 C7.47870968%2C13.68 7.1883871%2C13.796129 6.89806452%2C13.796129 C6.60774194%2C13.796129 6.31741935%2C13.68 6.1083871%2C13.4709677 L0.32516129%2C7.68774194 C0.116129032%2C7.47870968 0%2C7.1883871 0%2C6.89806452 C0%2C6.60774194 0.116129032%2C6.31741935 0.32516129%2C6.1083871 L1.90451613%2C4.52903226 C2.11354839%2C4.32 2.40387097%2C4.20387097 2.69419355%2C4.20387097 C2.98451613%2C4.20387097 3.27483871%2C4.32 3.48387097%2C4.52903226 L6.89806452%2C7.95483871 L14.516129%2C0.32516129 C14.7251613%2C0.116129032 15.0154839%2C-1.77635684e-15 15.3058065%2C-1.77635684e-15 C15.596129%2C-1.77635684e-15 15.8864516%2C0.116129032 16.0954839%2C0.32516129 L17.6748387%2C1.90451613 C17.883871%2C2.11354839 18%2C2.40387097 18%2C2.69419355 Z%22 id%3D%22icon%22%3E%3C%2Fpath%3E %3C%2Fg%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E") !important;content:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg width%3D%2218px%22 height%3D%2215px%22 viewBox%3D%220 0 18 15%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E %3Ctitle%3EIcons %2F Font Awesome %2F fa-check%3C%2Ftitle%3E %3Cg id%3D%22----Process-List%22 stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22%3E %3Cg id%3D%22Process-List-%2F-_elements-%2F-number-%2F-complete-%22 transform%3D%22translate(-11.000000%2C -12.000000)%22 fill%3D%22%23008817%22%3E %3Cg id%3D%22Icons-%2F-Font-Awesome-%2F-fa-check%22 transform%3D%22translate(11.000000%2C 12.250000)%22%3E %3Cpath d%3D%22M18%2C2.69419355 C18%2C2.98451613 17.883871%2C3.27483871 17.6748387%2C3.48387097 L7.68774194%2C13.4709677 C7.47870968%2C13.68 7.1883871%2C13.796129 6.89806452%2C13.796129 C6.60774194%2C13.796129 6.31741935%2C13.68 6.1083871%2C13.4709677 L0.32516129%2C7.68774194 C0.116129032%2C7.47870968 0%2C7.1883871 0%2C6.89806452 C0%2C6.60774194 0.116129032%2C6.31741935 0.32516129%2C6.1083871 L1.90451613%2C4.52903226 C2.11354839%2C4.32 2.40387097%2C4.20387097 2.69419355%2C4.20387097 C2.98451613%2C4.20387097 3.27483871%2C4.32 3.48387097%2C4.52903226 L6.89806452%2C7.95483871 L14.516129%2C0.32516129 C14.7251613%2C0.116129032 15.0154839%2C-1.77635684e-15 15.3058065%2C-1.77635684e-15 C15.596129%2C-1.77635684e-15 15.8864516%2C0.116129032 16.0954839%2C0.32516129 L17.6748387%2C1.90451613 C17.883871%2C2.11354839 18%2C2.40387097 18%2C2.69419355 Z%22 id%3D%22icon%22%3E%3C%2Fpath%3E %3C%2Fg%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E")/"Completed" !important}::slotted(va-process-list-item[active=true]):before{color:var(--vads-color-primary) !important;border-color:var(--vads-color-primary) !important}::slotted(va-process-list-item[pending=true]):before{color:var(--vads-process-list-color-text-pending-on-light) !important;border-color:var(--vads-color-gray-medium) !important}::slotted(va-process-list-item[pending=true]){color:var(--vads-process-list-color-text-pending-on-light) !important}::slotted(va-process-list-item){border-left:8px solid var(--vads-color-gray-cool-light)}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3156],{3156:function(e,a,i){i.r(a),i.d(a,{va_header_minimal:function(){return o}});var t=i(2625),o=function(){function e(e){(0,t.r)(this,e),this.shifted=!1,this.header=void 0,this.subheader=void 0,this.enableHeadings=!1}return e.prototype.trackShiftKey=function(e){this.shifted=e.shiftKey},e.prototype.trapFocus=function(){var e,a=null===(e=this.el)||void 0===e?void 0:e.shadowRoot.querySelector("va-crisis-line-modal").shadowRoot.querySelector("va-modal"),i=null==a?void 0:a.getAttribute("visible");if(null!==i&&"false"!==i){var t=void 0,o=this.shifted?".last-focusable-child":".va-modal-close";null==(t=this.shifted?null==a?void 0:a.querySelector(o):null==a?void 0:a.shadowRoot.querySelector(o))||t.focus()}},e.prototype.render=function(){var e=this,a=this,i=a.header,o=a.subheader,r=a.enableHeadings;return(0,t.h)(t.H,{key:"247293dceda2d1afdbf24a3c2eb82204949613c9",role:"banner"},(0,t.h)("va-official-gov-banner",{key:"b3f809f861d4a3f45443c7d3cb7c217356b0366d"}),(0,t.h)("va-crisis-line-modal",{key:"764bbbec041d349bbc3e9874244320a8144d4d03"}),(0,t.h)("div",{key:"acd4c4458e9fcd28e6df6a040df8b0c77b054dbf",onFocusin:function(){return e.trapFocus()},class:"va-header"},(0,t.h)("a",{key:"765a6b8c5e134ad0a808284b92892e7ea6347a17",href:"/",title:"Go to VA.gov",class:"va-logo-link"},(0,t.h)("img",{key:"7d2e3be2528a6cc2ba087f90d49d7af51f03c6a6",class:"va-logo",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1Ny42IDM1LjIiIHJvbGU9ImltZyI+PHRpdGxlPlZBPC90aXRsZT48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJNMTEuMSAzNS4yTDAgMGg4LjZsNC4yIDE0LjljMS4yIDQuMiAyLjIgOC4yIDMuMSAxMi42aC4xYy45LTQuMiAxLjktOC40IDMuMS0xMi40TDIzLjUgMGg4LjNMMjAuMiAzNS4yaC05LjF6TTM2LjYgMjYuMmwtMi41IDloLThMMzYuNiAwaDEwLjJsMTAuOCAzNS4yaC04LjVsLTIuNy05aC05Ljh6bTguOC02bC0yLjItNy41Yy0uNi0yLjEtMS4yLTQuNy0xLjctNi44aC0uMWMtLjUgMi4xLTEgNC44LTEuNiA2LjhsLTIgNy41aDcuNnoiPjwvcGF0aD48L2c+PC9zdmc+",alt:"VA logo and Seal, U.S. Department of Veterans Affairs"})),(0,t.h)("div",{key:"37166b0bd5a5e66a02a3bb0b1d0c9a2eef72e550",class:"header-container"},r?(0,t.h)("h1",null,i):(0,t.h)("div",{class:"header"},i),o&&(r?(0,t.h)("h2",null,o):(0,t.h)("div",{class:"subheader"},o)))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();o.style=".va-header{display:-ms-flexbox;display:flex;margin-left:auto;margin-right:auto;max-width:1000px;background-color:var(--vads-color-primary-darker);color:var(--vads-button-color-text-primary-alt-on-light);-ms-flex-align:center;align-items:center;padding:10px 8px;line-height:22px}@media (min-width: 481px){.va-header{padding:10px 16px}}.va-logo-link:focus{outline:2px solid var(--vads-color-action-focus-on-light)}.va-logo{margin-right:8px;min-height:30px;min-width:48px}@media (min-width: 481px){.va-logo{margin-right:16px}}.header-container{padding-left:8px;border-left:1px solid var(--vads-color-white)}@media (min-width: 481px){.header-container{padding-left:16px}}.header-container h1,.header-container .header{font-size:20px;margin:0;font-weight:700}.header-container h2,.header-container .subheader{font-size:20px;margin:0;font-weight:100}@media (min-width: 1024px){va-crisis-line-modal::part(button){position:absolute;right:0;bottom:-5px}}"}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3156],{3156:function(e,a,i){i.r(a),i.d(a,{va_header_minimal:function(){return o}});var t=i(9213),o=function(){function e(e){(0,t.r)(this,e),this.shifted=!1,this.header=void 0,this.subheader=void 0,this.enableHeadings=!1}return e.prototype.trackShiftKey=function(e){this.shifted=e.shiftKey},e.prototype.trapFocus=function(){var e,a=null===(e=this.el)||void 0===e?void 0:e.shadowRoot.querySelector("va-crisis-line-modal").shadowRoot.querySelector("va-modal"),i=null==a?void 0:a.getAttribute("visible");if(null!==i&&"false"!==i){var t=void 0,o=this.shifted?".last-focusable-child":".va-modal-close";null==(t=this.shifted?null==a?void 0:a.querySelector(o):null==a?void 0:a.shadowRoot.querySelector(o))||t.focus()}},e.prototype.render=function(){var e=this,a=this,i=a.header,o=a.subheader,r=a.enableHeadings;return(0,t.h)(t.H,{key:"a29d6dab3a1a8a9a543cacda2fddfede74ea6c52",role:"banner"},(0,t.h)("va-official-gov-banner",{key:"13f4af412cb5f63d5bf9ce54a4dbb95be13c0fc2"}),(0,t.h)("va-crisis-line-modal",{key:"dcf539161cd339fe6d8307f10736a34a13492c90"}),(0,t.h)("div",{key:"cdc8e554b5f3a98ec2ce5f935cde34d34b4539ae",onFocusin:function(){return e.trapFocus()},class:"va-header"},(0,t.h)("a",{key:"907ef67ba571cc32fb9a1c497af07a3dc4fe5137",href:"/",title:"Go to VA.gov",class:"va-logo-link"},(0,t.h)("img",{key:"f2235d2e2a89485627ea4ac2be32959342e13482",class:"va-logo",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1Ny42IDM1LjIiIHJvbGU9ImltZyI+PHRpdGxlPlZBPC90aXRsZT48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJNMTEuMSAzNS4yTDAgMGg4LjZsNC4yIDE0LjljMS4yIDQuMiAyLjIgOC4yIDMuMSAxMi42aC4xYy45LTQuMiAxLjktOC40IDMuMS0xMi40TDIzLjUgMGg4LjNMMjAuMiAzNS4yaC05LjF6TTM2LjYgMjYuMmwtMi41IDloLThMMzYuNiAwaDEwLjJsMTAuOCAzNS4yaC04LjVsLTIuNy05aC05Ljh6bTguOC02bC0yLjItNy41Yy0uNi0yLjEtMS4yLTQuNy0xLjctNi44aC0uMWMtLjUgMi4xLTEgNC44LTEuNiA2LjhsLTIgNy41aDcuNnoiPjwvcGF0aD48L2c+PC9zdmc+",alt:"VA logo and Seal, U.S. Department of Veterans Affairs"})),(0,t.h)("div",{key:"8b7b3ba735984696ed2351e7a259bc07065bdbca",class:"header-container"},r?(0,t.h)("h1",null,i):(0,t.h)("div",{class:"header"},i),o&&(r?(0,t.h)("h2",null,o):(0,t.h)("div",{class:"subheader"},o)))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();o.style=".va-header{display:-ms-flexbox;display:flex;margin-left:auto;margin-right:auto;max-width:1000px;background-color:var(--vads-color-primary-darker);color:var(--vads-button-color-text-primary-alt-on-light);-ms-flex-align:center;align-items:center;padding:10px 8px;line-height:22px}@media (min-width: 481px){.va-header{padding:10px 16px}}.va-logo-link:focus{outline:2px solid var(--vads-color-action-focus-on-light)}.va-logo{margin-right:8px;min-height:30px;min-width:48px}@media (min-width: 481px){.va-logo{margin-right:16px}}.header-container{padding-left:8px;border-left:1px solid var(--vads-color-white)}@media (min-width: 481px){.header-container{padding-left:16px}}.header-container h1,.header-container .header{font-size:20px;margin:0;font-weight:700}.header-container h2,.header-container .subheader{font-size:20px;margin:0;font-weight:100}@media (min-width: 1024px){va-crisis-line-modal::part(button){position:absolute;right:0;bottom:-5px}}"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3349],{3349:function(a,e,o){o.r(e),o.d(e,{va_card:function(){return n}});var r=o(9213),n=function(){function a(a){(0,r.r)(this,a),this.showShadow=!1,this.background=!1,this.iconName=void 0}return a.prototype.render=function(){return(0,r.h)(r.H,{key:"14a3fb82620d7d18233e2519004bfa8b97416f29"},this.iconName&&(0,r.h)("div",{key:"a8112c0220937e722b88b45bce48bcee1d44cfaa",class:"va-card__icon-wrapper"},(0,r.h)("span",{key:"231f85a062cebe5cfdd7b4615db58e38c3c6bbfb",class:"va-card__icon-circle"},(0,r.h)("va-icon",{key:"43a6cee8f2283328806b63a31be0b151e3b68521",icon:this.iconName,size:5}))),(0,r.h)("slot",{key:"de83322bc4051afb4b4a0c7a27387e2367a2003f"}))},a}();n.style=':host{display:block;position:relative;border:1px solid var(--vads-color-gray-medium);background-color:var(--vads-color-white);font-size:1rem;padding:var(--vads-spacing-2)}:host([show-shadow]:not([show-shadow=false])),:host([show-shadow]:not([show-shadow=false])[background]:not([background=false])){-webkit-box-shadow:1px 1px 5px 1px rgba(0, 0, 0, 0.32);box-shadow:1px 1px 5px 1px rgba(0, 0, 0, 0.32);border:1px solid var(--vads-color-gray-medium);background-color:var(--vads-color-white)}:host([background]:not([background=false])){background-color:var(--vads-color-base-lightest);border:none}.va-card__icon-wrapper{position:absolute;top:0;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);z-index:2;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:0}.va-card__icon-circle{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:var(--vads-color-primary-darker);border-radius:50%;width:56px;height:56px;-webkit-box-shadow:0 2px 6px rgba(0, 0, 0, 0.08);box-shadow:0 2px 6px rgba(0, 0, 0, 0.08)}.va-card__icon-circle va-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--vads-color-white)}:host([icon-name]:not([icon-name=""])){padding-top:var(--vads-spacing-4);margin-top:28px}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4064,3126],{3126:function(e,t,n){function i(e){return!Number.isNaN(parseFloat(e))}function o(e,t,n){void 0===n&&(n="slot");var i=e.shadowRoot.querySelector(n).assignedNodes();return null!==t?Array.from(i).filter(function(e){return e.nodeName.toLowerCase()===t}):Array.from(i)}function a(e){return 1===e?"":"s"}function r(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(a(t)," allowed");var n;if(e.length<=t){var i=t-e.length;n="".concat(i," character").concat(a(i)," left")}else i=e.length-t,n="".concat(i," character").concat(a(i)," over limit");return n}function s(e,t){return Array.from({length:t-e+1},function(t,n){return e+n})}n.r(t),n.d(t,{S:function(){return h},a:function(){return o},b:function(){return i},c:function(){return v},d:function(){return m},e:function(){return g},f:function(){return r},g:function(){return u},h:function(){return d},i:function(){return f},m:function(){return s},s:function(){return c},u:function(){return b}}),n(2625);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var n=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var n=t.shadowRoot.querySelectorAll(e);return Array.from(n)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&n.push(t),n}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var t="",n=0;n<e.length;n++)t+=e[n],n+1<arguments.length&&(t+=String(arguments[n+1]||"").replace(h._entity,h.getEntity));return t}};function u(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function d(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var n=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 o=Array.prototype.slice;return m(o.call(e),o.call(t),n,i)}if(e.constructor!==t.constructor)return!1;var a=Object.keys(e),r=Object.keys(t);if(0===a.length&&0===r.length)return!0;if(a.length!==r.length)return!1;for(var s=n.length;s--;)if(n[s]===e)return i[s]===t;n.push(e),i.push(t),a.sort(),r.sort();for(var l=a.length-1;l>=0;l--)if(a[l]!==r[l])return!1;for(var c=void 0,h=a.length-1;h>=0;h--)if(!m(e[c=a[h]],t[c],n,i))return!1;return n.pop(),i.pop(),!0}function v(e,t){var n;return function(){for(var i=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){return e.apply(i,o)},t)}}function g(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function b(e,t,n){e&&(e.innerText=r(t,g(n)))}},4064:function(e,t,n){n.r(t),n.d(t,{va_file_input:function(){return X}});var i=n(2625),o=n(3126),a=(n(2404),n(2265)),r="usa",s="".concat(r,"-file-input"),l=".".concat(s),c="".concat(r,"-file-input__input"),h="".concat(r,"-file-input__target"),u=".".concat(c),d="".concat(r,"-file-input__box"),f="".concat(r,"-file-input__instructions"),p="".concat(r,"-file-input__preview"),m="".concat(r,"-file-input__preview-heading"),v="".concat(r,"-file-input--disabled"),g="".concat(r,"-file-input__choose"),b="".concat(r,"-file-input__accepted-files-message"),w="".concat(r,"-file-input__drag-text"),y="".concat(r,"-file-input--drag"),x="is-loading",A="has-invalid-file",F="".concat(r,"-file-input__preview-image"),C="".concat(F,"--generic"),T="".concat(F,"--pdf"),z="".concat(F,"--word"),S="".concat(F,"--video"),L="".concat(F,"--excel"),k="".concat(r,"-sr-only"),E="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",_=Boolean(!0),I="",M="",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))},q=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),n=function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(d),n.classList.add(h),n.prepend(i),e.parentNode.insertBefore(n,e),e.parentNode.insertBefore(t,n),n.appendChild(e),t.appendChild(n),n}(e),i=function(e){var t=e.closest(l),n=q(e),i=document.createElement("div"),a="Drag ".concat(n," here or"),r="choose from folder";return I="".concat(a," ").concat(r),i.classList.add(f),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",I),i.innerHTML=o.S.escapeHTML('<span class="'.concat(w,'">').concat(a,'</span> <span class="').concat(g,'">').concat(r,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(w)).outerHTML=""),i}(e),a=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var n=t.querySelector(u);return{dropZoneEl:t,inputEl:n}}(e).dropZoneEl;return t?a.classList.add(v):function(e){var t=document.createElement("div"),n=q(e),i=e.closest(l),o=e.closest(".".concat(h));M="No ".concat(n," selected."),t.classList.add(k),t.setAttribute("aria-live","polite"),t.textContent=M,i.insertBefore(t,o)}(e),{instructions:i,dropTarget:n}},W=function(e,t){var n=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),o=e.querySelector(".".concat(b));i&&(i.outerHTML=""),o&&(o.outerHTML="",e.classList.remove(A)),null!==n&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(n,function(e){e.parentNode.removeChild(e)}))},B=function(e,t,n,i){!function(e,t,n,i){var o=t.getAttribute("accept");i.classList.remove(A);var a=function(e,t){var n=!1;return e.indexOf(t)>=0&&(n=!0),n};if(o){for(var r=o.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,h=0;h<c.length;h+=1){var u=c[h];if(!l)break;for(var d=0;d<r.length;d+=1){var f=r[d];if(l=u.name.indexOf(f)>0||a(u.type,f.replace(/\*/g,""))){_=!0;break}}}l||(W(i,n),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(b),i.classList.add(A),_=!1,e.preventDefault(),e.stopPropagation())}}(e,t,n,i),!0===_&&function(e,t,n,i){var a=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],r=i.closest(".".concat(s)).querySelector(".".concat(k)),l=[];W(i,n);for(var c=function(e){var t,r=new FileReader,s=a[e].name;l.push(s),r.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)),n.insertAdjacentHTML("afterend",o.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(E,'" alt="" class="').concat(F," ").concat(x,'"/>').concat(s,"\n <div>")))},r.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(T,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(z,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(L,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(S,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(C,'")')),e.classList.remove(x),e.src=r.result},a[e]&&r.readAsDataURL(a[e])},u=0;u<a.length;u+=1)c(u);0===a.length?t.setAttribute("aria-label",I):function(e,t){var n=document.createElement("div"),i=e.closest(".".concat(h)),a=i.querySelector(".".concat(f)),r="Change file",s="";1===t.length?s=o.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(r,"</span>")):t.length>1&&(r="Change files",s=o.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(r,"</span>"))),a.setAttribute("hidden","true"),n.classList.add(m),n.innerHTML=s,i.insertBefore(n,a),e.setAttribute("aria-label",r)}(t,a),function(e,t,n){var i=e,o=M;1===t.length?o="You have selected the file: ".concat(n):t.length>1&&(o="You have selected ".concat(t.length," files: ").concat(n.join(", "))),setTimeout(function(){i.textContent=o},1e3)}(r,a,l)}(e,t,n,i)},P={".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",".heic":"image/heic"},N="choose from folder",U="Drag a file here or ",j="change file.",O="delete file.",D="Error:",G="You have selected the file:";function V(e,t,n){var i=0,o=function(){var a=e.shadowRoot.querySelector(t),r=null==a?void 0:a.shadowRoot.querySelector(n);r?r.focus():i<10&&(i++,setTimeout(o,100))};setTimeout(o,250)}function Y(e){V(e,"va-button-icon","button")}function Z(e){requestAnimationFrame(function(){requestAnimationFrame(function(){e&&e.focus()})})}function K(e){V(e,"va-text-input","input")}function Q(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));if(0===n)return"".concat(e," ").concat(t[n]);var i=(e/Math.pow(1024,n)).toFixed(n<2?0:1);return"".concat(i," ").concat(t[n])}function J(e){if(e)return(0,i.h)("span",{id:"input-error-message",class:"usa-error-message"},e)}var X=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.vaFileInputError=(0,i.c)(this,"vaFileInputError",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.delayPasswordInputFocusUntilWindowFocus=!1,this.delayChangeButtonFocusUntilWindowFocus=!1,this.slottedContent=null,this.windowHasFocus=!0,this.initialUploadAttemptHasTakenPlace=!1,this.FILE_PREVIEW_SIZE_LIMIT=5242880,this.handleChange=function(e){var n=e.target;t.fileContents=null,n.files&&n.files.length>0&&t.handleFile(n.files[0],!0)},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var n=e.dataTransfer.files;n.length>0&&t.handleFile(n[0],!0)},this.removeFile=function(e){void 0===e&&(e=!0),t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.fileInputRef&&(t.fileInputRef.value=""),t.closeModal()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},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.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}return e.prototype.handleExternalErrorChange=function(e,t){t&&e?this.resetState():e&&Z(this.fileInputRef)},e.prototype.handleInternalErrorChange=function(e){e&&this.windowHasFocus?Y(this.el):e&&!this.windowHasFocus&&(this.delayChangeButtonFocusUntilWindowFocus=!0)},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleShowModalChange=function(e){e||this.file||Z(this.fileInputRef)},e.prototype.handleStatusTextChange=function(e){e&&Z(this.fileInputRef)},e.prototype.handleEncryptedChange=function(e){e&&this.file&&(this.windowHasFocus?K(this.el):this.delayPasswordInputFocusUntilWindowFocus=!0)},e.prototype.handleFileChange=function(e,t){e&&e!==t&&this.encrypted&&(this.windowHasFocus?K(this.el):this.delayPasswordInputFocusUntilWindowFocus=!0)},e.prototype.handleValueChange=function(e){e&&e!==this.file?this.handleFile(e,!1,!0):e||this.removeFile(!1)},e.prototype.handleWindowBlur=function(){this.windowHasFocus=!1},e.prototype.handleWindowFocus=function(){if(this.windowHasFocus=!0,this.delayChangeButtonFocusUntilWindowFocus||this.delayPasswordInputFocusUntilWindowFocus)return this.delayChangeButtonFocusUntilWindowFocus?(this.delayChangeButtonFocusUntilWindowFocus=!1,void Y(this.el)):void(this.delayPasswordInputFocusUntilWindowFocus&&(this.encrypted||this.passwordError)&&(this.delayPasswordInputFocusUntilWindowFocus=!1,K(this.el)))},e.prototype.resetState=function(){this.fileContents=null,this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.handleFile=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.initialUploadAttemptHasTakenPlace=!0;var i=null;if(this.accept){var o=function(e){return e.split(",").map(function(e){return(e=e.trim()).startsWith(".")?P[e]:e})}(this.accept);(function(e,t){for(var n=0,i=t;n<i.length;n++){var o=i[n];if(o===e)return!0;if(o.endsWith("/*")&&e.startsWith(o.slice(0,-1)))return!0}return!1})(e.type,o)||(this.removeFile(!1),i=function(e){var t=function(e){var t=e.name.replace(/^\./,"");return(t.includes(".")?".".concat(t.split(".").pop()):null)||e.type}(e),n=t?"".concat(t," files"):"this file type";return"We do not accept ".concat(n,". Choose a new file.")}(e))}if(0===e.size&&(i="The file you selected is empty. Files must be larger than 0B."),e.size>this.maxFileSize&&(i="\n We can't upload your file because it's too big. Files must be less than ".concat(Q(this.maxFileSize),".")),e.size<this.minFileSize&&(i="We can't upload your file because it's too small. Files must be at least ".concat(Q(this.minFileSize),".")),this.uploadedFile=null,this.file=e,i)return this.internalError=i,this.vaFileInputError.emit({error:i}),void this.resetState();t&&this.vaChange.emit({files:[this.file]}),this.internalError=null,e.size<this.FILE_PREVIEW_SIZE_LIMIT&&this.generateFileContents(this.file),n||Z(this.fileInputRef),this.enableAnalytics&&this.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:this.label}})},e.prototype.generateFileContents=function(e){return function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){e.done?n(e.value):o(e.value).then(r,s)}l((i=i.apply(e,t||[])).next())})}(this,void 0,void 0,function(){var t,n,i,o,a=this;return function(e,t){var n,i,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(r=0)),r;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(6===s[0]&&r.label<o[1]){r.label=o[1],o=s;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(s);break}o[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],i=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,function(r){switch(r.label){case 0:return e?[4,e.slice(0,20).arrayBuffer()]:[2];case 1:return t=r.sent(),n=new Uint8Array(t),i=n.every(function(e){return 0===e}),i||(o=new FileReader,this.fileType=e.type,o.onloadend=function(){a.fileContents=o.result},!this.fileType||"application/pdf"!==this.fileType&&!this.fileType.startsWith("image/")||this.fileType.includes("heic")||o.readAsDataURL(e)),[2]}})})},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.componentWillRender=function(){this.slottedContent=Array.from(this.el.querySelectorAll(":scope > *")),!this.value||this.file||this.initialUploadAttemptHasTakenPlace||(this.handleFile(this.value,!1,!0),this.initialUploadAttemptHasTakenPlace=!0);var e=!(!this.value&&!this.file||this.readOnly);this.showSeparator=this.slottedContent.length>0||e},e.prototype.componentDidLoad=function(){!function(e){(0,o.s)(l,e).forEach(function(e){var t=R(e),n=t.instructions,i=t.dropTarget;i.addEventListener("dragover",function(){this.classList.add(y)},!1),i.addEventListener("dragleave",function(){this.classList.remove(y)},!1),i.addEventListener("drop",function(t){t.preventDefault(),this.classList.remove(y);var o=t.dataTransfer;if(t.target.files=o.files,!(o.files.length>1)){B(t,e,n,i);var a=new CustomEvent("change",{detail:{files:o.files}});e.dispatchEvent(a)}},!1),e.addEventListener("input",function(t){return B(t,e,n,i)},!1)})}(this.el)},e.prototype.render=function(){var e=this,t=this,n=t.label,o=t.name,r=t.required,s=t.accept,l=t.error,c=t.hint,h=t.initialUploadAttemptHasTakenPlace,u=t.uploadMessage,d=t.headerSize,f=t.fileContents,p=t.fileType,m=t.headless,v=t.readOnly,g=t.encrypted,b=t.statusText,w=t.uploadedFile,y=t.percentUploaded,x=t.passwordError,A=t.internalError,F=this.file,C=l||A,T="file-input-target ".concat(C?"file-input-target-error":"").trim(),z=m?"headless-selected-files-wrapper":"selected-files-wrapper",S=null!==y&&y<100,L="file-status-label";S&&(L="".concat(L," uploading-status"));var k=function(e,t,n,i,o,r){var s="".concat(e).concat(t?" "+a.i.t("required"):"",". ").concat(U).concat(N);if(n)return{inputAriaLabel:"".concat(D," ").concat(n," ").concat(s),deleteFileAriaLabel:"".concat(O," ").concat(D," ").concat(n),changeFileAriaLabel:"".concat(j," ").concat(D," ").concat(n)};i&&o?s="".concat(G," ").concat(o.name,"."):!i&&r?s="".concat(G," ").concat(r.name,"."):!i||o||r||(s="".concat("File deleted. No file selected."," ").concat(s));var l=void 0,c=void 0;return o?(l="".concat(j," ").concat(o.name),c="".concat(O," ").concat(o.name)):r&&(l="".concat(j," ").concat(r.name),c="".concat(O," ").concat(r.name)),{inputAriaLabel:s,deleteFileAriaLabel:c,changeFileAriaLabel:l}}(n,r,C,h,F,w),E=k.inputAriaLabel,_=k.deleteFileAriaLabel,I=k.changeFileAriaLabel;return(0,i.h)(i.H,{key:"2c0d0b8ca817db08ca5cefaa28d8e196112be508",class:{"has-error":!!C}},!v&&!m&&(0,i.h)("span",{key:"6bf32739027312a5274c478d15bf7524433417f9"},n&&function(e,t,n){var o=t?(0,i.h)("span",{class:"required"}," ",a.i.t("required")):null;if(n&&n>=1&&n<=6){var r="h".concat(n);return(0,i.h)("div",{class:"label-header"},(0,i.h)(r,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,o))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,o))}(n,r,d)),c&&!v&&!m&&(0,i.h)("div",{key:"9be648ac17f9d1d299d9d3a39f71bcb31572a442",class:"usa-hint",id:"input-hint-message"},c),(0,i.h)("div",{key:"6e36282114d2bbf4a4c853d7e9e64a6e0b95f649",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"c60cb5ef06fe9f25587a486458404455529617b3",id:"fileInputField",class:"file-input ".concat(F||w?"with-file":""),"aria-label":E,type:"file",ref:function(t){return e.fileInputRef=t},name:o,accept:s,onChange:this.handleChange}),w||F?(0,i.h)("div",{class:z},!m&&(0,i.h)("div",{class:"selected-files-label"},v?"Files you uploaded":"Selected files"),(0,i.h)("va-card",{class:"va-card"},(0,i.h)("div",{class:"file-info-section"},function(e,t,n){return e?(0,i.h)("div",{class:"thumbnail-container"},(0,i.h)("va-icon",{icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):t&&(null==n?void 0:n.startsWith("image/"))?(0,i.h)("div",{class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{class:"thumbnail-preview",src:t,alt:"image"})):(0,i.h)("div",{class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{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"})))}(C,f,p),(0,i.h)("div",{class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{class:"file-label"},F?F.name:w.name),J(C),!S&&(0,i.h)("span",{class:"file-size-label"},Q(F?F.size:w.size)),(S||b)&&(0,i.h)("span",{class:L},S?"Uploading...":b))),(0,i.h)("div",{class:this.showSeparator?"with-separator":void 0},!v&&S&&(0,i.h)("div",{class:"progress-bar-and-cancel-button"},(0,i.h)("va-progress-bar",{percent:y,noPercentScreenReader:!0}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})),!S&&(0,i.h)(i.F,null,g&&(0,i.h)("va-text-input",{type:"password",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:x}),(0,i.h)("div",{class:"additional-info-slot"},(0,i.h)("slot",null))),!v&&!S&&(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:I}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,label:_})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, delete 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"},F?F.name:w.name)))))):(0,i.h)("div",null,(0,i.h)("span",{id:"file-input-error-alert"},J(C)),(0,i.h)("div",{class:T},(0,i.h)("div",{class:"file-input-box"}),(0,i.h)("div",{class:"file-input-instructions"},function(e){return e||(0,i.h)("span",null,U,(0,i.h)("span",{class:"file-input-choose-text"},N))}(u))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{error:["handleExternalErrorChange"],internalError:["handleInternalErrorChange"],percentUploaded:["percentHandler"],showModal:["handleShowModalChange"],statusText:["handleStatusTextChange"],encrypted:["handleEncryptedChange"],file:["handleFileChange"],value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();X.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:2rem}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:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}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=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--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.with-file{pointer-events:none}: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-info-group{padding-left:0.5rem}:host #input-error-message{padding:0.25rem 0;width:100%}:host va-card #input-error-message{padding:0}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:var(--vads-font-size-source-sans-normalized);line-height:var(--vads-font-line-height-1);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,:host .additional-info-slot,:host .progress-bar-and-cancel-button,:host va-text-input{position:relative;z-index:2}: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 .with-separator{border-top:1px solid var(--vads-color-base-lighter)}: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;-ms-flex-negative:0;flex-shrink:0}: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: 1024px){: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([[4064,9176],{9176:function(e,t,n){function i(e){return!Number.isNaN(parseFloat(e))}function o(e,t,n){void 0===n&&(n="slot");var i=e.shadowRoot.querySelector(n).assignedNodes();return null!==t?Array.from(i).filter(function(e){return e.nodeName.toLowerCase()===t}):Array.from(i)}function a(e){return 1===e?"":"s"}function r(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(a(t)," allowed");var n;if(e.length<=t){var i=t-e.length;n="".concat(i," character").concat(a(i)," left")}else i=e.length-t,n="".concat(i," character").concat(a(i)," over limit");return n}function s(e,t){return Array.from({length:t-e+1},function(t,n){return e+n})}n.r(t),n.d(t,{S:function(){return h},a:function(){return o},b:function(){return i},c:function(){return v},d:function(){return m},e:function(){return g},f:function(){return r},g:function(){return u},h:function(){return d},i:function(){return f},m:function(){return s},s:function(){return c},u:function(){return b}}),n(9213);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var n=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var n=t.shadowRoot.querySelectorAll(e);return Array.from(n)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&n.push(t),n}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var t="",n=0;n<e.length;n++)t+=e[n],n+1<arguments.length&&(t+=String(arguments[n+1]||"").replace(h._entity,h.getEntity));return t}};function u(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function d(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var n=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 o=Array.prototype.slice;return m(o.call(e),o.call(t),n,i)}if(e.constructor!==t.constructor)return!1;var a=Object.keys(e),r=Object.keys(t);if(0===a.length&&0===r.length)return!0;if(a.length!==r.length)return!1;for(var s=n.length;s--;)if(n[s]===e)return i[s]===t;n.push(e),i.push(t),a.sort(),r.sort();for(var l=a.length-1;l>=0;l--)if(a[l]!==r[l])return!1;for(var c=void 0,h=a.length-1;h>=0;h--)if(!m(e[c=a[h]],t[c],n,i))return!1;return n.pop(),i.pop(),!0}function v(e,t){var n;return function(){for(var i=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){return e.apply(i,o)},t)}}function g(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function b(e,t,n){e&&(e.innerText=r(t,g(n)))}},4064:function(e,t,n){n.r(t),n.d(t,{va_file_input:function(){return X}});var i=n(9213),o=n(9176),a=(n(2404),n(2265)),r="usa",s="".concat(r,"-file-input"),l=".".concat(s),c="".concat(r,"-file-input__input"),h="".concat(r,"-file-input__target"),u=".".concat(c),d="".concat(r,"-file-input__box"),f="".concat(r,"-file-input__instructions"),p="".concat(r,"-file-input__preview"),m="".concat(r,"-file-input__preview-heading"),v="".concat(r,"-file-input--disabled"),g="".concat(r,"-file-input__choose"),b="".concat(r,"-file-input__accepted-files-message"),w="".concat(r,"-file-input__drag-text"),y="".concat(r,"-file-input--drag"),x="is-loading",A="has-invalid-file",F="".concat(r,"-file-input__preview-image"),C="".concat(F,"--generic"),T="".concat(F,"--pdf"),z="".concat(F,"--word"),S="".concat(F,"--video"),L="".concat(F,"--excel"),k="".concat(r,"-sr-only"),E="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",_=Boolean(!0),I="",M="",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))},q=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),n=function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(d),n.classList.add(h),n.prepend(i),e.parentNode.insertBefore(n,e),e.parentNode.insertBefore(t,n),n.appendChild(e),t.appendChild(n),n}(e),i=function(e){var t=e.closest(l),n=q(e),i=document.createElement("div"),a="Drag ".concat(n," here or"),r="choose from folder";return I="".concat(a," ").concat(r),i.classList.add(f),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",I),i.innerHTML=o.S.escapeHTML('<span class="'.concat(w,'">').concat(a,'</span> <span class="').concat(g,'">').concat(r,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(w)).outerHTML=""),i}(e),a=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var n=t.querySelector(u);return{dropZoneEl:t,inputEl:n}}(e).dropZoneEl;return t?a.classList.add(v):function(e){var t=document.createElement("div"),n=q(e),i=e.closest(l),o=e.closest(".".concat(h));M="No ".concat(n," selected."),t.classList.add(k),t.setAttribute("aria-live","polite"),t.textContent=M,i.insertBefore(t,o)}(e),{instructions:i,dropTarget:n}},W=function(e,t){var n=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),o=e.querySelector(".".concat(b));i&&(i.outerHTML=""),o&&(o.outerHTML="",e.classList.remove(A)),null!==n&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(n,function(e){e.parentNode.removeChild(e)}))},B=function(e,t,n,i){!function(e,t,n,i){var o=t.getAttribute("accept");i.classList.remove(A);var a=function(e,t){var n=!1;return e.indexOf(t)>=0&&(n=!0),n};if(o){for(var r=o.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,h=0;h<c.length;h+=1){var u=c[h];if(!l)break;for(var d=0;d<r.length;d+=1){var f=r[d];if(l=u.name.indexOf(f)>0||a(u.type,f.replace(/\*/g,""))){_=!0;break}}}l||(W(i,n),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(b),i.classList.add(A),_=!1,e.preventDefault(),e.stopPropagation())}}(e,t,n,i),!0===_&&function(e,t,n,i){var a=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],r=i.closest(".".concat(s)).querySelector(".".concat(k)),l=[];W(i,n);for(var c=function(e){var t,r=new FileReader,s=a[e].name;l.push(s),r.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)),n.insertAdjacentHTML("afterend",o.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(E,'" alt="" class="').concat(F," ").concat(x,'"/>').concat(s,"\n <div>")))},r.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(T,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(z,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(L,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(S,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(E,'"; this.classList.add("').concat(C,'")')),e.classList.remove(x),e.src=r.result},a[e]&&r.readAsDataURL(a[e])},u=0;u<a.length;u+=1)c(u);0===a.length?t.setAttribute("aria-label",I):function(e,t){var n=document.createElement("div"),i=e.closest(".".concat(h)),a=i.querySelector(".".concat(f)),r="Change file",s="";1===t.length?s=o.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(r,"</span>")):t.length>1&&(r="Change files",s=o.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(r,"</span>"))),a.setAttribute("hidden","true"),n.classList.add(m),n.innerHTML=s,i.insertBefore(n,a),e.setAttribute("aria-label",r)}(t,a),function(e,t,n){var i=e,o=M;1===t.length?o="You have selected the file: ".concat(n):t.length>1&&(o="You have selected ".concat(t.length," files: ").concat(n.join(", "))),setTimeout(function(){i.textContent=o},1e3)}(r,a,l)}(e,t,n,i)},P={".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",".heic":"image/heic"},N="choose from folder",U="Drag a file here or ",j="change file.",O="delete file.",D="Error:",G="You have selected the file:";function V(e,t,n){var i=0,o=function(){var a=e.shadowRoot.querySelector(t),r=null==a?void 0:a.shadowRoot.querySelector(n);r?r.focus():i<10&&(i++,setTimeout(o,100))};setTimeout(o,250)}function Y(e){V(e,"va-button-icon","button")}function Z(e){requestAnimationFrame(function(){requestAnimationFrame(function(){e&&e.focus()})})}function K(e){V(e,"va-text-input","input")}function Q(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));if(0===n)return"".concat(e," ").concat(t[n]);var i=(e/Math.pow(1024,n)).toFixed(n<2?0:1);return"".concat(i," ").concat(t[n])}function J(e){if(e)return(0,i.h)("span",{id:"input-error-message",class:"usa-error-message"},e)}var X=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.vaFileInputError=(0,i.c)(this,"vaFileInputError",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.delayPasswordInputFocusUntilWindowFocus=!1,this.delayChangeButtonFocusUntilWindowFocus=!1,this.slottedContent=null,this.windowHasFocus=!0,this.initialUploadAttemptHasTakenPlace=!1,this.FILE_PREVIEW_SIZE_LIMIT=5242880,this.handleChange=function(e){var n=e.target;t.fileContents=null,n.files&&n.files.length>0&&t.handleFile(n.files[0],!0)},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var n=e.dataTransfer.files;n.length>0&&t.handleFile(n[0],!0)},this.removeFile=function(e){void 0===e&&(e=!0),t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.fileInputRef&&(t.fileInputRef.value=""),t.closeModal()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},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.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}return e.prototype.handleExternalErrorChange=function(e,t){t&&e?this.resetState():e&&Z(this.fileInputRef)},e.prototype.handleInternalErrorChange=function(e){e&&this.windowHasFocus?Y(this.el):e&&!this.windowHasFocus&&(this.delayChangeButtonFocusUntilWindowFocus=!0)},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleShowModalChange=function(e){e||this.file||Z(this.fileInputRef)},e.prototype.handleStatusTextChange=function(e){e&&Z(this.fileInputRef)},e.prototype.handleEncryptedChange=function(e){e&&this.file&&(this.windowHasFocus?K(this.el):this.delayPasswordInputFocusUntilWindowFocus=!0)},e.prototype.handleFileChange=function(e,t){e&&e!==t&&this.encrypted&&(this.windowHasFocus?K(this.el):this.delayPasswordInputFocusUntilWindowFocus=!0)},e.prototype.handleValueChange=function(e){e&&e!==this.file?this.handleFile(e,!1,!0):e||this.removeFile(!1)},e.prototype.handleWindowBlur=function(){this.windowHasFocus=!1},e.prototype.handleWindowFocus=function(){if(this.windowHasFocus=!0,this.delayChangeButtonFocusUntilWindowFocus||this.delayPasswordInputFocusUntilWindowFocus)return this.delayChangeButtonFocusUntilWindowFocus?(this.delayChangeButtonFocusUntilWindowFocus=!1,void Y(this.el)):void(this.delayPasswordInputFocusUntilWindowFocus&&(this.encrypted||this.passwordError)&&(this.delayPasswordInputFocusUntilWindowFocus=!1,K(this.el)))},e.prototype.resetState=function(){this.fileContents=null,this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.handleFile=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.initialUploadAttemptHasTakenPlace=!0;var i=null;if(this.accept){var o=function(e){return e.split(",").map(function(e){return(e=e.trim()).startsWith(".")?P[e]:e})}(this.accept);(function(e,t){for(var n=0,i=t;n<i.length;n++){var o=i[n];if(o===e)return!0;if(o.endsWith("/*")&&e.startsWith(o.slice(0,-1)))return!0}return!1})(e.type,o)||(this.removeFile(!1),i=function(e){var t=function(e){var t=e.name.replace(/^\./,"");return(t.includes(".")?".".concat(t.split(".").pop()):null)||e.type}(e),n=t?"".concat(t," files"):"this file type";return"We do not accept ".concat(n,". Choose a new file.")}(e))}if(0===e.size&&(i="The file you selected is empty. Files must be larger than 0B."),e.size>this.maxFileSize&&(i="\n We can't upload your file because it's too big. Files must be less than ".concat(Q(this.maxFileSize),".")),e.size<this.minFileSize&&(i="We can't upload your file because it's too small. Files must be at least ".concat(Q(this.minFileSize),".")),this.uploadedFile=null,this.file=e,i)return this.internalError=i,this.vaFileInputError.emit({error:i}),void this.resetState();t&&this.vaChange.emit({files:[this.file]}),this.internalError=null,e.size<this.FILE_PREVIEW_SIZE_LIMIT&&this.generateFileContents(this.file),n||Z(this.fileInputRef),this.enableAnalytics&&this.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:this.label}})},e.prototype.generateFileContents=function(e){return function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){e.done?n(e.value):o(e.value).then(r,s)}l((i=i.apply(e,t||[])).next())})}(this,void 0,void 0,function(){var t,n,i,o,a=this;return function(e,t){var n,i,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(r=0)),r;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(6===s[0]&&r.label<o[1]){r.label=o[1],o=s;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(s);break}o[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],i=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,function(r){switch(r.label){case 0:return e?[4,e.slice(0,20).arrayBuffer()]:[2];case 1:return t=r.sent(),n=new Uint8Array(t),i=n.every(function(e){return 0===e}),i||(o=new FileReader,this.fileType=e.type,o.onloadend=function(){a.fileContents=o.result},!this.fileType||"application/pdf"!==this.fileType&&!this.fileType.startsWith("image/")||this.fileType.includes("heic")||o.readAsDataURL(e)),[2]}})})},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.componentWillRender=function(){this.slottedContent=Array.from(this.el.querySelectorAll(":scope > *")),!this.value||this.file||this.initialUploadAttemptHasTakenPlace||(this.handleFile(this.value,!1,!0),this.initialUploadAttemptHasTakenPlace=!0);var e=!(!this.value&&!this.file||this.readOnly);this.showSeparator=this.slottedContent.length>0||e},e.prototype.componentDidLoad=function(){!function(e){(0,o.s)(l,e).forEach(function(e){var t=R(e),n=t.instructions,i=t.dropTarget;i.addEventListener("dragover",function(){this.classList.add(y)},!1),i.addEventListener("dragleave",function(){this.classList.remove(y)},!1),i.addEventListener("drop",function(t){t.preventDefault(),this.classList.remove(y);var o=t.dataTransfer;if(t.target.files=o.files,!(o.files.length>1)){B(t,e,n,i);var a=new CustomEvent("change",{detail:{files:o.files}});e.dispatchEvent(a)}},!1),e.addEventListener("input",function(t){return B(t,e,n,i)},!1)})}(this.el)},e.prototype.render=function(){var e=this,t=this,n=t.label,o=t.name,r=t.required,s=t.accept,l=t.error,c=t.hint,h=t.initialUploadAttemptHasTakenPlace,u=t.uploadMessage,d=t.headerSize,f=t.fileContents,p=t.fileType,m=t.headless,v=t.readOnly,g=t.encrypted,b=t.statusText,w=t.uploadedFile,y=t.percentUploaded,x=t.passwordError,A=t.internalError,F=this.file,C=l||A,T="file-input-target ".concat(C?"file-input-target-error":"").trim(),z=m?"headless-selected-files-wrapper":"selected-files-wrapper",S=null!==y&&y<100,L="file-status-label";S&&(L="".concat(L," uploading-status"));var k=function(e,t,n,i,o,r){var s="".concat(e).concat(t?" "+a.i.t("required"):"",". ").concat(U).concat(N);if(n)return{inputAriaLabel:"".concat(D," ").concat(n," ").concat(s),deleteFileAriaLabel:"".concat(O," ").concat(D," ").concat(n),changeFileAriaLabel:"".concat(j," ").concat(D," ").concat(n)};i&&o?s="".concat(G," ").concat(o.name,"."):!i&&r?s="".concat(G," ").concat(r.name,"."):!i||o||r||(s="".concat("File deleted. No file selected."," ").concat(s));var l=void 0,c=void 0;return o?(l="".concat(j," ").concat(o.name),c="".concat(O," ").concat(o.name)):r&&(l="".concat(j," ").concat(r.name),c="".concat(O," ").concat(r.name)),{inputAriaLabel:s,deleteFileAriaLabel:c,changeFileAriaLabel:l}}(n,r,C,h,F,w),E=k.inputAriaLabel,_=k.deleteFileAriaLabel,I=k.changeFileAriaLabel;return(0,i.h)(i.H,{key:"73280d03bbafd4b6418fd9a2f9b5c9d48d45a238",class:{"has-error":!!C}},!v&&!m&&(0,i.h)("span",{key:"ede6f6113731ca72c248e93b3f250a3ecbc710ff"},n&&function(e,t,n){var o=t?(0,i.h)("span",{class:"required"}," ",a.i.t("required")):null;if(n&&n>=1&&n<=6){var r="h".concat(n);return(0,i.h)("div",{class:"label-header"},(0,i.h)(r,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,o))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,o))}(n,r,d)),c&&!v&&!m&&(0,i.h)("div",{key:"557d2cefe48427c5863363b51d068e78cbf68fdb",class:"usa-hint",id:"input-hint-message"},c),(0,i.h)("div",{key:"01c8a036647d3a6a1f3f8f6e705e734aacda5ca2",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"88ef3deff978fc4f1b85c85cfef08e8f4be13c26",id:"fileInputField",class:"file-input ".concat(F||w?"with-file":""),"aria-label":E,type:"file",ref:function(t){return e.fileInputRef=t},name:o,accept:s,onChange:this.handleChange}),w||F?(0,i.h)("div",{class:z},!m&&(0,i.h)("div",{class:"selected-files-label"},v?"Files you uploaded":"Selected files"),(0,i.h)("va-card",{class:"va-card"},(0,i.h)("div",{class:"file-info-section"},function(e,t,n){return e?(0,i.h)("div",{class:"thumbnail-container"},(0,i.h)("va-icon",{icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):t&&(null==n?void 0:n.startsWith("image/"))?(0,i.h)("div",{class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{class:"thumbnail-preview",src:t,alt:"image"})):(0,i.h)("div",{class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{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"})))}(C,f,p),(0,i.h)("div",{class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{class:"file-label"},F?F.name:w.name),J(C),!S&&(0,i.h)("span",{class:"file-size-label"},Q(F?F.size:w.size)),(S||b)&&(0,i.h)("span",{class:L},S?"Uploading...":b))),(0,i.h)("div",{class:this.showSeparator?"with-separator":void 0},!v&&S&&(0,i.h)("div",{class:"progress-bar-and-cancel-button"},(0,i.h)("va-progress-bar",{percent:y,noPercentScreenReader:!0}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})),!S&&(0,i.h)(i.F,null,g&&(0,i.h)("va-text-input",{type:"password",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:x}),(0,i.h)("div",{class:"additional-info-slot"},(0,i.h)("slot",null))),!v&&!S&&(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:I}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,label:_})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, delete 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"},F?F.name:w.name)))))):(0,i.h)("div",null,(0,i.h)("span",{id:"file-input-error-alert"},J(C)),(0,i.h)("div",{class:T},(0,i.h)("div",{class:"file-input-box"}),(0,i.h)("div",{class:"file-input-instructions"},function(e){return e||(0,i.h)("span",null,U,(0,i.h)("span",{class:"file-input-choose-text"},N))}(u))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{error:["handleExternalErrorChange"],internalError:["handleInternalErrorChange"],percentUploaded:["percentHandler"],showModal:["handleShowModalChange"],statusText:["handleStatusTextChange"],encrypted:["handleEncryptedChange"],file:["handleFileChange"],value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();X.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:2rem}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:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}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=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--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.with-file{pointer-events:none}: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-info-group{padding-left:0.5rem}:host #input-error-message{padding:0.25rem 0;width:100%}:host va-card #input-error-message{padding:0}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:var(--vads-font-size-source-sans-normalized);line-height:var(--vads-font-line-height-1);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,:host .additional-info-slot,:host .progress-bar-and-cancel-button,:host va-text-input{position:relative;z-index:2}: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 .with-separator{border-top:1px solid var(--vads-color-base-lighter)}: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;-ms-flex-negative:0;flex-shrink:0}: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: 1024px){: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,2 +1,2 @@
1
1
  /*! For license information please see 4117.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([[4117,4164,3126],{4164:function(e,a,t){t.r(a),t.d(a,{c:function(){return o}});var r,i={exports:{}};r=i,function(){var e={}.hasOwnProperty;function a(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var n=a.apply(null,i);n&&t.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(" ")}r.exports?(a.default=a,r.exports=a):window.classNames=a}();var o=i.exports},3126:function(e,a,t){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,a,t){void 0===t&&(t="slot");var r=e.shadowRoot.querySelector(t).assignedNodes();return null!==a?Array.from(r).filter(function(e){return e.nodeName.toLowerCase()===a}):Array.from(r)}function o(e){return 1===e?"":"s"}function n(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(o(a)," allowed");var t;if(e.length<=a){var r=a-e.length;t="".concat(r," character").concat(o(r)," left")}else r=e.length-a,t="".concat(r," character").concat(o(r)," over limit");return t}function s(e,a){return Array.from({length:a-e+1},function(a,t){return e+t})}t.r(a),t.d(a,{S:function(){return c},a:function(){return i},b:function(){return r},c:function(){return p},d:function(){return m},e:function(){return g},f:function(){return n},g:function(){return d},h:function(){return f},i:function(){return h},m:function(){return s},s:function(){return l},u:function(){return v}}),t(2625);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var t=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var t=a.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&t.push(a),t}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var a="",t=0;t<e.length;t++)a+=e[t],t+1<arguments.length&&(a+=String(arguments[t+1]||"").replace(c._entity,c.getEntity));return a}};function d(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function b(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===a)return!0;if("function"==typeof e||"function"==typeof a)return!0;if("object"!=typeof e||"object"!=typeof a)return!1;if(null===e||null===a)return!1;if(e instanceof Date&&a instanceof Date)return e.getTime()===a.getTime();if(e instanceof RegExp&&a instanceof RegExp)return e.source===a.source&&e.global===a.global&&e.multiline===a.multiline&&e.lastIndex===a.lastIndex&&e.ignoreCase===a.ignoreCase;if(b(e)||b(a)){if(!b(e)||!b(a))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(a),t,r)}if(e.constructor!==a.constructor)return!1;var o=Object.keys(e),n=Object.keys(a);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return r[s]===a;t.push(e),r.push(a),o.sort(),n.sort();for(var u=o.length-1;u>=0;u--)if(o[u]!==n[u])return!1;for(var l=void 0,c=o.length-1;c>=0;c--)if(!m(e[l=o[c]],a[l],t,r))return!1;return t.pop(),r.pop(),!0}function p(e,a){var t;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(function(){return e.apply(r,i)},a)}}function g(e){if(null!=e){var a="string"==typeof e?parseInt(e,10):e;if(!(a<=0||isNaN(a)))return a}}function v(e,a,t){e&&(e.innerText=n(a,g(t)))}},4117:function(e,a,t){t.r(a),t.d(a,{va_textarea:function(){return s}});var r=t(2625),i=t(4164),o=(t(2404),t(3126)),n=t(2265),s=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.debouncedUpdateScreenReaderCount=(0,o.c)(o.u,1e3),this.handleInput=function(e){var t=e.target;a.value=t.value,a.debouncedUpdateScreenReaderCount(a.charCountElement,a.value,(0,o.e)(a.maxlength))},this.handleBlur=function(){a.enableAnalytics&&a.value&&a.componentLibraryAnalytics.emit({componentName:"va-textarea",action:"blur",details:{label:a.label,value:a.value}})},this.label=void 0,this.error=void 0,this.placeholder=void 0,this.name=void 0,this.required=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.maxlength=void 0,this.value=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",function(){(0,r.f)(e.el)})},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.componentDidRender=function(){var e=this;this.charCountElement&&!this.charCountElement.innerText&&(this.charCountElement.innerText=(0,o.f)(this.value,(0,o.e)(this.maxlength)),setTimeout(function(){e.charCountElement.setAttribute("aria-live","polite")},0))},e.prototype.render=function(){var e=this,a=this,t=a.label,s=a.error,u=a.placeholder,l=a.name,c=a.required,d=a.value,f=a.hint,h=a.charcount,b=a.messageAriaDescribedby,m=a.useFormsPattern,p=a.formHeadingLevel,g=a.headerAriaDescribedby,v=a.formHeading,y=(0,o.e)(this.maxlength),x="".concat(s?"input-error-message":""," ").concat(h&&y?"charcount-message":""," ").concat(b?"input-message":"").trim()||null,w="".concat(m&&v?"form-question":""," ").concat(m?"form-description":""," ").concat(m&&t?"input-label":"").trim()||null,k=(0,o.g)(this.labelHeaderLevel),T=g?"header-message":null,_=h&&(null==d?void 0:d.length)>y,z=(0,i.c)({"usa-label":!0,"usa-label--error":s}),A=(0,i.c)({"usa-textarea":!0,"usa-input--error":s}),S=(0,i.c)({"usa-hint":!0,"usa-character-count__status":h,"usa-character-count__status--invalid":h&&y&&(null==d?void 0:d.length)>y}),C=null;if("single"===m||"multiple"===m){var N=(0,o.g)(p);C=(0,r.h)(r.F,{key:"b362bafa0e2632da58a2538dd5b52a13e979da6d"},v&&(0,r.h)(N,{key:"dbd41a3e3b509a51925677a5b310a86f146e8c20",id:"form-question",part:"form-header"},v),(0,r.h)("div",{key:"70ef66b85b2b9fbe9a20562e66cf86bfa65e54d0",id:"form-description"},(0,r.h)("slot",{key:"dbad1687851beb94a5a295fab983ba54dd6be1a3",name:"form-description"})))}var q=(0,r.h)("label",{key:"bb54caa82dcfdfb77d3c7cc5832617df4ff95a32",htmlFor:"input-type-textarea",id:"input-label",class:z,part:"label"},t,"multiple"===m&&g?(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},(0,r.h)("span",null,t),(0,r.h)("span",null,g)):"multiple"===m?(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},t):g?(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},g):null,c&&(0,r.h)("span",{key:"ea87afc1173b4e2b8e0d37f014b8450a8990a6e0",class:"usa-label--required"}," ",n.i.t("required")),f&&(0,r.h)("div",{key:"7a1f89c0e450e868ca11a7056263d241df8166d0",class:"usa-hint"},f));return(0,r.h)(r.H,{key:"69068fdacf2dd7bc9ba84f092ddb2e040c86f51a"},C,(0,r.h)("div",{key:"1e6527f2110785d3ae39197338a3b66da5891926",class:"input-wrap"},t&&k?(0,r.h)(k,{part:"header","aria-describedby":T},q):q,(0,r.h)("slot",{key:"86b2f848afdf3419948dd9af5a30171e17f3844a"}),(0,r.h)("span",{key:"d599993ea24ac07b21fb80e2ce97fa9ae700ba11",id:"input-error-message",role:"alert"},s&&(0,r.h)(r.F,{key:"0cffc5ca7945dc049194a7cb01d50e02af2ca76b"},(0,r.h)("span",{key:"9c764fb507accd478701ec4432f65c49a570374b",class:"usa-sr-only"},n.i.t("error")),(0,r.h)("span",{key:"ac36c8f8cf9440f4097c898887179614eef411f3",class:"usa-error-message"},s))),(0,r.h)("textarea",{key:"1a692c621394270187d00a9a517eadddb4b0dc68",class:A,"aria-describedby":x,"aria-invalid":s||_?"true":"false","aria-labelledby":w,onInput:this.handleInput,onBlur:this.handleBlur,id:"input-type-textarea",placeholder:u,name:l,maxLength:h?void 0:y,value:d,part:"input-type-textarea"}),!h&&y&&(null==d?void 0:d.length)>=y&&(0,r.h)("span",{key:"8b523d5a4289a20aa46ae0ca524bb0b806981fd8",class:S,"aria-live":"polite"},n.i.t("max-chars",{length:y})),h&&y&&(0,r.h)(r.F,{key:"bb32ecd7057f987b21ca193738e3f77257d8301c"},(0,r.h)("span",{key:"ef7fe167ae012610f4afc418ba3c8f768265b410","aria-hidden":"true",class:S},(0,o.f)(this.value,(0,o.e)(this.maxlength))),(0,r.h)("span",{key:"1e873a31965705ea31192a1e583705013dbddf9e",id:"charcount-message",class:"usa-sr-only",ref:function(a){return e.charCountElement=a}})),(0,o.i)(b)&&(0,r.h)("span",{key:"58684ff6beaf3573b67f6ac8a66128f8fe43687a",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},b)))},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}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:2rem}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:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}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-textarea,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-textarea,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.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-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:0;color:GrayText}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:2px solid GrayText}}.usa-textarea{height:10rem}.usa-character-count__status{display:inline-block;padding-top:0.25rem}.usa-character-count__status.usa-character-count__status--invalid{color:#b50909;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}h1 .usa-label,h2 .usa-label,h3 .usa-label,h4 .usa-label,h5 .usa-label,h6 .usa-label{font-family:inherit;font-size:inherit;font-weight:inherit}h1 .usa-label .usa-label--required,h2 .usa-label .usa-label--required,h3 .usa-label .usa-label--required,h4 .usa-label .usa-label--required,h5 .usa-label .usa-label--required,h6 .usa-label .usa-label--required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}:host{color:var(--vads-color-base);display:block;resize:both;font-family:var(--font-source-sans)}:host(:focus){outline:none !important}.usa-hint{display:block;font-weight:normal}textarea{-webkit-box-sizing:border-box;box-sizing:border-box}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4117,4164,9176],{4164:function(e,a,t){t.r(a),t.d(a,{c:function(){return o}});var r,i={exports:{}};r=i,function(){var e={}.hasOwnProperty;function a(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var n=a.apply(null,i);n&&t.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(" ")}r.exports?(a.default=a,r.exports=a):window.classNames=a}();var o=i.exports},9176:function(e,a,t){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,a,t){void 0===t&&(t="slot");var r=e.shadowRoot.querySelector(t).assignedNodes();return null!==a?Array.from(r).filter(function(e){return e.nodeName.toLowerCase()===a}):Array.from(r)}function o(e){return 1===e?"":"s"}function n(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(o(a)," allowed");var t;if(e.length<=a){var r=a-e.length;t="".concat(r," character").concat(o(r)," left")}else r=e.length-a,t="".concat(r," character").concat(o(r)," over limit");return t}function s(e,a){return Array.from({length:a-e+1},function(a,t){return e+t})}t.r(a),t.d(a,{S:function(){return c},a:function(){return i},b:function(){return r},c:function(){return p},d:function(){return b},e:function(){return g},f:function(){return n},g:function(){return d},h:function(){return f},i:function(){return h},m:function(){return s},s:function(){return l},u:function(){return v}}),t(9213);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var t=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var t=a.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&t.push(a),t}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var a="",t=0;t<e.length;t++)a+=e[t],t+1<arguments.length&&(a+=String(arguments[t+1]||"").replace(c._entity,c.getEntity));return a}};function d(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function m(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function b(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===a)return!0;if("function"==typeof e||"function"==typeof a)return!0;if("object"!=typeof e||"object"!=typeof a)return!1;if(null===e||null===a)return!1;if(e instanceof Date&&a instanceof Date)return e.getTime()===a.getTime();if(e instanceof RegExp&&a instanceof RegExp)return e.source===a.source&&e.global===a.global&&e.multiline===a.multiline&&e.lastIndex===a.lastIndex&&e.ignoreCase===a.ignoreCase;if(m(e)||m(a)){if(!m(e)||!m(a))return!1;var i=Array.prototype.slice;return b(i.call(e),i.call(a),t,r)}if(e.constructor!==a.constructor)return!1;var o=Object.keys(e),n=Object.keys(a);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return r[s]===a;t.push(e),r.push(a),o.sort(),n.sort();for(var u=o.length-1;u>=0;u--)if(o[u]!==n[u])return!1;for(var l=void 0,c=o.length-1;c>=0;c--)if(!b(e[l=o[c]],a[l],t,r))return!1;return t.pop(),r.pop(),!0}function p(e,a){var t;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(function(){return e.apply(r,i)},a)}}function g(e){if(null!=e){var a="string"==typeof e?parseInt(e,10):e;if(!(a<=0||isNaN(a)))return a}}function v(e,a,t){e&&(e.innerText=n(a,g(t)))}},4117:function(e,a,t){t.r(a),t.d(a,{va_textarea:function(){return s}});var r=t(9213),i=t(4164),o=(t(2404),t(9176)),n=t(2265),s=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.debouncedUpdateScreenReaderCount=(0,o.c)(o.u,1e3),this.handleInput=function(e){var t=e.target;a.value=t.value,a.debouncedUpdateScreenReaderCount(a.charCountElement,a.value,(0,o.e)(a.maxlength))},this.handleBlur=function(){a.enableAnalytics&&a.value&&a.componentLibraryAnalytics.emit({componentName:"va-textarea",action:"blur",details:{label:a.label,value:a.value}})},this.label=void 0,this.error=void 0,this.placeholder=void 0,this.name=void 0,this.required=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.maxlength=void 0,this.value=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",function(){(0,r.f)(e.el)})},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.componentDidRender=function(){var e=this;this.charCountElement&&!this.charCountElement.innerText&&(this.charCountElement.innerText=(0,o.f)(this.value,(0,o.e)(this.maxlength)),setTimeout(function(){e.charCountElement.setAttribute("aria-live","polite")},0))},e.prototype.render=function(){var e=this,a=this,t=a.label,s=a.error,u=a.placeholder,l=a.name,c=a.required,d=a.value,f=a.hint,h=a.charcount,m=a.messageAriaDescribedby,b=a.useFormsPattern,p=a.formHeadingLevel,g=a.headerAriaDescribedby,v=a.formHeading,y=(0,o.e)(this.maxlength),x="".concat(s?"input-error-message":""," ").concat(h&&y?"charcount-message":""," ").concat(m?"input-message":"").trim()||null,w="".concat(b&&v?"form-question":""," ").concat(b?"form-description":""," ").concat(b&&t?"input-label":"").trim()||null,k=(0,o.g)(this.labelHeaderLevel),T=g?"header-message":null,_=h&&(null==d?void 0:d.length)>y,z=(0,i.c)({"usa-label":!0,"usa-label--error":s}),A=(0,i.c)({"usa-textarea":!0,"usa-input--error":s}),S=(0,i.c)({"usa-hint":!0,"usa-character-count__status":h,"usa-character-count__status--invalid":h&&y&&(null==d?void 0:d.length)>y}),C=null;if("single"===b||"multiple"===b){var N=(0,o.g)(p);C=(0,r.h)(r.F,{key:"489531ad27709380def67632828457863e5d78e4"},v&&(0,r.h)(N,{key:"55d78ba626f01c53d82be4969babb20eef788ad0",id:"form-question",part:"form-header"},v),(0,r.h)("div",{key:"1932bc0973f299858b314e946eb2e4d60b4d08cd",id:"form-description"},(0,r.h)("slot",{key:"795abff474c1af552cd6480efdb08ca386c7e6da",name:"form-description"})))}var q=(0,r.h)("label",{key:"7907091acf514daed77f2741da460bad9dafb2c6",htmlFor:"input-type-textarea",id:"input-label",class:z,part:"label"},t,"multiple"===b&&g?(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},(0,r.h)("span",null,t),(0,r.h)("span",null,g)):"multiple"===b?(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},t):g?(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},g):null,c&&(0,r.h)("span",{key:"2dfa5215c62e76965300465c88372414f6e92da8",class:"usa-label--required"}," ",n.i.t("required")),f&&(0,r.h)("div",{key:"10619e8a82d50134e22bf4dffd1987cc1e8926cd",class:"usa-hint"},f));return(0,r.h)(r.H,{key:"038d4dd7fcaae1c6e878e987dcc61e2fd3137f7c"},C,(0,r.h)("div",{key:"3a465a8575c84c2f09fd7cdfa290518a4481518f",class:"input-wrap"},t&&k?(0,r.h)(k,{part:"header","aria-describedby":T},q):q,(0,r.h)("slot",{key:"eca6259768390626fe09a3f6c6007985c913d76c"}),(0,r.h)("span",{key:"81054af5147d29a447305ea8420d8588fc18ff94",id:"input-error-message",role:"alert"},s&&(0,r.h)(r.F,{key:"61ef15500be21e84fc4edc015efbe684e61cff69"},(0,r.h)("span",{key:"3bd20454027801fe90e7a56f7dd672a3dc6a0fc0",class:"usa-sr-only"},n.i.t("error")),(0,r.h)("span",{key:"6e24391de0ab52f284ebe123154a37e88d666259",class:"usa-error-message"},s))),(0,r.h)("textarea",{key:"36a37b5fc32852f96222fdae8be843b5e2764797",class:A,"aria-describedby":x,"aria-invalid":s||_?"true":"false","aria-labelledby":w,onInput:this.handleInput,onBlur:this.handleBlur,id:"input-type-textarea",placeholder:u,name:l,maxLength:h?void 0:y,value:d,part:"input-type-textarea"}),!h&&y&&(null==d?void 0:d.length)>=y&&(0,r.h)("span",{key:"7f957f5afe1d7a77ffd7d07da06d764d6afa2090",class:S,"aria-live":"polite"},n.i.t("max-chars",{length:y})),h&&y&&(0,r.h)(r.F,{key:"da1e46841b1586aea4735721b49801271db61e27"},(0,r.h)("span",{key:"1bd4795a3f694682ffac2fe3b7f00d12ae8177a8","aria-hidden":"true",class:S},(0,o.f)(this.value,(0,o.e)(this.maxlength))),(0,r.h)("span",{key:"56c3777d552593c6740afa0dd66926c6f6021273",id:"charcount-message",class:"usa-sr-only",ref:function(a){return e.charCountElement=a}})),(0,o.i)(m)&&(0,r.h)("span",{key:"5a45b14eb0b6ec5a9469513fafbcfe6d8e2db44d",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},m)))},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}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:2rem}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:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}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-textarea,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-textarea,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.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-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:0;color:GrayText}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:2px solid GrayText}}.usa-textarea{height:10rem}.usa-character-count__status{display:inline-block;padding-top:0.25rem}.usa-character-count__status.usa-character-count__status--invalid{color:#b50909;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}h1 .usa-label,h2 .usa-label,h3 .usa-label,h4 .usa-label,h5 .usa-label,h6 .usa-label{font-family:inherit;font-size:inherit;font-weight:inherit}h1 .usa-label .usa-label--required,h2 .usa-label .usa-label--required,h3 .usa-label .usa-label--required,h4 .usa-label .usa-label--required,h5 .usa-label .usa-label--required,h6 .usa-label .usa-label--required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}:host{color:var(--vads-color-base);display:block;resize:both;font-family:var(--font-source-sans)}:host(:focus){outline:none !important}.usa-hint{display:block;font-weight:normal}textarea{-webkit-box-sizing:border-box;box-sizing:border-box}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4140],{4140:function(e,t,i){i.r(t),i.d(t,{va_crisis_line_modal:function(){return r},va_official_gov_banner:function(){return s}});var a=i(2625),n=i(2404),o=i(2265),r=function(){function e(e){(0,a.r)(this,e),this.allowModalRender=!1,this.phoneNumber="988",this.phoneExtension="1",this.textNumber="838255",this.chatUrl="https://www.veteranscrisisline.net/get-help-now/chat/",this.ttyNumber=n.a.CRISIS_MODAL_TTY.phoneNumber||"711",this.ttyCrisisExtension=n.a.CRISIS_MODAL_TTY.extension||"988",this.mode=void 0,this.isOpen=!1,this.shifted=!1}return e.prototype.handleGlobalOpen=function(){this.allowModalRender&&this.open()},e.prototype.open=function(){this.setVisible()},e.prototype.setVisible=function(){this.isOpen=!0},e.prototype.setNotVisible=function(){this.isOpen=!1},e.prototype.componentWillLoad=function(){e.modalOwner||"trigger"===this.mode||(this.allowModalRender=!0,e.modalOwner=this.el)},e.prototype.disconnectedCallback=function(){e.modalOwner===this.el&&(e.modalOwner=null)},e.prototype.trackShiftKey=function(e){this.shifted=e.shiftKey},e.prototype.trapFocus=function(){var e,t=null===(e=this.el)||void 0===e?void 0:e.shadowRoot.querySelector("va-modal"),i=null==t?void 0:t.getAttribute("visible");if(null!==i&&"false"!==i){var a=void 0,n=this.shifted?".last-focusable-child":'[role="document"]';null==(a=this.shifted?null==t?void 0:t.querySelector(n):null==t?void 0:t.shadowRoot.querySelector(n))||a.focus()}},e.prototype.render=function(){var e=this,t=this,i=t.phoneNumber,n=t.phoneExtension,r=t.textNumber,s=t.chatUrl,c=t.ttyNumber,d=t.ttyCrisisExtension,l=t.mode,g="modal"!==l,b=this.allowModalRender&&"trigger"!==l;return(0,a.h)(a.H,{key:"88996025fcdc1122068df01cdbb286ce7dbe1ca3"},g&&(0,a.h)("div",{key:"8ca76bd5525e87c7e2d5baa3ee2d9ec697bdeb33",class:"va-crisis-line-container"},(0,a.h)("button",{key:"ff230af3b7ae30b4e2acfada0f9cc96252b4ee43",onClick:function(){return document.dispatchEvent(new CustomEvent("vaCrisisLineModalOpen"))},onFocusin:function(){return e.trapFocus()},"data-show":"#modal-crisisline",class:"va-crisis-line va-overlay-trigger",part:"button"},(0,a.h)("div",{key:"c9b1200a32d95e5900412630b317bd89e53603f2",class:"va-crisis-line-inner"},(0,a.h)("span",{key:"095f4f84351c0e079148dab58bcce488cf84e424",class:"va-crisis-line-icon","aria-hidden":"true"}),(0,a.h)("span",{key:"dedec2994be5d539f6766f4d5363883d6e839c60",class:"va-crisis-line-text",innerHTML:o.i.t("crisis-line-trigger-text")}),(0,a.h)("va-icon",{key:"67403aa0e9a4903d7f0385e1bccee3f4d02545a1",class:"va-icon__right-arrow",icon:"navigate_next",size:3})))),b&&(0,a.h)("va-modal",{key:"1188106f0740a332ea48d2ba62286c4de1ea2902",modalTitle:o.i.t("crisis-line-modal-title"),onPrimaryButtonClick:function(){return e.setNotVisible()},onCloseEvent:function(){return e.setNotVisible()},visible:this.isOpen,large:!0},(0,a.h)("p",{key:"56160927cdc08a2ef882204f85812cd73fb2a831"},o.i.t("crisis-line-intro")),(0,a.h)("ul",{key:"6e1a36268509617d8e57380bfc9dc8a28a4566c7",class:"va-crisis-panel-list"},(0,a.h)("li",{key:"700d2bfc15dca8c06db7b75d15dea23d3bf56890"},(0,a.h)("va-icon",{key:"1d23a524dc9792e6e7a4d09b5a8a839fbccf161a",class:"va-clm__icon",icon:"phone",size:3}),(0,a.h)("span",{key:"59a1661b09c8aa9e6126d34b80b2fe3c54802657"},o.i.t("crisis-line-phone-label")+" "," ",(0,a.h)("strong",{key:"935d09b1bce83e714a1cd37d5897c15989337ae2"},(0,a.h)("va-telephone",{key:"747ed72e35f04c845833cbfe09235157c8187009",contact:i}),n?" ".concat(o.i.t("crisis-line-phone-extension-label")," ").concat(n):null))),(0,a.h)("li",{key:"aeede56bad734f94133bcf5591b5b67d3c8fff6a"},(0,a.h)("va-icon",{key:"f0ddbdbf66ee74d82dc0bfddaa0f7e0a3ab876b8",icon:"phone_iphone",class:"va-clm__icon",size:3}),(0,a.h)("span",{key:"ed2320795746f7d6389d1d460d397f70a66ea713"},o.i.t("crisis-line-text-label")+" "," ",(0,a.h)("strong",{key:"f330d828ae8d16f84d6400d85113667cf7cab014"},(0,a.h)("va-telephone",{key:"39d1cdd2ba7ebef934b8141294d9ffc8d0ea193b",sms:!0,contact:r})))),(0,a.h)("li",{key:"1144f351bb07ff02c2b2e9c4b9c1655154c5e1a4"},(0,a.h)("va-icon",{key:"8ed4fbe5d0c38e9a24bcb8821e56039089bad21e",icon:"chat",class:"va-clm__icon",size:3}),(0,a.h)("a",{key:"382d7434d4562f304ee4d06988c79a3185b7ee9d",class:"no-external-icon",href:s},o.i.t("crisis-line-chat-label"))),(0,a.h)("li",{key:"19d0c97e974ad7a0636d77bc6494930b3d4e2170"},(0,a.h)("va-icon",{key:"013b9601534c628160d8364a99dcda6570116b97",icon:"tty",class:"va-clm__icon",size:3}),(0,a.h)("p",{key:"e34dc521517f7092411d1860ef50f8a8b02b979a"},o.i.t("crisis-line-tty-label")+" ",(0,a.h)("strong",{key:"f46ac0836caed675365caadb2c96108187f6a6f1"},(0,a.h)("va-telephone",{key:"e9b0e4f6e43be4950c2e76c7f81bb5f352074fb0",contact:c}),d?" ".concat(o.i.t("crisis-line-tty-extension-label")," ").concat(d):null)))),(0,a.h)("p",{key:"1e65899bba6878050240021802eee22e580851e4"},o.i.t("crisis-line-resources-link-label")+" ",(0,a.h)("a",{key:"8835e5ac2c94c138370d377f31a6ae0d8f544b7f",class:"no-external-icon",href:"https://www.veteranscrisisline.net/"},o.i.t("crisis-line-resources-link-text")))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();r.modalOwner=null,r.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}.va-crisis-line-container{position:relative;margin:auto;background-color:var(--vads-color-secondary-dark)}@media (min-width: 1024px){.va-crisis-line-container{max-width:60.938rem;background-color:transparent}}a{color:var(--vads-color-link)}button.va-crisis-line{cursor:pointer;background-color:var(--vads-color-secondary-darkest);display:block;border-radius:0;color:var(--vads-button-color-text-primary-alt-on-light);font-family:var(--font-source-sans);font-size:16px;font-weight:normal;text-decoration:none;padding:0;margin:0;width:100%;border:0;-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:background-color;transition-property:background-color}button.va-crisis-line:focus{outline-offset:-2px}button.va-crisis-line:hover,button.va-crisis-line:active{background-color:#8b0a03}@media (min-width: 1024px){button.va-crisis-line:hover .va-crisis-line-icon,button.va-crisis-line:active .va-crisis-line-icon{background-color:#b51d09}}@media (min-width: 1024px){button.va-crisis-line{width:auto;border-radius:0 0 2.3px 2.3px;-webkit-box-shadow:0 2px 5px var(--vads-color-base);box-shadow:0 2px 5px var(--vads-color-base)}}.va-crisis-line-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:auto}@media (min-width: 1024px){.va-crisis-line-inner{text-align:left;-ms-flex-pack:justify;justify-content:space-between}}.va-crisis-line-icon{content:"";background:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 96 60%22 width%3D%2296px%22 height%3D%2260px%22%3E%3Cpath d%3D%22M58 14c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 30c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 46c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm-48 2L32 60h-2V48H4c-2.20914 0-4-1.79086-4-4V4c0-2.20914 1.79086-4 4-4h40c2.20914 0 4 1.79086 4 4v40c0 2.20914-1.79086 4-4 4h-2zM24 31.72174L33.86667 39l-3.73334-11.86087L40 20.13043H28L24 8l-4 12.13043H8l9.86667 7.0087L14.13333 39 24 31.72174z%22 fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat right 29%;background-size:30px auto;background-position:8px 8px;width:40px;height:36px;padding-right:3px;-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:background-color;transition-property:background-color}@media (max-width: 480px){.va-crisis-line-icon{display:none}}@media (min-width: 1024px){.va-crisis-line-icon{border-bottom-left-radius:3.2px}}.va-crisis-line-text{padding:8px}.va-icon__right-arrow{position:relative;top:2px}.va-clm__icon{position:relative;top:15px;margin-right:23px}.va-crisis-panel{color:var(--vads-color-base)}.va-crisis-panel-body{max-height:100%}.va-crisis-panel-title{color:var(--vads-color-base);padding-left:41px;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 96 60%22 width%3D%2296px%22 height%3D%2260px%22%3E%3Cpath d%3D%22M58 14c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 30c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 46c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm-48 2L32 60h-2V48H4c-2.20914 0-4-1.79086-4-4V4c0-2.20914 1.79086-4 4-4h40c2.20914 0 4 1.79086 4 4v40c0 2.20914-1.79086 4-4 4h-2zM24 31.72174L33.86667 39l-3.73334-11.86087L40 20.13043H28L24 8l-4 12.13043H8l9.86667 7.0087L14.13333 39 24 31.72174z%22 fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat left;background-position:left 5px;background-size:32px auto}.va-crisis-panel-list{list-style:none;padding:0}.va-crisis-panel-list>li{display:-ms-flexbox;display:flex;min-height:56px;margin-bottom:0;border-top:1px solid var(--vads-color-base-light)}.va-crisis-panel-list>li:last-child{border-bottom:1px solid var(--vads-color-base-light)}.va-crisis-panel-list>li>a,.va-crisis-panel-list>li>span{padding:8px 0;-ms-flex-item-align:center;align-self:center}';var s=function(){function e(e){var t=this;(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.handleClick=function(){var e,i,a,n=null===(e=t.el.shadowRoot)||void 0===e?void 0:e.querySelector(".content"),o=null===(i=t.el.shadowRoot)||void 0===i?void 0:i.querySelector("button"),r=null===(a=t.el.shadowRoot)||void 0===a?void 0:a.querySelector("div#header");if(o.setAttribute("aria-expanded","true"===o.getAttribute("aria-expanded")?"false":"true"),r.classList.toggle("expanded"),n.hidden?n.removeAttribute("hidden"):n.setAttribute("hidden","true"),!t.disableAnalytics){var s={componentName:"va-official-gov-banner",action:"true"===o.getAttribute("aria-expanded")?"expand":"collapse"};t.componentLibraryAnalytics.emit(s)}},this.govSiteExplanationText=function(){var e,i=null===(e=t.el.shadowRoot)||void 0===e?void 0:e.querySelector(".gov-site-explanation-text");if(i){var a=o.i.t("gov-site-explanation",{tld:t.tld});a&&(i.innerHTML=a.replace(".".concat(t.tld),"<strong>.".concat(t.tld,"</strong>")))}},this.govSiteLockText=function(){var e,i=null===(e=t.el.shadowRoot)||void 0===e?void 0:e.querySelector(".gov-site-lock-text"),a=o.i.t("gov-site-lock",{image:"SVG",tld:t.tld});a=(a=(a=(a=a.replace("SVG",'(&nbsp;<span class="icon-lock"><svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" role="img" aria-labelledby="banner-lock-description" focusable="false">\n <title id="banner-lock-title">Lock</title>\n <desc id="banner-lock-description">Locked padlock icon</desc>\n <path fill="#000000" fill-rule="evenodd" d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"></path>\n </svg></span>&nbsp;)')).replace("lock","<strong>lock</strong>")).replace("candado","<strong>candado</strong>")).replace("https://","<strong>https://</strong>"),i&&(i.innerHTML=a)},this.disableAnalytics=!1,this.tld="gov"}return e.prototype.connectedCallback=function(){var e=this;o.i.on("languageChanged",function(){(0,a.f)(e.el)})},e.prototype.disconnectedCallback=function(){o.i.off("languageChanged")},e.prototype.componentDidLoad=function(){this.govSiteExplanationText(),this.govSiteLockText()},e.prototype.render=function(){var e=this.tld;if("gov"===e||"mil"===e)return(0,a.h)(a.H,{key:"87c94f819bedd589bf5453ba1c5d27120343241b"},(0,a.h)("div",{key:"39702c2c31eaa09c111e97d6081f6890725df283",class:"banner"},(0,a.h)("div",{key:"25f6b9f1fb101022f7df9040ac5317f4ef480c96",class:"accordion"},(0,a.h)("div",{key:"ee29058c66774758a5c2ce115be630f750566899",id:"header"},(0,a.h)("div",{key:"ffa496519054b0e8104b4ad97b859bd0c3e1193b",class:"inner"},(0,a.h)("div",{key:"402a5ea25f5fbc423a93e65afba9f7cc61ddf28b",class:"grid-col-auto"},(0,a.h)("img",{key:"1fbd820480e6e69c03e175565e28a52dac1fe613",role:"presentation",class:"header-flag",src:"https://s3-us-gov-west-1.amazonaws.com/content.www.va.gov/img/tiny-usa-flag.png",alt:""})),(0,a.h)("div",{key:"6ef48abb781dcd4de16b63e2a2850cb12648db52",class:"grid-col-fill","aria-hidden":"true"},(0,a.h)("p",{key:"5ff464b67bbec74f0a099fc5d6209657591a9774",class:"header-text"},o.i.t("gov-site-label")),(0,a.h)("p",{key:"efea58389527a679fcf62fa463fe8e4d4f4ffe15",class:"header-action"},o.i.t("gov-site-button"))),(0,a.h)("button",{key:"06977b9e3e1c7953f0d8e29d8902b8b7ee60ba95",onClick:this.handleClick,type:"button","aria-expanded":"false","aria-controls":"official-gov-banner"},(0,a.h)("span",{key:"99ea65054c7956c7140431b2c494b3b3cbf086f2",class:"button-text"},o.i.t("gov-site-button"))))),(0,a.h)("div",{key:"e7bc27c4abe992ea6f52c727fcfc2ad4d6953697",class:"content",id:"official-gov-banner",hidden:!0},(0,a.h)("div",{key:"deebbcc4c4c21993bd680fae450c82df191520de",class:"grid-row"},(0,a.h)("div",{key:"6bf9816f8610e25bcca221a4ca78ba1476cea6a2",class:"col"},(0,a.h)("img",{key:"18db25b612a24bd797f16be4988c41ff5b92413a",src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiPjx0aXRsZT5pY29uLWRvdC1nb3Y8L3RpdGxlPjxwYXRoIGZpbGw9IiMyMzc4QzMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTMyIDBjMTcuNjczIDAgMzIgMTQuMzI3IDMyIDMyIDAgMTcuNjczLTE0LjMyNyAzMi0zMiAzMkMxNC4zMjcgNjQgMCA0OS42NzMgMCAzMiAwIDE0LjMyNyAxNC4zMjcgMCAzMiAwem0wIDEuMjA4QzE0Ljk5NCAxLjIwOCAxLjIwOCAxNC45OTQgMS4yMDggMzJTMTQuOTk0IDYyLjc5MiAzMiA2Mi43OTIgNjIuNzkyIDQ5LjAwNiA2Mi43OTIgMzIgNDkuMDA2IDEuMjA4IDMyIDEuMjA4em0xMC41OSAzOC44NThhLjg1Ny44NTcgMCAwIDEgLjg4Mi44MjJ2MS42NDJIMTguODg2di0xLjY0MmEuODU3Ljg1NyAwIDAgMSAuODgyLS44MjJINDIuNTl6TTI1LjQ0MyAyNy43NzR2OS44MjloMS42NDJ2LTkuODNoMy4yNzN2OS44M0gzMnYtOS44M2gzLjI3MnY5LjgzaDEuNjQzdi05LjgzaDMuMjcydjkuODNoLjc2YS44NTcuODU3IDAgMCAxIC44ODIuODIxdi44MjFoLTIxLjN2LS44MDlhLjg1Ny44NTcgMCAwIDEgLjg4LS44MmguNzYydi05Ljg0MmgzLjI3MnptNS43MzYtOC4xODhsMTIuMjkzIDQuOTE1djEuNjQyaC0xLjYzYS44NTcuODU3IDAgMCAxLS44ODIuODIySDIxLjQxYS44NTcuODU3IDAgMCAxLS44ODItLjgyMmgtMS42NDJ2LTEuNjQybDEyLjI5My00LjkxNXoiLz48L3N2Zz4=",role:"presentation",alt:""}),(0,a.h)("div",{key:"76cb154498c3a226ba25b9f35941998d5fa4b55b",class:"media-block"},(0,a.h)("p",{key:"67df93f4a0a57da991b24df97f7e561980615697"},(0,a.h)("strong",{key:"cee655729b121135a163c6d2fe857485b4186090"},o.i.t("gov-site-website",{tld:e})),(0,a.h)("br",{key:"ad226e949d9e92d63b781f08c89d4aa3fef16495"}),(0,a.h)("span",{key:"2172a6c3402103a17e04b3e49e85804bd3a81f70",class:"gov-site-explanation-text"},this.govSiteExplanationText())))),(0,a.h)("div",{key:"e1b45eee5c7ba32c00e99f3e4cbbff1e68b9e983",class:"col"},(0,a.h)("img",{key:"571116a66a4e5b9eba917a6b6fd24046bb0a4125",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHdpZHRoPSI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMzIgMGMxNy42NzMgMCAzMiAxNC4zMjcgMzIgMzJzLTE0LjMyNyAzMi0zMiAzMi0zMi0xNC4zMjctMzItMzIgMTQuMzI3LTMyIDMyLTMyem0wIDEuMjA4Yy0xNy4wMDYgMC0zMC43OTIgMTMuNzg2LTMwLjc5MiAzMC43OTJzMTMuNzg2IDMwLjc5MiAzMC43OTIgMzAuNzkyIDMwLjc5Mi0xMy43ODYgMzAuNzkyLTMwLjc5Mi0xMy43ODYtMzAuNzkyLTMwLjc5Mi0zMC43OTJ6bTAgMTguODg2YTcuMjQ1IDcuMjQ1IDAgMCAxIDcuMjQ1IDcuMjQ1djMuMTAzaC41MmMuODYgMCAxLjU1Ny42OTggMS41NTcgMS41NTh2OS4zMjJjMCAuODYtLjY5NyAxLjU1OC0xLjU1NyAxLjU1OGgtMTUuNTNjLS44NiAwLTEuNTU3LS42OTctMS41NTctMS41NTh2LTkuMzIyYzAtLjg2LjY5Ny0xLjU1OCAxLjU1Ny0xLjU1OGguNTJ2LTMuMTAyYTcuMjQ1IDcuMjQ1IDAgMCAxIDcuMjQ1LTcuMjQ2em0wIDMuMTAzYTQuMTQyIDQuMTQyIDAgMCAwIC00LjE0MiA0LjE0MnYzLjEwM2g4LjI4NHYtMy4xMDJhNC4xNDIgNC4xNDIgMCAwIDAgLTQuMTQyLTQuMTQzeiIgZmlsbD0iIzcxOWYyYSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",role:"presentation",alt:""}),(0,a.h)("div",{key:"811a7296897918eb94171e8a44290287047fda78",class:"media-block"},(0,a.h)("p",{key:"79951b6559346e63548bca7a7c96f71293e42dbd"},(0,a.h)("strong",{key:"089ad9c2ac53c6d8da5af416ee89bdd7bd59243f"},o.i.t("gov-site-https",{tld:e})),(0,a.h)("br",{key:"1b54dd3abeb051dd0b97dfd6c616024b30eb0dd5"}),(0,a.h)("span",{key:"f8a88e83bcac877a3649d1b20f81dd9c808bc9cc",class:"gov-site-lock-text"},this.govSiteLockText())))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();s.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}:host{display:block}.banner{background-color:#f0f0f0;font-size:12px;line-height:1.5;padding-bottom:0}.accordion{color:#1b1b1b;line-height:1.5;list-style-type:none;margin:0;padding:0;width:100%}.grid-col-fill{-ms-flex:1 1 0%;flex:1 1 0%;min-width:1px}.grid-col-auto,.grid-col-fill{-ms-flex:0 1 auto;flex:0 1 auto;width:auto;max-width:100%}.grid-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-0.469rem;margin-right:-0.469rem;margin-top:0;margin-bottom:0}.col{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex:0 0 46%;flex:0 0 46%;padding-left:0.469rem;padding-right:0.469rem}@media (max-width: 767px){.col{-ms-flex:unset;flex:unset}}#header{padding-bottom:6px;padding-top:6px;position:relative}#header.expanded .header-action{display:none}@media (max-width: 767px){#header{min-height:32px}#header.expanded{padding-right:56px}}.inner{margin-left:auto;margin-right:auto;max-width:1024px;padding-left:16px;padding-right:16px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start;padding-right:0}.header-flag{float:left;margin-right:8px;width:16px}.header-text{font-size:12px;margin-bottom:2px;margin-right:5px;margin-top:2px;line-height:1.1}.header-action{color:#005ea2;font-size:12px;line-height:1.1;margin-bottom:0;margin-top:2px;text-decoration:underline}@media (min-width: 768px){.header-action{display:none}}button:not([disabled]):focus{outline:2px solid var(--vads-color-action-focus-on-light)}button[aria-expanded=false],button[aria-expanded=true]{background-image:none}@media (max-width: 767px){button{width:100%}}button{border:0;color:#005ea2;font-size:12px;margin:0;margin-left:0.313rem;padding-left:0;padding-right:0;position:relative}@media (max-width: 767px){button{-webkit-font-smoothing:inherit;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;margin:0;margin-bottom:-4px;text-align:left;left:0;position:absolute;bottom:0;top:0;color:#005ea2;display:block;height:auto;line-height:1.1;padding:0;text-decoration:none;width:100%}}button:hover{color:#1a4480;cursor:pointer}.button-text{position:absolute;left:-999em;right:auto;text-decoration:underline}@media (min-width: 768px){.button-text{position:static;display:inline}}@media (max-width: 767px){#header .header-action::after,#header.expanded .header-action::after{background-color:#005ea2}#header.expanded .header-action::after,#header .header-action::after{background:0 0;background-color:#005ea2;-webkit-mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;display:inline-block;height:18px;width:18px;content:"";vertical-align:middle;margin-left:2px}}@media (min-width: 768px){button::after,button:hover::after{background-color:#005ea2;position:absolute}button::after,#header.expanded button::after{background:0 0;background-color:#005ea2;display:inline-block;height:18px;width:18px;content:"";vertical-align:middle;margin-left:2px;top:-1px}button::after{-webkit-mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain}#header.expanded button::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain}}@media (max-width: 767px){button[aria-expanded=true]:after{bottom:0;top:0;position:absolute;right:0}@supports ((-webkit-mask: url()) or (mask: url())){button[aria-expanded=true]::after{background:0 0;background-color:#005ea2 !important;-webkit-mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/24px 24px;mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/24px 24px}}button[aria-expanded=true]::after,button[aria-expanded=true]:before{position:absolute;content:"";height:48px;width:48px;bottom:0;top:0;right:0}button[aria-expanded=true]::after{background:0 0;background-color:#005ea2;-webkit-mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;display:inline-block;height:48px;width:48px;content:"";vertical-align:middle;margin-left:0}button[aria-expanded=true]:before{background-color:#dfe1e2;display:block}}button::after{position:absolute}.content{margin-left:auto;margin-right:auto;max-width:1024px;background-color:transparent;font-size:16px;overflow:hidden;padding:24px 32px 16px 16px}.content img{-ms-flex-negative:0;flex-shrink:0;margin-right:8px;width:45px}.content .media-block{-ms-flex:1 1 0%;flex:1 1 0%}.content svg{height:1.5ex;width:1.21875ex}.content p{margin-top:0;-webkit-margin-after:1em;margin-block-end:1em}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4140],{4140:function(e,t,i){i.r(t),i.d(t,{va_crisis_line_modal:function(){return r},va_official_gov_banner:function(){return s}});var a=i(9213),n=i(2404),o=i(2265),r=function(){function e(e){(0,a.r)(this,e),this.allowModalRender=!1,this.phoneNumber="988",this.phoneExtension="1",this.textNumber="838255",this.chatUrl="https://www.veteranscrisisline.net/get-help-now/chat/",this.ttyNumber=n.a.CRISIS_MODAL_TTY.phoneNumber||"711",this.ttyCrisisExtension=n.a.CRISIS_MODAL_TTY.extension||"988",this.mode=void 0,this.isOpen=!1,this.shifted=!1}return e.prototype.handleGlobalOpen=function(){this.allowModalRender&&this.open()},e.prototype.open=function(){this.setVisible()},e.prototype.setVisible=function(){this.isOpen=!0},e.prototype.setNotVisible=function(){this.isOpen=!1},e.prototype.componentWillLoad=function(){e.modalOwner||"trigger"===this.mode||(this.allowModalRender=!0,e.modalOwner=this.el)},e.prototype.disconnectedCallback=function(){e.modalOwner===this.el&&(e.modalOwner=null)},e.prototype.trackShiftKey=function(e){this.shifted=e.shiftKey},e.prototype.trapFocus=function(){var e,t=null===(e=this.el)||void 0===e?void 0:e.shadowRoot.querySelector("va-modal"),i=null==t?void 0:t.getAttribute("visible");if(null!==i&&"false"!==i){var a=void 0,n=this.shifted?".last-focusable-child":'[role="document"]';null==(a=this.shifted?null==t?void 0:t.querySelector(n):null==t?void 0:t.shadowRoot.querySelector(n))||a.focus()}},e.prototype.render=function(){var e=this,t=this,i=t.phoneNumber,n=t.phoneExtension,r=t.textNumber,s=t.chatUrl,c=t.ttyNumber,d=t.ttyCrisisExtension,l=t.mode,g="modal"!==l,p=this.allowModalRender&&"trigger"!==l;return(0,a.h)(a.H,{key:"94443e6abdecf76ef43ea770854e858f1413427d"},g&&(0,a.h)("div",{key:"facf52e8bf443f85eba07a6af9d4c3a6af59ed52",class:"va-crisis-line-container"},(0,a.h)("button",{key:"45ce1d7e9904ab433295f01eb7d0794d6957345d",onClick:function(){return document.dispatchEvent(new CustomEvent("vaCrisisLineModalOpen"))},onFocusin:function(){return e.trapFocus()},"data-show":"#modal-crisisline",class:"va-crisis-line va-overlay-trigger",part:"button"},(0,a.h)("div",{key:"01b65bf40459a1f197a2f747fe301b388a32696a",class:"va-crisis-line-inner"},(0,a.h)("span",{key:"6fb1106f1e2fd0a816159b7ae1d881fede270212",class:"va-crisis-line-icon","aria-hidden":"true"}),(0,a.h)("span",{key:"9e68eaa71ad444af4627beeec40aa97016ebab8d",class:"va-crisis-line-text",innerHTML:o.i.t("crisis-line-trigger-text")}),(0,a.h)("va-icon",{key:"d0f8fde356a5193f6c6a1b5336e32ad337626e1d",class:"va-icon__right-arrow",icon:"navigate_next",size:3})))),p&&(0,a.h)("va-modal",{key:"96da4d754e570fc18c82489616c7f8c83784099e",modalTitle:o.i.t("crisis-line-modal-title"),onPrimaryButtonClick:function(){return e.setNotVisible()},onCloseEvent:function(){return e.setNotVisible()},visible:this.isOpen,large:!0},(0,a.h)("p",{key:"9ba09d3193d89804c333bb5479f69528debc7c02"},o.i.t("crisis-line-intro")),(0,a.h)("ul",{key:"079bcd094474ef50f7410a3ffa96b9b9d056aff5",class:"va-crisis-panel-list"},(0,a.h)("li",{key:"31800fef20dc14950a839a8a892039b0fc30cb23"},(0,a.h)("va-icon",{key:"6f05384ee1e95d222dcde9450785c1b171be3fbe",class:"va-clm__icon",icon:"phone",size:3}),(0,a.h)("span",{key:"add9b418b07fa9442c928c29f101d7507ab10eca"},o.i.t("crisis-line-phone-label")+" "," ",(0,a.h)("strong",{key:"64d0b4b23d0dea154d729a9c710e0b698221dbe2"},(0,a.h)("va-telephone",{key:"d6041c4684165e7d1cfffa2726cd7e5218be228d",contact:i}),n?" ".concat(o.i.t("crisis-line-phone-extension-label")," ").concat(n):null))),(0,a.h)("li",{key:"cb3830884e96aa9c2804c9a4dcf4842f9caf23d7"},(0,a.h)("va-icon",{key:"3891b465800cbad64b044d6087ac9069c049eae8",icon:"phone_iphone",class:"va-clm__icon",size:3}),(0,a.h)("span",{key:"30d8ea74d5655dd02ae431ca47a8aba8ae26ca94"},o.i.t("crisis-line-text-label")+" "," ",(0,a.h)("strong",{key:"e7805ab8aac5e6fb6e31fe6dad1b75ff3f7f51ae"},(0,a.h)("va-telephone",{key:"d927e459736b1118a242a595158e1f0979e38662",sms:!0,contact:r})))),(0,a.h)("li",{key:"9f53ad56418bc7145d352f46bdd05b7f43d856dc"},(0,a.h)("va-icon",{key:"d68e1bfdb8758eea067a6ab4754368ebcc6c91ff",icon:"chat",class:"va-clm__icon",size:3}),(0,a.h)("a",{key:"b5daf2b9aaaf5e78f5855eb21955cf7909b0627e",class:"no-external-icon",href:s},o.i.t("crisis-line-chat-label"))),(0,a.h)("li",{key:"1a79ba29d252737e6f68e1a2c2add470d7412e81"},(0,a.h)("va-icon",{key:"9a84222f6253e42a532ee02e79d3d53aaddbcfa4",icon:"tty",class:"va-clm__icon",size:3}),(0,a.h)("p",{key:"90b4325e931f21795d9b59288c376f85f1059cd0"},o.i.t("crisis-line-tty-label")+" ",(0,a.h)("strong",{key:"5277479e189bbc2c635fd34a0d04294662879edb"},(0,a.h)("va-telephone",{key:"d5ea8ac64e497c60ac23af8f72e52fd438bd7164",contact:c}),d?" ".concat(o.i.t("crisis-line-tty-extension-label")," ").concat(d):null)))),(0,a.h)("p",{key:"f28adb210425a9bfa573c0ff6a079cb748a8cbf6"},o.i.t("crisis-line-resources-link-label")+" ",(0,a.h)("a",{key:"d78fa7c3759cf652843a2d271861f8e32fb27694",class:"no-external-icon",href:"https://www.veteranscrisisline.net/"},o.i.t("crisis-line-resources-link-text")))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();r.modalOwner=null,r.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}.va-crisis-line-container{position:relative;margin:auto;background-color:var(--vads-color-secondary-dark)}@media (min-width: 1024px){.va-crisis-line-container{max-width:60.938rem;background-color:transparent}}a{color:var(--vads-color-link)}button.va-crisis-line{cursor:pointer;background-color:var(--vads-color-secondary-darkest);display:block;border-radius:0;color:var(--vads-button-color-text-primary-alt-on-light);font-family:var(--font-source-sans);font-size:16px;font-weight:normal;text-decoration:none;padding:0;margin:0;width:100%;border:0;-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:background-color;transition-property:background-color}button.va-crisis-line:focus{outline-offset:-2px}button.va-crisis-line:hover,button.va-crisis-line:active{background-color:#8b0a03}@media (min-width: 1024px){button.va-crisis-line:hover .va-crisis-line-icon,button.va-crisis-line:active .va-crisis-line-icon{background-color:#b51d09}}@media (min-width: 1024px){button.va-crisis-line{width:auto;border-radius:0 0 2.3px 2.3px;-webkit-box-shadow:0 2px 5px var(--vads-color-base);box-shadow:0 2px 5px var(--vads-color-base)}}.va-crisis-line-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:auto}@media (min-width: 1024px){.va-crisis-line-inner{text-align:left;-ms-flex-pack:justify;justify-content:space-between}}.va-crisis-line-icon{content:"";background:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 96 60%22 width%3D%2296px%22 height%3D%2260px%22%3E%3Cpath d%3D%22M58 14c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 30c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 46c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm-48 2L32 60h-2V48H4c-2.20914 0-4-1.79086-4-4V4c0-2.20914 1.79086-4 4-4h40c2.20914 0 4 1.79086 4 4v40c0 2.20914-1.79086 4-4 4h-2zM24 31.72174L33.86667 39l-3.73334-11.86087L40 20.13043H28L24 8l-4 12.13043H8l9.86667 7.0087L14.13333 39 24 31.72174z%22 fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat right 29%;background-size:30px auto;background-position:8px 8px;width:40px;height:36px;padding-right:3px;-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:background-color;transition-property:background-color}@media (max-width: 480px){.va-crisis-line-icon{display:none}}@media (min-width: 1024px){.va-crisis-line-icon{border-bottom-left-radius:3.2px}}.va-crisis-line-text{padding:8px}.va-icon__right-arrow{position:relative;top:2px}.va-clm__icon{position:relative;top:15px;margin-right:23px}.va-crisis-panel{color:var(--vads-color-base)}.va-crisis-panel-body{max-height:100%}.va-crisis-panel-title{color:var(--vads-color-base);padding-left:41px;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 96 60%22 width%3D%2296px%22 height%3D%2260px%22%3E%3Cpath d%3D%22M58 14c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 30c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zM58 46c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm16 0c-3.3137 0-6-2.6863-6-6s2.6863-6 6-6 6 2.6863 6 6-2.6863 6-6 6zm-48 2L32 60h-2V48H4c-2.20914 0-4-1.79086-4-4V4c0-2.20914 1.79086-4 4-4h40c2.20914 0 4 1.79086 4 4v40c0 2.20914-1.79086 4-4 4h-2zM24 31.72174L33.86667 39l-3.73334-11.86087L40 20.13043H28L24 8l-4 12.13043H8l9.86667 7.0087L14.13333 39 24 31.72174z%22 fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat left;background-position:left 5px;background-size:32px auto}.va-crisis-panel-list{list-style:none;padding:0}.va-crisis-panel-list>li{display:-ms-flexbox;display:flex;min-height:56px;margin-bottom:0;border-top:1px solid var(--vads-color-base-light)}.va-crisis-panel-list>li:last-child{border-bottom:1px solid var(--vads-color-base-light)}.va-crisis-panel-list>li>a,.va-crisis-panel-list>li>span{padding:8px 0;-ms-flex-item-align:center;align-self:center}';var s=function(){function e(e){var t=this;(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.handleClick=function(){var e,i,a,n=null===(e=t.el.shadowRoot)||void 0===e?void 0:e.querySelector(".content"),o=null===(i=t.el.shadowRoot)||void 0===i?void 0:i.querySelector("button"),r=null===(a=t.el.shadowRoot)||void 0===a?void 0:a.querySelector("div#header");if(o.setAttribute("aria-expanded","true"===o.getAttribute("aria-expanded")?"false":"true"),r.classList.toggle("expanded"),n.hidden?n.removeAttribute("hidden"):n.setAttribute("hidden","true"),!t.disableAnalytics){var s={componentName:"va-official-gov-banner",action:"true"===o.getAttribute("aria-expanded")?"expand":"collapse"};t.componentLibraryAnalytics.emit(s)}},this.govSiteExplanationText=function(){var e,i=null===(e=t.el.shadowRoot)||void 0===e?void 0:e.querySelector(".gov-site-explanation-text");if(i){var a=o.i.t("gov-site-explanation",{tld:t.tld});a&&(i.innerHTML=a.replace(".".concat(t.tld),"<strong>.".concat(t.tld,"</strong>")))}},this.govSiteLockText=function(){var e,i=null===(e=t.el.shadowRoot)||void 0===e?void 0:e.querySelector(".gov-site-lock-text"),a=o.i.t("gov-site-lock",{image:"SVG",tld:t.tld});a=(a=(a=(a=a.replace("SVG",'(&nbsp;<span class="icon-lock"><svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" role="img" aria-labelledby="banner-lock-description" focusable="false">\n <title id="banner-lock-title">Lock</title>\n <desc id="banner-lock-description">Locked padlock icon</desc>\n <path fill="#000000" fill-rule="evenodd" d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"></path>\n </svg></span>&nbsp;)')).replace("lock","<strong>lock</strong>")).replace("candado","<strong>candado</strong>")).replace("https://","<strong>https://</strong>"),i&&(i.innerHTML=a)},this.disableAnalytics=!1,this.tld="gov"}return e.prototype.connectedCallback=function(){var e=this;o.i.on("languageChanged",function(){(0,a.f)(e.el)})},e.prototype.disconnectedCallback=function(){o.i.off("languageChanged")},e.prototype.componentDidLoad=function(){this.govSiteExplanationText(),this.govSiteLockText()},e.prototype.render=function(){var e=this.tld;if("gov"===e||"mil"===e)return(0,a.h)(a.H,{key:"f769c48a55f82caf287f8c56828ce1da9351330b"},(0,a.h)("div",{key:"664ddee261d7dfa7c058621c0bf5d35fedb87e5c",class:"banner"},(0,a.h)("div",{key:"6623ed0a98e9a4b4a7ed44d348755f8b90517379",class:"accordion"},(0,a.h)("div",{key:"ec9258e7c9ed6a22a74e00b6fafa9c1b5f587423",id:"header"},(0,a.h)("div",{key:"4e076f931621096f153369b6aa213dc1ddb691dc",class:"inner"},(0,a.h)("div",{key:"72a66f9fb0c99ce34eb344c98cd13579bb242f2e",class:"grid-col-auto"},(0,a.h)("img",{key:"145ef9540e857d74524adf4a6a81a3daf4efe0d7",role:"presentation",class:"header-flag",src:"https://s3-us-gov-west-1.amazonaws.com/content.www.va.gov/img/tiny-usa-flag.png",alt:""})),(0,a.h)("div",{key:"68311e6ccac6cb78367ebe13a3056c9c22febf8b",class:"grid-col-fill","aria-hidden":"true"},(0,a.h)("p",{key:"864f1973e5a077918eafa614736f134727243c79",class:"header-text"},o.i.t("gov-site-label")),(0,a.h)("p",{key:"e20ed30ea2108a473a163ab0a23b868a25461546",class:"header-action"},o.i.t("gov-site-button"))),(0,a.h)("button",{key:"8cd14cd42e63953c0c93bc018a0e3bd8eeda21ce",onClick:this.handleClick,type:"button","aria-expanded":"false","aria-controls":"official-gov-banner"},(0,a.h)("span",{key:"01c5d95b4a8f2bca1513665211ac5d498e1772cc",class:"button-text"},o.i.t("gov-site-button"))))),(0,a.h)("div",{key:"c99e71f28fe854c7965c05349302d1c8089025ad",class:"content",id:"official-gov-banner",hidden:!0},(0,a.h)("div",{key:"0667ce19242ebf10e69b79bea4f4517a3d2f235e",class:"grid-row"},(0,a.h)("div",{key:"56541b9d334a61fb54adab038e8fa4c01d1ddf9f",class:"col"},(0,a.h)("img",{key:"dfe11d33fe6a6ecacfc734ad93ee1fe33f41cac3",src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiPjx0aXRsZT5pY29uLWRvdC1nb3Y8L3RpdGxlPjxwYXRoIGZpbGw9IiMyMzc4QzMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTMyIDBjMTcuNjczIDAgMzIgMTQuMzI3IDMyIDMyIDAgMTcuNjczLTE0LjMyNyAzMi0zMiAzMkMxNC4zMjcgNjQgMCA0OS42NzMgMCAzMiAwIDE0LjMyNyAxNC4zMjcgMCAzMiAwem0wIDEuMjA4QzE0Ljk5NCAxLjIwOCAxLjIwOCAxNC45OTQgMS4yMDggMzJTMTQuOTk0IDYyLjc5MiAzMiA2Mi43OTIgNjIuNzkyIDQ5LjAwNiA2Mi43OTIgMzIgNDkuMDA2IDEuMjA4IDMyIDEuMjA4em0xMC41OSAzOC44NThhLjg1Ny44NTcgMCAwIDEgLjg4Mi44MjJ2MS42NDJIMTguODg2di0xLjY0MmEuODU3Ljg1NyAwIDAgMSAuODgyLS44MjJINDIuNTl6TTI1LjQ0MyAyNy43NzR2OS44MjloMS42NDJ2LTkuODNoMy4yNzN2OS44M0gzMnYtOS44M2gzLjI3MnY5LjgzaDEuNjQzdi05LjgzaDMuMjcydjkuODNoLjc2YS44NTcuODU3IDAgMCAxIC44ODIuODIxdi44MjFoLTIxLjN2LS44MDlhLjg1Ny44NTcgMCAwIDEgLjg4LS44MmguNzYydi05Ljg0MmgzLjI3MnptNS43MzYtOC4xODhsMTIuMjkzIDQuOTE1djEuNjQyaC0xLjYzYS44NTcuODU3IDAgMCAxLS44ODIuODIySDIxLjQxYS44NTcuODU3IDAgMCAxLS44ODItLjgyMmgtMS42NDJ2LTEuNjQybDEyLjI5My00LjkxNXoiLz48L3N2Zz4=",role:"presentation",alt:""}),(0,a.h)("div",{key:"bcd2a6447c318c442baaee1c9f7f7b8a723e9d83",class:"media-block"},(0,a.h)("p",{key:"947fe938e465e36cc51e5dba87e59e05445f2f4c"},(0,a.h)("strong",{key:"aedbcad655eb594ff92504ec7e16486519869469"},o.i.t("gov-site-website",{tld:e})),(0,a.h)("br",{key:"32f7b1961f97b057701778aeabcf4bb7ffa63853"}),(0,a.h)("span",{key:"8e29b0f0d3c9abb5d7552cab982643a273ae183f",class:"gov-site-explanation-text"},this.govSiteExplanationText())))),(0,a.h)("div",{key:"42c8e45e6d4819ab92e503c3abc9bbded5fced07",class:"col"},(0,a.h)("img",{key:"5a0aa29a4ccf2762bd176d4ba201e235810e66e8",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHdpZHRoPSI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMzIgMGMxNy42NzMgMCAzMiAxNC4zMjcgMzIgMzJzLTE0LjMyNyAzMi0zMiAzMi0zMi0xNC4zMjctMzItMzIgMTQuMzI3LTMyIDMyLTMyem0wIDEuMjA4Yy0xNy4wMDYgMC0zMC43OTIgMTMuNzg2LTMwLjc5MiAzMC43OTJzMTMuNzg2IDMwLjc5MiAzMC43OTIgMzAuNzkyIDMwLjc5Mi0xMy43ODYgMzAuNzkyLTMwLjc5Mi0xMy43ODYtMzAuNzkyLTMwLjc5Mi0zMC43OTJ6bTAgMTguODg2YTcuMjQ1IDcuMjQ1IDAgMCAxIDcuMjQ1IDcuMjQ1djMuMTAzaC41MmMuODYgMCAxLjU1Ny42OTggMS41NTcgMS41NTh2OS4zMjJjMCAuODYtLjY5NyAxLjU1OC0xLjU1NyAxLjU1OGgtMTUuNTNjLS44NiAwLTEuNTU3LS42OTctMS41NTctMS41NTh2LTkuMzIyYzAtLjg2LjY5Ny0xLjU1OCAxLjU1Ny0xLjU1OGguNTJ2LTMuMTAyYTcuMjQ1IDcuMjQ1IDAgMCAxIDcuMjQ1LTcuMjQ2em0wIDMuMTAzYTQuMTQyIDQuMTQyIDAgMCAwIC00LjE0MiA0LjE0MnYzLjEwM2g4LjI4NHYtMy4xMDJhNC4xNDIgNC4xNDIgMCAwIDAgLTQuMTQyLTQuMTQzeiIgZmlsbD0iIzcxOWYyYSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",role:"presentation",alt:""}),(0,a.h)("div",{key:"6c01bdd61c4c745f0f6ff4a801d3ecf9f55c53a2",class:"media-block"},(0,a.h)("p",{key:"0fe85ac451d106a7ba07b61fd1206ba8213eb9bf"},(0,a.h)("strong",{key:"eef8def07946bd642dfbb7c7abef34a13d79df63"},o.i.t("gov-site-https",{tld:e})),(0,a.h)("br",{key:"334393159211850413a902b3374551618e7e05f1"}),(0,a.h)("span",{key:"e804f146f5d759d7a7d1e569fd6046516458dc7b",class:"gov-site-lock-text"},this.govSiteLockText())))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();s.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}:host{display:block}.banner{background-color:#f0f0f0;font-size:12px;line-height:1.5;padding-bottom:0}.accordion{color:#1b1b1b;line-height:1.5;list-style-type:none;margin:0;padding:0;width:100%}.grid-col-fill{-ms-flex:1 1 0%;flex:1 1 0%;min-width:1px}.grid-col-auto,.grid-col-fill{-ms-flex:0 1 auto;flex:0 1 auto;width:auto;max-width:100%}.grid-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-0.469rem;margin-right:-0.469rem;margin-top:0;margin-bottom:0}.col{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex:0 0 46%;flex:0 0 46%;padding-left:0.469rem;padding-right:0.469rem}@media (max-width: 767px){.col{-ms-flex:unset;flex:unset}}#header{padding-bottom:6px;padding-top:6px;position:relative}#header.expanded .header-action{display:none}@media (max-width: 767px){#header{min-height:32px}#header.expanded{padding-right:56px}}.inner{margin-left:auto;margin-right:auto;max-width:1024px;padding-left:16px;padding-right:16px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start;padding-right:0}.header-flag{float:left;margin-right:8px;width:16px}.header-text{font-size:12px;margin-bottom:2px;margin-right:5px;margin-top:2px;line-height:1.1}.header-action{color:#005ea2;font-size:12px;line-height:1.1;margin-bottom:0;margin-top:2px;text-decoration:underline}@media (min-width: 768px){.header-action{display:none}}button:not([disabled]):focus{outline:2px solid var(--vads-color-action-focus-on-light)}button[aria-expanded=false],button[aria-expanded=true]{background-image:none}@media (max-width: 767px){button{width:100%}}button{border:0;color:#005ea2;font-size:12px;margin:0;margin-left:0.313rem;padding-left:0;padding-right:0;position:relative}@media (max-width: 767px){button{-webkit-font-smoothing:inherit;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;margin:0;margin-bottom:-4px;text-align:left;left:0;position:absolute;bottom:0;top:0;color:#005ea2;display:block;height:auto;line-height:1.1;padding:0;text-decoration:none;width:100%}}button:hover{color:#1a4480;cursor:pointer}.button-text{position:absolute;left:-999em;right:auto;text-decoration:underline}@media (min-width: 768px){.button-text{position:static;display:inline}}@media (max-width: 767px){#header .header-action::after,#header.expanded .header-action::after{background-color:#005ea2}#header.expanded .header-action::after,#header .header-action::after{background:0 0;background-color:#005ea2;-webkit-mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;display:inline-block;height:18px;width:18px;content:"";vertical-align:middle;margin-left:2px}}@media (min-width: 768px){button::after,button:hover::after{background-color:#005ea2;position:absolute}button::after,#header.expanded button::after{background:0 0;background-color:#005ea2;display:inline-block;height:18px;width:18px;content:"";vertical-align:middle;margin-left:2px;top:-1px}button::after{-webkit-mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask: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%22M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain}#header.expanded button::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain}}@media (max-width: 767px){button[aria-expanded=true]:after{bottom:0;top:0;position:absolute;right:0}@supports ((-webkit-mask: url()) or (mask: url())){button[aria-expanded=true]::after{background:0 0;background-color:#005ea2 !important;-webkit-mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/24px 24px;mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/24px 24px}}button[aria-expanded=true]::after,button[aria-expanded=true]:before{position:absolute;content:"";height:48px;width:48px;bottom:0;top:0;right:0}button[aria-expanded=true]::after{background:0 0;background-color:#005ea2;-webkit-mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;mask: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%22M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;display:inline-block;height:48px;width:48px;content:"";vertical-align:middle;margin-left:0}button[aria-expanded=true]:before{background-color:#dfe1e2;display:block}}button::after{position:absolute}.content{margin-left:auto;margin-right:auto;max-width:1024px;background-color:transparent;font-size:16px;overflow:hidden;padding:24px 32px 16px 16px}.content img{-ms-flex-negative:0;flex-shrink:0;margin-right:8px;width:45px}.content .media-block{-ms-flex:1 1 0%;flex:1 1 0%}.content svg{height:1.5ex;width:1.21875ex}.content p{margin-top:0;-webkit-margin-after:1em;margin-block-end:1em}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[415],{415:function(e,n,o){o.r(n),o.d(n,{va_promo_banner:function(){return a}});var t=o(2625),i=function(e,n,o){if(o||2===arguments.length)for(var t,i=0,r=n.length;i<r;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))},r="DISMISSED_PROMO_BANNERS",a=function(){function e(e){(0,t.r)(this,e),this.closeEvent=(0,t.c)(this,"closeEvent",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.href=void 0,this.type=void 0,this.disableAnalytics=!1,this.dismissedBanners=[]}return e.prototype.closeHandler=function(){if(this.closeEvent.emit(),this.el.id){var e=i(i([],this.dismissedBanners,!0),[this.el.id],!1);this.dismissedBanners=e,localStorage.setItem(r,JSON.stringify(e))}if(!this.disableAnalytics){var n={componentName:"va-promo-banner",action:"close",details:{text:this.el.innerText,type:this.type}};this.componentLibraryAnalytics.emit(n)}},e.prototype.handleLinkClick=function(){if(!this.disableAnalytics){var e={componentName:"va-promo-banner",action:"linkClick",details:{text:this.el.innerText,href:this.href,type:this.type}};this.componentLibraryAnalytics.emit(e)}},e.prototype.componentWillLoad=function(){var e=localStorage.getItem(r);this.dismissedBanners=e?JSON.parse(e):[],document.body.classList.add("va-pad-promo-banner")},e.prototype.render=function(){var e,n=this;return(null===(e=this.dismissedBanners)||void 0===e?void 0:e.includes(this.el.id))?(document.body.classList.remove("va-pad-promo-banner"),null):(0,t.h)(t.H,null,(0,t.h)("div",{class:"va-banner-body"},(0,t.h)("va-icon",{class:"va-promo-banner__icon",icon:{announcement:"campaign","email-signup":"mail",news:"info"}[this.type],size:4}),(0,t.h)("a",{class:"va-banner-content-link",href:this.href,onClick:function(){return n.handleLinkClick()}},(0,t.h)("slot",null)," ",(0,t.h)("va-icon",{icon:"chevron_right",size:3})),(0,t.h)("button",{type:"button","aria-label":"Dismiss this promo banner",onClick:function(){return n.closeHandler()}},(0,t.h)("va-icon",{icon:"close",size:3}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();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}:host{z-index:1;position:fixed;bottom:0;left:0;width:100%;background-color:var(--vads-color-base-lightest);color:var(--vads-color-link);font-weight:700}.va-banner-body{max-width:62.5rem;margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.va-promo-banner__icon{background-color:var(--vads-color-white);border-radius:50%;height:42px;width:42px;margin-left:0.5rem;margin-right:0.8rem;margin-top:0.8rem;margin-bottom:0.8rem;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:4px}@media (max-width: 767px){.va-promo-banner__icon{display:none}}.va-banner-content-link{padding:0.5rem;line-height:1.375rem;text-decoration:none;color:var(--vads-color-link);-ms-flex-positive:2;flex-grow:2;border-right:1px solid var(--vads-color-base-lighter)}.va-banner-content-link:hover{text-decoration:underline}button{background:none;background-color:transparent;color:var(--vads-color-link);border:none;padding:10px;margin:0 0.5rem 0 1rem}button:hover{cursor:pointer}@media screen and (min-width: 768px){.va-banner-body>i{display:block}.va-banner-content-link{border:none}}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[415],{415:function(e,n,o){o.r(n),o.d(n,{va_promo_banner:function(){return a}});var t=o(9213),i=function(e,n,o){if(o||2===arguments.length)for(var t,i=0,r=n.length;i<r;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))},r="DISMISSED_PROMO_BANNERS",a=function(){function e(e){(0,t.r)(this,e),this.closeEvent=(0,t.c)(this,"closeEvent",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.href=void 0,this.type=void 0,this.disableAnalytics=!1,this.dismissedBanners=[]}return e.prototype.closeHandler=function(){if(this.closeEvent.emit(),this.el.id){var e=i(i([],this.dismissedBanners,!0),[this.el.id],!1);this.dismissedBanners=e,localStorage.setItem(r,JSON.stringify(e))}if(!this.disableAnalytics){var n={componentName:"va-promo-banner",action:"close",details:{text:this.el.innerText,type:this.type}};this.componentLibraryAnalytics.emit(n)}},e.prototype.handleLinkClick=function(){if(!this.disableAnalytics){var e={componentName:"va-promo-banner",action:"linkClick",details:{text:this.el.innerText,href:this.href,type:this.type}};this.componentLibraryAnalytics.emit(e)}},e.prototype.componentWillLoad=function(){var e=localStorage.getItem(r);this.dismissedBanners=e?JSON.parse(e):[],document.body.classList.add("va-pad-promo-banner")},e.prototype.render=function(){var e,n=this;return(null===(e=this.dismissedBanners)||void 0===e?void 0:e.includes(this.el.id))?(document.body.classList.remove("va-pad-promo-banner"),null):(0,t.h)(t.H,null,(0,t.h)("div",{class:"va-banner-body"},(0,t.h)("va-icon",{class:"va-promo-banner__icon",icon:{announcement:"campaign","email-signup":"mail",news:"info"}[this.type],size:4}),(0,t.h)("a",{class:"va-banner-content-link",href:this.href,onClick:function(){return n.handleLinkClick()}},(0,t.h)("slot",null)," ",(0,t.h)("va-icon",{icon:"chevron_right",size:3})),(0,t.h)("button",{type:"button","aria-label":"Dismiss this promo banner",onClick:function(){return n.closeHandler()}},(0,t.h)("va-icon",{icon:"close",size:3}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();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}:host{z-index:1;position:fixed;bottom:0;left:0;width:100%;background-color:var(--vads-color-base-lightest);color:var(--vads-color-link);font-weight:700}.va-banner-body{max-width:62.5rem;margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.va-promo-banner__icon{background-color:var(--vads-color-white);border-radius:50%;height:42px;width:42px;margin-left:0.5rem;margin-right:0.8rem;margin-top:0.8rem;margin-bottom:0.8rem;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:4px}@media (max-width: 767px){.va-promo-banner__icon{display:none}}.va-banner-content-link{padding:0.5rem;line-height:1.375rem;text-decoration:none;color:var(--vads-color-link);-ms-flex-positive:2;flex-grow:2;border-right:1px solid var(--vads-color-base-lighter)}.va-banner-content-link:hover{text-decoration:underline}button{background:none;background-color:transparent;color:var(--vads-color-link);border:none;padding:10px;margin:0 0.5rem 0 1rem}button:hover{cursor:pointer}@media screen and (min-width: 768px){.va-banner-body>i{display:block}.va-banner-content-link{border:none}}'}}]);