@department-of-veterans-affairs/component-library 51.4.0 → 52.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/0.app.bundle.js +1 -1
  2. package/dist/1822.app.bundle.js +1 -1
  3. package/dist/2236.app.bundle.js +1 -1
  4. package/dist/251.app.bundle.js +1 -1
  5. package/dist/2923.app.bundle.js +1 -1
  6. package/dist/2986.app.bundle.js +1 -1
  7. package/dist/3397.app.bundle.js +1 -1
  8. package/dist/3589.app.bundle.js +1 -1
  9. package/dist/3601.app.bundle.js +2 -0
  10. package/dist/3601.app.bundle.js.LICENSE.txt +5 -0
  11. package/dist/4400.app.bundle.js +1 -1
  12. package/dist/4432.app.bundle.js +1 -1
  13. package/dist/4475.app.bundle.js +1 -1
  14. package/dist/4780.app.bundle.js +1 -1
  15. package/dist/5341.app.bundle.js +1 -1
  16. package/dist/5348.app.bundle.js +2 -0
  17. package/dist/5348.app.bundle.js.LICENSE.txt +5 -0
  18. package/dist/5663.app.bundle.js +1 -1
  19. package/dist/606.app.bundle.js +1 -1
  20. package/dist/6308.app.bundle.js +1 -1
  21. package/dist/6555.app.bundle.js +1 -1
  22. package/dist/6650.app.bundle.js +1 -1
  23. package/dist/6830.app.bundle.js +1 -1
  24. package/dist/6849.app.bundle.js +1 -1
  25. package/dist/7166.app.bundle.js +1 -1
  26. package/dist/7307.app.bundle.js +1 -1
  27. package/dist/7372.app.bundle.js +1 -1
  28. package/dist/7734.app.bundle.js +1 -1
  29. package/dist/8039.app.bundle.js +1 -0
  30. package/dist/8255.app.bundle.js +1 -1
  31. package/dist/8762.app.bundle.js +1 -0
  32. package/dist/8913.app.bundle.js +1 -1
  33. package/dist/9186.app.bundle.js +1 -1
  34. package/dist/9376.app.bundle.js +1 -1
  35. package/dist/9496.app.bundle.js +1 -1
  36. package/dist/960.app.bundle.js +1 -1
  37. package/dist/app.bundle.js +1 -1
  38. package/dist/components/index.d.ts +6 -0
  39. package/dist/components/index.js +1 -1
  40. package/dist/components/types/components.d.ts +215 -15
  41. package/dist/components/utils.js +1 -1
  42. package/dist/components/va-accordion-item2.js +1 -1
  43. package/dist/components/va-alert-expandable.js +1 -1
  44. package/dist/components/va-alert2.js +1 -1
  45. package/dist/components/va-banner.js +1 -1
  46. package/dist/components/va-checkbox2.js +1 -1
  47. package/dist/components/va-file-input-multiple.js +1 -1
  48. package/dist/components/va-file-input2.js +1 -1
  49. package/dist/components/va-link2.js +1 -1
  50. package/dist/components/va-modal2.js +1 -1
  51. package/dist/components/va-omb-info.js +1 -1
  52. package/dist/components/va-segmented-progress-bar.js +1 -1
  53. package/dist/components/va-service-list-item.js +1 -1
  54. package/dist/components/va-sidenav.js +1 -1
  55. package/dist/components/va-tab-item.d.ts +11 -0
  56. package/dist/components/va-tab-item.js +1 -0
  57. package/dist/components/va-tab-panel.d.ts +11 -0
  58. package/dist/components/va-tab-panel.js +1 -0
  59. package/dist/components/va-tabs.d.ts +11 -0
  60. package/dist/components/va-tabs.js +1 -0
  61. package/dist/components/va-telephone-input.js +1 -1
  62. package/dist/components/va-telephone2.js +1 -1
  63. package/dist/components/va-text-input2.js +1 -1
  64. package/dist/components/va-textarea.js +1 -1
  65. package/dist/react-bindings/index.d.ts +3 -0
  66. package/dist/react-bindings/index.js +1 -1
  67. package/dist/react-bindings/index.js.map +1 -1
  68. package/dist/react-bindings/index.ts +3 -0
  69. package/package.json +3 -3
  70. package/dist/7508.app.bundle.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6555,7508],{7508:function(e,t,a){function i(e){return!Number.isNaN(parseFloat(e))}function n(e,t,a){void 0===a&&(a="slot");var i=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(r(i)," left")}else i=e.length-t,a="".concat(i," character").concat(r(i)," over limit");return a}function s(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return n},b:function(){return i},c:function(){return b},d:function(){return m},e:function(){return o},f:function(){return h},g:function(){return f},i:function(){return u},m:function(){return s},s:function(){return c}}),a(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.getEntity));return t}};function f(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function u(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(p(e)||p(t)){if(!p(e)||!p(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),a,i)}if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);if(0===r.length&&0===o.length)return!0;if(r.length!==o.length)return!1;for(var s=a.length;s--;)if(a[s]===e)return i[s]===t;a.push(e),i.push(t),r.sort(),o.sort();for(var l=r.length-1;l>=0;l--)if(r[l]!==o[l])return!1;for(var c=void 0,d=r.length-1;d>=0;d--)if(!m(e[c=r[d]],t[c],a,i))return!1;return a.pop(),i.pop(),!0}function b(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var i=e.charAt(0).toLowerCase();return a.includes(i)?"an":"a"}},6555:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return O}});var i=a(7911),n=(a(5384),a(7508)),r=a(4665),o="usa",s="".concat(o,"-file-input"),l=".".concat(s),c="".concat(o,"-file-input__input"),d="".concat(o,"-file-input__target"),f=".".concat(c),h="".concat(o,"-file-input__box"),u="".concat(o,"-file-input__instructions"),p="".concat(o,"-file-input__preview"),m="".concat(o,"-file-input__preview-heading"),b="".concat(o,"-file-input--disabled"),g="".concat(o,"-file-input__choose"),v="".concat(o,"-file-input__accepted-files-message"),y="".concat(o,"-file-input__drag-text"),x="".concat(o,"-file-input--drag"),w="is-loading",k="has-invalid-file",S="".concat(o,"-file-input__preview-image"),A="".concat(S,"--generic"),z="".concat(S,"--pdf"),T="".concat(S,"--word"),C="".concat(S,"--video"),L="".concat(S,"--excel"),F="".concat(o,"-sr-only"),_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=Boolean(!0),M="",q="",H=function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"img_".concat(e.toLowerCase()):"__000".concat(t.toString(16).slice(-4))},N=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(h),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=N(e),i=document.createElement("div"),r="Drag ".concat(a," here or"),o="choose from folder";return M="".concat(r," ").concat(o),i.classList.add(u),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",M),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(r,'</span> <span class="').concat(g,'">').concat(o,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(y)).outerHTML=""),i}(e),r=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?r.classList.add(b):function(e){var t=document.createElement("div"),a=N(e),i=e.closest(l),n=e.closest(".".concat(d));q="No ".concat(a," selected."),t.classList.add(F),t.setAttribute("aria-live","polite"),t.textContent=q,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},B=function(e,t){var a=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},I=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var r=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var o=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var h=0;h<o.length;h+=1){var u=o[h];if(l=f.name.indexOf(u)>0||r(f.type,u.replace(/\*/g,""))){E=!0;break}}}l||(B(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),E=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===E&&function(e,t,a,i){var r=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],o=i.closest(".".concat(s)).querySelector(".".concat(F)),l=[];B(i,a);for(var c=function(e){var t,o=new FileReader,s=r[e].name;l.push(s),o.onloadstart=function(){t=function(e){return"".concat(e,"-").concat(Math.floor(Date.now()/1e3))}(function(e){return e.replace(/[^a-z0-9]/g,H)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(_,'" alt="" class="').concat(S," ").concat(w,'"/>').concat(s,"\n <div>")))},o.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(z,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(L,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(C,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(A,'")')),e.classList.remove(w),e.src=o.result},r[e]&&o.readAsDataURL(r[e])},f=0;f<r.length;f+=1)c(f);0===r.length?t.setAttribute("aria-label",M):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),r=i.querySelector(".".concat(u)),o="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(o,"</span>")):t.length>1&&(o="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(o,"</span>"))),r.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,r),e.setAttribute("aria-label",o)}(t,r),function(e,t,a){var i=e,n=q;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(o,r,l)}(e,t,a,i)},j={".txt":"text/plain",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".odt":"application/vnd.oasis.opendocument.text",".rtf":"application/rtf",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".bmp":"image/bmp",".webp":"image/webp",".tif":"image/tiff",".tiff":"image/tiff",".svg":"image/svg+xml",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac",".mp4":"video/mp4",".avi":"video/x-msvideo",".mov":"video/quicktime",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".mkv":"video/x-matroska",".webm":"video/webm",".zip":"application/zip",".rar":"application/x-rar-compressed",".7z":"application/x-7z-compressed",".tar":"application/x-tar",".gz":"application/gzip",".json":"application/json",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript"},O=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.vaPasswordChange=(0,i.c)(this,"vaPasswordChange",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.chooseFileString="choose from folder",this.dragFileString="Drag a file here or ",this.FILE_PREVIEW_SIZE_LIMIT=5242880,this.handleChange=function(e){t.resetVisualState=!1;var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e,a){if(void 0===a&&(a=!0),t.accept){var i=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,i))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}return 0===e.size?(t.internalError="The file you selected is empty. Files must be larger than 0B.",void t.resetState()):e.size>t.maxFileSize?(t.internalError="\n We can't upload your file because it's too big. Files must be less than ".concat(t.formatFileSize(t.maxFileSize),"."),void t.resetState()):e.size<t.minFileSize?(t.internalError="We can't upload your file because it's too small. Files must be at least ".concat(t.formatFileSize(t.minFileSize),"."),void t.resetState()):(t.uploadedFile=null,t.file=e,a&&t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,e.size<t.FILE_PREVIEW_SIZE_LIMIT&&t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),void(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})))},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?j[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(a&&a>=1&&a<=6){var o="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(o,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.showSeparator=!0,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.value=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.statusText=void 0,this.uploadMessage=null,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1,this.readOnly=!1,this.encrypted=!1,this.uploadedFile=void 0,this.maxFileSize=1/0,this.minFileSize=0,this.percentUploaded=null,this.passwordError=void 0,this.resetVisualState=!1}return e.prototype.handleValueChange=function(e){var t=this;setTimeout((function(){t.updateStatusMessage(e)}))},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleError=function(e){e&&this.resetState()},e.prototype.resetState=function(){this.fileContents=null,this.uploadStatus="idle",this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var a=new FileReader;this.fileType=e.type,a.onloadend=function(){t.fileContents=a.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&a.readAsDataURL(e)}},e.prototype.componentWillRender=function(){var e=!!this.el.querySelector(":scope > *"),t=!(!this.value&&!this.file||this.readOnly);this.showSeparator=e||t},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=R(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){I(t,e,a,i);var r=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(r)}}),!1),e.addEventListener("input",(function(t){return I(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.getDefaultUploadMessage=function(){return(0,i.h)("span",null,this.dragFileString,(0,i.h)("span",{class:"file-input-choose-text"},this.chooseFileString))},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,o=t.required,s=t.accept,l=t.error,c=t.hint,d=t.file,f=t.uploadStatus,h=t.dragFileString,u=t.chooseFileString,p=t.uploadMessage,m=t.headerSize,b=t.fileContents,g=t.fileType,v=t.headless,y=t.value,x=t.readOnly,w=t.encrypted,k=t.statusText,S=t.uploadedFile,A=t.percentUploaded,z=t.passwordError,T=t.resetVisualState;y&&!this.file&&this.handleFile(y,!1);var C=l||this.internalError,L="".concat(c?"input-hint-message":""," ").concat(C?"input-error-message":"").trim()||null,F="file-input-target ".concat(C?"file-input-target-error":"").trim(),_=(0,i.h)("div",{key:"a8147f8da0cb8b080f33d487afba34d00a375ba5",class:"thumbnail-container"},(0,i.h)("svg",{key:"9adc7d012279d6d1c387473ec20bdd30398d594a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"6122c0411f084eda2039356f9e8c2464ddf4782e",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?_=(0,i.h)("div",{key:"f74993cb63fea2aaadb69feab51e3d6c5eec135a",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"fd79026cb78d04036aa7abd4f11b72f3c5146972",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):b&&(g.startsWith("image/")?_=(0,i.h)("div",{key:"bb009cbbb587c00d29dad4cc135b4c6effd81d4a",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"2a572be0dc1579962b4ccf96365de48cdcab697d",class:"thumbnail-preview",src:b,alt:"image"})):"application/pdf"===g&&(_=(0,i.h)("div",{key:"f0318c876c0c48cff42e5fdf5781388b37dd7c5e",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"fac0943836f9f502ca82b029260ee60a4be06dfc",class:"thumbnail-preview",data:b,type:"application/pdf"}))));var E=v?"headless-selected-files-wrapper":"selected-files-wrapper",M="usa-hint"+(v?" usa-sr-only":""),q=null!==A&&A<100,H="file-status-label";return q&&(H="".concat(H," uploading-status")),(0,i.h)(i.H,{key:"37781c9877d7f5c181df4dbc42adaa501044da54",class:{"has-error":!!C}},!x&&(0,i.h)("span",{key:"4cafef4d3360af3e1e20b5abee7116427678d1d7",class:{"usa-sr-only":!!v}},a&&this.renderLabelOrHeader(a,o,m)),c&&!x&&(0,i.h)("div",{key:"c0d30f964f241573f83e3178049425e6fb74bc65",class:M,id:"input-hint-message"},c),(0,i.h)("div",{key:"d7c4321d873eef1f4cf50a82955674d2d62db8ac",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"fcdfc42a3a71d2c5495a54e7c4b39dd491095ea5",id:"fileInputField",class:"file-input","aria-label":"".concat(a).concat(o?" "+r.i.t("required"):"",". ").concat(h).concat(u),style:{visibility:"success"===this.uploadStatus||S?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":L,onChange:this.handleChange}),"idle"===f&&(!S||T)&&(0,i.h)("div",{key:"758b3ade629346c31843f28b2d0a3f21d0987a3f"},(0,i.h)("span",{key:"130f00af6b61bbaeffe7f82ca11fec45365d5f04",id:"file-input-error-alert",role:"alert"},C&&(0,i.h)(i.F,{key:"70681de5a0f6f56a447b75ca76fb39602ec43f09"},(0,i.h)("span",{key:"1f15abf78d104092a9c25c3a5b9ea2f6b8e28a92",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"f1d535d569c6c1e5e217e087032a209b5f7d3bce",class:"usa-error-message"},C))),(0,i.h)("div",{key:"c4003675c5243e6db58660159faa275a1c46ec5e",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"d90c463c57946bb09419da3f39e364d10024fab8",class:F},(0,i.h)("div",{key:"efdc66ddc32316bf8223bd171761cac515837c6f",class:"file-input-box"}),(0,i.h)("div",{key:"56a57c1e586ddad014a52c54e79e722f48523f6a",class:"file-input-instructions"},p||this.getDefaultUploadMessage()))),!T&&("idle"!==f||S)&&(0,i.h)("div",{key:"e0dec646ae39cc6cbbe358f0ea376b032522ecb9",class:E},!v&&(0,i.h)("div",{key:"350a72c12e41fb2f3b6185f4e384bf18a62e1c1b",class:"selected-files-label"},x?"Files you uploaded":"Selected files"),(0,i.h)("div",{key:"6d99979169229ac6d3793bdcc287ffc52c2a5d77",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"f8e12be2be5e1cdd9cb85ea879ba11c9ec794299",class:"va-card"},(0,i.h)("div",{key:"830095c8b6eed03024d24f8afc523b84b4ec2275",class:"file-info-section"},_,(0,i.h)("div",{key:"55c5c74f081461a461593ebda2d87c828e8a4ccb",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"ffaac7a0b5faae4cb7b80ead605f5a01f8b942b2",class:"file-label"},d?d.name:S.name),C&&(0,i.h)("span",{key:"08d6db853f80afef3771c1d95d39555f26c41dbc",id:"input-error-message",role:"alert"},(0,i.h)("span",{key:"022ac299251482dfb5573b893e8bc2e258777d95",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"76e7aaac76ce6fb4546547461380c4563cec6e13","aria-live":"polite",class:"usa-error-message"},C)),!q&&(0,i.h)("span",{key:"5a0d65be1cd32bf27a29ea54acf8b11286ccd9b6",class:"file-size-label"},this.formatFileSize(d?d.size:S.size)),(0,i.h)("span",{key:"5c449f21a0bf5f2370901414da78d996fdbad733",class:H,"aria-live":"polite"},q?"Uploading...":k))),(d||y||S)&&(0,i.h)("div",{key:"0019699b466d8378d34de9501fb54e509db14e6e"},this.showSeparator&&(0,i.h)("hr",{key:"cfdd71b6c6f6cf29199d31eb4ec59833d3e3835d",class:"separator"}),w&&(0,i.h)("va-text-input",{key:"1db7bf8bfd8039c9dd042029887a87b27f4ce7e0",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:z}),(0,i.h)("div",{key:"c996bde181bd3301abacb7595708872293cd1565",class:"additional-info-slot"},(0,i.h)("slot",{key:"b79a5b765a7d004ee98c399a93b2ce405ee9a051"})),x?null:q?(0,i.h)(i.F,null,(0,i.h)("va-progress-bar",{percent:A}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})):(0,i.h)(i.F,null,(0,i.h)("div",{class:"file-button-section"},(0,i.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file ".concat(d?d.name:S.name)}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file ".concat(d?d.name:S.name),label:"Delete"})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll delete the uploaded file"," ",(0,i.h)("span",{class:"file-label"},d?d.name:S.name))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{statusText:["handleValueChange"],percentUploaded:["percentHandler"],resetVisualState:["handleError"]}},enumerable:!1,configurable:!0}),e}();O.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:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}'}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6555,8039],{8039:function(e,t,a){function i(e){return!Number.isNaN(parseFloat(e))}function n(e,t,a){void 0===a&&(a="slot");var i=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(r(i)," left")}else i=e.length-t,a="".concat(i," character").concat(r(i)," over limit");return a}function s(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return n},b:function(){return i},c:function(){return b},d:function(){return m},e:function(){return g},f:function(){return v},g:function(){return f},h:function(){return o},i:function(){return h},j:function(){return u},m:function(){return s},s:function(){return c},u:function(){return y}}),a(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.getEntity));return t}};function f(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function u(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(p(e)||p(t)){if(!p(e)||!p(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),a,i)}if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);if(0===r.length&&0===o.length)return!0;if(r.length!==o.length)return!1;for(var s=a.length;s--;)if(a[s]===e)return i[s]===t;a.push(e),i.push(t),r.sort(),o.sort();for(var l=r.length-1;l>=0;l--)if(r[l]!==o[l])return!1;for(var c=void 0,d=r.length-1;d>=0;d--)if(!m(e[c=r[d]],t[c],a,i))return!1;return a.pop(),i.pop(),!0}function b(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var i=e.charAt(0).toLowerCase();return a.includes(i)?"an":"a"}function g(e,t){var a;return function(){for(var i=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];clearTimeout(a),a=setTimeout((function(){return e.apply(i,n)}),t)}}function v(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function y(e,t,a){e&&(e.innerText=o(t,v(a)))}},6555:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return P}});var i=a(7911),n=(a(5384),a(8039)),r=a(4665),o="usa",s="".concat(o,"-file-input"),l=".".concat(s),c="".concat(o,"-file-input__input"),d="".concat(o,"-file-input__target"),f=".".concat(c),u="".concat(o,"-file-input__box"),h="".concat(o,"-file-input__instructions"),p="".concat(o,"-file-input__preview"),m="".concat(o,"-file-input__preview-heading"),b="".concat(o,"-file-input--disabled"),g="".concat(o,"-file-input__choose"),v="".concat(o,"-file-input__accepted-files-message"),y="".concat(o,"-file-input__drag-text"),x="".concat(o,"-file-input--drag"),w="is-loading",k="has-invalid-file",S="".concat(o,"-file-input__preview-image"),A="".concat(S,"--generic"),z="".concat(S,"--pdf"),T="".concat(S,"--word"),F="".concat(S,"--video"),C="".concat(S,"--excel"),L="".concat(o,"-sr-only"),_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=Boolean(!0),M="",q="",N=function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"img_".concat(e.toLowerCase()):"__000".concat(t.toString(16).slice(-4))},R=function(e){return e.hasAttribute("multiple")?"files":"file"},H=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(u),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=R(e),i=document.createElement("div"),r="Drag ".concat(a," here or"),o="choose from folder";return M="".concat(r," ").concat(o),i.classList.add(h),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",M),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(r,'</span> <span class="').concat(g,'">').concat(o,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(y)).outerHTML=""),i}(e),r=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?r.classList.add(b):function(e){var t=document.createElement("div"),a=R(e),i=e.closest(l),n=e.closest(".".concat(d));q="No ".concat(a," selected."),t.classList.add(L),t.setAttribute("aria-live","polite"),t.textContent=q,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},I=function(e,t){var a=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},B=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var r=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var o=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var u=0;u<o.length;u+=1){var h=o[u];if(l=f.name.indexOf(h)>0||r(f.type,h.replace(/\*/g,""))){E=!0;break}}}l||(I(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),E=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===E&&function(e,t,a,i){var r=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],o=i.closest(".".concat(s)).querySelector(".".concat(L)),l=[];I(i,a);for(var c=function(e){var t,o=new FileReader,s=r[e].name;l.push(s),o.onloadstart=function(){t=function(e){return"".concat(e,"-").concat(Math.floor(Date.now()/1e3))}(function(e){return e.replace(/[^a-z0-9]/g,N)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(_,'" alt="" class="').concat(S," ").concat(w,'"/>').concat(s,"\n <div>")))},o.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(z,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(C,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(F,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(A,'")')),e.classList.remove(w),e.src=o.result},r[e]&&o.readAsDataURL(r[e])},f=0;f<r.length;f+=1)c(f);0===r.length?t.setAttribute("aria-label",M):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),r=i.querySelector(".".concat(h)),o="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(o,"</span>")):t.length>1&&(o="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(o,"</span>"))),r.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,r),e.setAttribute("aria-label",o)}(t,r),function(e,t,a){var i=e,n=q;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(o,r,l)}(e,t,a,i)},j={".txt":"text/plain",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".odt":"application/vnd.oasis.opendocument.text",".rtf":"application/rtf",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".bmp":"image/bmp",".webp":"image/webp",".tif":"image/tiff",".tiff":"image/tiff",".svg":"image/svg+xml",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac",".mp4":"video/mp4",".avi":"video/x-msvideo",".mov":"video/quicktime",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".mkv":"video/x-matroska",".webm":"video/webm",".zip":"application/zip",".rar":"application/x-rar-compressed",".7z":"application/x-7z-compressed",".tar":"application/x-tar",".gz":"application/gzip",".json":"application/json",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript"},P=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.vaPasswordChange=(0,i.c)(this,"vaPasswordChange",7),this.vaFileInputError=(0,i.c)(this,"vaFileInputError",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.chooseFileString="choose from folder",this.dragFileString="Drag a file here or ",this.FILE_PREVIEW_SIZE_LIMIT=5242880,this.handleChange=function(e){t.resetVisualState=!1;var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e,a){void 0===a&&(a=!0);var i=null;if(t.accept){var n=t.normalizeAcceptProp(t.accept);t.isAcceptedFileType(e.type,n)||(t.removeFile(!1),i="This is not a valid file type.")}if(0===e.size&&(i="The file you selected is empty. Files must be larger than 0B."),e.size>t.maxFileSize&&(i="\n We can't upload your file because it's too big. Files must be less than ".concat(t.formatFileSize(t.maxFileSize),".")),e.size<t.minFileSize&&(i="We can't upload your file because it's too small. Files must be at least ".concat(t.formatFileSize(t.minFileSize),".")),i)return t.internalError=i,t.vaFileInputError.emit({error:i}),void t.resetState();t.uploadedFile=null,t.file=e,a&&t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,e.size<t.FILE_PREVIEW_SIZE_LIMIT&&t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.updateStatusMessage("File deleted. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?j[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(a&&a>=1&&a<=6){var o="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(o,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.showSeparator=!0,this.label=void 0,this.name=void 0,this.value=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.statusText=void 0,this.uploadMessage=null,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1,this.readOnly=!1,this.encrypted=!1,this.uploadedFile=void 0,this.maxFileSize=1/0,this.minFileSize=0,this.percentUploaded=null,this.passwordError=void 0,this.resetVisualState=!1}return e.prototype.handleValueChange=function(e){var t=this;setTimeout((function(){t.updateStatusMessage(e)}))},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleResetVisualState=function(e){e&&this.resetState()},e.prototype.handleError=function(e,t){t&&e&&this.resetState()},e.prototype.resetState=function(){this.fileContents=null,this.uploadStatus="idle",this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){return function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){e.done?a(e.value):n(e.value).then(o,s)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,a,i,n,r=this;return function(e,t){var a,i,n,r,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(s){if(a)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(a=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(6===s[0]&&o.label<n[1]){o.label=n[1],n=s;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(s);break}n[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{a=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(o){switch(o.label){case 0:return e?[4,e.slice(0,20).arrayBuffer()]:[2];case 1:return t=o.sent(),a=new Uint8Array(t),i=a.every((function(e){return 0===e})),i||(n=new FileReader,this.fileType=e.type,n.onloadend=function(){r.fileContents=n.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&n.readAsDataURL(e)),[2]}}))}))},e.prototype.componentWillRender=function(){var e=!!this.el.querySelector(":scope > *"),t=!(!this.value&&!this.file||this.readOnly);this.showSeparator=e||t},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=H(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){B(t,e,a,i);var r=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(r)}}),!1),e.addEventListener("input",(function(t){return B(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.getDefaultUploadMessage=function(){return(0,i.h)("span",null,this.dragFileString,(0,i.h)("span",{class:"file-input-choose-text"},this.chooseFileString))},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,o=t.required,s=t.accept,l=t.error,c=t.hint,d=t.dragFileString,f=t.chooseFileString,u=t.uploadMessage,h=t.headerSize,p=t.fileContents,m=t.fileType,b=t.headless,g=t.value,v=t.readOnly,y=t.encrypted,x=t.statusText,w=t.uploadedFile,k=t.percentUploaded,S=t.passwordError,A=t.resetVisualState;g&&!this.file&&this.handleFile(g,!1);var z=this.uploadStatus,T=this.file,F=l||this.internalError,C="".concat(c?"input-hint-message":""," ").concat(F?"input-error-message":"").trim()||null,L="file-input-target ".concat(F?"file-input-target-error":"").trim(),_=(0,i.h)("div",{key:"a37ee033bf7b33e0b610c5c6557d1c784f51d1e4",class:"thumbnail-container"},(0,i.h)("svg",{key:"878a9302603975ba779660f55a3501f0b9f78e13",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"37070122c24ad2018d1571dabc862cc98f76c824",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?_=(0,i.h)("div",{key:"9c201b6f22baf4aa80b1d103bf18714e390965d3",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"469bda7e898ec6b00b008f7a80dfd652d7d61ca8",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):p&&(m.startsWith("image/")?_=(0,i.h)("div",{key:"df0ba76dde9769a07527278647187090049c04f8",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"1a58ef08e824ea2a1fba9147aca46da3832ca1bd",class:"thumbnail-preview",src:p,alt:"image"})):"application/pdf"===m&&(_=(0,i.h)("div",{key:"aea5263641c1de8d5b5fe7901b4aecfca1433907",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"be367f8ec30b9e2c20ecf19b213f93b3838846e8",class:"thumbnail-preview",data:p,type:"application/pdf"}))));var E=b?"headless-selected-files-wrapper":"selected-files-wrapper",M="usa-hint"+(b?" usa-sr-only":""),q=null!==k&&k<100,N="file-status-label";return q&&(N="".concat(N," uploading-status")),(0,i.h)(i.H,{key:"359c0aef294acfaba667ced810c29732c350bfcb",class:{"has-error":!!F}},!v&&(0,i.h)("span",{key:"97a6d695f0f72d3c67989cab7de2fed0cb408f27",class:{"usa-sr-only":!!b}},a&&this.renderLabelOrHeader(a,o,h)),c&&!v&&(0,i.h)("div",{key:"67c5a9be3315484f21761ac33e5a22c49de9acc1",class:M,id:"input-hint-message"},c),(0,i.h)("div",{key:"a4d3bd3c321f2277c2d03c20165d5a9d4b01db5b",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"5ac45c79d32b2436e2e82bbb8ad45d8fe347b098",id:"fileInputField",class:"file-input","aria-label":"".concat(a).concat(o?" "+r.i.t("required"):"",". ").concat(d).concat(f),style:{visibility:"success"===this.uploadStatus||w?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":C,onChange:this.handleChange}),"idle"===z&&(!w||A)&&(0,i.h)("div",{key:"9246d4954e5a2c3be30083d5292387b9ec25fb4f"},(0,i.h)("span",{key:"d666b195c5147978cb638d169b3dd57605d4b738",id:"file-input-error-alert",role:"alert"},F&&(0,i.h)(i.F,{key:"7dcce8e05918d99efcbfdd974965163bf429497a"},(0,i.h)("span",{key:"690c0159346aeb366a93e8ba38e397fc6b5ae629",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"4e8ded0ec5f930e75df9e1298cf245fff4245bf1",class:"usa-error-message"},F))),(0,i.h)("div",{key:"4a201bb12b1385a552d87ca062b8ce7405927d87",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"2bc855ecfc75a679db05963bc6e16db55c519fd7",class:L},(0,i.h)("div",{key:"00a5dd6806677f82bf09a176d2e810913bc9b513",class:"file-input-box"}),(0,i.h)("div",{key:"2552254974811c1a6cacaa2e5700340d8f3b0ff7",class:"file-input-instructions"},u||this.getDefaultUploadMessage()))),!A&&("idle"!==z||w)&&(0,i.h)("div",{key:"d5b6755b8c0ffee3c37ad68145006962782433b1",class:E},!b&&(0,i.h)("div",{key:"cb1284bdd13a45ea506f2073f156ac80c89896eb",class:"selected-files-label"},v?"Files you uploaded":"Selected files"),(0,i.h)("div",{key:"ce05504fea2a3e516292be0d0c7f2d3e369e9510",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"e0734de8c67559528525909c790ed54c691ec872",class:"va-card"},(0,i.h)("div",{key:"e5dd286675bcaaaf3ae2badeb727fecd911c0eba",class:"file-info-section"},_,(0,i.h)("div",{key:"280475edb7b28efe4f974b6b7a71a3a48fe9b8f2",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"f3a2da94d975abb7dcd74e23aa0ab7e931644954",class:"file-label"},T?T.name:w.name),F&&(0,i.h)("span",{key:"66843d7ba1515081199777e4885b8720bda63615",id:"input-error-message",role:"alert"},(0,i.h)("span",{key:"7e252b04dfa12d6dc6b23e2384ec0d14147ecec5",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"213efa8104c58b75e3b6434818aaad08559590d2","aria-live":"polite",class:"usa-error-message"},F)),!q&&(0,i.h)("span",{key:"020a5937202a13fb318da4a679546f3caed62781",class:"file-size-label"},this.formatFileSize(T?T.size:w.size)),(0,i.h)("span",{key:"0e063fc6b681016196366c36ee322f8578d95d14",class:N,"aria-live":"polite"},q?"Uploading...":x))),(T||g||w)&&(0,i.h)("div",{key:"72343f7356d7b81602c43f3adc36966d5de280b3"},this.showSeparator&&(0,i.h)("hr",{key:"891e5a811f93f6e7e02cc6f478cdf5d6ea83aefd",class:"separator"}),y&&(0,i.h)("va-text-input",{key:"a798d8bc6aac4111f990c4c0898305bea668bb37",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:S}),(0,i.h)("div",{key:"fdd22f3bfc0828d54a3ceb0c4239c005a7e869ad",class:"additional-info-slot"},(0,i.h)("slot",{key:"5762a041a29a548720cc623162365c548e81ce7f"})),v?null:q?(0,i.h)(i.F,null,(0,i.h)("va-progress-bar",{percent:k}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})):(0,i.h)(i.F,null,(0,i.h)("div",{class:"file-button-section"},(0,i.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file ".concat(T?T.name:w.name)}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file ".concat(T?T.name:w.name),label:"Delete"})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, delete this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll delete the uploaded file"," ",(0,i.h)("span",{class:"file-label"},T?T.name:w.name))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{statusText:["handleValueChange"],percentUploaded:["percentHandler"],resetVisualState:["handleResetVisualState"],error:["handleError"]}},enumerable:!1,configurable:!0}),e}();P.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:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 6650.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,6650,7508],{4569:function(e,a,t){t.r(a),t.d(a,{c:function(){return o}});var r,i={exports:{}};r=i,function(){var e={}.hasOwnProperty;function a(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var n=a.apply(null,i);n&&t.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(" ")}r.exports?(a.default=a,r.exports=a):window.classNames=a}();var o=i.exports},7508:function(e,a,t){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,a,t){void 0===t&&(t="slot");var r=e.shadowRoot.querySelector(t).assignedNodes();return null!==a?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===a})):Array.from(r)}function o(e){return 1===e?"":"s"}function n(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(o(a)," allowed");var t;if(e.length<=a){var r=a-e.length;t="".concat(r," character").concat(o(r)," left")}else r=e.length-a,t="".concat(r," character").concat(o(r)," over limit");return t}function s(e,a){return Array.from({length:a-e+1},(function(a,t){return e+t}))}t.r(a),t.d(a,{S:function(){return c},a:function(){return i},b:function(){return r},c:function(){return p},d:function(){return m},e:function(){return n},f:function(){return f},g:function(){return d},i:function(){return h},m:function(){return s},s:function(){return u}}),t(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function u(e,a){var t=function(e,a){if("string"!=typeof e)return[];if(!a||!l(a))return[];var t=a.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,a);return"string"!=typeof e||l(a)&&a.matches(e)&&t.push(a),t}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var a="",t=0;t<e.length;t++)a+=e[t],t+1<arguments.length&&(a+=String(arguments[t+1]||"").replace(c._entity,c.getEntity));return a}};function d(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function b(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===a)return!0;if("function"==typeof e||"function"==typeof a)return!0;if("object"!=typeof e||"object"!=typeof a)return!1;if(null===e||null===a)return!1;if(e instanceof Date&&a instanceof Date)return e.getTime()===a.getTime();if(e instanceof RegExp&&a instanceof RegExp)return e.source===a.source&&e.global===a.global&&e.multiline===a.multiline&&e.lastIndex===a.lastIndex&&e.ignoreCase===a.ignoreCase;if(b(e)||b(a)){if(!b(e)||!b(a))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(a),t,r)}if(e.constructor!==a.constructor)return!1;var o=Object.keys(e),n=Object.keys(a);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return r[s]===a;t.push(e),r.push(a),o.sort(),n.sort();for(var 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]],a[u],t,r))return!1;return t.pop(),r.pop(),!0}function p(e,a){void 0===a&&(a=!0);var t=["a","i","e","o"];a&&t.push("u");var r=e.charAt(0).toLowerCase();return t.includes(r)?"an":"a"}},6650:function(e,a,t){t.r(a),t.d(a,{va_textarea:function(){return s}});var r=t(7911),i=t(4569),o=(t(5384),t(7508)),n=t(4665),s=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.handleInput=function(e){var t=e.target;a.value=t.value},this.handleBlur=function(){a.enableAnalytics&&a.value&&a.componentLibraryAnalytics.emit({componentName:"va-textarea",action:"blur",details:{label:a.label,value:a.value}})},this.label=void 0,this.error=void 0,this.placeholder=void 0,this.name=void 0,this.required=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.maxlength=void 0,this.value=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,r.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.getMaxlength=function(){if(!(this.maxlength<=0))return this.maxlength},e.prototype.render=function(){var e=this,a=e.label,t=e.error,s=e.placeholder,l=e.name,u=e.required,c=e.value,d=e.hint,f=e.charcount,h=e.messageAriaDescribedby,b=e.useFormsPattern,m=e.formHeadingLevel,p=e.headerAriaDescribedby,g=e.formHeading,v=this.getMaxlength(),y="".concat(t?"input-error-message":""," ").concat(f&&v?"charcount-message":""," ").concat(h?"input-message":"").trim()||null,x="".concat(b&&g?"form-question":""," ").concat(b?"form-description":""," ").concat(b&&a?"input-label":"").trim()||null,w=(0,o.g)(this.labelHeaderLevel),k=p?"header-message":null,_=f&&(null==c?void 0:c.length)>v,T=(0,i.c)({"usa-label":!0,"usa-label--error":t}),A=(0,i.c)({"usa-textarea":!0,"usa-input--error":t}),z=(0,i.c)({"usa-hint":!0,"usa-character-count__status":f,"usa-character-count__status--invalid":f&&v&&(null==c?void 0:c.length)>v}),S=null;if("single"===b||"multiple"===b){var N=(0,o.g)(m);S=(0,r.h)(r.F,{key:"1f037501ecd24e8b3f3f21f4647b22933325d3de"},g&&(0,r.h)(N,{key:"f43528c50b695bf493d35321705d076a1818e058",id:"form-question",part:"form-header"},g),(0,r.h)("div",{key:"0b46b411f67880ce7b5677b80122b3f6a467a332",id:"form-description"},(0,r.h)("slot",{key:"85f15c332d14e7cfd2a197bc8a47f8699f55462e",name:"form-description"})))}var q=(0,r.h)("label",{key:"eff8e5ed576e261f4b45baf37ea160c56b7ec806",htmlFor:"input-type-textarea",id:"input-label",class:T,part:"label"},a,"multiple"===b&&(0,r.h)("span",{key:"aa8b25adb0947a7217ff63092c3c0652d8b9349d",id:"header-message",class:"usa-sr-only"},a),p&&(0,r.h)("span",{key:"a2261e272d61ef2a991f43520e09e3fb2b4a0179",id:"header-message",class:"usa-sr-only"},p),u&&(0,r.h)("span",{key:"c21154fe1403822dbe58af07fe9a085b88281292",class:"usa-label--required"}," ",n.i.t("required")),d&&(0,r.h)("div",{key:"cf5f94ec85689791a25f0236dad632543217a154",class:"usa-hint"},d));return(0,r.h)(r.H,{key:"a79427f47d0baa7aa35d102a00e5183a5df06706"},S,(0,r.h)("div",{key:"82bd3b627a33555828278827a41983e4cc9d4a55",class:"input-wrap"},a&&w?(0,r.h)(w,{part:"header","aria-describedby":k},q):(0,r.h)(r.F,null,q),(0,r.h)("slot",{key:"b22013e2052c15de12602d13b49a28f88fdda995"}),(0,r.h)("span",{key:"649005258c24b3b00f84187ac9c9f93f38c7b6fb",id:"input-error-message",role:"alert"},t&&(0,r.h)(r.F,{key:"bbdb91c3f07277147c6d996f6ce8b6e911fdf60c"},(0,r.h)("span",{key:"1f6e2347a7dd4d74e55976db70b9071e4542a27f",class:"usa-sr-only"},n.i.t("error")),(0,r.h)("span",{key:"db6cec8667dad4439c26f9342ea7c05fa5b7adfc",class:"usa-error-message"},t))),(0,r.h)("textarea",{key:"b0b44638d556192368bd0991b45dd55b368ad983",class:A,"aria-describedby":y,"aria-invalid":t||_?"true":"false","aria-labelledby":x,onInput:this.handleInput,onBlur:this.handleBlur,id:"input-type-textarea",placeholder:s,name:l,maxLength:f?void 0:v,value:c,part:"input-type-textarea"}),!f&&v&&(null==c?void 0:c.length)>=v&&(0,r.h)("span",{key:"6fb3b0babc37a4b8e81fb4bebb4c36e3598109a5",class:z,"aria-live":"polite"},n.i.t("max-chars",{length:v})),f&&v&&(0,r.h)("span",{key:"7fdbe9b4ebd05bba7b4f4524c56841ed83823107",id:"charcount-message",class:z,"aria-live":"polite"},(0,o.e)(c,v)),(0,o.i)(h)&&(0,r.h)("span",{key:"a1ff0ce3cd2a9a6a893b1737b429e3e2d6432732",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-textarea,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-textarea,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:0;color:GrayText}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:2px solid GrayText}}.usa-textarea{height:10rem}.usa-character-count__status{display:inline-block;padding-top:0.25rem}.usa-character-count__status.usa-character-count__status--invalid{color:#b50909;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{color:var(--vads-color-base);display:block;resize:both;font-family:var(--font-source-sans)}:host(:focus){outline:none !important}.usa-hint{display:block;font-weight:normal}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}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,6650,8039],{4569:function(e,a,t){t.r(a),t.d(a,{c:function(){return n}});var r,i={exports:{}};r=i,function(){var e={}.hasOwnProperty;function a(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var n=typeof i;if("string"===n||"number"===n)t.push(i);else if(Array.isArray(i)){if(i.length){var o=a.apply(null,i);o&&t.push(o)}}else if("object"===n)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(" ")}r.exports?(a.default=a,r.exports=a):window.classNames=a}();var n=i.exports},8039:function(e,a,t){function r(e){return!Number.isNaN(parseFloat(e))}function i(e,a,t){void 0===t&&(t="slot");var r=e.shadowRoot.querySelector(t).assignedNodes();return null!==a?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===a})):Array.from(r)}function n(e){return 1===e?"":"s"}function o(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(n(a)," allowed");var t;if(e.length<=a){var r=a-e.length;t="".concat(r," character").concat(n(r)," left")}else r=e.length-a,t="".concat(r," character").concat(n(r)," over limit");return t}function s(e,a){return Array.from({length:a-e+1},(function(a,t){return e+t}))}t.r(a),t.d(a,{S:function(){return c},a:function(){return i},b:function(){return r},c:function(){return p},d:function(){return m},e:function(){return g},f:function(){return v},g:function(){return d},h:function(){return o},i:function(){return h},j:function(){return f},m:function(){return s},s:function(){return l},u:function(){return y}}),t(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var t=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var t=a.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&t.push(a),t}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var a="",t=0;t<e.length;t++)a+=e[t],t+1<arguments.length&&(a+=String(arguments[t+1]||"").replace(c._entity,c.getEntity));return a}};function d(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function b(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===a)return!0;if("function"==typeof e||"function"==typeof a)return!0;if("object"!=typeof e||"object"!=typeof a)return!1;if(null===e||null===a)return!1;if(e instanceof Date&&a instanceof Date)return e.getTime()===a.getTime();if(e instanceof RegExp&&a instanceof RegExp)return e.source===a.source&&e.global===a.global&&e.multiline===a.multiline&&e.lastIndex===a.lastIndex&&e.ignoreCase===a.ignoreCase;if(b(e)||b(a)){if(!b(e)||!b(a))return!1;var i=Array.prototype.slice;return m(i.call(e),i.call(a),t,r)}if(e.constructor!==a.constructor)return!1;var n=Object.keys(e),o=Object.keys(a);if(0===n.length&&0===o.length)return!0;if(n.length!==o.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return r[s]===a;t.push(e),r.push(a),n.sort(),o.sort();for(var u=n.length-1;u>=0;u--)if(n[u]!==o[u])return!1;for(var l=void 0,c=n.length-1;c>=0;c--)if(!m(e[l=n[c]],a[l],t,r))return!1;return t.pop(),r.pop(),!0}function p(e,a){void 0===a&&(a=!0);var t=["a","i","e","o"];a&&t.push("u");var r=e.charAt(0).toLowerCase();return t.includes(r)?"an":"a"}function g(e,a){var t;return function(){for(var r=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),a)}}function v(e){if(null!=e){var a="string"==typeof e?parseInt(e,10):e;if(!(a<=0||isNaN(a)))return a}}function y(e,a,t){e&&(e.innerText=o(a,v(t)))}},6650:function(e,a,t){t.r(a),t.d(a,{va_textarea:function(){return s}});var r=t(7911),i=t(4569),n=(t(5384),t(8039)),o=t(4665),s=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.debouncedUpdateScreenReaderCount=(0,n.e)(n.u,1e3),this.handleInput=function(e){var t=e.target;a.value=t.value,a.debouncedUpdateScreenReaderCount(a.charCountElement,a.value,(0,n.f)(a.maxlength))},this.handleBlur=function(){a.enableAnalytics&&a.value&&a.componentLibraryAnalytics.emit({componentName:"va-textarea",action:"blur",details:{label:a.label,value:a.value}})},this.label=void 0,this.error=void 0,this.placeholder=void 0,this.name=void 0,this.required=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.maxlength=void 0,this.value=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1}return e.prototype.connectedCallback=function(){var e=this;o.i.on("languageChanged",(function(){(0,r.f)(e.el)}))},e.prototype.disconnectedCallback=function(){o.i.off("languageChanged")},e.prototype.componentDidRender=function(){this.charCountElement&&!this.charCountElement.innerText&&(this.charCountElement.innerText=(0,n.h)(this.value,(0,n.f)(this.maxlength)))},e.prototype.render=function(){var e=this,a=this,t=a.label,s=a.error,u=a.placeholder,l=a.name,c=a.required,d=a.value,f=a.hint,h=a.charcount,b=a.messageAriaDescribedby,m=a.useFormsPattern,p=a.formHeadingLevel,g=a.headerAriaDescribedby,v=a.formHeading,y=(0,n.f)(this.maxlength),x="".concat(s?"input-error-message":""," ").concat(h&&y?"charcount-message":""," ").concat(b?"input-message":"").trim()||null,w="".concat(m&&v?"form-question":""," ").concat(m?"form-description":""," ").concat(m&&t?"input-label":"").trim()||null,k=(0,n.g)(this.labelHeaderLevel),T=g?"header-message":null,_=h&&(null==d?void 0:d.length)>y,A=(0,i.c)({"usa-label":!0,"usa-label--error":s}),z=(0,i.c)({"usa-textarea":!0,"usa-input--error":s}),S=(0,i.c)({"usa-hint":!0,"usa-character-count__status":h,"usa-character-count__status--invalid":h&&y&&(null==d?void 0:d.length)>y}),C=null;if("single"===m||"multiple"===m){var N=(0,n.g)(p);C=(0,r.h)(r.F,{key:"6b04ae086738e9b4acdd5db98d00686464ab5d83"},v&&(0,r.h)(N,{key:"cb27c7528f0f011bc9aa4c793d0d9b2a4d3b9a6a",id:"form-question",part:"form-header"},v),(0,r.h)("div",{key:"28c397727dced6cca159946bec3fcd65fa42d073",id:"form-description"},(0,r.h)("slot",{key:"090f9f08e950472bd8ed6e5e6ae3f8162bce8ce1",name:"form-description"})))}var q=(0,r.h)("label",{key:"ad7c199bb7743bc41ace657785b5f0346eaa7350",htmlFor:"input-type-textarea",id:"input-label",class:A,part:"label"},t,"multiple"===m&&(0,r.h)("span",{key:"fb1f2f6f436fd0c9bc280aec57f200ab74ff0c3a",id:"header-message",class:"usa-sr-only"},t),g&&(0,r.h)("span",{key:"77bde1ccaa4591f3b740cc79ae20d72ca60316dd",id:"header-message",class:"usa-sr-only"},g),c&&(0,r.h)("span",{key:"ecee75448375d9b1055db5ce8485eeab675f1135",class:"usa-label--required"}," ",o.i.t("required")),f&&(0,r.h)("div",{key:"d6ee84ce8a0ecf2dfc63b437488f196298139403",class:"usa-hint"},f));return(0,r.h)(r.H,{key:"d41b96dfb07c52b43b5ecaa448defbda4f69cb8f"},C,(0,r.h)("div",{key:"dcadc0551268cc889ef221347f15703c81af23ac",class:"input-wrap"},t&&k?(0,r.h)(k,{part:"header","aria-describedby":T},q):(0,r.h)(r.F,null,q),(0,r.h)("slot",{key:"b7f3b6755942770d0f880eae22f1495ad541760e"}),(0,r.h)("span",{key:"f3d75a565b219d16c67c7908411be6d72849ce67",id:"input-error-message",role:"alert"},s&&(0,r.h)(r.F,{key:"7a5134d390282a322250dc0f26703cb470f8a9ce"},(0,r.h)("span",{key:"998d003c60a5dffefffbeb8ed07f10bd2d134f2b",class:"usa-sr-only"},o.i.t("error")),(0,r.h)("span",{key:"6fdf758aba4cf77b67a8d770e88ea2376e325a98",class:"usa-error-message"},s))),(0,r.h)("textarea",{key:"6eb83829d207b7a7aaaa252d19a31812b69ac6f2",class:z,"aria-describedby":x,"aria-invalid":s||_?"true":"false","aria-labelledby":w,onInput:this.handleInput,onBlur:this.handleBlur,id:"input-type-textarea",placeholder:u,name:l,maxLength:h?void 0:y,value:d,part:"input-type-textarea"}),!h&&y&&(null==d?void 0:d.length)>=y&&(0,r.h)("span",{key:"06cb1404a1ec454d471055060aff9675f0072e0b",class:S,"aria-live":"polite"},o.i.t("max-chars",{length:y})),h&&y&&(0,r.h)(r.F,{key:"55454a244e20e1c90259f1475e10b2c1d72e2592"},(0,r.h)("span",{key:"dc554f4f51cbf8dfc8a81d3aac30582f788302c5","aria-hidden":"true",class:S},(0,n.h)(this.value,(0,n.f)(this.maxlength))),(0,r.h)("span",{key:"b1be2ff90cfb92c4c452275b44d811cc0bf68a23",id:"charcount-message","aria-live":"polite",class:"usa-sr-only",ref:function(a){return e.charCountElement=a}})),(0,n.i)(b)&&(0,r.h)("span",{key:"5757af4f44f16b81420240fd007dd581c819e954",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},b)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-textarea,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-textarea,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:0;color:GrayText}.usa-textarea:disabled:hover,.usa-textarea:disabled:active,.usa-textarea:disabled:focus,.usa-textarea:disabled.usa-focus,.usa-textarea[aria-disabled=true]:hover,.usa-textarea[aria-disabled=true]:active,.usa-textarea[aria-disabled=true]:focus,.usa-textarea[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-textarea:disabled,.usa-textarea[aria-disabled=true]{border:2px solid GrayText}}.usa-textarea{height:10rem}.usa-character-count__status{display:inline-block;padding-top:0.25rem}.usa-character-count__status.usa-character-count__status--invalid{color:#b50909;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{color:var(--vads-color-base);display:block;resize:both;font-family:var(--font-source-sans)}:host(:focus){outline:none !important}.usa-hint{display:block;font-weight:normal}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}'}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6830],{6830:function(e,i,s){s.r(i),s.d(i,{va_banner:function(){return o}});var n=s(7911),t=function(e,i,s){if(s||2===arguments.length)for(var n,t=0,a=i.length;t<a;t++)!n&&t in i||(n||(n=Array.prototype.slice.call(i,0,t)),n[t]=i[t]);return e.concat(n||Array.prototype.slice.call(i))},a="DISMISSED_BANNERS",o=function(){function e(e){var i=this;(0,n.r)(this,e),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.prepareBannerID=function(){return i.dismissedBannerId&&i.dismissedBannerId.length?i.dismissedBannerId:"".concat(i.headline,":").concat(i.el.innerHTML)},this.dismiss=function(){var e=i.prepareBannerID();if(!i.dismissedBanners.includes(e)&&i.showClose){if(!i.disableAnalytics&&i.el.shadowRoot){var s={componentName:"va-banner",action:"close",details:{headline:i.headline}};i.componentLibraryAnalytics.emit(s)}var n=t(t([],i.dismissedBanners,!0),[e],!1);(i.windowSession?window.sessionStorage:window.localStorage).setItem(a,JSON.stringify(n)),i.dismissedBanners=n}},this.disableAnalytics=!1,this.showClose=!1,this.headline=void 0,this.type="info",this.visible=!0,this.windowSession=!1,this.dataLabel=void 0,this.dismissedBannerId=void 0,this.dismissedBanners=[]}return e.prototype.componentWillLoad=function(){if(this.showClose){var e=(this.windowSession?window.sessionStorage:window.localStorage).getItem(a);this.dismissedBanners=e?JSON.parse(e):[]}},e.prototype.render=function(){var e,i=this.showClose&&(null===(e=this.dismissedBanners)||void 0===e?void 0:e.includes(this.prepareBannerID()));if(!this.visible||i)return null;var s=this.showClose?this.dismiss:void 0,t=this.dataLabel||"".concat(this.type[0].toUpperCase()).concat(this.type.slice(1)," banner");return(0,n.h)(n.H,null,(0,n.h)("va-alert",{visible:!0,"full-width":!0,closeable:this.showClose,onCloseEvent:s,status:this.type,"data-role":"region","data-label":t},(0,n.h)("h3",{slot:"headline"},this.headline),(0,n.h)("slot",null)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();o.style=":is(va-alert)>:is(h1,h2,h3,h4,h5,h6){font-size:1.33rem;margin-top:-2px;margin-bottom:8px;line-height:var(--vads-font-line-height-2)}"}}]);
1
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6830],{6830:function(e,i,s){s.r(i),s.d(i,{va_banner:function(){return o}});var n=s(7911),t=function(e,i,s){if(s||2===arguments.length)for(var n,t=0,a=i.length;t<a;t++)!n&&t in i||(n||(n=Array.prototype.slice.call(i,0,t)),n[t]=i[t]);return e.concat(n||Array.prototype.slice.call(i))},a="DISMISSED_BANNERS",o=function(){function e(e){var i=this;(0,n.r)(this,e),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.prepareBannerID=function(){return i.dismissedBannerId&&i.dismissedBannerId.length?i.dismissedBannerId:"".concat(i.headline,":").concat(i.el.innerHTML)},this.dismiss=function(){var e=i.prepareBannerID();if(!i.dismissedBanners.includes(e)&&i.showClose){if(!i.disableAnalytics&&i.el.shadowRoot){var s={componentName:"va-banner",action:"close",details:{headline:i.headline}};i.componentLibraryAnalytics.emit(s)}var n=t(t([],i.dismissedBanners,!0),[e],!1);(i.windowSession?window.sessionStorage:window.localStorage).setItem(a,JSON.stringify(n)),i.dismissedBanners=n}},this.disableAnalytics=!1,this.showClose=!1,this.headline=void 0,this.type="info",this.visible=!0,this.windowSession=!1,this.dataLabel=void 0,this.dismissedBannerId=void 0,this.dismissedBanners=[]}return e.prototype.componentWillLoad=function(){if(this.showClose){var e=(this.windowSession?window.sessionStorage:window.localStorage).getItem(a);this.dismissedBanners=e?JSON.parse(e):[]}},e.prototype.render=function(){var e,i=this.showClose&&(null===(e=this.dismissedBanners)||void 0===e?void 0:e.includes(this.prepareBannerID()));if(!this.visible||i)return null;var s=this.showClose?this.dismiss:void 0,t=this.dataLabel||"".concat(this.type[0].toUpperCase()).concat(this.type.slice(1)," banner");return(0,n.h)(n.H,null,(0,n.h)("va-alert",{id:"va-banner-alert",visible:!0,"full-width":!0,closeable:this.showClose,onCloseEvent:s,status:this.type,"data-role":"region","data-label":t},(0,n.h)("h3",{slot:"headline"},this.headline),(0,n.h)("slot",null)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();o.style=":is(va-alert)>:is(h1,h2,h3,h4,h5,h6){font-size:1.33rem;margin-top:-2px;margin-bottom:8px;line-height:var(--vads-font-line-height-2)}"}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 6849.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,6849],{4569:function(e,t,a){a.r(t),a.d(t,{c:function(){return i}});var r,o={exports:{}};r=o,function(){var e={}.hasOwnProperty;function t(){for(var a=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)a.push(o);else if(Array.isArray(o)){if(o.length){var n=t.apply(null,o);n&&a.push(n)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&a.push(s);else a.push(o.toString())}}return a.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var i=o.exports},6849:function(e,t,a){a.r(t),a.d(t,{va_alert_expandable:function(){return i}});var r=a(7911),o=a(4569),i=function(){function e(e){(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.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,o.c)("alert-expandable",t,{"hide-icon":i}),s=(0,o.c)("alert-expandable-body",{open:a,closed:!a}),l="error"===t?"alert":null,c="error"===t?"assertive":null;return(0,r.h)(r.H,{key:"3a22efdf82c6e55c6c8a14e8c4c9d0bea0c46408"},(0,r.h)("div",{key:"4977d7542b21073a0b83e3f98346bb02947caada",role:l,"aria-live":c,class:n},(0,r.h)("a",{key:"72b8135a28146f75c1d5ba99dd1917105d1718ce",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,r.h)("va-icon",{key:"cacefeaf99457e263c5e8a7a10540511d9379e88",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[t]||"info",size:3}),(0,r.h)("div",{key:"63d41ea165b00c24940e8a167361287e4e84dd7b"},(0,r.h)("span",{key:"ca9c2cba09cb5910beb15573d587b5ddaabfd0cd",class:"alert-expandable-title"},(0,r.h)("span",{key:"91b633322061063ab214f2c9409eb156da210bc2",class:"sr-only"},"Alert: "),this.trigger),(0,r.h)("va-icon",{key:"c31925bafca4dac9bfcec3533d56cfa7f534f3a8",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),(0,r.h)("div",{key:"ad8f69361c4b067502af001a1cb205bee400bac2",id:"alert-body",class:s},(0,r.h)("div",{key:"6b65b57b6db25c4abf5e8bb975adcdf6911d1f7b",id:"slot-wrap"},(0,r.h)("slot",{key:"41b7bf5ee96cef6407efe3eecfe6d35c73f5d371"})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();i.style="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,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)}: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='error']){background-color:var(--vads-alert-color-background-error-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.error .alert-expandable-trigger:hover{background-color:var(--vads-color-secondary-light)}div.success .alert-expandable-trigger:hover{background-color:var(--vads-color-green-lighter)}div.continue .alert-expandable-trigger:hover{background-color:var(--vads-color-base-lighter)}.alert-expandable-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-dark);color:var(--vads-color-base-darker);cursor:pointer;font-weight:600}.alert-expandable: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(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,6849],{4569: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},6849:function(e,t,a){a.r(t),a.d(t,{va_alert_expandable:function(){return i}});var o=a(7911),r=a(4569),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:"2cdda8510a348d1fb5e2c417dd19afcc807340af"},(0,o.h)("div",{key:"20be2efc2d471103b8d47f0a6a96ac00810eba2d",class:n},(0,o.h)("a",{key:"ec0a9e2da3c17623138aa73e793d9eb7bf000220",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:"cfc29d801676e34d5704bff2ff0d4ad93718f811",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:"5dc8e34dcb7658946b96e9997ebddc142ca56398"},(0,o.h)("span",{key:"13a17f190907863b63dd7dfd14210265120eff3b",class:"alert-expandable-title"},(0,o.h)("span",{key:"3ea6846d1ab43f7a154bc79a34f58fdad0786ec2",class:"sr-only"},"Alert: "),this.trigger),(0,o.h)("va-icon",{key:"a61d4bd0805a1731c627a522beeba85880df9afd",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),(0,o.h)("div",{key:"48762639fe412284ee0bfec39d4111c09eff028f",id:"alert-body",class:s},(0,o.h)("div",{key:"d99a6cd31af43580b7463f150b361598e4cdadde",id:"slot-wrap"},(0,o.h)("slot",{key:"1251dea513e5c5ddb04a969bf2ae3f324a51d1a2"})))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),e}();i.style="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,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)}: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(*){margin-bottom:0 !important;margin-top:0 !important}"}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 7166.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,7166,7508],{4569:function(t,e,i){i.r(e),i.d(e,{c:function(){return n}});var r,a={exports:{}};r=a,function(){var t={}.hasOwnProperty;function e(){for(var i=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var n=typeof a;if("string"===n||"number"===n)i.push(a);else if(Array.isArray(a)){if(a.length){var u=e.apply(null,a);u&&i.push(u)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var o in a)t.call(a,o)&&a[o]&&i.push(o);else i.push(a.toString())}}return i.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}();var n=a.exports},7508:function(t,e,i){function r(t){return!Number.isNaN(parseFloat(t))}function a(t,e,i){void 0===i&&(i="slot");var r=t.shadowRoot.querySelector(i).assignedNodes();return null!==e?Array.from(r).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(r)}function n(t){return 1===t?"":"s"}function u(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(n(e)," allowed");var i;if(t.length<=e){var r=e-t.length;i="".concat(r," character").concat(n(r)," left")}else r=t.length-e,i="".concat(r," character").concat(n(r)," over limit");return i}function o(t,e){return Array.from({length:e-t+1},(function(e,i){return t+i}))}i.r(e),i.d(e,{S:function(){return l},a:function(){return a},b:function(){return r},c:function(){return g},d:function(){return m},e:function(){return u},f:function(){return c},g:function(){return d},i:function(){return h},m:function(){return o},s:function(){return p}}),i(7911);var s=function(t){return t&&"object"==typeof t&&1===t.nodeType};function p(t,e){var i=function(t,e){if("string"!=typeof t)return[];if(!e||!s(e))return[];var i=e.shadowRoot.querySelectorAll(t);return Array.from(i)}(t,e);return"string"!=typeof t||s(e)&&e.matches(t)&&i.push(e),i}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(t){return l._entities[t]},escapeHTML:function(t){for(var e="",i=0;i<t.length;i++)e+=t[i],i+1<arguments.length&&(e+=String(arguments[i+1]||"").replace(l._entity,l.getEntity));return e}};function d(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}function c(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function h(t){return t&&"false"!==t||!1}function f(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function m(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=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(f(t)||f(e)){if(!f(t)||!f(e))return!1;var a=Array.prototype.slice;return m(a.call(t),a.call(e),i,r)}if(t.constructor!==e.constructor)return!1;var n=Object.keys(t),u=Object.keys(e);if(0===n.length&&0===u.length)return!0;if(n.length!==u.length)return!1;for(var o=i.length;o--;)if(i[o]===t)return r[o]===e;i.push(t),r.push(e),n.sort(),u.sort();for(var s=n.length-1;s>=0;s--)if(n[s]!==u[s])return!1;for(var p=void 0,l=n.length-1;l>=0;l--)if(!m(t[p=n[l]],e[p],i,r))return!1;return i.pop(),r.pop(),!0}function g(t,e){void 0===e&&(e=!0);var i=["a","i","e","o"];e&&i.push("u");var r=t.charAt(0).toLowerCase();return i.includes(r)?"an":"a"}},7166:function(t,e,i){i.r(e),i.d(e,{va_text_input:function(){return o}});var r=i(7911),a=i(4569),n=(i(5384),i(7508)),u=i(4665),o=function(){function t(t){var e=this;(0,r.r)(this,t),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.allowedInputTypes=["email","number","search","tel","text","url"],this.updatePaddingLeft=function(){if(e.inputIconPrefix)e.paddingLeftValue="2.5rem";else if(e.inputPrefix){var t=e.inputPrefix?Math.min(e.inputPrefix.length,25):null;e.paddingLeftValue="".concat(.5*t+1,"rem")}},this.updatePaddingRight=function(){var t=e.inputSuffix?Math.min(e.inputSuffix.length,25):null;e.paddingRightValue="".concat(.5*t+1,"rem")},this.handleInput=function(t){var i=t.target;e.value=i.value},this.handleBlur=function(t){if(e.enableAnalytics&&e.componentLibraryAnalytics.emit({componentName:"va-text-input",action:"blur",details:{label:e.label,value:e.value}}),"decimal"===e.inputmode||"numeric"===e.inputmode||e.currency){var i=u.i.t("number-error"),r=t.target.checkValidity();e.error||r?e.error&&e.error===i&&r&&(e.error=null,e.el.setAttribute("error","")):(e.error=i,e.el.setAttribute("error",i))}},this.label=void 0,this.error=void 0,this.reflectInputError=!1,this.showInputError=!0,this.invalid=!1,this.required=!1,this.inputmode=void 0,this.step=void 0,this.type="text",this.maxlength=void 0,this.autocomplete=void 0,this.enableAnalytics=!1,this.name=void 0,this.pattern=void 0,this.hint=void 0,this.messageAriaDescribedby=void 0,this.value=void 0,this.success=!1,this.width=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1,this.currency=!1,this.inputPrefix=void 0,this.inputIconPrefix=void 0,this.inputSuffix=void 0,this.inputIconSuffix=void 0,this.min=void 0,this.max=void 0,this.errorHasPii=!1,this.paddingLeftValue="0",this.paddingRightValue="0"}return t.prototype.componentWillLoad=function(){this.updatePaddingLeft(),this.updatePaddingRight()},t.prototype.componentDidUpdate=function(){this.updatePaddingLeft(),this.updatePaddingRight()},t.prototype.getInputType=function(){return this.allowedInputTypes.includes(this.type)?this.max||this.min?"number":this.type:"text"},t.prototype.getMaxlength=function(){if(!(this.maxlength<=0))return this.maxlength},t.prototype.getPattern=function(){return this.currency?"^[0-9]+(.[0-9]{2})?$":void 0!==this.pattern||"decimal"!==this.inputmode&&"numeric"!==this.inputmode?this.pattern:"[0-9]+(.[0-9]{1,})?"},t.prototype.getInputmode=function(){return this.currency?"numeric":this.inputmode?this.inputmode:void 0},t.prototype.getStep=function(){return this.step||"decimal"!==this.inputmode?this.step?this.step:void 0:".01"},t.prototype.connectedCallback=function(){var t=this;u.i.on("languageChanged",(function(){(0,r.f)(t.el)}))},t.prototype.disconnectedCallback=function(){u.i.off("languageChanged")},t.prototype.render=function(){var t,e=this,i=this,o=i.label,s=i.error,p=i.reflectInputError,l=i.showInputError,d=i.invalid,c=i.required,h=i.value,f=i.name,m=i.autocomplete,g=i.hint,b=i.handleInput,x=i.handleBlur,v=i.success,y=i.messageAriaDescribedby,w=i.width,T=i.useFormsPattern,S=i.formHeadingLevel,_=i.formHeading,P=i.charcount,k=i.min,z=i.max,A=i.currency,I=i.inputPrefix,N=i.inputIconPrefix,R=i.inputSuffix,L=i.inputIconSuffix,C=i.errorHasPii,H=void 0!==C&&C,q=this.getInputType(),G=this.getMaxlength(),j=this.getInputmode(),M=this.getStep(),V="".concat(y?"input-message":""," ").concat(s?"input-error-message":""," ").concat(P&&G?"charcount-message":"").trim()||null,F="".concat(T&&_?"form-question":""," ").concat(T?"form-description":""," ").concat(T&&o?"input-label":"").trim()||null,W=this.getPattern(),E=(0,a.c)({"currency-wrapper":A,"usa-input-group":R||I||N||L}),O="0"!==e.paddingLeftValue&&I?{paddingLeft:e.paddingLeftValue}:R?{paddingRight:e.paddingRightValue}:{},B=G&&(null==h?void 0:h.length)>G,D=(0,a.c)({"usa-label":!0,"usa-label--error":s}),U=(0,a.c)(((t={"usa-input":!0,"usa-input--success":v,"usa-input--error":s||p})["usa-input--".concat(w)]=w,t)),$=(0,a.c)({"usa-hint":!0,"usa-character-count__status":G,"usa-character-count__status--invalid":G&&(null==h?void 0:h.length)>G}),K=(0,a.c)({"usa-sr-only":!l}),J=(0,a.c)({"usa-error-message":!0,"dd-privacy-hidden":H}),Q=null;if("single"===T||"multiple"===T){var X=(0,n.g)(S);Q=(0,r.h)(r.F,null,_&&(0,r.h)(X,{id:"form-question",part:"form-header"},_),(0,r.h)("div",{id:"form-description"},(0,r.h)("slot",{name:"form-description"})))}return(0,r.h)(r.H,null,Q,(0,r.h)("div",{class:"input-wrap"},o&&(0,r.h)("label",{htmlFor:"inputField",id:"input-label",class:D,part:"label"},o,c&&(0,r.h)("span",{class:"usa-label--required"}," ",u.i.t("required")),g&&(0,r.h)("span",{class:"usa-hint"},g)),(0,r.h)("slot",null),(0,r.h)("span",{id:"input-error-message",role:"alert",class:K},s&&(0,r.h)(r.F,null,(0,r.h)("span",{class:"usa-sr-only"},u.i.t("error")),(0,r.h)("span",{class:J,"data-dd-action-name":H?"input error":void 0},s))),(0,r.h)("div",{class:E},A&&(0,r.h)("div",{id:"symbol"},"$"),I&&(0,r.h)("div",{class:"usa-input-prefix",part:"input-prefix"},I.substring(0,25)),N&&(0,r.h)("div",{class:"usa-input-prefix",part:"input-prefix"},(0,r.h)("va-icon",{icon:N,size:3,part:"icon"})),(0,r.h)("input",{class:U,id:"inputField",type:q,onInput:b,onBlur:x,"aria-describedby":V,style:O,"aria-labelledby":F,"aria-invalid":d||s||B?"true":"false",inputmode:j,step:M,maxlength:G,pattern:W,name:f,autocomplete:m,required:c||null,part:"input",min:k,max:z,value:h}),R&&(0,r.h)("div",{class:"usa-input-suffix",part:"suffix","aria-hidden":"true"},R.substring(0,25)),L&&(0,r.h)("div",{class:"usa-input-suffix",part:"input-suffix"},(0,r.h)("va-icon",{icon:L,size:3,part:"icon"}))),(0,n.i)(y)&&(0,r.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},y),P&&G&&(0,r.h)("span",{id:"charcount-message",class:$,"aria-live":"polite"},(0,n.e)(h,G))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),t}();o.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:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-input-group,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-input-group,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input-group{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:0;position:relative}.usa-input-group--error input:focus,.usa-input-group--success input:focus{outline-offset:0.25rem}.usa-input-group--error{border-width:0.25rem;border-color:#b50909;border-style:solid}.usa-input-group--success{border-width:0.25rem;border-color:#00a91c;border-style:solid}.usa-input-group input{padding-right:2.5rem;border:0;height:100%;margin-top:0;min-width:0;width:100%}.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{border:0;color:GrayText}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input-group input:disabled,.usa-input-group input[aria-disabled=true]{border:0}}@media (forced-colors: active){.usa-input-group:has(input:disabled),.usa-input-group:has(input[aria-disabled=true]){border:2px solid GrayText}}.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){border:0;color:GrayText}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:GrayText}}.usa-input-prefix,.usa-input-suffix{position:absolute;color:#71767a;line-height:0;padding:0 0.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.usa-input-prefix .usa-icon,.usa-input-suffix .usa-icon{height:1.5rem;width:1.5rem}.usa-input-prefix+input{padding-left:2.5rem;padding-right:0.5rem}.usa-input-suffix{right:0}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-character-count__status{display:inline-block;padding-top:0.25rem}.usa-character-count__status.usa-character-count__status--invalid{color:#b50909;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}:host{color:var(--vads-color-base)}:host{display:block;font-family:var(--font-source-sans)}input{-webkit-box-sizing:border-box;box-sizing:border-box}input.usa-input{color:var(--vads-color-base)}.usa-hint{display:block}.currency-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.currency-wrapper>div{position:absolute;left:10px}.currency-wrapper #symbol{margin-top:8px}.currency-wrapper #inputField{padding-left:25px}:host([error]:not([error=""])[show-input-error=false]){border-left:0;padding-left:0;margin-left:0}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,7166,8039],{4569:function(e,t,i){i.r(t),i.d(t,{c:function(){return a}});var r,n={exports:{}};r=n,function(){var e={}.hasOwnProperty;function t(){for(var i=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var a=typeof n;if("string"===a||"number"===a)i.push(n);else if(Array.isArray(n)){if(n.length){var u=t.apply(null,n);u&&i.push(u)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var o in n)e.call(n,o)&&n[o]&&i.push(o);else i.push(n.toString())}}return i.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var a=n.exports},8039:function(e,t,i){function r(e){return!Number.isNaN(parseFloat(e))}function n(e,t,i){void 0===i&&(i="slot");var r=e.shadowRoot.querySelector(i).assignedNodes();return null!==t?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(r)}function a(e){return 1===e?"":"s"}function u(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(a(t)," allowed");var i;if(e.length<=t){var r=t-e.length;i="".concat(r," character").concat(a(r)," left")}else r=e.length-t,i="".concat(r," character").concat(a(r)," over limit");return i}function o(e,t){return Array.from({length:t-e+1},(function(t,i){return e+i}))}i.r(t),i.d(t,{S:function(){return l},a:function(){return n},b:function(){return r},c:function(){return g},d:function(){return m},e:function(){return b},f:function(){return x},g:function(){return d},h:function(){return u},i:function(){return h},j:function(){return c},m:function(){return o},s:function(){return p},u:function(){return v}}),i(7911);var s=function(e){return e&&"object"==typeof e&&1===e.nodeType};function p(e,t){var i=function(e,t){if("string"!=typeof e)return[];if(!t||!s(t))return[];var i=t.shadowRoot.querySelectorAll(e);return Array.from(i)}(e,t);return"string"!=typeof e||s(t)&&t.matches(e)&&i.push(t),i}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return l._entities[e]},escapeHTML:function(e){for(var t="",i=0;i<e.length;i++)t+=e[i],i+1<arguments.length&&(t+=String(arguments[i+1]||"").replace(l._entity,l.getEntity));return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function c(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function h(e){return e&&"false"!==e||!1}function f(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=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(f(e)||f(t)){if(!f(e)||!f(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),i,r)}if(e.constructor!==t.constructor)return!1;var a=Object.keys(e),u=Object.keys(t);if(0===a.length&&0===u.length)return!0;if(a.length!==u.length)return!1;for(var o=i.length;o--;)if(i[o]===e)return r[o]===t;i.push(e),r.push(t),a.sort(),u.sort();for(var s=a.length-1;s>=0;s--)if(a[s]!==u[s])return!1;for(var p=void 0,l=a.length-1;l>=0;l--)if(!m(e[p=a[l]],t[p],i,r))return!1;return i.pop(),r.pop(),!0}function g(e,t){void 0===t&&(t=!0);var i=["a","i","e","o"];t&&i.push("u");var r=e.charAt(0).toLowerCase();return i.includes(r)?"an":"a"}function b(e,t){var i;return function(){for(var r=this,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];clearTimeout(i),i=setTimeout((function(){return e.apply(r,n)}),t)}}function x(e){if(null!=e){var t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t}}function v(e,t,i){e&&(e.innerText=u(t,x(i)))}},7166:function(e,t,i){i.r(t),i.d(t,{va_text_input:function(){return o}});var r=i(7911),n=i(4569),a=(i(5384),i(8039)),u=i(4665),o=function(){function e(e){var t=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.allowedInputTypes=["email","number","search","tel","text","url"],this.updatePaddingLeft=function(){if(t.inputIconPrefix)t.paddingLeftValue="2.5rem";else if(t.inputPrefix){var e=t.inputPrefix?Math.min(t.inputPrefix.length,25):null;t.paddingLeftValue="".concat(.5*e+1,"rem")}},this.updatePaddingRight=function(){var e=t.inputSuffix?Math.min(t.inputSuffix.length,25):null;t.paddingRightValue="".concat(.5*e+1,"rem")},this.debouncedUpdateScreenReaderCount=(0,a.e)(a.u,1e3),this.handleInput=function(e){var i=e.target;t.value=i.value,t.debouncedUpdateScreenReaderCount(t.charCountElement,t.value,(0,a.f)(t.maxlength))},this.handleBlur=function(e){if(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-text-input",action:"blur",details:{label:t.label,value:t.value}}),"decimal"===t.inputmode||"numeric"===t.inputmode||t.currency){var i=u.i.t("number-error"),r=e.target.checkValidity();t.error||r?t.error&&t.error===i&&r&&(t.error=null,t.el.setAttribute("error","")):(t.error=i,t.el.setAttribute("error",i))}},this.label=void 0,this.error=void 0,this.reflectInputError=!1,this.showInputError=!0,this.invalid=!1,this.required=!1,this.inputmode=void 0,this.step=void 0,this.type="text",this.maxlength=void 0,this.autocomplete=void 0,this.enableAnalytics=!1,this.name=void 0,this.pattern=void 0,this.hint=void 0,this.messageAriaDescribedby=void 0,this.value=void 0,this.success=!1,this.width=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.charcount=!1,this.currency=!1,this.inputPrefix=void 0,this.inputIconPrefix=void 0,this.inputSuffix=void 0,this.inputIconSuffix=void 0,this.min=void 0,this.max=void 0,this.errorHasPii=!1,this.paddingLeftValue="0",this.paddingRightValue="0"}return e.prototype.connectedCallback=function(){var e=this;u.i.on("languageChanged",(function(){(0,r.f)(e.el)}))},e.prototype.disconnectedCallback=function(){u.i.off("languageChanged")},e.prototype.componentDidRender=function(){this.charCountElement&&!this.charCountElement.innerText&&(this.charCountElement.innerText=(0,a.h)(this.value,(0,a.f)(this.maxlength)))},e.prototype.componentWillLoad=function(){this.updatePaddingLeft(),this.updatePaddingRight()},e.prototype.componentDidUpdate=function(){this.updatePaddingLeft(),this.updatePaddingRight()},e.prototype.getInputType=function(){return this.allowedInputTypes.includes(this.type)?this.max||this.min?"number":this.type:"text"},e.prototype.getPattern=function(){return this.currency?"^[0-9]+(.[0-9]{2})?$":void 0!==this.pattern||"decimal"!==this.inputmode&&"numeric"!==this.inputmode?this.pattern:"[0-9]+(.[0-9]{1,})?"},e.prototype.getInputmode=function(){return this.currency?"numeric":this.inputmode?this.inputmode:void 0},e.prototype.getStep=function(){return this.step||"decimal"!==this.inputmode?this.step?this.step:void 0:".01"},e.prototype.render=function(){var e,t=this,i=this,o=i.label,s=i.error,p=i.reflectInputError,l=i.showInputError,d=i.invalid,c=i.required,h=i.value,f=i.name,m=i.autocomplete,g=i.hint,b=i.handleInput,x=i.handleBlur,v=i.success,y=i.messageAriaDescribedby,w=i.width,T=i.useFormsPattern,S=i.formHeadingLevel,_=i.formHeading,P=i.charcount,k=i.min,z=i.max,A=i.currency,C=i.inputPrefix,I=i.inputIconPrefix,N=i.inputSuffix,R=i.inputIconSuffix,L=i.errorHasPii,H=void 0!==L&&L,q=this.getInputType(),G=(0,a.f)(this.maxlength),E=this.getInputmode(),j=this.getStep(),F="".concat(y?"input-message":""," ").concat(s?"input-error-message":""," ").concat(P&&G?"charcount-message":"").trim()||null,V="".concat(T&&_?"form-question":""," ").concat(T?"form-description":""," ").concat(T&&o?"input-label":"").trim()||null,W=this.getPattern(),M=(0,n.c)({"currency-wrapper":A,"usa-input-group":N||C||I||R}),O="0"!==t.paddingLeftValue&&C?{paddingLeft:t.paddingLeftValue}:N?{paddingRight:t.paddingRightValue}:{},B=G&&(null==h?void 0:h.length)>G,D=(0,n.c)({"usa-label":!0,"usa-label--error":s}),U=(0,n.c)(((e={"usa-input":!0,"usa-input--success":v,"usa-input--error":s||p})["usa-input--".concat(w)]=w,e)),$=(0,n.c)({"usa-hint":!0,"usa-character-count__status":G,"usa-character-count__status--invalid":G&&(null==h?void 0:h.length)>G}),K=(0,n.c)({"usa-sr-only":!l}),J=(0,n.c)({"usa-error-message":!0,"dd-privacy-hidden":H}),Q=null;if("single"===T||"multiple"===T){var X=(0,a.g)(S);Q=(0,r.h)(r.F,null,_&&(0,r.h)(X,{id:"form-question",part:"form-header"},_),(0,r.h)("div",{id:"form-description"},(0,r.h)("slot",{name:"form-description"})))}return(0,r.h)(r.H,null,Q,(0,r.h)("div",{class:"input-wrap"},o&&(0,r.h)("label",{htmlFor:"inputField",id:"input-label",class:D,part:"label"},o,c&&(0,r.h)("span",{class:"usa-label--required"}," ",u.i.t("required")),g&&(0,r.h)("span",{class:"usa-hint"},g)),(0,r.h)("slot",null),(0,r.h)("span",{id:"input-error-message",role:"alert",class:K},s&&(0,r.h)(r.F,null,(0,r.h)("span",{class:"usa-sr-only"},u.i.t("error")),(0,r.h)("span",{class:J,"data-dd-action-name":H?"input error":void 0},s))),(0,r.h)("div",{class:M},A&&(0,r.h)("div",{id:"symbol"},"$"),C&&(0,r.h)("div",{class:"usa-input-prefix",part:"input-prefix"},C.substring(0,25)),I&&(0,r.h)("div",{class:"usa-input-prefix",part:"input-prefix"},(0,r.h)("va-icon",{icon:I,size:3,part:"icon"})),(0,r.h)("input",{class:U,id:"inputField",type:q,onInput:b,onBlur:x,"aria-describedby":F,style:O,"aria-labelledby":V,"aria-invalid":d||s||B?"true":"false",inputmode:E,step:j,maxlength:G,pattern:W,name:f,autocomplete:m,required:c||null,part:"input",min:k,max:z,value:h}),N&&(0,r.h)("div",{class:"usa-input-suffix",part:"suffix","aria-hidden":"true"},N.substring(0,25)),R&&(0,r.h)("div",{class:"usa-input-suffix",part:"input-suffix"},(0,r.h)("va-icon",{icon:R,size:3,part:"icon"}))),(0,a.i)(y)&&(0,r.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},y),P&&G&&(0,r.h)(r.F,null,(0,r.h)("span",{"aria-hidden":"true",class:$},(0,a.h)(this.value,(0,a.f)(this.maxlength))),(0,r.h)("span",{id:"charcount-message",class:"usa-sr-only","aria-live":"polite",ref:function(e){return t.charCountElement=e}}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();o.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:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-input-group,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-input-group,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input-group{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:0;position:relative}.usa-input-group--error input:focus,.usa-input-group--success input:focus{outline-offset:0.25rem}.usa-input-group--error{border-width:0.25rem;border-color:#b50909;border-style:solid}.usa-input-group--success{border-width:0.25rem;border-color:#00a91c;border-style:solid}.usa-input-group input{padding-right:2.5rem;border:0;height:100%;margin-top:0;min-width:0;width:100%}.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-group input:disabled+.usa-input-suffix,.usa-input-group input[aria-disabled=true]+.usa-input-suffix{border:0;color:GrayText}.usa-input-group input:disabled+.usa-input-suffix:hover,.usa-input-group input:disabled+.usa-input-suffix:active,.usa-input-group input:disabled+.usa-input-suffix:focus,.usa-input-group input:disabled+.usa-input-suffix.usa-focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:hover,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:active,.usa-input-group input[aria-disabled=true]+.usa-input-suffix:focus,.usa-input-group input[aria-disabled=true]+.usa-input-suffix.usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input-group input:disabled,.usa-input-group input[aria-disabled=true]{border:0}}@media (forced-colors: active){.usa-input-group:has(input:disabled),.usa-input-group:has(input[aria-disabled=true]){border:2px solid GrayText}}.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input-prefix:has(+input:disabled),.usa-input-prefix:has(+input[aria-disabled=true]){border:0;color:GrayText}.usa-input-prefix:has(+input:disabled):hover,.usa-input-prefix:has(+input:disabled):active,.usa-input-prefix:has(+input:disabled):focus,.usa-input-prefix:has(+input:disabled).usa-focus,.usa-input-prefix:has(+input[aria-disabled=true]):hover,.usa-input-prefix:has(+input[aria-disabled=true]):active,.usa-input-prefix:has(+input[aria-disabled=true]):focus,.usa-input-prefix:has(+input[aria-disabled=true]).usa-focus{color:GrayText}}.usa-input-prefix,.usa-input-suffix{position:absolute;color:#71767a;line-height:0;padding:0 0.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.usa-input-prefix .usa-icon,.usa-input-suffix .usa-icon{height:1.5rem;width:1.5rem}.usa-input-prefix+input{padding-left:2.5rem;padding-right:0.5rem}.usa-input-suffix{right:0}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-character-count__status{display:inline-block;padding-top:0.25rem}.usa-character-count__status.usa-character-count__status--invalid{color:#b50909;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}:host{color:var(--vads-color-base)}:host{display:block;font-family:var(--font-source-sans)}input{-webkit-box-sizing:border-box;box-sizing:border-box}input.usa-input{color:var(--vads-color-base)}.usa-hint{display:block}.currency-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.currency-wrapper>div{position:absolute;left:10px}.currency-wrapper #symbol{margin-top:8px}.currency-wrapper #inputField{padding-left:25px}:host([error]:not([error=""])[show-input-error=false]){border-left:0;padding-left:0;margin-left:0}'}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 7307.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,7307,7508],{4569:function(t,n,r){r.r(n),r.d(n,{c:function(){return i}});var o,e={exports:{}};o=e,function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var e=arguments[o];if(e){var i=typeof e;if("string"===i||"number"===i)r.push(e);else if(Array.isArray(e)){if(e.length){var a=n.apply(null,e);a&&r.push(a)}}else if("object"===i)if(e.toString===Object.prototype.toString)for(var c in e)t.call(e,c)&&e[c]&&r.push(c);else r.push(e.toString())}}return r.join(" ")}o.exports?(n.default=n,o.exports=n):window.classNames=n}();var i=e.exports},7508:function(t,n,r){function o(t){return!Number.isNaN(parseFloat(t))}function e(t,n,r){void 0===r&&(r="slot");var o=t.shadowRoot.querySelector(r).assignedNodes();return null!==n?Array.from(o).filter((function(t){return t.nodeName.toLowerCase()===n})):Array.from(o)}function i(t){return 1===t?"":"s"}function a(t,n){if(void 0===t||""===t)return"".concat(n," character").concat(i(n)," allowed");var r;if(t.length<=n){var o=n-t.length;r="".concat(o," character").concat(i(o)," left")}else o=t.length-n,r="".concat(o," character").concat(i(o)," over limit");return r}function c(t,n){return Array.from({length:n-t+1},(function(n,r){return t+r}))}r.r(n),r.d(n,{S:function(){return u},a:function(){return e},b:function(){return o},c:function(){return y},d:function(){return h},e:function(){return a},f:function(){return v},g:function(){return f},i:function(){return d},m:function(){return c},s:function(){return s}}),r(7911);var l=function(t){return t&&"object"==typeof t&&1===t.nodeType};function s(t,n){var r=function(t,n){if("string"!=typeof t)return[];if(!n||!l(n))return[];var r=n.shadowRoot.querySelectorAll(t);return Array.from(r)}(t,n);return"string"!=typeof t||l(n)&&n.matches(t)&&r.push(n),r}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(t){return u._entities[t]},escapeHTML:function(t){for(var n="",r=0;r<t.length;r++)n+=t[r],r+1<arguments.length&&(n+=String(arguments[r+1]||"").replace(u._entity,u.getEntity));return n}};function f(t){var n;return(n="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&n<=6?"h".concat(n):null}function v(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function d(t){return t&&"false"!==t||!1}function p(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function h(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===n)return!0;if("function"==typeof t||"function"==typeof n)return!0;if("object"!=typeof t||"object"!=typeof n)return!1;if(null===t||null===n)return!1;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp&&n instanceof RegExp)return t.source===n.source&&t.global===n.global&&t.multiline===n.multiline&&t.lastIndex===n.lastIndex&&t.ignoreCase===n.ignoreCase;if(p(t)||p(n)){if(!p(t)||!p(n))return!1;var e=Array.prototype.slice;return h(e.call(t),e.call(n),r,o)}if(t.constructor!==n.constructor)return!1;var i=Object.keys(t),a=Object.keys(n);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var c=r.length;c--;)if(r[c]===t)return o[c]===n;r.push(t),o.push(n),i.sort(),a.sort();for(var l=i.length-1;l>=0;l--)if(i[l]!==a[l])return!1;for(var s=void 0,u=i.length-1;u>=0;u--)if(!h(t[s=i[u]],n[s],r,o))return!1;return r.pop(),o.pop(),!0}function y(t,n){void 0===n&&(n=!0);var r=["a","i","e","o"];n&&r.push("u");var o=t.charAt(0).toLowerCase();return r.includes(o)?"an":"a"}},7307:function(t,n,r){r.r(n),r.d(n,{va_link_action:function(){return a}});var o=r(7911),e=r(4569),i=r(7508),a=function(){function t(t){var n=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.handleClick=function(t){if(!n.disableAnalytics){var r={componentName:"va-link-action",action:"click",details:{label:n.text,destination:n.href,origin:window.location.href}};n.componentLibraryAnalytics.emit(r)}},this.disableAnalytics=!1,this.href=void 0,this.text=void 0,this.messageAriaDescribedby=void 0,this.type="primary",this.label=void 0,this.isSingleLine=!0}return t.prototype.componentWillLoad=function(){this.checkTextLines()},t.prototype.checkTextLines=function(){if(this.linkRef){var t=getComputedStyle(this.linkRef),n=parseFloat(t.lineHeight),r=this.linkRef.clientHeight;this.isSingleLine=r<=n}},t.prototype.render=function(){var t=this,n=this,r=n.handleClick,a=n.href,c=n.text,l=n.messageAriaDescribedby,s=n.type,u=n.label,f=(0,e.c)({"host--primary-entry":"primary-entry"===s}),v=(0,e.c)({"va-link--reverse":"reverse"===s,"va-link--primary":"primary"===s,"va-link--secondary":"secondary"===s,"va-link--primary-entry":"primary-entry"===s}),d=(0,e.c)("link-icon--left","link-icon",{"link-icon--reverse":"reverse"===s}),p=l?"link-description":null;return(0,o.h)(o.H,{key:"741ceb11f745e5367efda82b7bdd1375a6dbc912",class:f},(0,o.h)("a",{key:"1a9798908f569c4b416af1c45763e2233c074606",href:a,class:v,"aria-label":u,"aria-describedby":p,onClick:r,ref:function(n){return t.linkRef=n}},(0,o.h)("va-icon",{key:"fa1300d06b5b29a56147bad20f9f7c7428fd3c19",class:d,icon:"chevron_right",size:3}),(0,o.h)("span",{key:"5dfba4f71c2b4a9615ca61ba1ee4bdf2ab9f9b1d",class:"link-text"},c)),(0,i.i)(l)&&(0,o.h)("span",{key:"2f5e9a8f564921d4dd68950e6f53c7b3843eaf97",id:"link-description",class:"sr-only"},l))},Object.defineProperty(t,"watchers",{get:function(){return{text:["checkTextLines"]}},enumerable:!1,configurable:!0}),t}();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}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)}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}:host{display:-ms-inline-flexbox;display:inline-flex}:host a{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:start;align-items:flex-start;cursor:pointer;text-decoration:underline;font-weight:700;font-size:1.06rem;padding:0.5rem 0}:host a:active{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}:host a.va-link--primary:hover,:host a.va-link--primary:active,:host a.va-link--secondary:hover,:host a.va-link--secondary:active{color:var(--vads-color-link) !important}:host a.va-link--reverse{color:var(--vads-color-white)}:host a.va-link--reverse:hover,:host a.va-link--reverse:active{color:var(--vads-color-action-focus-on-light);background-color:transparent}:host a.va-link--reverse va-icon:hover,:host a.va-link--reverse va-icon:active{background-color:var(--vads-color-action-focus-on-light)}.link-icon--left{margin-right:8px;vertical-align:baseline;position:relative}.link-icon{border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:white;print-color-adjust:exact;-webkit-print-color-adjust:exact}.va-link--primary va-icon{background-color:var(--vads-color-success-dark)}.va-link--secondary va-icon{background-color:var(--vads-color-primary)}.link-icon--reverse{background-color:var(--vads-color-white);color:var(--vads-color-black)}:host a.va-link--reverse:hover va-icon,:host a.va-link--reverse:active va-icon{background-color:var(--vads-color-action-focus-on-light) !important}.link-text{display:inline-block;vertical-align:top;max-width:calc(100% - 24px);white-space:pre-wrap}:host(.host--primary-entry){width:100%}:host a.va-link--primary-entry{position:relative;display:inline-block;background-color:var(--vads-color-primary);color:var(--vads-color-white);text-decoration:none;padding:15px 15px 15px 45px;margin:0 1.5rem 0 0;-webkit-clip-path:polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);clip-path:polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;width:95%;line-height:1.4;min-height:24px;max-width:var(--vads-size-line-length-5);}@media (min-width: 768px){:host a.va-link--primary-entry{width:75%}}:host a.va-link--primary-entry va-icon.link-icon{position:absolute;left:12px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:var(--vads-color-primary);background-color:var(--vads-color-white)}:host a.va-link--primary-entry .link-text{font-weight:bold;display:inline-block;vertical-align:middle}:host a.va-link--primary-entry:hover:not(:focus){text-decoration:none}:host a.va-link--primary-entry:hover:not(:focus) va-icon.link-icon{background-color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:hover:not(:focus) .link-text{color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:focus,:host a.va-link--primary-entry:active{background-color:var(--vads-color-action-focus-on-light);text-decoration:none;outline:none;-webkit-transition:none;transition:none}:host a.va-link--primary-entry:focus va-icon.link-icon,:host a.va-link--primary-entry:active va-icon.link-icon{background-color:var(--vads-color-black);color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:focus .link-text,:host a.va-link--primary-entry:active .link-text{color:var(--vads-color-black)}:host a.va-link--primary-entry:focus:hover{background-color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:focus:hover va-icon.link-icon,:host a.va-link--primary-entry:focus:hover .link-text{text-decoration:underline;-webkit-text-decoration-color:var(--vads-color-black);text-decoration-color:var(--vads-color-black);text-decoration-thickness:2px;text-underline-offset:4px}"}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,7307,8039],{4569:function(n,t,r){r.r(t),r.d(t,{c:function(){return i}});var o,e={exports:{}};o=e,function(){var n={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var e=arguments[o];if(e){var i=typeof e;if("string"===i||"number"===i)r.push(e);else if(Array.isArray(e)){if(e.length){var a=t.apply(null,e);a&&r.push(a)}}else if("object"===i)if(e.toString===Object.prototype.toString)for(var c in e)n.call(e,c)&&e[c]&&r.push(c);else r.push(e.toString())}}return r.join(" ")}o.exports?(t.default=t,o.exports=t):window.classNames=t}();var i=e.exports},8039:function(n,t,r){function o(n){return!Number.isNaN(parseFloat(n))}function e(n,t,r){void 0===r&&(r="slot");var o=n.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(o).filter((function(n){return n.nodeName.toLowerCase()===t})):Array.from(o)}function i(n){return 1===n?"":"s"}function a(n,t){if(void 0===n||""===n)return"".concat(t," character").concat(i(t)," allowed");var r;if(n.length<=t){var o=t-n.length;r="".concat(o," character").concat(i(o)," left")}else o=n.length-t,r="".concat(o," character").concat(i(o)," over limit");return r}function c(n,t){return Array.from({length:t-n+1},(function(t,r){return n+r}))}r.r(t),r.d(t,{S:function(){return u},a:function(){return e},b:function(){return o},c:function(){return y},d:function(){return h},e:function(){return k},f:function(){return g},g:function(){return f},h:function(){return a},i:function(){return d},j:function(){return v},m:function(){return c},s:function(){return s},u:function(){return b}}),r(7911);var l=function(n){return n&&"object"==typeof n&&1===n.nodeType};function s(n,t){var r=function(n,t){if("string"!=typeof n)return[];if(!t||!l(t))return[];var r=t.shadowRoot.querySelectorAll(n);return Array.from(r)}(n,t);return"string"!=typeof n||l(t)&&t.matches(n)&&r.push(t),r}var u={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(n){return u._entities[n]},escapeHTML:function(n){for(var t="",r=0;r<n.length;r++)t+=n[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(u._entity,u.getEntity));return t}};function f(n){var t;return(t="string"==typeof n?parseInt(n,10):Math.floor(n))>=1&&t<=6?"h".concat(t):null}function v(n){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(n.tagName)}function d(n){return n&&"false"!==n||!1}function p(n){return"[object Arguments]"===Object.prototype.toString.call(n)}function h(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(n===t)return!0;if("function"==typeof n||"function"==typeof t)return!0;if("object"!=typeof n||"object"!=typeof t)return!1;if(null===n||null===t)return!1;if(n instanceof Date&&t instanceof Date)return n.getTime()===t.getTime();if(n instanceof RegExp&&t instanceof RegExp)return n.source===t.source&&n.global===t.global&&n.multiline===t.multiline&&n.lastIndex===t.lastIndex&&n.ignoreCase===t.ignoreCase;if(p(n)||p(t)){if(!p(n)||!p(t))return!1;var e=Array.prototype.slice;return h(e.call(n),e.call(t),r,o)}if(n.constructor!==t.constructor)return!1;var i=Object.keys(n),a=Object.keys(t);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var c=r.length;c--;)if(r[c]===n)return o[c]===t;r.push(n),o.push(t),i.sort(),a.sort();for(var l=i.length-1;l>=0;l--)if(i[l]!==a[l])return!1;for(var s=void 0,u=i.length-1;u>=0;u--)if(!h(n[s=i[u]],t[s],r,o))return!1;return r.pop(),o.pop(),!0}function y(n,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var o=n.charAt(0).toLowerCase();return r.includes(o)?"an":"a"}function k(n,t){var r;return function(){for(var o=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];clearTimeout(r),r=setTimeout((function(){return n.apply(o,e)}),t)}}function g(n){if(null!=n){var t="string"==typeof n?parseInt(n,10):n;if(!(t<=0||isNaN(t)))return t}}function b(n,t,r){n&&(n.innerText=a(t,g(r)))}},7307:function(n,t,r){r.r(t),r.d(t,{va_link_action:function(){return a}});var o=r(7911),e=r(4569),i=r(8039),a=function(){function n(n){var t=this;(0,o.r)(this,n),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.handleClick=function(n){if(!t.disableAnalytics){var r={componentName:"va-link-action",action:"click",details:{label:t.text,destination:t.href,origin:window.location.href}};t.componentLibraryAnalytics.emit(r)}},this.disableAnalytics=!1,this.href=void 0,this.text=void 0,this.messageAriaDescribedby=void 0,this.type="primary",this.label=void 0,this.isSingleLine=!0}return n.prototype.componentWillLoad=function(){this.checkTextLines()},n.prototype.checkTextLines=function(){if(this.linkRef){var n=getComputedStyle(this.linkRef),t=parseFloat(n.lineHeight),r=this.linkRef.clientHeight;this.isSingleLine=r<=t}},n.prototype.render=function(){var n=this,t=this,r=t.handleClick,a=t.href,c=t.text,l=t.messageAriaDescribedby,s=t.type,u=t.label,f=(0,e.c)({"host--primary-entry":"primary-entry"===s}),v=(0,e.c)({"va-link--reverse":"reverse"===s,"va-link--primary":"primary"===s,"va-link--secondary":"secondary"===s,"va-link--primary-entry":"primary-entry"===s}),d=(0,e.c)("link-icon--left","link-icon",{"link-icon--reverse":"reverse"===s}),p=l?"link-description":null;return(0,o.h)(o.H,{key:"741ceb11f745e5367efda82b7bdd1375a6dbc912",class:f},(0,o.h)("a",{key:"1a9798908f569c4b416af1c45763e2233c074606",href:a,class:v,"aria-label":u,"aria-describedby":p,onClick:r,ref:function(t){return n.linkRef=t}},(0,o.h)("va-icon",{key:"fa1300d06b5b29a56147bad20f9f7c7428fd3c19",class:d,icon:"chevron_right",size:3}),(0,o.h)("span",{key:"5dfba4f71c2b4a9615ca61ba1ee4bdf2ab9f9b1d",class:"link-text"},c)),(0,i.i)(l)&&(0,o.h)("span",{key:"2f5e9a8f564921d4dd68950e6f53c7b3843eaf97",id:"link-description",class:"sr-only"},l))},Object.defineProperty(n,"watchers",{get:function(){return{text:["checkTextLines"]}},enumerable:!1,configurable:!0}),n}();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}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)}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}:host{display:-ms-inline-flexbox;display:inline-flex}:host a{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:start;align-items:flex-start;cursor:pointer;text-decoration:underline;font-weight:700;font-size:1.06rem;padding:0.5rem 0}:host a:active{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}:host a.va-link--primary:hover,:host a.va-link--primary:active,:host a.va-link--secondary:hover,:host a.va-link--secondary:active{color:var(--vads-color-link) !important}:host a.va-link--reverse{color:var(--vads-color-white)}:host a.va-link--reverse:hover,:host a.va-link--reverse:active{color:var(--vads-color-action-focus-on-light);background-color:transparent}:host a.va-link--reverse va-icon:hover,:host a.va-link--reverse va-icon:active{background-color:var(--vads-color-action-focus-on-light)}.link-icon--left{margin-right:8px;vertical-align:baseline;position:relative}.link-icon{border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:white;print-color-adjust:exact;-webkit-print-color-adjust:exact}.va-link--primary va-icon{background-color:var(--vads-color-success-dark)}.va-link--secondary va-icon{background-color:var(--vads-color-primary)}.link-icon--reverse{background-color:var(--vads-color-white);color:var(--vads-color-black)}:host a.va-link--reverse:hover va-icon,:host a.va-link--reverse:active va-icon{background-color:var(--vads-color-action-focus-on-light) !important}.link-text{display:inline-block;vertical-align:top;max-width:calc(100% - 24px);white-space:pre-wrap}:host(.host--primary-entry){width:100%}:host a.va-link--primary-entry{position:relative;display:inline-block;background-color:var(--vads-color-primary);color:var(--vads-color-white);text-decoration:none;padding:15px 15px 15px 45px;margin:0 1.5rem 0 0;-webkit-clip-path:polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);clip-path:polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;width:95%;line-height:1.4;min-height:24px;max-width:var(--vads-size-line-length-5);}@media (min-width: 768px){:host a.va-link--primary-entry{width:75%}}:host a.va-link--primary-entry va-icon.link-icon{position:absolute;left:12px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:var(--vads-color-primary);background-color:var(--vads-color-white)}:host a.va-link--primary-entry .link-text{font-weight:bold;display:inline-block;vertical-align:middle}:host a.va-link--primary-entry:hover:not(:focus){text-decoration:none}:host a.va-link--primary-entry:hover:not(:focus) va-icon.link-icon{background-color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:hover:not(:focus) .link-text{color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:focus,:host a.va-link--primary-entry:active{background-color:var(--vads-color-action-focus-on-light);text-decoration:none;outline:none;-webkit-transition:none;transition:none}:host a.va-link--primary-entry:focus va-icon.link-icon,:host a.va-link--primary-entry:active va-icon.link-icon{background-color:var(--vads-color-black);color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:focus .link-text,:host a.va-link--primary-entry:active .link-text{color:var(--vads-color-black)}:host a.va-link--primary-entry:focus:hover{background-color:var(--vads-color-action-focus-on-light)}:host a.va-link--primary-entry:focus:hover va-icon.link-icon,:host a.va-link--primary-entry:focus:hover .link-text{text-decoration:underline;-webkit-text-decoration-color:var(--vads-color-black);text-decoration-color:var(--vads-color-black);text-decoration-thickness:2px;text-underline-offset:4px}"}}]);