@department-of-veterans-affairs/component-library 48.3.0 → 49.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/contacts.js +1 -1
  2. package/dist/1214.app.bundle.js +1 -1
  3. package/dist/1450.app.bundle.js +1 -1
  4. package/dist/196.app.bundle.js +1 -1
  5. package/dist/2222.app.bundle.js +1 -1
  6. package/dist/2387.app.bundle.js +1 -1
  7. package/dist/2654.app.bundle.js +1 -1
  8. package/dist/2664.app.bundle.js +1 -1
  9. package/dist/2801.app.bundle.js +1 -1
  10. package/dist/286.app.bundle.js +1 -1
  11. package/dist/3071.app.bundle.js +1 -1
  12. package/dist/3156.app.bundle.js +1 -1
  13. package/dist/4064.app.bundle.js +1 -1
  14. package/dist/4117.app.bundle.js +1 -1
  15. package/dist/4140.app.bundle.js +1 -1
  16. package/dist/4493.app.bundle.js +1 -1
  17. package/dist/4715.app.bundle.js +1 -1
  18. package/dist/5155.app.bundle.js +1 -1
  19. package/dist/5189.app.bundle.js +1 -1
  20. package/dist/5306.app.bundle.js +1 -1
  21. package/dist/5610.app.bundle.js +1 -1
  22. package/dist/5628.app.bundle.js +1 -1
  23. package/dist/575.app.bundle.js +1 -1
  24. package/dist/5830.app.bundle.js +1 -1
  25. package/dist/6034.app.bundle.js +1 -1
  26. package/dist/6246.app.bundle.js +1 -1
  27. package/dist/6247.app.bundle.js +1 -1
  28. package/dist/6527.app.bundle.js +1 -1
  29. package/dist/6771.app.bundle.js +1 -1
  30. package/dist/712.app.bundle.js +1 -1
  31. package/dist/7367.app.bundle.js +1 -1
  32. package/dist/7531.app.bundle.js +1 -1
  33. package/dist/7663.app.bundle.js +1 -1
  34. package/dist/7821.app.bundle.js +1 -1
  35. package/dist/8175.app.bundle.js +1 -1
  36. package/dist/82.app.bundle.js +1 -1
  37. package/dist/8762.app.bundle.js +1 -1
  38. package/dist/8859.app.bundle.js +1 -1
  39. package/dist/9288.app.bundle.js +1 -1
  40. package/dist/9670.app.bundle.js +1 -1
  41. package/dist/9724.app.bundle.js +1 -1
  42. package/dist/9800.app.bundle.js +1 -1
  43. package/dist/app.bundle.js +1 -1
  44. package/dist/components/contacts.js +1 -1
  45. package/dist/components/types/components.d.ts +57 -5
  46. package/dist/components/types/contacts.d.ts +4 -0
  47. package/dist/components/va-accordion.js +1 -1
  48. package/dist/components/va-alert-expandable.js +1 -1
  49. package/dist/components/va-alert-sign-in.js +1 -1
  50. package/dist/components/va-alert2.js +1 -1
  51. package/dist/components/va-button-icon2.js +1 -1
  52. package/dist/components/va-button2.js +1 -1
  53. package/dist/components/va-card2.js +1 -1
  54. package/dist/components/va-checkbox-group.js +1 -1
  55. package/dist/components/va-checkbox2.js +1 -1
  56. package/dist/components/va-combo-box.js +1 -1
  57. package/dist/components/va-crisis-line-modal2.js +1 -1
  58. package/dist/components/va-date.js +1 -1
  59. package/dist/components/va-file-input-multiple.js +1 -1
  60. package/dist/components/va-file-input2.js +1 -1
  61. package/dist/components/va-header-minimal.js +1 -1
  62. package/dist/components/va-icon2.js +1 -1
  63. package/dist/components/va-language-toggle.js +1 -1
  64. package/dist/components/va-link-action.js +1 -1
  65. package/dist/components/va-link2.js +1 -1
  66. package/dist/components/va-loading-indicator.js +1 -1
  67. package/dist/components/va-minimal-footer.js +1 -1
  68. package/dist/components/va-need-help.js +1 -1
  69. package/dist/components/va-official-gov-banner2.js +1 -1
  70. package/dist/components/va-omb-info.js +1 -1
  71. package/dist/components/va-privacy-agreement.js +1 -1
  72. package/dist/components/va-process-list-item.js +1 -1
  73. package/dist/components/va-process-list.js +1 -1
  74. package/dist/components/va-progress-bar.js +1 -1
  75. package/dist/components/va-radio-option.js +1 -1
  76. package/dist/components/va-radio.js +1 -1
  77. package/dist/components/va-search-input.js +1 -1
  78. package/dist/components/va-select2.js +1 -1
  79. package/dist/components/va-statement-of-truth.js +1 -1
  80. package/dist/components/va-summary-box.js +1 -1
  81. package/dist/components/va-table-inner2.js +1 -1
  82. package/dist/components/va-table-row.js +1 -1
  83. package/dist/components/va-table.js +1 -1
  84. package/dist/components/va-telephone2.js +1 -1
  85. package/dist/components/va-textarea.js +1 -1
  86. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 9800.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([[20,326,9800],{20: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},326:function(e,a,r){function t(e){return!Number.isNaN(parseFloat(e))}function o(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 s(e){return 1===e?"":"s"}function i(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(s(a)," allowed");var r;if(e.length<=a){var t=a-e.length;r="".concat(t," character").concat(s(t)," left")}else t=e.length-a,r="".concat(t," character").concat(s(t)," over limit");return r}function n(e,a){return Array.from({length:a-e+1},(function(a,r){return e+r}))}r.r(a),r.d(a,{S:function(){return d},a:function(){return h},b:function(){return i},g:function(){return o},i:function(){return t},m:function(){return n},s:function(){return l}}),r(3798);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var r=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var r=a.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&r.push(a),r}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var a="",r=0;r<e.length;r++)a+=e[r],r+1<arguments.length&&(a+=String(arguments[r+1]||"").replace(d._entity,d.getEntity));return a}};function h(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}},9800:function(e,a,r){r.r(a),r.d(a,{va_radio:function(){return n}});var t=r(3798),o=r(20),s=r(326),i=(r(6433),r(9425)),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:"25fd2ce500c76a897222bdd14f9cc740ffe73c0b"},c&&(0,t.h)(y,{key:"c2992b3d47b0bf81430fa03e6cf97fa3050090ed",id:"form-question",part:"form-header"},c),(0,t.h)("div",{key:"e55d7e9ae223b195efe042caf37574f2817e7017",id:"form-description"},(0,t.h)("slot",{key:"2cb12a92873c819e3264dda0da136eac433c910b",name:"form-description"})))}return(0,t.h)(t.H,{key:"6bbae215f8ab48106c03a271b76b3d5067b9b4f2","aria-invalid":u?"true":"false"},v,(0,t.h)("div",{key:"11b2ac1a24d5ec813764ea1b6363d73b2c3bc4ed",class:"input-wrap"},(0,t.h)("fieldset",{key:"b4d18b87b48a6d49d113dd43e29041828607090e",class:"usa-fieldset","aria-labelledby":g},(0,t.h)("legend",{key:"f4536c6083f573f024b1f9fad300265316c1d5b0",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:"1a9b7703c63d7d176f97f3d88d8ae86919688bbd",id:"header-message",class:"usa-sr-only"},a),l&&(0,t.h)("span",{key:"8ec48e8b2136ce30ae5a122e5f3ea7ea54a66728",id:"header-message",class:"usa-sr-only"},l),d&&(0,t.h)("span",{key:"17145d359530a7e4ad0802433ed9b89d8f5dde8f",id:"description-message",class:"usa-sr-only"},d),n&&(0,t.h)("span",{key:"fbd1acd164c01c4f56dc3e403e11e41c88a28557",class:"usa-label--required",part:"required"},i.i.t("required")),r&&(0,t.h)("div",{key:"ff0f74ecf675e37afa283ae8d7bb9b9a278fdc87",class:"usa-hint"},r)),(0,t.h)("span",{key:"5714c99e22816170fcbdd2c4b89823074022218d",class:"usa-error-message",role:"alert"},u&&(0,t.h)(t.F,{key:"9547af6efefc3c60aecaa2201f28481f04ecda3e"},(0,t.h)("span",{key:"4962cde06cf08aa971dac1743385389c422791ed",class:"usa-sr-only"},i.i.t("error"))," ",u)),(0,t.h)("slot",{key:"a6b92946d57b293496660bb41b233f2e5cc10d72"}))))},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,*[tabindex]: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 Web", "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;width:auto;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;max-width:480px}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,326,9800],{20: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},326:function(e,a,r){function t(e){return!Number.isNaN(parseFloat(e))}function o(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 s(e){return 1===e?"":"s"}function i(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(s(a)," allowed");var r;if(e.length<=a){var t=a-e.length;r="".concat(t," character").concat(s(t)," left")}else t=e.length-a,r="".concat(t," character").concat(s(t)," over limit");return r}function n(e,a){return Array.from({length:a-e+1},(function(a,r){return e+r}))}r.r(a),r.d(a,{S:function(){return d},a:function(){return h},b:function(){return i},g:function(){return o},i:function(){return t},m:function(){return n},s:function(){return l}}),r(3798);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var r=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var r=a.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&r.push(a),r}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var a="",r=0;r<e.length;r++)a+=e[r],r+1<arguments.length&&(a+=String(arguments[r+1]||"").replace(d._entity,d.getEntity));return a}};function h(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}},9800:function(e,a,r){r.r(a),r.d(a,{va_radio:function(){return n}});var t=r(3798),o=r(20),s=r(326),i=(r(2465),r(9425)),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:"bacadd3740691de19c427bd650aad70df1e93cae"},c&&(0,t.h)(y,{key:"74c7a65e0e39cacbac4f5976db129b0a5b2fe452",id:"form-question",part:"form-header"},c),(0,t.h)("div",{key:"68ba2c115084dffc2903740ea35ec1443f81cf63",id:"form-description"},(0,t.h)("slot",{key:"6152aeb1c403f0bcc9f7a98569ea2fa222c5e369",name:"form-description"})))}return(0,t.h)(t.H,{key:"14302b27ed34afacab0ce2e870f2ed3dd48f3a71","aria-invalid":u?"true":"false"},v,(0,t.h)("div",{key:"f19e7eba5e9178ea01ee186d1f7295d0865df7d1",class:"input-wrap"},(0,t.h)("fieldset",{key:"254470b19f3c96f19f8c3da4cac21dc27f2461d0",class:"usa-fieldset","aria-labelledby":g},(0,t.h)("legend",{key:"cc191173aadac23bb06757ffed4380144b3c3d7f",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:"0174621e72dbba97209d30478ff7fa336b0de030",id:"header-message",class:"usa-sr-only"},a),l&&(0,t.h)("span",{key:"18b977293c447be3c765b0537c83272c2e819434",id:"header-message",class:"usa-sr-only"},l),d&&(0,t.h)("span",{key:"8c23739d3ffdcd57eff046ec2b25879549dec646",id:"description-message",class:"usa-sr-only"},d),n&&(0,t.h)("span",{key:"f720069540150c0f9d39918ed19d5fffb00026d0",class:"usa-label--required",part:"required"},i.i.t("required")),r&&(0,t.h)("div",{key:"7a6b54c79babe5d674ea8b65f8d2989787dcfc16",class:"usa-hint"},r)),u&&(0,t.h)("span",{key:"1efa33d408a1b546efe94c93870fbbf05ee5fee6",class:"usa-error-message",role:"alert"},(0,t.h)(t.F,{key:"ede25038da3f1cc364b30769bd8ba229266b2d26"},(0,t.h)("span",{key:"5bf1eb2baff2a5d603a6b52041f19679dbd2e840",class:"usa-sr-only"},i.i.t("error"))," ",u)),(0,t.h)("slot",{key:"c5729957c0fbcaf5bceae451ca81c981fd29d666"}))))},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,*[tabindex]: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 Web", "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;width:auto;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;max-width:480px}'}}]);