@department-of-veterans-affairs/component-library 49.3.0 → 49.4.1

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 (81) hide show
  1. package/dist/1214.app.bundle.js +1 -1
  2. package/dist/1450.app.bundle.js +1 -1
  3. package/dist/2222.app.bundle.js +1 -1
  4. package/dist/2387.app.bundle.js +1 -1
  5. package/dist/2654.app.bundle.js +1 -1
  6. package/dist/2664.app.bundle.js +1 -1
  7. package/dist/286.app.bundle.js +1 -1
  8. package/dist/3071.app.bundle.js +1 -1
  9. package/dist/3156.app.bundle.js +1 -1
  10. package/dist/4064.app.bundle.js +1 -1
  11. package/dist/4117.app.bundle.js +1 -1
  12. package/dist/4140.app.bundle.js +1 -1
  13. package/dist/4493.app.bundle.js +1 -1
  14. package/dist/4715.app.bundle.js +1 -1
  15. package/dist/5155.app.bundle.js +1 -1
  16. package/dist/5306.app.bundle.js +1 -1
  17. package/dist/5610.app.bundle.js +1 -1
  18. package/dist/5699.app.bundle.js +1 -1
  19. package/dist/5830.app.bundle.js +1 -1
  20. package/dist/6034.app.bundle.js +1 -1
  21. package/dist/6246.app.bundle.js +1 -1
  22. package/dist/6247.app.bundle.js +1 -1
  23. package/dist/641.app.bundle.js +1 -1
  24. package/dist/6527.app.bundle.js +1 -1
  25. package/dist/6655.app.bundle.js +2 -0
  26. package/dist/712.app.bundle.js +1 -1
  27. package/dist/7367.app.bundle.js +1 -1
  28. package/dist/7531.app.bundle.js +1 -1
  29. package/dist/7663.app.bundle.js +1 -1
  30. package/dist/7821.app.bundle.js +1 -1
  31. package/dist/8175.app.bundle.js +1 -1
  32. package/dist/82.app.bundle.js +1 -1
  33. package/dist/8762.app.bundle.js +1 -1
  34. package/dist/9157.app.bundle.js +1 -1
  35. package/dist/9161.app.bundle.js +1 -0
  36. package/dist/9288.app.bundle.js +1 -1
  37. package/dist/9670.app.bundle.js +1 -1
  38. package/dist/9724.app.bundle.js +1 -1
  39. package/dist/9800.app.bundle.js +1 -1
  40. package/dist/app.bundle.js +1 -1
  41. package/dist/components/types/components.d.ts +238 -162
  42. package/dist/components/utils.js +1 -1
  43. package/dist/components/va-accordion.js +1 -1
  44. package/dist/components/va-additional-info.js +1 -1
  45. package/dist/components/va-alert-expandable.js +1 -1
  46. package/dist/components/va-button2.js +1 -1
  47. package/dist/components/va-card2.js +1 -1
  48. package/dist/components/va-checkbox2.js +1 -1
  49. package/dist/components/va-file-input-multiple.js +1 -1
  50. package/dist/components/va-file-input2.js +1 -1
  51. package/dist/components/va-header-minimal.js +1 -1
  52. package/dist/components/va-icon2.js +1 -1
  53. package/dist/components/va-language-toggle.js +1 -1
  54. package/dist/components/va-link-action.js +1 -1
  55. package/dist/components/va-loading-indicator.js +1 -1
  56. package/dist/components/va-minimal-footer.js +1 -1
  57. package/dist/components/va-need-help.js +1 -1
  58. package/dist/components/va-official-gov-banner2.js +1 -1
  59. package/dist/components/va-omb-info.js +1 -1
  60. package/dist/components/va-privacy-agreement.js +1 -1
  61. package/dist/components/va-process-list-item.js +1 -1
  62. package/dist/components/va-process-list.js +1 -1
  63. package/dist/components/va-progress-bar.js +1 -1
  64. package/dist/components/va-progress-bar2.js +1 -0
  65. package/dist/components/va-radio-option.js +1 -1
  66. package/dist/components/va-radio.js +1 -1
  67. package/dist/components/va-search-input.js +1 -1
  68. package/dist/components/va-select2.js +1 -1
  69. package/dist/components/va-service-list-item.js +1 -1
  70. package/dist/components/va-statement-of-truth.js +1 -1
  71. package/dist/components/va-summary-box.js +1 -1
  72. package/dist/components/va-table-inner2.js +1 -1
  73. package/dist/components/va-table-row.js +1 -1
  74. package/dist/components/va-table.js +1 -1
  75. package/dist/components/va-telephone2.js +1 -1
  76. package/dist/components/va-textarea.js +1 -1
  77. package/package.json +2 -2
  78. package/dist/196.app.bundle.js +0 -2
  79. package/dist/326.app.bundle.js +0 -1
  80. package/dist/5628.app.bundle.js +0 -1
  81. /package/dist/{196.app.bundle.js.LICENSE.txt → 6655.app.bundle.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[326,7531],{326:function(e,s,t){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,s){var t=e.shadowRoot.querySelector("slot").assignedNodes();return null!==s?Array.from(t).filter((function(e){return e.nodeName.toLowerCase()===s})):Array.from(t)}function o(e){return 1===e?"":"s"}function a(e,s){if(void 0===e||""===e)return"".concat(s," character").concat(o(s)," allowed");var t;if(e.length<=s){var r=s-e.length;t="".concat(r," character").concat(o(r)," left")}else r=e.length-s,t="".concat(r," character").concat(o(r)," over limit");return t}function n(e,s){return Array.from({length:s-e+1},(function(s,t){return e+t}))}t.r(s),t.d(s,{S:function(){return u},a:function(){return p},b:function(){return a},g:function(){return i},i:function(){return r},m:function(){return n},s:function(){return c}}),t(3798);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,s){var t=function(e,s){if("string"!=typeof e)return[];if(!s||!l(s))return[];var t=s.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,s);return"string"!=typeof e||l(s)&&s.matches(e)&&t.push(s),t}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return u._entities[e]},escapeHTML:function(e){for(var s="",t=0;t<e.length;t++)s+=e[t],t+1<arguments.length&&(s+=String(arguments[t+1]||"").replace(u._entity,u.getEntity));return s}};function p(e){var s;return(s="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&s<=6?"h".concat(s):null}},7531:function(e,s,t){t.r(s),t.d(s,{va_process_list_item:function(){return o}});var r=t(3798),i=t(326),o=function(){function e(e){(0,r.r)(this,e),this.header=void 0,this.level=3,this.active=!1,this.pending=!1,this.checkmark=!1,this.statusText=void 0}return e.prototype.render=function(){var e=this,s=e.header,t=e.level,o=e.checkmark,a=e.active,n=e.pending,l=e.statusText,c=(0,i.a)(t),u=o?"checkmark":a?"active":n?"pending":null,p={checkmark:l||"Complete",active:l||"Active",pending:l||"Pending"};return(0,r.h)(r.H,{key:"0f1ced28c265e948fe746244c8efc21c0ef24262",role:"listitem",class:"usa-process-list__item"},s||u?(0,r.h)(c,{part:"header",class:"usa-process-list__heading"},u?(0,r.h)("div",{class:"usa-process-list__heading-eyebrow"},p[u]):null,s?(0,r.h)("div",null,s):null):null,(0,r.h)("slot",{key:"f0e7801a494b2408d837f052c1e3323950b0f40c"}))},e}();o.style='.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-process-list>li{margin-bottom:0;max-width:unset}.usa-process-list>.usa-process-list__item{max-width:72ex}.usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-prose .usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-prose .usa-process-list>li{margin-bottom:0;max-width:unset}.usa-prose .usa-process-list>.usa-process-list__item{max-width:72ex}.usa-prose .usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-process-list__item:last-child{border-left:0.5rem solid transparent}.usa-process-list__item::before{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.5rem;border-radius:99rem;width:2.5rem;background-color:white;border:0.25rem solid #1b1b1b;-webkit-box-shadow:0 0 0 0.25rem white;box-shadow:0 0 0 0.25rem white;color:#1b1b1b;content:counter(usa-numbered-list, decimal);counter-increment:usa-numbered-list;display:-ms-flexbox;display:flex;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;font-weight:700;height:2.5rem;left:0;line-height:0.9;margin-top:-0.4rem;position:absolute;width:2.5rem}.usa-process-list__item ul{list-style-type:disc}.usa-process-list__item ul li{margin-bottom:0.25rem}.usa-process-list__item ul li:last-child{margin-bottom:0}.usa-process-list__item>*:first-child{margin-top:0}.usa-process-list__item>*:last-child{margin-bottom:0}.usa-process-list__heading,.usa-process-list__heading-eyebrow{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;color:#1b1b1b;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-weight:700;margin:0}.usa-process-list__heading+*,.usa-process-list__heading-eyebrow+*{margin-top:0.25rem}.usa-process-list__item{display:list-item}.usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker);text-transform:uppercase;font-weight:normal;font-size:var(--vads-font-size-source-sans-normalized)}va-process-list-item[pending=true] .usa-process-list__heading,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow{color:var(--vads-process-list-color-text-pending-on-light)}va-process-list-item[pending=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}va-process-list-item[active=true] .usa-process-list__heading,va-process-list-item[active=true] .usa-process-list__heading-eyebrow{color:var(--vads-color-primary)}va-process-list-item[active=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[active=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}.usa-process-list__heading:is(h1,h2,h3,h4,h5),.usa-process-list__heading-eyebrow:is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}h1.usa-process-list__heading,h1.usa-process-list__heading-eyebrow{font-size:40px}h2.usa-process-list__heading,h2.usa-process-list__heading-eyebrow{font-size:30px}h3.usa-process-list__heading,h3.usa-process-list__heading-eyebrow{font-size:20px}h4.usa-process-list__heading,h4.usa-process-list__heading-eyebrow{font-size:17px}h5.usa-process-list__heading,h5.usa-process-list__heading-eyebrow,h6.usa-process-list__heading,h6.usa-process-list__heading-eyebrow{font-size:15px}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7531,9161],{9161:function(e,s,t){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,s,t){void 0===t&&(t="slot");var r=e.shadowRoot.querySelector(t).assignedNodes();return null!==s?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===s})):Array.from(r)}function o(e){return 1===e?"":"s"}function a(e,s){if(void 0===e||""===e)return"".concat(s," character").concat(o(s)," allowed");var t;if(e.length<=s){var r=s-e.length;t="".concat(r," character").concat(o(r)," left")}else r=e.length-s,t="".concat(r," character").concat(o(r)," over limit");return t}function n(e,s){return Array.from({length:s-e+1},(function(s,t){return e+t}))}t.r(s),t.d(s,{S:function(){return u},a:function(){return p},b:function(){return a},g:function(){return i},i:function(){return r},m:function(){return n},s:function(){return c}}),t(3798);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,s){var t=function(e,s){if("string"!=typeof e)return[];if(!s||!l(s))return[];var t=s.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,s);return"string"!=typeof e||l(s)&&s.matches(e)&&t.push(s),t}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return u._entities[e]},escapeHTML:function(e){for(var s="",t=0;t<e.length;t++)s+=e[t],t+1<arguments.length&&(s+=String(arguments[t+1]||"").replace(u._entity,u.getEntity));return s}};function p(e){var s;return(s="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&s<=6?"h".concat(s):null}},7531:function(e,s,t){t.r(s),t.d(s,{va_process_list_item:function(){return o}});var r=t(3798),i=t(9161),o=function(){function e(e){(0,r.r)(this,e),this.header=void 0,this.level=3,this.active=!1,this.pending=!1,this.checkmark=!1,this.statusText=void 0}return e.prototype.render=function(){var e=this,s=e.header,t=e.level,o=e.checkmark,a=e.active,n=e.pending,l=e.statusText,c=(0,i.a)(t),u=o?"checkmark":a?"active":n?"pending":null,p={checkmark:l||"Complete",active:l||"Active",pending:l||"Pending"};return(0,r.h)(r.H,{key:"dee4c679ca9817582e172ca762c4b33b58bf5ac5",role:"listitem",class:"usa-process-list__item"},s||u?(0,r.h)(c,{part:"header",class:"usa-process-list__heading"},u?(0,r.h)("div",{class:"usa-process-list__heading-eyebrow"},p[u]):null,s?(0,r.h)("div",null,s):null):null,(0,r.h)("slot",{key:"59da33495c22e61583606ba984fe01761bddf8f2"}))},e}();o.style='.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-process-list>li{margin-bottom:0;max-width:unset}.usa-process-list>.usa-process-list__item{max-width:72ex}.usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-prose .usa-process-list{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;counter-reset:usa-numbered-list;padding:20px 0 0 calc((2.5rem / 2) - (0.5rem / 2));position:relative}.usa-prose .usa-process-list>li{margin-bottom:0;max-width:unset}.usa-prose .usa-process-list>.usa-process-list__item{max-width:72ex}.usa-prose .usa-process-list__item{border-left:0.5rem solid #d9e8f6;font-size:1.06rem;margin-bottom:0;padding-bottom:2rem;padding-left:calc(calc(\n (2.5rem / 2) - 0.25rem\n) * 2)}.usa-process-list__item:last-child{border-left:0.5rem solid transparent}.usa-process-list__item::before{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.5rem;border-radius:99rem;width:2.5rem;background-color:white;border:0.25rem solid #1b1b1b;-webkit-box-shadow:0 0 0 0.25rem white;box-shadow:0 0 0 0.25rem white;color:#1b1b1b;content:counter(usa-numbered-list, decimal);counter-increment:usa-numbered-list;display:-ms-flexbox;display:flex;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;font-weight:700;height:2.5rem;left:0;line-height:0.9;margin-top:-0.4rem;position:absolute;width:2.5rem}.usa-process-list__item ul{list-style-type:disc}.usa-process-list__item ul li{margin-bottom:0.25rem}.usa-process-list__item ul li:last-child{margin-bottom:0}.usa-process-list__item>*:first-child{margin-top:0}.usa-process-list__item>*:last-child{margin-bottom:0}.usa-process-list__heading,.usa-process-list__heading-eyebrow{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:1.1;color:#1b1b1b;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-weight:700;margin:0}.usa-process-list__heading+*,.usa-process-list__heading-eyebrow+*{margin-top:0.25rem}.usa-process-list__item{display:list-item}.usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker);text-transform:uppercase;font-weight:normal;font-size:var(--vads-font-size-source-sans-normalized)}va-process-list-item[pending=true] .usa-process-list__heading,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow{color:var(--vads-process-list-color-text-pending-on-light)}va-process-list-item[pending=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[pending=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}va-process-list-item[active=true] .usa-process-list__heading,va-process-list-item[active=true] .usa-process-list__heading-eyebrow{color:var(--vads-color-primary)}va-process-list-item[active=true] .usa-process-list__heading .usa-process-list__heading-eyebrow,va-process-list-item[active=true] .usa-process-list__heading-eyebrow .usa-process-list__heading-eyebrow{color:var(--vads-color-base-darker)}.usa-process-list__heading:is(h1,h2,h3,h4,h5),.usa-process-list__heading-eyebrow:is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}h1.usa-process-list__heading,h1.usa-process-list__heading-eyebrow{font-size:40px}h2.usa-process-list__heading,h2.usa-process-list__heading-eyebrow{font-size:30px}h3.usa-process-list__heading,h3.usa-process-list__heading-eyebrow{font-size:20px}h4.usa-process-list__heading,h4.usa-process-list__heading-eyebrow{font-size:17px}h5.usa-process-list__heading,h5.usa-process-list__heading-eyebrow,h6.usa-process-list__heading,h6.usa-process-list__heading-eyebrow{font-size:15px}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7663],{7663:function(e,t,i){i.r(t),i.d(t,{va_loading_indicator:function(){return r}});var a=i(3798),r=function(){function e(e){(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.loadingStartTime=null,this.observer=null,this.message=void 0,this.label="Loading",this.setFocus=!1,this.enableAnalytics=!1}return e.prototype.componentDidLoad=function(){var e=this;this.setFocus&&this.spinner&&this.spinner.focus(),this.loadingStartTime=Date.now();var t=this.el.parentNode;this.observer=new MutationObserver((function(i){for(var a=0,r=i;a<r.length;a++){var n=r[a];if("childList"===n.type){var o=Array.from(n.removedNodes.values()).filter((function(e){var t;return"va-loading-indicator"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())})).length>0;if(e.enableAnalytics&&o){var s=new CustomEvent("component-library-analytics",{bubbles:!0,composed:!0,detail:{componentName:"va-loading-indicator",action:"displayed",details:{displayTime:Date.now()-e.loadingStartTime,message:e.message}}});t.dispatchEvent(s)}}}})),this.observer.observe(t,{childList:!0})},e.prototype.render=function(){var e=this,t=this.message,i=this.label,r="loading-indicator";return function(){var e="undefined"!=typeof window&&window;return!(!e||!e.navigator.userAgent.match(/Chromatic/)&&!e.location.href.match(/chromatic=true/))}()&&(r+=" chromatic"),(0,a.h)(a.H,{key:"c8b51511f38b3dae97f1dfc123002ef840c48f9f","aria-live":"polite"},(0,a.h)("div",{key:"78d3cba75e54258a2481c0bd781002a7aad6374d",ref:function(t){return e.spinner=t},class:r,role:"progressbar","aria-label":i,"aria-valuetext":t,tabindex:"-1"}),t)},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();r.style=":host{display:block;font-size:1.06rem;text-align:center}.loading-indicator{display:block;height:4rem;margin-top:1rem}.loading-indicator:after{content:' ';display:inline-block;width:2.1875rem;height:2.1875rem;margin:1px;border-radius:50%;border:8px solid var(--vads-color-primary);border-color:var(--vads-color-primary) transparent var(--vads-color-primary)\n transparent;-webkit-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}.loading-indicator.chromatic:after{-webkit-animation:none;animation:none}.loading-indicator:focus{outline:none}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7663],{7663:function(e,t,i){i.r(t),i.d(t,{va_loading_indicator:function(){return r}});var a=i(3798),r=function(){function e(e){(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.loadingStartTime=null,this.observer=null,this.message=void 0,this.label="Loading",this.setFocus=!1,this.enableAnalytics=!1}return e.prototype.componentDidLoad=function(){var e=this;this.setFocus&&this.spinner&&this.spinner.focus(),this.loadingStartTime=Date.now();var t=this.el.parentNode;this.observer=new MutationObserver((function(i){for(var a=0,r=i;a<r.length;a++){var n=r[a];if("childList"===n.type){var o=Array.from(n.removedNodes.values()).filter((function(e){var t;return"va-loading-indicator"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())})).length>0;if(e.enableAnalytics&&o){var s=new CustomEvent("component-library-analytics",{bubbles:!0,composed:!0,detail:{componentName:"va-loading-indicator",action:"displayed",details:{displayTime:Date.now()-e.loadingStartTime,message:e.message}}});t.dispatchEvent(s)}}}})),this.observer.observe(t,{childList:!0})},e.prototype.render=function(){var e=this,t=this.message,i=this.label,r="loading-indicator";return function(){var e="undefined"!=typeof window&&window;return!(!e||!e.navigator.userAgent.match(/Chromatic/)&&!e.location.href.match(/chromatic=true/))}()&&(r+=" chromatic"),(0,a.h)(a.H,{key:"45574f1984339394aaa02fc5eb419a9f1d87e48d","aria-live":"polite"},(0,a.h)("div",{key:"78ffc121e7422b124f83dac6c960453500f82a29",ref:function(t){return e.spinner=t},class:r,role:"progressbar","aria-label":i,"aria-valuetext":t,tabindex:"-1"}),t)},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();r.style=":host{display:block;font-size:1.06rem;text-align:center}.loading-indicator{display:block;height:4rem;margin-top:1rem}.loading-indicator:after{content:' ';display:inline-block;width:2.1875rem;height:2.1875rem;margin:1px;border-radius:50%;border:8px solid var(--vads-color-primary);border-color:var(--vads-color-primary) transparent var(--vads-color-primary)\n transparent;-webkit-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}.loading-indicator.chromatic:after{-webkit-animation:none;animation:none}.loading-indicator:focus{outline:none}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7821],{7821:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(3798),o=(i(2465),i(9425)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.additionalFileUploadMessage=(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder")),this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e})).map((function(e){return{file:e,changed:!1}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.enableAnalytics,u=t.readOnly,c=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"b939087ccf38d31adcc170f71210ff4160e3b4cb",class:p},i&&!u&&this.renderLabelOrHeader(i,o,n),a&&!u&&(0,r.h)("div",{key:"f693c44fe78047dfe779abce9a61d8bb43c99138",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"cd890e01a21ccecb8c0dd35cddc6340233414c04",class:c},(0,r.h)("div",{key:"3ac80358f6711d5e81594c27c035056e14097196",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"82cea84536792d9bef64dec996ffaecd13e60e53",class:"selected-files-label"},u?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.additionalFileUploadMessage}:{},{error:d[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":f,value:t.file,readOnly:u,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"103f283b0332f31d594b65551eb2e04911d18965"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7821],{7821:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(3798),o=(i(2465),i(9425)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.additionalFileUploadMessage=(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder")),this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e})).map((function(e){return{file:e,changed:!1}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,f=t.errors,d=t.enableAnalytics,u=t.readOnly,c=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"5aaf16734bca9c49e4bb012c2b8c629a945347ce",class:p},i&&!u&&this.renderLabelOrHeader(i,o,n),a&&!u&&(0,r.h)("div",{key:"c6c4e7674e56481843d291c0004cef49d14c36b2",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"b804c9ad5bb8266b8fed9869a48114b9a40e6d17",class:c},(0,r.h)("div",{key:"3ec253f775dbaef0791618a5e3187ff3fe08ae23",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"a7c10de43698d42c94f84271e326e9bb35f80dcd",class:"selected-files-label"},u?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.additionalFileUploadMessage}:{},{error:f[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":d,value:t.file,readOnly:u,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"2f05ac1c0ba022c5629920e1227fa4aae6f7519b"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 8175.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,8175],{20:function(n,e,a){a.r(e),a.d(e,{c:function(){return o}});var t,i={exports:{}};t=i,function(){var n={}.hasOwnProperty;function e(){for(var a=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)a.push(i);else if(Array.isArray(i)){if(i.length){var r=e.apply(null,i);r&&a.push(r)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&a.push(s);else a.push(i.toString())}}return a.join(" ")}t.exports?(e.default=e,t.exports=e):window.classNames=e}();var o=i.exports},326:function(n,e,a){function t(n){return!Number.isNaN(parseFloat(n))}function i(n,e){var a=n.shadowRoot.querySelector("slot").assignedNodes();return null!==e?Array.from(a).filter((function(n){return n.nodeName.toLowerCase()===e})):Array.from(a)}function o(n){return 1===n?"":"s"}function r(n,e){if(void 0===n||""===n)return"".concat(e," character").concat(o(e)," allowed");var a;if(n.length<=e){var t=e-n.length;a="".concat(t," character").concat(o(t)," left")}else t=n.length-e,a="".concat(t," character").concat(o(t)," over limit");return a}function s(n,e){return Array.from({length:e-n+1},(function(e,a){return n+a}))}a.r(e),a.d(e,{S:function(){return u},a:function(){return p},b:function(){return r},g:function(){return i},i:function(){return t},m:function(){return s},s:function(){return c}}),a(3798);var l=function(n){return n&&"object"==typeof n&&1===n.nodeType};function c(n,e){var a=function(n,e){if("string"!=typeof n)return[];if(!e||!l(e))return[];var a=e.shadowRoot.querySelectorAll(n);return Array.from(a)}(n,e);return"string"!=typeof n||l(e)&&e.matches(n)&&a.push(e),a}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(n){return u._entities[n]},escapeHTML:function(n){for(var e="",a=0;a<n.length;a++)e+=n[a],a+1<arguments.length&&(e+=String(arguments[a+1]||"").replace(u._entity,u.getEntity));return e}};function p(n){var e;return(e="string"==typeof n?parseInt(n,10):Math.floor(n))>=1&&e<=6?"h".concat(e):null}},8175:function(n,e,a){a.r(e),a.d(e,{va_pagination:function(){return s}});var t=a(3798),i=a(20),o=(a(2465),a(326)),r=a(9425),s=function(){function n(n){var e=this;(0,t.r)(this,n),this.pageSelect=(0,t.c)(this,"pageSelect",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.SHOW_ALL_PAGES=7,this.handlePageSelect=function(n,a){var t,i,o;if(e.pageSelect.emit({page:n}),null===(o=null===(i=null===(t=e.el)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.activeElement)||void 0===o||o.blur(),e.enableAnalytics){var r={componentName:"va-pagination",action:"linkClick",details:{event:a,"page-number":n}};e.componentLibraryAnalytics.emit(r)}},this.pageNumbers=function(){var n,a,t=e,i=t.maxPageListLength,r=t.page,s=t.pages,l=t.unbounded,c=Math.floor(i/2),u=l?0:1;return s<=e.SHOW_ALL_PAGES?(0,o.m)(1,s):r<=c+1?(n=1,(a=i>=s?s:i-1-u)===r&&a++,(0,o.m)(n,a)):r+c>=s?(a=s,(n=s-i>0?s-(i-2-1):1)===r&&n--,(0,o.m)(n,a)):(n=r-(c-2),a=r+c>s?s:r+(c-1-u),(0,o.m)(n,a))},this.handleKeyDown=function(n,a){var t=n.key;if("Enter"===t||" "===t){if(n.preventDefault(),!a)return;e.handlePageSelect(a,"nav-paginate-number")}},this.ariaLabelSuffix="",this.enableAnalytics=!0,this.maxPageListLength=10,this.page=void 0,this.pages=void 0,this.showLastPage=!1,this.unbounded=!1}return n.prototype.addIcons=function(){var n,e;function a(n){var e="".concat((0,t.a)("/img/sprite.svg"),"#").concat(n);return'<svg\n class="usa-icon"\n aria-hidden="true"\n role="img">\n <use href='.concat(e,"></use>\n </svg>")}var i=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("#previous-arrow-icon");i&&(i.innerHTML=a("navigate_before"));var o=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("#next-arrow-icon");o&&(o.innerHTML=a("navigate_next"))},n.prototype.componentDidRender=function(){this.addIcons()},n.prototype.connectedCallback=function(){var n=this;r.i.on("languageChanged",(function(){(0,t.f)(n.el)}))},n.prototype.disconnectedCallback=function(){r.i.off("languageChanged")},n.prototype.render=function(){var n=this,e=this,a=e.ariaLabelSuffix,o=e.page,s=e.pages;if(1===s)return(0,t.h)("div",null);var l=a?"Previous page ".concat(a):"Previous page",c=a?"Next page ".concat(a):"Next page",u=this.pageNumbers(),p=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__page-no":!0,"va-pagination__item":!0}),g=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__overflow":!0,"va-pagination__item":!0}),d=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__arrow":!0}),f=o>1?(0,t.h)(t.F,null,(0,t.h)("li",{class:d},(0,t.h)("a",{"aria-label":l,onClick:function(){return n.handlePageSelect(o-1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o-1)},class:"usa-pagination__link usa-pagination__previous-page",href:"javascript:void(0)"},(0,t.h)("div",{id:"previous-arrow-icon"}),(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("previous")))),!u.includes(1)&&(0,t.h)(t.F,null,(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,1)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page 1, first page"},"1")),(0,t.h)("li",{class:g},(0,t.h)("span",{class:"usa-sr-only"},"Ellipsis indicating non-visible pages"),(0,t.h)("span",{"aria-hidden":"true"},"…")))):null,h=u.map((function(e){var r=(0,i.c)({"usa-pagination__button":!0,"usa-current":o===e}),l=a?"page ".concat(e," ").concat(a):"page ".concat(e);return 1===e&&(l="".concat(l,", first page")),e===s&&(l="".concat(l,", last page")),(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(e,"nav-paginate-number")},onKeyDown:function(a){return n.handleKeyDown(a,e)},href:"javascript:void(0)",class:r,"aria-current":o===e?"page":null,"aria-label":l},e))})),m=-1===u.indexOf(s)?(0,t.h)(t.F,null,s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:g},(0,t.h)("span",{class:"usa-sr-only"},"Ellipsis indicating non-visible pages"),(0,t.h)("span",{"aria-hidden":"true"},"…")),!this.unbounded&&s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(s,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,s)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page ".concat(s,", last page")},s))):null,b=o<s?(0,t.h)(t.F,null,(0,t.h)("li",{class:d},(0,t.h)("a",{"aria-label":c,onClick:function(){return n.handlePageSelect(o+1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o+1)},class:"usa-pagination__link usa-pagination__next-page",href:"javascript:void(0)"},(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("next")),(0,t.h)("div",{id:"next-arrow-icon"})))):null;return(0,t.h)(t.H,null,(0,t.h)("nav",{class:"usa-pagination","aria-label":"Pagination"},(0,t.h)("ul",{class:"usa-pagination__list"},f,h,m,b)))},Object.defineProperty(n,"assetsDirs",{get:function(){return["../assets"]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),n}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-pagination{margin-bottom:1rem;margin-top:1rem;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:white;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.usa-pagination .usa-icon{height:1.13rem;width:1.13rem}.usa-pagination__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:center;justify-content:center;width:auto}.usa-pagination__item{display:-ms-inline-flexbox;display:inline-flex;height:2.5rem;-ms-flex-pack:center;justify-content:center;line-height:1;margin-left:0.25rem;margin-right:0.25rem;min-width:2.5rem}@media all and (min-width: 40em){.usa-pagination__item{-ms-flex:1 0 auto;flex:1 0 auto}}.usa-pagination__arrow{display:none}@media all and (min-width: 40em){.usa-pagination__arrow{display:inherit}}@media all and (min-width: 40em){.usa-pagination__previous-page{margin-right:1.25rem}}@media all and (min-width: 40em){.usa-pagination__next-page{margin-left:1.25rem}}.usa-pagination__link{-ms-flex-align:center;align-items:center;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex}.usa-pagination__link[disabled]{opacity:0.4 !important;pointer-events:none}.usa-pagination__link:hover,.usa-pagination__link:focus,.usa-pagination__link:active{color:#1a4480}.usa-pagination__link:visited{color:#005ea2}.usa-pagination__button{-ms-flex-align:center;align-items:center;border-color:rgba(27, 27, 27, 0.2);border-radius:0.25rem;border-style:solid;border-width:1px;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;padding:0.5rem;width:100%}.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{color:#1a4480;border-color:#1a4480}@media (forced-colors: active){.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{border:2px solid transparent}}.usa-pagination .usa-current{background-color:#1b1b1b;border-color:transparent;color:white}@media (forced-colors: active){.usa-pagination .usa-current{border:2px solid transparent;color:buttonText}}.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{background-color:#1b1b1b;color:white}@media (forced-colors: active){.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{color:buttontext}}.usa-pagination__overflow{-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;display:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0.5rem}.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}.va-pagination__item{-webkit-box-sizing:border-box;box-sizing:border-box}:host a.usa-pagination__next-page>div,:host a.usa-pagination__previous-page>div{display:-ms-flexbox;display:flex}:host{background-color:var(--vads-color-white);border-top:1px solid var(--vads-color-base-lightest);display:-ms-flexbox;display:flex;font-family:var(--font-source-sans);-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:1.25rem 0 0.625rem;width:100%}ul{list-style-type:none;margin:0;padding:0}li{display:-ms-inline-flexbox;display:inline-flex}button{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;background-color:transparent;border:0;color:var(--vads-color-link);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:0.89rem;font-weight:400;-ms-flex-pack:center;justify-content:center;line-height:2;padding:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;-webkit-transition-property:color, background-color;transition-property:color, background-color}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,8175,9161],{20:function(n,e,a){a.r(e),a.d(e,{c:function(){return o}});var t,i={exports:{}};t=i,function(){var n={}.hasOwnProperty;function e(){for(var a=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)a.push(i);else if(Array.isArray(i)){if(i.length){var r=e.apply(null,i);r&&a.push(r)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&a.push(s);else a.push(i.toString())}}return a.join(" ")}t.exports?(e.default=e,t.exports=e):window.classNames=e}();var o=i.exports},9161:function(n,e,a){function t(n){return!Number.isNaN(parseFloat(n))}function i(n,e,a){void 0===a&&(a="slot");var t=n.shadowRoot.querySelector(a).assignedNodes();return null!==e?Array.from(t).filter((function(n){return n.nodeName.toLowerCase()===e})):Array.from(t)}function o(n){return 1===n?"":"s"}function r(n,e){if(void 0===n||""===n)return"".concat(e," character").concat(o(e)," allowed");var a;if(n.length<=e){var t=e-n.length;a="".concat(t," character").concat(o(t)," left")}else t=n.length-e,a="".concat(t," character").concat(o(t)," over limit");return a}function s(n,e){return Array.from({length:e-n+1},(function(e,a){return n+a}))}a.r(e),a.d(e,{S:function(){return u},a:function(){return p},b:function(){return r},g:function(){return i},i:function(){return t},m:function(){return s},s:function(){return c}}),a(3798);var l=function(n){return n&&"object"==typeof n&&1===n.nodeType};function c(n,e){var a=function(n,e){if("string"!=typeof n)return[];if(!e||!l(e))return[];var a=e.shadowRoot.querySelectorAll(n);return Array.from(a)}(n,e);return"string"!=typeof n||l(e)&&e.matches(n)&&a.push(e),a}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(n){return u._entities[n]},escapeHTML:function(n){for(var e="",a=0;a<n.length;a++)e+=n[a],a+1<arguments.length&&(e+=String(arguments[a+1]||"").replace(u._entity,u.getEntity));return e}};function p(n){var e;return(e="string"==typeof n?parseInt(n,10):Math.floor(n))>=1&&e<=6?"h".concat(e):null}},8175:function(n,e,a){a.r(e),a.d(e,{va_pagination:function(){return s}});var t=a(3798),i=a(20),o=(a(2465),a(9161)),r=a(9425),s=function(){function n(n){var e=this;(0,t.r)(this,n),this.pageSelect=(0,t.c)(this,"pageSelect",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.SHOW_ALL_PAGES=7,this.handlePageSelect=function(n,a){var t,i,o;if(e.pageSelect.emit({page:n}),null===(o=null===(i=null===(t=e.el)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.activeElement)||void 0===o||o.blur(),e.enableAnalytics){var r={componentName:"va-pagination",action:"linkClick",details:{event:a,"page-number":n}};e.componentLibraryAnalytics.emit(r)}},this.pageNumbers=function(){var n,a,t=e,i=t.maxPageListLength,r=t.page,s=t.pages,l=t.unbounded,c=Math.floor(i/2),u=l?0:1;return s<=e.SHOW_ALL_PAGES?(0,o.m)(1,s):r<=c+1?(n=1,(a=i>=s?s:i-1-u)===r&&a++,(0,o.m)(n,a)):r+c>=s?(a=s,(n=s-i>0?s-(i-2-1):1)===r&&n--,(0,o.m)(n,a)):(n=r-(c-2),a=r+c>s?s:r+(c-1-u),(0,o.m)(n,a))},this.handleKeyDown=function(n,a){var t=n.key;if("Enter"===t||" "===t){if(n.preventDefault(),!a)return;e.handlePageSelect(a,"nav-paginate-number")}},this.ariaLabelSuffix="",this.enableAnalytics=!0,this.maxPageListLength=10,this.page=void 0,this.pages=void 0,this.showLastPage=!1,this.unbounded=!1}return n.prototype.addIcons=function(){var n,e;function a(n){var e="".concat((0,t.a)("/img/sprite.svg"),"#").concat(n);return'<svg\n class="usa-icon"\n aria-hidden="true"\n role="img">\n <use href='.concat(e,"></use>\n </svg>")}var i=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("#previous-arrow-icon");i&&(i.innerHTML=a("navigate_before"));var o=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("#next-arrow-icon");o&&(o.innerHTML=a("navigate_next"))},n.prototype.componentDidRender=function(){this.addIcons()},n.prototype.connectedCallback=function(){var n=this;r.i.on("languageChanged",(function(){(0,t.f)(n.el)}))},n.prototype.disconnectedCallback=function(){r.i.off("languageChanged")},n.prototype.render=function(){var n=this,e=this,a=e.ariaLabelSuffix,o=e.page,s=e.pages;if(1===s)return(0,t.h)("div",null);var l=a?"Previous page ".concat(a):"Previous page",c=a?"Next page ".concat(a):"Next page",u=this.pageNumbers(),p=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__page-no":!0,"va-pagination__item":!0}),g=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__overflow":!0,"va-pagination__item":!0}),d=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__arrow":!0}),f=o>1?(0,t.h)(t.F,null,(0,t.h)("li",{class:d},(0,t.h)("a",{"aria-label":l,onClick:function(){return n.handlePageSelect(o-1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o-1)},class:"usa-pagination__link usa-pagination__previous-page",href:"javascript:void(0)"},(0,t.h)("div",{id:"previous-arrow-icon"}),(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("previous")))),!u.includes(1)&&(0,t.h)(t.F,null,(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,1)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page 1, first page"},"1")),(0,t.h)("li",{class:g},(0,t.h)("span",{class:"usa-sr-only"},"Ellipsis indicating non-visible pages"),(0,t.h)("span",{"aria-hidden":"true"},"…")))):null,h=u.map((function(e){var r=(0,i.c)({"usa-pagination__button":!0,"usa-current":o===e}),l=a?"page ".concat(e," ").concat(a):"page ".concat(e);return 1===e&&(l="".concat(l,", first page")),e===s&&(l="".concat(l,", last page")),(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(e,"nav-paginate-number")},onKeyDown:function(a){return n.handleKeyDown(a,e)},href:"javascript:void(0)",class:r,"aria-current":o===e?"page":null,"aria-label":l},e))})),m=-1===u.indexOf(s)?(0,t.h)(t.F,null,s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:g},(0,t.h)("span",{class:"usa-sr-only"},"Ellipsis indicating non-visible pages"),(0,t.h)("span",{"aria-hidden":"true"},"…")),!this.unbounded&&s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(s,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,s)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page ".concat(s,", last page")},s))):null,v=o<s?(0,t.h)(t.F,null,(0,t.h)("li",{class:d},(0,t.h)("a",{"aria-label":c,onClick:function(){return n.handlePageSelect(o+1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o+1)},class:"usa-pagination__link usa-pagination__next-page",href:"javascript:void(0)"},(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("next")),(0,t.h)("div",{id:"next-arrow-icon"})))):null;return(0,t.h)(t.H,null,(0,t.h)("nav",{class:"usa-pagination","aria-label":"Pagination"},(0,t.h)("ul",{class:"usa-pagination__list"},f,h,m,v)))},Object.defineProperty(n,"assetsDirs",{get:function(){return["../assets"]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),n}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-pagination{margin-bottom:1rem;margin-top:1rem;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:white;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.usa-pagination .usa-icon{height:1.13rem;width:1.13rem}.usa-pagination__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:center;justify-content:center;width:auto}.usa-pagination__item{display:-ms-inline-flexbox;display:inline-flex;height:2.5rem;-ms-flex-pack:center;justify-content:center;line-height:1;margin-left:0.25rem;margin-right:0.25rem;min-width:2.5rem}@media all and (min-width: 40em){.usa-pagination__item{-ms-flex:1 0 auto;flex:1 0 auto}}.usa-pagination__arrow{display:none}@media all and (min-width: 40em){.usa-pagination__arrow{display:inherit}}@media all and (min-width: 40em){.usa-pagination__previous-page{margin-right:1.25rem}}@media all and (min-width: 40em){.usa-pagination__next-page{margin-left:1.25rem}}.usa-pagination__link{-ms-flex-align:center;align-items:center;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex}.usa-pagination__link[disabled]{opacity:0.4 !important;pointer-events:none}.usa-pagination__link:hover,.usa-pagination__link:focus,.usa-pagination__link:active{color:#1a4480}.usa-pagination__link:visited{color:#005ea2}.usa-pagination__button{-ms-flex-align:center;align-items:center;border-color:rgba(27, 27, 27, 0.2);border-radius:0.25rem;border-style:solid;border-width:1px;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;padding:0.5rem;width:100%}.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{color:#1a4480;border-color:#1a4480}@media (forced-colors: active){.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{border:2px solid transparent}}.usa-pagination .usa-current{background-color:#1b1b1b;border-color:transparent;color:white}@media (forced-colors: active){.usa-pagination .usa-current{border:2px solid transparent;color:buttonText}}.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{background-color:#1b1b1b;color:white}@media (forced-colors: active){.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{color:buttontext}}.usa-pagination__overflow{-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;display:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0.5rem}.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}.va-pagination__item{-webkit-box-sizing:border-box;box-sizing:border-box}:host a.usa-pagination__next-page>div,:host a.usa-pagination__previous-page>div{display:-ms-flexbox;display:flex}:host{background-color:var(--vads-color-white);border-top:1px solid var(--vads-color-base-lightest);display:-ms-flexbox;display:flex;font-family:var(--font-source-sans);-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:1.25rem 0 0.625rem;width:100%}ul{list-style-type:none;margin:0;padding:0}li{display:-ms-inline-flexbox;display:inline-flex}button{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;background-color:transparent;border:0;color:var(--vads-color-link);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:0.89rem;font-weight:400;-ms-flex-pack:center;justify-content:center;line-height:2;padding:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;-webkit-transition-property:color, background-color;transition-property:color, background-color}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 82.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,82],{20:function(e,t,r){r.r(t),r.d(t,{c:function(){return i}});var o,a={exports:{}};o=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if("string"===i||"number"===i)r.push(a);else if(Array.isArray(a)){if(a.length){var n=t.apply(null,a);n&&r.push(n)}}else if("object"===i)if(a.toString===Object.prototype.toString)for(var s in a)e.call(a,s)&&a[s]&&r.push(s);else r.push(a.toString())}}return r.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var i=a.exports},82:function(e,t,r){r.r(t),r.d(t,{va_alert_expandable:function(){return i}});var o=r(3798),a=r(20),i=function(){function e(e){(0,o.r)(this,e),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.open=void 0,this.status=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.iconless=!1}return e.prototype.handleResize=function(){this.updateAlertBodyMaxHeight()},e.prototype.toggleOpen=function(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-alert-expandable",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open},e.prototype.handleKeydown=function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggleOpen())},e.prototype.updateAlertBodyMaxHeight=function(){var e=this.el.shadowRoot.getElementById("alert-body"),t=e.scrollHeight+"px";e.style.setProperty("--calc-max-height","calc("+t+" + 2rem)")},e.prototype.componentDidLoad=function(){this.updateAlertBodyMaxHeight()},e.prototype.render=function(){var e=this,t=e.status,r=e.open,i=e.iconless,n=(0,a.c)("alert-expandable",t,{"hide-icon":i}),s=(0,a.c)("alert-expandable-body",{open:r,closed:!r}),l="error"===t?"alert":null,c="error"===t?"assertive":null;return(0,o.h)(o.H,{key:"cbabd3bf2e2f301149b5dac98a4e17faaff31111"},(0,o.h)("div",{key:"fc663d792bdc03d9cc1804e51627622cd0edc14f",role:l,"aria-live":c,class:n},(0,o.h)("a",{key:"65377dccb5f7feb7d495c9370edefe66d9220fcd",role:"button","aria-controls":"alert-body","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this),class:"alert-expandable-trigger"},!i&&(0,o.h)("va-icon",{key:"191d4163332fce60f04e38eae2b4beb397abe6ca",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[t]||"info",size:3}),(0,o.h)("div",{key:"432699576a6987f3cf55ef51043483cedb6cfdc5"},(0,o.h)("span",{key:"231649146a8755894676d31e729edec6f8b06656",class:"alert-expandable-title"},(0,o.h)("span",{key:"4e98db8a4086cfd0240e95f8c343b9f110c4b953",class:"sr-only"},"Alert: "),this.trigger),(0,o.h)("va-icon",{key:"5c57909f636c7066cfe62d8a4369d94f2c211abc",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),(0,o.h)("div",{key:"ac3694025c5e80019eaecc3eafa991c72ba09e26",id:"alert-body",class:s},(0,o.h)("div",{key:"952872de4fba9b1f227e73c657db96411e8b3194",id:"slot-wrap"},(0,o.h)("slot",{key:"35e92c2cd7265d353195267b4998acc779de849a"})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();i.style="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}:host{display:block}:host([status='warning']){background-color:var(--vads-color-gold-lightest)}:host([status='info']){background-color:var(--vads-color-primary-alt-lightest)}:host([status='error']){background-color:var(--vads-color-secondary-lightest)}:host([status='success']){background-color:var(--vads-color-success-lighter)}:host([status='continue']){background-color:var(--vads-color-base-lightest)}.alert-expandable-trigger{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex;padding:0.75rem}div.warning .alert-expandable-trigger:hover{background-color:var(--vads-color-gold-lighter)}div.info .alert-expandable-trigger:hover{background-color:var(--vads-color-primary-alt-light)}div.error .alert-expandable-trigger:hover{background-color:var(--vads-color-secondary-light)}div.success .alert-expandable-trigger:hover{background-color:var(--vads-color-green-lighter)}div.continue .alert-expandable-trigger:hover{background-color:var(--vads-color-base-lighter)}.alert-expandable-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-dark);color:var(--vads-color-base-darker);cursor:pointer;font-weight:600}.alert-expandable-body{overflow:hidden}.alert-expandable-body.closed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.alert-expandable-body.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height)}#slot-wrap{margin:0.75rem}.alert-expandable-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded='true'] .alert-expandable-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}.alert-expandable__status-icon{color:var(--vads-color-base-darker);margin-right:8px}::slotted(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,82],{20:function(e,t,r){r.r(t),r.d(t,{c:function(){return i}});var a,o={exports:{}};a=o,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var i=typeof o;if("string"===i||"number"===i)r.push(o);else if(Array.isArray(o)){if(o.length){var n=t.apply(null,o);n&&r.push(n)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&r.push(s);else r.push(o.toString())}}return r.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var i=o.exports},82:function(e,t,r){r.r(t),r.d(t,{va_alert_expandable:function(){return i}});var a=r(3798),o=r(20),i=function(){function e(e){(0,a.r)(this,e),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.open=void 0,this.status=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.iconless=!1}return e.prototype.handleResize=function(){this.updateAlertBodyMaxHeight()},e.prototype.toggleOpen=function(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-alert-expandable",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open},e.prototype.handleKeydown=function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggleOpen())},e.prototype.updateAlertBodyMaxHeight=function(){var e=this.el.shadowRoot.getElementById("alert-body"),t=e.scrollHeight+"px";e.style.setProperty("--calc-max-height","calc("+t+" + 2rem)")},e.prototype.componentDidLoad=function(){this.updateAlertBodyMaxHeight()},e.prototype.render=function(){var e=this,t=e.status,r=e.open,i=e.iconless,n=(0,o.c)("alert-expandable",t,{"hide-icon":i}),s=(0,o.c)("alert-expandable-body",{open:r,closed:!r}),l="error"===t?"alert":null,c="error"===t?"assertive":null;return(0,a.h)(a.H,{key:"27152e8619b9f1861832adc8c930c1f0b7e11bdd"},(0,a.h)("div",{key:"a9577330ff8ccc6b276c0bfeb0491473b81a9c30",role:l,"aria-live":c,class:n},(0,a.h)("a",{key:"c039e39bbf5ab05077e70450557953439e540d33",role:"button","aria-controls":"alert-body","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this),class:"alert-expandable-trigger"},!i&&(0,a.h)("va-icon",{key:"9fa80fbaab36bb57087993f501f8650020caef19",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[t]||"info",size:3}),(0,a.h)("div",{key:"2ae6234721e3e23601e28478620b1655cdec46a4"},(0,a.h)("span",{key:"864903dbc2086043a09317780be7c43a7b7e2c7b",class:"alert-expandable-title"},(0,a.h)("span",{key:"8dca0b0208b49c00a00332f0ed2d8ff5c988bdbd",class:"sr-only"},"Alert: "),this.trigger),(0,a.h)("va-icon",{key:"dfeb4018aaa1d9b8382c8fdaf05d3b6c5e472444",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),(0,a.h)("div",{key:"80e7c912a6725399dfcfd27856fa1f30feb7d475",id:"alert-body",class:s},(0,a.h)("div",{key:"6808bb3b816a7667b6621cb5e3b63421dffdc7a8",id:"slot-wrap"},(0,a.h)("slot",{key:"64867267d588f058794e9fafa550c9f2a4f6d163"})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();i.style="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}:host{display:block}:host([status='warning']){background-color:var(--vads-color-gold-lightest)}:host([status='info']){background-color:var(--vads-color-primary-alt-lightest)}:host([status='error']){background-color:var(--vads-color-secondary-lightest)}:host([status='success']){background-color:var(--vads-color-success-lighter)}:host([status='continue']){background-color:var(--vads-color-base-lightest)}.alert-expandable-trigger{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex;padding:0.75rem}div.warning .alert-expandable-trigger:hover{background-color:var(--vads-color-gold-lighter)}div.info .alert-expandable-trigger:hover{background-color:var(--vads-color-primary-alt-light)}div.error .alert-expandable-trigger:hover{background-color:var(--vads-color-secondary-light)}div.success .alert-expandable-trigger:hover{background-color:var(--vads-color-green-lighter)}div.continue .alert-expandable-trigger:hover{background-color:var(--vads-color-base-lighter)}.alert-expandable-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-dark);color:var(--vads-color-base-darker);cursor:pointer;font-weight:600}.alert-expandable-body{overflow:hidden}.alert-expandable-body.closed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.alert-expandable-body.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height)}#slot-wrap{margin:0.75rem}.alert-expandable-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded='true'] .alert-expandable-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}.alert-expandable__status-icon{color:var(--vads-color-base-darker);margin-right:8px}::slotted(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);