@department-of-veterans-affairs/component-library 46.0.2 → 46.1.3
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/1185.app.bundle.js +1 -1
- package/dist/2108.app.bundle.js +1 -1
- package/dist/2259.app.bundle.js +1 -0
- package/dist/2305.app.bundle.js +1 -1
- package/dist/2843.app.bundle.js +1 -1
- package/dist/3389.app.bundle.js +1 -1
- package/dist/3476.app.bundle.js +1 -1
- package/dist/3499.app.bundle.js +1 -1
- package/dist/3661.app.bundle.js +1 -1
- package/dist/383.app.bundle.js +1 -1
- package/dist/4181.app.bundle.js +1 -1
- package/dist/4818.app.bundle.js +1 -1
- package/dist/529.app.bundle.js +1 -1
- package/dist/5434.app.bundle.js +1 -1
- package/dist/569.app.bundle.js +1 -1
- package/dist/6171.app.bundle.js +1 -1
- package/dist/6391.app.bundle.js +1 -1
- package/dist/6569.app.bundle.js +1 -1
- package/dist/6998.app.bundle.js +1 -1
- package/dist/7375.app.bundle.js +1 -1
- package/dist/753.app.bundle.js +1 -1
- package/dist/783.app.bundle.js +1 -1
- package/dist/8509.app.bundle.js +1 -1
- package/dist/8716.app.bundle.js +1 -1
- package/dist/9370.app.bundle.js +1 -1
- package/dist/9398.app.bundle.js +1 -1
- package/dist/9727.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-accordion-item.js +1 -1
- package/dist/components/va-accordion.js +1 -1
- package/dist/components/va-additional-info.js +1 -1
- package/dist/components/va-alert-expandable.js +1 -1
- package/dist/components/va-back-to-top.js +1 -1
- package/dist/components/va-button-icon2.js +1 -1
- package/dist/components/va-button2.js +1 -1
- package/dist/components/va-checkbox-group.js +1 -1
- package/dist/components/va-checkbox2.js +1 -1
- package/dist/components/va-crisis-line-modal2.js +1 -1
- package/dist/components/va-date.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-link-action.js +1 -1
- package/dist/components/va-link2.js +1 -1
- package/dist/components/va-maintenance-banner.js +1 -1
- package/dist/components/va-memorable-date.js +1 -1
- package/dist/components/va-minimal-footer.js +1 -1
- package/dist/components/va-modal2.js +1 -1
- package/dist/components/va-on-this-page.js +1 -1
- package/dist/components/va-pagination.js +1 -1
- package/dist/components/va-radio.js +1 -1
- package/dist/components/va-search-input.js +1 -1
- package/dist/components/va-select2.js +1 -1
- package/dist/components/va-telephone2.js +1 -1
- package/dist/components/va-text-input2.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/package.json +2 -2
- package/dist/265.app.bundle.js +0 -1
package/dist/6998.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 6998.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([[6998,5285,265],{5285:function(n,e,a){a.r(e),a.d(e,{c:function(){return o}});var t,i,o=(t=function(n){!function(){var e={}.hasOwnProperty;function a(){for(var n=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)n.push(i);else if(Array.isArray(i)){if(i.length){var r=a.apply(null,i);r&&n.push(r)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&n.push(s);else n.push(i.toString())}}return n.join(" ")}n.exports?(a.default=a,n.exports=a):window.classNames=a}()},t(i={path:undefined,exports:{},require:function(n,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),i.exports)},265:function(n,e,a){function t(n,e){var a=n.shadowRoot.querySelector("slot").assignedNodes();return null!==e?Array.from(a).filter((function(n){return n.nodeName.toLowerCase()===e})):Array.from(a)}function i(n){return 1===n?"":"s"}function o(n,e){if(void 0===n||""===n)return"".concat(e," character").concat(i(e)," allowed");var a;if(n.length<=e){var t=e-n.length;a="".concat(t," character").concat(i(t)," left")}else t=n.length-e,a="".concat(t," character").concat(i(t)," over limit");return a}function r(n,e){return Array.from({length:e-n+1},(function(e,a){return n+a}))}a.r(e),a.d(e,{S:function(){return c},a:function(){return u},b:function(){return o},g:function(){return t},m:function(){return r},s:function(){return l}});var s=function(n){return n&&"object"==typeof n&&1===n.nodeType};function l(n,e){var a=function(n,e){if("string"!=typeof n)return[];if(!e||!s(e))return[];var a=e.shadowRoot.querySelectorAll(n);return Array.from(a)}(n,e);return"string"!=typeof n||s(e)&&e.matches(n)&&a.push(e),a}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(n){return c._entities[n]},escapeHTML:function(n){for(var e="",a=0;a<n.length;a++)if(e+=n[a],a+1<arguments.length){var t=arguments[a+1]||"";e+=String(t).replace(c._entity,c.getEntity)}return e}};function u(n){var e;return(e="string"==typeof n?parseInt(n,10):Math.floor(n))>=1&&e<=6?"h".concat(e):null}},6998:function(n,e,a){a.r(e),a.d(e,{va_pagination:function(){return s}});var t=a(218),i=a(5285),o=(a(4786),a(265)),r=a(2764),s=function(){function n(n){var e=this;(0,t.r)(this,n),this.pageSelect=(0,t.c)(this,"pageSelect",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.SHOW_ALL_PAGES=7,this.handlePageSelect=function(n,a){var t,i,o;if(e.pageSelect.emit({page:n}),null===(o=null===(i=null===(t=e.el)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.activeElement)||void 0===o||o.blur(),e.enableAnalytics){var r={componentName:"va-pagination",action:"linkClick",details:{event:a,"page-number":n}};e.componentLibraryAnalytics.emit(r)}},this.pageNumbers=function(){var n,a,t=e,i=t.maxPageListLength,r=t.page,s=t.pages,l=t.unbounded,c=Math.floor(i/2),u=l?0:1;return s<=e.SHOW_ALL_PAGES?(0,o.m)(1,s):r<=c+1?(n=1,(a=i>=s?s:i-1-u)===r&&a++,(0,o.m)(n,a)):r+c>=s?(a=s,(n=s-i>0?s-(i-2-1):1)===r&&n--,(0,o.m)(n,a)):(n=r-(c-2),a=r+c>s?s:r+(c-1-u),(0,o.m)(n,a))},this.handleKeyDown=function(n,a){var t=n.key;if("Enter"===t||" "===t){if(n.preventDefault(),!a)return;e.handlePageSelect(a,"nav-paginate-number")}},this.ariaLabelSuffix="",this.enableAnalytics=!0,this.maxPageListLength=10,this.page=void 0,this.pages=void 0,this.showLastPage=!1,this.unbounded=!1}return n.prototype.addIcons=function(){var n,e;function a(n){var e="".concat((0,t.e)("/img/sprite.svg"),"#").concat(n);return'<svg\n class="usa-icon"\n aria-hidden="true"\n role="img">\n <use href='.concat(e,"></use>\n </svg>")}var i=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("#previous-arrow-icon");i&&(i.innerHTML=a("navigate_before"));var o=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("#next-arrow-icon");o&&(o.innerHTML=a("navigate_next"))},n.prototype.componentDidRender=function(){this.addIcons()},n.prototype.connectedCallback=function(){var n=this;r.i.on("languageChanged",(function(){(0,t.f)(n.el)}))},n.prototype.disconnectedCallback=function(){r.i.off("languageChanged")},n.prototype.render=function(){var n=this,e=this,a=e.ariaLabelSuffix,o=e.page,s=e.pages;if(1===s)return(0,t.h)("div",null);var l=a?"Previous page ".concat(a):"Previous page",c=a?"Next page ".concat(a):"Next page",u=this.pageNumbers(),p=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__page-no":!0,"va-pagination__item":!0}),g=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__overflow":!0,"va-pagination__item":!0}),d=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__arrow":!0}),f=o>1?(0,t.h)(t.F,null,(0,t.h)("li",{class:d,"aria-label":l},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(o-1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o-1)},class:"usa-pagination__link usa-pagination__previous-page",href:"javascript:void(0)"},(0,t.h)("div",{id:"previous-arrow-icon"}),(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("previous")))),!u.includes(1)&&(0,t.h)(t.F,null,(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,1)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page 1, first page"},"1")),(0,t.h)("li",{class:g,"aria-label":"ellipsis indicating non-visible pages"},(0,t.h)("span",null,"…")))):null,h=u.map((function(e){var r=(0,i.c)({"usa-pagination__button":!0,"usa-current":o===e}),l=a?"page ".concat(e," ").concat(a):"page ".concat(e);return 1===e&&(l="".concat(l,", first page")),e===s&&(l="".concat(l,", last page")),(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(e,"nav-paginate-number")},onKeyDown:function(a){return n.handleKeyDown(a,e)},href:"javascript:void(0)",class:r,"aria-current":o===e?"page":null,"aria-label":l},e))})),m=-1===u.indexOf(s)?(0,t.h)(t.F,null,s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:g,"aria-label":"ellipsis indicating non-visible pages"},(0,t.h)("span",null,"…")),!this.unbounded&&s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(s,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,s)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page ".concat(s,", last page")},s))):null,b=o<s?(0,t.h)(t.F,null,(0,t.h)("li",{class:d,"aria-label":c},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(o+1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o+1)},class:"usa-pagination__link usa-pagination__next-page",href:"javascript:void(0)"},(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("next")),(0,t.h)("div",{id:"next-arrow-icon"})))):null;return(0,t.h)(t.H,null,(0,t.h)("nav",{class:"usa-pagination","aria-label":"Pagination"},(0,t.h)("ul",{class:"usa-pagination__list"},f,h,m,b)))},Object.defineProperty(n,"assetsDirs",{get:function(){return["../assets"]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),n}();s.style="button:not([disabled]):focus,:host([uswds='false']) button:not([disabled]):active,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-pagination{margin-bottom:1rem;margin-top:1rem;font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:white;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.usa-pagination .usa-icon{height:1.13rem;width:1.13rem}.usa-pagination__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:center;justify-content:center;width:auto}.usa-pagination__item{display:-ms-inline-flexbox;display:inline-flex;height:2.5rem;-ms-flex-pack:center;justify-content:center;line-height:1;margin-left:0.25rem;margin-right:0.25rem;min-width:2.5rem}@media all and (min-width: 40em){.usa-pagination__item{-ms-flex:1 0 auto;flex:1 0 auto}}.usa-pagination__arrow{display:none}@media all and (min-width: 40em){.usa-pagination__arrow{display:inherit}}@media all and (min-width: 40em){.usa-pagination__previous-page{margin-right:1.25rem}}@media all and (min-width: 40em){.usa-pagination__next-page{margin-left:1.25rem}}.usa-pagination__link{-ms-flex-align:center;align-items:center;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none}.usa-pagination__link[disabled]{opacity:0.4 !important;pointer-events:none}.usa-pagination__link:hover,.usa-pagination__link:focus,.usa-pagination__link:active{color:#1a4480;text-decoration:underline}.usa-pagination__link:visited{color:#005ea2}.usa-pagination__button{-ms-flex-align:center;align-items:center;border-color:rgba(27, 27, 27, 0.2);border-radius:0.25rem;border-style:solid;border-width:1px;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;padding:0.5rem;text-decoration:none;width:100%}.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{color:#1a4480;border-color:#1a4480}@media (forced-colors: active){.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{border:2px solid transparent}}.usa-pagination .usa-current{background-color:#1b1b1b;border-color:transparent;color:white}@media (forced-colors: active){.usa-pagination .usa-current{border:2px solid transparent;color:buttonText}}.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{background-color:#1b1b1b;color:white;text-decoration:none}@media (forced-colors: active){.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{color:buttontext}}.usa-pagination__overflow{-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;display:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0.5rem}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.va-pagination__item{-webkit-box-sizing:border-box;box-sizing:border-box}:host a.usa-pagination__next-page>div,:host a.usa-pagination__previous-page>div{display:-ms-flexbox;display:flex}:host{background-color:var(--vads-color-white);border-top:1px solid var(--vads-color-base-lightest);display:-ms-flexbox;display:flex;font-family:var(--font-source-sans);-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:1.25rem 0 0.625rem;width:100%}ul{list-style-type:none;margin:0;padding:0}li{display:-ms-inline-flexbox;display:inline-flex}button{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;background-color:transparent;border:0;color:var(--vads-color-link);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:0.89rem;font-weight:400;-ms-flex-pack:center;justify-content:center;line-height:2;padding:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;-webkit-transition-property:color, background-color;transition-property:color, background-color}"}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6998,5285,2259],{5285:function(n,e,a){a.r(e),a.d(e,{c:function(){return o}});var t,i,o=(t=function(n){!function(){var e={}.hasOwnProperty;function a(){for(var n=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)n.push(i);else if(Array.isArray(i)){if(i.length){var r=a.apply(null,i);r&&n.push(r)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&n.push(s);else n.push(i.toString())}}return n.join(" ")}n.exports?(a.default=a,n.exports=a):window.classNames=a}()},t(i={path:undefined,exports:{},require:function(n,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),i.exports)},2259:function(n,e,a){function t(n,e){var a=n.shadowRoot.querySelector("slot").assignedNodes();return null!==e?Array.from(a).filter((function(n){return n.nodeName.toLowerCase()===e})):Array.from(a)}function i(n){return 1===n?"":"s"}function o(n,e){if(void 0===n||""===n)return"".concat(e," character").concat(i(e)," allowed");var a;if(n.length<=e){var t=e-n.length;a="".concat(t," character").concat(i(t)," left")}else t=n.length-e,a="".concat(t," character").concat(i(t)," over limit");return a}function r(n,e){return Array.from({length:e-n+1},(function(e,a){return n+a}))}a.r(e),a.d(e,{S:function(){return c},a:function(){return u},b:function(){return o},g:function(){return t},m:function(){return r},s:function(){return l}});var s=function(n){return n&&"object"==typeof n&&1===n.nodeType};function l(n,e){var a=function(n,e){if("string"!=typeof n)return[];if(!e||!s(e))return[];var a=e.shadowRoot.querySelectorAll(n);return Array.from(a)}(n,e);return"string"!=typeof n||s(e)&&e.matches(n)&&a.push(e),a}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(n){return c._entities[n]},escapeHTML:function(n){for(var e="",a=0;a<n.length;a++)if(e+=n[a],a+1<arguments.length){var t=arguments[a+1]||"";e+=String(t).replace(c._entity,c.getEntity)}return e}};function u(n){var e;return(e="string"==typeof n?parseInt(n,10):Math.floor(n))>=1&&e<=6?"h".concat(e):null}},6998:function(n,e,a){a.r(e),a.d(e,{va_pagination:function(){return s}});var t=a(218),i=a(5285),o=(a(4786),a(2259)),r=a(2764),s=function(){function n(n){var e=this;(0,t.r)(this,n),this.pageSelect=(0,t.c)(this,"pageSelect",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.SHOW_ALL_PAGES=7,this.handlePageSelect=function(n,a){var t,i,o;if(e.pageSelect.emit({page:n}),null===(o=null===(i=null===(t=e.el)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.activeElement)||void 0===o||o.blur(),e.enableAnalytics){var r={componentName:"va-pagination",action:"linkClick",details:{event:a,"page-number":n}};e.componentLibraryAnalytics.emit(r)}},this.pageNumbers=function(){var n,a,t=e,i=t.maxPageListLength,r=t.page,s=t.pages,l=t.unbounded,c=Math.floor(i/2),u=l?0:1;return s<=e.SHOW_ALL_PAGES?(0,o.m)(1,s):r<=c+1?(n=1,(a=i>=s?s:i-1-u)===r&&a++,(0,o.m)(n,a)):r+c>=s?(a=s,(n=s-i>0?s-(i-2-1):1)===r&&n--,(0,o.m)(n,a)):(n=r-(c-2),a=r+c>s?s:r+(c-1-u),(0,o.m)(n,a))},this.handleKeyDown=function(n,a){var t=n.key;if("Enter"===t||" "===t){if(n.preventDefault(),!a)return;e.handlePageSelect(a,"nav-paginate-number")}},this.ariaLabelSuffix="",this.enableAnalytics=!0,this.maxPageListLength=10,this.page=void 0,this.pages=void 0,this.showLastPage=!1,this.unbounded=!1}return n.prototype.addIcons=function(){var n,e;function a(n){var e="".concat((0,t.e)("/img/sprite.svg"),"#").concat(n);return'<svg\n class="usa-icon"\n aria-hidden="true"\n role="img">\n <use href='.concat(e,"></use>\n </svg>")}var i=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("#previous-arrow-icon");i&&(i.innerHTML=a("navigate_before"));var o=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("#next-arrow-icon");o&&(o.innerHTML=a("navigate_next"))},n.prototype.componentDidRender=function(){this.addIcons()},n.prototype.connectedCallback=function(){var n=this;r.i.on("languageChanged",(function(){(0,t.f)(n.el)}))},n.prototype.disconnectedCallback=function(){r.i.off("languageChanged")},n.prototype.render=function(){var n=this,e=this,a=e.ariaLabelSuffix,o=e.page,s=e.pages;if(1===s)return(0,t.h)("div",null);var l=a?"Previous page ".concat(a):"Previous page",c=a?"Next page ".concat(a):"Next page",u=this.pageNumbers(),p=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__page-no":!0,"va-pagination__item":!0}),g=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__overflow":!0,"va-pagination__item":!0}),d=(0,i.c)({"usa-pagination__item":!0,"usa-pagination__arrow":!0}),f=o>1?(0,t.h)(t.F,null,(0,t.h)("li",{class:d,"aria-label":l},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(o-1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o-1)},class:"usa-pagination__link usa-pagination__previous-page",href:"javascript:void(0)"},(0,t.h)("div",{id:"previous-arrow-icon"}),(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("previous")))),!u.includes(1)&&(0,t.h)(t.F,null,(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,1)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page 1, first page"},"1")),(0,t.h)("li",{class:g,"aria-label":"ellipsis indicating non-visible pages"},(0,t.h)("span",null,"…")))):null,h=u.map((function(e){var r=(0,i.c)({"usa-pagination__button":!0,"usa-current":o===e}),l=a?"page ".concat(e," ").concat(a):"page ".concat(e);return 1===e&&(l="".concat(l,", first page")),e===s&&(l="".concat(l,", last page")),(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(e,"nav-paginate-number")},onKeyDown:function(a){return n.handleKeyDown(a,e)},href:"javascript:void(0)",class:r,"aria-current":o===e?"page":null,"aria-label":l},e))})),m=-1===u.indexOf(s)?(0,t.h)(t.F,null,s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:g,"aria-label":"ellipsis indicating non-visible pages"},(0,t.h)("span",null,"…")),!this.unbounded&&s>this.SHOW_ALL_PAGES&&(0,t.h)("li",{class:p},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(s,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,s)},href:"javascript:void(0)",class:"usa-pagination__button","aria-label":"page ".concat(s,", last page")},s))):null,b=o<s?(0,t.h)(t.F,null,(0,t.h)("li",{class:d,"aria-label":c},(0,t.h)("a",{onClick:function(){return n.handlePageSelect(o+1,"nav-paginate-number")},onKeyDown:function(e){return n.handleKeyDown(e,o+1)},class:"usa-pagination__link usa-pagination__next-page",href:"javascript:void(0)"},(0,t.h)("span",{class:"usa-pagination__link-text"},r.i.t("next")),(0,t.h)("div",{id:"next-arrow-icon"})))):null;return(0,t.h)(t.H,null,(0,t.h)("nav",{class:"usa-pagination","aria-label":"Pagination"},(0,t.h)("ul",{class:"usa-pagination__list"},f,h,m,b)))},Object.defineProperty(n,"assetsDirs",{get:function(){return["../assets"]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"el",{get:function(){return(0,t.g)(this)},enumerable:!1,configurable:!0}),n}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-pagination{margin-bottom:1rem;margin-top:1rem;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:white;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.usa-pagination .usa-icon{height:1.13rem;width:1.13rem}.usa-pagination__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:center;justify-content:center;width:auto}.usa-pagination__item{display:-ms-inline-flexbox;display:inline-flex;height:2.5rem;-ms-flex-pack:center;justify-content:center;line-height:1;margin-left:0.25rem;margin-right:0.25rem;min-width:2.5rem}@media all and (min-width: 40em){.usa-pagination__item{-ms-flex:1 0 auto;flex:1 0 auto}}.usa-pagination__arrow{display:none}@media all and (min-width: 40em){.usa-pagination__arrow{display:inherit}}@media all and (min-width: 40em){.usa-pagination__previous-page{margin-right:1.25rem}}@media all and (min-width: 40em){.usa-pagination__next-page{margin-left:1.25rem}}.usa-pagination__link{-ms-flex-align:center;align-items:center;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none}.usa-pagination__link[disabled]{opacity:0.4 !important;pointer-events:none}.usa-pagination__link:hover,.usa-pagination__link:focus,.usa-pagination__link:active{color:#1a4480;text-decoration:underline}.usa-pagination__link:visited{color:#005ea2}.usa-pagination__button{-ms-flex-align:center;align-items:center;border-color:rgba(27, 27, 27, 0.2);border-radius:0.25rem;border-style:solid;border-width:1px;color:#005ea2;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;padding:0.5rem;text-decoration:none;width:100%}.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{color:#1a4480;border-color:#1a4480}@media (forced-colors: active){.usa-pagination__button:hover,.usa-pagination__button:focus,.usa-pagination__button:active{border:2px solid transparent}}.usa-pagination .usa-current{background-color:#1b1b1b;border-color:transparent;color:white}@media (forced-colors: active){.usa-pagination .usa-current{border:2px solid transparent;color:buttonText}}.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{background-color:#1b1b1b;color:white;text-decoration:none}@media (forced-colors: active){.usa-pagination .usa-current:hover,.usa-pagination .usa-current:focus,.usa-pagination .usa-current:active{color:buttontext}}.usa-pagination__overflow{-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;display:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0.5rem}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.va-pagination__item{-webkit-box-sizing:border-box;box-sizing:border-box}:host a.usa-pagination__next-page>div,:host a.usa-pagination__previous-page>div{display:-ms-flexbox;display:flex}:host{background-color:var(--vads-color-white);border-top:1px solid var(--vads-color-base-lightest);display:-ms-flexbox;display:flex;font-family:var(--font-source-sans);-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:1.25rem 0 0.625rem;width:100%}ul{list-style-type:none;margin:0;padding:0}li{display:-ms-inline-flexbox;display:inline-flex}button{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;background-color:transparent;border:0;color:var(--vads-color-link);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:0.89rem;font-weight:400;-ms-flex-pack:center;justify-content:center;line-height:2;padding:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;-webkit-transition-property:color, background-color;transition-property:color, background-color}'}}]);
|
package/dist/7375.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([[7375],{7375:function(e,a,i){i.r(a),i.d(a,{setNonce:function(){return t.s}});var t=i(218);(function(){t.p.$cssShim$=t.w.__cssshim;var e=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})),a=(e||{})["data-opts"]||{};return"onbeforeload"in e&&!history.scrollRestoration?{then:function(){}}:(a.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,t.w.location.href)).href,function(e,a){var i=function(e){return"__sc_import_".concat(e.replace(/\s|-/g,"_"))}(t.N);try{t.w[i]=new Function("w","return import(w);//".concat(Math.random()))}catch(r){var n=new Map;t.w[i]=function(r){var l,s=new URL(r,e).href,o=n.get(s);if(!o){var c=t.d.createElement("script");c.type="module",c.crossOrigin=a.crossOrigin,c.src=URL.createObjectURL(new Blob(["import * as m from '".concat(s,"'; window.").concat(i,".m = m;")],{type:"application/javascript"}));var d=null!==(l=t.p.$nonce$)&&void 0!==l?l:function(e){var a,i,t;return null!==(t=null===(i=null===(a=e.head)||void 0===a?void 0:a.querySelector('meta[name="csp-nonce"]'))||void 0===i?void 0:i.getAttribute("content"))&&void 0!==t?t:void 0}(t.d);null!=d&&c.setAttribute("nonce",d),o=new Promise((function(e){c.onload=function(){e(t.w[i].m),c.remove()}})),n.set(s,o),t.d.head.appendChild(c)}return o}}}(a.resourcesUrl,e),t.w.customElements?(0,t.a)(a):i.e(9970).then(i.t.bind(i,9970,23)).then((function(){return a})))})().then((function(e){return(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"],"files":[32]}]]],["va-header-minimal",[[1,"va-header-minimal",{"header":[1],"subheader":[1],"disableHeadings":[4,"disable-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"],"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-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-privacy-agreement",[[1,"va-privacy-agreement",{"checked":[1028],"showError":[4,"show-error"],"enableAnalytics":[4,"enable-analytics"]}]]],["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],"isSingleLine":[32]}]]],["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]}]]],["va-table",[[1,"va-table",{"tableTitle":[1,"table-title"],"tableType":[1,"table-type"],"stacked":[4],"rows":[32],"cols":[32],"cells":[32]}]]],["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]}]]],["va-checkbox-group",[[1,"va-checkbox-group",{"label":[1],"required":[4],"error":[1],"enableAnalytics":[4,"enable-analytics"],"hint":[1],"labelHeaderLevel":[1,"label-header-level"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"]},[[0,"vaChange","vaChangeHandler"]]]]],["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]}]]],["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"],"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],"label":[1],"primaryAlternate":[4,"primary-alternate"],"secondary":[516],"submit":[1],"text":[1],"messageAriaDescribedby":[1,"message-aria-describedby"]},[[0,"click","handleClickOverride"]]]]],["va-modal_2",[[1,"va-telephone",{"contact":[1],"extension":[1],"notClickable":[4,"not-clickable"],"international":[4],"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"]]]]],["va-file-input",[[1,"va-file-input",{"label":[1],"name":[1],"buttonText":[1,"button-text"],"required":[4],"accept":[1],"error":[1],"hint":[1],"enableAnalytics":[4,"enable-analytics"],"headerSize":[2,"header-size"],"headless":[4],"file":[32],"fileContents":[32],"internalError":[32],"showModal":[32]}]]],["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]}]]],["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-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"]}]]],["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]}]]],["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"],"options":[32]}],[1,"va-text-input",{"label":[1],"error":[513],"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]}]]]]'),e)}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[7375],{7375:function(e,a,i){i.r(a),i.d(a,{setNonce:function(){return t.s}});var t=i(218);(function(){t.p.$cssShim$=t.w.__cssshim;var e=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})),a=(e||{})["data-opts"]||{};return"onbeforeload"in e&&!history.scrollRestoration?{then:function(){}}:(a.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,t.w.location.href)).href,function(e,a){var i=function(e){return"__sc_import_".concat(e.replace(/\s|-/g,"_"))}(t.N);try{t.w[i]=new Function("w","return import(w);//".concat(Math.random()))}catch(r){var n=new Map;t.w[i]=function(r){var l,s=new URL(r,e).href,o=n.get(s);if(!o){var c=t.d.createElement("script");c.type="module",c.crossOrigin=a.crossOrigin,c.src=URL.createObjectURL(new Blob(["import * as m from '".concat(s,"'; window.").concat(i,".m = m;")],{type:"application/javascript"}));var d=null!==(l=t.p.$nonce$)&&void 0!==l?l:function(e){var a,i,t;return null!==(t=null===(i=null===(a=e.head)||void 0===a?void 0:a.querySelector('meta[name="csp-nonce"]'))||void 0===i?void 0:i.getAttribute("content"))&&void 0!==t?t:void 0}(t.d);null!=d&&c.setAttribute("nonce",d),o=new Promise((function(e){c.onload=function(){e(t.w[i].m),c.remove()}})),n.set(s,o),t.d.head.appendChild(c)}return o}}}(a.resourcesUrl,e),t.w.customElements?(0,t.a)(a):i.e(9970).then(i.t.bind(i,9970,23)).then((function(){return a})))})().then((function(e){return(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"],"files":[32]}]]],["va-header-minimal",[[1,"va-header-minimal",{"header":[1],"subheader":[1],"disableHeadings":[4,"disable-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"],"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-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-privacy-agreement",[[1,"va-privacy-agreement",{"checked":[1028],"showError":[4,"show-error"],"enableAnalytics":[4,"enable-analytics"]}]]],["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],"isSingleLine":[32]}]]],["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]}]]],["va-table",[[1,"va-table",{"tableTitle":[1,"table-title"],"tableType":[1,"table-type"],"stacked":[4],"rows":[32],"cols":[32],"cells":[32]}]]],["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]}]]],["va-checkbox-group",[[1,"va-checkbox-group",{"label":[1],"required":[4],"error":[1],"enableAnalytics":[4,"enable-analytics"],"hint":[1],"labelHeaderLevel":[1,"label-header-level"],"useFormsPattern":[1,"use-forms-pattern"],"formHeadingLevel":[2,"form-heading-level"],"formHeading":[1,"form-heading"]},[[0,"vaChange","vaChangeHandler"]]]]],["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]}]]],["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],"label":[1],"primaryAlternate":[4,"primary-alternate"],"secondary":[516],"submit":[1],"text":[1],"messageAriaDescribedby":[1,"message-aria-describedby"]},[[0,"click","handleClickOverride"]]]]],["va-modal_2",[[1,"va-telephone",{"contact":[1],"extension":[1],"notClickable":[4,"not-clickable"],"international":[4],"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"]]]]],["va-file-input",[[1,"va-file-input",{"label":[1],"name":[1],"buttonText":[1,"button-text"],"required":[4],"accept":[1],"error":[1],"hint":[1],"enableAnalytics":[4,"enable-analytics"],"headerSize":[2,"header-size"],"headless":[4],"file":[32],"fileContents":[32],"internalError":[32],"showModal":[32]}]]],["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]}]]],["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-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"]}]]],["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]}]]],["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],"options":[32]}],[1,"va-text-input",{"label":[1],"error":[513],"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]}]]]]'),e)}))}}]);
|
package/dist/753.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 753.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([[753,2963,5285],{2963:function(n,e,a){a.r(e),a.d(e,{a:function(){return v},b:function(){return f},d:function(){return l},f:function(){return m},g:function(){return u},i:function(){return b},m:function(){return r},v:function(){return s},z:function(){return h}}),a(2764);var t=(new Date).getFullYear()+100,r=[{label:"January",value:1},{label:"February",value:2},{label:"March",value:3},{label:"April",value:4},{label:"May",value:5},{label:"June",value:6},{label:"July",value:7},{label:"August",value:8},{label:"September",value:9},{label:"October",value:10},{label:"November",value:11},{label:"December",value:12}],i=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],o=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],l={1:o,2:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],3:o,4:i,5:o,6:i,7:o,8:o,9:i,10:o,11:i,12:o},c=["year-range","day-range","month-range","date-error"];function s(n){var e=n.component,a=n.year,r=n.month,i=n.day,o=n.monthYearOnly,l=n.yearTouched,s=n.monthTouched,u=n.dayTouched,m=d(a,r);if(e.invalidYear=!1,e.invalidMonth=!1,e.invalidDay=!1,isNaN(r)&&s)return e.invalidMonth=!0,void(e.error="month-range");if(!o&&isNaN(i)&&u)return e.invalidDay=!0,void(e.error="day-range");if(isNaN(a)&&l)return e.invalidYear=!0,void(e.error="year-range");if(e.required&&(!a||!r||!o&&!i)){if(s&&!r)return e.invalidMonth=!0,void(e.error="date-error");if(u&&!i&&!o)return e.invalidDay=!0,void(e.error="date-error");if(l&&!a)return e.invalidYear=!0,void(e.error="date-error")}return!r&&s?(e.invalidMonth=!0,void(e.error="month-range")):i||o||!u?!a&&l?(e.invalidYear=!0,void(e.error="year-range")):r&&(r<1||r>12)&&s?(e.invalidMonth=!0,void(e.error="month-range")):i&&!o&&(i<1||i>m)&&u?(e.invalidDay=!0,void(e.error="day-range")):a&&(a<1900||a>t)&&l?(e.invalidYear=!0,void(e.error="year-range")):void(e.invalidYear||e.invalidMonth||e.invalidDay||e.error&&!c.includes(e.error)||(e.error=null)):(e.invalidDay=!0,void(e.error="day-range"))}function u(n,e,a){var r=d(e,a);switch(n){case"month-range":return{start:1,end:12};case"day-range":return{start:1,end:r};case"year-range":return{start:1900,end:t};default:return null}}var d=function(n,e){return n&&e?new Date(n,e,0).getDate():31},m=function(n,e,a){if(void 0===e&&(e={dateStyle:"full",timeStyle:"short"}),void 0===a&&(a="America/New_York"),n&&n instanceof Date)return n.toLocaleString("en-US",Object.assign(Object.assign({},e),{timeZone:a}))},f=function(n,e){if(n&&n instanceof Date&&e&&e instanceof Date)return n.getTime()>e.getTime()},v=function(n,e){if(n&&n instanceof Date&&e&&e instanceof Date)return n.getTime()<e.getTime()},b=function(n,e){if(n&&n instanceof Date&&e&&e instanceof Date)return n.getFullYear()===e.getFullYear()&&n.getMonth()===e.getMonth()&&n.getDay()===e.getDay()},h=function(n){return"00".concat((n||"").toString()).slice(-2)}},5285:function(n,e,a){a.r(e),a.d(e,{c:function(){return i}});var t,r,i=(t=function(n){!function(){var e={}.hasOwnProperty;function a(){for(var n=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)n.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&n.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)e.call(r,l)&&r[l]&&n.push(l);else n.push(r.toString())}}return n.join(" ")}n.exports?(a.default=a,n.exports=a):window.classNames=a}()},t(r={path:undefined,exports:{},require:function(n,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports)},753:function(n,e,a){a.r(e),a.d(e,{va_maintenance_banner:function(){return o}});var t=a(218),r=a(5285),i=a(2963),o=(a(2764),function(){function n(n){var e=this;(0,t.r)(this,n),this.closeEvent=(0,t.c)(this,"closeEvent",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.derivePostContent=function(n,e){var a=e.getTime()-n.getTime(),r=Math.floor(a/36e5),o=60*(a/36e5-r),l="".concat(r>0?r+" hours ":""," ").concat(o>0?o+" minutes":"");return(0,i.i)(n,e),(0,t.h)("div",null,(0,t.h)("p",null,(0,t.h)("strong",null,"Date:")," ",(0,i.f)(n,{dateStyle:"full"})),(0,t.h)("p",null,(0,t.h)("strong",null,"Time:")," ",(0,i.f)(n,{hour:"numeric",minute:"numeric",timeZoneName:"short"})),(0,t.h)("p",null,(0,t.h)("strong",null,"Duration:")," ",l))},this.onCloseAlert=function(){if(e.closeEvent.emit(),window.localStorage.setItem("MAINTENANCE_BANNER",e.bannerId),e.maintenanceBannerEl.remove(),!e.disableAnalytics){var n={componentName:"va-maintenance-banner",action:"close",details:{header:(0,i.a)(new Date,new Date(e.maintenanceStartDateTime))?e.upcomingWarnTitle:e.maintenanceTitle,upcomingWarnStartDateTime:e.upcomingWarnStartDateTime,maintenanceStartDateTime:e.maintenanceStartDateTime,maintenanceEndDateTime:e.maintenanceEndDateTime,displayedContent:e.maintenanceBannerContent.innerText}};e.componentLibraryAnalytics.emit(n)}},this.disableAnalytics=!1,this.bannerId=void 0,this.maintenanceStartDateTime=void 0,this.maintenanceEndDateTime=void 0,this.maintenanceTitle=void 0,this.upcomingWarnStartDateTime=void 0,this.upcomingWarnTitle=void 0,this.isError=void 0}return n.prototype.render=function(){var n=this,e=this,a=e.upcomingWarnStartDateTime,o=e.maintenanceEndDateTime,l=e.isError,c=new Date;if((0,i.a)(c,new Date(a)))return null;if((0,i.b)(c,new Date(o)))return null;if(window.localStorage.getItem("MAINTENANCE_BANNER")!==this.bannerId){var s=this,u=s.upcomingWarnTitle,d=s.maintenanceStartDateTime,m=s.maintenanceTitle,f=(0,i.a)(c,new Date(d))&&!l,v=(0,r.c)({"maintenance-banner":!0,"maintenance-banner--warning":f,"maintenance-banner--error":!f}),b=l?"error":"warning";return(0,t.h)(t.H,null,(0,t.h)("div",{class:v,ref:function(e){return n.maintenanceBannerEl=e}},(0,t.h)("va-icon",{class:"maintenance-banner__icon",icon:b,size:4}),(0,t.h)("div",{class:"maintenance-banner__body"},(0,t.h)("h4",{class:"maintenance-banner__title"},f?u:m),(0,t.h)("div",{class:"maintenance-banner__content",ref:function(e){return n.maintenanceBannerContent=e}},f?(0,t.h)("slot",{name:"warn-content"}):(0,t.h)("slot",{name:"maintenance-content"})),(0,t.h)("div",{class:"maintenance-banner__derived-content"},this.derivePostContent(new Date(d),new Date(o)))),(0,t.h)("button",{"aria-label":"Close notification",class:"maintenance-banner__close",onClick:this.onCloseAlert,type:"button"},(0,t.h)("va-icon",{icon:"cancel",size:4}))))}return null},n}());o.style=
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[753,2963,5285],{2963:function(n,e,a){a.r(e),a.d(e,{a:function(){return v},b:function(){return f},d:function(){return l},f:function(){return m},g:function(){return u},i:function(){return b},m:function(){return r},v:function(){return s},z:function(){return h}}),a(2764);var t=(new Date).getFullYear()+100,r=[{label:"January",value:1},{label:"February",value:2},{label:"March",value:3},{label:"April",value:4},{label:"May",value:5},{label:"June",value:6},{label:"July",value:7},{label:"August",value:8},{label:"September",value:9},{label:"October",value:10},{label:"November",value:11},{label:"December",value:12}],i=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],o=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],l={1:o,2:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],3:o,4:i,5:o,6:i,7:o,8:o,9:i,10:o,11:i,12:o},c=["year-range","day-range","month-range","date-error"];function s(n){var e=n.component,a=n.year,r=n.month,i=n.day,o=n.monthYearOnly,l=n.yearTouched,s=n.monthTouched,u=n.dayTouched,m=d(a,r);if(e.invalidYear=!1,e.invalidMonth=!1,e.invalidDay=!1,isNaN(r)&&s)return e.invalidMonth=!0,void(e.error="month-range");if(!o&&isNaN(i)&&u)return e.invalidDay=!0,void(e.error="day-range");if(isNaN(a)&&l)return e.invalidYear=!0,void(e.error="year-range");if(e.required&&(!a||!r||!o&&!i)){if(s&&!r)return e.invalidMonth=!0,void(e.error="date-error");if(u&&!i&&!o)return e.invalidDay=!0,void(e.error="date-error");if(l&&!a)return e.invalidYear=!0,void(e.error="date-error")}return!r&&s?(e.invalidMonth=!0,void(e.error="month-range")):i||o||!u?!a&&l?(e.invalidYear=!0,void(e.error="year-range")):r&&(r<1||r>12)&&s?(e.invalidMonth=!0,void(e.error="month-range")):i&&!o&&(i<1||i>m)&&u?(e.invalidDay=!0,void(e.error="day-range")):a&&(a<1900||a>t)&&l?(e.invalidYear=!0,void(e.error="year-range")):void(e.invalidYear||e.invalidMonth||e.invalidDay||e.error&&!c.includes(e.error)||(e.error=null)):(e.invalidDay=!0,void(e.error="day-range"))}function u(n,e,a){var r=d(e,a);switch(n){case"month-range":return{start:1,end:12};case"day-range":return{start:1,end:r};case"year-range":return{start:1900,end:t};default:return null}}var d=function(n,e){return n&&e?new Date(n,e,0).getDate():31},m=function(n,e,a){if(void 0===e&&(e={dateStyle:"full",timeStyle:"short"}),void 0===a&&(a="America/New_York"),n&&n instanceof Date)return n.toLocaleString("en-US",Object.assign(Object.assign({},e),{timeZone:a}))},f=function(n,e){if(n&&n instanceof Date&&e&&e instanceof Date)return n.getTime()>e.getTime()},v=function(n,e){if(n&&n instanceof Date&&e&&e instanceof Date)return n.getTime()<e.getTime()},b=function(n,e){if(n&&n instanceof Date&&e&&e instanceof Date)return n.getFullYear()===e.getFullYear()&&n.getMonth()===e.getMonth()&&n.getDay()===e.getDay()},h=function(n){return"00".concat((n||"").toString()).slice(-2)}},5285:function(n,e,a){a.r(e),a.d(e,{c:function(){return i}});var t,r,i=(t=function(n){!function(){var e={}.hasOwnProperty;function a(){for(var n=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)n.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&n.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)e.call(r,l)&&r[l]&&n.push(l);else n.push(r.toString())}}return n.join(" ")}n.exports?(a.default=a,n.exports=a):window.classNames=a}()},t(r={path:undefined,exports:{},require:function(n,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports)},753:function(n,e,a){a.r(e),a.d(e,{va_maintenance_banner:function(){return o}});var t=a(218),r=a(5285),i=a(2963),o=(a(2764),function(){function n(n){var e=this;(0,t.r)(this,n),this.closeEvent=(0,t.c)(this,"closeEvent",7),this.componentLibraryAnalytics=(0,t.c)(this,"component-library-analytics",7),this.derivePostContent=function(n,e){var a=e.getTime()-n.getTime(),r=Math.floor(a/36e5),o=60*(a/36e5-r),l="".concat(r>0?r+" hours ":""," ").concat(o>0?o+" minutes":"");return(0,i.i)(n,e),(0,t.h)("div",null,(0,t.h)("p",null,(0,t.h)("strong",null,"Date:")," ",(0,i.f)(n,{dateStyle:"full"})),(0,t.h)("p",null,(0,t.h)("strong",null,"Time:")," ",(0,i.f)(n,{hour:"numeric",minute:"numeric",timeZoneName:"short"})),(0,t.h)("p",null,(0,t.h)("strong",null,"Duration:")," ",l))},this.onCloseAlert=function(){if(e.closeEvent.emit(),window.localStorage.setItem("MAINTENANCE_BANNER",e.bannerId),e.maintenanceBannerEl.remove(),!e.disableAnalytics){var n={componentName:"va-maintenance-banner",action:"close",details:{header:(0,i.a)(new Date,new Date(e.maintenanceStartDateTime))?e.upcomingWarnTitle:e.maintenanceTitle,upcomingWarnStartDateTime:e.upcomingWarnStartDateTime,maintenanceStartDateTime:e.maintenanceStartDateTime,maintenanceEndDateTime:e.maintenanceEndDateTime,displayedContent:e.maintenanceBannerContent.innerText}};e.componentLibraryAnalytics.emit(n)}},this.disableAnalytics=!1,this.bannerId=void 0,this.maintenanceStartDateTime=void 0,this.maintenanceEndDateTime=void 0,this.maintenanceTitle=void 0,this.upcomingWarnStartDateTime=void 0,this.upcomingWarnTitle=void 0,this.isError=void 0}return n.prototype.render=function(){var n=this,e=this,a=e.upcomingWarnStartDateTime,o=e.maintenanceEndDateTime,l=e.isError,c=new Date;if((0,i.a)(c,new Date(a)))return null;if((0,i.b)(c,new Date(o)))return null;if(window.localStorage.getItem("MAINTENANCE_BANNER")!==this.bannerId){var s=this,u=s.upcomingWarnTitle,d=s.maintenanceStartDateTime,m=s.maintenanceTitle,f=(0,i.a)(c,new Date(d))&&!l,v=(0,r.c)({"maintenance-banner":!0,"maintenance-banner--warning":f,"maintenance-banner--error":!f}),b=l?"error":"warning";return(0,t.h)(t.H,null,(0,t.h)("div",{class:v,ref:function(e){return n.maintenanceBannerEl=e}},(0,t.h)("va-icon",{class:"maintenance-banner__icon",icon:b,size:4}),(0,t.h)("div",{class:"maintenance-banner__body"},(0,t.h)("h4",{class:"maintenance-banner__title"},f?u:m),(0,t.h)("div",{class:"maintenance-banner__content",ref:function(e){return n.maintenanceBannerContent=e}},f?(0,t.h)("slot",{name:"warn-content"}):(0,t.h)("slot",{name:"maintenance-content"})),(0,t.h)("div",{class:"maintenance-banner__derived-content"},this.derivePostContent(new Date(d),new Date(o)))),(0,t.h)("button",{"aria-label":"Close notification",class:"maintenance-banner__close",onClick:this.onCloseAlert,type:"button"},(0,t.h)("va-icon",{icon:"cancel",size:4}))))}return null},n}());o.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.maintenance-banner{border-top:8px solid;background-color:var(--vads-color-base-lightest);position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.maintenance-banner__content{font-size:1.06rem}.maintenance-banner p{-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em}.maintenance-banner--warning{border-color:var(--vads-color-warning)}.maintenance-banner--error{border-color:var(--vads-color-secondary-dark)}.maintenance-banner__icon{position:absolute;top:18px;left:18px}.maintenance-banner--error .maintenance-banner__icon{color:var(--vads-color-secondary-dark)}.maintenance-banner__title{font-family:var(--font-serif);margin:0 0 8px;font-size:20px}.maintenance-banner__body{padding:16px 56px;position:relative;max-width:1000px;margin:0px auto}.maintenance-banner__close{-ms-flex-item-align:start;align-self:flex-start;color:var(--vads-color-base);margin-top:8px}.maintenance-banner__close:hover{color:var(--vads-color-base)}'}}]);
|
package/dist/783.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([[783],{783:function(o,n,t){t.r(n),t.d(n,{va_on_this_page:function(){return a}});var e=t(218),i=(t(4786),t(2764)),a=function(){function o(o){var n=this;(0,e.r)(this,o),this.componentLibraryAnalytics=(0,e.c)(this,"component-library-analytics",7),this.handleOnClick=function(o){var t,e,i,a;n.disableAnalytics||n.componentLibraryAnalytics.emit({componentName:"va-on-this-page",action:"click",details:{"click-text":(null===(e=null===(t=o.composedPath())||void 0===t?void 0:t[0])||void 0===e?void 0:e.textContent)||(null===(a=null===(i=o.path)||void 0===i?void 0:i[0])||void 0===a?void 0:a.textContent)}})},this.disableAnalytics=!1}return o.prototype.connectedCallback=function(){var o=this;i.i.on("languageChanged",(function(){(0,e.f)(o.el)}))},o.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},o.prototype.render=function(){var o=this.handleOnClick,n=Array.from(document.querySelectorAll("article h2")).filter((function(o){return o.id}));return(0,e.h)("nav",{"aria-labelledby":"on-this-page"},(0,e.h)("dl",null,(0,e.h)("dt",{id:"on-this-page"},i.i.t("on-this-page")),(0,e.h)("dd",{role:"definition"},n.map((function(n){return(0,e.h)("a",{href:"#".concat(n.id),onClick:o},(0,e.h)("va-icon",{icon:"arrow_downward"}),n.innerText)})))))},Object.defineProperty(o.prototype,"el",{get:function(){return(0,e.g)(this)},enumerable:!1,configurable:!0}),o}();a.style=
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[783],{783:function(o,n,t){t.r(n),t.d(n,{va_on_this_page:function(){return a}});var e=t(218),i=(t(4786),t(2764)),a=function(){function o(o){var n=this;(0,e.r)(this,o),this.componentLibraryAnalytics=(0,e.c)(this,"component-library-analytics",7),this.handleOnClick=function(o){var t,e,i,a;n.disableAnalytics||n.componentLibraryAnalytics.emit({componentName:"va-on-this-page",action:"click",details:{"click-text":(null===(e=null===(t=o.composedPath())||void 0===t?void 0:t[0])||void 0===e?void 0:e.textContent)||(null===(a=null===(i=o.path)||void 0===i?void 0:i[0])||void 0===a?void 0:a.textContent)}})},this.disableAnalytics=!1}return o.prototype.connectedCallback=function(){var o=this;i.i.on("languageChanged",(function(){(0,e.f)(o.el)}))},o.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},o.prototype.render=function(){var o=this.handleOnClick,n=Array.from(document.querySelectorAll("article h2")).filter((function(o){return o.id}));return(0,e.h)("nav",{"aria-labelledby":"on-this-page"},(0,e.h)("dl",null,(0,e.h)("dt",{id:"on-this-page"},i.i.t("on-this-page")),(0,e.h)("dd",{role:"definition"},n.map((function(n){return(0,e.h)("a",{href:"#".concat(n.id),onClick:o},(0,e.h)("va-icon",{icon:"arrow_downward"}),n.innerText)})))))},Object.defineProperty(o.prototype,"el",{get:function(){return(0,e.g)(this)},enumerable:!1,configurable:!0}),o}();a.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}:host{display:block;border:1px solid var(--vads-color-base-light);border-radius:4px;padding:1em}@media (min-width: 768px){:host{border:none;padding:1em 1em 1em 0}}dt{font-family:var(--font-serif);font-size:1.25rem;margin:0.4em 0em}dd{margin:0.4em 0em}dl{margin-top:0;margin-bottom:0;margin-left:0;list-style-type:none;padding-left:0}dd a{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;padding:0.5em;line-height:1.5em;max-width:285px}a:active{background-color:var(--vads-color-base-lighter)}va-icon{margin-right:4px}'}}]);
|
package/dist/8509.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 8509.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([[8509,5285],{5285:function(t,e,n){n.r(e),n.d(e,{c:function(){return r}});var o,i,r=(o=function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var r=typeof i;if("string"===r||"number"===r)t.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&t.push(s)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var a in i)e.call(i,a)&&i[a]&&t.push(a);else t.push(i.toString())}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n}()},o(i={path:undefined,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),i.exports)},8509:function(t,e,n){n.r(e),n.d(e,{va_back_to_top:function(){return r}});var o=n(218),i=n(5285);!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=i(e);n;)n=i(e=n.ownerDocument);return e}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?d(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(a(n,"resize",o,!0),a(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),l(t,"resize",o,!0)),l(e,"scroll",o,!0),s&&s.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=c){var h=i(e);h&&this._monitorIntersections(h.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=o){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=h(i),a=this._rootContainsTarget(i),l=o.entry,c=t&&a&&this._computeTargetAndRootIntersection(i,s,e),u=null;this._rootContainsTarget(i)?n&&!this.root||(u=e):u={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:u,intersectionRect:c});l?t&&a?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=f(e),l=!1;!l&&a;){var u=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(l=!0,a==this.root||a==t)n&&!this.root?!o||0==o.width&&0==o.height?(a=null,u=null,s=null):u=o:u=r;else{var m=f(a),v=m&&h(m),b=m&&this._computeTargetAndRootIntersection(m,v,r);v&&b?(a=m,u=d(v,b)):(a=null,s=null)}else{var g=a.ownerDocument;a!=g.body&&a!=g.documentElement&&"visible"!=p.overflow&&(u=h(a))}if(u&&(s=c(u,s)),!s)break;a=a&&f(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=h(this.root);else{var n=m(this.root)?this.root:t,o=n.documentElement,i=n.body;e={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return p(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=u(t.rootBounds),this.boundingClientRect=u(t.boundingClientRect),this.intersectionRect=u(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function l(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function h(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function d(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function p(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(t){return t&&9===t.nodeType}}();var r=function(){function t(t){(0,o.r)(this,t),this.revealed=!1,this.isDocked=!1}return t.prototype.componentDidLoad=function(){var t=this;new IntersectionObserver((function(e){t.isDocked=e[0].isIntersecting||e[0].boundingClientRect.y<0}),{threshold:1}).observe(this.el),new IntersectionObserver((function(e){t.revealed=e[0].boundingClientRect.y<0})).observe(this.revealPixel)},t.prototype.navigateToTop=function(t){t.preventDefault();var e=document.querySelector("h1");return e&&(e.setAttribute("tabindex","-1"),e.focus(),e.addEventListener("blur",(function(){return e.removeAttribute("tabindex")}))),window.scrollTo(0,0)},t.prototype.render=function(){var t=this,e=this.el.getBoundingClientRect().width;return this.el.style.setProperty("--undocked-width","".concat(e,"px")),(0,o.h)(o.H,null,(0,o.h)("span",{id:"marginWrapper"},(0,o.h)("span",{class:"reveal-point",ref:function(e){return t.revealPixel=e}}),(0,o.h)("div",{class:(0,i.c)({docked:this.isDocked,reveal:this.revealed})},(0,o.h)("a",{href:"#ds-back-to-top",onClick:this.navigateToTop.bind(this)},(0,o.h)("span",null,(0,o.h)("va-icon",{icon:"arrow_upward",size:3}),(0,o.h)("span",{class:"sr-only"},"Back to top")," ",(0,o.h)("span",{class:"text"},"Back to top"))))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();r.style="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}button:not([disabled]):focus,:host([uswds='false']) button:not([disabled]):active,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.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}#marginWrapper{display:block;width:100%;height:44px;margin-top:2.5rem;margin-bottom:1.25rem}div{position:fixed;bottom:0;width:100%}.reveal-point{position:absolute;width:1px;height:1px;top:var(--reveal-breakpoint, 37.5rem);left:0;}a{border-bottom-right-radius:0;border-top-right-radius:0;bottom:0;color:var(--vads-color-link);right:0;background:rgba(255, 255, 255, 0.9);height:48px;width:48px;margin-bottom:0.313rem;opacity:0;padding:0;pointer-events:none;position:absolute;-webkit-transition:all 0.25s ease-in;transition:all 0.25s ease-in}a:not([disabled]):active,a:not([disabled]):focus{border-radius:5px;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a:not([disabled]):hover{background-color:var(--vads-color-gray-cool-light);border-radius:0;color:var(--vads-color-primary-darker);outline:none}div a{display:none}div.reveal a{display:inherit;border-bottom-left-radius:5px;border-top-left-radius:5px;text-decoration:none;pointer-events:auto;opacity:1;-webkit-animation:slideInUp 0.25s;animation:slideInUp 0.25s}div.reveal a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}div:not(.reveal) a{-webkit-animation:slideOutDown 0.25s;animation:slideOutDown 0.25s}@media (prefers-reduced-motion){a{-webkit-transition:none;transition:none}div.reveal a{-webkit-animation:none;animation:none}div:not(.reveal) a{-webkit-animation:none;animation:none}}a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}a span.text{display:none;font-weight:700}a span.sr-only{visibility:visible}div.docked{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}div:not(.docked){max-width:var(--undocked-width)}div:not(.docked):not(.reveal){position:relative}div.docked a{position:relative}va-icon{margin-right:0px}@media (min-width: 768px){a{height:44px;width:44px;padding:0 1rem;text-decoration:none;width:auto}a span.text{color:var(--vads-color-link);display:inline-block;text-decoration:underline}a span.sr-only{visibility:hidden}va-icon{margin-right:4px}}"}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[8509,5285],{5285:function(t,e,n){n.r(e),n.d(e,{c:function(){return r}});var o,i,r=(o=function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var r=typeof i;if("string"===r||"number"===r)t.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&t.push(s)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var a in i)e.call(i,a)&&i[a]&&t.push(a);else t.push(i.toString())}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n}()},o(i={path:undefined,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),i.exports)},8509:function(t,e,n){n.r(e),n.d(e,{va_back_to_top:function(){return r}});var o=n(218),i=n(5285);!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=i(e);n;)n=i(e=n.ownerDocument);return e}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?d(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(a(n,"resize",o,!0),a(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),l(t,"resize",o,!0)),l(e,"scroll",o,!0),s&&s.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=c){var h=i(e);h&&this._monitorIntersections(h.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}));if(!r){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=o){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=h(i),a=this._rootContainsTarget(i),l=o.entry,c=t&&a&&this._computeTargetAndRootIntersection(i,s,e),u=null;this._rootContainsTarget(i)?n&&!this.root||(u=e):u={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:u,intersectionRect:c});l?t&&a?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=f(e),l=!1;!l&&a;){var u=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(l=!0,a==this.root||a==t)n&&!this.root?!o||0==o.width&&0==o.height?(a=null,u=null,s=null):u=o:u=r;else{var m=f(a),v=m&&h(m),b=m&&this._computeTargetAndRootIntersection(m,v,r);v&&b?(a=m,u=d(v,b)):(a=null,s=null)}else{var g=a.ownerDocument;a!=g.body&&a!=g.documentElement&&"visible"!=p.overflow&&(u=h(a))}if(u&&(s=c(u,s)),!s)break;a=a&&f(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=h(this.root);else{var n=m(this.root)?this.root:t,o=n.documentElement,i=n.body;e={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return p(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=u(t.rootBounds),this.boundingClientRect=u(t.boundingClientRect),this.intersectionRect=u(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function l(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function h(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function d(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function p(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(t){return t&&9===t.nodeType}}();var r=function(){function t(t){(0,o.r)(this,t),this.revealed=!1,this.isDocked=!1}return t.prototype.componentDidLoad=function(){var t=this;new IntersectionObserver((function(e){t.isDocked=e[0].isIntersecting||e[0].boundingClientRect.y<0}),{threshold:1}).observe(this.el),new IntersectionObserver((function(e){t.revealed=e[0].boundingClientRect.y<0})).observe(this.revealPixel)},t.prototype.navigateToTop=function(t){t.preventDefault();var e=document.querySelector("h1");return e&&(e.setAttribute("tabindex","-1"),e.focus(),e.addEventListener("blur",(function(){return e.removeAttribute("tabindex")}))),window.scrollTo(0,0)},t.prototype.render=function(){var t=this,e=this.el.getBoundingClientRect().width;return this.el.style.setProperty("--undocked-width","".concat(e,"px")),(0,o.h)(o.H,null,(0,o.h)("span",{id:"marginWrapper"},(0,o.h)("span",{class:"reveal-point",ref:function(e){return t.revealPixel=e}}),(0,o.h)("div",{class:(0,i.c)({docked:this.isDocked,reveal:this.revealed})},(0,o.h)("a",{href:"#ds-back-to-top",onClick:this.navigateToTop.bind(this)},(0,o.h)("span",null,(0,o.h)("va-icon",{icon:"arrow_upward",size:3}),(0,o.h)("span",{class:"sr-only"},"Back to top")," ",(0,o.h)("span",{class:"text"},"Back to top"))))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();r.style='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}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{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.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}#marginWrapper{display:block;width:100%;height:44px;margin-top:2.5rem;margin-bottom:1.25rem}div{position:fixed;bottom:0;width:100%}.reveal-point{position:absolute;width:1px;height:1px;top:var(--reveal-breakpoint, 37.5rem);left:0;}a{border-bottom-right-radius:0;border-top-right-radius:0;bottom:0;color:var(--vads-color-link);right:0;background:rgba(255, 255, 255, 0.9);height:48px;width:48px;margin-bottom:0.313rem;opacity:0;padding:0;pointer-events:none;position:absolute;-webkit-transition:all 0.25s ease-in;transition:all 0.25s ease-in}a:not([disabled]):active,a:not([disabled]):focus{border-radius:5px;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a:not([disabled]):hover{background-color:var(--vads-color-gray-cool-light);border-radius:0;color:var(--vads-color-primary-darker);outline:none}div a{display:none}div.reveal a{display:inherit;border-bottom-left-radius:5px;border-top-left-radius:5px;text-decoration:none;pointer-events:auto;opacity:1;-webkit-animation:slideInUp 0.25s;animation:slideInUp 0.25s}div.reveal a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}div:not(.reveal) a{-webkit-animation:slideOutDown 0.25s;animation:slideOutDown 0.25s}@media (prefers-reduced-motion){a{-webkit-transition:none;transition:none}div.reveal a{-webkit-animation:none;animation:none}div:not(.reveal) a{-webkit-animation:none;animation:none}}a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}a span.text{display:none;font-weight:700}a span.sr-only{visibility:visible}div.docked{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}div:not(.docked){max-width:var(--undocked-width)}div:not(.docked):not(.reveal){position:relative}div.docked a{position:relative}va-icon{margin-right:0px}@media (min-width: 768px){a{height:44px;width:44px;padding:0 1rem;text-decoration:none;width:auto}a span.text{color:var(--vads-color-link);display:inline-block;text-decoration:underline}a span.sr-only{visibility:hidden}va-icon{margin-right:4px}}'}}]);
|
package/dist/8716.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 8716.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([[8716,5285,265],{5285:function(t,e,a){a.r(e),a.d(e,{c:function(){return n}});var o,r,n=(o=function(t){!function(){var e={}.hasOwnProperty;function a(){for(var t=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var n=typeof r;if("string"===n||"number"===n)t.push(r);else if(Array.isArray(r)){if(r.length){var i=a.apply(null,r);i&&t.push(i)}}else if("object"===n)if(r.toString===Object.prototype.toString)for(var s in r)e.call(r,s)&&r[s]&&t.push(s);else t.push(r.toString())}}return t.join(" ")}t.exports?(a.default=a,t.exports=a):window.classNames=a}()},o(r={path:undefined,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports)},265:function(t,e,a){function o(t,e){var a=t.shadowRoot.querySelector("slot").assignedNodes();return null!==e?Array.from(a).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(a)}function r(t){return 1===t?"":"s"}function n(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(r(e)," allowed");var a;if(t.length<=e){var o=e-t.length;a="".concat(o," character").concat(r(o)," left")}else o=t.length-e,a="".concat(o," character").concat(r(o)," over limit");return a}function i(t,e){return Array.from({length:e-t+1},(function(e,a){return t+a}))}a.r(e),a.d(e,{S:function(){return d},a:function(){return u},b:function(){return n},g:function(){return o},m:function(){return i},s:function(){return c}});var s=function(t){return t&&"object"==typeof t&&1===t.nodeType};function c(t,e){var a=function(t,e){if("string"!=typeof t)return[];if(!e||!s(e))return[];var a=e.shadowRoot.querySelectorAll(t);return Array.from(a)}(t,e);return"string"!=typeof t||s(e)&&e.matches(t)&&a.push(e),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(t){return d._entities[t]},escapeHTML:function(t){for(var e="",a=0;a<t.length;a++)if(e+=t[a],a+1<arguments.length){var o=arguments[a+1]||"";e+=String(o).replace(d._entity,d.getEntity)}return e}};function u(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}},8716:function(t,e,a){a.r(e),a.d(e,{va_accordion:function(){return s}});var o=a(218),r=a(265),n=(a(4786),a(5285)),i=a(2764),s=function(){function t(t){var e=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.expandCollapseAll=function(t){e.expanded=t,(0,r.g)(e.el,"va-accordion-item").forEach((function(e){e.setAttribute("open","".concat(t))}))},this.expanded=!1,this.openSingle=!1,this.disableAnalytics=!1,this.sectionHeading=null}return t.prototype.itemToggledHandler=function(t){var e,a,o,n=t.target.closest("va-accordion-item"),i=n.querySelector('[slot="headline"]');i?(a=null==i?void 0:i.innerHTML,o=parseInt(null===(e=null==i?void 0:i.tagName)||void 0===e?void 0:e.toLowerCase().split("")[1])):(a=n.header,o=n.level),this.openSingle&&(0,r.g)(this.el,"va-accordion-item").filter((function(t){return t!==n})).forEach((function(t){return t.setAttribute("open","false")}));var s="true"===n.getAttribute("open");if(!this.disableAnalytics){var c={componentName:"va-accordion",action:s?"collapse":"expand",details:{header:a||n.header,subheader:n.subheader,level:o||n.level,sectionHeading:this.sectionHeading}};this.componentLibraryAnalytics.emit(c)}n.setAttribute("open",s?"false":"true"),this.isScrolledIntoView(n)||n.scrollIntoView(),this.accordionsOpened()},t.prototype.accordionsOpened=function(){var t=[];(0,r.g)(this.el,"va-accordion-item").forEach((function(e){t.push(e.getAttribute("open"))})),t.every((function(t){return"true"===t}))&&(this.expanded=!0),t.every((function(t){return"false"===t}))&&(this.expanded=!1)},t.prototype.isScrolledIntoView=function(t){var e=null==t?void 0:t.getBoundingClientRect().top;return!(!e&&0!==e)&&e>=0&&e<=window.innerHeight},t.prototype.connectedCallback=function(){var t=this;i.i.on("languageChanged",(function(){(0,o.f)(t.el)}))},t.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},t.prototype.render=function(){var t=this,e=this.openSingle,a=(0,n.c)({"usa-accordion":!0}),r=function(t,e,a){if(a||2===arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}([],this.el.children,!0).filter((function(t){return"va-accordion-item"===t.tagName.toLowerCase()})).map((function(t){return t.id}));return(0,o.h)(o.H,null,(0,o.h)("div",{class:a,ref:function(e){return t.accordionContainer=e}},e?null:(0,o.h)("button",{class:"va-accordion__button",ref:function(e){return t.expandCollapseBtn=e},onClick:function(){return t.expandCollapseAll(!t.expanded)},"aria-label":this.expanded?i.i.t("collapse-all-aria-label"):i.i.t("expand-all-aria-label"),"aria-controls":r.join(" "),"aria-expanded":"".concat(this.expanded)},this.expanded?"".concat(i.i.t("collapse-all")," -"):"".concat(i.i.t("expand-all")," +")),(0,o.h)("slot",null)))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();s.style='button:not([disabled]):focus,:host([uswds=\'false\']) button:not([disabled]):active,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{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;color:#1b1b1b;background-color:#f0f0f0;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}button.va-accordion__button{border:none;color:var(--vads-color-link);background:transparent;padding:0.625rem;cursor:pointer;font-family:inherit;font-weight:bold;float:right}@media print{button.va-accordion__button{display:none}}'}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[8716,5285,2259],{5285:function(t,e,a){a.r(e),a.d(e,{c:function(){return n}});var o,r,n=(o=function(t){!function(){var e={}.hasOwnProperty;function a(){for(var t=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var n=typeof r;if("string"===n||"number"===n)t.push(r);else if(Array.isArray(r)){if(r.length){var i=a.apply(null,r);i&&t.push(i)}}else if("object"===n)if(r.toString===Object.prototype.toString)for(var s in r)e.call(r,s)&&r[s]&&t.push(s);else t.push(r.toString())}}return t.join(" ")}t.exports?(a.default=a,t.exports=a):window.classNames=a}()},o(r={path:undefined,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports)},2259:function(t,e,a){function o(t,e){var a=t.shadowRoot.querySelector("slot").assignedNodes();return null!==e?Array.from(a).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(a)}function r(t){return 1===t?"":"s"}function n(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(r(e)," allowed");var a;if(t.length<=e){var o=e-t.length;a="".concat(o," character").concat(r(o)," left")}else o=t.length-e,a="".concat(o," character").concat(r(o)," over limit");return a}function i(t,e){return Array.from({length:e-t+1},(function(e,a){return t+a}))}a.r(e),a.d(e,{S:function(){return d},a:function(){return u},b:function(){return n},g:function(){return o},m:function(){return i},s:function(){return c}});var s=function(t){return t&&"object"==typeof t&&1===t.nodeType};function c(t,e){var a=function(t,e){if("string"!=typeof t)return[];if(!e||!s(e))return[];var a=e.shadowRoot.querySelectorAll(t);return Array.from(a)}(t,e);return"string"!=typeof t||s(e)&&e.matches(t)&&a.push(e),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(t){return d._entities[t]},escapeHTML:function(t){for(var e="",a=0;a<t.length;a++)if(e+=t[a],a+1<arguments.length){var o=arguments[a+1]||"";e+=String(o).replace(d._entity,d.getEntity)}return e}};function u(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}},8716:function(t,e,a){a.r(e),a.d(e,{va_accordion:function(){return s}});var o=a(218),r=a(2259),n=(a(4786),a(5285)),i=a(2764),s=function(){function t(t){var e=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.expandCollapseAll=function(t){e.expanded=t,(0,r.g)(e.el,"va-accordion-item").forEach((function(e){e.setAttribute("open","".concat(t))}))},this.expanded=!1,this.openSingle=!1,this.disableAnalytics=!1,this.sectionHeading=null}return t.prototype.itemToggledHandler=function(t){var e,a,o,n=t.target.closest("va-accordion-item"),i=n.querySelector('[slot="headline"]');i?(a=null==i?void 0:i.innerHTML,o=parseInt(null===(e=null==i?void 0:i.tagName)||void 0===e?void 0:e.toLowerCase().split("")[1])):(a=n.header,o=n.level),this.openSingle&&(0,r.g)(this.el,"va-accordion-item").filter((function(t){return t!==n})).forEach((function(t){return t.setAttribute("open","false")}));var s="true"===n.getAttribute("open");if(!this.disableAnalytics){var c={componentName:"va-accordion",action:s?"collapse":"expand",details:{header:a||n.header,subheader:n.subheader,level:o||n.level,sectionHeading:this.sectionHeading}};this.componentLibraryAnalytics.emit(c)}n.setAttribute("open",s?"false":"true"),this.isScrolledIntoView(n)||n.scrollIntoView(),this.accordionsOpened()},t.prototype.accordionsOpened=function(){var t=[];(0,r.g)(this.el,"va-accordion-item").forEach((function(e){t.push(e.getAttribute("open"))})),t.every((function(t){return"true"===t}))&&(this.expanded=!0),t.every((function(t){return"false"===t}))&&(this.expanded=!1)},t.prototype.isScrolledIntoView=function(t){var e=null==t?void 0:t.getBoundingClientRect().top;return!(!e&&0!==e)&&e>=0&&e<=window.innerHeight},t.prototype.connectedCallback=function(){var t=this;i.i.on("languageChanged",(function(){(0,o.f)(t.el)}))},t.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},t.prototype.render=function(){var t=this,e=this.openSingle,a=(0,n.c)({"usa-accordion":!0}),r=function(t,e,a){if(a||2===arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}([],this.el.children,!0).filter((function(t){return"va-accordion-item"===t.tagName.toLowerCase()})).map((function(t){return t.id}));return(0,o.h)(o.H,null,(0,o.h)("div",{class:a,ref:function(e){return t.accordionContainer=e}},e?null:(0,o.h)("button",{class:"va-accordion__button",ref:function(e){return t.expandCollapseBtn=e},onClick:function(){return t.expandCollapseAll(!t.expanded)},"aria-label":this.expanded?i.i.t("collapse-all-aria-label"):i.i.t("expand-all-aria-label"),"aria-controls":r.join(" "),"aria-expanded":"".concat(this.expanded)},this.expanded?"".concat(i.i.t("collapse-all")," -"):"".concat(i.i.t("expand-all")," +")),(0,o.h)("slot",null)))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();s.style='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{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;color:#1b1b1b;background-color:#f0f0f0;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}button.va-accordion__button{border:none;color:var(--vads-color-link);background:transparent;padding:0.625rem;cursor:pointer;font-family:inherit;font-weight:bold;float:right}@media print{button.va-accordion__button{display:none}}'}}]);
|
package/dist/9370.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 9370.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([[9370,5285],{5285:function(e,a,t){t.r(a),t.d(a,{c:function(){return i}});var r,l,i=(r=function(e){!function(){var a={}.hasOwnProperty;function t(){for(var e=[],r=0;r<arguments.length;r++){var l=arguments[r];if(l){var i=typeof l;if("string"===i||"number"===i)e.push(l);else if(Array.isArray(l)){if(l.length){var s=t.apply(null,l);s&&e.push(s)}}else if("object"===i)if(l.toString===Object.prototype.toString)for(var o in l)a.call(l,o)&&l[o]&&e.push(o);else e.push(l.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()},r(l={path:undefined,exports:{},require:function(e,a){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),l.exports)},9370:function(e,a,t){t.r(a),t.d(a,{va_checkbox:function(){return o}});var r=t(218),l=t(5285),i=(t(4786),t(2764)),s=function(e,a,t){if(t||2===arguments.length)for(var r,l=0,i=a.length;l<i;l++)!r&&l in a||(r||(r=Array.prototype.slice.call(a,0,l)),r[l]=a[l]);return e.concat(r||Array.prototype.slice.call(a))},o=function(){function e(e){var a=this;(0,r.r)(this,e),this.vaChange=(0,r.c)(this,"vaChange",7),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.fireAnalyticsEvent=function(){var e,t=a.description||s(s([],null===(e=a.el.shadowRoot.querySelector('slot[name="description"]'))||void 0===e?void 0:e.assignedNodes(),!0),Array.from(a.el.shadowRoot.querySelectorAll('[slot="description"]')),!0).map((function(e){return e.textContent})).join(" ");a.componentLibraryAnalytics.emit({componentName:"va-checkbox",action:"change",details:{label:a.label,description:t,required:a.required,checked:a.checked}})},this.handleChange=function(e){a.checked=e.target.checked,a.vaChange.emit({checked:a.checked}),a.enableAnalytics&&a.fireAnalyticsEvent()},this.label=void 0,this.error=void 0,this.description=void 0,this.required=!1,this.enableAnalytics=!1,this.checked=!1,this.hint=void 0,this.tile=!1,this.checkboxDescription=void 0,this.disabled=!1,this.messageAriaDescribedby=void 0,this.name=void 0}return e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,r.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,a=e.error,t=e.label,s=e.required,o=e.description,n=e.checked,c=e.hint,d=e.tile,b=e.checkboxDescription,u=e.disabled,h=e.messageAriaDescribedby,p=e.name,_=o||!!this.el.querySelector('[slot="description"]'),m=(0,l.c)({"usa-checkbox__input":!0,"usa-checkbox__input--tile":d}),g=(0,l.c)({"usa-legend":!0,"usa-label--error":a}),x=[h?"input-message":"",a?"checkbox-error-message":"",_?"description":""].filter(Boolean).join(" ").trim()||null;return(0,r.h)(r.H,null,o?(0,r.h)("legend",{id:"description",class:g},o):(0,r.h)("slot",{name:"description"}),c&&(0,r.h)("span",{class:"usa-hint"},c),(0,r.h)("span",{id:"checkbox-error-message",role:"alert"},a&&(0,r.h)(r.F,null,(0,r.h)("span",{class:"usa-sr-only"},i.i.t("error")),(0,r.h)("span",{class:"usa-error-message"},a))),(0,r.h)("div",{class:"usa-checkbox",part:"checkbox"},(0,r.h)("input",{class:m,type:"checkbox",name:p||null,id:"checkbox-element",checked:n,"aria-describedby":x,"aria-invalid":a?"true":"false",disabled:u,onChange:this.handleChange}),(0,r.h)("label",{htmlFor:"checkbox-element",id:"option-label",class:"usa-checkbox__label",part:"label"},t," ",s&&(0,r.h)("span",{class:"usa-label--required"},i.i.t("required")),b&&(0,r.h)("span",{class:"usa-checkbox__label-description","aria-describedby":"option-label",part:"description"},b)),h&&(0,r.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();o.style='@charset "UTF-8";.usa-hint,.usa-checkbox__label{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-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-checkbox{background:white}.usa-checkbox__label{color:#1b1b1b}.usa-checkbox__label::before{background:white;-webkit-box-shadow:0 0 0 2px #1b1b1b;box-shadow:0 0 0 2px #1b1b1b}@media (forced-colors: active){.usa-checkbox__label::before{outline:2px solid transparent;outline-offset:2px}}.usa-checkbox__input:checked+[class*=__label]::before{background-color:#005ea2;-webkit-box-shadow:0 0 0 2px #005ea2;box-shadow:0 0 0 2px #005ea2}.usa-checkbox__input:disabled+[class*=__label],.usa-checkbox__input[aria-disabled=true]+[class*=__label]{color:#757575;cursor:not-allowed}@media (forced-colors: active){.usa-checkbox__input:disabled+[class*=__label],.usa-checkbox__input[aria-disabled=true]+[class*=__label]{color:GrayText}}.usa-checkbox__input:disabled+[class*=__label]::before,.usa-checkbox__input[aria-disabled=true]+[class*=__label]::before{background-color:white;-webkit-box-shadow:0 0 0 2px #757575;box-shadow:0 0 0 2px #757575}.usa-checkbox__input--tile+[class*=__label]{background-color:white;border:2px solid #c9c9c9;color:#1b1b1b}.usa-checkbox__input--tile:checked+[class*=__label]{background-color:rgba(0, 94, 162, 0.1);border-color:#005ea2}@media (forced-colors: active){.usa-checkbox__input--tile:checked+[class*=__label]{border:ButtonText solid 0.25rem}}.usa-checkbox__input--tile:disabled+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true]+[class*=__label]{border-color:#e6e6e6}.usa-checkbox__input--tile:disabled:checked+[class*=__label],.usa-checkbox__input--tile:disabled:indeterminate+[class*=__label],.usa-checkbox__input--tile:disabled[data-indeterminate]+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true]:checked+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true]:indeterminate+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true][data-indeterminate]+[class*=__label]{background-color:white}.usa-checkbox__input:indeterminate+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 26.3.1%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8c0.8%2C0.8%2C1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 26.3.1%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8c0.8%2C0.8%2C1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-color:#005ea2;-webkit-box-shadow:0 0 0 2px #005ea2;box-shadow:0 0 0 2px #005ea2;background-position:center center;background-size:0.75rem auto}@media (forced-colors: active){.usa-checkbox__input:indeterminate+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 28.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8s1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 28.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8s1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-color:SelectedItem}}.usa-checkbox__input:indeterminate:disabled+[class*=__label]::before,.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label]::before,.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]::before{-webkit-box-shadow:0 0 0 2px #757575;box-shadow:0 0 0 2px #757575}.usa-checkbox__input:indeterminate:disabled+[class*=__label],.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label],.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label],.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]{border-color:#e6e6e6}.usa-checkbox__input--tile:indeterminate+[class*=__label],.usa-checkbox__input--tile[data-indeterminate]+[class*=__label]{background-color:rgba(0, 94, 162, 0.1);border-color:#005ea2}@media (forced-colors: active){.usa-checkbox__input--tile:indeterminate+[class*=__label],.usa-checkbox__input--tile[data-indeterminate]+[class*=__label]{border:ButtonText solid 0.25rem}}.usa-checkbox__input:checked+[class*=__label]::before,.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8%3C%2Ftitle%3E%3Cpath fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8%3C%2Ftitle%3E%3Cpath fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-checkbox__input:checked+[class*=__label]::before,.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8-alt%3C%2Ftitle%3E%3Cpath fill%3D%22%23171717%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8-alt%3C%2Ftitle%3E%3Cpath fill%3D%22%23171717%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}}.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input:indeterminate:disabled+[class*=__label]::before,.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label]::before,.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]::before{background-color:#757575}@media (forced-colors: active){.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input:indeterminate:disabled+[class*=__label]::before,.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label]::before,.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]::before{background-color:GrayText}}.usa-checkbox__input{position:absolute;left:-999em;right:auto}.usa-checkbox__input:focus+[class*=__label]::before{outline:0.25rem solid #2491ff;outline-offset:0.25rem}.usa-checkbox__input--tile+[class*=__label]{border-radius:0.25rem;margin-top:0.5rem;padding:0.75rem 1rem 0.75rem 2.5rem}.usa-checkbox__input--tile+[class*=__label]::before{left:0.5rem}.usa-checkbox__input:checked+[class*=__label]::before{background-position:center center;background-size:0.75rem auto}@media print{.usa-checkbox__input:checked+[class*=__label]::before{background-image:none;background-color:white;content:"✔";text-align:center}}@media (forced-colors: active){.usa-checkbox__input:checked+[class*=__label]::before{background-color:SelectedItem}}.usa-checkbox__label{cursor:pointer;display:inherit;font-weight:normal;margin-top:0.75rem;padding-left:2rem;position:relative}.usa-checkbox__label::before{content:" ";display:block;left:0;margin-left:2px;margin-top:0.064rem;position:absolute}.usa-checkbox__label::before{height:1.25rem;width:1.25rem;border-radius:2px}.usa-checkbox__label-description{display:block;font-size:0.93rem;margin-top:0.5rem}.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=""]):not([uswds=false])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""]):not([uswds=false])[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=""]):not([uswds=false])){margin-left:-0.9rem}:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block}.usa-checkbox{max-width:320px;background:transparent}.usa-checkbox__input:focus+[class*=__label]::before{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:4px}'}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[9370,5285],{5285:function(e,a,t){t.r(a),t.d(a,{c:function(){return i}});var r,l,i=(r=function(e){!function(){var a={}.hasOwnProperty;function t(){for(var e=[],r=0;r<arguments.length;r++){var l=arguments[r];if(l){var i=typeof l;if("string"===i||"number"===i)e.push(l);else if(Array.isArray(l)){if(l.length){var o=t.apply(null,l);o&&e.push(o)}}else if("object"===i)if(l.toString===Object.prototype.toString)for(var s in l)a.call(l,s)&&l[s]&&e.push(s);else e.push(l.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()},r(l={path:undefined,exports:{},require:function(e,a){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),l.exports)},9370:function(e,a,t){t.r(a),t.d(a,{va_checkbox:function(){return s}});var r=t(218),l=t(5285),i=(t(4786),t(2764)),o=function(e,a,t){if(t||2===arguments.length)for(var r,l=0,i=a.length;l<i;l++)!r&&l in a||(r||(r=Array.prototype.slice.call(a,0,l)),r[l]=a[l]);return e.concat(r||Array.prototype.slice.call(a))},s=function(){function e(e){var a=this;(0,r.r)(this,e),this.vaChange=(0,r.c)(this,"vaChange",7),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.fireAnalyticsEvent=function(){var e,t=a.description||o(o([],null===(e=a.el.shadowRoot.querySelector('slot[name="description"]'))||void 0===e?void 0:e.assignedNodes(),!0),Array.from(a.el.shadowRoot.querySelectorAll('[slot="description"]')),!0).map((function(e){return e.textContent})).join(" ");a.componentLibraryAnalytics.emit({componentName:"va-checkbox",action:"change",details:{label:a.label,description:t,required:a.required,checked:a.checked}})},this.handleChange=function(e){a.checked=e.target.checked,a.vaChange.emit({checked:a.checked}),a.enableAnalytics&&a.fireAnalyticsEvent()},this.label=void 0,this.error=void 0,this.description=void 0,this.required=!1,this.enableAnalytics=!1,this.checked=!1,this.hint=void 0,this.tile=!1,this.checkboxDescription=void 0,this.disabled=!1,this.messageAriaDescribedby=void 0,this.name=void 0}return e.prototype.connectedCallback=function(){var e=this;i.i.on("languageChanged",(function(){(0,r.f)(e.el)}))},e.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},e.prototype.render=function(){var e=this,a=e.error,t=e.label,o=e.required,s=e.description,n=e.checked,c=e.hint,d=e.tile,b=e.checkboxDescription,u=e.disabled,h=e.messageAriaDescribedby,p=e.name,_=s||!!this.el.querySelector('[slot="description"]'),m=(0,l.c)({"usa-checkbox__input":!0,"usa-checkbox__input--tile":d}),g=(0,l.c)({"usa-legend":!0,"usa-label--error":a}),x=[h?"input-message":"",a?"checkbox-error-message":"",_?"description":""].filter(Boolean).join(" ").trim()||null;return(0,r.h)(r.H,null,s?(0,r.h)("legend",{id:"description",class:g},s):(0,r.h)("slot",{name:"description"}),c&&(0,r.h)("span",{class:"usa-hint"},c),(0,r.h)("span",{id:"checkbox-error-message",role:"alert"},a&&(0,r.h)(r.F,null,(0,r.h)("span",{class:"usa-sr-only"},i.i.t("error")),(0,r.h)("span",{class:"usa-error-message"},a))),(0,r.h)("div",{class:"usa-checkbox",part:"checkbox"},(0,r.h)("input",{class:m,type:"checkbox",name:p||null,id:"checkbox-element",checked:n,"aria-describedby":x,"aria-invalid":a?"true":"false",disabled:u,onChange:this.handleChange}),(0,r.h)("label",{htmlFor:"checkbox-element",id:"option-label",class:"usa-checkbox__label",part:"label"},t," ",o&&(0,r.h)("span",{class:"usa-label--required"},i.i.t("required")),b&&(0,r.h)("span",{class:"usa-checkbox__label-description","aria-describedby":"option-label",part:"description"},b)),h&&(0,r.h)("span",{id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='@charset "UTF-8";.usa-hint,.usa-checkbox__label{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-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-checkbox{background:white}.usa-checkbox__label{color:#1b1b1b}.usa-checkbox__label::before{background:white;-webkit-box-shadow:0 0 0 2px #1b1b1b;box-shadow:0 0 0 2px #1b1b1b}@media (forced-colors: active){.usa-checkbox__label::before{outline:2px solid transparent;outline-offset:2px}}.usa-checkbox__input:checked+[class*=__label]::before{background-color:#005ea2;-webkit-box-shadow:0 0 0 2px #005ea2;box-shadow:0 0 0 2px #005ea2}.usa-checkbox__input:disabled+[class*=__label],.usa-checkbox__input[aria-disabled=true]+[class*=__label]{color:#757575;cursor:not-allowed}@media (forced-colors: active){.usa-checkbox__input:disabled+[class*=__label],.usa-checkbox__input[aria-disabled=true]+[class*=__label]{color:GrayText}}.usa-checkbox__input:disabled+[class*=__label]::before,.usa-checkbox__input[aria-disabled=true]+[class*=__label]::before{background-color:white;-webkit-box-shadow:0 0 0 2px #757575;box-shadow:0 0 0 2px #757575}.usa-checkbox__input--tile+[class*=__label]{background-color:white;border:2px solid #c9c9c9;color:#1b1b1b}.usa-checkbox__input--tile:checked+[class*=__label]{background-color:rgba(0, 94, 162, 0.1);border-color:#005ea2}@media (forced-colors: active){.usa-checkbox__input--tile:checked+[class*=__label]{border:ButtonText solid 0.25rem}}.usa-checkbox__input--tile:disabled+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true]+[class*=__label]{border-color:#e6e6e6}.usa-checkbox__input--tile:disabled:checked+[class*=__label],.usa-checkbox__input--tile:disabled:indeterminate+[class*=__label],.usa-checkbox__input--tile:disabled[data-indeterminate]+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true]:checked+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true]:indeterminate+[class*=__label],.usa-checkbox__input--tile[aria-disabled=true][data-indeterminate]+[class*=__label]{background-color:white}.usa-checkbox__input:indeterminate+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 26.3.1%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8c0.8%2C0.8%2C1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 26.3.1%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8c0.8%2C0.8%2C1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-color:#005ea2;-webkit-box-shadow:0 0 0 2px #005ea2;box-shadow:0 0 0 2px #005ea2;background-position:center center;background-size:0.75rem auto}@media (forced-colors: active){.usa-checkbox__input:indeterminate+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 28.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8s1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 28.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 64 64%22 style%3D%22enable-background%3Anew 0 0 64 64%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cstyle type%3D%22text%2Fcss%22%3E%09.st0%7Bfill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3B%7D%3C%2Fstyle%3E%3Cpath class%3D%22st0%22 d%3D%22M2.9%2C35.9c0%2C1.1%2C0.4%2C2%2C1.2%2C2.8s1.7%2C1.2%2C2.8%2C1.2h7.9h42.3c1.1%2C0%2C2-0.4%2C2.8-1.2s1.2-1.7%2C1.2-2.8l0%2C0V28%09c0-1.1-0.4-2-1.2-2.8S58.2%2C24%2C57.1%2C24H6.9c-1.1%2C0-2%2C0.4-2.8%2C1.2S2.9%2C26.9%2C2.9%2C28V35.9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-color:SelectedItem}}.usa-checkbox__input:indeterminate:disabled+[class*=__label]::before,.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label]::before,.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]::before{-webkit-box-shadow:0 0 0 2px #757575;box-shadow:0 0 0 2px #757575}.usa-checkbox__input:indeterminate:disabled+[class*=__label],.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label],.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label],.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]{border-color:#e6e6e6}.usa-checkbox__input--tile:indeterminate+[class*=__label],.usa-checkbox__input--tile[data-indeterminate]+[class*=__label]{background-color:rgba(0, 94, 162, 0.1);border-color:#005ea2}@media (forced-colors: active){.usa-checkbox__input--tile:indeterminate+[class*=__label],.usa-checkbox__input--tile[data-indeterminate]+[class*=__label]{border:ButtonText solid 0.25rem}}.usa-checkbox__input:checked+[class*=__label]::before,.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8%3C%2Ftitle%3E%3Cpath fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8%3C%2Ftitle%3E%3Cpath fill%3D%22%23FFF%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-checkbox__input:checked+[class*=__label]::before,.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before{background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8-alt%3C%2Ftitle%3E%3Cpath fill%3D%22%23171717%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2265%22 height%3D%2250%22 viewBox%3D%220 0 65 50%22%3E%3Ctitle%3Ecorrect8-alt%3C%2Ftitle%3E%3Cpath fill%3D%22%23171717%22 fill-rule%3D%22evenodd%22 d%3D%22M63.268 7.063l-5.616-5.61C56.882.685 55.946.3 54.845.3s-2.038.385-2.808 1.155L24.951 28.552 12.81 16.385c-.77-.77-1.707-1.155-2.808-1.155-1.1 0-2.037.385-2.807 1.154l-5.616 5.61C.81 22.764.425 23.7.425 24.8s.385 2.035 1.155 2.805l14.947 14.93 5.616 5.61c.77.77 1.706 1.154 2.807 1.154s2.038-.384 2.808-1.154l5.616-5.61 29.894-29.86c.77-.77 1.157-1.707 1.157-2.805 0-1.101-.385-2.036-1.156-2.805l-.001-.002z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}}.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input:indeterminate:disabled+[class*=__label]::before,.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label]::before,.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]::before{background-color:#757575}@media (forced-colors: active){.usa-checkbox__input:checked:disabled+[class*=__label]::before,.usa-checkbox__input:checked[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input:indeterminate:disabled+[class*=__label]::before,.usa-checkbox__input:indeterminate[aria-disabled=true]+[class*=__label]::before,.usa-checkbox__input[data-indeterminate]:disabled+[class*=__label]::before,.usa-checkbox__input[data-indeterminate][aria-disabled=true]+[class*=__label]::before{background-color:GrayText}}.usa-checkbox__input{position:absolute;left:-999em;right:auto}.usa-checkbox__input:focus+[class*=__label]::before{outline:0.25rem solid #2491ff;outline-offset:0.25rem}.usa-checkbox__input--tile+[class*=__label]{border-radius:0.25rem;margin-top:0.5rem;padding:0.75rem 1rem 0.75rem 2.5rem}.usa-checkbox__input--tile+[class*=__label]::before{left:0.5rem}.usa-checkbox__input:checked+[class*=__label]::before{background-position:center center;background-size:0.75rem auto}@media print{.usa-checkbox__input:checked+[class*=__label]::before{background-image:none;background-color:white;content:"✔";text-align:center}}@media (forced-colors: active){.usa-checkbox__input:checked+[class*=__label]::before{background-color:SelectedItem}}.usa-checkbox__label{cursor:pointer;display:inherit;font-weight:normal;margin-top:0.75rem;padding-left:2rem;position:relative}.usa-checkbox__label::before{content:" ";display:block;left:0;margin-left:2px;margin-top:0.064rem;position:absolute}.usa-checkbox__label::before{height:1.25rem;width:1.25rem;border-radius:2px}.usa-checkbox__label-description{display:block;font-size:0.93rem;margin-top:0.5rem}.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}.usa-checkbox{max-width:320px;background:transparent}.usa-checkbox__input:focus+[class*=__label]::before{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:4px}'}}]);
|
package/dist/9398.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([[9398],{9398:function(e,t,o){o.r(t),o.d(t,{va_file_input_multiple:function(){return s}});var i=o(218),r=(o(4786),o(2764)),s=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaMultipleChange=(0,i.c)(this,"vaMultipleChange",7),this.fileKeyCounter=0,this.additionalSlot=null,this.renderLabelOrHeader=function(e,t,o){var s=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(o&&o>=1&&o<=6){var n="h".concat(o);return(0,i.h)("div",{class:"label-header"},(0,i.h)(n,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,s))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("span",{part:"label",class:"usa-label"},e),s)},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.files=[{key:0,file:null,content:null}]}return e.prototype.findFileByKey=function(e){return 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.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,o){var i=e.detail.files[0];if(i){var r=this.findFileByKey(t);r.file?r.file=i:(r.file=i,r.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null}))}else{this.files.splice(o,1);var s=this.el.shadowRoot.querySelector("#statusMessage");s.textContent="",setTimeout((function(){s.textContent="File removed."}),1e3)}this.vaMultipleChange.emit({files:this.files.map((function(e){return e.file})).filter((function(e){return!!e}))}),this.files=Array.of.apply(Array,this.files)},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");this.setSlotContent(),t.forEach((function(t,o){e.files[o].content&&e.files[o].content.forEach((function(e){return t.append(e)}))}))},e.prototype.render=function(){var e=this,t=this,o=t.label,r=t.required,s=t.headerSize,n=t.hint,a=t.files,l=t.name,h=t.accept,d=t.errors,f=t.enableAnalytics,m=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,i.h)(i.H,{class:p},o&&this.renderLabelOrHeader(o,r,s),n&&(0,i.h)("div",{class:"usa-hint",id:"input-hint-message"},n),(0,i.h)("div",{class:m},(0,i.h)("div",{class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,i.h)("div",{class:"selected-files-label"},"Selected files"),a.map((function(t,s){return(0,i.h)("va-file-input",{key:t.key,headless:!0,label:o,hint:n,name:"".concat(l,"-").concat(t.key),accept:h,required:r,error:d[s],onVaChange:function(o){return e.handleChange(o,t.key,s)},"enable-analytics":f})}))),(0,i.h)("slot",null))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),e}();s.style='button:not([disabled]):focus,:host([uswds=\'false\']) button:not([disabled]):active,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']: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", "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=""]):not([uswds=false])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""]):not([uswds=false])[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=""]):not([uswds=false])){margin-left:-0.9rem}:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""]):not([uswds=false])[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(--uswds-system-color-gray-30);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{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-info-section{border-bottom:1px solid var(--vads-color-base-lighter);padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{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: 481px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .additional-info-slot{padding-bottom:16px}: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}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""]):not([uswds=false])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""]):not([uswds=false])[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=""]):not([uswds=false])){margin-left:-0.9rem}:host([error]:not([error=""]):not([uswds=false])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""]):not([uswds=false])[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 .outer-wrap va-file-input:last-child{padding: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([[9398],{9398:function(e,t,i){i.r(t),i.d(t,{va_file_input_multiple:function(){return n}});var r=i(218),o=(i(4786),i(2764)),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.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.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.files=[{key:0,file:null,content:null}]}return e.prototype.findFileByKey=function(e){return 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.map((function(e){return e.cloneNode(!0)}))},e.prototype.handleChange=function(e,t,i){var r=e.detail.files[0];if(r){var o=this.findFileByKey(t);o.file?o.file=r:(o.file=r,o.content=this.getAdditionalContent(),this.fileKeyCounter++,this.files.push({file:null,key:this.fileKeyCounter,content:null}))}else{this.files.splice(i,1);var n=this.el.shadowRoot.querySelector("#statusMessage");n.textContent="",setTimeout((function(){n.textContent="File removed."}),1e3)}this.vaMultipleChange.emit({files:this.files.map((function(e){return e.file})).filter((function(e){return!!e}))}),this.files=Array.of.apply(Array,this.files)},e.prototype.componentDidRender=function(){var e=this,t=this.el.shadowRoot.querySelectorAll("va-file-input");this.setSlotContent(),t.forEach((function(t,i){e.files[i].content&&e.files[i].content.forEach((function(e){return t.append(e)}))}))},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,m=this.isEmpty()?"":"outer-wrap",p=this.hasErrors()?"has-error":"";return(0,r.h)(r.H,{class:p},i&&this.renderLabelOrHeader(i,o,n),a&&(0,r.h)("div",{class:"usa-hint",id:"input-hint-message"},a),(0,r.h)("div",{class:m},(0,r.h)("div",{class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),!this.isEmpty()&&(0,r.h)("div",{class:"selected-files-label"},"Selected files"),s.map((function(t,n){return(0,r.h)("va-file-input",{key:t.key,headless:!0,label:i,hint:a,name:"".concat(l,"-").concat(t.key),accept:h,required:o,error:d[n],onVaChange:function(i){return e.handleChange(i,t.key,n)},"enable-analytics":f})}))),(0,r.h)("slot",null))},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{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", "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{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-info-section{border-bottom:1px solid var(--vads-color-base-lighter);padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{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: 481px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .additional-info-slot{padding-bottom:16px}: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}.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 .outer-wrap va-file-input:last-child{padding: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}}'}}]);
|