@atomic-ui/ui 0.13.0 → 0.13.1
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 +112 -0
- package/dist/{chunk-BGHAANTP.js → chunk-5OCDXZXG.js} +3 -2
- package/dist/chunk-5OCDXZXG.js.map +1 -0
- package/dist/{chunk-MGDX7Z74.js → chunk-EIWICFXL.js} +4 -3
- package/dist/chunk-EIWICFXL.js.map +1 -0
- package/dist/{chunk-SY7NTW3U.js → chunk-NZSKUEYS.js} +17 -9
- package/dist/chunk-NZSKUEYS.js.map +1 -0
- package/dist/{chunk-UBNCJROR.js → chunk-SRXC6ZPM.js} +11 -5
- package/dist/chunk-SRXC6ZPM.js.map +1 -0
- package/dist/{chunk-RCZPRFHQ.js → chunk-ZOWOKIE4.js} +2 -2
- package/dist/chunk-ZOWOKIE4.js.map +1 -0
- package/dist/components/app-bar.d.ts +22 -0
- package/dist/components/app-bar.js +2 -2
- package/dist/components/app-ui.d.ts +8 -0
- package/dist/components/app-ui.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/rows.js +1 -1
- package/dist/index.js +5 -5
- package/dist/standalone/atomic-ui.js +100 -94
- package/dist/standalone/atomic-ui.js.map +3 -3
- package/package.json +2 -2
- package/dist/chunk-BGHAANTP.js.map +0 -1
- package/dist/chunk-MGDX7Z74.js.map +0 -1
- package/dist/chunk-RCZPRFHQ.js.map +0 -1
- package/dist/chunk-SY7NTW3U.js.map +0 -1
- package/dist/chunk-UBNCJROR.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* @atomic-ui/ui version 0.13.
|
|
2
|
-
var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jt="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,Zt="?"+j,
|
|
1
|
+
/* @atomic-ui/ui version 0.13.1, standalone. */
|
|
2
|
+
var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jt="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,Zt="?"+j,Zi=`<${Zt}>`,J=document,ne=()=>J.createComment(""),le=n=>n===null||typeof n!="object"&&typeof n!="function",Qt=Array.isArray,vi=n=>Qt(n)||typeof n?.[Symbol.iterator]=="function",Xt=`[
|
|
3
3
|
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fi=/-->/g,$i=/>/g,X=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
|
|
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),Br=ei(3),O=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[$],v,_,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,v=_[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 K=p===X&&n[$+1].startsWith("/>")?" ":"";c+=p===se?g+Ji:A>=0?(r.push(v),g.slice(0,A)+Jt+g.slice(A)+j+K):g+j+(A===-2?$:K)}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,[v,_]=Ti(e,i);if(this.el=n.createElement(v,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++],K=s.getAttribute(A).split(j),ve=/([.?@])?(.*)/.exec(F);g.push({type:1,index:c,name:ve[2],strings:K,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 K=0;K<F;K++)s.append(A[K],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===O)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 v;g.type===2?v=new ie(c,c.nextSibling,this,e):g.type===1?v=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(v=new Ee(c,this,e)),this._$AV.push(v),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!==O&&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!==O,p&&(this._$AH=e);else{let $=e,g,v;for(e=c[0],g=0;g<c.length-1;g++)v=Z(this,$[r+g],i,g),v===O&&(v=this._$AH[g]),p||=!le(v)||v!==this._$AH[g],v===l?e=l:e!==l&&(e+=(v??"")+c[g+1]),this._$AH[g]=v}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)===O)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},Zi=Yt.litHtmlPolyfillSupport;Zi?.(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=O;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:jr}=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:Qi,isIterable:er,resolveDirective:Ii,ChildPart:pe,ElementPart:tr}=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 v=g.data;if(v.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=ir(n,g,p,i),r===void 0&&(r=c),s??=g}else if(v.startsWith("lit-node"))ar(g,p,i);else if(v.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=rr(g,c,p)}}if(r===void 0){let v=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 ${v}.`)}e._$litPart$=r},ir=(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===O)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 "+or(s);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=pe.prototype._$AC(s),g=new Qi($,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:s}),c._$AH=g}}else er(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},rr=(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},ar=(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 v=new g.ctor(c,g.name,g.strings,p.instance,i),_=Ci(v)?p.result.values[p.instancePartIndex]:p.result.values,A=!(v.type===re.EVENT||v.type===re.PROPERTY);v._$AI(_,v,p.instancePartIndex,A),p.instancePartIndex+=g.strings.length-1,$._$AV.push(v)}else{let v=new tr(c,p.instance,i);Ii(v,p.result.values[p.instancePartIndex++]),$._$AV.push(v)}p.templatePartIndex++}}},Li=new WeakMap,or=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 v=g.slice(18);this.removeAttribute(v),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:sr,defineProperty:nr,getOwnPropertyDescriptor:lr,getOwnPropertyNames:dr,getOwnPropertySymbols:cr,getPrototypeOf:pr}=Object,Le=globalThis,Bi=Le.trustedTypes,hr=Bi?Bi.emptyScript:"",ur=Le.reactiveElementPolyfillSupport,ue=(n,e)=>n,ai={toAttribute(n,e){switch(e){case Boolean:n=n?hr: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}},Oi=(n,e)=>!sr(n,e),Ni={attribute:!0,type:String,converter:ai,reflect:!1,useDefault:!1,hasChanged:Oi};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&&nr(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){let{get:s,set:c}=lr(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=pr(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=[...dr(i),...cr(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??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: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,ur?.({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 O}};W._$litElement$=!0,W.finalized=!0,oi.litElementHydrateSupport?.({LitElement:W});var mr=oi.litElementPolyfillSupport;mr?.({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"),P=n=>d(`font.line-height.${n}`,"1.5"),m=n=>d(`font.weight.${n}`,"400"),N=u`
|
|
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`
|
|
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)}; }
|
|
@@ -12,7 +12,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
12
12
|
:host([space-below='lg']) { margin-block-end: ${a(6)}; }
|
|
13
13
|
:host([space-below='xl']) { margin-block-end: ${a(8)}; }
|
|
14
14
|
:host([space-below='2xl']) { margin-block-end: clamp(${a(14)}, 8vw, ${a(28)}); }
|
|
15
|
-
`;var
|
|
15
|
+
`;var v=u`
|
|
16
16
|
:host(:focus-visible),
|
|
17
17
|
:host(:not([disabled])) :focus-visible {
|
|
18
18
|
outline: 2px solid transparent;
|
|
@@ -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
|
+
`,Oi=u`
|
|
36
36
|
@media (prefers-reduced-motion: reduce) {
|
|
37
37
|
:host,
|
|
38
38
|
:host *,
|
|
@@ -61,12 +61,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
61
61
|
`,C=n=>L(`@media (pointer: coarse) { :host :is(${n}) { 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
|
|
64
|
+
`;var br=Symbol.for("strata.wording");function S(n,e){let r=globalThis[br]?.words?.[n],s=typeof r=="string"&&r.trim()?r:n;return e?s.replace(/\{(\w+)\}/g,(c,p)=>p in e?String(e[p]):c):s}var fr=0,h=class extends W{constructor(){super(...arguments);this.uid=`impakt-${fr+=1}`}static{this.styles=[qi,Oi,u``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let s of i.keys()){let c=r[s];if(typeof c!="string"||!c)continue;let p=S(c);p!==c&&(r[s]=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(n,e="1.25em"){let i=n?si[n]: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}; }
|
|
68
68
|
@media (forced-colors: active) { :host { color: CanvasText; } }
|
|
69
|
-
`]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?o`<span role="img" aria-label=${this.label}>${i}</span>`:o`${i}`}};customElements.define("impakt-icon",Ie);var ni=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),E={height:d("button.height","40px"),paddingBlock:d("button.padding-block","8px"),paddingInline:d("button.padding-inline","16px"),gap:d("button.gap","8px"),fontSize:d("button.font-size","0.875rem"),lineHeight:d("button.line-height","1.429"),weight:d("button.weight","600"),smPaddingBlock:d("button.sm.padding-block","4px"),smHeight:d("button.sm.height","32px"),smPaddingInline:d("button.sm.padding-inline","12px"),smFontSize:d("button.sm.font-size","0.875rem"),smLineHeight:d("button.sm.line-height","1.429"),smGap:d("button.sm.gap","6px"),solidEdge:d("button.solid-edge-width","1px"),arrowIcon:d("button.arrow-icon","inline-block"),arrowGlyph:d("button.arrow-glyph","none"),lgHeight:d("button.lg.height","48px"),lgPaddingBlock:d("button.lg.padding-block","12px"),lgFontSize:d("button.lg.font-size","1rem"),lgLineHeight:d("button.lg.line-height","1.5"),iconSize:d("button.icon-size","40px"),lgIconSize:d("button.lg.icon-size","48px"),fullJustify:d("button.full.justify","center"),fullAlign:d("button.full.align","center"),highlight:d("button.highlight","inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),edge:d("button.edge","15%")}
|
|
69
|
+
`]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?o`<span role="img" aria-label=${this.label}>${i}</span>`:o`${i}`}};customElements.define("impakt-icon",Ie);var ni=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),E={height:d("button.height","40px"),paddingBlock:d("button.padding-block","8px"),paddingInline:d("button.padding-inline","16px"),gap:d("button.gap","8px"),fontSize:d("button.font-size","0.875rem"),lineHeight:d("button.line-height","1.429"),weight:d("button.weight","600"),smPaddingBlock:d("button.sm.padding-block","4px"),smHeight:d("button.sm.height","32px"),smPaddingInline:d("button.sm.padding-inline","12px"),smFontSize:d("button.sm.font-size","0.875rem"),smLineHeight:d("button.sm.line-height","1.429"),smGap:d("button.sm.gap","6px"),solidEdge:d("button.solid-edge-width","1px"),arrowIcon:d("button.arrow-icon","inline-block"),arrowGlyph:d("button.arrow-glyph","none"),lgHeight:d("button.lg.height","48px"),lgPaddingBlock:d("button.lg.padding-block","12px"),lgFontSize:d("button.lg.font-size","1rem"),lgLineHeight:d("button.lg.line-height","1.5"),iconSize:d("button.icon-size","40px"),lgIconSize:d("button.lg.icon-size","48px"),fullJustify:d("button.full.justify","center"),fullAlign:d("button.full.align","center"),highlight:d("button.highlight","inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),edge:d("button.edge","15%")},xr=y`<svg class="glyph" viewBox="0 0 15 10" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter" aria-hidden="true" focusable="false"><path d="M0 5h14" /><path d="M9.75 0.75 14 5l-4.25 4.25" /></svg>`,Re=class extends h{constructor(){super();this.internals=null;this.hideOn="never",this.variant="primary",this.type="button",this.disabled=!1,this.busy=!1,this.busyLabel="Working",this.full=!1,this.fullOnPhone=!1,this.size="md",this.iconBefore="none",this.iconAfter="none",this.href="",this.icon="none",this.label="",this.spread=!1,this.centred=!1;try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={hideOn:{type:String,reflect:!0,attribute:"hide-on"},variant:{type:String,reflect:!0},type:{type:String},disabled:{type:Boolean,reflect:!0},busy:{type:Boolean,reflect:!0},busyLabel:{type:String,attribute:"busy-label"},full:{type:Boolean,reflect:!0},fullOnPhone:{type:Boolean,attribute:"full-on-phone",reflect:!0},size:{type:String,reflect:!0},iconBefore:{type:String,attribute:"icon-before"},iconAfter:{type:String,attribute:"icon-after"},href:{type:String},icon:{type:String},label:{type:String},spread:{type:Boolean,reflect:!0},centred:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,v,C("button, a"),u`
|
|
70
70
|
@media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
|
|
71
71
|
:host {
|
|
72
72
|
display: inline-block;
|
|
@@ -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 s=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"
|
|
273
|
+
`}let s=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">${s}</a>`:o`
|
|
274
274
|
<button
|
|
275
275
|
class=${this.variant}
|
|
276
276
|
type="button"
|
|
@@ -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,
|
|
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`
|
|
328
328
|
:host {
|
|
329
329
|
display: block;
|
|
330
330
|
margin-block-end: ${a(4)};
|
|
@@ -342,7 +342,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
342
342
|
font-weight: var(--impakt-field-label-weight, ${m("semibold")});
|
|
343
343
|
letter-spacing: var(--impakt-field-label-tracking, normal);
|
|
344
344
|
text-transform: var(--impakt-field-label-transform, none);
|
|
345
|
-
line-height: ${
|
|
345
|
+
line-height: ${O("normal")};
|
|
346
346
|
margin-block-end: var(--impakt-field-label-space, ${a(1)});
|
|
347
347
|
color: ${t.text};
|
|
348
348
|
}
|
|
@@ -352,13 +352,13 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
352
352
|
}
|
|
353
353
|
.description {
|
|
354
354
|
font-size: ${b("sm")};
|
|
355
|
-
line-height: ${
|
|
355
|
+
line-height: ${O("normal")};
|
|
356
356
|
color: ${t.textMuted};
|
|
357
357
|
margin-block-end: ${a(2)};
|
|
358
358
|
}
|
|
359
359
|
.error {
|
|
360
360
|
font-size: ${b("sm")};
|
|
361
|
-
line-height: ${
|
|
361
|
+
line-height: ${O("normal")};
|
|
362
362
|
color: ${t.dangerText};
|
|
363
363
|
margin-block-start: ${a(1)};
|
|
364
364
|
display: flex;
|
|
@@ -542,7 +542,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
542
542
|
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
543
543
|
</span>
|
|
544
544
|
</label>
|
|
545
|
-
`}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Be);var
|
|
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 Fi(n){if(!n||n.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(n,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function li(n,e){let i=Fi(n);if(!i)return!1;let r=Fi(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function me(n,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});n.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
546
|
:host { display: flex; flex-direction: column; gap: ${a(5)}; block-size: 100%; }
|
|
547
547
|
.card { padding: ${a(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
|
|
548
548
|
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(.5)}; }
|
|
@@ -583,7 +583,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
583
583
|
</ul>
|
|
584
584
|
</nav>
|
|
585
585
|
<div class="card footer ${this.footerFilled?"":"empty"}" part="footer"><slot name="footer" @slotchange=${this.onFooter}></slot></div>
|
|
586
|
-
`}},
|
|
586
|
+
`}},Pe=class extends h{static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}constructor(){super(),this.items=[],this.label="Main",this.current=""}static{this.styles=[...h.styles,v,u`
|
|
587
587
|
:host { display: block; }
|
|
588
588
|
nav { padding: ${a(1.5)}; border-radius: ${t.radiusXl}; background: ${t.text}; box-shadow: ${t.shadowLg}; }
|
|
589
589
|
ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; }
|
|
@@ -624,7 +624,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
624
624
|
`)}
|
|
625
625
|
</ul>
|
|
626
626
|
</nav>
|
|
627
|
-
`}},
|
|
627
|
+
`}},Oe=class extends h{static{this.properties={skipText:{type:String,attribute:"skip-text"},topBarLabel:{type:String,attribute:"top-bar-label"}}}constructor(){super(),this.skipText="Skip to content",this.topBarLabel=""}static{this.styles=[...h.styles,v,u`
|
|
628
628
|
:host {
|
|
629
629
|
display: block;
|
|
630
630
|
min-block-size: 100svh;
|
|
@@ -673,7 +673,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
673
673
|
.skip:not(:focus) { clip-path: inset(50%); }
|
|
674
674
|
.skip:focus { transform: none; }
|
|
675
675
|
|
|
676
|
-
@media (max-width: ${
|
|
676
|
+
@media (max-width: ${yr}) {
|
|
677
677
|
:host { background: ${t.text}; }
|
|
678
678
|
.frame {
|
|
679
679
|
display: flex;
|
|
@@ -729,7 +729,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
729
729
|
<main id="content" tabindex="-1" part="main"><slot></slot></main>
|
|
730
730
|
<div class="tab-bar" part="tab-bar"><slot name="tab-bar"></slot></div>
|
|
731
731
|
</div>
|
|
732
|
-
`}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",
|
|
732
|
+
`}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",Pe);customElements.define("impakt-app-shell",Oe);function q(n){let e=n?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&n?n.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",r=typeof document<"u"?document.documentElement?.lang??"":"",s=(e||i||r||"").trim();return!s||s.toLowerCase()==="en"?"en-GB":s}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
733
|
/* 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
734
|
:host {
|
|
735
735
|
display: inline-flex;
|
|
@@ -791,12 +791,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
791
791
|
}
|
|
792
792
|
`]}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
793
|
>${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
|
|
794
|
+
>`}};customElements.define("impakt-status",qe);var kr=["ok","bad","warn","info","neutral","solid"],De=u`
|
|
795
795
|
.status-pill {
|
|
796
796
|
flex: none;
|
|
797
797
|
inline-size: fit-content;
|
|
798
798
|
}
|
|
799
|
-
`,oe=(n,e,i="status")=>{if(!n)return l;let r=
|
|
799
|
+
`,oe=(n,e,i="status")=>{if(!n)return l;let r=kr.includes(e)?e:"neutral";return o`<impakt-status class="status-pill" part=${i} tone=${r} label=${n}></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}))`),ji=L(`color-mix(in srgb, ${t.surfaceCard} ${I.fill}, ${t.surfaceInset})`),Sr=d("font.weight.light","300"),Fe=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,De,u`
|
|
800
800
|
:host { display: block; }
|
|
801
801
|
.tile {
|
|
802
802
|
box-sizing: border-box;
|
|
@@ -816,15 +816,15 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
816
816
|
a.tile:hover { background: color-mix(in srgb, ${ji}, ${t.text} ${I.hover}); }
|
|
817
817
|
.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
818
|
/* 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
|
-
.value { margin-block-start: ${I.valueSpace}; font-size: ${
|
|
820
|
-
.caption { font-size: ${b("sm")}; line-height:
|
|
819
|
+
.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; }
|
|
820
|
+
.caption { font-size: ${b("sm")}; line-height: ${I.captionLineHeight}; color: ${t.textMuted}; }
|
|
821
821
|
:host([size='lg']) .tile { min-block-size: 200px; padding: ${a(6)}; border-radius: ${I.lgRadius}; }
|
|
822
822
|
:host([size='lg']) .label { font-size: ${I.lgLabelSize}; letter-spacing: ${I.lgLabelTracking}; text-transform: ${I.lgLabelTransform}; }
|
|
823
|
-
:host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${
|
|
823
|
+
:host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${Sr}; }
|
|
824
824
|
:host([tone='brand']) .tile { background: ${t.brand}; color: ${t.onBrand}; border-color: ${t.brand}; }
|
|
825
825
|
:host([tone='brand']) a.tile:hover { background: ${t.brandHover}; }
|
|
826
826
|
:host([tone='brand']) .label, :host([tone='brand']) .caption { color: ${t.onBrand}; }
|
|
827
|
-
@media (max-width: 40rem) { .value { font-size: ${
|
|
827
|
+
@media (max-width: 40rem) { .value { font-size: ${wr}; } }
|
|
828
828
|
@media (forced-colors: active) { .tile { border: 1px solid CanvasText; } }
|
|
829
829
|
`]}render(){let e=o`
|
|
830
830
|
<span class="label" part="label">${this.label}</span>
|
|
@@ -856,7 +856,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
856
856
|
<span class="month" aria-hidden="true">${e.month}</span>
|
|
857
857
|
<span class="day" aria-hidden="true">${e.day}</span>
|
|
858
858
|
<span class="sr-only">${e.full}</span>
|
|
859
|
-
</time>`:o`${l}`}},Ue=class extends h{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,
|
|
859
|
+
</time>`:o`${l}`}},Ue=class extends h{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,v,u`
|
|
860
860
|
:host { display: block; }
|
|
861
861
|
:host([divided]) .row { border-block-start: ${t.borderThin} solid ${t.hairline}; }
|
|
862
862
|
.row { position: relative; display: flex; align-items: center; gap: ${a(3)}; padding-block: ${a(3)}; }
|
|
@@ -885,7 +885,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
885
885
|
<div class="text">${i}${this.meta?o`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
|
|
886
886
|
<div class="end ${this.filled.end?"":"empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
|
|
887
887
|
${this.href&&!this.selected?o`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
|
|
888
|
-
</div>`}},We=class extends h{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...h.styles,
|
|
888
|
+
</div>`}},We=class extends h{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...h.styles,v,C("button"),u`
|
|
889
889
|
:host { display: inline-block; }
|
|
890
890
|
/* The containing block for the words kept for screen readers, so a control scrolled out of a row cannot widen the page. */
|
|
891
891
|
button {
|
|
@@ -1018,7 +1018,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1018
1018
|
<span class="track" part="track"><span class="knob" part="knob"></span></span>
|
|
1019
1019
|
</span>
|
|
1020
1020
|
</label>
|
|
1021
|
-
`}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},
|
|
1021
|
+
`}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Ge=class extends x{static{this.properties={...x.properties,options:{type:Array},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},full:{type:Boolean,reflect:!0}}}constructor(){super(),this.options=[],this.hideLabel=!1,this.full=!1}static{this.styles=[...x.styles,u`
|
|
1022
1022
|
fieldset {
|
|
1023
1023
|
border: 0;
|
|
1024
1024
|
margin: 0;
|
|
@@ -1127,7 +1127,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1127
1127
|
${this.renderControl()}
|
|
1128
1128
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
1129
1129
|
</fieldset>
|
|
1130
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",Ve);customElements.define("impakt-segmented-control",
|
|
1130
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",Ve);customElements.define("impakt-segmented-control",Ge);var Ke=class extends x{static{this.properties={...x.properties,options:{type:Array}}}constructor(){super(),this.options=[]}static{this.styles=[...x.styles,u`
|
|
1131
1131
|
fieldset {
|
|
1132
1132
|
border: 0;
|
|
1133
1133
|
margin: 0;
|
|
@@ -1210,7 +1210,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1210
1210
|
${this.error||l}
|
|
1211
1211
|
</div>
|
|
1212
1212
|
</fieldset>
|
|
1213
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",
|
|
1213
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",Ke);var Xe=class n 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
1214
|
:host {
|
|
1215
1215
|
display: block;
|
|
1216
1216
|
margin-block-end: ${a(4)};
|
|
@@ -1378,7 +1378,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1378
1378
|
color: ${t.textHeading};
|
|
1379
1379
|
font-family: ${t.fontHeading};
|
|
1380
1380
|
font-weight: ${m("bold")};
|
|
1381
|
-
line-height: ${
|
|
1381
|
+
line-height: ${O("tight")};
|
|
1382
1382
|
}
|
|
1383
1383
|
:host([size='5xl']) { ${w("5xl")} letter-spacing: ${t.trackingTight}; }
|
|
1384
1384
|
:host([size='4xl']) { ${w("4xl")} letter-spacing: ${t.trackingTight}; }
|
|
@@ -1415,7 +1415,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1415
1415
|
display: block;
|
|
1416
1416
|
/* 1.4.8 asks for 1.5 within a paragraph, and it is the default here
|
|
1417
1417
|
rather than an option, because body text is what it is about. */
|
|
1418
|
-
line-height: ${
|
|
1418
|
+
line-height: ${O("normal")};
|
|
1419
1419
|
/* 1.4.12 Text Spacing: a user stylesheet must be able to widen this
|
|
1420
1420
|
without clipping, which a max-width in ch units survives and a
|
|
1421
1421
|
fixed pixel height does not. */
|
|
@@ -1432,7 +1432,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1432
1432
|
p {
|
|
1433
1433
|
margin: 0;
|
|
1434
1434
|
}
|
|
1435
|
-
`]}render(){return o`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",Ye);customElements.define("impakt-card",Je);customElements.define("impakt-heading",Ze);customElements.define("impakt-text",Qe);var et=class extends h{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...h.styles,
|
|
1435
|
+
`]}render(){return o`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",Ye);customElements.define("impakt-card",Je);customElements.define("impakt-heading",Ze);customElements.define("impakt-text",Qe);var et=class extends h{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...h.styles,v,u`
|
|
1436
1436
|
:host {
|
|
1437
1437
|
display: inline;
|
|
1438
1438
|
}
|
|
@@ -1545,7 +1545,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1545
1545
|
${this.prefix?o`<span class="period" part="prefix">${this.prefix}</span>`:l}
|
|
1546
1546
|
<span class="amount" part="amount">${this.formatted}</span>
|
|
1547
1547
|
${this.period?o`<span class="period" part="period">${this.period}</span>`:l}
|
|
1548
|
-
`}};customElements.define("impakt-price",at);var ot=class extends h{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...h.styles,
|
|
1548
|
+
`}};customElements.define("impakt-price",at);var ot=class extends h{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...h.styles,v,C("dd a"),u`
|
|
1549
1549
|
:host {
|
|
1550
1550
|
display: block;
|
|
1551
1551
|
}
|
|
@@ -1624,7 +1624,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1624
1624
|
</div>
|
|
1625
1625
|
`)}
|
|
1626
1626
|
</dl>
|
|
1627
|
-
`}};customElements.define("impakt-summary-list",ot);var st=class extends h{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...h.styles,
|
|
1627
|
+
`}};customElements.define("impakt-summary-list",ot);var st=class extends h{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...h.styles,v,C(".sort, .pick label"),u`
|
|
1628
1628
|
:host {
|
|
1629
1629
|
display: block;
|
|
1630
1630
|
}
|
|
@@ -1849,7 +1849,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1849
1849
|
border: 0;
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
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,s=q(this),c=p=>Number(String(p??"").replace(/[^\d.-]/g,""))||0;return e.sort((p,$)=>{let g=p.row[i.key]??"",
|
|
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,s=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),s,{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 s of e)i?r.add(s):r.delete(s);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
1853
|
<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
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??[]),s=i.length>0&&i.every(p=>r.has(p.key)),c=!s&&i.some(p=>r.has(p.key));return o`
|
|
1855
1855
|
<div class="scroller" part="scroller" tabindex="0" role="region" aria-label=${this.caption||l}>
|
|
@@ -1866,14 +1866,14 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
1866
1866
|
${i.length?i.map(({row:p,key:$},g)=>o`
|
|
1867
1867
|
<tr role="row" class=${r.has($)?"chosen":""} part="row">
|
|
1868
1868
|
${this.selectable?o`<td role="cell" class="pick"><label><input type="checkbox" aria-label=${this.selectRowText.replace("{row}",String(p[e[0]?.key??""]??$))} .checked=${r.has($)}
|
|
1869
|
-
@change=${
|
|
1870
|
-
${e.map((
|
|
1869
|
+
@change=${k=>this.choose([$],k.target.checked)} /></label></td>`:l}
|
|
1870
|
+
${e.map((k,_)=>{let A=o`<span class="label" aria-hidden="true">${k.label}</span><span class="value"><slot name=${`cell:${$}:${k.key}`}>${p[k.key]??""}</slot></span>`;return _===0?o`<th scope="row" role="rowheader" class=${k.mono?"mono":""} id=${`${this.uid}-r${g}`}>${A}</th>`:o`<td role="cell" class=${[k.numeric?"numeric":"",k.mono?"mono":""].join(" ").trim()}>${A}</td>`})}
|
|
1871
1871
|
</tr>
|
|
1872
1872
|
`):o`<tr role="row"><td role="cell" class="empty" colspan=${e.length+(this.selectable?1:0)||1}><slot name="empty">${this.emptyText}</slot></td></tr>`}
|
|
1873
1873
|
</tbody>
|
|
1874
1874
|
</table>
|
|
1875
1875
|
</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")},Ui=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,
|
|
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")},Ui=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,De,u`
|
|
1877
1877
|
:host {
|
|
1878
1878
|
display: block;
|
|
1879
1879
|
border-block-start: ${R.topEdgeWidth} solid ${t.text};
|
|
@@ -2177,7 +2177,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2177
2177
|
</div>
|
|
2178
2178
|
</div>
|
|
2179
2179
|
`})}
|
|
2180
|
-
`}};customElements.define("impakt-accordion",lt);var
|
|
2180
|
+
`}};customElements.define("impakt-accordion",lt);var Tr=L("var(--impakt-color-line-soft, #dcdcd8)"),dt=class extends h{static{this.properties={steps:{type:Array},current:{type:String},label:{type:String},look:{type:String,reflect:!0},hideLabels:{type:Boolean,attribute:"hide-labels",reflect:!0},doneText:{type:String,attribute:"done-text"}}}constructor(){super(),this.steps=[],this.current="",this.label="Progress",this.look="steps",this.hideLabels=!1,this.doneText=""}static{this.styles=[...h.styles,v,u`
|
|
2181
2181
|
:host {
|
|
2182
2182
|
display: block;
|
|
2183
2183
|
margin-block-end: ${a(5)};
|
|
@@ -2255,7 +2255,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2255
2255
|
gap: ${a(8)};
|
|
2256
2256
|
inline-size: max-content;
|
|
2257
2257
|
min-inline-size: 100%;
|
|
2258
|
-
box-shadow: inset 0 -1px 0 ${
|
|
2258
|
+
box-shadow: inset 0 -1px 0 ${Tr};
|
|
2259
2259
|
}
|
|
2260
2260
|
:host([look='stages']) li {
|
|
2261
2261
|
flex: none;
|
|
@@ -2330,7 +2330,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2330
2330
|
:host { display: inline-flex; flex: none; }
|
|
2331
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: ${Wi}; font-size: ${b("xs")}; line-height: 1.2; white-space: nowrap; }
|
|
2332
2332
|
:host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }
|
|
2333
|
-
|
|
2333
|
+
/* 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")}; }
|
|
2334
2335
|
:host([size='marketing']) span.chip { font-size: 11px; font-weight: ${m("medium")}; text-transform: uppercase; letter-spacing: 0.06em; }
|
|
2335
2336
|
/* Body: a 35px square box in the body face, for a row of tags such as a stack (G2 case study, 21:1493). */
|
|
2336
2337
|
: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; }
|
|
@@ -2524,7 +2525,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2524
2525
|
${this.renderControl()}
|
|
2525
2526
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
2526
2527
|
</fieldset>
|
|
2527
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",mt);var xe=new Set,$e=null;function ye(n){if(typeof document>"u"||xe.has(n)||(xe.add(n),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(n){if(typeof document>"u"||!xe.delete(n)||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","
|
|
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(n){if(typeof document>"u"||xe.has(n)||(xe.add(n),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(n){if(typeof document>"u"||!xe.delete(n)||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`
|
|
2528
2529
|
dialog {
|
|
2529
2530
|
padding: 0;
|
|
2530
2531
|
/* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */
|
|
@@ -2655,7 +2656,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2655
2656
|
:host([look='check']) li::before { content: '✓'; inset-inline-start: 0; inset-block-start: 0; inline-size: auto; block-size: auto; background: none; color: ${t.success}; font-weight: ${m("bold")}; }
|
|
2656
2657
|
:host([look='number']) li::before { content: counter(point, decimal-leading-zero); inset-inline-start: 0; inset-block-start: 0.2em; inline-size: auto; block-size: auto; background: none; font-family: ${t.fontMono}; font-size: 0.75em; color: ${t.textMuted}; }
|
|
2657
2658
|
@media (forced-colors: active) { li::before { background: CanvasText; } :host([look='check']) li::before, :host([look='number']) li::before { background: none; color: CanvasText; } }
|
|
2658
|
-
`]}render(){let e=(this.items??[]).map(i=>o`<li part="item">${i}</li>`);return this.look==="number"?o`<ol part="list">${e}</ol>`:o`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",bt);var
|
|
2659
|
+
`]}render(){let e=(this.items??[]).map(i=>o`<li part="item">${i}</li>`);return this.look==="number"?o`<ol part="list">${e}</ol>`:o`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",bt);var zr={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},ft=class extends h{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
|
|
2659
2660
|
:host { display: block; min-inline-size: 0; container-type: inline-size; }
|
|
2660
2661
|
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${d("layout.gutter.md","16px")}; align-items: stretch; }
|
|
2661
2662
|
:host([gap='none']) .columns { gap: 0; }
|
|
@@ -2674,7 +2675,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2674
2675
|
::slotted(*) { max-inline-size: 100%; }
|
|
2675
2676
|
@container (max-width: 40rem) { :host(:not([stack-on='never'])) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
|
|
2676
2677
|
@container (max-width: 64rem) { :host([stack-on='tablet']) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
|
|
2677
|
-
`]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=
|
|
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(s=>`minmax(0, ${s})`).join(" "):"";return o`<div class="columns" part="row" style=${r?`grid-template-columns: ${r}`:""}>${Array.from({length:e},(s,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`
|
|
2678
2679
|
:host { display: block; }
|
|
2679
2680
|
a { display: inline-flex; align-items: center; min-height: ${t.targetMin}; min-width: ${t.targetMin};
|
|
2680
2681
|
color: ${t.link}; text-decoration: underline; overflow-wrap: anywhere; max-width: 100%; }
|
|
@@ -2684,17 +2685,17 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2684
2685
|
/* An address is written one line at a time, and opening hours are often one
|
|
2685
2686
|
day to a line. Long unbroken values still wrap at 320px (1.4.10). */
|
|
2686
2687
|
.detail { white-space: pre-line; overflow-wrap: anywhere; }
|
|
2687
|
-
`]}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=
|
|
2688
|
-
><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(n){return typeof n=="string"?n.trim():""}function
|
|
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),s=this.id_("caption"),c=this.id_("detail"),p=i?o`<span class="caption" part="label" id=${s}>${i}</span>`:l,$=r?o`<a part="link" href=${r} aria-labelledby=${i?`${s} ${c}`:l}
|
|
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(n){return typeof n=="string"?n.trim():""}function Mr(n,e){if(n==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return n==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",$t);var Vi=u`
|
|
2689
2690
|
:host { --impakt-page-inner: ${d("layout.page-width","1200px")}; }
|
|
2690
2691
|
:host([width='narrow']) { --impakt-page-inner: 760px; }
|
|
2691
2692
|
:host([width='wide']) { --impakt-page-inner: 1440px; }
|
|
2692
2693
|
:host([width='content']) { --impakt-page-inner: 1080px; }
|
|
2693
|
-
`,
|
|
2694
|
+
`,Er=u`
|
|
2694
2695
|
:host { --impakt-page-margin: ${d("layout.margin.phone","16px")}; }
|
|
2695
2696
|
@container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${d("layout.margin.tablet","32px")}; } }
|
|
2696
2697
|
@container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${d("layout.margin.desktop","64px")}; } }
|
|
2697
|
-
`,xt=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",s=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",s),!s)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,
|
|
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",s=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",s),!s)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,Vi,Er,u`
|
|
2698
2699
|
:host { display: block; container: impakt-page / inline-size; }
|
|
2699
2700
|
.frame { position: relative; display: flex; flex-direction: column; min-block-size: 100%; overflow-x: clip; }
|
|
2700
2701
|
.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); }
|
|
@@ -2772,7 +2773,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2772
2773
|
:host([padding='2xl']) .band { padding-block: ${d("section.padding-2xl","clamp(56px, 8vw, 112px)")}; }
|
|
2773
2774
|
:host([padding='3xl']) .band { padding-block: clamp(${a(16)}, 10vw, ${a(30)}); }
|
|
2774
2775
|
.content { max-inline-size: var(--impakt-page-inner); margin-inline: auto; }
|
|
2775
|
-
`]}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
|
|
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 Gi(n){if(typeof location>"u"||!n||n.startsWith("#"))return null;let e;try{let r=new URL(n,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`
|
|
2776
2777
|
/* It grows to fill a row it sits in, because it measures itself to decide when to fold. */
|
|
2777
2778
|
:host { display: block; flex: 1 1 8rem; min-inline-size: 0; }
|
|
2778
2779
|
nav { display: flex; flex-direction: column; position: relative; }
|
|
@@ -2842,16 +2843,16 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2842
2843
|
<div id=${i} class="panel" popover="auto" part="panel">
|
|
2843
2844
|
<button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${S("Close")}</span></button>
|
|
2844
2845
|
<ul part="list">
|
|
2845
|
-
${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:
|
|
2846
|
+
${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Gi(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
|
|
2846
2847
|
</ul>
|
|
2847
2848
|
${this.actionText?o`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:l}
|
|
2848
2849
|
</div>
|
|
2849
2850
|
</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}>
|
|
2850
2851
|
<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>
|
|
2851
2852
|
<ul id=${i} class=${this.open?"open":""} part="list">
|
|
2852
|
-
${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:
|
|
2853
|
+
${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Gi(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
|
|
2853
2854
|
</ul>
|
|
2854
|
-
</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,
|
|
2855
|
+
</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`
|
|
2855
2856
|
:host { display: block; font-size: ${b("sm")}; }
|
|
2856
2857
|
ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: ${a(1)}; }
|
|
2857
2858
|
li { display: inline-flex; align-items: center; gap: ${a(1)}; }
|
|
@@ -2881,7 +2882,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2881
2882
|
:host([size='lg']) { block-size: ${a(8)}; }
|
|
2882
2883
|
:host([size='xl']) { block-size: ${a(12)}; }
|
|
2883
2884
|
:host([size='2xl']) { block-size: ${a(16)}; }
|
|
2884
|
-
`]}render(){return o``}},Tt=class extends h{static{this.styles=[...h.styles,u`:host { ${T} }`]}render(){return o`<slot></slot>`}},zt=class extends h{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...h.styles,
|
|
2885
|
+
`]}render(){return o``}},Tt=class extends h{static{this.styles=[...h.styles,u`:host { ${T} }`]}render(){return o`<slot></slot>`}},zt=class extends h{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...h.styles,v,C("[role='tab']"),u`
|
|
2885
2886
|
/* Only the two-row layout needs a size container. Making every tab set one
|
|
2886
2887
|
would take its width from its parent alone, so in a flex row, with no
|
|
2887
2888
|
width given, it would shrink to nothing. In a row it may still shrink
|
|
@@ -2894,7 +2895,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2894
2895
|
[role='tab']:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; }
|
|
2895
2896
|
[role='tab']:hover { color: ${t.text}; background: ${t.surfaceInset}; }
|
|
2896
2897
|
[role='tab'][aria-selected='true'] { color: ${t.link}; border-block-end-color: currentColor; }
|
|
2897
|
-
[role='tabpanel'] { padding-block: ${a(5)}; line-height: ${
|
|
2898
|
+
[role='tabpanel'] { padding-block: ${a(5)}; line-height: ${O("normal")}; }
|
|
2898
2899
|
.body { white-space: pre-line; }
|
|
2899
2900
|
@container (max-width: 40rem) {
|
|
2900
2901
|
:host([two-rows]) [role='tablist'].many { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); overflow: visible; border-block-end: 0; gap: ${a(1)}; }
|
|
@@ -2924,10 +2925,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2924
2925
|
${e.map(s=>o`<div role="tabpanel" id=${this.id_(`panel-${s.id}`)} aria-labelledby=${this.id_(`tab-${s.id}`)} tabindex="0" ?hidden=${s.id!==i} part="panel"><slot name=${s.id}><span class="body">${s.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`
|
|
2925
2926
|
:host { display: block; margin-block-end: ${a(6)}; }
|
|
2926
2927
|
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
|
|
2927
|
-
legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${
|
|
2928
|
+
legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${O("tight")}; color: ${t.text}; }
|
|
2928
2929
|
:host([size='lg']) legend { font-size: ${b("xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
|
|
2929
2930
|
:host([size='xl']) legend { font-size: ${b("2xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
|
|
2930
|
-
.description { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.textMuted}; line-height: ${
|
|
2931
|
+
.description { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.textMuted}; line-height: ${O("normal")}; }
|
|
2931
2932
|
.error { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.dangerText}; font-weight: ${m("semibold")}; }
|
|
2932
2933
|
.error:empty { display: none; }
|
|
2933
2934
|
:host([error]:not([error=''])) .fields { padding-inline-start: ${a(4)}; border-inline-start: 4px solid ${t.danger}; }
|
|
@@ -2936,7 +2937,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2936
2937
|
${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
|
|
2937
2938
|
<div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
|
|
2938
2939
|
<div class="fields" part="fields"><slot></slot></div>
|
|
2939
|
-
</fieldset>`}};customElements.define("impakt-fieldset",Mt);var Et=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...h.styles,
|
|
2940
|
+
</fieldset>`}};customElements.define("impakt-fieldset",Mt);var Et=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...h.styles,v,C(".close"),u`
|
|
2940
2941
|
dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: min(28rem, 100vw); max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; color: ${t.text}; background: ${t.surfaceCard}; box-shadow: ${t.shadowXl}; animation: from-right 240ms cubic-bezier(0.16, 1, 0.3, 1); }
|
|
2941
2942
|
dialog[open] { display: flex; }
|
|
2942
2943
|
:host([side='left']) dialog { margin: 0 auto 0 0; animation-name: from-left; }
|
|
@@ -2965,7 +2966,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2965
2966
|
</div>
|
|
2966
2967
|
<div class="body" part="body"><slot></slot></div>
|
|
2967
2968
|
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
2968
|
-
</dialog>`}},
|
|
2969
|
+
</dialog>`}},Ar={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`
|
|
2969
2970
|
.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; }
|
|
2970
2971
|
@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)); } }
|
|
2971
2972
|
.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); }
|
|
@@ -2982,12 +2983,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2982
2983
|
`,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">
|
|
2983
2984
|
${this.open?o`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
|
|
2984
2985
|
@keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}>
|
|
2985
|
-
<span class="mark">${M(
|
|
2986
|
+
<span class="mark">${M(Ar[this.tone]??"info","20px")}</span>
|
|
2986
2987
|
<p class="message">${this.message}</p>
|
|
2987
2988
|
${this.actionText?o`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
|
|
2988
2989
|
<button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","16px")}</button>
|
|
2989
2990
|
</div>`:l}
|
|
2990
|
-
</div>`}},
|
|
2991
|
+
</div>`}},Cr=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`
|
|
2991
2992
|
:host { position: relative; display: inline-block; }
|
|
2992
2993
|
.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; }
|
|
2993
2994
|
:host([trigger-look='text']) .trigger { padding: ${a(1)} ${a(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
|
|
@@ -2999,15 +3000,18 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
2999
3000
|
/* G2: a 1px ink border and the one shadow the design allows, the open menu's. */
|
|
3000
3001
|
.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; }
|
|
3001
3002
|
.list, .group { margin: 0; padding: 0; list-style: none; }
|
|
3002
|
-
.grouped
|
|
3003
|
-
|
|
3003
|
+
.grouped:not(:first-child) { border-block-start: ${t.borderThin} solid ${Cr}; }
|
|
3004
|
+
/* G2 group label (53:983): 12px above, 6px below, 18px in, IBM Plex Mono 14/1.4. */
|
|
3005
|
+
.group-label { display: block; padding: ${a(3)} 18px 6px; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
|
|
3004
3006
|
.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; }
|
|
3005
3007
|
:host([edge='end']) .panel, .panel.flip-end { inset-inline: auto 0; }
|
|
3006
3008
|
:host([edge='end']) .panel.flip-start { inset-inline: 0 auto; }
|
|
3007
3009
|
@keyframes pop { from { opacity: 0; transform: translateY(-${a(1)}); } }
|
|
3008
|
-
.item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${a(2.5)}; inline-size: 100%; padding: ${a(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.
|
|
3010
|
+
.item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${a(2.5)}; inline-size: 100%; padding: ${a(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.2; font-weight: ${m("medium")}; text-align: start; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; }
|
|
3009
3011
|
.item:hover, .item:focus { background: ${t.surfaceSubtle}; }
|
|
3010
|
-
|
|
3012
|
+
/* G2 item (53:985): the label in Archivo 16/1.2 and the note in IBM Plex Mono 14/1.4, on one line, the note at the end. */
|
|
3013
|
+
.item .text { min-inline-size: 0; }
|
|
3014
|
+
.item .meta { flex: none; margin-inline-start: auto; padding-inline-start: ${a(4)}; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; font-weight: ${m("regular")}; color: ${t.textMuted}; white-space: nowrap; }
|
|
3011
3015
|
.item[aria-current] { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
|
|
3012
3016
|
.item[aria-current] .meta { color: color-mix(in srgb, var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})) 66%, ${t.text}); }
|
|
3013
3017
|
.item[aria-disabled='true'] { color: ${t.textMuted}; cursor: not-allowed; }
|
|
@@ -3016,11 +3020,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3016
3020
|
@media (forced-colors: active) { .panel { border-color: CanvasText; } .item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } .item[aria-disabled='true'] { color: GrayText; } }
|
|
3017
3021
|
.item.danger { color: ${t.dangerText}; }
|
|
3018
3022
|
.item svg { flex: none; }
|
|
3019
|
-
`]}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.
|
|
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(),s=document.documentElement.clientWidth;r.right>s-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,s=r.indexOf(this.renderRoot.activeElement),c={ArrowDown:(s+1)%r.length,ArrowUp:(s-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(s+1),...r.slice(0,s+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"):""),s=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)}>${s}</a>`:o`<button class=${c} part=${g} role="menuitem" tabindex="-1" type="button" aria-current=${p} aria-disabled=${$} @click=${k=>this.choose(i,k)}>${s}</button>`}</li>`}get runs(){let i=[];for(let r of this.items??[]){let s=r.group??"",c=i[i.length-1],p=s?i.find($=>$.group===s):void 0;p?p.items.push(r):c&&!s&&!c.group?c.items.push(r):i.push({group:s,items:[r]})}return i}render(){let i=this.triggerLook==="text",r=this.runs,s=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")}
|
|
3020
3024
|
@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>
|
|
3021
3025
|
${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}>
|
|
3022
|
-
${s?r.map((c,p)=>{let $=this.id_(`group-${p}`);return o`<li role="none" class="grouped">${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))}
|
|
3023
|
-
</ul></div>`:l}`}};function
|
|
3026
|
+
${s?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))}
|
|
3027
|
+
</ul></div>`:l}`}};function Lr(n,e){let i=[...new Set([1,n-1,n,n+1,e])].filter(r=>r>=1&&r<=e).sort((r,s)=>r-s);return i.flatMap((r,s)=>{let c=i[s-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`
|
|
3024
3028
|
:host { display: block; container-type: inline-size; }
|
|
3025
3029
|
nav { display: flex; align-items: center; justify-content: space-between; gap: ${a(2)}; }
|
|
3026
3030
|
ul { display: flex; align-items: center; gap: ${a(1)}; margin: 0; padding: 0; list-style: none; }
|
|
@@ -3033,10 +3037,10 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3033
3037
|
@container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
|
|
3034
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,s,c){return this.hrefPattern?o`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${s} aria-current=${c?"page":l}>${r}</a>`:o`<button class=${i} type="button" aria-label=${s} aria-current=${c?"page":l} @click=${p=>this.go(e,p)}>${r}</button>`}step(e,i,r,s){let c=r==="arrow-left"?o`${M(r,"16px")}${i}`:o`${i}${M(r,"16px")}`;return s?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">
|
|
3035
3039
|
${this.step(e-1,this.previousText,"arrow-left",e<=1)}
|
|
3036
|
-
<ul>${
|
|
3040
|
+
<ul>${Lr(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>
|
|
3037
3041
|
<span class="count">${S("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
|
|
3038
3042
|
${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
|
|
3039
|
-
</nav>`}},
|
|
3043
|
+
</nav>`}},Ir=n=>{let e=n.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`
|
|
3040
3044
|
:host { --size: 40px; display: inline-block; inline-size: var(--size); block-size: var(--size); vertical-align: middle; }
|
|
3041
3045
|
:host([size='xs']) { --size: 22px; }
|
|
3042
3046
|
:host([size='sm']) { --size: 32px; }
|
|
@@ -3044,7 +3048,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3044
3048
|
:host([size='xl']) { --size: 80px; }
|
|
3045
3049
|
.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")}; }
|
|
3046
3050
|
img { inline-size: 100%; block-size: 100%; object-fit: cover; }
|
|
3047
|
-
`]}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")}>${
|
|
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")}>${Ir(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`
|
|
3048
3052
|
ul { display: flex; margin: 0; padding: 0; list-style: none; }
|
|
3049
3053
|
li { margin-inline-start: -${a(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
|
|
3050
3054
|
li:first-child { margin-inline-start: 0; }
|
|
@@ -3070,7 +3074,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3070
3074
|
${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
|
|
3071
3075
|
${this.lead?o`<p>${this.lead}</p>`:l}
|
|
3072
3076
|
<div class="actions"><slot name="actions"></slot></div>
|
|
3073
|
-
</div>`}},
|
|
3077
|
+
</div>`}},Rr=n=>String(n?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function _r(n){let e=new Date(`${n}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:n,month:""};let i=q(),r=s=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...s}).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`
|
|
3074
3078
|
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
|
|
3075
3079
|
legend { padding: 0; }
|
|
3076
3080
|
.row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${a(2)}; }
|
|
@@ -3090,12 +3094,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3090
3094
|
`]}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`
|
|
3091
3095
|
<div class="row-label" id=${this.id_("days")}>${this.dayLabel}</div>
|
|
3092
3096
|
<div class="days" part="days" role="radiogroup" aria-labelledby=${this.id_("days")}>
|
|
3093
|
-
${this.days.map(r=>{let s=
|
|
3097
|
+
${this.days.map(r=>{let s=_r(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)} />
|
|
3094
3098
|
<span class="weekday">${s.weekday}</span><span class="num">${s.day}</span><span class="month">${s.month}</span></label>`})}
|
|
3095
3099
|
</div>
|
|
3096
3100
|
<div class="row-label" id=${this.id_("times")}>${this.timeLabel}</div>
|
|
3097
3101
|
<div class="times" part="times" role="radiogroup" aria-labelledby=${this.id_("times")}>
|
|
3098
|
-
${
|
|
3102
|
+
${Rr(i).map((r,s)=>{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&&s===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(c)} />${r}</label>`})}
|
|
3099
3103
|
</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}>
|
|
3100
3104
|
${this.renderLabel()}
|
|
3101
3105
|
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
@@ -3131,7 +3135,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3131
3135
|
.btn:hover { background: ${t.brandHover}; }
|
|
3132
3136
|
.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; }
|
|
3133
3137
|
.visually-hidden { ${T} }
|
|
3134
|
-
`,
|
|
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,ui,u`
|
|
3135
3139
|
.row { display: flex; flex-wrap: wrap; gap: ${a(2)}; align-items: flex-end; }
|
|
3136
3140
|
.row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${a(1)}; }
|
|
3137
3141
|
.postcode input { inline-size: 12ch; text-transform: uppercase; }
|
|
@@ -3162,7 +3166,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3162
3166
|
${this.addresses.map(e=>o`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
|
|
3163
3167
|
</select></div>`:this.searched&&!this.busy?o`<p class="note" role="status">${this.notFoundText}</p>`:l}
|
|
3164
3168
|
<button class="quiet switch" type="button" @click=${()=>{this.manual=!0}}>${this.manualText}</button>
|
|
3165
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Bt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...h.styles,
|
|
3169
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Bt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...h.styles,v,N,C("a"),u`
|
|
3166
3170
|
:host { display: block; }
|
|
3167
3171
|
.box { padding: ${a(5)}; border: ${t.borderThick} solid ${t.danger}; border-inline-start-width: 6px; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
|
|
3168
3172
|
.box:focus { outline: 3px solid ${t.danger}; outline-offset: 2px; }
|
|
@@ -3172,7 +3176,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3172
3176
|
`]}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">
|
|
3173
3177
|
<h2 id=${this.id_("h")}>${this.heading}</h2>
|
|
3174
3178
|
<ul>${this.items.map(e=>o`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
|
|
3175
|
-
</div>`:l}},
|
|
3179
|
+
</div>`:l}},Hr=n=>n>=1048576?S("{size} MB",{size:(n/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(n/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,ui,z,C("label.btn, .quiet"),u`
|
|
3176
3180
|
.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}; }
|
|
3177
3181
|
.zone.over { border-color: ${t.brand}; background: ${t.brandSubtle}; }
|
|
3178
3182
|
:host([invalid]) .zone { border-color: ${t.danger}; border-style: solid; }
|
|
@@ -3195,7 +3199,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3195
3199
|
<span class="drop">${this.dropText}</span>
|
|
3196
3200
|
</div>
|
|
3197
3201
|
<p class="visually-hidden" role="status">${this.said}</p>
|
|
3198
|
-
${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${
|
|
3202
|
+
${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${Hr(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}
|
|
3199
3203
|
`}};function pi(n){try{return new Intl.NumberFormat(q(),{style:"currency",currency:n,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function hi(n){let e=n.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,ui,u`
|
|
3200
3204
|
.wrap { display: flex; align-items: stretch; inline-size: min(100%, var(--impakt-field-width)); }
|
|
3201
3205
|
.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}; }
|
|
@@ -3219,7 +3223,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3219
3223
|
<div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
|
|
3220
3224
|
`}renderControl(){return o`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
|
|
3221
3225
|
aria-valuetext=${this.shownAs(Number(this.value)||0)} aria-describedby=${this.describedBy}
|
|
3222
|
-
@input=${e=>this.setFormValue(e.target.value)} />`}},
|
|
3226
|
+
@input=${e=>this.setFormValue(e.target.value)} />`}},Ki={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},Pt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,v,N,C("a"),u`
|
|
3223
3227
|
:host { display: block; }
|
|
3224
3228
|
.h { margin: 0 0 ${a(2)}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
|
|
3225
3229
|
.count { margin: 0 0 ${a(4)}; color: ${t.textMuted}; }
|
|
@@ -3238,8 +3242,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3238
3242
|
<ul>${this.items.map(i=>o`<li>
|
|
3239
3243
|
<span>${i.href&&i.status!=="cannot-start"?o`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:o`<span class="title">${i.title}</span>`}
|
|
3240
3244
|
${i.hint?o`<span class="hint">${i.hint}</span>`:l}</span>
|
|
3241
|
-
<span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${
|
|
3242
|
-
</li>`)}</ul>`}};
|
|
3245
|
+
<span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${Ki[i.status]?S(Ki[i.status]):i.status}</span>
|
|
3246
|
+
</li>`)}</ul>`}};K.createProperty("manual",{state:!0});K.createProperty("postcode",{state:!0});K.createProperty("searched",{state:!0});K.createProperty("busy",{state:!0});te.createProperty("files",{state:!0});te.createProperty("over",{state:!0});te.createProperty("said",{state:!0});ke.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",K);customElements.define("impakt-error-summary",Bt);customElements.define("impakt-file-upload",te);customElements.define("impakt-money-input",ke);customElements.define("impakt-range-input",Nt);customElements.define("impakt-task-list",Pt);var Ot=class extends h{static{this.properties={label:{type:String},description:{type:String},href:{type:String},kind:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.label="",this.description="",this.href="",this.kind="static",this.look="default"}static{this.styles=[...h.styles,v,u`
|
|
3243
3247
|
:host {
|
|
3244
3248
|
display: inline-flex;
|
|
3245
3249
|
flex: none;
|
|
@@ -3287,7 +3291,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3287
3291
|
border-color: CanvasText;
|
|
3288
3292
|
}
|
|
3289
3293
|
}
|
|
3290
|
-
`]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?o`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?o`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?o`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:o`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",
|
|
3294
|
+
`]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?o`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?o`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?o`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:o`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",Ot);var qt=class extends h{static{this.properties={state:{type:String,reflect:!0},label:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},verifiedText:{type:String,attribute:"verified-text"},unverifiedText:{type:String,attribute:"unverified-text"}}}constructor(){super(),this.state="verified",this.label="",this.look="default",this.size="tool",this.verifiedText="Checked by code",this.unverifiedText="Not verified \xB7 a person must check"}static{this.styles=[...h.styles,u`
|
|
3291
3295
|
/* It keeps its size in a row, but never grows past its container: at 320 the words wrap inside the mark (1.4.10). */
|
|
3292
3296
|
:host {
|
|
3293
3297
|
display: inline-flex;
|
|
@@ -3370,7 +3374,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3370
3374
|
</svg>`:o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
|
3371
3375
|
<rect class="box" x="0.5" y="0.5" width="13" height="13" stroke-width="1"></rect>
|
|
3372
3376
|
<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>
|
|
3373
|
-
</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 Dt=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,
|
|
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 Br=["trigger","chevron","panel","header","list","group","group-label","item","current","label","meta"],Xi=n=>Br.map(e=>`${e}: ${n}-${e}`).join(", "),Nr=Xi("switcher"),Pr=Xi("organisation"),Dt=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`
|
|
3374
3378
|
:host {
|
|
3375
3379
|
display: block;
|
|
3376
3380
|
container-type: inline-size;
|
|
@@ -3505,9 +3509,11 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3505
3509
|
impakt-menu::part(chevron) {
|
|
3506
3510
|
color: inherit;
|
|
3507
3511
|
}
|
|
3508
|
-
/* The switcher's panel is
|
|
3512
|
+
/* The switcher's panel is 340 wide (53:960), so "Your account" and "Plans, team, billing" sit on one line.
|
|
3513
|
+
On a 390 screen that still leaves the 16px gutters; narrower than that it keeps to the gutters and the words may wrap. */
|
|
3509
3514
|
impakt-menu.switcher::part(panel) {
|
|
3510
|
-
|
|
3515
|
+
inline-size: min(21.25rem, calc(100vw - 2 * ${a(4)}));
|
|
3516
|
+
max-inline-size: none;
|
|
3511
3517
|
}
|
|
3512
3518
|
impakt-menu.org::part(trigger),
|
|
3513
3519
|
a.org,
|
|
@@ -3564,7 +3570,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3564
3570
|
>
|
|
3565
3571
|
</li>`)}
|
|
3566
3572
|
</ul>
|
|
3567
|
-
</nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" 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" 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">
|
|
3573
|
+
</nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" exportparts=${Nr} 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=${Pr} 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">
|
|
3568
3574
|
<div class="start">
|
|
3569
3575
|
<a class="home" part="home" href=${this.home}><span class="mark" aria-hidden="true">i</span><span class="word">${this.brand}</span></a>
|
|
3570
3576
|
${this.tool?o`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
|
|
@@ -3575,7 +3581,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3575
3581
|
<slot name="tools">${this.renderSwitcher()}</slot>
|
|
3576
3582
|
${this.renderAccount()}
|
|
3577
3583
|
</div>
|
|
3578
|
-
</header>`}};customElements.define("impakt-app-bar",Dt);var
|
|
3584
|
+
</header>`}};customElements.define("impakt-app-bar",Dt);var Or=[{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"}],Ft=class extends h{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=Or,this.current="en",this.label="Language"}static{this.styles=[...h.styles,v,C("a"),u`
|
|
3579
3585
|
:host {
|
|
3580
3586
|
display: inline-flex;
|
|
3581
3587
|
}
|
|
@@ -3635,7 +3641,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3635
3641
|
>
|
|
3636
3642
|
</li>`)}
|
|
3637
3643
|
</ul>
|
|
3638
|
-
</nav>`}};customElements.define("impakt-language-switch",Ft);var mi=(n,e,i)=>Math.min(i,Math.max(e,n)),
|
|
3644
|
+
</nav>`}};customElements.define("impakt-language-switch",Ft);var mi=(n,e,i)=>Math.min(i,Math.max(e,n)),Yi=(n,e,i)=>i>e?(mi(n,e,i)-e)/(i-e)*100:0,Ji=u`
|
|
3639
3645
|
.track {
|
|
3640
3646
|
position: relative;
|
|
3641
3647
|
display: block;
|
|
@@ -3665,7 +3671,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3665
3671
|
forced-color-adjust: none;
|
|
3666
3672
|
}
|
|
3667
3673
|
}
|
|
3668
|
-
`,jt=class extends h{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...h.styles,
|
|
3674
|
+
`,jt=class extends h{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...h.styles,Ji,u`
|
|
3669
3675
|
:host {
|
|
3670
3676
|
display: block;
|
|
3671
3677
|
}
|
|
@@ -3690,8 +3696,8 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3690
3696
|
aria-valuemax=${this.max}
|
|
3691
3697
|
aria-valuenow=${e}
|
|
3692
3698
|
aria-valuetext=${this.valueText||l}
|
|
3693
|
-
><span class="fill" part="fill" style=${`inline-size:${
|
|
3694
|
-
></span>`}},Ut=class extends h{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...h.styles,
|
|
3699
|
+
><span class="fill" part="fill" style=${`inline-size:${Yi(e,this.min,this.max)}%`}></span
|
|
3700
|
+
></span>`}},Ut=class extends h{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...h.styles,Ji,u`
|
|
3695
3701
|
:host {
|
|
3696
3702
|
display: block;
|
|
3697
3703
|
container-type: inline-size;
|
|
@@ -3727,12 +3733,12 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3727
3733
|
${this.items.map((e,i)=>{let r=e.max??this.max,s=mi(e.value,0,r),c=this.id_(`score-${i}`);return o`<li part="row">
|
|
3728
3734
|
<span class="name" id=${c}>${e.label}</span>
|
|
3729
3735
|
<span class="track" part="track" role="meter" aria-labelledby=${c} aria-valuemin="0" aria-valuemax=${r} aria-valuenow=${s}
|
|
3730
|
-
><span class="fill" part="fill" style=${`inline-size:${
|
|
3736
|
+
><span class="fill" part="fill" style=${`inline-size:${Yi(s,0,r)}%`}></span
|
|
3731
3737
|
></span>
|
|
3732
3738
|
<span class="figure" aria-hidden="true">${s}</span>
|
|
3733
3739
|
<span class="pill">${e.status?o`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:l}</span>
|
|
3734
3740
|
</li>`})}
|
|
3735
|
-
</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,
|
|
3741
|
+
</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`
|
|
3736
3742
|
:host {
|
|
3737
3743
|
display: block;
|
|
3738
3744
|
}
|
|
@@ -3882,7 +3888,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3882
3888
|
${this.renderControl()}
|
|
3883
3889
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
3884
3890
|
</fieldset>
|
|
3885
|
-
`}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",Vt);var
|
|
3891
|
+
`}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",Vt);var Gt=class extends h{static{this.properties={label:{type:String},look:{type:String,reflect:!0},redactedText:{type:String,attribute:"redacted-text"}}}constructor(){super(),this.label="",this.look="solid",this.redactedText="Redacted"}static{this.styles=[...h.styles,u`
|
|
3886
3892
|
:host {
|
|
3887
3893
|
display: inline;
|
|
3888
3894
|
}
|
|
@@ -3914,7 +3920,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
3914
3920
|
border-color: CanvasText;
|
|
3915
3921
|
}
|
|
3916
3922
|
}
|
|
3917
|
-
`]}render(){return o`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",
|
|
3923
|
+
`]}render(){return o`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",Gt);var Kt=class extends h{static{this.properties={name:{type:String},description:{type:String},status:{type:String},statusTone:{type:String,attribute:"status-tone"},note:{type:String},href:{type:String},actionLabel:{type:String,attribute:"action-label"},owned:{type:Boolean,reflect:!0},state:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},comingSoonText:{type:String,attribute:"coming-soon-text"},notOpenText:{type:String,attribute:"not-open-text"}}}constructor(){super(),this.name="",this.description="",this.status="",this.statusTone="ok",this.note="",this.href="",this.actionLabel="",this.owned=!1,this.state="open",this.headingLevel=3,this.comingSoonText="Coming soon",this.notOpenText="Not open yet."}static{this.styles=[...h.styles,v,u`
|
|
3918
3924
|
:host {
|
|
3919
3925
|
display: block;
|
|
3920
3926
|
}
|
|
@@ -4009,7 +4015,7 @@ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{c
|
|
|
4009
4015
|
${this.description?o`<p class="description">${this.description}</p>`:l}
|
|
4010
4016
|
${this.renderStatus()}
|
|
4011
4017
|
${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}
|
|
4012
|
-
</article>`}};customElements.define("impakt-tool-card",
|
|
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,Dt 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,Ft 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,Fe 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,W as LitElement,be as TONE,me as announceNavigate,qi as base,u as css,D as fieldWidths,v as focusRing,b as fontSize,m as fontWeight,hi as groupDigits,Di as hideOn,o as html,M as iconSvg,li as isCurrent,O as lineHeight,ye as lockScroll,P as noChange,l as nothing,q as pageLocale,Oi 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};
|
|
4013
4019
|
/*! Bundled license information:
|
|
4014
4020
|
|
|
4015
4021
|
lit-html/lit-html.js:
|