@atomic-ui/ui 0.13.1 → 0.13.2
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/custom-elements.json +474 -3
- package/dist/base/FieldElement.d.ts +10 -0
- package/dist/{chunk-2BGOBD6Y.js → chunk-273AYERA.js} +2 -2
- package/dist/{chunk-EUOBFMWC.js → chunk-6IQIFKY6.js} +2 -2
- package/dist/{chunk-WEX5RKVC.js → chunk-BTACNWU6.js} +2 -2
- package/dist/{chunk-5OCDXZXG.js → chunk-C767LTJE.js} +3 -2
- package/dist/chunk-C767LTJE.js.map +1 -0
- package/dist/{chunk-RNFGIXJ7.js → chunk-CN4J5RS2.js} +2 -2
- package/dist/{chunk-SRXC6ZPM.js → chunk-DJLUWM3C.js} +10 -1
- package/dist/chunk-DJLUWM3C.js.map +1 -0
- package/dist/{chunk-F2MFV7RM.js → chunk-DKVLA7AF.js} +2 -2
- package/dist/{chunk-P5FAKEFK.js → chunk-GIIJ32FN.js} +2 -2
- package/dist/{chunk-LSEK5MEZ.js → chunk-H5HWJ2D4.js} +2 -2
- package/dist/{chunk-B2GWXXIW.js → chunk-JDKOHA3B.js} +2 -2
- package/dist/{chunk-G7CVRNY5.js → chunk-JX5RJRME.js} +5 -4
- package/dist/chunk-JX5RJRME.js.map +1 -0
- package/dist/{chunk-WT7MHYJR.js → chunk-KDU2POFS.js} +11 -5
- package/dist/chunk-KDU2POFS.js.map +1 -0
- package/dist/{chunk-EA3M6KPB.js → chunk-NCVBRUJM.js} +6 -1
- package/dist/chunk-NCVBRUJM.js.map +1 -0
- package/dist/{chunk-NZSKUEYS.js → chunk-VR543SMV.js} +2 -2
- package/dist/{chunk-QJBRENLI.js → chunk-WGFHYSXH.js} +7 -3
- package/dist/{chunk-QJBRENLI.js.map → chunk-WGFHYSXH.js.map} +1 -1
- package/dist/{chunk-PII4SJL5.js → chunk-X57BTN6V.js} +14 -2
- package/dist/chunk-X57BTN6V.js.map +1 -0
- package/dist/components/app-bar.d.ts +5 -4
- package/dist/components/app-bar.js +3 -3
- package/dist/components/app-ui.d.ts +4 -0
- package/dist/components/app-ui.js +2 -2
- package/dist/components/checkbox-group.d.ts +4 -0
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip-group.d.ts +1 -0
- package/dist/components/chip-group.js +2 -2
- package/dist/components/chip.js +1 -1
- package/dist/components/date-input.d.ts +4 -0
- package/dist/components/date-input.js +2 -2
- package/dist/components/journey.d.ts +16 -0
- package/dist/components/journey.js +2 -2
- package/dist/components/navigation.d.ts +6 -0
- package/dist/components/navigation.js +5 -3
- package/dist/components/page.js +1 -1
- package/dist/components/radio-group.d.ts +4 -0
- package/dist/components/radio-group.js +2 -2
- package/dist/components/select.d.ts +4 -0
- package/dist/components/select.js +2 -2
- package/dist/components/switch.d.ts +8 -0
- package/dist/components/switch.js +2 -2
- package/dist/components/text-input.d.ts +4 -0
- package/dist/components/text-input.js +2 -2
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -17
- package/dist/standalone/atomic-ui.js +149 -120
- package/dist/standalone/atomic-ui.js.map +3 -3
- package/package.json +2 -2
- package/dist/chunk-5OCDXZXG.js.map +0 -1
- package/dist/chunk-EA3M6KPB.js.map +0 -1
- package/dist/chunk-G7CVRNY5.js.map +0 -1
- package/dist/chunk-PII4SJL5.js.map +0 -1
- package/dist/chunk-SRXC6ZPM.js.map +0 -1
- package/dist/chunk-WT7MHYJR.js.map +0 -1
- /package/dist/{chunk-2BGOBD6Y.js.map → chunk-273AYERA.js.map} +0 -0
- /package/dist/{chunk-EUOBFMWC.js.map → chunk-6IQIFKY6.js.map} +0 -0
- /package/dist/{chunk-WEX5RKVC.js.map → chunk-BTACNWU6.js.map} +0 -0
- /package/dist/{chunk-RNFGIXJ7.js.map → chunk-CN4J5RS2.js.map} +0 -0
- /package/dist/{chunk-F2MFV7RM.js.map → chunk-DKVLA7AF.js.map} +0 -0
- /package/dist/{chunk-P5FAKEFK.js.map → chunk-GIIJ32FN.js.map} +0 -0
- /package/dist/{chunk-LSEK5MEZ.js.map → chunk-H5HWJ2D4.js.map} +0 -0
- /package/dist/{chunk-B2GWXXIW.js.map → chunk-JDKOHA3B.js.map} +0 -0
- /package/dist/{chunk-NZSKUEYS.js.map → chunk-VR543SMV.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* @atomic-ui/ui version 0.13.
|
|
2
|
-
var Yt=globalThis,
|
|
3
|
-
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),xi=/'/g,yi=/"/g,wi=/^(?:script|style|textarea|title)$/i,ei=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),o=ei(1),y=ei(2),qr=ei(3),P=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),ki=new WeakMap,Y=J.createTreeWalker(J,129);function Si(n,e){if(!Qt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return bi!==void 0?bi.createHTML(e):e}var Ti=(n,e)=>{let i=n.length-1,r=[],s,c=e===2?"<svg>":e===3?"<math>":"",p=se;for(let $=0;$<i;$++){let g=n[$],k,_,A=-1,F=0;for(;F<g.length&&(p.lastIndex=F,_=p.exec(g),_!==null);)F=p.lastIndex,p===se?_[1]==="!--"?p=fi:_[1]!==void 0?p=$i:_[2]!==void 0?(wi.test(_[2])&&(s=RegExp("</"+_[2],"g")),p=X):_[3]!==void 0&&(p=X):p===X?_[0]===">"?(p=s??se,A=-1):_[1]===void 0?A=-2:(A=p.lastIndex-_[2].length,k=_[1],p=_[3]===void 0?X:_[3]==='"'?yi:xi):p===yi||p===xi?p=X:p===fi||p===$i?p=se:(p=X,s=void 0);let G=p===X&&n[$+1].startsWith("/>")?" ":"";c+=p===se?g+Zi:A>=0?(r.push(k),g.slice(0,A)+Jt+g.slice(A)+j+G):g+j+(A===-2?$:G)}return[Si(n,c+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},de=class n{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let c=0,p=0,$=e.length-1,g=this.parts,[k,_]=Ti(e,i);if(this.el=n.createElement(k,r),Y.currentNode=this.el.content,i===2||i===3){let A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(s=Y.nextNode())!==null&&g.length<$;){if(s.nodeType===1){if(s.hasAttributes())for(let A of s.getAttributeNames())if(A.endsWith(Jt)){let F=_[p++],G=s.getAttribute(A).split(j),ve=/([.?@])?(.*)/.exec(F);g.push({type:1,index:c,name:ve[2],strings:G,ctor:ve[1]==="."?Te:ve[1]==="?"?ze:ve[1]==="@"?Me:Q}),s.removeAttribute(A)}else A.startsWith(j)&&(g.push({type:6,index:c}),s.removeAttribute(A));if(wi.test(s.tagName)){let A=s.textContent.split(j),F=A.length-1;if(F>0){s.textContent=we?we.emptyScript:"";for(let G=0;G<F;G++)s.append(A[G],ne()),Y.nextNode(),g.push({type:2,index:++c});s.append(A[F],ne())}}}else if(s.nodeType===8)if(s.data===Zt)g.push({type:2,index:c});else{let A=-1;for(;(A=s.data.indexOf(j,A+1))!==-1;)g.push({type:7,index:c}),A+=j.length-1}c++}}static createElement(e,i){let r=J.createElement("template");return r.innerHTML=e,r}};function Z(n,e,i=n,r){if(e===P)return e;let s=r!==void 0?i._$Co?.[r]:i._$Cl,c=le(e)?void 0:e._$litDirective$;return s?.constructor!==c&&(s?._$AO?.(!1),c===void 0?s=void 0:(s=new c(n),s._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=s:i._$Cl=s),s!==void 0&&(e=Z(n,s._$AS(n,e.values),s,r)),e}var Se=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,s=(e?.creationScope??J).importNode(i,!0);Y.currentNode=s;let c=Y.nextNode(),p=0,$=0,g=r[0];for(;g!==void 0;){if(p===g.index){let k;g.type===2?k=new ie(c,c.nextSibling,this,e):g.type===1?k=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(k=new Ee(c,this,e)),this._$AV.push(k),g=r[++$]}p!==g?.index&&(c=Y.nextNode(),p++)}return Y.currentNode=J,s}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},ie=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,s){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Z(this,e,i),le(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==P&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vi(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!==l&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(J.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=de.createElement(Si(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(i);else{let c=new Se(s,this),p=c.u(this.options);c.p(i),this.T(p),this._$AH=c}}_$AC(e){let i=ki.get(e.strings);return i===void 0&&ki.set(e.strings,i=new de(e)),i}k(e){Qt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,s=0;for(let c of e)s===i.length?i.push(r=new n(this.O(ne()),this.O(ne()),this,this.options)):r=i[s],r._$AI(c),s++;s<i.length&&(this._$AR(r&&r._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=gi(e).nextSibling;gi(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,s,c){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,s){let c=this.strings,p=!1;if(c===void 0)e=Z(this,e,i,0),p=!le(e)||e!==this._$AH&&e!==P,p&&(this._$AH=e);else{let $=e,g,k;for(e=c[0],g=0;g<c.length-1;g++)k=Z(this,$[r+g],i,g),k===P&&(k=this._$AH[g]),p||=!le(k)||k!==this._$AH[g],k===l?e=l:e!==l&&(e+=(k??"")+c[g+1]),this._$AH[g]=k}p&&!s&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Te=class extends Q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ze=class extends Q{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Me=class extends Q{constructor(e,i,r,s,c){super(e,i,r,s,c),this.type=5}_$AI(e,i=this){if((e=Z(this,e,i,0)??l)===P)return;let r=this._$AH,s=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==l&&(r===l||s);s&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ee=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Z(this,e)}},B={M:Jt,P:j,A:Zt,C:1,L:Ti,R:Se,D:vi,V:Z,I:ie,H:Q,N:ze,U:Me,B:Te,F:Ee},Qi=Yt.litHtmlPolyfillSupport;Qi?.(de,ie),(Yt.litHtmlVersions??=[]).push("3.3.3");var ce=(n,e,i)=>{let r=i?.renderBefore??e,s=r._$litPart$;if(s===void 0){let c=i?.renderBefore??null;r._$litPart$=s=new ie(e.insertBefore(ne(),c),c,void 0,i??{})}return s._$AI(n),s};var ti=null,zi={boundAttributeSuffix:B.M,marker:B.P,markerMatch:B.A,HTML_RESULT:B.C,getTemplateHtml:B.L,overrideDirectiveResolve:(n,e)=>class extends n{_$AS(i,r){return e(this,r)}},patchDirectiveResolve:(n,e)=>{if(n.prototype._$AS.name!==e.name){ti??=n.prototype._$AS.name;for(let i=n.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(ti))return void(i[ti]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(n,e){n._$litDirective$=e},getAttributePartCommittedValue:(n,e,i)=>{let r=P;return n.j=s=>r=s,n._$AI(e,n,i),r},connectedDisconnectable:n=>({...n,_$AU:!0}),resolveDirective:B.V,AttributePart:B.H,PropertyPart:B.B,BooleanAttributePart:B.N,EventPart:B.U,ElementPart:B.F,TemplateInstance:B.R,isIterable:B.D,ChildPart:B.I};var re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:Gr}=B;var Mi=n=>n===null||typeof n!="object"&&typeof n!="function";var Ei=(n,e)=>e===void 0?n?._$litType$!==void 0:n?._$litType$===e,Ai=n=>n?._$litType$?.h!=null;var Ci=n=>n.strings===void 0;var{TemplateInstance:er,isIterable:tr,resolveDirective:Ii,ChildPart:pe,ElementPart:ir}=zi,Ri=(n,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let r,s,c,p=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let k=g.data;if(k.startsWith("lit-part")){if(p.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${s})`);c=rr(n,g,p,i),r===void 0&&(r=c),s??=g}else if(k.startsWith("lit-node"))or(g,p,i);else if(k.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=ar(g,c,p)}}if(r===void 0){let k=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${k}.`)}e._$litPart$=r},rr=(n,e,i,r)=>{let s,c;if(i.length===0)c=new pe(e,null,void 0,r),s=n;else{let p=i[i.length-1];if(p.type==="template-instance")c=new pe(e,null,p.instance,r),p.instance._$AV.push(c),s=p.result.values[p.instancePartIndex++],p.templatePartIndex++;else if(p.type==="iterable"){c=new pe(e,null,p.part,r);let $=p.iterator.next();if($.done)throw s=void 0,p.done=!0,Error("Unhandled shorter than expected iterable");s=$.value,p.part._$AH.push(c)}else c=new pe(e,null,p.part,r)}if(s=Ii(c,s),s===P)i.push({part:c,type:"leaf"});else if(Mi(s))i.push({part:c,type:"leaf"}),c._$AH=s;else if(Ei(s)){if(Ai(s))throw Error("compiled templates are not supported");let p="lit-part "+sr(s);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=pe.prototype._$AC(s),g=new er($,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:s}),c._$AH=g}}else tr(s)?(i.push({part:c,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),c._$AH=[]):(i.push({part:c,type:"leaf"}),c._$AH=s??"");return c},ar=(n,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=n;let r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},or=(n,e,i)=>{let r=/lit-node (\d+)/.exec(n.data),s=parseInt(r[1]),c=n.nextElementSibling;if(c===null)throw Error("could not find node for attribute parts");c.removeAttribute("defer-hydration");let p=e[e.length-1];if(p.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=p.instance;for(;;){let g=$._$AD.parts[p.templatePartIndex];if(g===void 0||g.type!==re.ATTRIBUTE&&g.type!==re.ELEMENT||g.index!==s)break;if(g.type===re.ATTRIBUTE){let k=new g.ctor(c,g.name,g.strings,p.instance,i),_=Ci(k)?p.result.values[p.instancePartIndex]:p.result.values,A=!(k.type===re.EVENT||k.type===re.PROPERTY);k._$AI(_,k,p.instancePartIndex,A),p.instancePartIndex+=g.strings.length-1,$._$AV.push(k)}else{let k=new ir(c,p.instance,i);Ii(k,p.result.values[p.instancePartIndex++]),$._$AV.push(k)}p.templatePartIndex++}}},Li=new WeakMap,sr=n=>{let e=Li.get(n.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let s of n.strings)for(let c=0;c<s.length;c++)i[c%2]=33*i[c%2]^s.charCodeAt(c);let r=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(r),Li.set(n.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:n})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"observedAttributes").get;Object.defineProperty(n,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(p,$,g){p==="defer-hydration"&&g===null&&r.call(this),i.call(this,p,$,g)};let r=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};let s=n.prototype.createRenderRoot;n.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let c=Object.getPrototypeOf(n.prototype).update;n.prototype.update=function(p){let $=this.render();if(c.call(this,p),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let k=g.slice(18);this.removeAttribute(k),this.removeAttribute(g)}Ri($,this.renderRoot,this.renderOptions)}else ce($,this.renderRoot,this.renderOptions)}};var Ae=globalThis,Ce=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ii=Symbol(),_i=new WeakMap,he=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ii)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(Ce&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=_i.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&_i.set(i,e))}return e}toString(){return this.cssText}},L=n=>new he(typeof n=="string"?n:n+"",void 0,ii),u=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((r,s,c)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[c+1],n[0]);return new he(i,n,ii)},Hi=(n,e)=>{if(Ce)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),s=Ae.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,n.appendChild(r)}},ri=Ce?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return L(i)})(n):n;var{is:nr,defineProperty:lr,getOwnPropertyDescriptor:dr,getOwnPropertyNames:cr,getOwnPropertySymbols:pr,getPrototypeOf:hr}=Object,Le=globalThis,Bi=Le.trustedTypes,ur=Bi?Bi.emptyScript:"",mr=Le.reactiveElementPolyfillSupport,ue=(n,e)=>n,ai={toAttribute(n,e){switch(e){case Boolean:n=n?ur:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Pi=(n,e)=>!nr(n,e),Ni={attribute:!0,type:String,converter:ai,reflect:!1,useDefault:!1,hasChanged:Pi};Symbol.metadata??=Symbol("metadata"),Le.litPropertyMetadata??=new WeakMap;var U=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ni){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&lr(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){let{get:s,set:c}=dr(this.prototype,e)??{get(){return this[i]},set(p){this[i]=p}};return{get:s,set(p){let $=s?.call(this);c?.call(this,p),this.requestUpdate(e,$,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ni}static _$Ei(){if(this.hasOwnProperty(ue("elementProperties")))return;let e=hr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ue("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ue("properties"))){let i=this.properties,r=[...cr(i),...pr(i)];for(let s of r)this.createProperty(s,i[s])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let s of r)i.unshift(ri(s))}else e!==void 0&&i.push(ri(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r: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(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Hi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){let c=(r.converter?.toAttribute!==void 0?r.converter:ai).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(e,i){let r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),p=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:ai;this._$Em=s;let $=p.fromAttribute(i,c.type);this[s]=$??this._$Ej?.get(s)??$,this._$Em=null}}requestUpdate(e,i,r,s=!1,c){if(e!==void 0){let p=this.constructor;if(s===!1&&(c=this[e]),r??=p.getPropertyOptions(e),!((r.hasChanged??Pi)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(p._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:s,wrapped:c},p){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,p??i??this[e]),c!==!0||p!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,c]of r){let{wrapped:p}=c,$=this[s];p!==!0||this._$AL.has(s)||$===void 0||this.C(s,void 0,c,$)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),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.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[ue("elementProperties")]=new Map,U[ue("finalized")]=new Map,mr?.({ReactiveElement:U}),(Le.reactiveElementVersions??=[]).push("2.1.2");var oi=globalThis,W=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ce(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};W._$litElement$=!0,W.finalized=!0,oi.litElementHydrateSupport?.({LitElement:W});var gr=oi.litElementPolyfillSupport;gr?.({LitElement:W});(oi.litElementVersions??=[]).push("4.2.2");var d=(n,e)=>L(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:d("color.brand.default","#1f4ed8"),brandHover:d("color.brand.hover","#1b45be"),brandActive:d("color.brand.active","#183ba4"),brandSubtle:d("color.brand.subtle","#e4eafa"),onBrand:d("color.text.on-brand","#ffffff"),surfaceCard:d("color.surface.card","#ffffff"),surfaceInset:d("color.surface.inset","#f4f4f4"),surfaceSubtle:d("color.surface.subtle","#e4eafa"),text:d("color.text.default","#1a1a1a"),textMuted:d("color.text.muted","#717171"),textPlaceholder:d("color.text.placeholder","#767676"),textHeading:d("color.text.heading","#1f4ed8"),link:d("color.text.link","#1f4ed8"),linkHover:d("color.text.link-hover","#193ead"),border:d("color.border.default","#929292"),borderStrong:d("color.border.strong","#818181"),danger:d("color.status.danger.default","#c8102e"),dangerText:d("color.status.danger.text","#c8102e"),dangerSubtle:d("color.status.danger.subtle","#f8e2e6"),warning:d("color.status.warning.default","#b45309"),warningText:d("color.status.warning.text","#b45309"),warningSubtle:d("color.status.warning.subtle","#f6eae1"),success:d("color.status.success.default","#047857"),successText:d("color.status.success.text","#047857"),successSubtle:d("color.status.success.subtle","#e0f0ea"),info:d("color.status.info.default","#1f4ed8"),infoText:d("color.status.info.text","#1f4ed8"),infoSubtle:d("color.status.info.subtle","#e4eafa"),fontBody:d("font.family.body","system-ui, sans-serif"),fontHeading:d("font.family.heading","system-ui, sans-serif"),fontMono:d("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:d("font.family.eyebrow","inherit"),focusShadow:d("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:d("focus.ring.offset","2px"),targetMin:d("target.min","24px"),radiusSm:d("radius.sm","2px"),radius:d("radius.md","4px"),radiusLg:d("radius.lg","8px"),borderThin:d("border.width.thin","1px"),borderThick:d("border.width.thick","2px"),radiusXs:d("radius.xs","2px"),radiusXl:d("radius.xl","12px"),radius2xl:d("radius.2xl","16px"),hairline:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:L("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:d("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:d("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:d("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:d("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:d("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:d("font.tracking.tight","-0.02em"),trackingWide:d("font.tracking.wide","0.06em")},w=n=>L(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),a=n=>d(`space.${String(n).replace(".","-")}`,`${n*4}px`),b=n=>d(`font.size.${n}`,"1rem"),O=n=>d(`font.line-height.${n}`,"1.5"),m=n=>d(`font.weight.${n}`,"400"),N=u`
|
|
1
|
+
/* @atomic-ui/ui version 0.13.2, standalone. */
|
|
2
|
+
var Yt=globalThis,bi=s=>s,we=Yt.trustedTypes,fi=we?we.createPolicy("lit-html",{createHTML:s=>s}):void 0,Jt="$lit$",U=`lit$${Math.random().toFixed(9).slice(2)}$`,Zt="?"+U,Zi=`<${Zt}>`,J=document,ne=()=>J.createComment(""),le=s=>s===null||typeof s!="object"&&typeof s!="function",Qt=Array.isArray,wi=s=>Qt(s)||typeof s?.[Symbol.iterator]=="function",Xt=`[
|
|
3
|
+
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$i=/-->/g,xi=/>/g,X=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),yi=/'/g,ki=/"/g,Si=/^(?:script|style|textarea|title)$/i,ei=s=>(e,...i)=>({_$litType$:s,strings:e,values:i}),o=ei(1),y=ei(2),Fr=ei(3),P=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),vi=new WeakMap,Y=J.createTreeWalker(J,129);function Ti(s,e){if(!Qt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return fi!==void 0?fi.createHTML(e):e}var zi=(s,e)=>{let i=s.length-1,r=[],n,c=e===2?"<svg>":e===3?"<math>":"",p=se;for(let $=0;$<i;$++){let g=s[$],k,_,A=-1,j=0;for(;j<g.length&&(p.lastIndex=j,_=p.exec(g),_!==null);)j=p.lastIndex,p===se?_[1]==="!--"?p=$i:_[1]!==void 0?p=xi:_[2]!==void 0?(Si.test(_[2])&&(n=RegExp("</"+_[2],"g")),p=X):_[3]!==void 0&&(p=X):p===X?_[0]===">"?(p=n??se,A=-1):_[1]===void 0?A=-2:(A=p.lastIndex-_[2].length,k=_[1],p=_[3]===void 0?X:_[3]==='"'?ki:yi):p===ki||p===yi?p=X:p===$i||p===xi?p=se:(p=X,n=void 0);let G=p===X&&s[$+1].startsWith("/>")?" ":"";c+=p===se?g+Zi:A>=0?(r.push(k),g.slice(0,A)+Jt+g.slice(A)+U+G):g+U+(A===-2?$:G)}return[Ti(s,c+(s[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},de=class s{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let c=0,p=0,$=e.length-1,g=this.parts,[k,_]=zi(e,i);if(this.el=s.createElement(k,r),Y.currentNode=this.el.content,i===2||i===3){let A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(n=Y.nextNode())!==null&&g.length<$;){if(n.nodeType===1){if(n.hasAttributes())for(let A of n.getAttributeNames())if(A.endsWith(Jt)){let j=_[p++],G=n.getAttribute(A).split(U),ve=/([.?@])?(.*)/.exec(j);g.push({type:1,index:c,name:ve[2],strings:G,ctor:ve[1]==="."?Te:ve[1]==="?"?ze:ve[1]==="@"?Me:Q}),n.removeAttribute(A)}else A.startsWith(U)&&(g.push({type:6,index:c}),n.removeAttribute(A));if(Si.test(n.tagName)){let A=n.textContent.split(U),j=A.length-1;if(j>0){n.textContent=we?we.emptyScript:"";for(let G=0;G<j;G++)n.append(A[G],ne()),Y.nextNode(),g.push({type:2,index:++c});n.append(A[j],ne())}}}else if(n.nodeType===8)if(n.data===Zt)g.push({type:2,index:c});else{let A=-1;for(;(A=n.data.indexOf(U,A+1))!==-1;)g.push({type:7,index:c}),A+=U.length-1}c++}}static createElement(e,i){let r=J.createElement("template");return r.innerHTML=e,r}};function Z(s,e,i=s,r){if(e===P)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,c=le(e)?void 0:e._$litDirective$;return n?.constructor!==c&&(n?._$AO?.(!1),c===void 0?n=void 0:(n=new c(s),n._$AT(s,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Z(s,n._$AS(s,e.values),n,r)),e}var Se=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??J).importNode(i,!0);Y.currentNode=n;let c=Y.nextNode(),p=0,$=0,g=r[0];for(;g!==void 0;){if(p===g.index){let k;g.type===2?k=new ie(c,c.nextSibling,this,e):g.type===1?k=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(k=new Ee(c,this,e)),this._$AV.push(k),g=r[++$]}p!==g?.index&&(c=Y.nextNode(),p++)}return Y.currentNode=J,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},ie=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Z(this,e,i),le(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==P&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wi(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!==l&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(J.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=de.createElement(Ti(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let c=new Se(n,this),p=c.u(this.options);c.p(i),this.T(p),this._$AH=c}}_$AC(e){let i=vi.get(e.strings);return i===void 0&&vi.set(e.strings,i=new de(e)),i}k(e){Qt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let c of e)n===i.length?i.push(r=new s(this.O(ne()),this.O(ne()),this,this.options)):r=i[n],r._$AI(c),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=bi(e).nextSibling;bi(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,c){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,n){let c=this.strings,p=!1;if(c===void 0)e=Z(this,e,i,0),p=!le(e)||e!==this._$AH&&e!==P,p&&(this._$AH=e);else{let $=e,g,k;for(e=c[0],g=0;g<c.length-1;g++)k=Z(this,$[r+g],i,g),k===P&&(k=this._$AH[g]),p||=!le(k)||k!==this._$AH[g],k===l?e=l:e!==l&&(e+=(k??"")+c[g+1]),this._$AH[g]=k}p&&!n&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Te=class extends Q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ze=class extends Q{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Me=class extends Q{constructor(e,i,r,n,c){super(e,i,r,n,c),this.type=5}_$AI(e,i=this){if((e=Z(this,e,i,0)??l)===P)return;let r=this._$AH,n=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==l&&(r===l||n);n&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ee=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Z(this,e)}},B={M:Jt,P:U,A:Zt,C:1,L:zi,R:Se,D:wi,V:Z,I:ie,H:Q,N:ze,U:Me,B:Te,F:Ee},Qi=Yt.litHtmlPolyfillSupport;Qi?.(de,ie),(Yt.litHtmlVersions??=[]).push("3.3.3");var ce=(s,e,i)=>{let r=i?.renderBefore??e,n=r._$litPart$;if(n===void 0){let c=i?.renderBefore??null;r._$litPart$=n=new ie(e.insertBefore(ne(),c),c,void 0,i??{})}return n._$AI(s),n};var ti=null,Mi={boundAttributeSuffix:B.M,marker:B.P,markerMatch:B.A,HTML_RESULT:B.C,getTemplateHtml:B.L,overrideDirectiveResolve:(s,e)=>class extends s{_$AS(i,r){return e(this,r)}},patchDirectiveResolve:(s,e)=>{if(s.prototype._$AS.name!==e.name){ti??=s.prototype._$AS.name;for(let i=s.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(ti))return void(i[ti]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(s,e){s._$litDirective$=e},getAttributePartCommittedValue:(s,e,i)=>{let r=P;return s.j=n=>r=n,s._$AI(e,s,i),r},connectedDisconnectable:s=>({...s,_$AU:!0}),resolveDirective:B.V,AttributePart:B.H,PropertyPart:B.B,BooleanAttributePart:B.N,EventPart:B.U,ElementPart:B.F,TemplateInstance:B.R,isIterable:B.D,ChildPart:B.I};var re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:Kr}=B;var Ei=s=>s===null||typeof s!="object"&&typeof s!="function";var Ai=(s,e)=>e===void 0?s?._$litType$!==void 0:s?._$litType$===e,Ci=s=>s?._$litType$?.h!=null;var Li=s=>s.strings===void 0;var{TemplateInstance:er,isIterable:tr,resolveDirective:Ri,ChildPart:pe,ElementPart:ir}=Mi,_i=(s,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let r,n,c,p=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let k=g.data;if(k.startsWith("lit-part")){if(p.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${n})`);c=rr(s,g,p,i),r===void 0&&(r=c),n??=g}else if(k.startsWith("lit-node"))or(g,p,i);else if(k.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=ar(g,c,p)}}if(r===void 0){let k=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${k}.`)}e._$litPart$=r},rr=(s,e,i,r)=>{let n,c;if(i.length===0)c=new pe(e,null,void 0,r),n=s;else{let p=i[i.length-1];if(p.type==="template-instance")c=new pe(e,null,p.instance,r),p.instance._$AV.push(c),n=p.result.values[p.instancePartIndex++],p.templatePartIndex++;else if(p.type==="iterable"){c=new pe(e,null,p.part,r);let $=p.iterator.next();if($.done)throw n=void 0,p.done=!0,Error("Unhandled shorter than expected iterable");n=$.value,p.part._$AH.push(c)}else c=new pe(e,null,p.part,r)}if(n=Ri(c,n),n===P)i.push({part:c,type:"leaf"});else if(Ei(n))i.push({part:c,type:"leaf"}),c._$AH=n;else if(Ai(n)){if(Ci(n))throw Error("compiled templates are not supported");let p="lit-part "+sr(n);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=pe.prototype._$AC(n),g=new er($,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:n}),c._$AH=g}}else tr(n)?(i.push({part:c,type:"iterable",value:n,iterator:n[Symbol.iterator](),done:!1}),c._$AH=[]):(i.push({part:c,type:"leaf"}),c._$AH=n??"");return c},ar=(s,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=s;let r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},or=(s,e,i)=>{let r=/lit-node (\d+)/.exec(s.data),n=parseInt(r[1]),c=s.nextElementSibling;if(c===null)throw Error("could not find node for attribute parts");c.removeAttribute("defer-hydration");let p=e[e.length-1];if(p.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=p.instance;for(;;){let g=$._$AD.parts[p.templatePartIndex];if(g===void 0||g.type!==re.ATTRIBUTE&&g.type!==re.ELEMENT||g.index!==n)break;if(g.type===re.ATTRIBUTE){let k=new g.ctor(c,g.name,g.strings,p.instance,i),_=Li(k)?p.result.values[p.instancePartIndex]:p.result.values,A=!(k.type===re.EVENT||k.type===re.PROPERTY);k._$AI(_,k,p.instancePartIndex,A),p.instancePartIndex+=g.strings.length-1,$._$AV.push(k)}else{let k=new ir(c,p.instance,i);Ri(k,p.result.values[p.instancePartIndex++]),$._$AV.push(k)}p.templatePartIndex++}}},Ii=new WeakMap,sr=s=>{let e=Ii.get(s.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let n of s.strings)for(let c=0;c<n.length;c++)i[c%2]=33*i[c%2]^n.charCodeAt(c);let r=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(r),Ii.set(s.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:s})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"observedAttributes").get;Object.defineProperty(s,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=s.prototype.attributeChangedCallback;s.prototype.attributeChangedCallback=function(p,$,g){p==="defer-hydration"&&g===null&&r.call(this),i.call(this,p,$,g)};let r=s.prototype.connectedCallback;s.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};let n=s.prototype.createRenderRoot;s.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):n.call(this)};let c=Object.getPrototypeOf(s.prototype).update;s.prototype.update=function(p){let $=this.render();if(c.call(this,p),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let k=g.slice(18);this.removeAttribute(k),this.removeAttribute(g)}_i($,this.renderRoot,this.renderOptions)}else ce($,this.renderRoot,this.renderOptions)}};var Ae=globalThis,Ce=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ii=Symbol(),Hi=new WeakMap,he=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ii)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(Ce&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=Hi.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Hi.set(i,e))}return e}toString(){return this.cssText}},L=s=>new he(typeof s=="string"?s:s+"",void 0,ii),u=(s,...e)=>{let i=s.length===1?s[0]:e.reduce((r,n,c)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+s[c+1],s[0]);return new he(i,s,ii)},Bi=(s,e)=>{if(Ce)s.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),n=Ae.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,s.appendChild(r)}},ri=Ce?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return L(i)})(s):s;var{is:nr,defineProperty:lr,getOwnPropertyDescriptor:dr,getOwnPropertyNames:cr,getOwnPropertySymbols:pr,getPrototypeOf:hr}=Object,Le=globalThis,Ni=Le.trustedTypes,ur=Ni?Ni.emptyScript:"",mr=Le.reactiveElementPolyfillSupport,ue=(s,e)=>s,ai={toAttribute(s,e){switch(e){case Boolean:s=s?ur:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let i=s;switch(e){case Boolean:i=s!==null;break;case Number:i=s===null?null:Number(s);break;case Object:case Array:try{i=JSON.parse(s)}catch{i=null}}return i}},Oi=(s,e)=>!nr(s,e),Pi={attribute:!0,type:String,converter:ai,reflect:!1,useDefault:!1,hasChanged:Oi};Symbol.metadata??=Symbol("metadata"),Le.litPropertyMetadata??=new WeakMap;var W=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Pi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,i);n!==void 0&&lr(this.prototype,e,n)}}static getPropertyDescriptor(e,i,r){let{get:n,set:c}=dr(this.prototype,e)??{get(){return this[i]},set(p){this[i]=p}};return{get:n,set(p){let $=n?.call(this);c?.call(this,p),this.requestUpdate(e,$,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Pi}static _$Ei(){if(this.hasOwnProperty(ue("elementProperties")))return;let e=hr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ue("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ue("properties"))){let i=this.properties,r=[...cr(i),...pr(i)];for(let n of r)this.createProperty(n,i[n])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)i.unshift(ri(n))}else e!==void 0&&i.push(ri(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r: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(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){let c=(r.converter?.toAttribute!==void 0?r.converter:ai).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(n):this.setAttribute(n,c),this._$Em=null}}_$AK(e,i){let r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let c=r.getPropertyOptions(n),p=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:ai;this._$Em=n;let $=p.fromAttribute(i,c.type);this[n]=$??this._$Ej?.get(n)??$,this._$Em=null}}requestUpdate(e,i,r,n=!1,c){if(e!==void 0){let p=this.constructor;if(n===!1&&(c=this[e]),r??=p.getPropertyOptions(e),!((r.hasChanged??Oi)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(p._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:n,wrapped:c},p){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,p??i??this[e]),c!==!0||p!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,c]of this._$Ep)this[n]=c;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,c]of r){let{wrapped:p}=c,$=this[n];p!==!0||this._$AL.has(n)||$===void 0||this.C(n,void 0,c,$)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),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.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};W.elementStyles=[],W.shadowRootOptions={mode:"open"},W[ue("elementProperties")]=new Map,W[ue("finalized")]=new Map,mr?.({ReactiveElement:W}),(Le.reactiveElementVersions??=[]).push("2.1.2");var oi=globalThis,V=class extends W{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ce(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};V._$litElement$=!0,V.finalized=!0,oi.litElementHydrateSupport?.({LitElement:V});var gr=oi.litElementPolyfillSupport;gr?.({LitElement:V});(oi.litElementVersions??=[]).push("4.2.2");var d=(s,e)=>L(`var(--impakt-${s.replace(/\./g,"-")}, ${e})`),t={brand:d("color.brand.default","#1f4ed8"),brandHover:d("color.brand.hover","#1b45be"),brandActive:d("color.brand.active","#183ba4"),brandSubtle:d("color.brand.subtle","#e4eafa"),onBrand:d("color.text.on-brand","#ffffff"),surfaceCard:d("color.surface.card","#ffffff"),surfaceInset:d("color.surface.inset","#f4f4f4"),surfaceSubtle:d("color.surface.subtle","#e4eafa"),text:d("color.text.default","#1a1a1a"),textMuted:d("color.text.muted","#717171"),textPlaceholder:d("color.text.placeholder","#767676"),textHeading:d("color.text.heading","#1f4ed8"),link:d("color.text.link","#1f4ed8"),linkHover:d("color.text.link-hover","#193ead"),border:d("color.border.default","#929292"),borderStrong:d("color.border.strong","#818181"),danger:d("color.status.danger.default","#c8102e"),dangerText:d("color.status.danger.text","#c8102e"),dangerSubtle:d("color.status.danger.subtle","#f8e2e6"),warning:d("color.status.warning.default","#b45309"),warningText:d("color.status.warning.text","#b45309"),warningSubtle:d("color.status.warning.subtle","#f6eae1"),success:d("color.status.success.default","#047857"),successText:d("color.status.success.text","#047857"),successSubtle:d("color.status.success.subtle","#e0f0ea"),info:d("color.status.info.default","#1f4ed8"),infoText:d("color.status.info.text","#1f4ed8"),infoSubtle:d("color.status.info.subtle","#e4eafa"),fontBody:d("font.family.body","system-ui, sans-serif"),fontHeading:d("font.family.heading","system-ui, sans-serif"),fontMono:d("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:d("font.family.eyebrow","inherit"),focusShadow:d("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:d("focus.ring.offset","2px"),targetMin:d("target.min","24px"),radiusSm:d("radius.sm","2px"),radius:d("radius.md","4px"),radiusLg:d("radius.lg","8px"),borderThin:d("border.width.thin","1px"),borderThick:d("border.width.thick","2px"),radiusXs:d("radius.xs","2px"),radiusXl:d("radius.xl","12px"),radius2xl:d("radius.2xl","16px"),hairline:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:L("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:d("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:d("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:d("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:d("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:d("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:d("font.tracking.tight","-0.02em"),trackingWide:d("font.tracking.wide","0.06em")},w=s=>L(`font-size: var(--impakt-font-size-${s}, 1rem); line-height: var(--impakt-font-leading-${s}, 1.5);`),a=s=>d(`space.${String(s).replace(".","-")}`,`${s*4}px`),b=s=>d(`font.size.${s}`,"1rem"),O=s=>d(`font.line-height.${s}`,"1.5"),m=s=>d(`font.weight.${s}`,"400"),N=u`
|
|
5
5
|
:host([space-above='sm']) { margin-block-start: ${a(2)}; }
|
|
6
6
|
:host([space-above='md']) { margin-block-start: ${a(4)}; }
|
|
7
7
|
:host([space-above='lg']) { margin-block-start: ${a(6)}; }
|
|
@@ -32,7 +32,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
32
32
|
clip-path: inset(50%);
|
|
33
33
|
white-space: nowrap;
|
|
34
34
|
border: 0;
|
|
35
|
-
`,
|
|
35
|
+
`,qi=u`
|
|
36
36
|
@media (prefers-reduced-motion: reduce) {
|
|
37
37
|
:host,
|
|
38
38
|
:host *,
|
|
@@ -44,7 +44,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
44
44
|
scroll-behavior: auto !important;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,Fi=u`
|
|
48
48
|
:host {
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
font-family: ${t.fontBody};
|
|
@@ -58,10 +58,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
58
58
|
*::after {
|
|
59
59
|
box-sizing: inherit;
|
|
60
60
|
}
|
|
61
|
-
`,C=
|
|
61
|
+
`,C=s=>L(`@media (pointer: coarse) { :host :is(${s}) { min-block-size: 44px; min-inline-size: 44px; } }`),Di=u`
|
|
62
62
|
@media (max-width: 40rem) { :host([hide-on='phone']) { display: none !important; } }
|
|
63
63
|
@media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none !important; } }
|
|
64
|
-
`;var br=Symbol.for("strata.wording");function S(
|
|
64
|
+
`;var br=Symbol.for("strata.wording");function S(s,e){let r=globalThis[br]?.words?.[s],n=typeof r=="string"&&r.trim()?r:s;return e?n.replace(/\{(\w+)\}/g,(c,p)=>p in e?String(e[p]):c):n}var fr=0,h=class extends V{constructor(){super(...arguments);this.uid=`impakt-${fr+=1}`}static{this.styles=[Fi,qi,u``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let n of i.keys()){let c=r[n];if(typeof c!="string"||!c)continue;let p=S(c);p!==c&&(r[n]=p)}}};var si={"arrow-right":y`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":y`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":y`<path d="M9 6l6 6-6 6"/>`,"chevron-down":y`<path d="M6 9l6 6 6-6"/>`,check:y`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:y`<path d="M6 6l12 12M18 6L6 18"/>`,menu:y`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":y`<path d="M5 9.5h14M5 14.5h14"/>`,plus:y`<path d="M12 5v14M5 12h14"/>`,minus:y`<path d="M5 12h14"/>`,search:y`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:y`<path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>`,download:y`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:y`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:y`<path d="M7 3.5h3l1.5 4-2 1.5a11 11 0 0 0 5.5 5.5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 5.5a2 2 0 0 1 2-2z"/>`,mail:y`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":y`<path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/>`,calendar:y`<rect x="4" y="5.5" width="16" height="14.5" rx="1.5"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>`,clock:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:y`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:y`<path d="M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z"/>`,heart:y`<path d="M12 19.5s-7.5-4.6-7.5-10A4 4 0 0 1 12 7a4 4 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10z"/>`,shield:y`<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>`,leaf:y`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:y`<circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4"/>`,bolt:y`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:y`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:y`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:y`<path d="M6 3.5h8l4 4V20a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 6 20z"/><path d="M14 3.5V8h4M9 13h6M9 16.5h6"/>`,pound:y`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:y`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:y`<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/>`,clipboard:y`<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>`,"map-pinned":y`<path d="M18 8c0 3.6-3.9 7.4-5.4 8.8a1 1 0 0 1-1.2 0C9.9 15.4 6 11.6 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.7 14H5a1 1 0 0 0-.9.7l-2 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .9-1.3l-2-6a1 1 0 0 0-.9-.7h-3.7"/>`,users:y`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/>`,radio:y`<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19"/><circle cx="12" cy="12" r="2"/>`,settings:y`<path d="M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.8l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.8v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`,"log-out":y`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":y`<path d="M7 7h10v10M7 17L17 7"/>`,more:y`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:y`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:y`<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>`,lock:y`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:y`<path d="M2.1 12.3a1 1 0 0 1 0-.7 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .7 10.8 10.8 0 0 1-19.8 0"/><circle cx="12" cy="12" r="3"/>`,trash:y`<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>`,pencil:y`<path d="M21.2 6.8a1 1 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8L2 21.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4"/>`,"qr-code":y`<rect x="3" y="3" width="5" height="5" rx="1"/><rect x="16" y="3" width="5" height="5" rx="1"/><rect x="3" y="16" width="5" height="5" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>`,battery:y`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},$r=Object.keys(si);function M(s,e="1.25em"){let i=s?si[s]:void 0;return i?o`<svg class="icon" viewBox="0 0 24 24" width=${e} height=${e} fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${i}</svg>`:l}var Ie=class extends h{static{this.properties={name:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.name="star",this.label="",this.size="md",this.tone="inherit"}static{this.styles=[...h.styles,u`
|
|
65
65
|
:host { display: inline-flex; vertical-align: middle; line-height: 0; }
|
|
66
66
|
:host([tone='brand']) { color: ${t.brand}; }
|
|
67
67
|
:host([tone='muted']) { color: ${t.textMuted}; }
|
|
@@ -270,7 +270,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
270
270
|
${c}
|
|
271
271
|
${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
|
|
272
272
|
</button>
|
|
273
|
-
`}let
|
|
273
|
+
`}let n=o`${M(this.iconBefore)}<slot></slot>${this.iconAfter&&this.iconAfter!=="none"?o`<span class=${this.iconAfter==="arrow-right"?"after arrow":"after"} aria-hidden="true">${M(this.iconAfter)}${this.iconAfter==="arrow-right"?xr:l}</span>`:l}`;return this.href&&!this.disabled?o`<a class=${this.variant} href=${this.href} part="button">${n}</a>`:o`
|
|
274
274
|
<button
|
|
275
275
|
class=${this.variant}
|
|
276
276
|
type="button"
|
|
@@ -280,7 +280,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
280
280
|
aria-busy=${this.busy?"true":l}
|
|
281
281
|
@click=${this.onClick}
|
|
282
282
|
>
|
|
283
|
-
${
|
|
283
|
+
${n}
|
|
284
284
|
${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
|
|
285
285
|
</button>
|
|
286
286
|
`}};customElements.define("impakt-button",Re);var D=u`
|
|
@@ -289,28 +289,28 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
289
289
|
:host([width='sm']) { --impakt-field-width: 14ch; }
|
|
290
290
|
:host([width='md']) { --impakt-field-width: 24ch; }
|
|
291
291
|
:host([width='lg']) { --impakt-field-width: 40ch; }
|
|
292
|
-
`,
|
|
292
|
+
`,F={height:d("field.height","44px"),paddingBlock:d("field.padding-block","10px"),paddingInline:d("field.padding-inline","12px"),lineHeight:d("field.line-height","normal"),radius:d("field.radius","8px"),edge:d("field.edge","0%"),focusEdge:d("field.focus-edge","0%"),focusHalo:d("field.focus-halo","6px")},ae=s=>{let e=L(s);return u`
|
|
293
293
|
${e} {
|
|
294
294
|
inline-size: min(100%, var(--impakt-field-width));
|
|
295
|
-
min-block-size: ${
|
|
296
|
-
padding: ${
|
|
295
|
+
min-block-size: ${F.height};
|
|
296
|
+
padding: ${F.paddingBlock} ${F.paddingInline};
|
|
297
297
|
font-family: inherit;
|
|
298
298
|
font-size: ${b("md")};
|
|
299
|
-
line-height: ${
|
|
299
|
+
line-height: ${F.lineHeight};
|
|
300
300
|
color: ${t.text};
|
|
301
301
|
background: var(--impakt-color-field-surface, ${t.surfaceCard});
|
|
302
|
-
border: ${t.borderThin} solid var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${
|
|
303
|
-
border-radius: ${
|
|
302
|
+
border: ${t.borderThin} solid var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${F.edge}, ${t.border}));
|
|
303
|
+
border-radius: ${F.radius};
|
|
304
304
|
box-shadow: var(--impakt-shadow-field, ${t.shadowXs});
|
|
305
305
|
transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
306
306
|
}
|
|
307
307
|
${e}:hover:not(:disabled) {
|
|
308
|
-
border-color: var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${
|
|
308
|
+
border-color: var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${F.edge}, ${t.borderStrong}));
|
|
309
309
|
}
|
|
310
310
|
/* The focus ring, and the brand's halo round it where the brand draws one, so the field being typed in is plain at a glance. */
|
|
311
311
|
${e}:focus-visible {
|
|
312
|
-
border-color: color-mix(in srgb, ${t.text} ${
|
|
313
|
-
box-shadow: ${t.focusShadow}, 0 0 0 ${
|
|
312
|
+
border-color: color-mix(in srgb, ${t.text} ${F.focusEdge}, ${t.brand});
|
|
313
|
+
box-shadow: ${t.focusShadow}, 0 0 0 ${F.focusHalo} ${t.brandHalo};
|
|
314
314
|
}
|
|
315
315
|
${e}::placeholder {
|
|
316
316
|
color: ${t.textPlaceholder};
|
|
@@ -324,7 +324,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
324
324
|
border-color: ${t.danger};
|
|
325
325
|
border-width: ${t.borderThick};
|
|
326
326
|
}
|
|
327
|
-
`},x=class extends h{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"}}}static{this.styles=[...h.styles,v,u`
|
|
327
|
+
`},x=class extends h{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required",this.look="default";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"},look:{type:String,reflect:!0}}}static{this.styles=[...h.styles,v,u`
|
|
328
328
|
:host {
|
|
329
329
|
display: block;
|
|
330
330
|
margin-block-end: ${a(4)};
|
|
@@ -346,6 +346,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
346
346
|
margin-block-end: var(--impakt-field-label-space, ${a(1)});
|
|
347
347
|
color: ${t.text};
|
|
348
348
|
}
|
|
349
|
+
/* The site's form label (20:1100): G2 Mono S, IBM Plex Mono medium at 11px, in capitals, 8px above the box (#66). */
|
|
350
|
+
:host([look='site']) {
|
|
351
|
+
--impakt-field-label-font: ${t.fontMono};
|
|
352
|
+
--impakt-field-label-size: 0.6875rem;
|
|
353
|
+
--impakt-field-label-weight: ${m("medium")};
|
|
354
|
+
--impakt-field-label-tracking: 0.06em;
|
|
355
|
+
--impakt-field-label-transform: uppercase;
|
|
356
|
+
--impakt-field-label-space: ${a(2)};
|
|
357
|
+
}
|
|
349
358
|
.required {
|
|
350
359
|
font-weight: ${m("regular")};
|
|
351
360
|
color: ${t.textMuted};
|
|
@@ -542,7 +551,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
542
551
|
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
543
552
|
</span>
|
|
544
553
|
</label>
|
|
545
|
-
`}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Be);var yr=L("48rem");function
|
|
554
|
+
`}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Be);var yr=L("48rem");function ji(s){if(!s||s.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(s,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function li(s,e){let i=ji(s);if(!i)return!1;let r=ji(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function me(s,e,i){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=new CustomEvent("impakt-navigate",{detail:{href:i.href,id:i.id??i.href},bubbles:!0,composed:!0,cancelable:!0});s.dispatchEvent(r)||e.preventDefault()}var Ne=class extends h{constructor(){super();this.footerFilled=!1;this.items=[],this.label="Main",this.current=""}static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}static{this.styles=[...h.styles,v,u`
|
|
546
555
|
:host { display: flex; flex-direction: column; gap: ${a(5)}; block-size: 100%; }
|
|
547
556
|
.card { padding: ${a(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
|
|
548
557
|
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(.5)}; }
|
|
@@ -567,7 +576,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
567
576
|
.footer.empty { display: none; }
|
|
568
577
|
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
|
|
569
578
|
@media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
|
|
570
|
-
`]}onFooter(i){let r=i.target;this.footerFilled=r.assignedNodes({flatten:!0}).some(
|
|
579
|
+
`]}onFooter(i){let r=i.target;this.footerFilled=r.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.ELEMENT_NODE||(n.textContent??"").trim()!==""),this.requestUpdate()}render(){return o`
|
|
571
580
|
<nav class="card" aria-label=${this.label} part="nav">
|
|
572
581
|
<ul part="list">
|
|
573
582
|
${this.items.map(i=>o`
|
|
@@ -729,7 +738,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
729
738
|
<main id="content" tabindex="-1" part="main"><slot></slot></main>
|
|
730
739
|
<div class="tab-bar" part="tab-bar"><slot name="tab-bar"></slot></div>
|
|
731
740
|
</div>
|
|
732
|
-
`}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",Pe);customElements.define("impakt-app-shell",Oe);function q(
|
|
741
|
+
`}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",Pe);customElements.define("impakt-app-shell",Oe);function q(s){let e=s?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&s?s.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",r=typeof document<"u"?document.documentElement?.lang??"":"",n=(e||i||r||"").trim();return!n||n.toLowerCase()==="en"?"en-GB":n}var f={lineSoft:d("color.line.soft","light-dark(#CFCCC5, #2E2E2E)"),ok:d("color.status.ok-mark","#137A52"),bad:d("color.status.bad-mark","light-dark(#B23A2E, #F0978F)"),accent:d("color.accent.default","#FFD43B"),onOk:d("color.status.on-ok","#FFFFFF"),codeSurface:d("color.code.surface","#111111"),codeText:d("color.code.text","#FFFFFF"),codeMuted:d("color.code.muted","#A8A8A6"),inverse:t.text,onInverse:t.surfaceCard,small:d("font.size.sm","0.875rem"),tiny:d("font.size.2xs","0.6875rem"),medium:d("font.weight.medium","500"),regular:d("font.weight.regular","400")};var qe=class extends h{static{this.properties={tone:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},live:{type:Boolean,reflect:!0}}}constructor(){super(),this.tone="neutral",this.label="",this.size="tool",this.live=!1}static{this.styles=[...h.styles,u`
|
|
733
742
|
/* A short pill stays on one line; a long one wraps inside its border rather than pushing the page sideways at 320 (1.4.10). */
|
|
734
743
|
:host {
|
|
735
744
|
display: inline-flex;
|
|
@@ -791,12 +800,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
791
800
|
}
|
|
792
801
|
`]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return o`<span class="pill" part="pill" role=${this.live?"status":l}
|
|
793
802
|
>${this.hasDot?o`<span class="dot" part="dot" aria-hidden="true"></span>`:l}<span class="text"><slot>${this.label}</slot></span></span
|
|
794
|
-
>`}};customElements.define("impakt-status",qe);var kr=["ok","bad","warn","info","neutral","solid"],
|
|
803
|
+
>`}};customElements.define("impakt-status",qe);var kr=["ok","bad","warn","info","neutral","solid"],Fe=u`
|
|
795
804
|
.status-pill {
|
|
796
805
|
flex: none;
|
|
797
806
|
inline-size: fit-content;
|
|
798
807
|
}
|
|
799
|
-
`,oe=(
|
|
808
|
+
`,oe=(s,e,i="status")=>{if(!s)return l;let r=kr.includes(e)?e:"neutral";return o`<impakt-status class="status-pill" part=${i} tone=${r} label=${s}></impakt-status>`};var ge=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),I={padding:d("tile.padding","12px 16px"),gap:d("tile.gap","4px"),minHeight:d("tile.min-height","84px"),align:d("tile.align","stretch"),edgeWidth:d("tile.edge-width","0px"),radius:d("tile.radius","8px"),fill:d("tile.fill","0%"),hover:d("tile.hover","5%"),labelFont:d("tile.label.font","var(--impakt-font-family-body, system-ui, sans-serif)"),labelSize:d("tile.label.size","11px"),labelWeight:d("tile.label.weight","500"),labelTracking:d("tile.label.tracking","0.06em"),labelTransform:d("tile.label.transform","uppercase"),valueSize:d("tile.value.size","34px"),valueStat:d("tile.value.stat","0"),valueLineHeight:d("tile.value.line-height","1.1"),valueTracking:d("tile.value.tracking","0em"),valueWeight:d("tile.value.weight","300"),valueSpace:d("tile.value.space","auto"),lgRadius:d("tile.lg.radius","12px"),lgLabelSize:d("tile.lg.label.size","0.875rem"),lgLabelTracking:d("tile.lg.label.tracking","0em"),lgLabelTransform:d("tile.lg.label.transform","none"),captionLineHeight:d("tile.caption.line-height","1.5")},vr=L(`calc(var(--impakt-type-stat-size, 3.25rem) * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),wr=L(`calc(2.5rem * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),Ui=L(`color-mix(in srgb, ${t.surfaceCard} ${I.fill}, ${t.surfaceInset})`),Sr=d("font.weight.light","300"),De=class extends h{static{this.properties={label:{type:String},value:{type:String},caption:{type:String},href:{type:String},tone:{type:String,reflect:!0},size:{type:String,reflect:!0},status:{type:String},statusTone:{type:String,attribute:"status-tone"}}}constructor(){super(),this.label="",this.value="",this.caption="",this.href="",this.tone="plain",this.size="md",this.status="",this.statusTone="neutral"}static{this.styles=[...h.styles,v,Fe,u`
|
|
800
809
|
:host { display: block; }
|
|
801
810
|
.tile {
|
|
802
811
|
box-sizing: border-box;
|
|
@@ -809,11 +818,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
809
818
|
padding: ${I.padding};
|
|
810
819
|
border: ${I.edgeWidth} solid ${t.text};
|
|
811
820
|
border-radius: ${I.radius};
|
|
812
|
-
background: ${
|
|
821
|
+
background: ${Ui};
|
|
813
822
|
color: ${t.text};
|
|
814
823
|
text-decoration: none;
|
|
815
824
|
}
|
|
816
|
-
a.tile:hover { background: color-mix(in srgb, ${
|
|
825
|
+
a.tile:hover { background: color-mix(in srgb, ${Ui}, ${t.text} ${I.hover}); }
|
|
817
826
|
.label { font-family: ${I.labelFont}; font-size: ${I.labelSize}; font-weight: ${I.labelWeight}; letter-spacing: ${I.labelTracking}; text-transform: ${I.labelTransform}; color: ${t.textMuted}; }
|
|
818
827
|
/* The figure: light at 34px where the brand derives it, or under Noire (G2) Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */
|
|
819
828
|
.value { margin-block-start: ${I.valueSpace}; font-size: ${vr}; line-height: ${I.valueLineHeight}; letter-spacing: ${I.valueTracking}; font-weight: ${I.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
@@ -852,7 +861,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
852
861
|
.day { margin-block-start: ${a(1)}; font-size: 20px; font-weight: ${m("medium")}; font-variant-numeric: tabular-nums; }
|
|
853
862
|
.sr-only { ${T} }
|
|
854
863
|
@media (forced-colors: active) { time { border: 1px solid CanvasText; } }
|
|
855
|
-
`]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let r=q(this),
|
|
864
|
+
`]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let r=q(this),n=c=>new Intl.DateTimeFormat(r,{...c,timeZone:"UTC"}).format(i);return{month:n({month:"short"}).replace(".",""),day:n({day:"numeric"}),full:n({day:"numeric",month:"long",year:"numeric"})}}render(){let e=this.parts();return e?o`<time datetime=${this.date} part="tile">
|
|
856
865
|
<span class="month" aria-hidden="true">${e.month}</span>
|
|
857
866
|
<span class="day" aria-hidden="true">${e.day}</span>
|
|
858
867
|
<span class="sr-only">${e.full}</span>
|
|
@@ -880,7 +889,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
880
889
|
:host([selected]) :is(.title, .meta, .chevron) { color: ${ge}; }
|
|
881
890
|
:host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${ge} 72%, ${t.text}); }
|
|
882
891
|
@media (forced-colors: active) { :host([selected]) .row { outline: 2px solid Highlight; } }
|
|
883
|
-
`]}onSlot(i){let r=i.target,
|
|
892
|
+
`]}onSlot(i){let r=i.target,n=r.name;this.filled={...this.filled,[n]:r.assignedNodes({flatten:!0}).some(c=>c.nodeType===Node.ELEMENT_NODE||(c.textContent??"").trim()!=="")},this.requestUpdate()}render(){let i=this.href?o`<a class="title" href=${this.href} part="link">${this.heading}</a>`:o`<span class="title" part="title">${this.heading}</span>`;return o`<div class="row" part="row" aria-current=${this.selected?"true":l}>
|
|
884
893
|
<div class="start ${this.filled.start?"":"empty"}"><slot name="start" @slotchange=${this.onSlot}></slot></div>
|
|
885
894
|
<div class="text">${i}${this.meta?o`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
|
|
886
895
|
<div class="end ${this.filled.end?"":"empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
|
|
@@ -917,7 +926,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
917
926
|
`]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return o`<button type="button" part="button" aria-pressed=${this.pressed?"true":"false"} ?disabled=${this.disabled} @click=${this.toggle}>
|
|
918
927
|
<span>${this.label}</span>
|
|
919
928
|
${e?this.countLabel?o`<span class="count" aria-hidden="true">${this.count}</span><span class="sr-only">${this.countLabel}</span>`:o`<span class="count">${this.count}</span>`:l}
|
|
920
|
-
</button>`}};customElements.define("impakt-stat-tile",
|
|
929
|
+
</button>`}};customElements.define("impakt-stat-tile",De);customElements.define("impakt-date-tile",je);customElements.define("impakt-row",Ue);customElements.define("impakt-filter-chip",We);var Ve=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.checked=!1,this.hideLabel=!1}static{this.styles=[...x.styles,C(".row"),u`
|
|
921
930
|
.row {
|
|
922
931
|
display: flex;
|
|
923
932
|
align-items: center;
|
|
@@ -1176,7 +1185,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1176
1185
|
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
1177
1186
|
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
1178
1187
|
</legend>`}renderControl(){return o`
|
|
1179
|
-
${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),
|
|
1188
|
+
${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),n=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
|
|
1180
1189
|
<label class="option" part="option" for=${r}>
|
|
1181
1190
|
<input
|
|
1182
1191
|
type="radio"
|
|
@@ -1186,12 +1195,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1186
1195
|
.checked=${this.value===e.value}
|
|
1187
1196
|
?disabled=${this.disabled}
|
|
1188
1197
|
?required=${this.required&&i===0}
|
|
1189
|
-
aria-describedby=${
|
|
1198
|
+
aria-describedby=${n??l}
|
|
1190
1199
|
@change=${()=>this.setFormValue(e.value)}
|
|
1191
1200
|
/>
|
|
1192
1201
|
<span>
|
|
1193
1202
|
<span class="option-text">${e.label}</span>
|
|
1194
|
-
${e.description?o`<span class="option-description" id=${
|
|
1203
|
+
${e.description?o`<span class="option-description" id=${n}>${e.description}</span>`:l}
|
|
1195
1204
|
</span>
|
|
1196
1205
|
</label>
|
|
1197
1206
|
`})}
|
|
@@ -1210,7 +1219,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1210
1219
|
${this.error||l}
|
|
1211
1220
|
</div>
|
|
1212
1221
|
</fieldset>
|
|
1213
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",Ke);var Xe=class
|
|
1222
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",Ke);var Xe=class s extends h{constructor(){super();this.hasActions=!1;this.tone="info",this.heading="",this.toneLabel="",this.label="",this.noLabel=!1}static{this.properties={tone:{type:String,reflect:!0},heading:{type:String},toneLabel:{type:String,attribute:"tone-label"},label:{type:String},noLabel:{type:Boolean,attribute:"no-label"}}}static{this.TONE_WORDS={info:"Information",success:"Success",warning:"Warning",danger:"Error",attention:"Warning"}}static{this.styles=[...h.styles,u`
|
|
1214
1223
|
:host {
|
|
1215
1224
|
display: block;
|
|
1216
1225
|
margin-block-end: ${a(4)};
|
|
@@ -1306,7 +1315,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1306
1315
|
</div>
|
|
1307
1316
|
<div class="actions ${this.hasActions?"":"empty"}" part="actions"><slot name="actions" @slotchange=${this.onActions}></slot></div>
|
|
1308
1317
|
</div>
|
|
1309
|
-
`}let i=this.toneLabel||S(
|
|
1318
|
+
`}let i=this.toneLabel||S(s.TONE_WORDS[this.tone]);return o`
|
|
1310
1319
|
<div
|
|
1311
1320
|
class="alert"
|
|
1312
1321
|
part="alert"
|
|
@@ -1849,15 +1858,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1849
1858
|
border: 0;
|
|
1850
1859
|
}
|
|
1851
1860
|
}
|
|
1852
|
-
`]}keyOf(e,i){let r=e?.[this.rowKey];return r==null||r===""?String(i):String(r)}ordered(){let e=(this.rows??[]).map((p,$)=>({row:p,key:this.keyOf(p,$)})),i=(this.columns??[]).find(p=>p.key===this.sortKey&&p.sortable);if(!i||this.manualSort)return e;let r=this.sortDirection==="descending"?-1:1,
|
|
1861
|
+
`]}keyOf(e,i){let r=e?.[this.rowKey];return r==null||r===""?String(i):String(r)}ordered(){let e=(this.rows??[]).map((p,$)=>({row:p,key:this.keyOf(p,$)})),i=(this.columns??[]).find(p=>p.key===this.sortKey&&p.sortable);if(!i||this.manualSort)return e;let r=this.sortDirection==="descending"?-1:1,n=q(this),c=p=>Number(String(p??"").replace(/[^\d.-]/g,""))||0;return e.sort((p,$)=>{let g=p.row[i.key]??"",k=$.row[i.key]??"";return(i.numeric?c(g)-c(k):String(g).localeCompare(String(k),n,{numeric:!0,sensitivity:"base"}))*r})}sortBy(e){let i=this.sortKey===e&&this.sortDirection==="ascending"?"descending":"ascending";this.sortKey=e,this.sortDirection=i,this.dispatchEvent(new CustomEvent("impakt-sort",{detail:{key:e,direction:i},bubbles:!0,composed:!0}))}choose(e,i){let r=new Set(this.selected??[]);for(let n of e)i?r.add(n):r.delete(n);this.selected=[...r],this.dispatchEvent(new CustomEvent("impakt-selection",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}heading(e){let i=e.sortable&&e.key===this.sortKey,r=[e.numeric?"numeric":"",e.sortable?"sortable":""].filter(Boolean).join(" ");return e.sortable?o`<th scope="col" role="columnheader" class=${r} aria-sort=${i?this.sortDirection:l}>
|
|
1853
1862
|
<button class="sort" type="button" part="sort" @click=${()=>this.sortBy(e.key)}>${e.label}<span class="arrow" aria-hidden="true">${M("chevron-down","16px")}</span></button>
|
|
1854
|
-
</th>`:o`<th scope="col" role="columnheader" class=${r}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),r=new Set(this.selected??[]),
|
|
1863
|
+
</th>`:o`<th scope="col" role="columnheader" class=${r}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),r=new Set(this.selected??[]),n=i.length>0&&i.every(p=>r.has(p.key)),c=!n&&i.some(p=>r.has(p.key));return o`
|
|
1855
1864
|
<div class="scroller" part="scroller" tabindex="0" role="region" aria-label=${this.caption||l}>
|
|
1856
1865
|
<table part="table" role="table">
|
|
1857
1866
|
${this.caption?o`<caption part="caption">${this.caption}</caption>`:l}
|
|
1858
1867
|
<thead role="rowgroup">
|
|
1859
1868
|
<tr role="row">
|
|
1860
|
-
${this.selectable?o`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${
|
|
1869
|
+
${this.selectable?o`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${n} .indeterminate=${c} ?disabled=${!i.length}
|
|
1861
1870
|
@change=${p=>this.choose(i.map($=>$.key),p.target.checked)} /></label></th>`:l}
|
|
1862
1871
|
${e.map(p=>this.heading(p))}
|
|
1863
1872
|
</tr>
|
|
@@ -1873,7 +1882,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1873
1882
|
</tbody>
|
|
1874
1883
|
</table>
|
|
1875
1884
|
</div>
|
|
1876
|
-
`}};customElements.define("impakt-table",st);var nt=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var R={edge:d("accordion.edge","15%"),topEdgeWidth:d("accordion.top-edge-width","0px"),questionSize:d("accordion.question.size","1rem"),questionLineHeight:d("accordion.question.line-height","1.5"),questionTracking:d("accordion.question.tracking","0em"),questionPadding:d("accordion.question.padding","12px"),hoverInk:d("accordion.hover-ink","0%"),hoverLine:d("accordion.hover-line","none"),plus:d("accordion.plus","none"),chevron:d("accordion.chevron","inline-block"),markerSize:d("accordion.marker.size","18px"),markerStroke:d("accordion.marker.stroke","2px"),answerSpace:d("accordion.answer.space","16px"),answerPull:d("accordion.answer.pull","0px"),answerInk:d("accordion.answer.ink","100%"),answerLineHeight:d("accordion.answer.line-height","1.5"),answerWidth:d("accordion.answer.width","none")},
|
|
1885
|
+
`}};customElements.define("impakt-table",st);var nt=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var R={edge:d("accordion.edge","15%"),topEdgeWidth:d("accordion.top-edge-width","0px"),questionSize:d("accordion.question.size","1rem"),questionLineHeight:d("accordion.question.line-height","1.5"),questionTracking:d("accordion.question.tracking","0em"),questionPadding:d("accordion.question.padding","12px"),hoverInk:d("accordion.hover-ink","0%"),hoverLine:d("accordion.hover-line","none"),plus:d("accordion.plus","none"),chevron:d("accordion.chevron","inline-block"),markerSize:d("accordion.marker.size","18px"),markerStroke:d("accordion.marker.stroke","2px"),answerSpace:d("accordion.answer.space","16px"),answerPull:d("accordion.answer.pull","0px"),answerInk:d("accordion.answer.ink","100%"),answerLineHeight:d("accordion.answer.line-height","1.5"),answerWidth:d("accordion.answer.width","none")},Wi=L("var(--impakt-color-line-soft, #dcdcd8)"),lt=class extends h{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},look:{type:String,reflect:!0},enhanced:{state:!0}}}constructor(){super(),this.items=[],this.headingLevel=3,this.open=[],this.multiple=!0,this.look="plain",this.enhanced=!1}connectedCallback(){!nt&&!this.shadowRoot&&(this.enhanced=!0),super.connectedCallback()}firstUpdated(){this.enhanced=!0}static{this.styles=[...h.styles,v,Fe,u`
|
|
1877
1886
|
:host {
|
|
1878
1887
|
display: block;
|
|
1879
1888
|
border-block-start: ${R.topEdgeWidth} solid ${t.text};
|
|
@@ -2045,7 +2054,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2045
2054
|
border-block-start: 0;
|
|
2046
2055
|
}
|
|
2047
2056
|
:host([look='issues']) .item {
|
|
2048
|
-
border-block-end: ${t.borderThin} solid ${
|
|
2057
|
+
border-block-end: ${t.borderThin} solid ${Wi};
|
|
2049
2058
|
}
|
|
2050
2059
|
/* The finding keeps at least 16rem; on a narrow screen the status wraps under it, at the end, rather than squeezing it. */
|
|
2051
2060
|
:host([look='issues']) .head {
|
|
@@ -2123,7 +2132,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2123
2132
|
padding: ${a(5)} 0;
|
|
2124
2133
|
background: none;
|
|
2125
2134
|
border: 0;
|
|
2126
|
-
border-block-end: ${t.borderThin} solid ${
|
|
2135
|
+
border-block-end: ${t.borderThin} solid ${Wi};
|
|
2127
2136
|
}
|
|
2128
2137
|
@media (max-width: 40rem) {
|
|
2129
2138
|
.head {
|
|
@@ -2143,7 +2152,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2143
2152
|
}
|
|
2144
2153
|
}
|
|
2145
2154
|
`]}toggle(e){this.open.includes(e)?this.open=this.open.filter(r=>r!==e):this.open=this.multiple?[...this.open,e]:[e]}render(){let e=this.look==="issues";return o`
|
|
2146
|
-
${this.items.map(i=>{let r=!this.enhanced||this.open.includes(i.id),
|
|
2155
|
+
${this.items.map(i=>{let r=!this.enhanced||this.open.includes(i.id),n=this.id_(`panel-${i.id}`),c=this.id_(`button-${i.id}`);return o`
|
|
2147
2156
|
<div class="item ${r?"open":""}" part="item">
|
|
2148
2157
|
<div class="head" part="head">
|
|
2149
2158
|
<div class="h" role="heading" aria-level=${this.headingLevel}>
|
|
@@ -2152,7 +2161,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2152
2161
|
part="header"
|
|
2153
2162
|
type="button"
|
|
2154
2163
|
aria-expanded=${r?"true":"false"}
|
|
2155
|
-
aria-controls=${
|
|
2164
|
+
aria-controls=${n}
|
|
2156
2165
|
@click=${()=>this.toggle(i.id)}
|
|
2157
2166
|
>
|
|
2158
2167
|
${i.meta?o`<span class="meta" part="meta">${i.meta}</span>`:l}
|
|
@@ -2166,7 +2175,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2166
2175
|
${e?l:o`<span class="marker" aria-hidden="true"><span class="chev">›</span></span>`}
|
|
2167
2176
|
</div>
|
|
2168
2177
|
<div
|
|
2169
|
-
id=${
|
|
2178
|
+
id=${n}
|
|
2170
2179
|
class="panel"
|
|
2171
2180
|
part="panel"
|
|
2172
2181
|
role="region"
|
|
@@ -2304,13 +2313,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2304
2313
|
${T}
|
|
2305
2314
|
}
|
|
2306
2315
|
}
|
|
2307
|
-
`]}renderStages(e){let i=this.doneText||S("done"),r=this.steps.some(
|
|
2316
|
+
`]}renderStages(e){let i=this.doneText||S("done"),r=this.steps.some(n=>n.href);return o`
|
|
2308
2317
|
<nav part="nav" aria-label=${this.label} tabindex=${r?l:"0"}>
|
|
2309
2318
|
<ol part="list">
|
|
2310
|
-
${this.steps.map((
|
|
2311
|
-
<span class="name" part="step-label">${
|
|
2319
|
+
${this.steps.map((n,c)=>{let p=c<e?"done":c===e?"current":"todo",$=String(c+1).padStart(2,"0"),g=o`<span class="num" part="step-number">${p==="done"?o`<span aria-hidden="true">✓ </span>`:l}${$}</span>
|
|
2320
|
+
<span class="name" part="step-label">${n.label}</span>${p==="done"?o`<span class="sr-only">, ${i}</span>`:l}`;return o`
|
|
2312
2321
|
<li part="step step-${p}" data-state=${p}>
|
|
2313
|
-
${
|
|
2322
|
+
${n.href?o`<a class="stage" href=${n.href} aria-current=${p==="current"?"step":l}>${g}</a>`:o`<span class="stage" aria-current=${p==="current"?"step":l}>${g}</span>`}
|
|
2314
2323
|
</li>
|
|
2315
2324
|
`})}
|
|
2316
2325
|
</ol>
|
|
@@ -2318,25 +2327,26 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2318
2327
|
`}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):o`
|
|
2319
2328
|
<nav part="nav" aria-label=${this.label}>
|
|
2320
2329
|
<ol part="list">
|
|
2321
|
-
${this.steps.map((i,r)=>{let
|
|
2322
|
-
<li part="step step-${
|
|
2323
|
-
${
|
|
2330
|
+
${this.steps.map((i,r)=>{let n=r<e?"done":r===e?"current":"todo";return o`
|
|
2331
|
+
<li part="step step-${n}" data-state=${n} aria-current=${n==="current"?"step":l}>
|
|
2332
|
+
${n==="current"?o`<span class="sr-only">${S("Step {step} of {steps}:",{step:r+1,steps:this.steps.length})} </span>`:l}
|
|
2324
2333
|
<span class="name" part="step-label">${i.label}</span>
|
|
2325
2334
|
</li>
|
|
2326
2335
|
`})}
|
|
2327
2336
|
</ol>
|
|
2328
2337
|
</nav>
|
|
2329
|
-
`}};customElements.define("impakt-progress",dt);var be={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},fe=["success","info","warning","accent","danger","brand"],di=(
|
|
2338
|
+
`}};customElements.define("impakt-progress",dt);var be={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},fe=["success","info","warning","accent","danger","brand"],di=(s,e)=>typeof s=="number"?`var(--impakt-color-chart-${s}, ${be[fe[(s-1)%fe.length]]})`:s&&s in be?be[s]:`var(--impakt-color-chart-${e%5+1}, ${be[fe[e%fe.length]]})`;var Vi=t.fontMono,ct=class extends h{static{this.properties={label:{type:String},meta:{type:String},icon:{type:String,reflect:!0},tone:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.label="",this.meta="",this.icon="none",this.tone="success",this.look="filled",this.size="md",this.hideOn="never"}static{this.styles=[...h.styles,Di,u`
|
|
2330
2339
|
:host { display: inline-flex; flex: none; }
|
|
2331
|
-
span.chip { display: inline-flex; align-items: center; gap: ${a(1.5)}; padding: 3px ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${
|
|
2340
|
+
span.chip { display: inline-flex; align-items: center; gap: ${a(1.5)}; padding: 3px ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${Vi}; font-size: ${b("xs")}; line-height: 1.2; white-space: nowrap; }
|
|
2332
2341
|
:host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }
|
|
2342
|
+
/* The edge is the border grey where the brand derives it, and ink under Noire (G2) (chip.outlined.edge, #69). */
|
|
2333
2343
|
/* Spaced 0.04em where the brand derives it, and not at all under Noire (G2) (chip.outlined.tracking). */
|
|
2334
|
-
:host([look='outlined']) span.chip { border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; letter-spacing: ${d("chip.outlined.tracking","0.04em")}; }
|
|
2344
|
+
:host([look='outlined']) span.chip { border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("chip.outlined.edge","0%")}, ${t.border}); background: ${t.surfaceCard}; letter-spacing: ${d("chip.outlined.tracking","0.04em")}; }
|
|
2335
2345
|
:host([size='marketing']) span.chip { font-size: 11px; font-weight: ${m("medium")}; text-transform: uppercase; letter-spacing: 0.06em; }
|
|
2336
2346
|
/* Body: a 35px square box in the body face, for a row of tags such as a stack (G2 case study, 21:1493). */
|
|
2337
2347
|
:host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: ${a(1.5)} ${a(3)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 14px; line-height: 1.2; }
|
|
2338
2348
|
:host([size='lg']) span.chip { box-sizing: border-box; min-block-size: 49px; gap: ${a(3)}; padding: ${a(2)} ${a(4)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 20px; line-height: 1.2; }
|
|
2339
|
-
:host([size='lg']) .meta { font-family: ${
|
|
2349
|
+
:host([size='lg']) .meta { font-family: ${Vi}; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
|
|
2340
2350
|
:host([look='plain']) span.chip { padding: 0; }
|
|
2341
2351
|
.dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--tone); }
|
|
2342
2352
|
/* Yellow means "needs your attention": the accent, with an ink stroke so it shows on white. */
|
|
@@ -2363,9 +2373,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2363
2373
|
@media (forced-colors: active) { span { border-color: CanvasText; } }
|
|
2364
2374
|
`]}render(){return o`<span part="badge">${M(this.icon,"1em")}<slot></slot></span>`}};customElements.define("impakt-badge",pt);var ht=class extends x{constructor(){super();this.filled=!1;this.filledText="";this.width="full",this.rows=4,this.maxlength=void 0,this.fillFrom="none",this.placeholder=""}static{this.properties={...x.properties,width:{type:String,reflect:!0},rows:{type:Number},maxlength:{type:Number},fillFrom:{type:String,attribute:"fill-from"},placeholder:{type:String}}}static{this.styles=[...x.styles,D,ae("textarea"),u`
|
|
2365
2375
|
textarea {
|
|
2366
|
-
/*
|
|
2367
|
-
can be made bigger, and a fixed box is where that stops working.
|
|
2368
|
-
|
|
2376
|
+
/* Every brand but Impakt keeps the resize grip: 1.4.4 and 1.4.12 both assume text
|
|
2377
|
+
can be made bigger, and a fixed box is where that stops working. The G2 textarea
|
|
2378
|
+
(20:1100) draws no grip, so under Impakt the box grows with its words instead
|
|
2379
|
+
(field.resize and field.sizing), never shorter than its rows (#66). */
|
|
2380
|
+
resize: var(--impakt-field-resize, vertical);
|
|
2381
|
+
field-sizing: var(--impakt-field-sizing, fixed);
|
|
2382
|
+
min-block-size: calc(var(--impakt-textarea-rows, 4) * 1lh + 2 * ${F.paddingBlock} + 2px);
|
|
2369
2383
|
}
|
|
2370
2384
|
`]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return o`
|
|
2371
2385
|
<textarea
|
|
@@ -2373,6 +2387,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2373
2387
|
part="textarea"
|
|
2374
2388
|
name=${this.name||l}
|
|
2375
2389
|
rows=${this.rows}
|
|
2390
|
+
style=${`--impakt-textarea-rows: ${this.rows}`}
|
|
2376
2391
|
maxlength=${this.maxlength??l}
|
|
2377
2392
|
placeholder=${this.placeholder||l}
|
|
2378
2393
|
?disabled=${this.disabled}
|
|
@@ -2430,7 +2445,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2430
2445
|
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
2431
2446
|
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
2432
2447
|
</legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(r=>r!==e),this.setFormValue(this.options.filter(r=>this.values.includes(r.value)).map(r=>r.value).join(","))}renderControl(){return o`
|
|
2433
|
-
${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),
|
|
2448
|
+
${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),n=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
|
|
2434
2449
|
<label class="option" part="option" for=${r}>
|
|
2435
2450
|
<input
|
|
2436
2451
|
type="checkbox"
|
|
@@ -2438,12 +2453,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2438
2453
|
value=${e.value}
|
|
2439
2454
|
.checked=${this.values.includes(e.value)}
|
|
2440
2455
|
?disabled=${this.disabled}
|
|
2441
|
-
aria-describedby=${
|
|
2456
|
+
aria-describedby=${n??l}
|
|
2442
2457
|
@change=${c=>this.onToggle(e.value,c.target.checked)}
|
|
2443
2458
|
/>
|
|
2444
2459
|
<span>
|
|
2445
2460
|
<span class="option-text">${e.label}</span>
|
|
2446
|
-
${e.description?o`<span class="option-description" id=${
|
|
2461
|
+
${e.description?o`<span class="option-description" id=${n}>${e.description}</span>`:l}
|
|
2447
2462
|
</span>
|
|
2448
2463
|
</label>
|
|
2449
2464
|
`})}
|
|
@@ -2498,7 +2513,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2498
2513
|
}
|
|
2499
2514
|
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
2500
2515
|
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
2501
|
-
</legend>`}datePart(e,i,r,
|
|
2516
|
+
</legend>`}datePart(e,i,r,n){let c=this.id_(e);return o`
|
|
2502
2517
|
<div class="part ${e}">
|
|
2503
2518
|
<label for=${c}>${i}</label>
|
|
2504
2519
|
<input
|
|
@@ -2507,7 +2522,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2507
2522
|
inputmode="numeric"
|
|
2508
2523
|
maxlength=${r}
|
|
2509
2524
|
.value=${this[e]}
|
|
2510
|
-
autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${
|
|
2525
|
+
autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${n}`:l}
|
|
2511
2526
|
?disabled=${this.disabled}
|
|
2512
2527
|
@input=${p=>{this[e]=p.target.value,this.emit()}}
|
|
2513
2528
|
/>
|
|
@@ -2525,7 +2540,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2525
2540
|
${this.renderControl()}
|
|
2526
2541
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
2527
2542
|
</fieldset>
|
|
2528
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",mt);var xe=new Set,$e=null;function ye(
|
|
2543
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",mt);var xe=new Set,$e=null;function ye(s){if(typeof document>"u"||xe.has(s)||(xe.add(s),xe.size>1))return;let e=document.documentElement,i=window.innerWidth-e.clientWidth;$e={overflow:e.style.overflow,paddingRight:e.style.paddingRight},e.style.overflow="hidden",i>0&&(e.style.paddingRight=`${i}px`)}function ee(s){if(typeof document>"u"||!xe.delete(s)||xe.size>0||!$e)return;let e=document.documentElement;e.style.overflow=$e.overflow,e.style.paddingRight=$e.paddingRight,$e=null}var H={edgeWidth:d("dialog.edge-width","0px"),backdrop:d("dialog.backdrop","color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)"),backdropBlur:d("dialog.backdrop-blur","2px"),padding:d("dialog.padding","20px"),phonePadding:L(`min(${d("dialog.padding","20px")}, 20px)`),headingSize:d("dialog.heading.size","1.25rem"),headingLineHeight:d("dialog.heading.line-height","1.5"),headingTracking:d("dialog.heading.tracking","0em"),headingWeight:d("dialog.heading.weight","700")},gt=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.closeLabel="Close",this.dismissible=!0,this.phoneFullScreen=!1,this.size="md",this.eyebrow=""}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},closeLabel:{type:String,attribute:"close-label"},dismissible:{type:Boolean},phoneFullScreen:{type:Boolean,reflect:!0,attribute:"phone-full-screen"},size:{type:String,reflect:!0},eyebrow:{type:String}}}static{this.styles=[...h.styles,v,C(".close"),u`
|
|
2529
2544
|
dialog {
|
|
2530
2545
|
padding: 0;
|
|
2531
2546
|
/* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */
|
|
@@ -2624,7 +2639,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2624
2639
|
color: ${t.text};
|
|
2625
2640
|
cursor: pointer;
|
|
2626
2641
|
}
|
|
2627
|
-
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}onFooter(){let r=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(
|
|
2642
|
+
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}onFooter(){let r=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(n=>n.assignedElements({flatten:!0}).length>0);r!==this.hasFooter&&(this.hasFooter=r,this.requestUpdate())}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}render(){return o`
|
|
2628
2643
|
<dialog
|
|
2629
2644
|
part="dialog"
|
|
2630
2645
|
aria-labelledby=${this.heading?this.id_("heading"):l}
|
|
@@ -2675,7 +2690,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2675
2690
|
::slotted(*) { max-inline-size: 100%; }
|
|
2676
2691
|
@container (max-width: 40rem) { :host(:not([stack-on='never'])) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
|
|
2677
2692
|
@container (max-width: 64rem) { :host([stack-on='tablet']) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
|
|
2678
|
-
`]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=zr[this.widths]?.split(" "),r=i&&i.length===e?i.map(
|
|
2693
|
+
`]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=zr[this.widths]?.split(" "),r=i&&i.length===e?i.map(n=>`minmax(0, ${n})`).join(" "):"";return o`<div class="columns" part="row" style=${r?`grid-template-columns: ${r}`:""}>${Array.from({length:e},(n,c)=>o`<div class="column" part="column"><slot name=${`column-${c+1}`}></slot></div>`)}</div>`}};customElements.define("impakt-grid",ft);var $t=class extends h{static{this.properties={mechanismId:{type:String,attribute:"mechanism-id"},kind:{type:String,reflect:!0},href:{type:String},label:{type:String},detail:{type:String}}}constructor(){super(),this.kind="link",this.href="",this.label="",this.detail=""}static{this.styles=[...h.styles,v,u`
|
|
2679
2694
|
:host { display: block; }
|
|
2680
2695
|
a { display: inline-flex; align-items: center; min-height: ${t.targetMin}; min-width: ${t.targetMin};
|
|
2681
2696
|
color: ${t.link}; text-decoration: underline; overflow-wrap: anywhere; max-width: 100%; }
|
|
@@ -2685,8 +2700,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2685
2700
|
/* An address is written one line at a time, and opening hours are often one
|
|
2686
2701
|
day to a line. Long unbroken values still wrap at 320px (1.4.10). */
|
|
2687
2702
|
.detail { white-space: pre-line; overflow-wrap: anywhere; }
|
|
2688
|
-
`]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return ci(this.label)?o`<a part="link" href=${this.href}>${this.label}</a>`:l}renderContact(){let e=ci(this.detail);if(!e)return l;let i=ci(this.label),r=Mr(this.kind,e),
|
|
2689
|
-
><span class="detail" part="detail" id=${c}>${e}</span></a>`:o`<span class="detail" part="detail">${e}</span>`;return o`<p class="contact" part="contact">${p}${$}</p>`}};function ci(
|
|
2703
|
+
`]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return ci(this.label)?o`<a part="link" href=${this.href}>${this.label}</a>`:l}renderContact(){let e=ci(this.detail);if(!e)return l;let i=ci(this.label),r=Mr(this.kind,e),n=this.id_("caption"),c=this.id_("detail"),p=i?o`<span class="caption" part="label" id=${n}>${i}</span>`:l,$=r?o`<a part="link" href=${r} aria-labelledby=${i?`${n} ${c}`:l}
|
|
2704
|
+
><span class="detail" part="detail" id=${c}>${e}</span></a>`:o`<span class="detail" part="detail">${e}</span>`;return o`<p class="contact" part="contact">${p}${$}</p>`}};function ci(s){return typeof s=="string"?s.trim():""}function Mr(s,e){if(s==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return s==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",$t);var Gi=u`
|
|
2690
2705
|
:host { --impakt-page-inner: ${d("layout.page-width","1200px")}; }
|
|
2691
2706
|
:host([width='narrow']) { --impakt-page-inner: 760px; }
|
|
2692
2707
|
:host([width='wide']) { --impakt-page-inner: 1440px; }
|
|
@@ -2695,7 +2710,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2695
2710
|
:host { --impakt-page-margin: ${d("layout.margin.phone","16px")}; }
|
|
2696
2711
|
@container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${d("layout.margin.tablet","32px")}; } }
|
|
2697
2712
|
@container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${d("layout.margin.desktop","64px")}; } }
|
|
2698
|
-
`,xt=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",
|
|
2713
|
+
`,xt=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",n=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",n),!n)return;let c=this.renderRoot.querySelector(".frame");c&&this.style.setProperty("--impakt-header-top",`${Math.round(i.getBoundingClientRect().top-c.getBoundingClientRect().top)}px`)};this.width="standard",this.stickyHeader=!1,this.skipText="Skip to content",this.noHeader=!1,this.noFooter=!1}static{this.properties={width:{type:String,reflect:!0},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},skipText:{type:String,attribute:"skip-text"},noHeader:{type:Boolean,reflect:!0,attribute:"no-header"},noFooter:{type:Boolean,reflect:!0,attribute:"no-footer"}}}static{this.styles=[...h.styles,v,Gi,Er,u`
|
|
2699
2714
|
:host { display: block; container: impakt-page / inline-size; }
|
|
2700
2715
|
.frame { position: relative; display: flex; flex-direction: column; min-block-size: 100%; overflow-x: clip; }
|
|
2701
2716
|
.inner { box-sizing: border-box; inline-size: 100%; max-inline-size: calc(var(--impakt-page-inner) + 2 * var(--impakt-page-margin)); margin-inline: auto; padding-inline: var(--impakt-page-margin); }
|
|
@@ -2720,7 +2735,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2720
2735
|
${i?o`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:l}
|
|
2721
2736
|
<main id="content" tabindex="-1" part="main"><div class="inner"><slot></slot></div></main>
|
|
2722
2737
|
${r?o`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:l}
|
|
2723
|
-
</div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},yt=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,
|
|
2738
|
+
</div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},yt=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,Gi,u`
|
|
2724
2739
|
:host { display: block; --impakt-page-margin: inherit; }
|
|
2725
2740
|
/* What a solid card on a brand band goes back to, since the band repaints these for its own text. */
|
|
2726
2741
|
:host([tone='brand']) { --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
|
|
@@ -2741,10 +2756,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2741
2756
|
:host([tone='brand']) .band { --impakt-color-text-inverse: ${t.brand}; }
|
|
2742
2757
|
:host([tone='accent']) .band { --impakt-color-text-inverse: var(--impakt-solid-card); }
|
|
2743
2758
|
:host([tone='brand']) .band { background: ${t.brand}; color: ${t.onBrand}; --impakt-eyebrow: ${t.onBrand}; --impakt-color-surface-card: color-mix(in srgb, ${t.onBrand} 10%, transparent); --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; --impakt-color-text-link-hover: ${t.onBrand}; }
|
|
2744
|
-
/*
|
|
2759
|
+
/*
|
|
2760
|
+
* Ink and accent bands take their colours from the host, because the band repaints the text colour for what is inside it.
|
|
2761
|
+
* A block that draws its own ink panel off a band, such as the process line, leaves it out on one (--impakt-band-panel,
|
|
2762
|
+
* --impakt-band-panel-inset), so the band and its pattern show through.
|
|
2763
|
+
*/
|
|
2745
2764
|
:host([tone='ink']) { --impakt-band: ${t.text}; --impakt-band-on: ${t.surfaceCard}; --impakt-band-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
|
|
2746
2765
|
:host([tone='accent']) { --impakt-band: ${d("color.accent.default","#ffd43b")}; --impakt-band-on: ${d("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${d("color.accent.on","#1a1a1a")}; --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
|
|
2747
|
-
:host(:is([tone='ink'], [tone='accent'])) .band { background-color: var(--impakt-band); color: var(--impakt-band-on); --impakt-eyebrow: var(--impakt-band-muted); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-band-on) 10%, transparent); --impakt-color-text-heading: var(--impakt-band-on); --impakt-color-text-default: var(--impakt-band-on); --impakt-color-text-muted: var(--impakt-band-muted); --impakt-color-text-link: var(--impakt-band-on); --impakt-color-text-link-hover: var(--impakt-band-on); }
|
|
2766
|
+
:host(:is([tone='ink'], [tone='accent'])) .band { background-color: var(--impakt-band); color: var(--impakt-band-on); --impakt-band-panel: transparent; --impakt-band-panel-inset: 0px; --impakt-eyebrow: var(--impakt-band-muted); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-band-on) 10%, transparent); --impakt-color-text-heading: var(--impakt-band-on); --impakt-color-text-default: var(--impakt-band-on); --impakt-color-text-muted: var(--impakt-band-muted); --impakt-color-text-link: var(--impakt-band-on); --impakt-color-text-link-hover: var(--impakt-band-on); }
|
|
2748
2767
|
/* On ink the cards are the raised ink with a darker rule (G2 ink-raised and line-inverse), not a wash. */
|
|
2749
2768
|
:host([tone='ink']) .band {
|
|
2750
2769
|
--impakt-color-text-inverse: var(--impakt-band);
|
|
@@ -2773,7 +2792,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2773
2792
|
:host([padding='2xl']) .band { padding-block: ${d("section.padding-2xl","clamp(56px, 8vw, 112px)")}; }
|
|
2774
2793
|
:host([padding='3xl']) .band { padding-block: clamp(${a(16)}, 10vw, ${a(30)}); }
|
|
2775
2794
|
.content { max-inline-size: var(--impakt-page-inner); margin-inline: auto; }
|
|
2776
|
-
`]}render(){return o`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",xt);customElements.define("impakt-section",yt);function
|
|
2795
|
+
`]}render(){return o`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",xt);customElements.define("impakt-section",yt);function Ar(s,e=""){return e?s===e?"page":null:pi(s)}function pi(s){if(typeof location>"u"||!s||s.startsWith("#"))return null;let e;try{let r=new URL(s,location.href);if(r.origin!==location.origin)return null;e=r.pathname.replace(/\/$/,"")||"/"}catch{return null}let i=location.pathname.replace(/\/$/,"")||"/";return e===i?"page":e!=="/"&&i.startsWith(`${e}/`)?"section":null}var kt=class extends h{constructor(){super();this.menuOpen=!1;this.needs=0;this.links=[],this.label="Main",this.menuText="Menu",this.menuLook="button",this.size="md",this.align="end",this.fold="measure",this.actionText="",this.actionHref="",this.look="links",this.current=""}static{this.properties={links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},menuLook:{type:String,reflect:!0,attribute:"menu-look"},size:{type:String,reflect:!0},align:{type:String,reflect:!0},fold:{type:String,reflect:!0},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},look:{type:String,reflect:!0},current:{type:String}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...h.styles,v,u`
|
|
2777
2796
|
/* It grows to fill a row it sits in, because it measures itself to decide when to fold. */
|
|
2778
2797
|
:host { display: block; flex: 1 1 8rem; min-inline-size: 0; }
|
|
2779
2798
|
nav { display: flex; flex-direction: column; position: relative; }
|
|
@@ -2838,19 +2857,19 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2838
2857
|
:host([fold='narrow'][look='tabs']) li a[aria-current] { background: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
|
|
2839
2858
|
:host([fold='narrow'][look='tabs']) li a[aria-current]::before { inline-size: 8px; block-size: 8px; }
|
|
2840
2859
|
}
|
|
2841
|
-
`]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let
|
|
2860
|
+
`]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let n=Array.from(this.renderRoot.querySelectorAll("li")),c=Number.parseFloat(getComputedStyle(this.renderRoot.querySelector("ul")).columnGap)||0;this.needs=n.reduce((p,$)=>p+$.getBoundingClientRect().width,0)+c*Math.max(0,n.length-1)}let r=this.needs>i;this.toggleAttribute("folded",r),!r&&this.menuOpen&&(this.open=!1)}updated(i){(i.has("links")||i.has("fold"))&&(this.needs=0,this.fit())}connectedCallback(){super.connectedCallback(),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resize?.disconnect()}toggle(){this.open=!this.open}onKey(i){i.key!=="Escape"||!this.open||(this.open=!1,this.renderRoot.querySelector(".toggle")?.focus())}renderNarrow(){let i=this.id_("panel");return o`<nav aria-label=${this.label||l} part="nav">
|
|
2842
2861
|
<button class="toggle" type="button" popovertarget=${i}>${M(this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
|
|
2843
2862
|
<div id=${i} class="panel" popover="auto" part="panel">
|
|
2844
2863
|
<button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${S("Close")}</span></button>
|
|
2845
2864
|
<ul part="list">
|
|
2846
|
-
${(this.links??[]).map(r=>{let
|
|
2865
|
+
${(this.links??[]).map(r=>{let n=this.current?r.href===this.current?"page":null:pi(r.href);return o`<li><a href=${r.href} aria-current=${n==="page"?"page":n==="section"?"true":l} part="link">${r.label}</a></li>`})}
|
|
2847
2866
|
</ul>
|
|
2848
2867
|
${this.actionText?o`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:l}
|
|
2849
2868
|
</div>
|
|
2850
2869
|
</nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return o`<nav aria-label=${this.label||l} part="nav" @keydown=${this.onKey}>
|
|
2851
2870
|
<button class="toggle" type="button" aria-expanded=${this.open?"true":"false"} aria-controls=${i} @click=${this.toggle}>${M(this.open?"close":this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
|
|
2852
2871
|
<ul id=${i} class=${this.open?"open":""} part="list">
|
|
2853
|
-
${(this.links??[]).map(r=>{let
|
|
2872
|
+
${(this.links??[]).map(r=>{let n=this.current?r.href===this.current?"page":null:pi(r.href);return o`<li><a href=${r.href} aria-current=${n==="page"?"page":n==="section"?"true":l} part="link">${r.label}</a></li>`})}
|
|
2854
2873
|
</ul>
|
|
2855
2874
|
</nav>`}},vt=class extends h{static{this.properties={items:{type:Array},label:{type:String},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.label="Breadcrumb",this.look="default"}static{this.styles=[...h.styles,v,u`
|
|
2856
2875
|
:host { display: block; font-size: ${b("sm")}; }
|
|
@@ -2917,12 +2936,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2917
2936
|
:host([look='pill']) :is([role='tab'], nav a):hover { background: ${t.surfaceInset}; }
|
|
2918
2937
|
:host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
|
|
2919
2938
|
@media (forced-colors: active) { :host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { border: 2px solid Highlight; } }
|
|
2920
|
-
`]}countOf(e){return typeof e.count!="number"?l:e.countLabel?o`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:o`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],r=i.findIndex(c=>c.id===this.current()),
|
|
2921
|
-
${e.map(
|
|
2939
|
+
`]}countOf(e){return typeof e.count!="number"?l:e.countLabel?o`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:o`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],r=i.findIndex(c=>c.id===this.current()),n={ArrowRight:r+1,ArrowLeft:r-1,Home:0,End:i.length-1}[e.key];n===void 0||!i.length||(e.preventDefault(),this.choose(i[(n+i.length)%i.length].id,!0))}reveal(){let e=this.renderRoot.querySelector("[role='tablist']"),i=this.renderRoot.querySelector("[role='tab'][aria-selected='true']");if(!e||!i||e.scrollWidth<=e.clientWidth)return;let r=i.offsetLeft-e.offsetLeft,n=r+i.offsetWidth;r<e.scrollLeft?e.scrollLeft=r-16:n>e.scrollLeft+e.clientWidth&&(e.scrollLeft=n-e.clientWidth+16)}updated(e){(e.has("selected")||e.has("items"))&&this.reveal()}render(){let e=this.items??[],i=this.current();if(this.linked)return o`<nav aria-label=${this.label||l} part="tabs"><ul>
|
|
2940
|
+
${e.map(n=>o`<li><a href=${n.href} part="tab" aria-current=${n.id===i?"page":l} @click=${c=>me(this,c,{href:n.href,id:n.id})}>${n.label}${this.countOf(n)}</a></li>`)}
|
|
2922
2941
|
</ul></nav>`;let r=e.length>4;return o`<div role="tablist" aria-label=${this.label||l} part="tabs" class=${r?"many":""} style=${r?`--columns:${Math.ceil(e.length/2)}`:l} @keydown=${this.onKey}>
|
|
2923
|
-
${e.map(
|
|
2942
|
+
${e.map(n=>o`<button role="tab" type="button" id=${this.id_(`tab-${n.id}`)} aria-selected=${n.id===i?"true":"false"} aria-controls=${this.id_(`panel-${n.id}`)} tabindex=${n.id===i?"0":"-1"} @click=${()=>this.choose(n.id,!1)}>${n.label}${this.countOf(n)}</button>`)}
|
|
2924
2943
|
</div>
|
|
2925
|
-
${e.map(
|
|
2944
|
+
${e.map(n=>o`<div role="tabpanel" id=${this.id_(`panel-${n.id}`)} aria-labelledby=${this.id_(`tab-${n.id}`)} tabindex="0" ?hidden=${n.id!==i} part="panel"><slot name=${n.id}><span class="body">${n.body??""}</span></slot></div>`)}`}};customElements.define("impakt-divider",wt);customElements.define("impakt-spacer",St);customElements.define("impakt-visually-hidden",Tt);customElements.define("impakt-tabs",zt);var Mt=class extends h{static{this.properties={legend:{type:String},description:{type:String},error:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.legend="",this.description="",this.error="",this.size="md"}static{this.styles=[...h.styles,u`
|
|
2926
2945
|
:host { display: block; margin-block-end: ${a(6)}; }
|
|
2927
2946
|
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
|
|
2928
2947
|
legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${O("tight")}; color: ${t.text}; }
|
|
@@ -2966,7 +2985,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2966
2985
|
</div>
|
|
2967
2986
|
<div class="body" part="body"><slot></slot></div>
|
|
2968
2987
|
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
2969
|
-
</dialog>`}},
|
|
2988
|
+
</dialog>`}},Cr={neutral:"info",success:"check",warning:"warning",danger:"warning"},At=class extends h{static{this.properties={open:{type:Boolean,reflect:!0},message:{type:String},tone:{type:String,reflect:!0},duration:{type:Number},actionText:{type:String,attribute:"action-text"},closeLabel:{type:String,attribute:"close-label"}}}constructor(){super(),this.open=!1,this.message="",this.tone="neutral",this.duration=6,this.actionText="",this.closeLabel="Dismiss"}static{this.styles=[...h.styles,v,u`
|
|
2970
2989
|
.region { position: fixed; inset-block-end: calc(${a(4)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); inset-inline-end: ${a(4)}; z-index: 1000; inline-size: min(24rem, calc(100vw - ${a(8)})); pointer-events: none; }
|
|
2971
2990
|
@media (max-width: 40rem) { .region { inset-inline: ${a(3)}; inline-size: auto; inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); } }
|
|
2972
2991
|
.toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${a(3)}; padding: ${a(3)} ${a(3)} ${a(3)} ${a(4)}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowXl}, 0 0 0 1px color-mix(in srgb, ${t.text} 8%, transparent); animation: rise 220ms cubic-bezier(0.16, 1, 0.3, 1); }
|
|
@@ -2983,12 +3002,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2983
3002
|
`,C(".action, .close")]}disconnectedCallback(){super.disconnectedCallback(),this.stop()}updated(e){(e.has("open")||e.has("duration"))&&(this.stop(),this.open&&this.start())}start(){this.stop(),this.duration>0&&!this.actionText&&(this.timer=setTimeout(()=>this.close(),this.duration*1e3))}stop(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.stop(),this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}action(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0})),this.close()}render(){return o`<div class="region" role="status" aria-live="polite">
|
|
2984
3003
|
${this.open?o`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
|
|
2985
3004
|
@keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}>
|
|
2986
|
-
<span class="mark">${M(
|
|
3005
|
+
<span class="mark">${M(Cr[this.tone]??"info","20px")}</span>
|
|
2987
3006
|
<p class="message">${this.message}</p>
|
|
2988
3007
|
${this.actionText?o`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
|
|
2989
3008
|
<button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","16px")}</button>
|
|
2990
3009
|
</div>`:l}
|
|
2991
|
-
</div>`}},
|
|
3010
|
+
</div>`}},Lr=L("var(--impakt-color-line-soft, #dcdcd8)"),Ct=class extends h{constructor(){super();this.outside=i=>{i.composedPath().includes(this)||this.toggle(!1)};this.label="Menu",this.icon="",this.items=[],this.edge="start",this.open=!1,this.triggerLook="button"}static{this.properties={label:{type:String},icon:{type:String},items:{type:Array},edge:{type:String,reflect:!0},open:{type:Boolean,reflect:!0},triggerLook:{type:String,reflect:!0,attribute:"trigger-look"}}}static{this.styles=[...h.styles,v,C(".trigger, .item"),u`
|
|
2992
3011
|
:host { position: relative; display: inline-block; }
|
|
2993
3012
|
.trigger { ${z} display: inline-flex; align-items: center; gap: ${a(2)}; padding: ${a(2)} ${a(3.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusLg}; cursor: pointer; }
|
|
2994
3013
|
:host([trigger-look='text']) .trigger { padding: ${a(1)} ${a(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
|
|
@@ -3000,7 +3019,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3000
3019
|
/* G2: a 1px ink border and the one shadow the design allows, the open menu's. */
|
|
3001
3020
|
.panel { position: absolute; z-index: 100; inset-block-start: calc(100% + ${a(1.5)}); inset-inline-start: 0; box-sizing: border-box; min-inline-size: 13rem; max-inline-size: min(24rem, 90vw); padding: ${a(2)} 0; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusXl}; box-shadow: var(--impakt-shadow-overlay, 0 16px 32px rgb(0 0 0 / 0.2)); animation: pop 120ms ease-out; }
|
|
3002
3021
|
.list, .group { margin: 0; padding: 0; list-style: none; }
|
|
3003
|
-
.grouped:not(:first-child) { border-block-start: ${t.borderThin} solid ${
|
|
3022
|
+
.grouped:not(:first-child) { border-block-start: ${t.borderThin} solid ${Lr}; }
|
|
3004
3023
|
/* G2 group label (53:983): 12px above, 6px below, 18px in, IBM Plex Mono 14/1.4. */
|
|
3005
3024
|
.group-label { display: block; padding: ${a(3)} 18px 6px; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
|
|
3006
3025
|
.header { padding: ${a(2)} ${a(2.5)} ${a(2.5)}; margin-block-end: ${a(1.5)}; border-block-end: ${t.borderThin} solid ${t.border}; ${w("sm")} color: ${t.textMuted}; overflow-wrap: anywhere; }
|
|
@@ -3020,11 +3039,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3020
3039
|
@media (forced-colors: active) { .panel { border-color: CanvasText; } .item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } .item[aria-disabled='true'] { color: GrayText; } }
|
|
3021
3040
|
.item.danger { color: ${t.dangerText}; }
|
|
3022
3041
|
.item svg { flex: none; }
|
|
3023
|
-
`]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,r){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.entries[r==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}updated(i){super.updated?.(i),i.has("open")&&this.open&&this.keepOnScreen()}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let r=i.getBoundingClientRect(),
|
|
3042
|
+
`]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,r){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.entries[r==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}updated(i){super.updated?.(i),i.has("open")&&this.open&&this.keepOnScreen()}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let r=i.getBoundingClientRect(),n=document.documentElement.clientWidth;r.right>n-8?i.classList.add("flip-end"):r.left<8&&i.classList.add("flip-start")}triggerKey(i){(i.key==="ArrowDown"||i.key==="ArrowUp")&&(i.preventDefault(),this.toggle(!0,i.key==="ArrowUp"?"last":"first"))}listKey(i){let r=this.entries,n=r.indexOf(this.renderRoot.activeElement),c={ArrowDown:(n+1)%r.length,ArrowUp:(n-1+r.length)%r.length,Home:0,End:r.length-1};if(i.key in c)i.preventDefault(),r[c[i.key]]?.focus();else if(i.key.length===1&&/\S/.test(i.key)&&!i.ctrlKey&&!i.metaKey&&!i.altKey){let p=i.key.toLowerCase();[...r.slice(n+1),...r.slice(0,n+1)].find(g=>(g.textContent??"").trim().toLowerCase().startsWith(p))?.focus()}else i.key==="Escape"?(i.preventDefault(),this.toggle(!1),this.trigger?.focus()):i.key==="Tab"&&this.toggle(!1)}choose(i,r){if(i.disabled){r?.preventDefault();return}this.toggle(!1),this.trigger?.focus(),i.href||this.dispatchEvent(new CustomEvent("impakt-select",{detail:{value:i.value??i.text},bubbles:!0,composed:!0}))}renderItem(i){let r=i.meta||(i.current?S("You are here"):""),n=o`${M(i.icon,"18px")}<span class="text" part="label">${i.text}</span>${r?o`<span class="meta" part="meta">${r}</span>`:l}`,c=`item ${i.tone==="danger"?"danger":""}`,p=i.current?"page":l,$=i.disabled?"true":l,g=i.current?"item current":"item";return o`<li role="none">${i.href&&!i.disabled?o`<a class=${c} part=${g} role="menuitem" tabindex="-1" href=${i.href} aria-current=${p} @click=${k=>this.choose(i,k)}>${n}</a>`:o`<button class=${c} part=${g} role="menuitem" tabindex="-1" type="button" aria-current=${p} aria-disabled=${$} @click=${k=>this.choose(i,k)}>${n}</button>`}</li>`}get runs(){let i=[];for(let r of this.items??[]){let n=r.group??"",c=i[i.length-1],p=n?i.find($=>$.group===n):void 0;p?p.items.push(r):c&&!n&&!c.group?c.items.push(r):i.push({group:n,items:[r]})}return i}render(){let i=this.triggerLook==="text",r=this.runs,n=r.some(c=>c.group);return o`<button class="trigger" part="trigger" type="button" aria-haspopup="menu" aria-expanded=${String(this.open)} aria-controls=${this.id_("list")}
|
|
3024
3043
|
@click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?o`<span class="caret" part="chevron" aria-hidden="true">${this.open?"\u25B4":"\u25BE"}</span>`:o`<span class="chev" part="chevron">${M("chevron-down","16px")}</span>`}</button>
|
|
3025
3044
|
${this.open?o`<div class="panel" part="panel">${this.querySelector?.(':scope > [slot="header"]')?o`<div class="header" part="header"><slot name="header"></slot></div>`:l}<ul class="list" part="list" id=${this.id_("list")} role="menu" aria-label=${this.label} @keydown=${this.listKey}>
|
|
3026
|
-
${
|
|
3027
|
-
</ul></div>`:l}`}};function
|
|
3045
|
+
${n?r.map((c,p)=>{let $=this.id_(`group-${p}`);return o`<li role="none" class="grouped" part="group">${c.group?o`<span class="group-label" id=${$} part="group-label">${c.group}</span>`:l}<ul class="group" role="group" aria-labelledby=${c.group?$:l}>${c.items.map(g=>this.renderItem(g))}</ul></li>`}):(this.items??[]).map(c=>this.renderItem(c))}
|
|
3046
|
+
</ul></div>`:l}`}};function Ir(s,e){let i=[...new Set([1,s-1,s,s+1,e])].filter(r=>r>=1&&r<=e).sort((r,n)=>r-n);return i.flatMap((r,n)=>{let c=i[n-1];return c===void 0||r===c+1?[r]:r===c+2?[c+1,r]:["gap",r]})}var Lt=class extends h{static{this.properties={page:{type:Number},pages:{type:Number},hrefPattern:{type:String,attribute:"href-pattern"},label:{type:String},previousText:{type:String,attribute:"previous-text"},nextText:{type:String,attribute:"next-text"}}}constructor(){super(),this.page=1,this.pages=1,this.hrefPattern="",this.label="Pages",this.previousText="Previous",this.nextText="Next"}static{this.styles=[...h.styles,v,C(".n, .step"),u`
|
|
3028
3047
|
:host { display: block; container-type: inline-size; }
|
|
3029
3048
|
nav { display: flex; align-items: center; justify-content: space-between; gap: ${a(2)}; }
|
|
3030
3049
|
ul { display: flex; align-items: center; gap: ${a(1)}; margin: 0; padding: 0; list-style: none; }
|
|
@@ -3035,12 +3054,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3035
3054
|
.gap { color: ${t.textMuted}; padding: 0 ${a(1)}; }
|
|
3036
3055
|
.count { display: none; ${w("sm")} color: ${t.textMuted}; }
|
|
3037
3056
|
@container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
|
|
3038
|
-
`]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,r,
|
|
3057
|
+
`]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,r,n,c){return this.hrefPattern?o`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${n} aria-current=${c?"page":l}>${r}</a>`:o`<button class=${i} type="button" aria-label=${n} aria-current=${c?"page":l} @click=${p=>this.go(e,p)}>${r}</button>`}step(e,i,r,n){let c=r==="arrow-left"?o`${M(r,"16px")}${i}`:o`${i}${M(r,"16px")}`;return n?o`<span class="step" aria-disabled="true">${c}</span>`:this.link(e,"step",c,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return o`<nav aria-label=${this.label} part="nav">
|
|
3039
3058
|
${this.step(e-1,this.previousText,"arrow-left",e<=1)}
|
|
3040
|
-
<ul>${
|
|
3059
|
+
<ul>${Ir(e,this.pages).map(i=>o`<li>${i==="gap"?o`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,S("Page {page}",{page:i}),i===e)}</li>`)}</ul>
|
|
3041
3060
|
<span class="count">${S("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
|
|
3042
3061
|
${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
|
|
3043
|
-
</nav>`}},
|
|
3062
|
+
</nav>`}},Rr=s=>{let e=s.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},It=class extends h{constructor(){super();this.failed=!1;this.fullName="",this.src="",this.size="md"}static{this.properties={fullName:{type:String,attribute:"full-name"},src:{type:String},size:{type:String,reflect:!0}}}static{this.styles=[...h.styles,u`
|
|
3044
3063
|
:host { --size: 40px; display: inline-block; inline-size: var(--size); block-size: var(--size); vertical-align: middle; }
|
|
3045
3064
|
:host([size='xs']) { --size: 22px; }
|
|
3046
3065
|
:host([size='sm']) { --size: 32px; }
|
|
@@ -3048,7 +3067,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3048
3067
|
:host([size='xl']) { --size: 80px; }
|
|
3049
3068
|
.face { display: flex; align-items: center; justify-content: center; inline-size: 100%; block-size: 100%; overflow: hidden; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; font-size: calc(var(--size) * 0.38); font-weight: ${m("semibold")}; }
|
|
3050
3069
|
img { inline-size: 100%; block-size: 100%; object-fit: cover; }
|
|
3051
|
-
`]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?o`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:o`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${
|
|
3070
|
+
`]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?o`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:o`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${Rr(this.fullName)||M("user","55%")}</div>`}},Rt=class extends h{static{this.properties={items:{type:Array},max:{type:Number},size:{type:String,reflect:!0},moreLabel:{type:String,attribute:"more-label"}}}constructor(){super(),this.items=[],this.max=4,this.size="md",this.moreLabel="more people"}static{this.styles=[...h.styles,u`
|
|
3052
3071
|
ul { display: flex; margin: 0; padding: 0; list-style: none; }
|
|
3053
3072
|
li { margin-inline-start: -${a(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
|
|
3054
3073
|
li:first-child { margin-inline-start: 0; }
|
|
@@ -3074,7 +3093,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3074
3093
|
${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
|
|
3075
3094
|
${this.lead?o`<p>${this.lead}</p>`:l}
|
|
3076
3095
|
<div class="actions"><slot name="actions"></slot></div>
|
|
3077
|
-
</div>`}},
|
|
3096
|
+
</div>`}},_r=s=>String(s?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function Hr(s){let e=new Date(`${s}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:s,month:""};let i=q(),r=n=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...n}).format(e);return{weekday:r({weekday:"short"}),day:r({day:"numeric"}),month:r({month:"short"})}}var Ht=class extends x{constructor(){super();this.day="";this.days=[],this.dayLabel="Day",this.timeLabel="Time",this.emptyText="No times are available at the moment."}static{this.properties={...x.properties,days:{type:Array},dayLabel:{type:String,attribute:"day-label"},timeLabel:{type:String,attribute:"time-label"},emptyText:{type:String,attribute:"empty-text"}}}static{this.styles=[...x.styles,u`
|
|
3078
3097
|
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
|
|
3079
3098
|
legend { padding: 0; }
|
|
3080
3099
|
.row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${a(2)}; }
|
|
@@ -3094,18 +3113,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3094
3113
|
`]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(r=>r.date===i)??this.days[0]}chooseDay(i){this.day=i,this.value&&!this.value.startsWith(`${i}T`)&&this.setFormValue(""),this.requestUpdate()}renderLabel(){return o`<legend class="label" part="label">${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}</legend>`}renderControl(){let i=this.currentDay;return i?o`
|
|
3095
3114
|
<div class="row-label" id=${this.id_("days")}>${this.dayLabel}</div>
|
|
3096
3115
|
<div class="days" part="days" role="radiogroup" aria-labelledby=${this.id_("days")}>
|
|
3097
|
-
${this.days.map(r=>{let
|
|
3098
|
-
<span class="weekday">${
|
|
3116
|
+
${this.days.map(r=>{let n=Hr(r.date);return o`<label class="day"><input type="radio" name=${`${this.uid}-day`} .checked=${r.date===i.date} ?disabled=${this.disabled} @change=${()=>this.chooseDay(r.date)} />
|
|
3117
|
+
<span class="weekday">${n.weekday}</span><span class="num">${n.day}</span><span class="month">${n.month}</span></label>`})}
|
|
3099
3118
|
</div>
|
|
3100
3119
|
<div class="row-label" id=${this.id_("times")}>${this.timeLabel}</div>
|
|
3101
3120
|
<div class="times" part="times" role="radiogroup" aria-labelledby=${this.id_("times")}>
|
|
3102
|
-
${
|
|
3121
|
+
${_r(i).map((r,n)=>{let c=`${i.date}T${r}`;return o`<label class="time"><input type="radio" name=${`${this.uid}-time`} .checked=${this.value===c} ?required=${this.required&&n===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(c)} />${r}</label>`})}
|
|
3103
3122
|
</div>`:o`<p class="empty">${this.emptyText}</p>`}render(){return o`<fieldset part="fieldset" ?disabled=${this.disabled} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
|
|
3104
3123
|
${this.renderLabel()}
|
|
3105
3124
|
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
3106
3125
|
${this.renderControl()}
|
|
3107
3126
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
3108
|
-
</fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",Et);customElements.define("impakt-toast",At);customElements.define("impakt-menu",Ct);customElements.define("impakt-pagination",Lt);customElements.define("impakt-avatar",It);customElements.define("impakt-avatar-group",Rt);customElements.define("impakt-empty-state",_t);customElements.define("impakt-slot-picker",Ht);var
|
|
3127
|
+
</fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",Et);customElements.define("impakt-toast",At);customElements.define("impakt-menu",Ct);customElements.define("impakt-pagination",Lt);customElements.define("impakt-avatar",It);customElements.define("impakt-avatar-group",Rt);customElements.define("impakt-empty-state",_t);customElements.define("impakt-slot-picker",Ht);var mi=u`
|
|
3109
3128
|
input, select {
|
|
3110
3129
|
box-sizing: border-box;
|
|
3111
3130
|
inline-size: min(100%, var(--impakt-field-width));
|
|
@@ -3135,7 +3154,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3135
3154
|
.btn:hover { background: ${t.brandHover}; }
|
|
3136
3155
|
.quiet { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; padding: 0; font: inherit; color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
|
|
3137
3156
|
.visually-hidden { ${T} }
|
|
3138
|
-
`,K=class extends x{static{this.properties={...x.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...x.styles,D,
|
|
3157
|
+
`,K=class extends x{static{this.properties={...x.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...x.styles,D,mi,u`
|
|
3139
3158
|
.row { display: flex; flex-wrap: wrap; gap: ${a(2)}; align-items: flex-end; }
|
|
3140
3159
|
.row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${a(1)}; }
|
|
3141
3160
|
.postcode input { inline-size: 12ch; text-transform: uppercase; }
|
|
@@ -3146,7 +3165,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3146
3165
|
.manual input { inline-size: 100%; }
|
|
3147
3166
|
.note { ${w("sm")} color: ${t.textMuted}; margin: ${a(2)} 0 0; }
|
|
3148
3167
|
.switch { margin-block-start: ${a(3)}; }
|
|
3149
|
-
`]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let r=await(await fetch(i)).json();this.addresses=Array.isArray(r)?r:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,r,
|
|
3168
|
+
`]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let r=await(await fetch(i)).json();this.addresses=Array.isArray(r)?r:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,r,n)=>o`<div><label for=${this.id_(i)}>${r}</label><input id=${this.id_(i)} autocomplete=${n} @input=${()=>this.setFormValue(this.manualLine())} /></div>`;return o`<div class="manual" role="group" aria-label=${this.label}>
|
|
3150
3169
|
${e("line1",S("Building and street"),"address-line1")}
|
|
3151
3170
|
${e("line2",S("Second line (optional)"),"address-line2")}
|
|
3152
3171
|
${e("town",S("Town or city"),"address-level2")}
|
|
@@ -3176,7 +3195,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3176
3195
|
`]}go(e,i){let r=i.replace(/^#/,""),c=this.getRootNode().querySelector?.(`#${CSS.escape(r)}`)??document.getElementById(r);c&&(e.preventDefault(),c.scrollIntoView({block:"center"}),c.focus())}updated(e){let i=e.get("items");e.has("items")&&this.items.length&&!i?.length&&this.renderRoot.querySelector(".box")?.focus()}render(){return this.items.length?o`<div class="box" role="alert" tabindex="-1" aria-labelledby=${this.id_("h")} part="box">
|
|
3177
3196
|
<h2 id=${this.id_("h")}>${this.heading}</h2>
|
|
3178
3197
|
<ul>${this.items.map(e=>o`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
|
|
3179
|
-
</div>`:l}},
|
|
3198
|
+
</div>`:l}},Br=s=>s>=1048576?S("{size} MB",{size:(s/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(s/1024))}),te=class extends x{static{this.properties={...x.properties,accept:{type:String},manyFiles:{type:Boolean,attribute:"many-files"},maxSizeMb:{type:Number,attribute:"max-size-mb"},chooseText:{type:String,attribute:"choose-text"},dropText:{type:String,attribute:"drop-text"}}}constructor(){super(),this.label="Upload a file",this.accept=".pdf,.jpg,.jpeg,.png",this.manyFiles=!1,this.maxSizeMb=10,this.chooseText="Choose file",this.dropText="or drop it here",this.files=[],this.over=!1,this.said=""}static{this.styles=[...x.styles,mi,z,C("label.btn, .quiet"),u`
|
|
3180
3199
|
.zone { display: flex; flex-wrap: wrap; align-items: center; gap: ${a(3)}; padding: ${a(5)}; border: 2px dashed ${t.border}; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
|
|
3181
3200
|
.zone.over { border-color: ${t.brand}; background: ${t.brandSubtle}; }
|
|
3182
3201
|
:host([invalid]) .zone { border-color: ${t.danger}; border-style: solid; }
|
|
@@ -3188,7 +3207,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3188
3207
|
ul { margin: ${a(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
|
|
3189
3208
|
li { display: flex; justify-content: space-between; gap: ${a(3)}; align-items: center; padding: ${a(2)} ${a(3)}; border-radius: ${t.radius}; background: ${t.surfaceInset}; }
|
|
3190
3209
|
.size { color: ${t.textMuted}; ${w("sm")} }
|
|
3191
|
-
`]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(r=>r.startsWith(".")?e.name.toLowerCase().endsWith(r):e.type===r||r.endsWith("/*")&&e.type.startsWith(r.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(r=>r.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),r=i.map(p=>this.fits(p)).filter(p=>!!p),
|
|
3210
|
+
`]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(r=>r.startsWith(".")?e.name.toLowerCase().endsWith(r):e.type===r||r.endsWith("/*")&&e.type.startsWith(r.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(r=>r.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),r=i.map(p=>this.fits(p)).filter(p=>!!p),n=i.filter(p=>!this.fits(p)),c=this.manyFiles?n:n.slice(0,1);this.files=this.manyFiles?[...this.files,...n]:c.length?c:this.files,this.error=r.join(". "),this.said=c.map(p=>S("{file} added",{file:p.name})).join(". "),this.sync()}removeFile(e){let i=this.files[e];this.files=this.files.filter((r,n)=>n!==e),this.said=i?S("{file} removed",{file:i.name}):"",this.sync(),this.updateComplete.then(()=>this.renderRoot.querySelector('input[type="file"]')?.focus())}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}sync(){this.setFormValue(this.files.map(e=>e.name).join(", ")),this.dispatchEvent(new CustomEvent("impakt-files",{detail:{files:this.files},bubbles:!0,composed:!0}))}renderControl(){return o`
|
|
3192
3211
|
<div class="zone ${this.over?"over":""}"
|
|
3193
3212
|
@dragover=${e=>{e.preventDefault(),this.over=!0}}
|
|
3194
3213
|
@dragleave=${()=>{this.over=!1}}
|
|
@@ -3199,13 +3218,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3199
3218
|
<span class="drop">${this.dropText}</span>
|
|
3200
3219
|
</div>
|
|
3201
3220
|
<p class="visually-hidden" role="status">${this.said}</p>
|
|
3202
|
-
${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${
|
|
3203
|
-
`}};function
|
|
3221
|
+
${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${Br(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${S("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:l}
|
|
3222
|
+
`}};function hi(s){try{return new Intl.NumberFormat(q(),{style:"currency",currency:s,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function ui(s){let e=s.replace(/[^\d.]/g,"");if(!e)return"";let[i,r]=e.split(".");return`${Number(i).toLocaleString("en-GB")}${r!==void 0?`.${r.slice(0,2)}`:""}`}var ke=class extends x{static{this.properties={...x.properties,currency:{type:String},lowest:{type:Number},highest:{type:Number},pence:{type:Boolean},width:{type:String,reflect:!0}}}constructor(){super(),this.currency="GBP",this.lowest=void 0,this.highest=void 0,this.pence=!1,this.width="md",this.shown=""}static{this.styles=[...x.styles,D,mi,u`
|
|
3204
3223
|
.wrap { display: flex; align-items: stretch; inline-size: min(100%, var(--impakt-field-width)); }
|
|
3205
3224
|
.sign { display: flex; align-items: center; padding: 0 ${a(3)}; font-weight: ${m("semibold")}; background: ${t.surfaceInset}; border: ${t.borderThin} solid ${t.border}; border-inline-end: 0; border-radius: ${t.radiusLg} 0 0 ${t.radiusLg}; }
|
|
3206
3225
|
.wrap input { inline-size: 100%; border-radius: 0 ${t.radiusLg} ${t.radiusLg} 0; }
|
|
3207
|
-
`]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=
|
|
3208
|
-
<span class="sign" id=${this.id_("sign")}>${
|
|
3226
|
+
`]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=ui(this.value))}typed(e){let i=e.replace(/[^\d.]/g,""),r=this.pence?i:i.split(".")[0];this.shown=e,this.setFormValue(r)}check(){this.shown=ui(this.value);let e=Number(this.value);if(!this.value)return;let i=r=>`${hi(this.currency)}${r.toLocaleString("en-GB")}`;this.lowest!==void 0&&e<this.lowest?this.error=S("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=S("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===S("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===S("Enter an amount of {amount} or less",{amount:i(this.highest??0)}))&&(this.error="")}get describedBy(){let e=[hi(this.currency)?this.id_("sign"):"",super.describedBy===l?"":String(super.describedBy)].filter(Boolean);return e.length?e.join(" "):l}renderControl(){return o`<div class="wrap">
|
|
3227
|
+
<span class="sign" id=${this.id_("sign")}>${hi(this.currency)}</span>
|
|
3209
3228
|
<input id=${this.controlId} inputmode=${this.pence?"decimal":"numeric"} .value=${this.shown} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required}
|
|
3210
3229
|
aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}
|
|
3211
3230
|
@input=${e=>this.typed(e.target.value)} @blur=${()=>this.check()} />
|
|
@@ -3374,7 +3393,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3374
3393
|
</svg>`:o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
|
3375
3394
|
<rect class="box" x="0.5" y="0.5" width="13" height="13" stroke-width="1"></rect>
|
|
3376
3395
|
<path class="tick" d="M3.5 3.5 10.5 10.5M10.5 3.5 3.5 10.5" fill="none" stroke-width="1.5"></path>
|
|
3377
|
-
</svg>`,r=this.label||(e?this.verifiedText:this.unverifiedText);return o`<span class="label" part="label">${i}<span class="text"><slot>${r}</slot></span></span>`}};customElements.define("impakt-checked",qt);var
|
|
3396
|
+
</svg>`,r=this.label||(e?this.verifiedText:this.unverifiedText);return o`<span class="label" part="label">${i}<span class="text"><slot>${r}</slot></span></span>`}};customElements.define("impakt-checked",qt);var Nr=["trigger","chevron","panel","header","list","group","group-label","item","current","label","meta"],Xi=s=>Nr.map(e=>`${e}: ${s}-${e}`).join(", "),Pr=Xi("switcher"),Or=Xi("organisation"),Ft=class extends h{static{this.properties={tool:{type:String},home:{type:String},brand:{type:String},links:{type:Array},pagesLabel:{type:String,attribute:"pages-label"},switcher:{type:Array},switcherLabel:{type:String,attribute:"switcher-label"},toolsHref:{type:String,attribute:"tools-href"},organisation:{type:String},organisationItems:{type:Array,attribute:"organisation-items"},organisationHref:{type:String,attribute:"organisation-href"},signedOut:{type:Boolean,reflect:!0,attribute:"signed-out"},signInHref:{type:String,attribute:"sign-in-href"},signInText:{type:String,attribute:"sign-in-text"}}}constructor(){super(),this.tool="",this.home="/",this.brand="impakt",this.links=[],this.pagesLabel="Tool pages",this.switcher=[],this.switcherLabel="All tools",this.toolsHref="",this.organisation="Your organisation",this.organisationItems=[],this.organisationHref="",this.signedOut=!1,this.signInHref="/sign-in",this.signInText="Sign in"}static{this.styles=[...h.styles,v,C(".home, .pages a, .sign-in, a.org, .all"),u`
|
|
3378
3397
|
:host {
|
|
3379
3398
|
display: block;
|
|
3380
3399
|
container-type: inline-size;
|
|
@@ -3543,6 +3562,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3543
3562
|
grid-template-areas: 'start end' 'pages pages';
|
|
3544
3563
|
padding-block: ${a(2)};
|
|
3545
3564
|
}
|
|
3565
|
+
/* On its own row the track wraps rather than scrolls, so no page is cut off at the edge (#64). */
|
|
3566
|
+
.pages {
|
|
3567
|
+
overflow: visible;
|
|
3568
|
+
}
|
|
3569
|
+
.pages ul {
|
|
3570
|
+
flex-wrap: wrap;
|
|
3571
|
+
inline-size: fit-content;
|
|
3572
|
+
max-inline-size: 100%;
|
|
3573
|
+
}
|
|
3546
3574
|
}
|
|
3547
3575
|
@container (max-width: 30rem) {
|
|
3548
3576
|
.bar {
|
|
@@ -3570,7 +3598,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3570
3598
|
>
|
|
3571
3599
|
</li>`)}
|
|
3572
3600
|
</ul>
|
|
3573
|
-
</nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" exportparts=${
|
|
3601
|
+
</nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" exportparts=${Pr} edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`:this.toolsHref?o`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`:l}renderAccount(){return this.signedOut?o`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`:this.organisationItems.length?o`<impakt-menu class="org" exportparts=${Or} edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`:this.organisationHref?o`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`:l}render(){return o`<header class="bar" part="bar">
|
|
3574
3602
|
<div class="start">
|
|
3575
3603
|
<a class="home" part="home" href=${this.home}><span class="mark" aria-hidden="true">i</span><span class="word">${this.brand}</span></a>
|
|
3576
3604
|
${this.tool?o`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
|
|
@@ -3581,7 +3609,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3581
3609
|
<slot name="tools">${this.renderSwitcher()}</slot>
|
|
3582
3610
|
${this.renderAccount()}
|
|
3583
3611
|
</div>
|
|
3584
|
-
</header>`}};customElements.define("impakt-app-bar",
|
|
3612
|
+
</header>`}};customElements.define("impakt-app-bar",Ft);var qr=[{lang:"en",label:"EN",name:"English",href:"?lang=en"},{lang:"el",label:"EL",name:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",href:"?lang=el"},{lang:"ru",label:"RU",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",href:"?lang=ru"}],Dt=class extends h{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=qr,this.current="en",this.label="Language"}static{this.styles=[...h.styles,v,C("a"),u`
|
|
3585
3613
|
:host {
|
|
3586
3614
|
display: inline-flex;
|
|
3587
3615
|
}
|
|
@@ -3641,7 +3669,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3641
3669
|
>
|
|
3642
3670
|
</li>`)}
|
|
3643
3671
|
</ul>
|
|
3644
|
-
</nav>`}};customElements.define("impakt-language-switch",
|
|
3672
|
+
</nav>`}};customElements.define("impakt-language-switch",Dt);var gi=(s,e,i)=>Math.min(i,Math.max(e,s)),Yi=(s,e,i)=>i>e?(gi(s,e,i)-e)/(i-e)*100:0,Ji=u`
|
|
3645
3673
|
.track {
|
|
3646
3674
|
position: relative;
|
|
3647
3675
|
display: block;
|
|
@@ -3686,7 +3714,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3686
3714
|
.head:empty {
|
|
3687
3715
|
display: none;
|
|
3688
3716
|
}
|
|
3689
|
-
`]}render(){let e=
|
|
3717
|
+
`]}render(){let e=gi(this.value,this.min,this.max);return o`<div class="head">${this.label?o`<span class="label" id=${this.id_("label")}>${this.label}</span>`:l}${this.showValue?o`<span class="figure" aria-hidden="true">${this.valueText||e}</span>`:l}</div><span
|
|
3690
3718
|
class="track"
|
|
3691
3719
|
part="track"
|
|
3692
3720
|
role="meter"
|
|
@@ -3730,12 +3758,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3730
3758
|
}
|
|
3731
3759
|
}
|
|
3732
3760
|
`]}render(){return o`<ul part="list" role="list" aria-label=${this.label}>
|
|
3733
|
-
${this.items.map((e,i)=>{let r=e.max??this.max,
|
|
3761
|
+
${this.items.map((e,i)=>{let r=e.max??this.max,n=gi(e.value,0,r),c=this.id_(`score-${i}`);return o`<li part="row">
|
|
3734
3762
|
<span class="name" id=${c}>${e.label}</span>
|
|
3735
|
-
<span class="track" part="track" role="meter" aria-labelledby=${c} aria-valuemin="0" aria-valuemax=${r} aria-valuenow=${
|
|
3736
|
-
><span class="fill" part="fill" style=${`inline-size:${Yi(
|
|
3763
|
+
<span class="track" part="track" role="meter" aria-labelledby=${c} aria-valuemin="0" aria-valuemax=${r} aria-valuenow=${n}
|
|
3764
|
+
><span class="fill" part="fill" style=${`inline-size:${Yi(n,0,r)}%`}></span
|
|
3737
3765
|
></span>
|
|
3738
|
-
<span class="figure" aria-hidden="true">${
|
|
3766
|
+
<span class="figure" aria-hidden="true">${n}</span>
|
|
3739
3767
|
<span class="pill">${e.status?o`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:l}</span>
|
|
3740
3768
|
</li>`})}
|
|
3741
3769
|
</ul>`}};customElements.define("impakt-meter",jt);customElements.define("impakt-score-bars",Ut);var Wt=class extends h{static{this.properties={removed:{type:String},added:{type:String},lines:{type:Array},label:{type:String},removedText:{type:String,attribute:"removed-text"},addedText:{type:String,attribute:"added-text"}}}constructor(){super(),this.removed="",this.added="",this.lines=[],this.label="Code change",this.removedText="Removed",this.addedText="Added"}static{this.styles=[...h.styles,v,u`
|
|
@@ -3782,7 +3810,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3782
3810
|
}
|
|
3783
3811
|
}
|
|
3784
3812
|
`]}get allLines(){if(this.lines.length)return this.lines;let e=(i,r)=>i?i.split(`
|
|
3785
|
-
`).map(
|
|
3813
|
+
`).map(n=>({kind:r,text:n})):[];return[...e(this.removed,"removed"),...e(this.added,"added")]}render(){let e={removed:"\u2212",added:"+",context:" "},i={removed:this.removedText,added:this.addedText,context:""};return o`<div class="block" part="block" role="region" aria-label=${this.label} tabindex="0"><pre part="code"><code>${this.allLines.map(r=>o`<span class="line ${r.kind}"><span class="sign" aria-hidden="true">${e[r.kind]}</span>${i[r.kind]?o`<span class="visually-hidden">${i[r.kind]}: </span>`:l}${r.text}</span>`)}</code></pre></div>`}};customElements.define("impakt-code-diff",Wt);var Vt=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array},multiple:{type:Boolean,reflect:!0},look:{type:String,reflect:!0},missingText:{type:String,attribute:"missing-text"}}}constructor(){super(),this.options=[],this.values=[],this.multiple=!1,this.look="default",this.missingText="Choose an option"}static{this.styles=[...x.styles,u`
|
|
3786
3814
|
fieldset {
|
|
3787
3815
|
border: 0;
|
|
3788
3816
|
margin: 0;
|
|
@@ -3794,7 +3822,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3794
3822
|
}
|
|
3795
3823
|
:host([look='site']) legend {
|
|
3796
3824
|
font-family: ${t.fontMono};
|
|
3797
|
-
|
|
3825
|
+
/* G2 Mono S is 11px (20:1100); the ramp's 2xs is 12px, so the size is set here, as the text fields' site label is. */
|
|
3826
|
+
font-size: 0.6875rem;
|
|
3798
3827
|
font-weight: ${f.medium};
|
|
3799
3828
|
text-transform: uppercase;
|
|
3800
3829
|
letter-spacing: 0.06em;
|
|
@@ -3803,7 +3832,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3803
3832
|
.chips {
|
|
3804
3833
|
display: flex;
|
|
3805
3834
|
flex-wrap: wrap;
|
|
3806
|
-
gap: ${a(1.5)};
|
|
3835
|
+
gap: var(--impakt-chip-group-gap, ${a(1.5)});
|
|
3807
3836
|
}
|
|
3808
3837
|
.chip {
|
|
3809
3838
|
position: relative;
|
|
@@ -3868,14 +3897,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3868
3897
|
}
|
|
3869
3898
|
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
3870
3899
|
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
3871
|
-
</legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let r=i?[...this.values,e]:this.values.filter(
|
|
3872
|
-
${this.options.map((i,r)=>{let
|
|
3900
|
+
</legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let r=i?[...this.values,e]:this.values.filter(n=>n!==e);this.values=this.options.filter(n=>r.includes(n.value)).map(n=>n.value),this.setFormValue(this.values.join(","))}else this.setFormValue(e);this.syncValidity()}syncValidity(){let e=this.multiple?this.values.length===0:!this.value;try{if(this.required&&e){let i=this.renderRoot?.querySelector?.("input")??void 0;this.internals?.setValidity({valueMissing:!0},this.missingText,i)}else this.internals?.setValidity({})}catch{}}renderControl(){let e=this.multiple?"checkbox":"radio";return o`<div class="chips">
|
|
3901
|
+
${this.options.map((i,r)=>{let n=this.chosen(i.value);return o`<label class="chip ${n?"on":""}" part="chip">
|
|
3873
3902
|
<input
|
|
3874
3903
|
type=${e}
|
|
3875
3904
|
id=${r===0?this.controlId:this.id_(`opt-${r}`)}
|
|
3876
3905
|
name=${this.uid}
|
|
3877
3906
|
value=${i.value}
|
|
3878
|
-
.checked=${
|
|
3907
|
+
.checked=${n}
|
|
3879
3908
|
?disabled=${this.disabled}
|
|
3880
3909
|
?required=${!this.multiple&&this.required&&r===0}
|
|
3881
3910
|
@change=${c=>this.choose(i.value,c.target.checked)}
|
|
@@ -4015,7 +4044,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
4015
4044
|
${this.description?o`<p class="description">${this.description}</p>`:l}
|
|
4016
4045
|
${this.renderStatus()}
|
|
4017
4046
|
${this.state!=="coming-soon"&&this.href?o`<a class="action" part="action" href=${this.href}><span>${i}</span><span class="arrow" aria-hidden="true">→</span></a>`:l}
|
|
4018
|
-
</article>`}};customElements.define("impakt-tool-card",Kt);export{fe as CYCLE,x as FieldElement,si as ICONS,$r as ICON_NAMES,lt as ImpaktAccordion,K as ImpaktAddressLookup,Xe as ImpaktAlert,
|
|
4047
|
+
</article>`}};customElements.define("impakt-tool-card",Kt);export{fe as CYCLE,x as FieldElement,si as ICONS,$r as ICON_NAMES,lt as ImpaktAccordion,K as ImpaktAddressLookup,Xe as ImpaktAlert,Ft as ImpaktAppBar,Oe as ImpaktAppShell,It as ImpaktAvatar,Rt as ImpaktAvatarGroup,pt as ImpaktBadge,vt as ImpaktBreadcrumbs,Re as ImpaktButton,Je as ImpaktCard,Be as ImpaktCheckbox,ut as ImpaktCheckboxGroup,qt as ImpaktChecked,ct as ImpaktChip,Vt as ImpaktChipGroup,Wt as ImpaktCodeDiff,mt as ImpaktDateInput,je as ImpaktDateTile,gt as ImpaktDialog,wt as ImpaktDivider,rt as ImpaktDocumentLink,Et as ImpaktDrawer,h as ImpaktElement,_t as ImpaktEmptyState,Bt as ImpaktErrorSummary,Mt as ImpaktFieldset,te as ImpaktFileUpload,We as ImpaktFilterChip,ft as ImpaktGrid,Ze as ImpaktHeading,$t as ImpaktHelp,Ie as ImpaktIcon,tt as ImpaktImage,Dt as ImpaktLanguageSwitch,et as ImpaktLink,bt as ImpaktList,it as ImpaktLogo,Ct as ImpaktMenu,jt as ImpaktMeter,ke as ImpaktMoneyInput,kt as ImpaktNav,xt as ImpaktPage,Lt as ImpaktPagination,at as ImpaktPrice,dt as ImpaktProgress,Ke as ImpaktRadioGroup,Nt as ImpaktRangeInput,Gt as ImpaktRedaction,Ue as ImpaktRow,Ut as ImpaktScoreBars,yt as ImpaktSection,Ge as ImpaktSegmentedControl,He as ImpaktSelect,Ne as ImpaktSideNav,Ht as ImpaktSlotPicker,Ot as ImpaktSource,St as ImpaktSpacer,Ye as ImpaktStack,De as ImpaktStatTile,qe as ImpaktStatus,ot as ImpaktSummaryList,Ve as ImpaktSwitch,Pe as ImpaktTabBar,st as ImpaktTable,zt as ImpaktTabs,Pt as ImpaktTaskList,Qe as ImpaktText,_e as ImpaktTextInput,ht as ImpaktTextarea,At as ImpaktToast,Kt as ImpaktToolCard,Tt as ImpaktVisuallyHidden,V as LitElement,be as TONE,me as announceNavigate,Fi as base,u as css,D as fieldWidths,v as focusRing,b as fontSize,m as fontWeight,ui as groupDigits,Di as hideOn,o as html,M as iconSvg,li as isCurrent,O as lineHeight,Ar as linkCurrent,ye as lockScroll,P as noChange,l as nothing,q as pageLocale,qi as reducedMotion,ce as render,S as say,a as space,N as spaceAround,y as svg,t,z as targetSize,d as token,di as toneOf,C as touchTarget,w as type,ee as unlockScroll,L as unsafeCSS,T as visuallyHidden};
|
|
4019
4048
|
/*! Bundled license information:
|
|
4020
4049
|
|
|
4021
4050
|
lit-html/lit-html.js:
|