@department-of-veterans-affairs/component-library 54.3.0 → 54.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 (133) hide show
  1. package/Modal.unit.spec.js +1 -0
  2. package/dist/1214.app.bundle.js +1 -0
  3. package/dist/1339.app.bundle.js +2 -0
  4. package/dist/{6850.app.bundle.js → 1351.app.bundle.js} +1 -1
  5. package/dist/{6830.app.bundle.js → 1365.app.bundle.js} +1 -1
  6. package/dist/{7481.app.bundle.js → 1450.app.bundle.js} +1 -1
  7. package/dist/2222.app.bundle.js +2 -0
  8. package/dist/{7734.app.bundle.js → 2387.app.bundle.js} +1 -1
  9. package/dist/{4157.app.bundle.js → 2472.app.bundle.js} +1 -1
  10. package/dist/{3589.app.bundle.js → 2654.app.bundle.js} +2 -2
  11. package/dist/{2923.app.bundle.js → 2664.app.bundle.js} +2 -2
  12. package/dist/{7372.app.bundle.js → 2801.app.bundle.js} +2 -2
  13. package/dist/{3601.app.bundle.js → 2858.app.bundle.js} +2 -2
  14. package/dist/{6832.app.bundle.js → 3071.app.bundle.js} +1 -1
  15. package/dist/{6043.app.bundle.js → 3126.app.bundle.js} +1 -1
  16. package/dist/{4351.app.bundle.js → 3156.app.bundle.js} +1 -1
  17. package/dist/{7267.app.bundle.js → 3238.app.bundle.js} +1 -1
  18. package/dist/{6555.app.bundle.js → 4064.app.bundle.js} +1 -1
  19. package/dist/{6650.app.bundle.js → 4117.app.bundle.js} +2 -2
  20. package/dist/{2205.app.bundle.js → 4140.app.bundle.js} +1 -1
  21. package/dist/415.app.bundle.js +1 -0
  22. package/dist/{4569.app.bundle.js → 4164.app.bundle.js} +2 -2
  23. package/dist/{5341.app.bundle.js → 4708.app.bundle.js} +2 -2
  24. package/dist/{1822.app.bundle.js → 4715.app.bundle.js} +2 -2
  25. package/dist/{5938.app.bundle.js → 5019.app.bundle.js} +2 -2
  26. package/dist/{6718.app.bundle.js → 5155.app.bundle.js} +1 -1
  27. package/dist/{9376.app.bundle.js → 5189.app.bundle.js} +2 -2
  28. package/dist/{5845.app.bundle.js → 5306.app.bundle.js} +2 -2
  29. package/dist/{5689.app.bundle.js → 5610.app.bundle.js} +1 -1
  30. package/dist/{5990.app.bundle.js → 5699.app.bundle.js} +2 -2
  31. package/dist/575.app.bundle.js +2 -0
  32. package/dist/{5119.app.bundle.js → 5830.app.bundle.js} +2 -2
  33. package/dist/{7495.app.bundle.js → 6034.app.bundle.js} +2 -2
  34. package/dist/{7307.app.bundle.js → 6246.app.bundle.js} +2 -2
  35. package/dist/{2482.app.bundle.js → 6247.app.bundle.js} +1 -1
  36. package/dist/{7166.app.bundle.js → 6349.app.bundle.js} +2 -2
  37. package/dist/{960.app.bundle.js → 641.app.bundle.js} +1 -1
  38. package/dist/{9186.app.bundle.js → 6527.app.bundle.js} +2 -2
  39. package/dist/{6308.app.bundle.js → 6633.app.bundle.js} +2 -2
  40. package/dist/{1966.app.bundle.js → 6655.app.bundle.js} +2 -2
  41. package/dist/6683.app.bundle.js +2 -0
  42. package/dist/6771.app.bundle.js +1 -0
  43. package/dist/{8915.app.bundle.js → 6824.app.bundle.js} +2 -2
  44. package/dist/712.app.bundle.js +2 -0
  45. package/dist/{4400.app.bundle.js → 7367.app.bundle.js} +2 -2
  46. package/dist/{2986.app.bundle.js → 7531.app.bundle.js} +1 -1
  47. package/dist/{6498.app.bundle.js → 7663.app.bundle.js} +1 -1
  48. package/dist/{3305.app.bundle.js → 7814.app.bundle.js} +2 -2
  49. package/dist/{2236.app.bundle.js → 7821.app.bundle.js} +1 -1
  50. package/dist/8175.app.bundle.js +2 -0
  51. package/dist/82.app.bundle.js +2 -0
  52. package/dist/8206.app.bundle.js +1 -0
  53. package/dist/{4780.app.bundle.js → 8495.app.bundle.js} +2 -2
  54. package/dist/{4996.app.bundle.js → 8735.app.bundle.js} +2 -2
  55. package/dist/8762.app.bundle.js +2 -1
  56. package/dist/{6696.app.bundle.js → 8859.app.bundle.js} +1 -1
  57. package/dist/890.app.bundle.js +2 -0
  58. package/dist/9288.app.bundle.js +1 -0
  59. package/dist/{7084.app.bundle.js → 9409.app.bundle.js} +1 -1
  60. package/dist/9463.app.bundle.js +1 -0
  61. package/dist/{8463.app.bundle.js → 9670.app.bundle.js} +1 -1
  62. package/dist/9724.app.bundle.js +2 -0
  63. package/dist/{5348.app.bundle.js → 9755.app.bundle.js} +2 -2
  64. package/dist/{8255.app.bundle.js → 9794.app.bundle.js} +2 -2
  65. package/dist/{8913.app.bundle.js → 9800.app.bundle.js} +2 -2
  66. package/dist/9915.app.bundle.js +1 -0
  67. package/dist/{5705.app.bundle.js → 9966.app.bundle.js} +2 -2
  68. package/dist/app.bundle.js +1 -1
  69. package/dist/app.bundle.js.LICENSE.txt +1 -1
  70. package/dist/components/contacts.js +1 -1
  71. package/dist/components/i18next.js +1 -1
  72. package/dist/components/types/components.d.ts +2 -2
  73. package/dist/components/va-file-input2.js +1 -1
  74. package/dist/components/va-memorable-date.js +1 -1
  75. package/dist/components/va-omb-info.js +1 -1
  76. package/dist/components/va-pagination.js +1 -1
  77. package/dist/components/va-progress-bar2.js +1 -1
  78. package/dist/components/va-segmented-progress-bar.js +1 -1
  79. package/package.json +15 -15
  80. package/dist/0.app.bundle.js +0 -2
  81. package/dist/12.app.bundle.js +0 -1
  82. package/dist/141.app.bundle.js +0 -2
  83. package/dist/251.app.bundle.js +0 -1
  84. package/dist/272.app.bundle.js +0 -2
  85. package/dist/323.app.bundle.js +0 -2
  86. package/dist/3397.app.bundle.js +0 -1
  87. package/dist/3600.app.bundle.js +0 -1
  88. package/dist/4432.app.bundle.js +0 -2
  89. package/dist/4475.app.bundle.js +0 -1
  90. package/dist/5663.app.bundle.js +0 -2
  91. package/dist/606.app.bundle.js +0 -1
  92. package/dist/6095.app.bundle.js +0 -2
  93. package/dist/6849.app.bundle.js +0 -2
  94. package/dist/9496.app.bundle.js +0 -2
  95. package/dist/9851.app.bundle.js +0 -2
  96. /package/dist/{0.app.bundle.js.LICENSE.txt → 1339.app.bundle.js.LICENSE.txt} +0 -0
  97. /package/dist/{141.app.bundle.js.LICENSE.txt → 2222.app.bundle.js.LICENSE.txt} +0 -0
  98. /package/dist/{1822.app.bundle.js.LICENSE.txt → 2654.app.bundle.js.LICENSE.txt} +0 -0
  99. /package/dist/{1966.app.bundle.js.LICENSE.txt → 2664.app.bundle.js.LICENSE.txt} +0 -0
  100. /package/dist/{272.app.bundle.js.LICENSE.txt → 2801.app.bundle.js.LICENSE.txt} +0 -0
  101. /package/dist/{2923.app.bundle.js.LICENSE.txt → 2858.app.bundle.js.LICENSE.txt} +0 -0
  102. /package/dist/{323.app.bundle.js.LICENSE.txt → 4117.app.bundle.js.LICENSE.txt} +0 -0
  103. /package/dist/{3305.app.bundle.js.LICENSE.txt → 4164.app.bundle.js.LICENSE.txt} +0 -0
  104. /package/dist/{3589.app.bundle.js.LICENSE.txt → 4708.app.bundle.js.LICENSE.txt} +0 -0
  105. /package/dist/{3601.app.bundle.js.LICENSE.txt → 4715.app.bundle.js.LICENSE.txt} +0 -0
  106. /package/dist/{4400.app.bundle.js.LICENSE.txt → 5019.app.bundle.js.LICENSE.txt} +0 -0
  107. /package/dist/{4432.app.bundle.js.LICENSE.txt → 5189.app.bundle.js.LICENSE.txt} +0 -0
  108. /package/dist/{4569.app.bundle.js.LICENSE.txt → 5306.app.bundle.js.LICENSE.txt} +0 -0
  109. /package/dist/{4780.app.bundle.js.LICENSE.txt → 5699.app.bundle.js.LICENSE.txt} +0 -0
  110. /package/dist/{4996.app.bundle.js.LICENSE.txt → 575.app.bundle.js.LICENSE.txt} +0 -0
  111. /package/dist/{5119.app.bundle.js.LICENSE.txt → 5830.app.bundle.js.LICENSE.txt} +0 -0
  112. /package/dist/{5341.app.bundle.js.LICENSE.txt → 6034.app.bundle.js.LICENSE.txt} +0 -0
  113. /package/dist/{5348.app.bundle.js.LICENSE.txt → 6246.app.bundle.js.LICENSE.txt} +0 -0
  114. /package/dist/{5663.app.bundle.js.LICENSE.txt → 6349.app.bundle.js.LICENSE.txt} +0 -0
  115. /package/dist/{5705.app.bundle.js.LICENSE.txt → 6527.app.bundle.js.LICENSE.txt} +0 -0
  116. /package/dist/{5845.app.bundle.js.LICENSE.txt → 6633.app.bundle.js.LICENSE.txt} +0 -0
  117. /package/dist/{5938.app.bundle.js.LICENSE.txt → 6655.app.bundle.js.LICENSE.txt} +0 -0
  118. /package/dist/{5990.app.bundle.js.LICENSE.txt → 6683.app.bundle.js.LICENSE.txt} +0 -0
  119. /package/dist/{6095.app.bundle.js.LICENSE.txt → 6824.app.bundle.js.LICENSE.txt} +0 -0
  120. /package/dist/{6308.app.bundle.js.LICENSE.txt → 712.app.bundle.js.LICENSE.txt} +0 -0
  121. /package/dist/{6650.app.bundle.js.LICENSE.txt → 7367.app.bundle.js.LICENSE.txt} +0 -0
  122. /package/dist/{6849.app.bundle.js.LICENSE.txt → 7814.app.bundle.js.LICENSE.txt} +0 -0
  123. /package/dist/{7166.app.bundle.js.LICENSE.txt → 8175.app.bundle.js.LICENSE.txt} +0 -0
  124. /package/dist/{7307.app.bundle.js.LICENSE.txt → 82.app.bundle.js.LICENSE.txt} +0 -0
  125. /package/dist/{7372.app.bundle.js.LICENSE.txt → 8495.app.bundle.js.LICENSE.txt} +0 -0
  126. /package/dist/{7495.app.bundle.js.LICENSE.txt → 8735.app.bundle.js.LICENSE.txt} +0 -0
  127. /package/dist/{8255.app.bundle.js.LICENSE.txt → 8762.app.bundle.js.LICENSE.txt} +0 -0
  128. /package/dist/{8913.app.bundle.js.LICENSE.txt → 890.app.bundle.js.LICENSE.txt} +0 -0
  129. /package/dist/{8915.app.bundle.js.LICENSE.txt → 9724.app.bundle.js.LICENSE.txt} +0 -0
  130. /package/dist/{9186.app.bundle.js.LICENSE.txt → 9755.app.bundle.js.LICENSE.txt} +0 -0
  131. /package/dist/{9376.app.bundle.js.LICENSE.txt → 9794.app.bundle.js.LICENSE.txt} +0 -0
  132. /package/dist/{9496.app.bundle.js.LICENSE.txt → 9800.app.bundle.js.LICENSE.txt} +0 -0
  133. /package/dist/{9851.app.bundle.js.LICENSE.txt → 9966.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([[2236],{2236:function(e,t,r){r.r(t),r.d(t,{va_file_input_multiple:function(){return s}});var i=r(1484),o=(r(1429),r(4665)),n=function(e,t,r){if(r||2===arguments.length)for(var i,o=0,n=t.length;o<n;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},s=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaMultipleChange=(0,i.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.getAdditionalFileUploadMessage=function(){return(0,i.h)("span",null,"Drag an additional file here or"," ",(0,i.h)("span",{class:"file-input-choose-text"},"choose from folder"))},this.renderLabelOrHeader=function(e,t,r){var n=t?(0,i.h)("span",{class:"required"}," ",o.i.t("required")):null;if(r&&r>=1&&r<=6){var s="h".concat(r);return(0,i.h)("div",{class:"label-header"},(0,i.h)(s,{part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{part:"label",class:"usa-label"},e,n))},this.addValueFiles=function(){return function(e,t,r,i){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){e.done?r(e.value):o(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var r,i,o,n,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;n&&(n=0,a[0]&&(s=0)),s;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[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.passwordErrors=[],this.encrypted=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.percentUploaded=[],this.maxFileSize=1/0,this.minFileSize=0,this.statusText=void 0,this.uploadedFiles=void 0,this.files=[{key:0,file:null,content:null,hasError:!1}],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&&!0!==this.files[0].hasError},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.ensurePlaceholder=function(){if(!this.readOnly&&!this.files.some((function(e){return null===e.file&&!0!==e.hasError}))){this.fileKeyCounter++;var e={file:null,key:this.fileKeyCounter,content:null,error:!1};this.files=n(n([],this.files,!0),[e],!1)}},e.prototype.handleChange=function(e,t,r){var i,o,s,a=e.detail.files[0];if(a){var l=this.findFileByKey(t);l.hasError&&(l.hasError=!1),l.file?(o="FILE_UPDATED",s=a,l.file=a):(o="FILE_ADDED",s=a,l.file=a,l.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files=n([],this.files,!0),this.ensurePlaceholder()),i=this.buildFilesArray(this.files,!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",s=this.files[r].file;var h=n([],this.files,!0);h.splice(r,1),this.files=h;var d=this.el.shadowRoot.querySelector("#statusMessage");d.textContent="",setTimeout((function(){d.textContent="File deleted.",setTimeout((function(){d.textContent=""}),1e4)}),1e3),i=this.buildFilesArray(this.files,!0)}this.ensurePlaceholder(),this.updateFilesState(),this.vaMultipleChange.emit({action:o,file:s,state:i,index:r})},e.prototype.handlePasswordChange=function(e,t,r){var i=this.findFileByKey(t);i.password=e.detail.password;var o=this.buildFilesArray(this.files,!1,this.findIndexByKey(t)),n={action:"PASSWORD_UPDATE",file:i.file,state:o,index:r};this.vaMultipleChange.emit(n)},e.prototype.updateFilesState=function(){this.files=n([],this.files,!0)},e.prototype.buildFilesArray=function(e,t,r){var i=e.filter((function(e){return!!e.file})).map((function(e){return{file:e.file,changed:!1,password:e.password}}));return!t&&i[r]&&(i[r].changed=!0),i},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,r){!e.files[r].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(r)||e.files[r].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,r=t.label,o=t.required,n=t.headerSize,s=t.hint,a=t.files,l=t.name,h=t.accept,d=t.errors,f=t.encrypted,u=t.percentUploaded,p=t.passwordErrors,c=t.enableAnalytics,m=t.readOnly,b=t.maxFileSize,g=t.minFileSize,v=t.statusText,y=t.uploadedFiles,x=this.isEmpty()?"":"outer-wrap",w=this.hasErrors()?"has-error":"";return(0,i.h)(i.H,{key:"59ebf2f2aa24d163b5f6de91bd9091c056d42db9",class:w,error:w?"error":""},r&&!m&&this.renderLabelOrHeader(r,o,n),s&&!m&&(0,i.h)("div",{key:"f85aff6acbe3f0e54fac53d7546ae1fc1d8bf1d9",class:"usa-hint",id:"input-hint-message"},s),(0,i.h)("div",{key:"463737f15c632f90f79b5a7a0b865759d6576d31",class:x},(0,i.h)("div",{key:"bb4d1b4d316ddee685db7166760bb7a04dd9db85",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,i.h)("div",{key:"33635cbf1164cf863309db70f7832a65831ae08d",class:"selected-files-label"},m?"Files you uploaded":"Selected files"),a.map((function(t,n){var a=u&&u.length>=n?u[n]:null,x=p&&p.length>=n?p[n]:null,w=y&&y.length>=n?y[n]:null;return(0,i.h)("va-file-input",Object.assign({key:t.key,id:"instance-".concat(n),headless:!0,label:r,hint:s,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.getAdditionalFileUploadMessage()}:{},{error:d[n],encrypted:f[n],percentUploaded:a,passwordError:x,onVaChange:function(r){return e.handleChange(r,t.key,n)},onVaFileInputError:function(){var r=e.findIndexByKey(t.key);r>-1&&(e.files[r]=Object.assign(Object.assign({},e.files[r]),{hasError:!0}),e.updateFilesState(),e.ensurePlaceholder())},onVaPasswordChange:function(r){return e.handlePasswordChange(r,t.key,n)},"enable-analytics":c,value:t.file,readOnly:m,maxFileSize:b,minFileSize:g,statusText:v,uploadedFile:w,class:t.file||t.hasError?"has-file":"no-file","max-file-size":b,"min-file-size":g}))}))),(0,i.h)("slot",{key:"358b2c4d0af79aad4d654a9b817c316c4998abaa"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@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=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-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 .with-separator{border-top:1px solid var(--vads-color-base-lighter)}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}: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: 1024px){: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,r){r.r(t),r.d(t,{va_file_input_multiple:function(){return s}});var i=r(2625),o=(r(2404),r(2265)),n=function(e,t,r){if(r||2===arguments.length)for(var i,o=0,n=t.length;o<n;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},s=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaMultipleChange=(0,i.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.getAdditionalFileUploadMessage=function(){return(0,i.h)("span",null,"Drag an additional file here or"," ",(0,i.h)("span",{class:"file-input-choose-text"},"choose from folder"))},this.renderLabelOrHeader=function(e,t,r){var n=t?(0,i.h)("span",{class:"required"}," ",o.i.t("required")):null;if(r&&r>=1&&r<=6){var s="h".concat(r);return(0,i.h)("div",{class:"label-header"},(0,i.h)(s,{part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{part:"label",class:"usa-label"},e,n))},this.addValueFiles=function(){return function(e,t,r,i){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){e.done?r(e.value):o(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var r,i,o,n,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;n&&(n=0,a[0]&&(s=0)),s;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[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.passwordErrors=[],this.encrypted=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.percentUploaded=[],this.maxFileSize=1/0,this.minFileSize=0,this.statusText=void 0,this.uploadedFiles=void 0,this.files=[{key:0,file:null,content:null,hasError:!1}],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&&!0!==this.files[0].hasError},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.ensurePlaceholder=function(){if(!this.readOnly&&!this.files.some((function(e){return null===e.file&&!0!==e.hasError}))){this.fileKeyCounter++;var e={file:null,key:this.fileKeyCounter,content:null,error:!1};this.files=n(n([],this.files,!0),[e],!1)}},e.prototype.handleChange=function(e,t,r){var i,o,s,a=e.detail.files[0];if(a){var l=this.findFileByKey(t);l.hasError&&(l.hasError=!1),l.file?(o="FILE_UPDATED",s=a,l.file=a):(o="FILE_ADDED",s=a,l.file=a,l.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files=n([],this.files,!0),this.ensurePlaceholder()),i=this.buildFilesArray(this.files,!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",s=this.files[r].file;var h=n([],this.files,!0);h.splice(r,1),this.files=h;var d=this.el.shadowRoot.querySelector("#statusMessage");d.textContent="",setTimeout((function(){d.textContent="File deleted.",setTimeout((function(){d.textContent=""}),1e4)}),1e3),i=this.buildFilesArray(this.files,!0)}this.ensurePlaceholder(),this.updateFilesState(),this.vaMultipleChange.emit({action:o,file:s,state:i,index:r})},e.prototype.handlePasswordChange=function(e,t,r){var i=this.findFileByKey(t);i.password=e.detail.password;var o=this.buildFilesArray(this.files,!1,this.findIndexByKey(t)),n={action:"PASSWORD_UPDATE",file:i.file,state:o,index:r};this.vaMultipleChange.emit(n)},e.prototype.updateFilesState=function(){this.files=n([],this.files,!0)},e.prototype.buildFilesArray=function(e,t,r){var i=e.filter((function(e){return!!e.file})).map((function(e){return{file:e.file,changed:!1,password:e.password}}));return!t&&i[r]&&(i[r].changed=!0),i},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,r){!e.files[r].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(r)||e.files[r].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,r=t.label,o=t.required,n=t.headerSize,s=t.hint,a=t.files,l=t.name,h=t.accept,d=t.errors,f=t.encrypted,u=t.percentUploaded,p=t.passwordErrors,c=t.enableAnalytics,m=t.readOnly,b=t.maxFileSize,g=t.minFileSize,v=t.statusText,y=t.uploadedFiles,x=this.isEmpty()?"":"outer-wrap",w=this.hasErrors()?"has-error":"";return(0,i.h)(i.H,{key:"59ebf2f2aa24d163b5f6de91bd9091c056d42db9",class:w,error:w?"error":""},r&&!m&&this.renderLabelOrHeader(r,o,n),s&&!m&&(0,i.h)("div",{key:"f85aff6acbe3f0e54fac53d7546ae1fc1d8bf1d9",class:"usa-hint",id:"input-hint-message"},s),(0,i.h)("div",{key:"463737f15c632f90f79b5a7a0b865759d6576d31",class:x},(0,i.h)("div",{key:"bb4d1b4d316ddee685db7166760bb7a04dd9db85",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,i.h)("div",{key:"33635cbf1164cf863309db70f7832a65831ae08d",class:"selected-files-label"},m?"Files you uploaded":"Selected files"),a.map((function(t,n){var a=u&&u.length>=n?u[n]:null,x=p&&p.length>=n?p[n]:null,w=y&&y.length>=n?y[n]:null;return(0,i.h)("va-file-input",Object.assign({key:t.key,id:"instance-".concat(n),headless:!0,label:r,hint:s,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.getAdditionalFileUploadMessage()}:{},{error:d[n],encrypted:f[n],percentUploaded:a,passwordError:x,onVaChange:function(r){return e.handleChange(r,t.key,n)},onVaFileInputError:function(){var r=e.findIndexByKey(t.key);r>-1&&(e.files[r]=Object.assign(Object.assign({},e.files[r]),{hasError:!0}),e.updateFilesState(),e.ensurePlaceholder())},onVaPasswordChange:function(r){return e.handlePasswordChange(r,t.key,n)},"enable-analytics":c,value:t.file,readOnly:m,maxFileSize:b,minFileSize:g,statusText:v,uploadedFile:w,class:t.file||t.hasError?"has-file":"no-file","max-file-size":b,"min-file-size":g}))}))),(0,i.h)("slot",{key:"358b2c4d0af79aad4d654a9b817c316c4998abaa"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@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=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-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 .with-separator{border-top:1px solid var(--vads-color-base-lighter)}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}: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: 1024px){:host va-file-input.has-error{margin-left:0}}'}}]);
@@ -0,0 +1,2 @@
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([[8175,4164,3126],{4164:function(n,e,t){t.r(e),t.d(e,{c:function(){return i}});var a,o={exports:{}};a=o,function(){var n={}.hasOwnProperty;function e(){for(var t=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)){if(o.length){var r=e.apply(null,o);r&&t.push(r)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)n.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}a.exports?(e.default=e,a.exports=e):window.classNames=e}();var i=o.exports},3126:function(n,e,t){function a(n){return!Number.isNaN(parseFloat(n))}function o(n,e,t){void 0===t&&(t="slot");var a=n.shadowRoot.querySelector(t).assignedNodes();return null!==e?Array.from(a).filter((function(n){return n.nodeName.toLowerCase()===e})):Array.from(a)}function i(n){return 1===n?"":"s"}function r(n,e){if(void 0===n||""===n)return"".concat(e," character").concat(i(e)," allowed");var t;if(n.length<=e){var a=e-n.length;t="".concat(a," character").concat(i(a)," left")}else a=n.length-e,t="".concat(a," character").concat(i(a)," over limit");return t}function s(n,e){return Array.from({length:e-n+1},(function(e,t){return n+t}))}t.r(e),t.d(e,{S:function(){return u},a:function(){return o},b:function(){return a},c:function(){return h},d:function(){return g},e:function(){return v},f:function(){return r},g:function(){return p},h:function(){return f},i:function(){return d},m:function(){return s},s:function(){return c},u:function(){return y}}),t(2625);var l=function(n){return n&&"object"==typeof n&&1===n.nodeType};function c(n,e){var t=function(n,e){if("string"!=typeof n)return[];if(!e||!l(e))return[];var t=e.shadowRoot.querySelectorAll(n);return Array.from(t)}(n,e);return"string"!=typeof n||l(e)&&e.matches(n)&&t.push(e),t}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(n){return u._entities[n]},escapeHTML:function(n){for(var e="",t=0;t<n.length;t++)e+=n[t],t+1<arguments.length&&(e+=String(arguments[t+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}function f(n){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(n.tagName)}function d(n){return n&&"false"!==n||!1}function m(n){return"[object Arguments]"===Object.prototype.toString.call(n)}function g(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(n===e)return!0;if("function"==typeof n||"function"==typeof e)return!0;if("object"!=typeof n||"object"!=typeof e)return!1;if(null===n||null===e)return!1;if(n instanceof Date&&e instanceof Date)return n.getTime()===e.getTime();if(n instanceof RegExp&&e instanceof RegExp)return n.source===e.source&&n.global===e.global&&n.multiline===e.multiline&&n.lastIndex===e.lastIndex&&n.ignoreCase===e.ignoreCase;if(m(n)||m(e)){if(!m(n)||!m(e))return!1;var o=Array.prototype.slice;return g(o.call(n),o.call(e),t,a)}if(n.constructor!==e.constructor)return!1;var i=Object.keys(n),r=Object.keys(e);if(0===i.length&&0===r.length)return!0;if(i.length!==r.length)return!1;for(var s=t.length;s--;)if(t[s]===n)return a[s]===e;t.push(n),a.push(e),i.sort(),r.sort();for(var l=i.length-1;l>=0;l--)if(i[l]!==r[l])return!1;for(var c=void 0,u=i.length-1;u>=0;u--)if(!g(n[c=i[u]],e[c],t,a))return!1;return t.pop(),a.pop(),!0}function h(n,e){var t;return function(){for(var a=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){return n.apply(a,o)}),e)}}function v(n){if(null!=n){var e="string"==typeof n?parseInt(n,10):n;if(!(e<=0||isNaN(e)))return e}}function y(n,e,t){n&&(n.innerText=r(e,v(t)))}},8175:function(n,e,t){t.r(e),t.d(e,{va_pagination:function(){return s}});var a=t(2625),o=t(4164),i=(t(2404),t(3126)),r=t(2265),s=function(){function n(n){var e=this;(0,a.r)(this,n),this.pageSelect=(0,a.c)(this,"pageSelect",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.SHOW_ALL_PAGES=7,this.handlePageSelect=function(n,t){var a,o,i;if(e.pageSelect.emit({page:n}),null===(i=null===(o=null===(a=e.el)||void 0===a?void 0:a.shadowRoot)||void 0===o?void 0:o.activeElement)||void 0===i||i.blur(),e.enableAnalytics){var r={componentName:"va-pagination",action:"linkClick",details:{event:t,"page-number":n}};e.componentLibraryAnalytics.emit(r)}},this.pageNumbers=function(){var n,t,a=e,o=a.page,r=a.pages,s=a.unbounded,l=a.SHOW_ALL_PAGES,c=s?0:1;return r<=l?(0,i.m)(1,r):o<=4?((t=(n=1)+l-2-c)===o&&t++,(0,i.m)(n,t)):o+5-1>r?((n=r-(l-2-1))===o&&n--,t=r,(0,i.m)(n,t)):(n=o-1,t=s?o+2:o+1,(0,i.m)(n,t))},this.handleKeyDown=function(n,t){var a=n.key;if("Enter"===a||" "===a){if(n.preventDefault(),!t)return;e.handlePageSelect(t,"nav-paginate-number")}},this.ariaLabelSuffix="",this.enableAnalytics=!0,this.page=void 0,this.pages=void 0,this.unbounded=!1}return n.prototype.addIcons=function(){var n,e;function t(n){var e="".concat((0,a.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 o=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("#previous-arrow-icon");o&&(o.innerHTML=t("navigate_before"));var i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("#next-arrow-icon");i&&(i.innerHTML=t("navigate_next"))},n.prototype.componentDidRender=function(){this.addIcons()},n.prototype.connectedCallback=function(){var n=this;r.i.on("languageChanged",(function(){(0,a.f)(n.el)}))},n.prototype.disconnectedCallback=function(){r.i.off("languageChanged")},n.prototype.renderPreviousButton=function(n,e){var t=this;return 1===this.page?null:(0,a.h)("li",{class:n},(0,a.h)("a",{"aria-label":e,onClick:function(){return t.handlePageSelect(t.page-1,"nav-paginate-number")},onKeyDown:function(n){return t.handleKeyDown(n,t.page-1)},class:"usa-pagination__link usa-pagination__previous-page",href:"javascript:void(0)"},(0,a.h)("div",{id:"previous-arrow-icon"}),(0,a.h)("span",{class:"usa-pagination__link-text"},r.i.t("previous"))))},n.prototype.renderFirstPage=function(n,e){var t=this;return this.pageNumbers().includes(1)?null:(0,a.h)(a.F,null,(0,a.h)("li",{class:n},(0,a.h)("a",{onClick:function(){return t.handlePageSelect(1,"nav-paginate-number")},onKeyDown:function(n){return t.handleKeyDown(n,1)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"1 of ".concat(this.pages," pages, first page")},"1")),(0,a.h)("li",{class:e},(0,a.h)("span",{class:"usa-sr-only"},"Ellipsis indicating non-visible pages"),(0,a.h)("span",{"aria-hidden":"true"},"…")))},n.prototype.renderMiddlePages=function(n,e){var t=this,i=this.pageNumbers().map((function(i){var r=(0,o.c)({"usa-pagination__button":!0,"usa-current":t.page===i}),s=n?"".concat(i," of ").concat(t.pages," pages ").concat(n):"".concat(i," of ").concat(t.pages," pages");return 1===i&&(s="1 of ".concat(t.pages," pages, first page")),i===t.pages&&(s="".concat(i," of ").concat(t.pages," pages, last page")),(0,a.h)("li",{class:e},(0,a.h)("a",{onClick:function(){return t.handlePageSelect(i,"nav-paginate-number")},onKeyDown:function(n){return t.handleKeyDown(n,i)},href:"javascript:void(0)",class:r,"aria-current":t.page===i?"page":null,"aria-label":s},i))}));return i},n.prototype.renderLastPage=function(n,e){var t=this;if(this.pageNumbers().includes(this.pages))return null;var o=null,i=null;return this.pages>this.SHOW_ALL_PAGES&&(o=(0,a.h)("li",{class:n},(0,a.h)("span",{class:"usa-sr-only"},"Ellipsis indicating non-visible pages"),(0,a.h)("span",{"aria-hidden":"true"},"…"))),!this.unbounded&&this.pages>this.SHOW_ALL_PAGES&&(i=(0,a.h)("li",{class:e},(0,a.h)("a",{onClick:function(){return t.handlePageSelect(t.pages,"nav-paginate-number")},onKeyDown:function(n){return t.handleKeyDown(n,t.pages)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"".concat(this.pages," of ").concat(this.pages," pages, last page")},this.pages))),(0,a.h)(a.F,null,o,i)},n.prototype.renderNextPageButton=function(n,e){var t=this;return this.page>=this.pages?null:(0,a.h)("li",{class:n},(0,a.h)("a",{"aria-label":e,onClick:function(){return t.handlePageSelect(t.page+1,"nav-paginate-number")},onKeyDown:function(n){return t.handleKeyDown(n,t.page+1)},class:"usa-pagination__link usa-pagination__next-page",href:"javascript:void(0)"},(0,a.h)("span",{class:"usa-pagination__link-text"},r.i.t("next")),(0,a.h)("div",{id:"next-arrow-icon"})))},n.prototype.render=function(){var n=this.ariaLabelSuffix;if(1===this.pages)return null;var e=n?"Previous page ".concat(n):"Previous page",t=n?"Next page ".concat(n):"Next page",i=(0,o.c)({"usa-pagination__item":!0,"usa-pagination__page-no":!0,"va-pagination__item":!0}),r=(0,o.c)({"usa-pagination__item":!0,"usa-pagination__overflow":!0,"va-pagination__item":!0}),s=(0,o.c)({"usa-pagination__item":!0,"usa-pagination__arrow":!0});return(0,a.h)(a.H,null,(0,a.h)("nav",{class:"usa-pagination","aria-label":"Pagination"},(0,a.h)("ul",{class:"usa-pagination__list"},this.renderPreviousButton(s,e),this.renderFirstPage(i,r),this.renderMiddlePages(n,i),this.renderLastPage(r,i),this.renderNextPageButton(s,t))))},Object.defineProperty(n,"assetsDirs",{get:function(){return["../assets"]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),n}();s.style='/* From the USWDS styles: */\n/* https://github.com/uswds/uswds/blob/3dc296ec56cd621fe52d918701fd94621d96a198/src/stylesheets/core/mixins/_focus.scss#L12-L13 */\nbutton:not([disabled]):focus,\nselect:not([disabled]):focus,\na:not([disabled]):focus,\nh1:focus,\ninput:not([disabled]):focus,\ntextarea:not([disabled]):focus,\n#form-question\n[role=\'option\']:focus,\n*[tabindex]:focus, \na.va-sidenav-submenu__link:focus {\n outline: 2px solid var(--vads-color-action-focus-on-light);\n outline-offset: 2px;\n z-index: 2;\n}\n\n/*\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n========================================\n========================================\n========================================\n----------------------------------------\nGENERAL SETTINGS\n----------------------------------------\nRead more about settings and\nUSWDS style tokens in the documentation:\nhttps://designsystem.digital.gov/design-tokens\n----------------------------------------\n*/\n/*\n----------------------------------------\nImage path\n----------------------------------------\nRelative image file path\n----------------------------------------\n*/\n/*\n----------------------------------------\nShow compile warnings\n----------------------------------------\nShow Sass warnings when functions and\nmixins use non-standard tokens.\nAND\nShow updates and notifications.\n----------------------------------------\n*/\n/*\n----------------------------------------\nNamespace\n----------------------------------------\n*/\n/*\n----------------------------------------\nPrefix separator\n----------------------------------------\nSet the character the separates\nresponsive and state prefixes from the\nmain class name.\nThe default (":") needs to be preceded\nby two backslashes to be properly\nescaped.\n----------------------------------------\n*/\n/*\n----------------------------------------\nLayout grid\n----------------------------------------\nShould the layout grid classes output\nwith !important\n----------------------------------------\n*/\n/*\n----------------------------------------\nBorder box sizing\n----------------------------------------\nWhen set to true, sets the box-sizing\nproperty of all site elements to\n`border-box`.\n----------------------------------------\n*/\n/*\n----------------------------------------\nFocus styles\n----------------------------------------\n*/\n/*\n----------------------------------------\nIcons\n----------------------------------------\n*/\n/*\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n========================================\n========================================\n========================================\n----------------------------------------\nTYPOGRAPHY SETTINGS\n----------------------------------------\nRead more about settings and\nUSWDS typography tokens in the documentation:\nhttps://designsystem.digital.gov/design-tokens/typesetting/overview/\n----------------------------------------\n*/\n/*\n----------------------------------------\nRoot font size\n----------------------------------------\nSetting $theme-respect-user-font-size to\ntrue sets the root font size to 100% and\nuses ems for media queries\n----------------------------------------\n$theme-root-font-size only applies when\n$theme-respect-user-font-size is set to\nfalse.\n\nThis will set the root font size\nas a specific px value and use px values\nfor media queries.\n\nAccepts true or false\n----------------------------------------\n*/\n/*\n----------------------------------------\nGlobal styles\n----------------------------------------\nAdds basic styling for the following\nunclassed elements:\n\n- paragraph: paragraph text\n- link: links\n- content: paragraph text, links,\n headings, lists, and tables\n----------------------------------------\n*/\n/*\n----------------------------------------\nBroswer compatibility mode\n----------------------------------------\nWhen true, outputs woff and ttf font \nformats in addition to woff2\n----------------------------------------\n*/\n/*\n----------------------------------------\nFont path\n----------------------------------------\nRelative font file path\n----------------------------------------\n*/\n/*\n----------------------------------------\nCustom typeface tokens\n----------------------------------------\nAdd a new custom typeface token if\nyour project uses a typeface not already\ndefined by USWDS.\n----------------------------------------\nUSWDS defines the following tokens\nby default:\n----------------------------------------\n\'georgia\'\n\'helvetica\'\n\'merriweather\'\n\'open-sans\'\n\'public-sans\'\n\'roboto-mono\'\n\'source-sans-pro\'\n\'system\'\n\'tahoma\'\n\'verdana\'\n----------------------------------------\nAdd as many new tokens as you have\ncustom typefaces. Reference your new\ntoken(s) in the type-based font settings\nusing the quoted name of the token.\n\nFor example:\n\n$theme-font-type-cond: \'example-font-token\';\n\ndisplay-name:\nThe display name of your font\n\ncap-height:\nThe height of a 500px `N` in Sketch\n----------------------------------------\nYou should change `example-[style]-token`\nnames to something more descriptive.\n----------------------------------------\n*/\n/*\n----------------------------------------\nType-based font settings\n----------------------------------------\nSet the type-based tokens for your\nproject from the following tokens,\nor from any new font tokens you added in\n$theme-typeface-tokens.\n----------------------------------------\n\'georgia\'\n\'helvetica\'\n\'merriweather\'\n\'open-sans\'\n\'public-sans\'\n\'roboto-mono\'\n\'source-sans-pro\'\n\'system\'\n\'tahoma\'\n\'verdana\'\n----------------------------------------\n*/\n/*\n----------------------------------------\nCustom font stacks\n----------------------------------------\nAdd custom font stacks to any of the\ntype-based fonts. Any USWDS typeface\ntoken already has a default stack.\n\nCustom stacks don\'t need to include the\nfont\'s display name. It will\nautomatically appear at the start of\nthe stack.\n----------------------------------------\nExample:\n$theme-font-type-sans: \'source-sans-pro\';\n$theme-font-sans-custom-stack: "Helvetica Neue", Helvetica, Arial, sans;\n\nOutput:\nfont-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;\n----------------------------------------\n*/\n/*\n----------------------------------------\nAdd any custom font source files\n----------------------------------------\nIf you want USWDS to generate additional\n@font-face declarations, add your font\ndata below, following the example that\nfollows.\n----------------------------------------\nUSWDS automatically generates @font-face\ndeclarations for the following\n\n\'merriweather\'\n\'public-sans\'\n\'roboto-mono\'\n\'source-sans-pro\'\n\nThese typefaces not require custom\nsource files.\n----------------------------------------\nEXAMPLE\n\n- dir:\n Directory relative to $theme-font-path\n- This directory should include fonts saved as\n .woff2\n ExampleSerif-Normal.woff2\n\n$theme-font-serif-custom-src: (\n dir: \'custom/example-serif\',\n roman: (\n 100: false,\n 200: false,\n 300: \'ExampleSerif-Light\',\n 400: \'ExampleSerif-Normal\',\n 500: false,\n 600: false,\n 700: \'ExampleSerif-Bold\',\n 800: false,\n 900: false,\n ),\n italic: (\n 100: false,\n 200: false,\n 300: \'ExampleSerif-LightItalic\',\n 400: \'ExampleSerif-Italic\',\n 500: false,\n 600: false,\n 700: \'ExampleSerif-BoldItalic\',\n 800: false,\n 900: false,\n ),\n);\n----------------------------------------\n*/\n/*\n----------------------------------------\nRole-based font settings\n----------------------------------------\nSet the role-based tokens for your\nproject from the following font-type\ntokens.\n----------------------------------------\n\'cond\'\n\'icon\'\n\'lang\'\n\'mono\'\n\'sans\'\n\'serif\'\n----------------------------------------\n*/\n/*\n----------------------------------------\nType scale\n----------------------------------------\nDefine your project\'s type scale using\nvalues from the USWDS system type scale\n\n1-20\n----------------------------------------\n*/\n/*\n----------------------------------------\nFont weights\n----------------------------------------\nAssign weights 100-900\nOr use `false` for unneeded weights.\n----------------------------------------\n*/\n/*\n----------------------------------------\nGeneral typography settings\n----------------------------------------\nType scale tokens\n----------------------------------------\nmicro: 10px\n1: 12px\n2: 13px\n3: 14px\n4: 15px\n5: 16px\n6: 17px\n7: 18px\n8: 20px\n9: 22px\n10: 24px\n11: 28px\n12: 32px\n13: 36px\n14: 40px\n15: 48px\n16: 56px\n17: 64px\n18: 80px\n19: 120px\n20: 140px\n----------------------------------------\nLine height tokens\n----------------------------------------\n1: 1\n2: 1.15\n3: 1.35\n4: 1.5\n5: 1.62\n6: 1.75\n----------------------------------------\nFont role tokens\n----------------------------------------\n\'ui\'\n\'heading\'\n\'body\'\n\'code\'\n\'alt\'\n----------------------------------------\nMeasure (max-width) tokens\n----------------------------------------\n1: 44ex\n2: 60ex\n3: 64ex\n4: 68ex\n5: 74ex\n6: 88ex\nnone: none\n----------------------------------------\n*/\n/*\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n========================================\n========================================\n========================================\n----------------------------------------\nCOLOR SETTINGS\n----------------------------------------\nRead more about settings and\nUSWDS color tokens in the documentation:\nhttps://designsystem.digital.gov/design-tokens/color\n----------------------------------------\n*/\n/*\n----------------------------------------\nTheme palette colors\n----------------------------------------\n*/\n/*\n----------------------------------------\nState palette colors\n----------------------------------------\n*/\n/*\n----------------------------------------\nGeneral colors\n----------------------------------------\n*/\n/*\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n========================================\n========================================\n========================================\n----------------------------------------\nCOMPONENT SETTINGS\n----------------------------------------\nRead more about settings and\nUSWDS style tokens in the documentation:\nhttps://designsystem.digital.gov/design-tokens\n----------------------------------------\n*/\n/*\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n========================================\n========================================\n========================================\n----------------------------------------\nSPACING SETTINGS\n----------------------------------------\nRead more about settings and\nUSWDS spacing units tokens in the\ndocumentation:\nhttps://designsystem.digital.gov/design-tokens/spacing-units\n----------------------------------------\n*/\n/*\n----------------------------------------\nBorder radius\n----------------------------------------\n2px 2px\n0.5 4px\n1 8px\n1.5 12px\n2 16px\n2.5 20px\n3 24px\n4 32px\n5 40px\n6 48px\n7 56px\n8 64px\n9 72px\n----------------------------------------\n*/\n/*\n----------------------------------------\nColumn gap\n----------------------------------------\n2px 2px\n0.5 4px\n1 8px\n2 16px\n3 24px\n4 32px\n5 40px\n6 48px\n----------------------------------------\n*/\n/*\n----------------------------------------\nGrid container max-width\n----------------------------------------\nmobile\nmobile-lg\ntablet\ntablet-lg\ndesktop\ndesktop-lg\nwidescreen\n----------------------------------------\n*/\n/*\n----------------------------------------\nSite\n----------------------------------------\n*/\n/*\n----------------------------------------\nmap-collect()\n----------------------------------------\nCollect multiple maps into a single\nlarge map\nsource: https://gist.github.com/bigglesrocks/d75091700f8f2be5abfe\n----------------------------------------\n*/\n/*\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n* * * * * ==============================\n========================================\n========================================\n========================================\n----------------------------------------\nUTILITIES SETTINGS\n----------------------------------------\nRead more about settings and\nUSWDS utilities in the documentation:\nhttps://designsystem.digital.gov/utilities\n----------------------------------------\n*/\n/*\n----------------------------------------\nUtility breakpoints\n----------------------------------------\nWhich breakpoints does your project\nneed? Select as `true` any breakpoint\nused by utilities or layout grid\n----------------------------------------\n*/\n/*\n----------------------------------------\nGlobal colors\n----------------------------------------\nThe following palettes will be added to\n- background-color\n- border-color\n- color\n- text-decoration-color\n----------------------------------------\n*/\n/*\n----------------------------------------\nSettings\n----------------------------------------\n*/\n/*\n----------------------------------------\nValues\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-last()\n----------------------------------------\nReturn the last item of a list,\nReturn null if the value is null\n----------------------------------------\n*/\n/*\n----------------------------------------\nappend-important()\n----------------------------------------\nAppend `!important` to a list\n----------------------------------------\n*/\n/*\n----------------------------------------\nde-list()\n----------------------------------------\nTransform a one-element list or arglist\ninto that single element.\n----------------------------------------\n(1) => 1\n((1)) => (1)\n----------------------------------------\n*/\n/*\n----------------------------------------\nuswds-error()\n----------------------------------------\nAllow the system to pass an error as text\nto test error states in unit testing\n----------------------------------------\n*/\n/*\n----------------------------------------\nerror-not-token()\n----------------------------------------\nReturns a common not-a-token error.\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-default()\n----------------------------------------\nReturns the default value from a map\nof project defaults\nget-default("bg-color")\n> $theme-body-background-color\n----------------------------------------\n*/\n/*\n----------------------------------------\nhas-important()\n----------------------------------------\nCheck to see if `!important` is\nbeing passed in a mixin\'s props\n----------------------------------------\n*/\n/*\n----------------------------------------\nmap-deep-get()\n----------------------------------------\n@author Hugo Giraudel\n@access public\n@param {Map} $map - Map\n@param {Arglist} $keys - Key chain\n@return {*} - Desired value\n----------------------------------------\n*/\n/*\n----------------------------------------\nmulti-cat()\n----------------------------------------\nConcatenate two lists\n----------------------------------------\n*/\n/*\n----------------------------------------\nremove()\n----------------------------------------\nRemove a value from a list\n----------------------------------------\n*/\n/*\n----------------------------------------\nsmart-quote()\n----------------------------------------\nQuotes strings\nInspects `px`, `xs`, and `xl` numbers\nLeaves bools as is\n----------------------------------------\n*/\n/*\n----------------------------------------\nstr-replace()\n----------------------------------------\nReplace any substring with another\nstring\n----------------------------------------\n*/\n/*\n----------------------------------------\nstr-split()\n----------------------------------------\nSplit a string at a given separator\nand convert into a list of substrings\n----------------------------------------\n*/\n/*\n----------------------------------------\nstrip-unit()\n----------------------------------------\nRemove the unit of a length\n@author Hugo Giraudel\n@param {Number} $number - Number to remove unit from\n@return {Number} - Unitless number\n----------------------------------------\n*/\n/*\n----------------------------------------\nbase-to-map()\n@TODO: Deprecate and delete\n----------------------------------------\nConvert a single base to a USWDS\nvalue map.\n\nCandidate for deprecation if we remove\nisReadable\n----------------------------------------\n*/\n/*\n----------------------------------------\nto-number()\n----------------------------------------\nCasts a string into a number\n----------------------------------------\n@param {String | Number} $value - Value to be parsed\n@return {Number}\n----------------------------------------\n*/\n/*\n----------------------------------------\nunpack()\n----------------------------------------\nCreate lists of single items from lists\nof lists.\n----------------------------------------\n(1, (2.1, 2.2), 3) --\x3e\n(1, 2.1, 2.2, 3)\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-system-color()\n----------------------------------------\nDerive a system color from its\nfamily, value, and vivid or a passed\nvariable that is, itself, a list\n----------------------------------------\n*/\n/*\n----------------------------------------\nset-theme-color()\n----------------------------------------\nDerive a color from a system color token\nor a hex value\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolor()\n----------------------------------------\nDerive a color from a color shortcode\n----------------------------------------\n*/\n/*\n----------------------------------------\npx-to-rem()\n----------------------------------------\nConverts a value in px to a value in rem\n----------------------------------------\n*/\n/*\n----------------------------------------\nrem-to-user-em()\n----------------------------------------\nConverts a value in rem to a value in\n[user-settings] em for use in media\nqueries\n----------------------------------------\n*/\n/*\n----------------------------------------\npx-to-user-em()\n----------------------------------------\nConverts a value in px to a value in em\n----------------------------------------\n*/\n/*\n----------------------------------------\nrem-to-px()\n----------------------------------------\nConverts a value in rem to a value in px\n----------------------------------------\n*/\n/*\n----------------------------------------\nspacing-multiple()\n----------------------------------------\nConverts a spacing unit multiple into\nthe desired final units (currently rem)\n----------------------------------------\n*/\n/*\n----------------------------------------\nnumber-to-token()\n----------------------------------------\nConverts an integer or numeric value\ninto a system value\n\nEx: 0.5 --\x3e \'05\'\n -1px --\x3e \'neg-1px\'\n----------------------------------------\n*/\n/*\n----------------------------------------\nunits()\n----------------------------------------\nConverts a spacing unit into\nthe desired final units (currently rem)\n----------------------------------------\n*/\n/*\n----------------------------------------\nProject fonts\n----------------------------------------\nCollects font settings in a map for\nlooping.\n----------------------------------------\n*/\n/*\n----------------------------------------\nLuminance ranges\n----------------------------------------\n*/\n/*\n----------------------------------------\nns()\n----------------------------------------\nAdd a namesspace of $type if that\nnamespace is set to output\n----------------------------------------\n*/\n/*\n----------------------------------------\nLine height\n----------------------------------------\n*/\n/*\n----------------------------------------\nMeasure\n----------------------------------------\n*/\n/*\n----------------------------------------\nvalidate-typeface-token()\n----------------------------------------\nCheck to see if a typeface-token exists.\nThrow an error if a passed token does\nnot exist in the typeface-token map.\n----------------------------------------\n*/\n/*\n----------------------------------------\ncap-height()\n----------------------------------------\nGet the cap height of a valid typeface\n----------------------------------------\n*/\n/*\n----------------------------------------\nconvert-to-font-type()\n----------------------------------------\nConverts a font-role token into a\nfont-type token. Leaves font-type tokens\nunchanged.\n----------------------------------------\n*/\n/*\n----------------------------------------\nfont-sources()\n----------------------------------------\nOutputs a list of font sources used in\na @font-face declaration.\n\n$theme-font-browser-compatibility: true - output woff2, woff, ttf\n$theme-font-browser-compatibility: false - output woff2\n\n@param stem: string - [font path]/[custom-src.dir]/[custom-src.[style].[weight]]\n@output: string\n\nfiletypes must be one of the filetypes set in variables/$project-font-face-filetypes (woff, woff2, ttf)\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-font-stack()\n----------------------------------------\nGet a font stack from a style- or\nrole-based font token.\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-typeface-token()\n----------------------------------------\nGet a typeface token from a font-type or\nfont-role token.\n----------------------------------------\n*/\n/*\n----------------------------------------\nnormalize-type-scale()\n----------------------------------------\nNormalizes a specific face\'s optical size\nto a set target\n----------------------------------------\n*/\n/*\n----------------------------------------\nsystem-type-scale()\n----------------------------------------\nGet a value from the system type scale\n----------------------------------------\n*/\n/*\n----------------------------------------\nEasing\n----------------------------------------\n*/\n/* deprecated.scss\n ---\n Occasionally the design system will deprecate\n old variables or functionality. If we replace\n the old functionality with something new, this is a\n place to connect the old functionality to the\n new functionality, in the service of better\n continuity and backwards compatibility within a\n major release cycle.\n\n Note the USWDS version where we deprecated the\n old functionality in a comment.\n\n Be sure to update notifications.scss.\n\n This file should started fresh at each\n major version.\n*/\n/*\n----------------------------------------\nadvanced-color()\n----------------------------------------\nDerive a color from a color triplet:\n[family], [grade], [variant]\n----------------------------------------\n*/\n/*\n----------------------------------------\nis-system-color-token()\n----------------------------------------\nReturn whether a token is a system\ncolor token\n----------------------------------------\n*/\n/*\n----------------------------------------\nis-theme-color-token()\n----------------------------------------\nReturn whether a token is a theme\ncolor token\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolor-token-assignment()\n----------------------------------------\nGet the system token equivalent of any\ntheme color token\n----------------------------------------\n*/\n/*\n----------------------------------------\ndecompose()\n----------------------------------------\nConvert a color token into into a list\nof form [family], [grade], [variant]\nVivid variants return "vivid" as the\nvariant.\nIf neither grade nor variant exists,\nreturns \'null\'\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolor-token-family()\n----------------------------------------\nReturns the family of a color token.\nReturns: color-family\ncolor-token-family("accent-warm-vivid")\n> "accent-warm"\ncolor-token-family("red-50v")\n> "red"\ncolor-token-variant(("red", 50, "vivid"))\n> "red"\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolor-token-grade()\n----------------------------------------\nReturns the grade of a USWDS color token.\nReturns: color-grade\ncolor-token-grade("accent-warm")\n> "root"\ncolor-token-grade("accent-warm-vivid")\n> "root"\ncolor-token-grade("accent-warm-darker")\n> "darker"\ncolor-token-grade("red-50v")\n> 50\ncolor-token-variant(("red", 50, "vivid"))\n> 50\n----------------------------------------\n*/\n/*\n----------------------------------------\nis-color-token()\n----------------------------------------\nReturns whether a given string is a\nUSWDS color token.\n----------------------------------------\n*/\n/*\n----------------------------------------\npow()\n----------------------------------------\nRaises a unitless number to the power\nof another unitless number\nIncludes helper functions\n----------------------------------------\n*/\n/*\n----------------------------------------\nHelper functions\n----------------------------------------\n*/\n/* factorial()\n----------------------------------------\n*/\n/* summation()\n----------------------------------------\n*/\n/* exp-maclaurin()\n----------------------------------------\n*/\n/* ln()\n----------------------------------------\n*/\n/*\n----------------------------------------\ncalculate-grade()\n----------------------------------------\nDerive the grade equivalent any color,\neven non-token colors\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolor-token-type()\n----------------------------------------\nReturns the type of a color token.\nReturns: "system" | "theme"\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolor-token-variant()\n----------------------------------------\nReturns the variant of color token.\nReturns: "vivid" | false\ncolor-token-variant("accent-warm")\n> false\ncolor-token-variant("accent-warm-vivid")\n> "vivid"\ncolor-token-variant("red-50v")\n> "vivid"\ncolor-token-variant(("red", 50, "vivid"))\n> "vivid"\n----------------------------------------\n*/\n/*\n----------------------------------------\nmagic-number()\n----------------------------------------\nReturns the magic number of two color\ngrades. Takes numbers or color tokens.\nmagic-number(50, 10)\nreturn: 40\nmagic-number("red-50", "red-10")\nreturn: 40\n----------------------------------------\n*/\n/*\n----------------------------------------\nwcag-magic-number()\n----------------------------------------\nReturns the magic number of a specific\nwcag grade:\n"AA"\n"AA-Large"\n"AAA"\nwcag-magic-number("AA")\n> 50\n----------------------------------------\n*/\n/*\n----------------------------------------\nis-accessible-magic-number()\n----------------------------------------\nReturns whether two grades achieve\nspecified target color contrast\nReturns: true | false\nis-accessible-magic-number(10, 50, "AA")\n> false\nis-accessible-magic-number(10, 60, "AA")\n> true\n----------------------------------------\n*/\n/*\n----------------------------------------\nnext-token()\n----------------------------------------\nReturns next "darker" or "lighter" color\ntoken of the same token type and variant.\nReturns: color-token | false\nnext-token("accent-warm", "lighter")\n> "accent-warm-light"\nnext-token("gray-10", "lighter")\n> "gray-5"\nnext-token("gray-5", "lighter")\n> "white"\nnext-token("white", "lighter")\n> false\nnext-token("red-50v", "darker")\n> "red-60v"\nnext-token("red-50", "darker")\n> "red-60"\nnext-token("red-80v", "darker")\n> "red-90"\nnext-token("red-90", "darker")\n> "black"\nnext-token("white", "darker")\n> "gray-5"\nnext-token("black", "lighter")\n> "gray-90"\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-link-tokens-from-bg()\n----------------------------------------\nGet accessible link colors for a given\nbackground color\nreturns: link-token, hover-token\nget-link-tokens-from-bg(\n "black",\n "red-60",\n "red-10",\n "AA")\n> "red-10", "red-5"\nget-link-tokens-from-bg(\n "black",\n "red-60v",\n "red-10v",\n "AA-large")\n> "red-60v", "red-50v"\nget-link-tokens-from-bg(\n "black",\n "red-5v",\n "red-60v",\n "AA")\n> "red-5v", "white"\nget-link-tokens-from-bg(\n "black",\n "white",\n "red-60v",\n "AA")\n> "white", "white"\n----------------------------------------\n*/\n/*\n----------------------------------------\ntest-colors()\n----------------------------------------\nCheck to see if all system colors\nfall between the proper relative\nluminance range for their grade.\nHas a couple quirks, as the luminance()\nfunction returns slightly different\nresults than expected.\n----------------------------------------\n*/\n/*\n----------------------------------------\ncolumns()\n----------------------------------------\noutputs a grid-col number based on\nthe number of desired columns in the\n12-column grid\n\nEx: columns(2) --\x3e 6\n grid-col(columns(2))\n----------------------------------------\n*/\n/*\n----------------------------------------\nUSWDS Properties\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-uswds-value()\n----------------------------------------\nFinds and outputs a value from the\nUSWDS standard values.\n\nUsed to build other standard utility\nfunctions and mixins.\n----------------------------------------\n*/\n/*\n----------------------------------------\nget-standard-values()\n----------------------------------------\nGets a map of USWDS standard values\nfor a property\n----------------------------------------\n*/\n/*\n----------------------------------------\nborder-radius()\n----------------------------------------\nGet a border-radius from the system\nborder-radii\n----------------------------------------\n*/\n/*\n----------------------------------------\nfont-weight()\nfw()\n----------------------------------------\nGet a font-weight value from the\nsystem font-weight\n----------------------------------------\n*/\n/*\n----------------------------------------\nfeature()\n----------------------------------------\nGets a valid USWDS font feature setting\n----------------------------------------\n*/\n/*\n----------------------------------------\nflex()\n----------------------------------------\nGets a valid USWDS flex value\n----------------------------------------\n*/\n/*\n----------------------------------------\nfont-family()\nfamily()\n----------------------------------------\nGet a font-family stack from a\nrole-based or type-based font family\n----------------------------------------\n*/\n/*\n----------------------------------------\nletter-spacing()\nls()\n----------------------------------------\nGet a letter-spacing value from the\nsystem letter-spacing\n----------------------------------------\n*/\n/*\n----------------------------------------\nmeasure()\n----------------------------------------\nGets a valid USWDS reading line length\n----------------------------------------\n*/\n/*\n----------------------------------------\nopacity()\n----------------------------------------\nGet an opacity from the system\nopacities\n----------------------------------------\n*/\n/*\n----------------------------------------\norder()\n----------------------------------------\nGet an order value from the\nsystem orders\n----------------------------------------\n*/\n/*\n----------------------------------------\nradius()\n----------------------------------------\nGet a border-radius value from the\nsystem letter-spacing\n----------------------------------------\n*/\n/*\n----------------------------------------\nfont-size()\n----------------------------------------\nGet type scale value from a [family] and\n[scale]\n----------------------------------------\n*/\n/*\n----------------------------------------\nz-index()\nz()\n----------------------------------------\nGet a z-index value from the\nsystem z-index\n----------------------------------------\n*/\n/*\n----------------------------------------\nutility-font()\n----------------------------------------\nGet a normalized font-size in rem from\na family and a type size in either\nsystem scale or project scale\n----------------------------------------\nNot the public-facing function.\nUsed for building the utilities and\nwithholds certain errors.\n----------------------------------------\n*/\n/*\n----------------------------------------\nfamily()\n----------------------------------------\nGet a font-family stack\n----------------------------------------\n*/\n/*\n----------------------------------------\nsize()\n----------------------------------------\nGet a normalized font-size in rem from\na family and a type size in either\nsystem scale or project scale\n----------------------------------------\n*/\n/*\n----------------------------------------\nfont()\n----------------------------------------\nGet a font-family stack\nAND\nGet a normalized font-size in rem from\na family and a type size in either\nsystem scale or project scale\n----------------------------------------\n*/\n/*\n----------------------------------------\ntypeset()\n----------------------------------------\nSets:\n- family\n- size\n- line-height\n----------------------------------------\n*/\n/* stylelint-disable max-nesting-depth */\n/*\n----------------------------------------\n@render-pseudoclass\n----------------------------------------\nBuild a pseucoclass utiliy from values\ncalculated in the @render-utilities-in\nloop\n----------------------------------------\n*/\n/*\n----------------------------------------\n@render-utility\n----------------------------------------\nBuild a utility from values calculated\nin the @render-utilities-in loop\n----------------------------------------\nTODO: Determine the proper use of\nunquote() in the following. Changed to\naccount for a \'interpolation near\noperators will be simplified in a\nfuture version of Sass\' warning.\n----------------------------------------\n*/\n/*\n----------------------------------------\n@render-utilities-in\n----------------------------------------\nThe master loop that sets the building\nblocks of utilities from the values\nin individual rule settings and loops\nthrough all possible variants\n----------------------------------------\n*/\n/* stylelint-enable */\n/* notifications.scss\n ---\n Adds a notification at the top of each USWDS\n compile. Use this file for important notifications\n and updates to the design system.\n\n This file should started fresh at each\n major version.\n\n*/\n/* prettier-ignore */\n/* prettier-ignore */\n.usa-sr-only {\n position: absolute;\n left: -999em;\n right: auto;\n}\n\n.usa-pagination {\n margin-bottom: 1rem;\n margin-top: 1rem;\n font-family: Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;\n font-size: 1.06rem;\n line-height: 1.5;\n color: #1b1b1b;\n background-color: white;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.usa-pagination .usa-icon {\n height: 1.13rem;\n width: 1.13rem;\n}\n\n.usa-pagination__list {\n margin-bottom: 0;\n margin-top: 0;\n list-style-type: none;\n padding-left: 0;\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: center;\n justify-content: center;\n width: auto;\n}\n\n.usa-pagination__item {\n display: -ms-inline-flexbox;\n display: inline-flex;\n height: 2.5rem;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 1;\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n min-width: 2.5rem;\n}\n@media all and (min-width: 40em) {\n .usa-pagination__item {\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n }\n}\n\n.usa-pagination__arrow {\n display: none;\n}\n@media all and (min-width: 40em) {\n .usa-pagination__arrow {\n display: inherit;\n }\n}\n\n@media all and (min-width: 40em) {\n .usa-pagination__previous-page {\n margin-right: 1.25rem;\n }\n}\n\n@media all and (min-width: 40em) {\n .usa-pagination__next-page {\n margin-left: 1.25rem;\n }\n}\n\n.usa-pagination__link {\n -ms-flex-align: center;\n align-items: center;\n color: #005ea2;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.usa-pagination__link[disabled] {\n opacity: 0.4 !important;\n pointer-events: none;\n}\n.usa-pagination__link:hover, .usa-pagination__link:focus, .usa-pagination__link:active {\n color: #1a4480;\n}\n.usa-pagination__link:visited {\n color: #005ea2;\n}\n\n.usa-pagination__button {\n -ms-flex-align: center;\n align-items: center;\n border-color: rgba(27, 27, 27, 0.2);\n border-radius: 0.25rem;\n border-style: solid;\n border-width: 1px;\n color: #005ea2;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-pack: center;\n justify-content: center;\n padding: 0.5rem;\n width: 100%;\n}\n.usa-pagination__button:hover, .usa-pagination__button:focus, .usa-pagination__button:active {\n color: #1a4480;\n border-color: #1a4480;\n}\n@media (forced-colors: active) {\n .usa-pagination__button:hover, .usa-pagination__button:focus, .usa-pagination__button:active {\n border: 2px solid transparent;\n }\n}\n\n.usa-pagination .usa-current {\n background-color: #1b1b1b;\n border-color: transparent;\n color: white;\n}\n@media (forced-colors: active) {\n .usa-pagination .usa-current {\n border: 2px solid transparent;\n color: buttonText;\n }\n}\n.usa-pagination .usa-current:hover, .usa-pagination .usa-current:focus, .usa-pagination .usa-current:active {\n background-color: #1b1b1b;\n color: white;\n}\n@media (forced-colors: active) {\n .usa-pagination .usa-current:hover, .usa-pagination .usa-current:focus, .usa-pagination .usa-current:active {\n color: buttontext;\n }\n}\n\n.usa-pagination__overflow {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-item-align: stretch;\n align-self: stretch;\n display: inherit;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n padding: 0.5rem;\n}\n\n.usa-icon {\n display: inline-block;\n fill: currentColor;\n height: 1em;\n position: relative;\n width: 1em;\n}\n\n.usa-icon--size-3 {\n height: 1.5rem;\n width: 1.5rem;\n}\n\n.usa-icon--size-4 {\n height: 2rem;\n width: 2rem;\n}\n\n.usa-icon--size-5 {\n height: 2.5rem;\n width: 2.5rem;\n}\n\n.usa-icon--size-6 {\n height: 3rem;\n width: 3rem;\n}\n\n.usa-icon--size-7 {\n height: 3.5rem;\n width: 3.5rem;\n}\n\n.usa-icon--size-8 {\n height: 4rem;\n width: 4rem;\n}\n\n.usa-icon--size-9 {\n height: 4.5rem;\n width: 4.5rem;\n}\n\n.va-pagination__item {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n:host a.usa-pagination__next-page > div,\n:host a.usa-pagination__previous-page > div {\n display: -ms-flexbox;\n display: flex;\n}\n\n:host {\n background-color: var(--vads-color-white);\n border-top: 1px solid var(--vads-color-base-lightest);\n container-type: inline-size;\n display: -ms-flexbox;\n display: flex;\n font-family: var(--font-source-sans);\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n padding: 1.25rem 0 0.625rem;\n width: 100%;\n}\n\nul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\nli {\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n\nbutton {\n -moz-osx-font-smoothing: auto;\n -webkit-font-smoothing: auto;\n background-color: transparent;\n border: 0;\n color: var(--vads-color-link);\n cursor: pointer;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-family: inherit;\n font-size: 0.89rem;\n font-weight: 400;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 2;\n padding: 0;\n -webkit-transition: all 0.3s ease-in-out;\n transition: all 0.3s ease-in-out;\n -webkit-transition-property: color, background-color;\n transition-property: color, background-color;\n}\n\n@container (max-width: 480px) {\n .usa-pagination__overflow {\n margin: 0;\n min-width: 2rem;\n padding: 0;\n }\n}'}}]);
@@ -0,0 +1,2 @@
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([[82,4164],{4164:function(e,t,a){a.r(t),a.d(t,{c:function(){return i}});var o,r={exports:{}};o=r,function(){var e={}.hasOwnProperty;function t(){for(var a=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=typeof r;if("string"===i||"number"===i)a.push(r);else if(Array.isArray(r)){if(r.length){var n=t.apply(null,r);n&&a.push(n)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)e.call(r,s)&&r[s]&&a.push(s);else a.push(r.toString())}}return a.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var i=r.exports},82:function(e,t,a){a.r(t),a.d(t,{va_alert_expandable:function(){return i}});var o=a(2625),r=a(4164),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,t=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.getElementById("alert-body");if(t){var a=t.scrollHeight+"px";t.style.setProperty("--calc-max-height","calc("+a+" + 2rem)")}},e.prototype.componentDidLoad=function(){var e=this;requestAnimationFrame((function(){return e.updateAlertBodyMaxHeight()}))},e.prototype.render=function(){var e=this,t=e.status,a=e.open,i=e.iconless,n=(0,r.c)("alert-expandable",t,{"hide-icon":i}),s=(0,r.c)("alert-expandable-body",{open:a,closed:!a});return(0,o.h)(o.H,{key:"5ea0af5f0558d6ee0624e7f92791efd94ba1c4df"},(0,o.h)("div",{key:"4115ea4fec5dfee79cb89b8b286d8a5b7183ed22",class:n},(0,o.h)("a",{key:"8776efb5c735cec192135ba64589249e225786e8",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:"f1bbccd44fa57f2644c3ca837aead419b9172db0",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:"50c53962be3cfad3727704208544d2f748120d2e"},(0,o.h)("span",{key:"445835725b87dd9ab8345d65cd5f308fcd66abf4",class:"alert-expandable-title"},(0,o.h)("span",{key:"e9eaf60e35f3cb32eb97bdf93eb3d4e426cd2c9e",class:"usa-sr-only"},"".concat({continue:"Continue",error:"Error",warning:"Warning",info:"Information",success:"Success"}[t]||"Information"," Alert")," "),this.trigger),(0,o.h)("va-icon",{key:"9b309ac19189390a6b750aee296793f7bcb4aae1",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),(0,o.h)("div",{key:"38c4a4ed76a166335977c226e5dde624600718d5",id:"alert-body",class:s},(0,o.h)("div",{key:"3d61d3a4f7f9baad1e9b20d8bc2ff12bf9942a66",id:"slot-wrap"},(0,o.h)("slot",{key:"dc996601268d23f3af322c18967ad19e526b8a35"})))))},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}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:block}:host([status=warning]){background-color:var(--vads-alert-color-background-warning-on-light)}:host([status=info]){background-color:var(--vads-alert-color-background-info-on-light)}:host([status=success]){background-color:var(--vads-alert-color-background-success-on-light)}: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.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:not(.hide-icon) .alert-expandable-body{padding-left:32px;}.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(*:first-child){margin-top:0 !important}::slotted(*:last-child){margin-bottom:0 !important}'}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[8206,3126],{3126:function(t,e,r){function n(t){return!Number.isNaN(parseFloat(t))}function i(t,e,r){void 0===r&&(r="slot");var n=t.shadowRoot.querySelector(r).assignedNodes();return null!==e?Array.from(n).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(n)}function o(t){return 1===t?"":"s"}function a(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(o(e)," allowed");var r;if(t.length<=e){var n=e-t.length;r="".concat(n," character").concat(o(n)," left")}else n=t.length-e,r="".concat(n," character").concat(o(n)," over limit");return r}function l(t,e){return Array.from({length:e-t+1},(function(e,r){return t+r}))}r.r(e),r.d(e,{S:function(){return h},a:function(){return i},b:function(){return n},c:function(){return v},d:function(){return m},e:function(){return y},f:function(){return a},g:function(){return f},h:function(){return u},i:function(){return g},m:function(){return l},s:function(){return c},u:function(){return d}}),r(2625);var s=function(t){return t&&"object"==typeof t&&1===t.nodeType};function c(t,e){var r=function(t,e){if("string"!=typeof t)return[];if(!e||!s(e))return[];var r=e.shadowRoot.querySelectorAll(t);return Array.from(r)}(t,e);return"string"!=typeof t||s(e)&&e.matches(t)&&r.push(e),r}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(t){return h._entities[t]},escapeHTML:function(t){for(var e="",r=0;r<t.length;r++)e+=t[r],r+1<arguments.length&&(e+=String(arguments[r+1]||"").replace(h._entity,h.getEntity));return e}};function f(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}function u(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function g(t){return t&&"false"!==t||!1}function p(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function m(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!=typeof t||"object"!=typeof e)return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(p(t)||p(e)){if(!p(t)||!p(e))return!1;var i=Array.prototype.slice;return m(i.call(t),i.call(e),r,n)}if(t.constructor!==e.constructor)return!1;var o=Object.keys(t),a=Object.keys(e);if(0===o.length&&0===a.length)return!0;if(o.length!==a.length)return!1;for(var l=r.length;l--;)if(r[l]===t)return n[l]===e;r.push(t),n.push(e),o.sort(),a.sort();for(var s=o.length-1;s>=0;s--)if(o[s]!==a[s])return!1;for(var c=void 0,h=o.length-1;h>=0;h--)if(!m(t[c=o[h]],e[c],r,n))return!1;return r.pop(),n.pop(),!0}function v(t,e){var r;return function(){for(var n=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(r),r=setTimeout((function(){return t.apply(n,i)}),e)}}function y(t){if(null!=t){var e="string"==typeof t?parseInt(t,10):t;if(!(e<=0||isNaN(e)))return e}}function d(t,e,r){t&&(t.innerText=a(e,y(r)))}},8206:function(t,e,r){r.r(e),r.d(e,{va_search_filter:function(){return o}});var n=r(2625),i=r(3126),o=function(){function t(e){var r=this;(0,n.r)(this,e),this.vaFilterChange=(0,n.c)(this,"vaFilterChange",7),this.vaFilterApply=(0,n.c)(this,"vaFilterApply",7),this.vaFilterClearAll=(0,n.c)(this,"vaFilterClearAll",7),this.isDesktop=window.innerWidth>640,this.handleFilterChange=function(e){var n=e.facetId,i=e.categoryId,o=e.active;r.filterOptions=r.filterOptions.map((function(t){return t.id===n?Object.assign(Object.assign({},t),{category:t.category.map((function(t){return t.id===i?Object.assign(Object.assign({},t),{active:o}):t}))}):t})),r.totalActiveFilters=r.getTotalActiveFilters(),r.filterOptions=r.filterOptions.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})})),r.vaFilterChange.emit(r.getActiveFiltersWithCategories())},this.handleClearAllFilters=function(){r.filterOptions=r.filterOptions.map((function(t){var e=Object.assign(Object.assign({},t),{category:t.category.map((function(t){return Object.assign(Object.assign({},t),{active:!1})}))});return Object.assign(Object.assign({},e),{activeFiltersCount:0})})),r.totalActiveFilters=0,r.vaFilterClearAll.emit()},this.handleApplyFilters=function(){r.vaFilterApply.emit(r.getActiveFiltersWithCategories())},this.header="Filters",this.filterOptions=[],this.totalActiveFilters=0}return t.prototype.filterOptionsChanged=function(e){if(e&&e.length>0){this.totalActiveFilters=this.getTotalActiveFilters();var r=e.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})}));!(0,i.d)(r,this.filterOptions)&&(this.filterOptions=r)}},t.prototype.handleResize=function(){this.isDesktop=window.innerWidth>640,(0,n.f)(this)},t.prototype.getTotalActiveFilters=function(){return this.getActiveFiltersWithCategories().reduce((function(t,e){return t+e.category.length}),0)},t.prototype.getActiveFiltersWithCategories=function(){return this.filterOptions.map((function(t){return Object.assign(Object.assign({},t),{category:t.category.filter((function(t){return!0===t.active}))})})).filter((function(t){return t.category.length>0}))},t.getSrOnlyProp=function(t,e){var r;return t>0?((r={})[e]="".concat(1===t?"filter":"filters"," applied"),r):{}},t.getTotalActiveFiltersByFacet=function(t){return t.category.filter((function(t){return!0===t.active})).length},t.validateFilterOptions=function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing filterOptions:",t),null}if(!Array.isArray(t))return console.error("filterOptions must be an array"),null;var e=t.every((function(t){var e="string"==typeof t.label&&t.label.length>0,r=Array.isArray(t.category)&&t.category.length>0&&t.category.every((function(t){var e="string"==typeof t.label&&t.label.length>0,r="number"==typeof t.id||"string"==typeof t.id;return e&&r})),n="number"==typeof t.id||"string"==typeof t.id;return e&&r&&n}));return e?t:null},t.prototype.componentWillLoad=function(){var e;if(null===(e=this.filterOptions)||void 0===e?void 0:e.length){var r=t.validateFilterOptions(this.filterOptions);r?(this.totalActiveFilters=this.getTotalActiveFilters(),this.filterOptions=r.map((function(e){return Object.assign(Object.assign({},e),{activeFiltersCount:t.getTotalActiveFiltersByFacet(e)})}))):this.filterOptions=[]}},t.prototype.render=function(){var e=this,r=e.header,i=e.filterOptions,o=e.isDesktop,a=e.totalActiveFilters,l=e.handleFilterChange,s=e.handleClearAllFilters,c=e.handleApplyFilters,h=(0,n.h)("div",{id:"filter-buttons"},(0,n.h)("va-button",{onClick:c,text:"Apply filters","full-width":!0}),(0,n.h)("va-button",{onClick:s,text:"Clear all filters",secondary:!0,"full-width":!0})),f=function(t,e){return(0,n.h)("va-checkbox",{label:e.label,key:e.id,checked:e.active,onVaChange:function(r){return l({facetId:t.id,categoryId:e.id,active:r.target.checked})}})};return o?(0,n.h)(n.H,null,(0,n.h)("h2",{id:"header"},r,a>0?" (".concat(a,")"):"",a>0&&(0,n.h)("span",{class:"usa-sr-only"}," applied")),i.length>0&&(0,n.h)("va-accordion",{class:"va-search-filter__accordion"},i.map((function(e){return(0,n.h)("va-accordion-item",Object.assign({header:e.label+(e.activeFiltersCount>0?" (".concat(e.activeFiltersCount,")"):"")},t.getSrOnlyProp(e.activeFiltersCount,"headerSrOnly"),{key:e.id,level:3,open:!0}),(0,n.h)("va-checkbox-group",{label:e.label,class:"va-search-filter__checkbox-group"},e.category.map((function(t){return f(e,t)}))))}))),h):(0,n.h)(n.H,null,i.length>0&&(0,n.h)("va-accordion",{class:"va-search-filter__accordion"},(0,n.h)("va-accordion-item",{header:r+(a>0?" (".concat(a,")"):""),headerSrOnly:"applied",open:!0},(0,n.h)("span",{slot:"icon"},(0,n.h)("va-icon",{icon:"filter_list"})),i.map((function(e){return(0,n.h)("va-checkbox-group",Object.assign({label:e.label+(e.activeFiltersCount>0?" (".concat(e.activeFiltersCount,")"):"")},t.getSrOnlyProp(e.activeFiltersCount,"labelSrOnly"),{key:e.id,"label-header-level":"3"}),e.category.map((function(t){return f(e,t)})))})),h)))},Object.defineProperty(t,"watchers",{get:function(){return{filterOptions:["filterOptionsChanged"]}},enumerable:!1,configurable:!0}),t}();o.style='h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:block}#header{margin-bottom:20px}va-accordion-item::part(accordion-content){padding-top:0}va-checkbox-group{margin-top:10px}va-checkbox-group::part(legend){font-weight:bold}va-checkbox-group::part(header){font-family:var(--font-source-sans);font-size:var(--font-size-md)}#filter-buttons{margin-top:25px}#filter-buttons va-button{margin-bottom:15px}'}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 4780.app.bundle.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,4780,6043],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var a,i={exports:{}};a=i,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if("string"===o||"number"===o)r.push(i);else if(Array.isArray(i)){if(i.length){var n=t.apply(null,i);n&&r.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&r.push(s);else r.push(i.toString())}}return r.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var o=i.exports},6043:function(e,t,r){function a(e){return!Number.isNaN(parseFloat(e))}function i(e,t,r){void 0===r&&(r="slot");var a=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(a)}function o(e){return 1===e?"":"s"}function n(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var a=t-e.length;r="".concat(a," character").concat(o(a)," left")}else a=e.length-t,r="".concat(a," character").concat(o(a)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return c},a:function(){return i},b:function(){return a},c:function(){return b},d:function(){return m},e:function(){return g},f:function(){return n},g:function(){return d},h:function(){return h},i:function(){return f},m:function(){return s},s:function(){return u},u:function(){return v}}),r(1484);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&r.push(t),r}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(c._entity,c.getEntity));return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(p(e)||p(t)){if(!p(e)||!p(t))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(t),r,a)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),n=Object.keys(t);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return a[s]===t;r.push(e),a.push(t),o.sort(),n.sort();for(var l=o.length-1;l>=0;l--)if(o[l]!==n[l])return!1;for(var u=void 0,c=o.length-1;c>=0;c--)if(!m(e[u=o[c]],t[u],r,a))return!1;return r.pop(),a.pop(),!0}function b(e,t){var r;return function(){for(var a=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(r),r=setTimeout((function(){return e.apply(a,i)}),t)}}function g(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function v(e,t,r){e&&(e.innerText=n(t,g(r)))}},4780:function(e,t,r){r.r(t),r.d(t,{va_select:function(){return s}});var a=r(1484),i=r(4569),o=(r(1429),r(6043)),n=r(4665),s=function(){function e(e){(0,a.r)(this,e),this.vaKeyDown=(0,a.c)(this,"vaKeyDown",7),this.vaSelect=(0,a.c)(this,"vaSelect",7),this.vaSelectBlur=(0,a.c)(this,"vaSelectBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.required=!1,this.hideRequiredText=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.fullWidth=!1,this.showError=!0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.options=void 0}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.handleKeyDown=function(){this.vaKeyDown.emit()},e.prototype.handleBlur=function(e){var t=e.target;this.value=t.value,this.vaSelectBlur.emit({value:this.value})},e.prototype.handleChange=function(e){var t=e.target;if(this.value=t.value,this.enableAnalytics){var r={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(r)}this.vaSelect.emit({value:this.value})},e.prototype.populateOptions=function(){var e=this.value,t=(0,o.a)(this.el,null,"#select-container slot").filter((function(e){var t=e.nodeName.toLowerCase();return"option"===t||"optgroup"===t}));this.options=t.map((function(t){return"optgroup"===t.nodeName.toLowerCase()?(0,a.h)("optgroup",{label:t.label},Array.from(t.children).map((function(t){return(0,a.h)("option",{value:t.value,selected:e===t.value},t.text)}))):"option"===t.nodeName.toLowerCase()?(0,a.h)("option",{value:t.value,selected:e===t.value},t.textContent):void 0}))},e.prototype.handleValueChange=function(){this.populateOptions()},e.prototype.render=function(){var e,t=this,r=this,s=r.error,l=r.reflectInputError,u=r.invalid,c=r.label,d=r.required,h=r.hideRequiredText,f=r.name,p=r.hint,m=r.messageAriaDescribedby,b=r.width,g=r.fullWidth,v=r.showError,y=r.useFormsPattern,w=r.formHeadingLevel,x=r.headerAriaDescribedby,k=r.formHeading,z="input-error-message",C="".concat(m?"input-message":""," ").concat(s?z:""," ").concat(p?"input-hint":"").trim()||null,T=(0,o.g)(this.labelHeaderLevel),S=x?"header-message":null,A=(0,i.c)({"usa-label":!0,"usa-label--error":s}),N=(0,i.c)(((e={"usa-select":!0,"usa-input--error":s||l})["usa-input--".concat(b)]=b,e["va-select--full-width"]=g,e)),D=null;if(["single","multiple"].includes(y)){var q=(0,o.g)(w);D=(0,a.h)(a.F,{key:"af3cbbc2589a094701b3cb5aaa4028f10e87c312"},k&&(0,a.h)(q,{key:"65a26102386bc62989c79511195c141f575b3319",id:"form-question",part:"form-header"},k),(0,a.h)("div",{key:"321b20bf97edc427bb4fe5ddb9796b296b983fc9",id:"form-description"},(0,a.h)("slot",{key:"6a24c3c0326f11ce38235a00476ec470099ffa98",name:"form-description"})))}var L=(0,a.h)("label",{key:"c7c0fb47d606ebb2ce2d7aadc49c61c80f52cb9d",htmlFor:"options",class:A,part:"label"},c,"multiple"===y&&x?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},(0,a.h)("span",null,c),(0,a.h)("span",null,x)):"multiple"===y?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},c):x?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},x):null,d&&!h&&(0,a.h)("span",{key:"d659fee32bc9573f8c31166a41bd31943dd6b9fc",class:"usa-label--required"}," ",n.i.t("required")));return(0,a.h)(a.H,{key:"b16ecabf52635c19a759f474f01a5671e71a79be"},D,c&&T?(0,a.h)(T,{part:"header","aria-describedby":S},L):L,p&&(0,a.h)("span",{key:"9fa8e0741693c0f9a93ee1077229c8ad4b80ae27",class:"usa-hint"},p),(0,a.h)("span",{key:"625d42365494f5056c3fd206cac42409aa7f3d41",id:z,role:"alert"},v&&s&&(0,a.h)(a.F,{key:"025589594f8e78131296da08c3578d26db6337f3"},(0,a.h)("span",{key:"b4bb0ec823ac102363edb42e90c0b35e82ae69f8",class:"usa-sr-only"},n.i.t("error")),(0,a.h)("span",{key:"ad1c13b46f19bc7e726caba616169b2174e38df7",class:"usa-error-message"},s))),(0,a.h)("div",{key:"03fb9f64ad2f30865f4f55fdc8c5a85c06f219f6",id:"select-container"},(0,a.h)("slot",{key:"6d2934623db555600ecf5b2364c0b65be83d05e1",onSlotchange:function(){return t.populateOptions()}}),(0,a.h)("select",{key:"ec5336864756fc95c488b5d5bde9d80ec7caf9d8",class:N,"aria-describedby":C,"aria-invalid":u||s?"true":"false",id:"options",name:f,required:d||null,onKeyDown:function(){return t.handleKeyDown()},onChange:function(e){return t.handleChange(e)},onBlur:function(e){return t.handleBlur(e)},part:"select"},(0,a.h)("option",{key:"0",value:"",selected:!0},n.i.t("select")),this.options)),(0,o.i)(m)&&(0,a.h)("span",{key:"3d917428371791d77f8dc12d86bfd51c4d62b4ef",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},m))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-select,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-select,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-select{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}h1 .usa-label,h2 .usa-label,h3 .usa-label,h4 .usa-label,h5 .usa-label,h6 .usa-label{font-family:inherit;font-size:inherit;font-weight:inherit}h1 .usa-label .usa-label--required,h2 .usa-label .usa-label--required,h3 .usa-label .usa-label--required,h4 .usa-label .usa-label--required,h5 .usa-label .usa-label--required,h6 .usa-label .usa-label--required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option),::slotted(optgroup){display:none}.va-select--full-width{max-width:100%;width:100%}'}}]);
1
+ /*! For license information please see 8495.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([[8495,4164,3126],{4164:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var a,i={exports:{}};a=i,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if("string"===o||"number"===o)r.push(i);else if(Array.isArray(i)){if(i.length){var n=t.apply(null,i);n&&r.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&r.push(s);else r.push(i.toString())}}return r.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var o=i.exports},3126:function(e,t,r){function a(e){return!Number.isNaN(parseFloat(e))}function i(e,t,r){void 0===r&&(r="slot");var a=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(a)}function o(e){return 1===e?"":"s"}function n(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var a=t-e.length;r="".concat(a," character").concat(o(a)," left")}else a=e.length-t,r="".concat(a," character").concat(o(a)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return c},a:function(){return i},b:function(){return a},c:function(){return b},d:function(){return m},e:function(){return g},f:function(){return n},g:function(){return d},h:function(){return h},i:function(){return f},m:function(){return s},s:function(){return u},u:function(){return v}}),r(2625);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&r.push(t),r}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(c._entity,c.getEntity));return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(p(e)||p(t)){if(!p(e)||!p(t))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(t),r,a)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),n=Object.keys(t);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return a[s]===t;r.push(e),a.push(t),o.sort(),n.sort();for(var l=o.length-1;l>=0;l--)if(o[l]!==n[l])return!1;for(var u=void 0,c=o.length-1;c>=0;c--)if(!m(e[u=o[c]],t[u],r,a))return!1;return r.pop(),a.pop(),!0}function b(e,t){var r;return function(){for(var a=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(r),r=setTimeout((function(){return e.apply(a,i)}),t)}}function g(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function v(e,t,r){e&&(e.innerText=n(t,g(r)))}},8495:function(e,t,r){r.r(t),r.d(t,{va_select:function(){return s}});var a=r(2625),i=r(4164),o=(r(2404),r(3126)),n=r(2265),s=function(){function e(e){(0,a.r)(this,e),this.vaKeyDown=(0,a.c)(this,"vaKeyDown",7),this.vaSelect=(0,a.c)(this,"vaSelect",7),this.vaSelectBlur=(0,a.c)(this,"vaSelectBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.required=!1,this.hideRequiredText=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.fullWidth=!1,this.showError=!0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.options=void 0}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.handleKeyDown=function(){this.vaKeyDown.emit()},e.prototype.handleBlur=function(e){var t=e.target;this.value=t.value,this.vaSelectBlur.emit({value:this.value})},e.prototype.handleChange=function(e){var t=e.target;if(this.value=t.value,this.enableAnalytics){var r={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(r)}this.vaSelect.emit({value:this.value})},e.prototype.populateOptions=function(){var e=this.value,t=(0,o.a)(this.el,null,"#select-container slot").filter((function(e){var t=e.nodeName.toLowerCase();return"option"===t||"optgroup"===t}));this.options=t.map((function(t){return"optgroup"===t.nodeName.toLowerCase()?(0,a.h)("optgroup",{label:t.label},Array.from(t.children).map((function(t){return(0,a.h)("option",{value:t.value,selected:e===t.value},t.text)}))):"option"===t.nodeName.toLowerCase()?(0,a.h)("option",{value:t.value,selected:e===t.value},t.textContent):void 0}))},e.prototype.handleValueChange=function(){this.populateOptions()},e.prototype.render=function(){var e,t=this,r=this,s=r.error,l=r.reflectInputError,u=r.invalid,c=r.label,d=r.required,h=r.hideRequiredText,f=r.name,p=r.hint,m=r.messageAriaDescribedby,b=r.width,g=r.fullWidth,v=r.showError,y=r.useFormsPattern,w=r.formHeadingLevel,x=r.headerAriaDescribedby,k=r.formHeading,z="input-error-message",C="".concat(m?"input-message":""," ").concat(s?z:""," ").concat(p?"input-hint":"").trim()||null,T=(0,o.g)(this.labelHeaderLevel),S=x?"header-message":null,A=(0,i.c)({"usa-label":!0,"usa-label--error":s}),N=(0,i.c)(((e={"usa-select":!0,"usa-input--error":s||l})["usa-input--".concat(b)]=b,e["va-select--full-width"]=g,e)),D=null;if(["single","multiple"].includes(y)){var q=(0,o.g)(w);D=(0,a.h)(a.F,{key:"af3cbbc2589a094701b3cb5aaa4028f10e87c312"},k&&(0,a.h)(q,{key:"65a26102386bc62989c79511195c141f575b3319",id:"form-question",part:"form-header"},k),(0,a.h)("div",{key:"321b20bf97edc427bb4fe5ddb9796b296b983fc9",id:"form-description"},(0,a.h)("slot",{key:"6a24c3c0326f11ce38235a00476ec470099ffa98",name:"form-description"})))}var L=(0,a.h)("label",{key:"c7c0fb47d606ebb2ce2d7aadc49c61c80f52cb9d",htmlFor:"options",class:A,part:"label"},c,"multiple"===y&&x?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},(0,a.h)("span",null,c),(0,a.h)("span",null,x)):"multiple"===y?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},c):x?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},x):null,d&&!h&&(0,a.h)("span",{key:"d659fee32bc9573f8c31166a41bd31943dd6b9fc",class:"usa-label--required"}," ",n.i.t("required")));return(0,a.h)(a.H,{key:"b16ecabf52635c19a759f474f01a5671e71a79be"},D,c&&T?(0,a.h)(T,{part:"header","aria-describedby":S},L):L,p&&(0,a.h)("span",{key:"9fa8e0741693c0f9a93ee1077229c8ad4b80ae27",class:"usa-hint"},p),(0,a.h)("span",{key:"625d42365494f5056c3fd206cac42409aa7f3d41",id:z,role:"alert"},v&&s&&(0,a.h)(a.F,{key:"025589594f8e78131296da08c3578d26db6337f3"},(0,a.h)("span",{key:"b4bb0ec823ac102363edb42e90c0b35e82ae69f8",class:"usa-sr-only"},n.i.t("error")),(0,a.h)("span",{key:"ad1c13b46f19bc7e726caba616169b2174e38df7",class:"usa-error-message"},s))),(0,a.h)("div",{key:"03fb9f64ad2f30865f4f55fdc8c5a85c06f219f6",id:"select-container"},(0,a.h)("slot",{key:"6d2934623db555600ecf5b2364c0b65be83d05e1",onSlotchange:function(){return t.populateOptions()}}),(0,a.h)("select",{key:"ec5336864756fc95c488b5d5bde9d80ec7caf9d8",class:N,"aria-describedby":C,"aria-invalid":u||s?"true":"false",id:"options",name:f,required:d||null,onKeyDown:function(){return t.handleKeyDown()},onChange:function(e){return t.handleChange(e)},onBlur:function(e){return t.handleBlur(e)},part:"select"},(0,a.h)("option",{key:"0",value:"",selected:!0},n.i.t("select")),this.options)),(0,o.i)(m)&&(0,a.h)("span",{key:"3d917428371791d77f8dc12d86bfd51c4d62b4ef",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},m))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:1.875rem}h2{font-size:1.5rem}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-select,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-select,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-select{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}h1 .usa-label,h2 .usa-label,h3 .usa-label,h4 .usa-label,h5 .usa-label,h6 .usa-label{font-family:inherit;font-size:inherit;font-weight:inherit}h1 .usa-label .usa-label--required,h2 .usa-label .usa-label--required,h3 .usa-label .usa-label--required,h4 .usa-label .usa-label--required,h5 .usa-label .usa-label--required,h6 .usa-label .usa-label--required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option),::slotted(optgroup){display:none}.va-select--full-width{max-width:100%;width:100%}'}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 4996.app.bundle.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,4996],{4569:function(e,t,o){o.r(t),o.d(t,{c:function(){return a}});var r,n={exports:{}};r=n,function(){var e={}.hasOwnProperty;function t(){for(var o=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var a=typeof n;if("string"===a||"number"===a)o.push(n);else if(Array.isArray(n)){if(n.length){var i=t.apply(null,n);i&&o.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)e.call(n,s)&&n[s]&&o.push(s);else o.push(n.toString())}}return o.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var a=n.exports},4996:function(e,t,o){o.r(t),o.d(t,{va_sidenav_item:function(){return a}});var r=o(1484),n=o(4569),a=function(){function e(e){(0,r.r)(this,e),this.vaRouteChange=(0,r.c)(this,"vaRouteChange",7),this.href=void 0,this.label=void 0,this.currentPage=void 0,this.routerLink=void 0}return e.prototype.handleClick=function(e){this.routerLink&&(e.preventDefault(),this.vaRouteChange.emit({href:this.href}))},e.prototype.render=function(){var e=(0,n.c)({"va-sidenav-item__current":this.currentPage}),t=this.currentPage?"#content":this.href;return(0,r.h)(r.H,{key:"982fa0632d6d162edc93697d1fd8af3ac36b944b",role:"listitem"},(0,r.h)("a",{key:"1ea624704b3c177934ad36076abda35d7b0bc0c8",class:e,href:t,"aria-current":this.currentPage?"page":void 0,onClick:this.handleClick.bind(this)},this.label),(0,r.h)("slot",{key:"72d5b2f74a34d9fe8f83939eb3bd45cec4fff740"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();a.style="button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}:host{display:block;list-style-type:none;padding-left:0;margin:0;border-bottom:1px solid var(--vads-color-base-lightest)}:host:active{background-color:var(--vads-color-action-focus-on-light);color:var(--vads-color-base);-webkit-box-shadow:inset 0px -4px 0px var(--vads-color-base);box-shadow:inset 0px -4px 0px var(--vads-color-base);z-index:1}a{color:var(--vads-color-link);display:block;line-height:var(--vads-font-line-height-4);padding:0.5rem 0.25rem 0.5rem 1rem;padding-left:var(--va-sidenav-item-link-padding-left, 1rem);text-decoration:none}[href]:focus{outline:none !important}a:hover{background-color:var(--vads-color-base-lightest);-webkit-box-shadow:none;box-shadow:none}.va-sidenav-item__current{position:relative;font-weight:var(--font-weight-bold)}.va-sidenav-item__current::after{background-color:var(--vads-color-link);content:\"\";display:block;position:absolute;bottom:0.25rem;top:0.25rem;width:0.25rem;left:0;z-index:1}"}}]);
1
+ /*! For license information please see 8735.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([[8735,4164],{4164:function(e,t,o){o.r(t),o.d(t,{c:function(){return a}});var r,n={exports:{}};r=n,function(){var e={}.hasOwnProperty;function t(){for(var o=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var a=typeof n;if("string"===a||"number"===a)o.push(n);else if(Array.isArray(n)){if(n.length){var i=t.apply(null,n);i&&o.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)e.call(n,s)&&n[s]&&o.push(s);else o.push(n.toString())}}return o.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var a=n.exports},8735:function(e,t,o){o.r(t),o.d(t,{va_sidenav_item:function(){return a}});var r=o(2625),n=o(4164),a=function(){function e(e){(0,r.r)(this,e),this.vaRouteChange=(0,r.c)(this,"vaRouteChange",7),this.href=void 0,this.label=void 0,this.currentPage=void 0,this.routerLink=void 0}return e.prototype.handleClick=function(e){this.routerLink&&(e.preventDefault(),this.vaRouteChange.emit({href:this.href}))},e.prototype.render=function(){var e=(0,n.c)({"va-sidenav-item__current":this.currentPage}),t=this.currentPage?"#content":this.href;return(0,r.h)(r.H,{key:"982fa0632d6d162edc93697d1fd8af3ac36b944b",role:"listitem"},(0,r.h)("a",{key:"1ea624704b3c177934ad36076abda35d7b0bc0c8",class:e,href:t,"aria-current":this.currentPage?"page":void 0,onClick:this.handleClick.bind(this)},this.label),(0,r.h)("slot",{key:"72d5b2f74a34d9fe8f83939eb3bd45cec4fff740"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();a.style="button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}:host{display:block;list-style-type:none;padding-left:0;margin:0;border-bottom:1px solid var(--vads-color-base-lightest)}:host:active{background-color:var(--vads-color-action-focus-on-light);color:var(--vads-color-base);-webkit-box-shadow:inset 0px -4px 0px var(--vads-color-base);box-shadow:inset 0px -4px 0px var(--vads-color-base);z-index:1}a{color:var(--vads-color-link);display:block;line-height:var(--vads-font-line-height-4);padding:0.5rem 0.25rem 0.5rem 1rem;padding-left:var(--va-sidenav-item-link-padding-left, 1rem);text-decoration:none}[href]:focus{outline:none !important}a:hover{background-color:var(--vads-color-base-lightest);-webkit-box-shadow:none;box-shadow:none}.va-sidenav-item__current{position:relative;font-weight:var(--font-weight-bold)}.va-sidenav-item__current::after{background-color:var(--vads-color-link);content:\"\";display:block;position:absolute;bottom:0.25rem;top:0.25rem;width:0.25rem;left:0;z-index:1}"}}]);