@department-of-veterans-affairs/component-library 46.1.3 → 46.2.3

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 (199) hide show
  1. package/dist/1185.app.bundle.js +1 -1
  2. package/dist/1185.app.bundle.js.LICENSE.txt +4 -4
  3. package/dist/1279.app.bundle.js +1 -1
  4. package/dist/1652.app.bundle.js +1 -1
  5. package/dist/2108.app.bundle.js +1 -1
  6. package/dist/2108.app.bundle.js.LICENSE.txt +4 -4
  7. package/dist/2305.app.bundle.js +1 -1
  8. package/dist/2305.app.bundle.js.LICENSE.txt +4 -4
  9. package/dist/2843.app.bundle.js +1 -1
  10. package/dist/3389.app.bundle.js +1 -1
  11. package/dist/3389.app.bundle.js.LICENSE.txt +4 -4
  12. package/dist/3476.app.bundle.js +1 -1
  13. package/dist/3476.app.bundle.js.LICENSE.txt +4 -4
  14. package/dist/3499.app.bundle.js +1 -1
  15. package/dist/360.app.bundle.js +1 -1
  16. package/dist/360.app.bundle.js.LICENSE.txt +4 -4
  17. package/dist/3661.app.bundle.js +1 -1
  18. package/dist/383.app.bundle.js +1 -1
  19. package/dist/383.app.bundle.js.LICENSE.txt +4 -4
  20. package/dist/4104.app.bundle.js +1 -1
  21. package/dist/4181.app.bundle.js +1 -1
  22. package/dist/4181.app.bundle.js.LICENSE.txt +4 -4
  23. package/dist/4317.app.bundle.js +1 -1
  24. package/dist/4317.app.bundle.js.LICENSE.txt +4 -4
  25. package/dist/4437.app.bundle.js +1 -1
  26. package/dist/4818.app.bundle.js +1 -1
  27. package/dist/4818.app.bundle.js.LICENSE.txt +4 -4
  28. package/dist/4846.app.bundle.js +1 -1
  29. package/dist/4859.app.bundle.js +1 -1
  30. package/dist/5154.app.bundle.js +1 -1
  31. package/dist/5232.app.bundle.js +1 -1
  32. package/dist/5254.app.bundle.js +1 -0
  33. package/dist/529.app.bundle.js +1 -1
  34. package/dist/529.app.bundle.js.LICENSE.txt +4 -4
  35. package/dist/5434.app.bundle.js +1 -1
  36. package/dist/5669.app.bundle.js +1 -1
  37. package/dist/5669.app.bundle.js.LICENSE.txt +4 -4
  38. package/dist/569.app.bundle.js +1 -1
  39. package/dist/569.app.bundle.js.LICENSE.txt +4 -4
  40. package/dist/6166.app.bundle.js +1 -1
  41. package/dist/6171.app.bundle.js +1 -1
  42. package/dist/6171.app.bundle.js.LICENSE.txt +4 -4
  43. package/dist/6205.app.bundle.js +1 -1
  44. package/dist/6205.app.bundle.js.LICENSE.txt +4 -4
  45. package/dist/6391.app.bundle.js +1 -1
  46. package/dist/6391.app.bundle.js.LICENSE.txt +4 -4
  47. package/dist/6569.app.bundle.js +1 -1
  48. package/dist/6569.app.bundle.js.LICENSE.txt +4 -4
  49. package/dist/6596.app.bundle.js +1 -1
  50. package/dist/6596.app.bundle.js.LICENSE.txt +4 -4
  51. package/dist/6734.app.bundle.js +1 -1
  52. package/dist/6874.app.bundle.js +1 -1
  53. package/dist/6998.app.bundle.js +1 -1
  54. package/dist/6998.app.bundle.js.LICENSE.txt +4 -4
  55. package/dist/7061.app.bundle.js +1 -0
  56. package/dist/7375.app.bundle.js +1 -1
  57. package/dist/7454.app.bundle.js +1 -1
  58. package/dist/7454.app.bundle.js.LICENSE.txt +4 -4
  59. package/dist/7485.app.bundle.js +2 -0
  60. package/dist/7485.app.bundle.js.LICENSE.txt +5 -0
  61. package/dist/753.app.bundle.js +1 -1
  62. package/dist/753.app.bundle.js.LICENSE.txt +4 -4
  63. package/dist/783.app.bundle.js +1 -1
  64. package/dist/8214.app.bundle.js +1 -1
  65. package/dist/8509.app.bundle.js +1 -1
  66. package/dist/8509.app.bundle.js.LICENSE.txt +4 -4
  67. package/dist/8716.app.bundle.js +1 -1
  68. package/dist/8716.app.bundle.js.LICENSE.txt +4 -4
  69. package/dist/876.app.bundle.js +1 -1
  70. package/dist/9262.app.bundle.js +1 -1
  71. package/dist/9262.app.bundle.js.LICENSE.txt +4 -4
  72. package/dist/934.app.bundle.js +1 -1
  73. package/dist/934.app.bundle.js.LICENSE.txt +4 -4
  74. package/dist/9370.app.bundle.js +1 -1
  75. package/dist/9370.app.bundle.js.LICENSE.txt +4 -4
  76. package/dist/9398.app.bundle.js +1 -1
  77. package/dist/9727.app.bundle.js +1 -1
  78. package/dist/9727.app.bundle.js.LICENSE.txt +4 -4
  79. package/dist/9893.app.bundle.js +1 -1
  80. package/dist/app.bundle.js +1 -1
  81. package/dist/components/date-utils.js +1 -1
  82. package/dist/components/index.d.ts +6 -0
  83. package/dist/components/index.js +1 -1
  84. package/dist/components/index2.js +1 -1
  85. package/dist/components/types/components.d.ts +439 -0
  86. package/dist/components/types/contacts.d.ts +105 -105
  87. package/dist/components/types/stencil-public-runtime.d.ts +49 -15
  88. package/dist/components/va-accordion-item.d.ts +2 -2
  89. package/dist/components/va-accordion-item.js +1 -1
  90. package/dist/components/va-accordion.d.ts +2 -2
  91. package/dist/components/va-accordion.js +1 -1
  92. package/dist/components/va-additional-info.d.ts +2 -2
  93. package/dist/components/va-additional-info.js +1 -1
  94. package/dist/components/va-alert-expandable.d.ts +2 -2
  95. package/dist/components/va-alert-expandable.js +1 -1
  96. package/dist/components/va-alert.d.ts +2 -2
  97. package/dist/components/va-alert2.js +1 -1
  98. package/dist/components/va-back-to-top.d.ts +2 -2
  99. package/dist/components/va-back-to-top.js +1 -1
  100. package/dist/components/va-banner.d.ts +2 -2
  101. package/dist/components/va-banner.js +1 -1
  102. package/dist/components/va-breadcrumbs.d.ts +2 -2
  103. package/dist/components/va-breadcrumbs.js +1 -1
  104. package/dist/components/va-button-icon.d.ts +2 -2
  105. package/dist/components/va-button-icon2.js +1 -1
  106. package/dist/components/va-button-pair.d.ts +2 -2
  107. package/dist/components/va-button-pair.js +1 -1
  108. package/dist/components/va-button.d.ts +2 -2
  109. package/dist/components/va-button2.js +1 -1
  110. package/dist/components/va-card.d.ts +2 -2
  111. package/dist/components/va-card2.js +1 -1
  112. package/dist/components/va-checkbox-group.d.ts +2 -2
  113. package/dist/components/va-checkbox-group.js +1 -1
  114. package/dist/components/va-checkbox.d.ts +2 -2
  115. package/dist/components/va-checkbox2.js +1 -1
  116. package/dist/components/va-crisis-line-modal.d.ts +2 -2
  117. package/dist/components/va-crisis-line-modal2.js +1 -1
  118. package/dist/components/va-date.d.ts +2 -2
  119. package/dist/components/va-date.js +1 -1
  120. package/dist/components/va-file-input-multiple.d.ts +2 -2
  121. package/dist/components/va-file-input-multiple.js +1 -1
  122. package/dist/components/va-file-input.d.ts +2 -2
  123. package/dist/components/va-file-input2.js +1 -1
  124. package/dist/components/va-header-minimal.d.ts +2 -2
  125. package/dist/components/va-header-minimal.js +1 -1
  126. package/dist/components/va-icon.d.ts +2 -2
  127. package/dist/components/va-icon2.js +1 -1
  128. package/dist/components/va-link-action.d.ts +2 -2
  129. package/dist/components/va-link-action.js +1 -1
  130. package/dist/components/va-link.d.ts +2 -2
  131. package/dist/components/va-link2.js +1 -1
  132. package/dist/components/va-loading-indicator.d.ts +2 -2
  133. package/dist/components/va-loading-indicator.js +1 -1
  134. package/dist/components/va-maintenance-banner.d.ts +2 -2
  135. package/dist/components/va-maintenance-banner.js +1 -1
  136. package/dist/components/va-memorable-date.d.ts +2 -2
  137. package/dist/components/va-memorable-date.js +1 -1
  138. package/dist/components/va-minimal-footer.d.ts +2 -2
  139. package/dist/components/va-minimal-footer.js +1 -1
  140. package/dist/components/va-modal.d.ts +2 -2
  141. package/dist/components/va-modal2.js +1 -1
  142. package/dist/components/va-need-help.d.ts +2 -2
  143. package/dist/components/va-need-help.js +1 -1
  144. package/dist/components/va-notification.d.ts +2 -2
  145. package/dist/components/va-notification.js +1 -1
  146. package/dist/components/va-official-gov-banner.d.ts +2 -2
  147. package/dist/components/va-official-gov-banner2.js +1 -1
  148. package/dist/components/va-omb-info.d.ts +2 -2
  149. package/dist/components/va-omb-info.js +1 -1
  150. package/dist/components/va-on-this-page.d.ts +2 -2
  151. package/dist/components/va-on-this-page.js +1 -1
  152. package/dist/components/va-pagination.d.ts +2 -2
  153. package/dist/components/va-pagination.js +1 -1
  154. package/dist/components/va-privacy-agreement.d.ts +2 -2
  155. package/dist/components/va-privacy-agreement.js +1 -1
  156. package/dist/components/va-process-list-item.d.ts +2 -2
  157. package/dist/components/va-process-list-item.js +1 -1
  158. package/dist/components/va-process-list.d.ts +2 -2
  159. package/dist/components/va-process-list.js +1 -1
  160. package/dist/components/va-progress-bar.d.ts +2 -2
  161. package/dist/components/va-progress-bar.js +1 -1
  162. package/dist/components/va-promo-banner.d.ts +2 -2
  163. package/dist/components/va-promo-banner.js +1 -1
  164. package/dist/components/va-radio-option.d.ts +2 -2
  165. package/dist/components/va-radio-option.js +1 -1
  166. package/dist/components/va-radio.d.ts +2 -2
  167. package/dist/components/va-radio.js +1 -1
  168. package/dist/components/va-search-input.d.ts +2 -2
  169. package/dist/components/va-search-input.js +1 -1
  170. package/dist/components/va-segmented-progress-bar.d.ts +2 -2
  171. package/dist/components/va-segmented-progress-bar.js +1 -1
  172. package/dist/components/va-select.d.ts +2 -2
  173. package/dist/components/va-select2.js +1 -1
  174. package/dist/components/va-statement-of-truth.d.ts +2 -2
  175. package/dist/components/va-statement-of-truth.js +1 -1
  176. package/dist/components/va-summary-box.d.ts +2 -2
  177. package/dist/components/va-summary-box.js +1 -1
  178. package/dist/components/va-table-inner.d.ts +2 -2
  179. package/dist/components/va-table-inner2.js +1 -1
  180. package/dist/components/va-table-row.d.ts +2 -2
  181. package/dist/components/va-table-row.js +1 -1
  182. package/dist/components/va-table.d.ts +2 -2
  183. package/dist/components/va-table.js +1 -1
  184. package/dist/components/va-telephone.d.ts +2 -2
  185. package/dist/components/va-telephone2.js +1 -1
  186. package/dist/components/va-text-input.d.ts +2 -2
  187. package/dist/components/va-text-input2.js +1 -1
  188. package/dist/components/va-textarea.d.ts +2 -2
  189. package/dist/components/va-textarea.js +1 -1
  190. package/package.json +2 -2
  191. package/dist/2259.app.bundle.js +0 -1
  192. package/dist/2963.app.bundle.js +0 -1
  193. package/dist/3270.app.bundle.js +0 -2
  194. package/dist/3270.app.bundle.js.LICENSE.txt +0 -11
  195. package/dist/5285.app.bundle.js +0 -2
  196. package/dist/5285.app.bundle.js.LICENSE.txt +0 -5
  197. package/dist/9452.app.bundle.js +0 -1
  198. package/dist/9970.app.bundle.js +0 -2
  199. package/dist/9970.app.bundle.js.LICENSE.txt +0 -17
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 1185.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([[1185,5285,2259],{5285:function(e,r,t){t.r(r),t.d(r,{c:function(){return s}});var a,o,s=(a=function(e){!function(){var r={}.hasOwnProperty;function t(){for(var e=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var s=typeof o;if("string"===s||"number"===s)e.push(o);else if(Array.isArray(o)){if(o.length){var i=t.apply(null,o);i&&e.push(i)}}else if("object"===s)if(o.toString===Object.prototype.toString)for(var n in o)r.call(o,n)&&o[n]&&e.push(n);else e.push(o.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()},a(o={path:undefined,exports:{},require:function(e,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),o.exports)},2259:function(e,r,t){function a(e,r){var t=e.shadowRoot.querySelector("slot").assignedNodes();return null!==r?Array.from(t).filter((function(e){return e.nodeName.toLowerCase()===r})):Array.from(t)}function o(e){return 1===e?"":"s"}function s(e,r){if(void 0===e||""===e)return"".concat(r," character").concat(o(r)," allowed");var t;if(e.length<=r){var a=r-e.length;t="".concat(a," character").concat(o(a)," left")}else a=e.length-r,t="".concat(a," character").concat(o(a)," over limit");return t}function i(e,r){return Array.from({length:r-e+1},(function(r,t){return e+t}))}t.r(r),t.d(r,{S:function(){return l},a:function(){return h},b:function(){return s},g:function(){return a},m:function(){return i},s:function(){return u}});var n=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,r){var t=function(e,r){if("string"!=typeof e)return[];if(!r||!n(r))return[];var t=r.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,r);return"string"!=typeof e||n(r)&&r.matches(e)&&t.push(r),t}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return l._entities[e]},escapeHTML:function(e){for(var r="",t=0;t<e.length;t++)if(r+=e[t],t+1<arguments.length){var a=arguments[t+1]||"";r+=String(a).replace(l._entity,l.getEntity)}return r}};function h(e){var r;return(r="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&r<=6?"h".concat(r):null}},1185:function(e,r,t){t.r(r),t.d(r,{va_radio:function(){return n}});var a=t(218),o=t(5285),s=t(2259),i=(t(4786),t(2764)),n=function(){function e(e){(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.vaValueChange=(0,a.c)(this,"vaValueChange",7),this.label=void 0,this.hint=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.messageAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.handleKeyDown=function(e){var r=e.target,t=(0,s.g)(this.el,"va-radio-option").filter((function(e){return!e.disabled}));if(t.length){var a=t.findIndex((function(e){return e===r}));if(-1!==a){var o;switch(e.key){case" ":if(e.preventDefault(),r.checked)return;o=r,this.selectNextNode(r);break;case"ArrowDown":case"ArrowRight":e.preventDefault(),a===t.length-1?(o=t[0],this.deselectCurrentNode(r),this.selectNextNode(o)):(o=t[a+1],this.deselectCurrentNode(r),this.selectNextNode(o));break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),0===a?(o=t[t.length-1],this.deselectCurrentNode(r),this.selectNextNode(o)):(o=t[a-1],this.deselectCurrentNode(r),this.selectNextNode(o))}o&&(this.enableAnalytics&&this.fireAnalyticsEvent(o.label),this.vaValueChange.emit({value:o.value}))}}},e.prototype.radioOptionSelectedHandler=function(e){var r=this,t=e.target;(0,s.g)(this.el,"va-radio-option").filter((function(e){return e!==t})).forEach((function(e){r.deselectCurrentNode(e)})),this.selectNextNode(t),this.enableAnalytics&&this.fireAnalyticsEvent(t.label),this.vaValueChange.emit({value:t.value})},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-radio",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.deselectCurrentNode=function(e){e.removeAttribute("checked")},e.prototype.selectNextNode=function(e){e.setAttribute("checked",""),e.focus()},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,r=e.label,t=e.hint,n=e.required,u=e.error,l=e.headerAriaDescribedby,h=e.messageAriaDescribedby,d=e.useFormsPattern,f=e.formHeadingLevel,m=e.formHeading,c=this.getHeaderLevel(),p=l?"header-message":null,g=h?"description-message":null,w="".concat(d&&m?"form-question":""," ").concat(d?"form-description":""," ").concat("multiple"===d?"header-message":"").trim()||null,b=(0,o.c)({"usa-legend":!0,"usa-label--error":u}),v=null;if("single"===d||"multiple"===d){var y=(0,s.a)(f);v=(0,a.h)(a.F,null,m&&(0,a.h)(y,{id:"form-question",part:"form-header"},m),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}return(0,a.h)(a.H,{"aria-invalid":u?"true":"false"},v,(0,a.h)("div",{class:"input-wrap"},(0,a.h)("fieldset",{class:"usa-fieldset","aria-labelledby":w},(0,a.h)("legend",{class:b,part:"legend","aria-describedby":g},c?(0,a.h)(c,{part:"header","aria-describedby":p},r):r," ","multiple"===d&&(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},r),l&&(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},l),h&&(0,a.h)("span",{id:"description-message",class:"usa-sr-only"},h),n&&(0,a.h)("span",{class:"usa-label--required",part:"required"},i.i.t("required")),t&&(0,a.h)("div",{class:"usa-hint"},t)),(0,a.h)("span",{class:"usa-error-message",role:"alert"},u&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},i.i.t("error"))," ",u)),(0,a.h)("slot",null))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}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", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{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-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[1185,7485,5254],{1320:function(e,a,r){r.r(a),r.d(a,{c:function(){return s}});var t,o={exports:{}};t=o,function(){var e={}.hasOwnProperty;function a(){for(var r=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var s=typeof o;if("string"===s||"number"===s)r.push(o);else if(Array.isArray(o)){if(o.length){var i=a.apply(null,o);i&&r.push(i)}}else if("object"===s)if(o.toString===Object.prototype.toString)for(var n in o)e.call(o,n)&&o[n]&&r.push(n);else r.push(o.toString())}}return r.join(" ")}t.exports?(a.default=a,t.exports=a):window.classNames=a}();var s=o.exports},5254:function(e,a,r){function t(e,a){var r=e.shadowRoot.querySelector("slot").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 s(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(o(a)," allowed");var r;if(e.length<=a){var t=a-e.length;r="".concat(t," character").concat(o(t)," left")}else t=e.length-a,r="".concat(t," character").concat(o(t)," over limit");return r}function i(e,a){return Array.from({length:a-e+1},(function(a,r){return e+r}))}r.r(a),r.d(a,{S:function(){return l},a:function(){return d},b:function(){return s},g:function(){return t},m:function(){return i},s:function(){return u}}),r(7131);var n=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,a){var r=function(e,a){if("string"!=typeof e)return[];if(!a||!n(a))return[];var r=a.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,a);return"string"!=typeof e||n(a)&&a.matches(e)&&r.push(a),r}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return l._entities[e]},escapeHTML:function(e){for(var a="",r=0;r<e.length;r++)if(a+=e[r],r+1<arguments.length){var t=arguments[r+1]||"";a+=String(t).replace(l._entity,l.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}},1185:function(e,a,r){r.r(a),r.d(a,{va_radio:function(){return n}});var t=r(7131),o=r(1320),s=r(5254),i=(r(4259),r(2764)),n=function(){function e(e){(0,t.r)(this,e),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.vaValueChange=(0,t.c)(this,"vaValueChange",7),this.label=void 0,this.hint=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.messageAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.handleKeyDown=function(e){var a=e.target,r=(0,s.g)(this.el,"va-radio-option").filter((function(e){return!e.disabled}));if(r.length){var t=r.findIndex((function(e){return e===a}));if(-1!==t){var o;switch(e.key){case" ":if(e.preventDefault(),a.checked)return;o=a,this.selectNextNode(a);break;case"ArrowDown":case"ArrowRight":e.preventDefault(),t===r.length-1?(o=r[0],this.deselectCurrentNode(a),this.selectNextNode(o)):(o=r[t+1],this.deselectCurrentNode(a),this.selectNextNode(o));break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),0===t?(o=r[r.length-1],this.deselectCurrentNode(a),this.selectNextNode(o)):(o=r[t-1],this.deselectCurrentNode(a),this.selectNextNode(o))}o&&(this.enableAnalytics&&this.fireAnalyticsEvent(o.label),this.vaValueChange.emit({value:o.value}))}}},e.prototype.radioOptionSelectedHandler=function(e){var a=this,r=e.target;(0,s.g)(this.el,"va-radio-option").filter((function(e){return e!==r})).forEach((function(e){a.deselectCurrentNode(e)})),this.selectNextNode(r),this.enableAnalytics&&this.fireAnalyticsEvent(r.label),this.vaValueChange.emit({value:r.value})},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-radio",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.deselectCurrentNode=function(e){e.removeAttribute("checked")},e.prototype.selectNextNode=function(e){e.setAttribute("checked",""),e.focus()},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,t.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,a=e.label,r=e.hint,n=e.required,u=e.error,l=e.headerAriaDescribedby,d=e.messageAriaDescribedby,h=e.useFormsPattern,f=e.formHeadingLevel,c=e.formHeading,m=this.getHeaderLevel(),p=l?"header-message":null,b=d?"description-message":null,g="".concat(h&&c?"form-question":""," ").concat(h?"form-description":""," ").concat("multiple"===h?"header-message":"").trim()||null,w=(0,o.c)({"usa-legend":!0,"usa-label--error":u}),v=null;if("single"===h||"multiple"===h){var y=(0,s.a)(f);v=(0,t.h)(t.F,{key:"c490777bea2d979971a5325dffcf1433e2d4765f"},c&&(0,t.h)(y,{key:"339101a40b595c6d6be23e2578d7b1458c877532",id:"form-question",part:"form-header"},c),(0,t.h)("div",{key:"77e6524473093ccfa6ae9f9aaf5f4ba9917d3838",id:"form-description"},(0,t.h)("slot",{key:"af496dcbdd1bb5ed49d40864cb0e01b93e794d0e",name:"form-description"})))}return(0,t.h)(t.H,{key:"cb3dc03758cc34eb60c97431bdb8308187e5a13a","aria-invalid":u?"true":"false"},v,(0,t.h)("div",{key:"0a93af2befdf221e66a0d771c99d341e58bc8de2",class:"input-wrap"},(0,t.h)("fieldset",{key:"a5fd557c298cfd494519a73779be7011bd2aa361",class:"usa-fieldset","aria-labelledby":g},(0,t.h)("legend",{key:"a511fe4c340b7712cefc67ad7d9b4be8067ab2ff",class:w,part:"legend","aria-describedby":b},m?(0,t.h)(m,{part:"header","aria-describedby":p},a):a," ","multiple"===h&&(0,t.h)("span",{key:"2852f250aa8a30f3e2ac6335fa875f159f9c79d3",id:"header-message",class:"usa-sr-only"},a),l&&(0,t.h)("span",{key:"cb4deceac5e168e24793bd6d66294829025900c8",id:"header-message",class:"usa-sr-only"},l),d&&(0,t.h)("span",{key:"09887825ea4ed1d99ccf325ab3fa28e7b08d2e26",id:"description-message",class:"usa-sr-only"},d),n&&(0,t.h)("span",{key:"8b8df1c82090caea22aac64cafc5f88c9f3fbcf5",class:"usa-label--required",part:"required"},i.i.t("required")),r&&(0,t.h)("div",{key:"61e35ffe160a2b2d700139ebf3f083e9158186cd",class:"usa-hint"},r)),(0,t.h)("span",{key:"1f19dd02a69c4c4d2c0fb637d1ab24acc54f3dc2",class:"usa-error-message",role:"alert"},u&&(0,t.h)(t.F,{key:"9a5decb7507c49d544135d6b2902b234dd0b372c"},(0,t.h)("span",{key:"4eaad1d95c6211c46540c2d58c5c07ab29204b65",class:"usa-sr-only"},i.i.t("error"))," ",u)),(0,t.h)("slot",{key:"a216a5192250ba9219f1454a994fe9e7c30890ac"}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}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", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{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-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px}'}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[1279],{1279:function(e,t,s){s.r(t),s.d(t,{va_process_list:function(){return r}});var o=s(218),r=function(){function e(e){(0,o.r)(this,e)}return e.prototype.render=function(){return(0,o.h)("ol",{role:"list",class:"usa-process-list"},(0,o.h)("slot",null))},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([[1279],{1279:function(e,t,s){s.r(t),s.d(t,{va_process_list:function(){return r}});var o=s(7131),r=function(){function e(e){(0,o.r)(this,e)}return e.prototype.render=function(){return(0,o.h)("ol",{key:"2933760e400484020e2d48ecc99a63abaa34a9b2",role:"list",class:"usa-process-list"},(0,o.h)("slot",{key:"7a8f217665bcd92ba3f35d81b52e441d6cb5856c"}))},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([[1652],{1652:function(e,n,t){t.r(n),t.d(n,{va_need_help:function(){return o}});var r=t(218),o=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)(r.H,null,(0,r.h)("div",{class:"need-help"},(0,r.h)("h2",{id:"need-help"},"Need help?"),(0,r.h)("slot",{name:"content"})))},e}();o.style=":host{display:block}.need-help h2{border-bottom:3px solid var(--vads-color-primary);margin:0.3em 0;font-family:var(--font-serif);font-size:1.35em;line-height:1.5;font-weight:bold}::slotted([slot='content']){font-family:var(--font-sans-serif);margin-top:0 !important}::slotted(p){font-family:var(--font-sans-serif);margin:0.5em 0 !important;padding:0 !important}"}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[1652],{1652:function(e,t,n){n.r(t),n.d(t,{va_need_help:function(){return r}});var a=n(7131),r=function(){function e(e){(0,a.r)(this,e)}return e.prototype.render=function(){return(0,a.h)(a.H,{key:"baea0db95a6212f32793d428416fb9e97f8edf26"},(0,a.h)("div",{key:"71bc72680921c862a2a1d27a0b2669d6c797d731",class:"need-help"},(0,a.h)("h2",{key:"4f56567a64c4c0ad584f48fd8e98fb0df6eb94e1",id:"need-help"},"Need help?"),(0,a.h)("slot",{key:"6641002daedc73fef8cbec62f659a4a7a744f676",name:"content"})))},e}();r.style=":host{display:block}.need-help h2{border-bottom:3px solid var(--vads-color-primary);margin:0.3em 0;font-family:var(--font-serif);font-size:1.35em;line-height:1.5;font-weight:bold}::slotted([slot='content']){font-family:var(--font-sans-serif);margin-top:0 !important}::slotted(p){font-family:var(--font-sans-serif);margin:0.5em 0 !important;padding:0 !important}"}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 2108.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([[2108,5285,2259],{5285:function(e,a,t){t.r(a),t.d(a,{c:function(){return o}});var r,i,o=(r=function(e){!function(){var a={}.hasOwnProperty;function t(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var n=t.apply(null,i);n&&e.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)a.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()},r(i={path:undefined,exports:{},require:function(e,a){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),i.exports)},2259:function(e,a,t){function r(e,a){var t=e.shadowRoot.querySelector("slot").assignedNodes();return null!==a?Array.from(t).filter((function(e){return e.nodeName.toLowerCase()===a})):Array.from(t)}function i(e){return 1===e?"":"s"}function o(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(i(a)," allowed");var t;if(e.length<=a){var r=a-e.length;t="".concat(r," character").concat(i(r)," left")}else r=e.length-a,t="".concat(r," character").concat(i(r)," over limit");return t}function n(e,a){return Array.from({length:a-e+1},(function(a,t){return e+t}))}t.r(a),t.d(a,{S:function(){return u},a:function(){return c},b:function(){return o},g:function(){return r},m:function(){return n},s:function(){return l}});var s=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||!s(a))return[];var t=a.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,a);return"string"!=typeof e||s(a)&&a.matches(e)&&t.push(a),t}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return u._entities[e]},escapeHTML:function(e){for(var a="",t=0;t<e.length;t++)if(a+=e[t],t+1<arguments.length){var r=arguments[t+1]||"";a+=String(r).replace(u._entity,u.getEntity)}return a}};function c(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}},2108:function(e,a,t){t.r(a),t.d(a,{va_textarea:function(){return s}});var r=t(218),i=t(5285),o=(t(4786),t(2259)),n=t(2764),s=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.handleInput=function(e){var t=e.target;a.value=t.value},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.getMaxlength=function(){if(!(this.maxlength<=0))return this.maxlength},e.prototype.render=function(){var e=this,a=e.label,t=e.error,s=e.placeholder,l=e.name,u=e.required,c=e.value,d=e.hint,h=e.charcount,f=e.messageAriaDescribedby,m=e.useFormsPattern,p=e.formHeadingLevel,b=e.headerAriaDescribedby,g=e.formHeading,v=this.getMaxlength(),y="".concat(t?"input-error-message":""," ").concat(h&&v?"charcount-message":""," ").concat(f?"input-message":"").trim()||null,x="".concat(m&&g?"form-question":""," ").concat(m?"form-description":""," ").concat(m&&a?"input-label":"").trim()||null,w=(0,o.a)(this.labelHeaderLevel),_=b?"header-message":null,z=h&&(null==c?void 0:c.length)>v,T=(0,i.c)({"usa-label":!0,"usa-label--error":t}),A=(0,i.c)({"usa-textarea":!0,"usa-input--error":t}),S=(0,i.c)({"usa-hint":!0,"usa-character-count__status":h,"usa-character-count__status--invalid":h&&v&&(null==c?void 0:c.length)>v}),k=null;if("single"===m||"multiple"===m){var H=(0,o.a)(p);k=(0,r.h)(r.F,null,g&&(0,r.h)(H,{id:"form-question",part:"form-header"},g),(0,r.h)("div",{id:"form-description"},(0,r.h)("slot",{name:"form-description"})))}return(0,r.h)(r.H,null,k,(0,r.h)("div",{class:"input-wrap"},a&&(0,r.h)("label",{htmlFor:"input-type-textarea",id:"input-label",class:T,part:"label"},w?(0,r.h)(w,{part:"header","aria-describedby":_},a):a," ","multiple"===m&&(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},a),b&&(0,r.h)("span",{id:"header-message",class:"usa-sr-only"},b),u&&(0,r.h)("span",{class:"usa-label--required"},n.i.t("required")),d&&(0,r.h)("div",{class:"usa-hint"},d)),(0,r.h)("slot",null),(0,r.h)("span",{id:"input-error-message",role:"alert"},t&&(0,r.h)(r.F,null,(0,r.h)("span",{class:"usa-sr-only"},n.i.t("error")),(0,r.h)("span",{class:"usa-error-message"},t))),(0,r.h)("textarea",{class:A,"aria-describedby":y,"aria-invalid":t||z?"true":"false","aria-labelledby":x,onInput:this.handleInput,onBlur:this.handleBlur,id:"input-type-textarea",placeholder:s,name:l,maxLength:h?void 0:v,value:c,part:"input-type-textarea"}),!h&&v&&(null==c?void 0:c.length)>=v&&(0,r.h)("span",{class:S,"aria-live":"polite"},n.i.t("max-chars",{length:v})),h&&v&&(0,r.h)("span",{id:"charcount-message",class:S,"aria-live":"polite"},(0,o.b)(c,v)),f&&(0,r.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},f)))},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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-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=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}.usa-textarea{resize:inherit}: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}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2108,7485,5254],{1320: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 s=a.apply(null,i);s&&t.push(s)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var n in i)e.call(i,n)&&i[n]&&t.push(n);else t.push(i.toString())}}return t.join(" ")}r.exports?(a.default=a,r.exports=a):window.classNames=a}();var o=i.exports},5254:function(e,a,t){function r(e,a){var t=e.shadowRoot.querySelector("slot").assignedNodes();return null!==a?Array.from(t).filter((function(e){return e.nodeName.toLowerCase()===a})):Array.from(t)}function i(e){return 1===e?"":"s"}function o(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(i(a)," allowed");var t;if(e.length<=a){var r=a-e.length;t="".concat(r," character").concat(i(r)," left")}else r=e.length-a,t="".concat(r," character").concat(i(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 u},b:function(){return o},g:function(){return r},m:function(){return s},s:function(){return l}}),t(7131);var n=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||!n(a))return[];var t=a.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,a);return"string"!=typeof e||n(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++)if(a+=e[t],t+1<arguments.length){var r=arguments[t+1]||"";a+=String(r).replace(c._entity,c.getEntity)}return a}};function u(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}},2108:function(e,a,t){t.r(a),t.d(a,{va_textarea:function(){return n}});var r=t(7131),i=t(1320),o=(t(4259),t(5254)),s=t(2764),n=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.handleInput=function(e){var t=e.target;a.value=t.value},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;s.i.on("languageChanged",(function(){(0,r.f)(e.el)}))},e.prototype.disconnectedCallback=function(){s.i.off("languageChanged")},e.prototype.getMaxlength=function(){if(!(this.maxlength<=0))return this.maxlength},e.prototype.render=function(){var e=this,a=e.label,t=e.error,n=e.placeholder,l=e.name,c=e.required,u=e.value,d=e.hint,h=e.charcount,f=e.messageAriaDescribedby,b=e.useFormsPattern,m=e.formHeadingLevel,p=e.headerAriaDescribedby,g=e.formHeading,y=this.getMaxlength(),v="".concat(t?"input-error-message":""," ").concat(h&&y?"charcount-message":""," ").concat(f?"input-message":"").trim()||null,x="".concat(b&&g?"form-question":""," ").concat(b?"form-description":""," ").concat(b&&a?"input-label":"").trim()||null,w=(0,o.a)(this.labelHeaderLevel),k=p?"header-message":null,_=h&&(null==u?void 0:u.length)>y,z=(0,i.c)({"usa-label":!0,"usa-label--error":t}),T=(0,i.c)({"usa-textarea":!0,"usa-input--error":t}),A=(0,i.c)({"usa-hint":!0,"usa-character-count__status":h,"usa-character-count__status--invalid":h&&y&&(null==u?void 0:u.length)>y}),S=null;if("single"===b||"multiple"===b){var H=(0,o.a)(m);S=(0,r.h)(r.F,{key:"a18042437fbe80634839406bb982cac46c066c4a"},g&&(0,r.h)(H,{key:"7e91f0a7a04cac299aa5f7eca368a49a78ffae02",id:"form-question",part:"form-header"},g),(0,r.h)("div",{key:"c2397bba929f11280ec7de52505197208de48683",id:"form-description"},(0,r.h)("slot",{key:"3c96d08573512f6cf63f986e410946db3143634f",name:"form-description"})))}return(0,r.h)(r.H,{key:"a45998cdb1c89fe66eb744cf9cd3d518e4178b73"},S,(0,r.h)("div",{key:"8295d696f79f170402aa5c558c83359df9839786",class:"input-wrap"},a&&(0,r.h)("label",{key:"37fca141e7c756c0fa59848827244d6eae8231ee",htmlFor:"input-type-textarea",id:"input-label",class:z,part:"label"},w?(0,r.h)(w,{part:"header","aria-describedby":k},a):a," ","multiple"===b&&(0,r.h)("span",{key:"f6b5c7b93e8f88f1ae64e9f383544e55d494b7f7",id:"header-message",class:"usa-sr-only"},a),p&&(0,r.h)("span",{key:"c0701771a965218c4a34299f068afbd3938f301e",id:"header-message",class:"usa-sr-only"},p),c&&(0,r.h)("span",{key:"6844209232292e48277f41b2ac7c7fd686b59780",class:"usa-label--required"},s.i.t("required")),d&&(0,r.h)("div",{key:"1e7af03f6c6f891ed948f8066d304ff8ae792dc0",class:"usa-hint"},d)),(0,r.h)("slot",{key:"252e81c070f4fde4805e55afdc744bcce4bbd03c"}),(0,r.h)("span",{key:"dc17555170d81486eec18cbc2c8e2a054f043da4",id:"input-error-message",role:"alert"},t&&(0,r.h)(r.F,{key:"4d521247c88589546df23753982cc0a828c8c341"},(0,r.h)("span",{key:"34ad02458931b91c61d7395715b50922a7fcd44b",class:"usa-sr-only"},s.i.t("error")),(0,r.h)("span",{key:"3f2f5c4a882b84e2fd930ca67747dea3669ee97e",class:"usa-error-message"},t))),(0,r.h)("textarea",{key:"a11e35eb58f08c30040cbecc64186985cd29e28f",class:T,"aria-describedby":v,"aria-invalid":t||_?"true":"false","aria-labelledby":x,onInput:this.handleInput,onBlur:this.handleBlur,id:"input-type-textarea",placeholder:n,name:l,maxLength:h?void 0:y,value:u,part:"input-type-textarea"}),!h&&y&&(null==u?void 0:u.length)>=y&&(0,r.h)("span",{key:"25f0318a8c1466a1ecf2d04f523ac7734db2de62",class:A,"aria-live":"polite"},s.i.t("max-chars",{length:y})),h&&y&&(0,r.h)("span",{key:"08329a26045d5ce25f5798d374c18e0ecdcff68c",id:"charcount-message",class:A,"aria-live":"polite"},(0,o.b)(u,y)),f&&(0,r.h)("span",{key:"f46338c1bb3427826efddb611b57ab350b08163c",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},f)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-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=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}.usa-textarea{resize:inherit}: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}'}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 2305.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([[2305,5285,2259],{5285:function(e,r,t){t.r(r),t.d(r,{c:function(){return i}});var n,o,i=(n=function(e){!function(){var r={}.hasOwnProperty;function t(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)r.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()},n(o={path:undefined,exports:{},require:function(e,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),o.exports)},2259:function(e,r,t){function n(e,r){var t=e.shadowRoot.querySelector("slot").assignedNodes();return null!==r?Array.from(t).filter((function(e){return e.nodeName.toLowerCase()===r})):Array.from(t)}function o(e){return 1===e?"":"s"}function i(e,r){if(void 0===e||""===e)return"".concat(r," character").concat(o(r)," allowed");var t;if(e.length<=r){var n=r-e.length;t="".concat(n," character").concat(o(n)," left")}else n=e.length-r,t="".concat(n," character").concat(o(n)," over limit");return t}function a(e,r){return Array.from({length:r-e+1},(function(r,t){return e+t}))}t.r(r),t.d(r,{S:function(){return h},a:function(){return f},b:function(){return i},g:function(){return n},m:function(){return a},s:function(){return l}});var s=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,r){var t=function(e,r){if("string"!=typeof e)return[];if(!r||!s(r))return[];var t=r.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,r);return"string"!=typeof e||s(r)&&r.matches(e)&&t.push(r),t}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var r="",t=0;t<e.length;t++)if(r+=e[t],t+1<arguments.length){var n=arguments[t+1]||"";r+=String(n).replace(h._entity,h.getEntity)}return r}};function f(e){var r;return(r="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&r<=6?"h".concat(r):null}},2305:function(e,r,t){t.r(r),t.d(r,{va_checkbox_group:function(){return s}});var n=t(218),o=t(5285),i=(t(4786),t(2259)),a=t(2764),s=function(){function e(e){(0,n.r)(this,e),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.label=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.hint=void 0,this.labelHeaderLevel=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.vaChangeHandler=function(e){var r=e.target;this.enableAnalytics&&this.fireAnalyticsEvent(r.label)},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-checkbox-group",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;a.i.on("languageChanged",(function(){(0,n.f)(e.el)}))},e.prototype.disconnectedCallback=function(){a.i.off("languageChanged")},e.prototype.render=function(){var e=this,r=e.label,t=e.required,s=e.error,l=e.hint,h=e.useFormsPattern,f=e.formHeadingLevel,u=e.formHeading,c=this.getHeaderLevel(),m="".concat(h&&u?"form-question":""," ").concat(h?"form-description":""," ").concat("multiple"===h?"header-message":"").trim()||null,p=(0,o.c)({"usa-legend":!0,"usa-label--error":s}),d=null;if("single"===h||"multiple"===h){var g=(0,i.a)(f);d=(0,n.h)(n.F,null,u&&(0,n.h)(g,{id:"form-question",part:"form-header"},u),(0,n.h)("div",{id:"form-description"},(0,n.h)("slot",{name:"form-description"})))}return(0,n.h)(n.H,{role:"group"},d,(0,n.h)("div",{class:"input-wrap"},(0,n.h)("fieldset",{class:"usa-fieldset","aria-labelledby":m},(0,n.h)("legend",{class:p},c?(0,n.h)(c,{part:"header"},r):r," ","multiple"===h&&(0,n.h)("span",{id:"header-message",class:"usa-sr-only"},r),t&&(0,n.h)("span",{class:"usa-label--required"},a.i.t("required")),l&&(0,n.h)("div",{class:"usa-hint"},l)),(0,n.h)("span",{id:"checkbox-error-message",role:"alert"},s&&(0,n.h)(n.F,null,(0,n.h)("span",{class:"usa-sr-only"},a.i.t("error")),(0,n.h)("span",{class:"usa-error-message"},s))),(0,n.h)("slot",null))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-fieldset{border:none;margin:0;padding:0}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2305,7485,5254],{1320:function(e,t,r){r.r(t),r.d(t,{c:function(){return a}});var n,o={exports:{}};n=o,function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var a=typeof o;if("string"===a||"number"===a)r.push(o);else if(Array.isArray(o)){if(o.length){var i=t.apply(null,o);i&&r.push(i)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&r.push(s);else r.push(o.toString())}}return r.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}();var a=o.exports},5254:function(e,t,r){function n(e,t){var r=e.shadowRoot.querySelector("slot").assignedNodes();return null!==t?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(r)}function o(e){return 1===e?"":"s"}function a(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var n=t-e.length;r="".concat(n," character").concat(o(n)," left")}else n=e.length-t,r="".concat(n," character").concat(o(n)," over limit");return r}function i(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return h},a:function(){return f},b:function(){return a},g:function(){return n},m:function(){return i},s:function(){return l}}),r(7131);var s=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!s(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||s(t)&&t.matches(e)&&r.push(t),r}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)if(t+=e[r],r+1<arguments.length){var n=arguments[r+1]||"";t+=String(n).replace(h._entity,h.getEntity)}return t}};function f(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}},2305:function(e,t,r){r.r(t),r.d(t,{va_checkbox_group:function(){return s}});var n=r(7131),o=r(1320),a=(r(4259),r(5254)),i=r(2764),s=function(){function e(e){(0,n.r)(this,e),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.label=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.hint=void 0,this.labelHeaderLevel=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.vaChangeHandler=function(e){var t=e.target;this.enableAnalytics&&this.fireAnalyticsEvent(t.label)},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-checkbox-group",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,n.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,t=e.label,r=e.required,s=e.error,l=e.hint,h=e.useFormsPattern,f=e.formHeadingLevel,c=e.formHeading,u=this.getHeaderLevel(),d="".concat(h&&c?"form-question":""," ").concat(h?"form-description":""," ").concat("multiple"===h?"header-message":"").trim()||null,m=(0,o.c)({"usa-legend":!0,"usa-label--error":s}),b=null;if("single"===h||"multiple"===h){var p=(0,a.a)(f);b=(0,n.h)(n.F,{key:"425d1365be87ecac3ba4e4d8edd877151d3c8d9a"},c&&(0,n.h)(p,{key:"a799e1526a3f2e5573615308a70102622d5cbaf0",id:"form-question",part:"form-header"},c),(0,n.h)("div",{key:"4473e1b121da090ecf8e12d54ae4f0b7ae1bd12a",id:"form-description"},(0,n.h)("slot",{key:"d26d00b3ec7e42d5dc3cf6b03cd160c0606cb0ea",name:"form-description"})))}return(0,n.h)(n.H,{key:"c31196eaf377db5ca0dfb43eeb35bf4ab83948a2",role:"group"},b,(0,n.h)("div",{key:"7964090110ab6893a89bad0164fd9c0de108cb16",class:"input-wrap"},(0,n.h)("fieldset",{key:"d062a6e7ce1dfa97c764a6ad21834807c3da0e8e",class:"usa-fieldset","aria-labelledby":d},(0,n.h)("legend",{key:"7c711093b219796e7289bf872e37c862a40b5d1f",class:m},u?(0,n.h)(u,{part:"header"},t):t," ","multiple"===h&&(0,n.h)("span",{key:"abc4ef6d43583bb4e9c11779060c11ba1a2a74ac",id:"header-message",class:"usa-sr-only"},t),r&&(0,n.h)("span",{key:"56b47dbb165ae7c5952f3c2aa315fdb4ae64b17b",class:"usa-label--required"},i.i.t("required")),l&&(0,n.h)("div",{key:"adbb6af5b82a574d90ec79cb56ebbccb5a088b02",class:"usa-hint"},l)),(0,n.h)("span",{key:"29d9a8bdb06ca697b198114eea34c652e080801b",id:"checkbox-error-message",role:"alert"},s&&(0,n.h)(n.F,{key:"cba3f015052bbc8c85c77e3a1ecd037fb76527b1"},(0,n.h)("span",{key:"326cd21f7126d234f4109f64e8feffe37f85568a",class:"usa-sr-only"},i.i.t("error")),(0,n.h)("span",{key:"e2c505f5e104372b4e995d028988aece0ce43b7e",class:"usa-error-message"},s))),(0,n.h)("slot",{key:"db4713618a1f094f1ed4a78f02398b9c93eed74a"}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-fieldset{border:none;margin:0;padding:0}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px}'}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2843,2259],{2259:function(e,t,i){function a(e,t){var i=e.shadowRoot.querySelector("slot").assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function n(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(n(t)," allowed");var i;if(e.length<=t){var a=t-e.length;i="".concat(a," character").concat(n(a)," left")}else a=e.length-t,i="".concat(a," character").concat(n(a)," over limit");return i}function r(e,t){return Array.from({length:t-e+1},(function(t,i){return e+i}))}i.r(t),i.d(t,{S:function(){return c},a:function(){return h},b:function(){return o},g:function(){return a},m:function(){return r},s:function(){return l}});var s=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var i=function(e,t){if("string"!=typeof e)return[];if(!t||!s(t))return[];var i=t.shadowRoot.querySelectorAll(e);return Array.from(i)}(e,t);return"string"!=typeof e||s(t)&&t.matches(e)&&i.push(t),i}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",i=0;i<e.length;i++)if(t+=e[i],i+1<arguments.length){var a=arguments[i+1]||"";t+=String(a).replace(c._entity,c.getEntity)}return t}};function h(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}},2843:function(e,t,i){i.r(t),i.d(t,{va_file_input:function(){return W}});var a=i(218),n=(i(4786),i(2259)),o=i(2764),r="usa",s="".concat(r,"-file-input"),l=".".concat(s),c="".concat(r,"-file-input__input"),h="".concat(r,"-file-input__target"),d=".".concat(c),f="".concat(r,"-file-input__box"),u="".concat(r,"-file-input__instructions"),p="".concat(r,"-file-input__preview"),m="".concat(r,"-file-input__preview-heading"),g="".concat(r,"-file-input--disabled"),v="".concat(r,"-file-input__choose"),b="".concat(r,"-file-input__accepted-files-message"),x="".concat(r,"-file-input__drag-text"),w="".concat(r,"-file-input--drag"),y="is-loading",A="has-invalid-file",z="".concat(r,"-file-input__preview-image"),L="".concat(z,"--generic"),T="".concat(z,"--pdf"),S="".concat(z,"--word"),_="".concat(z,"--video"),C="".concat(z,"--excel"),k="".concat(r,"-sr-only"),M="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=Boolean(!0),F="",H="",q=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))},B=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),i=function(e){var t=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),a.classList.add(f),i.classList.add(h),i.prepend(a),e.parentNode.insertBefore(i,e),e.parentNode.insertBefore(t,i),i.appendChild(e),t.appendChild(i),i}(e),a=function(e){var t=e.closest(l),i=B(e),a=document.createElement("div"),o="Drag ".concat(i," here or"),r="choose from folder";return F="".concat(o," ").concat(r),a.classList.add(u),a.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",F),a.innerHTML=n.S.escapeHTML('<span class="'.concat(x,'">').concat(o,'</span> <span class="').concat(v,'">').concat(r,"</span>")),e.parentNode.insertBefore(a,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(x)).outerHTML=""),a}(e),o=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var i=t.querySelector(d);return{dropZoneEl:t,inputEl:i}}(e).dropZoneEl;return t?o.classList.add(g):function(e){var t=document.createElement("div"),i=B(e),a=e.closest(l),n=e.closest(".".concat(h));H="No ".concat(i," selected."),t.classList.add(k),t.setAttribute("aria-live","polite"),t.textContent=H,a.insertBefore(t,n)}(e),{instructions:a,dropTarget:i}},N=function(e,t){var i=e.querySelectorAll(".".concat(p)),a=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(b));a&&(a.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(A)),null!==i&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(i,(function(e){e.parentNode.removeChild(e)})))},j=function(e,t,i,a){!function(e,t,i,a){var n=t.getAttribute("accept");a.classList.remove(A);var o=function(e,t){var i=!1;return e.indexOf(t)>=0&&(i=!0),i};if(n){for(var r=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,h=0;h<c.length;h+=1){var d=c[h];if(!l)break;for(var f=0;f<r.length;f+=1){var u=r[f];if(l=d.name.indexOf(u)>0||o(d.type,u.replace(/\*/g,""))){E=!0;break}}}l||(N(a,i),t.value="",a.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(b),a.classList.add(A),E=!1,e.preventDefault(),e.stopPropagation())}}(e,t,i,a),!0===E&&function(e,t,i,a){var o=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],r=a.closest(".".concat(s)).querySelector(".".concat(k)),l=[];N(a,i);for(var c=function(e){var t,r=new FileReader,s=o[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,q)}(s)),i.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(M,'" alt="" class="').concat(z," ").concat(y,'"/>').concat(s,"\n <div>")))},r.onloadend=function(){var e=a.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(T,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(S,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(C,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(_,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(L,'")')),e.classList.remove(y),e.src=r.result},o[e]&&r.readAsDataURL(o[e])},d=0;d<o.length;d+=1)c(d);0===o.length?t.setAttribute("aria-label",F):function(e,t){var i=document.createElement("div"),a=e.closest(".".concat(h)),o=a.querySelector(".".concat(u)),r="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(r,"</span>")):t.length>1&&(r="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(r,"</span>"))),o.setAttribute("hidden","true"),i.classList.add(m),i.innerHTML=s,a.insertBefore(i,o),e.setAttribute("aria-label",r)}(t,o),function(e,t,i){var a=e,n=H;1===t.length?n="You have selected the file: ".concat(i):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(i.join(", "))),setTimeout((function(){a.textContent=n}),1e3)}(r,o,l)}(e,t,i,a)},D={".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"},W=function(){function e(e){var t=this;(0,a.r)(this,e),this.vaChange=(0,a.c)(this,"vaChange",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.handleChange=function(e){var i=e.target;i.files&&i.files.length>0&&t.handleFile(i.files[0]),i.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var i=e.dataTransfer.files;i.length>0&&t.handleFile(i[0])},this.handleFile=function(e){if(t.accept){var i=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,i))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}t.file=e,t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var i=Math.floor(Math.log(e)/Math.log(1024));if(0===i)return"".concat(e," ").concat(t[i]);var a=(e/Math.pow(1024,i)).toFixed(i<2?0:1);return"".concat(a," ").concat(t[i])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?D[e]:e}))},this.isAcceptedFileType=function(e,t){for(var i=0,a=t;i<a.length;i++){var n=a[i];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,i){var n=t?(0,a.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var r="h".concat(i);return(0,a.h)("div",{class:"label-header"},(0,a.h)(r,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,a.h)("div",{class:"label-header"},(0,a.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1}return e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var i=t.el.shadowRoot.querySelector("#statusMessage");i&&(i.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var i=new FileReader;this.fileType=e.type,i.onloadend=function(){t.fileContents=i.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&i.readAsDataURL(e)}},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=R(e),i=t.instructions,a=t.dropTarget;a.addEventListener("dragover",(function(){this.classList.add(w)}),!1),a.addEventListener("dragleave",(function(){this.classList.remove(w)}),!1),a.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(w);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){j(t,e,i,a);var o=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(o)}}),!1),e.addEventListener("input",(function(t){return j(t,e,i,a)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.render=function(){var e=this,t=this,i=t.label,n=t.name,r=t.required,s=t.accept,l=t.error,c=t.hint,h=t.file,d=t.uploadStatus,f=t.headerSize,u=t.fileContents,p=t.fileType,m=t.headless,g=this.error||this.internalError,v="".concat(c?"input-hint-message":""," ").concat(g?"input-error-message":"").trim()||null,b="file-input-target ".concat(g?"file-input-target-error":"").trim(),x=(0,a.h)("div",{class:"thumbnail-container"},(0,a.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,a.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"})));l?x=(0,a.h)("div",{class:"thumbnail-container"},(0,a.h)("va-icon",{icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):u&&(p.startsWith("image/")?x=(0,a.h)("div",{class:"thumbnail-container","aria-hidden":"true"},(0,a.h)("img",{class:"thumbnail-preview",src:u,alt:"image"})):"application/pdf"===p&&(x=(0,a.h)("div",{class:"thumbnail-container","aria-hidden":"true"},(0,a.h)("object",{class:"thumbnail-preview",data:u,type:"application/pdf"}))));var w=m?"headless-selected-files-wrapper":"selected-files-wrapper",y="usa-hint"+(m?" usa-sr-only":"");return(0,a.h)(a.H,{class:{"has-error":!!g}},(0,a.h)("span",{class:{"usa-sr-only":!!m}},i&&this.renderLabelOrHeader(i,r,f)),c&&(0,a.h)("div",{class:y,id:"input-hint-message"},c),(0,a.h)("div",{class:"file-input-wrapper",onDrop:this.handleDrop},(0,a.h)("input",{id:"fileInputField",class:"file-input",style:{visibility:"success"===this.uploadStatus?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":v,onChange:this.handleChange}),"idle"===d&&(0,a.h)("div",null,(0,a.h)("span",{id:"file-input-error-alert",role:"alert"},g&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},o.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},g))),(0,a.h)("div",{class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,a.h)("div",{class:b},(0,a.h)("div",{class:"file-input-box"}),(0,a.h)("div",{class:"file-input-instructions"},(0,a.h)("span",{class:"file-input-drag-text"},"Drag files here or"," "),(0,a.h)("span",{class:"file-input-choose-text"},"choose from folder")))),"idle"!==d&&(0,a.h)("div",{class:w},!m&&(0,a.h)("div",{class:"selected-files-label"},"Selected files"),(0,a.h)("div",{class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,a.h)("va-card",{class:"va-card"},(0,a.h)("div",{class:"file-info-section"},x,(0,a.h)("div",{class:"file-info-group vads-u-line-height--2"},(0,a.h)("span",{class:"file-label"},h.name),(0,a.h)("span",{id:"input-error-message",role:"alert"},g&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},o.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},g))),(0,a.h)("span",{class:"file-size-label"},this.formatFileSize(h.size)))),h&&(0,a.h)("div",null,(0,a.h)("div",{class:"additional-info-slot"},(0,a.h)("slot",null)),(0,a.h)("div",{class:"file-button-section"},(0,a.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file "+h.name}),(0,a.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file "+h.name,label:"Delete"})),(0,a.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll remove the uploaded document ",(0,a.h)("span",{class:"file-label"},h.name)))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();W.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-info-section{border-bottom:1px solid var(--vads-color-base-lighter);padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{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: 481px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .additional-info-slot{padding-bottom:16px}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[2843,5254],{5254:function(e,t,a){function i(e,t){var a=e.shadowRoot.querySelector("slot").assignedNodes();return null!==t?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(a)}function n(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(n(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(n(i)," left")}else i=e.length-t,a="".concat(i," character").concat(n(i)," over limit");return a}function r(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return c},a:function(){return d},b:function(){return o},g:function(){return i},m:function(){return r},s:function(){return l}}),a(7131);var s=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!s(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||s(t)&&t.matches(e)&&a.push(t),a}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)if(t+=e[a],a+1<arguments.length){var i=arguments[a+1]||"";t+=String(i).replace(c._entity,c.getEntity)}return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}},2843:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return W}});var i=a(7131),n=(a(4259),a(5254)),o=a(2764),r="usa",s="".concat(r,"-file-input"),l=".".concat(s),c="".concat(r,"-file-input__input"),d="".concat(r,"-file-input__target"),f=".".concat(c),h="".concat(r,"-file-input__box"),p="".concat(r,"-file-input__instructions"),u="".concat(r,"-file-input__preview"),m="".concat(r,"-file-input__preview-heading"),b="".concat(r,"-file-input--disabled"),g="".concat(r,"-file-input__choose"),v="".concat(r,"-file-input__accepted-files-message"),y="".concat(r,"-file-input__drag-text"),x="".concat(r,"-file-input--drag"),w="is-loading",k="has-invalid-file",A="".concat(r,"-file-input__preview-image"),z="".concat(A,"--generic"),L="".concat(A,"--pdf"),T="".concat(A,"--word"),S="".concat(A,"--video"),_="".concat(A,"--excel"),C="".concat(r,"-sr-only"),M="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=Boolean(!0),F="",H="",q=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))},B=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(h),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=B(e),i=document.createElement("div"),o="Drag ".concat(a," here or"),r="choose from folder";return F="".concat(o," ").concat(r),i.classList.add(p),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",F),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(o,'</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(y)).outerHTML=""),i}(e),o=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?o.classList.add(b):function(e){var t=document.createElement("div"),a=B(e),i=e.closest(l),n=e.closest(".".concat(d));H="No ".concat(a," selected."),t.classList.add(C),t.setAttribute("aria-live","polite"),t.textContent=H,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},N=function(e,t){var a=e.querySelectorAll(".".concat(u)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},j=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var o=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var r=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var h=0;h<r.length;h+=1){var p=r[h];if(l=f.name.indexOf(p)>0||o(f.type,p.replace(/\*/g,""))){E=!0;break}}}l||(N(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),E=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===E&&function(e,t,a,i){var o=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],r=i.closest(".".concat(s)).querySelector(".".concat(C)),l=[];N(i,a);for(var c=function(e){var t,r=new FileReader,s=o[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,q)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(u,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(M,'" alt="" class="').concat(A," ").concat(w,'"/>').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(M,'"; this.classList.add("').concat(L,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(_,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(S,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(M,'"; this.classList.add("').concat(z,'")')),e.classList.remove(w),e.src=r.result},o[e]&&r.readAsDataURL(o[e])},f=0;f<o.length;f+=1)c(f);0===o.length?t.setAttribute("aria-label",F):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),o=i.querySelector(".".concat(p)),r="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(r,"</span>")):t.length>1&&(r="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(r,"</span>"))),o.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,o),e.setAttribute("aria-label",r)}(t,o),function(e,t,a){var i=e,n=H;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(r,o,l)}(e,t,a,i)},D={".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"},W=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.handleChange=function(e){var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e){if(t.accept){var a=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,a))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}t.file=e,t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?D[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",o.i.t("required")):null;if(a&&a>=1&&a<=6){var r="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(r,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1}return e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var a=new FileReader;this.fileType=e.type,a.onloadend=function(){t.fileContents=a.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&a.readAsDataURL(e)}},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=R(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){j(t,e,a,i);var o=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(o)}}),!1),e.addEventListener("input",(function(t){return j(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,r=t.required,s=t.accept,l=t.error,c=t.hint,d=t.file,f=t.uploadStatus,h=t.headerSize,p=t.fileContents,u=t.fileType,m=t.headless,b=this.error||this.internalError,g="".concat(c?"input-hint-message":""," ").concat(b?"input-error-message":"").trim()||null,v="file-input-target ".concat(b?"file-input-target-error":"").trim(),y=(0,i.h)("div",{key:"597b58b1c44d1a1b4c90936404c1e380213ab62b",class:"thumbnail-container"},(0,i.h)("svg",{key:"6e2a72d6ec8e9b64bc610199a43892eece354f9c",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"843075d39731460acd53079feee7a2b2bda37f65",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?y=(0,i.h)("div",{key:"e4b6cec23f2eaf13ab811ddf36bdd3aff82f4458",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"b89fea654d58d9ae7d7f479d62ed423b19740644",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):p&&(u.startsWith("image/")?y=(0,i.h)("div",{key:"bf35eb7ad55e8afa27cf0e6ec9d42c3fe191ed90",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"1e891c174e738814f1094936fa9226b0630a9d33",class:"thumbnail-preview",src:p,alt:"image"})):"application/pdf"===u&&(y=(0,i.h)("div",{key:"21b6397c7311f3c4616267cd90593259256b7140",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"d3492eb2fe03d4e689856d68657fa8b6fba007eb",class:"thumbnail-preview",data:p,type:"application/pdf"}))));var x=m?"headless-selected-files-wrapper":"selected-files-wrapper",w="usa-hint"+(m?" usa-sr-only":"");return(0,i.h)(i.H,{key:"1bc135ee72e684a08b1a603a6e1e45e568788c9a",class:{"has-error":!!b}},(0,i.h)("span",{key:"6b876f8337be77d14090b17604b9690572600c90",class:{"usa-sr-only":!!m}},a&&this.renderLabelOrHeader(a,r,h)),c&&(0,i.h)("div",{key:"f81c4abd2076fe3ff6c0cf207da6c07cadf97db1",class:w,id:"input-hint-message"},c),(0,i.h)("div",{key:"8091c5e97e3274aed613d7a38f31ec879237e533",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"943d421bf54cd663c5ce841c7cb828c288b6f85b",id:"fileInputField",class:"file-input",style:{visibility:"success"===this.uploadStatus?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":g,onChange:this.handleChange}),"idle"===f&&(0,i.h)("div",{key:"774f7db33c24bb6b56ee34ee581dbb849357a704"},(0,i.h)("span",{key:"b09a5da4e323addf11d888715ca070a5e736569b",id:"file-input-error-alert",role:"alert"},b&&(0,i.h)(i.F,{key:"12501ea76c05824840ce5be66d396cfafa6f41a8"},(0,i.h)("span",{key:"b9fefa38ece0e4bc7108c7c8b4fac889cf6df8ad",class:"usa-sr-only"},o.i.t("error")),(0,i.h)("span",{key:"e413e0ba9cd1799d428e280574d394b0d1ad4de9",class:"usa-error-message"},b))),(0,i.h)("div",{key:"8b5ebbc26812ce2f847fa81c6cff5fb0c903c856",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"60139e4cd861f6ff7b7ef27d45d78e00c3a8749c",class:v},(0,i.h)("div",{key:"34f10957d0b48e727245e642e9e48220aea3b3c0",class:"file-input-box"}),(0,i.h)("div",{key:"d2dbd4add3b9126183ea41e062207bda8788a77c",class:"file-input-instructions"},(0,i.h)("span",{key:"6d3e47e6391c11b7ce4a31d61e7332049bed57d9",class:"file-input-drag-text"},"Drag files here or"," "),(0,i.h)("span",{key:"736c3d2ecdabf322abb867b5bccb9f885aa3e294",class:"file-input-choose-text"},"choose from folder")))),"idle"!==f&&(0,i.h)("div",{key:"904b5ecd645afa976d9916c1f33c7d0878e34b47",class:x},!m&&(0,i.h)("div",{key:"454136436b0e4f1928d964309c675716d87a89b5",class:"selected-files-label"},"Selected files"),(0,i.h)("div",{key:"91133d55f72d21991f2e8fb7e9102687c3625d15",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"771c93b82549780333e76d709be50204a8f548f9",class:"va-card"},(0,i.h)("div",{key:"cef8ac2723314edcbad36f77b8e40ae1199080a8",class:"file-info-section"},y,(0,i.h)("div",{key:"793ecca7479610b4b09f4d8df66265594545c3e4",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"24e74439109359d09fa32cfafd7df9cd3be56072",class:"file-label"},d.name),(0,i.h)("span",{key:"4311a0eadced65c6f512680266adb69bf1416323",id:"input-error-message",role:"alert"},b&&(0,i.h)(i.F,{key:"5e930313ff9aeb6bc5a3307321c26e3f13b88f47"},(0,i.h)("span",{key:"15375bcdebfdcf328a4e03ea00e2740bd218b156",class:"usa-sr-only"},o.i.t("error")),(0,i.h)("span",{key:"f3db3f78cec44e8db462c2ae74b57ab722e6df0a",class:"usa-error-message"},b))),(0,i.h)("span",{key:"9dd03f6441243244fe07cb495d746dc8510b199c",class:"file-size-label"},this.formatFileSize(d.size)))),d&&(0,i.h)("div",{key:"eb2c84827da0e9cd888494806becdad3e7e5d63a"},(0,i.h)("div",{key:"9c3d496e53fcfc4eb0bd9838668fbe89a3a406db",class:"additional-info-slot"},(0,i.h)("slot",{key:"205ea2dbc7c5051445edce8f3b6702a612f20daa"})),(0,i.h)("div",{key:"8a5140fae64e91dfb144fe1404743c45816692c7",class:"file-button-section"},(0,i.h)("va-button-icon",{key:"cc2b50c9783692a8d5cef9e34e724939006e58c1",buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file "+d.name}),(0,i.h)("va-button-icon",{key:"7a5ef563b36adb6937e00cb2d8806bcf45b75591",buttonType:"delete",onClick:this.openModal,"aria-label":"delete file "+d.name,label:"Delete"})),(0,i.h)("va-modal",{key:"4be35d214566369d16d3114c06bd31d906271d24",modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll remove the uploaded document ",(0,i.h)("span",{key:"5fd964f60b86a1a1c04debc71c6deaf6743b8f29",class:"file-label"},d.name)))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),e}();W.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-info-section{border-bottom:1px solid var(--vads-color-base-lighter);padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{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: 481px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .additional-info-slot{padding-bottom:16px}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 3389.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([[3389,5285,2259],{5285:function(e,t,i){i.r(t),i.d(t,{c:function(){return s}});var a,r,s=(a=function(e){!function(){var t={}.hasOwnProperty;function i(){for(var e=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var n=i.apply(null,r);n&&e.push(n)}}else if("object"===s)if(r.toString===Object.prototype.toString)for(var o in r)t.call(r,o)&&r[o]&&e.push(o);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):window.classNames=i}()},a(r={path:undefined,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports)},2259:function(e,t,i){function a(e,t){var i=e.shadowRoot.querySelector("slot").assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function s(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var i;if(e.length<=t){var a=t-e.length;i="".concat(a," character").concat(r(a)," left")}else a=e.length-t,i="".concat(a," character").concat(r(a)," over limit");return i}function n(e,t){return Array.from({length:t-e+1},(function(t,i){return e+i}))}i.r(t),i.d(t,{S:function(){return l},a:function(){return d},b:function(){return s},g:function(){return a},m:function(){return n},s:function(){return u}});var o=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var i=function(e,t){if("string"!=typeof e)return[];if(!t||!o(t))return[];var i=t.shadowRoot.querySelectorAll(e);return Array.from(i)}(e,t);return"string"!=typeof e||o(t)&&t.matches(e)&&i.push(t),i}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return l._entities[e]},escapeHTML:function(e){for(var t="",i=0;i<e.length;i++)if(t+=e[i],i+1<arguments.length){var a=arguments[i+1]||"";t+=String(a).replace(l._entity,l.getEntity)}return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}},3389:function(e,t,i){i.r(t),i.d(t,{va_select:function(){return o},va_text_input:function(){return u}});var a=i(218),r=i(5285),s=(i(4786),i(2259)),n=i(2764),o=function(){function e(e){(0,a.r)(this,e),this.vaKeyDown=(0,a.c)(this,"vaKeyDown",7),this.vaSelect=(0,a.c)(this,"vaSelect",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.required=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.options=void 0}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.handleKeyDown=function(){this.vaKeyDown.emit()},e.prototype.handleChange=function(e){var t=e.target;if(this.value=t.value,this.enableAnalytics){var i={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(i)}this.vaSelect.emit({value:this.value})},e.prototype.populateOptions=function(){var e=this.value;this.options=(0,s.g)(this.el,"option").map((function(t){return(0,a.h)("option",{value:t.value,selected:e===t.value},t.text)}))},e.prototype.handleValueChange=function(){this.populateOptions()},e.prototype.render=function(){var e,t=this,i=this,s=i.error,o=i.reflectInputError,u=i.invalid,l=i.label,d=i.required,p=i.name,c=i.hint,h=i.messageAriaDescribedby,f=i.width,m="input-error-message",b="".concat(h?"input-message":""," ").concat(s?m:""," ").concat(c?"input-hint":"").trim()||null,g=(0,r.c)({"usa-label":!0,"usa-label--error":s}),v=(0,r.c)(((e={"usa-select":!0,"usa-input--error":s||o})["usa-input--".concat(f)]=f,e));return(0,a.h)(a.H,null,l&&(0,a.h)("label",{htmlFor:"options",class:g,part:"label"},l,d&&(0,a.h)("span",{class:"usa-label--required"}," ",n.i.t("required"))),c&&(0,a.h)("span",{class:"usa-hint",id:"input-hint"},c),(0,a.h)("span",{id:m,role:"alert"},s&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},n.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},s))),(0,a.h)("slot",{onSlotchange:function(){return t.populateOptions()}}),(0,a.h)("select",{class:v,"aria-describedby":b,"aria-invalid":u||s?"true":"false",id:"options",name:p,required:d||null,onKeyDown:function(){return t.handleKeyDown()},onChange:function(e){return t.handleChange(e)},part:"select"},(0,a.h)("option",{key:"0",value:"",selected:!0},n.i.t("select")),this.options),h&&(0,a.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();o.style='.usa-select,.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-select,.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-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-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-select{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option){display:none}';var u=function(){function e(e){var t=this;(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.allowedInputTypes=["email","number","search","tel","text","url"],this.updatePaddingLeft=function(){if(t.inputIconPrefix)t.paddingLeftValue="2.5rem";else if(t.inputPrefix){var e=t.inputPrefix?Math.min(t.inputPrefix.length,25):null;t.paddingLeftValue="".concat(.5*e+1,"rem")}},this.updatePaddingRight=function(){var e=t.inputSuffix?Math.min(t.inputSuffix.length,25):null;t.paddingRightValue="".concat(.5*e+1,"rem")},this.handleInput=function(e){var i=e.target;t.value=i.value},this.handleBlur=function(e){if(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-text-input",action:"blur",details:{label:t.label,value:t.value}}),"decimal"===t.inputmode||"numeric"===t.inputmode||t.currency){var i=n.i.t("number-error"),a=e.target.checkValidity();t.error||a?t.error&&t.error===i&&a&&(t.error=null,t.el.setAttribute("error","")):(t.error=i,t.el.setAttribute("error",i))}},this.label=void 0,this.error=void 0,this.reflectInputError=!1,this.showInputError=!0,this.invalid=!1,this.required=!1,this.inputmode=void 0,this.step=void 0,this.type="text",this.maxlength=void 0,this.autocomplete=void 0,this.enableAnalytics=!1,this.name=void 0,this.pattern=void 0,this.hint=void 0,this.messageAriaDescribedby=void 0,this.value=void 0,this.success=!1,this.width=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1,this.currency=!1,this.inputPrefix=void 0,this.inputIconPrefix=void 0,this.inputSuffix=void 0,this.inputIconSuffix=void 0,this.min=void 0,this.max=void 0,this.paddingLeftValue="0",this.paddingRightValue="0"}return e.prototype.componentWillLoad=function(){this.updatePaddingLeft(),this.updatePaddingRight()},e.prototype.componentDidUpdate=function(){this.updatePaddingLeft(),this.updatePaddingRight()},e.prototype.getInputType=function(){return this.allowedInputTypes.includes(this.type)?this.max||this.min?"number":this.type:"text"},e.prototype.getMaxlength=function(){if(!(this.maxlength<=0))return this.maxlength},e.prototype.getPattern=function(){return this.currency?"^[0-9]+(.[0-9]{2})?$":void 0!==this.pattern||"decimal"!==this.inputmode&&"numeric"!==this.inputmode?this.pattern:"[0-9]+(.[0-9]{1,})?"},e.prototype.getInputmode=function(){return this.currency?"numeric":this.inputmode?this.inputmode:void 0},e.prototype.getStep=function(){return this.step||"decimal"!==this.inputmode?this.step?this.step:void 0:".01"},e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.render=function(){var e,t=this,i=this,o=i.label,u=i.error,l=i.reflectInputError,d=i.showInputError,p=i.invalid,c=i.required,h=i.value,f=i.name,m=i.autocomplete,b=i.hint,g=i.handleInput,v=i.handleBlur,x=i.success,y=i.messageAriaDescribedby,w=i.width,k=i.useFormsPattern,z=i.formHeadingLevel,S=i.formHeading,P=i.charcount,T=i.min,A=i.max,C=i.currency,_=i.inputPrefix,L=i.inputIconPrefix,q=i.inputSuffix,F=i.inputIconSuffix,D=this.getInputType(),I=this.getMaxlength(),G=this.getInputmode(),H=this.getStep(),N="".concat(y?"input-message":""," ").concat(u?"input-error-message":""," ").concat(P&&I?"charcount-message":"").trim()||null,R="".concat(k&&S?"form-question":""," ").concat(k?"form-description":""," ").concat(k&&o?"input-label":"").trim()||null,E=this.getPattern(),M=(0,r.c)({"currency-wrapper":C,"usa-input-group":q||_||L||F}),V="0"!==t.paddingLeftValue&&_?{paddingLeft:t.paddingLeftValue}:q?{paddingRight:t.paddingRightValue}:{},W=I&&(null==h?void 0:h.length)>I,j=(0,r.c)({"usa-label":!0,"usa-label--error":u}),O=(0,r.c)(((e={"usa-input":!0,"usa-input--success":x,"usa-input--error":u||l})["usa-input--".concat(w)]=w,e)),B=(0,r.c)({"usa-hint":!0,"usa-character-count__status":I,"usa-character-count__status--invalid":I&&(null==h?void 0:h.length)>I}),K=(0,r.c)({"usa-sr-only":!d}),$=null;if("single"===k||"multiple"===k){var U=(0,s.a)(z);$=(0,a.h)(a.F,null,S&&(0,a.h)(U,{id:"form-question",part:"form-header"},S),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}return(0,a.h)(a.H,null,$,(0,a.h)("div",{class:"input-wrap"},o&&(0,a.h)("label",{htmlFor:"inputField",id:"input-label",class:j,part:"label"},o,c&&(0,a.h)("span",{class:"usa-label--required"}," ",n.i.t("required")),b&&(0,a.h)("span",{class:"usa-hint"},b)),(0,a.h)("slot",null),(0,a.h)("span",{id:"input-error-message",role:"alert",class:K},u&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},n.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},u))),(0,a.h)("div",{class:M},C&&(0,a.h)("div",{id:"symbol"},"$"),_&&(0,a.h)("div",{class:"usa-input-prefix",part:"input-prefix"},_.substring(0,25)),L&&(0,a.h)("div",{class:"usa-input-prefix",part:"input-prefix"},(0,a.h)("va-icon",{icon:L,size:3,part:"icon"})),(0,a.h)("input",{class:O,id:"inputField",type:D,value:h,onInput:g,onBlur:v,"aria-describedby":N,style:V,"aria-labelledby":R,"aria-invalid":p||u||W?"true":"false",inputmode:G,step:H,maxlength:I,pattern:E,name:f,autocomplete:m,required:c||null,part:"input",min:T,max:A}),q&&(0,a.h)("div",{class:"usa-input-suffix",part:"suffix","aria-hidden":"true"},q.substring(0,25)),F&&(0,a.h)("div",{class:"usa-input-suffix",part:"input-suffix"},(0,a.h)("va-icon",{icon:F,size:3,part:"icon"}))),y&&(0,a.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},y),P&&I&&(0,a.h)("span",{id:"charcount-message",class:B,"aria-live":"polite"},(0,s.b)(h,I))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();u.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-input-group,.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-input-group,.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-input-group{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:0;position:relative}.usa-input-group--error input:focus,.usa-input-group--success input:focus{outline-offset:0.25rem}.usa-input-group--error{border-width:0.25rem;border-color:#b50909;border-style:solid}.usa-input-group--success{border-width:0.25rem;border-color:#00a91c;border-style:solid}.usa-input-group input{padding-right:2.5rem;border:0;height:100%;margin-top:0;min-width:0;width:100%}.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{border:0;color:GrayText}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input-group input:disabled,.usa-input-group input[aria-disabled=true]{border:0}}@media (forced-colors: active){.usa-input-group:has(input:disabled),.usa-input-group:has(input[aria-disabled=true]){border:2px solid GrayText}}.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){border:0;color:GrayText}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:GrayText}}.usa-input-prefix,.usa-input-suffix{position:absolute;color:#71767a;line-height:0;padding:0 0.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.usa-input-prefix .usa-icon,.usa-input-suffix .usa-icon{height:1.5rem;width:1.5rem}.usa-input-prefix+input{padding-left:2.5rem;padding-right:0.5rem}.usa-input-suffix{right:0}.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-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=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}:host{color:var(--vads-color-base)}:host{display:block;font-family:var(--font-source-sans)}input{-webkit-box-sizing:border-box;box-sizing:border-box}input.usa-input{color:var(--vads-color-base)}.usa-hint{display:block}.currency-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.currency-wrapper>div{position:absolute;left:10px}.currency-wrapper #symbol{margin-top:8px}.currency-wrapper #inputField{padding-left:25px}:host([error]:not([error=""])[show-input-error=false]){border-left:0;padding-left:0;margin-left:0}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[3389,7485,5254],{1320:function(e,t,i){i.r(t),i.d(t,{c:function(){return s}});var a,r={exports:{}};a=r,function(){var e={}.hasOwnProperty;function t(){for(var i=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var s=typeof r;if("string"===s||"number"===s)i.push(r);else if(Array.isArray(r)){if(r.length){var o=t.apply(null,r);o&&i.push(o)}}else if("object"===s)if(r.toString===Object.prototype.toString)for(var n in r)e.call(r,n)&&r[n]&&i.push(n);else i.push(r.toString())}}return i.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var s=r.exports},5254:function(e,t,i){function a(e,t){var i=e.shadowRoot.querySelector("slot").assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function s(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var i;if(e.length<=t){var a=t-e.length;i="".concat(a," character").concat(r(a)," left")}else a=e.length-t,i="".concat(a," character").concat(r(a)," over limit");return i}function o(e,t){return Array.from({length:t-e+1},(function(t,i){return e+i}))}i.r(t),i.d(t,{S:function(){return l},a:function(){return d},b:function(){return s},g:function(){return a},m:function(){return o},s:function(){return u}}),i(7131);var n=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var i=function(e,t){if("string"!=typeof e)return[];if(!t||!n(t))return[];var i=t.shadowRoot.querySelectorAll(e);return Array.from(i)}(e,t);return"string"!=typeof e||n(t)&&t.matches(e)&&i.push(t),i}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return l._entities[e]},escapeHTML:function(e){for(var t="",i=0;i<e.length;i++)if(t+=e[i],i+1<arguments.length){var a=arguments[i+1]||"";t+=String(a).replace(l._entity,l.getEntity)}return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}},3389:function(e,t,i){i.r(t),i.d(t,{va_select:function(){return n},va_text_input:function(){return u}});var a=i(7131),r=i(1320),s=(i(4259),i(5254)),o=i(2764),n=function(){function e(e){(0,a.r)(this,e),this.vaKeyDown=(0,a.c)(this,"vaKeyDown",7),this.vaSelect=(0,a.c)(this,"vaSelect",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.required=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.showError=!0,this.options=void 0}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.handleKeyDown=function(){this.vaKeyDown.emit()},e.prototype.handleChange=function(e){var t=e.target;if(this.value=t.value,this.enableAnalytics){var i={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(i)}this.vaSelect.emit({value:this.value})},e.prototype.populateOptions=function(){var e=this.value;this.options=(0,s.g)(this.el,"option").map((function(t){return(0,a.h)("option",{value:t.value,selected:e===t.value},t.text)}))},e.prototype.handleValueChange=function(){this.populateOptions()},e.prototype.render=function(){var e,t=this,i=this,s=i.error,n=i.reflectInputError,u=i.invalid,l=i.label,d=i.required,p=i.name,c=i.hint,h=i.messageAriaDescribedby,f=i.width,m=i.showError,b="input-error-message",g="".concat(h?"input-message":""," ").concat(s?b:""," ").concat(c?"input-hint":"").trim()||null,v=(0,r.c)({"usa-label":!0,"usa-label--error":s}),x=(0,r.c)(((e={"usa-select":!0,"usa-input--error":s||n})["usa-input--".concat(f)]=f,e));return(0,a.h)(a.H,{key:"1aebfc8d5f2c6e4a1e0aa79e6a76dbc0247f179d"},l&&(0,a.h)("label",{key:"5f9dc1283e2da2833b3507bde46a54cecc0b845c",htmlFor:"options",class:v,part:"label"},l,d&&(0,a.h)("span",{key:"aad8a15a5f96bb6c0d1d5ba25cb812ccd60d6f32",class:"usa-label--required"}," ",o.i.t("required"))),c&&(0,a.h)("span",{key:"24ddba5d02b80f2440b280f9e392ed77e360ad76",class:"usa-hint",id:"input-hint"},c),(0,a.h)("span",{key:"9467f64abd279719540ca0df195fc092e1b021ec",id:b,role:"alert"},m&&s&&(0,a.h)(a.F,{key:"da19b7ecd9d2d8b06f8d9a0527d57efd04776088"},(0,a.h)("span",{key:"a0217fff89ddba9dd8676e3e6ce110b5603833aa",class:"usa-sr-only"},o.i.t("error")),(0,a.h)("span",{key:"3bae10152cde535d89ee9dd314ac267c77c2bc83",class:"usa-error-message"},s))),(0,a.h)("slot",{key:"f6680f790b73340e1deee80e3298203ea0a68e34",onSlotchange:function(){return t.populateOptions()}}),(0,a.h)("select",{key:"f848806df645c25daf42918bf895d43c359fe180",class:x,"aria-describedby":g,"aria-invalid":u||s?"true":"false",id:"options",name:p,required:d||null,onKeyDown:function(){return t.handleKeyDown()},onChange:function(e){return t.handleChange(e)},part:"select"},(0,a.h)("option",{key:"0",value:"",selected:!0},o.i.t("select")),this.options),h&&(0,a.h)("span",{key:"4141c9b99766bdeac446f31bf5c2956fae3d68e2",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();n.style='.usa-select,.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-select,.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-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-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-select{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option){display:none}';var u=function(){function e(e){var t=this;(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.allowedInputTypes=["email","number","search","tel","text","url"],this.updatePaddingLeft=function(){if(t.inputIconPrefix)t.paddingLeftValue="2.5rem";else if(t.inputPrefix){var e=t.inputPrefix?Math.min(t.inputPrefix.length,25):null;t.paddingLeftValue="".concat(.5*e+1,"rem")}},this.updatePaddingRight=function(){var e=t.inputSuffix?Math.min(t.inputSuffix.length,25):null;t.paddingRightValue="".concat(.5*e+1,"rem")},this.handleInput=function(e){var i=e.target;t.value=i.value},this.handleBlur=function(e){if(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-text-input",action:"blur",details:{label:t.label,value:t.value}}),"decimal"===t.inputmode||"numeric"===t.inputmode||t.currency){var i=o.i.t("number-error"),a=e.target.checkValidity();t.error||a?t.error&&t.error===i&&a&&(t.error=null,t.el.setAttribute("error","")):(t.error=i,t.el.setAttribute("error",i))}},this.label=void 0,this.error=void 0,this.reflectInputError=!1,this.showInputError=!0,this.invalid=!1,this.required=!1,this.inputmode=void 0,this.step=void 0,this.type="text",this.maxlength=void 0,this.autocomplete=void 0,this.enableAnalytics=!1,this.name=void 0,this.pattern=void 0,this.hint=void 0,this.messageAriaDescribedby=void 0,this.value=void 0,this.success=!1,this.width=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1,this.currency=!1,this.inputPrefix=void 0,this.inputIconPrefix=void 0,this.inputSuffix=void 0,this.inputIconSuffix=void 0,this.min=void 0,this.max=void 0,this.paddingLeftValue="0",this.paddingRightValue="0"}return e.prototype.componentWillLoad=function(){this.updatePaddingLeft(),this.updatePaddingRight()},e.prototype.componentDidUpdate=function(){this.updatePaddingLeft(),this.updatePaddingRight()},e.prototype.getInputType=function(){return this.allowedInputTypes.includes(this.type)?this.max||this.min?"number":this.type:"text"},e.prototype.getMaxlength=function(){if(!(this.maxlength<=0))return this.maxlength},e.prototype.getPattern=function(){return this.currency?"^[0-9]+(.[0-9]{2})?$":void 0!==this.pattern||"decimal"!==this.inputmode&&"numeric"!==this.inputmode?this.pattern:"[0-9]+(.[0-9]{1,})?"},e.prototype.getInputmode=function(){return this.currency?"numeric":this.inputmode?this.inputmode:void 0},e.prototype.getStep=function(){return this.step||"decimal"!==this.inputmode?this.step?this.step:void 0:".01"},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.render=function(){var e,t=this,i=this,n=i.label,u=i.error,l=i.reflectInputError,d=i.showInputError,p=i.invalid,c=i.required,h=i.value,f=i.name,m=i.autocomplete,b=i.hint,g=i.handleInput,v=i.handleBlur,x=i.success,y=i.messageAriaDescribedby,w=i.width,k=i.useFormsPattern,z=i.formHeadingLevel,S=i.formHeading,P=i.charcount,T=i.min,A=i.max,C=i.currency,_=i.inputPrefix,L=i.inputIconPrefix,F=i.inputSuffix,q=i.inputIconSuffix,D=this.getInputType(),I=this.getMaxlength(),G=this.getInputmode(),H=this.getStep(),N="".concat(y?"input-message":""," ").concat(u?"input-error-message":""," ").concat(P&&I?"charcount-message":"").trim()||null,R="".concat(k&&S?"form-question":""," ").concat(k?"form-description":""," ").concat(k&&n?"input-label":"").trim()||null,E=this.getPattern(),M=(0,r.c)({"currency-wrapper":C,"usa-input-group":F||_||L||q}),V="0"!==t.paddingLeftValue&&_?{paddingLeft:t.paddingLeftValue}:F?{paddingRight:t.paddingRightValue}:{},W=I&&(null==h?void 0:h.length)>I,O=(0,r.c)({"usa-label":!0,"usa-label--error":u}),j=(0,r.c)(((e={"usa-input":!0,"usa-input--success":x,"usa-input--error":u||l})["usa-input--".concat(w)]=w,e)),B=(0,r.c)({"usa-hint":!0,"usa-character-count__status":I,"usa-character-count__status--invalid":I&&(null==h?void 0:h.length)>I}),K=(0,r.c)({"usa-sr-only":!d}),$=null;if("single"===k||"multiple"===k){var U=(0,s.a)(z);$=(0,a.h)(a.F,null,S&&(0,a.h)(U,{id:"form-question",part:"form-header"},S),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}return(0,a.h)(a.H,null,$,(0,a.h)("div",{class:"input-wrap"},n&&(0,a.h)("label",{htmlFor:"inputField",id:"input-label",class:O,part:"label"},n,c&&(0,a.h)("span",{class:"usa-label--required"}," ",o.i.t("required")),b&&(0,a.h)("span",{class:"usa-hint"},b)),(0,a.h)("slot",null),(0,a.h)("span",{id:"input-error-message",role:"alert",class:K},u&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},o.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},u))),(0,a.h)("div",{class:M},C&&(0,a.h)("div",{id:"symbol"},"$"),_&&(0,a.h)("div",{class:"usa-input-prefix",part:"input-prefix"},_.substring(0,25)),L&&(0,a.h)("div",{class:"usa-input-prefix",part:"input-prefix"},(0,a.h)("va-icon",{icon:L,size:3,part:"icon"})),(0,a.h)("input",{class:j,id:"inputField",type:D,value:h,onInput:g,onBlur:v,"aria-describedby":N,style:V,"aria-labelledby":R,"aria-invalid":p||u||W?"true":"false",inputmode:G,step:H,maxlength:I,pattern:E,name:f,autocomplete:m,required:c||null,part:"input",min:T,max:A}),F&&(0,a.h)("div",{class:"usa-input-suffix",part:"suffix","aria-hidden":"true"},F.substring(0,25)),q&&(0,a.h)("div",{class:"usa-input-suffix",part:"input-suffix"},(0,a.h)("va-icon",{icon:q,size:3,part:"icon"}))),y&&(0,a.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},y),P&&I&&(0,a.h)("span",{id:"charcount-message",class:B,"aria-live":"polite"},(0,s.b)(h,I))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();u.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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-input-group,.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-input-group,.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-input-group{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:0;position:relative}.usa-input-group--error input:focus,.usa-input-group--success input:focus{outline-offset:0.25rem}.usa-input-group--error{border-width:0.25rem;border-color:#b50909;border-style:solid}.usa-input-group--success{border-width:0.25rem;border-color:#00a91c;border-style:solid}.usa-input-group input{padding-right:2.5rem;border:0;height:100%;margin-top:0;min-width:0;width:100%}.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{border:0;color:GrayText}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input-group input:disabled,.usa-input-group input[aria-disabled=true]{border:0}}@media (forced-colors: active){.usa-input-group:has(input:disabled),.usa-input-group:has(input[aria-disabled=true]){border:2px solid GrayText}}.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){border:0;color:GrayText}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:GrayText}}.usa-input-prefix,.usa-input-suffix{position:absolute;color:#71767a;line-height:0;padding:0 0.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.usa-input-prefix .usa-icon,.usa-input-suffix .usa-icon{height:1.5rem;width:1.5rem}.usa-input-prefix+input{padding-left:2.5rem;padding-right:0.5rem}.usa-input-suffix{right:0}.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-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=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}:host{color:var(--vads-color-base)}:host{display:block;font-family:var(--font-source-sans)}input{-webkit-box-sizing:border-box;box-sizing:border-box}input.usa-input{color:var(--vads-color-base)}.usa-hint{display:block}.currency-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.currency-wrapper>div{position:absolute;left:10px}.currency-wrapper #symbol{margin-top:8px}.currency-wrapper #inputField{padding-left:25px}:host([error]:not([error=""])[show-input-error=false]){border-left:0;padding-left:0;margin-left:0}'}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */