@cfpb/cfpb-design-system 3.14.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -1
- package/dist/base/index.css +1 -1
- package/dist/base/index.css.map +2 -2
- package/dist/base/index.js.map +1 -1
- package/dist/components/cfpb-buttons/index.css +1 -1
- package/dist/components/cfpb-buttons/index.css.map +2 -2
- package/dist/components/cfpb-buttons/index.js.map +1 -1
- package/dist/components/cfpb-expandables/index.css +1 -1
- package/dist/components/cfpb-expandables/index.css.map +2 -2
- package/dist/components/cfpb-expandables/index.js +1 -1
- package/dist/components/cfpb-expandables/index.js.map +4 -4
- package/dist/components/cfpb-forms/index.css +1 -1
- package/dist/components/cfpb-forms/index.css.map +2 -2
- package/dist/components/cfpb-forms/index.js +1 -1
- package/dist/components/cfpb-forms/index.js.map +4 -4
- package/dist/elements/cfpb-button/index.js +3 -3
- package/dist/elements/cfpb-button/index.js.map +3 -3
- package/dist/elements/cfpb-file-upload/index.js +4 -3
- package/dist/elements/cfpb-file-upload/index.js.map +4 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +3 -3
- package/package.json +2 -1
- package/src/abstracts/vars.scss +1 -1
- package/src/base/base.scss +5 -0
- package/src/base/font.scss +11 -13
- package/src/components/cfpb-buttons/button.scss +1 -1
- package/src/components/cfpb-expandables/summary-minimal.scss +5 -0
- package/src/components/cfpb-expandables/summary.scss +10 -2
- package/src/components/cfpb-forms/search-input.scss +4 -7
- package/src/components/cfpb-forms/tag.scss +2 -2
- package/src/components/cfpb-typography/mixins.scss +1 -1
- package/src/elements/cfpb-button/index.js +5 -3
- package/src/elements/cfpb-file-upload/index.js +10 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ht=/'/g,Ut=/"/g,Dt=/^(?:script|style|textarea|title)$/i,ht=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),kt=ht(1),Ae=ht(2),ve=ht(3),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Mt=new WeakMap,b=S.createTreeWalker(S,129);function Lt(i,t){if(!at(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pt!==void 0?Pt.createHTML(t):t}var It=(i,t)=>{let e=i.length-1,s=[],r,n=t===2?"<svg>":t===3?"<math>":"",o=H;for(let h=0;h<e;h++){let a=i[h],l,d,c=-1,$=0;for(;$<a.length&&(o.lastIndex=$,d=o.exec(a),d!==null);)$=o.lastIndex,o===H?d[1]==="!--"?o=Tt:d[1]!==void 0?o=Nt:d[2]!==void 0?(Dt.test(d[2])&&(r=RegExp("</"+d[2],"g")),o=y):d[3]!==void 0&&(o=y):o===y?d[0]===">"?(o=r!=null?r:H,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?y:d[3]==='"'?Ut:Ht):o===Ut||o===Ht?o=y:o===Tt||o===Nt?o=H:(o=y,r=void 0);let A=o===y&&i[h+1].startsWith("/>")?" ":"";n+=o===H?a+ne:c>=0?(s.push(l),a.slice(0,c)+ot+a.slice(c)+_+A):a+_+(c===-2?h:A)}return[Lt(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},O=class i{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let n=0,o=0,h=t.length-1,a=this.parts,[l,d]=It(t,e);if(this.el=i.createElement(l,s),b.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=b.nextNode())!==null&&a.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(ot)){let $=d[o++],A=r.getAttribute(c).split(_),k=/([.?@])?(.*)/.exec($);a.push({type:1,index:n,name:k[2],strings:A,ctor:k[1]==="."?G:k[1]==="?"?W:k[1]==="@"?q:w}),r.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:n}),r.removeAttribute(c));if(Dt.test(r.tagName)){let c=r.textContent.split(_),$=c.length-1;if($>0){r.textContent=V?V.emptyScript:"";for(let A=0;A<$;A++)r.append(c[A],M()),b.nextNode(),a.push({type:2,index:++n});r.append(c[$],M())}}}else if(r.nodeType===8)if(r.data===nt)a.push({type:2,index:n});else{let c=-1;for(;(c=r.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:n}),c+=_.length-1}n++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function C(i,t,e=i,s){var o,h,a;if(t===E)return t;let r=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl,n=R(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((h=r==null?void 0:r._$AO)==null||h.call(r,!1),n===void 0?r=void 0:(r=new n(i),r._$AT(i,e,s)),s!==void 0?((a=e._$Co)!=null?a:e._$Co=[])[s]=r:e._$Cl=r),r!==void 0&&(t=C(i,r._$AS(i,t.values),r,s)),t}var j=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var l;let{el:{content:e},parts:s}=this._$AD,r=((l=t==null?void 0:t.creationScope)!=null?l:S).importNode(e,!0);b.currentNode=r;let n=b.nextNode(),o=0,h=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new P(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new K(n,this,t)),this._$AV.push(d),a=s[++h]}o!==(a==null?void 0:a.index)&&(n=b.nextNode(),o++)}return b.currentNode=S,r}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},P=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,s,r){var n;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(n=r==null?void 0:r.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),R(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ot(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=O.createElement(Lt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{let o=new j(r,this),h=o.u(this.options);o.p(e),this.T(h),this._$AH=o}}_$AC(t){let e=Mt.get(t.strings);return e===void 0&&Mt.set(t.strings,e=new O(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let n of t)r===e.length?e.push(s=new i(this.O(M()),this.O(M()),this,this.options)):s=e[r],s._$AI(n),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},w=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,r){let n=this.strings,o=!1;if(n===void 0)t=C(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{let h=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=C(this,h[s+a],e,a),l===E&&(l=this._$AH[a]),o||(o=!R(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l!=null?l:"")+n[a+1]),this._$AH[a]=l}o&&!r&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},G=class extends w{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},W=class extends w{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},q=class extends w{constructor(t,e,s,r,n){super(t,e,s,r,n),this.type=5}_$AI(t,e=this){var o;if((t=(o=C(this,t,e,0))!=null?o:p)===E)return;let s=this._$AH,r=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,t):this._$AH.handleEvent(t)}},K=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}},Bt={M:ot,P:_,A:nt,C:1,L:It,R:j,D:Ot,V:C,I:P,H:w,N:W,U:q,B:G,F:K},rt=U.litHtmlPolyfillSupport,Rt;rt==null||rt(O,P),((Rt=U.litHtmlVersions)!=null?Rt:U.litHtmlVersions=[]).push("3.3.0");var zt=(i,t,e)=>{var n,o;let s=(n=e==null?void 0:e.renderBefore)!=null?n:t,r=s._$litPart$;if(r===void 0){let h=(o=e==null?void 0:e.renderBefore)!=null?o:null;s._$litPart$=r=new P(t.insertBefore(M(),h),h,void 0,e!=null?e:{})}return r._$AI(i),r};var x=globalThis,m=class extends f{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,s;let t=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return E}},Vt;m._$litElement$=!0,m.finalized=!0,(Vt=x.litElementHydrateSupport)==null||Vt.call(x,{LitElement:m});var lt=x.litElementPolyfillSupport;lt==null||lt({LitElement:m});var jt;((jt=x.litElementVersions)!=null?jt:x.litElementVersions=[]).push("4.2.0");var{I:Ue}=Bt;var Gt=i=>i.strings===void 0;var Wt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ct=i=>(...t)=>({_$litDirective$:i,values:t}),Z=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var D=(i,t)=>{var s;let e=i._$AN;if(e===void 0)return!1;for(let r of e)(s=r._$AO)==null||s.call(r,t,!1),D(r,t);return!0},F=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},qt=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),le(t)}};function ae(i){this._$AN!==void 0?(F(this),this._$AM=i,qt(this)):this._$AM=i}function he(i,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)D(s[n],!1),F(s[n]);else s!=null&&(D(s,!1),F(s));else D(this,i)}var le=i=>{var t,e;i.type==Wt.CHILD&&((t=i._$AP)!=null||(i._$AP=he),(e=i._$AQ)!=null||(i._$AQ=ae))},J=class extends Z{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),qt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(D(this,t),F(this))}setValue(t){if(Gt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ut=()=>new pt,pt=class{},dt=new WeakMap,$t=ct(class extends J{render(i){return p}update(i,[t]){var s;let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.G=="function"){let e=(t=this.ht)!=null?t:globalThis,s=dt.get(e);s===void 0&&(s=new WeakMap,dt.set(e,s)),s.get(this.G)!==void 0&&this.G.call(this.ht,void 0),s.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,t,e;return typeof this.G=="function"?(t=dt.get((i=this.ht)!=null?i:globalThis))==null?void 0:t.get(this.G):(e=this.G)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Kt=":root{--input-text-default:var(--black);--input-text-disabled-default:var(--gray-dark);--input-text-placeholder-default:var(--gray-dark);--input-border-default:var(--gray-60);--input-border-disabled:var(--gray-60);--input-border-success:var(--green);--input-border-warning:var(--gold);--input-border-error:var(--red);--input-border-hover-default:var(--pacific);--input-border-focus-default:var(--pacific);--input-bg-default:var(--white);--input-bg-disabled-default:var(--gray-10);--form-alert-icon-color-default:var(--gray);--form-alert-icon-color-success:var(--green);--form-alert-icon-color-warning:var(--gold);--form-alert-icon-color-error:var(--red);--select-border-default:var(--gray-60);--select-border-width-default:1px;--select-border-error:var(--red);--select-border-width-error:2px;--select-border-hover-default:var(--pacific);--select-border-focus-default:var(--pacific);--select-bg-disabled-default:var(--gray-10);--select-icon-bg-default:var(--gray-10);--select-text-disabled-default:var(--gray-dark);--choice-border-default:var(--gray-60);--choice-border-disabled:var(--gray-60);--choice-border-success:var(--green);--choice-border-warning:var(--gold);--choice-border-error:var(--red);--choice-border-hover-default:var(--pacific);--choice-border-focus-default:var(--pacific);--choice-outline-focus-default:var(--pacific);--choice-bg-default:var(--white);--choice-bg-disabled:var(--gray-10);--choice-bg-selected-default:var(--pacific);--choice-bg-selected-disabled:var(--gray-40);--choice-bg-selected-focus-default:var(--pacific);--choice-label-disabled-default:var(--gray-dark)}:host{display:flex;flex-direction:column;width:fit-content}:host::part(upload-details)[hidden=true]{display:none}";var u,Zt,Ft,ft,_t,Q=class extends m{constructor(){super();vt(this,u);L(this,"fileInput",ut());L(this,"fileDetails",ut());g(this,u,ft).call(this)}static get properties(){return{isDetailHidden:{type:Boolean},fileName:{type:String},accept:{type:String},value:{type:String},files:{type:FileList}}}render(){return kt`<cfpb-button type="secondary" @click="${()=>{this.fileInput.value.click()}}"><slot></slot></cfpb-button><input class="a-btn a-btn--secondary" type="file" hidden accept="${this.accept}" @input="${()=>g(this,u,_t).call(this)}" @cancel="${()=>g(this,u,_t).call(this)}" ${$t(this.fileInput)}><div part="upload-details" ?hidden="${this.isDetailHidden}" ${$t(this.fileDetails)}><h4>File added</h4><ul><li>${this.fileName}</li></ul><p>To remove or replace your file, select a new file and upload again.</p></div>`}};u=new WeakSet,Zt=function(e){let s=e;if(s.indexOf("\\")>-1){let r=s.split("\\");s=r[r.length-1]}return s},Ft=function(){this.fileName=g(this,u,Zt).call(this,this.fileInput.value.value),this.value=this.fileInput.value.value,this.files=this.fileInput.value.files,this.isDetailHidden=!1},ft=function(){this.fileName="",this.value="",this.files={},this.isDetailHidden=!0},_t=function(){this.fileInput.value.value==""?g(this,u,ft).call(this):g(this,u,Ft).call(this)},L(Q,"styles",X`${z(Kt)}`);window.customElements.get("cfpb-file-upload")||window.customElements.define("cfpb-file-upload",Q);})();
|
|
1
|
+
(()=>{var et=Object.defineProperty;var ye=r=>{throw TypeError(r)};var tt=(r,e,t)=>e in r?et(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var C=(r,e,t)=>tt(r,typeof e!="symbol"?e+"":e,t),it=(r,e,t)=>e.has(r)||ye("Cannot "+t);var _e=(r,e,t)=>e.has(r)?ye("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var y=(r,e,t)=>(it(r,e,"access private method"),t);var Ae=(r,e,t)=>new Promise((i,s)=>{var h=a=>{try{n(t.next(a))}catch(l){s(l)}},o=a=>{try{n(t.throw(a))}catch(l){s(l)}},n=a=>a.done?i(a.value):Promise.resolve(a.value).then(h,o);n((t=t.apply(r,e)).next())});var I=globalThis,B=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),we=new WeakMap,M=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(B&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=we.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&we.set(t,e))}return e}toString(){return this.cssText}},P=r=>new M(typeof r=="string"?r:r+"",void 0,ie),N=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((i,s,h)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[h+1],r[0]);return new M(t,r,ie)},xe=(r,e)=>{if(B)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),s=I.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,r.appendChild(i)}},re=B?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return P(t)})(r):r;var{is:rt,defineProperty:st,getOwnPropertyDescriptor:ot,getOwnPropertyNames:ht,getOwnPropertySymbols:at,getPrototypeOf:nt}=Object,$=globalThis,Se=$.trustedTypes,lt=Se?Se.emptyScript:"",se=$.reactiveElementPolyfillSupport,z=(r,e)=>r,oe={toAttribute(r,e){switch(e){case Boolean:r=r?lt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},Te=(r,e)=>!rt(r,e),Ee={attribute:!0,type:String,converter:oe,reflect:!1,useDefault:!1,hasChanged:Te},ke,Ce;(ke=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ce=$.litPropertyMetadata)!=null||($.litPropertyMetadata=new WeakMap);var m=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ee){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&st(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){var o;let{get:s,set:h}=(o=ot(this.prototype,e))!=null?o:{get(){return this[t]},set(n){this[t]=n}};return{get:s,set(n){let a=s==null?void 0:s.call(this);h==null||h.call(this,n),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ee}static _$Ei(){if(this.hasOwnProperty(z("elementProperties")))return;let e=nt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(z("properties"))){let t=this.properties,i=[...ht(t),...at(t)];for(let s of i)this.createProperty(s,t[s])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let s of i)t.unshift(re(s))}else e!==void 0&&t.push(re(e));return t}static _$Eu(e,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;let e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return xe(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var h;let i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){let o=(((h=i.converter)==null?void 0:h.toAttribute)!==void 0?i.converter:oe).toAttribute(t,i.type);this._$Em=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(e,t){var h,o,n,a;let i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let l=i.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((h=l.converter)==null?void 0:h.fromAttribute)!==void 0?l.converter:oe;this._$Em=s,this[s]=(a=(n=d.fromAttribute(t,l.type))!=null?n:(o=this._$Ej)==null?void 0:o.get(s))!=null?a:null,this._$Em=null}}requestUpdate(e,t,i){var s,h;if(e!==void 0){let o=this.constructor,n=this[e];if(i!=null||(i=o.getPropertyOptions(e)),!(((s=i.hasChanged)!=null?s:Te)(n,t)||i.useDefault&&i.reflect&&n===((h=this._$Ej)==null?void 0:h.get(e))&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:h},o){var n,a,l;i&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(a=o!=null?o:t)!=null?a:this[e]),h!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(e))}_$EP(){return Ae(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[o,n]of h){let{wrapped:a}=n,l=this[o];a!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,n,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(h=>{var o;return(o=h.hostUpdate)==null?void 0:o.call(h)}),this.update(t)):this._$EM()}catch(h){throw e=!1,this._$EM(),h}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}},Pe;m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[z("elementProperties")]=new Map,m[z("finalized")]=new Map,se==null||se({ReactiveElement:m}),((Pe=$.reactiveElementVersions)!=null?Pe:$.reactiveElementVersions=[]).push("2.1.0");var H=globalThis,j=H.trustedTypes,Me=j?j.createPolicy("lit-html",{createHTML:r=>r}):void 0,ne="$lit$",b=`lit$${Math.random().toFixed(9).slice(2)}$`,le="?"+b,ct=`<${le}>`,w=document,R=()=>w.createComment(""),O=r=>r===null||typeof r!="object"&&typeof r!="function",ce=Array.isArray,De=r=>ce(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",he=`[
|
|
2
|
+
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ne=/-->/g,ze=/>/g,_=RegExp(`>|${he}(?:([^\\s"'>=/]+)(${he}*=${he}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ue=/'/g,He=/"/g,qe=/^(?:script|style|textarea|title)$/i,de=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Z=de(1),At=de(2),wt=de(3),x=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Re=new WeakMap,A=w.createTreeWalker(w,129);function Le(r,e){if(!ce(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Me!==void 0?Me.createHTML(e):e}var Ie=(r,e)=>{let t=r.length-1,i=[],s,h=e===2?"<svg>":e===3?"<math>":"",o=U;for(let n=0;n<t;n++){let a=r[n],l,d,c=-1,g=0;for(;g<a.length&&(o.lastIndex=g,d=o.exec(a),d!==null);)g=o.lastIndex,o===U?d[1]==="!--"?o=Ne:d[1]!==void 0?o=ze:d[2]!==void 0?(qe.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=_):d[3]!==void 0&&(o=_):o===_?d[0]===">"?(o=s!=null?s:U,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?_:d[3]==='"'?He:Ue):o===He||o===Ue?o=_:o===Ne||o===ze?o=U:(o=_,s=void 0);let v=o===_&&r[n+1].startsWith("/>")?" ":"";h+=o===U?a+ct:c>=0?(i.push(l),a.slice(0,c)+ne+a.slice(c)+b+v):a+b+(c===-2?n:v)}return[Le(r,h+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},D=class r{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let h=0,o=0,n=e.length-1,a=this.parts,[l,d]=Ie(e,t);if(this.el=r.createElement(l,i),A.currentNode=this.el.content,t===2||t===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(s=A.nextNode())!==null&&a.length<n;){if(s.nodeType===1){if(s.hasAttributes())for(let c of s.getAttributeNames())if(c.endsWith(ne)){let g=d[o++],v=s.getAttribute(c).split(b),L=/([.?@])?(.*)/.exec(g);a.push({type:1,index:h,name:L[2],strings:v,ctor:L[1]==="."?G:L[1]==="?"?W:L[1]==="@"?K:E}),s.removeAttribute(c)}else c.startsWith(b)&&(a.push({type:6,index:h}),s.removeAttribute(c));if(qe.test(s.tagName)){let c=s.textContent.split(b),g=c.length-1;if(g>0){s.textContent=j?j.emptyScript:"";for(let v=0;v<g;v++)s.append(c[v],R()),A.nextNode(),a.push({type:2,index:++h});s.append(c[g],R())}}}else if(s.nodeType===8)if(s.data===le)a.push({type:2,index:h});else{let c=-1;for(;(c=s.data.indexOf(b,c+1))!==-1;)a.push({type:7,index:h}),c+=b.length-1}h++}}static createElement(e,t){let i=w.createElement("template");return i.innerHTML=e,i}};function S(r,e,t=r,i){var o,n,a;if(e===x)return e;let s=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl,h=O(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==h&&((n=s==null?void 0:s._$AO)==null||n.call(s,!1),h===void 0?s=void 0:(s=new h(r),s._$AT(r,t,i)),i!==void 0?((a=t._$Co)!=null?a:t._$Co=[])[i]=s:t._$Cl=s),s!==void 0&&(e=S(r,s._$AS(r,e.values),s,i)),e}var V=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var l;let{el:{content:t},parts:i}=this._$AD,s=((l=e==null?void 0:e.creationScope)!=null?l:w).importNode(t,!0);A.currentNode=s;let h=A.nextNode(),o=0,n=0,a=i[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new T(h,h.nextSibling,this,e):a.type===1?d=new a.ctor(h,a.name,a.strings,this,e):a.type===6&&(d=new F(h,this,e)),this._$AV.push(d),a=i[++n]}o!==(a==null?void 0:a.index)&&(h=A.nextNode(),o++)}return A.currentNode=w,s}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},T=class r{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,s){var h;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=(h=s==null?void 0:s.isConnected)!=null?h:!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=S(this,e,t),O(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==x&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):De(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==p&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(w.createTextNode(e)),this._$AH=e}$(e){var h;let{values:t,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=D.createElement(Le(i.h,i.h[0]),this.options)),i);if(((h=this._$AH)==null?void 0:h._$AD)===s)this._$AH.p(t);else{let o=new V(s,this),n=o.u(this.options);o.p(t),this.T(n),this._$AH=o}}_$AC(e){let t=Re.get(e.strings);return t===void 0&&Re.set(e.strings,t=new D(e)),t}k(e){ce(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,s=0;for(let h of e)s===t.length?t.push(i=new r(this.O(R()),this.O(R()),this,this.options)):i=t[s],i._$AI(h),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,h){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(e,t=this,i,s){let h=this.strings,o=!1;if(h===void 0)e=S(this,e,t,0),o=!O(e)||e!==this._$AH&&e!==x,o&&(this._$AH=e);else{let n=e,a,l;for(e=h[0],a=0;a<h.length-1;a++)l=S(this,n[i+a],t,a),l===x&&(l=this._$AH[a]),o||(o=!O(l)||l!==this._$AH[a]),l===p?e=p:e!==p&&(e+=(l!=null?l:"")+h[a+1]),this._$AH[a]=l}o&&!s&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},G=class extends E{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},W=class extends E{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},K=class extends E{constructor(e,t,i,s,h){super(e,t,i,s,h),this.type=5}_$AI(e,t=this){var o;if((e=(o=S(this,e,t,0))!=null?o:p)===x)return;let i=this._$AH,s=e===p&&i!==p||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,h=e!==p&&(i===p||s);s&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}},F=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){S(this,e)}},Be={M:ne,P:b,A:le,C:1,L:Ie,R:V,D:De,V:S,I:T,H:E,N:W,U:K,B:G,F},ae=H.litHtmlPolyfillSupport,Oe;ae==null||ae(D,T),((Oe=H.litHtmlVersions)!=null?Oe:H.litHtmlVersions=[]).push("3.3.0");var je=(r,e,t)=>{var h,o;let i=(h=t==null?void 0:t.renderBefore)!=null?h:e,s=i._$litPart$;if(s===void 0){let n=(o=t==null?void 0:t.renderBefore)!=null?o:null;i._$litPart$=s=new T(e.insertBefore(R(),n),n,void 0,t!=null?t:{})}return s._$AI(r),s};var k=globalThis,f=class extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let e=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return x}},Ve;f._$litElement$=!0,f.finalized=!0,(Ve=k.litElementHydrateSupport)==null||Ve.call(k,{LitElement:f});var pe=k.litElementPolyfillSupport;pe==null||pe({LitElement:f});var Ge;((Ge=k.litElementVersions)!=null?Ge:k.litElementVersions=[]).push("4.2.0");var{I:Ot}=Be;var We=r=>r.strings===void 0;var Ke={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ue=r=>(...e)=>({_$litDirective$:r,values:e}),J=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var q=(r,e)=>{var i;let t=r._$AN;if(t===void 0)return!1;for(let s of t)(i=s._$AO)==null||i.call(s,e,!1),q(s,e);return!0},Q=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while((t==null?void 0:t.size)===0)},Fe=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),ut(e)}};function dt(r){this._$AN!==void 0?(Q(this),this._$AM=r,Fe(this)):this._$AM=r}function pt(r,e=!1,t=0){let i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(i))for(let h=t;h<i.length;h++)q(i[h],!1),Q(i[h]);else i!=null&&(q(i,!1),Q(i));else q(this,r)}var ut=r=>{var e,t;r.type==Ke.CHILD&&((e=r._$AP)!=null||(r._$AP=pt),(t=r._$AQ)!=null||(r._$AQ=dt))},Y=class extends J{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),Fe(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,s;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),t&&(q(this,e),Q(this))}setValue(e){if(We(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var me=()=>new ge,ge=class{},fe=new WeakMap,be=ue(class extends Y{render(r){return p}update(r,[e]){var i;let t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=(i=r.options)==null?void 0:i.host,this.rt(this.ct=r.element)),p}rt(r){var e;if(this.isConnected||(r=void 0),typeof this.G=="function"){let t=(e=this.ht)!=null?e:globalThis,i=fe.get(t);i===void 0&&(i=new WeakMap,fe.set(t,i)),i.get(this.G)!==void 0&&this.G.call(this.ht,void 0),i.set(this.G,r),r!==void 0&&this.G.call(this.ht,r)}else this.G.value=r}get lt(){var r,e,t;return typeof this.G=="function"?(e=fe.get((r=this.ht)!=null?r:globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Ze=":root{--input-text-default:var(--black);--input-text-disabled-default:var(--gray-dark);--input-text-placeholder-default:var(--gray-dark);--input-border-default:var(--gray-60);--input-border-disabled:var(--gray-60);--input-border-success:var(--green);--input-border-warning:var(--gold);--input-border-error:var(--red);--input-border-hover-default:var(--pacific);--input-border-focus-default:var(--pacific);--input-bg-default:var(--white);--input-bg-disabled-default:var(--gray-10);--form-alert-icon-color-default:var(--gray);--form-alert-icon-color-success:var(--green);--form-alert-icon-color-warning:var(--gold);--form-alert-icon-color-error:var(--red);--select-border-default:var(--gray-60);--select-border-width-default:1px;--select-border-error:var(--red);--select-border-width-error:2px;--select-border-hover-default:var(--pacific);--select-border-focus-default:var(--pacific);--select-bg-disabled-default:var(--gray-10);--select-icon-bg-default:var(--gray-10);--select-text-disabled-default:var(--gray-dark);--choice-border-default:var(--gray-60);--choice-border-disabled:var(--gray-60);--choice-border-success:var(--green);--choice-border-warning:var(--gold);--choice-border-error:var(--red);--choice-border-hover-default:var(--pacific);--choice-border-focus-default:var(--pacific);--choice-outline-focus-default:var(--pacific);--choice-bg-default:var(--white);--choice-bg-disabled:var(--gray-10);--choice-bg-selected-default:var(--pacific);--choice-bg-selected-disabled:var(--gray-40);--choice-bg-selected-focus-default:var(--pacific);--choice-label-disabled-default:var(--gray-dark)}:host{display:flex;flex-direction:column;width:fit-content}:host::part(upload-details)[hidden=true]{display:none}";var Je=`@charset "UTF-8";
|
|
4
|
+
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}q{quotes:"\u201C" "\u201D" "\u2018" "\u2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}:root{--input-text-default:var(--black);--input-text-disabled-default:var(--gray-dark);--input-text-placeholder-default:var(--gray-dark);--input-border-default:var(--gray-60);--input-border-disabled:var(--gray-60);--input-border-success:var(--green);--input-border-warning:var(--gold);--input-border-error:var(--red);--input-border-hover-default:var(--pacific);--input-border-focus-default:var(--pacific);--input-bg-default:var(--white);--input-bg-disabled-default:var(--gray-10);--form-alert-icon-color-default:var(--gray);--form-alert-icon-color-success:var(--green);--form-alert-icon-color-warning:var(--gold);--form-alert-icon-color-error:var(--red);--select-border-default:var(--gray-60);--select-border-width-default:1px;--select-border-error:var(--red);--select-border-width-error:2px;--select-border-hover-default:var(--pacific);--select-border-focus-default:var(--pacific);--select-bg-disabled-default:var(--gray-10);--select-icon-bg-default:var(--gray-10);--select-text-disabled-default:var(--gray-dark);--choice-border-default:var(--gray-60);--choice-border-disabled:var(--gray-60);--choice-border-success:var(--green);--choice-border-warning:var(--gold);--choice-border-error:var(--red);--choice-border-hover-default:var(--pacific);--choice-border-focus-default:var(--pacific);--choice-outline-focus-default:var(--pacific);--choice-bg-default:var(--white);--choice-bg-disabled:var(--gray-10);--choice-bg-selected-default:var(--pacific);--choice-bg-selected-disabled:var(--gray-40);--choice-bg-selected-focus-default:var(--pacific);--choice-label-disabled-default:var(--gray-dark)}body{color:var(--black);font-family:var(--font-stack);font-size:100%;line-height:1.375;-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:var(--font-stack);line-height:1.1875}input[type=date]{display:revert;min-height:35px;min-width:100px;padding-bottom:0;padding-top:0}input[type=date].a-text-input--full{min-width:100%}hr{border:none;border-top:1px solid var(--gray-40)}b,strong{font-weight:600}h1,h2,h3,h4,h5,h6{margin-top:0}.h1,h1{font-size:2.125em;font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.4411764706em;text-transform:inherit}blockquote+.h1,blockquote+h1,dl+.h1,dl+h1,figure+.h1,figure+h1,img+.h1,img+h1,ol+.h1,ol+h1,p+.h1,p+h1,table+.h1,table+h1,ul+.h1,ul+h1{margin-top:1.7647058824em}@media only screen and (max-width:37.5em){blockquote+.h1,blockquote+h1,dl+.h1,dl+h1,figure+.h1,figure+h1,img+.h1,img+h1,ol+.h1,ol+h1,p+.h1,p+h1,table+.h1,table+h1,ul+.h1,ul+h1{margin-top:1.7307692308em}.h2+.h1,.h2+h1,.h3+.h1,.h3+h1,.h4+.h1,.h4+h1,.h5+.h1,.h5+h1,.h6+.h1,.h6+h1,h2+.h1,h2+h1,h3+.h1,h3+h1,h4+.h1,h4+h1,h5+.h1,h5+h1,h6+.h1,h6+h1{margin-top:1.1538461538em}.h1,h1{font-size:1.625em;font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.5769230769em;text-transform:inherit}blockquote+.h1,blockquote+h1,dl+.h1,dl+h1,figure+.h1,figure+h1,img+.h1,img+h1,ol+.h1,ol+h1,p+.h1,p+h1,table+.h1,table+h1,ul+.h1,ul+h1{margin-top:1.7307692308em}.h1+.h1,.h1+h1,.h3+.h1,.h3+h1,.h4+.h1,.h4+h1,.h5+.h1,.h5+h1,.h6+.h1,.h6+h1,h1+.h1,h1+h1,h3+.h1,h3+h1,h4+.h1,h4+h1,h5+.h1,h5+h1,h6+.h1,h6+h1{margin-top:1.1538461538em}}.h2,h2{font-size:1.625em;font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.5769230769em;text-transform:inherit}blockquote+.h2,blockquote+h2,dl+.h2,dl+h2,figure+.h2,figure+h2,img+.h2,img+h2,ol+.h2,ol+h2,p+.h2,p+h2,table+.h2,table+h2,ul+.h2,ul+h2{margin-top:1.7307692308em}.h1+.h2,.h1+h2,.h3+.h2,.h3+h2,.h4+.h2,.h4+h2,.h5+.h2,.h5+h2,.h6+.h2,.h6+h2,h1+.h2,h1+h2,h3+.h2,h3+h2,h4+.h2,h4+h2,h5+.h2,h5+h2,h6+.h2,h6+h2{margin-top:1.1538461538em}@media only screen and (max-width:37.5em){blockquote+.h2,blockquote+h2,dl+.h2,dl+h2,figure+.h2,figure+h2,img+.h2,img+h2,ol+.h2,ol+h2,p+.h2,p+h2,table+.h2,table+h2,ul+.h2,ul+h2{margin-top:1.3636363636em}.h2,h2{font-size:1.375em;font-weight:600;letter-spacing:inherit;line-height:1.25;margin-bottom:.6818181818em;text-transform:inherit}.h1+.h2,.h1+h2,.h2+.h2,.h2+h2,.h4+.h2,.h4+h2,.h5+.h2,.h5+h2,.h6+.h2,.h6+h2,blockquote+.h2,blockquote+h2,dl+.h2,dl+h2,figure+.h2,figure+h2,h1+.h2,h1+h2,h2+.h2,h2+h2,h4+.h2,h4+h2,h5+.h2,h5+h2,h6+.h2,h6+h2,img+.h2,img+h2,ol+.h2,ol+h2,p+.h2,p+h2,table+.h2,table+h2,ul+.h2,ul+h2{margin-top:1.3636363636em}}.h3,h3{font-size:1.375em;font-weight:400;letter-spacing:inherit;line-height:1.25;margin-bottom:.6818181818em;text-transform:inherit}.h1+.h3,.h1+h3,.h2+.h3,.h2+h3,.h4+.h3,.h4+h3,.h5+.h3,.h5+h3,.h6+.h3,.h6+h3,blockquote+.h3,blockquote+h3,dl+.h3,dl+h3,figure+.h3,figure+h3,h1+.h3,h1+h3,h2+.h3,h2+h3,h4+.h3,h4+h3,h5+.h3,h5+h3,h6+.h3,h6+h3,img+.h3,img+h3,ol+.h3,ol+h3,p+.h3,p+h3,table+.h3,table+h3,ul+.h3,ul+h3{margin-top:1.3636363636em}@media only screen and (max-width:37.5em){.h3,h3{font-size:1.125em;font-weight:400;letter-spacing:inherit;line-height:1.25;margin-bottom:.8333333333em;text-transform:inherit}.h1+.h3,.h1+h3,.h2+.h3,.h2+h3,.h3+.h3,.h3+h3,.h5+.h3,.h5+h3,.h6+.h3,.h6+h3,blockquote+.h3,blockquote+h3,dl+.h3,dl+h3,figure+.h3,figure+h3,h1+.h3,h1+h3,h2+.h3,h2+h3,h3+.h3,h3+h3,h5+.h3,h5+h3,h6+.h3,h6+h3,img+.h3,img+h3,ol+.h3,ol+h3,p+.h3,p+h3,table+.h3,table+h3,ul+.h3,ul+h3{margin-top:1.6666666667em}}.h4,h4{font-size:1.125em;font-weight:500;letter-spacing:inherit;line-height:1.25;margin-bottom:.8333333333em;text-transform:inherit}.h1+.h4,.h1+h4,.h2+.h4,.h2+h4,.h3+.h4,.h3+h4,.h5+.h4,.h5+h4,.h6+.h4,.h6+h4,blockquote+.h4,blockquote+h4,dl+.h4,dl+h4,figure+.h4,figure+h4,h1+.h4,h1+h4,h2+.h4,h2+h4,h3+.h4,h3+h4,h5+.h4,h5+h4,h6+.h4,h6+h4,img+.h4,img+h4,ol+.h4,ol+h4,p+.h4,p+h4,table+.h4,table+h4,ul+.h4,ul+h4{margin-top:1.6666666667em}@media only screen and (max-width:37.5em){.h4,h4{font-size:1em;line-height:1.125;margin-bottom:.625em}}.h5,h5{font-size:.875em;font-weight:600;letter-spacing:1px;line-height:1.25;margin-bottom:1.0714285714em;text-transform:uppercase}.h1+.h5,.h1+h5,.h2+.h5,.h2+h5,.h3+.h5,.h3+h5,.h4+.h5,.h4+h5,.h6+.h5,.h6+h5,blockquote+.h5,blockquote+h5,dl+.h5,dl+h5,figure+.h5,figure+h5,h1+.h5,h1+h5,h2+.h5,h2+h5,h3+.h5,h3+h5,h4+.h5,h4+h5,h6+.h5,h6+h5,img+.h5,img+h5,ol+.h5,ol+h5,p+.h5,p+h5,table+.h5,table+h5,ul+.h5,ul+h5{margin-top:2.1428571429em}.h6,h6{font-size:.75em;font-weight:600;letter-spacing:1px;line-height:1.25;margin-bottom:1.25em;text-transform:uppercase}.h1+.h6,.h1+h6,.h2+.h6,.h2+h6,.h3+.h6,.h3+h6,.h4+.h6,.h4+h6,.h5+.h6,.h5+h6,blockquote+.h6,blockquote+h6,dl+.h6,dl+h6,figure+.h6,figure+h6,h1+.h6,h1+h6,h2+.h6,h2+h6,h3+.h6,h3+h6,h4+.h6,h4+h6,h5+.h6,h5+h6,img+.h6,img+h6,ol+.h6,ol+h6,p+.h6,p+h6,table+.h6,table+h6,ul+.h6,ul+h6{margin-top:2.5em}.lead-paragraph{font-size:1.375em;font-weight:400;letter-spacing:inherit;line-height:1.25;margin-bottom:15px;margin-top:0;text-transform:inherit}@media only screen and (max-width:37.5em){.lead-paragraph{font-size:1.125em;font-weight:400;letter-spacing:inherit;line-height:1.25;text-transform:inherit}}.superheading{font-size:3em;font-weight:400;line-height:1.25;margin-bottom:.4166666667em}blockquote,dl,figure,ol,p,table,ul{margin-bottom:.9375em;margin-top:0}blockquote:last-child,dl:last-child,figure:last-child,ol:last-child,p:last-child,table:last-child,ul:last-child{margin-bottom:0}p+ol,p+ul{margin-top:-.3125em}ol ol,ol ul,ul ol,ul ul{margin-top:.5em}li{margin-bottom:.5em}li:last-child,nav li{margin-bottom:0}a{border-color:var(--pacific);border-style:dotted;border-width:0;color:var(--pacific);text-decoration:none}a.visited,a:visited{border-color:var(--teal);color:var(--teal)}a.hover,a:hover{border-color:var(--pacific-dark);border-style:solid;color:var(--pacific-dark)}a.focus,a:focus{border-style:solid;outline:thin dotted;outline-offset:1px}a.active,a:active{border-color:var(--navy);border-style:solid;color:var(--navy)}dd a,li a,p a{border-bottom-width:1px}nav a{border-bottom-width:0}ul{list-style:square;padding-left:1.125em}ul ul{list-style-type:circle}ol{padding-left:1.3125em}ol li:nth-last-child(n+10),ol li:nth-last-child(n+10)~li{margin-left:.5625rem}ol ol{list-style-type:lower-alpha}ol ol li{margin-left:0!important}ol ol ol{list-style-type:lower-roman}nav ol,nav ol ol,nav ul,nav ul ul{list-style:none;list-style-image:none}caption{margin-bottom:.625em;text-align:left}td,th{padding:.625em}thead td,thead th{background:var(--gray-5);color:var(--black);font-size:1em;padding:.7142857143em;vertical-align:top}tbody tr,thead{border-bottom:1px solid var(--gray)}th{font-weight:600;text-align:left}thead th .h2,thead th .h3,thead th .h4,thead th .h5,thead th .h6,thead th h2,thead th h3,thead th h4,thead th h5,thead th h6{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;text-transform:inherit}blockquote{margin-left:.9375em;margin-right:.9375em}@media only screen and (min-width:37.5625em){blockquote{margin-left:1.875em;margin-right:1.875em}}img{max-width:100%}figure{margin-left:0;margin-right:0}figure img{vertical-align:middle}code,pre{background:var(--gray-5);border-radius:4px;color:var(--black);font-family:Input Mono,Consolas,Monaco,Courier New,monospace}code{font-size:.8125em;padding:.2307692308em .2307692308em 0}pre{display:block;overflow-wrap:break-word;padding:.625em .9375em;white-space:pre-wrap}pre code{background-color:transparent;padding:0}button.a-btn::-moz-focus-inner,input.a-btn::-moz-focus-inner{border:0}.a-btn{align-items:center;appearance:none;border:0;border-radius:.25em;box-sizing:border-box;cursor:pointer;display:flex;font-size:1em;font-weight:500;gap:.625rem;height:fit-content;justify-content:center;margin:0;padding:.5em .875em;text-align:center;text-decoration:none;transition:background-color .1s;width:fit-content}.a-btn,.a-btn:link,.a-btn:visited{background-color:var(--pacific);color:var(--white)}.a-btn.focus,.a-btn.hover,.a-btn:focus,.a-btn:hover{background-color:var(--pacific-dark);color:var(--white)}.a-btn.focus,.a-btn:focus{outline:1px dotted var(--pacific);outline-offset:1px}.a-btn.active,.a-btn:active{background-color:var(--navy)}.a-btn--secondary,.a-btn--secondary:link,.a-btn--secondary:visited{background-color:var(--white);box-shadow:0 0 0 1px var(--pacific) inset;color:var(--pacific)}.a-btn--secondary.focus,.a-btn--secondary.hover,.a-btn--secondary:focus,.a-btn--secondary:hover{background-color:var(--pacific-10);box-shadow:0 0 0 1px var(--pacific-dark) inset;color:var(--pacific-dark)}.a-btn--secondary.focus,.a-btn--secondary:focus{outline-color:var(--pacific)}.a-btn--secondary.active,.a-btn--secondary:active{background-color:var(--pacific-20);box-shadow:0 0 0 1px var(--navy) inset;color:var(--navy)}.a-btn--warning,.a-btn--warning:link,.a-btn--warning:visited{background-color:var(--red-mid-dark);color:var(--white)}.a-btn--warning.focus,.a-btn--warning.hover,.a-btn--warning:focus,.a-btn--warning:hover{background-color:var(--red-dark)}.a-btn--warning.focus,.a-btn--warning:focus{outline-color:var(--red-mid-dark)}.a-btn--warning.active,.a-btn--warning:active{background-color:var(--gray-dark)}.a-btn--disabled,.a-btn--disabled.active,.a-btn--disabled.focus,.a-btn--disabled.hover,.a-btn--disabled:active,.a-btn--disabled:focus,.a-btn--disabled:hover,.a-btn--disabled:link,.a-btn--disabled:visited,.a-btn[disabled],.a-btn[disabled].active,.a-btn[disabled].focus,.a-btn[disabled].hover,.a-btn[disabled]:active,.a-btn[disabled]:focus,.a-btn[disabled]:hover,.a-btn[disabled]:link,.a-btn[disabled]:visited{background-color:var(--gray-20);color:var(--gray-dark);cursor:default;cursor:not-allowed}.a-btn--disabled.focus,.a-btn--disabled:focus,.a-btn[disabled].focus,.a-btn[disabled]:focus{outline-color:var(--gray-20)}@media only screen and (max-width:37.5em){.a-btn--full-on-xs{width:100%}}.a-btn:has(svg+span) span{order:3}.a-btn:has(span+svg) svg{flex:none;order:3}.a-btn:not(.a-btn--hide-icon):has(span+svg):before,.a-btn:not(.a-btn--hide-icon):has(svg+span):before{border-left:1px solid var(--pacific-60);content:"";order:2;place-self:normal}.a-btn--secondary:has(svg):before{border-color:var(--pacific-60)!important}.a-btn--warning:has(svg):before{border-color:var(--red-60)!important}.a-btn--disabled:has(svg):before,.a-btn[disabled]:has(svg):before{border-color:var(--gray-60)!important}.a-btn--hide-icon svg{display:none}:host{display:flex;width:fit-content}`;var ee=class ee extends f{static get properties(){return{isDisabled:{type:Boolean},type:{type:String}}}constructor(){super(),this.isDisabled=!1,this.type=""}get _btnClass(){let e="a-btn";switch(this.type){case"secondary":e+=" a-btn--secondary";break;case"warning":e+=" a-btn--warning";break;case"disabled":e+=" a-btn--disabled";break}return e}render(){return Z`<button class="${this._btnClass}" ?disabled="${this.isDisabled}"><slot></slot></button>`}static init(){window.customElements.get("cfpb-button")||window.customElements.define("cfpb-button",ee)}};C(ee,"styles",N`${P(Je)}`);var X=ee;var u,Ye,Xe,ve,$e,te=class te extends f{constructor(){super();_e(this,u);C(this,"fileInput",me());C(this,"fileDetails",me());y(this,u,ve).call(this)}static get properties(){return{isDetailHidden:{type:Boolean},fileName:{type:String},accept:{type:String},value:{type:String},files:{type:FileList}}}render(){return Z`<cfpb-button type="secondary" @click="${()=>{this.fileInput.value.click()}}"><slot></slot></cfpb-button><input class="a-btn a-btn--secondary" type="file" hidden accept="${this.accept}" @input="${()=>y(this,u,$e).call(this)}" @cancel="${()=>y(this,u,$e).call(this)}" ${be(this.fileInput)}><div part="upload-details" ?hidden="${this.isDetailHidden}" ${be(this.fileDetails)}><h4>File added</h4><ul><li>${this.fileName}</li></ul><p>To remove or replace your file, select a new file and upload again.</p></div>`}static init(){X.init(),window.customElements.get("cfpb-file-upload")||window.customElements.define("cfpb-file-upload",te)}};u=new WeakSet,Ye=function(t){let i=t;if(i.indexOf("\\")>-1){let s=i.split("\\");i=s[s.length-1]}return i},Xe=function(){this.fileName=y(this,u,Ye).call(this,this.fileInput.value.value),this.value=this.fileInput.value.value,this.files=this.fileInput.value.files,this.isDetailHidden=!1},ve=function(){this.fileName="",this.value="",this.files={},this.isDetailHidden=!0},$e=function(){this.fileInput.value.value==""?y(this,u,ve).call(this):y(this,u,Xe).call(this)},C(te,"styles",N`${P(Ze)}`);var Qe=te;})();
|
|
4
5
|
/*! Bundled license information:
|
|
5
6
|
|
|
6
7
|
@lit/reactive-element/css-tag.js:
|