@noctuatech/uswds 0.0.24 → 0.0.26

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.
@@ -1 +1 @@
1
- !function(){"use strict";function e(e,t,a,s,o,n){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var r,l=s.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?s.static?e:e.prototype:null,m=t||(d?Object.getOwnPropertyDescriptor(d,s.name):{}),h=!1,u=a.length-1;u>=0;u--){var b={};for(var g in s)b[g]="access"===g?{}:s[g];for(var g in s.access)b.access[g]=s.access[g];b.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");n.push(i(e||null))};var p=(0,a[u])("accessor"===l?{get:m.get,set:m.set}:m[c],b);if("accessor"===l){if(void 0===p)continue;if(null===p||"object"!=typeof p)throw new TypeError("Object expected");(r=i(p.get))&&(m.get=r),(r=i(p.set))&&(m.set=r),(r=i(p.init))&&o.unshift(r)}else(r=i(p))&&("field"===l?o.unshift(r):m[c]=r)}d&&Object.defineProperty(d,s.name,m),h=!0}function t(e,t,a){for(var s=arguments.length>2,o=0;o<t.length;o++)a=s?t[o].call(e,a):t[o].call(e);return s?a:void 0}function a(e,t,a){if(a)for(let s of a)s.call(e,t)}function s(e){return e[Symbol.metadata]}"function"==typeof SuppressedError&&SuppressedError,Symbol.metadata??=Symbol("Symbol.metadata");class o{#e;#t;[Symbol.metadata]={};get name(){return this.#e}get factory(){return this.#t}constructor(e,t){this.#e=e,this.#t=t}}const n=new WeakMap;class i{#a=new WeakMap;name;parent;providers;constructor(e){this.parent=e?.parent,this.providers=new Map(e?.providers)}inject(e){if(this.#a.has(e)){const t=this.#a.get(e),o=s(e);return o&&a(t,n.get(t)??this,o.onInjected),t}const t=this.providers.get(e);if(t){if("use"in t)return this.#s(e,(()=>new t.use));if("factory"in t)return this.#s(e,t.factory);throw new Error(`Provider for ${e.name} found but is missing either 'use' or 'factory'`)}if(this.parent)return this.parent.inject(e);if(e instanceof o){if(!e.factory)throw new Error(`Provider not found for "${e.name}"`);return this.#s(e,e.factory)}return this.#s(e,(()=>new e))}setParent(e){this.parent=e}clear(){this.#a=new WeakMap}#s(e,t){const o=t(this);if(this.#a.set(e,o),"object"==typeof o&&null!==o){const t=n.get(o);t&&t!==this&&t.setParent(this);const i=s(e);i&&(a(o,t??this,i.onCreated),a(o,t??this,i.onInjected))}return o}}class r extends Event{context;callback;subscribe;constructor(e,t,a){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=a}}const l="injector";function c(e){return function(t,s){const o={[t.name]:class extends t{constructor(...t){super(...t);const a=new i(e);if(a.providers.set(i,{factory:()=>a}),e?.provideSelfAs)for(const t of e.provideSelfAs)a.providers.set(t,{factory:()=>this});n.set(this,a)}}};return"HTMLElement"in globalThis&&HTMLElement.prototype.isPrototypeOf(t.prototype)?function(e,t){const s=t.metadata;return{[e.name]:class extends e{constructor(...e){super();const t=n.get(this);this.addEventListener("context-request",(e=>{e.target!==this&&e.context===l&&(e.stopPropagation(),t&&e.callback(t))})),t&&a(this,t,s?.onCreated)}connectedCallback(){const e=n.get(this);this.dispatchEvent(new r(l,(t=>{e&&e.setParent(t)}))),e&&a(this,e,s?.onInjected),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){n.get(this)?.setParent(void 0),super.disconnectedCallback&&super.disconnectedCallback()}}}[e.name]}(o[t.name],s):o[t.name]}}function d(e){return function(){const t=n.get(this);if(void 0===t){const e=this.constructor.name;throw new Error(`${e} is either not injectable or a service is being called in the constructor. \n Either add the @injectable() to your class or use the @injected callback method.`)}return t.inject(e)}}Symbol.metadata??=Symbol("Symbol.metadata");class m{#o;constructor(e,...t){this.#o=document.createElement("template"),this.#o.innerHTML=g(e)}apply(e){e.shadowRoot&&e.shadowRoot.append(this.#o.content.cloneNode(!0))}}function h(e,...t){return new m(e,...t)}class u{#n;constructor(e,...t){this.#n=new CSSStyleSheet,this.#n.replaceSync(g(e))}apply(e){e.shadowRoot&&(e.shadowRoot.adoptedStyleSheets=[...e.shadowRoot.adoptedStyleSheets,this.#n])}}function b(e){return new u(e)}function g(e){let t="";for(let a=0;a<e.length;a++)t+=e[a];return t}Symbol.metadata??=Symbol("Symbol.metadata");class p extends Map{}class f extends Map{}class v{attrs=new p;attrChanges=new f;listeners=[];onReady=new Set}class y extends WeakMap{read(e){return this.has(e)||this.set(e,new v),this.get(e)}}const k=new y;function _(e){return function({get:t,set:a},s){const o=e?.name??function(e){let t;if("symbol"==typeof e){if(!e.description)throw new Error("Cannot handle Symbol property without description");t=e.description}else t=e;return t.toLowerCase().replaceAll(" ","-")}(s.name),n=k.read(s.metadata),i=e?.reflect??!0;return n.attrs.set(o,{propName:s.name,observe:e?.observed??!0,reflect:i,getPropValue:t,setPropValue:a}),{set(e){if(i)if(!0===e)this.hasAttribute(o)||this.setAttribute(o,"");else if(!1===e)this.hasAttribute(o)&&this.removeAttribute(o);else{const t=String(e);this.getAttribute(o)!==t&&this.setAttribute(o,t)}a.call(this,e)}}}}function w(e,t){return function(a,s){const o=k.read(s.metadata);let n=e=>e.shadowRoot??e;t&&(n="string"==typeof t?e=>e.shadowRoot?e.shadowRoot.querySelector(t):e.querySelector(t):t),o.listeners.push({event:e,cb:a,selector:n})}}function S(e){return function(t,a){const s=k.read(a.metadata);a.addInitializer((function(){e?.tagName&&(customElements.get(e.tagName)||customElements.define(e.tagName,this))}));const o={[t.name]:class extends t{static observedAttributes=Array.from(s.attrs.keys());#i=new Set;constructor(...t){if(super(...t),e?.shadowDom){this.shadowRoot||this.attachShadow(e.shadowDomOpts??{mode:"open"});for(let t of e.shadowDom)t.apply(this)}for(let e of s.onReady)e.call(this)}attributeChangedCallback(e,t,a){const o=s.attrs.get(e),n=s.attrChanges.get(e);if(o){if(t!==a){const e=o.getPropValue.call(this);""===a?o.setPropValue.call(this,!0):"number"==typeof e?o.setPropValue.call(this,Number(a)):o.setPropValue.call(this,a)}if(n)for(let e of n)e.call(this,t,a);super.attributeChangedCallback&&super.attributeChangedCallback(e,t,a)}}connectedCallback(){if(this.isConnected){for(let{event:e,cb:t,selector:a}of s.listeners){const s=a(this);if(!s)throw new Error(`could not add listener to ${s}`);{const a=t.bind(this);s.addEventListener(e,a),this.#i.add((()=>{s.removeEventListener(e,a)}))}}!function(e,t){for(let[a,{getPropValue:s,reflect:o}]of t)if(o){const t=s.call(e);if(null!=t&&""!==t)if("boolean"==typeof t)!0===t&&(e.hasAttribute(a)||e.setAttribute(a,""));else{const s=String(t);e.getAttribute(a)!==s&&e.setAttribute(a,s)}}}(this,s.attrs),super.connectedCallback&&super.connectedCallback()}}disconnectedCallback(){for(let e of this.#i)e();super.disconnectedCallback&&super.disconnectedCallback()}}};return o[t.name]}}function x(e){let t=null;return function(){if(t)return t;if(t=this.shadowRoot?this.shadowRoot.querySelector(e):this.querySelector(e),!t)throw new Error("could not find element");return t}}function C(){return function(e,t){k.read(t.metadata).onReady.add(e)}}class j{iconPath=""}(()=>{let a,s,o,n=[c({name:"usa-config-ctx",provideSelfAs:[j]}),S({tagName:"usa-config",shadowDom:[b`:host{display:contents}`,h`<slot></slot>`]})],i=[],r=HTMLElement,l=[],d=[];(class extends r{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_({name:"icon-path"})],e(this,null,o,{kind:"accessor",name:"iconPath",static:!1,private:!1,access:{has:e=>"iconPath"in e,get:e=>e.iconPath,set:(e,t)=>{e.iconPath=t}},metadata:c},l,d),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:c},null,i),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,i)}#r=t(this,l,"/assets/usa-icons/");get iconPath(){return this.#r}set iconPath(e){this.#r=e}constructor(){super(...arguments),t(this,d)}})})();const E={info:{icon:"info"},warning:{icon:"warning"},success:{icon:"check_circle"},error:{icon:"error"},emergency:{icon:"error"}};(()=>{let a,s,o,n=[S({tagName:"usa-alert",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`:host{display:block;border-left:.5rem solid #adadad;padding:1rem 1.2rem;color:#1b1b1b;margin-bottom:1rem}:host([type=info]){border-left-color:#00bde3;background-color:#e7f6f8}:host([type=warning]){background-color:#faf3d1;border-left-color:#ffbe2e}:host([type=success]){background-color:#ecf3ec;border-left-color:#00a91c}:host([type=error]){background-color:#f4e3db;border-left-color:#d54309}:host([type=emergency]){background-color:#9c3d10;border-left-color:#9c3d10;color:#fff}:host([type=emergency]) ::slotted(*){color:#fff}.alert-heading{display:grid;grid-template-columns:auto 1fr;align-items:center}usa-icon{margin:-.28rem .75rem 0 0}#heading::slotted(*){font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.33rem;line-height:.9;margin-top:0;margin-bottom:.5rem}`,h`<div class="alert-heading"><usa-icon icon="check_circle"></usa-icon><div><slot id="heading" name="heading"></slot></div><div class="spacer"></div><div><slot></slot></div></div>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_()],e(this,null,o,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#l=t(this,l,"info");get type(){return this.#l}set type(e){this.#l=e}#c=(t(this,c),x("usa-icon"));attributeChangedCallback(){this.#c().icon=E[this.type].icon}})})(),(()=>{let a,s,o,n,i,r,l,c,d,m=[S({tagName:"usa-button",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`:host{display:contents}.usa-button{box-sizing:border-box;font-size:1.06rem;line-height:.9;color:#fff;background-color:#005ea2;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;border:0;border-radius:.25rem;cursor:pointer;-moz-column-gap:.5rem;column-gap:.5rem;display:inline-flex;font-weight:700;justify-content:center;padding:.75rem 1.25rem;text-align:center;text-decoration:none;width:100%;cursor:pointer}@media all and (min-width:30em){.usa-button{width:auto}}.usa-button:visited{color:#fff}.usa-button:hover{color:#fff;background-color:#1a4480;border-bottom:0;text-decoration:none}.usa-button:active{color:#fff;background-color:#162e51}.usa-button:not([disabled]):focus{outline-offset:.25rem}.usa-button:disabled{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled:hover{color:#454545;background-color:#c9c9c9}.usa-button:focus{outline:.25rem solid #2491ff;outline-offset:0}:host([variant=secondary]) .usa-button{color:#fff;background-color:#d83933}:host([variant=secondary]) .usa-button:hover{background-color:#b50909}:host([variant=secondary]) .usa-button:active{background-color:#8b0a03}:host([variant=cool]) .usa-button{color:#1b1b1b;background-color:#00bde3}:host([variant=cool]) .usa-button:hover{background-color:#28a0cb}:host([variant=cool]) .usa-button:active{color:#fff;background-color:#07648d}:host([variant=warm]) .usa-button{color:#1b1b1b;background-color:#fa9441}:host([variant=warm]) .usa-button:hover{color:#fff;background-color:#c05600}:host([variant=warm]) .usa-button:active{color:#fff;background-color:#775540}:host([variant=outline]) .usa-button{background-color:transparent;box-shadow:inset 0 0 0 2px #005ea2;color:#005ea2}:host([variant=outline]) .usa-button:hover{box-shadow:inset 0 0 0 2px #1a4480;color:#1a4480}:host([variant=outline]) .usa-button:active{box-shadow:inset 0 0 0 2px #162e51;color:#162e51}`,h`<button class="usa-button" tabindex="0"><slot></slot></button>`]})],u=[],g=HTMLElement,p=[],f=[],v=[],y=[],k=[],j=[],E=[],O=[],M=[];(class extends g{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[_()],l=[C()],c=[w("keydown",(()=>document.body))],d=[w("click")],e(this,null,o,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:t},f,v),e(this,null,n,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:t},y,k),e(this,null,i,{kind:"accessor",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,t)=>{e.variant=t}},metadata:t},j,E),e(this,null,r,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},O,M),e(this,null,l,{kind:"method",name:"onReady",static:!1,private:!1,access:{has:e=>"onReady"in e,get:e=>e.onReady},metadata:t},null,p),e(this,null,c,{kind:"method",name:"onKeyDown",static:!1,private:!1,access:{has:e=>"onKeyDown"in e,get:e=>e.onKeyDown},metadata:t},null,p),e(this,null,d,{kind:"method",name:"onInternalClick",static:!1,private:!1,access:{has:e=>"onInternalClick"in e,get:e=>e.onInternalClick},metadata:t},null,p),e(null,a={value:s},m,{kind:"class",name:s.name,metadata:t},null,u),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#l=(t(this,p),t(this,f,"button"));get type(){return this.#l}set type(e){this.#l=e}#d=(t(this,v),t(this,y,!1));get disabled(){return this.#d}set disabled(e){this.#d=e}#m=(t(this,k),t(this,j,"primary"));get variant(){return this.#m}set variant(e){this.#m=e}#h=(t(this,E),t(this,O,""));get value(){return this.#h}set value(e){this.#h=e}#u=(t(this,M),0);get tabIndex(){return this.#u}set tabIndex(e){this.#u=e}#b=this.attachInternals();#g=x("button");onReady(){this.#g().autofocus=this.autofocus}onKeyDown(e){"submit"===this.type&&"ENTER"===e.key.toUpperCase()&&this.#p()}onInternalClick(){this.#p()}attributeChangedCallback(){const e=this.#g();e.type=this.type,e.disabled=this.disabled}#p(){const{form:e}=this.#b;if(e)if("submit"===this.type){const t=document.createElement("button");t.type="submit",e.append(t),t.click(),t.remove()}else"reset"===this.type&&e.reset()}static{t(s,u)}})})(),(()=>{let a,s,o,n,i,r,l,c,d=[S({tagName:"usa-checkbox",shadowDom:[b`*{box-sizing:border-box}:host{display:inline-block;max-width:30rem;position:relative}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;border-radius:.25rem;color:#1b1b1b;padding:.75rem 1rem .75rem .75rem}label{display:inline-flex;cursor:pointer;font-size:1.06rem;line-height:1.3;flex-wrap:wrap}.checkbox{background:#fff;box-shadow:0 0 0 2px #1b1b1b;display:flex;align-items:center;justify-content:center;height:1.25rem;width:1.25rem;border-radius:2px;position:relative;margin-right:.75rem}input:checked+.checkbox{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2}input:checked+.checkbox::after{content:" ";display:block;height:1rem;width:.5rem;border-right:4px solid #fff;border-bottom:4px solid #fff;transform:rotate(45deg) scale(.65)}input{position:absolute}input:focus+.checkbox{outline:.25rem solid #2491ff;outline-offset:.25rem}.description{display:block;font-size:.93rem;margin-top:.5rem}.break{flex-basis:100%;height:0}.spacer{height:1.25rem;width:1.25rem;margin-right:.75rem}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}`,h`<label><input type="checkbox" tabindex="0"><div class="checkbox"></div><div class="title"><slot></slot></div></label>`]})],m=[],u=HTMLElement,g=[],p=[],f=[],v=[],y=[],k=[],C=[],j=[],E=[],O=[],M=[];(class extends u{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[_()],l=[_({observed:!1})],c=[w("change","input[type=checkbox]")],e(this,null,o,{kind:"accessor",name:"checked",static:!1,private:!1,access:{has:e=>"checked"in e,get:e=>e.checked,set:(e,t)=>{e.checked=t}},metadata:t},p,f),e(this,null,n,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},v,y),e(this,null,i,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},k,C),e(this,null,r,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},j,E),e(this,null,l,{kind:"accessor",name:"tiled",static:!1,private:!1,access:{has:e=>"tiled"in e,get:e=>e.tiled,set:(e,t)=>{e.tiled=t}},metadata:t},O,M),e(this,null,c,{kind:"method",name:"onCheckboxChange",static:!1,private:!1,access:{has:e=>"onCheckboxChange"in e,get:e=>e.onCheckboxChange},metadata:t},null,g),e(null,a={value:s},d,{kind:"class",name:s.name,metadata:t},null,m),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#f=(t(this,g),t(this,p,!1));get checked(){return this.#f}set checked(e){this.#f=e}#v=(t(this,f),t(this,v,""));get name(){return this.#v}set name(e){this.#v=e}#h=(t(this,y),t(this,k,""));get value(){return this.#h}set value(e){this.#h=e}#y=(t(this,C),t(this,j,!1));get required(){return this.#y}set required(e){this.#y=e}#k=(t(this,E),t(this,O,!1));get tiled(){return this.#k}set tiled(e){this.#k=e}#_=(t(this,M),x("input"));#b=this.attachInternals();connectedCallback(){const e=this.#_();e.checked=this.checked,e.name=this.name,this.#w()}attributeChangedCallback(){const e=this.#_();e.checked=this.checked,e.name=this.name,this.#w()}onCheckboxChange(){const e=this.#_();this.checked=e.checked,this.#w()}#w(){const e=this.#_();e.checked?this.#b.setFormValue(this.value):this.#b.setFormValue(null),this.required&&!e.checked?this.#b.setValidity({valueMissing:!0},"Please check this box if you want to proceed",this.#_()):this.#b.setValidity({})}static{t(s,m)}})})(),(()=>{let a,s,o=[S({tagName:"usa-description",shadowDom:[b`:host{display:block;font-size:.93rem;margin-top:.5rem}`,h`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),Symbol.metadata??=Symbol("Symbol.metadata");class O extends Map{}class M{scheduler=null;changes=new O}class P extends WeakMap{read(e){let t=this.get(e);return t||(t=new M,this.set(e,t)),t}}class A{effects=new Set}class I extends WeakMap{read(e){let t=this.get(e);return t||(t=new A,this.set(e,t)),t}}const D=new P,T=new I;function N(){return function(e,t){const a=T.read(t.metadata);return{init(e){let a=null;try{a=t.access.get(this)}catch{}return a?(Reflect.deleteProperty(this,t.name),a):e},set(s){const o=D.read(this);null===o.scheduler&&(o.scheduler=Promise.resolve().then((()=>{for(let e of a.effects)e.call(this,o.changes);o.scheduler=null,o.changes.clear()}))),o.changes.set(t.name,{oldValue:e.get.call(this),newValue:s}),e.set.call(this,s)}}}}function L(){return function(e,t){T.read(t.metadata).effects.add(e)}}(()=>{let a,s,o,n,i,r,l,c,d=[S({tagName:"usa-file-input",shadowDom:[b`*{box-sizing:border-box}:host{display:block;max-width:30rem;position:relative;margin-bottom:1.5rem}label{display:block}input{cursor:pointer;left:0;margin:0;max-width:none;position:absolute;text-indent:-999em;width:100%;z-index:1;bottom:0;top:0}input:focus{outline:.25rem solid #2491ff;outline-offset:0}label slot.label{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;margin-bottom:.5rem}.box{border:1px dashed #adadad;display:flex;font-size:.93rem;position:relative;text-align:center;width:100%;max-width:30rem;height:5.2rem;align-items:center;justify-content:center}.container{position:relative}`,h`<label><slot class="label"></slot><div class="container"><input type="file" tabindex="0"><div class="box"><slot name="description">Drag file here or<usa-link>choose from folder</usa-link></slot></div><usa-file-input-preview>Selected file<usa-link>Change file</usa-link></usa-file-input-preview></div></label>`]})],m=[],u=HTMLElement,g=[],p=[],f=[],v=[],y=[],k=[],C=[],j=[],E=[];(class extends u{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[N()],l=[L()],c=[w("change")],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},p,f),e(this,null,n,{kind:"accessor",name:"multiple",static:!1,private:!1,access:{has:e=>"multiple"in e,get:e=>e.multiple,set:(e,t)=>{e.multiple=t}},metadata:t},v,y),e(this,null,i,{kind:"accessor",name:"accept",static:!1,private:!1,access:{has:e=>"accept"in e,get:e=>e.accept,set:(e,t)=>{e.accept=t}},metadata:t},k,C),e(this,null,r,{kind:"accessor",name:"files",static:!1,private:!1,access:{has:e=>"files"in e,get:e=>e.files,set:(e,t)=>{e.files=t}},metadata:t},j,E),e(this,null,l,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,g),e(this,null,c,{kind:"method",name:"onInputChange",static:!1,private:!1,access:{has:e=>"onInputChange"in e,get:e=>e.onInputChange},metadata:t},null,g),e(null,a={value:s},d,{kind:"class",name:s.name,metadata:t},null,m),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#v=(t(this,g),t(this,p,""));get name(){return this.#v}set name(e){this.#v=e}#S=(t(this,f),t(this,v,!0));get multiple(){return this.#S}set multiple(e){this.#S=e}#x=(t(this,y),t(this,k,""));get accept(){return this.#x}set accept(e){this.#x=e}#C=(t(this,C),t(this,j,null));get files(){return this.#C}set files(e){this.#C=e}#b=(t(this,E),this.attachInternals());#j=x("input");#E=x(".box");#O=x("usa-file-input-preview");onChange(){const e=this.#j();this.files&&(e.files=this.files,this.onInputChange())}attributeChangedCallback(){const e=this.#j();e.name=this.name,e.multiple=this.multiple,e.accept=this.accept}onInputChange(){const e=this.#j(),t=this.#E();this.#O().files=e.files;const a=new FormData;if(e.files?.length){t.style.display="none";for(const t of e.files)a.append(this.name,t)}else t.style.display="flex";this.#b.setFormValue(a)}static{t(s,m)}})})(),(()=>{let a,s,o,n,i=[S({tagName:"usa-file-input-preview",shadowDom:[b`*{box-sizing:border-box}:host{display:block;font-size:.87rem;pointer-events:none;position:relative;text-align:left;word-wrap:anywhere;z-index:3}:host([hidden]){display:none}img{border:0;display:block;height:2.5rem;margin-right:.5rem;-o-object-fit:contain;object-fit:contain;width:2.5rem}.preview-heading{align-items:center;background:#d9e8f6;display:flex;pointer-events:none;position:relative;z-index:3;font-weight:700;justify-content:space-between;padding:.5rem;text-align:left}.preview-item{align-items:center;background:#d9e8f6;display:flex;padding:.5rem;width:100%;margin-top:1px}`,h`<template><div class="preview-item"><img height="40" width="40" aria-hidden="true"></div></template><slot class="preview-heading"></slot>`]})],r=[],l=HTMLElement,c=[],d=[],m=[];(class extends l{static{s=this}static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[N()],n=[L()],e(this,null,o,{kind:"accessor",name:"files",static:!1,private:!1,access:{has:e=>"files"in e,get:e=>e.files,set:(e,t)=>{e.files=t}},metadata:h},d,m),e(this,null,n,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:h},null,c),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:h},null,r),s=a.value,h&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),t(s,r)}#C=(t(this,c),t(this,d,null));get files(){return this.#C}set files(e){this.#C=e}#M=(t(this,m),new Map);#o=x("template");connectedCallback(){this.onChange()}get shadow(){if(!this.shadowRoot)throw new Error("no shadow root");return this.shadowRoot}onChange(){const e=this.#o();if(this.files?.length){this.hidden=!1;const t=new Set;for(const a of this.files)if(t.add(a.name),!this.#M.has(a.name)){const t=e.content.cloneNode(!0).childNodes[1];t.id=a.name,t.append(document.createTextNode(a.name));const s=t.querySelector("img");s&&(s.src=URL.createObjectURL(a)),this.shadow.append(t),this.#M.set(a.name,t)}for(const[e,a]of this.#M)t.has(e)||(a.remove(),this.#M.delete(e))}else this.hidden=!0}})})();let q=(()=>{let a,s,o=[c()],n=[];return class{static{s=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:i},null,n),s=a.value,i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),t(s,n)}fetch(e,t){return fetch(e,t)}},s})(),z=(()=>{let a,s,o=[c()],n=[];return class{static{s=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:i},null,n),s=a.value,i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),t(s,n)}#P=d(j);#A=d(q);#I=new Map;async getIcon(e){const t=this.#P(),a=this.#A(),s=this.#I.get(e);if(s)return s.then((e=>{if(!e.content.firstElementChild)throw Error("cached value is not valid");return e.content.firstElementChild.cloneNode(!0)}));const o=a.fetch(`${t.iconPath}${e}.svg`).then((e=>200===e.status?e.text():"")).then((e=>{const t=document.createElement("template");return t.innerHTML=e,t}));return this.#I.set(e,o),o.then((e=>{if(!e.content.firstElementChild)throw Error("ICON is not valid");return e.content.firstElementChild.cloneNode(!0)}))}},s})();var H;(()=>{let a,s,o,n,i=[S({tagName:"usa-icon",shadowDom:[b`:host{display:inline-block;height:2rem;position:relative;width:2rem}svg{fill:currentColor;height:100%;width:100%}`]}),c()],r=[],l=HTMLElement,m=[],h=[],u=[];(class extends l{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[_()],n=[function(e,t){const a=t.metadata;a.onInjected??=[],a.onInjected.push(e)}],e(this,null,o,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:c},h,u),e(this,null,n,{kind:"method",name:"onInjected",static:!1,private:!1,access:{has:e=>"onInjected"in e,get:e=>e.onInjected},metadata:c},null,m),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:c},null,r),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,r)}#D=(t(this,m),t(this,h,"accessibility_new"));get icon(){return this.#D}set icon(e){this.#D=e}ariaHidden=(t(this,u),"true");#c=d(z);#T=!1;onInjected(){this.#T=!0,this.#N()}attributeChangedCallback(){this.#T&&this.#N()}async#N(){const e=this.#c();this.shadowRoot&&this.shadowRoot.append(await e.getIcon(this.icon))}})})(),(()=>{let a,s,o,n,i,r,l,c,d,m,u,g,p,f=[S({tagName:"usa-input",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`*{box-sizing:border-box}:host{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;max-width:30rem;margin-bottom:1.5rem;position:relative}input{border-width:1px;border-color:#5c5c5c;border-style:solid;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;line-height:1.3;font-size:1.06rem;margin-top:.5rem;padding:.5rem;width:100%}input:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}slot[name=detail]::slotted(*){color:#757575}slot[name=detail]::slotted(usa-icon){width:1.5rem;height:1.5rem}slot[name=detail]{display:block;position:absolute;bottom:.21rem;left:.5rem}:host([detail=pfx]) input{padding-left:2.5rem}:host([detail=sfx]) input{padding-right:2.5rem}:host([detail=sfx]) slot[name=detail]{right:.5rem;left:auto}`,h`<label><slot name="detail"></slot><slot></slot><input tabindex="0"></label>`]})],v=[],y=HTMLElement,k=[],j=[],E=[],O=[],M=[],P=[],A=[],I=[],D=[],T=[],q=[],z=[],H=[],R=[],F=[],V=[],W=[];(class extends y{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[_()],l=[_({observed:!1})],c=[_({reflect:!1}),N()],d=[N()],m=[N()],u=[C()],g=[L()],p=[w("input")],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},j,E),e(this,null,n,{kind:"accessor",name:"autocomplete",static:!1,private:!1,access:{has:e=>"autocomplete"in e,get:e=>e.autocomplete,set:(e,t)=>{e.autocomplete=t}},metadata:t},O,M),e(this,null,i,{kind:"accessor",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder,set:(e,t)=>{e.placeholder=t}},metadata:t},P,A),e(this,null,r,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},I,D),e(this,null,l,{kind:"accessor",name:"detail",static:!1,private:!1,access:{has:e=>"detail"in e,get:e=>e.detail,set:(e,t)=>{e.detail=t}},metadata:t},T,q),e(this,null,c,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},z,H),e(this,null,d,{kind:"accessor",name:"selectionStart",static:!1,private:!1,access:{has:e=>"selectionStart"in e,get:e=>e.selectionStart,set:(e,t)=>{e.selectionStart=t}},metadata:t},R,F),e(this,null,m,{kind:"accessor",name:"selectionEnd",static:!1,private:!1,access:{has:e=>"selectionEnd"in e,get:e=>e.selectionEnd,set:(e,t)=>{e.selectionEnd=t}},metadata:t},V,W),e(this,null,u,{kind:"method",name:"onReady",static:!1,private:!1,access:{has:e=>"onReady"in e,get:e=>e.onReady},metadata:t},null,k),e(this,null,g,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,k),e(this,null,p,{kind:"method",name:"onInputChange",static:!1,private:!1,access:{has:e=>"onInputChange"in e,get:e=>e.onInputChange},metadata:t},null,k),e(null,a={value:s},f,{kind:"class",name:s.name,metadata:t},null,v),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#v=(t(this,k),t(this,j,""));get name(){return this.#v}set name(e){this.#v=e}#L=(t(this,E),t(this,O,"on"));get autocomplete(){return this.#L}set autocomplete(e){this.#L=e}#q=(t(this,M),t(this,P,""));get placeholder(){return this.#q}set placeholder(e){this.#q=e}#y=(t(this,A),t(this,I,!1));get required(){return this.#y}set required(e){this.#y=e}#z=(t(this,D),t(this,T,""));get detail(){return this.#z}set detail(e){this.#z=e}#h=(t(this,q),t(this,z,""));get value(){return this.#h}set value(e){this.#h=e}#H=(t(this,H),t(this,R,null));get selectionStart(){return this.#H}set selectionStart(e){this.#H=e}#R=(t(this,F),t(this,V,null));get selectionEnd(){return this.#R}set selectionEnd(e){this.#R=e}#b=(t(this,W),this.attachInternals());#j=x("input");onReady(){this.#j().autofocus=this.autofocus}connectedCallback(){this.#w()}onChange(e){const t=this.#j();t.value=this.value,e.has("selectionStart")&&(t.selectionStart=this.selectionStart),e.has("selectionEnd")&&(t.selectionEnd=this.selectionEnd),this.#w()}onInputChange(){const e=this.#j();this.value=e.value,this.selectionStart=e.selectionStart,this.selectionEnd=e.selectionEnd}attributeChangedCallback(e){const t=this.#j();switch(e){case"autocomplete":t.autocomplete=this.autocomplete;break;case"placeholder":t.placeholder=this.placeholder;break;case"name":t.name=this.name}}#w(){const e=this.#j();this.#b.setFormValue(e.value),this.required&&!e.value?this.#b.setValidity({valueMissing:!0},"Required",e):this.#b.setValidity({})}static{t(s,v)}})})(),function(e){e.Any="*",e.Number="9",e.Letter="A"}(H||(H={}));const R=Object.values(H),F={Letters:/^[a-z]/i,Numbers:/^[0-9]/i};function V(e,t){const a=e.replace(/[^a-z0-9]/gi,""),s=a.split("");let o=0,n="";for(let e=0;e<t.length;e++){const a=t[e],i=s[o];i&&a&&(a===H.Any?(n+=i,o++):a===H.Number?(/^[0-9]/i.test(i)&&(n+=i),o++):a===H.Letter?(/^[a-z]/i.test(i)&&(n+=i),o++):n+=a)}return{raw:a,formatted:n}}(()=>{let a,s,o,n,i,r=[S({tagName:"usa-input-mask",shadowDom:[b`:host{display:contents}`,h`<slot></slot>`]})],l=[],c=HTMLElement,d=[],m=[],u=[];(class extends c{static{s=this}static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;o=[_()],n=[w("input")],i=[w("keydown")],e(this,null,o,{kind:"accessor",name:"mask",static:!1,private:!1,access:{has:e=>"mask"in e,get:e=>e.mask,set:(e,t)=>{e.mask=t}},metadata:h},m,u),e(this,null,n,{kind:"method",name:"onInput",static:!1,private:!1,access:{has:e=>"onInput"in e,get:e=>e.onInput},metadata:h},null,d),e(this,null,i,{kind:"method",name:"onKeyDown",static:!1,private:!1,access:{has:e=>"onKeyDown"in e,get:e=>e.onKeyDown},metadata:h},null,d),e(null,a={value:s},r,{kind:"class",name:s.name,metadata:h},null,l),s=a.value,h&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),t(s,l)}#F=(t(this,d),t(this,m,""));get mask(){return this.#F}set mask(e){this.#F=e}connectedCallback(){for(const e of this.querySelectorAll("[mask]")){const{formatted:t}=V(e.value,this.#V(e));t&&(e.value=t)}}onInput(e){const t=e.target,a=t.selectionStart||0,s=t.value,o=this.#V(t),{formatted:n}=V(t.value,o);t.value=n;const i=t.value.length-s.length,r=o[a-1];r&&!R.includes(r)&&i>0?(t.selectionStart=a+i,t.selectionEnd=a+i):(t.selectionStart=a,t.selectionEnd=a)}onKeyDown(e){const t=e.target,a=this.#V(t),s=a[t.selectionStart||0];1===e.key.length&&/^[a-z0-9]/i.test(e.key)&&(t.value.length>=a.length?e.preventDefault():s===H.Number?F.Numbers.test(e.key)||e.preventDefault():s===H.Letter&&(F.Letters.test(e.key)||e.preventDefault()))}#V(e){return this.mask||e.getAttribute("mask")||""}constructor(){super(...arguments),t(this,u)}})})(),(()=>{let a,s,o,n,i,r,l=[S({tagName:"usa-link",shadowDom:[b`:host{display:inline-flex;color:#005ea2;text-decoration:underline}a{color:inherit;text-decoration:inherit;display:inherit}`,h`<a><slot></slot></a>`]})],c=[],d=HTMLElement,m=[],u=[],g=[],p=[],f=[],v=[],y=[],k=[];(class extends d{static{s=this}static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[_({observed:!1})],e(this,null,o,{kind:"accessor",name:"href",static:!1,private:!1,access:{has:e=>"href"in e,get:e=>e.href,set:(e,t)=>{e.href=t}},metadata:h},m,u),e(this,null,n,{kind:"accessor",name:"target",static:!1,private:!1,access:{has:e=>"target"in e,get:e=>e.target,set:(e,t)=>{e.target=t}},metadata:h},g,p),e(this,null,i,{kind:"accessor",name:"title",static:!1,private:!1,access:{has:e=>"title"in e,get:e=>e.title,set:(e,t)=>{e.title=t}},metadata:h},f,v),e(this,null,r,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:h},y,k),e(null,a={value:s},l,{kind:"class",name:s.name,metadata:h},null,c),s=a.value,h&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),t(s,c)}#W=t(this,m,"");get href(){return this.#W}set href(e){this.#W=e}#K=(t(this,u),t(this,g,""));get target(){return this.#K}set target(e){this.#K=e}#G=(t(this,p),t(this,f,""));get title(){return this.#G}set title(e){this.#G=e}#d=(t(this,v),t(this,y,!1));get disabled(){return this.#d}set disabled(e){this.#d=e}#$=(t(this,k),x("a"));attributeChangedCallback(e){const t=this.#$();switch(e){case"href":t.href=this.href;break;case"target":t.target=this.target;break;case"title":t.target=this.title}}})})();const W=new o("RADIO_CTX");(()=>{let a,s,o,n,i,r,l,d=[c({name:"usa-radio-ctx",provideSelfAs:[W]}),S({tagName:"usa-radio",shadowDom:[b`:host{display:flex;flex-direction:column;gap:1rem;max-width:30rem;margin-bottom:1.5rem}label{display:flex;cursor:pointer;gap:.5rem;position:relative}input{position:absolute}label::before{content:" ";display:block;left:0;height:1.25rem;border-radius:99rem;width:1.25rem;background:#fff;box-shadow:0 0 0 2px #1b1b1b;flex:0 0 1.25rem;position:relative;z-index:1000}label:has(input:checked)::before{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2,inset 0 0 0 2px #fff}label:has(input:focus)::before{outline:.25rem solid #2491ff;outline-offset:.25rem}:host([tiled]){gap:.5rem}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;color:#1b1b1b;border-radius:.25rem;padding:.75rem 1rem .75rem .75rem}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}slot{display:flex}`,h`<slot name="legend" id="legend" tabindex="-1"></slot><slot></slot>`]})],m=[],u=HTMLElement,g=[],p=[],f=[],v=[],y=[],k=[],C=[],j=[],E=[];(class extends u{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[_({observed:!1})],l=[w("change")],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},p,f),e(this,null,n,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},v,y),e(this,null,i,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},k,C),e(this,null,r,{kind:"accessor",name:"tiled",static:!1,private:!1,access:{has:e=>"tiled"in e,get:e=>e.tiled,set:(e,t)=>{e.tiled=t}},metadata:t},j,E),e(this,null,l,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,g),e(null,a={value:s},d,{kind:"class",name:s.name,metadata:t},null,m),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#h=(t(this,g),t(this,p,""));get value(){return this.#h}set value(e){this.#h=e}#v=(t(this,f),t(this,v,""));get name(){return this.#v}set name(e){this.#v=e}#y=(t(this,y),t(this,k,!1));get required(){return this.#y}set required(e){this.#y=e}#k=(t(this,C),t(this,j,!1));get tiled(){return this.#k}set tiled(e){this.#k=e}#b=(t(this,E),this.attachInternals());#U=x("#legend");connectedCallback(){this.#w()}addRadioOption(e){this.shadowRoot?.append(e),this.#w()}onChange(e){e.target instanceof HTMLInputElement&&e.target.checked&&(this.value=e.target.value,this.#w())}#w(){if(this.#b.setFormValue(this.value),this.#b.setValidity({}),this.required&&!this.value){const e=this.shadowRoot?.querySelector("input");this.#b.setValidity({valueMissing:!0},"Please select an option if you want to proceed",e??this.#U())}}static{t(s,m)}})})(),(()=>{let a,s,o,n,i=[c({name:"usa-radio-option-ctx"}),S({tagName:"usa-radio-option",shadowDom:[b`:host{display:flex;flex-direction:column;margin-top:.05rem}`,h`<label><input type="radio" tabindex="0"><slot name="reserved"></slot></label><slot></slot>`]})],r=[],l=HTMLElement,m=[],u=[],g=[];(class extends l{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[_()],n=[function(e,t){const a=t.metadata;a.onInjected??=[],a.onInjected.push(e)}],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:c},u,g),e(this,null,n,{kind:"method",name:"onInjected",static:!1,private:!1,access:{has:e=>"onInjected"in e,get:e=>e.onInjected},metadata:c},null,m),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:c},null,r),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,r)}#h=(t(this,m),t(this,u,""));get value(){return this.#h}set value(e){this.#h=e}#X=(t(this,g),x("label"));#j=x("input");#Y=x("slot");#B=d(W);#J=new MutationObserver((()=>{const e=this.#j(),t=this.#B();e.name=t.name,e.checked=t.value===this.value}));attributeChangedCallback(){const e=this.#j(),t=this.#Y();this.slot=this.value,t.name=this.value,e.value=this.value}onInjected(){const e=this.#j(),t=this.#B();t.addRadioOption(this.#X()),e.name=t.name,e.checked=t.value===this.value,this.#J.observe(t,{attributeFilter:["value","name"]})}disconnectedCallback(){this.#X().remove(),this.#J.disconnect()}})})();const K=new o("SELECT_CONTEXT");(()=>{let a,s,o,n,i,r,l=[c({name:"usa-select-ctx",provideSelfAs:[K]}),S({tagName:"usa-select",shadowDom:[b`:host{display:block;line-height:1.3;position:relative;width:100%;max-width:30rem;margin-bottom:1.5rem}select{font-size:1.06rem;appearance:none;border-width:1px;border-color:#5c5c5c;border-style:solid;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:.5rem;padding:.5rem;width:100%}select:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}usa-icon{position:absolute;right:.5rem;bottom:12%;height:1.5rem;width:1.5rem}`,h`<usa-icon icon="unfold_more"></usa-icon><label><div class="label"><slot></slot></div><select></select></label>`]})],d=[],m=HTMLElement,u=[],g=[],p=[],f=[],v=[],y=[],k=[];(class extends m{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[_()],r=[w("change")],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},g,p),e(this,null,n,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},f,v),e(this,null,i,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},y,k),e(this,null,r,{kind:"method",name:"onSelectChange",static:!1,private:!1,access:{has:e=>"onSelectChange"in e,get:e=>e.onSelectChange},metadata:t},null,u),e(null,a={value:s},l,{kind:"class",name:s.name,metadata:t},null,d),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#h=(t(this,u),t(this,g,""));get value(){return this.#h}set value(e){this.#h=e}#v=(t(this,p),t(this,f,""));get name(){return this.#v}set name(e){this.#v=e}#y=(t(this,v),t(this,y,!1));get required(){return this.#y}set required(e){this.#y=e}#Q=(t(this,k),x("select"));#b=this.attachInternals();connectedCallback(){const e=this.#Q();e.value=this.value,e.name=this.name,this.#w()}attributeChangedCallback(){const e=this.#Q();e.value=this.value,e.name=this.name,this.#w()}onSelectChange(){const e=this.#Q();this.value=e.value,this.#w()}addSelectOption(e){this.#Q().append(e)}#w(){this.#b.setFormValue(this.value),this.#b.setValidity({}),this.required&&!this.value&&this.#b.setValidity({valueMissing:!0},"Please select an option",this.#Q())}static{t(s,d)}})})(),(()=>{let a,s,o,n,i,r=[S({tagName:"usa-select-option",shadowDom:[b`:host{display:none}`,h`<slot></slot>`]}),c()],l=[],m=HTMLElement,u=[],g=[],p=[];(class extends m{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;o=[_()],n=[function(e,t){const a=t.metadata;a.onInjected??=[],a.onInjected.push(e)}],i=[w("slotchange")],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:c},g,p),e(this,null,n,{kind:"method",name:"onInjected",static:!1,private:!1,access:{has:e=>"onInjected"in e,get:e=>e.onInjected},metadata:c},null,u),e(this,null,i,{kind:"method",name:"onSlotChange",static:!1,private:!1,access:{has:e=>"onSlotChange"in e,get:e=>e.onSlotChange},metadata:c},null,u),e(null,a={value:s},r,{kind:"class",name:s.name,metadata:c},null,l),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,l)}#h=(t(this,u),t(this,g,""));get value(){return this.#h}set value(e){this.#h=e}option=(t(this,p),document.createElement("option"));#Q=d(K);#J=new MutationObserver((()=>{const{value:e}=this.#Q();this.option.selected=e===this.value}));attributeChangedCallback(){this.option.value=this.value}onInjected(){const e=this.#Q();this.option.selected=e.value===this.value,e.addSelectOption(this.option),this.#J.observe(e,{attributes:!0,attributeFilter:["value"]})}onSlotChange(){this.option.textContent=this.textContent}disconnectedCallback(){this.#J.disconnect(),this.option.remove()}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-tag",shadowDom:[b`:host{font-size:.93rem;color:#fff;text-transform:uppercase;background-color:#5c5c5c;border-radius:2px;margin-right:.25rem;padding:1px .5rem}:host([variant=big]){padding-left:.5rem;padding-right:.5rem;font-size:1.06rem}`,h`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_()],e(this,null,o,{kind:"accessor",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,t)=>{e.variant=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#m=t(this,l,"default");get variant(){return this.#m}set variant(e){this.#m=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n,i,r,l=[S({tagName:"usa-accordion",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`*{box-sizing:border-box}:host{display:block}:host(:not(:first-child)) summary{margin-top:.5rem}summary{align-items:center;border:0;border-radius:0;box-shadow:none;justify-content:normal;text-align:left;padding:0;color:#1b1b1b;background-color:#f0f0f0;cursor:pointer;display:flex;font-weight:700;margin:0;padding:1rem 1.25rem 1rem 1.25rem;text-decoration:none;width:100%}summary::-webkit-details-marker{display:none}slot[name=heading]{display:block;flex:1 1 auto}slot[name=heading]::slotted(*){margin:0}.content{padding-bottom:1.5rem;padding-left:1rem;padding-top:1.5rem}usa-icon[icon=remove]{display:none}details[open] usa-icon[icon=add]{display:none}details[open] usa-icon[icon=remove]{display:block}summary:hover{background-color:#e6e6e6}summary:focus{outline:.25rem solid #2491ff;outline-offset:0}`,h`<details><summary><slot name="heading"></slot><usa-icon icon="add"></usa-icon><usa-icon icon="remove"></usa-icon></summary><div class="content"><slot></slot></div></details>`]})],c=[],d=HTMLElement,m=[],u=[],g=[],p=[],f=[];(class extends d{static{s=this}static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;o=[_()],n=[_()],i=[w("click","summary")],r=[w("usa::accordion::toggle",(()=>document.body))],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:h},u,g),e(this,null,n,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:h},p,f),e(this,null,i,{kind:"method",name:"onClick",static:!1,private:!1,access:{has:e=>"onClick"in e,get:e=>e.onClick},metadata:h},null,m),e(this,null,r,{kind:"method",name:"onAccordionToggle",static:!1,private:!1,access:{has:e=>"onAccordionToggle"in e,get:e=>e.onAccordionToggle},metadata:h},null,m),e(null,a={value:s},l,{kind:"class",name:s.name,metadata:h},null,c),s=a.value,h&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),t(s,c)}#v=(t(this,m),t(this,u,""));get name(){return this.#v}set name(e){this.#v=e}#Z=(t(this,g),t(this,p,!1));get open(){return this.#Z}set open(e){this.#Z=e}#ee=(t(this,f),x("details"));attributeChangedCallback(){this.#ee().open=this.open}onClick(e){e.preventDefault(),this.dispatchEvent(new G(!this.open))}onAccordionToggle(e){e.target.name===this.name?this.open=e.target===this&&e.open:e.target===this&&(this.open=e.open)}})})();class G extends Event{open;get target(){return super.target}constructor(e){super("usa::accordion::toggle",{bubbles:!0}),this.open=e}}(()=>{let a,s,o,n=[S({tagName:"usa-side-nav",shadowDom:[b`:host{display:block;font-size:1.06rem;line-height:1.3;border-bottom:1px solid #e6e6e6}`,h`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#te=t(this,l,"navigation");get role(){return this.#te}set role(e){this.#te=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-side-nav-item",shadowDom:[b`:host{--usa-nav-item-padding-left:2rem;display:block;border-top:1px solid #e6e6e6}.side-nav-item{display:flex;padding:.5rem 1rem;text-decoration:none;position:relative}.side-nav-item:hover{background-color:#f0f0f0;color:#005ea2}::slotted(*){color:#5c5c5c;text-decoration:none;display:block;width:100%}:host(:hover) ::slotted(*){color:#005ea2}:host([current]) ::slotted(:not(usa-side-nav-item)){color:#005ea2;font-weight:700}:host([current]) .side-nav-item::after{background-color:#005ea2;border-radius:99rem;content:"";display:block;position:absolute;bottom:.25rem;top:.25rem;width:.25rem;left:0}:host([slot=children]) .side-nav-item{padding-left:var(--usa-nav-item-padding-left)}:host([slot=children]) ::slotted(usa-side-nav-item){--usa-nav-item-padding-left:3rem}:host([slot=children]) .side-nav-item::after{display:none}`,h`<div class="side-nav-item"><slot></slot></div><slot name="children"></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_({observed:!1})],e(this,null,o,{kind:"accessor",name:"current",static:!1,private:!1,access:{has:e=>"current"in e,get:e=>e.current,set:(e,t)=>{e.current=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#ae=t(this,l,!1);get current(){return this.#ae}set current(e){this.#ae=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o=[S({tagName:"usa-summary-box",shadowDom:[b`:host{font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:#e7f6f8;border-radius:.25rem;border:1px #99deea solid;padding:1.5rem;position:relative;display:block}`,h`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-step-indicator",shadowDom:[b`:host{display:flex;gap:2px;counter-reset:usa-step-indicator 0;padding-top:1rem;margin-bottom:1rem}`,h`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#te=t(this,l,"list");get role(){return this.#te}set role(e){this.#te=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n,i,r=[S({tagName:"usa-step",shadowDom:[b`:host{color:#5c5c5c;display:block;flex:1 1 0%;position:relative;counter-increment:usa-step-indicator}:host([counter]):after{content:counter(usa-step-indicator);height:2.5rem;border-radius:99rem;width:2.5rem;background-color:#fff;box-shadow:inset 0 0 0 .25rem #919191,0 0 0 .25rem #fff;color:#5c5c5c;display:flex;align-items:center;justify-content:center;font-weight:700;left:0;line-height:.9;padding:calc((2.5rem - 2ex * .9) * .5);position:absolute;z-index:100;top:0;transform:translateY(-40%);box-sizing:border-box}:host([state=complete]){color:#162e51}:host([state=complete])::before{background-color:#162e51}:host([state=current]){color:#005ea2;font-weight:700}:host([state=current])::before{background-color:#005ea2}:host:before{background-color:#919191;content:"";display:block;height:.5rem}.label{display:block;font-size:1.06rem;margin-top:.5rem;padding-right:2rem;text-align:left}:host([counter]) .label{margin-top:1.5rem}:host([counter][state=complete]):after{background-color:#162e51;box-shadow:0 0 0 .25rem #fff;color:#fff}:host([counter][state=current]):after{background-color:#005ea2;box-shadow:0 0 0 .25rem #fff;color:#fff}:host([counter=small]):after{height:1.5rem;width:1.5rem;font-size:.93rem}:host([counter]:last-child):before{width:0}`,h`<div class="label"><slot></slot></div>`]})],l=[],c=HTMLElement,d=[],m=[],u=[],g=[],p=[];(class extends c{static{s=this}static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;var b;o=[_()],n=[_()],i=[(b="state",function(e,t){const a=k.read(t.metadata),s=a.attrChanges.get(b)??new Set;s.add(e),a.attrChanges.set(b,s)})],e(this,null,o,{kind:"accessor",name:"state",static:!1,private:!1,access:{has:e=>"state"in e,get:e=>e.state,set:(e,t)=>{e.state=t}},metadata:h},m,u),e(this,null,n,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:h},g,p),e(this,null,i,{kind:"method",name:"onStateAttrChanged",static:!1,private:!1,access:{has:e=>"onStateAttrChanged"in e,get:e=>e.onStateAttrChanged},metadata:h},null,d),e(null,a={value:s},r,{kind:"class",name:s.name,metadata:h},null,l),s=a.value,h&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),t(s,l)}#se=(t(this,d),t(this,m,""));get state(){return this.#se}set state(e){this.#se=e}#te=(t(this,u),t(this,g,"listitem"));get role(){return this.#te}set role(e){this.#te=e}onStateAttrChanged(){"current"===this.state&&(this.ariaCurrent="step")}constructor(){super(...arguments),t(this,p)}})})(),(()=>{let a,s,o,n,i=[S({tagName:"usa-modal",shadowDom:[b`*{box-sizing:border-box}:host{display:contents}dialog{border:none;font-size:1.06rem;line-height:1.5;border-radius:.5rem;background:#fff;color:#1b1b1b;max-width:30rem;padding-top:4rem;padding-left:4rem;padding-right:4rem;padding-bottom:2rem;width:100%}::backdrop{background:rgba(0,0,0,.7)}`,h`<dialog><slot></slot></dialog>`]})],r=[],l=HTMLElement,c=[];(class extends l{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[w("click",(()=>document.body))],n=[w("click",(e=>e))],e(this,null,o,{kind:"method",name:"onGlobalModalAction",static:!1,private:!1,access:{has:e=>"onGlobalModalAction"in e,get:e=>e.onGlobalModalAction},metadata:d},null,c),e(this,null,n,{kind:"method",name:"onModalAction",static:!1,private:!1,access:{has:e=>"onModalAction"in e,get:e=>e.onModalAction},metadata:d},null,c),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:d},null,r),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,r)}modalAction=(t(this,c),null);#oe=x("dialog");openModal(){this.#oe().showModal()}closeModal(){this.#oe().close()}onGlobalModalAction(e){if(e.target instanceof Element){e.target.getAttribute("modal-target")===this.id&&this.openModal()}}onModalAction(e){e.target instanceof Element&&(this.modalAction=e.target.getAttribute("modal-action"),this.closeModal(),this.dispatchEvent(new Event("usa::modal::close")))}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-modal-close",shadowDom:[b`*{box-sizing:border-box}:host{display:block;position:absolute;top:1rem;right:1rem}button{display:flex;align-items:center;justify-content:center;background:0 0;border:none;cursor:pointer;height:100%;width:100%;border-radius:100%;padding:0;margin:0}button:focus{outline:.25rem solid #2491ff;outline-offset:0}`,h`<button aria-label="close modal"><usa-icon icon="close"></usa-icon></button>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_({name:"modal-action"})],e(this,null,o,{kind:"accessor",name:"modalAction",static:!1,private:!1,access:{has:e=>"modalAction"in e,get:e=>e.modalAction,set:(e,t)=>{e.modalAction=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#ne=t(this,l,"close");get modalAction(){return this.#ne}set modalAction(e){this.#ne=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o=[S({tagName:"usa-modal-heading",shadowDom:[b`:host{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif!important;font-size:1.22rem}h2{margin-top:0;line-height:1.4;font-size:1.45rem}`,h`<h2><slot></slot></h2>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o,n,i=[S({tagName:"usa-card",shadowDom:[b`:host{color:#1b1b1b;background-color:#fff;font-size:1.06rem;line-height:1.5;border-width:2px;border-color:#e6e6e6;border-style:solid;display:flex;flex-direction:column;position:relative;border-radius:.25rem}:host([variant=flag]){padding-left:15rem}:host([variant=flag]) ::slotted(usa-card-media){position:absolute;bottom:0;top:0;left:0;width:15rem}:host([variant=flag]) ::slotted(usa-card-media[variant=inset]){padding-bottom:1.5rem;padding-right:0}`,h`<slot></slot>`]})],r=[],l=HTMLElement,c=[],d=[],m=[],u=[];(class extends l{static{s=this}static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[_()],n=[_()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:h},c,d),e(this,null,n,{kind:"accessor",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,t)=>{e.variant=t}},metadata:h},m,u),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:h},null,r),s=a.value,h&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h}),t(s,r)}#te=t(this,c,"listitem");get role(){return this.#te}set role(e){this.#te=e}#m=(t(this,d),t(this,m,"default"));get variant(){return this.#m}set variant(e){this.#m=e}constructor(){super(...arguments),t(this,u)}})})(),(()=>{let a,s,o=[S({tagName:"usa-card-header",shadowDom:[b`:host{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif!important;display:flex;padding:1.5rem 1.5rem .5rem;font-size:1.22rem;font-weight:700;line-height:1.2}`,h`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o=[S({tagName:"usa-card-body",shadowDom:[b`:host{display:flex;flex:1 1 0%;padding:.5rem 1.5rem;flex-basis:auto}`,h`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o=[S({tagName:"usa-card-footer",shadowDom:[b`:host{display:flex;padding:.5rem 1.5rem 1.5rem}`,h`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-card-media",shadowDom:[b`:host{display:block;border-top-left-radius:calc(.25rem - 2px);border-top-right-radius:calc(.25rem - 2px);background-color:#f0f0f0;position:relative;overflow:hidden;box-sizing:border-box}:host([variant=inset]){background-color:#fff;padding-top:1.5rem;padding-left:1.5rem;padding-right:1.5rem}::slotted(img){display:block;height:100%;width:100%;-o-object-fit:cover;object-fit:cover}:host(:not(:first-child)){margin-top:.5rem;border-top-left-radius:0;border-top-right-radius:0}`,h`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_()],e(this,null,o,{kind:"accessor",name:"varint",static:!1,private:!1,access:{has:e=>"varint"in e,get:e=>e.varint,set:(e,t)=>{e.varint=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#ie=t(this,l,"standard");get varint(){return this.#ie}set varint(e){this.#ie=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-card-group",shadowDom:[b`:host{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1rem}:host([variant=flag]){grid-template-columns:repeat(auto-fit,minmax(450px,1fr))}`,h`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[_()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#te=t(this,l,"list");get role(){return this.#te}set role(e){this.#te=e}constructor(){super(...arguments),t(this,c)}})})()}();
1
+ !function(){"use strict";function e(e,t,a,s,o,n){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var r,l=s.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?s.static?e:e.prototype:null,h=t||(d?Object.getOwnPropertyDescriptor(d,s.name):{}),u=!1,m=a.length-1;m>=0;m--){var b={};for(var g in s)b[g]="access"===g?{}:s[g];for(var g in s.access)b.access[g]=s.access[g];b.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");n.push(i(e||null))};var p=(0,a[m])("accessor"===l?{get:h.get,set:h.set}:h[c],b);if("accessor"===l){if(void 0===p)continue;if(null===p||"object"!=typeof p)throw new TypeError("Object expected");(r=i(p.get))&&(h.get=r),(r=i(p.set))&&(h.set=r),(r=i(p.init))&&o.unshift(r)}else(r=i(p))&&("field"===l?o.unshift(r):h[c]=r)}d&&Object.defineProperty(d,s.name,h),u=!0}function t(e,t,a){for(var s=arguments.length>2,o=0;o<t.length;o++)a=s?t[o].call(e,a):t[o].call(e);return s?a:void 0}function a(e,t,a){if(a)for(let s of a)s.call(e,t)}function s(e){return e[Symbol.metadata]}"function"==typeof SuppressedError&&SuppressedError,Symbol.metadata??=Symbol("Symbol.metadata");class o{#e;#t;[Symbol.metadata]={};get name(){return this.#e}get factory(){return this.#t}constructor(e,t){this.#e=e,this.#t=t}}const n=new WeakMap;class i{#a=new WeakMap;name;parent;providers;constructor(e){this.parent=e?.parent,this.providers=new Map(e?.providers)}inject(e){if(this.#a.has(e)){const t=this.#a.get(e),o=s(e);return o&&a(t,n.get(t)??this,o.onInjected),t}const t=this.providers.get(e);if(t){if("use"in t)return this.#s(e,(()=>new t.use));if("factory"in t)return this.#s(e,t.factory);throw new Error(`Provider for ${e.name} found but is missing either 'use' or 'factory'`)}if(this.parent)return this.parent.inject(e);if(e instanceof o){if(!e.factory)throw new Error(`Provider not found for "${e.name}"`);return this.#s(e,e.factory)}return this.#s(e,(()=>new e))}setParent(e){this.parent=e}clear(){this.#a=new WeakMap}#s(e,t){const o=t(this);if(this.#a.set(e,o),"object"==typeof o&&null!==o){const t=n.get(o);t&&t!==this&&t.setParent(this);const i=s(e);i&&(a(o,t??this,i.onCreated),a(o,t??this,i.onInjected))}return o}}class r extends Event{context;callback;subscribe;constructor(e,t,a){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=a}}const l="injector";function c(e){return function(t,s){const o={[t.name]:class extends t{constructor(...t){super(...t);const a=new i(e);if(a.providers.set(i,{factory:()=>a}),e?.provideSelfAs)for(const t of e.provideSelfAs)a.providers.set(t,{factory:()=>this});n.set(this,a)}}};return"HTMLElement"in globalThis&&HTMLElement.prototype.isPrototypeOf(t.prototype)?function(e,t){const s=t.metadata,o={[e.name]:class extends e{constructor(...e){super();const t=n.get(this);this.addEventListener("context-request",(e=>{e.target!==this&&e.context===l&&(e.stopPropagation(),t&&e.callback(t))})),t&&a(this,t,s?.onCreated)}connectedCallback(){const e=n.get(this);e&&(this.dispatchEvent(new r(l,(t=>{e.setParent(t)}))),a(this,e,s?.onInjected)),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){n.get(this)?.setParent(void 0),super.disconnectedCallback&&super.disconnectedCallback()}}};return o[e.name]}(o[t.name],s):o[t.name]}}function d(e){return function(){const t=n.get(this);if(void 0===t){const e=this.constructor.name;throw new Error(`${e} is either not injectable or a service is being called in the constructor. \n Either add the @injectable() to your class or use the @injected callback method.`)}return t.inject(e)}}Symbol.metadata??=Symbol("Symbol.metadata");class h{#o;constructor(e,...t){this.#o=document.createElement("template"),this.#o.innerHTML=g(e)}apply(e){e.shadowRoot&&e.shadowRoot.append(this.#o.content.cloneNode(!0))}}function u(e,...t){return new h(e,...t)}class m{#n;constructor(e,...t){this.#n=new CSSStyleSheet,this.#n.replaceSync(g(e))}apply(e){e.shadowRoot&&(e.shadowRoot.adoptedStyleSheets=[...e.shadowRoot.adoptedStyleSheets,this.#n])}}function b(e){return new m(e)}function g(e){let t="";for(let a=0;a<e.length;a++)t+=e[a];return t}Symbol.metadata??=Symbol("Symbol.metadata");class p extends Map{}class f extends Map{}class v{attrs=new p;attrChanges=new f;listeners=[];onReady=new Set}class y extends WeakMap{read(e){return this.has(e)||this.set(e,new v),this.get(e)}}const _=new y;function k(e){return function({get:t,set:a},s){const o=e?.name??function(e){let t;if("symbol"==typeof e){if(!e.description)throw new Error("Cannot handle Symbol property without description");t=e.description}else t=e;return t.toLowerCase().replaceAll(" ","-")}(s.name),n=_.read(s.metadata),i=e?.reflect??!0;return n.attrs.set(o,{propName:s.name,observe:e?.observed??!0,reflect:i,getPropValue:t,setPropValue:a}),{set(e){if(i)if(!0===e)this.hasAttribute(o)||this.setAttribute(o,"");else if(!1===e)this.hasAttribute(o)&&this.removeAttribute(o);else{const t=String(e);this.getAttribute(o)!==t&&this.setAttribute(o,t)}a.call(this,e)}}}}function w(e,t){return function(a,s){const o=_.read(s.metadata);let n=e=>e.shadowRoot??e;t&&(n="string"==typeof t?e=>e.shadowRoot?e.shadowRoot.querySelector(t):e.querySelector(t):t),o.listeners.push({event:e,cb:a,selector:n})}}function S(e){return function(t,a){const s=_.read(a.metadata);a.addInitializer((function(){e?.tagName&&(customElements.get(e.tagName)||customElements.define(e.tagName,this))}));const o={[t.name]:class extends t{static observedAttributes=Array.from(s.attrs.keys());#i=null;constructor(...t){if(super(...t),e?.shadowDom){this.shadowRoot||this.attachShadow(e.shadowDomOpts??{mode:"open"});for(let t of e.shadowDom)t.apply(this)}for(let e of s.onReady)e.call(this)}attributeChangedCallback(e,t,a){const o=s.attrs.get(e),n=s.attrChanges.get(e);if(o){if(t!==a){const e=o.getPropValue.call(this);""===a?o.setPropValue.call(this,!0):"number"==typeof e?o.setPropValue.call(this,Number(a)):o.setPropValue.call(this,a)}if(n)for(let e of n)e.call(this,t,a);o.observe&&super.attributeChangedCallback&&super.attributeChangedCallback(e,t,a)}}connectedCallback(){if(this.isConnected){for(let{event:e,cb:t,selector:a}of s.listeners){const s=a(this);if(!s)throw new Error(`could not add listener to ${s}`);this.#i=new AbortController,s.addEventListener(e,t.bind(this),{signal:this.#i.signal})}!function(e,t){for(let[a,{getPropValue:s,reflect:o}]of t)if(o){const t=s.call(e);if(null!=t&&""!==t)if("boolean"==typeof t)!0===t&&(e.hasAttribute(a)||e.setAttribute(a,""));else{const s=String(t);e.getAttribute(a)!==s&&e.setAttribute(a,s)}}}(this,s.attrs),super.connectedCallback&&super.connectedCallback()}}disconnectedCallback(){this.#i&&(this.#i.abort(),this.#i=null),super.disconnectedCallback&&super.disconnectedCallback()}}};return o[t.name]}}function x(e){let t=null;return function(){if(t)return t;if(t=this.shadowRoot?this.shadowRoot.querySelector(e):this.querySelector(e),!t)throw new Error("could not find element");return t}}function C(){return function(e,t){_.read(t.metadata).onReady.add(e)}}class j{iconPath=""}(()=>{let a,s,o,n=[c({name:"usa-config-ctx",provideSelfAs:[j]}),S({tagName:"usa-config",shadowDom:[b`:host{display:contents}`,u`<slot></slot>`]})],i=[],r=HTMLElement,l=[],d=[];(class extends r{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k({name:"icon-path"})],e(this,null,o,{kind:"accessor",name:"iconPath",static:!1,private:!1,access:{has:e=>"iconPath"in e,get:e=>e.iconPath,set:(e,t)=>{e.iconPath=t}},metadata:c},l,d),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:c},null,i),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,i)}#r=t(this,l,"/assets/usa-icons/");get iconPath(){return this.#r}set iconPath(e){this.#r=e}constructor(){super(...arguments),t(this,d)}})})();const E={info:{icon:"info"},warning:{icon:"warning"},success:{icon:"check_circle"},error:{icon:"error"},emergency:{icon:"error"}};(()=>{let a,s,o,n=[S({tagName:"usa-alert",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`:host{display:block;border-left:.5rem solid #adadad;padding:1rem 1.2rem;color:#1b1b1b;margin-bottom:1rem}:host([type=info]){border-left-color:#00bde3;background-color:#e7f6f8}:host([type=warning]){background-color:#faf3d1;border-left-color:#ffbe2e}:host([type=success]){background-color:#ecf3ec;border-left-color:#00a91c}:host([type=error]){background-color:#f4e3db;border-left-color:#d54309}:host([type=emergency]){background-color:#9c3d10;border-left-color:#9c3d10;color:#fff}:host([type=emergency]) ::slotted(*){color:#fff}.alert-heading{display:grid;grid-template-columns:auto 1fr;align-items:center}usa-icon{margin:-.28rem .75rem 0 0}#heading::slotted(*){font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.33rem;line-height:.9;margin-top:0;margin-bottom:.5rem}`,u`<div class="alert-heading"><usa-icon icon="check_circle"></usa-icon><div><slot id="heading" name="heading"></slot></div><div class="spacer"></div><div><slot></slot></div></div>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k()],e(this,null,o,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#l=t(this,l,"info");get type(){return this.#l}set type(e){this.#l=e}#c=(t(this,c),x("usa-icon"));attributeChangedCallback(){this.#c().icon=E[this.type].icon}})})(),(()=>{let a,s,o,n,i,r,l,c,d,h=[S({tagName:"usa-button",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`:host{display:contents}.usa-button{box-sizing:border-box;font-size:1.06rem;line-height:.9;color:#fff;background-color:#005ea2;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;border:0;border-radius:.25rem;cursor:pointer;-moz-column-gap:.5rem;column-gap:.5rem;display:inline-flex;font-weight:700;justify-content:center;padding:.75rem 1.25rem;text-align:center;text-decoration:none;width:100%;cursor:pointer}@media all and (min-width:30em){.usa-button{width:auto}}.usa-button:visited{color:#fff}.usa-button:hover{color:#fff;background-color:#1a4480;border-bottom:0;text-decoration:none}.usa-button:active{color:#fff;background-color:#162e51}.usa-button:not([disabled]):focus{outline-offset:.25rem}.usa-button:disabled{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled:hover{color:#454545;background-color:#c9c9c9}.usa-button:focus{outline:.25rem solid #2491ff;outline-offset:0}:host([variant=secondary]) .usa-button{color:#fff;background-color:#d83933}:host([variant=secondary]) .usa-button:hover{background-color:#b50909}:host([variant=secondary]) .usa-button:active{background-color:#8b0a03}:host([variant=cool]) .usa-button{color:#1b1b1b;background-color:#00bde3}:host([variant=cool]) .usa-button:hover{background-color:#28a0cb}:host([variant=cool]) .usa-button:active{color:#fff;background-color:#07648d}:host([variant=warm]) .usa-button{color:#1b1b1b;background-color:#fa9441}:host([variant=warm]) .usa-button:hover{color:#fff;background-color:#c05600}:host([variant=warm]) .usa-button:active{color:#fff;background-color:#775540}:host([variant=outline]) .usa-button{background-color:transparent;box-shadow:inset 0 0 0 2px #005ea2;color:#005ea2}:host([variant=outline]) .usa-button:hover{box-shadow:inset 0 0 0 2px #1a4480;color:#1a4480}:host([variant=outline]) .usa-button:active{box-shadow:inset 0 0 0 2px #162e51;color:#162e51}`,u`<button class="usa-button" tabindex="0"><slot></slot></button>`]})],m=[],g=HTMLElement,p=[],f=[],v=[],y=[],_=[],j=[],E=[],O=[],M=[];(class extends g{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[k()],l=[C()],c=[w("keydown",(()=>document.body))],d=[w("click")],e(this,null,o,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:t},f,v),e(this,null,n,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:t},y,_),e(this,null,i,{kind:"accessor",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,t)=>{e.variant=t}},metadata:t},j,E),e(this,null,r,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},O,M),e(this,null,l,{kind:"method",name:"onReady",static:!1,private:!1,access:{has:e=>"onReady"in e,get:e=>e.onReady},metadata:t},null,p),e(this,null,c,{kind:"method",name:"onKeyDown",static:!1,private:!1,access:{has:e=>"onKeyDown"in e,get:e=>e.onKeyDown},metadata:t},null,p),e(this,null,d,{kind:"method",name:"onInternalClick",static:!1,private:!1,access:{has:e=>"onInternalClick"in e,get:e=>e.onInternalClick},metadata:t},null,p),e(null,a={value:s},h,{kind:"class",name:s.name,metadata:t},null,m),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#l=(t(this,p),t(this,f,"button"));get type(){return this.#l}set type(e){this.#l=e}#d=(t(this,v),t(this,y,!1));get disabled(){return this.#d}set disabled(e){this.#d=e}#h=(t(this,_),t(this,j,"primary"));get variant(){return this.#h}set variant(e){this.#h=e}#u=(t(this,E),t(this,O,""));get value(){return this.#u}set value(e){this.#u=e}#m=(t(this,M),0);get tabIndex(){return this.#m}set tabIndex(e){this.#m=e}#b=this.attachInternals();#g=x("button");onReady(){this.#g().autofocus=this.autofocus}onKeyDown(e){"submit"===this.type&&"ENTER"===e.key.toUpperCase()&&this.#p()}onInternalClick(){this.#p()}attributeChangedCallback(){const e=this.#g();e.type=this.type,e.disabled=this.disabled}#p(){const{form:e}=this.#b;if(e)if("submit"===this.type){const t=document.createElement("button");t.type="submit",e.append(t),t.click(),t.remove()}else"reset"===this.type&&e.reset()}static{t(s,m)}})})(),(()=>{let a,s,o,n,i,r,l,c,d=[S({tagName:"usa-checkbox",shadowDom:[b`*{box-sizing:border-box}:host{display:inline-block;max-width:30rem;position:relative}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;border-radius:.25rem;color:#1b1b1b;padding:.75rem 1rem .75rem .75rem}label{display:inline-flex;cursor:pointer;font-size:1.06rem;line-height:1.3;flex-wrap:wrap}.checkbox{background:#fff;box-shadow:0 0 0 2px #1b1b1b;display:flex;align-items:center;justify-content:center;height:1.25rem;width:1.25rem;border-radius:2px;position:relative;margin-right:.75rem}input:checked+.checkbox{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2}input:checked+.checkbox::after{content:" ";display:block;height:1rem;width:.5rem;border-right:4px solid #fff;border-bottom:4px solid #fff;transform:rotate(45deg) scale(.65)}input{position:absolute}input:focus+.checkbox{outline:.25rem solid #2491ff;outline-offset:.25rem}.description{display:block;font-size:.93rem;margin-top:.5rem}.break{flex-basis:100%;height:0}.spacer{height:1.25rem;width:1.25rem;margin-right:.75rem}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}`,u`<label><input type="checkbox" tabindex="0"><div class="checkbox"></div><div class="title"><slot></slot></div></label>`]})],h=[],m=HTMLElement,g=[],p=[],f=[],v=[],y=[],_=[],C=[],j=[],E=[],O=[],M=[];(class extends m{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[k()],l=[k({observed:!1})],c=[w("change","input[type=checkbox]")],e(this,null,o,{kind:"accessor",name:"checked",static:!1,private:!1,access:{has:e=>"checked"in e,get:e=>e.checked,set:(e,t)=>{e.checked=t}},metadata:t},p,f),e(this,null,n,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},v,y),e(this,null,i,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},_,C),e(this,null,r,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},j,E),e(this,null,l,{kind:"accessor",name:"tiled",static:!1,private:!1,access:{has:e=>"tiled"in e,get:e=>e.tiled,set:(e,t)=>{e.tiled=t}},metadata:t},O,M),e(this,null,c,{kind:"method",name:"onCheckboxChange",static:!1,private:!1,access:{has:e=>"onCheckboxChange"in e,get:e=>e.onCheckboxChange},metadata:t},null,g),e(null,a={value:s},d,{kind:"class",name:s.name,metadata:t},null,h),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#f=(t(this,g),t(this,p,!1));get checked(){return this.#f}set checked(e){this.#f=e}#v=(t(this,f),t(this,v,""));get name(){return this.#v}set name(e){this.#v=e}#u=(t(this,y),t(this,_,""));get value(){return this.#u}set value(e){this.#u=e}#y=(t(this,C),t(this,j,!1));get required(){return this.#y}set required(e){this.#y=e}#_=(t(this,E),t(this,O,!1));get tiled(){return this.#_}set tiled(e){this.#_=e}#k=(t(this,M),x("input"));#b=this.attachInternals();connectedCallback(){const e=this.#k();e.checked=this.checked,e.name=this.name,this.#w()}attributeChangedCallback(){const e=this.#k();e.checked=this.checked,e.name=this.name,this.#w()}onCheckboxChange(){const e=this.#k();this.checked=e.checked,this.#w()}#w(){const e=this.#k();e.checked?this.#b.setFormValue(this.value):this.#b.setFormValue(null),this.required&&!e.checked?this.#b.setValidity({valueMissing:!0},"Please check this box if you want to proceed",this.#k()):this.#b.setValidity({})}static{t(s,h)}})})(),(()=>{let a,s,o=[S({tagName:"usa-description",shadowDom:[b`:host{display:block;font-size:.93rem;margin-top:.5rem}`,u`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),Symbol.metadata??=Symbol("Symbol.metadata");class O extends Map{}class M{scheduler=null;changes=new O}class A extends WeakMap{read(e){let t=this.get(e);return t||(t=new M,this.set(e,t)),t}}class P{effects=new Set}class I extends WeakMap{read(e){let t=this.get(e);return t||(t=new P,this.set(e,t)),t}}const q=new A,N=new I;function T(){return function(e,t){const a=N.read(t.metadata);return{init(e){let a=null;try{a=t.access.get(this)}catch{}return a?(Reflect.deleteProperty(this,t.name),a):e},set(s){const o=q.read(this);null===o.scheduler&&(o.scheduler=Promise.resolve().then((()=>{for(let e of a.effects)e.call(this,o.changes);o.scheduler=null,o.changes.clear()}))),o.changes.set(t.name,{oldValue:e.get.call(this),newValue:s}),e.set.call(this,s)}}}}function D(){return function(e,t){N.read(t.metadata).effects.add(e)}}(()=>{let a,s,o,n,i,r,l,c,d=[S({tagName:"usa-file-input",shadowDom:[b`*{box-sizing:border-box}:host{display:block;max-width:30rem;position:relative;margin-bottom:1.5rem}label{display:block}input{cursor:pointer;left:0;margin:0;max-width:none;position:absolute;text-indent:-999em;width:100%;z-index:1;bottom:0;top:0}input:focus{outline:.25rem solid #2491ff;outline-offset:0}label slot.label{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;margin-bottom:.5rem}.box{border:1px dashed #adadad;display:flex;font-size:.93rem;position:relative;text-align:center;width:100%;max-width:30rem;height:5.2rem;align-items:center;justify-content:center}.container{position:relative}`,u`<label><slot class="label"></slot><div class="container"><input type="file" tabindex="0"><div class="box"><slot name="description">Drag file here or<usa-link>choose from folder</usa-link></slot></div><usa-file-input-preview>Selected file<usa-link>Change file</usa-link></usa-file-input-preview></div></label>`]})],h=[],m=HTMLElement,g=[],p=[],f=[],v=[],y=[],_=[],C=[],j=[],E=[];(class extends m{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[T()],l=[D()],c=[w("change")],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},p,f),e(this,null,n,{kind:"accessor",name:"multiple",static:!1,private:!1,access:{has:e=>"multiple"in e,get:e=>e.multiple,set:(e,t)=>{e.multiple=t}},metadata:t},v,y),e(this,null,i,{kind:"accessor",name:"accept",static:!1,private:!1,access:{has:e=>"accept"in e,get:e=>e.accept,set:(e,t)=>{e.accept=t}},metadata:t},_,C),e(this,null,r,{kind:"accessor",name:"files",static:!1,private:!1,access:{has:e=>"files"in e,get:e=>e.files,set:(e,t)=>{e.files=t}},metadata:t},j,E),e(this,null,l,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,g),e(this,null,c,{kind:"method",name:"onInputChange",static:!1,private:!1,access:{has:e=>"onInputChange"in e,get:e=>e.onInputChange},metadata:t},null,g),e(null,a={value:s},d,{kind:"class",name:s.name,metadata:t},null,h),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#v=(t(this,g),t(this,p,""));get name(){return this.#v}set name(e){this.#v=e}#S=(t(this,f),t(this,v,!0));get multiple(){return this.#S}set multiple(e){this.#S=e}#x=(t(this,y),t(this,_,""));get accept(){return this.#x}set accept(e){this.#x=e}#C=(t(this,C),t(this,j,null));get files(){return this.#C}set files(e){this.#C=e}#b=(t(this,E),this.attachInternals());#j=x("input");#E=x(".box");#O=x("usa-file-input-preview");onChange(){const e=this.#j();this.files&&(e.files=this.files,this.onInputChange())}attributeChangedCallback(){const e=this.#j();e.name=this.name,e.multiple=this.multiple,e.accept=this.accept}onInputChange(){const e=this.#j(),t=this.#E();this.#O().files=e.files;const a=new FormData;if(e.files?.length){t.style.display="none";for(const t of e.files)a.append(this.name,t)}else t.style.display="flex";this.#b.setFormValue(a),this.dispatchEvent(new Event("change"))}static{t(s,h)}})})(),(()=>{let a,s,o,n,i=[S({tagName:"usa-file-input-preview",shadowDom:[b`*{box-sizing:border-box}:host{display:block;font-size:.87rem;pointer-events:none;position:relative;text-align:left;word-wrap:anywhere;z-index:3}:host([hidden]){display:none}img{border:0;display:block;height:2.5rem;margin-right:.5rem;-o-object-fit:contain;object-fit:contain;width:2.5rem}.preview-heading{align-items:center;background:#d9e8f6;display:flex;pointer-events:none;position:relative;z-index:3;font-weight:700;justify-content:space-between;padding:.5rem;text-align:left}.preview-item{align-items:center;background:#d9e8f6;display:flex;padding:.5rem;width:100%;margin-top:1px}`,u`<template><div class="preview-item"><img height="40" width="40" aria-hidden="true"></div></template><slot class="preview-heading"></slot>`]})],r=[],l=HTMLElement,c=[],d=[],h=[];(class extends l{static{s=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[T()],n=[D()],e(this,null,o,{kind:"accessor",name:"files",static:!1,private:!1,access:{has:e=>"files"in e,get:e=>e.files,set:(e,t)=>{e.files=t}},metadata:u},d,h),e(this,null,n,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:u},null,c),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:u},null,r),s=a.value,u&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),t(s,r)}#C=(t(this,c),t(this,d,null));get files(){return this.#C}set files(e){this.#C=e}#M=(t(this,h),new Map);#o=x("template");connectedCallback(){this.onChange()}get shadow(){if(!this.shadowRoot)throw new Error("no shadow root");return this.shadowRoot}onChange(){const e=this.#o();if(this.files?.length){this.hidden=!1;const t=new Set;for(const a of this.files)if(t.add(a.name),!this.#M.has(a.name)){const t=e.content.cloneNode(!0).firstElementChild;if(!t)throw new Error("SOMETHING HAS GONE VERY WRONG");t.id=a.name,t.append(document.createTextNode(a.name));const s=t.querySelector("img");s&&(s.src=URL.createObjectURL(a)),this.shadow.append(t),this.#M.set(a.name,t)}for(const[e,a]of this.#M)t.has(e)||(a.remove(),this.#M.delete(e))}else this.hidden=!0}})})();let z=(()=>{let a,s,o=[c()],n=[];return class{static{s=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:i},null,n),s=a.value,i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),t(s,n)}fetch(e,t){return fetch(e,t)}},s})(),L=(()=>{let a,s,o=[c()],n=[];return class{static{s=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:i},null,n),s=a.value,i&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),t(s,n)}#A=d(j);#P=d(z);#I=new Map;async getIcon(e){const t=this.#A(),a=this.#P(),s=this.#I.get(e);if(s)return s.then((e=>{if(!e.content.firstElementChild)throw Error("cached value is not valid");return e.content.firstElementChild.cloneNode(!0)}));const o=a.fetch(`${t.iconPath}${e}.svg`).then((e=>200===e.status?e.text():"")).then((e=>{const t=document.createElement("template");return t.innerHTML=e,t}));return this.#I.set(e,o),o.then((e=>{if(!e.content.firstElementChild)throw Error("ICON is not valid");return e.content.firstElementChild.cloneNode(!0)}))}},s})();var R;(()=>{let a,s,o,n,i=[S({tagName:"usa-icon",shadowDom:[b`:host{display:inline-block;height:2rem;position:relative;width:2rem}svg{fill:currentColor;height:100%;width:100%}`]}),c()],r=[],l=HTMLElement,h=[],u=[],m=[];(class extends l{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[k()],n=[function(e,t){const a=t.metadata;a.onInjected??=[],a.onInjected.push(e)}],e(this,null,o,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:c},u,m),e(this,null,n,{kind:"method",name:"onInjected",static:!1,private:!1,access:{has:e=>"onInjected"in e,get:e=>e.onInjected},metadata:c},null,h),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:c},null,r),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,r)}#q=(t(this,h),t(this,u,"accessibility_new"));get icon(){return this.#q}set icon(e){this.#q=e}ariaHidden=(t(this,m),"true");#c=d(L);#N=!1;onInjected(){this.#N=!0,this.#T()}attributeChangedCallback(){this.#N&&this.#T()}async#T(){const e=this.#c();this.shadowRoot&&this.shadowRoot.append(await e.getIcon(this.icon))}})})(),(()=>{let a,s,o,n,i,r,l,c,d,h,m,g,p,f=[S({tagName:"usa-input",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`*{box-sizing:border-box}:host{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;max-width:30rem;margin-bottom:1.5rem;position:relative}input{border-width:1px;border-color:#5c5c5c;border-style:solid;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;line-height:1.3;font-size:1.06rem;margin-top:.5rem;padding:.5rem;width:100%}input:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}slot[name=detail]::slotted(*){color:#757575}slot[name=detail]::slotted(usa-icon){width:1.5rem;height:1.5rem}slot[name=detail]{display:block;position:absolute;bottom:.21rem;left:.5rem}:host([detail=pfx]) input{padding-left:2.5rem}:host([detail=sfx]) input{padding-right:2.5rem}:host([detail=sfx]) slot[name=detail]{right:.5rem;left:auto}`,u`<label><slot name="detail"></slot><slot></slot><input tabindex="0"></label>`]})],v=[],y=HTMLElement,_=[],j=[],E=[],O=[],M=[],A=[],P=[],I=[],q=[],N=[],z=[],L=[],R=[],H=[],F=[],V=[],W=[];(class extends y{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[k()],l=[k({observed:!1})],c=[k({reflect:!1}),T()],d=[T()],h=[T()],m=[C()],g=[D()],p=[w("input")],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},j,E),e(this,null,n,{kind:"accessor",name:"autocomplete",static:!1,private:!1,access:{has:e=>"autocomplete"in e,get:e=>e.autocomplete,set:(e,t)=>{e.autocomplete=t}},metadata:t},O,M),e(this,null,i,{kind:"accessor",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder,set:(e,t)=>{e.placeholder=t}},metadata:t},A,P),e(this,null,r,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},I,q),e(this,null,l,{kind:"accessor",name:"detail",static:!1,private:!1,access:{has:e=>"detail"in e,get:e=>e.detail,set:(e,t)=>{e.detail=t}},metadata:t},N,z),e(this,null,c,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},L,R),e(this,null,d,{kind:"accessor",name:"selectionStart",static:!1,private:!1,access:{has:e=>"selectionStart"in e,get:e=>e.selectionStart,set:(e,t)=>{e.selectionStart=t}},metadata:t},H,F),e(this,null,h,{kind:"accessor",name:"selectionEnd",static:!1,private:!1,access:{has:e=>"selectionEnd"in e,get:e=>e.selectionEnd,set:(e,t)=>{e.selectionEnd=t}},metadata:t},V,W),e(this,null,m,{kind:"method",name:"onReady",static:!1,private:!1,access:{has:e=>"onReady"in e,get:e=>e.onReady},metadata:t},null,_),e(this,null,g,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,_),e(this,null,p,{kind:"method",name:"onInputChange",static:!1,private:!1,access:{has:e=>"onInputChange"in e,get:e=>e.onInputChange},metadata:t},null,_),e(null,a={value:s},f,{kind:"class",name:s.name,metadata:t},null,v),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#v=(t(this,_),t(this,j,""));get name(){return this.#v}set name(e){this.#v=e}#D=(t(this,E),t(this,O,"on"));get autocomplete(){return this.#D}set autocomplete(e){this.#D=e}#z=(t(this,M),t(this,A,""));get placeholder(){return this.#z}set placeholder(e){this.#z=e}#y=(t(this,P),t(this,I,!1));get required(){return this.#y}set required(e){this.#y=e}#L=(t(this,q),t(this,N,""));get detail(){return this.#L}set detail(e){this.#L=e}#u=(t(this,z),t(this,L,""));get value(){return this.#u}set value(e){this.#u=e}#R=(t(this,R),t(this,H,null));get selectionStart(){return this.#R}set selectionStart(e){this.#R=e}#H=(t(this,F),t(this,V,null));get selectionEnd(){return this.#H}set selectionEnd(e){this.#H=e}#b=(t(this,W),this.attachInternals());#j=x("input");onReady(){this.#j().autofocus=this.autofocus}connectedCallback(){this.#w()}onChange(e){const t=this.#j();t.value=this.value,e.has("selectionStart")&&(t.selectionStart=this.selectionStart),e.has("selectionEnd")&&(t.selectionEnd=this.selectionEnd),this.#w()}onInputChange(){const e=this.#j();this.value=e.value,this.selectionStart=e.selectionStart,this.selectionEnd=e.selectionEnd}attributeChangedCallback(e){const t=this.#j();switch(e){case"autocomplete":t.autocomplete=this.autocomplete;break;case"placeholder":t.placeholder=this.placeholder;break;case"name":t.name=this.name}}#w(){const e=this.#j();this.#b.setFormValue(e.value),this.required&&!e.value?this.#b.setValidity({valueMissing:!0},"Required",e):this.#b.setValidity({})}static{t(s,v)}})})(),function(e){e.Any="*",e.Number="9",e.Letter="A"}(R||(R={}));const H=Object.values(R),F={Letters:/^[a-z]/i,Numbers:/^[0-9]/i};function V(e,t){const a=e.replace(/[^a-z0-9]/gi,""),s=a.split("");let o=0,n="";for(let e=0;e<t.length;e++){const a=t[e],i=s[o];i&&a&&(a===R.Any?(n+=i,o++):a===R.Number?(/^[0-9]/i.test(i)&&(n+=i),o++):a===R.Letter?(/^[a-z]/i.test(i)&&(n+=i),o++):n+=a)}return{raw:a,formatted:n}}(()=>{let a,s,o,n,i,r=[S({tagName:"usa-input-mask",shadowDom:[b`:host{display:contents}`,u`<slot></slot>`]})],l=[],c=HTMLElement,d=[],h=[],m=[];(class extends c{static{s=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;o=[k()],n=[w("input")],i=[w("keydown")],e(this,null,o,{kind:"accessor",name:"mask",static:!1,private:!1,access:{has:e=>"mask"in e,get:e=>e.mask,set:(e,t)=>{e.mask=t}},metadata:u},h,m),e(this,null,n,{kind:"method",name:"onInput",static:!1,private:!1,access:{has:e=>"onInput"in e,get:e=>e.onInput},metadata:u},null,d),e(this,null,i,{kind:"method",name:"onKeyDown",static:!1,private:!1,access:{has:e=>"onKeyDown"in e,get:e=>e.onKeyDown},metadata:u},null,d),e(null,a={value:s},r,{kind:"class",name:s.name,metadata:u},null,l),s=a.value,u&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),t(s,l)}#F=(t(this,d),t(this,h,""));get mask(){return this.#F}set mask(e){this.#F=e}connectedCallback(){for(const e of this.querySelectorAll("[mask]")){const{formatted:t}=V(e.value,this.#V(e));t&&(e.value=t)}}onInput(e){const t=e.target,a=t.selectionStart||0,s=t.value,o=this.#V(t),{formatted:n}=V(t.value,o);t.value=n;const i=t.value.length-s.length,r=o[a-1];r&&!H.includes(r)&&i>0?(t.selectionStart=a+i,t.selectionEnd=a+i):(t.selectionStart=a,t.selectionEnd=a)}onKeyDown(e){const t=e.target,a=this.#V(t),s=a[t.selectionStart||0];1===e.key.length&&/^[a-z0-9]/i.test(e.key)&&(t.value.length>=a.length?e.preventDefault():s===R.Number?F.Numbers.test(e.key)||e.preventDefault():s===R.Letter&&(F.Letters.test(e.key)||e.preventDefault()))}#V(e){return this.mask||e.getAttribute("mask")||""}constructor(){super(...arguments),t(this,m)}})})(),(()=>{let a,s,o,n,i,r,l=[S({tagName:"usa-link",shadowDom:[b`:host{display:inline-flex;color:#005ea2;text-decoration:underline}a{color:inherit;text-decoration:inherit;display:inherit}`,u`<a><slot></slot></a>`]})],c=[],d=HTMLElement,h=[],m=[],g=[],p=[],f=[],v=[],y=[],_=[];(class extends d{static{s=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[k({observed:!1})],e(this,null,o,{kind:"accessor",name:"href",static:!1,private:!1,access:{has:e=>"href"in e,get:e=>e.href,set:(e,t)=>{e.href=t}},metadata:u},h,m),e(this,null,n,{kind:"accessor",name:"target",static:!1,private:!1,access:{has:e=>"target"in e,get:e=>e.target,set:(e,t)=>{e.target=t}},metadata:u},g,p),e(this,null,i,{kind:"accessor",name:"title",static:!1,private:!1,access:{has:e=>"title"in e,get:e=>e.title,set:(e,t)=>{e.title=t}},metadata:u},f,v),e(this,null,r,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:u},y,_),e(null,a={value:s},l,{kind:"class",name:s.name,metadata:u},null,c),s=a.value,u&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),t(s,c)}#W=t(this,h,"");get href(){return this.#W}set href(e){this.#W=e}#G=(t(this,m),t(this,g,""));get target(){return this.#G}set target(e){this.#G=e}#K=(t(this,p),t(this,f,""));get title(){return this.#K}set title(e){this.#K=e}#d=(t(this,v),t(this,y,!1));get disabled(){return this.#d}set disabled(e){this.#d=e}#$=(t(this,_),x("a"));attributeChangedCallback(e){const t=this.#$();switch(e){case"href":t.href=this.href;break;case"target":t.target=this.target;break;case"title":t.target=this.title}}})})();const W=new o("RADIO_CTX");(()=>{let a,s,o,n,i,r,l,d=[c({name:"usa-radio-ctx",provideSelfAs:[W]}),S({tagName:"usa-radio",shadowDom:[b`:host{display:flex;flex-direction:column;gap:1rem;max-width:30rem;margin-bottom:1.5rem}label{display:flex;cursor:pointer;gap:.5rem;position:relative}input{position:absolute}label::before{content:" ";display:block;left:0;height:1.25rem;border-radius:99rem;width:1.25rem;background:#fff;box-shadow:0 0 0 2px #1b1b1b;flex:0 0 1.25rem;position:relative;z-index:1000}label:has(input:checked)::before{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2,inset 0 0 0 2px #fff}label:has(input:focus)::before{outline:.25rem solid #2491ff;outline-offset:.25rem}:host([tiled]){gap:.5rem}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;color:#1b1b1b;border-radius:.25rem;padding:.75rem 1rem .75rem .75rem}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}slot{display:flex}`,u`<slot name="legend" id="legend" tabindex="-1"></slot><slot></slot>`]})],h=[],m=HTMLElement,g=[],p=[],f=[],v=[],y=[],_=[],C=[],j=[],E=[];(class extends m{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[k({observed:!1})],l=[w("change")],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},p,f),e(this,null,n,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},v,y),e(this,null,i,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},_,C),e(this,null,r,{kind:"accessor",name:"tiled",static:!1,private:!1,access:{has:e=>"tiled"in e,get:e=>e.tiled,set:(e,t)=>{e.tiled=t}},metadata:t},j,E),e(this,null,l,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,g),e(null,a={value:s},d,{kind:"class",name:s.name,metadata:t},null,h),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#u=(t(this,g),t(this,p,""));get value(){return this.#u}set value(e){this.#u=e}#v=(t(this,f),t(this,v,""));get name(){return this.#v}set name(e){this.#v=e}#y=(t(this,y),t(this,_,!1));get required(){return this.#y}set required(e){this.#y=e}#_=(t(this,C),t(this,j,!1));get tiled(){return this.#_}set tiled(e){this.#_=e}#b=(t(this,E),this.attachInternals());#U=x("#legend");connectedCallback(){this.#w()}addRadioOption(e){this.shadowRoot?.append(e),this.#w()}onChange(e){e.target instanceof HTMLInputElement&&e.target.checked&&(this.value=e.target.value,this.#w())}#w(){if(this.#b.setFormValue(this.value),this.#b.setValidity({}),this.required&&!this.value){const e=this.shadowRoot?.querySelector("input");this.#b.setValidity({valueMissing:!0},"Please select an option if you want to proceed",e??this.#U())}}static{t(s,h)}})})(),(()=>{let a,s,o,n,i=[c({name:"usa-radio-option-ctx"}),S({tagName:"usa-radio-option",shadowDom:[b`:host{display:flex;flex-direction:column;margin-top:.05rem}`,u`<label><input type="radio" tabindex="0"><slot name="reserved"></slot></label><slot></slot>`]})],r=[],l=HTMLElement,h=[],m=[],g=[];(class extends l{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[k()],n=[function(e,t){const a=t.metadata;a.onInjected??=[],a.onInjected.push(e)}],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:c},m,g),e(this,null,n,{kind:"method",name:"onInjected",static:!1,private:!1,access:{has:e=>"onInjected"in e,get:e=>e.onInjected},metadata:c},null,h),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:c},null,r),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,r)}#u=(t(this,h),t(this,m,""));get value(){return this.#u}set value(e){this.#u=e}#X=(t(this,g),x("label"));#j=x("input");#Y=x("slot");#B=d(W);#J=new MutationObserver((()=>{const e=this.#j(),t=this.#B();e.name=t.name,e.checked=t.value===this.value}));attributeChangedCallback(){const e=this.#j(),t=this.#Y();this.slot=this.value,t.name=this.value,e.value=this.value}onInjected(){const e=this.#j(),t=this.#B();t.addRadioOption(this.#X()),e.name=t.name,e.checked=t.value===this.value,this.#J.observe(t,{attributeFilter:["value","name"]})}disconnectedCallback(){this.#X().remove(),this.#J.disconnect()}})})();const G=new o("SELECT_CONTEXT");(()=>{let a,s,o,n,i,r,l=[c({name:"usa-select-ctx",provideSelfAs:[G]}),S({tagName:"usa-select",shadowDom:[b`:host{display:block;line-height:1.3;position:relative;width:100%;max-width:30rem;margin-bottom:1.5rem}select{font-size:1.06rem;appearance:none;border-width:1px;border-color:#5c5c5c;border-style:solid;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:.5rem;padding:.5rem;width:100%}select:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}usa-icon{position:absolute;right:.5rem;bottom:12%;height:1.5rem;width:1.5rem}`,u`<usa-icon icon="unfold_more"></usa-icon><label><div class="label"><slot></slot></div><select></select></label>`]})],d=[],h=HTMLElement,m=[],g=[],p=[],f=[],v=[],y=[],_=[];(class extends h{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[w("change")],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},g,p),e(this,null,n,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},f,v),e(this,null,i,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},y,_),e(this,null,r,{kind:"method",name:"onSelectChange",static:!1,private:!1,access:{has:e=>"onSelectChange"in e,get:e=>e.onSelectChange},metadata:t},null,m),e(null,a={value:s},l,{kind:"class",name:s.name,metadata:t},null,d),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#u=(t(this,m),t(this,g,""));get value(){return this.#u}set value(e){this.#u=e}#v=(t(this,p),t(this,f,""));get name(){return this.#v}set name(e){this.#v=e}#y=(t(this,v),t(this,y,!1));get required(){return this.#y}set required(e){this.#y=e}#Q=(t(this,_),x("select"));#b=this.attachInternals();connectedCallback(){const e=this.#Q();e.value=this.value,e.name=this.name,this.#w()}attributeChangedCallback(){const e=this.#Q();e.value=this.value,e.name=this.name,this.#w()}onSelectChange(){const e=this.#Q();this.value=e.value,this.#w()}addSelectOption(e){this.#Q().append(e)}#w(){this.#b.setFormValue(this.value),this.#b.setValidity({}),this.required&&!this.value&&this.#b.setValidity({valueMissing:!0},"Please select an option",this.#Q())}static{t(s,d)}})})(),(()=>{let a,s,o,n,i,r=[S({tagName:"usa-select-option",shadowDom:[b`:host{display:none}`,u`<slot></slot>`]}),c()],l=[],h=HTMLElement,m=[],g=[],p=[];(class extends h{static{s=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;o=[k()],n=[function(e,t){const a=t.metadata;a.onInjected??=[],a.onInjected.push(e)}],i=[w("slotchange")],e(this,null,o,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:c},g,p),e(this,null,n,{kind:"method",name:"onInjected",static:!1,private:!1,access:{has:e=>"onInjected"in e,get:e=>e.onInjected},metadata:c},null,m),e(this,null,i,{kind:"method",name:"onSlotChange",static:!1,private:!1,access:{has:e=>"onSlotChange"in e,get:e=>e.onSlotChange},metadata:c},null,m),e(null,a={value:s},r,{kind:"class",name:s.name,metadata:c},null,l),s=a.value,c&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),t(s,l)}#u=(t(this,m),t(this,g,""));get value(){return this.#u}set value(e){this.#u=e}option=(t(this,p),document.createElement("option"));#Q=d(G);#J=new MutationObserver((()=>{const{value:e}=this.#Q();this.option.selected=e===this.value}));attributeChangedCallback(){this.option.value=this.value}onInjected(){const e=this.#Q();this.option.selected=e.value===this.value,e.addSelectOption(this.option),this.#J.observe(e,{attributes:!0,attributeFilter:["value"]})}onSlotChange(){this.option.textContent=this.textContent}disconnectedCallback(){this.#J.disconnect(),this.option.remove()}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-tag",shadowDom:[b`:host{font-size:.93rem;color:#fff;text-transform:uppercase;background-color:#5c5c5c;border-radius:2px;margin-right:.25rem;padding:1px .5rem}:host([variant=big]){padding-left:.5rem;padding-right:.5rem;font-size:1.06rem}`,u`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k()],e(this,null,o,{kind:"accessor",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,t)=>{e.variant=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#h=t(this,l,"default");get variant(){return this.#h}set variant(e){this.#h=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n,i,r,l=[S({tagName:"usa-accordion",shadowDomOpts:{mode:"open",delegatesFocus:!0},shadowDom:[b`*{box-sizing:border-box}:host{display:block}:host(:not(:first-child)) summary{margin-top:.5rem}summary{align-items:center;border:0;border-radius:0;box-shadow:none;justify-content:normal;text-align:left;padding:0;color:#1b1b1b;background-color:#f0f0f0;cursor:pointer;display:flex;font-weight:700;margin:0;padding:1rem 1.25rem 1rem 1.25rem;text-decoration:none;width:100%}summary::-webkit-details-marker{display:none}slot[name=heading]{display:block;flex:1 1 auto}slot[name=heading]::slotted(*){margin:0}.content{padding-bottom:1.5rem;padding-left:1rem;padding-top:1.5rem}usa-icon[icon=remove]{display:none}details[open] usa-icon[icon=add]{display:none}details[open] usa-icon[icon=remove]{display:block}summary:hover{background-color:#e6e6e6}summary:focus{outline:.25rem solid #2491ff;outline-offset:0}`,u`<details><summary><slot name="heading"></slot><usa-icon icon="add"></usa-icon><usa-icon icon="remove"></usa-icon></summary><div class="content"><slot></slot></div></details>`]})],c=[],d=HTMLElement,h=[],m=[],g=[],p=[],f=[];(class extends d{static{s=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[w("click","summary")],r=[w("usa::accordion::toggle",(()=>document.body))],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:u},m,g),e(this,null,n,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:u},p,f),e(this,null,i,{kind:"method",name:"onClick",static:!1,private:!1,access:{has:e=>"onClick"in e,get:e=>e.onClick},metadata:u},null,h),e(this,null,r,{kind:"method",name:"onAccordionToggle",static:!1,private:!1,access:{has:e=>"onAccordionToggle"in e,get:e=>e.onAccordionToggle},metadata:u},null,h),e(null,a={value:s},l,{kind:"class",name:s.name,metadata:u},null,c),s=a.value,u&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),t(s,c)}#v=(t(this,h),t(this,m,""));get name(){return this.#v}set name(e){this.#v=e}#Z=(t(this,g),t(this,p,!1));get open(){return this.#Z}set open(e){this.#Z=e}#ee=(t(this,f),x("details"));attributeChangedCallback(){this.#ee().open=this.open}onClick(e){e.preventDefault(),this.dispatchEvent(new K(!this.open))}onAccordionToggle(e){e.target.name===this.name?this.open=e.target===this&&e.open:e.target===this&&(this.open=e.open)}})})();class K extends Event{open;get target(){return super.target}constructor(e){super("usa::accordion::toggle",{bubbles:!0}),this.open=e}}(()=>{let a,s,o,n=[S({tagName:"usa-side-nav",shadowDom:[b`:host{display:block;font-size:1.06rem;line-height:1.3;border-bottom:1px solid #e6e6e6}`,u`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#te=t(this,l,"navigation");get role(){return this.#te}set role(e){this.#te=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-side-nav-item",shadowDom:[b`:host{--usa-nav-item-padding-left:2rem;display:block;border-top:1px solid #e6e6e6}.side-nav-item{display:flex;padding:.5rem 1rem;text-decoration:none;position:relative}.side-nav-item:hover{background-color:#f0f0f0;color:#005ea2}::slotted(*){color:#5c5c5c;text-decoration:none;display:block;width:100%}:host(:hover) ::slotted(*){color:#005ea2}:host([current]) ::slotted(:not(usa-side-nav-item)){color:#005ea2;font-weight:700}:host([current]) .side-nav-item::after{background-color:#005ea2;border-radius:99rem;content:"";display:block;position:absolute;bottom:.25rem;top:.25rem;width:.25rem;left:0}:host([slot=children]) .side-nav-item{padding-left:var(--usa-nav-item-padding-left)}:host([slot=children]) ::slotted(usa-side-nav-item){--usa-nav-item-padding-left:3rem}:host([slot=children]) .side-nav-item::after{display:none}`,u`<div class="side-nav-item"><slot></slot></div><slot name="children"></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k({observed:!1})],e(this,null,o,{kind:"accessor",name:"current",static:!1,private:!1,access:{has:e=>"current"in e,get:e=>e.current,set:(e,t)=>{e.current=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#ae=t(this,l,!1);get current(){return this.#ae}set current(e){this.#ae=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o=[S({tagName:"usa-summary-box",shadowDom:[b`:host{font-size:1.06rem;line-height:1.5;color:#1b1b1b;background-color:#e7f6f8;border-radius:.25rem;border:1px #99deea solid;padding:1.5rem;position:relative;display:block}`,u`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-step-indicator",shadowDom:[b`:host{display:flex;gap:2px;counter-reset:usa-step-indicator 0;padding-top:1rem;margin-bottom:1rem}`,u`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#te=t(this,l,"list");get role(){return this.#te}set role(e){this.#te=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n,i,r=[S({tagName:"usa-step",shadowDom:[b`:host{color:#5c5c5c;display:block;flex:1 1 0%;position:relative;counter-increment:usa-step-indicator}:host([counter]):after{content:counter(usa-step-indicator);height:2.5rem;border-radius:99rem;width:2.5rem;background-color:#fff;box-shadow:inset 0 0 0 .25rem #919191,0 0 0 .25rem #fff;color:#5c5c5c;display:flex;align-items:center;justify-content:center;font-weight:700;left:0;line-height:.9;padding:calc((2.5rem - 2ex * .9) * .5);position:absolute;z-index:100;top:0;transform:translateY(-40%);box-sizing:border-box}:host([state=complete]){color:#162e51}:host([state=complete])::before{background-color:#162e51}:host([state=current]){color:#005ea2;font-weight:700}:host([state=current])::before{background-color:#005ea2}:host:before{background-color:#919191;content:"";display:block;height:.5rem}.label{display:block;font-size:1.06rem;margin-top:.5rem;padding-right:2rem;text-align:left}:host([counter]) .label{margin-top:1.5rem}:host([counter][state=complete]):after{background-color:#162e51;box-shadow:0 0 0 .25rem #fff;color:#fff}:host([counter][state=current]):after{background-color:#005ea2;box-shadow:0 0 0 .25rem #fff;color:#fff}:host([counter=small]):after{height:1.5rem;width:1.5rem;font-size:.93rem}:host([counter]:last-child):before{width:0}`,u`<div class="label"><slot></slot></div>`]})],l=[],c=HTMLElement,d=[],h=[],m=[],g=[],p=[];(class extends c{static{s=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;var b;o=[k()],n=[k()],i=[(b="state",function(e,t){const a=_.read(t.metadata),s=a.attrChanges.get(b)??new Set;s.add(e),a.attrChanges.set(b,s)})],e(this,null,o,{kind:"accessor",name:"state",static:!1,private:!1,access:{has:e=>"state"in e,get:e=>e.state,set:(e,t)=>{e.state=t}},metadata:u},h,m),e(this,null,n,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:u},g,p),e(this,null,i,{kind:"method",name:"onStateAttrChanged",static:!1,private:!1,access:{has:e=>"onStateAttrChanged"in e,get:e=>e.onStateAttrChanged},metadata:u},null,d),e(null,a={value:s},r,{kind:"class",name:s.name,metadata:u},null,l),s=a.value,u&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),t(s,l)}#se=(t(this,d),t(this,h,""));get state(){return this.#se}set state(e){this.#se=e}#te=(t(this,m),t(this,g,"listitem"));get role(){return this.#te}set role(e){this.#te=e}onStateAttrChanged(){"current"===this.state&&(this.ariaCurrent="step")}constructor(){super(...arguments),t(this,p)}})})(),(()=>{let a,s,o,n,i=[S({tagName:"usa-modal",shadowDom:[b`*{box-sizing:border-box}:host{display:contents}dialog{border:none;font-size:1.06rem;line-height:1.5;border-radius:.5rem;background:#fff;color:#1b1b1b;max-width:30rem;padding-top:4rem;padding-left:4rem;padding-right:4rem;padding-bottom:2rem;width:100%}::backdrop{background:rgba(0,0,0,.7)}`,u`<dialog><slot></slot></dialog>`]})],r=[],l=HTMLElement,c=[];(class extends l{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[w("click",(()=>document.body))],n=[w("click",(e=>e))],e(this,null,o,{kind:"method",name:"onGlobalModalAction",static:!1,private:!1,access:{has:e=>"onGlobalModalAction"in e,get:e=>e.onGlobalModalAction},metadata:d},null,c),e(this,null,n,{kind:"method",name:"onModalAction",static:!1,private:!1,access:{has:e=>"onModalAction"in e,get:e=>e.onModalAction},metadata:d},null,c),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:d},null,r),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,r)}modalAction=(t(this,c),null);#oe=x("dialog");openModal(){this.#oe().showModal()}closeModal(){this.#oe().close()}onGlobalModalAction(e){if(e.target instanceof Element){e.target.getAttribute("modal-target")===this.id&&this.openModal()}}onModalAction(e){e.target instanceof Element&&(this.modalAction=e.target.getAttribute("modal-action"),this.closeModal(),this.dispatchEvent(new Event("usa::modal::close")))}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-modal-close",shadowDom:[b`*{box-sizing:border-box}:host{display:block;position:absolute;top:1rem;right:1rem}button{display:flex;align-items:center;justify-content:center;background:0 0;border:none;cursor:pointer;height:100%;width:100%;border-radius:100%;padding:0;margin:0}button:focus{outline:.25rem solid #2491ff;outline-offset:0}`,u`<button aria-label="close modal"><usa-icon icon="close"></usa-icon></button>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k({name:"modal-action"})],e(this,null,o,{kind:"accessor",name:"modalAction",static:!1,private:!1,access:{has:e=>"modalAction"in e,get:e=>e.modalAction,set:(e,t)=>{e.modalAction=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#ne=t(this,l,"close");get modalAction(){return this.#ne}set modalAction(e){this.#ne=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o=[S({tagName:"usa-modal-heading",shadowDom:[b`:host{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif!important;font-size:1.22rem}h2{margin-top:0;line-height:1.4;font-size:1.45rem}`,u`<h2><slot></slot></h2>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o,n,i=[S({tagName:"usa-card",shadowDom:[b`:host{color:#1b1b1b;background-color:#fff;font-size:1.06rem;line-height:1.5;border-width:2px;border-color:#e6e6e6;border-style:solid;display:flex;flex-direction:column;position:relative;border-radius:.25rem}:host([variant=flag]){padding-left:15rem}:host([variant=flag]) ::slotted(usa-card-media){position:absolute;bottom:0;top:0;left:0;width:15rem}:host([variant=flag]) ::slotted(usa-card-media[variant=inset]){padding-bottom:1.5rem;padding-right:0}`,u`<slot></slot>`]})],r=[],l=HTMLElement,c=[],d=[],h=[],m=[];(class extends l{static{s=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;o=[k()],n=[k()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:u},c,d),e(this,null,n,{kind:"accessor",name:"variant",static:!1,private:!1,access:{has:e=>"variant"in e,get:e=>e.variant,set:(e,t)=>{e.variant=t}},metadata:u},h,m),e(null,a={value:s},i,{kind:"class",name:s.name,metadata:u},null,r),s=a.value,u&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),t(s,r)}#te=t(this,c,"listitem");get role(){return this.#te}set role(e){this.#te=e}#h=(t(this,d),t(this,h,"default"));get variant(){return this.#h}set variant(e){this.#h=e}constructor(){super(...arguments),t(this,m)}})})(),(()=>{let a,s,o=[S({tagName:"usa-card-header",shadowDom:[b`:host{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif!important;display:flex;padding:1.5rem 1.5rem .5rem;font-size:1.22rem;font-weight:700;line-height:1.2}`,u`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o=[S({tagName:"usa-card-body",shadowDom:[b`:host{display:flex;flex:1 1 0%;padding:.5rem 1.5rem;flex-basis:auto}`,u`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o=[S({tagName:"usa-card-footer",shadowDom:[b`:host{display:flex;padding:.5rem 1.5rem 1.5rem}`,u`<slot></slot>`]})],n=[],i=HTMLElement;(class extends i{static{s=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;e(null,a={value:s},o,{kind:"class",name:s.name,metadata:r},null,n),s=a.value,r&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(s,n)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-card-media",shadowDom:[b`:host{display:block;border-top-left-radius:calc(.25rem - 2px);border-top-right-radius:calc(.25rem - 2px);background-color:#f0f0f0;position:relative;overflow:hidden;box-sizing:border-box}:host([variant=inset]){background-color:#fff;padding-top:1.5rem;padding-left:1.5rem;padding-right:1.5rem}::slotted(img){display:block;height:100%;width:100%;-o-object-fit:cover;object-fit:cover}:host(:not(:first-child)){margin-top:.5rem;border-top-left-radius:0;border-top-right-radius:0}`,u`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k()],e(this,null,o,{kind:"accessor",name:"varint",static:!1,private:!1,access:{has:e=>"varint"in e,get:e=>e.varint,set:(e,t)=>{e.varint=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#ie=t(this,l,"standard");get varint(){return this.#ie}set varint(e){this.#ie=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n=[S({tagName:"usa-card-group",shadowDom:[b`:host{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1rem}:host([variant=flag]){grid-template-columns:repeat(auto-fit,minmax(450px,1fr))}`,u`<slot></slot>`]})],i=[],r=HTMLElement,l=[],c=[];(class extends r{static{s=this}static{const d="function"==typeof Symbol&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;o=[k()],e(this,null,o,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:d},l,c),e(null,a={value:s},n,{kind:"class",name:s.name,metadata:d},null,i),s=a.value,d&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d}),t(s,i)}#te=t(this,l,"list");get role(){return this.#te}set role(e){this.#te=e}constructor(){super(...arguments),t(this,c)}})})(),(()=>{let a,s,o,n,i,r,l,c,d,h,m=[S({tagName:"usa-textarea",shadowDom:[b`*{box-sizing:border-box}:host{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;max-width:30rem;margin-bottom:1.5rem;position:relative;height:calc(6lh + .5rem)}textarea{font-family:inherit;font-size:inherit;border-radius:0;color:#1b1b1b;display:block;margin-top:.5rem;max-width:30rem;padding:.5rem;border-width:1px;border-color:#5c5c5c;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:100%}textarea:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}`,u`<label><slot></slot><textarea></textarea></label>`]})],g=[],p=HTMLElement,f=[],v=[],y=[],_=[],j=[],E=[],O=[],M=[],A=[],P=[],I=[];(class extends p{static{s=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;o=[k()],n=[k()],i=[k()],r=[k()],l=[k({reflect:!1}),T()],c=[C()],d=[D()],h=[w("input")],e(this,null,o,{kind:"accessor",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},v,y),e(this,null,n,{kind:"accessor",name:"autocomplete",static:!1,private:!1,access:{has:e=>"autocomplete"in e,get:e=>e.autocomplete,set:(e,t)=>{e.autocomplete=t}},metadata:t},_,j),e(this,null,i,{kind:"accessor",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder,set:(e,t)=>{e.placeholder=t}},metadata:t},E,O),e(this,null,r,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:e=>"required"in e,get:e=>e.required,set:(e,t)=>{e.required=t}},metadata:t},M,A),e(this,null,l,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:t},P,I),e(this,null,c,{kind:"method",name:"onReady",static:!1,private:!1,access:{has:e=>"onReady"in e,get:e=>e.onReady},metadata:t},null,f),e(this,null,d,{kind:"method",name:"onChange",static:!1,private:!1,access:{has:e=>"onChange"in e,get:e=>e.onChange},metadata:t},null,f),e(this,null,h,{kind:"method",name:"onInputChange",static:!1,private:!1,access:{has:e=>"onInputChange"in e,get:e=>e.onInputChange},metadata:t},null,f),e(null,a={value:s},m,{kind:"class",name:s.name,metadata:t},null,g),s=a.value,t&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static formAssociated=!0;#v=(t(this,f),t(this,v,""));get name(){return this.#v}set name(e){this.#v=e}#D=(t(this,y),t(this,_,"on"));get autocomplete(){return this.#D}set autocomplete(e){this.#D=e}#z=(t(this,j),t(this,E,""));get placeholder(){return this.#z}set placeholder(e){this.#z=e}#y=(t(this,O),t(this,M,!1));get required(){return this.#y}set required(e){this.#y=e}#u=(t(this,A),t(this,P,""));get value(){return this.#u}set value(e){this.#u=e}#b=(t(this,I),this.attachInternals());#j=x("textarea");onReady(){this.#j().autofocus=this.autofocus}connectedCallback(){this.#w()}onChange(){this.#j().value=this.value,this.#w()}onInputChange(){const e=this.#j();this.value=e.value}attributeChangedCallback(e){const t=this.#j();switch(e){case"autocomplete":t.autocomplete=this.autocomplete;break;case"placeholder":t.placeholder=this.placeholder;break;case"name":t.name=this.name}}#w(){const e=this.#j();this.#b.setFormValue(e.value),this.required&&!e.value?this.#b.setValidity({valueMissing:!0},"Required",e):this.#b.setValidity({})}static{t(s,g)}})})()}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noctuatech/uswds",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "type": "module",
5
5
  "workspaces": ["packages/**"],
6
6
  "main": "./target/lib.js",
@@ -82,9 +82,9 @@
82
82
  "@open-wc/testing": "^4.0.0",
83
83
  "@rollup/plugin-node-resolve": "^16.0.0",
84
84
  "@rollup/plugin-terser": "^0.4.4",
85
- "@storybook/addon-essentials": "^8.4.4",
86
- "@storybook/web-components": "^8.4.4",
87
- "@storybook/web-components-vite": "^8.4.4",
85
+ "@storybook/addon-essentials": "~8.4.4",
86
+ "@storybook/web-components": "~8.4.4",
87
+ "@storybook/web-components-vite": "~8.4.4",
88
88
  "@types/mocha": "^10.0.7",
89
89
  "@types/node": "^22.0.0",
90
90
  "@uswds/uswds": "^3.10.0",
@@ -98,7 +98,7 @@
98
98
  "mocha": "^11.0.0",
99
99
  "plop": "^4.0.1",
100
100
  "rollup": "^4.28.0",
101
- "storybook": "^8.4.4",
101
+ "storybook": "~8.4.4",
102
102
  "typescript": "^5.6.3",
103
103
  "wireit": "^0.14.9"
104
104
  },
package/src/lib/define.ts CHANGED
@@ -29,3 +29,4 @@ import "./card/card-body/card-body.element.js";
29
29
  import "./card/card-footer/card-footer.element.js";
30
30
  import "./card/card-media/card-media.element.js";
31
31
  import "./card/card-group/card-group.element.js";
32
+ import "./textarea/textarea.element.js";
@@ -104,9 +104,14 @@ export class USAFileInputPreviewElement extends HTMLElement {
104
104
  names.add(file.name);
105
105
 
106
106
  if (!this.#items.has(file.name)) {
107
- const clone = template.content.cloneNode(true);
107
+ const clone = template.content.cloneNode(true) as DocumentFragment;
108
+
109
+ const item = clone.firstElementChild;
110
+
111
+ if (!item) {
112
+ throw new Error("SOMETHING HAS GONE VERY WRONG");
113
+ }
108
114
 
109
- const item = clone.childNodes[1] as Element;
110
115
  item.id = file.name;
111
116
  item.append(document.createTextNode(file.name));
112
117
 
@@ -148,5 +148,7 @@ export class USAFileInputElement extends HTMLElement {
148
148
  }
149
149
 
150
150
  this.#internals.setFormValue(formData);
151
+
152
+ this.dispatchEvent(new Event("change"));
151
153
  }
152
154
  }
@@ -0,0 +1,141 @@
1
+ import { attr, css, element, html, listen, query, ready } from "@joist/element";
2
+ import { effect, observe } from "@joist/observable";
3
+
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ "usa-textarea": USATextareaElement;
7
+ }
8
+ }
9
+
10
+ @element({
11
+ tagName: "usa-textarea",
12
+ shadowDom: [
13
+ css`
14
+ * {
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ :host {
19
+ font-size: 1.06rem;
20
+ line-height: 1.3;
21
+ display: block;
22
+ font-weight: 400;
23
+ max-width: 30rem;
24
+ margin-bottom: 1.5rem;
25
+ position: relative;
26
+ height: calc(6lh + .5rem);
27
+ }
28
+
29
+ textarea {
30
+ font-family: inherit;
31
+ font-size: inherit;
32
+ border-radius: 0;
33
+ color: #1b1b1b;
34
+ display: block;
35
+ margin-top: .5rem;
36
+ max-width: 30rem;
37
+ padding: .5rem;
38
+ border-width: 1px;
39
+ border-color: #5c5c5c;
40
+ border-style: solid;
41
+ -webkit-appearance: none;
42
+ -moz-appearance: none;
43
+ appearance: none;
44
+ width: 100%;
45
+ height: 100%;
46
+ }
47
+
48
+ textarea:not(:disabled):focus {
49
+ outline: 0.25rem solid #2491ff;
50
+ outline-offset: 0;
51
+ }
52
+ `,
53
+ html`
54
+ <label>
55
+ <slot></slot>
56
+
57
+ <textarea></textarea>
58
+ </label>
59
+ `,
60
+ ],
61
+ })
62
+ export class USATextareaElement extends HTMLElement {
63
+ static formAssociated = true;
64
+
65
+ @attr()
66
+ accessor name = "";
67
+
68
+ @attr()
69
+ accessor autocomplete: AutoFill = "on";
70
+
71
+ @attr()
72
+ accessor placeholder = "";
73
+
74
+ @attr()
75
+ accessor required = false;
76
+
77
+ @attr({
78
+ reflect: false,
79
+ })
80
+ @observe()
81
+ accessor value = "";
82
+
83
+ #internals = this.attachInternals();
84
+ #input = query("textarea");
85
+
86
+ @ready()
87
+ onReady() {
88
+ const input = this.#input();
89
+ input.autofocus = this.autofocus;
90
+ }
91
+
92
+ connectedCallback() {
93
+ this.#syncFormState();
94
+ }
95
+
96
+ @effect()
97
+ onChange() {
98
+ const input = this.#input();
99
+
100
+ input.value = this.value;
101
+
102
+ this.#syncFormState();
103
+ }
104
+
105
+ @listen("input")
106
+ onInputChange() {
107
+ const input = this.#input();
108
+
109
+ this.value = input.value;
110
+ }
111
+
112
+ attributeChangedCallback(attr: string) {
113
+ const input = this.#input();
114
+
115
+ switch (attr) {
116
+ case "autocomplete":
117
+ input.autocomplete = this.autocomplete;
118
+ break;
119
+
120
+ case "placeholder":
121
+ input.placeholder = this.placeholder;
122
+ break;
123
+
124
+ case "name":
125
+ input.name = this.name;
126
+ break;
127
+ }
128
+ }
129
+
130
+ #syncFormState() {
131
+ const input = this.#input();
132
+
133
+ this.#internals.setFormValue(input.value);
134
+
135
+ if (this.required && !input.value) {
136
+ this.#internals.setValidity({ valueMissing: true }, "Required", input);
137
+ } else {
138
+ this.#internals.setValidity({});
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,24 @@
1
+ import type { Meta, StoryObj } from "@storybook/web-components";
2
+ import { html } from "lit";
3
+
4
+ import type { USATextareaElement } from "./textarea.element.js";
5
+
6
+ // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
7
+ const meta = {
8
+ title: "usa-textarea",
9
+ tags: ["autodocs"],
10
+ render(args) {
11
+ return html`<usa-textarea>Hello World</usa-textarea>`;
12
+ },
13
+ argTypes: {},
14
+ args: {},
15
+ } satisfies Meta<USATextareaElement>;
16
+
17
+ export default meta;
18
+
19
+ type Story = StoryObj<USATextareaElement>;
20
+
21
+ // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
22
+ export const Primary: Story = {
23
+ args: {},
24
+ };
@@ -0,0 +1,63 @@
1
+ import "./textarea.element.js";
2
+
3
+ import { fireEvent } from "@noctuatech-uswds/testing";
4
+ import { assert, fixture, html } from "@open-wc/testing";
5
+
6
+ describe("usa-textarea", () => {
7
+ it("should be accessible", async () => {
8
+ const form = await fixture<HTMLFormElement>(html`
9
+ <usa-textarea name="fname" value="Foo">Hello World</usa-textarea>
10
+ `);
11
+
12
+ return assert.isAccessible(form);
13
+ });
14
+
15
+ it("should submit form with default values", async () => {
16
+ const form = await fixture<HTMLFormElement>(html`
17
+ <form>
18
+ <usa-textarea name="fname" value="Foo">Hello World</usa-textarea>
19
+
20
+ <button>Submit</button>
21
+ </form>
22
+ `);
23
+
24
+ const value = new FormData(form);
25
+
26
+ assert.equal(value.get("fname"), "Foo");
27
+ });
28
+
29
+ it("should update form value as input value changed", async () => {
30
+ const form = await fixture<HTMLFormElement>(html`
31
+ <form>
32
+ <usa-textarea name="fname">Hello World</usa-textarea>
33
+
34
+ <button>Submit</button>
35
+ </form>
36
+ `);
37
+
38
+ const input = form.querySelector("usa-textarea");
39
+ const nativeInput = input?.shadowRoot?.querySelector("textarea");
40
+
41
+ if (nativeInput) {
42
+ nativeInput.value = "Bar";
43
+
44
+ await fireEvent.input(nativeInput, { bubbles: true });
45
+ }
46
+
47
+ const value = new FormData(form);
48
+
49
+ assert.equal(value.get("fname"), "Bar");
50
+ });
51
+
52
+ it("should not submit when not valid", async () => {
53
+ const form = await fixture<HTMLFormElement>(html`
54
+ <form>
55
+ <usa-textarea name="fname" required>Hello World</usa-textarea>
56
+
57
+ <button>Submit</button>
58
+ </form>
59
+ `);
60
+
61
+ assert.equal(form.checkValidity(), false);
62
+ });
63
+ });
package/src/lib.ts CHANGED
@@ -29,3 +29,4 @@ export { USACardBodyElement } from "./lib/card/card-body/card-body.element.js";
29
29
  export { USACardFooterElement } from "./lib/card/card-footer/card-footer.element.js";
30
30
  export { USACardImgElement } from "./lib/card/card-media/card-media.element.js";
31
31
  export { USACardGroupElement } from "./lib/card/card-group/card-group.element.js";
32
+ export { USATextareaElement } from "./lib/textarea/textarea.element.js";
@@ -29,3 +29,4 @@ import "./card/card-body/card-body.element.js";
29
29
  import "./card/card-footer/card-footer.element.js";
30
30
  import "./card/card-media/card-media.element.js";
31
31
  import "./card/card-group/card-group.element.js";
32
+ import "./textarea/textarea.element.js";
@@ -29,4 +29,5 @@ import "./card/card-body/card-body.element.js";
29
29
  import "./card/card-footer/card-footer.element.js";
30
30
  import "./card/card-media/card-media.element.js";
31
31
  import "./card/card-group/card-group.element.js";
32
+ import "./textarea/textarea.element.js";
32
33
  //# sourceMappingURL=define.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"define.js","sourceRoot":"","sources":["../../src/lib/define.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,+DAA+D,CAAC;AACvE,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,8CAA8C,CAAC;AACtD,OAAO,4BAA4B,CAAC;AACpC,OAAO,iDAAiD,CAAC;AACzD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AACxC,OAAO,mDAAmD,CAAC;AAC3D,OAAO,sCAAsC,CAAC;AAC9C,OAAO,4CAA4C,CAAC;AACpD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0BAA0B,CAAC;AAClC,OAAO,4CAA4C,CAAC;AACpD,OAAO,gDAAgD,CAAC;AACxD,OAAO,wBAAwB,CAAC;AAChC,OAAO,2CAA2C,CAAC;AACnD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,2CAA2C,CAAC;AACnD,OAAO,yCAAyC,CAAC;AACjD,OAAO,yCAAyC,CAAC"}
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../src/lib/define.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,+DAA+D,CAAC;AACvE,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,8CAA8C,CAAC;AACtD,OAAO,4BAA4B,CAAC;AACpC,OAAO,iDAAiD,CAAC;AACzD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AACxC,OAAO,mDAAmD,CAAC;AAC3D,OAAO,sCAAsC,CAAC;AAC9C,OAAO,4CAA4C,CAAC;AACpD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0BAA0B,CAAC;AAClC,OAAO,4CAA4C,CAAC;AACpD,OAAO,gDAAgD,CAAC;AACxD,OAAO,wBAAwB,CAAC;AAChC,OAAO,2CAA2C,CAAC;AACnD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,2CAA2C,CAAC;AACnD,OAAO,yCAAyC,CAAC;AACjD,OAAO,yCAAyC,CAAC;AACjD,OAAO,gCAAgC,CAAC"}
@@ -112,7 +112,10 @@ let USAFileInputPreviewElement = (() => {
112
112
  names.add(file.name);
113
113
  if (!this.#items.has(file.name)) {
114
114
  const clone = template.content.cloneNode(true);
115
- const item = clone.childNodes[1];
115
+ const item = clone.firstElementChild;
116
+ if (!item) {
117
+ throw new Error("SOMETHING HAS GONE VERY WRONG");
118
+ }
116
119
  item.id = file.name;
117
120
  item.append(document.createTextNode(file.name));
118
121
  const img = item.querySelector("img");
@@ -1 +1 @@
1
- {"version":3,"file":"file-input-preview.element.js","sourceRoot":"","sources":["../../../../src/lib/file-input/file-input-preview/file-input-preview.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;IAyEvC,0BAA0B;4BAjEtC,OAAO,CAAC;YACP,OAAO,EAAE,wBAAwB;YACjC,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAY,CAAC;wBAC5C,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;wBACpB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;wBAEhD,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;wBAEtC,IAAI,GAAG,EAAE,CAAC;4BACR,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;wBACtC,CAAC;wBAED,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;wBAEzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;oBACnC,CAAC;gBACH,CAAC;gBAED,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBACvC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;wBACrB,IAAI,CAAC,MAAM,EAAE,CAAC;wBACd,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC3B,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACrB,CAAC;QACH,CAAC;;;;SA3DU,0BAA0B"}
1
+ {"version":3,"file":"file-input-preview.element.js","sourceRoot":"","sources":["../../../../src/lib/file-input/file-input-preview/file-input-preview.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;IAyEvC,0BAA0B;4BAjEtC,OAAO,CAAC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C;wBAChC,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAqB,CAAC;wBAEnE,MAAM,IAAI,GAAG,KAAK,CAAC,iBAAiB,CAAC;wBAErC,IAAI,CAAC,IAAI,EAAE,CAAC;4BACV,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;wBACnD,CAAC;wBAED,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;wBACpB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;wBAEhD,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;wBAEtC,IAAI,GAAG,EAAE,CAAC;4BACR,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;wBACtC,CAAC;wBAED,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;wBAEzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;oBACnC,CAAC;gBACH,CAAC;gBAED,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;oBACvC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;wBACrB,IAAI,CAAC,MAAM,EAAE,CAAC;wBACd,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC3B,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACrB,CAAC;QACH,CAAC;;;;SAhEU,0BAA0B"}
@@ -170,6 +170,7 @@ let USAFileInputElement = (() => {
170
170
  box.style.display = "flex";
171
171
  }
172
172
  this.#internals.setFormValue(formData);
173
+ this.dispatchEvent(new Event("change"));
173
174
  }
174
175
  static {
175
176
  __runInitializers(_classThis, _classExtraInitializers);
@@ -1 +1 @@
1
- {"version":3,"file":"file-input.element.js","sourceRoot":"","sources":["../../../src/lib/file-input/file-input.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;IA2FvC,mBAAmB;4BAnF/B,OAAO,CAAC;YACP,OAAO,EAAE,gBAAgB;YACzB,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0DF;gBACD,IAAI,CAAA;;;;;;;;;;;;;;;;;;KAkBH;aACF;SACF,CAAC;;;;sBACuC,WAAW;;;;;;;;;;;;;;;;mCAAnB,SAAQ,WAAW;;;;gCAGjD,IAAI,EAAE;oCAGN,IAAI,EAAE;kCAGN,IAAI,EAAE;iCAGN,OAAO,EAAE;oCAQT,MAAM,EAAE;yCAiBR,MAAM,CAAC,QAAQ,CAAC;YAjCjB,iKAAS,IAAI,6BAAJ,IAAI,mFAAM;YAGnB,6KAAS,QAAQ,6BAAR,QAAQ,2FAAQ;YAGzB,uKAAS,MAAM,6BAAN,MAAM,uFAAM;YAGrB,oKAAS,KAAK,6BAAL,KAAK,qFAAyB;YAQvC,2KAAA,QAAQ,6DAOP;YAUD,0LAAA,aAAa,6DAoBZ;YA1DH,6KA2DC;;;;QA1DC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;QAG7B,0BAJW,mDAAmB,8CAId,EAAE,GAAC;QAAnB,IAAS,IAAI,0CAAM;QAAnB,IAAS,IAAI,gDAAM;QAGnB,gIAAoB,IAAI,GAAC;QAAzB,IAAS,QAAQ,8CAAQ;QAAzB,IAAS,QAAQ,oDAAQ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AAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEhC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAE5B,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;YAEhC,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;gBACxB,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;gBAE3B,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;oBAC/B,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;YAC7B,CAAC;YAED,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAEvC,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1C,CAAC;;YA5DU,uDAAmB;;;;;SAAnB,mBAAmB"}
@@ -0,0 +1,19 @@
1
+ declare global {
2
+ interface HTMLElementTagNameMap {
3
+ "usa-textarea": USATextareaElement;
4
+ }
5
+ }
6
+ export declare class USATextareaElement extends HTMLElement {
7
+ #private;
8
+ static formAssociated: boolean;
9
+ accessor name: string;
10
+ accessor autocomplete: AutoFill;
11
+ accessor placeholder: string;
12
+ accessor required: boolean;
13
+ accessor value: string;
14
+ onReady(): void;
15
+ connectedCallback(): void;
16
+ onChange(): void;
17
+ onInputChange(): void;
18
+ attributeChangedCallback(attr: string): void;
19
+ }
@@ -0,0 +1,171 @@
1
+ import { __esDecorate, __runInitializers } from "tslib";
2
+ import { attr, css, element, html, listen, query, ready } from "@joist/element";
3
+ import { effect, observe } from "@joist/observable";
4
+ let USATextareaElement = (() => {
5
+ let _classDecorators = [element({
6
+ tagName: "usa-textarea",
7
+ shadowDom: [
8
+ css `
9
+ * {
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ :host {
14
+ font-size: 1.06rem;
15
+ line-height: 1.3;
16
+ display: block;
17
+ font-weight: 400;
18
+ max-width: 30rem;
19
+ margin-bottom: 1.5rem;
20
+ position: relative;
21
+ height: calc(6lh + .5rem);
22
+ }
23
+
24
+ textarea {
25
+ font-family: inherit;
26
+ font-size: inherit;
27
+ border-radius: 0;
28
+ color: #1b1b1b;
29
+ display: block;
30
+ margin-top: .5rem;
31
+ max-width: 30rem;
32
+ padding: .5rem;
33
+ border-width: 1px;
34
+ border-color: #5c5c5c;
35
+ border-style: solid;
36
+ -webkit-appearance: none;
37
+ -moz-appearance: none;
38
+ appearance: none;
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+
43
+ textarea:not(:disabled):focus {
44
+ outline: 0.25rem solid #2491ff;
45
+ outline-offset: 0;
46
+ }
47
+ `,
48
+ html `
49
+ <label>
50
+ <slot></slot>
51
+
52
+ <textarea></textarea>
53
+ </label>
54
+ `,
55
+ ],
56
+ })];
57
+ let _classDescriptor;
58
+ let _classExtraInitializers = [];
59
+ let _classThis;
60
+ let _classSuper = HTMLElement;
61
+ let _instanceExtraInitializers = [];
62
+ let _name_decorators;
63
+ let _name_initializers = [];
64
+ let _name_extraInitializers = [];
65
+ let _autocomplete_decorators;
66
+ let _autocomplete_initializers = [];
67
+ let _autocomplete_extraInitializers = [];
68
+ let _placeholder_decorators;
69
+ let _placeholder_initializers = [];
70
+ let _placeholder_extraInitializers = [];
71
+ let _required_decorators;
72
+ let _required_initializers = [];
73
+ let _required_extraInitializers = [];
74
+ let _value_decorators;
75
+ let _value_initializers = [];
76
+ let _value_extraInitializers = [];
77
+ let _onReady_decorators;
78
+ let _onChange_decorators;
79
+ let _onInputChange_decorators;
80
+ var USATextareaElement = class extends _classSuper {
81
+ static { _classThis = this; }
82
+ static {
83
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
84
+ _name_decorators = [attr()];
85
+ _autocomplete_decorators = [attr()];
86
+ _placeholder_decorators = [attr()];
87
+ _required_decorators = [attr()];
88
+ _value_decorators = [attr({
89
+ reflect: false,
90
+ }), observe()];
91
+ _onReady_decorators = [ready()];
92
+ _onChange_decorators = [effect()];
93
+ _onInputChange_decorators = [listen("input")];
94
+ __esDecorate(this, null, _name_decorators, { kind: "accessor", name: "name", static: false, private: false, access: { has: obj => "name" in obj, get: obj => obj.name, set: (obj, value) => { obj.name = value; } }, metadata: _metadata }, _name_initializers, _name_extraInitializers);
95
+ __esDecorate(this, null, _autocomplete_decorators, { kind: "accessor", name: "autocomplete", static: false, private: false, access: { has: obj => "autocomplete" in obj, get: obj => obj.autocomplete, set: (obj, value) => { obj.autocomplete = value; } }, metadata: _metadata }, _autocomplete_initializers, _autocomplete_extraInitializers);
96
+ __esDecorate(this, null, _placeholder_decorators, { kind: "accessor", name: "placeholder", static: false, private: false, access: { has: obj => "placeholder" in obj, get: obj => obj.placeholder, set: (obj, value) => { obj.placeholder = value; } }, metadata: _metadata }, _placeholder_initializers, _placeholder_extraInitializers);
97
+ __esDecorate(this, null, _required_decorators, { kind: "accessor", name: "required", static: false, private: false, access: { has: obj => "required" in obj, get: obj => obj.required, set: (obj, value) => { obj.required = value; } }, metadata: _metadata }, _required_initializers, _required_extraInitializers);
98
+ __esDecorate(this, null, _value_decorators, { kind: "accessor", name: "value", static: false, private: false, access: { has: obj => "value" in obj, get: obj => obj.value, set: (obj, value) => { obj.value = value; } }, metadata: _metadata }, _value_initializers, _value_extraInitializers);
99
+ __esDecorate(this, null, _onReady_decorators, { kind: "method", name: "onReady", static: false, private: false, access: { has: obj => "onReady" in obj, get: obj => obj.onReady }, metadata: _metadata }, null, _instanceExtraInitializers);
100
+ __esDecorate(this, null, _onChange_decorators, { kind: "method", name: "onChange", static: false, private: false, access: { has: obj => "onChange" in obj, get: obj => obj.onChange }, metadata: _metadata }, null, _instanceExtraInitializers);
101
+ __esDecorate(this, null, _onInputChange_decorators, { kind: "method", name: "onInputChange", static: false, private: false, access: { has: obj => "onInputChange" in obj, get: obj => obj.onInputChange }, metadata: _metadata }, null, _instanceExtraInitializers);
102
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
103
+ USATextareaElement = _classThis = _classDescriptor.value;
104
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
105
+ }
106
+ static formAssociated = true;
107
+ #name_accessor_storage = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _name_initializers, ""));
108
+ get name() { return this.#name_accessor_storage; }
109
+ set name(value) { this.#name_accessor_storage = value; }
110
+ #autocomplete_accessor_storage = (__runInitializers(this, _name_extraInitializers), __runInitializers(this, _autocomplete_initializers, "on"));
111
+ get autocomplete() { return this.#autocomplete_accessor_storage; }
112
+ set autocomplete(value) { this.#autocomplete_accessor_storage = value; }
113
+ #placeholder_accessor_storage = (__runInitializers(this, _autocomplete_extraInitializers), __runInitializers(this, _placeholder_initializers, ""));
114
+ get placeholder() { return this.#placeholder_accessor_storage; }
115
+ set placeholder(value) { this.#placeholder_accessor_storage = value; }
116
+ #required_accessor_storage = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _required_initializers, false));
117
+ get required() { return this.#required_accessor_storage; }
118
+ set required(value) { this.#required_accessor_storage = value; }
119
+ #value_accessor_storage = (__runInitializers(this, _required_extraInitializers), __runInitializers(this, _value_initializers, ""));
120
+ get value() { return this.#value_accessor_storage; }
121
+ set value(value) { this.#value_accessor_storage = value; }
122
+ #internals = (__runInitializers(this, _value_extraInitializers), this.attachInternals());
123
+ #input = query("textarea");
124
+ onReady() {
125
+ const input = this.#input();
126
+ input.autofocus = this.autofocus;
127
+ }
128
+ connectedCallback() {
129
+ this.#syncFormState();
130
+ }
131
+ onChange() {
132
+ const input = this.#input();
133
+ input.value = this.value;
134
+ this.#syncFormState();
135
+ }
136
+ onInputChange() {
137
+ const input = this.#input();
138
+ this.value = input.value;
139
+ }
140
+ attributeChangedCallback(attr) {
141
+ const input = this.#input();
142
+ switch (attr) {
143
+ case "autocomplete":
144
+ input.autocomplete = this.autocomplete;
145
+ break;
146
+ case "placeholder":
147
+ input.placeholder = this.placeholder;
148
+ break;
149
+ case "name":
150
+ input.name = this.name;
151
+ break;
152
+ }
153
+ }
154
+ #syncFormState() {
155
+ const input = this.#input();
156
+ this.#internals.setFormValue(input.value);
157
+ if (this.required && !input.value) {
158
+ this.#internals.setValidity({ valueMissing: true }, "Required", input);
159
+ }
160
+ else {
161
+ this.#internals.setValidity({});
162
+ }
163
+ }
164
+ static {
165
+ __runInitializers(_classThis, _classExtraInitializers);
166
+ }
167
+ };
168
+ return USATextareaElement = _classThis;
169
+ })();
170
+ export { USATextareaElement };
171
+ //# sourceMappingURL=textarea.element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.element.js","sourceRoot":"","sources":["../../../src/lib/textarea/textarea.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;IA4DvC,kBAAkB;4BApD9B,OAAO,CAAC;YACP,OAAO,EAAE,cAAc;YACvB,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuCF;gBACD,IAAI,CAAA;;;;;;KAMH;aACF;SACF,CAAC;;;;sBACsC,WAAW;;;;;;;;;;;;;;;;;;;;kCAAnB,SAAQ,WAAW;;;;gCAGhD,IAAI,EAAE;wCAGN,IAAI,EAAE;uCAGN,IAAI,EAAE;oCAGN,IAAI,EAAE;iCAGN,IAAI,CAAC;oBACJ,OAAO,EAAE,KAAK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;YAE5B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAEzB,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC;QAGD,aAAa;YACX,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAE5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QAC3B,CAAC;QAED,wBAAwB,CAAC,IAAY;YACnC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAE5B,QAAQ,IAAI,EAAE,CAAC;gBACb,KAAK,cAAc;oBACjB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;oBACvC,MAAM;gBAER,KAAK,aAAa;oBAChB,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;oBACrC,MAAM;gBAER,KAAK,MAAM;oBACT,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;oBACvB,MAAM;YACV,CAAC;QACH,CAAC;QAED,cAAc;YACZ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAE5B,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAE1C,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBAClC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;YACzE,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;;YA9EU,uDAAkB;;;;;SAAlB,kBAAkB"}
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from "@storybook/web-components";
2
+ import type { USATextareaElement } from "./textarea.element.js";
3
+ declare const meta: {
4
+ title: string;
5
+ tags: string[];
6
+ render(args: USATextareaElement): import("lit-html").TemplateResult<1>;
7
+ argTypes: {};
8
+ args: {};
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<USATextareaElement>;
12
+ export declare const Primary: Story;
@@ -0,0 +1,17 @@
1
+ import { html } from "lit";
2
+ // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
3
+ const meta = {
4
+ title: "usa-textarea",
5
+ tags: ["autodocs"],
6
+ render(args) {
7
+ return html `<usa-textarea>Hello World</usa-textarea>`;
8
+ },
9
+ argTypes: {},
10
+ args: {},
11
+ };
12
+ export default meta;
13
+ // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
14
+ export const Primary = {
15
+ args: {},
16
+ };
17
+ //# sourceMappingURL=textarea.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.stories.js","sourceRoot":"","sources":["../../../src/lib/textarea/textarea.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAI3B,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA,0CAA0C,CAAC;IACxD,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CAC0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
@@ -0,0 +1 @@
1
+ import "./textarea.element.js";
@@ -0,0 +1,50 @@
1
+ import "./textarea.element.js";
2
+ import { fireEvent } from "@noctuatech-uswds/testing";
3
+ import { assert, fixture, html } from "@open-wc/testing";
4
+ describe("usa-textarea", () => {
5
+ it("should be accessible", async () => {
6
+ const form = await fixture(html `
7
+ <usa-textarea name="fname" value="Foo">Hello World</usa-textarea>
8
+ `);
9
+ return assert.isAccessible(form);
10
+ });
11
+ it("should submit form with default values", async () => {
12
+ const form = await fixture(html `
13
+ <form>
14
+ <usa-textarea name="fname" value="Foo">Hello World</usa-textarea>
15
+
16
+ <button>Submit</button>
17
+ </form>
18
+ `);
19
+ const value = new FormData(form);
20
+ assert.equal(value.get("fname"), "Foo");
21
+ });
22
+ it("should update form value as input value changed", async () => {
23
+ const form = await fixture(html `
24
+ <form>
25
+ <usa-textarea name="fname">Hello World</usa-textarea>
26
+
27
+ <button>Submit</button>
28
+ </form>
29
+ `);
30
+ const input = form.querySelector("usa-textarea");
31
+ const nativeInput = input?.shadowRoot?.querySelector("textarea");
32
+ if (nativeInput) {
33
+ nativeInput.value = "Bar";
34
+ await fireEvent.input(nativeInput, { bubbles: true });
35
+ }
36
+ const value = new FormData(form);
37
+ assert.equal(value.get("fname"), "Bar");
38
+ });
39
+ it("should not submit when not valid", async () => {
40
+ const form = await fixture(html `
41
+ <form>
42
+ <usa-textarea name="fname" required>Hello World</usa-textarea>
43
+
44
+ <button>Submit</button>
45
+ </form>
46
+ `);
47
+ assert.equal(form.checkValidity(), false);
48
+ });
49
+ });
50
+ //# sourceMappingURL=textarea.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.test.js","sourceRoot":"","sources":["../../../src/lib/textarea/textarea.test.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzD,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,IAAI,GAAG,MAAM,OAAO,CAAkB,IAAI,CAAA;;KAE/C,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,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ement } from "./lib/card/card-body/card-body.element.js";
29
29
  export { USACardFooterElement } from "./lib/card/card-footer/card-footer.element.js";
30
30
  export { USACardImgElement } from "./lib/card/card-media/card-media.element.js";
31
31
  export { USACardGroupElement } from "./lib/card/card-group/card-group.element.js";
32
+ export { USATextareaElement } from "./lib/textarea/textarea.element.js";
package/target/lib.js CHANGED
@@ -29,4 +29,5 @@ export { USACardBodyElement } from "./lib/card/card-body/card-body.element.js";
29
29
  export { USACardFooterElement } from "./lib/card/card-footer/card-footer.element.js";
30
30
  export { USACardImgElement } from "./lib/card/card-media/card-media.element.js";
31
31
  export { USACardGroupElement } from "./lib/card/card-group/card-group.element.js";
32
+ export { USATextareaElement } from "./lib/textarea/textarea.element.js";
32
33
  //# sourceMappingURL=lib.js.map
package/target/lib.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mEAAmE,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAA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