@department-of-veterans-affairs/component-library 49.1.2-rc1 → 49.2.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.
- package/dist/1365.app.bundle.js +1 -1
- package/dist/2664.app.bundle.js +1 -1
- package/dist/286.app.bundle.js +1 -1
- package/dist/4064.app.bundle.js +1 -1
- package/dist/4117.app.bundle.js +1 -1
- package/dist/712.app.bundle.js +1 -1
- package/dist/7821.app.bundle.js +1 -1
- package/dist/9288.app.bundle.js +1 -1
- package/dist/9800.app.bundle.js +1 -1
- package/dist/app.bundle.js +1 -1
- package/dist/components/types/components.d.ts +16 -0
- package/dist/components/va-banner.js +1 -1
- package/dist/components/va-checkbox-group.js +1 -1
- package/dist/components/va-file-input-multiple.js +1 -1
- package/dist/components/va-file-input2.js +1 -1
- package/dist/components/va-memorable-date.js +1 -1
- package/dist/components/va-radio.js +1 -1
- package/dist/components/va-text-input2.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +4 -4
- package/dist/1042.app.bundle.js +0 -1
- package/dist/1059.app.bundle.js +0 -1
- package/dist/1185.app.bundle.js +0 -2
- package/dist/1185.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1237.app.bundle.js +0 -2
- package/dist/1237.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1274.app.bundle.js +0 -1
- package/dist/1279.app.bundle.js +0 -1
- package/dist/1321.app.bundle.js +0 -2
- package/dist/1321.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1343.app.bundle.js +0 -1
- package/dist/139.app.bundle.js +0 -1
- package/dist/1558.app.bundle.js +0 -1
- package/dist/1563.app.bundle.js +0 -2
- package/dist/1563.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1652.app.bundle.js +0 -1
- package/dist/1674.app.bundle.js +0 -2
- package/dist/1674.app.bundle.js.LICENSE.txt +0 -5
- package/dist/1680.app.bundle.js +0 -1
- package/dist/2010.app.bundle.js +0 -1
- package/dist/2025.app.bundle.js +0 -2
- package/dist/2025.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2104.app.bundle.js +0 -1
- package/dist/2108.app.bundle.js +0 -2
- package/dist/2108.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2159.app.bundle.js +0 -2
- package/dist/2159.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2272.app.bundle.js +0 -1
- package/dist/2305.app.bundle.js +0 -2
- package/dist/2305.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2342.app.bundle.js +0 -1
- package/dist/2465.app.bundle.js +0 -1
- package/dist/265.app.bundle.js +0 -1
- package/dist/2715.app.bundle.js +0 -1
- package/dist/2783.app.bundle.js +0 -2
- package/dist/2783.app.bundle.js.LICENSE.txt +0 -5
- package/dist/2843.app.bundle.js +0 -1
- package/dist/2963.app.bundle.js +0 -1
- package/dist/3002.app.bundle.js +0 -1
- package/dist/3270.app.bundle.js +0 -2
- package/dist/3270.app.bundle.js.LICENSE.txt +0 -11
- package/dist/3389.app.bundle.js +0 -2
- package/dist/3389.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3476.app.bundle.js +0 -2
- package/dist/3476.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3499.app.bundle.js +0 -1
- package/dist/3510.app.bundle.js +0 -1
- package/dist/360.app.bundle.js +0 -2
- package/dist/360.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3661.app.bundle.js +0 -1
- package/dist/3718.app.bundle.js +0 -2
- package/dist/3718.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3719.app.bundle.js +0 -1
- package/dist/383.app.bundle.js +0 -2
- package/dist/383.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3848.app.bundle.js +0 -1
- package/dist/3853.app.bundle.js +0 -2
- package/dist/3853.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3882.app.bundle.js +0 -2
- package/dist/3882.app.bundle.js.LICENSE.txt +0 -5
- package/dist/3977.app.bundle.js +0 -1
- package/dist/4104.app.bundle.js +0 -1
- package/dist/4114.app.bundle.js +0 -1
- package/dist/4181.app.bundle.js +0 -2
- package/dist/4181.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4267.app.bundle.js +0 -2
- package/dist/4267.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4317.app.bundle.js +0 -2
- package/dist/4317.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4348.app.bundle.js +0 -1
- package/dist/4397.app.bundle.js +0 -2
- package/dist/4397.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4437.app.bundle.js +0 -1
- package/dist/4726.app.bundle.js +0 -2
- package/dist/4726.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4818.app.bundle.js +0 -2
- package/dist/4818.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4846.app.bundle.js +0 -1
- package/dist/4859.app.bundle.js +0 -1
- package/dist/4863.app.bundle.js +0 -2
- package/dist/4863.app.bundle.js.LICENSE.txt +0 -5
- package/dist/4934.app.bundle.js +0 -1
- package/dist/5112.app.bundle.js +0 -2
- package/dist/5112.app.bundle.js.LICENSE.txt +0 -17
- package/dist/5154.app.bundle.js +0 -1
- package/dist/5194.app.bundle.js +0 -2
- package/dist/5194.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5232.app.bundle.js +0 -1
- package/dist/5254.app.bundle.js +0 -1
- package/dist/5285.app.bundle.js +0 -2
- package/dist/5285.app.bundle.js.LICENSE.txt +0 -5
- package/dist/529.app.bundle.js +0 -2
- package/dist/529.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5431.app.bundle.js +0 -1
- package/dist/5434.app.bundle.js +0 -1
- package/dist/5585.app.bundle.js +0 -1
- package/dist/5669.app.bundle.js +0 -2
- package/dist/5669.app.bundle.js.LICENSE.txt +0 -5
- package/dist/569.app.bundle.js +0 -2
- package/dist/569.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5847.app.bundle.js +0 -1
- package/dist/5889.app.bundle.js +0 -2
- package/dist/5889.app.bundle.js.LICENSE.txt +0 -5
- package/dist/5941.app.bundle.js +0 -1
- package/dist/6166.app.bundle.js +0 -1
- package/dist/6171.app.bundle.js +0 -2
- package/dist/6171.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6191.app.bundle.js +0 -2
- package/dist/6191.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6205.app.bundle.js +0 -2
- package/dist/6205.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6221.app.bundle.js +0 -1
- package/dist/6230.app.bundle.js +0 -1
- package/dist/6391.app.bundle.js +0 -2
- package/dist/6391.app.bundle.js.LICENSE.txt +0 -5
- package/dist/646.app.bundle.js +0 -2
- package/dist/646.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6569.app.bundle.js +0 -2
- package/dist/6569.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6596.app.bundle.js +0 -2
- package/dist/6596.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6734.app.bundle.js +0 -1
- package/dist/6874.app.bundle.js +0 -1
- package/dist/6879.app.bundle.js +0 -1
- package/dist/6995.app.bundle.js +0 -2
- package/dist/6995.app.bundle.js.LICENSE.txt +0 -5
- package/dist/6998.app.bundle.js +0 -2
- package/dist/6998.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7003.app.bundle.js +0 -1
- package/dist/7019.app.bundle.js +0 -1
- package/dist/7061.app.bundle.js +0 -1
- package/dist/7183.app.bundle.js +0 -2
- package/dist/7183.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7339.app.bundle.js +0 -2
- package/dist/7339.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7375.app.bundle.js +0 -1
- package/dist/7384.app.bundle.js +0 -2
- package/dist/7384.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7422.app.bundle.js +0 -1
- package/dist/7454.app.bundle.js +0 -2
- package/dist/7454.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7485.app.bundle.js +0 -2
- package/dist/7485.app.bundle.js.LICENSE.txt +0 -5
- package/dist/753.app.bundle.js +0 -2
- package/dist/753.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7568.app.bundle.js +0 -2
- package/dist/7568.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7576.app.bundle.js +0 -1
- package/dist/7609.app.bundle.js +0 -2
- package/dist/7609.app.bundle.js.LICENSE.txt +0 -5
- package/dist/7705.app.bundle.js +0 -2
- package/dist/7705.app.bundle.js.LICENSE.txt +0 -11
- package/dist/7760.app.bundle.js +0 -1
- package/dist/7785.app.bundle.js +0 -2
- package/dist/7785.app.bundle.js.LICENSE.txt +0 -5
- package/dist/783.app.bundle.js +0 -1
- package/dist/7906.app.bundle.js +0 -2
- package/dist/7906.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8074.app.bundle.js +0 -2
- package/dist/8074.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8151.app.bundle.js +0 -2
- package/dist/8151.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8214.app.bundle.js +0 -1
- package/dist/8223.app.bundle.js +0 -1
- package/dist/8361.app.bundle.js +0 -2
- package/dist/8361.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8429.app.bundle.js +0 -2
- package/dist/8429.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8509.app.bundle.js +0 -2
- package/dist/8509.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8716.app.bundle.js +0 -2
- package/dist/8716.app.bundle.js.LICENSE.txt +0 -5
- package/dist/8750.app.bundle.js +0 -2
- package/dist/8750.app.bundle.js.LICENSE.txt +0 -5
- package/dist/876.app.bundle.js +0 -1
- package/dist/8912.app.bundle.js +0 -1
- package/dist/8991.app.bundle.js +0 -2
- package/dist/8991.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9101.app.bundle.js +0 -1
- package/dist/916.app.bundle.js +0 -1
- package/dist/9200.app.bundle.js +0 -2
- package/dist/9200.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9262.app.bundle.js +0 -2
- package/dist/9262.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9275.app.bundle.js +0 -2
- package/dist/9275.app.bundle.js.LICENSE.txt +0 -5
- package/dist/934.app.bundle.js +0 -2
- package/dist/934.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9356.app.bundle.js +0 -1
- package/dist/9370.app.bundle.js +0 -2
- package/dist/9370.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9398.app.bundle.js +0 -1
- package/dist/9407.app.bundle.js +0 -2
- package/dist/9407.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9425.app.bundle.js +0 -1
- package/dist/9452.app.bundle.js +0 -1
- package/dist/9727.app.bundle.js +0 -2
- package/dist/9727.app.bundle.js.LICENSE.txt +0 -5
- package/dist/9893.app.bundle.js +0 -1
- package/dist/9903.app.bundle.js +0 -1
- package/dist/9970.app.bundle.js +0 -2
- package/dist/9970.app.bundle.js.LICENSE.txt +0 -17
- package/dist/assets/minus.svg +0 -2
- package/dist/assets/plus.svg +0 -2
- package/dist/components/_commonjsHelpers.js +0 -1
- package/dist/components/img/sprite.svg +0 -5
- package/dist/components/index3.js +0 -2
- package/dist/components/index3.js.LICENSE.txt +0 -5
- package/dist/components/p-0bd33282.js +0 -1
- package/dist/components/p-2bacc556.js +0 -2
- package/dist/components/p-2bacc556.js.LICENSE.txt +0 -5
- package/dist/components/p-3092f0da.js +0 -1
- package/dist/components/p-51fd3760.js +0 -1
- package/dist/components/p-57ec7157.js +0 -1
- package/dist/components/p-5adc0c0f.js +0 -1
- package/dist/components/p-703b9866.js +0 -1
- package/dist/components/p-71f3e557.js +0 -1
- package/dist/components/p-7bd5360a.js +0 -1
- package/dist/components/p-7f18a9c3.js +0 -1
- package/dist/components/p-8377f9f7.js +0 -1
- package/dist/components/p-85dad1ee.js +0 -1
- package/dist/components/p-ad634c1d.js +0 -1
- package/dist/components/p-aead3f6c.js +0 -1
- package/dist/components/p-b5e86daf.js +0 -1
- package/dist/components/p-bbd1634b.js +0 -1
- package/dist/components/p-c8624782.js +0 -1
- package/dist/components/p-c968eed9.js +0 -1
- package/dist/components/p-d1bb9044.js +0 -1
- package/dist/components/p-d2716799.js +0 -1
- package/dist/components/p-d2a83ae3.js +0 -1
- package/dist/components/p-deb595cf.js +0 -1
- package/dist/components/p-ecc368bc.js +0 -1
- package/dist/components/va-number-input.d.ts +0 -11
- package/dist/components/va-number-input.js +0 -1
- package/dist/react-bindings/components.d.ts +0 -259
- package/dist/react-bindings/components.js +0 -1
- package/dist/react-bindings/components.js.map +0 -1
- package/dist/react-bindings/components.ts +0 -685
- package/dist/react-bindings/react-component-lib/attachProps.d.ts +0 -16
- package/dist/react-bindings/react-component-lib/attachProps.js +0 -2
- package/dist/react-bindings/react-component-lib/attachProps.js.LICENSE.txt +0 -4
- package/dist/react-bindings/react-component-lib/attachProps.js.map +0 -1
- package/dist/react-bindings/react-component-lib/attachProps.ts +0 -125
- package/dist/react-bindings/react-component-lib/case.d.ts +0 -2
- package/dist/react-bindings/react-component-lib/case.js +0 -1
- package/dist/react-bindings/react-component-lib/case.js.map +0 -1
- package/dist/react-bindings/react-component-lib/case.ts +0 -7
- package/dist/react-bindings/react-component-lib/dev.d.ts +0 -2
- package/dist/react-bindings/react-component-lib/dev.js +0 -1
- package/dist/react-bindings/react-component-lib/dev.js.map +0 -1
- package/dist/react-bindings/react-component-lib/dev.ts +0 -14
- package/dist/react-bindings/react-component-lib/index.tsx +0 -50
- package/en.js +0 -1
- package/es.js +0 -1
- package/i18n-setup.js +0 -1
- package/language-detector.js +0 -1
- package/tl.js +0 -1
package/dist/7821.app.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7821],{7821:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(3798),o=(i(2465),i(9425)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.additionalFileUploadMessage=(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder")),this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e})).map((function(e){return{file:e,changed:!1}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.enableAnalytics,u=t.readOnly,c=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"077494a14d9c32921c0da569f8a738ffdb1b630d",class:p},i&&!u&&this.renderLabelOrHeader(i,o,n),a&&!u&&(0,r.h)("div",{key:"f61a1355e17734e98c73fa02d8a826b358bb304d",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"8276798a5d2e05250bd2af9eed0a6af990dc47b1",class:c},(0,r.h)("div",{key:"82fc33990a0e85a40c39546f06c8deb7e51c1842",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"9eef6703e7b852c37895f94ad948333c5091d8e4",class:"selected-files-label"},u?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.additionalFileUploadMessage}:{},{error:d[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":f,value:t.file,readOnly:u,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"451a62070b04fba7a8c8542ae4acf46d9452e45b"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7821],{7821:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(3798),o=(i(2465),i(9425)),n=function(){function e(e){var t=this;(0,r.r)(this,e),this.vaMultipleChange=(0,r.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.additionalFileUploadMessage=(0,r.h)("span",null,"Drag an additional file here or"," ",(0,r.h)("span",{class:"file-input-choose-text"},"choose from folder")),this.renderLabelOrHeader=function(e,t,i){var n=t?(0,r.h)("span",{class:"required"}," ",o.i.t("required")):null;if(i&&i>=1&&i<=6){var a="h".concat(i);return(0,r.h)("div",{class:"label-header"},(0,r.h)(a,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,r.h)("div",{class:"label-header"},(0,r.h)("span",{part:"label",class:"usa-label"},e),n)},this.addValueFiles=function(){return function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var e=this;return function(e,t){var i,r,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(i=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{i=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(t){return this.files.shift(),this.value.forEach((function(t){e.files.push({file:t,key:e.fileKeyCounter,content:e.getAdditionalContent()||null}),e.fileKeyCounter++})),this.readOnly||this.files.push({file:null,key:this.fileKeyCounter,content:null}),this.valueAdded=!0,[2,Promise.resolve()]}))}))},this.hasErrors=function(){return t.errors.some((function(e){return!!e}))},this.label=void 0,this.name=void 0,this.required=!1,this.accept=void 0,this.errors=[],this.hint=void 0,this.enableAnalytics=!1,this.headerSize=void 0,this.value=void 0,this.readOnly=!1,this.slotFieldIndexes=null,this.files=[{key:0,file:null,content:null}],this.valueAdded=!1}return e.prototype.findFileByKey=function(e){return this.files.find((function(t){return t.key===e}))},e.prototype.findIndexByKey=function(e){return this.files.indexOf(this.files.find((function(t){return t.key===e})))},e.prototype.isEmpty=function(){return null===this.files[0].file},e.prototype.setSlotContent=function(){var e=this.el.shadowRoot.querySelector("slot");this.additionalSlot||(this.additionalSlot=e?e.assignedElements({flatten:!0}):[]),null==e||e.remove()},e.prototype.getAdditionalContent=function(){return this.additionalSlot&&this.additionalSlot.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r,o,n,a=e.detail.files[0];if(a){var s=this.findFileByKey(t);s.file?(o="FILE_UPDATED",n=a,s.file=a):(o="FILE_ADDED",n=a,s.file=a,s.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null})),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!1,this.findIndexByKey(t))}else{o="FILE_REMOVED",n=this.files[i].file,this.files.splice(i,1);var l=this.el.shadowRoot.querySelector("#statusMessage");l.textContent="",setTimeout((function(){l.textContent="File removed."}),1e3),r=this.buildFilesArray(this.files.map((function(e){return e.file})),!0)}var h={action:o,file:n,state:r};this.vaMultipleChange.emit(h),this.files=Array.of.apply(Array,this.files)},e.prototype.buildFilesArray=function(e,t,i){var r=e.filter((function(e){return!!e})).map((function(e){return{file:e,changed:!1}}));return!t&&r[i]&&(r[i].changed=!0),r},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");return this.setSlotContent(),t.forEach((function(t,i){!e.files[i].content||e.slotFieldIndexes&&!e.slotFieldIndexes.includes(i)||e.files[i].content.forEach((function(e){return t.append(e)}))})),this.value&&this.value.length&&!this.valueAdded?this.addValueFiles():Promise.resolve()},e.prototype.render=function(){var e=this,t=this,i=t.label,o=t.required,n=t.headerSize,a=t.hint,s=t.files,l=t.name,h=t.accept,d=t.errors,f=t.enableAnalytics,u=t.readOnly,c=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{key:"077494a14d9c32921c0da569f8a738ffdb1b630d",class:p},i&&!u&&this.renderLabelOrHeader(i,o,n),a&&!u&&(0,r.h)("div",{key:"f61a1355e17734e98c73fa02d8a826b358bb304d",class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{key:"8276798a5d2e05250bd2af9eed0a6af990dc47b1",class:c},(0,r.h)("div",{key:"82fc33990a0e85a40c39546f06c8deb7e51c1842",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{key:"9eef6703e7b852c37895f94ad948333c5091d8e4",class:"selected-files-label"},u?"Files you uploaded":"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",Object.assign({key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o},n>0?{uploadMessage:e.additionalFileUploadMessage}:{},{error:d[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":f,value:t.file,readOnly:u,class:t.file?"has-file":"no-file"}))}))),(0,r.h)("slot",{key:"451a62070b04fba7a8c8542ae4acf46d9452e45b"}))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}@import \'~@department-of-veterans-affairs/css-library/dist/stylesheets/base/headings.css\';:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host.has-error{border-left:0.25rem solid #b50909;padding-left:1rem}:host .outer-wrap{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light);display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host va-file-input.no-file{margin:0 8px}:host va-file-input:not(:last-child){border-bottom:1px solid var(--vads-color-white)}:host va-file-input.has-error{border-left:none;padding-left:0}@media screen and (min-width: 1008px){:host va-file-input.has-error{margin-left:0}}'}}]);
|
package/dist/9288.app.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[9288],{9288:function(e,a,t){t.r(a),t.d(a,{setNonce:function(){return n.s}});var i,n=t(3798),l=t(772);(i=(Array.from(n.d.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(n.N,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===n.N}))||{})["data-opts"]||{},i.resourcesUrl=new URL(".","file:///Users/jamigibbs/Development/department-of-veterans-affairs/component-library/packages/web-components/dist/esm-es5/component-library.js").href,(0,n.p)(i)).then((function(e){return function(e,a,t,i){function n(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,l){function r(e){try{o(i.next(e))}catch(e){l(e)}}function s(e){try{o(i.throw(e))}catch(e){l(e)}}function o(e){e.done?t(e.value):n(e.value).then(r,s)}o((i=i.apply(e,a||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,a){var t,i,n,l,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return l={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(a){return o([e,a])}}function o(s){if(t)throw new TypeError("Generator is already executing.");for(;l&&(l=0,s[0]&&(r=0)),r;)try{if(t=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 r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((n=(n=r.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(6===s[0]&&r.label<n[1]){r.label=n[1],n=s;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(s);break}n[2]&&r.ops.pop(),r.trys.pop();continue}s=a.call(e,r)}catch(e){s=[6,e],i=0}finally{t=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(a){switch(a.label){case 0:return[4,(0,l.g)()];case 1:return a.sent(),[2,(0,n.b)(JSON.parse('[["va-file-input-multiple",[[1,"va-file-input-multiple",{"label":[1],"name":[1],"required":[4],"accept":[1],"errors":[16],"hint":[1],"enableAnalytics":[4,"enable-analytics"],"headerSize":[2,"header-size"],"value":[16],"readOnly":[4,"read-only"],"slotFieldIndexes":[16],"files":[32],"valueAdded":[32]}]]],["va-header-minimal",[[1,"va-header-minimal",{"header":[1],"subheader":[1],"enableHeadings":[4,"enable-headings"],"shifted":[32]},[[8,"keydown","trackShiftKey"]]]]],["va-omb-info",[[1,"va-omb-info",{"benefitType":[1,"benefit-type"],"expDate":[1,"exp-date"],"ombNumber":[1,"omb-number"],"resBurden":[2,"res-burden"],"visible":[32],"shifted":[32]},[[8,"keydown","trackShiftKey"]]]]],["va-statement-of-truth",[[1,"va-statement-of-truth",{"heading":[1],"inputValue":[1,"input-value"],"inputError":[1,"input-error"],"checkboxError":[1,"checkbox-error"],"inputMessageAriaDescribedby":[1,"input-message-aria-describedby"],"checked":[4],"inputLabel":[1,"input-label"],"checkboxLabel":[1,"checkbox-label"]}]]],["va-date",[[1,"va-date",{"required":[4],"label":[1],"name":[1],"hint":[1],"error":[1537],"monthYearOnly":[4,"month-year-only"],"monthOptional":[4,"month-optional"],"value":[1537],"invalidDay":[1028,"invalid-day"],"invalidMonth":[1028,"invalid-month"],"invalidYear":[1028,"invalid-year"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-memorable-date",[[1,"va-memorable-date",{"required":[4],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"],"monthSelect":[4,"month-select"],"label":[1],"name":[1],"hint":[1],"error":[1537],"value":[1537],"customDayErrorMessage":[1,"custom-day-error-message"],"customMonthErrorMessage":[1,"custom-month-error-message"],"customYearErrorMessage":[1,"custom-year-error-message"],"invalidDay":[1028,"invalid-day"],"invalidMonth":[1028,"invalid-month"],"invalidYear":[1028,"invalid-year"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-notification",[[1,"va-notification",{"visible":[4],"symbol":[1],"closeBtnAriaLabel":[1,"close-btn-aria-label"],"closeable":[516],"hasBorder":[516,"has-border"],"hasCloseText":[4,"has-close-text"],"headline":[1],"headlineLevel":[1,"headline-level"],"dateTime":[1,"date-time"],"href":[1],"text":[1],"disableAnalytics":[4,"disable-analytics"]},[[0,"component-library-analytics","handleLinkAnalytics"]]]]],["va-privacy-agreement",[[1,"va-privacy-agreement",{"checked":[1028],"showError":[4,"show-error"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-alert-sign-in",[[1,"va-alert-sign-in",{"variant":[1],"headingLevel":[2,"heading-level"],"visible":[4],"timeLimit":[1,"time-limit"],"noSignInLink":[1,"no-sign-in-link"]}]]],["va-banner",[[1,"va-banner",{"disableAnalytics":[4,"disable-analytics"],"showClose":[4,"show-close"],"headline":[1],"type":[1],"visible":[4],"windowSession":[4,"window-session"],"dataLabel":[1,"data-label"],"dismissedBanners":[32]}]]],["va-button-pair",[[1,"va-button-pair",{"continue":[4],"disableAnalytics":[4,"disable-analytics"],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"submit":[1],"update":[4],"leftButtonText":[1,"left-button-text"],"rightButtonText":[1,"right-button-text"]},[[0,"component-library-analytics","handleButtonAnalytics"]]]]],["va-language-toggle",[[1,"va-language-toggle",{"language":[1025],"enHref":[1,"en-href"],"esHref":[1,"es-href"],"tlHref":[1,"tl-href"],"routerLinks":[4,"router-links"],"urls":[32]}]]],["va-table",[[1,"va-table",{"tableTitle":[1,"table-title"],"tableType":[1,"table-type"],"stacked":[4],"scrollable":[4],"sortable":[4],"striped":[4],"fullWidth":[4,"full-width"],"rows":[32],"cols":[32],"cells":[32]},[[0,"sortTable","doSort"]]]]],["va-additional-info",[[1,"va-additional-info",{"trigger":[1],"disableAnalytics":[4,"disable-analytics"],"disableBorder":[4,"disable-border"],"open":[32]},[[9,"resize","handleResize"]]]]],["va-alert-expandable",[[1,"va-alert-expandable",{"status":[1],"trigger":[1],"disableAnalytics":[4,"disable-analytics"],"iconless":[4],"open":[32]},[[9,"resize","handleResize"]]]]],["va-back-to-top",[[1,"va-back-to-top",{"revealed":[32],"isDocked":[32]}]]],["va-link-action",[[1,"va-link-action",{"disableAnalytics":[4,"disable-analytics"],"href":[1],"text":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"type":[1],"label":[1],"isSingleLine":[32]},null,{"text":["checkTextLines"]}]]],["va-maintenance-banner",[[1,"va-maintenance-banner",{"disableAnalytics":[4,"disable-analytics"],"bannerId":[1,"banner-id"],"maintenanceStartDateTime":[1,"maintenance-start-date-time"],"maintenanceEndDateTime":[1,"maintenance-end-date-time"],"maintenanceTitle":[1,"maintenance-title"],"upcomingWarnStartDateTime":[1,"upcoming-warn-start-date-time"],"upcomingWarnTitle":[1,"upcoming-warn-title"],"isError":[4,"is-error"]}]]],["va-on-this-page",[[1,"va-on-this-page",{"disableAnalytics":[4,"disable-analytics"]}]]],["va-promo-banner",[[1,"va-promo-banner",{"href":[1],"type":[1],"disableAnalytics":[4,"disable-analytics"],"dismissedBanners":[32]}]]],["va-search-input",[[1,"va-search-input",{"buttonText":[1,"button-text"],"label":[1],"suggestions":[8],"value":[1537],"big":[4],"small":[4],"disableAnalytics":[4,"disable-analytics"],"formattedSuggestions":[32],"isListboxOpen":[32],"isTouched":[32],"showClearButton":[32]},null,{"value":["watchValueHandler"],"suggestions":["watchSuggestionsHandler"]}]]],["va-accordion",[[1,"va-accordion",{"openSingle":[4,"open-single"],"disableAnalytics":[4,"disable-analytics"],"sectionHeading":[1,"section-heading"],"expanded":[32]},[[0,"accordionItemToggled","itemToggledHandler"]]]]],["va-accordion-item",[[1,"va-accordion-item",{"header":[1],"subheader":[1],"open":[4],"level":[2],"bordered":[4],"slotHeader":[32],"slotTag":[32]}]]],["va-breadcrumbs",[[1,"va-breadcrumbs",{"label":[1],"wrapping":[4],"breadcrumbList":[1,"breadcrumb-list"],"homeVeteransAffairs":[4,"home-veterans-affairs"],"disableAnalytics":[4,"disable-analytics"],"formattedBreadcrumbs":[32]},null,{"breadcrumbList":["watchBreadcrumbListHandler"]}]]],["va-checkbox-group",[[1,"va-checkbox-group",{"label":[1],"required":[4],"error":[1],"enableAnalytics":[4,"enable-analytics"],"hint":[1],"labelHeaderLevel":[1,"label-header-level"],"messageAriaDescribedby":[1,"message-aria-describedby"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"]},[[0,"vaChange","vaChangeHandler"]]]]],["va-combo-box",[[1,"va-combo-box",{"required":[4],"disabled":[4],"label":[1],"placeholder":[1],"name":[1],"value":[1537],"error":[1],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"options":[32],"labelNode":[32]}]]],["va-loading-indicator",[[1,"va-loading-indicator",{"message":[1],"label":[1],"setFocus":[4,"set-focus"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-minimal-footer",[[1,"va-minimal-footer"]]],["va-need-help",[[1,"va-need-help"]]],["va-pagination",[[1,"va-pagination",{"ariaLabelSuffix":[1,"aria-label-suffix"],"enableAnalytics":[4,"enable-analytics"],"maxPageListLength":[2,"max-page-list-length"],"page":[2],"pages":[2],"showLastPage":[4,"show-last-page"],"unbounded":[4]}]]],["va-process-list",[[1,"va-process-list"]]],["va-process-list-item",[[4,"va-process-list-item",{"header":[1],"level":[2],"active":[4],"pending":[4],"checkmark":[4],"statusText":[1,"status-text"]}]]],["va-progress-bar",[[1,"va-progress-bar",{"enableAnalytics":[4,"enable-analytics"],"percent":[2],"label":[1]}]]],["va-radio",[[1,"va-radio",{"label":[1],"hint":[1],"required":[4],"error":[1],"enableAnalytics":[4,"enable-analytics"],"labelHeaderLevel":[1,"label-header-level"],"headerAriaDescribedby":[1,"header-aria-describedby"],"messageAriaDescribedby":[1,"message-aria-describedby"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"]},[[0,"keydown","handleKeyDown"],[0,"radioOptionSelected","radioOptionSelectedHandler"]]]]],["va-radio-option",[[0,"va-radio-option",{"name":[1],"label":[1],"value":[1],"checked":[4],"tile":[4],"description":[1],"disabled":[4],"ariaDescribedby":[1,"aria-describedby"]}]]],["va-segmented-progress-bar",[[1,"va-segmented-progress-bar",{"enableAnalytics":[4,"enable-analytics"],"current":[2],"total":[2],"label":[1],"headerLevel":[2,"header-level"],"progressTerm":[1,"progress-term"],"labels":[1],"centeredLabels":[4,"centered-labels"],"counters":[1],"headingText":[1,"heading-text"],"useDiv":[4,"use-div"]}]]],["va-summary-box",[[1,"va-summary-box",{"headlineText":[32]}]]],["va-table-row",[[1,"va-table-row"]]],["va-textarea",[[1,"va-textarea",{"label":[1],"error":[1],"placeholder":[1],"name":[1],"required":[4],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"maxlength":[2],"value":[1537],"enableAnalytics":[4,"enable-analytics"],"labelHeaderLevel":[1,"label-header-level"],"headerAriaDescribedby":[1,"header-aria-describedby"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"],"charcount":[4]}]]],["va-icon",[[1,"va-icon",{"icon":[1],"size":[2],"srtext":[1]}]]],["va-button",[[1,"va-button",{"back":[516],"big":[516],"continue":[516],"disableAnalytics":[4,"disable-analytics"],"disabled":[516],"loading":[516],"label":[1],"primaryAlternate":[4,"primary-alternate"],"secondary":[516],"submit":[1],"text":[1],"messageAriaDescribedby":[1,"message-aria-describedby"]},[[0,"click","handleClickOverride"]],{"loading":["announceLoadingChange"]}]]],["va-file-input",[[1,"va-file-input",{"label":[1],"name":[1],"buttonText":[1,"button-text"],"value":[16],"required":[4],"accept":[1],"error":[1],"hint":[1],"statusText":[1,"status-text"],"uploadMessage":[16],"enableAnalytics":[4,"enable-analytics"],"headerSize":[2,"header-size"],"headless":[4],"readOnly":[4,"read-only"],"uploadedFile":[16],"file":[32],"fileContents":[32],"internalError":[32],"showModal":[32],"showSeparator":[32]},null,{"statusText":["handleValueChange"]}]]],["va-alert",[[1,"va-alert",{"status":[513],"disableAnalytics":[4,"disable-analytics"],"visible":[4],"closeBtnAriaLabel":[1,"close-btn-aria-label"],"closeable":[516],"fullWidth":[4,"full-width"],"slim":[4]}]]],["va-table-inner",[[1,"va-table-inner",{"tableTitle":[1,"table-title"],"rows":[2],"cols":[2],"tableType":[1,"table-type"],"stacked":[4],"sortable":[4],"scrollable":[4],"striped":[4],"fullWidth":[4,"full-width"],"sortdir":[32],"sortindex":[32]}]]],["va-crisis-line-modal_2",[[1,"va-crisis-line-modal",{"isOpen":[32],"shifted":[32]},[[8,"keydown","trackShiftKey"]]],[1,"va-official-gov-banner",{"disableAnalytics":[4,"disable-analytics"],"tld":[1]}]]],["va-checkbox",[[1,"va-checkbox",{"label":[1],"error":[513],"description":[1],"required":[4],"enableAnalytics":[4,"enable-analytics"],"checked":[1028],"hint":[1],"tile":[4],"checkboxDescription":[1,"checkbox-description"],"disabled":[4],"messageAriaDescribedby":[1,"message-aria-describedby"],"name":[1],"indeterminate":[4]}]]],["va-button-icon_2",[[1,"va-button-icon",{"disableAnalytics":[4,"disable-analytics"],"label":[1],"buttonType":[1,"button-type"]},[[0,"click","handleClick"]]],[1,"va-card",{"showShadow":[4,"show-shadow"],"background":[4]}]]],["va-select_2",[[1,"va-select",{"required":[4],"label":[1],"name":[1],"value":[1537],"error":[1],"reflectInputError":[4,"reflect-input-error"],"invalid":[4],"enableAnalytics":[4,"enable-analytics"],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"width":[1],"showError":[4,"show-error"],"options":[32]},null,{"value":["handleValueChange"]}],[1,"va-text-input",{"label":[1],"error":[1537],"reflectInputError":[4,"reflect-input-error"],"showInputError":[516,"show-input-error"],"invalid":[4],"required":[4],"inputmode":[1],"step":[1],"type":[1],"maxlength":[2],"autocomplete":[1],"enableAnalytics":[4,"enable-analytics"],"name":[1],"pattern":[1],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"value":[1537],"success":[4],"width":[1],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"],"charcount":[4],"currency":[4],"inputPrefix":[1,"input-prefix"],"inputIconPrefix":[1,"input-icon-prefix"],"inputSuffix":[1,"input-suffix"],"inputIconSuffix":[1,"input-icon-suffix"],"min":[8],"max":[8],"paddingLeftValue":[32],"paddingRightValue":[32]}]]],["va-link",[[1,"va-link",{"abbrTitle":[1,"abbr-title"],"active":[516],"back":[4],"calendar":[4],"channel":[4],"disableAnalytics":[4,"disable-analytics"],"download":[4],"href":[1],"filename":[1],"filetype":[1],"pages":[2],"text":[1],"video":[4],"reverse":[4],"external":[4],"label":[1],"iconName":[1,"icon-name"],"iconSize":[2,"icon-size"],"language":[1]}]]],["va-modal_2",[[1,"va-telephone",{"contact":[1],"extension":[1],"notClickable":[4,"not-clickable"],"international":[4],"countryCode":[1,"country-code"],"tty":[4],"sms":[4],"vanity":[1],"messageAriaDescribedby":[1,"message-aria-describedby"]}],[1,"va-modal",{"clickToClose":[4,"click-to-close"],"disableAnalytics":[4,"disable-analytics"],"large":[516],"modalTitle":[1,"modal-title"],"forcedModal":[4,"forced-modal"],"unstyled":[4],"initialFocusSelector":[1,"initial-focus-selector"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"status":[1],"visible":[516],"ariaHiddenNodeExceptions":[16],"shifted":[32]},[[0,"component-library-analytics","handleButtonClickAnalytics"],[0,"click","handleClick"],[8,"keydown","handleKeyDown"]],{"visible":["watchVisibleHandler"]}]]]]'),e)]}}))}))}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[9288],{9288:function(e,a,i){i.r(a),i.d(a,{setNonce:function(){return t.s}});var n,t=i(3798),l=i(772);(n=(Array.from(t.d.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(t.N,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===t.N}))||{})["data-opts"]||{},n.resourcesUrl=new URL(".","file:///home/runner/work/component-library/component-library/packages/web-components/dist/esm-es5/component-library.js").href,(0,t.p)(n)).then((function(e){return function(e,a,i,n){function t(e){return e instanceof i?e:new i((function(a){a(e)}))}return new(i||(i=Promise))((function(i,l){function r(e){try{o(n.next(e))}catch(e){l(e)}}function s(e){try{o(n.throw(e))}catch(e){l(e)}}function o(e){e.done?i(e.value):t(e.value).then(r,s)}o((n=n.apply(e,a||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,a){var i,n,t,l,r={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return l={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(a){return o([e,a])}}function o(s){if(i)throw new TypeError("Generator is already executing.");for(;l&&(l=0,s[0]&&(r=0)),r;)try{if(i=1,n&&(t=2&s[0]?n.return:s[0]?n.throw||((t=n.return)&&t.call(n),0):n.next)&&!(t=t.call(n,s[1])).done)return t;switch(n=0,t&&(s=[2&s[0],t.value]),s[0]){case 0:case 1:t=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,n=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((t=(t=r.trys).length>0&&t[t.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!t||s[1]>t[0]&&s[1]<t[3])){r.label=s[1];break}if(6===s[0]&&r.label<t[1]){r.label=t[1],t=s;break}if(t&&r.label<t[2]){r.label=t[2],r.ops.push(s);break}t[2]&&r.ops.pop(),r.trys.pop();continue}s=a.call(e,r)}catch(e){s=[6,e],n=0}finally{i=t=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}(this,(function(a){switch(a.label){case 0:return[4,(0,l.g)()];case 1:return a.sent(),[2,(0,t.b)(JSON.parse('[["va-file-input-multiple",[[1,"va-file-input-multiple",{"label":[1],"name":[1],"required":[4],"accept":[1],"errors":[16],"hint":[1],"enableAnalytics":[4,"enable-analytics"],"headerSize":[2,"header-size"],"value":[16],"readOnly":[4,"read-only"],"slotFieldIndexes":[16],"files":[32],"valueAdded":[32]}]]],["va-header-minimal",[[1,"va-header-minimal",{"header":[1],"subheader":[1],"enableHeadings":[4,"enable-headings"],"shifted":[32]},[[8,"keydown","trackShiftKey"]]]]],["va-omb-info",[[1,"va-omb-info",{"benefitType":[1,"benefit-type"],"expDate":[1,"exp-date"],"ombNumber":[1,"omb-number"],"resBurden":[2,"res-burden"],"visible":[32],"shifted":[32]},[[8,"keydown","trackShiftKey"]]]]],["va-statement-of-truth",[[1,"va-statement-of-truth",{"heading":[1],"inputValue":[1,"input-value"],"inputError":[1,"input-error"],"checkboxError":[1,"checkbox-error"],"inputMessageAriaDescribedby":[1,"input-message-aria-describedby"],"checked":[4],"inputLabel":[1,"input-label"],"checkboxLabel":[1,"checkbox-label"]}]]],["va-date",[[1,"va-date",{"required":[4],"label":[1],"name":[1],"hint":[1],"error":[1537],"monthYearOnly":[4,"month-year-only"],"monthOptional":[4,"month-optional"],"value":[1537],"invalidDay":[1028,"invalid-day"],"invalidMonth":[1028,"invalid-month"],"invalidYear":[1028,"invalid-year"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-memorable-date",[[1,"va-memorable-date",{"required":[4],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"],"monthSelect":[4,"month-select"],"label":[1],"name":[1],"hint":[1],"error":[1537],"value":[1537],"customDayErrorMessage":[1,"custom-day-error-message"],"customMonthErrorMessage":[1,"custom-month-error-message"],"customYearErrorMessage":[1,"custom-year-error-message"],"invalidDay":[1028,"invalid-day"],"invalidMonth":[1028,"invalid-month"],"invalidYear":[1028,"invalid-year"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-notification",[[1,"va-notification",{"visible":[4],"symbol":[1],"closeBtnAriaLabel":[1,"close-btn-aria-label"],"closeable":[516],"hasBorder":[516,"has-border"],"hasCloseText":[4,"has-close-text"],"headline":[1],"headlineLevel":[1,"headline-level"],"dateTime":[1,"date-time"],"href":[1],"text":[1],"disableAnalytics":[4,"disable-analytics"]},[[0,"component-library-analytics","handleLinkAnalytics"]]]]],["va-privacy-agreement",[[1,"va-privacy-agreement",{"checked":[1028],"showError":[4,"show-error"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-alert-sign-in",[[1,"va-alert-sign-in",{"variant":[1],"headingLevel":[2,"heading-level"],"visible":[4],"timeLimit":[1,"time-limit"],"noSignInLink":[1,"no-sign-in-link"]}]]],["va-banner",[[1,"va-banner",{"disableAnalytics":[4,"disable-analytics"],"showClose":[4,"show-close"],"headline":[1],"type":[1],"visible":[4],"windowSession":[4,"window-session"],"dataLabel":[1,"data-label"],"dismissedBannerId":[1,"dismissed-banner-id"],"dismissedBanners":[32]}]]],["va-button-pair",[[1,"va-button-pair",{"continue":[4],"disableAnalytics":[4,"disable-analytics"],"primaryLabel":[1,"primary-label"],"secondaryLabel":[1,"secondary-label"],"submit":[1],"update":[4],"leftButtonText":[1,"left-button-text"],"rightButtonText":[1,"right-button-text"]},[[0,"component-library-analytics","handleButtonAnalytics"]]]]],["va-language-toggle",[[1,"va-language-toggle",{"language":[1025],"enHref":[1,"en-href"],"esHref":[1,"es-href"],"tlHref":[1,"tl-href"],"routerLinks":[4,"router-links"],"urls":[32]}]]],["va-table",[[1,"va-table",{"tableTitle":[1,"table-title"],"tableType":[1,"table-type"],"stacked":[4],"scrollable":[4],"sortable":[4],"striped":[4],"fullWidth":[4,"full-width"],"rows":[32],"cols":[32],"cells":[32]},[[0,"sortTable","doSort"]]]]],["va-additional-info",[[1,"va-additional-info",{"trigger":[1],"disableAnalytics":[4,"disable-analytics"],"disableBorder":[4,"disable-border"],"open":[32]},[[9,"resize","handleResize"]]]]],["va-alert-expandable",[[1,"va-alert-expandable",{"status":[1],"trigger":[1],"disableAnalytics":[4,"disable-analytics"],"iconless":[4],"open":[32]},[[9,"resize","handleResize"]]]]],["va-back-to-top",[[1,"va-back-to-top",{"revealed":[32],"isDocked":[32]}]]],["va-link-action",[[1,"va-link-action",{"disableAnalytics":[4,"disable-analytics"],"href":[1],"text":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"type":[1],"label":[1],"isSingleLine":[32]},null,{"text":["checkTextLines"]}]]],["va-maintenance-banner",[[1,"va-maintenance-banner",{"disableAnalytics":[4,"disable-analytics"],"bannerId":[1,"banner-id"],"maintenanceStartDateTime":[1,"maintenance-start-date-time"],"maintenanceEndDateTime":[1,"maintenance-end-date-time"],"maintenanceTitle":[1,"maintenance-title"],"upcomingWarnStartDateTime":[1,"upcoming-warn-start-date-time"],"upcomingWarnTitle":[1,"upcoming-warn-title"],"isError":[4,"is-error"]}]]],["va-on-this-page",[[1,"va-on-this-page",{"disableAnalytics":[4,"disable-analytics"]}]]],["va-promo-banner",[[1,"va-promo-banner",{"href":[1],"type":[1],"disableAnalytics":[4,"disable-analytics"],"dismissedBanners":[32]}]]],["va-search-input",[[1,"va-search-input",{"buttonText":[1,"button-text"],"label":[1],"suggestions":[8],"value":[1537],"big":[4],"small":[4],"disableAnalytics":[4,"disable-analytics"],"formattedSuggestions":[32],"isListboxOpen":[32],"isTouched":[32],"showClearButton":[32]},null,{"value":["watchValueHandler"],"suggestions":["watchSuggestionsHandler"]}]]],["va-accordion",[[1,"va-accordion",{"openSingle":[4,"open-single"],"disableAnalytics":[4,"disable-analytics"],"sectionHeading":[1,"section-heading"],"expanded":[32]},[[0,"accordionItemToggled","itemToggledHandler"]]]]],["va-accordion-item",[[1,"va-accordion-item",{"header":[1],"subheader":[1],"open":[4],"level":[2],"bordered":[4],"slotHeader":[32],"slotTag":[32]}]]],["va-breadcrumbs",[[1,"va-breadcrumbs",{"label":[1],"wrapping":[4],"breadcrumbList":[1,"breadcrumb-list"],"homeVeteransAffairs":[4,"home-veterans-affairs"],"disableAnalytics":[4,"disable-analytics"],"formattedBreadcrumbs":[32]},null,{"breadcrumbList":["watchBreadcrumbListHandler"]}]]],["va-checkbox-group",[[1,"va-checkbox-group",{"label":[1],"required":[4],"error":[1],"enableAnalytics":[4,"enable-analytics"],"hint":[1],"labelHeaderLevel":[1,"label-header-level"],"messageAriaDescribedby":[1,"message-aria-describedby"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"]},[[0,"vaChange","vaChangeHandler"]]]]],["va-combo-box",[[1,"va-combo-box",{"required":[4],"disabled":[4],"label":[1],"placeholder":[1],"name":[1],"value":[1537],"error":[1],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"options":[32],"labelNode":[32]}]]],["va-loading-indicator",[[1,"va-loading-indicator",{"message":[1],"label":[1],"setFocus":[4,"set-focus"],"enableAnalytics":[4,"enable-analytics"]}]]],["va-minimal-footer",[[1,"va-minimal-footer"]]],["va-need-help",[[1,"va-need-help"]]],["va-pagination",[[1,"va-pagination",{"ariaLabelSuffix":[1,"aria-label-suffix"],"enableAnalytics":[4,"enable-analytics"],"maxPageListLength":[2,"max-page-list-length"],"page":[2],"pages":[2],"showLastPage":[4,"show-last-page"],"unbounded":[4]}]]],["va-process-list",[[1,"va-process-list"]]],["va-process-list-item",[[4,"va-process-list-item",{"header":[1],"level":[2],"active":[4],"pending":[4],"checkmark":[4],"statusText":[1,"status-text"]}]]],["va-progress-bar",[[1,"va-progress-bar",{"enableAnalytics":[4,"enable-analytics"],"percent":[2],"label":[1]}]]],["va-radio",[[1,"va-radio",{"label":[1],"hint":[1],"required":[4],"error":[1],"enableAnalytics":[4,"enable-analytics"],"labelHeaderLevel":[1,"label-header-level"],"headerAriaDescribedby":[1,"header-aria-describedby"],"messageAriaDescribedby":[1,"message-aria-describedby"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"]},[[0,"keydown","handleKeyDown"],[0,"radioOptionSelected","radioOptionSelectedHandler"]]]]],["va-radio-option",[[0,"va-radio-option",{"name":[1],"label":[1],"value":[1],"checked":[4],"tile":[4],"description":[1],"disabled":[4],"ariaDescribedby":[1,"aria-describedby"]}]]],["va-segmented-progress-bar",[[1,"va-segmented-progress-bar",{"enableAnalytics":[4,"enable-analytics"],"current":[2],"total":[2],"label":[1],"headerLevel":[2,"header-level"],"progressTerm":[1,"progress-term"],"labels":[1],"centeredLabels":[4,"centered-labels"],"counters":[1],"headingText":[1,"heading-text"],"useDiv":[4,"use-div"]}]]],["va-summary-box",[[1,"va-summary-box",{"headlineText":[32]}]]],["va-table-row",[[1,"va-table-row"]]],["va-textarea",[[1,"va-textarea",{"label":[1],"error":[1],"placeholder":[1],"name":[1],"required":[4],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"maxlength":[2],"value":[1537],"enableAnalytics":[4,"enable-analytics"],"labelHeaderLevel":[1,"label-header-level"],"headerAriaDescribedby":[1,"header-aria-describedby"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"],"charcount":[4]}]]],["va-icon",[[1,"va-icon",{"icon":[1],"size":[2],"srtext":[1]}]]],["va-button",[[1,"va-button",{"back":[516],"big":[516],"continue":[516],"disableAnalytics":[4,"disable-analytics"],"disabled":[516],"loading":[516],"label":[1],"primaryAlternate":[4,"primary-alternate"],"secondary":[516],"submit":[1],"text":[1],"messageAriaDescribedby":[1,"message-aria-describedby"]},[[0,"click","handleClickOverride"]],{"loading":["announceLoadingChange"]}]]],["va-file-input",[[1,"va-file-input",{"label":[1],"name":[1],"buttonText":[1,"button-text"],"value":[16],"required":[4],"accept":[1],"error":[1],"hint":[1],"statusText":[1,"status-text"],"uploadMessage":[16],"enableAnalytics":[4,"enable-analytics"],"headerSize":[2,"header-size"],"headless":[4],"readOnly":[4,"read-only"],"uploadedFile":[16],"maxFileSize":[2,"max-file-size"],"file":[32],"fileContents":[32],"internalError":[32],"showModal":[32],"showSeparator":[32]},null,{"statusText":["handleValueChange"]}]]],["va-alert",[[1,"va-alert",{"status":[513],"disableAnalytics":[4,"disable-analytics"],"visible":[4],"closeBtnAriaLabel":[1,"close-btn-aria-label"],"closeable":[516],"fullWidth":[4,"full-width"],"slim":[4]}]]],["va-table-inner",[[1,"va-table-inner",{"tableTitle":[1,"table-title"],"rows":[2],"cols":[2],"tableType":[1,"table-type"],"stacked":[4],"sortable":[4],"scrollable":[4],"striped":[4],"fullWidth":[4,"full-width"],"sortdir":[32],"sortindex":[32]}]]],["va-crisis-line-modal_2",[[1,"va-crisis-line-modal",{"isOpen":[32],"shifted":[32]},[[8,"keydown","trackShiftKey"]]],[1,"va-official-gov-banner",{"disableAnalytics":[4,"disable-analytics"],"tld":[1]}]]],["va-checkbox",[[1,"va-checkbox",{"label":[1],"error":[513],"description":[1],"required":[4],"enableAnalytics":[4,"enable-analytics"],"checked":[1028],"hint":[1],"tile":[4],"checkboxDescription":[1,"checkbox-description"],"disabled":[4],"messageAriaDescribedby":[1,"message-aria-describedby"],"name":[1],"indeterminate":[4]}]]],["va-button-icon_2",[[1,"va-button-icon",{"disableAnalytics":[4,"disable-analytics"],"label":[1],"buttonType":[1,"button-type"]},[[0,"click","handleClick"]]],[1,"va-card",{"showShadow":[4,"show-shadow"],"background":[4]}]]],["va-select_2",[[1,"va-select",{"required":[4],"label":[1],"name":[1],"value":[1537],"error":[1],"reflectInputError":[4,"reflect-input-error"],"invalid":[4],"enableAnalytics":[4,"enable-analytics"],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"width":[1],"showError":[4,"show-error"],"options":[32]},null,{"value":["handleValueChange"]}],[1,"va-text-input",{"label":[1],"error":[1537],"reflectInputError":[4,"reflect-input-error"],"showInputError":[516,"show-input-error"],"invalid":[4],"required":[4],"inputmode":[1],"step":[1],"type":[1],"maxlength":[2],"autocomplete":[1],"enableAnalytics":[4,"enable-analytics"],"name":[1],"pattern":[1],"hint":[1],"messageAriaDescribedby":[1,"message-aria-describedby"],"value":[1537],"success":[4],"width":[1],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"],"charcount":[4],"currency":[4],"inputPrefix":[1,"input-prefix"],"inputIconPrefix":[1,"input-icon-prefix"],"inputSuffix":[1,"input-suffix"],"inputIconSuffix":[1,"input-icon-suffix"],"min":[8],"max":[8],"paddingLeftValue":[32],"paddingRightValue":[32]}]]],["va-link",[[1,"va-link",{"abbrTitle":[1,"abbr-title"],"active":[516],"back":[4],"calendar":[4],"channel":[4],"disableAnalytics":[4,"disable-analytics"],"download":[4],"href":[1],"filename":[1],"filetype":[1],"pages":[2],"text":[1],"video":[4],"reverse":[4],"external":[4],"label":[1],"iconName":[1,"icon-name"],"iconSize":[2,"icon-size"],"language":[1]}]]],["va-modal_2",[[1,"va-telephone",{"contact":[1],"extension":[1],"notClickable":[4,"not-clickable"],"international":[4],"countryCode":[1,"country-code"],"tty":[4],"sms":[4],"vanity":[1],"messageAriaDescribedby":[1,"message-aria-describedby"]}],[1,"va-modal",{"clickToClose":[4,"click-to-close"],"disableAnalytics":[4,"disable-analytics"],"large":[516],"modalTitle":[1,"modal-title"],"forcedModal":[4,"forced-modal"],"unstyled":[4],"initialFocusSelector":[1,"initial-focus-selector"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"status":[1],"visible":[516],"ariaHiddenNodeExceptions":[16],"shifted":[32]},[[0,"component-library-analytics","handleButtonClickAnalytics"],[0,"click","handleClick"],[8,"keydown","handleKeyDown"]],{"visible":["watchVisibleHandler"]}]]]]'),e)]}}))}))}))}}]);
|
package/dist/9800.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 9800.app.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,326,9800],{20:function(e,a,r){r.r(a),r.d(a,{c:function(){return s}});var t,o={exports:{}};t=o,function(){var e={}.hasOwnProperty;function a(){for(var r=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var s=typeof o;if("string"===s||"number"===s)r.push(o);else if(Array.isArray(o)){if(o.length){var i=a.apply(null,o);i&&r.push(i)}}else if("object"===s)if(o.toString===Object.prototype.toString)for(var n in o)e.call(o,n)&&o[n]&&r.push(n);else r.push(o.toString())}}return r.join(" ")}t.exports?(a.default=a,t.exports=a):window.classNames=a}();var s=o.exports},326:function(e,a,r){function t(e){return!Number.isNaN(parseFloat(e))}function o(e,a){var r=e.shadowRoot.querySelector("slot").assignedNodes();return null!==a?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===a})):Array.from(r)}function s(e){return 1===e?"":"s"}function i(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(s(a)," allowed");var r;if(e.length<=a){var t=a-e.length;r="".concat(t," character").concat(s(t)," left")}else t=e.length-a,r="".concat(t," character").concat(s(t)," over limit");return r}function n(e,a){return Array.from({length:a-e+1},(function(a,r){return e+r}))}r.r(a),r.d(a,{S:function(){return d},a:function(){return h},b:function(){return i},g:function(){return o},i:function(){return t},m:function(){return n},s:function(){return l}}),r(3798);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var r=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var r=a.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&r.push(a),r}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var a="",r=0;r<e.length;r++)a+=e[r],r+1<arguments.length&&(a+=String(arguments[r+1]||"").replace(d._entity,d.getEntity));return a}};function h(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}},9800:function(e,a,r){r.r(a),r.d(a,{va_radio:function(){return n}});var t=r(3798),o=r(20),s=r(326),i=(r(2465),r(9425)),n=function(){function e(e){(0,t.r)(this,e),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.vaValueChange=(0,t.c)(this,"vaValueChange",7),this.label=void 0,this.hint=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.messageAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.handleKeyDown=function(e){var a=e.target,r=(0,s.g)(this.el,"va-radio-option").filter((function(e){return!e.disabled}));if(r.length){var t=r.findIndex((function(e){return e===a}));if(-1!==t){var o;switch(e.key){case" ":if(e.preventDefault(),a.checked)return;o=a,this.selectNextNode(a);break;case"ArrowDown":case"ArrowRight":e.preventDefault(),t===r.length-1?(o=r[0],this.deselectCurrentNode(a),this.selectNextNode(o)):(o=r[t+1],this.deselectCurrentNode(a),this.selectNextNode(o));break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),0===t?(o=r[r.length-1],this.deselectCurrentNode(a),this.selectNextNode(o)):(o=r[t-1],this.deselectCurrentNode(a),this.selectNextNode(o))}o&&(this.enableAnalytics&&this.fireAnalyticsEvent(o.label),this.vaValueChange.emit({value:o.value}))}}},e.prototype.radioOptionSelectedHandler=function(e){var a=this,r=e.target;(0,s.g)(this.el,"va-radio-option").filter((function(e){return e!==r})).forEach((function(e){a.deselectCurrentNode(e)})),this.selectNextNode(r),this.enableAnalytics&&this.fireAnalyticsEvent(r.label),this.vaValueChange.emit({value:r.value})},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-radio",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.deselectCurrentNode=function(e){e.removeAttribute("checked")},e.prototype.selectNextNode=function(e){e.setAttribute("checked",""),e.focus()},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,t.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,a=e.label,r=e.hint,n=e.required,u=e.error,l=e.headerAriaDescribedby,d=e.messageAriaDescribedby,h=e.useFormsPattern,f=e.formHeadingLevel,c=e.formHeading,m=this.getHeaderLevel(),p=l?"header-message":null,b=d?"description-message":null,g="".concat(h&&c?"form-question":""," ").concat(h?"form-description":""," ").concat("multiple"===h?"header-message":"").trim()||null,w=(0,o.c)({"usa-legend":!0,"usa-label--error":u}),v=null;if("single"===h||"multiple"===h){var y=(0,s.a)(f);v=(0,t.h)(t.F,{key:"bacadd3740691de19c427bd650aad70df1e93cae"},c&&(0,t.h)(y,{key:"74c7a65e0e39cacbac4f5976db129b0a5b2fe452",id:"form-question",part:"form-header"},c),(0,t.h)("div",{key:"68ba2c115084dffc2903740ea35ec1443f81cf63",id:"form-description"},(0,t.h)("slot",{key:"6152aeb1c403f0bcc9f7a98569ea2fa222c5e369",name:"form-description"})))}return(0,t.h)(t.H,{key:"14302b27ed34afacab0ce2e870f2ed3dd48f3a71","aria-invalid":u?"true":"false"},v,(0,t.h)("div",{key:"f19e7eba5e9178ea01ee186d1f7295d0865df7d1",class:"input-wrap"},(0,t.h)("fieldset",{key:"254470b19f3c96f19f8c3da4cac21dc27f2461d0",class:"usa-fieldset","aria-labelledby":g},(0,t.h)("legend",{key:"cc191173aadac23bb06757ffed4380144b3c3d7f",class:w,part:"legend","aria-describedby":b},m?(0,t.h)(m,{part:"header","aria-describedby":p},a):a," ","multiple"===h&&(0,t.h)("span",{key:"0174621e72dbba97209d30478ff7fa336b0de030",id:"header-message",class:"usa-sr-only"},a),l&&(0,t.h)("span",{key:"18b977293c447be3c765b0537c83272c2e819434",id:"header-message",class:"usa-sr-only"},l),d&&(0,t.h)("span",{key:"8c23739d3ffdcd57eff046ec2b25879549dec646",id:"description-message",class:"usa-sr-only"},d),n&&(0,t.h)("span",{key:"f720069540150c0f9d39918ed19d5fffb00026d0",class:"usa-label--required",part:"required"},i.i.t("required")),r&&(0,t.h)("div",{key:"7a6b54c79babe5d674ea8b65f8d2989787dcfc16",class:"usa-hint"},r)),u&&(0,t.h)("span",{key:"1efa33d408a1b546efe94c93870fbbf05ee5fee6",class:"usa-error-message",role:"alert"},(0,t.h)(t.F,{key:"ede25038da3f1cc364b30769bd8ba229266b2d26"},(0,t.h)("span",{key:"5bf1eb2baff2a5d603a6b52041f19679dbd2e840",class:"usa-sr-only"},i.i.t("error"))," ",u)),(0,t.h)("slot",{key:"c5729957c0fbcaf5bceae451ca81c981fd29d666"}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px;max-width:480px}'}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[20,326,9800],{20:function(e,a,r){r.r(a),r.d(a,{c:function(){return s}});var t,o={exports:{}};t=o,function(){var e={}.hasOwnProperty;function a(){for(var r=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var s=typeof o;if("string"===s||"number"===s)r.push(o);else if(Array.isArray(o)){if(o.length){var i=a.apply(null,o);i&&r.push(i)}}else if("object"===s)if(o.toString===Object.prototype.toString)for(var n in o)e.call(o,n)&&o[n]&&r.push(n);else r.push(o.toString())}}return r.join(" ")}t.exports?(a.default=a,t.exports=a):window.classNames=a}();var s=o.exports},326:function(e,a,r){function t(e){return!Number.isNaN(parseFloat(e))}function o(e,a){var r=e.shadowRoot.querySelector("slot").assignedNodes();return null!==a?Array.from(r).filter((function(e){return e.nodeName.toLowerCase()===a})):Array.from(r)}function s(e){return 1===e?"":"s"}function i(e,a){if(void 0===e||""===e)return"".concat(a," character").concat(s(a)," allowed");var r;if(e.length<=a){var t=a-e.length;r="".concat(t," character").concat(s(t)," left")}else t=e.length-a,r="".concat(t," character").concat(s(t)," over limit");return r}function n(e,a){return Array.from({length:a-e+1},(function(a,r){return e+r}))}r.r(a),r.d(a,{S:function(){return d},a:function(){return h},b:function(){return i},g:function(){return o},i:function(){return t},m:function(){return n},s:function(){return l}}),r(3798);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,a){var r=function(e,a){if("string"!=typeof e)return[];if(!a||!u(a))return[];var r=a.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,a);return"string"!=typeof e||u(a)&&a.matches(e)&&r.push(a),r}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var a="",r=0;r<e.length;r++)a+=e[r],r+1<arguments.length&&(a+=String(arguments[r+1]||"").replace(d._entity,d.getEntity));return a}};function h(e){var a;return(a="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&a<=6?"h".concat(a):null}},9800:function(e,a,r){r.r(a),r.d(a,{va_radio:function(){return n}});var t=r(3798),o=r(20),s=r(326),i=(r(2465),r(9425)),n=function(){function e(e){(0,t.r)(this,e),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.vaValueChange=(0,t.c)(this,"vaValueChange",7),this.label=void 0,this.hint=void 0,this.required=!1,this.error=void 0,this.enableAnalytics=!1,this.labelHeaderLevel=void 0,this.headerAriaDescribedby=void 0,this.messageAriaDescribedby=void 0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0}return e.prototype.handleKeyDown=function(e){var a=e.target,r=(0,s.g)(this.el,"va-radio-option").filter((function(e){return!e.disabled}));if(r.length){var t=r.findIndex((function(e){return e===a}));if(-1!==t){var o;switch(e.key){case" ":if(e.preventDefault(),a.checked)return;o=a,this.selectNextNode(a);break;case"ArrowDown":case"ArrowRight":e.preventDefault(),t===r.length-1?(o=r[0],this.deselectCurrentNode(a),this.selectNextNode(o)):(o=r[t+1],this.deselectCurrentNode(a),this.selectNextNode(o));break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),0===t?(o=r[r.length-1],this.deselectCurrentNode(a),this.selectNextNode(o)):(o=r[t-1],this.deselectCurrentNode(a),this.selectNextNode(o))}o&&(this.enableAnalytics&&this.fireAnalyticsEvent(o.label),this.vaValueChange.emit({value:o.value}))}}},e.prototype.radioOptionSelectedHandler=function(e){var a=this,r=e.target;(0,s.g)(this.el,"va-radio-option").filter((function(e){return e!==r})).forEach((function(e){a.deselectCurrentNode(e)})),this.selectNextNode(r),this.enableAnalytics&&this.fireAnalyticsEvent(r.label),this.vaValueChange.emit({value:r.value})},e.prototype.fireAnalyticsEvent=function(e){this.componentLibraryAnalytics.emit({componentName:"va-radio",action:"change",details:{label:this.label,optionLabel:e,required:this.required}})},e.prototype.deselectCurrentNode=function(e){e.removeAttribute("checked")},e.prototype.selectNextNode=function(e){e.setAttribute("checked",""),e.focus()},e.prototype.getHeaderLevel=function(){var e=parseInt(this.labelHeaderLevel,10);return e>=1&&e<=6?"h".concat(e):null},e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,t.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,a=e.label,r=e.hint,n=e.required,u=e.error,l=e.headerAriaDescribedby,d=e.messageAriaDescribedby,h=e.useFormsPattern,f=e.formHeadingLevel,c=e.formHeading,m=this.getHeaderLevel(),p=l?"header-message":null,b=d?"description-message":null,g="".concat(h&&c?"form-question":""," ").concat(h?"form-description":""," ").concat("multiple"===h?"header-message":"").trim()||null,w=(0,o.c)({"usa-legend":!0,"usa-label--error":u}),v=null;if("single"===h||"multiple"===h){var y=(0,s.a)(f);v=(0,t.h)(t.F,{key:"bacadd3740691de19c427bd650aad70df1e93cae"},c&&(0,t.h)(y,{key:"74c7a65e0e39cacbac4f5976db129b0a5b2fe452",id:"form-question",part:"form-header"},c),(0,t.h)("div",{key:"68ba2c115084dffc2903740ea35ec1443f81cf63",id:"form-description"},(0,t.h)("slot",{key:"6152aeb1c403f0bcc9f7a98569ea2fa222c5e369",name:"form-description"})))}return(0,t.h)(t.H,{key:"14302b27ed34afacab0ce2e870f2ed3dd48f3a71","aria-invalid":u?"true":"false"},v,(0,t.h)("div",{key:"f19e7eba5e9178ea01ee186d1f7295d0865df7d1",class:"input-wrap"},(0,t.h)("fieldset",{key:"254470b19f3c96f19f8c3da4cac21dc27f2461d0",class:"usa-fieldset","aria-labelledby":g},(0,t.h)("legend",{key:"cc191173aadac23bb06757ffed4380144b3c3d7f",class:w,part:"legend","aria-describedby":b},m?(0,t.h)(m,{part:"header","aria-describedby":p},a):a," ","multiple"===h&&(0,t.h)("span",{key:"0174621e72dbba97209d30478ff7fa336b0de030",id:"header-message",class:"usa-sr-only"},a),l&&(0,t.h)("span",{key:"18b977293c447be3c765b0537c83272c2e819434",id:"header-message",class:"usa-sr-only"},l),d&&(0,t.h)("span",{key:"8c23739d3ffdcd57eff046ec2b25879549dec646",id:"description-message",class:"usa-sr-only"},d),n&&(0,t.h)("span",{key:"f720069540150c0f9d39918ed19d5fffb00026d0",class:"usa-label--required",part:"required"},i.i.t("required")),r&&(0,t.h)("div",{key:"7a6b54c79babe5d674ea8b65f8d2989787dcfc16",class:"usa-hint"},r)),u&&(0,t.h)("span",{key:"1efa33d408a1b546efe94c93870fbbf05ee5fee6",class:"usa-error-message",role:"alert"},(0,t.h)(t.F,{key:"ede25038da3f1cc364b30769bd8ba229266b2d26"},(0,t.h)("span",{key:"5bf1eb2baff2a5d603a6b52041f19679dbd2e840",class:"usa-sr-only"},i.i.t("error"))," ",u)),(0,t.h)("slot",{key:"c5729957c0fbcaf5bceae451ca81c981fd29d666"}))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),e}();n.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "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-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;border:none;padding:0;margin-top:24px;max-width:480px}'}}]);
|