@department-of-veterans-affairs/component-library 53.0.0 → 53.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 (74) hide show
  1. package/dist/141.app.bundle.js +1 -1
  2. package/dist/1966.app.bundle.js +1 -1
  3. package/dist/2205.app.bundle.js +1 -1
  4. package/dist/2236.app.bundle.js +1 -1
  5. package/dist/2482.app.bundle.js +1 -1
  6. package/dist/2986.app.bundle.js +1 -1
  7. package/dist/323.app.bundle.js +1 -1
  8. package/dist/3305.app.bundle.js +1 -1
  9. package/dist/3397.app.bundle.js +1 -1
  10. package/dist/3601.app.bundle.js +1 -1
  11. package/dist/4351.app.bundle.js +1 -1
  12. package/dist/4475.app.bundle.js +1 -1
  13. package/dist/4780.app.bundle.js +1 -1
  14. package/dist/4996.app.bundle.js +1 -1
  15. package/dist/5119.app.bundle.js +1 -1
  16. package/dist/5341.app.bundle.js +1 -1
  17. package/dist/5663.app.bundle.js +1 -1
  18. package/dist/5689.app.bundle.js +1 -1
  19. package/dist/5845.app.bundle.js +1 -1
  20. package/dist/5938.app.bundle.js +1 -1
  21. package/dist/6498.app.bundle.js +1 -1
  22. package/dist/6555.app.bundle.js +1 -1
  23. package/dist/6650.app.bundle.js +1 -1
  24. package/dist/6718.app.bundle.js +1 -1
  25. package/dist/6832.app.bundle.js +1 -1
  26. package/dist/7166.app.bundle.js +1 -1
  27. package/dist/7307.app.bundle.js +1 -1
  28. package/dist/7481.app.bundle.js +1 -1
  29. package/dist/7495.app.bundle.js +1 -1
  30. package/dist/7734.app.bundle.js +1 -1
  31. package/dist/8255.app.bundle.js +1 -1
  32. package/dist/8463.app.bundle.js +1 -1
  33. package/dist/8762.app.bundle.js +1 -1
  34. package/dist/8913.app.bundle.js +1 -1
  35. package/dist/9186.app.bundle.js +1 -1
  36. package/dist/9851.app.bundle.js +1 -1
  37. package/dist/app.bundle.js +1 -1
  38. package/dist/components/types/components.d.ts +23 -2
  39. package/dist/components/va-accordion2.js +1 -1
  40. package/dist/components/va-button-segmented.js +1 -1
  41. package/dist/components/va-file-input-multiple.js +1 -1
  42. package/dist/components/va-file-input2.js +1 -1
  43. package/dist/components/va-header-minimal.js +1 -1
  44. package/dist/components/va-icon2.js +1 -1
  45. package/dist/components/va-language-toggle.js +1 -1
  46. package/dist/components/va-link-action.js +1 -1
  47. package/dist/components/va-loading-indicator.js +1 -1
  48. package/dist/components/va-memorable-date.js +1 -1
  49. package/dist/components/va-minimal-footer.js +1 -1
  50. package/dist/components/va-need-help.js +1 -1
  51. package/dist/components/va-official-gov-banner2.js +1 -1
  52. package/dist/components/va-omb-info.js +1 -1
  53. package/dist/components/va-privacy-agreement.js +1 -1
  54. package/dist/components/va-process-list-item.js +1 -1
  55. package/dist/components/va-process-list.js +1 -1
  56. package/dist/components/va-progress-bar2.js +1 -1
  57. package/dist/components/va-radio-option.js +1 -1
  58. package/dist/components/va-radio.js +1 -1
  59. package/dist/components/va-search-input.js +1 -1
  60. package/dist/components/va-select2.js +1 -1
  61. package/dist/components/va-sidenav-item.js +1 -1
  62. package/dist/components/va-sidenav-submenu.js +1 -1
  63. package/dist/components/va-statement-of-truth.js +1 -1
  64. package/dist/components/va-summary-box.js +1 -1
  65. package/dist/components/va-tab-item.js +1 -1
  66. package/dist/components/va-tab-panel.js +1 -1
  67. package/dist/components/va-table-inner2.js +1 -1
  68. package/dist/components/va-table-row.js +1 -1
  69. package/dist/components/va-table.js +1 -1
  70. package/dist/components/va-telephone-input.js +1 -1
  71. package/dist/components/va-telephone2.js +1 -1
  72. package/dist/components/va-text-input2.js +1 -1
  73. package/dist/components/va-textarea.js +1 -1
  74. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 5663.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([[4534,4569,5663,6104],{4534:function(e,r,t){t.r(r),t.d(r,{a:function(){return w},b:function(){return b},d:function(){return g},f:function(){return v},g:function(){return p},i:function(){return y},m:function(){return u},v:function(){return c},z:function(){return x}}),t(4665),t(7911);var a=(new Date).getFullYear()+100,o=1900,n=12,i=1,s=1,u=[{label:"January",value:1},{label:"February",value:2},{label:"March",value:3},{label:"April",value:4},{label:"May",value:5},{label:"June",value:6},{label:"July",value:7},{label:"August",value:8},{label:"September",value:9},{label:"October",value:10},{label:"November",value:11},{label:"December",value:12}],l=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],h=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],d={1:h,2:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],3:h,4:l,5:h,6:l,7:h,8:h,9:l,10:h,11:l,12:h},m=["year-range","day-range","month-range","date-error","month-select"];function f(e){return e?"month-select":"month-range"}function c(e){var r=e.component,t=e.year,u=e.month,l=e.day,h=e.monthYearOnly,d=e.yearTouched,c=e.monthTouched,p=e.dayTouched,v=e.monthSelect,b=e.monthOptional;if(t||u||l){var w=g(t,u);r.invalidYear=!1,r.invalidMonth=!1,r.invalidDay=!1;var y=!(h&&b);if(y&&isNaN(u)&&c)return r.invalidMonth=!0,void(r.error=f(v));if(!h&&isNaN(l)&&p)return r.invalidDay=!0,void(r.error="day-range");if(isNaN(t)&&d)return r.invalidYear=!0,void(r.error="year-range");if(r.required&&(!t||y&&!u||!h&&!l)){if(y&&c&&!u)return r.invalidMonth=!0,void(r.error="date-error");if(p&&!l&&!h)return r.invalidDay=!0,void(r.error="date-error");if(d&&!t)return r.invalidYear=!0,void(r.error="date-error")}if(y&&!u&&c)return r.invalidMonth=!0,void(r.error=f(v));if(!l&&!h&&p)return r.invalidDay=!0,void(r.error="day-range");if(!t&&d)return r.invalidYear=!0,void(r.error="year-range");if(y&&u&&(u<i||u>n)&&c)return r.invalidMonth=!0,void(r.error=f(v));if(l&&!h&&(l<s||l>w)&&p)return r.invalidDay=!0,void(r.error="day-range");if(t&&(t<o||t>a)&&d)return r.invalidYear=!0,void(r.error="year-range");if(!u||!c||p||d)return u&&c&&l&&p&&!d?(r.invalidYear=!0,void(r.error="date-error")):void(r.invalidYear||r.invalidMonth||r.invalidDay||r.error&&!m.includes(r.error)||(r.error=null));h?(r.invalidYear=!0,r.error="date-error"):(r.invalidDay=!0,r.error="date-error")}}function p(e,r,t){var i=g(r,t);switch(e){case"month-range":case"month-select":return{start:1,end:n};case"day-range":return{start:1,end:i};case"year-range":return{start:o,end:a};default:return null}}var g=function(e,r){var t;return e&&r?new Date(e,r,0).getDate():(null===(t=d[r])||void 0===t?void 0:t.length)||31},v=function(e,r,t){if(void 0===r&&(r={dateStyle:"full",timeStyle:"short"}),void 0===t&&(t="America/New_York"),e&&e instanceof Date)return e.toLocaleString("en-US",Object.assign(Object.assign({},r),{timeZone:t}))},b=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()>r.getTime()},w=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()<r.getTime()},y=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDay()===r.getDay()},x=function(e){return"00".concat((e||"").toString()).slice(-2)}},4569:function(e,r,t){t.r(r),t.d(r,{c:function(){return n}});var a,o={exports:{}};a=o,function(){var e={}.hasOwnProperty;function r(){for(var t=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)t.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&t.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}a.exports?(r.default=r,a.exports=r):window.classNames=r}();var n=o.exports},6104:function(e,r,t){function a(e){return!Number.isNaN(parseFloat(e))}function o(e,r,t){void 0===t&&(t="slot");var a=e.shadowRoot.querySelector(t).assignedNodes();return null!==r?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===r})):Array.from(a)}function n(e){return 1===e?"":"s"}function i(e,r){if(void 0===e||""===e)return"".concat(r," character").concat(n(r)," allowed");var t;if(e.length<=r){var a=r-e.length;t="".concat(a," character").concat(n(a)," left")}else a=e.length-r,t="".concat(a," character").concat(n(a)," over limit");return t}function s(e,r){return Array.from({length:r-e+1},(function(r,t){return e+t}))}t.r(r),t.d(r,{S:function(){return h},a:function(){return o},b:function(){return a},c:function(){return g},d:function(){return p},e:function(){return v},f:function(){return i},g:function(){return d},h:function(){return m},i:function(){return f},m:function(){return s},s:function(){return l},u:function(){return b}}),t(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,r){var t=function(e,r){if("string"!=typeof e)return[];if(!r||!u(r))return[];var t=r.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,r);return"string"!=typeof e||u(r)&&r.matches(e)&&t.push(r),t}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var r="",t=0;t<e.length;t++)r+=e[t],t+1<arguments.length&&(r+=String(arguments[t+1]||"").replace(h._entity,h.getEntity));return r}};function d(e){var r;return(r="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&r<=6?"h".concat(r):null}function m(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function c(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function p(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===r)return!0;if("function"==typeof e||"function"==typeof r)return!0;if("object"!=typeof e||"object"!=typeof r)return!1;if(null===e||null===r)return!1;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(c(e)||c(r)){if(!c(e)||!c(r))return!1;var o=Array.prototype.slice;return p(o.call(e),o.call(r),t,a)}if(e.constructor!==r.constructor)return!1;var n=Object.keys(e),i=Object.keys(r);if(0===n.length&&0===i.length)return!0;if(n.length!==i.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return a[s]===r;t.push(e),a.push(r),n.sort(),i.sort();for(var u=n.length-1;u>=0;u--)if(n[u]!==i[u])return!1;for(var l=void 0,h=n.length-1;h>=0;h--)if(!p(e[l=n[h]],r[l],t,a))return!1;return t.pop(),a.pop(),!0}function g(e,r){var t;return function(){for(var a=this,o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];clearTimeout(t),t=setTimeout((function(){return e.apply(a,o)}),r)}}function v(e){if(null!=e){var r="string"==typeof e?parseInt(e,10):e;if(!(r<=0||isNaN(r)))return r}}function b(e,r,t){e&&(e.innerText=i(r,v(t)))}},5663:function(e,r,t){t.r(r),t.d(r,{va_memorable_date:function(){return u}});var a=t(7911),o=t(4534),n=t(6104),i=(t(5384),t(4569)),s=t(4665),u=function(){function e(e){var r=this;(0,a.r)(this,e),this.dateChange=(0,a.c)(this,"dateChange",7),this.dateBlur=(0,a.c)(this,"dateBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.dayTouched=!1,this.monthTouched=!1,this.yearTouched=!1,this.handleDateBlur=function(e){var t,a=r,n=a.currentYear,i=a.currentMonth,s=a.currentDay,u=Number(n||t),l=Number(i||t),h=Number(s||t);if((0,o.v)({component:r,year:u,month:l,day:h,yearTouched:r.yearTouched,monthTouched:r.monthTouched,dayTouched:r.dayTouched,monthSelect:r.monthSelect}),!r.error&&(r.value=n||i||s?[n,i?(0,o.z)(l):"",s?(0,o.z)(h):""].join("-"):"",r.dateBlur.emit(e),r.enableAnalytics)){var d={componentName:"va-memorable-date",action:"blur",details:{label:r.label,year:u,month:l,day:h}};r.componentLibraryAnalytics.emit(d)}},this.handleMonthChange=function(e){var t=e.target;r.currentMonth=t.value,r.handleDateChange(e)},this.handleDayChange=function(e){var t=e.target;r.currentDay=t.value,r.handleDateChange(e)},this.handleYearChange=function(e){var t=e.target;r.currentYear=t.value,r.handleDateChange(e)},this.handleDateChange=function(e){var t=r,a=t.currentYear,o=t.currentMonth,n=t.currentDay;r.value=a||o||n?[a||"",o||"",n||""].join("-"):"",r.dateChange.emit(e)},this.handleMonthBlur=function(){r.monthTouched=!0},this.handleDayBlur=function(){r.dayTouched=!0},this.handleYearBlur=function(){r.yearTouched=!0},this.required=!1,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.monthSelect=!1,this.label=void 0,this.name=void 0,this.hint=void 0,this.error=void 0,this.value=void 0,this.customDayErrorMessage=void 0,this.customMonthErrorMessage=void 0,this.customYearErrorMessage=void 0,this.removeDateHint=!1,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1,this.enableAnalytics=!1}return e.prototype.connectedCallback=function(){var e=this;s.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){s.i.off("languageChanged")},e.prototype.componentWillLoad=function(){this.parseValueProp()},e.prototype.parseValueProp=function(){var e=(this.value||"").split("-"),r=e[0],t=e[1],a=e[2];this.currentYear=r,this.currentMonth=t,this.currentDay=a},e.prototype.handleValueChange=function(){this.parseValueProp(),this.error=null,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1},e.prototype.render=function(){var e=this,r=this,t=r.required,u=r.label,l=r.name,h=r.hint,d=r.error,m=r.handleDateBlur,f=r.monthSelect,c=r.useFormsPattern,p=r.formHeadingLevel,g=r.formHeading,v=r.removeDateHint,b=this,w=b.currentYear,y=b.currentMonth,x=b.currentDay,S=[v?"":"dateHint",h?"hint":""].filter(Boolean).join(" "),D=f?s.i.t("date-hint-with-select"):s.i.t("date-hint"),M=function(e){return s.i.t(e,function(e){var r=parseInt(w,10),t=parseInt(y,10);return(0,o.g)(e,r,t)}(e))},T="".concat(c&&g?"form-question":""," ").concat(c?"form-description":""," ").concat(c&&u?"input-label":"").trim()||null,N=null;if("single"===c||"multiple"===c){var C=(0,n.g)(p);N=(0,a.h)(a.F,null,g&&(0,a.h)(C,{id:"form-question",part:"form-header"},g),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}var Y=f?(0,a.h)("div",{class:"usa-form-group usa-form-group--month usa-form-group--select"},(0,a.h)("va-select",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month","aria-describedby":S,"aria-labelledby":T,invalid:this.invalidMonth,onVaSelect:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-select",reflectInputError:"month-range"===d,value:y?String(parseInt(y,10)):y,required:t,hideRequiredText:!0,error:this.invalidMonth?M(d):null,showError:!1},o.m&&o.m.map((function(e){return(0,a.h)("option",{value:e.value,selected:e.value===parseInt(y,10)},e.label)})))):(0,a.h)("div",{class:"usa-form-group usa-form-group--month"},(0,a.h)("va-text-input",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month",maxlength:2,pattern:"[0-9]*","aria-describedby":S,"aria-labelledby":T,invalid:this.invalidMonth,value:null==y?void 0:y.toString(),onInput:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-input memorable-date-input",reflectInputError:"month-range"===d,inputmode:"numeric",type:"text",required:t,hideRequiredText:!0,error:this.invalidMonth?M(d):null,"show-input-error":"false"})),z=(0,i.c)({"usa-legend":!0,"usa-label--error":d});return(0,a.h)(a.H,{onBlur:m},N,(0,a.h)("div",{class:"input-wrap"},(0,a.h)("fieldset",{class:"usa-form usa-fieldset"},(0,a.h)("legend",{class:z,id:"input-label",part:"legend"},u,t&&(0,a.h)("span",{class:"usa-label--required"}," ",s.i.t("required")),h&&(0,a.h)("div",{class:"usa-hint",id:"hint"},h),!v&&(0,a.h)("span",{class:"usa-hint",id:"dateHint"},D)),(0,a.h)("span",{id:"error-message",role:"alert"},d&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},s.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},function(r){var t="";return e.invalidDay?t=e.customDayErrorMessage:e.invalidMonth?t=e.customMonthErrorMessage:e.invalidYear&&(t=e.customYearErrorMessage),t||M(r)}(d)))),(0,a.h)("slot",null),(0,a.h)("div",{class:"usa-memorable-date"},Y,(0,a.h)("div",{class:"usa-form-group usa-form-group--day"},(0,a.h)("va-text-input",{label:s.i.t("day"),name:l?"".concat(l,"Day"):"Day",maxlength:2,pattern:"[0-9]*","aria-describedby":S,invalid:this.invalidDay,value:null==x?void 0:x.toString(),onInput:this.handleDayChange,onBlur:this.handleDayBlur,class:"usa-form-group--day-input memorable-date-input",reflectInputError:"day-range"===d,inputmode:"numeric",type:"text",required:t,hideRequiredText:!0,error:this.invalidDay?M(d):null,"show-input-error":"false"})),(0,a.h)("div",{class:"usa-form-group usa-form-group--year"},(0,a.h)("va-text-input",{label:s.i.t("year"),name:l?"".concat(l,"Year"):"Year",maxlength:4,pattern:"[0-9]*","aria-describedby":S,invalid:this.invalidYear,value:null==w?void 0:w.toString(),onInput:this.handleYearChange,onBlur:this.handleYearBlur,class:"usa-form-group--year-input memorable-date-input",reflectInputError:"year-range"===d,inputmode:"numeric",type:"text",required:t,hideRequiredText:!0,error:this.invalidYear?M(d):null,"show-input-error":"false"}))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();u.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}#error-message{margin-bottom:0.75rem}#error-message,#input-error-message{color:var(--vads-color-secondary-dark);display:block;font-weight:700;font-size:1.06rem}:host([error]:not([error=\'\'])),:host(.va-form-group--error){border-left:0.3rem solid var(--vads-color-secondary-dark);padding-left:1.25rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=\'\'])),:host(.va-form-group--error){margin-left:-1.4375rem;}}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-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-form-group{margin-top:1.5rem}.usa-form-group .usa-label:first-child{margin-top:0}.usa-form-group--error{border-left-width:0.25rem;border-left-color:#b50909;border-left-style:solid;padding-left:1rem;position:relative}@media all and (min-width: 64em){.usa-form-group--error{margin-left:-1.25rem}}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-memorable-date{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.usa-memorable-date [type=number]{-moz-appearance:textfield}.usa-memorable-date [type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.usa-memorable-date [type=number]::-webkit-contacts-auto-fill-button{visibility:hidden;display:none !important;pointer-events:none;height:0;width:0;margin:0}.usa-memorable-date .usa-form-group{margin-top:1rem}.usa-form-group--day,.usa-form-group--month,.usa-form-group--year{-ms-flex:0 1 auto;flex:0 1 auto;margin-right:1rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.usa-form-group--day input,.usa-form-group--month input{width:3rem}.usa-form-group--month select{width:15rem}.usa-form-group--year input{width:4.5rem}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);margin-top:24px}#error-message{margin-bottom:0}.usa-hint{display:block}slot:not([name])::slotted(*:last-child){margin-bottom:0.5rem}va-select::part(label),va-text-input::part(label){margin-top:0;margin-bottom:12px}va-text-input::part(validation){display:none}.usa-memorable-date{margin-top:16px;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.usa-memorable-date .usa-form-group{margin-top:0px}.usa-form-group--month{margin-right:16px}.usa-form-group--month-input{width:48px}.usa-form-group--month-select{width:15rem}.usa-form-group--day-input{width:3rem}.usa-form-group--year-input{width:4.5rem}@media (max-width: 480px){.usa-form-group--month-select{width:100%}.usa-form-group--select{-ms-flex:0 1 50%;flex:0 1 50%;width:50%}}'}}]);
2
+ "use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4534,4569,5663,6104],{4534:function(e,r,t){t.r(r),t.d(r,{a:function(){return w},b:function(){return b},d:function(){return g},f:function(){return v},g:function(){return p},i:function(){return y},m:function(){return u},v:function(){return c},z:function(){return x}}),t(4665),t(7911);var a=(new Date).getFullYear()+100,o=1900,n=12,i=1,s=1,u=[{label:"January",value:1},{label:"February",value:2},{label:"March",value:3},{label:"April",value:4},{label:"May",value:5},{label:"June",value:6},{label:"July",value:7},{label:"August",value:8},{label:"September",value:9},{label:"October",value:10},{label:"November",value:11},{label:"December",value:12}],l=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],h=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],d={1:h,2:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],3:h,4:l,5:h,6:l,7:h,8:h,9:l,10:h,11:l,12:h},m=["year-range","day-range","month-range","date-error","month-select"];function f(e){return e?"month-select":"month-range"}function c(e){var r=e.component,t=e.year,u=e.month,l=e.day,h=e.monthYearOnly,d=e.yearTouched,c=e.monthTouched,p=e.dayTouched,v=e.monthSelect,b=e.monthOptional;if(t||u||l){var w=g(t,u);r.invalidYear=!1,r.invalidMonth=!1,r.invalidDay=!1;var y=!(h&&b);if(y&&isNaN(u)&&c)return r.invalidMonth=!0,void(r.error=f(v));if(!h&&isNaN(l)&&p)return r.invalidDay=!0,void(r.error="day-range");if(isNaN(t)&&d)return r.invalidYear=!0,void(r.error="year-range");if(r.required&&(!t||y&&!u||!h&&!l)){if(y&&c&&!u)return r.invalidMonth=!0,void(r.error="date-error");if(p&&!l&&!h)return r.invalidDay=!0,void(r.error="date-error");if(d&&!t)return r.invalidYear=!0,void(r.error="date-error")}if(y&&!u&&c)return r.invalidMonth=!0,void(r.error=f(v));if(!l&&!h&&p)return r.invalidDay=!0,void(r.error="day-range");if(!t&&d)return r.invalidYear=!0,void(r.error="year-range");if(y&&u&&(u<i||u>n)&&c)return r.invalidMonth=!0,void(r.error=f(v));if(l&&!h&&(l<s||l>w)&&p)return r.invalidDay=!0,void(r.error="day-range");if(t&&(t<o||t>a)&&d)return r.invalidYear=!0,void(r.error="year-range");if(!u||!c||p||d)return u&&c&&l&&p&&!d?(r.invalidYear=!0,void(r.error="date-error")):void(r.invalidYear||r.invalidMonth||r.invalidDay||r.error&&!m.includes(r.error)||(r.error=null));h?(r.invalidYear=!0,r.error="date-error"):(r.invalidDay=!0,r.error="date-error")}}function p(e,r,t){var i=g(r,t);switch(e){case"month-range":case"month-select":return{start:1,end:n};case"day-range":return{start:1,end:i};case"year-range":return{start:o,end:a};default:return null}}var g=function(e,r){var t;return e&&r?new Date(e,r,0).getDate():(null===(t=d[r])||void 0===t?void 0:t.length)||31},v=function(e,r,t){if(void 0===r&&(r={dateStyle:"full",timeStyle:"short"}),void 0===t&&(t="America/New_York"),e&&e instanceof Date)return e.toLocaleString("en-US",Object.assign(Object.assign({},r),{timeZone:t}))},b=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()>r.getTime()},w=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()<r.getTime()},y=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDay()===r.getDay()},x=function(e){return"00".concat((e||"").toString()).slice(-2)}},4569:function(e,r,t){t.r(r),t.d(r,{c:function(){return n}});var a,o={exports:{}};a=o,function(){var e={}.hasOwnProperty;function r(){for(var t=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)t.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&t.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}a.exports?(r.default=r,a.exports=r):window.classNames=r}();var n=o.exports},6104:function(e,r,t){function a(e){return!Number.isNaN(parseFloat(e))}function o(e,r,t){void 0===t&&(t="slot");var a=e.shadowRoot.querySelector(t).assignedNodes();return null!==r?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===r})):Array.from(a)}function n(e){return 1===e?"":"s"}function i(e,r){if(void 0===e||""===e)return"".concat(r," character").concat(n(r)," allowed");var t;if(e.length<=r){var a=r-e.length;t="".concat(a," character").concat(n(a)," left")}else a=e.length-r,t="".concat(a," character").concat(n(a)," over limit");return t}function s(e,r){return Array.from({length:r-e+1},(function(r,t){return e+t}))}t.r(r),t.d(r,{S:function(){return h},a:function(){return o},b:function(){return a},c:function(){return g},d:function(){return p},e:function(){return v},f:function(){return i},g:function(){return d},h:function(){return m},i:function(){return f},m:function(){return s},s:function(){return l},u:function(){return b}}),t(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,r){var t=function(e,r){if("string"!=typeof e)return[];if(!r||!u(r))return[];var t=r.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,r);return"string"!=typeof e||u(r)&&r.matches(e)&&t.push(r),t}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var r="",t=0;t<e.length;t++)r+=e[t],t+1<arguments.length&&(r+=String(arguments[t+1]||"").replace(h._entity,h.getEntity));return r}};function d(e){var r;return(r="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&r<=6?"h".concat(r):null}function m(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function c(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function p(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===r)return!0;if("function"==typeof e||"function"==typeof r)return!0;if("object"!=typeof e||"object"!=typeof r)return!1;if(null===e||null===r)return!1;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(c(e)||c(r)){if(!c(e)||!c(r))return!1;var o=Array.prototype.slice;return p(o.call(e),o.call(r),t,a)}if(e.constructor!==r.constructor)return!1;var n=Object.keys(e),i=Object.keys(r);if(0===n.length&&0===i.length)return!0;if(n.length!==i.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return a[s]===r;t.push(e),a.push(r),n.sort(),i.sort();for(var u=n.length-1;u>=0;u--)if(n[u]!==i[u])return!1;for(var l=void 0,h=n.length-1;h>=0;h--)if(!p(e[l=n[h]],r[l],t,a))return!1;return t.pop(),a.pop(),!0}function g(e,r){var t;return function(){for(var a=this,o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];clearTimeout(t),t=setTimeout((function(){return e.apply(a,o)}),r)}}function v(e){if(null!=e){var r="string"==typeof e?parseInt(e,10):e;if(!(r<=0||isNaN(r)))return r}}function b(e,r,t){e&&(e.innerText=i(r,v(t)))}},5663:function(e,r,t){t.r(r),t.d(r,{va_memorable_date:function(){return u}});var a=t(7911),o=t(4534),n=t(6104),i=(t(5384),t(4569)),s=t(4665),u=function(){function e(e){var r=this;(0,a.r)(this,e),this.dateChange=(0,a.c)(this,"dateChange",7),this.dateBlur=(0,a.c)(this,"dateBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.dayTouched=!1,this.monthTouched=!1,this.yearTouched=!1,this.handleDateBlur=function(e){var t,a=r,n=a.currentYear,i=a.currentMonth,s=a.currentDay,u=Number(n||t),l=Number(i||t),h=Number(s||t);if((0,o.v)({component:r,year:u,month:l,day:h,yearTouched:r.yearTouched,monthTouched:r.monthTouched,dayTouched:r.dayTouched,monthSelect:r.monthSelect}),!r.error&&(r.value=n||i||s?[n,i?(0,o.z)(l):"",s?(0,o.z)(h):""].join("-"):"",r.dateBlur.emit(e),r.enableAnalytics)){var d={componentName:"va-memorable-date",action:"blur",details:{label:r.label,year:u,month:l,day:h}};r.componentLibraryAnalytics.emit(d)}},this.handleMonthChange=function(e){var t=e.target;r.currentMonth=t.value,r.handleDateChange(e)},this.handleDayChange=function(e){var t=e.target;r.currentDay=t.value,r.handleDateChange(e)},this.handleYearChange=function(e){var t=e.target;r.currentYear=t.value,r.handleDateChange(e)},this.handleDateChange=function(e){var t=r,a=t.currentYear,o=t.currentMonth,n=t.currentDay;r.value=a||o||n?[a||"",o||"",n||""].join("-"):"",r.dateChange.emit(e)},this.handleMonthBlur=function(){r.monthTouched=!0},this.handleDayBlur=function(){r.dayTouched=!0},this.handleYearBlur=function(){r.yearTouched=!0},this.required=!1,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.monthSelect=!1,this.label=void 0,this.name=void 0,this.hint=void 0,this.error=void 0,this.value=void 0,this.customDayErrorMessage=void 0,this.customMonthErrorMessage=void 0,this.customYearErrorMessage=void 0,this.removeDateHint=!1,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0}return e.prototype.connectedCallback=function(){var e=this;s.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){s.i.off("languageChanged")},e.prototype.componentWillLoad=function(){this.parseValueProp()},e.prototype.parseValueProp=function(){var e=(this.value||"").split("-"),r=e[0],t=e[1],a=e[2];this.currentYear=r,this.currentMonth=t,this.currentDay=a},e.prototype.handleValueChange=function(){this.parseValueProp(),this.error=null,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1},e.prototype.render=function(){var e=this,r=this,t=r.required,u=r.label,l=r.name,h=r.hint,d=r.error,m=r.handleDateBlur,f=r.monthSelect,c=r.useFormsPattern,p=r.formHeadingLevel,g=r.formHeading,v=r.removeDateHint,b=r.headerAriaDescribedby,w=this,y=w.currentYear,x=w.currentMonth,D=w.currentDay,S=[v?"":"dateHint",h?"hint":""].filter(Boolean).join(" "),M=f?s.i.t("date-hint-with-select"):s.i.t("date-hint"),T=function(e){return s.i.t(e,function(e){var r=parseInt(y,10),t=parseInt(x,10);return(0,o.g)(e,r,t)}(e))},N="".concat(c&&g?"form-question":""," ").concat(c?"form-description":""," ").concat(c&&u?"input-label":"").trim()||null,C="single"===c||"multiple"===c,Y=(0,n.g)(this.labelHeaderLevel),z=b?"header-message":null,A=null;if(C){var k=(0,n.g)(p);A=(0,a.h)(a.F,null,g&&(0,a.h)(k,{id:"form-question",part:"form-header"},g),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}var H=f?(0,a.h)("div",{class:"usa-form-group usa-form-group--month usa-form-group--select"},(0,a.h)("va-select",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month","aria-describedby":S,"aria-labelledby":N,invalid:this.invalidMonth,onVaSelect:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-select",reflectInputError:"month-range"===d,value:x?String(parseInt(x,10)):x,required:t,hideRequiredText:!0,error:this.invalidMonth?T(d):null,showError:!1},o.m&&o.m.map((function(e){return(0,a.h)("option",{value:e.value,selected:e.value===parseInt(x,10)},e.label)})))):(0,a.h)("div",{class:"usa-form-group usa-form-group--month"},(0,a.h)("va-text-input",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month",maxlength:2,pattern:"[0-9]*","aria-describedby":S,"aria-labelledby":N,invalid:this.invalidMonth,value:null==x?void 0:x.toString(),onInput:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-input memorable-date-input",reflectInputError:"month-range"===d,inputmode:"numeric",type:"text",required:t,hideRequiredText:!0,error:this.invalidMonth?T(d):null,"show-input-error":"false"})),q=(0,i.c)({"usa-legend":!0,"usa-label--error":d}),_=(0,a.h)(a.F,null,u,"multiple"===c?(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},u):b&&(0,a.h)("span",{id:"header-message",class:"usa-sr-only"},b));return(0,a.h)(a.H,{onBlur:m},A,(0,a.h)("div",{class:"input-wrap"},(0,a.h)("fieldset",{class:"usa-form usa-fieldset"},(0,a.h)("legend",{class:q,id:"input-label",part:"legend"},u&&Y?(0,a.h)(Y,{"aria-describedby":z},_):(0,a.h)(a.F,null,_),t&&(0,a.h)("span",{class:"usa-label--required"}," ",s.i.t("required")),h&&(0,a.h)("div",{class:"usa-hint",id:"hint"},h),!v&&(0,a.h)("span",{class:"usa-hint",id:"dateHint"},M)),(0,a.h)("span",{id:"error-message",role:"alert"},d&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},s.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},function(r){var t="";return e.invalidDay?t=e.customDayErrorMessage:e.invalidMonth?t=e.customMonthErrorMessage:e.invalidYear&&(t=e.customYearErrorMessage),t||T(r)}(d)))),(0,a.h)("slot",null),(0,a.h)("div",{class:"usa-memorable-date"},H,(0,a.h)("div",{class:"usa-form-group usa-form-group--day"},(0,a.h)("va-text-input",{label:s.i.t("day"),name:l?"".concat(l,"Day"):"Day",maxlength:2,pattern:"[0-9]*","aria-describedby":S,invalid:this.invalidDay,value:null==D?void 0:D.toString(),onInput:this.handleDayChange,onBlur:this.handleDayBlur,class:"usa-form-group--day-input memorable-date-input",reflectInputError:"day-range"===d,inputmode:"numeric",type:"text",required:t,hideRequiredText:!0,error:this.invalidDay?T(d):null,"show-input-error":"false"})),(0,a.h)("div",{class:"usa-form-group usa-form-group--year"},(0,a.h)("va-text-input",{label:s.i.t("year"),name:l?"".concat(l,"Year"):"Year",maxlength:4,pattern:"[0-9]*","aria-describedby":S,invalid:this.invalidYear,value:null==y?void 0:y.toString(),onInput:this.handleYearChange,onBlur:this.handleYearBlur,class:"usa-form-group--year-input memorable-date-input",reflectInputError:"year-range"===d,inputmode:"numeric",type:"text",required:t,hideRequiredText:!0,error:this.invalidYear?T(d):null,"show-input-error":"false"}))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();u.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}#error-message{margin-bottom:0.75rem}#error-message,#input-error-message{color:var(--vads-color-secondary-dark);display:block;font-weight:700;font-size:1.06rem}:host([error]:not([error=\'\'])),:host(.va-form-group--error){border-left:0.3rem solid var(--vads-color-secondary-dark);padding-left:1.25rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=\'\'])),:host(.va-form-group--error){margin-left:-1.4375rem;}}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-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-form-group{margin-top:1.5rem}.usa-form-group .usa-label:first-child{margin-top:0}.usa-form-group--error{border-left-width:0.25rem;border-left-color:#b50909;border-left-style:solid;padding-left:1rem;position:relative}@media all and (min-width: 64em){.usa-form-group--error{margin-left:-1.25rem}}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-memorable-date{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.usa-memorable-date [type=number]{-moz-appearance:textfield}.usa-memorable-date [type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.usa-memorable-date [type=number]::-webkit-contacts-auto-fill-button{visibility:hidden;display:none !important;pointer-events:none;height:0;width:0;margin:0}.usa-memorable-date .usa-form-group{margin-top:1rem}.usa-form-group--day,.usa-form-group--month,.usa-form-group--year{-ms-flex:0 1 auto;flex:0 1 auto;margin-right:1rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.usa-form-group--day input,.usa-form-group--month input{width:3rem}.usa-form-group--month select{width:15rem}.usa-form-group--year input{width:4.5rem}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);margin-top:24px}#error-message{margin-bottom:0}.usa-hint{display:block}slot:not([name])::slotted(*:last-child){margin-bottom:0.5rem}va-select::part(label),va-text-input::part(label){margin-top:0;margin-bottom:12px}va-text-input::part(validation){display:none}.usa-memorable-date{margin-top:16px;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.usa-memorable-date .usa-form-group{margin-top:0px}.usa-form-group--month{margin-right:16px}.usa-form-group--month-input{width:48px}.usa-form-group--month-select{width:15rem}.usa-form-group--day-input{width:3rem}.usa-form-group--year-input{width:4.5rem}@media (max-width: 480px){.usa-form-group--month-select{width:100%}.usa-form-group--select{-ms-flex:0 1 50%;flex:0 1 50%;width:50%}}'}}]);