@pontive/pontkit-core 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,17 +2,17 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Hn=globalThis,Da=Hn.ShadowRoot&&(Hn.ShadyCSS===void 0||Hn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,La=Symbol(),Tl=new WeakMap;let gp=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==La)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(Da&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Tl.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Tl.set(r,t))}return t}toString(){return this.cssText}};const ru=e=>new gp(typeof e=="string"?e:e+"",void 0,La),fp=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new gp(r,e,La)},ou=(e,t)=>{if(Da)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const n=document.createElement("style"),o=Hn.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Dl=Da?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return ru(r)})(e):e;/**
5
+ */const Gn=globalThis,Da=Gn.ShadowRoot&&(Gn.ShadyCSS===void 0||Gn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,La=Symbol(),Tl=new WeakMap;let gp=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==La)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(Da&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Tl.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Tl.set(r,t))}return t}toString(){return this.cssText}};const ru=e=>new gp(typeof e=="string"?e:e+"",void 0,La),fp=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new gp(r,e,La)},ou=(e,t)=>{if(Da)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const n=document.createElement("style"),o=Gn.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Dl=Da?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return ru(r)})(e):e;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:nu,defineProperty:iu,getOwnPropertyDescriptor:su,getOwnPropertyNames:au,getOwnPropertySymbols:lu,getPrototypeOf:du}=Object,ir=globalThis,Ll=ir.trustedTypes,cu=Ll?Ll.emptyScript:"",es=ir.reactiveElementPolyfillSupport,en=(e,t)=>e,Wn={toAttribute(e,t){switch(t){case Boolean:e=e?cu:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fa=(e,t)=>!nu(e,t),Fl={attribute:!0,type:String,converter:Wn,reflect:!1,useDefault:!1,hasChanged:Fa};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),ir.litPropertyMetadata??(ir.litPropertyMetadata=new WeakMap);let mo=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Fl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&iu(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:i}=su(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){const d=o==null?void 0:o.call(this);i==null||i.call(this,s),this.requestUpdate(t,d,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Fl}static _$Ei(){if(this.hasOwnProperty(en("elementProperties")))return;const t=du(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(en("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(en("properties"))){const r=this.properties,n=[...au(r),...lu(r)];for(const o of n)this.createProperty(o,r[o])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(Dl(o))}else t!==void 0&&r.push(Dl(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ou(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){var i;const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const s=(((i=n.converter)==null?void 0:i.toAttribute)!==void 0?n.converter:Wn).toAttribute(r,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,r){var i,s;const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const d=n.getPropertyOptions(o),c=typeof d.converter=="function"?{fromAttribute:d.converter}:((i=d.converter)==null?void 0:i.fromAttribute)!==void 0?d.converter:Wn;this._$Em=o;const m=c.fromAttribute(r,d.type);this[o]=m??((s=this._$Ej)==null?void 0:s.get(o))??m,this._$Em=null}}requestUpdate(t,r,n,o=!1,i){var s;if(t!==void 0){const d=this.constructor;if(o===!1&&(i=this[t]),n??(n=d.getPropertyOptions(t)),!((n.hasChanged??Fa)(i,r)||n.useDefault&&n.reflect&&i===((s=this._$Ej)==null?void 0:s.get(t))&&!this.hasAttribute(d._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[i,s]of o){const{wrapped:d}=s,c=this[i];d!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,s,c)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(o=>{var i;return(i=o.hostUpdate)==null?void 0:i.call(o)}),this.update(r)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(n=>{var o;return(o=n.hostUpdated)==null?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};mo.elementStyles=[],mo.shadowRootOptions={mode:"open"},mo[en("elementProperties")]=new Map,mo[en("finalized")]=new Map,es==null||es({ReactiveElement:mo}),(ir.reactiveElementVersions??(ir.reactiveElementVersions=[])).push("2.1.2");/**
9
+ */const{is:nu,defineProperty:iu,getOwnPropertyDescriptor:su,getOwnPropertyNames:au,getOwnPropertySymbols:lu,getPrototypeOf:du}=Object,ir=globalThis,Ll=ir.trustedTypes,cu=Ll?Ll.emptyScript:"",es=ir.reactiveElementPolyfillSupport,en=(e,t)=>e,Yn={toAttribute(e,t){switch(t){case Boolean:e=e?cu:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fa=(e,t)=>!nu(e,t),Fl={attribute:!0,type:String,converter:Yn,reflect:!1,useDefault:!1,hasChanged:Fa};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),ir.litPropertyMetadata??(ir.litPropertyMetadata=new WeakMap);let mo=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Fl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&iu(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:i}=su(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){const d=o==null?void 0:o.call(this);i==null||i.call(this,s),this.requestUpdate(t,d,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Fl}static _$Ei(){if(this.hasOwnProperty(en("elementProperties")))return;const t=du(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(en("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(en("properties"))){const r=this.properties,n=[...au(r),...lu(r)];for(const o of n)this.createProperty(o,r[o])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(Dl(o))}else t!==void 0&&r.push(Dl(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ou(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){var i;const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const s=(((i=n.converter)==null?void 0:i.toAttribute)!==void 0?n.converter:Yn).toAttribute(r,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,r){var i,s;const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const d=n.getPropertyOptions(o),c=typeof d.converter=="function"?{fromAttribute:d.converter}:((i=d.converter)==null?void 0:i.fromAttribute)!==void 0?d.converter:Yn;this._$Em=o;const m=c.fromAttribute(r,d.type);this[o]=m??((s=this._$Ej)==null?void 0:s.get(o))??m,this._$Em=null}}requestUpdate(t,r,n,o=!1,i){var s;if(t!==void 0){const d=this.constructor;if(o===!1&&(i=this[t]),n??(n=d.getPropertyOptions(t)),!((n.hasChanged??Fa)(i,r)||n.useDefault&&n.reflect&&i===((s=this._$Ej)==null?void 0:s.get(t))&&!this.hasAttribute(d._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[i,s]of o){const{wrapped:d}=s,c=this[i];d!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,s,c)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(o=>{var i;return(i=o.hostUpdate)==null?void 0:i.call(o)}),this.update(r)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(n=>{var o;return(o=n.hostUpdated)==null?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};mo.elementStyles=[],mo.shadowRootOptions={mode:"open"},mo[en("elementProperties")]=new Map,mo[en("finalized")]=new Map,es==null||es({ReactiveElement:mo}),(ir.reactiveElementVersions??(ir.reactiveElementVersions=[])).push("2.1.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const rn=globalThis,kl=e=>e,Yn=rn.trustedTypes,Ml=Yn?Yn.createPolicy("lit-html",{createHTML:e=>e}):void 0,vp="$lit$",nr=`lit$${Math.random().toFixed(9).slice(2)}$`,bp="?"+nr,pu=`<${bp}>`,Ir=document,sn=()=>Ir.createComment(""),an=e=>e===null||typeof e!="object"&&typeof e!="function",ka=Array.isArray,hu=e=>ka(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",rs=`[
13
+ */const rn=globalThis,kl=e=>e,Qn=rn.trustedTypes,Ml=Qn?Qn.createPolicy("lit-html",{createHTML:e=>e}):void 0,vp="$lit$",nr=`lit$${Math.random().toFixed(9).slice(2)}$`,bp="?"+nr,pu=`<${bp}>`,Ir=document,an=()=>Ir.createComment(""),ln=e=>e===null||typeof e!="object"&&typeof e!="function",ka=Array.isArray,hu=e=>ka(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",rs=`[
14
14
  \f\r]`,Ko=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Nl=/-->/g,Bl=/>/g,Pr=RegExp(`>|${rs}(?:([^\\s"'>=/]+)(${rs}*=${rs}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ul=/'/g,jl=/"/g,yp=/^(?:script|style|textarea|title)$/i,_p=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),l=_p(1),U=_p(2),ar=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),ql=new WeakMap,xr=Ir.createTreeWalker(Ir,129);function wp(e,t){if(!ka(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ml!==void 0?Ml.createHTML(t):t}const uu=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":t===3?"<math>":"",s=Ko;for(let d=0;d<r;d++){const c=e[d];let m,v,b=-1,w=0;for(;w<c.length&&(s.lastIndex=w,v=s.exec(c),v!==null);)w=s.lastIndex,s===Ko?v[1]==="!--"?s=Nl:v[1]!==void 0?s=Bl:v[2]!==void 0?(yp.test(v[2])&&(o=RegExp("</"+v[2],"g")),s=Pr):v[3]!==void 0&&(s=Pr):s===Pr?v[0]===">"?(s=o??Ko,b=-1):v[1]===void 0?b=-2:(b=s.lastIndex-v[2].length,m=v[1],s=v[3]===void 0?Pr:v[3]==='"'?jl:Ul):s===jl||s===Ul?s=Pr:s===Nl||s===Bl?s=Ko:(s=Pr,o=void 0);const _=s===Pr&&e[d+1].startsWith("/>")?" ":"";i+=s===Ko?c+pu:b>=0?(n.push(m),c.slice(0,b)+vp+c.slice(b)+nr+_):c+nr+(b===-2?d:_)}return[wp(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class ln{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0;const d=t.length-1,c=this.parts,[m,v]=uu(t,r);if(this.el=ln.createElement(m,n),xr.currentNode=this.el.content,r===2||r===3){const b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=xr.nextNode())!==null&&c.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(const b of o.getAttributeNames())if(b.endsWith(vp)){const w=v[s++],_=o.getAttribute(b).split(nr),C=/([.?@])?(.*)/.exec(w);c.push({type:1,index:i,name:C[2],strings:_,ctor:C[1]==="."?gu:C[1]==="?"?fu:C[1]==="@"?vu:Ei}),o.removeAttribute(b)}else b.startsWith(nr)&&(c.push({type:6,index:i}),o.removeAttribute(b));if(yp.test(o.tagName)){const b=o.textContent.split(nr),w=b.length-1;if(w>0){o.textContent=Yn?Yn.emptyScript:"";for(let _=0;_<w;_++)o.append(b[_],sn()),xr.nextNode(),c.push({type:2,index:++i});o.append(b[w],sn())}}}else if(o.nodeType===8)if(o.data===bp)c.push({type:2,index:i});else{let b=-1;for(;(b=o.data.indexOf(nr,b+1))!==-1;)c.push({type:7,index:i}),b+=nr.length-1}i++}}static createElement(t,r){const n=Ir.createElement("template");return n.innerHTML=t,n}}function fo(e,t,r=e,n){var s,d;if(t===ar)return t;let o=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const i=an(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==i&&((d=o==null?void 0:o._$AO)==null||d.call(o,!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=o:r._$Cl=o),o!==void 0&&(t=fo(e,o._$AS(e,t.values),o,n)),t}class mu{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??Ir).importNode(r,!0);xr.currentNode=o;let i=xr.nextNode(),s=0,d=0,c=n[0];for(;c!==void 0;){if(s===c.index){let m;c.type===2?m=new bn(i,i.nextSibling,this,t):c.type===1?m=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(m=new bu(i,this,t)),this._$AV.push(m),c=n[++d]}s!==(c==null?void 0:c.index)&&(i=xr.nextNode(),s++)}return xr.currentNode=Ir,o}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class bn{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=fo(this,t,r),an(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==ar&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==h&&an(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ir.createTextNode(t)),this._$AH=t}$(t){var i;const{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ln.createElement(wp(n.h,n.h[0]),this.options)),n);if(((i=this._$AH)==null?void 0:i._$AD)===o)this._$AH.p(r);else{const s=new mu(o,this),d=s.u(this.options);s.p(r),this.T(d),this._$AH=s}}_$AC(t){let r=ql.get(t.strings);return r===void 0&&ql.set(t.strings,r=new ln(t)),r}k(t){ka(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of t)o===r.length?r.push(n=new bn(this.O(sn()),this.O(sn()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);t!==this._$AB;){const o=kl(t).nextSibling;kl(t).remove(),t=o}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}}class Ei{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=h}_$AI(t,r=this,n,o){const i=this.strings;let s=!1;if(i===void 0)t=fo(this,t,r,0),s=!an(t)||t!==this._$AH&&t!==ar,s&&(this._$AH=t);else{const d=t;let c,m;for(t=i[0],c=0;c<i.length-1;c++)m=fo(this,d[n+c],r,c),m===ar&&(m=this._$AH[c]),s||(s=!an(m)||m!==this._$AH[c]),m===h?t=h:t!==h&&(t+=(m??"")+i[c+1]),this._$AH[c]=m}s&&!o&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class gu extends Ei{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class fu extends Ei{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class vu extends Ei{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=fo(this,t,r,0)??h)===ar)return;const n=this._$AH,o=t===h&&n!==h||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==h&&(n===h||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,t):this._$AH.handleEvent(t)}}class bu{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){fo(this,t)}}const os=rn.litHtmlPolyfillSupport;os==null||os(ln,bn),(rn.litHtmlVersions??(rn.litHtmlVersions=[])).push("3.3.3");const yu=(e,t,r)=>{const n=(r==null?void 0:r.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const i=(r==null?void 0:r.renderBefore)??null;n._$litPart$=o=new bn(t.insertBefore(sn(),i),i,void 0,r??{})}return o._$AI(e),o};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ul=/'/g,jl=/"/g,yp=/^(?:script|style|textarea|title)$/i,_p=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),l=_p(1),U=_p(2),ar=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),ql=new WeakMap,xr=Ir.createTreeWalker(Ir,129);function wp(e,t){if(!ka(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ml!==void 0?Ml.createHTML(t):t}const uu=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":t===3?"<math>":"",s=Ko;for(let d=0;d<r;d++){const c=e[d];let m,v,b=-1,w=0;for(;w<c.length&&(s.lastIndex=w,v=s.exec(c),v!==null);)w=s.lastIndex,s===Ko?v[1]==="!--"?s=Nl:v[1]!==void 0?s=Bl:v[2]!==void 0?(yp.test(v[2])&&(o=RegExp("</"+v[2],"g")),s=Pr):v[3]!==void 0&&(s=Pr):s===Pr?v[0]===">"?(s=o??Ko,b=-1):v[1]===void 0?b=-2:(b=s.lastIndex-v[2].length,m=v[1],s=v[3]===void 0?Pr:v[3]==='"'?jl:Ul):s===jl||s===Ul?s=Pr:s===Nl||s===Bl?s=Ko:(s=Pr,o=void 0);const _=s===Pr&&e[d+1].startsWith("/>")?" ":"";i+=s===Ko?c+pu:b>=0?(n.push(m),c.slice(0,b)+vp+c.slice(b)+nr+_):c+nr+(b===-2?d:_)}return[wp(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class dn{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0;const d=t.length-1,c=this.parts,[m,v]=uu(t,r);if(this.el=dn.createElement(m,n),xr.currentNode=this.el.content,r===2||r===3){const b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=xr.nextNode())!==null&&c.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(const b of o.getAttributeNames())if(b.endsWith(vp)){const w=v[s++],_=o.getAttribute(b).split(nr),C=/([.?@])?(.*)/.exec(w);c.push({type:1,index:i,name:C[2],strings:_,ctor:C[1]==="."?gu:C[1]==="?"?fu:C[1]==="@"?vu:Ei}),o.removeAttribute(b)}else b.startsWith(nr)&&(c.push({type:6,index:i}),o.removeAttribute(b));if(yp.test(o.tagName)){const b=o.textContent.split(nr),w=b.length-1;if(w>0){o.textContent=Qn?Qn.emptyScript:"";for(let _=0;_<w;_++)o.append(b[_],an()),xr.nextNode(),c.push({type:2,index:++i});o.append(b[w],an())}}}else if(o.nodeType===8)if(o.data===bp)c.push({type:2,index:i});else{let b=-1;for(;(b=o.data.indexOf(nr,b+1))!==-1;)c.push({type:7,index:i}),b+=nr.length-1}i++}}static createElement(t,r){const n=Ir.createElement("template");return n.innerHTML=t,n}}function fo(e,t,r=e,n){var s,d;if(t===ar)return t;let o=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const i=ln(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==i&&((d=o==null?void 0:o._$AO)==null||d.call(o,!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=o:r._$Cl=o),o!==void 0&&(t=fo(e,o._$AS(e,t.values),o,n)),t}class mu{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??Ir).importNode(r,!0);xr.currentNode=o;let i=xr.nextNode(),s=0,d=0,c=n[0];for(;c!==void 0;){if(s===c.index){let m;c.type===2?m=new yn(i,i.nextSibling,this,t):c.type===1?m=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(m=new bu(i,this,t)),this._$AV.push(m),c=n[++d]}s!==(c==null?void 0:c.index)&&(i=xr.nextNode(),s++)}return xr.currentNode=Ir,o}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class yn{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=fo(this,t,r),ln(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==ar&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==h&&ln(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ir.createTextNode(t)),this._$AH=t}$(t){var i;const{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=dn.createElement(wp(n.h,n.h[0]),this.options)),n);if(((i=this._$AH)==null?void 0:i._$AD)===o)this._$AH.p(r);else{const s=new mu(o,this),d=s.u(this.options);s.p(r),this.T(d),this._$AH=s}}_$AC(t){let r=ql.get(t.strings);return r===void 0&&ql.set(t.strings,r=new dn(t)),r}k(t){ka(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of t)o===r.length?r.push(n=new yn(this.O(an()),this.O(an()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);t!==this._$AB;){const o=kl(t).nextSibling;kl(t).remove(),t=o}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}}class Ei{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=h}_$AI(t,r=this,n,o){const i=this.strings;let s=!1;if(i===void 0)t=fo(this,t,r,0),s=!ln(t)||t!==this._$AH&&t!==ar,s&&(this._$AH=t);else{const d=t;let c,m;for(t=i[0],c=0;c<i.length-1;c++)m=fo(this,d[n+c],r,c),m===ar&&(m=this._$AH[c]),s||(s=!ln(m)||m!==this._$AH[c]),m===h?t=h:t!==h&&(t+=(m??"")+i[c+1]),this._$AH[c]=m}s&&!o&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class gu extends Ei{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class fu extends Ei{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class vu extends Ei{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=fo(this,t,r,0)??h)===ar)return;const n=this._$AH,o=t===h&&n!==h||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==h&&(n===h||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,t):this._$AH.handleEvent(t)}}class bu{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){fo(this,t)}}const os=rn.litHtmlPolyfillSupport;os==null||os(dn,yn),(rn.litHtmlVersions??(rn.litHtmlVersions=[])).push("3.3.3");const yu=(e,t,r)=>{const n=(r==null?void 0:r.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const i=(r==null?void 0:r.renderBefore)??null;n._$litPart$=o=new yn(t.insertBefore(an(),i),i,void 0,r??{})}return o._$AI(e),o};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
@@ -24,7 +24,7 @@
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const _u={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Fa},wu=(e=_u,t,r)=>{const{kind:n,metadata:o}=r;let i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),n==="accessor"){const{name:s}=r;return{set(d){const c=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,c,e,!0,d)},init(d){return d!==void 0&&this.C(s,void 0,e,d),d}}}if(n==="setter"){const{name:s}=r;return function(d){const c=this[s];t.call(this,d),this.requestUpdate(s,c,e,!0,d)}}throw Error("Unsupported decorator location: "+n)};function a(e){return(t,r)=>typeof r=="object"?wu(e,t,r):((n,o,i)=>{const s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}/**
27
+ */const _u={attribute:!0,type:String,converter:Yn,reflect:!1,hasChanged:Fa},wu=(e=_u,t,r)=>{const{kind:n,metadata:o}=r;let i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),n==="accessor"){const{name:s}=r;return{set(d){const c=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,c,e,!0,d)},init(d){return d!==void 0&&this.C(s,void 0,e,d),d}}}if(n==="setter"){const{name:s}=r;return function(d){const c=this[s];t.call(this,d),this.requestUpdate(s,c,e,!0,d)}}throw Error("Unsupported decorator location: "+n)};function a(e){return(t,r)=>typeof r=="object"?wu(e,t,r):((n,o,i)=>{const s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
@@ -36,7 +36,7 @@
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */function yn(e,t){return(r,n,o)=>{const i=s=>{var d;return((d=s.renderRoot)==null?void 0:d.querySelector(e))??null};return $u(r,n,{get(){return i(this)}})}}var Pu=Object.defineProperty,$p=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&Pu(t,r,o),o};let y=class extends f{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.mutationObserver)==null||t.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),r==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var i,s;let o="";t.some(d=>this.isCustomPropertySet(d))&&(o=n),o&&((s=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||s.classList.add(o))}removeDuplicateContent(){var i;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var d;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((d=s.textContent)!=null&&d.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let o;for(;o=t.nextNode();){let s;if(o.nodeType===Node.TEXT_NODE){const d=(i=o.textContent)==null?void 0:i.trim();if(!d)continue;s=`text:${d}`}else if(o instanceof HTMLElement){const d=Array.from(o.attributes).map(c=>`${c.name}=${c.value}`).sort().join(":");s=`element:${o.tagName}:${d}`}else continue;if(r.has(s)){const d=r.get(s);d&&d.parentNode&&n.push(d),r.set(s,o)}else r.set(s,o)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(t,r){let n;if(r&&r.length>0){n=r.filter(o=>this.contains(o)&&o!==t&&!o.contains(t));for(const o of n){const i=Array.from(t.childNodes).find(s=>{var d;return(d=s.isEqualNode)==null?void 0:d.call(s,o)});i&&t.removeChild(i)}}else n=Array.from(this.childNodes).filter(o=>o!==t&&!t.contains(o)&&!o.contains(t));for(const o of n)t.appendChild(o)}normalizeEnum(t,r,n){if(!t)return n;const o=Object.values(r),i=Object.keys(r);return o.includes(t)?t:i.includes(t)?r[t]:n}observeStyleAndClassSync(t){this.mutationObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"){if(n.attributeName==="style"){const o=this.getAttribute("style")||"";o&&(this.customStyle=o,this.removeAttribute("style"))}if(n.attributeName==="class"){const o=this.getAttribute("class")||"";o&&(t.className=o,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}};$p([a({type:String,reflect:!0})],y.prototype,"customClass");$p([a({type:String,reflect:!0})],y.prototype,"customStyle");function Ma(){const e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(e+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const Cu=new CSSStyleSheet,Ol=class Ol extends f{constructor(){super()}connectedCallback(){super.connectedCallback(),this.shadowRoot?this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,Cu]:console.error("Shadow root not available in ShadowWrapper")}render(){return l`<div><slot></slot></div>`}};Ol.styles=fp`
39
+ */function _n(e,t){return(r,n,o)=>{const i=s=>{var d;return((d=s.renderRoot)==null?void 0:d.querySelector(e))??null};return $u(r,n,{get(){return i(this)}})}}var Pu=Object.defineProperty,$p=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&Pu(t,r,o),o};let y=class extends f{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.mutationObserver)==null||t.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),r==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var i,s;let o="";t.some(d=>this.isCustomPropertySet(d))&&(o=n),o&&((s=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||s.classList.add(o))}removeDuplicateContent(){var i;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var d;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((d=s.textContent)!=null&&d.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let o;for(;o=t.nextNode();){let s;if(o.nodeType===Node.TEXT_NODE){const d=(i=o.textContent)==null?void 0:i.trim();if(!d)continue;s=`text:${d}`}else if(o instanceof HTMLElement){const d=Array.from(o.attributes).map(c=>`${c.name}=${c.value}`).sort().join(":");s=`element:${o.tagName}:${d}`}else continue;if(r.has(s)){const d=r.get(s);d&&d.parentNode&&n.push(d),r.set(s,o)}else r.set(s,o)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(t,r){let n;if(r&&r.length>0){n=r.filter(o=>this.contains(o)&&o!==t&&!o.contains(t));for(const o of n){const i=Array.from(t.childNodes).find(s=>{var d;return(d=s.isEqualNode)==null?void 0:d.call(s,o)});i&&t.removeChild(i)}}else n=Array.from(this.childNodes).filter(o=>o!==t&&!t.contains(o)&&!o.contains(t));for(const o of n)t.appendChild(o)}normalizeEnum(t,r,n){if(!t)return n;const o=Object.values(r),i=Object.keys(r);return o.includes(t)?t:i.includes(t)?r[t]:n}observeStyleAndClassSync(t){this.mutationObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"){if(n.attributeName==="style"){const o=this.getAttribute("style")||"";o&&(this.customStyle=o,this.removeAttribute("style"))}if(n.attributeName==="class"){const o=this.getAttribute("class")||"";o&&(t.className=o,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}};$p([a({type:String,reflect:!0})],y.prototype,"customClass");$p([a({type:String,reflect:!0})],y.prototype,"customStyle");function Ma(){const e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(e+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const Cu=new CSSStyleSheet,Ol=class Ol extends f{constructor(){super()}connectedCallback(){super.connectedCallback(),this.shadowRoot?this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,Cu]:console.error("Shadow root not available in ShadowWrapper")}render(){return l`<div><slot></slot></div>`}};Ol.styles=fp`
40
40
  :host {
41
41
  display: block;
42
42
  border: 2px solid black;
@@ -45,7 +45,7 @@
45
45
  .wrapper {
46
46
  display: block;
47
47
  }
48
- `;let Ms=Ol;customElements.define("pont-shadow-wrapper",Ms);function Pp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Pp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Na(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Pp(e))&&(n&&(n+=" "),n+=t);return n}const Ba="-",Su=e=>{const t=xu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const d=s.split(Ba);return d[0]===""&&d.length!==1&&d.shift(),Cp(d,t)||Eu(s)},getConflictingClassGroupIds:(s,d)=>{const c=r[s]||[];return d&&n[s]?[...c,...n[s]]:c}}},Cp=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Cp(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ba);return(s=t.validators.find(({validator:d})=>d(i)))==null?void 0:s.classGroupId},zl=/^\[(.+)\]$/,Eu=e=>{if(zl.test(e)){const t=zl.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},xu=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ru(Object.entries(e.classGroups),r).forEach(([i,s])=>{Ns(s,n,i,t)}),n},Ns=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Vl(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Ou(o)){Ns(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Ns(s,Vl(t,i),r,n)})})},Vl=(e,t)=>{let r=e;return t.split(Ba).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ou=e=>e.isThemeGetter,Ru=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,d])=>[t+s,d])):i);return[r,o]}):e,Iu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Sp="!",Au=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=d=>{const c=[];let m=0,v=0,b;for(let x=0;x<d.length;x++){let S=d[x];if(m===0){if(S===o&&(n||d.slice(x,x+i)===t)){c.push(d.slice(v,x)),v=x+i;continue}if(S==="/"){b=x;continue}}S==="["?m++:S==="]"&&m--}const w=c.length===0?d:d.substring(v),_=w.startsWith(Sp),C=_?w.substring(1):w,P=b&&b>v?b-v:void 0;return{modifiers:c,hasImportantModifier:_,baseClassName:C,maybePostfixModifierPosition:P}};return r?d=>r({className:d,parseClassName:s}):s},Tu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Du=e=>({cache:Iu(e.cacheSize),parseClassName:Au(e),...Su(e)}),Lu=/\s+/,Fu=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Lu);let d="";for(let c=s.length-1;c>=0;c-=1){const m=s[c],{modifiers:v,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:_}=r(m);let C=!!_,P=n(C?w.substring(0,_):w);if(!P){if(!C){d=m+(d.length>0?" "+d:d);continue}if(P=n(w),!P){d=m+(d.length>0?" "+d:d);continue}C=!1}const x=Tu(v).join(":"),S=b?x+Sp:x,D=S+P;if(i.includes(D))continue;i.push(D);const L=o(P,C);for(let R=0;R<L.length;++R){const K=L[R];i.push(S+K)}d=m+(d.length>0?" "+d:d)}return d};function ku(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ep(t))&&(n&&(n+=" "),n+=r);return n}const Ep=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ep(e[n]))&&(r&&(r+=" "),r+=t);return r};function Mu(e,...t){let r,n,o,i=s;function s(c){const m=t.reduce((v,b)=>b(v),e());return r=Du(m),n=r.cache.get,o=r.cache.set,i=d,d(c)}function d(c){const m=n(c);if(m)return m;const v=Fu(c,r);return o(c,v),v}return function(){return i(ku.apply(null,arguments))}}const W=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},xp=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nu=/^\d+\/\d+$/,Bu=new Set(["px","full","screen"]),Uu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ju=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>go(e)||Bu.has(e)||Nu.test(e),tr=e=>Eo(e,"length",Ju),go=e=>!!e&&!Number.isNaN(Number(e)),is=e=>Eo(e,"number",go),Wo=e=>!!e&&Number.isInteger(Number(e)),Hu=e=>e.endsWith("%")&&go(e.slice(0,-1)),B=e=>xp.test(e),er=e=>Uu.test(e),Gu=new Set(["length","size","percentage"]),Ku=e=>Eo(e,Gu,Op),Wu=e=>Eo(e,"position",Op),Yu=new Set(["image","url"]),Qu=e=>Eo(e,Yu,tm),Zu=e=>Eo(e,"",Xu),Yo=()=>!0,Eo=(e,t,r)=>{const n=xp.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ju=e=>ju.test(e)&&!qu.test(e),Op=()=>!1,Xu=e=>zu.test(e),tm=e=>Vu.test(e),em=()=>{const e=W("colors"),t=W("spacing"),r=W("blur"),n=W("brightness"),o=W("borderColor"),i=W("borderRadius"),s=W("borderSpacing"),d=W("borderWidth"),c=W("contrast"),m=W("grayscale"),v=W("hueRotate"),b=W("invert"),w=W("gap"),_=W("gradientColorStops"),C=W("gradientColorStopPositions"),P=W("inset"),x=W("margin"),S=W("opacity"),D=W("padding"),L=W("saturate"),R=W("scale"),K=W("sepia"),O=W("skew"),A=W("space"),T=W("translate"),E=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",B,t],$=()=>[B,t],k=()=>["",je,tr],N=()=>["auto",go,B],Jt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],kn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ro=()=>["start","end","center","between","around","evenly","stretch"],$r=()=>["","0",B],oo=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Rt=()=>[go,B];return{cacheSize:500,separator:":",theme:{colors:[Yo],spacing:[je,tr],blur:["none","",er,B],brightness:Rt(),borderColor:[e],borderRadius:["none","","full",er,B],borderSpacing:$(),borderWidth:k(),contrast:Rt(),grayscale:$r(),hueRotate:Rt(),invert:$r(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Hu,tr],inset:F(),margin:F(),opacity:Rt(),padding:$(),saturate:Rt(),scale:Rt(),sepia:$r(),skew:Rt(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":oo()}],"break-before":[{"break-before":oo()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Jt(),B]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wo,B]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:$r()}],shrink:[{shrink:$r()}],order:[{order:["first","last","none",Wo,B]}],"grid-cols":[{"grid-cols":[Yo]}],"col-start-end":[{col:["auto",{span:["full",Wo,B]},B]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Yo]}],"row-start-end":[{row:["auto",{span:[Wo,B]},B]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ro()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ro(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ro(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",er,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",is]}],"font-family":[{font:[Yo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",go,is]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",je,tr]}],"underline-offset":[{"underline-offset":["auto",je,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Jt(),Wu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ku]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:ce()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[je,B]}],"outline-w":[{outline:[je,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[je,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",er,Zu]}],"shadow-color":[{shadow:[Yo]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...kn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kn()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",er,B]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[b]}],saturate:[{saturate:[L]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:Rt()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:Rt()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Wo,B]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,tr,is]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Rp=Mu(em);function u(...e){return Rp(Na(e))}/**
48
+ `;let Ms=Ol;customElements.define("pont-shadow-wrapper",Ms);function Pp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Pp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Na(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Pp(e))&&(n&&(n+=" "),n+=t);return n}const Ba="-",Su=e=>{const t=xu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const d=s.split(Ba);return d[0]===""&&d.length!==1&&d.shift(),Cp(d,t)||Eu(s)},getConflictingClassGroupIds:(s,d)=>{const c=r[s]||[];return d&&n[s]?[...c,...n[s]]:c}}},Cp=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Cp(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ba);return(s=t.validators.find(({validator:d})=>d(i)))==null?void 0:s.classGroupId},zl=/^\[(.+)\]$/,Eu=e=>{if(zl.test(e)){const t=zl.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},xu=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ru(Object.entries(e.classGroups),r).forEach(([i,s])=>{Ns(s,n,i,t)}),n},Ns=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Vl(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Ou(o)){Ns(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Ns(s,Vl(t,i),r,n)})})},Vl=(e,t)=>{let r=e;return t.split(Ba).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ou=e=>e.isThemeGetter,Ru=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,d])=>[t+s,d])):i);return[r,o]}):e,Iu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Sp="!",Au=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=d=>{const c=[];let m=0,v=0,b;for(let x=0;x<d.length;x++){let S=d[x];if(m===0){if(S===o&&(n||d.slice(x,x+i)===t)){c.push(d.slice(v,x)),v=x+i;continue}if(S==="/"){b=x;continue}}S==="["?m++:S==="]"&&m--}const w=c.length===0?d:d.substring(v),_=w.startsWith(Sp),C=_?w.substring(1):w,P=b&&b>v?b-v:void 0;return{modifiers:c,hasImportantModifier:_,baseClassName:C,maybePostfixModifierPosition:P}};return r?d=>r({className:d,parseClassName:s}):s},Tu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Du=e=>({cache:Iu(e.cacheSize),parseClassName:Au(e),...Su(e)}),Lu=/\s+/,Fu=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Lu);let d="";for(let c=s.length-1;c>=0;c-=1){const m=s[c],{modifiers:v,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:_}=r(m);let C=!!_,P=n(C?w.substring(0,_):w);if(!P){if(!C){d=m+(d.length>0?" "+d:d);continue}if(P=n(w),!P){d=m+(d.length>0?" "+d:d);continue}C=!1}const x=Tu(v).join(":"),S=b?x+Sp:x,D=S+P;if(i.includes(D))continue;i.push(D);const L=o(P,C);for(let R=0;R<L.length;++R){const K=L[R];i.push(S+K)}d=m+(d.length>0?" "+d:d)}return d};function ku(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ep(t))&&(n&&(n+=" "),n+=r);return n}const Ep=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ep(e[n]))&&(r&&(r+=" "),r+=t);return r};function Mu(e,...t){let r,n,o,i=s;function s(c){const m=t.reduce((v,b)=>b(v),e());return r=Du(m),n=r.cache.get,o=r.cache.set,i=d,d(c)}function d(c){const m=n(c);if(m)return m;const v=Fu(c,r);return o(c,v),v}return function(){return i(ku.apply(null,arguments))}}const W=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},xp=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nu=/^\d+\/\d+$/,Bu=new Set(["px","full","screen"]),Uu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ju=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,je=e=>go(e)||Bu.has(e)||Nu.test(e),tr=e=>Eo(e,"length",Ju),go=e=>!!e&&!Number.isNaN(Number(e)),is=e=>Eo(e,"number",go),Wo=e=>!!e&&Number.isInteger(Number(e)),Hu=e=>e.endsWith("%")&&go(e.slice(0,-1)),B=e=>xp.test(e),er=e=>Uu.test(e),Gu=new Set(["length","size","percentage"]),Ku=e=>Eo(e,Gu,Op),Wu=e=>Eo(e,"position",Op),Yu=new Set(["image","url"]),Qu=e=>Eo(e,Yu,tm),Zu=e=>Eo(e,"",Xu),Yo=()=>!0,Eo=(e,t,r)=>{const n=xp.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ju=e=>ju.test(e)&&!qu.test(e),Op=()=>!1,Xu=e=>zu.test(e),tm=e=>Vu.test(e),em=()=>{const e=W("colors"),t=W("spacing"),r=W("blur"),n=W("brightness"),o=W("borderColor"),i=W("borderRadius"),s=W("borderSpacing"),d=W("borderWidth"),c=W("contrast"),m=W("grayscale"),v=W("hueRotate"),b=W("invert"),w=W("gap"),_=W("gradientColorStops"),C=W("gradientColorStopPositions"),P=W("inset"),x=W("margin"),S=W("opacity"),D=W("padding"),L=W("saturate"),R=W("scale"),K=W("sepia"),O=W("skew"),A=W("space"),T=W("translate"),E=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",B,t],$=()=>[B,t],k=()=>["",je,tr],N=()=>["auto",go,B],Jt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],Mn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ro=()=>["start","end","center","between","around","evenly","stretch"],$r=()=>["","0",B],oo=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Rt=()=>[go,B];return{cacheSize:500,separator:":",theme:{colors:[Yo],spacing:[je,tr],blur:["none","",er,B],brightness:Rt(),borderColor:[e],borderRadius:["none","","full",er,B],borderSpacing:$(),borderWidth:k(),contrast:Rt(),grayscale:$r(),hueRotate:Rt(),invert:$r(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Hu,tr],inset:F(),margin:F(),opacity:Rt(),padding:$(),saturate:Rt(),scale:Rt(),sepia:$r(),skew:Rt(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":oo()}],"break-before":[{"break-before":oo()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Jt(),B]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wo,B]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:$r()}],shrink:[{shrink:$r()}],order:[{order:["first","last","none",Wo,B]}],"grid-cols":[{"grid-cols":[Yo]}],"col-start-end":[{col:["auto",{span:["full",Wo,B]},B]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Yo]}],"row-start-end":[{row:["auto",{span:[Wo,B]},B]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ro()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ro(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ro(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",er,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",is]}],"font-family":[{font:[Yo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",go,is]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",je,tr]}],"underline-offset":[{"underline-offset":["auto",je,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Jt(),Wu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ku]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:ce()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[je,B]}],"outline-w":[{outline:[je,tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[je,tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",er,Zu]}],"shadow-color":[{shadow:[Yo]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...Mn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Mn()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",er,B]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[b]}],saturate:[{saturate:[L]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:Rt()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:Rt()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Wo,B]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,tr,is]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Rp=Mu(em);function u(...e){return Rp(Na(e))}/**
49
49
  * @license
50
50
  * Copyright 2017 Google LLC
51
51
  * SPDX-License-Identifier: BSD-3-Clause
@@ -57,17 +57,17 @@
57
57
  * @license
58
58
  * Copyright 2017 Google LLC
59
59
  * SPDX-License-Identifier: BSD-3-Clause
60
- */const on=(e,t)=>{var n;const r=e._$AN;if(r===void 0)return!1;for(const o of r)(n=o._$AO)==null||n.call(o,t,!1),on(o,t);return!0},Qn=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},Ip=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),am(t)}};function im(e){this._$AN!==void 0?(Qn(this),this._$AM=e,Ip(this)):this._$AM=e}function sm(e,t=!1,r=0){const n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)on(n[i],!1),Qn(n[i]);else n!=null&&(on(n,!1),Qn(n));else on(this,e)}const am=e=>{e.type==Ua.CHILD&&(e._$AP??(e._$AP=sm),e._$AQ??(e._$AQ=im))};class Ap extends xi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),Ip(this),this.isConnected=t._$AU}_$AO(t,r=!0){var n,o;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(o=this.disconnected)==null||o.call(this)),r&&(on(this,t),Qn(this))}setValue(t){if(rm(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}class lm extends Ap{constructor(){super(...arguments),this.prevData={}}render(t){return h}update(t,[r]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const o in t){const i=t[o];i!==r[o]&&(n[o]=i)}}groom(t){const{prevData:r,element:n}=this;if(r)for(const o in r)(!t||!(o in t)&&n[o]===r[o])&&(n[o]=void 0)}}class dm extends lm{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const r in t){const n=t[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(t,r){const{prevData:n,element:o}=this;this.eventData[t]=r,n[t]&&o.removeEventListener(t,this,r),o.addEventListener(t,this,r)}groom(t){const{prevData:r,element:n}=this;if(r)for(const o in r)(!t||!(o in t)&&n[o]===r[o])&&this.groomEvent(o,r[o])}groomEvent(t,r){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,r)}handleEvent(t){const r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){const{eventData:t,element:r}=this;for(const n in t){const o=n.slice(1),i=t[n];r.removeEventListener(o,this,i)}}reconnected(){const{eventData:t,element:r}=this;for(const n in t){const o=n.slice(1),i=t[n];r.addEventListener(o,this,i)}}}class cm extends dm{apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const o in t){const i=t[o];if(i===r[o])continue;const s=o.slice(1);switch(o[0]){case"@":this.eventData[s]=i,this.applyEvent(s,i);break;case".":n[s]=i;break;case"?":i?n.setAttribute(s,""):n.removeAttribute(s);break;default:i!=null?n.setAttribute(o,String(i)):n.removeAttribute(o);break}}}groom(t){const{prevData:r,element:n}=this;if(r)for(const o in r){const i=o.slice(1);if(!t||!(o in t)&&n[i]===r[o])switch(o[0]){case"@":this.groomEvent(i,r[o]);break;case".":n[i]=void 0;break;case"?":n.removeAttribute(i);break;default:n.removeAttribute(o);break}}}}const St=xo(cm);/**
60
+ */const on=(e,t)=>{var n;const r=e._$AN;if(r===void 0)return!1;for(const o of r)(n=o._$AO)==null||n.call(o,t,!1),on(o,t);return!0},Zn=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},Ip=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),am(t)}};function im(e){this._$AN!==void 0?(Zn(this),this._$AM=e,Ip(this)):this._$AM=e}function sm(e,t=!1,r=0){const n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)on(n[i],!1),Zn(n[i]);else n!=null&&(on(n,!1),Zn(n));else on(this,e)}const am=e=>{e.type==Ua.CHILD&&(e._$AP??(e._$AP=sm),e._$AQ??(e._$AQ=im))};class Ap extends xi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),Ip(this),this.isConnected=t._$AU}_$AO(t,r=!0){var n,o;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(o=this.disconnected)==null||o.call(this)),r&&(on(this,t),Zn(this))}setValue(t){if(rm(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}class lm extends Ap{constructor(){super(...arguments),this.prevData={}}render(t){return h}update(t,[r]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const o in t){const i=t[o];i!==r[o]&&(n[o]=i)}}groom(t){const{prevData:r,element:n}=this;if(r)for(const o in r)(!t||!(o in t)&&n[o]===r[o])&&(n[o]=void 0)}}class dm extends lm{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const r in t){const n=t[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(t,r){const{prevData:n,element:o}=this;this.eventData[t]=r,n[t]&&o.removeEventListener(t,this,r),o.addEventListener(t,this,r)}groom(t){const{prevData:r,element:n}=this;if(r)for(const o in r)(!t||!(o in t)&&n[o]===r[o])&&this.groomEvent(o,r[o])}groomEvent(t,r){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,r)}handleEvent(t){const r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){const{eventData:t,element:r}=this;for(const n in t){const o=n.slice(1),i=t[n];r.removeEventListener(o,this,i)}}reconnected(){const{eventData:t,element:r}=this;for(const n in t){const o=n.slice(1),i=t[n];r.addEventListener(o,this,i)}}}class cm extends dm{apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const o in t){const i=t[o];if(i===r[o])continue;const s=o.slice(1);switch(o[0]){case"@":this.eventData[s]=i,this.applyEvent(s,i);break;case".":n[s]=i;break;case"?":i?n.setAttribute(s,""):n.removeAttribute(s);break;default:i!=null?n.setAttribute(o,String(i)):n.removeAttribute(o);break}}}groom(t){const{prevData:r,element:n}=this;if(r)for(const o in r){const i=o.slice(1);if(!t||!(o in t)&&n[i]===r[o])switch(o[0]){case"@":this.groomEvent(i,r[o]);break;case".":n[i]=void 0;break;case"?":n.removeAttribute(i);break;default:n.removeAttribute(o);break}}}}const St=xo(cm);/**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
- */let Zn=class extends xi{constructor(t){if(super(t),this.it=h,t.type!==Ua.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===h||t==null)return this._t=void 0,this.it=t;if(t===ar)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Zn.directiveName="unsafeHTML",Zn.resultType=1;const Tp=xo(Zn),dn={base:[""],item:["pont-border-b-accordion-item-width-border pont-border-b-accordion-item-color-border"],trigger:["pont-flex pont-flex-1 pont-gap-accordion-trigger-space-gap pont-justify-between pont-items-start","pont-py-accordion-trigger-space-py","pont-w-accordion-trigger-space-w","pont-rounded-accordion-trigger-radius pont-outline-none","pont-text-accordion-trigger-font pont-font-accordion-trigger-font-weight pont-text-left","pont-transition-all","hover:pont-underline","focus-visible:pont-border-accordion-trigger-width-border-focus focus-visible:pont-border-accordion-trigger-color-border-focus","focus-visible:pont-ring-accordion-trigger-width-ring-focus focus-visible:pont-ring-accordion-trigger-color-ring-focus","disabled:pont-pointer-events-none disabled:pont-opacity-50","[&[data-state=open]>svg]:pont-rotate-180"],chevron:["pont-shrink-0","pont-size-accordion-trigger-icon-space-size","pont-text-accordion-trigger-icon-color-text","pont-translate-y-0.5 pont-transition-transform pont-duration-200","pont-pointer-events-none"],content:["pont-overflow-hidden","pont-text-accordion-content-font pont-font-accordion-content-font-weight","data-[state=closed]:pont-h-accordion-content-space-h-closed","data-[state=closed]:pont-animate-accordion-content-animate-closed","data-[state=open]:pont-animate-accordion-content-animate-open","data-[state=open]:pont-h-fit","[&>div]:pont-pt-accordion-content-div-space-pt [&>div]:pont-pb-accordion-content-div-space-pb"]};var pm=Object.getOwnPropertyDescriptor,hm=(e,t,r,n)=>{for(var o=n>1?void 0:n?pm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Bs=class extends y{constructor(){super(...arguments),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof vo);)e=e.parentElement;return e}get _item(){let e=this.parentElement;for(;e&&!(e instanceof me);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var t;const e=this.hasActiveState();return l`
64
+ */let Jn=class extends xi{constructor(t){if(super(t),this.it=h,t.type!==Ua.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===h||t==null)return this._t=void 0,this.it=t;if(t===ar)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Jn.directiveName="unsafeHTML",Jn.resultType=1;const Tp=xo(Jn),cn={base:[""],item:["pont-border-b-accordion-item-width-border pont-border-b-accordion-item-color-border"],trigger:["pont-flex pont-flex-1 pont-gap-accordion-trigger-space-gap pont-justify-between pont-items-start","pont-py-accordion-trigger-space-py","pont-w-accordion-trigger-space-w","pont-rounded-accordion-trigger-radius pont-outline-none","pont-text-accordion-trigger-font pont-font-accordion-trigger-font-weight pont-text-left","pont-transition-all","hover:pont-underline","focus-visible:pont-border-accordion-trigger-width-border-focus focus-visible:pont-border-accordion-trigger-color-border-focus","focus-visible:pont-ring-accordion-trigger-width-ring-focus focus-visible:pont-ring-accordion-trigger-color-ring-focus","disabled:pont-pointer-events-none disabled:pont-opacity-50","[&[data-state=open]>svg]:pont-rotate-180"],chevron:["pont-shrink-0","pont-size-accordion-trigger-icon-space-size","pont-text-accordion-trigger-icon-color-text","pont-translate-y-0.5 pont-transition-transform pont-duration-200","pont-pointer-events-none"],content:["pont-overflow-hidden","pont-text-accordion-content-font pont-font-accordion-content-font-weight","data-[state=closed]:pont-h-accordion-content-space-h-closed","data-[state=closed]:pont-animate-accordion-content-animate-closed","data-[state=open]:pont-animate-accordion-content-animate-open","data-[state=open]:pont-h-fit","[&>div]:pont-pt-accordion-content-div-space-pt [&>div]:pont-pb-accordion-content-div-space-pb"]};var pm=Object.getOwnPropertyDescriptor,hm=(e,t,r,n)=>{for(var o=n>1?void 0:n?pm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Bs=class extends y{constructor(){super(...arguments),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof vo);)e=e.parentElement;return e}get _item(){let e=this.parentElement;for(;e&&!(e instanceof me);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var t;const e=this.hasActiveState();return l`
65
65
  <div
66
66
  part="accordion-content"
67
67
  role="region"
68
68
  data-state=${e?"open":"closed"}
69
69
  data-orientation="vertical"
70
- class=${u(dn.content,this.className)}
70
+ class=${u(cn.content,this.className)}
71
71
  @click=${r=>r.stopPropagation()}
72
72
  >
73
73
  <div>${Tp(((t=this.textContent)==null?void 0:t.trim())||"")}</div>
@@ -75,7 +75,7 @@
75
75
  `}};Bs=hm([p("pont-accordion-content")],Bs);var um=Object.defineProperty,mm=Object.getOwnPropertyDescriptor,ja=(e,t,r,n)=>{for(var o=n>1?void 0:n?mm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&um(t,r,o),o};let me=class extends y{constructor(){super(...arguments),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=e=>{const t=e.target.closest("pont-accordion-trigger");!t||!this._accordion||(e.preventDefault(),e.stopPropagation(),this._accordion.raiseEvent(this.value),t.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof vo);)e=e.parentElement;return e}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(e=>e instanceof Us||e instanceof Bs)}render(){var r;const e=(r=this._accordion)==null?void 0:r.selectedItems.includes(this.value),t=this._initialChildren.length?this._initialChildren:this.filterChildren();return l`
76
76
  <div
77
77
  data-state=${e?"open":"closed"}
78
- class="${u(dn.item,this.className)}"
78
+ class="${u(cn.item,this.className)}"
79
79
  value=${this.value}
80
80
  role="tablist"
81
81
  data-orientation="vertical"
@@ -92,7 +92,7 @@
92
92
  aria-selected=${e}
93
93
  aria-expanded=${e}
94
94
  data-state=${e?"open":"closed"}
95
- class="${u(dn.trigger,this.className)}"
95
+ class="${u(cn.trigger,this.className)}"
96
96
  tabindex="-1"
97
97
  data-orientation="horizontal"
98
98
  data-radix-collection-item
@@ -107,7 +107,7 @@
107
107
  stroke-width="2"
108
108
  stroke-linecap="round"
109
109
  stroke-linejoin="round"
110
- class=${u(dn.chevron,"lucide lucide-chevron-down-icon lucide-chevron-down")}
110
+ class=${u(cn.chevron,"lucide lucide-chevron-down-icon lucide-chevron-down")}
111
111
  >
112
112
  <path d="m6 9 6 6 6-6" />
113
113
  </svg>
@@ -117,13 +117,13 @@
117
117
  data-orientation="vertical"
118
118
  ${St(this.getFilteredAttributes())}
119
119
  part="accordion"
120
- class="${u(dn.base,this.className)}"
120
+ class="${u(cn.base,this.className)}"
121
121
  >
122
122
  ${e}
123
123
  </div>
124
124
  `}};Dp([a({type:String})],vo.prototype,"type",2);vo=Dp([p("pont-accordion")],vo);var ym=Object.defineProperty,_m=Object.getOwnPropertyDescriptor,Lp=(e,t,r,n)=>{for(var o=n>1?void 0:n?_m(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&ym(t,r,o),o};let js=class extends f{constructor(){super(...arguments),this.variant="default"}get _rootSlot(){return this.querySelector('[data-slot="alert"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="alert" data-variant=${this.variant}></div>`}};Lp([a({type:String})],js.prototype,"variant",2);js=Lp([p("pont-callout")],js);var wm=Object.getOwnPropertyDescriptor,$m=(e,t,r,n)=>{for(var o=n>1?void 0:n?wm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Hl=class extends f{get _titleSlot(){return this.querySelector('[data-slot="alert-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._titleSlot&&((r=this._titleSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="alert-title"></div>`}};Hl=$m([p("pont-callout-title")],Hl);var Pm=Object.getOwnPropertyDescriptor,Cm=(e,t,r,n)=>{for(var o=n>1?void 0:n?Pm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Gl=class extends f{get _descriptionSlot(){return this.querySelector('[data-slot="alert-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._descriptionSlot&&((r=this._descriptionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="alert-description"></div>`}};Gl=Cm([p("pont-callout-description")],Gl);var Sm=Object.getOwnPropertyDescriptor,Em=(e,t,r,n)=>{for(var o=n>1?void 0:n?Sm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Kl=class extends f{get _actionSlot(){return this.querySelector('[data-slot="alert-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._actionSlot&&((r=this._actionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="alert-action"></div>`}};Kl=Em([p("pont-callout-action")],Kl);const Wl={host:["pont-block pont-relative pont-w-full"],self:["pont-absolute pont-inset-0"]};var xm=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Fp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Om(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&xm(t,r,o),o};let qs=class extends f{constructor(){super(...arguments),this.ratio=1/1,this._userClass="",this._userStyle=""}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._userClass=this.getAttribute("class")??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=u(this.className,Wl.host)}updated(e){e.has("ratio")&&(this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%")}firstUpdated(){var t;this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%";const e=this.querySelector(".aspect-ratio");if(e){if(this._userClass&&(e.className=u(e.className,this._userClass)),this._userStyle){const r=(t=e.getAttribute("style"))==null?void 0:t.trim(),n=this._userStyle.trim();e.setAttribute("style",[r,n].filter(Boolean).join("; "))}Array.from(this.childNodes).forEach(r=>{r!==e&&e.appendChild(r)})}}render(){return l`
125
125
  <div class="${u("aspect-ratio",Wl.self)}"></div>
126
- `}};Fp([a({type:Number,reflect:!0})],qs.prototype,"ratio",2);qs=Fp([p("pont-aspect-ratio")],qs);var Rm=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,Oi=(e,t,r,n)=>{for(var o=n>1?void 0:n?Im(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Rm(t,r,o),o};let cn=class extends f{constructor(){super(...arguments),this.size="default",this._imageLoaded=!1,this._imageError=!1}get _rootSlot(){return this.querySelector('[data-slot="avatar"]')}get _avatarImageChild(){return this.querySelector("pont-avatar-image")}get _avatarFallbackChild(){return this.querySelector("pont-avatar-fallback")}_syncChildren(){const e=this._imageError||!this._imageLoaded;this._avatarImageChild&&(this._avatarImageChild.style.display=e?"none":""),this._avatarFallbackChild&&(this._avatarFallbackChild.style.display=e?"":"none")}_onImageLoad(){this._imageLoaded=!0,this._imageError=!1,this._syncChildren()}_onImageError(){this._imageLoaded=!1,this._imageError=!0,this._syncChildren()}connectedCallback(){super.connectedCallback(),this.addEventListener("pont-avatar:image-load",this._onImageLoad),this.addEventListener("pont-avatar:image-error",this._onImageError)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pont-avatar:image-load",this._onImageLoad),this.removeEventListener("pont-avatar:image-error",this._onImageError)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<span data-slot="avatar" data-size=${this.size}></span>`}};Oi([a({type:String})],cn.prototype,"size",2);Oi([g()],cn.prototype,"_imageLoaded",2);Oi([g()],cn.prototype,"_imageError",2);cn=Oi([p("pont-avatar")],cn);var Am=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,qa=(e,t,r,n)=>{for(var o=n>1?void 0:n?Tm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Am(t,r,o),o};let Jn=class extends f{_onLoad(){this.dispatchEvent(new CustomEvent("pont-avatar:image-load",{bubbles:!0,composed:!0}))}_onError(){this.dispatchEvent(new CustomEvent("pont-avatar:image-error",{bubbles:!0,composed:!0}))}createRenderRoot(){return this}render(){return l`
126
+ `}};Fp([a({type:Number,reflect:!0})],qs.prototype,"ratio",2);qs=Fp([p("pont-aspect-ratio")],qs);var Rm=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,Oi=(e,t,r,n)=>{for(var o=n>1?void 0:n?Im(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Rm(t,r,o),o};let pn=class extends f{constructor(){super(...arguments),this.size="default",this._imageLoaded=!1,this._imageError=!1}get _rootSlot(){return this.querySelector('[data-slot="avatar"]')}get _avatarImageChild(){return this.querySelector("pont-avatar-image")}get _avatarFallbackChild(){return this.querySelector("pont-avatar-fallback")}_syncChildren(){const e=this._imageError||!this._imageLoaded;this._avatarImageChild&&(this._avatarImageChild.style.display=e?"none":""),this._avatarFallbackChild&&(this._avatarFallbackChild.style.display=e?"":"none")}_onImageLoad(){this._imageLoaded=!0,this._imageError=!1,this._syncChildren()}_onImageError(){this._imageLoaded=!1,this._imageError=!0,this._syncChildren()}connectedCallback(){super.connectedCallback(),this.addEventListener("pont-avatar:image-load",this._onImageLoad),this.addEventListener("pont-avatar:image-error",this._onImageError)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pont-avatar:image-load",this._onImageLoad),this.removeEventListener("pont-avatar:image-error",this._onImageError)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<span data-slot="avatar" data-size=${this.size}></span>`}};Oi([a({type:String})],pn.prototype,"size",2);Oi([g()],pn.prototype,"_imageLoaded",2);Oi([g()],pn.prototype,"_imageError",2);pn=Oi([p("pont-avatar")],pn);var Am=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,qa=(e,t,r,n)=>{for(var o=n>1?void 0:n?Tm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Am(t,r,o),o};let Xn=class extends f{_onLoad(){this.dispatchEvent(new CustomEvent("pont-avatar:image-load",{bubbles:!0,composed:!0}))}_onError(){this.dispatchEvent(new CustomEvent("pont-avatar:image-error",{bubbles:!0,composed:!0}))}createRenderRoot(){return this}render(){return l`
127
127
  <img
128
128
  data-slot="avatar-image"
129
129
  src=${this.src??""}
@@ -131,7 +131,7 @@
131
131
  @load=${this._onLoad}
132
132
  @error=${this._onError}
133
133
  />
134
- `}};qa([a({type:String})],Jn.prototype,"src",2);qa([a({type:String})],Jn.prototype,"alt",2);Jn=qa([p("pont-avatar-image")],Jn);var Dm=Object.getOwnPropertyDescriptor,Lm=(e,t,r,n)=>{for(var o=n>1?void 0:n?Dm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Yl=class extends f{get _fallbackSlot(){return this.querySelector('[data-slot="avatar-fallback"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._fallbackSlot&&((r=this._fallbackSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<span data-slot="avatar-fallback"></span>`}};Yl=Lm([p("pont-avatar-fallback")],Yl);var Fm=Object.getOwnPropertyDescriptor,km=(e,t,r,n)=>{for(var o=n>1?void 0:n?Fm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Ql=class extends f{get _badgeSlot(){return this.querySelector('[data-slot="avatar-badge"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._badgeSlot&&((r=this._badgeSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<span data-slot="avatar-badge"></span>`}};Ql=km([p("pont-avatar-badge")],Ql);var Mm=Object.getOwnPropertyDescriptor,Nm=(e,t,r,n)=>{for(var o=n>1?void 0:n?Mm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Zl=class extends f{get _groupSlot(){return this.querySelector('[data-slot="avatar-group"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupSlot&&((r=this._groupSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="avatar-group"></div>`}};Zl=Nm([p("pont-avatar-group")],Zl);var Bm=Object.getOwnPropertyDescriptor,Um=(e,t,r,n)=>{for(var o=n>1?void 0:n?Bm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Jl=class extends f{get _groupCountSlot(){return this.querySelector('[data-slot="avatar-group-count"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupCountSlot&&((r=this._groupCountSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="avatar-group-count"></div>`}};Jl=Um([p("pont-avatar-group-count")],Jl);var jm=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,_n=(e,t,r,n)=>{for(var o=n>1?void 0:n?qm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jm(t,r,o),o};let bo=class extends f{constructor(){super(...arguments),this.variant="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="badge"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return this.href?l`
134
+ `}};qa([a({type:String})],Xn.prototype,"src",2);qa([a({type:String})],Xn.prototype,"alt",2);Xn=qa([p("pont-avatar-image")],Xn);var Dm=Object.getOwnPropertyDescriptor,Lm=(e,t,r,n)=>{for(var o=n>1?void 0:n?Dm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Yl=class extends f{get _fallbackSlot(){return this.querySelector('[data-slot="avatar-fallback"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._fallbackSlot&&((r=this._fallbackSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<span data-slot="avatar-fallback"></span>`}};Yl=Lm([p("pont-avatar-fallback")],Yl);var Fm=Object.getOwnPropertyDescriptor,km=(e,t,r,n)=>{for(var o=n>1?void 0:n?Fm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Ql=class extends f{get _badgeSlot(){return this.querySelector('[data-slot="avatar-badge"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._badgeSlot&&((r=this._badgeSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<span data-slot="avatar-badge"></span>`}};Ql=km([p("pont-avatar-badge")],Ql);var Mm=Object.getOwnPropertyDescriptor,Nm=(e,t,r,n)=>{for(var o=n>1?void 0:n?Mm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Zl=class extends f{get _groupSlot(){return this.querySelector('[data-slot="avatar-group"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupSlot&&((r=this._groupSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="avatar-group"></div>`}};Zl=Nm([p("pont-avatar-group")],Zl);var Bm=Object.getOwnPropertyDescriptor,Um=(e,t,r,n)=>{for(var o=n>1?void 0:n?Bm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Jl=class extends f{get _groupCountSlot(){return this.querySelector('[data-slot="avatar-group-count"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupCountSlot&&((r=this._groupCountSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="avatar-group-count"></div>`}};Jl=Um([p("pont-avatar-group-count")],Jl);var jm=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,wn=(e,t,r,n)=>{for(var o=n>1?void 0:n?qm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jm(t,r,o),o};let bo=class extends f{constructor(){super(...arguments),this.variant="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="badge"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return this.href?l`
135
135
  <a
136
136
  data-slot="badge"
137
137
  data-variant=${this.variant}
@@ -147,7 +147,7 @@
147
147
  aria-label=${this.ariaLabel??h}
148
148
  aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":h}
149
149
  ></span>
150
- `}};_n([a({type:String})],bo.prototype,"variant",2);_n([a({type:Boolean})],bo.prototype,"invalid",2);_n([a({type:String})],bo.prototype,"href",2);_n([a({type:String})],bo.prototype,"target",2);bo=_n([p("pont-badge")],bo);const Oo={list:["pont-flex pont-flex-wrap pont-gap-breadcrumb-list-space-gap-sm sm:pont-gap-breadcrumb-list-space-gap pont-items-center","pont-text-breadcrumb-list-font pont-font-breadcrumb-list-font-weight pont-text-breadcrumb-list-color-text pont-break-words"],item:["pont-inline-flex pont-gap-breadcrumb-item-space-gap pont-items-center"],link:["pont-transition-colors","hover:pont-text-breadcrumb-link-color-text-hover"],page:["pont-font-breadcrumb-page-font-weight pont-text-breadcrumb-page-color-text"],separator:["[&>svg]:pont-size-breadcrumb-separator-icon-space-size"],ellipsis:["pont-flex pont-justify-center pont-items-center","pont-size-breadcrumb-ellipsis-space-size","[&>svg]:pont-size-breadcrumb-ellipsis-icon-space-size"]};var zm=Object.getOwnPropertyDescriptor,Vm=(e,t,r,n)=>{for(var o=n>1?void 0:n?zm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Xl=class extends y{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return l`
150
+ `}};wn([a({type:String})],bo.prototype,"variant",2);wn([a({type:Boolean})],bo.prototype,"invalid",2);wn([a({type:String})],bo.prototype,"href",2);wn([a({type:String})],bo.prototype,"target",2);bo=wn([p("pont-badge")],bo);const Oo={list:["pont-flex pont-flex-wrap pont-gap-breadcrumb-list-space-gap-sm sm:pont-gap-breadcrumb-list-space-gap pont-items-center","pont-text-breadcrumb-list-font pont-font-breadcrumb-list-font-weight pont-text-breadcrumb-list-color-text pont-break-words"],item:["pont-inline-flex pont-gap-breadcrumb-item-space-gap pont-items-center"],link:["pont-transition-colors","hover:pont-text-breadcrumb-link-color-text-hover"],page:["pont-font-breadcrumb-page-font-weight pont-text-breadcrumb-page-color-text"],separator:["[&>svg]:pont-size-breadcrumb-separator-icon-space-size"],ellipsis:["pont-flex pont-justify-center pont-items-center","pont-size-breadcrumb-ellipsis-space-size","[&>svg]:pont-size-breadcrumb-ellipsis-icon-space-size"]};var zm=Object.getOwnPropertyDescriptor,Vm=(e,t,r,n)=>{for(var o=n>1?void 0:n?zm(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Xl=class extends y{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return l`
151
151
  <span
152
152
  ${St(e)}
153
153
  id="pont-bread-crumb-ellipsis"
@@ -256,7 +256,7 @@
256
256
  aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":h}
257
257
  @click=${this._handleClick}
258
258
  ></button>
259
- `}};Qe([a({type:String})],_e.prototype,"variant",2);Qe([a({type:String})],_e.prototype,"size",2);Qe([a({type:String})],_e.prototype,"type",2);Qe([a({type:Boolean})],_e.prototype,"disabled",2);Qe([a({type:Boolean})],_e.prototype,"invalid",2);Qe([a({type:String})],_e.prototype,"href",2);Qe([a({type:String})],_e.prototype,"target",2);Qe([a({attribute:!1,type:Function})],_e.prototype,"onClick",2);_e=Qe([p("pont-button")],_e);const ig=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function sg(e){const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function ag(e){const t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),r=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),n=e.getDate(),o=e.getFullYear();return`${t}, ${r} ${n}${sg(n)}, ${o}`}const id=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sd=Na,za=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return sd(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(m=>{const v=r==null?void 0:r[m],b=i==null?void 0:i[m];if(v===null)return null;const w=id(v)||id(b);return o[m][w]}),d=r&&Object.entries(r).reduce((m,v)=>{let[b,w]=v;return w===void 0||(m[b]=w),m},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((m,v)=>{let{class:b,className:w,..._}=v;return Object.entries(_).every(C=>{let[P,x]=C;return Array.isArray(x)?x.includes({...i,...d}[P]):{...i,...d}[P]===x})?[...m,b,w]:m},[]);return sd(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},nn=za(["pont-inline-flex pont-items-center pont-justify-center pont-shrink-0","pont-text-button-font-size pont-font-button-font-weight pont-whitespace-nowrap","pont-rounded-button-radius pont-outline-none","pont-transition-all","disabled:pont-opacity-button-opacity-disabled disabled:pont-pointer-events-none","focus-visible:pont-border-button-width-border-focus focus-visible:pont-border-button-color-border-focus focus-visible:pont-ring-button-width-ring-focus","aria-invalid:pont-border-button-width-border-invalid aria-invalid:pont-border-button-color-border-invalid","aria-invalid:pont-ring-button-width-ring-invalid aria-invalid:pont-ring-button-color-ring-invalid",'[&_svg]:pont-pointer-events-none [&_svg:not([class*="pont-size-"])]:pont-size-button-icon-space-size [&_svg]:pont-shrink-0'],{variants:{variant:{default:["pont-bg-button-default-color-bg pont-text-button-default-color-text","hover:pont-bg-button-default-color-bg-hover","focus-visible:pont-ring-button-default-color-ring-focus"],destructive:["pont-bg-button-destructive-color-bg pont-text-button-destructive-color-text","hover:pont-bg-button-destructive-color-bg-hover","focus-visible:pont-ring-button-destructive-color-ring-focus"],outline:["pont-bg-button-outline-color-bg","pont-border-button-outline-width-border pont-border-button-outline-color-border","hover:pont-bg-button-outline-color-bg-hover hover:pont-text-button-outline-color-text-hover","focus-visible:pont-ring-button-outline-color-ring-focus"],secondary:["pont-bg-button-secondary-color-bg pont-text-button-secondary-color-text","hover:pont-bg-button-secondary-color-bg-hover","focus-visible:pont-ring-button-secondary-color-ring-focus"],ghost:["hover:pont-bg-button-ghost-color-bg-hover hover:pont-text-button-ghost-color-text-hover","focus-visible:pont-ring-button-ghost-color-ring-focus"],link:["pont-text-button-link-color-text pont-underline-offset-4","hover:pont-underline","focus-visible:pont-ring-button-link-color-ring-focus"]},size:{default:["pont-h-button-space-h-default","pont-gap-button-space-gap-default pont-px-button-space-px-default pont-py-button-space-py-default","has-[>svg]:pont-px-button-space-px-default-has-icon"],sm:["pont-h-button-space-h-sm","pont-gap-button-space-gap-sm pont-px-button-space-px-sm","has-[>svg]:pont-px-button-space-px-sm-has-icon"],lg:["pont-h-button-space-h-lg","pont-gap-button-space-gap-lg pont-px-button-space-px-lg","has-[>svg]:pont-px-button-space-px-lg-has-icon"],icon:"pont-size-button-space-size-icon","icon-sm":"pont-size-button-space-size-icon-sm","icon-lg":"pont-size-button-space-size-icon-lg"}},defaultVariants:{variant:"default",size:"default"}}),q={host:["pont-contents"],root:["group/calendar","pont-relative","pont-p-calendar-space-p","pont-w-fit","pont-bg-calendar-color-bg"],months:["pont-flex pont-relative","pont-flex-col md:pont-flex-row pont-gap-calendar-months-space-gap"],nav:["pont-flex pont-absolute pont-top-0 pont-inset-x-0","pont-gap-calendar-nav-space-gap pont-justify-between pont-items-center","pont-w-full"],month:["pont-flex","pont-flex-col pont-gap-calendar-month-space-gap","pont-w-full"],buttonPrevious:[u(nn({variant:"ghost",size:"icon-sm"})),"pont-select-none","aria-disabled:pont-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[u(nn({variant:"ghost",size:"icon-sm"})),"pont-select-none","aria-disabled:pont-opacity-calendar-button-next-opacity-disabled"],chevron:["pont-size-calendar-chevron-space-size"],monthCaption:["pont-flex pont-justify-center pont-items-center","pont-px-calendar-month-caption-space-px","pont-w-full pont-h-calendar-month-caption-space-h"],captionLabel:["pont-text-calendar-caption-label-font pont-font-calendar-caption-label-font-weight","pont-select-none"],monthGrid:["pont-w-full","pont-border-collapse"],weekdays:["pont-flex"],weekday:["pont-flex-1","pont-text-calendar-weekday-font pont-font-calendar-weekday-font-weight pont-text-calendar-weekday-color-text","pont-rounded-calendar-weekday-radius","pont-select-none"],weeks:[""],week:["pont-flex","pont-mt-calendar-week-space-mt","pont-w-full"],day:{base:["group/day","pont-aspect-square pont-relative","pont-w-full pont-h-full","pont-p-calendar-day-space-p","pont-text-center","pont-select-none"],today:["pont-bg-calendar-day-today-color-bg","pont-rounded-calendar-day-radius"],selected:{common:["pont-bg-calendar-day-color-bg-selected"],single:["pont-rounded-calendar-day-radius"],range:{start:["pont-rounded-l-calendar-day-radius"],middle:["pont-rounded-none"],end:["pont-rounded-r-calendar-day-radius"]}},index:{first:["pont-rounded-l-calendar-day-radius"],last:["pont-rounded-r-calendar-day-radius"]}},dayButton:{base:[nn({variant:"ghost",size:"icon"}),"pont-aspect-square pont-flex","pont-flex-col pont-gap-calendar-day-button-space-gap","pont-size-auto pont-w-full pont-min-w-calendar-day-button-space-min-w","pont-text-calendar-day-button-font pont-font-calendar-day-button-font-weight","disabled:pont-text-calendar-day-button-color-text-disabled disabled:pont-opacity-calendar-day-button-opacity-disabled","data-[selected-single=true]:pont-text-calendar-day-button-color-text-single-selected data-[selected-single=true]:pont-bg-calendar-day-button-color-bg-single-selected","data-[range-start=true]:pont-text-calendar-day-button-color-text-range-start data-[range-start=true]:pont-bg-calendar-day-button-color-bg-range-start","data-[range-middle=true]:pont-text-calendar-day-button-color-text-range-middle data-[range-middle=true]:pont-bg-calendar-day-button-color-bg-range-middle","data-[range-end=true]:pont-text-calendar-day-button-color-text-range-end data-[range-end=true]:pont-bg-calendar-day-button-color-bg-range-end","[&>span]:pont-text-calendar-day-button-span-font [&>span]:pont-opacity-calendar-day-button-span-opacity","group-data-[focused=true]/day:pont-relative group-data-[focused=true]/day:pont-z-10","group-data-[focused=true]/day:pont-border-calendar-day-width-border-focus group-data-[focused=true]/day:pont-border-calendar-day-color-border-focus","group-data-[focused=true]/day:pont-ring-calendar-day-width-ring-focus group-data-[focused=true]/day:pont-ring-calendar-day-color-ring-focus"],outside:["pont-text-calendar-day-button-outside-color-text"],today:["pont-text-calendar-day-button-today-color-text","pont-bg-calendar-day-button-today-color-bg"]}};var lg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,wn=(e,t,r,n)=>{for(var o=n>1?void 0:n?dg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&lg(t,r,o),o};let yo=class extends f{constructor(){super(...arguments),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.mode="single",this._userClass="",this._userStyle=""}getDaysInMonth(e,t){return new Date(e,t+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,t){if(!t){const r=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);r.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=r,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=r,this.selectedEndDate=null):r>=this.selectedStartDate?this.selectedEndDate=r:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=r)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(e,t){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:t?e>this.selectedStartDate&&e<this.selectedEndDate:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._userClass=((e=this.getAttribute("class"))==null?void 0:e.replace(u(q.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=u(q.host)}firstUpdated(e){var r;const t=this.querySelector(".calendar");if(t&&(this._userClass&&(t.className=u("calendar",q.root,this._userClass)),this._userStyle)){const n=(r=t.getAttribute("style"))==null?void 0:r.trim(),o=this._userStyle.trim();t.setAttribute("style",[n,o].filter(Boolean).join("; "))}}render(){const e=this.currentDate.getFullYear(),t=this.currentDate.getMonth(),r=this.getDaysInMonth(e,t),n=new Date(e,t,1).getDay(),o=new Date(e,t,0).getDate(),i=[];for(let m=n-1;m>=0;m--)i.push({day:String(o-m),month:t-1,isOutside:!0});for(let m=1;m<=r;m++)i.push({day:String(m),month:t,isOutside:!1});const s=i.length%7;if(s!==0){const m=7-s;for(let v=1;v<=m;v++)i.push({day:String(v),month:t+1,isOutside:!0})}const d=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"}),c=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"});return l`
259
+ `}};Qe([a({type:String})],_e.prototype,"variant",2);Qe([a({type:String})],_e.prototype,"size",2);Qe([a({type:String})],_e.prototype,"type",2);Qe([a({type:Boolean})],_e.prototype,"disabled",2);Qe([a({type:Boolean})],_e.prototype,"invalid",2);Qe([a({type:String})],_e.prototype,"href",2);Qe([a({type:String})],_e.prototype,"target",2);Qe([a({attribute:!1,type:Function})],_e.prototype,"onClick",2);_e=Qe([p("pont-button")],_e);const ig=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function sg(e){const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function ag(e){const t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),r=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),n=e.getDate(),o=e.getFullYear();return`${t}, ${r} ${n}${sg(n)}, ${o}`}const id=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sd=Na,za=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return sd(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(m=>{const v=r==null?void 0:r[m],b=i==null?void 0:i[m];if(v===null)return null;const w=id(v)||id(b);return o[m][w]}),d=r&&Object.entries(r).reduce((m,v)=>{let[b,w]=v;return w===void 0||(m[b]=w),m},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((m,v)=>{let{class:b,className:w,..._}=v;return Object.entries(_).every(C=>{let[P,x]=C;return Array.isArray(x)?x.includes({...i,...d}[P]):{...i,...d}[P]===x})?[...m,b,w]:m},[]);return sd(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},nn=za(["pont-inline-flex pont-items-center pont-justify-center pont-shrink-0","pont-text-button-font-size pont-font-button-font-weight pont-whitespace-nowrap","pont-rounded-button-radius pont-outline-none","pont-transition-all","disabled:pont-opacity-button-opacity-disabled disabled:pont-pointer-events-none","focus-visible:pont-border-button-width-border-focus focus-visible:pont-border-button-color-border-focus focus-visible:pont-ring-button-width-ring-focus","aria-invalid:pont-border-button-width-border-invalid aria-invalid:pont-border-button-color-border-invalid","aria-invalid:pont-ring-button-width-ring-invalid aria-invalid:pont-ring-button-color-ring-invalid",'[&_svg]:pont-pointer-events-none [&_svg:not([class*="pont-size-"])]:pont-size-button-icon-space-size [&_svg]:pont-shrink-0'],{variants:{variant:{default:["pont-bg-button-default-color-bg pont-text-button-default-color-text","hover:pont-bg-button-default-color-bg-hover","focus-visible:pont-ring-button-default-color-ring-focus"],destructive:["pont-bg-button-destructive-color-bg pont-text-button-destructive-color-text","hover:pont-bg-button-destructive-color-bg-hover","focus-visible:pont-ring-button-destructive-color-ring-focus"],outline:["pont-bg-button-outline-color-bg","pont-border-button-outline-width-border pont-border-button-outline-color-border","hover:pont-bg-button-outline-color-bg-hover hover:pont-text-button-outline-color-text-hover","focus-visible:pont-ring-button-outline-color-ring-focus"],secondary:["pont-bg-button-secondary-color-bg pont-text-button-secondary-color-text","hover:pont-bg-button-secondary-color-bg-hover","focus-visible:pont-ring-button-secondary-color-ring-focus"],ghost:["hover:pont-bg-button-ghost-color-bg-hover hover:pont-text-button-ghost-color-text-hover","focus-visible:pont-ring-button-ghost-color-ring-focus"],link:["pont-text-button-link-color-text pont-underline-offset-4","hover:pont-underline","focus-visible:pont-ring-button-link-color-ring-focus"]},size:{default:["pont-h-button-space-h-default","pont-gap-button-space-gap-default pont-px-button-space-px-default pont-py-button-space-py-default","has-[>svg]:pont-px-button-space-px-default-has-icon"],sm:["pont-h-button-space-h-sm","pont-gap-button-space-gap-sm pont-px-button-space-px-sm","has-[>svg]:pont-px-button-space-px-sm-has-icon"],lg:["pont-h-button-space-h-lg","pont-gap-button-space-gap-lg pont-px-button-space-px-lg","has-[>svg]:pont-px-button-space-px-lg-has-icon"],icon:"pont-size-button-space-size-icon","icon-sm":"pont-size-button-space-size-icon-sm","icon-lg":"pont-size-button-space-size-icon-lg"}},defaultVariants:{variant:"default",size:"default"}}),q={host:["pont-contents"],root:["group/calendar","pont-relative","pont-p-calendar-space-p","pont-w-fit","pont-bg-calendar-color-bg"],months:["pont-flex pont-relative","pont-flex-col md:pont-flex-row pont-gap-calendar-months-space-gap"],nav:["pont-flex pont-absolute pont-top-0 pont-inset-x-0","pont-gap-calendar-nav-space-gap pont-justify-between pont-items-center","pont-w-full"],month:["pont-flex","pont-flex-col pont-gap-calendar-month-space-gap","pont-w-full"],buttonPrevious:[u(nn({variant:"ghost",size:"icon-sm"})),"pont-select-none","aria-disabled:pont-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[u(nn({variant:"ghost",size:"icon-sm"})),"pont-select-none","aria-disabled:pont-opacity-calendar-button-next-opacity-disabled"],chevron:["pont-size-calendar-chevron-space-size"],monthCaption:["pont-flex pont-justify-center pont-items-center","pont-px-calendar-month-caption-space-px","pont-w-full pont-h-calendar-month-caption-space-h"],captionLabel:["pont-text-calendar-caption-label-font pont-font-calendar-caption-label-font-weight","pont-select-none"],monthGrid:["pont-w-full","pont-border-collapse"],weekdays:["pont-flex"],weekday:["pont-flex-1","pont-text-calendar-weekday-font pont-font-calendar-weekday-font-weight pont-text-calendar-weekday-color-text","pont-rounded-calendar-weekday-radius","pont-select-none"],weeks:[""],week:["pont-flex","pont-mt-calendar-week-space-mt","pont-w-full"],day:{base:["group/day","pont-aspect-square pont-relative","pont-w-full pont-h-full","pont-p-calendar-day-space-p","pont-text-center","pont-select-none"],today:["pont-bg-calendar-day-today-color-bg","pont-rounded-calendar-day-radius"],selected:{common:["pont-bg-calendar-day-color-bg-selected"],single:["pont-rounded-calendar-day-radius"],range:{start:["pont-rounded-l-calendar-day-radius"],middle:["pont-rounded-none"],end:["pont-rounded-r-calendar-day-radius"]}},index:{first:["pont-rounded-l-calendar-day-radius"],last:["pont-rounded-r-calendar-day-radius"]}},dayButton:{base:[nn({variant:"ghost",size:"icon"}),"pont-aspect-square pont-flex","pont-flex-col pont-gap-calendar-day-button-space-gap","pont-size-auto pont-w-full pont-min-w-calendar-day-button-space-min-w","pont-text-calendar-day-button-font pont-font-calendar-day-button-font-weight","disabled:pont-text-calendar-day-button-color-text-disabled disabled:pont-opacity-calendar-day-button-opacity-disabled","data-[selected-single=true]:pont-text-calendar-day-button-color-text-single-selected data-[selected-single=true]:pont-bg-calendar-day-button-color-bg-single-selected","data-[range-start=true]:pont-text-calendar-day-button-color-text-range-start data-[range-start=true]:pont-bg-calendar-day-button-color-bg-range-start","data-[range-middle=true]:pont-text-calendar-day-button-color-text-range-middle data-[range-middle=true]:pont-bg-calendar-day-button-color-bg-range-middle","data-[range-end=true]:pont-text-calendar-day-button-color-text-range-end data-[range-end=true]:pont-bg-calendar-day-button-color-bg-range-end","[&>span]:pont-text-calendar-day-button-span-font [&>span]:pont-opacity-calendar-day-button-span-opacity","group-data-[focused=true]/day:pont-relative group-data-[focused=true]/day:pont-z-10","group-data-[focused=true]/day:pont-border-calendar-day-width-border-focus group-data-[focused=true]/day:pont-border-calendar-day-color-border-focus","group-data-[focused=true]/day:pont-ring-calendar-day-width-ring-focus group-data-[focused=true]/day:pont-ring-calendar-day-color-ring-focus"],outside:["pont-text-calendar-day-button-outside-color-text"],today:["pont-text-calendar-day-button-today-color-text","pont-bg-calendar-day-button-today-color-bg"]}};var lg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,$n=(e,t,r,n)=>{for(var o=n>1?void 0:n?dg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&lg(t,r,o),o};let yo=class extends f{constructor(){super(...arguments),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.mode="single",this._userClass="",this._userStyle=""}getDaysInMonth(e,t){return new Date(e,t+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,t){if(!t){const r=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);r.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=r,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=r,this.selectedEndDate=null):r>=this.selectedStartDate?this.selectedEndDate=r:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=r)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(e,t){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:t?e>this.selectedStartDate&&e<this.selectedEndDate:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._userClass=((e=this.getAttribute("class"))==null?void 0:e.replace(u(q.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=u(q.host)}firstUpdated(e){var r;const t=this.querySelector(".calendar");if(t&&(this._userClass&&(t.className=u("calendar",q.root,this._userClass)),this._userStyle)){const n=(r=t.getAttribute("style"))==null?void 0:r.trim(),o=this._userStyle.trim();t.setAttribute("style",[n,o].filter(Boolean).join("; "))}}render(){const e=this.currentDate.getFullYear(),t=this.currentDate.getMonth(),r=this.getDaysInMonth(e,t),n=new Date(e,t,1).getDay(),o=new Date(e,t,0).getDate(),i=[];for(let m=n-1;m>=0;m--)i.push({day:String(o-m),month:t-1,isOutside:!0});for(let m=1;m<=r;m++)i.push({day:String(m),month:t,isOutside:!1});const s=i.length%7;if(s!==0){const m=7-s;for(let v=1;v<=m;v++)i.push({day:String(v),month:t+1,isOutside:!0})}const d=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"}),c=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"});return l`
260
260
  <div
261
261
  class=${u("calendar",q.root,this._userClass)}
262
262
  data-slot="calendar"
@@ -385,7 +385,7 @@
385
385
  </div>
386
386
  </div>
387
387
  </div>
388
- `}};wn([a({type:Object})],yo.prototype,"currentDate",2);wn([a({type:Object})],yo.prototype,"selectedStartDate",2);wn([a({type:Object})],yo.prototype,"selectedEndDate",2);wn([a({type:String})],yo.prototype,"mode",2);yo=wn([p("pont-calendar")],yo);var cg=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,Mp=(e,t,r,n)=>{for(var o=n>1?void 0:n?pg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&cg(t,r,o),o};let Vs=class extends f{constructor(){super(...arguments),this.size="default"}get _rootSlot(){return this.querySelector('[data-slot="card"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="card" data-size=${this.size}></div>`}};Mp([a({type:String})],Vs.prototype,"size",2);Vs=Mp([p("pont-card")],Vs);var hg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,Np=(e,t,r,n)=>{for(var o=n>1?void 0:n?ug(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&hg(t,r,o),o};let Hs=class extends f{get _headerSlot(){return this.querySelector('[data-slot="card-header"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._headerSlot&&((r=this._headerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`
388
+ `}};$n([a({type:Object})],yo.prototype,"currentDate",2);$n([a({type:Object})],yo.prototype,"selectedStartDate",2);$n([a({type:Object})],yo.prototype,"selectedEndDate",2);$n([a({type:String})],yo.prototype,"mode",2);yo=$n([p("pont-calendar")],yo);var cg=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,Mp=(e,t,r,n)=>{for(var o=n>1?void 0:n?pg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&cg(t,r,o),o};let Vs=class extends f{constructor(){super(...arguments),this.size="default"}get _rootSlot(){return this.querySelector('[data-slot="card"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="card" data-size=${this.size}></div>`}};Mp([a({type:String})],Vs.prototype,"size",2);Vs=Mp([p("pont-card")],Vs);var hg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,Np=(e,t,r,n)=>{for(var o=n>1?void 0:n?ug(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&hg(t,r,o),o};let Hs=class extends f{get _headerSlot(){return this.querySelector('[data-slot="card-header"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._headerSlot&&((r=this._headerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`
389
389
  <div data-slot="card-header" ?data-border=${this.border}></div>
390
390
  `}};Np([a({type:Boolean})],Hs.prototype,"border",2);Hs=Np([p("pont-card-header")],Hs);var mg=Object.getOwnPropertyDescriptor,gg=(e,t,r,n)=>{for(var o=n>1?void 0:n?mg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let ad=class extends f{get _titleSlot(){return this.querySelector('[data-slot="card-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._titleSlot&&((r=this._titleSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="card-title"></div>`}};ad=gg([p("pont-card-title")],ad);var fg=Object.getOwnPropertyDescriptor,vg=(e,t,r,n)=>{for(var o=n>1?void 0:n?fg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let ld=class extends f{get _descriptionSlot(){return this.querySelector('[data-slot="card-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._descriptionSlot&&((r=this._descriptionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="card-description"></div>`}};ld=vg([p("pont-card-description")],ld);var bg=Object.getOwnPropertyDescriptor,yg=(e,t,r,n)=>{for(var o=n>1?void 0:n?bg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let dd=class extends f{get _actionSlot(){return this.querySelector('[data-slot="card-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._actionSlot&&((r=this._actionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="card-action"></div>`}};dd=yg([p("pont-card-action")],dd);var _g=Object.getOwnPropertyDescriptor,wg=(e,t,r,n)=>{for(var o=n>1?void 0:n?_g(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let cd=class extends f{get _contentSlot(){return this.querySelector('[data-slot="card-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<div data-slot="card-content"></div>`}};cd=wg([p("pont-card-content")],cd);var $g=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,Bp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Pg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&$g(t,r,o),o};let Gs=class extends f{get _footerSlot(){return this.querySelector('[data-slot="card-footer"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._footerSlot&&((r=this._footerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`
391
391
  <div data-slot="card-footer" ?data-border=${this.border}></div>
@@ -554,7 +554,7 @@
554
554
  </div>
555
555
  </div>
556
556
  </div>
557
- `}};Ro([a({type:Number})],Ar.prototype,"currentIndex",2);Ro([a({type:Array})],Ar.prototype,"items",2);Ro([a({type:String})],Ar.prototype,"orientation",2);Ro([a({type:Boolean})],Ar.prototype,"size",2);Ro([yn(".slides")],Ar.prototype,"slides",2);Ar=Ro([p("pont-carousel")],Ar);var Fg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Ee=(e,t,r,n)=>{for(var o=n>1?void 0:n?kg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Fg(t,r,o),o};let re=class extends f{constructor(){super(...arguments),this.value="on"}createRenderRoot(){return this}_isControlled(){return this.checked!==void 0}_getState(){return this._checked?"checked":"unchecked"}updated(e){e.has("checked")&&this._isControlled()&&(this._checked=this.checked)}firstUpdated(e){this._checked=this.defaultChecked||this.checked}_handleClick(){if(this.disabled)return;const e=!this._checked;this._isControlled()||(this._checked=e),this.dispatchEvent(new CustomEvent("pont-checkbox:checked-change",{detail:{checked:e},bubbles:!0,composed:!0})),this.onCheckedChange!==void 0&&this.onCheckedChange(e)}_renderIndicator(){return this._checked?l`
557
+ `}};Ro([a({type:Number})],Ar.prototype,"currentIndex",2);Ro([a({type:Array})],Ar.prototype,"items",2);Ro([a({type:String})],Ar.prototype,"orientation",2);Ro([a({type:Boolean})],Ar.prototype,"size",2);Ro([_n(".slides")],Ar.prototype,"slides",2);Ar=Ro([p("pont-carousel")],Ar);var Fg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Ee=(e,t,r,n)=>{for(var o=n>1?void 0:n?kg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Fg(t,r,o),o};let re=class extends f{constructor(){super(...arguments),this.value="on"}createRenderRoot(){return this}_isControlled(){return this.checked!==void 0}_getState(){return this._checked?"checked":"unchecked"}updated(e){e.has("checked")&&this._isControlled()&&(this._checked=this.checked)}firstUpdated(e){this._checked=this.defaultChecked||this.checked}_handleClick(){if(this.disabled)return;const e=!this._checked;this._isControlled()||(this._checked=e),this.dispatchEvent(new CustomEvent("pont-checkbox:checked-change",{detail:{checked:e},bubbles:!0,composed:!0})),this.onCheckedChange!==void 0&&this.onCheckedChange(e)}_renderIndicator(){return this._checked?l`
558
558
  <span
559
559
  data-slot="checkbox-indicator"
560
560
  data-state=${this._getState()}
@@ -592,7 +592,7 @@
592
592
  </button>
593
593
 
594
594
  ${this._renderInput()}
595
- `}};Ee([a({attribute:"default-checked",type:Boolean})],re.prototype,"defaultChecked",2);Ee([a({attribute:!0,type:Boolean})],re.prototype,"checked",2);Ee([a({attribute:!1,type:Function})],re.prototype,"onCheckedChange",2);Ee([a({type:Boolean})],re.prototype,"disabled",2);Ee([a({type:Boolean})],re.prototype,"required",2);Ee([a({type:Boolean})],re.prototype,"invalid",2);Ee([a({type:String})],re.prototype,"name",2);Ee([a({type:String})],re.prototype,"value",2);Ee([g()],re.prototype,"_checked",2);re=Ee([p("pont-checkbox")],re);var Mg=Object.getOwnPropertyDescriptor,Ng=(e,t,r,n)=>{for(var o=n>1?void 0:n?Mg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let hd=class extends y{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let e=this.parentElement;for(;e&&!(e instanceof Xn);)e=e.parentElement;return e}onTrigger(){const e=this._collapsible;e&&(e.open=!e.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){const e=this.getFilteredAttributes();return l`
595
+ `}};Ee([a({attribute:"default-checked",type:Boolean})],re.prototype,"defaultChecked",2);Ee([a({attribute:!0,type:Boolean})],re.prototype,"checked",2);Ee([a({attribute:!1,type:Function})],re.prototype,"onCheckedChange",2);Ee([a({type:Boolean})],re.prototype,"disabled",2);Ee([a({type:Boolean})],re.prototype,"required",2);Ee([a({type:Boolean})],re.prototype,"invalid",2);Ee([a({type:String})],re.prototype,"name",2);Ee([a({type:String})],re.prototype,"value",2);Ee([g()],re.prototype,"_checked",2);re=Ee([p("pont-checkbox")],re);var Mg=Object.getOwnPropertyDescriptor,Ng=(e,t,r,n)=>{for(var o=n>1?void 0:n?Mg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let hd=class extends y{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let e=this.parentElement;for(;e&&!(e instanceof ti);)e=e.parentElement;return e}onTrigger(){const e=this._collapsible;e&&(e.open=!e.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){const e=this.getFilteredAttributes();return l`
596
596
  <div
597
597
  @click=${this.onTrigger}
598
598
  ${St(e)}
@@ -605,13 +605,13 @@
605
605
  style="display: none;--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
606
606
  part="collapsible-content"
607
607
  ></div>
608
- `}};ud=Ug([p("pont-collapsible-content")],ud);var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,Up=(e,t,r,n)=>{for(var o=n>1?void 0:n?qg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jg(t,r,o),o};let Xn=class extends y{constructor(){super(...arguments),this.open=!1,this._clickHandler=()=>{var e;(e=this.querySelector("pont-collapsible-content"))==null||e.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}connectedCallback(){super.connectedCallback(),this.addEventListener("click-collapsible-event",this._clickHandler)}disconnectedCallback(){this.removeEventListener("click-collapsible-event",this._clickHandler),super.disconnectedCallback()}render(){const e=this.getFilteredAttributes();return l`
608
+ `}};ud=Ug([p("pont-collapsible-content")],ud);var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,Up=(e,t,r,n)=>{for(var o=n>1?void 0:n?qg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jg(t,r,o),o};let ti=class extends y{constructor(){super(...arguments),this.open=!1,this._clickHandler=()=>{var e;(e=this.querySelector("pont-collapsible-content"))==null||e.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}connectedCallback(){super.connectedCallback(),this.addEventListener("click-collapsible-event",this._clickHandler)}disconnectedCallback(){this.removeEventListener("click-collapsible-event",this._clickHandler),super.disconnectedCallback()}render(){const e=this.getFilteredAttributes();return l`
609
609
  <div
610
610
  ${St(e)}
611
611
  class="${u("",this.className)}"
612
612
  part="collapsible"
613
613
  ></div>
614
- `}};Up([a({type:Boolean})],Xn.prototype,"open",2);Xn=Up([p("pont-collapsible")],Xn);const Io={empty:["pont-py-combo-box-empty-space-py","pont-text-center","pont-text-combo-box-empty-font"],group:{base:["pont-pointer-events-none","pont-invisible","pont-absolute","pont-z-50","pont-mt-combo-box-group-space-mt","pont-max-h-combo-box-group-space-max-h","pont-w-combo-box-group-space-w","pont-origin-top","pont-scale-y-0","pont-transform","pont-overflow-hidden","pont-overflow-y-auto","pont-rounded-combo-box-group-radius","pont-border-combo-box-group-width-border","pont-border-combo-box-group-color-border","pont-bg-combo-box-group-color-bg","pont-px-combo-box-group-space-px","pont-py-combo-box-group-space-py","pont-opacity-0","pont-shadow-combo-box-group-shadow","pont-transition-opacity","pont-duration-combo-box-group-motion-duration","pont-ease-combo-box-group-motion-fn","[&::-webkit-scrollbar]:pont-w-0"]},input:["pont-flex","pont-h-combo-box-input-space-h","pont-w-combo-box-input-space-w","pont-rounded-combo-box-input-radius","pont-border-0","pont-bg-combo-box-input-color-bg","pont-px-combo-box-input-space-px","pont-py-combo-box-input-space-py","pont-text-combo-box-input-font","pont-text-combo-box-input-color-text","pont-shadow-none","placeholder:pont-text-combo-box-input-color-text-placeholder","focus:pont-outline-none","focus-visible:pont-ring-0"],trigger:{base:["pont-z-20","pont-flex","pont-h-combo-box-trigger-space-h","pont-flex-row-reverse","pont-items-center","pont-justify-between","pont-rounded-combo-box-trigger-radius","pont-border-combo-box-trigger-width-border","pont-border-combo-box-trigger-color-border","pont-bg-combo-box-trigger-color-bg","pont-px-combo-box-trigger-space-px","pont-py-combo-box-trigger-space-py","pont-text-combo-box-trigger-font","focus:pont-outline-none","focus:pont-ring-combo-box-trigger-width-ring-focus","focus:pont-ring-combo-box-trigger-color-ring-focus","focus:pont-ring-offset-combo-box-trigger-width-ring-offset-focus","disabled:pont-cursor-not-allowed","disabled:pont-opacity-combo-box-trigger-opacity-disabled"]},value:["pont-line-clamp-1","pont-flex","pont-w-combo-box-value-space-w"],item:{base:["pont-flex","pont-w-combo-box-item-space-w","pont-cursor-pointer","pont-flex-row-reverse","pont-items-center","pont-justify-between","pont-rounded-combo-box-item-radius","pont-px-combo-box-item-space-px","pont-py-combo-box-item-space-py","hover:pont-bg-accent","focus:pont-bg-combo-box-item-color-bg-hover","focus:pont-outline-none"]}};var zg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,jp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Vg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&zg(t,r,o),o};let Ks=class extends y{constructor(){super(...arguments),this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("pont-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)}}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Tt);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",t=>{t.stopPropagation()})}render(){return l`
614
+ `}};Up([a({type:Boolean})],ti.prototype,"open",2);ti=Up([p("pont-collapsible")],ti);const Io={empty:["pont-py-combo-box-empty-space-py","pont-text-center","pont-text-combo-box-empty-font"],group:{base:["pont-pointer-events-none","pont-invisible","pont-absolute","pont-z-50","pont-mt-combo-box-group-space-mt","pont-max-h-combo-box-group-space-max-h","pont-w-combo-box-group-space-w","pont-origin-top","pont-scale-y-0","pont-transform","pont-overflow-hidden","pont-overflow-y-auto","pont-rounded-combo-box-group-radius","pont-border-combo-box-group-width-border","pont-border-combo-box-group-color-border","pont-bg-combo-box-group-color-bg","pont-px-combo-box-group-space-px","pont-py-combo-box-group-space-py","pont-opacity-0","pont-shadow-combo-box-group-shadow","pont-transition-opacity","pont-duration-combo-box-group-motion-duration","pont-ease-combo-box-group-motion-fn","[&::-webkit-scrollbar]:pont-w-0"]},input:["pont-flex","pont-h-combo-box-input-space-h","pont-w-combo-box-input-space-w","pont-rounded-combo-box-input-radius","pont-border-0","pont-bg-combo-box-input-color-bg","pont-px-combo-box-input-space-px","pont-py-combo-box-input-space-py","pont-text-combo-box-input-font","pont-text-combo-box-input-color-text","pont-shadow-none","placeholder:pont-text-combo-box-input-color-text-placeholder","focus:pont-outline-none","focus-visible:pont-ring-0"],trigger:{base:["pont-z-20","pont-flex","pont-h-combo-box-trigger-space-h","pont-flex-row-reverse","pont-items-center","pont-justify-between","pont-rounded-combo-box-trigger-radius","pont-border-combo-box-trigger-width-border","pont-border-combo-box-trigger-color-border","pont-bg-combo-box-trigger-color-bg","pont-px-combo-box-trigger-space-px","pont-py-combo-box-trigger-space-py","pont-text-combo-box-trigger-font","focus:pont-outline-none","focus:pont-ring-combo-box-trigger-width-ring-focus","focus:pont-ring-combo-box-trigger-color-ring-focus","focus:pont-ring-offset-combo-box-trigger-width-ring-offset-focus","disabled:pont-cursor-not-allowed","disabled:pont-opacity-combo-box-trigger-opacity-disabled"]},value:["pont-line-clamp-1","pont-flex","pont-w-combo-box-value-space-w"],item:{base:["pont-flex","pont-w-combo-box-item-space-w","pont-cursor-pointer","pont-flex-row-reverse","pont-items-center","pont-justify-between","pont-rounded-combo-box-item-radius","pont-px-combo-box-item-space-px","pont-py-combo-box-item-space-py","hover:pont-bg-accent","focus:pont-bg-combo-box-item-color-bg-hover","focus:pont-outline-none"]}};var zg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,jp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Vg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&zg(t,r,o),o};let Ks=class extends y{constructor(){super(...arguments),this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("pont-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)}}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Tt);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",t=>{t.stopPropagation()})}render(){return l`
615
615
  <button
616
616
  type="button"
617
617
  part="combo-box-trigger-button"
@@ -624,21 +624,21 @@
624
624
  >
625
625
  ${Cg()}
626
626
  </button>
627
- `}};jp([yn("button")],Ks.prototype,"buttonElement",2);Ks=jp([p("pont-combo-box-trigger")],Ks);var Hg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,qp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Gg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Hg(t,r,o),o};let Ws=class extends f{constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("pont-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Tt);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",t=>{t.stopPropagation()})}createRenderRoot(){return this}render(){return l`
627
+ `}};jp([_n("button")],Ks.prototype,"buttonElement",2);Ks=jp([p("pont-combo-box-trigger")],Ks);var Hg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,qp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Gg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Hg(t,r,o),o};let Ws=class extends f{constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("pont-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Tt);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",t=>{t.stopPropagation()})}createRenderRoot(){return this}render(){return l`
628
628
  <span
629
629
  part="combo-box-value"
630
630
  class="${u(Io.value,this.className)}"
631
631
  @click=${this.handleClick}
632
632
  >${this.renderLabel()}</span
633
633
  >
634
- `}};qp([a({type:String})],Ws.prototype,"placeholder",2);Ws=qp([p("pont-combo-box-value")],Ws);var Kg=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,Va=(e,t,r,n)=>{for(var o=n>1?void 0:n?Wg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Kg(t,r,o),o};let ti=class extends f{constructor(){super(...arguments),this.orientation="horizontal"}createRenderRoot(){return this}render(){return l`
634
+ `}};qp([a({type:String})],Ws.prototype,"placeholder",2);Ws=qp([p("pont-combo-box-value")],Ws);var Kg=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,Va=(e,t,r,n)=>{for(var o=n>1?void 0:n?Wg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Kg(t,r,o),o};let ei=class extends f{constructor(){super(...arguments),this.orientation="horizontal"}createRenderRoot(){return this}render(){return l`
635
635
  <div
636
636
  data-slot="separator"
637
637
  data-orientation=${this.orientation}
638
638
  role=${this.decorative?"none":"separator"}
639
639
  aria-orientation=${this.decorative?h:this.orientation}
640
640
  ></div>
641
- `}};Va([a({type:String})],ti.prototype,"orientation",2);Va([a({type:Boolean})],ti.prototype,"decorative",2);ti=Va([p("pont-separator")],ti);var Yg=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,$n=(e,t,r,n)=>{for(var o=n>1?void 0:n?Qg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Yg(t,r,o),o};let Tr=class extends y{constructor(){super(...arguments),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=e=>{var t,r;e.detail.isOpen!==((t=this._comboBox)==null?void 0:t.isOpen)&&this.requestUpdate(),e.detail.isOpen&&((r=this._comboBox)!=null&&r.selectedValue)&&(this.focusedIndex=this.comboBoxItems.findIndex(n=>{var o;return n.getAttribute("value")===((o=this._comboBox)==null?void 0:o.selectedValue)}),this.requestUpdate())},this.handleKeyDown=e=>{var r;if(!((r=this._comboBox)!=null&&r.isOpen))return;e.preventDefault();const t=this.filteredItems;switch(e.key){case"ArrowDown":if(t.length===0)return;this.focusedIndex=(this.focusedIndex+1)%t.length;break;case"ArrowUp":if(t.length===0)return;this.focusedIndex=(this.focusedIndex-1+t.length)%t.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<t.length){const n=t[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:n}}))}break}},this.handleMouseOver=(e,t)=>{e.preventDefault(),this.focusedIndex=t},this.onSelectedValue=(e,t)=>{this.focusedIndex=t,this.selectedValue=e},this.boundHandleComboBoxStateChanged=this.handleComboBoxStateChanged.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this)}get comboBoxItems(){return Array.from(this.querySelectorAll('[data-managed="true"][tag="pont-combo-box-item"], pont-combo-box-item')).filter(e=>e.hasAttribute("value"))}get comboBoxInput(){return this.querySelector("pont-combo-box-input")}get comboBoxEmpty(){return this.querySelector("pont-combo-box-empty")}get hasResults(){return!this.filteredItems.length}get filteredItems(){var t;const e=(t=this.searchKey)==null?void 0:t.toLowerCase();return this.comboBoxItems.filter(r=>{var n;return(n=r.getAttribute("value"))==null?void 0:n.toLowerCase().includes(e)})}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Tt);)e=e.parentElement;return e}handleComboBoxStateChanged(e){var o;const{isOpen:t,targetComboBoxId:r}=e.detail;if(this.isOpen=t,r!==((o=this._comboBox)==null?void 0:o.uuid))return;const n=this.renderRoot.querySelector('[part="select-group"]');n&&(t?(clearTimeout(n._hideTimeout),n.classList.remove("pont-scale-y-0","pont-opacity-0"),n.classList.add("pont-scale-y-100","pont-opacity-100"),n.classList.remove("pont-invisible","pont-pointer-events-none"),n.classList.add("pont-visible","pont-pointer-events-auto")):(n.classList.remove("pont-opacity-100"),n.classList.add("pont-opacity-0"),n._hideTimeout=setTimeout(()=>{n.classList.remove("pont-visible","pont-pointer-events-auto","pont-scale-y-100"),n.classList.add("pont-invisible","pont-pointer-events-none","pont-scale-y-0")},300)))}moveChildren(){const e=this.renderRoot.querySelector('[part="select-group"]');if(!e)return;const t={top:e.querySelector("#topSlot"),empty:e.querySelector("#emptySlot"),list:e.querySelector("#listSlot")},r={"pont-combo-box-input":"top","pont-combo-box-empty":"empty","pont-combo-box-item":"list"};Array.from(this.children).forEach(n=>{var s;const o=n.tagName.toLowerCase(),i=r[o];i&&(n.setAttribute("data-managed","true"),(s=t[i])==null||s.appendChild(n))})}renderFilteredItems(){return this.comboBoxItems.forEach(e=>e.setAttribute("hidden","true")),this.filteredItems.map((e,t)=>{var i;const r=e.getAttribute("value")??"",n=t===this.focusedIndex,o=r.toLowerCase()===((i=this._comboBox)==null?void 0:i.selectedValue.toLowerCase());return l`
641
+ `}};Va([a({type:String})],ei.prototype,"orientation",2);Va([a({type:Boolean})],ei.prototype,"decorative",2);ei=Va([p("pont-separator")],ei);var Yg=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,Pn=(e,t,r,n)=>{for(var o=n>1?void 0:n?Qg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Yg(t,r,o),o};let Tr=class extends y{constructor(){super(...arguments),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=e=>{var t,r;e.detail.isOpen!==((t=this._comboBox)==null?void 0:t.isOpen)&&this.requestUpdate(),e.detail.isOpen&&((r=this._comboBox)!=null&&r.selectedValue)&&(this.focusedIndex=this.comboBoxItems.findIndex(n=>{var o;return n.getAttribute("value")===((o=this._comboBox)==null?void 0:o.selectedValue)}),this.requestUpdate())},this.handleKeyDown=e=>{var r;if(!((r=this._comboBox)!=null&&r.isOpen))return;e.preventDefault();const t=this.filteredItems;switch(e.key){case"ArrowDown":if(t.length===0)return;this.focusedIndex=(this.focusedIndex+1)%t.length;break;case"ArrowUp":if(t.length===0)return;this.focusedIndex=(this.focusedIndex-1+t.length)%t.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<t.length){const n=t[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:n}}))}break}},this.handleMouseOver=(e,t)=>{e.preventDefault(),this.focusedIndex=t},this.onSelectedValue=(e,t)=>{this.focusedIndex=t,this.selectedValue=e},this.boundHandleComboBoxStateChanged=this.handleComboBoxStateChanged.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this)}get comboBoxItems(){return Array.from(this.querySelectorAll('[data-managed="true"][tag="pont-combo-box-item"], pont-combo-box-item')).filter(e=>e.hasAttribute("value"))}get comboBoxInput(){return this.querySelector("pont-combo-box-input")}get comboBoxEmpty(){return this.querySelector("pont-combo-box-empty")}get hasResults(){return!this.filteredItems.length}get filteredItems(){var t;const e=(t=this.searchKey)==null?void 0:t.toLowerCase();return this.comboBoxItems.filter(r=>{var n;return(n=r.getAttribute("value"))==null?void 0:n.toLowerCase().includes(e)})}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Tt);)e=e.parentElement;return e}handleComboBoxStateChanged(e){var o;const{isOpen:t,targetComboBoxId:r}=e.detail;if(this.isOpen=t,r!==((o=this._comboBox)==null?void 0:o.uuid))return;const n=this.renderRoot.querySelector('[part="select-group"]');n&&(t?(clearTimeout(n._hideTimeout),n.classList.remove("pont-scale-y-0","pont-opacity-0"),n.classList.add("pont-scale-y-100","pont-opacity-100"),n.classList.remove("pont-invisible","pont-pointer-events-none"),n.classList.add("pont-visible","pont-pointer-events-auto")):(n.classList.remove("pont-opacity-100"),n.classList.add("pont-opacity-0"),n._hideTimeout=setTimeout(()=>{n.classList.remove("pont-visible","pont-pointer-events-auto","pont-scale-y-100"),n.classList.add("pont-invisible","pont-pointer-events-none","pont-scale-y-0")},300)))}moveChildren(){const e=this.renderRoot.querySelector('[part="select-group"]');if(!e)return;const t={top:e.querySelector("#topSlot"),empty:e.querySelector("#emptySlot"),list:e.querySelector("#listSlot")},r={"pont-combo-box-input":"top","pont-combo-box-empty":"empty","pont-combo-box-item":"list"};Array.from(this.children).forEach(n=>{var s;const o=n.tagName.toLowerCase(),i=r[o];i&&(n.setAttribute("data-managed","true"),(s=t[i])==null||s.appendChild(n))})}renderFilteredItems(){return this.comboBoxItems.forEach(e=>e.setAttribute("hidden","true")),this.filteredItems.map((e,t)=>{var i;const r=e.getAttribute("value")??"",n=t===this.focusedIndex,o=r.toLowerCase()===((i=this._comboBox)==null?void 0:i.selectedValue.toLowerCase());return l`
642
642
  <pont-combo-box-item
643
643
  @mouseover="${s=>this.handleMouseOver(s,t)}"
644
644
  .value=${r}
@@ -665,7 +665,7 @@
665
665
  ${this.renderFilteredItems()}
666
666
  </div>
667
667
  </div>
668
- `}};$n([g()],Tr.prototype,"searchKey",2);$n([g()],Tr.prototype,"focusedIndex",2);$n([g()],Tr.prototype,"selectedValue",2);$n([g()],Tr.prototype,"isOpen",2);Tr=$n([p("pont-combo-box-group")],Tr);var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,se=(e,t,r,n)=>{for(var o=n>1?void 0:n?Jg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Zg(t,r,o),o};let Vt=class extends y{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(e,t)=>{},this.onMouseOver=(e,t)=>{},this.handleClick=e=>{this.onSelect(this.value,this.selectItemIndex),e.stopPropagation();const t=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(t)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return l`
668
+ `}};Pn([g()],Tr.prototype,"searchKey",2);Pn([g()],Tr.prototype,"focusedIndex",2);Pn([g()],Tr.prototype,"selectedValue",2);Pn([g()],Tr.prototype,"isOpen",2);Tr=Pn([p("pont-combo-box-group")],Tr);var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,se=(e,t,r,n)=>{for(var o=n>1?void 0:n?Jg(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Zg(t,r,o),o};let Vt=class extends y{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(e,t)=>{},this.onMouseOver=(e,t)=>{},this.handleClick=e=>{this.onSelect(this.value,this.selectItemIndex),e.stopPropagation();const t=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(t)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return l`
669
669
  <div
670
670
  ${St(e)}
671
671
  @click=${this.handleClick}
@@ -681,7 +681,7 @@
681
681
  ${Ag()}
682
682
  </span>
683
683
  </div>
684
- `}};se([a({type:String})],Vt.prototype,"value",2);se([a({type:String})],Vt.prototype,"key",2);se([a({type:Number})],Vt.prototype,"tabindex",2);se([a({type:Boolean})],Vt.prototype,"isSelected",2);se([a({type:Boolean})],Vt.prototype,"isFocus",2);se([a({type:String})],Vt.prototype,"class",2);se([a({type:Number})],Vt.prototype,"selectItemIndex",2);se([a({type:Function})],Vt.prototype,"onSelect",2);se([a({type:Function})],Vt.prototype,"onMouseOver",2);se([yn("#pont-combo-box-item")],Vt.prototype,"itemDivContainer",2);Vt=se([p("pont-combo-box-item")],Vt);var Xg=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Ha=(e,t,r,n)=>{for(var o=n>1?void 0:n?tf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Xg(t,r,o),o};let ei=class extends f{constructor(){super(...arguments),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof Tr);)e=e.parentElement;return e}handleSearch(e){e.stopPropagation();const t=e.target;this.searchValue=t.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(e){e.stopPropagation()}createRenderRoot(){return this}render(){return l`
684
+ `}};se([a({type:String})],Vt.prototype,"value",2);se([a({type:String})],Vt.prototype,"key",2);se([a({type:Number})],Vt.prototype,"tabindex",2);se([a({type:Boolean})],Vt.prototype,"isSelected",2);se([a({type:Boolean})],Vt.prototype,"isFocus",2);se([a({type:String})],Vt.prototype,"class",2);se([a({type:Number})],Vt.prototype,"selectItemIndex",2);se([a({type:Function})],Vt.prototype,"onSelect",2);se([a({type:Function})],Vt.prototype,"onMouseOver",2);se([_n("#pont-combo-box-item")],Vt.prototype,"itemDivContainer",2);Vt=se([p("pont-combo-box-item")],Vt);var Xg=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Ha=(e,t,r,n)=>{for(var o=n>1?void 0:n?tf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Xg(t,r,o),o};let ri=class extends f{constructor(){super(...arguments),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof Tr);)e=e.parentElement;return e}handleSearch(e){e.stopPropagation();const t=e.target;this.searchValue=t.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(e){e.stopPropagation()}createRenderRoot(){return this}render(){return l`
685
685
  <div class="pont-flex pont-items-center pont-px-2">
686
686
  ${Rg()}
687
687
  <input
@@ -699,7 +699,7 @@
699
699
  @keydown="${this.handleKeyDown}"
700
700
  />
701
701
  </div>
702
- `}};Ha([a({type:String})],ei.prototype,"placeholder",2);Ha([g()],ei.prototype,"searchValue",2);ei=Ha([p("pont-combo-box-input")],ei);var ef=Object.getOwnPropertyDescriptor,rf=(e,t,r,n)=>{for(var o=n>1?void 0:n?ef(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let md=class extends y{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return l`
702
+ `}};Ha([a({type:String})],ri.prototype,"placeholder",2);Ha([g()],ri.prototype,"searchValue",2);ri=Ha([p("pont-combo-box-input")],ri);var ef=Object.getOwnPropertyDescriptor,rf=(e,t,r,n)=>{for(var o=n>1?void 0:n?ef(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let md=class extends y{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return l`
703
703
  <div
704
704
  class="${u(Io.empty,this.className)}"
705
705
  role="presentation"
@@ -713,7 +713,7 @@
713
713
  data-combo-box-uuid=${this.uuid}
714
714
  part="combo-box"
715
715
  ></div>
716
- `}};xe([a({type:Boolean})],Tt.prototype,"isOpen",2);xe([g()],Tt.prototype,"selectedValue",2);xe([g()],Tt.prototype,"searchTerm",2);xe([g()],Tt.prototype,"focusedIndex",2);xe([g()],Tt.prototype,"filteredItems",2);xe([g()],Tt.prototype,"uuid",2);xe([a({type:String})],Tt.prototype,"label",2);xe([a({type:Array})],Tt.prototype,"items",2);xe([yn('[part="combo-box"]')],Tt.prototype,"parentDiveElement",2);Tt=xe([p("pont-combo-box")],Tt);const be={root:["pont-flex pont-overflow-hidden","pont-flex-col","pont-w-command-space-w pont-h-command-space-h","pont-text-command-color-text","pont-bg-command-color-bg","pont-rounded-command-radius"],input:{wrapper:["pont-flex","pont-gap-command-input-wrapper-space-gap pont-items-center","pont-px-command-input-wrapper-space-px","pont-h-command-input-wrapper-space-h","pont-border-b-command-input-wrapper-width-border pont-border-b-command-input-wrapper-color-border"],icon:["pont-shrink-0","pont-size-command-input-icon-space-size","pont-opacity-command-input-icon-opacity"],input:["pont-flex","pont-py-command-input-space-py","pont-w-command-input-space-w pont-h-command-input-space-h","pont-text-command-input-font","pont-bg-command-input-color-bg","pont-rounded-command-input-radius pont-outline-hidden","focus:pont-outline-none","disabled:pont-opacity-command-input-opacity-disabled disabled:pont-cursor-not-allowed","placeholder:pont-text-command-input-placeholder-color-text"]},list:["pont-overflow-x-hidden pont-overflow-y-auto","pont-max-h-command-list-space-max-h","pont-scroll-py-1"],empty:["pont-py-command-empty-space-py","pont-text-command-empty-font pont-text-center"],group:["pont-overflow-hidden","pont-p-command-group-space-p","pont-text-command-group-color-text"],heading:["pont-px-command-heading-space-px pont-py-command-heading-space-py","pont-text-command-heading-font pont-font-command-heading-font-weight pont-text-command-heading-color-text"],separator:["pont-command-separator-space-mx","pont-h-command-separator-space-h","pont-bg-command-separator-color-bg"],item:["pont-flex pont-relative","pont-gap-command-item-space-gap pont-items-center","pont-px-command-item-space-px pont-py-command-item-space-py","pont-text-command-item-font","pont-rounded-command-item-radius pont-outline-hidden","pont-cursor-default pont-select-none","hover:pont-text-command-item-color-text-hover hover:pont-bg-command-item-color-bg-hover","aria-selected:pont-text-command-item-color-text-selected aria-selected:pont-bg-command-item-color-bg-selected",'data-[disabled="true"]:pont-opacity-command-item-opacity-disabled data-[disabled="true"]:pont-pointer-events-none','[&_svg]:pont-shrink-0 [&_svg:not([class*="pont-size-"])]:pont-size-command-item-icon-space-size [&_svg:not([class*="pont-text-"])]:pont-text-command-item-icon-color-text [&_svg]:pont-pointer-events-none']};var sf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Ga=(e,t,r,n)=>{for(var o=n>1?void 0:n?af(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&sf(t,r,o),o};let Dr=class extends y{constructor(){super(...arguments),this._id="",this._hidden="true"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}e${Dr._counter++}`:this._id=`rtgcmdrxlxe${Dr._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return l`
716
+ `}};xe([a({type:Boolean})],Tt.prototype,"isOpen",2);xe([g()],Tt.prototype,"selectedValue",2);xe([g()],Tt.prototype,"searchTerm",2);xe([g()],Tt.prototype,"focusedIndex",2);xe([g()],Tt.prototype,"filteredItems",2);xe([g()],Tt.prototype,"uuid",2);xe([a({type:String})],Tt.prototype,"label",2);xe([a({type:Array})],Tt.prototype,"items",2);xe([_n('[part="combo-box"]')],Tt.prototype,"parentDiveElement",2);Tt=xe([p("pont-combo-box")],Tt);const be={root:["pont-flex pont-overflow-hidden","pont-flex-col","pont-w-command-space-w pont-h-command-space-h","pont-text-command-color-text","pont-bg-command-color-bg","pont-rounded-command-radius"],input:{wrapper:["pont-flex","pont-gap-command-input-wrapper-space-gap pont-items-center","pont-px-command-input-wrapper-space-px","pont-h-command-input-wrapper-space-h","pont-border-b-command-input-wrapper-width-border pont-border-b-command-input-wrapper-color-border"],icon:["pont-shrink-0","pont-size-command-input-icon-space-size","pont-opacity-command-input-icon-opacity"],input:["pont-flex","pont-py-command-input-space-py","pont-w-command-input-space-w pont-h-command-input-space-h","pont-text-command-input-font","pont-bg-command-input-color-bg","pont-rounded-command-input-radius pont-outline-hidden","focus:pont-outline-none","disabled:pont-opacity-command-input-opacity-disabled disabled:pont-cursor-not-allowed","placeholder:pont-text-command-input-placeholder-color-text"]},list:["pont-overflow-x-hidden pont-overflow-y-auto","pont-max-h-command-list-space-max-h","pont-scroll-py-1"],empty:["pont-py-command-empty-space-py","pont-text-command-empty-font pont-text-center"],group:["pont-overflow-hidden","pont-p-command-group-space-p","pont-text-command-group-color-text"],heading:["pont-px-command-heading-space-px pont-py-command-heading-space-py","pont-text-command-heading-font pont-font-command-heading-font-weight pont-text-command-heading-color-text"],separator:["pont-command-separator-space-mx","pont-h-command-separator-space-h","pont-bg-command-separator-color-bg"],item:["pont-flex pont-relative","pont-gap-command-item-space-gap pont-items-center","pont-px-command-item-space-px pont-py-command-item-space-py","pont-text-command-item-font","pont-rounded-command-item-radius pont-outline-hidden","pont-cursor-default pont-select-none","hover:pont-text-command-item-color-text-hover hover:pont-bg-command-item-color-bg-hover","aria-selected:pont-text-command-item-color-text-selected aria-selected:pont-bg-command-item-color-bg-selected",'data-[disabled="true"]:pont-opacity-command-item-opacity-disabled data-[disabled="true"]:pont-pointer-events-none','[&_svg]:pont-shrink-0 [&_svg:not([class*="pont-size-"])]:pont-size-command-item-icon-space-size [&_svg:not([class*="pont-text-"])]:pont-text-command-item-icon-color-text [&_svg]:pont-pointer-events-none']};var sf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Ga=(e,t,r,n)=>{for(var o=n>1?void 0:n?af(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&sf(t,r,o),o};let Dr=class extends y{constructor(){super(...arguments),this._id="",this._hidden="true"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}e${Dr._counter++}`:this._id=`rtgcmdrxlxe${Dr._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return l`
717
717
  <div
718
718
  rtgcmd-empty
719
719
  id="${this.identifier}"
@@ -744,7 +744,7 @@
744
744
  aria-labelledby="${this.identifier}h"
745
745
  ></div>
746
746
  </div>
747
- `}};lr._counter=0;Ri([a({type:String})],lr.prototype,"heading",2);Ri([a({attribute:"id",type:String})],lr.prototype,"_id",2);Ri([a({attribute:"aria-hidden",type:String})],lr.prototype,"_hidden",2);lr=Ri([p("pont-command-group")],lr);var cf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Ka=(e,t,r,n)=>{for(var o=n>1?void 0:n?pf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&cf(t,r,o),o};let ri=class extends f{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const e=this.parentElement;if(e){let t=!0;const r=e.querySelectorAll("pont-command-group");r&&r.forEach(o=>{var c,m;let i=!0;const s=o.querySelectorAll("pont-command-item");s&&s.forEach(v=>{(v.value||"").toLowerCase().includes(this._value.toLowerCase())?(i=!1,t=!1,v._hidden="false"):v._hidden="true"}),o._hidden=i?"true":"false";let d=o.previousElementSibling;d&&(d._hidden=i||((c=d.previousElementSibling)==null?void 0:c.getAttribute("aria-hidden"))==="true"?"true":"false"),d=o.nextElementSibling,d&&(d._hidden=i||((m=d.nextElementSibling)==null?void 0:m.getAttribute("aria-hidden"))==="true"?"true":"false")});const n=e.querySelector("pont-command-empty");n&&n.setAttribute("aria-hidden",t?"false":"true")}}handleChange(e){const t=e.target;t&&(this._value=t.value,this.filterItems())}createRenderRoot(){return this}render(){return l`
747
+ `}};lr._counter=0;Ri([a({type:String})],lr.prototype,"heading",2);Ri([a({attribute:"id",type:String})],lr.prototype,"_id",2);Ri([a({attribute:"aria-hidden",type:String})],lr.prototype,"_hidden",2);lr=Ri([p("pont-command-group")],lr);var cf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Ka=(e,t,r,n)=>{for(var o=n>1?void 0:n?pf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&cf(t,r,o),o};let oi=class extends f{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const e=this.parentElement;if(e){let t=!0;const r=e.querySelectorAll("pont-command-group");r&&r.forEach(o=>{var c,m;let i=!0;const s=o.querySelectorAll("pont-command-item");s&&s.forEach(v=>{(v.value||"").toLowerCase().includes(this._value.toLowerCase())?(i=!1,t=!1,v._hidden="false"):v._hidden="true"}),o._hidden=i?"true":"false";let d=o.previousElementSibling;d&&(d._hidden=i||((c=d.previousElementSibling)==null?void 0:c.getAttribute("aria-hidden"))==="true"?"true":"false"),d=o.nextElementSibling,d&&(d._hidden=i||((m=d.nextElementSibling)==null?void 0:m.getAttribute("aria-hidden"))==="true"?"true":"false")});const n=e.querySelector("pont-command-empty");n&&n.setAttribute("aria-hidden",t?"false":"true")}}handleChange(e){const t=e.target;t&&(this._value=t.value,this.filterItems())}createRenderRoot(){return this}render(){return l`
748
748
  <div
749
749
  part="command-input"
750
750
  class=${u(be.input.wrapper,this.className)}
@@ -785,7 +785,7 @@
785
785
  class=${u(be.input.input)}
786
786
  />
787
787
  </div>
788
- `}};Ka([a({type:String})],ri.prototype,"placeholder",2);Ka([a({attribute:"value",type:String})],ri.prototype,"_value",2);ri=Ka([p("pont-command-input")],ri);var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Ao=(e,t,r,n)=>{for(var o=n>1?void 0:n?uf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&hf(t,r,o),o};let we=class extends y{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="false",this.onSelect=()=>{},this.disabled="false"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}li${we._counter++}`:this._id=`rtgcmdrxgxli${we._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}updated(e){}render(){return l`
788
+ `}};Ka([a({type:String})],oi.prototype,"placeholder",2);Ka([a({attribute:"value",type:String})],oi.prototype,"_value",2);oi=Ka([p("pont-command-input")],oi);var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Ao=(e,t,r,n)=>{for(var o=n>1?void 0:n?uf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&hf(t,r,o),o};let we=class extends y{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="false",this.onSelect=()=>{},this.disabled="false"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}li${we._counter++}`:this._id=`rtgcmdrxgxli${we._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}updated(e){}render(){return l`
789
789
  <div
790
790
  rtgcmd-item
791
791
  id="${this.identifier}"
@@ -881,7 +881,7 @@
881
881
 
882
882
  <div rtgcontext-group-items role="group"></div>
883
883
  </div>
884
- `}};Vp([a({type:String})],Qs.prototype,"heading",2);Qs=Vp([p("pont-context-menu-group")],Qs);var Ef=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Ya=(e,t,r,n)=>{for(var o=n>1?void 0:n?xf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Ef(t,r,o),o};let oi=class extends y{constructor(){super(...arguments),this.disabled=!1}get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return l`
884
+ `}};Vp([a({type:String})],Qs.prototype,"heading",2);Qs=Vp([p("pont-context-menu-group")],Qs);var Ef=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Ya=(e,t,r,n)=>{for(var o=n>1?void 0:n?xf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Ef(t,r,o),o};let ni=class extends y{constructor(){super(...arguments),this.disabled=!1}get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return l`
885
885
  <div
886
886
  part="context-menu-item"
887
887
  role="option"
@@ -889,7 +889,7 @@
889
889
  ?data-disabled=${this.disabled}
890
890
  class=${u(It.item,this.className)}
891
891
  ></div>
892
- `}};Ya([a({attribute:"data-value",type:String})],oi.prototype,"value",1);Ya([a({attribute:"data-disabled",type:Boolean})],oi.prototype,"disabled",2);oi=Ya([p("pont-context-menu-item")],oi);var Of=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Do=(e,t,r,n)=>{for(var o=n>1?void 0:n?Rf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Of(t,r,o),o};let kr=class extends y{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
892
+ `}};Ya([a({attribute:"data-value",type:String})],ni.prototype,"value",1);Ya([a({attribute:"data-disabled",type:Boolean})],ni.prototype,"disabled",2);ni=Ya([p("pont-context-menu-item")],ni);var Of=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Do=(e,t,r,n)=>{for(var o=n>1?void 0:n?Rf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Of(t,r,o),o};let kr=class extends y{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
893
893
  <div
894
894
  rtgcmd-item
895
895
  part="context-menu-radio"
@@ -940,34 +940,34 @@
940
940
  part="context-menu"
941
941
  class=${u(It.root,this.className)}
942
942
  ></div>
943
- `}};Gp([g()],Js.prototype,"isOpen",2);Js=Gp([p("pont-context-menu")],Js);const Qa={root:["pont-relative"],trigger:[""],content:["pont-fixed pont-z-50","pont-p-popover-content-space-p","pont-w-popover-content-space-w","pont-text-popover-content-color-text","pont-bg-popover-content-color-bg","pont-rounded-popover-content-radius pont-border-popover-content-width-border pont-border-popover-content-color-border pont-outline-hidden","pont-shadow-popover-content-shadow",'data-[state="open"]:pont-block data-[state="closed"]:pont-hidden','data-[state="open"]:pont-animate-in data-[state="open"]:pont-fade-in-0 data-[state="open"]:pont-zoom-in-95','data-[state="closed"]:pont-animate-out data-[state="closed"]:pont-fade-out-0 data-[state="closed"]:pont-zoom-out-95',"pont-translate-y-0.5"]};var Nf=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,Pn=(e,t,r,n)=>{for(var o=n>1?void 0:n?Bf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Nf(t,r,o),o};let _o=class extends y{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.state="closed"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof pn);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(e){const t=this._popover;t&&!t.contains(e.target)&&(t.isOpen=!1)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var t;(t=this._popover)!=null&&t.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(e){e.stopPropagation()}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return l`
943
+ `}};Gp([g()],Js.prototype,"isOpen",2);Js=Gp([p("pont-context-menu")],Js);const Qa={root:["pont-relative"],trigger:[""],content:["pont-fixed pont-z-50","pont-p-popover-content-space-p","pont-w-popover-content-space-w","pont-text-popover-content-color-text","pont-bg-popover-content-color-bg","pont-rounded-popover-content-radius pont-border-popover-content-width-border pont-border-popover-content-color-border pont-outline-hidden","pont-shadow-popover-content-shadow",'data-[state="open"]:pont-block data-[state="closed"]:pont-hidden','data-[state="open"]:pont-animate-in data-[state="open"]:pont-fade-in-0 data-[state="open"]:pont-zoom-in-95','data-[state="closed"]:pont-animate-out data-[state="closed"]:pont-fade-out-0 data-[state="closed"]:pont-zoom-out-95',"pont-translate-y-0.5"]};var Nf=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,Cn=(e,t,r,n)=>{for(var o=n>1?void 0:n?Bf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Nf(t,r,o),o};let _o=class extends y{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.state="closed"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof hn);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(e){const t=this._popover;t&&!t.contains(e.target)&&(t.isOpen=!1)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var t;(t=this._popover)!=null&&t.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(e){e.stopPropagation()}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return l`
944
944
  <div
945
945
  part="popover-content"
946
946
  data-state=${this.state}
947
947
  class=${u(Qa.content,this.className)}
948
948
  @click="${this.preventClickPropagation}"
949
949
  ></div>
950
- `}};Pn([a({type:Boolean})],_o.prototype,"enableDefaultStyle",2);Pn([a({type:Boolean})],_o.prototype,"styleContent",2);Pn([a({type:String})],_o.prototype,"side",2);Pn([a({attribute:"data-state",type:String})],_o.prototype,"state",2);_o=Pn([p("pont-popover-content")],_o);var Uf=Object.getOwnPropertyDescriptor,jf=(e,t,r,n)=>{for(var o=n>1?void 0:n?Uf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let yd=class extends y{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof pn);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{this.handleClick(),t.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return l`
950
+ `}};Cn([a({type:Boolean})],_o.prototype,"enableDefaultStyle",2);Cn([a({type:Boolean})],_o.prototype,"styleContent",2);Cn([a({type:String})],_o.prototype,"side",2);Cn([a({attribute:"data-state",type:String})],_o.prototype,"state",2);_o=Cn([p("pont-popover-content")],_o);var Uf=Object.getOwnPropertyDescriptor,jf=(e,t,r,n)=>{for(var o=n>1?void 0:n?Uf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let yd=class extends y{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof hn);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{this.handleClick(),t.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return l`
951
951
  <div
952
952
  part="popover-trigger"
953
953
  class=${u(Qa.trigger,this.className)}
954
954
  ></div>
955
- `}};yd=jf([p("pont-popover-trigger")],yd);var qf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,Kp=(e,t,r,n)=>{for(var o=n>1?void 0:n?zf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&qf(t,r,o),o};let pn=class extends y{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=popover]")}get _contentElement(){return this.querySelector("pont-popover-content")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){this._contentElement.state=this.isOpen?"open":"closed",this._contentElement.requestUpdate()}render(){return l`
955
+ `}};yd=jf([p("pont-popover-trigger")],yd);var qf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,Kp=(e,t,r,n)=>{for(var o=n>1?void 0:n?zf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&qf(t,r,o),o};let hn=class extends y{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=popover]")}get _contentElement(){return this.querySelector("pont-popover-content")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){this._contentElement.state=this.isOpen?"open":"closed",this._contentElement.requestUpdate()}render(){return l`
956
956
  <div part="popover" class=${u(Qa.root,this.className)}></div>
957
- `}};Kp([g()],pn.prototype,"isOpen",2);pn=Kp([p("pont-popover")],pn);const Mn={root:[""],trigger:[""],triggerButton:[nn({variant:"outline"}).replace("pont-justify-center",""),"pont-justify-start","pont-w-date-picker-trigger-button-space-w","pont-text-left pont-font-date-picker-trigger-button-font-weight","data-[empty=true]:pont-text-date-picker-trigger-button-color-text-empty"],content:["pont-p-date-picker-content-space-p","pont-w-auto"]};var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Wp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Hf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Vf(t,r,o),o};let Xs=class extends f{constructor(){super(...arguments),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return l`
957
+ `}};Kp([g()],hn.prototype,"isOpen",2);hn=Kp([p("pont-popover")],hn);const Nn={root:[""],trigger:[""],triggerButton:[nn({variant:"outline"}).replace("pont-justify-center",""),"pont-justify-start","pont-w-date-picker-trigger-button-space-w","pont-text-left pont-font-date-picker-trigger-button-font-weight","data-[empty=true]:pont-text-date-picker-trigger-button-color-text-empty"],content:["pont-p-date-picker-content-space-p","pont-w-auto"]};var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Wp=(e,t,r,n)=>{for(var o=n>1?void 0:n?Hf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Vf(t,r,o),o};let Xs=class extends f{constructor(){super(...arguments),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return l`
958
958
  <pont-popover
959
- class=${u("date-picker",Mn.root,this.className)}
959
+ class=${u("date-picker",Nn.root,this.className)}
960
960
  @date-selected=${this.handleDateSelected}
961
961
  >
962
962
  <pont-popover-trigger
963
963
  as-child
964
- class=${u("date-picker-trigger",Mn.trigger)}
964
+ class=${u("date-picker-trigger",Nn.trigger)}
965
965
  >
966
966
  <button
967
967
  data-variant="outline"
968
968
  data-size="default"
969
969
  data-empty=${this.selectedDate?"false":"true"}
970
- class=${u("date-picker-trigger-button",Mn.triggerButton)}
970
+ class=${u("date-picker-trigger-button",Nn.triggerButton)}
971
971
  >
972
972
  <svg
973
973
  xmlns="http://www.w3.org/2000/svg"
@@ -992,7 +992,7 @@
992
992
  </pont-popover-trigger>
993
993
 
994
994
  <pont-popover-content
995
- class=${u("date-picker-content",Mn.content)}
995
+ class=${u("date-picker-content",Nn.content)}
996
996
  >
997
997
  <pont-calendar mode="single"></pont-calendar>
998
998
  </pont-popover-content>
@@ -1002,7 +1002,7 @@
1002
1002
  part="dialog-close"
1003
1003
  class=${u(Xt.close,this.className)}
1004
1004
  ></div>
1005
- `}};_d=Kf([p("pont-dialog-close")],_d);var Yf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,Za=(e,t,r,n)=>{for(var o=n>1?void 0:n?Qf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Yf(t,r,o),o};const ss="closed";let ni=class extends y{constructor(){super(...arguments),this.state=ss,this.showCloseButton=!1,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=ss)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof wo)return e;e=e.parentElement}return e}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===ss?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return l`
1005
+ `}};_d=Kf([p("pont-dialog-close")],_d);var Yf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,Za=(e,t,r,n)=>{for(var o=n>1?void 0:n?Qf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Yf(t,r,o),o};const ss="closed";let ii=class extends y{constructor(){super(...arguments),this.state=ss,this.showCloseButton=!1,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=ss)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof wo)return e;e=e.parentElement}return e}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===ss?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return l`
1006
1006
  <div
1007
1007
  rtgdlg-content
1008
1008
  part="dialog-content"
@@ -1037,12 +1037,12 @@
1037
1037
  </button>
1038
1038
  `:""}
1039
1039
  </div>
1040
- `}};Za([a({attribute:"data-state",type:String})],ni.prototype,"state",2);Za([a({attribute:"show-close-button",type:Boolean})],ni.prototype,"showCloseButton",2);ni=Za([p("pont-dialog-content")],ni);var Zf=Object.getOwnPropertyDescriptor,Jf=(e,t,r,n)=>{for(var o=n>1?void 0:n?Zf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let wd=class extends y{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1040
+ `}};Za([a({attribute:"data-state",type:String})],ii.prototype,"state",2);Za([a({attribute:"show-close-button",type:Boolean})],ii.prototype,"showCloseButton",2);ii=Za([p("pont-dialog-content")],ii);var Zf=Object.getOwnPropertyDescriptor,Jf=(e,t,r,n)=>{for(var o=n>1?void 0:n?Zf(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let wd=class extends y{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1041
1041
  <div
1042
1042
  part="dialog-footer"
1043
1043
  class=${u(Xt.footer,this.className)}
1044
1044
  ></div>
1045
- `}};wd=Jf([p("pont-dialog-footer")],wd);var Xf=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Ja=(e,t,r,n)=>{for(var o=n>1?void 0:n?tv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Xf(t,r,o),o};let ii=class extends f{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return l`
1045
+ `}};wd=Jf([p("pont-dialog-footer")],wd);var Xf=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Ja=(e,t,r,n)=>{for(var o=n>1?void 0:n?tv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Xf(t,r,o),o};let si=class extends f{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return l`
1046
1046
  <div
1047
1047
  part="dialog-header"
1048
1048
  class=${u(Xt.header,this.className)}
@@ -1053,7 +1053,7 @@
1053
1053
  ${this.description}
1054
1054
  </p>
1055
1055
  </div>
1056
- `}};Ja([a({attribute:"title",type:String})],ii.prototype,"_title",2);Ja([a({type:String})],ii.prototype,"description",2);ii=Ja([p("pont-dialog-header")],ii);var ev=Object.getOwnPropertyDescriptor,rv=(e,t,r,n)=>{for(var o=n>1?void 0:n?ev(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let $d=class extends f{createRenderRoot(){return this}render(){return l`
1056
+ `}};Ja([a({attribute:"title",type:String})],si.prototype,"_title",2);Ja([a({type:String})],si.prototype,"description",2);si=Ja([p("pont-dialog-header")],si);var ev=Object.getOwnPropertyDescriptor,rv=(e,t,r,n)=>{for(var o=n>1?void 0:n?ev(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let $d=class extends f{createRenderRoot(){return this}render(){return l`
1057
1057
  <div
1058
1058
  part="dialog-overly"
1059
1059
  class=${u(Xt.overlay,this.className)}
@@ -1071,7 +1071,7 @@
1071
1071
  >
1072
1072
  ${this.state===lv?l` <pont-dialog-overlay></pont-dialog-overlay>`:h}
1073
1073
  </div>
1074
- `}};Yp([a({attribute:"data-state",type:String})],wo.prototype,"state",2);wo=Yp([p("pont-dialog")],wo);const he={open:"open",closed:"closed"},$e={root:[""],trigger:[""],close:[""],overlay:["pont-fixed pont-inset-0 pont-z-50","pont-bg-drawer-overlay-color-bg","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0"],content:{base:["pont-fixed pont-inset-x-0 pont-bottom-0 pont-z-50","pont-flex pont-flex-col","pont-mt-drawer-content-space-mt","pont-h-auto pont-max-h-[80vh]","pont-bg-drawer-content-color-bg","pont-rounded-t-drawer-content-radius pont-border-t-drawer-content-width-border pont-border-t-drawer-content-color-border"],thumb:["pont-shrink-0","pont-mx-auto pont-mt-drawer-thumb-space-mt","pont-w-drawer-thumb-space-w pont-h-drawer-thumb-space-h","pont-bg-drawer-thumb-color-bg","pont-rounded-drawer-thumb-radius"]},header:["pont-flex pont-flex-col pont-gap-drawer-header-space-gap-sm md:pont-gap-drawer-header-space-gap","pont-p-drawer-header-space-p","pont-text-center"],footer:["pont-flex pont-flex-col pont-gap-drawer-footer-space-gap","pont-p-drawer-footer-space-p pont-mt-auto"],title:["pont-text-drawer-title-font pont-font-drawer-title-font-weight pont-text-drawer-title-color-text"],description:["pont-text-drawer-description-font pont-font-drawer-description-font-weight pont-text-drawer-description-color-text"]};var cv=Object.getOwnPropertyDescriptor,pv=(e,t,r,n)=>{for(var o=n>1?void 0:n?cv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Cd=class extends y{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof hn)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;const t=this._containerElement;if(t){this.moveLightDomChildrenInto(t);const r=t.querySelector("button, [data-close], [role=button]");r&&r.addEventListener("click",n=>{n.stopPropagation();const o=this._drawer;o&&(o.dataset.state=he.closed)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return l`
1074
+ `}};Yp([a({attribute:"data-state",type:String})],wo.prototype,"state",2);wo=Yp([p("pont-dialog")],wo);const he={open:"open",closed:"closed"},$e={root:[""],trigger:[""],close:[""],overlay:["pont-fixed pont-inset-0 pont-z-50","pont-bg-drawer-overlay-color-bg","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0"],content:{base:["pont-fixed pont-inset-x-0 pont-bottom-0 pont-z-50","pont-flex pont-flex-col","pont-mt-drawer-content-space-mt","pont-h-auto pont-max-h-[80vh]","pont-bg-drawer-content-color-bg","pont-rounded-t-drawer-content-radius pont-border-t-drawer-content-width-border pont-border-t-drawer-content-color-border"],thumb:["pont-shrink-0","pont-mx-auto pont-mt-drawer-thumb-space-mt","pont-w-drawer-thumb-space-w pont-h-drawer-thumb-space-h","pont-bg-drawer-thumb-color-bg","pont-rounded-drawer-thumb-radius"]},header:["pont-flex pont-flex-col pont-gap-drawer-header-space-gap-sm md:pont-gap-drawer-header-space-gap","pont-p-drawer-header-space-p","pont-text-center"],footer:["pont-flex pont-flex-col pont-gap-drawer-footer-space-gap","pont-p-drawer-footer-space-p pont-mt-auto"],title:["pont-text-drawer-title-font pont-font-drawer-title-font-weight pont-text-drawer-title-color-text"],description:["pont-text-drawer-description-font pont-font-drawer-description-font-weight pont-text-drawer-description-color-text"]};var cv=Object.getOwnPropertyDescriptor,pv=(e,t,r,n)=>{for(var o=n>1?void 0:n?cv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Cd=class extends y{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof un)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;const t=this._containerElement;if(t){this.moveLightDomChildrenInto(t);const r=t.querySelector("button, [data-close], [role=button]");r&&r.addEventListener("click",n=>{n.stopPropagation();const o=this._drawer;o&&(o.dataset.state=he.closed)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return l`
1075
1075
  <div
1076
1076
  part="drawer-close"
1077
1077
  class=${u($e.close,this.className)}
@@ -1130,12 +1130,12 @@
1130
1130
  part="drawer-title"
1131
1131
  class=${u($e.title,this.className)}
1132
1132
  ></h2>
1133
- `}};Rd=Pv([p("pont-drawer-title")],Rd);var Cv=Object.getOwnPropertyDescriptor,Sv=(e,t,r,n)=>{for(var o=n>1?void 0:n?Cv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Id=class extends y{constructor(){super(...arguments),this.handleClick=()=>{const e=this._drawer;e&&(e.dataset.state=he.open)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof hn)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return l`
1133
+ `}};Rd=Pv([p("pont-drawer-title")],Rd);var Cv=Object.getOwnPropertyDescriptor,Sv=(e,t,r,n)=>{for(var o=n>1?void 0:n?Cv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Id=class extends y{constructor(){super(...arguments),this.handleClick=()=>{const e=this._drawer;e&&(e.dataset.state=he.open)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof un)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return l`
1134
1134
  <div
1135
1135
  part="drawer-trigger"
1136
1136
  class=${u($e.trigger,this.className)}
1137
1137
  ></div>
1138
- `}};Id=Sv([p("pont-drawer-trigger")],Id);var Ev=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,Zp=(e,t,r,n)=>{for(var o=n>1?void 0:n?xv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Ev(t,r,o),o};let hn=class extends y{constructor(){super(...arguments),this.state=he.closed,this.handleOutsideClick=e=>{const t=this._content;this.state===he.open&&t&&(t.contains(e.target)||(this.state=he.closed,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){const e=this.querySelector("pont-drawer-content");return e||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.state),e.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===he.open?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return l`
1138
+ `}};Id=Sv([p("pont-drawer-trigger")],Id);var Ev=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,Zp=(e,t,r,n)=>{for(var o=n>1?void 0:n?xv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Ev(t,r,o),o};let un=class extends y{constructor(){super(...arguments),this.state=he.closed,this.handleOutsideClick=e=>{const t=this._content;this.state===he.open&&t&&(t.contains(e.target)||(this.state=he.closed,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){const e=this.querySelector("pont-drawer-content");return e||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.state),e.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===he.open?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return l`
1139
1139
  <div
1140
1140
  rtgdlg-root
1141
1141
  part="drawer"
@@ -1143,7 +1143,7 @@
1143
1143
  >
1144
1144
  ${this.state===he.open?l` <pont-drawer-overlay></pont-drawer-overlay>`:h}
1145
1145
  </div>
1146
- `}};Zp([a({attribute:"data-state",type:String})],hn.prototype,"state",2);hn=Zp([p("pont-drawer")],hn);const At={root:["pont-relative"],content:["pont-overflow-x-hidden pont-overflow-y-auto pont-z-50 pont-absolute","pont-p-dropdown-menu-content-space-p","pont-min-w-dropdown-menu-content-space-min-w","pont-text-dropdown-menu-content-color-text","pont-bg-dropdown-menu-content-color-bg","pont-rounded-dropdown-menu-content-radius pont-border-dropdown-menu-content-width-border pont-border-dropdown-menu-content-color-border","pont-shadow-dropdown-menu-content-shadow","pont-translate-y-0.5","pont-slide-in-from-top-2","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0 data-[state=open]:pont-zoom-in-95","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0 data-[state=closed]:pont-zoom-out-95"],group:[""],item:["pont-flex pont-relative","pont-gap-dropdown-menu-item-space-gap pont-items-center","pont-px-dropdown-menu-item-space-px pont-py-dropdown-menu-item-space-py","pont-text-dropdown-menu-item-font","pont-rounded-dropdown-menu-item-radius pont-outline-hidden","pont-cursor-default","pont-select-none","hover:pont-bg-dropdown-menu-item-color-bg-hover hover:pont-text-dropdown-menu-item-color-text-hover","focus:pont-bg-dropdown-menu-item-color-bg-focus focus:pont-text-dropdown-menu-item-color-text-focus","data-[disabled]:pont-opacity-dropdown-menu-item-opacity-disabled data-[disabled]:pont-pointer-events-none",'[&_svg]:pont-shrink-0 [&_svg:not([class*="pont-size-"])]:pont-size-dropdown-menu-item-icon-space-size [&_svg:not([class*="pont-text-"])]:pont-text-dropdown-menu-item-icon-color-text [&_svg]:pont-pointer-events-none'],checkboxItem:{base:["pont-flex pont-relative","pont-gap-dropdown-menu-checkbox-item-space-gap pont-items-center","pont-pl-dropdown-menu-checkbox-item-space-pl pont-pr-dropdown-menu-checkbox-item-space-pr pont-py-dropdown-menu-checkbox-item-space-py","pont-text-dropdown-menu-checkbox-item-font","pont-rounded-dropdown-menu-checkbox-item-radius pont-outline-hidden","pont-cursor-default","pont-select-none","aria-selected:pont-bg-dropdown-menu-checkbox-item-color-bg-focus aria-selected:pont-text-dropdown-menu-checkbox-item-color-text-focus","data-[disabled]:pont-opacity-dropdown-menu-checkbox-item-opacity-disabled data-[disabled]:pont-pointer-events-none"],span:["pont-flex pont-absolute pont-left-2","pont-justify-center pont-items-center","pont-size-dropdown-menu-checkbox-item-icon-container-space-size","pont-pointer-events-none"],icon:["pont-shrink-0","pont-size-dropdown-menu-checkbox-item-icon-space-size","pont-pointer-events-none"]},radioItem:{base:["pont-flex pont-relative","pont-gap-dropdown-menu-radio-item-space-gap pont-items-center","pont-pl-dropdown-menu-radio-item-space-pl pont-pr-dropdown-menu-radio-item-space-pr pont-py-dropdown-menu-radio-item-space-py","pont-text-dropdown-menu-radio-item-font","pont-rounded-dropdown-menu-radio-item-radius pont-outline-hidden","pont-cursor-default","pont-select-none","aria-selected:pont-bg-dropdown-menu-radio-item-color-bg-focus aria-selected:pont-text-dropdown-menu-radio-item-color-text-focus","data-[disabled]:pont-opacity-dropdown-menu-radio-item-opacity-disabled data-[disabled]:pont-pointer-events-none"],span:["pont-flex pont-absolute pont-left-2","pont-justify-center pont-items-center","pont-size-dropdown-menu-radio-item-icon-container-space-size","pont-pointer-events-none"],icon:["pont-shrink-0","pont-size-dropdown-menu-radio-item-icon-space-size","pont-pointer-events-none","pont-fill-current"]},label:["pont-px-dropdown-menu-label-space-px pont-py-dropdown-menu-label-space-py","pont-text-dropdown-menu-label-font pont-font-dropdown-menu-label-font-weight"],separator:["pont-mx-dropdown-menu-separator-space-mx pont-my-dropdown-menu-separator-space-my","pont-h-dropdown-menu-separator-space-h","pont-bg-dropdown-menu-separator-color-bg"],shortcut:["pont-ml-auto","pont-text-dropdown-menu-shortcut-font pont-text-dropdown-menu-shortcut-color-text"]};var Ov=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Lo=(e,t,r,n)=>{for(var o=n>1?void 0:n?Rv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Ov(t,r,o),o};let Mr=class extends y{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof $t);)e=e.parentElement;return e}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1146
+ `}};Zp([a({attribute:"data-state",type:String})],un.prototype,"state",2);un=Zp([p("pont-drawer")],un);const At={root:["pont-relative"],content:["pont-overflow-x-hidden pont-overflow-y-auto pont-z-50 pont-absolute","pont-p-dropdown-menu-content-space-p","pont-min-w-dropdown-menu-content-space-min-w","pont-text-dropdown-menu-content-color-text","pont-bg-dropdown-menu-content-color-bg","pont-rounded-dropdown-menu-content-radius pont-border-dropdown-menu-content-width-border pont-border-dropdown-menu-content-color-border","pont-shadow-dropdown-menu-content-shadow","pont-translate-y-0.5","pont-slide-in-from-top-2","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0 data-[state=open]:pont-zoom-in-95","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0 data-[state=closed]:pont-zoom-out-95"],group:[""],item:["pont-flex pont-relative","pont-gap-dropdown-menu-item-space-gap pont-items-center","pont-px-dropdown-menu-item-space-px pont-py-dropdown-menu-item-space-py","pont-text-dropdown-menu-item-font","pont-rounded-dropdown-menu-item-radius pont-outline-hidden","pont-cursor-default","pont-select-none","hover:pont-bg-dropdown-menu-item-color-bg-hover hover:pont-text-dropdown-menu-item-color-text-hover","focus:pont-bg-dropdown-menu-item-color-bg-focus focus:pont-text-dropdown-menu-item-color-text-focus","data-[disabled]:pont-opacity-dropdown-menu-item-opacity-disabled data-[disabled]:pont-pointer-events-none",'[&_svg]:pont-shrink-0 [&_svg:not([class*="pont-size-"])]:pont-size-dropdown-menu-item-icon-space-size [&_svg:not([class*="pont-text-"])]:pont-text-dropdown-menu-item-icon-color-text [&_svg]:pont-pointer-events-none'],checkboxItem:{base:["pont-flex pont-relative","pont-gap-dropdown-menu-checkbox-item-space-gap pont-items-center","pont-pl-dropdown-menu-checkbox-item-space-pl pont-pr-dropdown-menu-checkbox-item-space-pr pont-py-dropdown-menu-checkbox-item-space-py","pont-text-dropdown-menu-checkbox-item-font","pont-rounded-dropdown-menu-checkbox-item-radius pont-outline-hidden","pont-cursor-default","pont-select-none","aria-selected:pont-bg-dropdown-menu-checkbox-item-color-bg-focus aria-selected:pont-text-dropdown-menu-checkbox-item-color-text-focus","data-[disabled]:pont-opacity-dropdown-menu-checkbox-item-opacity-disabled data-[disabled]:pont-pointer-events-none"],span:["pont-flex pont-absolute pont-left-2","pont-justify-center pont-items-center","pont-size-dropdown-menu-checkbox-item-icon-container-space-size","pont-pointer-events-none"],icon:["pont-shrink-0","pont-size-dropdown-menu-checkbox-item-icon-space-size","pont-pointer-events-none"]},radioItem:{base:["pont-flex pont-relative","pont-gap-dropdown-menu-radio-item-space-gap pont-items-center","pont-pl-dropdown-menu-radio-item-space-pl pont-pr-dropdown-menu-radio-item-space-pr pont-py-dropdown-menu-radio-item-space-py","pont-text-dropdown-menu-radio-item-font","pont-rounded-dropdown-menu-radio-item-radius pont-outline-hidden","pont-cursor-default","pont-select-none","aria-selected:pont-bg-dropdown-menu-radio-item-color-bg-focus aria-selected:pont-text-dropdown-menu-radio-item-color-text-focus","data-[disabled]:pont-opacity-dropdown-menu-radio-item-opacity-disabled data-[disabled]:pont-pointer-events-none"],span:["pont-flex pont-absolute pont-left-2","pont-justify-center pont-items-center","pont-size-dropdown-menu-radio-item-icon-container-space-size","pont-pointer-events-none"],icon:["pont-shrink-0","pont-size-dropdown-menu-radio-item-icon-space-size","pont-pointer-events-none","pont-fill-current"]},label:["pont-px-dropdown-menu-label-space-px pont-py-dropdown-menu-label-space-py","pont-text-dropdown-menu-label-font pont-font-dropdown-menu-label-font-weight"],separator:["pont-mx-dropdown-menu-separator-space-mx pont-my-dropdown-menu-separator-space-my","pont-h-dropdown-menu-separator-space-h","pont-bg-dropdown-menu-separator-color-bg"],shortcut:["pont-ml-auto","pont-text-dropdown-menu-shortcut-font pont-text-dropdown-menu-shortcut-color-text"]};var Ov=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Lo=(e,t,r,n)=>{for(var o=n>1?void 0:n?Rv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Ov(t,r,o),o};let Mr=class extends y{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof $t);)e=e.parentElement;return e}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1147
1147
  <div
1148
1148
  rtgcmd-item
1149
1149
  part="dropdown-menu-item"
@@ -1180,14 +1180,14 @@
1180
1180
  </span>
1181
1181
  <div part="dropdown-menu-checkbox-item-container"></div>
1182
1182
  </div>
1183
- `}};Lo([a({type:String})],Mr.prototype,"_id",2);Lo([a({attribute:"data-value",type:String})],Mr.prototype,"value",1);Lo([a({type:Boolean})],Mr.prototype,"selected",2);Lo([a({type:Boolean})],Mr.prototype,"checked",2);Lo([a({attribute:"data-disabled",type:Boolean})],Mr.prototype,"disabled",2);Mr=Lo([p("pont-dropdown-menu-checkbox-item")],Mr);const Xa="closed";var Iv=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,tl=(e,t,r,n)=>{for(var o=n>1?void 0:n?Av(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Iv(t,r,o),o};let si=class extends y{constructor(){super(),this.state=Xa,this.isOpen=!1,this.handleWindowChange=this.handleWindowChange.bind(this)}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof $t);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleWindowChange),window.addEventListener("scroll",this.handleWindowChange,!0)}disconnectedCallback(){window.removeEventListener("resize",this.handleWindowChange),window.removeEventListener("scroll",this.handleWindowChange,!0),super.disconnectedCallback()}handleWindowChange(){this.isOpen&&requestAnimationFrame(()=>this.positionContent())}updated(e){super.updated(e),this.state==="open"?(this.isOpen=!0,requestAnimationFrame(()=>this.positionContent())):this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}positionContent(){const e=this._dropdownMenu,t=this._containerElement,r=e==null?void 0:e._triggerElement;if(!e||!t||!r||!this.isOpen)return;const n=document.documentElement.clientWidth,o=document.documentElement.clientHeight,i=8,s=r.getBoundingClientRect();t.style.position="fixed",t.style.minWidth=`${Math.max(s.width,t.offsetWidth)}px`,t.style.maxWidth=`${Math.min(t.offsetWidth,n-i*2)}px`;let d=s.left,c=s.bottom;const m=t.getBoundingClientRect(),v=n-d>=m.width+i,b=s.right>=m.width+i,w=o-c>=m.height+i,_=s.top>=m.height+i;v||!b&&w?(t.style.left=`${d}px`,t.style.right="auto"):(t.style.left="auto",t.style.right=`${n-s.right}px`),w||!_&&v?(t.style.top=`${c}px`,t.style.bottom="auto"):(t.style.top="auto",t.style.bottom=`${o-s.top}px`),requestAnimationFrame(()=>{const C=t.getBoundingClientRect();if(C.right>n-i){const P=C.right-(n-i),x=parseFloat(t.style.left||"0");Number.isNaN(x)||(t.style.left=`${Math.max(0,x-P)}px`)}if(C.left<i){const P=i-C.left,x=parseFloat(t.style.left||"0");Number.isNaN(x)||(t.style.left=`${Math.max(0,x+P)}px`)}if(C.bottom>o-i){const P=C.bottom-(o-i),x=parseFloat(t.style.bottom||"0");Number.isNaN(x)||(t.style.bottom=`${Math.max(0,x+P)}px`)}if(C.top<i){const P=i-C.top,x=parseFloat(t.style.top||"0");Number.isNaN(x)||(t.style.top=`${Math.max(0,x+P)}px`)}})}render(){return l`
1183
+ `}};Lo([a({type:String})],Mr.prototype,"_id",2);Lo([a({attribute:"data-value",type:String})],Mr.prototype,"value",1);Lo([a({type:Boolean})],Mr.prototype,"selected",2);Lo([a({type:Boolean})],Mr.prototype,"checked",2);Lo([a({attribute:"data-disabled",type:Boolean})],Mr.prototype,"disabled",2);Mr=Lo([p("pont-dropdown-menu-checkbox-item")],Mr);const Xa="closed";var Iv=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,tl=(e,t,r,n)=>{for(var o=n>1?void 0:n?Av(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Iv(t,r,o),o};let ai=class extends y{constructor(){super(),this.state=Xa,this.isOpen=!1,this.handleWindowChange=this.handleWindowChange.bind(this)}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof $t);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleWindowChange),window.addEventListener("scroll",this.handleWindowChange,!0)}disconnectedCallback(){window.removeEventListener("resize",this.handleWindowChange),window.removeEventListener("scroll",this.handleWindowChange,!0),super.disconnectedCallback()}handleWindowChange(){this.isOpen&&requestAnimationFrame(()=>this.positionContent())}updated(e){super.updated(e),this.state==="open"?(this.isOpen=!0,requestAnimationFrame(()=>this.positionContent())):this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}positionContent(){const e=this._dropdownMenu,t=this._containerElement,r=e==null?void 0:e._triggerElement;if(!e||!t||!r||!this.isOpen)return;const n=document.documentElement.clientWidth,o=document.documentElement.clientHeight,i=8,s=r.getBoundingClientRect();t.style.position="fixed",t.style.minWidth=`${Math.max(s.width,t.offsetWidth)}px`,t.style.maxWidth=`${Math.min(t.offsetWidth,n-i*2)}px`;let d=s.left,c=s.bottom;const m=t.getBoundingClientRect(),v=n-d>=m.width+i,b=s.right>=m.width+i,w=o-c>=m.height+i,_=s.top>=m.height+i;v||!b&&w?(t.style.left=`${d}px`,t.style.right="auto"):(t.style.left="auto",t.style.right=`${n-s.right}px`),w||!_&&v?(t.style.top=`${c}px`,t.style.bottom="auto"):(t.style.top="auto",t.style.bottom=`${o-s.top}px`),requestAnimationFrame(()=>{const C=t.getBoundingClientRect();if(C.right>n-i){const P=C.right-(n-i),x=parseFloat(t.style.left||"0");Number.isNaN(x)||(t.style.left=`${Math.max(0,x-P)}px`)}if(C.left<i){const P=i-C.left,x=parseFloat(t.style.left||"0");Number.isNaN(x)||(t.style.left=`${Math.max(0,x+P)}px`)}if(C.bottom>o-i){const P=C.bottom-(o-i),x=parseFloat(t.style.bottom||"0");Number.isNaN(x)||(t.style.bottom=`${Math.max(0,x+P)}px`)}if(C.top<i){const P=i-C.top,x=parseFloat(t.style.top||"0");Number.isNaN(x)||(t.style.top=`${Math.max(0,x+P)}px`)}})}render(){return l`
1184
1184
  <div
1185
1185
  data-slot="dropdown-menu-content"
1186
1186
  part="dropdown-menu-content"
1187
1187
  style="display: ${this.isOpen?"block":"none"};"
1188
1188
  class=${u(At.content,this.className)}
1189
1189
  ></div>
1190
- `}};tl([a({attribute:"data-state",type:String})],si.prototype,"state",2);tl([g()],si.prototype,"isOpen",2);si=tl([p("pont-dropdown-menu-content")],si);var Tv=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,Ii=(e,t,r,n)=>{for(var o=n>1?void 0:n?Dv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Tv(t,r,o),o};let un=class extends y{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`${this._hidden==="true"?h:l`
1190
+ `}};tl([a({attribute:"data-state",type:String})],ai.prototype,"state",2);tl([g()],ai.prototype,"isOpen",2);ai=tl([p("pont-dropdown-menu-content")],ai);var Tv=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,Ii=(e,t,r,n)=>{for(var o=n>1?void 0:n?Dv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Tv(t,r,o),o};let mn=class extends y{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`${this._hidden==="true"?h:l`
1191
1191
  <div
1192
1192
  rtgcmd-group
1193
1193
  part="dropdown-menu-group"
@@ -1200,7 +1200,7 @@
1200
1200
 
1201
1201
  <div rtgcmd-group-items role="group"></div>
1202
1202
  </div>
1203
- `}`}};Ii([a({type:String})],un.prototype,"heading",2);Ii([a({attribute:"id",type:String})],un.prototype,"_id",2);Ii([a({attribute:"aria-hidden",type:String})],un.prototype,"_hidden",2);un=Ii([p("pont-dropdown-menu-group")],un);var Lv=Object.defineProperty,Fv=Object.getOwnPropertyDescriptor,Fo=(e,t,r,n)=>{for(var o=n>1?void 0:n?Fv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Lv(t,r,o),o};let Nr=class extends y{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof $t);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l` ${this._hidden==="true"?h:l`
1203
+ `}`}};Ii([a({type:String})],mn.prototype,"heading",2);Ii([a({attribute:"id",type:String})],mn.prototype,"_id",2);Ii([a({attribute:"aria-hidden",type:String})],mn.prototype,"_hidden",2);mn=Ii([p("pont-dropdown-menu-group")],mn);var Lv=Object.defineProperty,Fv=Object.getOwnPropertyDescriptor,Fo=(e,t,r,n)=>{for(var o=n>1?void 0:n?Fv(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Lv(t,r,o),o};let Nr=class extends y{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof $t);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l` ${this._hidden==="true"?h:l`
1204
1204
  <div
1205
1205
  rtgcmd-item
1206
1206
  part="dropdown-menu-item"
@@ -1271,7 +1271,7 @@
1271
1271
  <div data-slot="empty-media" data-variant="${this.variant}"></div>
1272
1272
  `}};th([a({type:String})],ra.prototype,"variant",2);ra=th([p("pont-empty-media")],ra);var rb=Object.getOwnPropertyDescriptor,ob=(e,t,r,n)=>{for(var o=n>1?void 0:n?rb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Md=class extends f{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="empty-title"]')}firstUpdated(){const e=this._titleSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="empty-title"></div>`}};Md=ob([p("pont-empty-title")],Md);var nb=Object.getOwnPropertyDescriptor,ib=(e,t,r,n)=>{for(var o=n>1?void 0:n?nb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Nd=class extends f{createRenderRoot(){return this}get _setSlot(){return this.querySelector('[data-slot="field-set"]')}firstUpdated(){const e=this._setSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<fieldset data-slot="field-set"></fieldset>`}};Nd=ib([p("pont-field-set")],Nd);var sb=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,eh=(e,t,r,n)=>{for(var o=n>1?void 0:n?ab(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&sb(t,r,o),o};let oa=class extends f{constructor(){super(...arguments),this.variant="legend"}createRenderRoot(){return this}get _legendSlot(){return this.querySelector('[data-slot="field-legend"]')}firstUpdated(){const e=this._legendSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1273
1273
  <legend data-slot="field-legend" data-variant=${this.variant}></legend>
1274
- `}};eh([a({type:String})],oa.prototype,"variant",2);oa=eh([p("pont-field-legend")],oa);var lb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,rh=(e,t,r,n)=>{for(var o=n>1?void 0:n?db(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&lb(t,r,o),o};let na=class extends f{constructor(){super(...arguments),this.type="field"}createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="field-group"]')}firstUpdated(){const e=this._groupSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="field-group" data-type=${this.type}></div>`}};rh([a({type:String})],na.prototype,"type",2);na=rh([p("pont-field-group")],na);var cb=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,Ai=(e,t,r,n)=>{for(var o=n>1?void 0:n?pb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&cb(t,r,o),o};let mn=class extends f{constructor(){super(...arguments),this.orientation="vertical"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="field"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1274
+ `}};eh([a({type:String})],oa.prototype,"variant",2);oa=eh([p("pont-field-legend")],oa);var lb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,rh=(e,t,r,n)=>{for(var o=n>1?void 0:n?db(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&lb(t,r,o),o};let na=class extends f{constructor(){super(...arguments),this.type="field"}createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="field-group"]')}firstUpdated(){const e=this._groupSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="field-group" data-type=${this.type}></div>`}};rh([a({type:String})],na.prototype,"type",2);na=rh([p("pont-field-group")],na);var cb=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,Ai=(e,t,r,n)=>{for(var o=n>1?void 0:n?pb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&cb(t,r,o),o};let gn=class extends f{constructor(){super(...arguments),this.orientation="vertical"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="field"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1275
1275
  <div
1276
1276
  data-slot="field"
1277
1277
  data-orientation=${this.orientation}
@@ -1279,7 +1279,7 @@
1279
1279
  data-invalid=${this.invalid?"true":h}
1280
1280
  role="group"
1281
1281
  ></div>
1282
- `}};Ai([a({type:String})],mn.prototype,"orientation",2);Ai([a({type:Boolean})],mn.prototype,"disabled",2);Ai([a({type:Boolean})],mn.prototype,"invalid",2);mn=Ai([p("pont-field")],mn);var hb=Object.getOwnPropertyDescriptor,ub=(e,t,r,n)=>{for(var o=n>1?void 0:n?hb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Bd=class extends f{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="field-content"]')}firstUpdated(){const e=this._contentSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="field-content"></div>`}};Bd=ub([p("pont-field-content")],Bd);var mb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,oh=(e,t,r,n)=>{for(var o=n>1?void 0:n?gb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&mb(t,r,o),o};let ia=class extends f{get _rootSlot(){return this.querySelector('[data-slot="label"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<label data-slot="label" for=${this.for??h}></label>`}};oh([a({type:String})],ia.prototype,"for",2);ia=oh([p("pont-label")],ia);var fb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,nh=(e,t,r,n)=>{for(var o=n>1?void 0:n?vb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&fb(t,r,o),o};let sa=class extends f{createRenderRoot(){return this}get _labelSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){const e=this._labelSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1282
+ `}};Ai([a({type:String})],gn.prototype,"orientation",2);Ai([a({type:Boolean})],gn.prototype,"disabled",2);Ai([a({type:Boolean})],gn.prototype,"invalid",2);gn=Ai([p("pont-field")],gn);var hb=Object.getOwnPropertyDescriptor,ub=(e,t,r,n)=>{for(var o=n>1?void 0:n?hb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Bd=class extends f{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="field-content"]')}firstUpdated(){const e=this._contentSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="field-content"></div>`}};Bd=ub([p("pont-field-content")],Bd);var mb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,oh=(e,t,r,n)=>{for(var o=n>1?void 0:n?gb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&mb(t,r,o),o};let ia=class extends f{get _rootSlot(){return this.querySelector('[data-slot="label"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return l`<label data-slot="label" for=${this.for??h}></label>`}};oh([a({type:String})],ia.prototype,"for",2);ia=oh([p("pont-label")],ia);var fb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,nh=(e,t,r,n)=>{for(var o=n>1?void 0:n?vb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&fb(t,r,o),o};let sa=class extends f{createRenderRoot(){return this}get _labelSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){const e=this._labelSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1283
1283
  <pont-label data-slot="field-label" for=${this.for??h}></pont-label>
1284
1284
  `}};nh([a({type:String})],sa.prototype,"for",2);sa=nh([p("pont-field-label")],sa);var bb=Object.getOwnPropertyDescriptor,yb=(e,t,r,n)=>{for(var o=n>1?void 0:n?bb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Ud=class extends f{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){const e=this._titleSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="field-label"></div>`}};Ud=yb([p("pont-field-title")],Ud);var _b=Object.getOwnPropertyDescriptor,wb=(e,t,r,n)=>{for(var o=n>1?void 0:n?_b(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let jd=class extends f{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="field-description"]')}firstUpdated(){const e=this._descriptionSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<p data-slot="field-description"></p>`}};jd=wb([p("pont-field-description")],jd);var $b=Object.getOwnPropertyDescriptor,Pb=(e,t,r,n)=>{for(var o=n>1?void 0:n?$b(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let qd=class extends f{constructor(){super(...arguments),this._observer=null}createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="field-separator"]')}get _contentSlot(){return this.querySelector('[data-slot="field-separator-content"]')}_getExternalNodes(){const e=this._separatorSlot;return Array.from(this.childNodes).filter(t=>{var r;return!(t===e||t.nodeType===Node.COMMENT_NODE||t.nodeType===Node.TEXT_NODE&&!((r=t.textContent)!=null&&r.trim()))})}_processChildren(){const e=this._separatorSlot;if(!e)return;const t=this._getExternalNodes();if(t.length>0){let r=this._contentSlot;r||(r=document.createElement("span"),r.setAttribute("data-slot","field-separator-content"),e.appendChild(r)),t.forEach(n=>r.appendChild(n)),e.setAttribute("data-content","true")}else{const r=this._contentSlot;r&&e.removeChild(r),e.setAttribute("data-content","false")}}firstUpdated(){this._processChildren(),this._observer=new MutationObserver(()=>{this._observer.disconnect(),this._processChildren(),this._observer.observe(this,{childList:!0})}),this._observer.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._observer)==null||e.disconnect(),this._observer=null}render(){return l`
1285
1285
  <div data-slot="field-separator">
@@ -1302,7 +1302,7 @@
1302
1302
  * @license
1303
1303
  * Copyright 2021 Google LLC
1304
1304
  * SPDX-License-Identifier: BSD-3-Clause
1305
- */let ai=class{constructor(t,r,n,o){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,s)),this.unsubscribe=s},this.host=t,r.context!==void 0){const i=r;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=r,this.callback=n,this.subscribe=o??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new sh(this.context,this.host,this.t,this.subscribe))}};/**
1305
+ */let li=class{constructor(t,r,n,o){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,s)),this.unsubscribe=s},this.host=t,r.context!==void 0){const i=r;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=r,this.callback=n,this.subscribe=o??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new sh(this.context,this.host,this.t,this.subscribe))}};/**
1306
1306
  * @license
1307
1307
  * Copyright 2021 Google LLC
1308
1308
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1318,51 +1318,51 @@
1318
1318
  * @license
1319
1319
  * Copyright 2022 Google LLC
1320
1320
  * SPDX-License-Identifier: BSD-3-Clause
1321
- */function tt({context:e,subscribe:t}){return(r,n)=>{typeof n=="object"?n.addInitializer((function(){new ai(this,{context:e,callback:o=>{r.set.call(this,o)},subscribe:t})})):r.constructor.addInitializer((o=>{new ai(o,{context:e,callback:i=>{o[n]=i},subscribe:t})}))}}class ah{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:t,defaultValue:r="",validator:n}){t in this.values||(this.values[t]=r),n&&(this.validators[t]=n)}unregisterField(t){delete this.values[t],delete this.errors[t],delete this.validators[t]}setValue(t,r){t in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${t}"`),this.values[t]=r,this.validateField(t),this.notify()}getValue(t){return this.values[t]}getError(t){return this.errors[t]??null}validateField(t){const r=this.validators[t],n=this.values[t],o=r?r(n):null;return this.errors[t]=o,this.notify(),!o}validateAll(){let t=!0;return Object.keys(this.validators).forEach(r=>{this.validateField(r)||(t=!1)}),t}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}notify(){this.subscribers.forEach(t=>t())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}}const Cn="pont-form-context",as=new WeakMap,Ob=xo(class extends Ap{render(e){return h}update(e,[t]){var n;const r=t!==this.G;return r&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(n=e.options)==null?void 0:n.host,this.rt(this.ct=e.element)),h}rt(e){if(this.G!==void 0)if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let r=as.get(t);r===void 0&&(r=new WeakMap,as.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=as.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Rb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,lh=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ib(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Rb(t,r,o),o};let la=class extends y{constructor(){super(...arguments),this.form=new ah,this.handleSubmit=e=>{if(e.preventDefault(),this.form.validateAll()){const r=this.form.getValues();alert(JSON.stringify(r,null,2))}}}createRenderRoot(){return this}async firstUpdated(e){await this.updateComplete,Array.from(this.childNodes).forEach(t=>{t!==this.formElement&&this.formElement.appendChild(t)}),this.querySelectorAll("pont-form-field").forEach(t=>{const r=t.getAttribute("name"),n=t.validators,o=n==null?void 0:n[0];this.form.registerField({name:r,validator:o})})}render(){return l`
1321
+ */function rt({context:e,subscribe:t}){return(r,n)=>{typeof n=="object"?n.addInitializer((function(){new li(this,{context:e,callback:o=>{r.set.call(this,o)},subscribe:t})})):r.constructor.addInitializer((o=>{new li(o,{context:e,callback:i=>{o[n]=i},subscribe:t})}))}}class ah{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:t,defaultValue:r="",validator:n}){t in this.values||(this.values[t]=r),n&&(this.validators[t]=n)}unregisterField(t){delete this.values[t],delete this.errors[t],delete this.validators[t]}setValue(t,r){t in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${t}"`),this.values[t]=r,this.validateField(t),this.notify()}getValue(t){return this.values[t]}getError(t){return this.errors[t]??null}validateField(t){const r=this.validators[t],n=this.values[t],o=r?r(n):null;return this.errors[t]=o,this.notify(),!o}validateAll(){let t=!0;return Object.keys(this.validators).forEach(r=>{this.validateField(r)||(t=!1)}),t}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}notify(){this.subscribers.forEach(t=>t())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}}const Sn="pont-form-context",as=new WeakMap,Ob=xo(class extends Ap{render(e){return h}update(e,[t]){var n;const r=t!==this.G;return r&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(n=e.options)==null?void 0:n.host,this.rt(this.ct=e.element)),h}rt(e){if(this.G!==void 0)if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let r=as.get(t);r===void 0&&(r=new WeakMap,as.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=as.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Rb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,lh=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ib(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Rb(t,r,o),o};let la=class extends y{constructor(){super(...arguments),this.form=new ah,this.handleSubmit=e=>{if(e.preventDefault(),this.form.validateAll()){const r=this.form.getValues();alert(JSON.stringify(r,null,2))}}}createRenderRoot(){return this}async firstUpdated(e){await this.updateComplete,Array.from(this.childNodes).forEach(t=>{t!==this.formElement&&this.formElement.appendChild(t)}),this.querySelectorAll("pont-form-field").forEach(t=>{const r=t.getAttribute("name"),n=t.validators,o=n==null?void 0:n[0];this.form.registerField({name:r,validator:o})})}render(){return l`
1322
1322
  <form
1323
1323
  part="form-controller"
1324
1324
  class="${u("",this.className)}"
1325
1325
  @submit=${this.handleSubmit}
1326
1326
  ${Ob(e=>this.formElement=e)}
1327
1327
  ></form>
1328
- `}};lh([g(),Kt({context:Cn})],la.prototype,"form",2);la=lh([p("pont-form-controller")],la);const dh="pont-form-item-context",Ab="pont-space-form-space-y",Tb="pont-text-form-description-font pont-text-form-description-color-text pont-mt-form-description-space-mt",Db="pont-space-y-form-field-space-y",Lb="pont-space-y-form-item-space-y",Fb="pont-text-form-label-font pont-mb-form-label-space-mb pont-font-form-label-font-weight pont-peer-disabled:pont-cursor-not-allowed peer-disabled:pont-opacity-form-label-opacity-peer-disabled",kb="pont-text-form-label-color-text-error",Mb="pont-text-form-message-font-size pont-text-form-message-color-text";var Nb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,ch=(e,t,r,n)=>{for(var o=n>1?void 0:n?Bb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Nb(t,r,o),o};let da=class extends y{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return l`
1328
+ `}};lh([g(),Kt({context:Sn})],la.prototype,"form",2);la=lh([p("pont-form-controller")],la);const dh="pont-form-item-context",Ab="pont-space-form-space-y",Tb="pont-text-form-description-font pont-text-form-description-color-text pont-mt-form-description-space-mt",Db="pont-space-y-form-field-space-y",Lb="pont-space-y-form-item-space-y",Fb="pont-text-form-label-font pont-mb-form-label-space-mb pont-font-form-label-font-weight pont-peer-disabled:pont-cursor-not-allowed peer-disabled:pont-opacity-form-label-opacity-peer-disabled",kb="pont-text-form-label-color-text-error",Mb="pont-text-form-message-font-size pont-text-form-message-color-text";var Nb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,ch=(e,t,r,n)=>{for(var o=n>1?void 0:n?Bb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Nb(t,r,o),o};let da=class extends y{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return l`
1329
1329
  <p
1330
1330
  id="${this.itemContext.id}-description"
1331
1331
  part="form-description"
1332
1332
  class="${u(Tb,this.className)}"
1333
1333
  ></p>
1334
- `}};ch([tt({context:dh})],da.prototype,"itemContext",2);da=ch([p("pont-form-description")],da);const Ub="pont-form-field-context";var jb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,ko=(e,t,r,n)=>{for(var o=n>1?void 0:n?qb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jb(t,r,o),o};let He=class extends y{constructor(){super(...arguments),this.name="",this.validators=[],this.defaultValue="",this.fieldName="",this.registered=!1}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-field]")}updated(){var t;if(this.registered||!this.form||!this.name)return;this.form.registerField({name:this.name,validator:r=>{for(const n of this.validators??[]){const o=n(r);if(o)return o}return null},defaultValue:this.defaultValue}),this.registered=!0,this.moveLightDomChildrenInto(this._container);const e=(t=this._container)==null?void 0:t.querySelector("pont-input, input, textarea, select");e&&(e.value=this.defaultValue??"",this.form.setValue(this.name,this.defaultValue??""),e.addEventListener("input",()=>{this.form.setValue(this.name,e.value)}))}disconnectedCallback(){var e;super.disconnectedCallback(),this.isConnected||(e=this.form)==null||e.unregisterField(this.name)}render(){return l`<div
1334
+ `}};ch([rt({context:dh})],da.prototype,"itemContext",2);da=ch([p("pont-form-description")],da);const Ub="pont-form-field-context";var jb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,ko=(e,t,r,n)=>{for(var o=n>1?void 0:n?qb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jb(t,r,o),o};let He=class extends y{constructor(){super(...arguments),this.name="",this.validators=[],this.defaultValue="",this.fieldName="",this.registered=!1}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-field]")}updated(){var t;if(this.registered||!this.form||!this.name)return;this.form.registerField({name:this.name,validator:r=>{for(const n of this.validators??[]){const o=n(r);if(o)return o}return null},defaultValue:this.defaultValue}),this.registered=!0,this.moveLightDomChildrenInto(this._container);const e=(t=this._container)==null?void 0:t.querySelector("pont-input, input, textarea, select");e&&(e.value=this.defaultValue??"",this.form.setValue(this.name,this.defaultValue??""),e.addEventListener("input",()=>{this.form.setValue(this.name,e.value)}))}disconnectedCallback(){var e;super.disconnectedCallback(),this.isConnected||(e=this.form)==null||e.unregisterField(this.name)}render(){return l`<div
1335
1335
  part="form-field"
1336
1336
  class="${u(Db,this.className)}"
1337
- ></div>`}};ko([tt({context:Cn})],He.prototype,"form",2);ko([a({type:String})],He.prototype,"name",2);ko([a({type:Array})],He.prototype,"validators",2);ko([a({type:String})],He.prototype,"defaultValue",2);ko([Kt({context:Ub})],He.prototype,"fieldName",2);He=ko([p("pont-form-field")],He);var zb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,ph=(e,t,r,n)=>{for(var o=n>1?void 0:n?Vb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&zb(t,r,o),o};let ca=class extends y{constructor(){super(...arguments),this._generatedId=crypto.randomUUID(),this.itemContext={id:this._generatedId}}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-item]")}firstUpdated(){this.moveLightDomChildrenInto(this._container)}render(){return l`<div
1337
+ ></div>`}};ko([rt({context:Sn})],He.prototype,"form",2);ko([a({type:String})],He.prototype,"name",2);ko([a({type:Array})],He.prototype,"validators",2);ko([a({type:String})],He.prototype,"defaultValue",2);ko([Kt({context:Ub})],He.prototype,"fieldName",2);He=ko([p("pont-form-field")],He);var zb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,ph=(e,t,r,n)=>{for(var o=n>1?void 0:n?Vb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&zb(t,r,o),o};let ca=class extends y{constructor(){super(...arguments),this._generatedId=crypto.randomUUID(),this.itemContext={id:this._generatedId}}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-item]")}firstUpdated(){this.moveLightDomChildrenInto(this._container)}render(){return l`<div
1338
1338
  part="form-item"
1339
1339
  class="${u(Lb,this.className)}"
1340
- ></div>`}};ph([Kt({context:dh})],ca.prototype,"itemContext",2);ca=ph([p("pont-form-item")],ca);var Hb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,el=(e,t,r,n)=>{for(var o=n>1?void 0:n?Gb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Hb(t,r,o),o};let li=class extends y{constructor(){super(...arguments),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof He);)e=e.parentElement;return e}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();const e=this._field.name;this.hasError=!!this.form.getError(e),this.unsubscribe=this.form.subscribe(()=>{const t=this.form.getError(e);this.hasError=!!t,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return l`
1340
+ ></div>`}};ph([Kt({context:dh})],ca.prototype,"itemContext",2);ca=ph([p("pont-form-item")],ca);var Hb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,el=(e,t,r,n)=>{for(var o=n>1?void 0:n?Gb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Hb(t,r,o),o};let di=class extends y{constructor(){super(...arguments),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof He);)e=e.parentElement;return e}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();const e=this._field.name;this.hasError=!!this.form.getError(e),this.unsubscribe=this.form.subscribe(()=>{const t=this.form.getError(e);this.hasError=!!t,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return l`
1341
1341
  <label
1342
1342
  part="form-label"
1343
1343
  for="${this._field.name}"
1344
1344
  class="${u(Fb,this.hasError&&kb,this.className)}"
1345
1345
  ></label>
1346
- `}};el([tt({context:Cn})],li.prototype,"form",2);el([g()],li.prototype,"hasError",2);li=el([p("pont-form-label")],li);var Kb=Object.defineProperty,Wb=Object.getOwnPropertyDescriptor,rl=(e,t,r,n)=>{for(var o=n>1?void 0:n?Wb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Kb(t,r,o),o};let di=class extends f{constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof He);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?l`<p
1346
+ `}};el([rt({context:Sn})],di.prototype,"form",2);el([g()],di.prototype,"hasError",2);di=el([p("pont-form-label")],di);var Kb=Object.defineProperty,Wb=Object.getOwnPropertyDescriptor,rl=(e,t,r,n)=>{for(var o=n>1?void 0:n?Wb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Kb(t,r,o),o};let ci=class extends f{constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof He);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?l`<p
1347
1347
  id="${this._field.name}-message"
1348
1348
  class="${u(Mb,this.className)}"
1349
1349
  >
1350
1350
  ${this.error}
1351
- </p>`:null}};rl([tt({context:Cn})],di.prototype,"form",2);rl([g()],di.prototype,"error",2);di=rl([p("pont-form-message")],di);var Yb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,ol=(e,t,r,n)=>{for(var o=n>1?void 0:n?Qb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Yb(t,r,o),o};let ci=class extends y{constructor(){super(...arguments),this.form=new ah,this.onSubmit=()=>{},this.handleSubmit=t=>{t.preventDefault(),this.form.validateAll()&&this.onSubmit(this.form.getValues())}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return l`
1351
+ </p>`:null}};rl([rt({context:Sn})],ci.prototype,"form",2);rl([g()],ci.prototype,"error",2);ci=rl([p("pont-form-message")],ci);var Yb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,ol=(e,t,r,n)=>{for(var o=n>1?void 0:n?Qb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Yb(t,r,o),o};let pi=class extends y{constructor(){super(...arguments),this.form=new ah,this.onSubmit=()=>{},this.handleSubmit=t=>{t.preventDefault(),this.form.validateAll()&&this.onSubmit(this.form.getValues())}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return l`
1352
1352
  <form
1353
1353
  part="form-root"
1354
1354
  id="pont-form-root"
1355
1355
  @submit=${this.handleSubmit}
1356
1356
  class="${u(Ab,this.className)}"
1357
1357
  ></form>
1358
- `}};ol([Kt({context:Cn})],ci.prototype,"form",2);ol([a({type:Function})],ci.prototype,"onSubmit",2);ci=ol([p("pont-form-root")],ci);const nl={root:[""],trigger:[""],content:["pont-fixed pont-z-50","pont-p-hover-card-content-space-p","pont-w-hover-card-content-space-w","pont-text-hover-card-content-color-text","pont-bg-hover-card-content-color-bg","pont-rounded-hover-card-content-radius pont-border-hover-card-content-width-border pont-border-hover-card-content-color-border pont-outline-hidden","pont-shadow-hover-card-content-shadow","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0 data-[state=open]:pont-zoom-in-95","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0 data-[state=closed]:pont-zoom-out-95","data-[side=bottom]:pont-slide-in-from-top-2 data-[side=left]:pont-slide-in-from-right-2 data-[side=right]:pont-slide-in-from-left-2 data-[side=top]:pont-slide-in-from-bottom-2"]};var Zb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,il=(e,t,r,n)=>{for(var o=n>1?void 0:n?Jb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Zb(t,r,o),o};let pi=class extends y{constructor(){super(...arguments),this.state="closed",this.isOpen=!1,this.onStateChange=e=>{const t=e.detail.isOpen;this.state=t?"open":"closed"},this.handlePointerLeaveCheck=e=>{this.contains(e.relatedTarget)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("hover-card-state-change",this.onStateChange),this.addEventListener("mouseenter",this.handlePointerLeaveCheck),this.addEventListener("mouseleave",this.handlePointerLeaveCheck)}disconnectedCallback(){document.removeEventListener("hover-card-state-change",this.onStateChange),this.removeEventListener("mouseenter",this.handlePointerLeaveCheck),this.removeEventListener("mouseleave",this.handlePointerLeaveCheck),super.disconnectedCallback()}updated(e){super.updated(e),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#pont-hover-card-content"))}render(){return l`
1358
+ `}};ol([Kt({context:Sn})],pi.prototype,"form",2);ol([a({type:Function})],pi.prototype,"onSubmit",2);pi=ol([p("pont-form-root")],pi);const nl={root:[""],trigger:[""],content:["pont-fixed pont-z-50","pont-p-hover-card-content-space-p","pont-w-hover-card-content-space-w","pont-text-hover-card-content-color-text","pont-bg-hover-card-content-color-bg","pont-rounded-hover-card-content-radius pont-border-hover-card-content-width-border pont-border-hover-card-content-color-border pont-outline-hidden","pont-shadow-hover-card-content-shadow","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0 data-[state=open]:pont-zoom-in-95","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0 data-[state=closed]:pont-zoom-out-95","data-[side=bottom]:pont-slide-in-from-top-2 data-[side=left]:pont-slide-in-from-right-2 data-[side=right]:pont-slide-in-from-left-2 data-[side=top]:pont-slide-in-from-bottom-2"]};var Zb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,il=(e,t,r,n)=>{for(var o=n>1?void 0:n?Jb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Zb(t,r,o),o};let hi=class extends y{constructor(){super(...arguments),this.state="closed",this.isOpen=!1,this.onStateChange=e=>{const t=e.detail.isOpen;this.state=t?"open":"closed"},this.handlePointerLeaveCheck=e=>{this.contains(e.relatedTarget)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("hover-card-state-change",this.onStateChange),this.addEventListener("mouseenter",this.handlePointerLeaveCheck),this.addEventListener("mouseleave",this.handlePointerLeaveCheck)}disconnectedCallback(){document.removeEventListener("hover-card-state-change",this.onStateChange),this.removeEventListener("mouseenter",this.handlePointerLeaveCheck),this.removeEventListener("mouseleave",this.handlePointerLeaveCheck),super.disconnectedCallback()}updated(e){super.updated(e),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#pont-hover-card-content"))}render(){return l`
1359
1359
  <div
1360
1360
  id="pont-hover-card-content"
1361
1361
  part="hover-card-content"
1362
1362
  class=${u(nl.content,this.className)}
1363
1363
  style="display: ${this.isOpen?"block":"none"};"
1364
1364
  ></div>
1365
- `}};il([a({attribute:"data-state",type:String})],pi.prototype,"state",2);il([g()],pi.prototype,"isOpen",2);pi=il([p("pont-hover-card-content")],pi);var Xb=Object.getOwnPropertyDescriptor,ty=(e,t,r,n)=>{for(var o=n>1?void 0:n?Xb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Vd=class extends y{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return l`
1365
+ `}};il([a({attribute:"data-state",type:String})],hi.prototype,"state",2);il([g()],hi.prototype,"isOpen",2);hi=il([p("pont-hover-card-content")],hi);var Xb=Object.getOwnPropertyDescriptor,ty=(e,t,r,n)=>{for(var o=n>1?void 0:n?Xb(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Vd=class extends y{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return l`
1366
1366
  <div
1367
1367
  id="pont-hover-card-trigger"
1368
1368
  part="pont-hover-card-trigger"
@@ -1376,14 +1376,14 @@
1376
1376
  part="hover-card"
1377
1377
  class=${u(nl.root,this.className)}
1378
1378
  ></div>
1379
- `}};hh([g()],pa.prototype,"isOpen",2);pa=hh([p("pont-hover-card")],pa);var oy=Object.getOwnPropertyDescriptor,ny=(e,t,r,n)=>{for(var o=n>1?void 0:n?oy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Hd=class extends f{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="input-group"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="input-group" role="group"></div>`}};Hd=ny([p("pont-input-group")],Hd);var iy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,sl=(e,t,r,n)=>{for(var o=n>1?void 0:n?sy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&iy(t,r,o),o};let hi=class extends f{constructor(){super(...arguments),this.align="inline-start"}createRenderRoot(){return this}get _addonSlot(){return this.querySelector('[data-slot="input-group-addon"]')}firstUpdated(){const e=this._addonSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1379
+ `}};hh([g()],pa.prototype,"isOpen",2);pa=hh([p("pont-hover-card")],pa);var oy=Object.getOwnPropertyDescriptor,ny=(e,t,r,n)=>{for(var o=n>1?void 0:n?oy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Hd=class extends f{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="input-group"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="input-group" role="group"></div>`}};Hd=ny([p("pont-input-group")],Hd);var iy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,sl=(e,t,r,n)=>{for(var o=n>1?void 0:n?sy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&iy(t,r,o),o};let ui=class extends f{constructor(){super(...arguments),this.align="inline-start"}createRenderRoot(){return this}get _addonSlot(){return this.querySelector('[data-slot="input-group-addon"]')}firstUpdated(){const e=this._addonSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1380
1380
  <div
1381
1381
  data-slot="input-group-addon"
1382
1382
  data-align="${this.align}"
1383
1383
  ?data-border="${this.border}"
1384
1384
  role="group"
1385
1385
  ></div>
1386
- `}};sl([a({type:String})],hi.prototype,"align",2);sl([a({type:Boolean})],hi.prototype,"border",2);hi=sl([p("pont-input-group-addon")],hi);var ay=Object.defineProperty,ly=Object.getOwnPropertyDescriptor,Ze=(e,t,r,n)=>{for(var o=n>1?void 0:n?ly(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&ay(t,r,o),o};let Pe=class extends f{constructor(){super(...arguments),this.variant="ghost",this.size="xs",this.type="button"}createRenderRoot(){return this}get _buttonSlot(){return this.querySelector('[data-slot="input-group-button"]')}firstUpdated(){const e=this._buttonSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1386
+ `}};sl([a({type:String})],ui.prototype,"align",2);sl([a({type:Boolean})],ui.prototype,"border",2);ui=sl([p("pont-input-group-addon")],ui);var ay=Object.defineProperty,ly=Object.getOwnPropertyDescriptor,Ze=(e,t,r,n)=>{for(var o=n>1?void 0:n?ly(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&ay(t,r,o),o};let Pe=class extends f{constructor(){super(...arguments),this.variant="ghost",this.size="xs",this.type="button"}createRenderRoot(){return this}get _buttonSlot(){return this.querySelector('[data-slot="input-group-button"]')}firstUpdated(){const e=this._buttonSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1387
1387
  <pont-button
1388
1388
  data-slot="input-group-button"
1389
1389
  .variant=${this.variant}
@@ -1509,7 +1509,7 @@
1509
1509
  .onfocus=${this.onFocus}
1510
1510
  .onblur=${this.onBlur}
1511
1511
  ></pont-textarea>
1512
- `}};gt([a({type:String})],lt.prototype,"autocomplete",2);gt([a({type:Number})],lt.prototype,"cols",2);gt([a({type:Boolean})],lt.prototype,"disabled",2);gt([a({type:String})],lt.prototype,"form",2);gt([a({type:String})],lt.prototype,"id",2);gt([a({type:Boolean})],lt.prototype,"invalid",2);gt([a({type:Number})],lt.prototype,"maxlength",2);gt([a({type:Number})],lt.prototype,"minlength",2);gt([a({type:String})],lt.prototype,"name",2);gt([a({type:String})],lt.prototype,"placeholder",2);gt([a({type:Boolean})],lt.prototype,"readonly",2);gt([a({type:Boolean})],lt.prototype,"required",2);gt([a({type:Number})],lt.prototype,"rows",2);gt([a({type:String})],lt.prototype,"wrap",2);gt([a({type:String})],lt.prototype,"value",2);gt([a({attribute:!1})],lt.prototype,"onInput",2);gt([a({attribute:!1})],lt.prototype,"onChange",2);gt([a({attribute:!1})],lt.prototype,"onFocus",2);gt([a({attribute:!1})],lt.prototype,"onBlur",2);lt=gt([p("pont-input-group-textarea")],lt);var yy=Object.defineProperty,_y=Object.getOwnPropertyDescriptor,pt=(e,t,r,n)=>{for(var o=n>1?void 0:n?_y(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&yy(t,r,o),o};let nt=class extends f{constructor(){super(),this.autocomplete="one-time-code",this.id="",this.inputmode="numeric",this._activeSlot=null,this._hasFocus=!1,this._value="",this._children=[],this._handleBlur=e=>{var t;this._hasFocus=!1,this._activeSlot=null,this._sync(),this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onBlur)==null||t.call(this,e)},this._handleFocus=e=>{var t;this._hasFocus=!0,this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot()),this._sync(),this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onFocus)==null||t.call(this,e)},this._handleKeyDown=e=>{if(this.disabled||!this._hasFocus)return;this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot());const t=e.key,r=this._currentValue??"";if(t==="ArrowLeft"){e.preventDefault(),this._activeSlot=this._clampIndex(this._activeSlot-1),this._sync();return}if(t==="ArrowRight"){e.preventDefault(),this._activeSlot=this._clampIndex(this._activeSlot+1),this._sync();return}if(t==="Home"){e.preventDefault(),this._activeSlot=0,this._sync();return}if(t==="End"){e.preventDefault(),this._activeSlot=Math.max(0,r.length-1),this._sync();return}if(t==="Backspace"){e.preventDefault(),this._deleteChar();return}if(t==="Delete"){if(e.preventDefault(),this._activeSlot!==null){const o=r.split("");o[this._activeSlot]="",this._updateValue(o.join("")),this._sync()}return}if(e.ctrlKey||e.metaKey||t.length!==1)return;const n=this._regex();n&&!n.test(t)||(e.preventDefault(),this._insertChar(t))},this._handlePaste=e=>{var c,m;if(this.disabled)return;e.preventDefault();let t=((c=e.clipboardData)==null?void 0:c.getData("text"))??"";this.pasteTransformer&&(t=this.pasteTransformer(t));const r=this._regex(),n=Array.from(t).filter(v=>r?r.test(v):!0);if(!n.length)return;const o=(this._currentValue??"").split("").slice(0,this.maxlength);for(;o.length<this.maxlength;)o.push("");let s=this._activeSlot??this._computeInitialActiveSlot();for(const v of n){if(s>=this.maxlength)break;o[s]=v,s++}const d=o.join("");this._updateValue(d),this._activeSlot=Math.min(s,this.maxlength-1),this._checkComplete(),this._sync(),(m=this.onPaste)==null||m.call(this,e)},this._children=Array.from(this.childNodes)}createRenderRoot(){return this}get _containerSlot(){return this.querySelector('[data-slot="input-otp-container"]')}get _wrapperSlot(){return this.querySelector('[data-slot="input-otp-wrapper"]')}get _slots(){return Array.from(this.querySelectorAll("pont-input-otp-slot"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._value}_inputEl(){return this.querySelector('[data-slot="input-otp"]')}_regex(){return this.pattern?new RegExp(this.pattern):null}_clampIndex(e){return Math.max(0,Math.min(e,this.maxlength-1))}_computeInitialActiveSlot(){const e=(this._currentValue??"").length;return e>=this.maxlength?this.maxlength-1:e}_createCaret(){const e=document.createElement("div");e.dataset.slot="input-otp-slot-caret-wrapper";const t=document.createElement("div");return t.dataset.slot="input-otp-slot-caret",e.appendChild(t),e}_sync(){const e=this._currentValue??"";this._slots.forEach(t=>{const r=t._slotSlot;if(!r)return;const n=e[t.index]??"",o=this._hasFocus&&!this.disabled&&t.index===this._activeSlot;r.dataset.state=o?"active":"inactive",n?r.textContent=n:r.textContent="";const i=o&&!n,s=r.querySelector('[data-slot="input-otp-caret-wrapper"]');i&&!s&&r.appendChild(this._createCaret()),!i&&s&&s.remove()})}_updateValue(e){var t;this._isControlled||(this._value=e),(t=this.onChange)==null||t.call(this,e)}_checkComplete(){var e,t;((e=this._currentValue)==null?void 0:e.length)===this.maxlength&&((t=this.onComplete)==null||t.call(this,this._currentValue))}_insertChar(e){if(this._activeSlot===null)return;const t=this._activeSlot,r=(this._currentValue??"").split("");r[t]=e;const n=r.join("").slice(0,this.maxlength);this._updateValue(n),this._activeSlot=this._clampIndex(this._activeSlot+1),this._checkComplete()}_deleteChar(){if(this._activeSlot===null)return;let e=this._activeSlot;const t=(this._currentValue??"").split("");e>0&&!t[e]&&e--,t[e]="",this._activeSlot=e,this._updateValue(t.join(""))}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id")),e.has("value")&&this._isControlled&&(this._value=this.value??""),this._sync()}firstUpdated(){this._inputId=this.id,this.removeAttribute("id"),this._value=this.value??this.defaultValue??"";const e=this._containerSlot,t=this._wrapperSlot;!e||!t||(this._children.forEach(r=>{e.insertBefore(r,t)}),this.addEventListener("pont-input-otp-slot:focus",r=>{var o;if(this.disabled)return;const{index:n}=r.detail;this._activeSlot=n,this._hasFocus=!0,(o=this._inputEl())==null||o.focus(),this._sync()}))}render(){return l`
1512
+ `}};gt([a({type:String})],lt.prototype,"autocomplete",2);gt([a({type:Number})],lt.prototype,"cols",2);gt([a({type:Boolean})],lt.prototype,"disabled",2);gt([a({type:String})],lt.prototype,"form",2);gt([a({type:String})],lt.prototype,"id",2);gt([a({type:Boolean})],lt.prototype,"invalid",2);gt([a({type:Number})],lt.prototype,"maxlength",2);gt([a({type:Number})],lt.prototype,"minlength",2);gt([a({type:String})],lt.prototype,"name",2);gt([a({type:String})],lt.prototype,"placeholder",2);gt([a({type:Boolean})],lt.prototype,"readonly",2);gt([a({type:Boolean})],lt.prototype,"required",2);gt([a({type:Number})],lt.prototype,"rows",2);gt([a({type:String})],lt.prototype,"wrap",2);gt([a({type:String})],lt.prototype,"value",2);gt([a({attribute:!1})],lt.prototype,"onInput",2);gt([a({attribute:!1})],lt.prototype,"onChange",2);gt([a({attribute:!1})],lt.prototype,"onFocus",2);gt([a({attribute:!1})],lt.prototype,"onBlur",2);lt=gt([p("pont-input-group-textarea")],lt);var yy=Object.defineProperty,_y=Object.getOwnPropertyDescriptor,pt=(e,t,r,n)=>{for(var o=n>1?void 0:n?_y(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&yy(t,r,o),o};let it=class extends f{constructor(){super(),this.autocomplete="one-time-code",this.id="",this.inputmode="numeric",this._activeSlot=null,this._hasFocus=!1,this._value="",this._children=[],this._handleBlur=e=>{var t;this._hasFocus=!1,this._activeSlot=null,this._sync(),this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onBlur)==null||t.call(this,e)},this._handleFocus=e=>{var t;this._hasFocus=!0,this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot()),this._sync(),this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onFocus)==null||t.call(this,e)},this._handleKeyDown=e=>{if(this.disabled||!this._hasFocus)return;this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot());const t=e.key,r=this._currentValue??"";if(t==="ArrowLeft"){e.preventDefault(),this._activeSlot=this._clampIndex(this._activeSlot-1),this._sync();return}if(t==="ArrowRight"){e.preventDefault(),this._activeSlot=this._clampIndex(this._activeSlot+1),this._sync();return}if(t==="Home"){e.preventDefault(),this._activeSlot=0,this._sync();return}if(t==="End"){e.preventDefault(),this._activeSlot=Math.max(0,r.length-1),this._sync();return}if(t==="Backspace"){e.preventDefault(),this._deleteChar();return}if(t==="Delete"){if(e.preventDefault(),this._activeSlot!==null){const o=r.split("");o[this._activeSlot]="",this._updateValue(o.join("")),this._sync()}return}if(e.ctrlKey||e.metaKey||t.length!==1)return;const n=this._regex();n&&!n.test(t)||(e.preventDefault(),this._insertChar(t))},this._handlePaste=e=>{var c,m;if(this.disabled)return;e.preventDefault();let t=((c=e.clipboardData)==null?void 0:c.getData("text"))??"";this.pasteTransformer&&(t=this.pasteTransformer(t));const r=this._regex(),n=Array.from(t).filter(v=>r?r.test(v):!0);if(!n.length)return;const o=(this._currentValue??"").split("").slice(0,this.maxlength);for(;o.length<this.maxlength;)o.push("");let s=this._activeSlot??this._computeInitialActiveSlot();for(const v of n){if(s>=this.maxlength)break;o[s]=v,s++}const d=o.join("");this._updateValue(d),this._activeSlot=Math.min(s,this.maxlength-1),this._checkComplete(),this._sync(),(m=this.onPaste)==null||m.call(this,e)},this._children=Array.from(this.childNodes)}createRenderRoot(){return this}get _containerSlot(){return this.querySelector('[data-slot="input-otp-container"]')}get _wrapperSlot(){return this.querySelector('[data-slot="input-otp-wrapper"]')}get _slots(){return Array.from(this.querySelectorAll("pont-input-otp-slot"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._value}_inputEl(){return this.querySelector('[data-slot="input-otp"]')}_regex(){return this.pattern?new RegExp(this.pattern):null}_clampIndex(e){return Math.max(0,Math.min(e,this.maxlength-1))}_computeInitialActiveSlot(){const e=(this._currentValue??"").length;return e>=this.maxlength?this.maxlength-1:e}_createCaret(){const e=document.createElement("div");e.dataset.slot="input-otp-slot-caret-wrapper";const t=document.createElement("div");return t.dataset.slot="input-otp-slot-caret",e.appendChild(t),e}_sync(){const e=this._currentValue??"";this._slots.forEach(t=>{const r=t._slotSlot;if(!r)return;const n=e[t.index]??"",o=this._hasFocus&&!this.disabled&&t.index===this._activeSlot;r.dataset.state=o?"active":"inactive",n?r.textContent=n:r.textContent="";const i=o&&!n,s=r.querySelector('[data-slot="input-otp-caret-wrapper"]');i&&!s&&r.appendChild(this._createCaret()),!i&&s&&s.remove()})}_updateValue(e){var t;this._isControlled||(this._value=e),(t=this.onChange)==null||t.call(this,e)}_checkComplete(){var e,t;((e=this._currentValue)==null?void 0:e.length)===this.maxlength&&((t=this.onComplete)==null||t.call(this,this._currentValue))}_insertChar(e){if(this._activeSlot===null)return;const t=this._activeSlot,r=(this._currentValue??"").split("");r[t]=e;const n=r.join("").slice(0,this.maxlength);this._updateValue(n),this._activeSlot=this._clampIndex(this._activeSlot+1),this._checkComplete()}_deleteChar(){if(this._activeSlot===null)return;let e=this._activeSlot;const t=(this._currentValue??"").split("");e>0&&!t[e]&&e--,t[e]="",this._activeSlot=e,this._updateValue(t.join(""))}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id")),e.has("value")&&this._isControlled&&(this._value=this.value??""),this._sync()}firstUpdated(){this._inputId=this.id,this.removeAttribute("id"),this._value=this.value??this.defaultValue??"";const e=this._containerSlot,t=this._wrapperSlot;!e||!t||(this._children.forEach(r=>{e.insertBefore(r,t)}),this.addEventListener("pont-input-otp-slot:focus",r=>{var o;if(this.disabled)return;const{index:n}=r.detail;this._activeSlot=n,this._hasFocus=!0,(o=this._inputEl())==null||o.focus(),this._sync()}))}render(){return l`
1513
1513
  <div data-slot="input-otp-container">
1514
1514
  <div data-slot="input-otp-wrapper">
1515
1515
  <input
@@ -1532,17 +1532,17 @@
1532
1532
  />
1533
1533
  </div>
1534
1534
  </div>
1535
- `}};pt([a({type:String})],nt.prototype,"autocomplete",2);pt([a({attribute:"default-value",type:String})],nt.prototype,"defaultValue",2);pt([a({type:Boolean})],nt.prototype,"disabled",2);pt([a({type:String})],nt.prototype,"form",2);pt([a({type:String})],nt.prototype,"id",2);pt([a({type:String})],nt.prototype,"inputmode",2);pt([a({type:Number})],nt.prototype,"maxlength",2);pt([a({type:String})],nt.prototype,"name",2);pt([a({type:String})],nt.prototype,"pattern",2);pt([a({type:Boolean})],nt.prototype,"required",2);pt([a({type:String})],nt.prototype,"value",2);pt([a({attribute:!1})],nt.prototype,"onChange",2);pt([a({attribute:!1})],nt.prototype,"onComplete",2);pt([a({attribute:!1})],nt.prototype,"onBlur",2);pt([a({attribute:!1})],nt.prototype,"onFocus",2);pt([a({attribute:!1})],nt.prototype,"onPaste",2);pt([a({attribute:!1})],nt.prototype,"pasteTransformer",2);pt([g()],nt.prototype,"_activeSlot",2);pt([g()],nt.prototype,"_hasFocus",2);pt([g()],nt.prototype,"_value",2);nt=pt([p("pont-input-otp")],nt);var wy=Object.getOwnPropertyDescriptor,$y=(e,t,r,n)=>{for(var o=n>1?void 0:n?wy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Kd=class extends f{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="input-otp-group"]')}firstUpdated(){const e=this._groupSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="input-otp-group"></div>`}};Kd=$y([p("pont-input-otp-group")],Kd);var Py=Object.defineProperty,Cy=Object.getOwnPropertyDescriptor,al=(e,t,r,n)=>{for(var o=n>1?void 0:n?Cy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Py(t,r,o),o};let ui=class extends f{constructor(){super(...arguments),this._handleClick=()=>{this.dispatchEvent(new CustomEvent("pont-input-otp-slot:focus",{detail:{index:this.index},bubbles:!0}))}}createRenderRoot(){return this}get _slotSlot(){return this.querySelector('[data-slot="input-otp-slot"]')}render(){return l`
1535
+ `}};pt([a({type:String})],it.prototype,"autocomplete",2);pt([a({attribute:"default-value",type:String})],it.prototype,"defaultValue",2);pt([a({type:Boolean})],it.prototype,"disabled",2);pt([a({type:String})],it.prototype,"form",2);pt([a({type:String})],it.prototype,"id",2);pt([a({type:String})],it.prototype,"inputmode",2);pt([a({type:Number})],it.prototype,"maxlength",2);pt([a({type:String})],it.prototype,"name",2);pt([a({type:String})],it.prototype,"pattern",2);pt([a({type:Boolean})],it.prototype,"required",2);pt([a({type:String})],it.prototype,"value",2);pt([a({attribute:!1})],it.prototype,"onChange",2);pt([a({attribute:!1})],it.prototype,"onComplete",2);pt([a({attribute:!1})],it.prototype,"onBlur",2);pt([a({attribute:!1})],it.prototype,"onFocus",2);pt([a({attribute:!1})],it.prototype,"onPaste",2);pt([a({attribute:!1})],it.prototype,"pasteTransformer",2);pt([g()],it.prototype,"_activeSlot",2);pt([g()],it.prototype,"_hasFocus",2);pt([g()],it.prototype,"_value",2);it=pt([p("pont-input-otp")],it);var wy=Object.getOwnPropertyDescriptor,$y=(e,t,r,n)=>{for(var o=n>1?void 0:n?wy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Kd=class extends f{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="input-otp-group"]')}firstUpdated(){const e=this._groupSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="input-otp-group"></div>`}};Kd=$y([p("pont-input-otp-group")],Kd);var Py=Object.defineProperty,Cy=Object.getOwnPropertyDescriptor,al=(e,t,r,n)=>{for(var o=n>1?void 0:n?Cy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Py(t,r,o),o};let mi=class extends f{constructor(){super(...arguments),this._handleClick=()=>{this.dispatchEvent(new CustomEvent("pont-input-otp-slot:focus",{detail:{index:this.index},bubbles:!0}))}}createRenderRoot(){return this}get _slotSlot(){return this.querySelector('[data-slot="input-otp-slot"]')}render(){return l`
1536
1536
  <div
1537
1537
  data-slot="input-otp-slot"
1538
1538
  aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":h}
1539
1539
  @click=${this._handleClick}
1540
1540
  ></div>
1541
- `}};al([a({type:Number})],ui.prototype,"index",2);al([a({type:Boolean})],ui.prototype,"invalid",2);ui=al([p("pont-input-otp-slot")],ui);var Sy=Object.getOwnPropertyDescriptor,Ey=(e,t,r,n)=>{for(var o=n>1?void 0:n?Sy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Wd=class extends f{createRenderRoot(){return this}render(){return l`
1541
+ `}};al([a({type:Number})],mi.prototype,"index",2);al([a({type:Boolean})],mi.prototype,"invalid",2);mi=al([p("pont-input-otp-slot")],mi);var Sy=Object.getOwnPropertyDescriptor,Ey=(e,t,r,n)=>{for(var o=n>1?void 0:n?Sy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Wd=class extends f{createRenderRoot(){return this}render(){return l`
1542
1542
  <div data-slot="input-otp-separator" role="separator">
1543
1543
  ${Og()}
1544
1544
  </div>
1545
- `}};Wd=Ey([p("pont-input-otp-separator")],Wd);var xy=Object.defineProperty,Oy=Object.getOwnPropertyDescriptor,Sn=(e,t,r,n)=>{for(var o=n>1?void 0:n?Oy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&xy(t,r,o),o};let $o=class extends f{constructor(){super(...arguments),this.variant="default",this.size="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="item"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return this.href?l`
1545
+ `}};Wd=Ey([p("pont-input-otp-separator")],Wd);var xy=Object.defineProperty,Oy=Object.getOwnPropertyDescriptor,En=(e,t,r,n)=>{for(var o=n>1?void 0:n?Oy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&xy(t,r,o),o};let $o=class extends f{constructor(){super(...arguments),this.variant="default",this.size="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="item"]')}firstUpdated(){const e=this._rootSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return this.href?l`
1546
1546
  <a
1547
1547
  data-slot="item"
1548
1548
  data-variant="${this.variant}"
@@ -1556,7 +1556,7 @@
1556
1556
  data-variant="${this.variant}"
1557
1557
  data-size="${this.size}"
1558
1558
  ></div>
1559
- `}};Sn([a({type:String})],$o.prototype,"variant",2);Sn([a({type:String})],$o.prototype,"size",2);Sn([a({type:String})],$o.prototype,"href",2);Sn([a({type:String})],$o.prototype,"target",2);$o=Sn([p("pont-item")],$o);var Ry=Object.getOwnPropertyDescriptor,Iy=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ry(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Yd=class extends f{createRenderRoot(){return this}get _actionsSlot(){return this.querySelector('[data-slot="item-actions"]')}firstUpdated(){const e=this._actionsSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-actions"></div>`}};Yd=Iy([p("pont-item-actions")],Yd);var Ay=Object.getOwnPropertyDescriptor,Ty=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ay(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Qd=class extends f{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="item-content"]')}firstUpdated(){const e=this._contentSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-content"></div>`}};Qd=Ty([p("pont-item-content")],Qd);var Dy=Object.getOwnPropertyDescriptor,Ly=(e,t,r,n)=>{for(var o=n>1?void 0:n?Dy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Zd=class extends f{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="item-description"]')}firstUpdated(){const e=this._descriptionSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<p data-slot="item-description"></p>`}};Zd=Ly([p("pont-item-description")],Zd);var Fy=Object.getOwnPropertyDescriptor,ky=(e,t,r,n)=>{for(var o=n>1?void 0:n?Fy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Jd=class extends f{createRenderRoot(){return this}get _footerSlot(){return this.querySelector('[data-slot="item-footer"]')}firstUpdated(){const e=this._footerSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-footer"></div>`}};Jd=ky([p("pont-item-footer")],Jd);var My=Object.getOwnPropertyDescriptor,Ny=(e,t,r,n)=>{for(var o=n>1?void 0:n?My(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Xd=class extends f{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="item-group"]')}firstUpdated(){const e=this._groupSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-group" role="list"></div>`}};Xd=Ny([p("pont-item-group")],Xd);var By=Object.getOwnPropertyDescriptor,Uy=(e,t,r,n)=>{for(var o=n>1?void 0:n?By(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let tc=class extends f{createRenderRoot(){return this}get _headerSlot(){return this.querySelector('[data-slot="item-header"]')}firstUpdated(){const e=this._headerSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-header"></div>`}};tc=Uy([p("pont-item-header")],tc);var jy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,uh=(e,t,r,n)=>{for(var o=n>1?void 0:n?qy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jy(t,r,o),o};let ha=class extends f{constructor(){super(...arguments),this.variant="default"}createRenderRoot(){return this}get _mediaSlot(){return this.querySelector('[data-slot="item-media"]')}firstUpdated(){const e=this._mediaSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1559
+ `}};En([a({type:String})],$o.prototype,"variant",2);En([a({type:String})],$o.prototype,"size",2);En([a({type:String})],$o.prototype,"href",2);En([a({type:String})],$o.prototype,"target",2);$o=En([p("pont-item")],$o);var Ry=Object.getOwnPropertyDescriptor,Iy=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ry(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Yd=class extends f{createRenderRoot(){return this}get _actionsSlot(){return this.querySelector('[data-slot="item-actions"]')}firstUpdated(){const e=this._actionsSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-actions"></div>`}};Yd=Iy([p("pont-item-actions")],Yd);var Ay=Object.getOwnPropertyDescriptor,Ty=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ay(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Qd=class extends f{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="item-content"]')}firstUpdated(){const e=this._contentSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-content"></div>`}};Qd=Ty([p("pont-item-content")],Qd);var Dy=Object.getOwnPropertyDescriptor,Ly=(e,t,r,n)=>{for(var o=n>1?void 0:n?Dy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Zd=class extends f{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="item-description"]')}firstUpdated(){const e=this._descriptionSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<p data-slot="item-description"></p>`}};Zd=Ly([p("pont-item-description")],Zd);var Fy=Object.getOwnPropertyDescriptor,ky=(e,t,r,n)=>{for(var o=n>1?void 0:n?Fy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Jd=class extends f{createRenderRoot(){return this}get _footerSlot(){return this.querySelector('[data-slot="item-footer"]')}firstUpdated(){const e=this._footerSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-footer"></div>`}};Jd=ky([p("pont-item-footer")],Jd);var My=Object.getOwnPropertyDescriptor,Ny=(e,t,r,n)=>{for(var o=n>1?void 0:n?My(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let Xd=class extends f{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="item-group"]')}firstUpdated(){const e=this._groupSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-group" role="list"></div>`}};Xd=Ny([p("pont-item-group")],Xd);var By=Object.getOwnPropertyDescriptor,Uy=(e,t,r,n)=>{for(var o=n>1?void 0:n?By(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let tc=class extends f{createRenderRoot(){return this}get _headerSlot(){return this.querySelector('[data-slot="item-header"]')}firstUpdated(){const e=this._headerSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`<div data-slot="item-header"></div>`}};tc=Uy([p("pont-item-header")],tc);var jy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,uh=(e,t,r,n)=>{for(var o=n>1?void 0:n?qy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jy(t,r,o),o};let ha=class extends f{constructor(){super(...arguments),this.variant="default"}createRenderRoot(){return this}get _mediaSlot(){return this.querySelector('[data-slot="item-media"]')}firstUpdated(){const e=this._mediaSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1560
1560
  <div data-slot="item-media" data-variant="${this.variant}"></div>
1561
1561
  `}};uh([a({type:String})],ha.prototype,"variant",2);ha=uh([p("pont-item-media")],ha);var zy=Object.getOwnPropertyDescriptor,Vy=(e,t,r,n)=>{for(var o=n>1?void 0:n?zy(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let ec=class extends f{createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="item-separator"]')}firstUpdated(){const e=this._separatorSlot;if(!e)return;Array.from(this.childNodes).filter(r=>r!==e).forEach(r=>e.appendChild(r))}render(){return l`
1562
1562
  <pont-separator
@@ -1617,7 +1617,7 @@
1617
1617
 
1618
1618
  <div part="menubar-menu-slot"></div>
1619
1619
  </div>
1620
- `}};Mo([g()],cr.prototype,"isOpen",2);Mo([g()],cr.prototype,"uniqueIds",2);Mo([g()],cr.prototype,"selectedMenu",2);Mo([g()],cr.prototype,"isHovering",2);Mo([a({type:String})],cr.prototype,"id",2);cr=Mo([p("pont-menubar-menu")],cr);var e_=Object.defineProperty,r_=Object.getOwnPropertyDescriptor,En=(e,t,r,n)=>{for(var o=n>1?void 0:n?r_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&e_(t,r,o),o};let Po=class extends y{constructor(){super(...arguments),this.state=Xa,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof cr);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}render(){return l`
1620
+ `}};Mo([g()],cr.prototype,"isOpen",2);Mo([g()],cr.prototype,"uniqueIds",2);Mo([g()],cr.prototype,"selectedMenu",2);Mo([g()],cr.prototype,"isHovering",2);Mo([a({type:String})],cr.prototype,"id",2);cr=Mo([p("pont-menubar-menu")],cr);var e_=Object.defineProperty,r_=Object.getOwnPropertyDescriptor,xn=(e,t,r,n)=>{for(var o=n>1?void 0:n?r_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&e_(t,r,o),o};let Po=class extends y{constructor(){super(...arguments),this.state=Xa,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof cr);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}render(){return l`
1621
1621
  <div
1622
1622
  class=${u(Ct.content,this.className)}
1623
1623
  id="${this.id}"
@@ -1631,7 +1631,7 @@
1631
1631
  dir="ltr"
1632
1632
  style="display: ${this.isOpen?"block":"none"};"
1633
1633
  ></div>
1634
- `}};En([a({attribute:"data-state",type:String})],Po.prototype,"state",2);En([a({type:String})],Po.prototype,"id",2);En([a({type:String})],Po.prototype,"side",2);En([g()],Po.prototype,"isOpen",2);Po=En([p("pont-menubar-content")],Po);var o_=Object.defineProperty,n_=Object.getOwnPropertyDescriptor,Ti=(e,t,r,n)=>{for(var o=n>1?void 0:n?n_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&o_(t,r,o),o};let pr=class extends y{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-group-slot]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var t,r;if(this._id!=="")return this._id;const e=(r=(t=this.parentElement)==null?void 0:t.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${pr._counter++}`:this._id=`rtgcmdrxlxg${pr._counter++}`,this._id}render(){return l`${this._hidden==="true"?h:l`
1634
+ `}};xn([a({attribute:"data-state",type:String})],Po.prototype,"state",2);xn([a({type:String})],Po.prototype,"id",2);xn([a({type:String})],Po.prototype,"side",2);xn([g()],Po.prototype,"isOpen",2);Po=xn([p("pont-menubar-content")],Po);var o_=Object.defineProperty,n_=Object.getOwnPropertyDescriptor,Ti=(e,t,r,n)=>{for(var o=n>1?void 0:n?n_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&o_(t,r,o),o};let pr=class extends y{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-group-slot]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var t,r;if(this._id!=="")return this._id;const e=(r=(t=this.parentElement)==null?void 0:t.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${pr._counter++}`:this._id=`rtgcmdrxlxg${pr._counter++}`,this._id}render(){return l`${this._hidden==="true"?h:l`
1635
1635
  <div
1636
1636
  class=${u(Ct.group,this.className)}
1637
1637
  id="${this.identifier}"
@@ -1768,7 +1768,7 @@
1768
1768
  </div>
1769
1769
  <div part="content-slot" style="position:absolute"></div>`:""}
1770
1770
  </li>
1771
- `}};Bo([a({type:String})],hr.prototype,"value",2);Bo([a({type:Boolean})],hr.prototype,"navigationLink",2);Bo([g()],hr.prototype,"isOpen",2);Bo([g()],hr.prototype,"uniqueIds",2);Bo([g()],hr.prototype,"isHovering",2);hr=Bo([p("pont-navigation-menu-item")],hr);var w_=Object.defineProperty,$_=Object.getOwnPropertyDescriptor,xn=(e,t,r,n)=>{for(var o=n>1?void 0:n?$_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&w_(t,r,o),o};let Co=class extends y{constructor(){super(...arguments),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof hr);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=navigation-menu-content-container]")}getAttributesToExclude(){return["data-testid"]}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return l`
1771
+ `}};Bo([a({type:String})],hr.prototype,"value",2);Bo([a({type:Boolean})],hr.prototype,"navigationLink",2);Bo([g()],hr.prototype,"isOpen",2);Bo([g()],hr.prototype,"uniqueIds",2);Bo([g()],hr.prototype,"isHovering",2);hr=Bo([p("pont-navigation-menu-item")],hr);var w_=Object.defineProperty,$_=Object.getOwnPropertyDescriptor,On=(e,t,r,n)=>{for(var o=n>1?void 0:n?$_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&w_(t,r,o),o};let Co=class extends y{constructor(){super(...arguments),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof hr);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=navigation-menu-content-container]")}getAttributesToExclude(){return["data-testid"]}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return l`
1772
1772
  <div
1773
1773
  class="${u(Ur.content,this.className)}"
1774
1774
  style="display: ${this.isOpen?"block":"none"};top:0px;left:0px;"
@@ -1788,7 +1788,7 @@
1788
1788
  ></div>
1789
1789
  </div>
1790
1790
  </div>
1791
- `}};xn([a({attribute:"data-state",type:String})],Co.prototype,"state",2);xn([a({type:String})],Co.prototype,"id",2);xn([a({type:String})],Co.prototype,"side",2);xn([g()],Co.prototype,"isOpen",2);Co=xn([p("pont-navigation-menu-content")],Co);var P_=Object.defineProperty,C_=Object.getOwnPropertyDescriptor,mh=(e,t,r,n)=>{for(var o=n>1?void 0:n?C_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&P_(t,r,o),o};let ua=class extends y{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1791
+ `}};On([a({attribute:"data-state",type:String})],Co.prototype,"state",2);On([a({type:String})],Co.prototype,"id",2);On([a({type:String})],Co.prototype,"side",2);On([g()],Co.prototype,"isOpen",2);Co=On([p("pont-navigation-menu-content")],Co);var P_=Object.defineProperty,C_=Object.getOwnPropertyDescriptor,mh=(e,t,r,n)=>{for(var o=n>1?void 0:n?C_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&P_(t,r,o),o};let ua=class extends y{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1792
1792
  <a
1793
1793
  part="navigation-menu-link"
1794
1794
  class="${u(Ur.link,this.className)}"
@@ -1840,7 +1840,7 @@
1840
1840
 
1841
1841
  <span class=${u(te.ellipsis.span)}>More pages</span>
1842
1842
  </span>
1843
- `}};hc=T_([p("pont-pagination-ellipsis")],hc);var D_=Object.defineProperty,L_=Object.getOwnPropertyDescriptor,On=(e,t,r,n)=>{for(var o=n>1?void 0:n?L_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&D_(t,r,o),o};let jr=class extends y{constructor(){super(...arguments),this.state="close",this.isActive=!1,this.size="icon",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return l`
1843
+ `}};hc=T_([p("pont-pagination-ellipsis")],hc);var D_=Object.defineProperty,L_=Object.getOwnPropertyDescriptor,Rn=(e,t,r,n)=>{for(var o=n>1?void 0:n?L_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&D_(t,r,o),o};let jr=class extends y{constructor(){super(...arguments),this.state="close",this.isActive=!1,this.size="icon",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return l`
1844
1844
  <a
1845
1845
  aria-current=${this.isActive?"page":void 0}
1846
1846
  data-slot="pagination-link"
@@ -1851,14 +1851,14 @@
1851
1851
  class=${u(te.link({variant:this.isActive?"outline":"ghost",size:this.size}),this.className)}
1852
1852
  >
1853
1853
  </a>
1854
- `}};On([a({attribute:"data-state",type:String})],jr.prototype,"state",2);On([a({type:Boolean})],jr.prototype,"isActive",2);On([a({type:String})],jr.prototype,"size",2);On([a({type:String})],jr.prototype,"href",2);jr=On([p("pont-pagination-link")],jr);var F_=Object.defineProperty,k_=Object.getOwnPropertyDescriptor,dl=(e,t,r,n)=>{for(var o=n>1?void 0:n?k_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&F_(t,r,o),o};let mi=class extends y{constructor(){super(...arguments),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var t;const e=(t=this._containerElement)==null?void 0:t.children;if(e){for(let r=0;r<e.length;r++)if(e[r]instanceof jr)return e[r]}return null}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("pont-pagination-item").forEach(r=>{r!==this&&(r.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var r;this.moveLightDomChildrenInto(this._containerElement);const e=(r=this._containerElement)==null?void 0:r.children,t=[];for(let n=0;n<e.length-1;n+=1){const o=e[n],i=crypto.randomUUID();t.push(i),o.dataset.pairId=i}this.uniqueIds=t,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return l`
1854
+ `}};Rn([a({attribute:"data-state",type:String})],jr.prototype,"state",2);Rn([a({type:Boolean})],jr.prototype,"isActive",2);Rn([a({type:String})],jr.prototype,"size",2);Rn([a({type:String})],jr.prototype,"href",2);jr=Rn([p("pont-pagination-link")],jr);var F_=Object.defineProperty,k_=Object.getOwnPropertyDescriptor,dl=(e,t,r,n)=>{for(var o=n>1?void 0:n?k_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&F_(t,r,o),o};let gi=class extends y{constructor(){super(...arguments),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var t;const e=(t=this._containerElement)==null?void 0:t.children;if(e){for(let r=0;r<e.length;r++)if(e[r]instanceof jr)return e[r]}return null}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("pont-pagination-item").forEach(r=>{r!==this&&(r.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var r;this.moveLightDomChildrenInto(this._containerElement);const e=(r=this._containerElement)==null?void 0:r.children,t=[];for(let n=0;n<e.length-1;n+=1){const o=e[n],i=crypto.randomUUID();t.push(i),o.dataset.pairId=i}this.uniqueIds=t,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return l`
1855
1855
  <li
1856
1856
  data-slot="pagination-item"
1857
1857
  part="pagination-item"
1858
1858
  class=${u(te.item,this.className)}
1859
1859
  @click="${this.handleClick}"
1860
1860
  ></li>
1861
- `}};dl([g()],mi.prototype,"uniqueIds",2);dl([a({type:Boolean})],mi.prototype,"isActive",2);mi=dl([p("pont-pagination-item")],mi);var M_=Object.defineProperty,N_=Object.getOwnPropertyDescriptor,gh=(e,t,r,n)=>{for(var o=n>1?void 0:n?N_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&M_(t,r,o),o};let ma=class extends y{constructor(){super(...arguments),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1861
+ `}};dl([g()],gi.prototype,"uniqueIds",2);dl([a({type:Boolean})],gi.prototype,"isActive",2);gi=dl([p("pont-pagination-item")],gi);var M_=Object.defineProperty,N_=Object.getOwnPropertyDescriptor,gh=(e,t,r,n)=>{for(var o=n>1?void 0:n?N_(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&M_(t,r,o),o};let ma=class extends y{constructor(){super(...arguments),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
1862
1862
  <pont-pagination-link
1863
1863
  aria-label="Go to next page"
1864
1864
  size="default"
@@ -2100,7 +2100,7 @@
2100
2100
  style="overflow: hidden scroll;"
2101
2101
  ></div>
2102
2102
  </div>
2103
- `}};yh([yn("[data-radix-scroll-area-viewport]")],ba.prototype,"viewportEl",2);ba=yh([p("pont-scroll-area")],ba);class ew{constructor(){this.state={isOpen:!1,selectedValue:"",selectedText:""},this.listeners=new Set}subscribe(t){this.listeners.add(t)}unsubscribe(t){this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t())}get isOpen(){return this.state.isOpen}get selectedValue(){return this.state.selectedValue}get selectedText(){return this.state.selectedText}open(){this.state.isOpen||(this.state.isOpen=!0,this.notify())}close(){this.state.isOpen&&(this.state.isOpen=!1,this.notify())}toggle(){this.state.isOpen=!this.state.isOpen,this.notify()}select(t,r,n){this.state.selectedValue=t,this.state.selectedText=r,this.state.isOpen=!1,this.notify()}}const ee={root:["pont-font-select-font-family"],value:["pont-flex","pont-gap-select-value-space-gap pont-items-center","pont-line-clamp-1"],trigger:{trigger:["pont-flex","pont-gap-select-trigger-space-gap pont-justify-between pont-items-center","pont-px-select-trigger-space-px pont-py-select-trigger-space-py","pont-w-full pont-h-select-trigger-space-h","pont-text-select-trigger-font pont-whitespace-nowrap","pont-bg-select-trigger-color-bg","pont-rounded-select-trigger-radius pont-border-select-trigger-width-border pont-border-select-trigger-color-border pont-outline-none","pont-transition-[color,box-shadow]","hover:pont-bg-select-trigger-color-bg-hover","focus-visible:pont-border-select-trigger-color-border-focus focus-visible:pont-ring-select-trigger-width-ring-focus focus-visible:pont-ring-select-trigger-color-ring-focus","pont-select-disabled:pont-opacity-select-trigger-opacity-disabled pont-select-disabled:pont-cursor-not-allowed","aria-invalid:pont-border-select-trigger-color-border-invalid aria-invalid:pont-ring-select-trigger-width-ring-invalid aria-invalid:pont-ring-select-trigger-color-ring-invalid","data-[placeholder]:pont-text-select-trigger-placeholder-color-text"],icon:["pont-shrink-0","pont-size-select-trigger-icon-space-size","pont-text-select-trigger-icon-color-text","pont-opacity-select-trigger-icon-opacity","pont-pointer-events-none"]},content:{content:["pont-fixed pont-overflow-x-hidden pont-overflow-y-auto pont-z-50","pont-w-fit","pont-text-select-content-color-text","pont-bg-select-content-color-bg","pont-rounded-select-content-radius pont-border-select-content-width-border pont-border-select-content-color-border","pont-shadow-select-content-shadow","pont-slide-in-from-top-2","pont-translate-y-1","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0 data-[state=open]:pont-zoom-in-95","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0 data-[state=closed]:pont-zoom-out-95"],viewport:["pont-p-select-content-viewport-space-p","pont-w-full","pont-scroll-my-1"]},label:["pont-px-select-label-space-px pont-py-select-label-space-py","pont-text-select-label-font pont-text-select-label-color-text"],item:{item:["pont-flex pont-relative","pont-gap-select-item-space-gap pont-items-center","pont-pl-select-item-space-pl pont-pr-select-item-space-pr pont-py-select-item-space-py","pont-w-full","pont-text-select-item-font","pont-rounded-select-item-radius pont-outline-hidden","pont-cursor-default pont-select-none","hover:pont-text-select-item-color-text-hover hover:pont-bg-select-item-color-bg-hover","focus:pont-text-select-item-color-text-focus focus:pont-bg-select-item-color-bg-focus","data-[disabled]:pont-opacity-select-item-opacity-disabled data-[disabled]:pont-pointer-events-none"],indicator:["pont-flex pont-absolute pont-right-2","pont-justify-center pont-items-center","pont-size-select-item-indicator-space-size"],icon:["pont-shrink-0","pont-size-select-item-icon-space-size","pont-text-select-item-icon-color-text","pont-pointer-events-none"]},separator:["pont-mx-select-separator-space-mx pont-my-select-separator-space-my","pont-h-select-separator-space-h","pont-bg-select-separator-color-bg","pont-pointer-events-none"]};var rw=Object.defineProperty,ow=Object.getOwnPropertyDescriptor,cl=(e,t,r,n)=>{for(var o=n>1?void 0:n?ow(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&rw(t,r,o),o};let ur=class extends y{constructor(){super(...arguments),this.uuid=Ma(),this.selectStore=new ew,this.value="",this.disabled=!1,this.handleClickOutside=e=>{const t=this.querySelector("[data-select-uuid]"),r=e.target;t!=null&&t.contains(r)||this.selectStore.close()}}updated(e){super.updated(e),e.has("value")&&this.value!==this.selectStore.selectedValue&&this.syncValueToStore()}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){const e=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(e),this.syncValueToStore()}syncValueToStore(){var e;if(this.value){const t=this.querySelector(`pont-select-item[value="${this.value}"]`),r=((e=t==null?void 0:t.textContent)==null?void 0:e.trim())||this.value;this.selectStore.select(this.value,r)}else this.selectStore.select("","")}createRenderRoot(){return this}render(){return l`
2103
+ `}};yh([_n("[data-radix-scroll-area-viewport]")],ba.prototype,"viewportEl",2);ba=yh([p("pont-scroll-area")],ba);class ew{constructor(){this.state={isOpen:!1,selectedValue:"",selectedText:""},this.listeners=new Set}subscribe(t){this.listeners.add(t)}unsubscribe(t){this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t())}get isOpen(){return this.state.isOpen}get selectedValue(){return this.state.selectedValue}get selectedText(){return this.state.selectedText}open(){this.state.isOpen||(this.state.isOpen=!0,this.notify())}close(){this.state.isOpen&&(this.state.isOpen=!1,this.notify())}toggle(){this.state.isOpen=!this.state.isOpen,this.notify()}select(t,r,n){this.state.selectedValue=t,this.state.selectedText=r,this.state.isOpen=!1,this.notify()}}const ee={root:["pont-font-select-font-family"],value:["pont-flex","pont-gap-select-value-space-gap pont-items-center","pont-line-clamp-1"],trigger:{trigger:["pont-flex","pont-gap-select-trigger-space-gap pont-justify-between pont-items-center","pont-px-select-trigger-space-px pont-py-select-trigger-space-py","pont-w-full pont-h-select-trigger-space-h","pont-text-select-trigger-font pont-whitespace-nowrap","pont-bg-select-trigger-color-bg","pont-rounded-select-trigger-radius pont-border-select-trigger-width-border pont-border-select-trigger-color-border pont-outline-none","pont-transition-[color,box-shadow]","hover:pont-bg-select-trigger-color-bg-hover","focus-visible:pont-border-select-trigger-color-border-focus focus-visible:pont-ring-select-trigger-width-ring-focus focus-visible:pont-ring-select-trigger-color-ring-focus","pont-select-disabled:pont-opacity-select-trigger-opacity-disabled pont-select-disabled:pont-cursor-not-allowed","aria-invalid:pont-border-select-trigger-color-border-invalid aria-invalid:pont-ring-select-trigger-width-ring-invalid aria-invalid:pont-ring-select-trigger-color-ring-invalid","data-[placeholder]:pont-text-select-trigger-placeholder-color-text"],icon:["pont-shrink-0","pont-size-select-trigger-icon-space-size","pont-text-select-trigger-icon-color-text","pont-opacity-select-trigger-icon-opacity","pont-pointer-events-none"]},content:{content:["pont-fixed pont-overflow-x-hidden pont-overflow-y-auto pont-z-50","pont-w-fit","pont-text-select-content-color-text","pont-bg-select-content-color-bg","pont-rounded-select-content-radius pont-border-select-content-width-border pont-border-select-content-color-border","pont-shadow-select-content-shadow","pont-slide-in-from-top-2","pont-translate-y-1","data-[state=open]:pont-animate-in data-[state=open]:pont-fade-in-0 data-[state=open]:pont-zoom-in-95","data-[state=closed]:pont-animate-out data-[state=closed]:pont-fade-out-0 data-[state=closed]:pont-zoom-out-95"],viewport:["pont-p-select-content-viewport-space-p","pont-w-full","pont-scroll-my-1"]},label:["pont-px-select-label-space-px pont-py-select-label-space-py","pont-text-select-label-font pont-text-select-label-color-text"],item:{item:["pont-flex pont-relative","pont-gap-select-item-space-gap pont-items-center","pont-pl-select-item-space-pl pont-pr-select-item-space-pr pont-py-select-item-space-py","pont-w-full","pont-text-select-item-font","pont-rounded-select-item-radius pont-outline-hidden","pont-cursor-default pont-select-none","hover:pont-text-select-item-color-text-hover hover:pont-bg-select-item-color-bg-hover","focus:pont-text-select-item-color-text-focus focus:pont-bg-select-item-color-bg-focus","data-[disabled]:pont-opacity-select-item-opacity-disabled data-[disabled]:pont-pointer-events-none"],indicator:["pont-flex pont-absolute pont-right-2","pont-justify-center pont-items-center","pont-size-select-item-indicator-space-size"],icon:["pont-shrink-0","pont-size-select-item-icon-space-size","pont-text-select-item-icon-color-text","pont-pointer-events-none"]},separator:["pont-mx-select-separator-space-mx pont-my-select-separator-space-my","pont-h-select-separator-space-h","pont-bg-select-separator-color-bg","pont-pointer-events-none"]};var rw=Object.defineProperty,ow=Object.getOwnPropertyDescriptor,cl=(e,t,r,n)=>{for(var o=n>1?void 0:n?ow(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&rw(t,r,o),o};let ur=class extends y{constructor(){super(...arguments),this.uuid=Ma(),this.selectStore=new ew,this.value="",this.disabled=!1,this.handleClickOutside=e=>{const t=this.querySelector("[data-select-uuid]"),r=e.target;t!=null&&t.contains(r)||this.selectStore.close()}}updated(e){super.updated(e),e.has("value")&&this.value!==this.selectStore.selectedValue&&this.syncValueToStore()}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){const e=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(e),this.syncValueToStore()}syncValueToStore(){var e;if(this.value){const t=this.querySelector(`pont-select-item[value="${this.value}"]`),r=((e=t==null?void 0:t.textContent)==null?void 0:e.trim())||this.value;this.selectStore.select(this.value,r)}else this.selectStore.select("","")}createRenderRoot(){return this}render(){return l`
2104
2104
  <div
2105
2105
  part="select"
2106
2106
  data-select-uuid=${this.uuid}
@@ -2110,7 +2110,7 @@
2110
2110
  * @license
2111
2111
  * Copyright 2018 Google LLC
2112
2112
  * SPDX-License-Identifier: BSD-3-Clause
2113
- */const _h="important",nw=" !"+_h,iw=xo(class extends xi{constructor(e){var t;if(super(e),e.type!==Ua.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){const{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(const n in t){const o=t[n];if(o!=null){this.ft.add(n);const i=typeof o=="string"&&o.endsWith(nw);n.includes("-")||i?r.setProperty(n,i?o.slice(0,-11):o,i?_h:""):r[n]=o}}return ar}});var sw=Object.defineProperty,aw=Object.getOwnPropertyDescriptor,pl=(e,t,r,n)=>{for(var o=n>1?void 0:n?aw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&sw(t,r,o),o};let gi=class extends y{constructor(){super(...arguments),this.focusedIndex=0,this._dropdownStyle={display:"none",top:"0px",left:"0px",minWidth:"128px"},this.childrenArray=[],this._handleScrollResize=()=>{this._select.selectStore.isOpen&&this._updateDropdownPosition()},this.onStoreChange=()=>{const e=this._containerElement;e&&(e.style.display=this._select.selectStore.isOpen?"block":"none"),this._select.selectStore.isOpen?(requestAnimationFrame(()=>{this._updateDropdownPosition()}),window.addEventListener("scroll",this._handleScrollResize,!0),window.addEventListener("resize",this._handleScrollResize)):(window.removeEventListener("scroll",this._handleScrollResize,!0),window.removeEventListener("resize",this._handleScrollResize),this._dropdownStyle={...this._dropdownStyle,display:"none"}),this._select.selectStore.isOpen&&this._select.selectStore.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(t=>t.value===this._select.selectStore.selectedValue)),this.updateFocusedItem(),this.requestUpdate()},this.handleKeyDown=e=>{var t;if(this._select.selectStore.isOpen)switch(e.preventDefault(),e.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length,this.updateFocusedItem();break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length,this.updateFocusedItem();break;case"Enter":const r=this.childrenArray[this.focusedIndex],n=r.value,o=((t=r.textContent)==null?void 0:t.trim())||"";this._select.selectStore.select(n,o);break}}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof ur);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange),document.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("scroll",this._handleScrollResize,!0),window.removeEventListener("resize",this._handleScrollResize),super.disconnectedCallback()}getTriggerButton(){const e=this._select;return e?e.querySelector("button[part=select-trigger]"):null}_updateDropdownPosition(){const e=this.getTriggerButton();if(!e)return;const t=e.getBoundingClientRect(),r=Math.max(128,t.width);this._dropdownStyle={display:this._select.selectStore.isOpen?"block":"none",top:`${t.bottom}px`,left:`${t.left}px`,minWidth:`${r}px`}}get _containerElement(){return this.querySelector("div[part=select-viewport]")}firstUpdated(){const e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="pont-select-item");this.childrenArray=e,e.forEach((t,r)=>{t.tabIndex=r,t.selectItemIndex=r,t.isFocus=r===this.focusedIndex||t.value===this._select.selectStore.selectedValue,t.addEventListener("mouseover",n=>this.handleMouseOver(n,r))}),this.moveLightDomChildrenInto(this._containerElement),this._select.selectStore.isOpen&&requestAnimationFrame(()=>{this._updateDropdownPosition()})}updateFocusedItem(){this.childrenArray.forEach((e,t)=>{var r;e.isFocus=t===this.focusedIndex,(r=e.requestUpdate)==null||r.call(e)})}handleMouseOver(e,t){e.preventDefault(),this.focusedIndex=t}createRenderRoot(){return this}render(){return l`
2113
+ */const _h="important",nw=" !"+_h,iw=xo(class extends xi{constructor(e){var t;if(super(e),e.type!==Ua.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){const{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(const n in t){const o=t[n];if(o!=null){this.ft.add(n);const i=typeof o=="string"&&o.endsWith(nw);n.includes("-")||i?r.setProperty(n,i?o.slice(0,-11):o,i?_h:""):r[n]=o}}return ar}});var sw=Object.defineProperty,aw=Object.getOwnPropertyDescriptor,pl=(e,t,r,n)=>{for(var o=n>1?void 0:n?aw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&sw(t,r,o),o};let fi=class extends y{constructor(){super(...arguments),this.focusedIndex=0,this._dropdownStyle={display:"none",top:"0px",left:"0px",minWidth:"128px"},this.childrenArray=[],this._handleScrollResize=()=>{this._select.selectStore.isOpen&&this._updateDropdownPosition()},this.onStoreChange=()=>{const e=this._containerElement;e&&(e.style.display=this._select.selectStore.isOpen?"block":"none"),this._select.selectStore.isOpen?(requestAnimationFrame(()=>{this._updateDropdownPosition()}),window.addEventListener("scroll",this._handleScrollResize,!0),window.addEventListener("resize",this._handleScrollResize)):(window.removeEventListener("scroll",this._handleScrollResize,!0),window.removeEventListener("resize",this._handleScrollResize),this._dropdownStyle={...this._dropdownStyle,display:"none"}),this._select.selectStore.isOpen&&this._select.selectStore.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(t=>t.value===this._select.selectStore.selectedValue)),this.updateFocusedItem(),this.requestUpdate()},this.handleKeyDown=e=>{var t;if(this._select.selectStore.isOpen)switch(e.preventDefault(),e.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length,this.updateFocusedItem();break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length,this.updateFocusedItem();break;case"Enter":const r=this.childrenArray[this.focusedIndex],n=r.value,o=((t=r.textContent)==null?void 0:t.trim())||"";this._select.selectStore.select(n,o);break}}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof ur);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange),document.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("scroll",this._handleScrollResize,!0),window.removeEventListener("resize",this._handleScrollResize),super.disconnectedCallback()}getTriggerButton(){const e=this._select;return e?e.querySelector("button[part=select-trigger]"):null}_updateDropdownPosition(){const e=this.getTriggerButton();if(!e)return;const t=e.getBoundingClientRect(),r=Math.max(128,t.width);this._dropdownStyle={display:this._select.selectStore.isOpen?"block":"none",top:`${t.bottom}px`,left:`${t.left}px`,minWidth:`${r}px`}}get _containerElement(){return this.querySelector("div[part=select-viewport]")}firstUpdated(){const e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="pont-select-item");this.childrenArray=e,e.forEach((t,r)=>{t.tabIndex=r,t.selectItemIndex=r,t.isFocus=r===this.focusedIndex||t.value===this._select.selectStore.selectedValue,t.addEventListener("mouseover",n=>this.handleMouseOver(n,r))}),this.moveLightDomChildrenInto(this._containerElement),this._select.selectStore.isOpen&&requestAnimationFrame(()=>{this._updateDropdownPosition()})}updateFocusedItem(){this.childrenArray.forEach((e,t)=>{var r;e.isFocus=t===this.focusedIndex,(r=e.requestUpdate)==null||r.call(e)})}handleMouseOver(e,t){e.preventDefault(),this.focusedIndex=t}createRenderRoot(){return this}render(){return l`
2114
2114
  <div
2115
2115
  part="select-group"
2116
2116
  data-slot="select-content"
@@ -2122,7 +2122,7 @@
2122
2122
  class="${u(ee.content.viewport)}"
2123
2123
  ></div>
2124
2124
  </div>
2125
- `}};pl([g()],gi.prototype,"focusedIndex",2);pl([g()],gi.prototype,"_dropdownStyle",2);gi=pl([p("pont-select-group")],gi);var lw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,Kr=(e,t,r,n)=>{for(var o=n>1?void 0:n?dw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&lw(t,r,o),o};let mr=class extends y{constructor(){super(...arguments),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(e,t)=>{},this.class="",this._onStoreChange=()=>{var e,t;this.isSelected=this.value.toLowerCase()===((t=(e=this._select.selectStore.selectedValue)==null?void 0:e.toLowerCase)==null?void 0:t.call(e)),this.requestUpdate()},this.handleClick=e=>{e.stopPropagation();const t=this.getTextContent();this._select.selectStore.select(this.value,t),this.onSelect(this.value,this.selectItemIndex),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof ur);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}getTextContent(){var n;const e=this._containerElement;if(e&&e.textContent)return e.textContent.trim();const t=this.querySelector("[part=select-item-indicator]"),r=this.cloneNode(!0);if(t){const o=r.querySelector("[part=select-item-indicator]");o==null||o.remove()}return((n=r.textContent)==null?void 0:n.trim())||""}render(){const e=this.getFilteredAttributes();return l`
2125
+ `}};pl([g()],fi.prototype,"focusedIndex",2);pl([g()],fi.prototype,"_dropdownStyle",2);fi=pl([p("pont-select-group")],fi);var lw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,Kr=(e,t,r,n)=>{for(var o=n>1?void 0:n?dw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&lw(t,r,o),o};let mr=class extends y{constructor(){super(...arguments),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(e,t)=>{},this.class="",this._onStoreChange=()=>{var e,t;this.isSelected=this.value.toLowerCase()===((t=(e=this._select.selectStore.selectedValue)==null?void 0:e.toLowerCase)==null?void 0:t.call(e)),this.requestUpdate()},this.handleClick=e=>{e.stopPropagation();const t=this.getTextContent();this._select.selectStore.select(this.value,t),this.onSelect(this.value,this.selectItemIndex),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof ur);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}getTextContent(){var n;const e=this._containerElement;if(e&&e.textContent)return e.textContent.trim();const t=this.querySelector("[part=select-item-indicator]"),r=this.cloneNode(!0);if(t){const o=r.querySelector("[part=select-item-indicator]");o==null||o.remove()}return((n=r.textContent)==null?void 0:n.trim())||""}render(){const e=this.getFilteredAttributes();return l`
2126
2126
  <div
2127
2127
  ${St(e)}
2128
2128
  part="select-item"
@@ -2161,7 +2161,7 @@
2161
2161
  part="select-label"
2162
2162
  class=${u(ee.label,this.className)}
2163
2163
  ></div>
2164
- `}};gc=pw([p("pont-select-label")],gc);var hw=Object.defineProperty,uw=Object.getOwnPropertyDescriptor,hl=(e,t,r,n)=>{for(var o=n>1?void 0:n?uw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&hw(t,r,o),o};let fi=class extends y{constructor(){super(...arguments),this.state=Xa,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return l`
2164
+ `}};gc=pw([p("pont-select-label")],gc);var hw=Object.defineProperty,uw=Object.getOwnPropertyDescriptor,hl=(e,t,r,n)=>{for(var o=n>1?void 0:n?uw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&hw(t,r,o),o};let vi=class extends y{constructor(){super(...arguments),this.state=Xa,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return l`
2165
2165
  <div
2166
2166
  part="select-list"
2167
2167
  class="${u("pont-absolute pont-z-50 pont-max-h-72 pont-w-full pont-overflow-hidden pont-overflow-y-auto pont-rounded-lg pont-border pont-border-input pont-bg-background p-1 [&::-webkit-scrollbar-thumb]:pont-rounded-full [&::-webkit-scrollbar-thumb]:pont-bg-accent [&::-webkit-scrollbar-track]:pont-bg-gray-100 [&::-webkit-scrollbar]:pont-w-2",this.className)}"
@@ -2169,14 +2169,14 @@
2169
2169
  data-state="${this.state}"
2170
2170
  style="display: ${this.isOpen?"block":"none"}; top:115%"
2171
2171
  ></div>
2172
- `}};hl([a({attribute:"data-state",type:String})],fi.prototype,"state",2);hl([g()],fi.prototype,"isOpen",2);fi=hl([p("pont-select-list")],fi);var mw=Object.defineProperty,gw=Object.getOwnPropertyDescriptor,ul=(e,t,r,n)=>{for(var o=n>1?void 0:n?gw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&mw(t,r,o),o};let vi=class extends f{constructor(){super(...arguments),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return l`
2172
+ `}};hl([a({attribute:"data-state",type:String})],vi.prototype,"state",2);hl([g()],vi.prototype,"isOpen",2);vi=hl([p("pont-select-list")],vi);var mw=Object.defineProperty,gw=Object.getOwnPropertyDescriptor,ul=(e,t,r,n)=>{for(var o=n>1?void 0:n?gw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&mw(t,r,o),o};let bi=class extends f{constructor(){super(...arguments),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return l`
2173
2173
  <div
2174
2174
  rtgcmd-separator
2175
2175
  part="select-separator"
2176
2176
  role="separator"
2177
2177
  class=${u(ee.separator,this.className)}
2178
2178
  ></div>
2179
- `}};ul([a({type:String})],vi.prototype,"_id",2);ul([a({attribute:"aria-hidden",type:String})],vi.prototype,"_hidden",2);vi=ul([p("pont-select-separator")],vi);var fw=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,wh=(e,t,r,n)=>{for(var o=n>1?void 0:n?vw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&fw(t,r,o),o};let ya=class extends y{constructor(){super(...arguments),this.id="",this._triggerId="",this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=e=>{e.stopPropagation(),!(this._select&&this._select.disabled)&&this._select&&this._select.selectStore.toggle()}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof ur);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),this.classObserver=new MutationObserver(()=>{this.requestUpdate()}),this.classObserver.observe(this,{attributes:!0,attributeFilter:["class"]}),this._select&&(this.parentObserver=new MutationObserver(()=>{this.requestUpdate()}),this.parentObserver.observe(this._select,{attributes:!0,attributeFilter:["disabled"]}))}disconnectedCallback(){var e,t;this._select.selectStore.unsubscribe(this.onStoreChange),(e=this.classObserver)==null||e.disconnect(),(t=this.parentObserver)==null||t.disconnect()}get _containerElement(){return this.querySelector("span[part=select-trigger-container]")}firstUpdated(e){var t;super.firstUpdated(e),this._adoptId(),this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",this.handleClick)}updated(e){var t;(t=super.updated)==null||t.call(this,e),e.has("id")&&this._adoptId()}_adoptId(){this.id&&(this._triggerId=this.id),this.removeAttribute("id")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}getClassAttribute(){const e=this.getAttribute("class")||"",t=this.customClass||"",r=this.className||"";return e||t||r||""}filterConflictingWidthClasses(e,t){const r=/pont-w-[\w-[\]]+/;return r.test(t)?e.map(o=>o.split(/\s+/).filter(i=>!r.test(i)).join(" ")):e}render(){var n;const e=this.getClassAttribute(),t=this.filterConflictingWidthClasses(ee.trigger.trigger,e),r=((n=this._select)==null?void 0:n.disabled)||!1;return l`
2179
+ `}};ul([a({type:String})],bi.prototype,"_id",2);ul([a({attribute:"aria-hidden",type:String})],bi.prototype,"_hidden",2);bi=ul([p("pont-select-separator")],bi);var fw=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,wh=(e,t,r,n)=>{for(var o=n>1?void 0:n?vw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&fw(t,r,o),o};let ya=class extends y{constructor(){super(...arguments),this.id="",this._triggerId="",this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=e=>{e.stopPropagation(),!(this._select&&this._select.disabled)&&this._select&&this._select.selectStore.toggle()}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof ur);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),this.classObserver=new MutationObserver(()=>{this.requestUpdate()}),this.classObserver.observe(this,{attributes:!0,attributeFilter:["class"]}),this._select&&(this.parentObserver=new MutationObserver(()=>{this.requestUpdate()}),this.parentObserver.observe(this._select,{attributes:!0,attributeFilter:["disabled"]}))}disconnectedCallback(){var e,t;this._select.selectStore.unsubscribe(this.onStoreChange),(e=this.classObserver)==null||e.disconnect(),(t=this.parentObserver)==null||t.disconnect()}get _containerElement(){return this.querySelector("span[part=select-trigger-container]")}firstUpdated(e){var t;super.firstUpdated(e),this._adoptId(),this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",this.handleClick)}updated(e){var t;(t=super.updated)==null||t.call(this,e),e.has("id")&&this._adoptId()}_adoptId(){this.id&&(this._triggerId=this.id),this.removeAttribute("id")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}getClassAttribute(){const e=this.getAttribute("class")||"",t=this.customClass||"",r=this.className||"";return e||t||r||""}filterConflictingWidthClasses(e,t){const r=/pont-w-[\w-[\]]+/;return r.test(t)?e.map(o=>o.split(/\s+/).filter(i=>!r.test(i)).join(" ")):e}render(){var n;const e=this.getClassAttribute(),t=this.filterConflictingWidthClasses(ee.trigger.trigger,e),r=((n=this._select)==null?void 0:n.disabled)||!1;return l`
2180
2180
  <button
2181
2181
  type="button"
2182
2182
  id=${this._triggerId!==""?this._triggerId:h}
@@ -2278,7 +2278,7 @@
2278
2278
  >
2279
2279
  <path d="M21 12a9 9 0 1 1-6.219-8.56" />
2280
2280
  </svg>
2281
- `}};Ph([a({type:String})],wa.prototype,"variant",2);wa=Ph([p("pont-spinner")],wa);const vc={root:["pont-inline-flex","pont-shrink-0 pont-items-center","pont-w-switch-space-w pont-h-switch-space-h","pont-rounded-switch-radius pont-border-switch-width-border pont-border-switch-color-border pont-outline-none","pont-transition-all","focus-visible:pont-border-switch-color-border-focus focus-visible:pont-ring-switch-width-ring-focus focus-visible:pont-ring-switch-color-ring-focus",'data-[state="checked"]:pont-bg-switch-color-bg-checked data-[state="unchecked"]:pont-bg-switch-color-bg-unchecked','data-[disabled="true"]:pont-opacity-switch-opacity-disabled data-[disabled="true"]:pont-cursor-not-allowed'],thumb:["pont-pointer-events-none","pont-block","pont-size-switch-thumb-space-size","pont-rounded-switch-thumb-radius","pont-ring-0","pont-transition-transform",'data-[state="checked"]:pont-bg-switch-thumb-color-bg-checked data-[state="unchecked"]:pont-bg-switch-thumb-color-bg-unchecked','data-[state="checked"]:pont-translate-x-[calc(100%-2px)] data-[state="unchecked"]:pont-translate-x-0']};var Sw=Object.defineProperty,Ew=Object.getOwnPropertyDescriptor,ml=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ew(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Sw(t,r,o),o};let bi=class extends f{constructor(){super(...arguments),this.disabled="false",this.state="unchecked"}_toggleChecked(){this.disabled==="false"&&(this.state=this.state==="checked"?"unchecked":"checked",this.dispatchEvent(new CustomEvent("change",{detail:this.state})))}createRenderRoot(){return this.classList="pont-w-switch-space-w pont-h-switch-space-h",this}render(){return l`
2281
+ `}};Ph([a({type:String})],wa.prototype,"variant",2);wa=Ph([p("pont-spinner")],wa);const vc={root:["pont-inline-flex","pont-shrink-0 pont-items-center","pont-w-switch-space-w pont-h-switch-space-h","pont-rounded-switch-radius pont-border-switch-width-border pont-border-switch-color-border pont-outline-none","pont-transition-all","focus-visible:pont-border-switch-color-border-focus focus-visible:pont-ring-switch-width-ring-focus focus-visible:pont-ring-switch-color-ring-focus",'data-[state="checked"]:pont-bg-switch-color-bg-checked data-[state="unchecked"]:pont-bg-switch-color-bg-unchecked','data-[disabled="true"]:pont-opacity-switch-opacity-disabled data-[disabled="true"]:pont-cursor-not-allowed'],thumb:["pont-pointer-events-none","pont-block","pont-size-switch-thumb-space-size","pont-rounded-switch-thumb-radius","pont-ring-0","pont-transition-transform",'data-[state="checked"]:pont-bg-switch-thumb-color-bg-checked data-[state="unchecked"]:pont-bg-switch-thumb-color-bg-unchecked','data-[state="checked"]:pont-translate-x-[calc(100%-2px)] data-[state="unchecked"]:pont-translate-x-0']};var Sw=Object.defineProperty,Ew=Object.getOwnPropertyDescriptor,ml=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ew(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Sw(t,r,o),o};let yi=class extends f{constructor(){super(...arguments),this.disabled="false",this.state="unchecked"}_toggleChecked(){this.disabled==="false"&&(this.state=this.state==="checked"?"unchecked":"checked",this.dispatchEvent(new CustomEvent("change",{detail:this.state})))}createRenderRoot(){return this.classList="pont-w-switch-space-w pont-h-switch-space-h",this}render(){return l`
2282
2282
  <div
2283
2283
  part="switch"
2284
2284
  role="switch"
@@ -2294,7 +2294,7 @@
2294
2294
  class=${u(vc.thumb)}
2295
2295
  ></div>
2296
2296
  </div>
2297
- `}};ml([a({attribute:"data-disabled",type:String})],bi.prototype,"disabled",2);ml([a({attribute:"data-state",type:String})],bi.prototype,"state",2);bi=ml([p("pont-switch")],bi);const wt={preview:["pont-flex pont-bg-table-preview-color-bg pont-w-table-preview-space-w pont-items-center pont-justify-center pont-px-table-preview-space-px pont-py-table-preview-space-py"],container:["pont-relative pont-w-table-container-space-w pont-overflow-auto"],table:["pont-w-table-space-w pont-caption-bottom pont-text-table-font"],caption:["pont-mt-table-caption-space-mt pont-text-table-caption-font pont-text-table-caption-color-text"],head:{root:["[&_tr]:pont-border-table-head-color-border [&_tr]:pont-border-b-table-head-width-border"],row:["pont-border-b-table-head-width-border pont-border-table-head-color-border pont-transition-colors hover:pont-bg-table-head-row-color-bg-hover"],cell:{base:["pont-h-table-head-cell-space-h pont-px-table-head-cell-space-px pont-align-middle pont-font-table-head-cell-font-weight pont-text-table-head-cell-color-text"],align:{left:"pont-text-left",right:"pont-text-right"}}},body:{root:["[&_tr:last-child]:pont-border-0"],row:["pont-border-b-table-body-width-border pont-border-table-body-color-border pont-transition-colors hover:pont-bg-table-body-row-color-bg-hover"],cell:{base:["pont-px-table-body-cell-space-px pont-py-table-body-cell-space-py pont-align-middle"],align:{right:"pont-text-right"}}},footer:{root:["pont-border-t-table-footer-width-border pont-border-table-footer-color-border pont-bg-table-footer-color-bg pont-font-table-footer-font-weight [&>tr]:pont-last:border-b-0"],row:["pont-border-b-table-footer-width-border pont-border-table-footer-color-border pont-transition-colors hover:pont-bg-table-footer-row-color-bg-hover"],cell:{base:["pont-px-table-footer-cell-space-px pont-py-table-footer-cell-space-py pont-align-middle"],align:{right:"pont-text-right"}}}};var xw=Object.defineProperty,Ow=Object.getOwnPropertyDescriptor,Di=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ow(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&xw(t,r,o),o};let gn=class extends y{constructor(){super(...arguments),this.dataTable=[],this.footerData=[],this.captionText=""}get _containerElement(){return this.querySelector("table[part=table]")}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var t;const e=(t=this.dataTable)==null?void 0:t[0];return e?Object.keys(e).filter(r=>r!=="id"):[]}capitalizeLabel(e){return e.charAt(0).toUpperCase()+e.slice(1)}render(){const e=this.columnKeys;return l`
2297
+ `}};ml([a({attribute:"data-disabled",type:String})],yi.prototype,"disabled",2);ml([a({attribute:"data-state",type:String})],yi.prototype,"state",2);yi=ml([p("pont-switch")],yi);const wt={preview:["pont-flex pont-bg-table-preview-color-bg pont-w-table-preview-space-w pont-items-center pont-justify-center pont-px-table-preview-space-px pont-py-table-preview-space-py"],container:["pont-relative pont-w-table-container-space-w pont-overflow-auto"],table:["pont-w-table-space-w pont-caption-bottom pont-text-table-font"],caption:["pont-mt-table-caption-space-mt pont-text-table-caption-font pont-text-table-caption-color-text"],head:{root:["[&_tr]:pont-border-table-head-color-border [&_tr]:pont-border-b-table-head-width-border"],row:["pont-border-b-table-head-width-border pont-border-table-head-color-border pont-transition-colors hover:pont-bg-table-head-row-color-bg-hover"],cell:{base:["pont-h-table-head-cell-space-h pont-px-table-head-cell-space-px pont-align-middle pont-font-table-head-cell-font-weight pont-text-table-head-cell-color-text"],align:{left:"pont-text-left",right:"pont-text-right"}}},body:{root:["[&_tr:last-child]:pont-border-0"],row:["pont-border-b-table-body-width-border pont-border-table-body-color-border pont-transition-colors hover:pont-bg-table-body-row-color-bg-hover"],cell:{base:["pont-px-table-body-cell-space-px pont-py-table-body-cell-space-py pont-align-middle"],align:{right:"pont-text-right"}}},footer:{root:["pont-border-t-table-footer-width-border pont-border-table-footer-color-border pont-bg-table-footer-color-bg pont-font-table-footer-font-weight [&>tr]:pont-last:border-b-0"],row:["pont-border-b-table-footer-width-border pont-border-table-footer-color-border pont-transition-colors hover:pont-bg-table-footer-row-color-bg-hover"],cell:{base:["pont-px-table-footer-cell-space-px pont-py-table-footer-cell-space-py pont-align-middle"],align:{right:"pont-text-right"}}}};var xw=Object.defineProperty,Ow=Object.getOwnPropertyDescriptor,Di=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ow(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&xw(t,r,o),o};let fn=class extends y{constructor(){super(...arguments),this.dataTable=[],this.footerData=[],this.captionText=""}get _containerElement(){return this.querySelector("table[part=table]")}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var t;const e=(t=this.dataTable)==null?void 0:t[0];return e?Object.keys(e).filter(r=>r!=="id"):[]}capitalizeLabel(e){return e.charAt(0).toUpperCase()+e.slice(1)}render(){const e=this.columnKeys;return l`
2298
2298
  <div class=${u(wt.preview)}>
2299
2299
  <div class=${u(wt.container)}>
2300
2300
  <table part="table" class=${u(wt.table)}>
@@ -2349,7 +2349,7 @@
2349
2349
  </table>
2350
2350
  </div>
2351
2351
  </div>
2352
- `}};Di([a({type:Array})],gn.prototype,"dataTable",2);Di([a({type:Array})],gn.prototype,"footerData",2);Di([a({type:String})],gn.prototype,"captionText",2);gn=Di([p("pont-table")],gn);const Rw="pont-account-settings-dashboard-width",Iw="pont-account-settings-modal-width",Aw="pont-account-settings-dashboard",Tw="pont-account-settings-page-reset-margin",Dw="pont-account-settings-modal-root",rt="pont",bc={xs:640,sm:768};function Lw(){const e=Date.now().toString(36),t=Math.random().toString(36).substring(2,7);return`${rt}-${e}${t}`}function Fw(e,t){return`${e}-trigger-${t}`}function kw(e,t){return`${e}-content-${t}`}var Mw=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,vr=(e,t,r,n)=>{for(var o=n>1?void 0:n?Nw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Mw(t,r,o),o};let Ke=class extends f{constructor(){super(...arguments),this._initialSyncDone=!1,this.orientation="horizontal",this.dir="ltr",this.activationMode="automatic",this._baseId=Lw(),this._onTriggerSelect=e=>{var r;const t=e.detail.value;this._isControlled?(r=this.onValueChange)==null||r.call(this,t):this._activeValue=t}}connectedCallback(){super.connectedCallback(),this._mutationObserver=new MutationObserver(()=>{this._sync()}),this._mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;(e=this._mutationObserver)==null||e.disconnect(),super.disconnectedCallback()}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="tabs"]')}get _list(){return this.querySelector("pont-tabs-list")}get _triggers(){return Array.from(this.querySelectorAll("pont-tabs-trigger"))}get _contents(){return Array.from(this.querySelectorAll("pont-tabs-content"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._activeValue}_sync(){var r,n;if(!this._rootSlot)return;if((r=this._list)!=null&&r._listSlot){const o=this._list._listSlot;o.setAttribute("data-orientation",this.orientation),o.setAttribute("aria-orientation",this.orientation)}const e=this._triggers,t=this._contents;e.length!==0&&(!this._initialSyncDone&&!this._isControlled&&!this._activeValue&&(this._activeValue=this.defaultValue??((n=e[0])==null?void 0:n.value),this._initialSyncDone=!0),e.forEach(o=>{var c;const i=o._triggerSlot;if(!i)return;i.setAttribute("data-orientation",this.orientation),i.id||(i.id=Fw(this._baseId,o.value));const s=o.value===this._currentValue;i.setAttribute("data-state",s?"active":"inactive"),i.tabIndex=s?0:-1,i.setAttribute("aria-selected",String(s));const d=t.find(m=>m.value===o.value);d!=null&&d._contentSlot&&((c=d._contentSlot).id||(c.id=kw(this._baseId,d.value)),d._contentSlot.setAttribute("aria-labelledby",i.id),i.setAttribute("aria-controls",d._contentSlot.id))}),t.forEach(o=>{const i=o._contentSlot;if(!i)return;i.setAttribute("data-orientation",this.orientation);const s=o.value===this._currentValue;i.setAttribute("data-state",s?"active":"inactive"),i.toggleAttribute("hidden",!s)}))}async firstUpdated(){Array.from(this.childNodes).forEach(e=>{var t;e!==this._rootSlot&&((t=this._rootSlot)==null||t.appendChild(e))}),this.addEventListener("pont-tabs:trigger-select",this._onTriggerSelect),await this.updateComplete,await new Promise(e=>setTimeout(e,0)),this._sync()}updated(e){e.has("value")&&this._isControlled&&(this._activeValue=this.value),this._sync()}render(){return l`
2352
+ `}};Di([a({type:Array})],fn.prototype,"dataTable",2);Di([a({type:Array})],fn.prototype,"footerData",2);Di([a({type:String})],fn.prototype,"captionText",2);fn=Di([p("pont-table")],fn);const Rw="pont-account-settings-dashboard-width",Iw="pont-account-settings-modal-width",Aw="pont-account-settings-dashboard",Tw="pont-account-settings-page-reset-margin",Dw="pont-account-settings-modal-root",ot="pont",bc={xs:640,sm:768};function Lw(){const e=Date.now().toString(36),t=Math.random().toString(36).substring(2,7);return`${ot}-${e}${t}`}function Fw(e,t){return`${e}-trigger-${t}`}function kw(e,t){return`${e}-content-${t}`}var Mw=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,vr=(e,t,r,n)=>{for(var o=n>1?void 0:n?Nw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Mw(t,r,o),o};let Ke=class extends f{constructor(){super(...arguments),this._initialSyncDone=!1,this.orientation="horizontal",this.dir="ltr",this.activationMode="automatic",this._baseId=Lw(),this._onTriggerSelect=e=>{var r;const t=e.detail.value;this._isControlled?(r=this.onValueChange)==null||r.call(this,t):this._activeValue=t}}connectedCallback(){super.connectedCallback(),this._mutationObserver=new MutationObserver(()=>{this._sync()}),this._mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;(e=this._mutationObserver)==null||e.disconnect(),super.disconnectedCallback()}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="tabs"]')}get _list(){return this.querySelector("pont-tabs-list")}get _triggers(){return Array.from(this.querySelectorAll("pont-tabs-trigger"))}get _contents(){return Array.from(this.querySelectorAll("pont-tabs-content"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._activeValue}_sync(){var r,n;if(!this._rootSlot)return;if((r=this._list)!=null&&r._listSlot){const o=this._list._listSlot;o.setAttribute("data-orientation",this.orientation),o.setAttribute("aria-orientation",this.orientation)}const e=this._triggers,t=this._contents;e.length!==0&&(!this._initialSyncDone&&!this._isControlled&&!this._activeValue&&(this._activeValue=this.defaultValue??((n=e[0])==null?void 0:n.value),this._initialSyncDone=!0),e.forEach(o=>{var c;const i=o._triggerSlot;if(!i)return;i.setAttribute("data-orientation",this.orientation),i.id||(i.id=Fw(this._baseId,o.value));const s=o.value===this._currentValue;i.setAttribute("data-state",s?"active":"inactive"),i.tabIndex=s?0:-1,i.setAttribute("aria-selected",String(s));const d=t.find(m=>m.value===o.value);d!=null&&d._contentSlot&&((c=d._contentSlot).id||(c.id=kw(this._baseId,d.value)),d._contentSlot.setAttribute("aria-labelledby",i.id),i.setAttribute("aria-controls",d._contentSlot.id))}),t.forEach(o=>{const i=o._contentSlot;if(!i)return;i.setAttribute("data-orientation",this.orientation);const s=o.value===this._currentValue;i.setAttribute("data-state",s?"active":"inactive"),i.toggleAttribute("hidden",!s)}))}async firstUpdated(){Array.from(this.childNodes).forEach(e=>{var t;e!==this._rootSlot&&((t=this._rootSlot)==null||t.appendChild(e))}),this.addEventListener("pont-tabs:trigger-select",this._onTriggerSelect),await this.updateComplete,await new Promise(e=>setTimeout(e,0)),this._sync()}updated(e){e.has("value")&&this._isControlled&&(this._activeValue=this.value),this._sync()}render(){return l`
2353
2353
  <div
2354
2354
  data-slot="tabs"
2355
2355
  data-orientation=${this.orientation}
@@ -2362,7 +2362,7 @@
2362
2362
  role="tablist"
2363
2363
  tabindex="0"
2364
2364
  ></div>
2365
- `}};Ch([a({type:String})],$a.prototype,"variant",2);$a=Ch([p("pont-tabs-list")],$a);var jw=Object.defineProperty,qw=Object.getOwnPropertyDescriptor,gl=(e,t,r,n)=>{for(var o=n>1?void 0:n?qw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jw(t,r,o),o};let yi=class extends f{constructor(){super(...arguments),this.value="",this._onClick=()=>{this._emitSelect()},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._emitSelect())}}createRenderRoot(){return this}get _triggerSlot(){return this.querySelector('[data-slot="tabs-trigger"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._triggerSlot&&((r=this._triggerSlot)==null||r.appendChild(t))})}_emitSelect(){this.disabled||this.dispatchEvent(new CustomEvent("pont-tabs:trigger-select",{detail:{value:this.value},bubbles:!0}))}render(){return l`
2365
+ `}};Ch([a({type:String})],$a.prototype,"variant",2);$a=Ch([p("pont-tabs-list")],$a);var jw=Object.defineProperty,qw=Object.getOwnPropertyDescriptor,gl=(e,t,r,n)=>{for(var o=n>1?void 0:n?qw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&jw(t,r,o),o};let _i=class extends f{constructor(){super(...arguments),this.value="",this._onClick=()=>{this._emitSelect()},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._emitSelect())}}createRenderRoot(){return this}get _triggerSlot(){return this.querySelector('[data-slot="tabs-trigger"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._triggerSlot&&((r=this._triggerSlot)==null||r.appendChild(t))})}_emitSelect(){this.disabled||this.dispatchEvent(new CustomEvent("pont-tabs:trigger-select",{detail:{value:this.value},bubbles:!0}))}render(){return l`
2366
2366
  <button
2367
2367
  data-slot="tabs-trigger"
2368
2368
  ?data-disabled=${this.disabled}
@@ -2372,18 +2372,18 @@
2372
2372
  @click=${this._onClick}
2373
2373
  @keydown=${this._onKeyDown}
2374
2374
  ></button>
2375
- `}};gl([a({type:String})],yi.prototype,"value",2);gl([a({type:Boolean})],yi.prototype,"disabled",2);yi=gl([p("pont-tabs-trigger")],yi);var zw=Object.defineProperty,Vw=Object.getOwnPropertyDescriptor,Sh=(e,t,r,n)=>{for(var o=n>1?void 0:n?Vw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&zw(t,r,o),o};let Pa=class extends f{constructor(){super(...arguments),this.value=""}createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="tabs-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}render(){return l`
2375
+ `}};gl([a({type:String})],_i.prototype,"value",2);gl([a({type:Boolean})],_i.prototype,"disabled",2);_i=gl([p("pont-tabs-trigger")],_i);var zw=Object.defineProperty,Vw=Object.getOwnPropertyDescriptor,Sh=(e,t,r,n)=>{for(var o=n>1?void 0:n?Vw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&zw(t,r,o),o};let Pa=class extends f{constructor(){super(...arguments),this.value=""}createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="tabs-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}render(){return l`
2376
2376
  <div
2377
2377
  data-slot="tabs-content"
2378
2378
  role="tabpanel"
2379
2379
  tabindex="0"
2380
2380
  hidden
2381
2381
  ></div>
2382
- `}};Sh([a({type:String})],Pa.prototype,"value",2);Pa=Sh([p("pont-tabs-content")],Pa);const Rn={viewportRoot:["pont-fixed pont-top-0 pont-z-[100] pont-flex pont-max-h-screen pont-w-toast-viewport-root-space-w pont-flex-col-reverse pont-px-toast-viewport-root-space-px pont-py-toast-viewport-root-space-py sm:pont-bottom-0 sm:pont-right-0 sm:pont-top-auto sm:pont-flex-col md:pont-max-w-toast-viewport-root-space-w-md"],viewportItem:{base:["group pont-pointer-events-auto pont-relative pont-flex pont-w-toast-viewport-item-space-w pont-items-center pont-justify-between pont-gap-toast-viewport-item-space-gap pont-overflow-hidden pont-rounded-toast-viewport-item-radius pont-px-toast-viewport-item-space-px pont-py-toast-viewport-item-space-py pont-shadow-toast-viewport-item-shadow pont-transition-all","data-[swipe=cancel]:pont-translate-x-0","data-[swipe=end]:pont-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:pont-translate-x-[var(--radix-toast-swipe-move-x)]","data-[swipe=move]:pont-transition-none","data-[state=open]:pont-animate-toast-animate-in","data-[state=closed]:pont-animate-toast-animate-out","data-[swipe=end]:pont-animate-toast-animate-out","data-[state=closed]:pont-opacity-80","data-[state=open]:pont-translate-y-toast-viewport-item-translate-y-enter-desktop","data-[state=open]:sm:pont-translate-y-toast-viewport-item-translate-y-enter-mobile","data-[state=closed]:pont-translate-x-toast-viewport-item-translate-x-exit"],variants:{default:["pont-border pont-border-toast-viewport-default-color-border pont-bg-toast-viewport-default-color-bg pont-text-toast-viewport-default-color-text"],destructive:["pont-bg-toast-viewport-destructive-color-bg pont-text-toast-viewport-destructive-color-text"]}},action:{base:["pont-text-toast-action-font pont-font-toast-action-font-weight pont-text-toast-action-color-text","pont-h-toast-action-space-h pont-px-toast-action-space-px pont-py-toast-action-space-py","pont-inline-flex pont-border pont-border-toast-action-color-border pont-shrink-0 pont-items-center pont-justify-center pont-rounded-toast-action-radius pont-transition-colors","focus:pont-outline-none focus:pont-ring-toast-action-width-ring-focus focus:pont-ring-toast-action-color-ring-focus","disabled:pont-pointer-events-none disabled:pont-opacity-toast-action-opacity-disabled"],variants:{default:["pont-bg-toast-action-default-color-bg hover:pont-bg-toast-action-default-color-bg-hover"],destructive:["pont-bg-toast-action-destructive-color-bg hover:pont-bg-toast-action-destructive-color-bg-hover pont-text-toast-action-destructive-color-text focus:pont-ring-toast-action-destructive-color-ring-focus"]}},title:["pont-text-toast-title-font pont-font-toast-title-font-weight [&+div]:pont-text-toast-title-font"],description:["pont-text-toast-description-font pont-opacity-toast-description-opacity"]};var Hw=Object.defineProperty,Gw=Object.getOwnPropertyDescriptor,fl=(e,t,r,n)=>{for(var o=n>1?void 0:n?Gw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Hw(t,r,o),o};const yc="closed";let qr=class extends y{constructor(){super(...arguments),this.variant="default",this.state=yc}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l` <ol
2382
+ `}};Sh([a({type:String})],Pa.prototype,"value",2);Pa=Sh([p("pont-tabs-content")],Pa);const In={viewportRoot:["pont-fixed pont-top-0 pont-z-[100] pont-flex pont-max-h-screen pont-w-toast-viewport-root-space-w pont-flex-col-reverse pont-px-toast-viewport-root-space-px pont-py-toast-viewport-root-space-py sm:pont-bottom-0 sm:pont-right-0 sm:pont-top-auto sm:pont-flex-col md:pont-max-w-toast-viewport-root-space-w-md"],viewportItem:{base:["group pont-pointer-events-auto pont-relative pont-flex pont-w-toast-viewport-item-space-w pont-items-center pont-justify-between pont-gap-toast-viewport-item-space-gap pont-overflow-hidden pont-rounded-toast-viewport-item-radius pont-px-toast-viewport-item-space-px pont-py-toast-viewport-item-space-py pont-shadow-toast-viewport-item-shadow pont-transition-all","data-[swipe=cancel]:pont-translate-x-0","data-[swipe=end]:pont-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:pont-translate-x-[var(--radix-toast-swipe-move-x)]","data-[swipe=move]:pont-transition-none","data-[state=open]:pont-animate-toast-animate-in","data-[state=closed]:pont-animate-toast-animate-out","data-[swipe=end]:pont-animate-toast-animate-out","data-[state=closed]:pont-opacity-80","data-[state=open]:pont-translate-y-toast-viewport-item-translate-y-enter-desktop","data-[state=open]:sm:pont-translate-y-toast-viewport-item-translate-y-enter-mobile","data-[state=closed]:pont-translate-x-toast-viewport-item-translate-x-exit"],variants:{default:["pont-border pont-border-toast-viewport-default-color-border pont-bg-toast-viewport-default-color-bg pont-text-toast-viewport-default-color-text"],destructive:["pont-bg-toast-viewport-destructive-color-bg pont-text-toast-viewport-destructive-color-text"]}},action:{base:["pont-text-toast-action-font pont-font-toast-action-font-weight pont-text-toast-action-color-text","pont-h-toast-action-space-h pont-px-toast-action-space-px pont-py-toast-action-space-py","pont-inline-flex pont-border pont-border-toast-action-color-border pont-shrink-0 pont-items-center pont-justify-center pont-rounded-toast-action-radius pont-transition-colors","focus:pont-outline-none focus:pont-ring-toast-action-width-ring-focus focus:pont-ring-toast-action-color-ring-focus","disabled:pont-pointer-events-none disabled:pont-opacity-toast-action-opacity-disabled"],variants:{default:["pont-bg-toast-action-default-color-bg hover:pont-bg-toast-action-default-color-bg-hover"],destructive:["pont-bg-toast-action-destructive-color-bg hover:pont-bg-toast-action-destructive-color-bg-hover pont-text-toast-action-destructive-color-text focus:pont-ring-toast-action-destructive-color-ring-focus"]}},title:["pont-text-toast-title-font pont-font-toast-title-font-weight [&+div]:pont-text-toast-title-font"],description:["pont-text-toast-description-font pont-opacity-toast-description-opacity"]};var Hw=Object.defineProperty,Gw=Object.getOwnPropertyDescriptor,fl=(e,t,r,n)=>{for(var o=n>1?void 0:n?Gw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Hw(t,r,o),o};const yc="closed";let qr=class extends y{constructor(){super(...arguments),this.variant="default",this.state=yc}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l` <ol
2383
2383
  part="toast-view-port"
2384
2384
  tabindex="-1"
2385
2385
  @click="${e=>e.stopPropagation()}"
2386
- class="${u(Rn.viewportRoot,this.className,`${this.state===yc?"hidden":"block"} `)}"
2386
+ class="${u(In.viewportRoot,this.className,`${this.state===yc?"hidden":"block"} `)}"
2387
2387
  >
2388
2388
  <li
2389
2389
  part="toast-view-port-li"
@@ -2397,16 +2397,16 @@
2397
2397
  data-radix-collection-item=""
2398
2398
  style="user-select: none; touch-action: none;"
2399
2399
  ></li>
2400
- </ol>`}};qr.toastVariants=Rn.viewportItem;fl([a({type:String})],qr.prototype,"variant",2);fl([a({attribute:"data-state",type:String})],qr.prototype,"state",2);qr=fl([p("pont-toast-view-port")],qr);var Kw=Object.defineProperty,Ww=Object.getOwnPropertyDescriptor,Eh=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ww(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Kw(t,r,o),o};let So=class extends y{constructor(){super(...arguments),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){const e=this.getAttributesToExclude(),t={};for(const r of this.attributes)e.includes(r.name)||(t[r.name]=r.value);return t}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return l`
2400
+ </ol>`}};qr.toastVariants=In.viewportItem;fl([a({type:String})],qr.prototype,"variant",2);fl([a({attribute:"data-state",type:String})],qr.prototype,"state",2);qr=fl([p("pont-toast-view-port")],qr);var Kw=Object.defineProperty,Ww=Object.getOwnPropertyDescriptor,Eh=(e,t,r,n)=>{for(var o=n>1?void 0:n?Ww(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Kw(t,r,o),o};let So=class extends y{constructor(){super(...arguments),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){const e=this.getAttributesToExclude(),t={};for(const r of this.attributes)e.includes(r.name)||(t[r.name]=r.value);return t}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return l`
2401
2401
  <button
2402
2402
  ${St(e)}
2403
2403
  part="toast-action"
2404
2404
  type="button"
2405
2405
  class="${u(So.toastVariants.base,So.toastVariants.variants[this.variant],this.className,"pont-w-max")}"
2406
2406
  ></button>
2407
- `}};So.toastVariants=Rn.action;Eh([a({type:String})],So.prototype,"variant",2);So=Eh([p("pont-toast-action")],So);var Yw=Object.getOwnPropertyDescriptor,Qw=(e,t,r,n)=>{for(var o=n>1?void 0:n?Yw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let _c=class extends y{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
2407
+ `}};So.toastVariants=In.action;Eh([a({type:String})],So.prototype,"variant",2);So=Eh([p("pont-toast-action")],So);var Yw=Object.getOwnPropertyDescriptor,Qw=(e,t,r,n)=>{for(var o=n>1?void 0:n?Yw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let _c=class extends y{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
2408
2408
  <div
2409
- class="${u(Rn.description,this.className)}"
2409
+ class="${u(In.description,this.className)}"
2410
2410
  part="toast-description"
2411
2411
  >
2412
2412
  <slot></slot>
@@ -2414,15 +2414,15 @@
2414
2414
  `}};_c=Qw([p("pont-toast-description")],_c);var Zw=Object.getOwnPropertyDescriptor,Jw=(e,t,r,n)=>{for(var o=n>1?void 0:n?Zw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let wc=class extends y{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return l`
2415
2415
  <div
2416
2416
  part="toast-title"
2417
- class="${u(Rn.title,this.className)}"
2417
+ class="${u(In.title,this.className)}"
2418
2418
  ></div>
2419
- `}};wc=Jw([p("pont-toast-title")],wc);var Xw=Object.getOwnPropertyDescriptor,t$=(e,t,r,n)=>{for(var o=n>1?void 0:n?Xw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let $c=class extends y{constructor(){super(),this.handleClick=this.handleClick.bind(this)}get _containerElement(){return this.querySelector("div[part=toast-trigger]")}get _toast(){let e=this.parentElement;for(;e&&!(e instanceof _i);)e=e.parentElement;return e}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}handleClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return l`
2419
+ `}};wc=Jw([p("pont-toast-title")],wc);var Xw=Object.getOwnPropertyDescriptor,t$=(e,t,r,n)=>{for(var o=n>1?void 0:n?Xw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let $c=class extends y{constructor(){super(),this.handleClick=this.handleClick.bind(this)}get _containerElement(){return this.querySelector("div[part=toast-trigger]")}get _toast(){let e=this.parentElement;for(;e&&!(e instanceof wi);)e=e.parentElement;return e}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}handleClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return l`
2420
2420
  <div
2421
2421
  @click=${this.handleClick}
2422
2422
  part="toast-trigger"
2423
2423
  class="${u(this.className)}"
2424
2424
  ></div>
2425
- `}};$c=t$([p("pont-toast-trigger")],$c);var e$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,xh=(e,t,r,n)=>{for(var o=n>1?void 0:n?r$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&e$(t,r,o),o};let _i=class extends y{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=toast]")}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1}),this.addEventListener("open-toast",()=>{this.isOpen=!0})}get _content(){return this.querySelector("pont-toast-view-port")}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return l` <div class="${u("",this.className)}" part="toast"></div> `}};xh([g()],_i.prototype,"isOpen",2);_i=xh([p("pont-toast")],_i);var wi=(e=>(e.MULTIPLE="multiple",e.SINGLE="single",e))(wi||{}),$i=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))($i||{}),Pi=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(Pi||{});const o$=za("pont-inline-flex pont-items-center pont-justify-center pont-rounded-toggle-group-item-radius pont-text-toggle-group-item-font pont-font-toggle-group-item-font-weight pont-transition-colors focus-visible:pont-outline-none focus-visible:pont-ring-toggle-group-item-width-ring-focus focus-visible:pont-ring-toggle-group-item-color-ring-focus focus-visible:pont-ring-offset-toggle-group-item-width-ring-offset-focus disabled:pont-pointer-events-none disabled:pont-opacity-toggle-group-item-opacity-disabled data-[state=on]:pont-bg-toggle-group-item-color-bg-on data-[state=on]:pont-text-toggle-group-item-color-text-on pont-bg-transparent",{variants:{variant:{default:"hover:pont-bg-toggle-group-item-default-color-bg-hover hover:pont-text-toggle-group-item-default-color-text-hover",outline:"pont-border pont-border-toggle-group-item-outline-color-border hover:pont-bg-toggle-group-item-outline-color-bg-hover hover:pont-text-toggle-group-item-outline-color-text-hover"},size:{sm:"pont-h-toggle-group-item-space-h-sm pont-px-toggle-group-item-space-px-sm",md:"pont-h-toggle-group-item-space-h-md pont-px-toggle-group-item-space-px-md",lg:"pont-h-toggle-group-item-space-h-lg pont-px-toggle-group-item-space-px-lg"}}}),n$="pont-flex pont-items-center pont-justify-center pont-gap-toggle-group-space-gap";var i$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,Wr=(e,t,r,n)=>{for(var o=n>1?void 0:n?s$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&i$(t,r,o),o};let Se=class extends y{constructor(){super(),this.checked=!1,this.id=Ma(),this.variant=$i.DEFAULT,this.size=Pi.SMALL,this.disabled=!1,this.type=wi.SINGLE,this.variant=$i.DEFAULT,this.size=Pi.SMALL}get _parent(){let e=this.parentElement;for(;e&&!(e instanceof We);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var e;return Array.from(((e=this.parentElement)==null?void 0:e.children)||[]).filter(t=>t!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(e){this.syncFromParent(),this.moveLightDomChildrenInto(this._containerElement)}syncFromParent(){const e=this._parent;if(!e)return;this.variant!==e.variant&&(this.variant=e.variant),this.size!==e.size&&(this.size=e.size);const t=e.selectedItems.includes(this.id);this.checked!==t&&(this.checked=t),this.type!==e.type&&(this.type=e.type)}syncSelection(){const e=this._parent;if(!e)return;const t=e.selectedItems.includes(this.id);this.checked!==t&&(this.checked=t)}toggleSelection(e){if(this.disabled||!this._parent)return;const t=this._parent,r=t.selectedItems.indexOf(e);this.type===wi.SINGLE?(r!==-1?t.selectedItems.splice(r,1):t.selectedItems[0]=e,this._siblings.forEach(n=>n.syncSelection())):r!==-1?t.selectedItems.splice(r,1):t.selectedItems.push(e),this.syncSelection()}render(){return console.log({variant:this.variant,size:this.size,className:this.className}),l`
2425
+ `}};$c=t$([p("pont-toast-trigger")],$c);var e$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,xh=(e,t,r,n)=>{for(var o=n>1?void 0:n?r$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&e$(t,r,o),o};let wi=class extends y{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=toast]")}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1}),this.addEventListener("open-toast",()=>{this.isOpen=!0})}get _content(){return this.querySelector("pont-toast-view-port")}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return l` <div class="${u("",this.className)}" part="toast"></div> `}};xh([g()],wi.prototype,"isOpen",2);wi=xh([p("pont-toast")],wi);var $i=(e=>(e.MULTIPLE="multiple",e.SINGLE="single",e))($i||{}),Pi=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(Pi||{}),Ci=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(Ci||{});const o$=za("pont-inline-flex pont-items-center pont-justify-center pont-rounded-toggle-group-item-radius pont-text-toggle-group-item-font pont-font-toggle-group-item-font-weight pont-transition-colors focus-visible:pont-outline-none focus-visible:pont-ring-toggle-group-item-width-ring-focus focus-visible:pont-ring-toggle-group-item-color-ring-focus focus-visible:pont-ring-offset-toggle-group-item-width-ring-offset-focus disabled:pont-pointer-events-none disabled:pont-opacity-toggle-group-item-opacity-disabled data-[state=on]:pont-bg-toggle-group-item-color-bg-on data-[state=on]:pont-text-toggle-group-item-color-text-on pont-bg-transparent",{variants:{variant:{default:"hover:pont-bg-toggle-group-item-default-color-bg-hover hover:pont-text-toggle-group-item-default-color-text-hover",outline:"pont-border pont-border-toggle-group-item-outline-color-border hover:pont-bg-toggle-group-item-outline-color-bg-hover hover:pont-text-toggle-group-item-outline-color-text-hover"},size:{sm:"pont-h-toggle-group-item-space-h-sm pont-px-toggle-group-item-space-px-sm",md:"pont-h-toggle-group-item-space-h-md pont-px-toggle-group-item-space-px-md",lg:"pont-h-toggle-group-item-space-h-lg pont-px-toggle-group-item-space-px-lg"}}}),n$="pont-flex pont-items-center pont-justify-center pont-gap-toggle-group-space-gap";var i$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,Wr=(e,t,r,n)=>{for(var o=n>1?void 0:n?s$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&i$(t,r,o),o};let Se=class extends y{constructor(){super(),this.checked=!1,this.id=Ma(),this.variant=Pi.DEFAULT,this.size=Ci.SMALL,this.disabled=!1,this.type=$i.SINGLE,this.variant=Pi.DEFAULT,this.size=Ci.SMALL}get _parent(){let e=this.parentElement;for(;e&&!(e instanceof We);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var e;return Array.from(((e=this.parentElement)==null?void 0:e.children)||[]).filter(t=>t!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(e){this.syncFromParent(),this.moveLightDomChildrenInto(this._containerElement)}syncFromParent(){const e=this._parent;if(!e)return;this.variant!==e.variant&&(this.variant=e.variant),this.size!==e.size&&(this.size=e.size);const t=e.selectedItems.includes(this.id);this.checked!==t&&(this.checked=t),this.type!==e.type&&(this.type=e.type)}syncSelection(){const e=this._parent;if(!e)return;const t=e.selectedItems.includes(this.id);this.checked!==t&&(this.checked=t)}toggleSelection(e){if(this.disabled||!this._parent)return;const t=this._parent,r=t.selectedItems.indexOf(e);this.type===$i.SINGLE?(r!==-1?t.selectedItems.splice(r,1):t.selectedItems[0]=e,this._siblings.forEach(n=>n.syncSelection())):r!==-1?t.selectedItems.splice(r,1):t.selectedItems.push(e),this.syncSelection()}render(){return console.log({variant:this.variant,size:this.size,className:this.className}),l`
2426
2426
  <button
2427
2427
  part="toggle-group-item"
2428
2428
  id=${this.id}
@@ -2433,7 +2433,7 @@
2433
2433
  ?disabled=${this.disabled}
2434
2434
  @click=${()=>this.toggleSelection(this.id)}
2435
2435
  ></button>
2436
- `}};Se.toggleGroupVariants=o$;Wr([a({attribute:!0,type:Boolean,reflect:!0})],Se.prototype,"checked",2);Wr([a({attribute:!0,type:String,reflect:!0})],Se.prototype,"id",2);Wr([a()],Se.prototype,"variant",2);Wr([a()],Se.prototype,"size",2);Wr([a({type:Boolean})],Se.prototype,"disabled",2);Wr([a({type:String})],Se.prototype,"type",2);Se=Wr([p("pont-toggle-group-item")],Se);var a$=Object.defineProperty,l$=Object.getOwnPropertyDescriptor,Yr=(e,t,r,n)=>{for(var o=n>1?void 0:n?l$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&a$(t,r,o),o};let We=class extends y{constructor(){super(...arguments),this.disabled=!1,this.type=wi.SINGLE,this.required=!1,this.variant=$i.DEFAULT,this.size=Pi.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement)}updated(e){(e.has("variant")||e.has("size")||e.has("disabled")||e.has("type"))&&this.querySelectorAll("pont-toggle-group-item").forEach(t=>{t.variant=this.variant,t.size=this.size,t.disabled=this.disabled,t.type=this.type})}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return console.log({variant:this.variant,size:this.size,className:this.className}),l`
2436
+ `}};Se.toggleGroupVariants=o$;Wr([a({attribute:!0,type:Boolean,reflect:!0})],Se.prototype,"checked",2);Wr([a({attribute:!0,type:String,reflect:!0})],Se.prototype,"id",2);Wr([a()],Se.prototype,"variant",2);Wr([a()],Se.prototype,"size",2);Wr([a({type:Boolean})],Se.prototype,"disabled",2);Wr([a({type:String})],Se.prototype,"type",2);Se=Wr([p("pont-toggle-group-item")],Se);var a$=Object.defineProperty,l$=Object.getOwnPropertyDescriptor,Yr=(e,t,r,n)=>{for(var o=n>1?void 0:n?l$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&a$(t,r,o),o};let We=class extends y{constructor(){super(...arguments),this.disabled=!1,this.type=$i.SINGLE,this.required=!1,this.variant=Pi.DEFAULT,this.size=Ci.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement)}updated(e){(e.has("variant")||e.has("size")||e.has("disabled")||e.has("type"))&&this.querySelectorAll("pont-toggle-group-item").forEach(t=>{t.variant=this.variant,t.size=this.size,t.disabled=this.disabled,t.type=this.type})}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return console.log({variant:this.variant,size:this.size,className:this.className}),l`
2437
2437
  <div
2438
2438
  part="toggle-group"
2439
2439
  role="group"
@@ -2441,7 +2441,7 @@
2441
2441
  class="${u(n$,this.className)}"
2442
2442
  ?disable="${this.disabled}"
2443
2443
  ></div>
2444
- `}};Yr([a({type:Boolean})],We.prototype,"disabled",2);Yr([a({type:String})],We.prototype,"type",2);Yr([a({attribute:!0,type:Boolean,reflect:!0})],We.prototype,"required",2);Yr([a()],We.prototype,"variant",2);Yr([a()],We.prototype,"size",2);Yr([a({type:Array})],We.prototype,"selectedItems",2);We=Yr([p("pont-toggle-group")],We);var Gn=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(Gn||{}),Kn=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(Kn||{});const d$=za("pont-inline-flex pont-items-center pont-justify-center pont-rounded-toggle-radius pont-text-toggle-font pont-font-toggle-font-weight pont-transition-colors focus-visible:pont-outline-none focus-visible:pont-ring-toggle-width-ring-focus focus-visible:pont-ring-toggle-color-ring-focus focus-visible:pont-ring-offset-toggle-width-ring-offset-focus disabled:pont-pointer-events-none disabled:pont-opacity-toggle-opacity-disabled data-[state=on]:pont-bg-toggle-color-bg-on data-[state=on]:pont-text-toggle-color-text-on pont-bg-transparent",{variants:{variant:{default:"hover:pont-bg-toggle-default-color-bg-hover hover:pont-text-toggle-default-color-text-hover",outline:"pont-border pont-border-toggle-outline-color-border hover:pont-bg-toggle-outline-color-bg-hover hover:pont-text-toggle-outline-color-text-hover"},size:{sm:"pont-h-toggle-space-h-sm pont-px-toggle-space-px-sm",md:"pont-h-toggle-space-h-md pont-px-toggle-space-px-md",lg:"pont-h-toggle-space-h-lg pont-px-toggle-space-px-lg"}}});var c$=Object.defineProperty,p$=Object.getOwnPropertyDescriptor,Uo=(e,t,r,n)=>{for(var o=n>1?void 0:n?p$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c$(t,r,o),o};let Ye=class extends y{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Kn.DEFAULT,this.size=Gn.SMALL}willUpdate(e){e.has("variant")&&(this.variant=this.normalizeEnum(this.variant,Kn,Kn.DEFAULT)),e.has("size")&&(this.size=this.normalizeEnum(this.size,Gn,Gn.SMALL))}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return l`
2444
+ `}};Yr([a({type:Boolean})],We.prototype,"disabled",2);Yr([a({type:String})],We.prototype,"type",2);Yr([a({attribute:!0,type:Boolean,reflect:!0})],We.prototype,"required",2);Yr([a()],We.prototype,"variant",2);Yr([a()],We.prototype,"size",2);Yr([a({type:Array})],We.prototype,"selectedItems",2);We=Yr([p("pont-toggle-group")],We);var Kn=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(Kn||{}),Wn=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(Wn||{});const d$=za("pont-inline-flex pont-items-center pont-justify-center pont-rounded-toggle-radius pont-text-toggle-font pont-font-toggle-font-weight pont-transition-colors focus-visible:pont-outline-none focus-visible:pont-ring-toggle-width-ring-focus focus-visible:pont-ring-toggle-color-ring-focus focus-visible:pont-ring-offset-toggle-width-ring-offset-focus disabled:pont-pointer-events-none disabled:pont-opacity-toggle-opacity-disabled data-[state=on]:pont-bg-toggle-color-bg-on data-[state=on]:pont-text-toggle-color-text-on pont-bg-transparent",{variants:{variant:{default:"hover:pont-bg-toggle-default-color-bg-hover hover:pont-text-toggle-default-color-text-hover",outline:"pont-border pont-border-toggle-outline-color-border hover:pont-bg-toggle-outline-color-bg-hover hover:pont-text-toggle-outline-color-text-hover"},size:{sm:"pont-h-toggle-space-h-sm pont-px-toggle-space-px-sm",md:"pont-h-toggle-space-h-md pont-px-toggle-space-px-md",lg:"pont-h-toggle-space-h-lg pont-px-toggle-space-px-lg"}}});var c$=Object.defineProperty,p$=Object.getOwnPropertyDescriptor,Uo=(e,t,r,n)=>{for(var o=n>1?void 0:n?p$(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c$(t,r,o),o};let Ye=class extends y{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Wn.DEFAULT,this.size=Kn.SMALL}willUpdate(e){e.has("variant")&&(this.variant=this.normalizeEnum(this.variant,Wn,Wn.DEFAULT)),e.has("size")&&(this.size=this.normalizeEnum(this.size,Kn,Kn.SMALL))}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return l`
2445
2445
  <button
2446
2446
  type="button"
2447
2447
  part="toggle"
@@ -2645,8 +2645,8 @@
2645
2645
  </div>
2646
2646
  ${this.hasDefaultPagination&&this.hasDefaultSelect?this._renderPagination():h}
2647
2647
  </div>
2648
- `}};vt([a({type:String})],ct.prototype,"placeholder",2);vt([a({type:Array})],ct.prototype,"dataTable",2);vt([a({type:Boolean})],ct.prototype,"hasDefaultSelect",2);vt([a({type:Boolean})],ct.prototype,"hasDefaultPagination",2);vt([a({type:Boolean})],ct.prototype,"hasDefaultSearch",2);vt([a({type:Object})],ct.prototype,"checkedRows",2);vt([a({type:String})],ct.prototype,"searchTerm",2);vt([a({type:Object})],ct.prototype,"columnVisibility",2);vt([a({type:String})],ct.prototype,"sortColumn",2);vt([a({type:String})],ct.prototype,"sortDirection",2);vt([a({type:Object})],ct.prototype,"cellRenderers",2);vt([a({type:Object})],ct.prototype,"headerRenderers",2);vt([a({type:Array})],ct.prototype,"rowActions",2);vt([a({type:Array})],ct.prototype,"paginationLabels",2);vt([a({type:Number})],ct.prototype,"pageSize",2);vt([a({type:Number})],ct.prototype,"currentPage",2);vt([a({type:Array})],ct.prototype,"sortableColumns",2);vt([a({type:Array})],ct.prototype,"columnOrder",2);vt([a({type:Function})],ct.prototype,"isRowDisabled",2);ct=vt([p("pont-data-table")],ct);var et=class extends Error{constructor(t,r,n,o){super(r);I(this,"code");I(this,"details");I(this,"status");this.name="LoginflowError",this.code=t,this.details=n,this.status=o}};function Rh(e){const t=(e??"").trim();if(!t)throw new et("CONFIG_ERROR","domain is required");if(t.startsWith("/")){if(typeof location>"u")throw new et("CONFIG_ERROR",`domain "${t}" is relative to the page origin, and there is no page here`);return Tc(new URL(t,location.origin))}const r=/^https?:\/\//i.test(t)?"":`${F$(L$(t))?"http":"https"}://`;try{return Tc(new URL(`${r}${t}`))}catch{throw new et("CONFIG_ERROR",`domain "${t}" is not a hostname, an origin, or a path`)}}function Tc(e){return`${e.origin}${e.pathname}`.replace(/\/+$/,"")}function L$(e){return e.split("/")[0]}function F$(e){return/^(localhost|127\.0\.0\.1|\[::1\])(:\d+)?$/i.test(e)}var ge,k$=(ge=class{constructor(){I(this,"data",new Map)}static get Instance(){return ge.instance||(ge.instance=new ge),ge.instance}get(t){return this.data.get(t)}set(t,r){this.data.set(t,r)}setConfig(t){this.data.set("config",t)}getConfig(){return this.data.get("config")}getApiBaseUrl(){return Rh(this.getConfig().domain)}apiIsSameOrigin(){if(typeof location>"u")return!1;try{return new URL(this.getApiBaseUrl()).host===location.host}catch{return!1}}remove(t){this.data.delete(t)}clear(){this.data.clear()}},I(ge,"instance"),ge),st=k$.Instance,fe,Ci=(fe=class{constructor(){}static get Instance(){return fe.instance||(fe.instance=new fe),fe.instance}async request(t,r={}){const n=st.getConfig(),o=`${st.getApiBaseUrl()}${t}`,i=5e4,s=new AbortController,d=setTimeout(()=>s.abort(),i);try{const c=await fetch(o,{...r,signal:s.signal,headers:{"Content-Type":"application/json",...n.headers,...r.headers}});if(clearTimeout(d),!c.ok){const m=await c.json().catch(()=>({}));throw new et(m.code||m.error||"API_ERROR",m.message||m.error_description||`HTTP ${c.status}: ${c.statusText}`,m.details,c.status)}return await c.json()}catch(c){throw clearTimeout(d),c instanceof et?c:c instanceof Error?c.name==="AbortError"?new et("TIMEOUT","Request timeout"):new et("NETWORK_ERROR",c.message):new et("UNKNOWN_ERROR","An unknown error occurred")}}async post(t,r){return this.request(t,{credentials:"include",method:"POST",body:r?JSON.stringify(r):void 0})}async get(t){return this.request(t,{credentials:"include",method:"GET"})}async postForm(t,r){return this.request(t,{credentials:"include",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()})}},I(fe,"instance"),fe),Ih="__Secure-pontive_session_state",ls="__Secure-pontive_session_probe";function M$(){return Ah(Ih)?"present":N$()?"absent":"unknown"}function Sa(){if(!(typeof document>"u"||typeof location>"u"))for(const e of["",...j$(location.hostname)])Ea(Ih,"",e,0)}function N$(){if(typeof document>"u"||typeof location>"u")return!1;const e=U$();try{Ea(ls,"1",e,60);const t=Ah(ls)==="1";return Ea(ls,"",e,0),t&&B$(e)}catch{return!1}}function B$(e){return e!==""||st.apiIsSameOrigin()}function U$(){let e;try{e=new URL(st.getApiBaseUrl()).hostname}catch{return""}const t=location.hostname;if(!e||!t||e.toLowerCase()===t.toLowerCase())return"";const r=t.split("."),n=e.split(".");let o=0;for(;o<r.length&&o<n.length&&r[r.length-1-o].toLowerCase()===n[n.length-1-o].toLowerCase();)o+=1;return o<2?"":n.slice(n.length-o).join(".")}function j$(e){const t=e.split("."),r=[];for(let n=1;n+2<=t.length;n+=1)r.push(t.slice(n).join("."));return r}function Ea(e,t,r,n){const o=q$()?"; Secure":"",i=r?`; Domain=${r}`:"";document.cookie=`${e}=${t}; Path=/; Max-Age=${n}; SameSite=Lax${i}${o}`}function q$(){return typeof globalThis.isSecureContext=="boolean"?globalThis.isSecureContext:location.protocol==="https:"}function Ah(e){if(typeof document>"u"||!document.cookie)return null;for(const t of document.cookie.split(";")){const r=t.indexOf("=");if(!(r<0)&&t.slice(0,r).trim()===e)return t.slice(r+1).trim()||null}return null}var Pt,Mt=(Pt=class{constructor(){I(this,"AUTH_SESSION_STORAGE_KEY","pontive_auth_session");I(this,"memorySession",null);I(this,"refreshTimeoutId",null);I(this,"refreshPromise",null);I(this,"refreshRetryCount",0);I(this,"refreshBlockedUntil",0);I(this,"sessionGeneration",0);I(this,"channel",null);I(this,"channelName","");I(this,"applyingBroadcast",!1);I(this,"restorePromise",null)}static get Instance(){return Pt.instance||(Pt.instance=new Pt),Pt.instance}setCurrentSession(t){this.sessionGeneration+=1,this.write(JSON.stringify(t)),this.publish({type:"session",session:t})}async withRefreshLock(t){const r=typeof navigator<"u"?navigator.locks:void 0;return r?r.request(this.channelKey("refresh"),t):t()}channelKey(t){const r=st.getConfig();return`pontive-${t}:${(r==null?void 0:r.domain)??""}:${(r==null?void 0:r.appId)??""}`}ensureChannel(){var r;if(typeof BroadcastChannel>"u")return null;const t=this.channelKey("session");return this.channel&&this.channelName===t?this.channel:((r=this.channel)==null||r.close(),this.channelName=t,this.channel=new BroadcastChannel(t),this.channel.onmessage=n=>this.receive(n.data),this.channel)}publish(t){var r;this.applyingBroadcast||(r=this.ensureChannel())==null||r.postMessage(t)}receive(t){this.applyingBroadcast=!0;try{if(t.type==="cleared"){this.clearSession();return}this.setCurrentSession(t.session),this.scheduleTokenRefresh()}finally{this.applyingBroadcast=!1}}isCurrentGeneration(t){return this.sessionGeneration===t}getCurrentSession(){const t=this.getStoredSession();return t?this.isSessionExpired(t)?(this.clearSession(),null):(this.shouldRefreshToken(t)&&this.triggerBackgroundRefresh(t),t):null}peekSession(){return this.getStoredSession()}isAuthenticated(){return this.getCurrentSession()!==null}getAuthenticatedUser(){const t=this.getCurrentSession();if(!t)return null;const r=t.id_token?this.decodeJWT(t.id_token):null;return r||(t.user??null)}cleanup(){var t;this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshPromise=null,(t=this.channel)==null||t.close(),this.channel=null,this.channelName=""}clearSession(){this.sessionGeneration+=1,this.memorySession=null,localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY),this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshRetryCount=0,this.refreshBlockedUntil=0,this.publish({type:"cleared"})}isSessionExpired(t){return!t||!t.expires_at?!0:Date.now()>=t.expires_at}cleanExpiredSession(){const t=this.getStoredSession();t&&this.isSessionExpired(t)&&this.clearSession()}getStoredSession(){const t=this.read();if(!t)return null;try{return JSON.parse(t)}catch{return this.clearSession(),null}}write(t){this.memorySession=t,localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY)}read(){return this.memorySession}decodeJWT(t){try{const n=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(n).split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(o)}catch{return null}}shouldRefreshToken(t){if(!t||!t.expires_at)return!1;const r=Date.now(),n=t.expires_at,o=t.expires_in||3600,i=r+o*1e3*.2;return n<=i}scheduleTokenRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null);const t=this.getCurrentSession();if(!t||!t.expires_at)return;const r=Date.now(),n=t.expires_at,o=t.expires_in||3600,i=n-r-o*1e3*.2;i>0&&(this.refreshTimeoutId=setTimeout(()=>{this.triggerBackgroundRefresh(t)},i))}triggerBackgroundRefresh(t){this.refreshPromise||Date.now()<this.refreshBlockedUntil||(this.refreshPromise=this.withRefreshLock(()=>{const r=this.getStoredSession();return r&&!this.shouldRefreshToken(r)?(this.scheduleTokenRefresh(),Promise.resolve(null)):this.refreshTokens(r??t)}).then(r=>(r&&(this.setCurrentSession(r),this.refreshRetryCount=0,this.refreshBlockedUntil=0,this.scheduleTokenRefresh()),r)).catch(r=>(console.error("Background token refresh failed:",r),null)).finally(()=>{this.refreshPromise=null}))}async refreshTokens(t){const r=this.sessionGeneration;try{const n=await this.requestTokens(t);return this.isCurrentGeneration(r)?n:(console.warn("Token refresh returned after the session changed; discarding it"),null)}catch(n){return this.isCurrentGeneration(r)?z$(n)?(console.error("Token refresh rejected, signing out:",Qo(n)),Sa(),this.clearSession(),null):(console.warn("Token refresh failed, keeping session and retrying:",Qo(n)),this.scheduleRefreshRetry(t),null):(console.warn("Token refresh failed after the session changed; ignoring:",Qo(n)),null)}}async fetchUserInfo(t){try{return await Ci.Instance.request("/oauth2/userinfo",{method:"GET",credentials:"include",headers:{Authorization:`Bearer ${t}`}})}catch(r){return console.debug("Could not read user info for the restored session:",Qo(r)),null}}async requestTokens(t){var o;const r={grant_type:"refresh_token",client_id:(o=st.getConfig())==null?void 0:o.appId};t!=null&&t.refresh_token&&(r.refresh_token=t.refresh_token);const n=await Ci.Instance.postForm("/oauth2/token",r);return{id_token:n.id_token??(t==null?void 0:t.id_token)??"",access_token:n.access_token,refresh_token:n.refresh_token??(t==null?void 0:t.refresh_token),expires_in:n.expires_in,expires_at:Date.now()+n.expires_in*1e3}}async restoreSession(){const t=this.getStoredSession();return t&&!this.isSessionExpired(t)?t:M$()==="absent"?null:this.restorePromise?this.restorePromise:(this.restorePromise=this.withRefreshLock(async()=>{const r=this.getStoredSession();if(r&&!this.isSessionExpired(r))return r;try{const n=await this.requestTokens(null);return n.id_token||(n.user=await this.fetchUserInfo(n.access_token)??void 0),this.setCurrentSession(n),this.scheduleTokenRefresh(),n}catch(n){return H$(n)&&Sa(),console.debug("No session to restore:",Qo(n)),null}}).finally(()=>{this.restorePromise=null}),this.restorePromise)}scheduleRefreshRetry(t){if(this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshRetryCount>=Pt.MAX_REFRESH_RETRIES){console.warn("Token refresh gave up after",this.refreshRetryCount,"attempts"),this.refreshRetryCount=0,this.refreshBlockedUntil=0;return}const r=Math.min(Pt.REFRESH_RETRY_BASE_MS*2**this.refreshRetryCount,Pt.MAX_REFRESH_RETRY_DELAY_MS);this.refreshRetryCount+=1,this.refreshBlockedUntil=Date.now()+r,this.refreshTimeoutId=setTimeout(()=>{this.refreshBlockedUntil=0,this.triggerBackgroundRefresh(t)},r)}},I(Pt,"MAX_REFRESH_RETRIES",5),I(Pt,"REFRESH_RETRY_BASE_MS",5e3),I(Pt,"MAX_REFRESH_RETRY_DELAY_MS",6e4),I(Pt,"instance"),Pt);function z$(e){return!(e instanceof et)||e.status===void 0?!1:e.status===401?!0:e.status===400&&V$.has(e.code)}var V$=new Set(["invalid_grant","invalid_client"]);function H$(e){return e instanceof et&&e.status!==void 0&&e.status>=400&&e.status<500}function Qo(e){return e instanceof et?`${e.code} (status ${e.status??"none"}): ${e.message}`:String(e)}var Th=class{constructor(e=sessionStorage){I(this,"storage");I(this,"FLOW_STATE_KEY","pontive_loginflow_state");I(this,"FLOW_EXPIRY_MS",540*1e3);this.storage=e}getFlowState(){const e=this.storage.getItem(this.FLOW_STATE_KEY);if(!e)return null;try{const t=JSON.parse(e);return this.isExpired(t)?(this.clearFlowState(),null):t}catch{return this.clearFlowState(),null}}saveFlowState(e,t,r){const n=Date.now(),o=this.getFlowState(),i={flowType:e,flow_id:t,state:r.state,startedAt:(o==null?void 0:o.startedAt)||n,lastUpdatedAt:n,render_spec:r.render_spec};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(i))}restoreFromHistory(e){const t={flowType:e.flowType,flow_id:e.flow_id,state:e.state,startedAt:e.timestamp,lastUpdatedAt:e.timestamp,render_spec:void 0};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(t))}clearFlowState(){this.storage.removeItem(this.FLOW_STATE_KEY)}isExpired(e){return Date.now()-e.lastUpdatedAt>this.FLOW_EXPIRY_MS}get expiryMs(){return this.FLOW_EXPIRY_MS}},Si=class{static detect(e,t=window.location){const r=t.pathname.toLowerCase();return e.invitationUrl&&r.includes(e.invitationUrl)?"invitation":r.includes(e.signinUrl)?"signin":r.includes(e.signupUrl)?"signup":"custom"}},Dh=class{constructor(){I(this,"listeners",new Map)}on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t)}off(e,t){var r;(r=this.listeners.get(e))==null||r.delete(t)}emit(e,t){const r=this.listeners.get(e);r&&r.forEach(n=>{try{n(t)}catch(o){console.error(`[FlowEventBus] Error in event handler for ${e}:`,o)}})}clear(){this.listeners.clear()}clearEvent(e){this.listeners.delete(e)}},G$=class{getNavigationType(){const e=performance.getEntriesByType("navigation");if(e.length>0)return e[0].type;const t=performance.navigation;if(t)switch(t.type){case 1:return"reload";case 2:return"back_forward";default:return"navigate"}return"navigate"}},K$=class Lh{constructor(t,r,n=window.location,o,i){I(this,"httpClient",Ci.Instance);I(this,"flowId");I(this,"redirectTimeoutId",null);I(this,"flowStateManager");I(this,"flowEventBus");I(this,"location");I(this,"navigationTypeDetector");I(this,"eventHandlers",new Map([["switch_to_signin",this.handleSwitchToSignin.bind(this)],["switch_to_signup",this.handleSwitchToSignup.bind(this)]]));const s=st.getConfig();if(!s.domain)throw new et("CONFIG_ERROR","Domain is required");if(!s.appId)throw new et("CONFIG_ERROR","App ID is required");this.flowId=t,this.location=n,this.flowStateManager=o||new Th,this.flowEventBus=r||new Dh,this.navigationTypeDetector=i||new G$,Mt.Instance.cleanExpiredSession(),Mt.Instance.scheduleTokenRefresh()}static async init(t,r,n,o,i){const s=new Lh(t,r,n,o,i),d=await s.initializeFlowInternal();return{sdk:s,flowType:d.flowType,isResumed:d.isResumed,state:d.state,render_spec:d.render_spec,auth_result:d.auth_result}}async startFlow(t,r){if(!r.app_id)throw new et("VALIDATION_ERROR","Client ID is required");const n=`/auth/v1/authflows/${t}/start`;return this.executeFlowRequest(()=>this.httpClient.post(n,r),"START_FLOW_ERROR","Failed to start flow")}async resumeFlow(t){const r=`/auth/v1/authflows/${t}/resume`;return this.executeFlowRequest(()=>this.httpClient.post(r),"RESUME_FLOW_ERROR","Failed to resume flow")}async processEvent(t,r){if(!t.event)throw new et("VALIDATION_ERROR","Event type is required");const n=this.eventHandlers.get(t.event);return n?await n():await this.processServerEvent(t,r)}async executeFlowRequest(t,r,n,o){try{const i=await t();return o&&await o(i),this.processAuthResult(i.auth_result),i.redirection&&this.redirect(i.redirection),i}catch(i){throw i instanceof et?i:new et(r,n,i instanceof Error?{originalError:i.message,stack:i.stack}:i)}}async processServerEvent(t,r){let n=this.flowStateManager.getFlowState();if(!n&&(console.warn("Flow state expired, restarting flow before processing event"),await this.initializeFlowInternal(),n=this.flowStateManager.getFlowState(),!n))throw new et("FLOW_RESTART_ERROR","Failed to restart flow - no flow state after initialization");const o=n.state,i=`/auth/v1/authflows/${n.flowType}/events`,s=await this.executeFlowRequest(()=>this.httpClient.post(i,t),"PROCESS_EVENT_ERROR","Failed to process event",r);if(!s.auth_result){this.flowStateManager.saveFlowState(n.flowType,n.flow_id,s);const d=this.flowStateManager.getFlowState();if(d){const c=o!==s.state;this.flowEventBus.emit("flow:updated",{flowState:d,isNewStep:c})}}return s}processAuthResult(t){if(t){const r={id_token:t.id_token,access_token:t.access_token,refresh_token:t.refresh_token,expires_in:t.expires_in,expires_at:Date.now()+t.expires_in*1e3};Mt.Instance.setCurrentSession(r),Mt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState();const{onAuthenticated:n}=st.getConfig();if(n){n(r);return}console.warn("pontive: signed in, but no onAuthenticated was supplied, so the SDK cannot route the user. Supply onAuthenticated to handle the handoff.")}}async initializeFlowInternal(){const t=st.getConfig(),r=Si.detect(t,this.location);this.validateFlowType(r);const n=this.flowStateManager.getFlowState();return this.shouldResumeFlow(n,r)?await this.resumeExistingFlow(n,r):await this.startNewFlow(r)}validateFlowType(t){if(t==="custom"&&!this.flowId)throw new et("FLOW_ID_ERROR","Flow ID is required for custom flows")}shouldResumeFlow(t,r){if(!t)return!1;const o=new URLSearchParams(this.location.search).get("resume")==="true",i=this.navigationTypeDetector.getNavigationType();if(i==="navigate"&&!o)return this.flowStateManager.clearFlowState(),console.log(`Fresh navigation detected (type: ${i}), starting new flow`),!1;if(t.flowType!==r)return this.flowStateManager.clearFlowState(),console.log(`Flow type changed from ${t.flowType} to ${r}, starting new flow, flow_id: ${this.flowId}`),!1;if(r==="custom"&&t.flow_id!==this.flowId)return this.flowStateManager.clearFlowState(),console.log(`Custom flow ID changed, starting new flow, flow_id: ${this.flowId}`),!1;const s=o?"explicit resume=true":`navigation type: ${i}`;return console.log(`Resuming existing flow (${s})`),!0}async resumeExistingFlow(t,r){try{const n=await this.resumeFlow(r);if(!n.auth_result){this.flowStateManager.saveFlowState(r,t.flow_id,n);const o=this.flowStateManager.getFlowState();o&&this.flowEventBus.emit("flow:resumed",{flowState:o})}return{flowType:r,isResumed:!0,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result}}catch(n){return this.flowStateManager.clearFlowState(),console.warn("Failed to resume flow, starting fresh:",n),await this.startNewFlow(r)}}async startNewFlow(t){const r=st.getConfig(),n=new URLSearchParams(this.location.search),o={};n.forEach((c,m)=>{o[m]=c}),console.log("metadata",o);const i=n.get("locales")||r.locales||void 0,s={app_id:r.appId,origin_url:this.location.href,signin_url:r.signinUrl,signup_url:r.signupUrl,locales:i,flow_id:this.determineFlowId(t),metadata:o},d=await this.startFlow(t,s);if(!d.auth_result){this.flowStateManager.saveFlowState(t,s.flow_id,d);const c=this.flowStateManager.getFlowState();c&&this.flowEventBus.emit("flow:started",{flowState:c})}return{flowType:t,isResumed:!1,state:d.state,render_spec:d.render_spec,auth_result:d.auth_result}}determineFlowId(t){switch(t){case"signin":return this.flowId||"signin-flow";case"signup":return this.flowId||"signup-flow";case"invitation":return this.flowId||"invitation-flow";case"custom":if(!this.flowId)throw new et("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}async handleSwitchToSignin(){const t=st.getConfig();return this.redirect({url:this.withCurrentQuery(t.signinUrl),redirect_delay:0}),{state:"End"}}async handleSwitchToSignup(){const t=st.getConfig();return this.redirect({url:this.withCurrentQuery(t.signupUrl),redirect_delay:0}),{state:"End"}}withCurrentQuery(t){const r=this.location.search;return!r||r==="?"?t:t.includes("?")?`${t}&${r.slice(1)}`:`${t}${r}`}redirect(t){t.url&&(this.redirectTimeoutId!==null&&(console.log("Clearing existing redirect timeout before scheduling new redirect to:",t.url),clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.redirectTimeoutId=setTimeout(()=>{this.location.href=t.url},t.redirect_delay*1e3))}reloadPage(){setTimeout(()=>{this.location.reload()},0)}getEventBus(){return this.flowEventBus}cleanup(){this.redirectTimeoutId&&(clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.flowEventBus.clear()}},W$=class{constructor(e){I(this,"delayMs");I(this,"timerId",null);this.delayMs=e}debounce(e){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{e(),this.timerId=null},this.delayMs)}cancel(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}isPending(){return this.timerId!==null}},Y$=class{pushState(e,t,r){history.pushState(e,t,r)}replaceState(e,t,r){history.replaceState(e,t,r)}get state(){return history.state}},Q$=class{constructor(e,t,r=!1,n=window.location,o,i){I(this,"popstateListener",null);I(this,"pageshowListener",null);I(this,"debouncer");I(this,"isProcessing",!1);I(this,"isHandlingNavigationEvent",!1);I(this,"onFlowRestartNeeded",null);I(this,"skipHistoryTracking");I(this,"flowStateManager");I(this,"historyAdapter");I(this,"location");this.onFlowRestartNeeded=t,this.skipHistoryTracking=r,this.debouncer=new W$(200),this.location=n,this.flowStateManager=o||new Th,this.historyAdapter=i||new Y$,this.subscribeToFlowEvents(e),this.initializeListener()}subscribeToFlowEvents(e){e.on("flow:started",this.handleFlowStart.bind(this)),e.on("flow:updated",this.handleFlowUpdate.bind(this)),e.on("flow:resumed",this.handleFlowResume.bind(this))}initializeListener(){this.popstateListener=e=>{console.log("[NavigationManager] popstate event received"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Debounce timeout fired, handling popstate"),this.handlePopState(e)})},this.pageshowListener=e=>{e.persisted&&(console.log("[NavigationManager] Page restored from bfcache"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Handling bfcache restoration"),this.handleBfcacheRestoration()}))},window.addEventListener("popstate",this.popstateListener),window.addEventListener("pageshow",this.pageshowListener)}async handlePopState(e){if(this.isProcessing){console.log("[NavigationManager] Already processing popstate, skipping");return}console.log("[NavigationManager] Starting popstate processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const t=e.state,r=this.flowStateManager.getFlowState(),n=st.getConfig(),o=Si.detect(n,this.location);if(t&&this.restoreHistoryStateToSession(t),this.shouldRestartFlow(t,r,o)){await this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from history")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}}async handleBfcacheRestoration(){if(this.isProcessing){console.log("[NavigationManager] Already processing bfcache restoration, skipping");return}console.log("[NavigationManager] Starting bfcache restoration processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const e=this.historyAdapter.state,t=this.flowStateManager.getFlowState(),r=st.getConfig(),n=Si.detect(r,this.location);if(e&&this.restoreHistoryStateToSession(e),this.shouldRestartFlow(e,t,n)){await this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from bfcache")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}}restoreHistoryStateToSession(e){console.log("[NavigationManager] Restoring history state to session storage:",e),this.flowStateManager.restoreFromHistory(e)}shouldRestartFlow(e,t,r){return e&&e.flowType!==r?(console.log("[NavigationManager] Flow type changed via navigation:",e.flowType,"→",r),this.flowStateManager.clearFlowState(),!0):e?Date.now()-e.timestamp>this.flowStateManager.expiryMs?(console.log("[NavigationManager] History state expired, clearing and restarting flow"),this.flowStateManager.clearFlowState(),!0):(console.log("[NavigationManager] Valid history state restored, triggering restart to resume flow"),!0):(console.log("[NavigationManager] No history state, skipping"),!1)}async triggerFlowRestart(){this.onFlowRestartNeeded&&await this.onFlowRestartNeeded()}createHistoryState(e){return{flowType:e.flowType,flow_id:e.flow_id,state:e.state,timestamp:Date.now()}}updateBrowserHistory(e,t){if(this.skipHistoryTracking){console.log("[NavigationManager] Skipping history tracking (created from navigation)");return}const r=this.createHistoryState(e);try{t==="push"?(this.historyAdapter.pushState(r,"",this.location.href),console.log("[NavigationManager] Pushed state to history")):(this.historyAdapter.replaceState(r,"",this.location.href),console.log("[NavigationManager] Replaced state in history"))}catch(n){console.error("[NavigationManager] Failed to update history:",n)}}handleFlowStart(e){this.updateBrowserHistory(e.flowState,"replace")}handleFlowUpdate(e){const t=this.isHandlingNavigationEvent||!e.isNewStep?"replace":"push";this.updateBrowserHistory(e.flowState,t)}handleFlowResume(e){this.updateBrowserHistory(e.flowState,"replace")}destroy(){this.debouncer.cancel(),this.popstateListener&&(window.removeEventListener("popstate",this.popstateListener),this.popstateListener=null),this.pageshowListener&&(window.removeEventListener("pageshow",this.pageshowListener),this.pageshowListener=null),this.onFlowRestartNeeded=null}},Cr=new AbortController,Z$=class{constructor(){I(this,"httpClient",Ci.Instance);I(this,"capabilities",{webauthn:!1});I(this,"capabilitiesDetected",!1)}async detectCapabilities(){if(!this.capabilitiesDetected)try{if(typeof window.PublicKeyCredential=="function"?this.capabilities.webauthn=!0:this.capabilities.webauthn=!1,typeof PublicKeyCredential.getClientCapabilities=="function"){const e=await PublicKeyCredential.getClientCapabilities();this.capabilities={...this.capabilities,...e};return}typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(this.capabilities.userVerifyingPlatformAuthenticator=await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()),(PublicKeyCredential==null?void 0:PublicKeyCredential.isConditionalMediationAvailable)!==void 0&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"?this.capabilities.conditionalGet=await PublicKeyCredential.isConditionalMediationAvailable():this.capabilities.conditionalGet=!1}finally{this.capabilitiesDetected=!0}}async fetchPublicKeyCredentialRequestOptions(e,t){try{return this.httpClient.post("/auth/v1/webauthn/login/options",{conditional:t,flow_type:e})}catch(r){return console.error("error",r),null}}async fetchPublicKeyCredentialCreationOptions(e,t){try{return this.httpClient.post("/auth/v1/webauthn/register/options",{conditional:t,flow_type:e})}catch(r){return console.error("error",r),null}}async startRegistration(e,t){if(await this.detectCapabilities(),!e)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Cr.abort(),Cr=new AbortController;const r=this.toPublicKeyCredentialCreationOptions(e),n={signal:Cr.signal,publicKey:r};if(t){if(!this.isConditionalCreateAvailable())return console.error("Conditional create mediation not supported in this browser"),null;n.mediation="conditional"}try{const o=await navigator.credentials.create(n);if(!o){console.error("no credential returned by authenticator");return}const{id:i,rawId:s,response:d,type:c}=o;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let v;if(typeof d.getPublicKeyAlgorithm=="function")try{v=d.getPublicKeyAlgorithm()}catch(_){ds("getPublicKeyAlgorithm()",_)}let b;if(typeof d.getPublicKey=="function")try{const _=d.getPublicKey();_!==null&&(b=this.bufferToBase64URLString(_))}catch(_){ds("getPublicKey()",_)}let w;if(typeof d.getAuthenticatorData=="function")try{w=this.bufferToBase64URLString(d.getAuthenticatorData())}catch(_){ds("getAuthenticatorData()",_)}return{id:i,rawId:this.bufferToBase64URLString(s),response:{attestationObject:this.bufferToBase64URLString(d.attestationObject),clientDataJSON:this.bufferToBase64URLString(d.clientDataJSON),transports:m,publicKeyAlgorithm:v,publicKey:b,authenticatorData:w},type:c,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(o.authenticatorAttachment)}}catch(o){const i=this.identifyAuthenticationError({error:o,options:n});return i instanceof Sr?console.error(`WebAuthn authentication failed with code: ${i.code}, message: ${i.message}`):console.error("WebAuthn authentication failed with error:",o),null}}async startAuthentication(e,t){if(await this.detectCapabilities(),!e)return console.error("No PublicKeyCredentialRequestOptionsJSON provided"),null;if(!this.isWebAuthnAvailable())return console.error("WebAuthn not supported in this browser"),null;Cr.abort(),Cr=new AbortController;const r=this.toPublicKeyCredentialRequestOptions(e),n={signal:Cr.signal,publicKey:r};if(t){if(!this.isConditionalGetAvailable())return console.error("Conditional mediation not supported in this browser"),null;n.mediation="conditional",n.publicKey&&(n.publicKey.allowCredentials=[])}try{const o=await navigator.credentials.get(n);return this.toPublicKeyCredentialJSON(o)}catch(o){const i=this.identifyAuthenticationError({error:o,options:n});return i instanceof Sr?console.error(`WebAuthn authentication failed with code: ${i.code}, message: ${i.message}`):console.error("WebAuthn authentication failed with error:",o),null}}async signalUnknownCredential(e,t){if(await this.detectCapabilities(),this.isSignalUnknownCredentialAvailable())try{await PublicKeyCredential.signalUnknownCredential({rpId:e,credentialId:t})}catch(r){console.error("Failed to signal unknown credential:",r)}else console.warn("signalUnknownCredential not supported in this browser")}async signalCurrentUserDetails(e){if(await this.detectCapabilities(),this.isSignalCurrentUserDetailsAvailable())try{await PublicKeyCredential.signalCurrentUserDetails(e)}catch(t){console.error("Failed to signal current user details:",t)}else console.warn("signalCurrentUserDetails not supported. Ask user to update manually.")}toPublicKeyCredentialDescriptor(e){const{id:t}=e;return{...e,id:this.base64URLStringToBuffer(t),type:e.type,transports:e.transports}}toAuthenticatorAttachment(e){const t=["cross-platform","platform"];if(e&&!(t.indexOf(e)<0))return e}bufferToBase64URLString(e){const t=new Uint8Array(e);let r="";for(const o of t)r+=String.fromCharCode(o);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}base64URLStringToBuffer(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=t.padEnd(t.length+r,"="),o=atob(n),i=new ArrayBuffer(o.length),s=new Uint8Array(i);for(let d=0;d<o.length;d++)s[d]=o.charCodeAt(d);return i}toPublicKeyCredentialJSON(e){if(typeof e.toJSON=="function")return e.toJSON();const t=e.response;return{id:e.id,type:e.type,rawId:this.bufferToBase64URLString(e.rawId),authenticatorAttachment:this.toAuthenticatorAttachment(e.authenticatorAttachment),clientExtensionResults:e==null?void 0:e.getClientExtensionResults(),response:{clientDataJSON:this.bufferToBase64URLString(t.clientDataJSON),authenticatorData:this.bufferToBase64URLString(t.authenticatorData),signature:this.bufferToBase64URLString(t.signature),userHandle:t.userHandle?this.bufferToBase64URLString(t.userHandle):void 0}}}toPublicKeyCredentialCreationOptions(e){var r;if(typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const t={challenge:this.base64URLStringToBuffer(e.challenge),rp:{id:e.rp.id,name:e.rp.name},user:{displayName:e.user.displayName,id:this.base64URLStringToBuffer(e.user.id),name:e.user.name},pubKeyCredParams:e.pubKeyCredParams.map(n=>({alg:n.alg,type:n.type})),timeout:e.timeout};if(e.attestation&&(t.attestation=e.attestation),e.extensions!==void 0&&(t.extensions=e.extensions),e.authenticatorSelection){const n={};e.authenticatorSelection.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorSelection.authenticatorAttachment),e.authenticatorSelection.requireResidentKey&&(n.requireResidentKey=e.authenticatorSelection.requireResidentKey),e.authenticatorSelection.residentKey&&(n.residentKey=e.authenticatorSelection.residentKey),e.authenticatorSelection.userVerification&&(n.userVerification=e.authenticatorSelection.userVerification),t.authenticatorSelection=n}return(r=e.excludeCredentials)!=null&&r.length&&(t.excludeCredentials=e.excludeCredentials.map(n=>this.toPublicKeyCredentialDescriptor(n))),t}toPublicKeyCredentialRequestOptions(e){var r;if(typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const t={challenge:this.base64URLStringToBuffer(e.challenge)};return e.rpId!==void 0&&(t.rpId=e.rpId),e.timeout!==void 0&&(t.timeout=e.timeout),e.userVerification!==void 0&&(t.userVerification=e.userVerification),e.extensions!==void 0&&(t.extensions=e.extensions),(r=e.allowCredentials)!=null&&r.length&&(t.allowCredentials=e.allowCredentials.map(n=>this.toPublicKeyCredentialDescriptor(n))),t}identifyAuthenticationError({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Sr({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Sr({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(J$(n)){if(r.rpId!==n)return new Sr({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Sr({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Sr({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}isPublicKeyCredentialRequestOptionsJSON(e){return typeof e=="object"&&e!==null&&"challenge"in e}isWebAuthnAvailable(){return this.capabilities.webauthn}isSignalAllAcceptedCredentialsAvailable(){return!!this.capabilities.signalAllAcceptedCredentials}isSignalCurrentUserDetailsAvailable(){return!!this.capabilities.signalCurrentUserDetails}isSignalUnknownCredentialAvailable(){return!!this.capabilities.signalUnknownCredential}isConditionalGetAvailable(){return!!this.capabilities.conditionalGet}isConditionalCreateAvailable(){return!!this.capabilities.conditionalCreate}isHybridTransportAvailable(){return!!this.capabilities.hybridTransport}destroy(){Cr.abort()}};function ds(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
2649
- `,t)}var Sr=class extends Error{constructor({message:t,code:r,cause:n,name:o}){super(t);I(this,"code");this.name=o??n.name,this.code=r}};function J$(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}var ve,X$=(ve=class{constructor(){I(this,"configured",!1);I(this,"configuredResolve");I(this,"configuredPromise",new Promise(t=>{this.configuredResolve=t}));I(this,"loginflow",null);I(this,"navigationManager",null);I(this,"flowEventBus",null);I(this,"webauthnService",null)}static get Instance(){return ve.instance||(ve.instance=new ve),ve.instance}ensureConfigured(){if(!this.configured)throw new et("NOT_CONFIGURED","Auth.configure() must be called before using Auth methods")}ensureLoginflowInitialized(){if(!this.loginflow)throw new et("LOGINFLOW_NOT_INITIALIZED","Call Auth.startLoginflow() first")}async startLoginflowInternal(t,r=!1){this.ensureConfigured(),this.webauthnService&&(console.log("[AuthService] Cleaning up and aborting ongoing webauthn flows"),this.webauthnService.destroy(),this.webauthnService=null),this.loginflow&&(console.log("[AuthService] Cleaning up old loginflow instance"),this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(console.log("[AuthService] Cleaning up old navigation manager instance"),this.navigationManager.destroy(),this.navigationManager=null),this.webauthnService=new Z$,this.webauthnService.detectCapabilities(),this.flowEventBus=new Dh,this.navigationManager=new Q$(this.flowEventBus,async()=>{console.log("[AuthService] Navigation restart triggered, restarting loginflow"),await this.startLoginflowInternal(void 0,!1)},r);const n=await K$.init(t,this.flowEventBus),o=st.getConfig();this.startPasskeyAuthentication(n.flowType,!0),this.loginflow=n.sdk;const i={flowType:n.flowType,isResumed:n.isResumed,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result};return o.onFlowStateChange&&o.onFlowStateChange({eventType:n.isResumed?"flow_resumed":"flow_started",flowType:n.flowType,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result,isResumed:n.isResumed}),i}configure(t){if(!t.domain||!t.appId)throw new et("CONFIG_ERROR","domain and appId are required");st.setConfig(t),this.configured=!0,this.configuredResolve()}whenConfigured(){return this.configuredPromise}isAuthenticated(){return this.ensureConfigured(),Mt.Instance.isAuthenticated()}getCurrentSession(){return this.ensureConfigured(),Mt.Instance.getCurrentSession()}async restoreSession(){return this.ensureConfigured(),Mt.Instance.restoreSession()}getAuthenticatedUser(){return this.ensureConfigured(),Mt.Instance.getAuthenticatedUser()}async startLoginflow(t){return this.startLoginflowInternal(t,!1)}async processLoginflowEvent(t){var i,s;this.ensureConfigured(),this.ensureLoginflowInitialized();const r=st.getConfig(),n=Si.detect(r,location);if(t.event==="signin_with_passkey"&&!((i=t.data)!=null&&i.credential_request)){const d=await this.getPasskeyCredential(n,!1);if(!d||!d.cred)return console.error("no credential returned by browser"),{state:""};t.data={credential_request:d.cred}}if(t.event==="register_passkey"&&!((s=t.data)!=null&&s.conditional)){console.log("attempt to register a passkey");const d=await this.createPasskeyCredential(n,!1);if(!d)return console.error("no credential created by browser"),{state:""};t.data={credential_creation_response:d,conditional:!1}}const o=await this.loginflow.processEvent(t,async d=>{var c;if((c=d.data)!=null&&c.conditional_create_enabled){console.log("attempt to register a passkey conditionally");const m=await this.registerPasskey(n,!0);m&&(m.render_spec=void 0,d.render_spec=void 0)}});if(console.log("render spec",o.render_spec),r.onFlowStateChange){const d=sessionStorage.getItem("pontive_loginflow_state");let c="custom";if(d)try{c=JSON.parse(d).flowType}catch(m){console.error("Failed to parse flow state:",m)}r.onFlowStateChange({eventType:"flow_updated",flowType:c,state:o.state,render_spec:o.render_spec,auth_result:o.auth_result})}return o}async getPasskeyCredential(t,r){var o,i;const n=await((o=this.webauthnService)==null?void 0:o.fetchPublicKeyCredentialRequestOptions(t,r));if(!n)return console.error("failed to fetch public key request options"),null;try{return{cred:await((i=this.webauthnService)==null?void 0:i.startAuthentication(n,r)),options:n}}catch(s){return console.error("error starting authentication",s),null}}async startPasskeyAuthentication(t,r=!1){var s,d;const n=await this.getPasskeyCredential(t,r);if(!n||!n.cred){console.error("no credential found");return}const{cred:o,options:i}=n;try{((s=(await this.processLoginflowEvent({event:"signin_with_passkey",data:{credential_request:o}})).data)==null?void 0:s.error)==="CredentialNotFound"&&(i.rpId&&o.id?(d=this.webauthnService)==null||d.signalUnknownCredential(i.rpId,o.id):console.log("missing rpId or credential id for signalUnknownCredential"))}catch(c){console.error("failed to signin with passkey",c)}}async createPasskeyCredential(t,r){var n,o;try{const i=await((n=this.webauthnService)==null?void 0:n.fetchPublicKeyCredentialCreationOptions(t,r));if(!i){console.warn("no credential creation option returned by webauthn service"),console.log("skipping conditional passkey registration...");return}return(o=this.webauthnService)==null?void 0:o.startRegistration(i,r)}catch(i){console.log("error",i)}}async registerPasskey(t,r=!1){try{const n=await this.createPasskeyCredential(t,r),o=await this.processLoginflowEvent({event:"register_passkey",data:{credential_creation_response:n,conditional:r}});return console.log("passkey creation res",o),o}catch(n){console.log("error",n)}}invalidateSession(){Mt.Instance.clearSession()}async signOut(t){var o;this.ensureConfigured();const r=tP(Mt.Instance.peekSession()),n=((o=st.getConfig())==null?void 0:o.appId)??"";if(Sa(),Mt.Instance.clearSession(),Mt.Instance.cleanup(),this.loginflow&&(this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(this.navigationManager.destroy(),this.navigationManager=null),this.flowEventBus&&(this.flowEventBus.clear(),this.flowEventBus=null),!st.apiIsSameOrigin()){window.location.assign(this.logoutUrl(r,n,t==null?void 0:t.returnTo));return}await this.endServerSession(r,n),window.location.reload()}async endServerSession(t,r){try{await fetch(`${st.getApiBaseUrl()}/oauth2/logout`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:r,...t?{logout_hint:t}:{}}).toString()})}catch(n){console.warn("Could not end the session at the authorization server:",n)}}logoutUrl(t,r,n){const o=new URLSearchParams({post_logout_redirect_uri:n??`${window.location.origin}${window.location.pathname}`,client_id:r});return t&&o.set("logout_hint",t),`${st.getApiBaseUrl()}/oauth2/logout?${o.toString()}`}},I(ve,"instance"),ve);function tP(e){for(const t of[e==null?void 0:e.id_token,e==null?void 0:e.access_token]){if(!t)continue;const r=Mt.Instance.decodeJWT(t);if(typeof(r==null?void 0:r.sid)=="string"&&r.sid)return r.sid}}var Y=X$.Instance,eP=Object.defineProperty,rP=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&eP(t,r,o),o};class jt extends f{constructor(){super(),this.shadow=!1,this.__initialAttributesCache=null}parseJsonAttribute(t){try{const r=this.getAttribute(t);return r?JSON.parse(r):{}}catch{return{}}}get sbStyle(){return this.parseJsonAttribute("pont-style")}getAttributesToExclude(){return[]}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var o,i;t.some(s=>this.isCustomPropertySet(s))&&((i=(o=this.shadowRoot)==null?void 0:o.querySelector(r))==null||i.classList.add(n))}moveAttributesToElement(t,r=["id","class"]){t&&r.forEach(n=>{const o=this.getAttribute(n);o!==null&&(t.setAttribute(n,o),this.removeAttribute(n))})}removeAttributesFromHost(t=["id","class"]){t.forEach(r=>{this.hasAttribute(r)&&this.removeAttribute(r)})}captureHostAttributes(){if(this.__initialAttributesCache)return this.__initialAttributesCache;const t={};return Array.from(this.attributes).forEach(r=>{t[r.name]=r.value}),this.__initialAttributesCache=t,t}getHostClass(){return this.captureHostAttributes().class??""}removeDuplicateContent(){var i;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var d;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((d=s.textContent)!=null&&d.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let o;for(;o=t.nextNode();){let s;if(o.nodeType===Node.TEXT_NODE){const d=(i=o.textContent)==null?void 0:i.trim();if(!d)continue;s=`text:${d}`}else if(o instanceof HTMLElement){const d=Array.from(o.attributes).map(c=>`${c.name}=${c.value}`).sort().join(":");s=`element:${o.tagName}:${d}`}else continue;if(r.has(s)){const d=r.get(s);d!=null&&d.parentNode&&n.push(d),r.set(s,o)}else r.set(s,o)}n.forEach(s=>{var d;return(d=s.parentNode)==null?void 0:d.removeChild(s)})}moveLightDomChildrenInto(t,r){let n;r!=null&&r.length?(n=r.filter(o=>this.contains(o)&&o!==t&&!o.contains(t)),n.forEach(o=>{const i=Array.from(t.childNodes).find(s=>{var d;return(d=s.isEqualNode)==null?void 0:d.call(s,o)});i&&t.removeChild(i)})):n=Array.from(this.childNodes).filter(o=>o!==t&&!t.contains(o)&&!o.contains(t)),n.forEach(o=>t.appendChild(o))}}rP([a({type:Boolean})],jt.prototype,"shadow");const Qr="pont:auth",Zr={showWatermark:!0},jo="pont:branding";class oP{constructor(t){this.consumer=new ai(t,{context:jo,subscribe:!0})}get showWatermark(){var t;return((t=this.consumer.value)==null?void 0:t.showWatermark)??Zr.showWatermark}}const Fh="pont:design-mode";class In{constructor(t){this.host=t,this.consumer=new ai(t,{context:Fh,subscribe:!0})}get active(){return this.host.hasAttribute("design-mode")?this.host.getAttribute("design-mode")!=="false":this.consumer.value??!1}}const kh="pont:env",Li=Symbol("renderSpecContext"),An="pont-user-context",Fi="";var nP=Object.defineProperty,iP=Object.getOwnPropertyDescriptor,Tn=(e,t,r,n)=>{for(var o=n>1?void 0:n?iP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&nP(t,r,o),o};exports.PontKitLayout=class extends f{constructor(){super(...arguments),this.spec="",this.designMode=!1,this.branding=Zr,this.handleError=t=>{var r;return console.error("pont-form error",(r=t.detail)==null?void 0:r.message)}}set renderSpec(t){this.spec=t,this.requestUpdate()}createRenderRoot(){return this}updated(){this.renderDynamicContent()}renderDynamicContent(){if(!this.spec)return;const r=(this.shadowRoot||this).querySelector("#dynamic-content");r&&(r.innerHTML=this.spec,r.querySelectorAll("*").forEach(n=>{n.localName.includes("-")&&!customElements.get(n.localName)?exports.PontKitLayout.reportUnregistered(n.localName):customElements.upgrade(n)}))}static reportUnregistered(t){exports.PontKitLayout.reportedUnregistered.has(t)||(exports.PontKitLayout.reportedUnregistered.add(t),console.warn(`pontive: <${t}> is in the rendered spec but this core-elements bundle does not define it`),document.dispatchEvent(new CustomEvent(exports.PontKitLayout.UNREGISTERED_ELEMENT_EVENT,{detail:{tag:t}})))}render(){return l`
2648
+ `}};vt([a({type:String})],ct.prototype,"placeholder",2);vt([a({type:Array})],ct.prototype,"dataTable",2);vt([a({type:Boolean})],ct.prototype,"hasDefaultSelect",2);vt([a({type:Boolean})],ct.prototype,"hasDefaultPagination",2);vt([a({type:Boolean})],ct.prototype,"hasDefaultSearch",2);vt([a({type:Object})],ct.prototype,"checkedRows",2);vt([a({type:String})],ct.prototype,"searchTerm",2);vt([a({type:Object})],ct.prototype,"columnVisibility",2);vt([a({type:String})],ct.prototype,"sortColumn",2);vt([a({type:String})],ct.prototype,"sortDirection",2);vt([a({type:Object})],ct.prototype,"cellRenderers",2);vt([a({type:Object})],ct.prototype,"headerRenderers",2);vt([a({type:Array})],ct.prototype,"rowActions",2);vt([a({type:Array})],ct.prototype,"paginationLabels",2);vt([a({type:Number})],ct.prototype,"pageSize",2);vt([a({type:Number})],ct.prototype,"currentPage",2);vt([a({type:Array})],ct.prototype,"sortableColumns",2);vt([a({type:Array})],ct.prototype,"columnOrder",2);vt([a({type:Function})],ct.prototype,"isRowDisabled",2);ct=vt([p("pont-data-table")],ct);var tt=class extends Error{constructor(t,r,n,o){super(r);I(this,"code");I(this,"details");I(this,"status");this.name="LoginflowError",this.code=t,this.details=n,this.status=o}};function Rh(e){const t=(e??"").trim();if(!t)throw new tt("CONFIG_ERROR","domain is required");if(t.startsWith("/")){if(typeof location>"u")throw new tt("CONFIG_ERROR",`domain "${t}" is relative to the page origin, and there is no page here`);return Tc(new URL(t,location.origin))}const r=/^https?:\/\//i.test(t)?"":`${F$(L$(t))?"http":"https"}://`;try{return Tc(new URL(`${r}${t}`))}catch{throw new tt("CONFIG_ERROR",`domain "${t}" is not a hostname, an origin, or a path`)}}function Tc(e){return`${e.origin}${e.pathname}`.replace(/\/+$/,"")}function L$(e){return e.split("/")[0]}function F$(e){return/^(localhost|127\.0\.0\.1|\[::1\])(:\d+)?$/i.test(e)}var ge,k$=(ge=class{constructor(){I(this,"data",new Map)}static get Instance(){return ge.instance||(ge.instance=new ge),ge.instance}get(t){return this.data.get(t)}set(t,r){this.data.set(t,r)}setConfig(t){this.data.set("config",t)}getConfig(){return this.data.get("config")}getApiBaseUrl(){return Rh(this.getConfig().domain)}apiIsSameOrigin(){if(typeof location>"u")return!1;try{return new URL(this.getApiBaseUrl()).host===location.host}catch{return!1}}remove(t){this.data.delete(t)}clear(){this.data.clear()}},I(ge,"instance"),ge),et=k$.Instance,fe,sn=(fe=class{constructor(){}static get Instance(){return fe.instance||(fe.instance=new fe),fe.instance}async request(t,r={}){const n=et.getConfig(),o=`${et.getApiBaseUrl()}${t}`,i=5e4,s=new AbortController,d=setTimeout(()=>s.abort(),i);try{const c=await fetch(o,{...r,signal:s.signal,headers:{"Content-Type":"application/json",...n.headers,...r.headers}});if(clearTimeout(d),!c.ok){const m=await c.json().catch(()=>({}));throw new tt(m.code||m.error||"API_ERROR",m.message||m.error_description||`HTTP ${c.status}: ${c.statusText}`,m.details,c.status)}return await c.json()}catch(c){throw clearTimeout(d),c instanceof tt?c:c instanceof Error?c.name==="AbortError"?new tt("TIMEOUT","Request timeout"):new tt("NETWORK_ERROR",c.message):new tt("UNKNOWN_ERROR","An unknown error occurred")}}async post(t,r){return this.request(t,{credentials:"include",method:"POST",body:r?JSON.stringify(r):void 0})}async get(t){return this.request(t,{credentials:"include",method:"GET"})}async getOptional(t){const r=et.getConfig(),n=await fetch(`${et.getApiBaseUrl()}${t}`,{credentials:"include",method:"GET",headers:{...r.headers}});if(n.status===204)return null;if(!n.ok)throw new tt("API_ERROR",`HTTP ${n.status}: ${n.statusText}`,void 0,n.status);return await n.json()}async postForm(t,r){return this.request(t,{credentials:"include",method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()})}},I(fe,"instance"),fe),Ih="__Secure-pontive_session_state",ls="__Secure-pontive_session_probe";function M$(){return Ah(Ih)?"present":N$()?"absent":"unknown"}function Sa(){if(!(typeof document>"u"||typeof location>"u"))for(const e of["",...j$(location.hostname)])Ea(Ih,"",e,0)}function N$(){if(typeof document>"u"||typeof location>"u")return!1;const e=U$();try{Ea(ls,"1",e,60);const t=Ah(ls)==="1";return Ea(ls,"",e,0),t&&B$(e)}catch{return!1}}function B$(e){return e!==""||et.apiIsSameOrigin()}function U$(){let e;try{e=new URL(et.getApiBaseUrl()).hostname}catch{return""}const t=location.hostname;if(!e||!t||e.toLowerCase()===t.toLowerCase())return"";const r=t.split("."),n=e.split(".");let o=0;for(;o<r.length&&o<n.length&&r[r.length-1-o].toLowerCase()===n[n.length-1-o].toLowerCase();)o+=1;return o<2?"":n.slice(n.length-o).join(".")}function j$(e){const t=e.split("."),r=[];for(let n=1;n+2<=t.length;n+=1)r.push(t.slice(n).join("."));return r}function Ea(e,t,r,n){const o=q$()?"; Secure":"",i=r?`; Domain=${r}`:"";document.cookie=`${e}=${t}; Path=/; Max-Age=${n}; SameSite=Lax${i}${o}`}function q$(){return typeof globalThis.isSecureContext=="boolean"?globalThis.isSecureContext:location.protocol==="https:"}function Ah(e){if(typeof document>"u"||!document.cookie)return null;for(const t of document.cookie.split(";")){const r=t.indexOf("=");if(!(r<0)&&t.slice(0,r).trim()===e)return t.slice(r+1).trim()||null}return null}var Pt,Mt=(Pt=class{constructor(){I(this,"AUTH_SESSION_STORAGE_KEY","pontive_auth_session");I(this,"memorySession",null);I(this,"refreshTimeoutId",null);I(this,"refreshPromise",null);I(this,"refreshRetryCount",0);I(this,"refreshBlockedUntil",0);I(this,"sessionGeneration",0);I(this,"channel",null);I(this,"channelName","");I(this,"applyingBroadcast",!1);I(this,"restorePromise",null)}static get Instance(){return Pt.instance||(Pt.instance=new Pt),Pt.instance}setCurrentSession(t){this.sessionGeneration+=1,this.write(JSON.stringify(t)),this.publish({type:"session",session:t})}async withRefreshLock(t){const r=typeof navigator<"u"?navigator.locks:void 0;return r?r.request(this.channelKey("refresh"),t):t()}channelKey(t){const r=et.getConfig();return`pontive-${t}:${(r==null?void 0:r.domain)??""}:${(r==null?void 0:r.appId)??""}`}ensureChannel(){var r;if(typeof BroadcastChannel>"u")return null;const t=this.channelKey("session");return this.channel&&this.channelName===t?this.channel:((r=this.channel)==null||r.close(),this.channelName=t,this.channel=new BroadcastChannel(t),this.channel.onmessage=n=>this.receive(n.data),this.channel)}publish(t){var r;this.applyingBroadcast||(r=this.ensureChannel())==null||r.postMessage(t)}receive(t){this.applyingBroadcast=!0;try{if(t.type==="cleared"){this.clearSession();return}this.setCurrentSession(t.session),this.scheduleTokenRefresh()}finally{this.applyingBroadcast=!1}}isCurrentGeneration(t){return this.sessionGeneration===t}getCurrentSession(){const t=this.getStoredSession();return t?this.isSessionExpired(t)?(this.clearSession(),null):(this.shouldRefreshToken(t)&&this.triggerBackgroundRefresh(t),t):null}peekSession(){return this.getStoredSession()}isAuthenticated(){return this.getCurrentSession()!==null}getAuthenticatedUser(){const t=this.getCurrentSession();if(!t)return null;const r=t.id_token?this.decodeJWT(t.id_token):null;return r||(t.user??null)}cleanup(){var t;this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshPromise=null,(t=this.channel)==null||t.close(),this.channel=null,this.channelName=""}clearSession(){this.sessionGeneration+=1,this.memorySession=null,localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY),this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshRetryCount=0,this.refreshBlockedUntil=0,this.publish({type:"cleared"})}isSessionExpired(t){return!t||!t.expires_at?!0:Date.now()>=t.expires_at}cleanExpiredSession(){const t=this.getStoredSession();t&&this.isSessionExpired(t)&&this.clearSession()}getStoredSession(){const t=this.read();if(!t)return null;try{return JSON.parse(t)}catch{return this.clearSession(),null}}write(t){this.memorySession=t,localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY)}read(){return this.memorySession}decodeJWT(t){try{const n=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(n).split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(o)}catch{return null}}shouldRefreshToken(t){if(!t||!t.expires_at)return!1;const r=Date.now(),n=t.expires_at,o=t.expires_in||3600,i=r+o*1e3*.2;return n<=i}scheduleTokenRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null);const t=this.getCurrentSession();if(!t||!t.expires_at)return;const r=Date.now(),n=t.expires_at,o=t.expires_in||3600,i=n-r-o*1e3*.2;i>0&&(this.refreshTimeoutId=setTimeout(()=>{this.triggerBackgroundRefresh(t)},i))}triggerBackgroundRefresh(t){this.refreshPromise||Date.now()<this.refreshBlockedUntil||(this.refreshPromise=this.withRefreshLock(()=>{const r=this.getStoredSession();return r&&!this.shouldRefreshToken(r)?(this.scheduleTokenRefresh(),Promise.resolve(null)):this.refreshTokens(r??t)}).then(r=>(r&&(this.setCurrentSession(r),this.refreshRetryCount=0,this.refreshBlockedUntil=0,this.scheduleTokenRefresh()),r)).catch(r=>(console.error("Background token refresh failed:",r),null)).finally(()=>{this.refreshPromise=null}))}async refreshTokens(t){const r=this.sessionGeneration;try{const n=await this.requestTokens(t);return this.isCurrentGeneration(r)?n:(console.warn("Token refresh returned after the session changed; discarding it"),null)}catch(n){return this.isCurrentGeneration(r)?z$(n)?(console.error("Token refresh rejected, signing out:",Qo(n)),Sa(),this.clearSession(),null):(console.warn("Token refresh failed, keeping session and retrying:",Qo(n)),this.scheduleRefreshRetry(t),null):(console.warn("Token refresh failed after the session changed; ignoring:",Qo(n)),null)}}async fetchUserInfo(t){try{return await sn.Instance.request("/oauth2/userinfo",{method:"GET",credentials:"include",headers:{Authorization:`Bearer ${t}`}})}catch(r){return console.debug("Could not read user info for the restored session:",Qo(r)),null}}async requestTokens(t){var o;const r={grant_type:"refresh_token",client_id:(o=et.getConfig())==null?void 0:o.appId};t!=null&&t.refresh_token&&(r.refresh_token=t.refresh_token);const n=await sn.Instance.postForm("/oauth2/token",r);return{id_token:n.id_token??(t==null?void 0:t.id_token)??"",access_token:n.access_token,refresh_token:n.refresh_token??(t==null?void 0:t.refresh_token),expires_in:n.expires_in,expires_at:Date.now()+n.expires_in*1e3}}async readCurrentToken(){var r;const t=(r=et.getConfig())==null?void 0:r.appId;if(!t)return null;try{const n=await sn.Instance.getOptional(`/oauth2/session/token?client_id=${encodeURIComponent(t)}`);return!(n!=null&&n.access_token)||!(n.expires_in>0)?null:{id_token:"",access_token:n.access_token,expires_in:n.expires_in,expires_at:Date.now()+n.expires_in*1e3}}catch{return null}}async restoreSession(){const t=this.getStoredSession();return t&&!this.isSessionExpired(t)?t:M$()==="absent"?null:this.restorePromise?this.restorePromise:(this.restorePromise=this.withRefreshLock(async()=>{const r=this.getStoredSession();if(r&&!this.isSessionExpired(r))return r;try{const n=await this.readCurrentToken()??await this.requestTokens(null);return n.id_token||(n.user=await this.fetchUserInfo(n.access_token)??void 0),this.setCurrentSession(n),this.scheduleTokenRefresh(),n}catch(n){return H$(n)&&Sa(),console.debug("No session to restore:",Qo(n)),null}}).finally(()=>{this.restorePromise=null}),this.restorePromise)}scheduleRefreshRetry(t){if(this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshRetryCount>=Pt.MAX_REFRESH_RETRIES){console.warn("Token refresh gave up after",this.refreshRetryCount,"attempts"),this.refreshRetryCount=0,this.refreshBlockedUntil=0;return}const r=Math.min(Pt.REFRESH_RETRY_BASE_MS*2**this.refreshRetryCount,Pt.MAX_REFRESH_RETRY_DELAY_MS);this.refreshRetryCount+=1,this.refreshBlockedUntil=Date.now()+r,this.refreshTimeoutId=setTimeout(()=>{this.refreshBlockedUntil=0,this.triggerBackgroundRefresh(t)},r)}},I(Pt,"MAX_REFRESH_RETRIES",5),I(Pt,"REFRESH_RETRY_BASE_MS",5e3),I(Pt,"MAX_REFRESH_RETRY_DELAY_MS",6e4),I(Pt,"instance"),Pt);function z$(e){return!(e instanceof tt)||e.status===void 0?!1:e.status===401?!0:e.status===400&&V$.has(e.code)}var V$=new Set(["invalid_grant","invalid_client"]);function H$(e){return e instanceof tt&&e.status!==void 0&&e.status>=400&&e.status<500}function Qo(e){return e instanceof tt?`${e.code} (status ${e.status??"none"}): ${e.message}`:String(e)}var Th=class{constructor(e=sessionStorage){I(this,"storage");I(this,"FLOW_STATE_KEY","pontive_loginflow_state");I(this,"FLOW_EXPIRY_MS",540*1e3);this.storage=e}getFlowState(){const e=this.storage.getItem(this.FLOW_STATE_KEY);if(!e)return null;try{const t=JSON.parse(e);return this.isExpired(t)?(this.clearFlowState(),null):t}catch{return this.clearFlowState(),null}}saveFlowState(e,t,r){const n=Date.now(),o=this.getFlowState(),i={flowType:e,flow_id:t,state:r.state,startedAt:(o==null?void 0:o.startedAt)||n,lastUpdatedAt:n,render_spec:r.render_spec};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(i))}restoreFromHistory(e){const t={flowType:e.flowType,flow_id:e.flow_id,state:e.state,startedAt:e.timestamp,lastUpdatedAt:e.timestamp,render_spec:void 0};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(t))}clearFlowState(){this.storage.removeItem(this.FLOW_STATE_KEY)}isExpired(e){return Date.now()-e.lastUpdatedAt>this.FLOW_EXPIRY_MS}get expiryMs(){return this.FLOW_EXPIRY_MS}},Si=class{static detect(e,t=window.location){const r=t.pathname.toLowerCase();return e.invitationUrl&&r.includes(e.invitationUrl)?"invitation":r.includes(e.signinUrl)?"signin":r.includes(e.signupUrl)?"signup":"custom"}},Dh=class{constructor(){I(this,"listeners",new Map)}on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t)}off(e,t){var r;(r=this.listeners.get(e))==null||r.delete(t)}emit(e,t){const r=this.listeners.get(e);r&&r.forEach(n=>{try{n(t)}catch(o){console.error(`[FlowEventBus] Error in event handler for ${e}:`,o)}})}clear(){this.listeners.clear()}clearEvent(e){this.listeners.delete(e)}},G$=class{getNavigationType(){const e=performance.getEntriesByType("navigation");if(e.length>0)return e[0].type;const t=performance.navigation;if(t)switch(t.type){case 1:return"reload";case 2:return"back_forward";default:return"navigate"}return"navigate"}},K$=class Lh{constructor(t,r,n=window.location,o,i){I(this,"httpClient",sn.Instance);I(this,"flowId");I(this,"redirectTimeoutId",null);I(this,"flowStateManager");I(this,"flowEventBus");I(this,"location");I(this,"navigationTypeDetector");I(this,"eventHandlers",new Map([["switch_to_signin",this.handleSwitchToSignin.bind(this)],["switch_to_signup",this.handleSwitchToSignup.bind(this)]]));const s=et.getConfig();if(!s.domain)throw new tt("CONFIG_ERROR","Domain is required");if(!s.appId)throw new tt("CONFIG_ERROR","App ID is required");this.flowId=t,this.location=n,this.flowStateManager=o||new Th,this.flowEventBus=r||new Dh,this.navigationTypeDetector=i||new G$,Mt.Instance.cleanExpiredSession(),Mt.Instance.scheduleTokenRefresh()}static async init(t,r,n,o,i){const s=new Lh(t,r,n,o,i),d=await s.initializeFlowInternal();return{sdk:s,flowType:d.flowType,isResumed:d.isResumed,state:d.state,render_spec:d.render_spec,auth_result:d.auth_result}}async startFlow(t,r){if(!r.app_id)throw new tt("VALIDATION_ERROR","Client ID is required");const n=`/auth/v1/authflows/${t}/start`;return this.executeFlowRequest(()=>this.httpClient.post(n,r),"START_FLOW_ERROR","Failed to start flow")}async resumeFlow(t){const r=`/auth/v1/authflows/${t}/resume`;return this.executeFlowRequest(()=>this.httpClient.post(r),"RESUME_FLOW_ERROR","Failed to resume flow")}async processEvent(t,r){if(!t.event)throw new tt("VALIDATION_ERROR","Event type is required");const n=this.eventHandlers.get(t.event);return n?await n():await this.processServerEvent(t,r)}async executeFlowRequest(t,r,n,o){try{const i=await t();return o&&await o(i),this.processAuthResult(i.auth_result),i.redirection&&this.redirect(i.redirection),i}catch(i){throw i instanceof tt?i:new tt(r,n,i instanceof Error?{originalError:i.message,stack:i.stack}:i)}}async processServerEvent(t,r){let n=this.flowStateManager.getFlowState();if(!n&&(console.warn("Flow state expired, restarting flow before processing event"),await this.initializeFlowInternal(),n=this.flowStateManager.getFlowState(),!n))throw new tt("FLOW_RESTART_ERROR","Failed to restart flow - no flow state after initialization");const o=n.state,i=`/auth/v1/authflows/${n.flowType}/events`,s=await this.executeFlowRequest(()=>this.httpClient.post(i,t),"PROCESS_EVENT_ERROR","Failed to process event",r);if(!s.auth_result){this.flowStateManager.saveFlowState(n.flowType,n.flow_id,s);const d=this.flowStateManager.getFlowState();if(d){const c=o!==s.state;this.flowEventBus.emit("flow:updated",{flowState:d,isNewStep:c})}}return s}processAuthResult(t){if(t){const r={id_token:t.id_token,access_token:t.access_token,refresh_token:t.refresh_token,expires_in:t.expires_in,expires_at:Date.now()+t.expires_in*1e3};Mt.Instance.setCurrentSession(r),Mt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState();const{onAuthenticated:n}=et.getConfig();if(n){n(r);return}console.warn("pontive: signed in, but no onAuthenticated was supplied, so the SDK cannot route the user. Supply onAuthenticated to handle the handoff.")}}async initializeFlowInternal(){const t=et.getConfig(),r=Si.detect(t,this.location);this.validateFlowType(r);const n=this.flowStateManager.getFlowState();return this.shouldResumeFlow(n,r)?await this.resumeExistingFlow(n,r):await this.startNewFlow(r)}validateFlowType(t){if(t==="custom"&&!this.flowId)throw new tt("FLOW_ID_ERROR","Flow ID is required for custom flows")}shouldResumeFlow(t,r){if(!t)return!1;const o=new URLSearchParams(this.location.search).get("resume")==="true",i=this.navigationTypeDetector.getNavigationType();if(i==="navigate"&&!o)return this.flowStateManager.clearFlowState(),console.log(`Fresh navigation detected (type: ${i}), starting new flow`),!1;if(t.flowType!==r)return this.flowStateManager.clearFlowState(),console.log(`Flow type changed from ${t.flowType} to ${r}, starting new flow, flow_id: ${this.flowId}`),!1;if(r==="custom"&&t.flow_id!==this.flowId)return this.flowStateManager.clearFlowState(),console.log(`Custom flow ID changed, starting new flow, flow_id: ${this.flowId}`),!1;const s=o?"explicit resume=true":`navigation type: ${i}`;return console.log(`Resuming existing flow (${s})`),!0}async resumeExistingFlow(t,r){try{const n=await this.resumeFlow(r);if(!n.auth_result){this.flowStateManager.saveFlowState(r,t.flow_id,n);const o=this.flowStateManager.getFlowState();o&&this.flowEventBus.emit("flow:resumed",{flowState:o})}return{flowType:r,isResumed:!0,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result}}catch(n){return this.flowStateManager.clearFlowState(),console.warn("Failed to resume flow, starting fresh:",n),await this.startNewFlow(r)}}async startNewFlow(t){const r=et.getConfig(),n=new URLSearchParams(this.location.search),o={};n.forEach((c,m)=>{o[m]=c}),console.log("metadata",o);const i=n.get("locales")||r.locales||void 0,s={app_id:r.appId,origin_url:this.location.href,signin_url:r.signinUrl,signup_url:r.signupUrl,locales:i,flow_id:this.determineFlowId(t),metadata:o},d=await this.startFlow(t,s);if(!d.auth_result){this.flowStateManager.saveFlowState(t,s.flow_id,d);const c=this.flowStateManager.getFlowState();c&&this.flowEventBus.emit("flow:started",{flowState:c})}return{flowType:t,isResumed:!1,state:d.state,render_spec:d.render_spec,auth_result:d.auth_result}}determineFlowId(t){switch(t){case"signin":return this.flowId||"signin-flow";case"signup":return this.flowId||"signup-flow";case"invitation":return this.flowId||"invitation-flow";case"custom":if(!this.flowId)throw new tt("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}async handleSwitchToSignin(){const t=et.getConfig();return this.redirect({url:this.withCurrentQuery(t.signinUrl),redirect_delay:0}),{state:"End"}}async handleSwitchToSignup(){const t=et.getConfig();return this.redirect({url:this.withCurrentQuery(t.signupUrl),redirect_delay:0}),{state:"End"}}withCurrentQuery(t){const r=this.location.search;return!r||r==="?"?t:t.includes("?")?`${t}&${r.slice(1)}`:`${t}${r}`}redirect(t){t.url&&(this.redirectTimeoutId!==null&&(console.log("Clearing existing redirect timeout before scheduling new redirect to:",t.url),clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.redirectTimeoutId=setTimeout(()=>{this.location.href=t.url},t.redirect_delay*1e3))}reloadPage(){setTimeout(()=>{this.location.reload()},0)}getEventBus(){return this.flowEventBus}cleanup(){this.redirectTimeoutId&&(clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.flowEventBus.clear()}},W$=class{constructor(e){I(this,"delayMs");I(this,"timerId",null);this.delayMs=e}debounce(e){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{e(),this.timerId=null},this.delayMs)}cancel(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}isPending(){return this.timerId!==null}},Y$=class{pushState(e,t,r){history.pushState(e,t,r)}replaceState(e,t,r){history.replaceState(e,t,r)}get state(){return history.state}},Q$=class{constructor(e,t,r=!1,n=window.location,o,i){I(this,"popstateListener",null);I(this,"pageshowListener",null);I(this,"debouncer");I(this,"isProcessing",!1);I(this,"isHandlingNavigationEvent",!1);I(this,"onFlowRestartNeeded",null);I(this,"skipHistoryTracking");I(this,"flowStateManager");I(this,"historyAdapter");I(this,"location");this.onFlowRestartNeeded=t,this.skipHistoryTracking=r,this.debouncer=new W$(200),this.location=n,this.flowStateManager=o||new Th,this.historyAdapter=i||new Y$,this.subscribeToFlowEvents(e),this.initializeListener()}subscribeToFlowEvents(e){e.on("flow:started",this.handleFlowStart.bind(this)),e.on("flow:updated",this.handleFlowUpdate.bind(this)),e.on("flow:resumed",this.handleFlowResume.bind(this))}initializeListener(){this.popstateListener=e=>{console.log("[NavigationManager] popstate event received"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Debounce timeout fired, handling popstate"),this.handlePopState(e)})},this.pageshowListener=e=>{e.persisted&&(console.log("[NavigationManager] Page restored from bfcache"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Handling bfcache restoration"),this.handleBfcacheRestoration()}))},window.addEventListener("popstate",this.popstateListener),window.addEventListener("pageshow",this.pageshowListener)}async handlePopState(e){if(this.isProcessing){console.log("[NavigationManager] Already processing popstate, skipping");return}console.log("[NavigationManager] Starting popstate processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const t=e.state,r=this.flowStateManager.getFlowState(),n=et.getConfig(),o=Si.detect(n,this.location);if(t&&this.restoreHistoryStateToSession(t),this.shouldRestartFlow(t,r,o)){await this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from history")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}}async handleBfcacheRestoration(){if(this.isProcessing){console.log("[NavigationManager] Already processing bfcache restoration, skipping");return}console.log("[NavigationManager] Starting bfcache restoration processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const e=this.historyAdapter.state,t=this.flowStateManager.getFlowState(),r=et.getConfig(),n=Si.detect(r,this.location);if(e&&this.restoreHistoryStateToSession(e),this.shouldRestartFlow(e,t,n)){await this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from bfcache")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}}restoreHistoryStateToSession(e){console.log("[NavigationManager] Restoring history state to session storage:",e),this.flowStateManager.restoreFromHistory(e)}shouldRestartFlow(e,t,r){return e&&e.flowType!==r?(console.log("[NavigationManager] Flow type changed via navigation:",e.flowType,"→",r),this.flowStateManager.clearFlowState(),!0):e?Date.now()-e.timestamp>this.flowStateManager.expiryMs?(console.log("[NavigationManager] History state expired, clearing and restarting flow"),this.flowStateManager.clearFlowState(),!0):(console.log("[NavigationManager] Valid history state restored, triggering restart to resume flow"),!0):(console.log("[NavigationManager] No history state, skipping"),!1)}async triggerFlowRestart(){this.onFlowRestartNeeded&&await this.onFlowRestartNeeded()}createHistoryState(e){return{flowType:e.flowType,flow_id:e.flow_id,state:e.state,timestamp:Date.now()}}updateBrowserHistory(e,t){if(this.skipHistoryTracking){console.log("[NavigationManager] Skipping history tracking (created from navigation)");return}const r=this.createHistoryState(e);try{t==="push"?(this.historyAdapter.pushState(r,"",this.location.href),console.log("[NavigationManager] Pushed state to history")):(this.historyAdapter.replaceState(r,"",this.location.href),console.log("[NavigationManager] Replaced state in history"))}catch(n){console.error("[NavigationManager] Failed to update history:",n)}}handleFlowStart(e){this.updateBrowserHistory(e.flowState,"replace")}handleFlowUpdate(e){const t=this.isHandlingNavigationEvent||!e.isNewStep?"replace":"push";this.updateBrowserHistory(e.flowState,t)}handleFlowResume(e){this.updateBrowserHistory(e.flowState,"replace")}destroy(){this.debouncer.cancel(),this.popstateListener&&(window.removeEventListener("popstate",this.popstateListener),this.popstateListener=null),this.pageshowListener&&(window.removeEventListener("pageshow",this.pageshowListener),this.pageshowListener=null),this.onFlowRestartNeeded=null}},Cr=new AbortController,Z$=class{constructor(){I(this,"httpClient",sn.Instance);I(this,"capabilities",{webauthn:!1});I(this,"capabilitiesDetected",!1)}async detectCapabilities(){if(!this.capabilitiesDetected)try{if(typeof window.PublicKeyCredential=="function"?this.capabilities.webauthn=!0:this.capabilities.webauthn=!1,typeof PublicKeyCredential.getClientCapabilities=="function"){const e=await PublicKeyCredential.getClientCapabilities();this.capabilities={...this.capabilities,...e};return}typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(this.capabilities.userVerifyingPlatformAuthenticator=await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()),(PublicKeyCredential==null?void 0:PublicKeyCredential.isConditionalMediationAvailable)!==void 0&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"?this.capabilities.conditionalGet=await PublicKeyCredential.isConditionalMediationAvailable():this.capabilities.conditionalGet=!1}finally{this.capabilitiesDetected=!0}}async fetchPublicKeyCredentialRequestOptions(e,t){try{return this.httpClient.post("/auth/v1/webauthn/login/options",{conditional:t,flow_type:e})}catch(r){return console.error("error",r),null}}async fetchPublicKeyCredentialCreationOptions(e,t){try{return this.httpClient.post("/auth/v1/webauthn/register/options",{conditional:t,flow_type:e})}catch(r){return console.error("error",r),null}}async startRegistration(e,t){if(await this.detectCapabilities(),!e)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Cr.abort(),Cr=new AbortController;const r=this.toPublicKeyCredentialCreationOptions(e),n={signal:Cr.signal,publicKey:r};if(t){if(!this.isConditionalCreateAvailable())return console.error("Conditional create mediation not supported in this browser"),null;n.mediation="conditional"}try{const o=await navigator.credentials.create(n);if(!o){console.error("no credential returned by authenticator");return}const{id:i,rawId:s,response:d,type:c}=o;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let v;if(typeof d.getPublicKeyAlgorithm=="function")try{v=d.getPublicKeyAlgorithm()}catch(_){ds("getPublicKeyAlgorithm()",_)}let b;if(typeof d.getPublicKey=="function")try{const _=d.getPublicKey();_!==null&&(b=this.bufferToBase64URLString(_))}catch(_){ds("getPublicKey()",_)}let w;if(typeof d.getAuthenticatorData=="function")try{w=this.bufferToBase64URLString(d.getAuthenticatorData())}catch(_){ds("getAuthenticatorData()",_)}return{id:i,rawId:this.bufferToBase64URLString(s),response:{attestationObject:this.bufferToBase64URLString(d.attestationObject),clientDataJSON:this.bufferToBase64URLString(d.clientDataJSON),transports:m,publicKeyAlgorithm:v,publicKey:b,authenticatorData:w},type:c,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(o.authenticatorAttachment)}}catch(o){const i=this.identifyAuthenticationError({error:o,options:n});return i instanceof Sr?console.error(`WebAuthn authentication failed with code: ${i.code}, message: ${i.message}`):console.error("WebAuthn authentication failed with error:",o),null}}async startAuthentication(e,t){if(await this.detectCapabilities(),!e)return console.error("No PublicKeyCredentialRequestOptionsJSON provided"),null;if(!this.isWebAuthnAvailable())return console.error("WebAuthn not supported in this browser"),null;Cr.abort(),Cr=new AbortController;const r=this.toPublicKeyCredentialRequestOptions(e),n={signal:Cr.signal,publicKey:r};if(t){if(!this.isConditionalGetAvailable())return console.error("Conditional mediation not supported in this browser"),null;n.mediation="conditional",n.publicKey&&(n.publicKey.allowCredentials=[])}try{const o=await navigator.credentials.get(n);return this.toPublicKeyCredentialJSON(o)}catch(o){const i=this.identifyAuthenticationError({error:o,options:n});return i instanceof Sr?console.error(`WebAuthn authentication failed with code: ${i.code}, message: ${i.message}`):console.error("WebAuthn authentication failed with error:",o),null}}async signalUnknownCredential(e,t){if(await this.detectCapabilities(),this.isSignalUnknownCredentialAvailable())try{await PublicKeyCredential.signalUnknownCredential({rpId:e,credentialId:t})}catch(r){console.error("Failed to signal unknown credential:",r)}else console.warn("signalUnknownCredential not supported in this browser")}async signalCurrentUserDetails(e){if(await this.detectCapabilities(),this.isSignalCurrentUserDetailsAvailable())try{await PublicKeyCredential.signalCurrentUserDetails(e)}catch(t){console.error("Failed to signal current user details:",t)}else console.warn("signalCurrentUserDetails not supported. Ask user to update manually.")}toPublicKeyCredentialDescriptor(e){const{id:t}=e;return{...e,id:this.base64URLStringToBuffer(t),type:e.type,transports:e.transports}}toAuthenticatorAttachment(e){const t=["cross-platform","platform"];if(e&&!(t.indexOf(e)<0))return e}bufferToBase64URLString(e){const t=new Uint8Array(e);let r="";for(const o of t)r+=String.fromCharCode(o);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}base64URLStringToBuffer(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=t.padEnd(t.length+r,"="),o=atob(n),i=new ArrayBuffer(o.length),s=new Uint8Array(i);for(let d=0;d<o.length;d++)s[d]=o.charCodeAt(d);return i}toPublicKeyCredentialJSON(e){if(typeof e.toJSON=="function")return e.toJSON();const t=e.response;return{id:e.id,type:e.type,rawId:this.bufferToBase64URLString(e.rawId),authenticatorAttachment:this.toAuthenticatorAttachment(e.authenticatorAttachment),clientExtensionResults:e==null?void 0:e.getClientExtensionResults(),response:{clientDataJSON:this.bufferToBase64URLString(t.clientDataJSON),authenticatorData:this.bufferToBase64URLString(t.authenticatorData),signature:this.bufferToBase64URLString(t.signature),userHandle:t.userHandle?this.bufferToBase64URLString(t.userHandle):void 0}}}toPublicKeyCredentialCreationOptions(e){var r;if(typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const t={challenge:this.base64URLStringToBuffer(e.challenge),rp:{id:e.rp.id,name:e.rp.name},user:{displayName:e.user.displayName,id:this.base64URLStringToBuffer(e.user.id),name:e.user.name},pubKeyCredParams:e.pubKeyCredParams.map(n=>({alg:n.alg,type:n.type})),timeout:e.timeout};if(e.attestation&&(t.attestation=e.attestation),e.extensions!==void 0&&(t.extensions=e.extensions),e.authenticatorSelection){const n={};e.authenticatorSelection.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorSelection.authenticatorAttachment),e.authenticatorSelection.requireResidentKey&&(n.requireResidentKey=e.authenticatorSelection.requireResidentKey),e.authenticatorSelection.residentKey&&(n.residentKey=e.authenticatorSelection.residentKey),e.authenticatorSelection.userVerification&&(n.userVerification=e.authenticatorSelection.userVerification),t.authenticatorSelection=n}return(r=e.excludeCredentials)!=null&&r.length&&(t.excludeCredentials=e.excludeCredentials.map(n=>this.toPublicKeyCredentialDescriptor(n))),t}toPublicKeyCredentialRequestOptions(e){var r;if(typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const t={challenge:this.base64URLStringToBuffer(e.challenge)};return e.rpId!==void 0&&(t.rpId=e.rpId),e.timeout!==void 0&&(t.timeout=e.timeout),e.userVerification!==void 0&&(t.userVerification=e.userVerification),e.extensions!==void 0&&(t.extensions=e.extensions),(r=e.allowCredentials)!=null&&r.length&&(t.allowCredentials=e.allowCredentials.map(n=>this.toPublicKeyCredentialDescriptor(n))),t}identifyAuthenticationError({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Sr({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Sr({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(J$(n)){if(r.rpId!==n)return new Sr({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Sr({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Sr({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}isPublicKeyCredentialRequestOptionsJSON(e){return typeof e=="object"&&e!==null&&"challenge"in e}isWebAuthnAvailable(){return this.capabilities.webauthn}isSignalAllAcceptedCredentialsAvailable(){return!!this.capabilities.signalAllAcceptedCredentials}isSignalCurrentUserDetailsAvailable(){return!!this.capabilities.signalCurrentUserDetails}isSignalUnknownCredentialAvailable(){return!!this.capabilities.signalUnknownCredential}isConditionalGetAvailable(){return!!this.capabilities.conditionalGet}isConditionalCreateAvailable(){return!!this.capabilities.conditionalCreate}isHybridTransportAvailable(){return!!this.capabilities.hybridTransport}destroy(){Cr.abort()}};function ds(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
2649
+ `,t)}var Sr=class extends Error{constructor({message:t,code:r,cause:n,name:o}){super(t);I(this,"code");this.name=o??n.name,this.code=r}};function J$(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}var ve,X$=(ve=class{constructor(){I(this,"configured",!1);I(this,"configuredResolve");I(this,"configuredPromise",new Promise(t=>{this.configuredResolve=t}));I(this,"loginflow",null);I(this,"navigationManager",null);I(this,"flowEventBus",null);I(this,"webauthnService",null)}static get Instance(){return ve.instance||(ve.instance=new ve),ve.instance}ensureConfigured(){if(!this.configured)throw new tt("NOT_CONFIGURED","Auth.configure() must be called before using Auth methods")}ensureLoginflowInitialized(){if(!this.loginflow)throw new tt("LOGINFLOW_NOT_INITIALIZED","Call Auth.startLoginflow() first")}async startLoginflowInternal(t,r=!1){this.ensureConfigured(),this.webauthnService&&(console.log("[AuthService] Cleaning up and aborting ongoing webauthn flows"),this.webauthnService.destroy(),this.webauthnService=null),this.loginflow&&(console.log("[AuthService] Cleaning up old loginflow instance"),this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(console.log("[AuthService] Cleaning up old navigation manager instance"),this.navigationManager.destroy(),this.navigationManager=null),this.webauthnService=new Z$,this.webauthnService.detectCapabilities(),this.flowEventBus=new Dh,this.navigationManager=new Q$(this.flowEventBus,async()=>{console.log("[AuthService] Navigation restart triggered, restarting loginflow"),await this.startLoginflowInternal(void 0,!1)},r);const n=await K$.init(t,this.flowEventBus),o=et.getConfig();this.startPasskeyAuthentication(n.flowType,!0),this.loginflow=n.sdk;const i={flowType:n.flowType,isResumed:n.isResumed,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result};return o.onFlowStateChange&&o.onFlowStateChange({eventType:n.isResumed?"flow_resumed":"flow_started",flowType:n.flowType,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result,isResumed:n.isResumed}),i}configure(t){if(!t.domain||!t.appId)throw new tt("CONFIG_ERROR","domain and appId are required");et.setConfig(t),this.configured=!0,this.configuredResolve()}whenConfigured(){return this.configuredPromise}isAuthenticated(){return this.ensureConfigured(),Mt.Instance.isAuthenticated()}getCurrentSession(){return this.ensureConfigured(),Mt.Instance.getCurrentSession()}async restoreSession(){return this.ensureConfigured(),Mt.Instance.restoreSession()}getAuthenticatedUser(){return this.ensureConfigured(),Mt.Instance.getAuthenticatedUser()}async startLoginflow(t){return this.startLoginflowInternal(t,!1)}async processLoginflowEvent(t){var i,s;this.ensureConfigured(),this.ensureLoginflowInitialized();const r=et.getConfig(),n=Si.detect(r,location);if(t.event==="signin_with_passkey"&&!((i=t.data)!=null&&i.credential_request)){const d=await this.getPasskeyCredential(n,!1);if(!d||!d.cred)return console.error("no credential returned by browser"),{state:""};t.data={credential_request:d.cred}}if(t.event==="register_passkey"&&!((s=t.data)!=null&&s.conditional)){console.log("attempt to register a passkey");const d=await this.createPasskeyCredential(n,!1);if(!d)return console.error("no credential created by browser"),{state:""};t.data={credential_creation_response:d,conditional:!1}}const o=await this.loginflow.processEvent(t,async d=>{var c;if((c=d.data)!=null&&c.conditional_create_enabled){console.log("attempt to register a passkey conditionally");const m=await this.registerPasskey(n,!0);m&&(m.render_spec=void 0,d.render_spec=void 0)}});if(console.log("render spec",o.render_spec),r.onFlowStateChange){const d=sessionStorage.getItem("pontive_loginflow_state");let c="custom";if(d)try{c=JSON.parse(d).flowType}catch(m){console.error("Failed to parse flow state:",m)}r.onFlowStateChange({eventType:"flow_updated",flowType:c,state:o.state,render_spec:o.render_spec,auth_result:o.auth_result})}return o}async getPasskeyCredential(t,r){var o,i;const n=await((o=this.webauthnService)==null?void 0:o.fetchPublicKeyCredentialRequestOptions(t,r));if(!n)return console.error("failed to fetch public key request options"),null;try{return{cred:await((i=this.webauthnService)==null?void 0:i.startAuthentication(n,r)),options:n}}catch(s){return console.error("error starting authentication",s),null}}async startPasskeyAuthentication(t,r=!1){var s,d;const n=await this.getPasskeyCredential(t,r);if(!n||!n.cred){console.error("no credential found");return}const{cred:o,options:i}=n;try{((s=(await this.processLoginflowEvent({event:"signin_with_passkey",data:{credential_request:o}})).data)==null?void 0:s.error)==="CredentialNotFound"&&(i.rpId&&o.id?(d=this.webauthnService)==null||d.signalUnknownCredential(i.rpId,o.id):console.log("missing rpId or credential id for signalUnknownCredential"))}catch(c){console.error("failed to signin with passkey",c)}}async createPasskeyCredential(t,r){var n,o;try{const i=await((n=this.webauthnService)==null?void 0:n.fetchPublicKeyCredentialCreationOptions(t,r));if(!i){console.warn("no credential creation option returned by webauthn service"),console.log("skipping conditional passkey registration...");return}return(o=this.webauthnService)==null?void 0:o.startRegistration(i,r)}catch(i){console.log("error",i)}}async registerPasskey(t,r=!1){try{const n=await this.createPasskeyCredential(t,r),o=await this.processLoginflowEvent({event:"register_passkey",data:{credential_creation_response:n,conditional:r}});return console.log("passkey creation res",o),o}catch(n){console.log("error",n)}}invalidateSession(){Mt.Instance.clearSession()}async signOut(t){var o;this.ensureConfigured();const r=tP(Mt.Instance.peekSession()),n=((o=et.getConfig())==null?void 0:o.appId)??"";if(Sa(),Mt.Instance.clearSession(),Mt.Instance.cleanup(),this.loginflow&&(this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(this.navigationManager.destroy(),this.navigationManager=null),this.flowEventBus&&(this.flowEventBus.clear(),this.flowEventBus=null),!et.apiIsSameOrigin()){window.location.assign(this.logoutUrl(r,n,t==null?void 0:t.returnTo));return}await this.endServerSession(r,n),window.location.reload()}async endServerSession(t,r){try{await fetch(`${et.getApiBaseUrl()}/oauth2/logout`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:r,...t?{logout_hint:t}:{}}).toString()})}catch(n){console.warn("Could not end the session at the authorization server:",n)}}logoutUrl(t,r,n){const o=new URLSearchParams({post_logout_redirect_uri:n??`${window.location.origin}${window.location.pathname}`,client_id:r});return t&&o.set("logout_hint",t),`${et.getApiBaseUrl()}/oauth2/logout?${o.toString()}`}},I(ve,"instance"),ve);function tP(e){for(const t of[e==null?void 0:e.id_token,e==null?void 0:e.access_token]){if(!t)continue;const r=Mt.Instance.decodeJWT(t);if(typeof(r==null?void 0:r.sid)=="string"&&r.sid)return r.sid}}var Y=X$.Instance,eP=Object.defineProperty,rP=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&eP(t,r,o),o};class jt extends f{constructor(){super(),this.shadow=!1,this.__initialAttributesCache=null}parseJsonAttribute(t){try{const r=this.getAttribute(t);return r?JSON.parse(r):{}}catch{return{}}}get sbStyle(){return this.parseJsonAttribute("pont-style")}getAttributesToExclude(){return[]}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var o,i;t.some(s=>this.isCustomPropertySet(s))&&((i=(o=this.shadowRoot)==null?void 0:o.querySelector(r))==null||i.classList.add(n))}moveAttributesToElement(t,r=["id","class"]){t&&r.forEach(n=>{const o=this.getAttribute(n);o!==null&&(t.setAttribute(n,o),this.removeAttribute(n))})}removeAttributesFromHost(t=["id","class"]){t.forEach(r=>{this.hasAttribute(r)&&this.removeAttribute(r)})}captureHostAttributes(){if(this.__initialAttributesCache)return this.__initialAttributesCache;const t={};return Array.from(this.attributes).forEach(r=>{t[r.name]=r.value}),this.__initialAttributesCache=t,t}getHostClass(){return this.captureHostAttributes().class??""}removeDuplicateContent(){var i;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var d;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((d=s.textContent)!=null&&d.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let o;for(;o=t.nextNode();){let s;if(o.nodeType===Node.TEXT_NODE){const d=(i=o.textContent)==null?void 0:i.trim();if(!d)continue;s=`text:${d}`}else if(o instanceof HTMLElement){const d=Array.from(o.attributes).map(c=>`${c.name}=${c.value}`).sort().join(":");s=`element:${o.tagName}:${d}`}else continue;if(r.has(s)){const d=r.get(s);d!=null&&d.parentNode&&n.push(d),r.set(s,o)}else r.set(s,o)}n.forEach(s=>{var d;return(d=s.parentNode)==null?void 0:d.removeChild(s)})}moveLightDomChildrenInto(t,r){let n;r!=null&&r.length?(n=r.filter(o=>this.contains(o)&&o!==t&&!o.contains(t)),n.forEach(o=>{const i=Array.from(t.childNodes).find(s=>{var d;return(d=s.isEqualNode)==null?void 0:d.call(s,o)});i&&t.removeChild(i)})):n=Array.from(this.childNodes).filter(o=>o!==t&&!t.contains(o)&&!o.contains(t)),n.forEach(o=>t.appendChild(o))}}rP([a({type:Boolean})],jt.prototype,"shadow");const Qr="pont:auth",Zr={showWatermark:!0},jo="pont:branding";class oP{constructor(t){this.consumer=new li(t,{context:jo,subscribe:!0})}get showWatermark(){var t;return((t=this.consumer.value)==null?void 0:t.showWatermark)??Zr.showWatermark}}const Fh="pont:design-mode";class An{constructor(t){this.host=t,this.consumer=new li(t,{context:Fh,subscribe:!0})}get active(){return this.host.hasAttribute("design-mode")?this.host.getAttribute("design-mode")!=="false":this.consumer.value??!1}}const kh="pont:env",Li=Symbol("renderSpecContext"),Tn="pont-user-context",Fi="";var nP=Object.defineProperty,iP=Object.getOwnPropertyDescriptor,Dn=(e,t,r,n)=>{for(var o=n>1?void 0:n?iP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&nP(t,r,o),o};exports.PontKitLayout=class extends f{constructor(){super(...arguments),this.spec="",this.designMode=!1,this.branding=Zr,this.handleError=t=>{var r;return console.error("pont-form error",(r=t.detail)==null?void 0:r.message)}}set renderSpec(t){this.spec=t,this.requestUpdate()}createRenderRoot(){return this}updated(){this.renderDynamicContent()}renderDynamicContent(){if(!this.spec)return;const r=(this.shadowRoot||this).querySelector("#dynamic-content");r&&(r.innerHTML=this.spec,r.querySelectorAll("*").forEach(n=>{n.localName.includes("-")&&!customElements.get(n.localName)?exports.PontKitLayout.reportUnregistered(n.localName):customElements.upgrade(n)}))}static reportUnregistered(t){exports.PontKitLayout.reportedUnregistered.has(t)||(exports.PontKitLayout.reportedUnregistered.add(t),console.warn(`pontive: <${t}> is in the rendered spec but this core-elements bundle does not define it`),document.dispatchEvent(new CustomEvent(exports.PontKitLayout.UNREGISTERED_ELEMENT_EVENT,{detail:{tag:t}})))}render(){return l`
2650
2650
  <pont-form
2651
2651
  custom-id="pont-layout-form"
2652
2652
  @pont-form:error=${this.handleError}
@@ -2655,7 +2655,7 @@
2655
2655
  <div id="dynamic-content"></div>
2656
2656
  </div>
2657
2657
  </pont-form>
2658
- `}};exports.PontKitLayout.reportedUnregistered=new Set;exports.PontKitLayout.UNREGISTERED_ELEMENT_EVENT="pont:unregistered-element";Tn([g()],exports.PontKitLayout.prototype,"spec",2);Tn([a({attribute:!1})],exports.PontKitLayout.prototype,"renderSpec",1);Tn([a({type:Boolean,attribute:"design-mode"}),Kt({context:Fh})],exports.PontKitLayout.prototype,"designMode",2);Tn([a({attribute:!1}),Kt({context:jo})],exports.PontKitLayout.prototype,"branding",2);exports.PontKitLayout=Tn([p("pont-layout")],exports.PontKitLayout);let xa=null;function sP(e){xa=e}function aP(){return xa||console.warn("SDK environment not initialized. Call initSdk({...}) before using <pont-provider>."),xa}function lP({pathname:e,search:t,env:r}){const n=new URLSearchParams(t),o=n.get("redirect_url")||r.signinRedirectUrl;return[r.signinUrl,r.signupUrl,r.invitationUrl].filter(s=>!!s).some(s=>e.includes(s))?o||"/":n.has("invite_token")&&o?o:null}function zt(...e){return Rp(Na(e))}function dP(e){return Object.entries(e).filter(([t,r])=>typeof r!="object"&&r!=null).map(([t,r])=>`${t}: ${r};`).join(" ")}function cP(e){document.documentElement.setAttribute("data-theme",e)}function pP(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&cP("light")}function hP(e,t){return e?e.includes("{{theme}}")?e.replace("{{theme}}",t):e:""}function Oa(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}const Dc="abcdefghijklmnopqrstuvwxyz0123456789",uP=6;function mP(e){let t="";for(let r=0;r<uP;r++)t+=Dc.charAt(Math.floor(Math.random()*Dc.length));return t}const _t=()=>mP();function ki(e){const t=document.createElement("pont-toast"),r=document.createElement("pont-toast-view-port");r.part="user-profile-toast",r.setAttribute("variant","destructive"),t.dataset.state="open";const n=document.createElement("div");n.className="pont-grid pont-gap-1";const o=document.createElement("pont-toast-title");o.textContent="Uh oh! Something went wrong.";const i=document.createElement("pont-toast-description");i.textContent=e,n.appendChild(o),n.appendChild(i),r.appendChild(n),t.appendChild(r),document.body.appendChild(t),setTimeout(()=>{t.dataset.state="open",r.dataset.state="open"},10),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t)},3.5*1e3)}async function vl(e,t=5e3){if(!e)return;let r;const n=new Promise(o=>{r=setTimeout(()=>o("timeout"),t)});try{await Promise.race([e.whenConfigured(),n])==="timeout"&&console.warn(`pontive: Auth.configure() has not been called after ${t}ms. Is this widget mounted inside <pont-provider>?`)}finally{clearTimeout(r)}}function gP(e){if(!(e!=null&&e.startsWith("data:image/svg+xml;base64,")))return null;try{const t=e.replace("data:image/svg+xml;base64,","");return atob(t)}catch(t){return console.error("Invalid base64 SVG:",t),null}}function fP(e){return/^https?:\/\//.test(e)||e!=null&&e.startsWith("data:image/svg+xml;base64,")?e:`data:image/svg+xml;base64,${e}`}function Oe(){var e;return(e=Y.getCurrentSession())==null?void 0:e.access_token}function Ra(e,t=!1){if(!e&&e!==0)return"N/A";const r=typeof e=="string"?new Date(e):new Date(t?e:e*1e3);if(isNaN(r.getTime()))return"Invalid Date";const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=Math.floor((o.getTime()-i.getTime())/(1e3*60*60*24));return s===0?"Today":s===1?"Yesterday":s>1&&s<=6?r.toLocaleDateString("en-US",{weekday:"long"}):r.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ia(e,t=!1){if(!e&&e!==0)return"N/A";const r=typeof e=="string"?new Date(e):new Date(t?e:e*1e3);return isNaN(r.getTime())?"Invalid Time":r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1})}function bl(e){if(!e)return"";const r=(e.includes("@")?e.split("@")[0]:e).split(/[\s._-]+/).filter(Boolean);return r.length===0?"":r.length===1?r[0].slice(0,2).toUpperCase():`${r[0][0]}${r[r.length-1][0]}`.toUpperCase()}function vP(e){return e instanceof Error&&"status"in e}function Mi(e,t){var r,n;return vP(e)?((n=(r=e.data)==null?void 0:r.error)==null?void 0:n.message)??e.message??t:e instanceof Error&&e.message||t}var bP=Object.defineProperty,yP=Object.getOwnPropertyDescriptor,br=(e,t,r,n)=>{for(var o=n>1?void 0:n?yP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&bP(t,r,o),o};exports.PontProvider=class extends f{constructor(){var t,r;super(...arguments),this.env=null,this.locales=(t=this.env)==null?void 0:t.locales,this.effectiveLocales=(r=this.env)==null?void 0:r.locales,this.auth={isAuthenticated:!1,resolved:!1},this.renderSpec=null,this.branding=Zr,this.autoRedirect=!0,this._handleLocaleEvent=n=>{var s;const i=(s=n.detail)==null?void 0:s.locales;i&&this.setLocale(i)},this.BRANDING_LINK_ID="pont-branding-css",this.REDIRECT_ATTEMPT_KEY="sb_auth_redirect_attempt",this.REDIRECT_BOUNCE_WINDOW_MS=1e4}createRenderRoot(){return this}setLocale(t){this.locales!==t&&(this.locales=t,this.dispatchLocaleChangedEvent(t))}dispatchLocaleChangedEvent(t){this.dispatchEvent(new CustomEvent("pont:locale-changed",{detail:{locales:t},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),pP(),document.addEventListener("pont:set-locales",this._handleLocaleEvent),(async()=>{for(;!this.env||!this.env.domain;)await new Promise(r=>setTimeout(r,20));this.updateLocaleAndAuth()})().catch(r=>console.error("Error initializing PontProvider:",r))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pont:set-locales",this._handleLocaleEvent)}getBrandingCssUrl(){if(!this.env)return null;let t;try{t=Rh(this.env.domain)}catch(r){return console.warn("Could not resolve the auth base URL for branding:",r),null}return`${t}/auth/v1/apps/${this.env.appId}/branding.css`}loadBrandingCss(t){const r=document.head.querySelector(`link#${this.BRANDING_LINK_ID}`);if(r&&r.remove(),!t)return;const n=document.createElement("link");n.id=this.BRANDING_LINK_ID,n.rel="stylesheet";const o=Date.now(),i=t.includes("?")?"&":"?";n.href=`${t}${i}v=${o}`,n.onerror=s=>{console.warn("Failed to load branding CSS:",t,s)},document.head.appendChild(n)}configureAuth(t){Y.configure({domain:t.domain,appId:t.appId,locales:this.effectiveLocales||this.locales||t.locales,signinUrl:t.signinUrl,signupUrl:t.signupUrl,invitationUrl:t.invitationUrl,onFlowStateChange:r=>{r.render_spec&&(this.renderSpec=r.render_spec)},onAuthenticated:()=>{this.refreshAuthState()}})}updateLocaleAndAuth(){if(!this.env)return;const t=this.locales||this.env.locales||"";this.effectiveLocales!==t&&(this.effectiveLocales=t,this.dispatchLocaleChangedEvent(t)),this.configureAuth(this.env),sP(this.env),this.restoreThenRefreshAuthState(),this.loadBrandingCss(this.getBrandingCssUrl())}updated(t){var r;super.updated(t),(t.has("env")||t.has("locales"))&&(r=this.env)!=null&&r.domain&&this.updateLocaleAndAuth(),t.has("auth")&&this.handleAuthStateChange()}handleAuthStateChange(){if(!this.autoRedirect||!this.auth.isAuthenticated||!this.env)return;const t=lP({pathname:window.location.pathname,search:window.location.search,env:this.env});if(t){if(this.wasBouncedBackFrom(t)){this.clearRedirectAttempt(),Y.invalidateSession(),this.refreshAuthState();return}this.recordRedirectAttempt(t),window.location.href=t}}recordRedirectAttempt(t){try{sessionStorage.setItem(this.REDIRECT_ATTEMPT_KEY,JSON.stringify({target:t,at:Date.now()}))}catch{}}clearRedirectAttempt(){try{sessionStorage.removeItem(this.REDIRECT_ATTEMPT_KEY)}catch{}}wasBouncedBackFrom(t){let r=null;try{r=sessionStorage.getItem(this.REDIRECT_ATTEMPT_KEY)}catch{return!1}if(!r||(this.clearRedirectAttempt(),this.getNavigationType()!=="navigate"))return!1;try{const n=JSON.parse(r);return n.target!==t||typeof n.at!="number"?!1:Date.now()-n.at<this.REDIRECT_BOUNCE_WINDOW_MS}catch{return!1}}getNavigationType(){try{const[t]=performance.getEntriesByType("navigation");return(t==null?void 0:t.type)??"navigate"}catch{return"navigate"}}refreshAuthState(){this.auth={isAuthenticated:Y.isAuthenticated(),resolved:!0},this.dispatchAuthChangedEvent(this.auth)}dispatchAuthChangedEvent(t){this.dispatchEvent(new CustomEvent("pont:auth-changed",{detail:{...t},bubbles:!0,composed:!0}))}async restoreThenRefreshAuthState(){try{await Y.restoreSession()}catch{}this.refreshAuthState()}};br([a({type:Object}),Kt({context:kh})],exports.PontProvider.prototype,"env",2);br([a({type:String})],exports.PontProvider.prototype,"locales",2);br([g(),Kt({context:Fi})],exports.PontProvider.prototype,"effectiveLocales",2);br([g(),Kt({context:Qr})],exports.PontProvider.prototype,"auth",2);br([g(),Kt({context:Li})],exports.PontProvider.prototype,"renderSpec",2);br([g(),Kt({context:jo})],exports.PontProvider.prototype,"branding",2);br([a({type:Boolean})],exports.PontProvider.prototype,"autoRedirect",2);exports.PontProvider=br([p("pont-provider")],exports.PontProvider);var _P=Object.defineProperty,wP=Object.getOwnPropertyDescriptor,Mh=(e,t,r,n)=>{for(var o=n>1?void 0:n?wP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&_P(t,r,o),o};exports.SignedOut=class extends f{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}updated(t){t.has("auth")&&this.tryRemoveFallback()}render(){var t;return!((t=this.auth)!=null&&t.resolved)||this.auth.isAuthenticated?l``:l` <div>${this._cachedChildren}</div> `}};Mh([tt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=Mh([p("pont-signed-out")],exports.SignedOut);var $P=Object.defineProperty,PP=Object.getOwnPropertyDescriptor,Nh=(e,t,r,n)=>{for(var o=n>1?void 0:n?PP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&$P(t,r,o),o};exports.SignedIn=class extends f{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}updated(t){t.has("auth")&&this.tryRemoveFallback()}render(){var t;return!((t=this.auth)!=null&&t.resolved)||!this.auth.isAuthenticated?l``:l` <div>${this._cachedChildren}</div> `}};Nh([tt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=Nh([p("pont-signed-in")],exports.SignedIn);var CP=Object.defineProperty,SP=Object.getOwnPropertyDescriptor,Ni=(e,t,r,n)=>{for(var o=n>1?void 0:n?SP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&CP(t,r,o),o};exports.PontAuthenticated=class extends f{constructor(){super(...arguments),this._cachedChildren=[],this._loadingChildren=[],this._captured=!1,this.redirectUrl="",this.env=null}createRenderRoot(){return this}connectedCallback(){if(super.connectedCallback(),this._captured)return;this._captured=!0;const t=Array.from(this.childNodes);t.forEach(r=>this.removeChild(r));for(const r of t)r instanceof Element&&r.getAttribute("slot")==="loading"?this._loadingChildren.push(r):this._cachedChildren.push(r)}render(){var t;return this.auth?this.auth.resolved?this.auth.isAuthenticated?l`${this._cachedChildren}`:(window.location.href=this.redirectUrl||((t=this.env)==null?void 0:t.signinUrl),h):l`${this._loadingChildren}`:h}};Ni([a({type:String})],exports.PontAuthenticated.prototype,"redirectUrl",2);Ni([tt({context:kh}),a({attribute:!1})],exports.PontAuthenticated.prototype,"env",2);Ni([tt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.PontAuthenticated.prototype,"auth",2);exports.PontAuthenticated=Ni([p("pont-authenticated")],exports.PontAuthenticated);var EP=Object.defineProperty,xP=Object.getOwnPropertyDescriptor,Bh=(e,t,r,n)=>{for(var o=n>1?void 0:n?xP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&EP(t,r,o),o};exports.AuthStateElement=class extends f{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}syncAuthChildren(){this.auth&&(this.auth.isAuthenticated?this.querySelectorAll("pont-signed-out").forEach(t=>t.remove()):this.querySelectorAll("pont-signed-in").forEach(t=>t.remove()))}updated(t){var r;t.has("auth")&&(r=this.auth)!=null&&r.resolved&&(this.syncAuthChildren(),this.tryRemoveFallback())}render(){var t;return(t=this.auth)!=null&&t.resolved?l` <div>${this._cachedChildren}</div> `:l``}};Bh([tt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.AuthStateElement.prototype,"auth",2);exports.AuthStateElement=Bh([p("pont-auth-state")],exports.AuthStateElement);var ue=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(ue||{}),sr=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(sr||{}),Ve=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(Ve||{}),Rr=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Rr||{}),ot=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(ot||{});function Bi(){return U`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2658
+ `}};exports.PontKitLayout.reportedUnregistered=new Set;exports.PontKitLayout.UNREGISTERED_ELEMENT_EVENT="pont:unregistered-element";Dn([g()],exports.PontKitLayout.prototype,"spec",2);Dn([a({attribute:!1})],exports.PontKitLayout.prototype,"renderSpec",1);Dn([a({type:Boolean,attribute:"design-mode"}),Kt({context:Fh})],exports.PontKitLayout.prototype,"designMode",2);Dn([a({attribute:!1}),Kt({context:jo})],exports.PontKitLayout.prototype,"branding",2);exports.PontKitLayout=Dn([p("pont-layout")],exports.PontKitLayout);let xa=null;function sP(e){xa=e}function aP(){return xa||console.warn("SDK environment not initialized. Call initSdk({...}) before using <pont-provider>."),xa}function lP({pathname:e,search:t,env:r}){const n=new URLSearchParams(t),o=n.get("redirect_url")||r.signinRedirectUrl;return[r.signinUrl,r.signupUrl,r.invitationUrl].filter(s=>!!s).some(s=>e.includes(s))?o||"/":n.has("invite_token")&&o?o:null}function zt(...e){return Rp(Na(e))}function dP(e){return Object.entries(e).filter(([t,r])=>typeof r!="object"&&r!=null).map(([t,r])=>`${t}: ${r};`).join(" ")}function cP(e){document.documentElement.setAttribute("data-theme",e)}function pP(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&cP("light")}function hP(e,t){return e?e.includes("{{theme}}")?e.replace("{{theme}}",t):e:""}function Oa(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}const Dc="abcdefghijklmnopqrstuvwxyz0123456789",uP=6;function mP(e){let t="";for(let r=0;r<uP;r++)t+=Dc.charAt(Math.floor(Math.random()*Dc.length));return t}const _t=()=>mP();function ki(e){const t=document.createElement("pont-toast"),r=document.createElement("pont-toast-view-port");r.part="user-profile-toast",r.setAttribute("variant","destructive"),t.dataset.state="open";const n=document.createElement("div");n.className="pont-grid pont-gap-1";const o=document.createElement("pont-toast-title");o.textContent="Uh oh! Something went wrong.";const i=document.createElement("pont-toast-description");i.textContent=e,n.appendChild(o),n.appendChild(i),r.appendChild(n),t.appendChild(r),document.body.appendChild(t),setTimeout(()=>{t.dataset.state="open",r.dataset.state="open"},10),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t)},3.5*1e3)}async function vl(e,t=5e3){if(!e)return;let r;const n=new Promise(o=>{r=setTimeout(()=>o("timeout"),t)});try{await Promise.race([e.whenConfigured(),n])==="timeout"&&console.warn(`pontive: Auth.configure() has not been called after ${t}ms. Is this widget mounted inside <pont-provider>?`)}finally{clearTimeout(r)}}function gP(e){if(!(e!=null&&e.startsWith("data:image/svg+xml;base64,")))return null;try{const t=e.replace("data:image/svg+xml;base64,","");return atob(t)}catch(t){return console.error("Invalid base64 SVG:",t),null}}function fP(e){return/^https?:\/\//.test(e)||e!=null&&e.startsWith("data:image/svg+xml;base64,")?e:`data:image/svg+xml;base64,${e}`}function Oe(){var e;return(e=Y.getCurrentSession())==null?void 0:e.access_token}function Ra(e,t=!1){if(!e&&e!==0)return"N/A";const r=typeof e=="string"?new Date(e):new Date(t?e:e*1e3);if(isNaN(r.getTime()))return"Invalid Date";const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=Math.floor((o.getTime()-i.getTime())/(1e3*60*60*24));return s===0?"Today":s===1?"Yesterday":s>1&&s<=6?r.toLocaleDateString("en-US",{weekday:"long"}):r.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ia(e,t=!1){if(!e&&e!==0)return"N/A";const r=typeof e=="string"?new Date(e):new Date(t?e:e*1e3);return isNaN(r.getTime())?"Invalid Time":r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1})}function bl(e){if(!e)return"";const r=(e.includes("@")?e.split("@")[0]:e).split(/[\s._-]+/).filter(Boolean);return r.length===0?"":r.length===1?r[0].slice(0,2).toUpperCase():`${r[0][0]}${r[r.length-1][0]}`.toUpperCase()}function vP(e){return e instanceof Error&&"status"in e}function Mi(e,t){var r,n;return vP(e)?((n=(r=e.data)==null?void 0:r.error)==null?void 0:n.message)??e.message??t:e instanceof Error&&e.message||t}var bP=Object.defineProperty,yP=Object.getOwnPropertyDescriptor,br=(e,t,r,n)=>{for(var o=n>1?void 0:n?yP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&bP(t,r,o),o};exports.PontProvider=class extends f{constructor(){var t,r;super(...arguments),this.env=null,this.locales=(t=this.env)==null?void 0:t.locales,this.effectiveLocales=(r=this.env)==null?void 0:r.locales,this.auth={isAuthenticated:!1,resolved:!1},this.renderSpec=null,this.branding=Zr,this.autoRedirect=!0,this._handleLocaleEvent=n=>{var s;const i=(s=n.detail)==null?void 0:s.locales;i&&this.setLocale(i)},this.BRANDING_LINK_ID="pont-branding-css",this.REDIRECT_ATTEMPT_KEY="sb_auth_redirect_attempt",this.REDIRECT_BOUNCE_WINDOW_MS=1e4}createRenderRoot(){return this}setLocale(t){this.locales!==t&&(this.locales=t,this.dispatchLocaleChangedEvent(t))}dispatchLocaleChangedEvent(t){this.dispatchEvent(new CustomEvent("pont:locale-changed",{detail:{locales:t},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),pP(),document.addEventListener("pont:set-locales",this._handleLocaleEvent),(async()=>{for(;!this.env||!this.env.domain;)await new Promise(r=>setTimeout(r,20));this.updateLocaleAndAuth()})().catch(r=>console.error("Error initializing PontProvider:",r))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pont:set-locales",this._handleLocaleEvent)}getBrandingCssUrl(){if(!this.env)return null;let t;try{t=Rh(this.env.domain)}catch(r){return console.warn("Could not resolve the auth base URL for branding:",r),null}return`${t}/auth/v1/apps/${this.env.appId}/branding.css`}loadBrandingCss(t){const r=document.head.querySelector(`link#${this.BRANDING_LINK_ID}`);if(r&&r.remove(),!t)return;const n=document.createElement("link");n.id=this.BRANDING_LINK_ID,n.rel="stylesheet";const o=Date.now(),i=t.includes("?")?"&":"?";n.href=`${t}${i}v=${o}`,n.onerror=s=>{console.warn("Failed to load branding CSS:",t,s)},document.head.appendChild(n)}configureAuth(t){Y.configure({domain:t.domain,appId:t.appId,locales:this.effectiveLocales||this.locales||t.locales,signinUrl:t.signinUrl,signupUrl:t.signupUrl,invitationUrl:t.invitationUrl,onFlowStateChange:r=>{r.render_spec&&(this.renderSpec=r.render_spec)},onAuthenticated:()=>{this.refreshAuthState()}})}updateLocaleAndAuth(){if(!this.env)return;const t=this.locales||this.env.locales||"";this.effectiveLocales!==t&&(this.effectiveLocales=t,this.dispatchLocaleChangedEvent(t)),this.configureAuth(this.env),sP(this.env),this.restoreThenRefreshAuthState(),this.loadBrandingCss(this.getBrandingCssUrl())}updated(t){var r;super.updated(t),(t.has("env")||t.has("locales"))&&(r=this.env)!=null&&r.domain&&this.updateLocaleAndAuth(),t.has("auth")&&this.handleAuthStateChange()}handleAuthStateChange(){if(!this.autoRedirect||!this.auth.isAuthenticated||!this.env)return;const t=lP({pathname:window.location.pathname,search:window.location.search,env:this.env});if(t){if(this.wasBouncedBackFrom(t)){this.clearRedirectAttempt(),Y.invalidateSession(),this.refreshAuthState();return}this.recordRedirectAttempt(t),window.location.href=t}}recordRedirectAttempt(t){try{sessionStorage.setItem(this.REDIRECT_ATTEMPT_KEY,JSON.stringify({target:t,at:Date.now()}))}catch{}}clearRedirectAttempt(){try{sessionStorage.removeItem(this.REDIRECT_ATTEMPT_KEY)}catch{}}wasBouncedBackFrom(t){let r=null;try{r=sessionStorage.getItem(this.REDIRECT_ATTEMPT_KEY)}catch{return!1}if(!r||(this.clearRedirectAttempt(),this.getNavigationType()!=="navigate"))return!1;try{const n=JSON.parse(r);return n.target!==t||typeof n.at!="number"?!1:Date.now()-n.at<this.REDIRECT_BOUNCE_WINDOW_MS}catch{return!1}}getNavigationType(){try{const[t]=performance.getEntriesByType("navigation");return(t==null?void 0:t.type)??"navigate"}catch{return"navigate"}}refreshAuthState(){this.auth={isAuthenticated:Y.isAuthenticated(),resolved:!0},this.dispatchAuthChangedEvent(this.auth)}dispatchAuthChangedEvent(t){this.dispatchEvent(new CustomEvent("pont:auth-changed",{detail:{...t},bubbles:!0,composed:!0}))}async restoreThenRefreshAuthState(){try{await Y.restoreSession()}catch{}this.refreshAuthState()}};br([a({type:Object}),Kt({context:kh})],exports.PontProvider.prototype,"env",2);br([a({type:String})],exports.PontProvider.prototype,"locales",2);br([g(),Kt({context:Fi})],exports.PontProvider.prototype,"effectiveLocales",2);br([g(),Kt({context:Qr})],exports.PontProvider.prototype,"auth",2);br([g(),Kt({context:Li})],exports.PontProvider.prototype,"renderSpec",2);br([g(),Kt({context:jo})],exports.PontProvider.prototype,"branding",2);br([a({type:Boolean})],exports.PontProvider.prototype,"autoRedirect",2);exports.PontProvider=br([p("pont-provider")],exports.PontProvider);var _P=Object.defineProperty,wP=Object.getOwnPropertyDescriptor,Mh=(e,t,r,n)=>{for(var o=n>1?void 0:n?wP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&_P(t,r,o),o};exports.SignedOut=class extends f{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}updated(t){t.has("auth")&&this.tryRemoveFallback()}render(){var t;return!((t=this.auth)!=null&&t.resolved)||this.auth.isAuthenticated?l``:l` <div>${this._cachedChildren}</div> `}};Mh([rt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=Mh([p("pont-signed-out")],exports.SignedOut);var $P=Object.defineProperty,PP=Object.getOwnPropertyDescriptor,Nh=(e,t,r,n)=>{for(var o=n>1?void 0:n?PP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&$P(t,r,o),o};exports.SignedIn=class extends f{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}updated(t){t.has("auth")&&this.tryRemoveFallback()}render(){var t;return!((t=this.auth)!=null&&t.resolved)||!this.auth.isAuthenticated?l``:l` <div>${this._cachedChildren}</div> `}};Nh([rt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=Nh([p("pont-signed-in")],exports.SignedIn);var CP=Object.defineProperty,SP=Object.getOwnPropertyDescriptor,Ni=(e,t,r,n)=>{for(var o=n>1?void 0:n?SP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&CP(t,r,o),o};exports.PontAuthenticated=class extends f{constructor(){super(...arguments),this._cachedChildren=[],this._loadingChildren=[],this._captured=!1,this.redirectUrl="",this.env=null}createRenderRoot(){return this}connectedCallback(){if(super.connectedCallback(),this._captured)return;this._captured=!0;const t=Array.from(this.childNodes);t.forEach(r=>this.removeChild(r));for(const r of t)r instanceof Element&&r.getAttribute("slot")==="loading"?this._loadingChildren.push(r):this._cachedChildren.push(r)}render(){var t;return this.auth?this.auth.resolved?this.auth.isAuthenticated?l`${this._cachedChildren}`:(window.location.href=this.redirectUrl||((t=this.env)==null?void 0:t.signinUrl),h):l`${this._loadingChildren}`:h}};Ni([a({type:String})],exports.PontAuthenticated.prototype,"redirectUrl",2);Ni([rt({context:kh}),a({attribute:!1})],exports.PontAuthenticated.prototype,"env",2);Ni([rt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.PontAuthenticated.prototype,"auth",2);exports.PontAuthenticated=Ni([p("pont-authenticated")],exports.PontAuthenticated);var EP=Object.defineProperty,xP=Object.getOwnPropertyDescriptor,Bh=(e,t,r,n)=>{for(var o=n>1?void 0:n?xP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&EP(t,r,o),o};exports.AuthStateElement=class extends f{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}syncAuthChildren(){this.auth&&(this.auth.isAuthenticated?this.querySelectorAll("pont-signed-out").forEach(t=>t.remove()):this.querySelectorAll("pont-signed-in").forEach(t=>t.remove()))}updated(t){var r;t.has("auth")&&(r=this.auth)!=null&&r.resolved&&(this.syncAuthChildren(),this.tryRemoveFallback())}render(){var t;return(t=this.auth)!=null&&t.resolved?l` <div>${this._cachedChildren}</div> `:l``}};Bh([rt({context:Qr,subscribe:!0}),a({attribute:!1})],exports.AuthStateElement.prototype,"auth",2);exports.AuthStateElement=Bh([p("pont-auth-state")],exports.AuthStateElement);var ue=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(ue||{}),sr=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(sr||{}),Ve=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(Ve||{}),Rr=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Rr||{}),nt=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(nt||{});function Bi(){return U`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2659
2659
  <path d="M6.66501 1.32926H1.99834C1.64472 1.32926 1.30558 1.46974 1.05553 1.71979C0.805484 1.96984 0.665009 2.30898 0.665009 2.6626V11.9959C0.665009 12.3496 0.805484 12.6887 1.05553 12.9387C1.30558 13.1888 1.64472 13.3293 1.99834 13.3293H11.3317C11.6853 13.3293 12.0244 13.1888 12.2745 12.9387C12.5245 12.6887 12.665 12.3496 12.665 11.9959V7.32926M10.9151 1.07925C11.1803 0.814036 11.54 0.665039 11.9151 0.665039C12.2901 0.665039 12.6499 0.814036 12.9151 1.07925C13.1803 1.34447 13.3293 1.70418 13.3293 2.07925C13.3293 2.45433 13.1803 2.81404 12.9151 3.07925L6.90641 9.08859C6.7481 9.24675 6.55254 9.36253 6.33774 9.42525L4.4224 9.98525C4.36504 10.002 4.30423 10.003 4.24634 9.98816C4.18846 9.97333 4.13562 9.94321 4.09337 9.90096C4.05112 9.8587 4.021 9.80587 4.00617 9.74798C3.99134 9.69009 3.99234 9.62929 4.00907 9.57192L4.56907 7.65659C4.63209 7.44195 4.74809 7.24662 4.9064 7.08859L10.9151 1.07925Z" stroke="currentColor" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/>
2660
2660
  </svg>
2661
2661
  `}function Nt(){return U`
@@ -2736,7 +2736,7 @@
2736
2736
  ${this._cachedChildren}
2737
2737
  </div>
2738
2738
  </div>
2739
- `:h}};Ui([a({type:Boolean})],exports.PontModal.prototype,"isOpen",2);Ui([a({type:Boolean})],exports.PontModal.prototype,"showClose",2);Ui([a({type:String})],exports.PontModal.prototype,"layoutClass",2);exports.PontModal=Ui([p("pont-modal")],exports.PontModal);const ji="pont-account-settings-card-header-container",fn="pont-account-settings-card-title",ye="pont-account-settings-input-label pont-shrink-0 md:pont-block",qi="pont-account-settings-card-container",vn=()=>l`<pont-typography-muted>Not Added</pont-typography-muted>`;class NP extends Error{constructor(t,r,n){super(t),this.name="ApiError",this.status=r,this.data=n}}const BP="/mgmt/v1";async function Re(e,t={}){var v,b;const{token:r,headers:n,...o}=t,i=aP(),s=((v=i==null?void 0:i.apiBaseUrl)==null?void 0:v.replace(/\/+$/,""))??"",d={"Content-Type":"application/json",...i==null?void 0:i.headers,...r?{Authorization:`Bearer ${r}`}:{}};n&&(n instanceof Headers?n.forEach((w,_)=>{d[_]=w}):Array.isArray(n)?n.forEach(([w,_])=>{d[w]=_}):Object.assign(d,n));const c=await fetch(`${s}${BP}${e}`,{...o,headers:d});let m=null;try{m=await c.json()}catch{}if(!c.ok){const w=(b=m==null?void 0:m.error)==null?void 0:b.message;throw new NP(w||c.statusText||"Something went wrong",c.status,m)}return m}async function UP(){return Re("/me",{method:"GET",token:Oe()})}async function zi(e){return Re("/me",{method:"PATCH",body:JSON.stringify(e),token:Oe()})}async function jP(e,t){var i,s;const r=new URLSearchParams;t&&(t.search&&r.append("search",t.search),t.page!==void 0&&r.append("page",t.page.toString()),t.limit!==void 0&&r.append("limit",t.limit.toString()),t.order&&r.append("order",t.order),(i=t.user_ids)!=null&&i.length&&t.user_ids.forEach(d=>r.append("user_ids",d)),(s=t.emails)!=null&&s.length&&t.emails.forEach(d=>r.append("emails",d)),t.roles&&r.append("roles",t.roles));const n=r.toString(),o=`/organizations/${encodeURIComponent(e)}/members${n?`?${n}`:""}`;return Re(o,{method:"GET",token:Oe()})}async function qP(e,t,r){const n=`/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}/roles`;await Re(n,{method:"PUT",token:Oe(),headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}async function zP(e,t){const r=`/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`;await Re(r,{method:"DELETE",token:Oe(),headers:{"Content-Type":"application/json"}})}async function VP(e,t){const r=`/organizations/${encodeURIComponent(e)}/invitations`;return Re(r,{method:"POST",token:Oe(),headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function HP(e,t){const r=`/organizations/${encodeURIComponent(e)}/invitations/${encodeURIComponent(t)}/resend`;return Re(r,{method:"POST",token:Oe(),headers:{"Content-Type":"application/json"}})}async function GP(e,t){const r=`/organizations/${encodeURIComponent(e)}/invitations/${encodeURIComponent(t)}/cancel`;return Re(r,{method:"POST",token:Oe(),headers:{"Content-Type":"application/json"}})}async function KP(e,t){var i;const r=new URLSearchParams;t&&(t.search&&r.append("search",t.search),t.status&&r.append("status",t.status),t.expired!==void 0&&r.append("expired",t.expired.toString()),t.invited_by&&r.append("invited_by",t.invited_by),t.page!==void 0&&r.append("page",t.page.toString()),t.limit!==void 0&&r.append("limit",t.limit.toString()),t.order&&r.append("order",t.order),(i=t.invitee_emails)!=null&&i.length&&t.invitee_emails.forEach(s=>r.append("invitee_emails",s)),t.roles&&r.append("roles",t.roles));const n=r.toString(),o=`/organizations/${encodeURIComponent(e)}/invitations${n?`?${n}`:""}`;return Re(o,{method:"GET",token:Oe()})}async function yl(e){const t=new URLSearchParams;e&&(e.type&&t.append("type",e.type),e.name&&t.append("name",e.name),e.resource_type&&t.append("resource_type",e.resource_type),e.resource_id&&t.append("resource_id",e.resource_id),e.include_instance_scoped!==void 0&&t.append("include_instance_scoped",e.include_instance_scoped.toString()),e.permission&&t.append("permission",e.permission),e.page!==void 0&&t.append("page",e.page.toString()),e.limit!==void 0&&t.append("limit",e.limit.toString()),e.order&&t.append("order",e.order));const r=t.toString(),n=`/roles${r?`?${r}`:""}`;return Re(n,{method:"GET",token:Oe()})}var WP=Object.defineProperty,YP=Object.getOwnPropertyDescriptor,Et=(e,t,r,n)=>{for(var o=n>1?void 0:n?YP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&WP(t,r,o),o};exports.PontAccountInfo=class extends f{constructor(){super(...arguments),this.showAvatarMenu=!1,this.showIcons=!0,this.content=null,this.layout=ot.ROW,this.isUploadingImage=!1,this.isEditingAvatarMobile=!1,this.isMobile=!1,this._isAvatarEditorOpen=!1,this._popoverObserver=null,this._intentionalClose=!1,this.avatarDraft="",this._committedAvatar="",this._onMobileChange=t=>{this.isMobile=t.matches,t.matches||(this.isEditingAvatarMobile=!1)},this.handleAvatarInput=t=>{this.avatarDraft=t.target.value,this.account={...this.account,avatar:this.avatarDraft}},this.handleSaveAvatar=async()=>{if(!this.isUploadingImage){this.isUploadingImage=!0;try{const t=await zi({picture:this.avatarDraft});this.account={...this.account,avatar:t.picture??""},this._committedAvatar=this.account.avatar,this.avatarDraft=this.account.avatar,this._isAvatarEditorOpen=!1,this.isMobile?this.isEditingAvatarMobile=!1:(this._intentionalClose=!0,this.querySelector("pont-popover-content").state="closed")}catch(t){this.account={...this.account,avatar:this._committedAvatar},this.avatarDraft=this._committedAvatar,this._isAvatarEditorOpen=!1,ki(Mi(t,"Failed to update your photo.")),this.isMobile?this.isEditingAvatarMobile=!1:(this._intentionalClose=!0,this.querySelector("pont-popover-content").state="closed")}finally{this.isUploadingImage=!1}}}}firstUpdated(){this._setupPopoverObserver()}_setupPopoverObserver(){const t=this.querySelector("pont-popover-content");if(!t)return;const r=new MutationObserver(o=>{for(const i of o)if(i.type==="childList"){const s=t.firstElementChild;if(s&&s.hasAttribute("data-state")){this._attachAttributeObserver(s),r.disconnect();break}}});r.observe(t,{childList:!0,subtree:!1});const n=t.firstElementChild;n&&n.hasAttribute("data-state")&&(this._attachAttributeObserver(n),r.disconnect())}_attachAttributeObserver(t){this._popoverObserver&&this._popoverObserver.disconnect(),this._popoverObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"&&n.attributeName==="data-state"){const o=t.getAttribute("data-state");o==="open"?this.openAvatarEditor():o==="closed"&&(this._intentionalClose?this._intentionalClose=!1:(this.account={...this.account,avatar:this._committedAvatar},this.avatarDraft=this._committedAvatar,this._isAvatarEditorOpen=!1))}}),this._popoverObserver.observe(t,{attributes:!0})}updated(t){t.has("account")&&this.account.avatar&&!this._isAvatarEditorOpen&&(this.avatarDraft=this.account.avatar,this._committedAvatar=this.account.avatar)}connectedCallback(){super.connectedCallback(),this._mobileQuery=window.matchMedia("(max-width: 767px)"),this.isMobile=this._mobileQuery.matches,this._mobileQuery.addEventListener("change",this._onMobileChange)}disconnectedCallback(){super.disconnectedCallback(),this._mobileQuery.removeEventListener("change",this._onMobileChange),this._popoverObserver&&(this._popoverObserver.disconnect(),this._popoverObserver=null)}openAvatarEditor(){this._isAvatarEditorOpen=!0,this._committedAvatar=this.account.avatar,this.avatarDraft=this.account.avatar}resetAvatarDraft(){this.avatarDraft=this.account.avatar}handleCancelAvatar(){this.isUploadingImage||(this.account={...this.account,avatar:this._committedAvatar},this.avatarDraft=this._committedAvatar,this._isAvatarEditorOpen=!1,this.isMobile?this.isEditingAvatarMobile=!1:(this._intentionalClose=!0,this.querySelector("pont-popover-content").state="closed"))}renderRow(t,r){const n=this.layout===ot.COLUMN;return l`
2739
+ `:h}};Ui([a({type:Boolean})],exports.PontModal.prototype,"isOpen",2);Ui([a({type:Boolean})],exports.PontModal.prototype,"showClose",2);Ui([a({type:String})],exports.PontModal.prototype,"layoutClass",2);exports.PontModal=Ui([p("pont-modal")],exports.PontModal);const ji="pont-account-settings-card-header-container",vn="pont-account-settings-card-title",ye="pont-account-settings-input-label pont-shrink-0 md:pont-block",qi="pont-account-settings-card-container",bn=()=>l`<pont-typography-muted>Not Added</pont-typography-muted>`;class NP extends Error{constructor(t,r,n){super(t),this.name="ApiError",this.status=r,this.data=n}}const BP="/mgmt/v1";async function Re(e,t={}){var v,b;const{token:r,headers:n,...o}=t,i=aP(),s=((v=i==null?void 0:i.apiBaseUrl)==null?void 0:v.replace(/\/+$/,""))??"",d={"Content-Type":"application/json",...i==null?void 0:i.headers,...r?{Authorization:`Bearer ${r}`}:{}};n&&(n instanceof Headers?n.forEach((w,_)=>{d[_]=w}):Array.isArray(n)?n.forEach(([w,_])=>{d[w]=_}):Object.assign(d,n));const c=await fetch(`${s}${BP}${e}`,{...o,headers:d});let m=null;try{m=await c.json()}catch{}if(!c.ok){const w=(b=m==null?void 0:m.error)==null?void 0:b.message;throw new NP(w||c.statusText||"Something went wrong",c.status,m)}return m}async function UP(){return Re("/me",{method:"GET",token:Oe()})}async function zi(e){return Re("/me",{method:"PATCH",body:JSON.stringify(e),token:Oe()})}async function jP(e,t){var i,s;const r=new URLSearchParams;t&&(t.search&&r.append("search",t.search),t.page!==void 0&&r.append("page",t.page.toString()),t.limit!==void 0&&r.append("limit",t.limit.toString()),t.order&&r.append("order",t.order),(i=t.user_ids)!=null&&i.length&&t.user_ids.forEach(d=>r.append("user_ids",d)),(s=t.emails)!=null&&s.length&&t.emails.forEach(d=>r.append("emails",d)),t.roles&&r.append("roles",t.roles));const n=r.toString(),o=`/organizations/${encodeURIComponent(e)}/members${n?`?${n}`:""}`;return Re(o,{method:"GET",token:Oe()})}async function qP(e,t,r){const n=`/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}/roles`;await Re(n,{method:"PUT",token:Oe(),headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}async function zP(e,t){const r=`/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`;await Re(r,{method:"DELETE",token:Oe(),headers:{"Content-Type":"application/json"}})}async function VP(e,t){const r=`/organizations/${encodeURIComponent(e)}/invitations`;return Re(r,{method:"POST",token:Oe(),headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}async function HP(e,t){const r=`/organizations/${encodeURIComponent(e)}/invitations/${encodeURIComponent(t)}/resend`;return Re(r,{method:"POST",token:Oe(),headers:{"Content-Type":"application/json"}})}async function GP(e,t){const r=`/organizations/${encodeURIComponent(e)}/invitations/${encodeURIComponent(t)}/cancel`;return Re(r,{method:"POST",token:Oe(),headers:{"Content-Type":"application/json"}})}async function KP(e,t){var i;const r=new URLSearchParams;t&&(t.search&&r.append("search",t.search),t.status&&r.append("status",t.status),t.expired!==void 0&&r.append("expired",t.expired.toString()),t.invited_by&&r.append("invited_by",t.invited_by),t.page!==void 0&&r.append("page",t.page.toString()),t.limit!==void 0&&r.append("limit",t.limit.toString()),t.order&&r.append("order",t.order),(i=t.invitee_emails)!=null&&i.length&&t.invitee_emails.forEach(s=>r.append("invitee_emails",s)),t.roles&&r.append("roles",t.roles));const n=r.toString(),o=`/organizations/${encodeURIComponent(e)}/invitations${n?`?${n}`:""}`;return Re(o,{method:"GET",token:Oe()})}async function yl(e){const t=new URLSearchParams;e&&(e.type&&t.append("type",e.type),e.name&&t.append("name",e.name),e.resource_type&&t.append("resource_type",e.resource_type),e.resource_id&&t.append("resource_id",e.resource_id),e.include_instance_scoped!==void 0&&t.append("include_instance_scoped",e.include_instance_scoped.toString()),e.permission&&t.append("permission",e.permission),e.page!==void 0&&t.append("page",e.page.toString()),e.limit!==void 0&&t.append("limit",e.limit.toString()),e.order&&t.append("order",e.order));const r=t.toString(),n=`/roles${r?`?${r}`:""}`;return Re(n,{method:"GET",token:Oe()})}var WP=Object.defineProperty,YP=Object.getOwnPropertyDescriptor,Et=(e,t,r,n)=>{for(var o=n>1?void 0:n?YP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&WP(t,r,o),o};exports.PontAccountInfo=class extends f{constructor(){super(...arguments),this.showAvatarMenu=!1,this.showIcons=!0,this.content=null,this.layout=nt.ROW,this.isUploadingImage=!1,this.isEditingAvatarMobile=!1,this.isMobile=!1,this._isAvatarEditorOpen=!1,this._popoverObserver=null,this._intentionalClose=!1,this.avatarDraft="",this._committedAvatar="",this._onMobileChange=t=>{this.isMobile=t.matches,t.matches||(this.isEditingAvatarMobile=!1)},this.handleAvatarInput=t=>{this.avatarDraft=t.target.value,this.account={...this.account,avatar:this.avatarDraft}},this.handleSaveAvatar=async()=>{if(!this.isUploadingImage){this.isUploadingImage=!0;try{const t=await zi({picture:this.avatarDraft});this.account={...this.account,avatar:t.picture??""},this._committedAvatar=this.account.avatar,this.avatarDraft=this.account.avatar,this._isAvatarEditorOpen=!1,this.isMobile?this.isEditingAvatarMobile=!1:(this._intentionalClose=!0,this.querySelector("pont-popover-content").state="closed")}catch(t){this.account={...this.account,avatar:this._committedAvatar},this.avatarDraft=this._committedAvatar,this._isAvatarEditorOpen=!1,ki(Mi(t,"Failed to update your photo.")),this.isMobile?this.isEditingAvatarMobile=!1:(this._intentionalClose=!0,this.querySelector("pont-popover-content").state="closed")}finally{this.isUploadingImage=!1}}}}firstUpdated(){this._setupPopoverObserver()}_setupPopoverObserver(){const t=this.querySelector("pont-popover-content");if(!t)return;const r=new MutationObserver(o=>{for(const i of o)if(i.type==="childList"){const s=t.firstElementChild;if(s&&s.hasAttribute("data-state")){this._attachAttributeObserver(s),r.disconnect();break}}});r.observe(t,{childList:!0,subtree:!1});const n=t.firstElementChild;n&&n.hasAttribute("data-state")&&(this._attachAttributeObserver(n),r.disconnect())}_attachAttributeObserver(t){this._popoverObserver&&this._popoverObserver.disconnect(),this._popoverObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"&&n.attributeName==="data-state"){const o=t.getAttribute("data-state");o==="open"?this.openAvatarEditor():o==="closed"&&(this._intentionalClose?this._intentionalClose=!1:(this.account={...this.account,avatar:this._committedAvatar},this.avatarDraft=this._committedAvatar,this._isAvatarEditorOpen=!1))}}),this._popoverObserver.observe(t,{attributes:!0})}updated(t){t.has("account")&&this.account.avatar&&!this._isAvatarEditorOpen&&(this.avatarDraft=this.account.avatar,this._committedAvatar=this.account.avatar)}connectedCallback(){super.connectedCallback(),this._mobileQuery=window.matchMedia("(max-width: 767px)"),this.isMobile=this._mobileQuery.matches,this._mobileQuery.addEventListener("change",this._onMobileChange)}disconnectedCallback(){super.disconnectedCallback(),this._mobileQuery.removeEventListener("change",this._onMobileChange),this._popoverObserver&&(this._popoverObserver.disconnect(),this._popoverObserver=null)}openAvatarEditor(){this._isAvatarEditorOpen=!0,this._committedAvatar=this.account.avatar,this.avatarDraft=this.account.avatar}resetAvatarDraft(){this.avatarDraft=this.account.avatar}handleCancelAvatar(){this.isUploadingImage||(this.account={...this.account,avatar:this._committedAvatar},this.avatarDraft=this._committedAvatar,this._isAvatarEditorOpen=!1,this.isMobile?this.isEditingAvatarMobile=!1:(this._intentionalClose=!0,this.querySelector("pont-popover-content").state="closed"))}renderRow(t,r){const n=this.layout===nt.COLUMN;return l`
2740
2740
  <div
2741
2741
  class=${zt("pont-account-settings-display-row",n?"":"pont-account-settings-account-grid")}
2742
2742
  >
@@ -2747,7 +2747,7 @@
2747
2747
  <div class="pont-flex-1 pont-min-w-0">${r}</div>
2748
2748
  `:l`
2749
2749
  <div
2750
- class=${this.layout===ot.ROW?"pont-flex pont-w-full pont-items-center":""}
2750
+ class=${this.layout===nt.ROW?"pont-flex pont-w-full pont-items-center":""}
2751
2751
  >
2752
2752
  <div
2753
2753
  part="label"
@@ -2761,7 +2761,7 @@
2761
2761
  `}
2762
2762
  </div>
2763
2763
  `}renderDisplayRow(t,r){return this.renderRow(t,l`
2764
- ${r?l`<pont-typography-p>${r}</pont-typography-p>`:vn()}
2764
+ ${r?l`<pont-typography-p>${r}</pont-typography-p>`:bn()}
2765
2765
  `)}renderEmailSection(){return this.renderDisplayRow("Email",this.account.email)}renderPhoneSection(){return this.renderDisplayRow("Phone number",this.account.phone)}renderAvatarFooter(){return l`
2766
2766
  <pont-card-footer>
2767
2767
  <div class="pont-account-settings-card-actions">
@@ -2785,7 +2785,7 @@
2785
2785
  `}renderAvatarFormBody(){return l`
2786
2786
  <div class="pont-flex pont-flex-col pont-gap-6">
2787
2787
  <div class="pont-account-settings-form-body">
2788
- <div class=${fn}>
2788
+ <div class=${vn}>
2789
2789
  <span>Avatar</span>
2790
2790
  </div>
2791
2791
  <div class="pont-flex pont-gap-2 pont-flex-col">
@@ -2848,7 +2848,7 @@
2848
2848
  <pont-card-header>
2849
2849
  <div class=${ji}>
2850
2850
  <pont-card-title>
2851
- <div class=${fn}>
2851
+ <div class=${vn}>
2852
2852
  ${(t=this.content)==null?void 0:t.icon}
2853
2853
  <span>${((r=this.content)==null?void 0:r.title)||"Login Info"}</span>
2854
2854
  </div>
@@ -2867,7 +2867,7 @@
2867
2867
  <pont-card-content> ${this.renderAccountDetails()} </pont-card-content>
2868
2868
  </div>
2869
2869
  </pont-card>
2870
- `}createRenderRoot(){return this}};Et([a({type:Object})],exports.PontAccountInfo.prototype,"account",2);Et([a({type:Boolean})],exports.PontAccountInfo.prototype,"showAvatarMenu",2);Et([a({attribute:!1})],exports.PontAccountInfo.prototype,"toggleAvatarMenu",2);Et([a({attribute:!1})],exports.PontAccountInfo.prototype,"onAvatarChange",2);Et([a({attribute:!1})],exports.PontAccountInfo.prototype,"onAvatarRemove",2);Et([a({type:Boolean})],exports.PontAccountInfo.prototype,"showIcons",2);Et([a({type:Object})],exports.PontAccountInfo.prototype,"content",2);Et([a({type:String})],exports.PontAccountInfo.prototype,"layout",2);Et([g()],exports.PontAccountInfo.prototype,"isUploadingImage",2);Et([g()],exports.PontAccountInfo.prototype,"isEditingAvatarMobile",2);Et([g()],exports.PontAccountInfo.prototype,"isMobile",2);Et([g()],exports.PontAccountInfo.prototype,"_isAvatarEditorOpen",2);Et([g()],exports.PontAccountInfo.prototype,"avatarDraft",2);Et([tt({context:An,subscribe:!0})],exports.PontAccountInfo.prototype,"userContextValue",2);exports.PontAccountInfo=Et([p("pont-account-info")],exports.PontAccountInfo);var QP=Object.defineProperty,ZP=Object.getOwnPropertyDescriptor,Ie=(e,t,r,n)=>{for(var o=n>1?void 0:n?ZP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&QP(t,r,o),o};const Fc=100;exports.PontLocationInfo=class extends f{constructor(){super(...arguments),this.showIcons=!0,this.layout=ot.ROW,this.content=null,this.isEditing=!1,this.isSaving=!1,this.formData={location:"",zoneInfo:""},this.errors={},this.handleSave=async()=>{var t,r;if(!this.isSaving&&this.validate()){this.isSaving=!0;try{const n=await zi({address:{...(t=this.userContextValue.user)==null?void 0:t.address,locality:this.formData.location},zoneinfo:this.formData.zoneInfo});this.locationInfo={location:((r=n.address)==null?void 0:r.locality)??"",zoneInfo:n.zoneinfo??""},this.isEditing=!1}catch(n){console.error("Failed to update location info",n),ki(Mi(n,"Failed to update location information. Please try again."))}finally{this.isSaving=!1}}}}createRenderRoot(){return this}handleEdit(){this.isSaving||(this.formData={...this.locationInfo},this.errors={},this.isEditing=!0)}handleCancel(){this.isSaving||(this.isEditing=!1,this.errors={})}updateField(t,r){this.formData={...this.formData,[t]:r}}validate(){const t={},{location:r,zoneInfo:n}=this.formData;return r.length>Fc&&(t.location=`Location cannot be longer than ${Fc} characters.`),n&&!this.timeZones.includes(n)&&(t.zoneInfo="Choose a timezone from the list."),this.errors=t,Object.keys(t).length===0}fieldId(t){return`pont-location-${t}`}get timeZones(){var r;try{const n=(r=Intl.supportedValuesOf)==null?void 0:r.call(Intl,"timeZone");if(n!=null&&n.length)return n}catch{}const t=Intl.DateTimeFormat().resolvedOptions().timeZone;return[...new Set([t,"UTC"].filter(Boolean))]}renderControl(t){const r=!!this.errors[t];return t==="zoneInfo"?l`
2870
+ `}createRenderRoot(){return this}};Et([a({type:Object})],exports.PontAccountInfo.prototype,"account",2);Et([a({type:Boolean})],exports.PontAccountInfo.prototype,"showAvatarMenu",2);Et([a({attribute:!1})],exports.PontAccountInfo.prototype,"toggleAvatarMenu",2);Et([a({attribute:!1})],exports.PontAccountInfo.prototype,"onAvatarChange",2);Et([a({attribute:!1})],exports.PontAccountInfo.prototype,"onAvatarRemove",2);Et([a({type:Boolean})],exports.PontAccountInfo.prototype,"showIcons",2);Et([a({type:Object})],exports.PontAccountInfo.prototype,"content",2);Et([a({type:String})],exports.PontAccountInfo.prototype,"layout",2);Et([g()],exports.PontAccountInfo.prototype,"isUploadingImage",2);Et([g()],exports.PontAccountInfo.prototype,"isEditingAvatarMobile",2);Et([g()],exports.PontAccountInfo.prototype,"isMobile",2);Et([g()],exports.PontAccountInfo.prototype,"_isAvatarEditorOpen",2);Et([g()],exports.PontAccountInfo.prototype,"avatarDraft",2);Et([rt({context:Tn,subscribe:!0})],exports.PontAccountInfo.prototype,"userContextValue",2);exports.PontAccountInfo=Et([p("pont-account-info")],exports.PontAccountInfo);var QP=Object.defineProperty,ZP=Object.getOwnPropertyDescriptor,Ie=(e,t,r,n)=>{for(var o=n>1?void 0:n?ZP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&QP(t,r,o),o};const Fc=100;exports.PontLocationInfo=class extends f{constructor(){super(...arguments),this.showIcons=!0,this.layout=nt.ROW,this.content=null,this.isEditing=!1,this.isSaving=!1,this.formData={location:"",zoneInfo:""},this.errors={},this.handleSave=async()=>{var t,r;if(!this.isSaving&&this.validate()){this.isSaving=!0;try{const n=await zi({address:{...(t=this.userContextValue.user)==null?void 0:t.address,locality:this.formData.location},zoneinfo:this.formData.zoneInfo});this.locationInfo={location:((r=n.address)==null?void 0:r.locality)??"",zoneInfo:n.zoneinfo??""},this.isEditing=!1}catch(n){console.error("Failed to update location info",n),ki(Mi(n,"Failed to update location information. Please try again."))}finally{this.isSaving=!1}}}}createRenderRoot(){return this}handleEdit(){this.isSaving||(this.formData={...this.locationInfo},this.errors={},this.isEditing=!0)}handleCancel(){this.isSaving||(this.isEditing=!1,this.errors={})}updateField(t,r){this.formData={...this.formData,[t]:r}}validate(){const t={},{location:r,zoneInfo:n}=this.formData;return r.length>Fc&&(t.location=`Location cannot be longer than ${Fc} characters.`),n&&!this.timeZones.includes(n)&&(t.zoneInfo="Choose a timezone from the list."),this.errors=t,Object.keys(t).length===0}fieldId(t){return`pont-location-${t}`}get timeZones(){var r;try{const n=(r=Intl.supportedValuesOf)==null?void 0:r.call(Intl,"timeZone");if(n!=null&&n.length)return n}catch{}const t=Intl.DateTimeFormat().resolvedOptions().timeZone;return[...new Set([t,"UTC"].filter(Boolean))]}renderControl(t){const r=!!this.errors[t];return t==="zoneInfo"?l`
2871
2871
  <pont-select
2872
2872
  .value=${this.formData.zoneInfo}
2873
2873
  ?disabled=${this.isSaving}
@@ -2903,7 +2903,7 @@
2903
2903
  class="${ye} pont-account-settings-field-label"
2904
2904
  >${t}</pont-field-label
2905
2905
  >
2906
- `;return this.layout===ot.ROW?l`
2906
+ `;return this.layout===nt.ROW?l`
2907
2907
  <div class="pont-flex pont-w-full pont-account-settings-info-card-rows">
2908
2908
  ${o}
2909
2909
  <div class="pont-account-settings-field-input-wrapper">${n}</div>
@@ -2946,7 +2946,7 @@
2946
2946
  <pont-card-header>
2947
2947
  <div class=${ji}>
2948
2948
  <pont-card-title>
2949
- <div class=${fn}>
2949
+ <div class=${vn}>
2950
2950
  ${(r=this.content)==null?void 0:r.icon}
2951
2951
  <span>${((n=this.content)==null?void 0:n.title)??"Location"}</span>
2952
2952
  </div>
@@ -2970,16 +2970,16 @@
2970
2970
  <pont-card-content>
2971
2971
  ${this.isEditing?l`
2972
2972
  <div
2973
- class=${this.layout===ot.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
2973
+ class=${this.layout===nt.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
2974
2974
  >
2975
2975
  ${t.map(o=>this.renderField(o.label,o.key))}
2976
2976
  </div>
2977
2977
  `:l`
2978
2978
  <div
2979
- class=${this.layout===ot.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
2979
+ class=${this.layout===nt.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
2980
2980
  >
2981
2981
  <div
2982
- class=${this.layout===ot.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
2982
+ class=${this.layout===nt.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
2983
2983
  >
2984
2984
  <pont-typography-p
2985
2985
  ><div
@@ -2990,12 +2990,12 @@
2990
2990
  </div></pont-typography-p
2991
2991
  >
2992
2992
  <div>
2993
- ${this.locationInfo.location?l`<pont-typography-p>${this.locationInfo.location}</pont-typography-p>`:vn()}
2993
+ ${this.locationInfo.location?l`<pont-typography-p>${this.locationInfo.location}</pont-typography-p>`:bn()}
2994
2994
  </div>
2995
2995
  </div>
2996
2996
 
2997
2997
  <div
2998
- class=${this.layout===ot.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
2998
+ class=${this.layout===nt.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
2999
2999
  >
3000
3000
  <pont-typography-p
3001
3001
  ><div
@@ -3006,7 +3006,7 @@
3006
3006
  </div></pont-typography-p
3007
3007
  >
3008
3008
  <div>
3009
- ${this.locationInfo.zoneInfo?l`<pont-typography-p>${this.locationInfo.zoneInfo}</pont-typography-p>`:vn()}
3009
+ ${this.locationInfo.zoneInfo?l`<pont-typography-p>${this.locationInfo.zoneInfo}</pont-typography-p>`:bn()}
3010
3010
  </div>
3011
3011
  </div>
3012
3012
  </div>
@@ -3017,7 +3017,7 @@
3017
3017
  ${this.isEditing?this.renderFooter():null}
3018
3018
  </div>
3019
3019
  </pont-card>
3020
- `}};Ie([a({type:Object})],exports.PontLocationInfo.prototype,"locationInfo",2);Ie([a({type:Boolean})],exports.PontLocationInfo.prototype,"showIcons",2);Ie([a({type:String})],exports.PontLocationInfo.prototype,"layout",2);Ie([a({type:Object})],exports.PontLocationInfo.prototype,"content",2);Ie([tt({context:An,subscribe:!0})],exports.PontLocationInfo.prototype,"userContextValue",2);Ie([g()],exports.PontLocationInfo.prototype,"isEditing",2);Ie([g()],exports.PontLocationInfo.prototype,"isSaving",2);Ie([g()],exports.PontLocationInfo.prototype,"formData",2);Ie([g()],exports.PontLocationInfo.prototype,"errors",2);exports.PontLocationInfo=Ie([p("pont-location-info")],exports.PontLocationInfo);var JP=Object.defineProperty,XP=Object.getOwnPropertyDescriptor,Ae=(e,t,r,n)=>{for(var o=n>1?void 0:n?XP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&JP(t,r,o),o};const kc=100,Mc=500;exports.PontPersonalInfo=class extends f{constructor(){super(...arguments),this.showIcons=!0,this.layout=ot.ROW,this.content=null,this.isEditing=!1,this.isSaving=!1,this.formData=this.personal,this.errors={},this.handleSave=async()=>{if(!this.isSaving&&this.validate()){this.isSaving=!0;try{const t=await zi({username:this.formData.username,given_name:this.formData.first,middle_name:this.formData.middle,family_name:this.formData.last,nickname:this.formData.nickname,gender:this.formData.gender,profile:this.formData.bio});this.personal={username:t.username??"",first:t.given_name??"",middle:t.middle_name??"",last:t.family_name??"",nickname:t.nickname??"",gender:t.gender??"",bio:t.profile??""},this.isEditing=!1}catch(t){console.error("Failed to update personal info",t),ki(Mi(t,"Failed to update personal information. Please try again."))}finally{this.isSaving=!1}}}}handleEdit(){this.isSaving||(this.formData={...this.personal},this.errors={},this.isEditing=!0)}handleCancel(){this.isEditing=!1,this.errors={}}updateField(t,r){this.formData={...this.formData,[t]:r}}validate(){const t={},{username:r,first:n,middle:o,last:i,nickname:s,bio:d}=this.formData;return r.trim()&&!/^[a-zA-Z0-9._-]{3,30}$/.test(r.trim())&&(t.username="Use 3-30 characters: letters, numbers, dots, underscores or hyphens."),[["first",n,"First name"],["middle",o,"Middle name"],["last",i,"Last name"],["nickname",s,"Nickname"]].forEach(([c,m,v])=>{m.length>kc&&(t[c]=`${v} cannot be longer than ${kc} characters.`)}),d.length>Mc&&(t.bio=`Bio cannot be longer than ${Mc} characters.`),this.errors=t,Object.keys(t).length===0}createRenderRoot(){return this}fieldId(t){return`pont-personal-${t}`}renderControl(t){const r=!!this.errors[t];return t==="gender"?l`
3020
+ `}};Ie([a({type:Object})],exports.PontLocationInfo.prototype,"locationInfo",2);Ie([a({type:Boolean})],exports.PontLocationInfo.prototype,"showIcons",2);Ie([a({type:String})],exports.PontLocationInfo.prototype,"layout",2);Ie([a({type:Object})],exports.PontLocationInfo.prototype,"content",2);Ie([rt({context:Tn,subscribe:!0})],exports.PontLocationInfo.prototype,"userContextValue",2);Ie([g()],exports.PontLocationInfo.prototype,"isEditing",2);Ie([g()],exports.PontLocationInfo.prototype,"isSaving",2);Ie([g()],exports.PontLocationInfo.prototype,"formData",2);Ie([g()],exports.PontLocationInfo.prototype,"errors",2);exports.PontLocationInfo=Ie([p("pont-location-info")],exports.PontLocationInfo);var JP=Object.defineProperty,XP=Object.getOwnPropertyDescriptor,Ae=(e,t,r,n)=>{for(var o=n>1?void 0:n?XP(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&JP(t,r,o),o};const kc=100,Mc=500;exports.PontPersonalInfo=class extends f{constructor(){super(...arguments),this.showIcons=!0,this.layout=nt.ROW,this.content=null,this.isEditing=!1,this.isSaving=!1,this.formData=this.personal,this.errors={},this.handleSave=async()=>{if(!this.isSaving&&this.validate()){this.isSaving=!0;try{const t=await zi({username:this.formData.username,given_name:this.formData.first,middle_name:this.formData.middle,family_name:this.formData.last,nickname:this.formData.nickname,gender:this.formData.gender,profile:this.formData.bio});this.personal={username:t.username??"",first:t.given_name??"",middle:t.middle_name??"",last:t.family_name??"",nickname:t.nickname??"",gender:t.gender??"",bio:t.profile??""},this.isEditing=!1}catch(t){console.error("Failed to update personal info",t),ki(Mi(t,"Failed to update personal information. Please try again."))}finally{this.isSaving=!1}}}}handleEdit(){this.isSaving||(this.formData={...this.personal},this.errors={},this.isEditing=!0)}handleCancel(){this.isEditing=!1,this.errors={}}updateField(t,r){this.formData={...this.formData,[t]:r}}validate(){const t={},{username:r,first:n,middle:o,last:i,nickname:s,bio:d}=this.formData;return r.trim()&&!/^[a-zA-Z0-9._-]{3,30}$/.test(r.trim())&&(t.username="Use 3-30 characters: letters, numbers, dots, underscores or hyphens."),[["first",n,"First name"],["middle",o,"Middle name"],["last",i,"Last name"],["nickname",s,"Nickname"]].forEach(([c,m,v])=>{m.length>kc&&(t[c]=`${v} cannot be longer than ${kc} characters.`)}),d.length>Mc&&(t.bio=`Bio cannot be longer than ${Mc} characters.`),this.errors=t,Object.keys(t).length===0}createRenderRoot(){return this}fieldId(t){return`pont-personal-${t}`}renderControl(t){const r=!!this.errors[t];return t==="gender"?l`
3021
3021
  <pont-select
3022
3022
  .value=${this.formData.gender}
3023
3023
  ?disabled=${this.isSaving}
@@ -3056,7 +3056,7 @@
3056
3056
  ?invalid=${r}
3057
3057
  @input=${n=>this.updateField(t,n.target.value)}
3058
3058
  ></pont-input>
3059
- `}renderField(t,r){return this.layout===ot.ROW?l`
3059
+ `}renderField(t,r){return this.layout===nt.ROW?l`
3060
3060
  <div class="pont-flex pont-w-full pont-account-settings-info-card-rows">
3061
3061
  <pont-field-label
3062
3062
  part="label"
@@ -3119,7 +3119,7 @@
3119
3119
  <pont-card-header>
3120
3120
  <div class=${ji}>
3121
3121
  <pont-card-title>
3122
- <div class=${fn}>
3122
+ <div class=${vn}>
3123
3123
  ${(r=this.content)==null?void 0:r.icon}
3124
3124
  <span>${((n=this.content)==null?void 0:n.title)??"Personal Info"}</span>
3125
3125
  </div>
@@ -3143,17 +3143,17 @@
3143
3143
  <pont-card-content>
3144
3144
  ${this.isEditing?l`
3145
3145
  <div
3146
- class=${this.layout===ot.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3146
+ class=${this.layout===nt.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3147
3147
  >
3148
3148
  ${t.map(o=>this.renderField(o.label,o.key))}
3149
3149
  </div>
3150
3150
  `:l`
3151
3151
  <div
3152
- class=${this.layout===ot.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3152
+ class=${this.layout===nt.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3153
3153
  >
3154
3154
  ${t.map(o=>l`
3155
3155
  <div
3156
- class=${this.layout===ot.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
3156
+ class=${this.layout===nt.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
3157
3157
  >
3158
3158
  <pont-typography-p>
3159
3159
  <div
@@ -3164,7 +3164,7 @@
3164
3164
  </div>
3165
3165
  </pont-typography-p>
3166
3166
  <div>
3167
- ${this.personal[o.key]?l`<pont-typography-p>${this.personal[o.key]}</pont-typography-p>`:vn()}
3167
+ ${this.personal[o.key]?l`<pont-typography-p>${this.personal[o.key]}</pont-typography-p>`:bn()}
3168
3168
  </div>
3169
3169
  </div>
3170
3170
  `)}
@@ -3176,7 +3176,7 @@
3176
3176
  ${this.isEditing?this.renderFooter():null}
3177
3177
  </div>
3178
3178
  </pont-card>
3179
- `}};Ae([a({type:Object})],exports.PontPersonalInfo.prototype,"personal",2);Ae([a({type:Boolean})],exports.PontPersonalInfo.prototype,"showIcons",2);Ae([a({type:String})],exports.PontPersonalInfo.prototype,"layout",2);Ae([a({type:Object})],exports.PontPersonalInfo.prototype,"content",2);Ae([tt({context:An,subscribe:!0})],exports.PontPersonalInfo.prototype,"userContextValue",2);Ae([g()],exports.PontPersonalInfo.prototype,"isEditing",2);Ae([g()],exports.PontPersonalInfo.prototype,"isSaving",2);Ae([g()],exports.PontPersonalInfo.prototype,"formData",2);Ae([g()],exports.PontPersonalInfo.prototype,"errors",2);exports.PontPersonalInfo=Ae([p("pont-personal-info")],exports.PontPersonalInfo);var t1=Object.defineProperty,e1=Object.getOwnPropertyDescriptor,Te=(e,t,r,n)=>{for(var o=n>1?void 0:n?e1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&t1(t,r,o),o};exports.PontUrlsInfo=class extends f{constructor(){super(...arguments),this.showIcons=!0,this.layout=ot.ROW,this.content=null,this.isEditing=!1,this.isSaving=!1,this.formData={website:""},this.errors={},this.handleSave=async()=>{if(!this.isSaving&&this.validate()){this.isSaving=!0;try{const t=await zi({website:this.formData.website});this.URLsInfo={website:t.website??""},this.isEditing=!1}catch(t){console.error("Failed to update URLs info",t),ki(Mi(t,"Failed to update website. Please try again."))}finally{this.isSaving=!1}}}}createRenderRoot(){return this}handleEdit(){this.isSaving||(this.formData={...this.URLsInfo},this.errors={},this.isEditing=!0)}handleCancel(){this.isSaving||(this.isEditing=!1,this.errors={})}updateField(t,r){this.formData={...this.formData,[t]:r}}validate(){const t={},r=this.formData.website.trim();if(r){let n=null;try{n=new URL(r)}catch{n=null}n?n.protocol!=="http:"&&n.protocol!=="https:"&&(t.website="Only http:// and https:// addresses are allowed."):t.website="Enter a full URL, including https://"}return this.errors=t,Object.keys(t).length===0}fieldId(t){return`pont-urls-${t}`}renderField(t,r){const n=l`
3179
+ `}};Ae([a({type:Object})],exports.PontPersonalInfo.prototype,"personal",2);Ae([a({type:Boolean})],exports.PontPersonalInfo.prototype,"showIcons",2);Ae([a({type:String})],exports.PontPersonalInfo.prototype,"layout",2);Ae([a({type:Object})],exports.PontPersonalInfo.prototype,"content",2);Ae([rt({context:Tn,subscribe:!0})],exports.PontPersonalInfo.prototype,"userContextValue",2);Ae([g()],exports.PontPersonalInfo.prototype,"isEditing",2);Ae([g()],exports.PontPersonalInfo.prototype,"isSaving",2);Ae([g()],exports.PontPersonalInfo.prototype,"formData",2);Ae([g()],exports.PontPersonalInfo.prototype,"errors",2);exports.PontPersonalInfo=Ae([p("pont-personal-info")],exports.PontPersonalInfo);var t1=Object.defineProperty,e1=Object.getOwnPropertyDescriptor,Te=(e,t,r,n)=>{for(var o=n>1?void 0:n?e1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&t1(t,r,o),o};exports.PontUrlsInfo=class extends f{constructor(){super(...arguments),this.showIcons=!0,this.layout=nt.ROW,this.content=null,this.isEditing=!1,this.isSaving=!1,this.formData={website:""},this.errors={},this.handleSave=async()=>{if(!this.isSaving&&this.validate()){this.isSaving=!0;try{const t=await zi({website:this.formData.website});this.URLsInfo={website:t.website??""},this.isEditing=!1}catch(t){console.error("Failed to update URLs info",t),ki(Mi(t,"Failed to update website. Please try again."))}finally{this.isSaving=!1}}}}createRenderRoot(){return this}handleEdit(){this.isSaving||(this.formData={...this.URLsInfo},this.errors={},this.isEditing=!0)}handleCancel(){this.isSaving||(this.isEditing=!1,this.errors={})}updateField(t,r){this.formData={...this.formData,[t]:r}}validate(){const t={},r=this.formData.website.trim();if(r){let n=null;try{n=new URL(r)}catch{n=null}n?n.protocol!=="http:"&&n.protocol!=="https:"&&(t.website="Only http:// and https:// addresses are allowed."):t.website="Enter a full URL, including https://"}return this.errors=t,Object.keys(t).length===0}fieldId(t){return`pont-urls-${t}`}renderField(t,r){const n=l`
3180
3180
  <pont-field ?invalid=${!!this.errors[r]}>
3181
3181
  <pont-input
3182
3182
  id=${this.fieldId(r)}
@@ -3197,7 +3197,7 @@
3197
3197
  class="${ye} pont-account-settings-field-label"
3198
3198
  >${t}</pont-field-label
3199
3199
  >
3200
- `;return this.layout===ot.ROW?l`
3200
+ `;return this.layout===nt.ROW?l`
3201
3201
  <div class="pont-flex pont-w-full pont-account-settings-info-card-rows">
3202
3202
  ${o}
3203
3203
  <div class="pont-account-settings-field-input-wrapper">${n}</div>
@@ -3240,7 +3240,7 @@
3240
3240
  <pont-card-header>
3241
3241
  <div class=${ji}>
3242
3242
  <pont-card-title>
3243
- <div class=${fn}>
3243
+ <div class=${vn}>
3244
3244
  ${(r=this.content)==null?void 0:r.icon}
3245
3245
  <span>${((n=this.content)==null?void 0:n.title)??"Links"}</span>
3246
3246
  </div>
@@ -3264,16 +3264,16 @@
3264
3264
  <pont-card-content>
3265
3265
  ${this.isEditing?l`
3266
3266
  <div
3267
- class=${this.layout===ot.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3267
+ class=${this.layout===nt.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3268
3268
  >
3269
3269
  ${t.map(o=>this.renderField(o.label,o.key))}
3270
3270
  </div>
3271
3271
  `:l`
3272
3272
  <div
3273
- class=${this.layout===ot.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3273
+ class=${this.layout===nt.ROW?"pont-account-settings-form-body":"pont-account-settings-column-layout pont-account-settings-form-body"}
3274
3274
  >
3275
3275
  <div
3276
- class=${this.layout===ot.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
3276
+ class=${this.layout===nt.ROW?"pont-flex pont-w-full pont-account-settings-info-card-rows":"pont-account-settings-info-card-rows"}
3277
3277
  >
3278
3278
  <pont-typography-p
3279
3279
  ><div
@@ -3288,7 +3288,7 @@
3288
3288
  @click=${this.handleLinkClick}
3289
3289
  class=${this.URLsInfo.website?"pont-underline pont-cursor-pointer":""}
3290
3290
  >
3291
- ${this.URLsInfo.website?l`<pont-typography-p>${this.URLsInfo.website}</pont-typography-p>`:vn()}
3291
+ ${this.URLsInfo.website?l`<pont-typography-p>${this.URLsInfo.website}</pont-typography-p>`:bn()}
3292
3292
  </div>
3293
3293
  ${this.URLsInfo.website?l`<div
3294
3294
  @click=${this.handleLinkClick}
@@ -3306,7 +3306,7 @@
3306
3306
  ${this.isEditing?this.renderFooter():null}
3307
3307
  </div>
3308
3308
  </pont-card>
3309
- `}};Te([a({type:Object})],exports.PontUrlsInfo.prototype,"URLsInfo",2);Te([a({type:Boolean})],exports.PontUrlsInfo.prototype,"showIcons",2);Te([a({type:String})],exports.PontUrlsInfo.prototype,"layout",2);Te([a({type:Object})],exports.PontUrlsInfo.prototype,"content",2);Te([tt({context:An,subscribe:!0})],exports.PontUrlsInfo.prototype,"userContextValue",2);Te([g()],exports.PontUrlsInfo.prototype,"isEditing",2);Te([g()],exports.PontUrlsInfo.prototype,"isSaving",2);Te([g()],exports.PontUrlsInfo.prototype,"formData",2);Te([g()],exports.PontUrlsInfo.prototype,"errors",2);exports.PontUrlsInfo=Te([p("pont-urls-info")],exports.PontUrlsInfo);var r1=Object.defineProperty,o1=Object.getOwnPropertyDescriptor,xt=(e,t,r,n)=>{for(var o=n>1?void 0:n?o1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&r1(t,r,o),o};exports.Profile=class extends f{constructor(){super(...arguments),this.showAvatarMenu=!1,this.orientation=Rr.HORIZONTAL,this.sidebarDisplayType=Ve.REGULAR,this.mode=sr==null?void 0:sr.PAGE,this.widgetsLayout=ot.ROW,this.content=null}createRenderRoot(){return this}render(){var t,r,n,o;return l`
3309
+ `}};Te([a({type:Object})],exports.PontUrlsInfo.prototype,"URLsInfo",2);Te([a({type:Boolean})],exports.PontUrlsInfo.prototype,"showIcons",2);Te([a({type:String})],exports.PontUrlsInfo.prototype,"layout",2);Te([a({type:Object})],exports.PontUrlsInfo.prototype,"content",2);Te([rt({context:Tn,subscribe:!0})],exports.PontUrlsInfo.prototype,"userContextValue",2);Te([g()],exports.PontUrlsInfo.prototype,"isEditing",2);Te([g()],exports.PontUrlsInfo.prototype,"isSaving",2);Te([g()],exports.PontUrlsInfo.prototype,"formData",2);Te([g()],exports.PontUrlsInfo.prototype,"errors",2);exports.PontUrlsInfo=Te([p("pont-urls-info")],exports.PontUrlsInfo);var r1=Object.defineProperty,o1=Object.getOwnPropertyDescriptor,xt=(e,t,r,n)=>{for(var o=n>1?void 0:n?o1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&r1(t,r,o),o};exports.Profile=class extends f{constructor(){super(...arguments),this.showAvatarMenu=!1,this.orientation=Rr.HORIZONTAL,this.sidebarDisplayType=Ve.REGULAR,this.mode=sr==null?void 0:sr.PAGE,this.widgetsLayout=nt.ROW,this.content=null}createRenderRoot(){return this}render(){var t,r,n,o;return l`
3310
3310
  <div class="pont-account-settings-section-stack">
3311
3311
  <pont-account-info
3312
3312
  .content=${(t=this.content)==null?void 0:t.account}
@@ -3332,7 +3332,7 @@
3332
3332
  .layout=${this.widgetsLayout}
3333
3333
  ></pont-urls-info>
3334
3334
  </div>
3335
- `}};xt([a({type:Object})],exports.Profile.prototype,"account",2);xt([a({type:Object})],exports.Profile.prototype,"personal",2);xt([a({type:Object})],exports.Profile.prototype,"location",2);xt([a({type:Object})],exports.Profile.prototype,"urls",2);xt([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);xt([a({type:Object}),a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);xt([a({type:String})],exports.Profile.prototype,"orientation",2);xt([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);xt([a({type:String})],exports.Profile.prototype,"mode",2);xt([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);xt([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);xt([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);xt([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);xt([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=xt([p("pont-profile")],exports.Profile);const Nn={vertical:"pont-account-settings-sidebar-vertical",horizontal:"pont-account-settings-sidebar-horizontal",horizontalBurger:"pont-account-settings-sidebar-horizontal-burger"},n1="pont-account-settings-sidebar-burger-button pont-rounded-lg pont-cursor-pointer",i1="mobile-sidebar-drawer pont-account-settings-sidebar-mobile-drawer pont-transform pont-transition-all pont-duration-300 pont-ease-in-out",s1="mobile-sidebar-overlay pont-account-settings-sidebar-mobile-overlay pont-transition-opacity pont-duration-300 pont-ease-in-out";/**
3335
+ `}};xt([a({type:Object})],exports.Profile.prototype,"account",2);xt([a({type:Object})],exports.Profile.prototype,"personal",2);xt([a({type:Object})],exports.Profile.prototype,"location",2);xt([a({type:Object})],exports.Profile.prototype,"urls",2);xt([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);xt([a({type:Object}),a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);xt([a({type:String})],exports.Profile.prototype,"orientation",2);xt([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);xt([a({type:String})],exports.Profile.prototype,"mode",2);xt([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);xt([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);xt([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);xt([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);xt([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=xt([p("pont-profile")],exports.Profile);const Bn={vertical:"pont-account-settings-sidebar-vertical",horizontal:"pont-account-settings-sidebar-horizontal",horizontalBurger:"pont-account-settings-sidebar-horizontal-burger"},n1="pont-account-settings-sidebar-burger-button pont-rounded-lg pont-cursor-pointer",i1="mobile-sidebar-drawer pont-account-settings-sidebar-mobile-drawer pont-transform pont-transition-all pont-duration-300 pont-ease-in-out",s1="mobile-sidebar-overlay pont-account-settings-sidebar-mobile-overlay pont-transition-opacity pont-duration-300 pont-ease-in-out";/**
3336
3336
  * @license
3337
3337
  * Copyright 2021 Google LLC
3338
3338
  * SPDX-License-Identifier: BSD-3-Clause
@@ -3398,7 +3398,7 @@
3398
3398
  class="${s1} ${this.isMenuOpen?"pont-block pont-opacity-100":"pont-hidden pont-opacity-0"}"
3399
3399
  @click=${this.toggleMenu}
3400
3400
  ></div>
3401
- `}getSidebarContainerClass(){return this.isBurger&&this.isModal?Nn.horizontalBurger:this.isModal&&this.isVertical?`${Nn.vertical} pont-account-settings-sidebar-modal-margin`:this.isVertical?Nn.vertical:Nn.horizontal}render(){const e=!this.isVertical&&!this.isBurger;return l`
3401
+ `}getSidebarContainerClass(){return this.isBurger&&this.isModal?Bn.horizontalBurger:this.isModal&&this.isVertical?`${Bn.vertical} pont-account-settings-sidebar-modal-margin`:this.isVertical?Bn.vertical:Bn.horizontal}render(){const e=!this.isVertical&&!this.isBurger;return l`
3402
3402
  <div
3403
3403
  burger=${this.isBurger}
3404
3404
  class="${zt("pont-overflow-x-auto pont-flex pont-items-center",this.getSidebarContainerClass())}"
@@ -3413,7 +3413,7 @@
3413
3413
  </div>
3414
3414
 
3415
3415
  ${this.isBurger?this.renderMobileDrawer():null}
3416
- `}};Jr([a({type:String})],gr.prototype,"orientation",2);Jr([a({type:String})],gr.prototype,"displayType",2);Jr([a({type:String})],gr.prototype,"mode",2);Jr([a({type:Object})],gr.prototype,"config",2);Jr([a({type:String})],gr.prototype,"activeTab",2);Jr([g()],gr.prototype,"isMenuOpen",2);gr=Jr([p("pont-profile-sidebar")],gr);function _l(){document.dispatchEvent(new CustomEvent("open-user-profile",{bubbles:!0,composed:!0}))}function wl(){document.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}function zh(){document.dispatchEvent(new CustomEvent("open-member-management",{bubbles:!0,composed:!0}))}function Vh(){document.dispatchEvent(new CustomEvent("close-member-management",{bubbles:!0,composed:!0}))}function Hh(e){document.dispatchEvent(new CustomEvent("pont:set-locales",{detail:{locales:e},bubbles:!0,composed:!0}))}typeof window<"u"&&(window.__pontCoreSdk||(window.__pontCoreSdk={}),window.__pontCoreSdk.openAccountSettingsModal=_l,window.__pontCoreSdk.closeAccountSettingsModal=wl,window.__pontCoreSdk.openMemberManagementModal=zh,window.__pontCoreSdk.closeMemberManagementModal=Vh,window.__pontCoreSdk.setLocales=Hh);var d1=Object.defineProperty,qt=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&d1(t,r,o),o};class Ot extends f{constructor(){super(),this.showAvatarMenu=!1,this.orientation=Rr.HORIZONTAL,this.mobileDisplay=Ve.REGULAR,this.mode=sr.PAGE,this.widgetsLayout=ot.ROW,this.content=null,this.isOpen=!1,this.currentBreakpoint="md",this.activeTab=ue.PROFILE,this._userLoaded=!1,this._userLoading=!1,this.userContextValue={user:null,identifier:null},this.__initialized=!1,this.account={email:"",phone:"",avatar:""},this.personal={username:"",first:"",middle:"",last:"",nickname:"",gender:"",bio:""},this.location={location:"",zoneInfo:""},this.urls={website:""},this._handleResize=()=>{this._updateBreakpoint()},this._handleCloseProfile=()=>{this.isModal&&(this.isOpen=!1)},this._handleOpenProfile=()=>{this.isModal&&(this.isOpen=!0)},this._toggleAvatarMenu=t=>{t.stopPropagation(),this.showAvatarMenu=!this.showAvatarMenu},this._handleAvatarChange=()=>{const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=r=>{var i;const n=(i=r.target.files)==null?void 0:i[0];if(!n)return;const o=new FileReader;o.onload=()=>{this.account.avatar=o.result,this.requestUpdate()},o.readAsDataURL(n)},t.click()},this._handleAvatarRemove=()=>{this.account.avatar="https://via.placeholder.com/80",this.showAvatarMenu=!1},this._handleClickOutside=t=>{if(!this.showAvatarMenu)return;const r=t.target,n=this.querySelector("pont-account-info"),o=this.querySelector("pont-card");n!=null&&n.contains(r)||o!=null&&o.contains(r)||(this.showAvatarMenu=!1)},this._handleOpenProfile=this._handleOpenProfile.bind(this),this._handleCloseProfile=this._handleCloseProfile.bind(this),window.addEventListener("open-user-profile",this._handleOpenProfile),window.addEventListener("close-user-profile",this._handleCloseProfile)}get isModal(){return this.mode===sr.MODAL}get isVerticalOrientation(){return this.orientation===Rr.VERTICAL}get isHorizontalOrientation(){return this.orientation===Rr.HORIZONTAL}get isBurger(){return this.sidebarDisplayType===Ve.BURGER}get sidebarDisplayType(){return this.isVerticalOrientation||this.currentBreakpoint==="md"?Ve.REGULAR:Ve.BURGER}get layoutKey(){return`${this.orientation}|${this.mode}|${this.widgetsLayout}|${this.mobileDisplay}`}get containerClasses(){const t=this.isBurger||this.isVerticalOrientation;return zt(Aw,this.isModal?Dw:Tw,this.isModal?Iw:Rw,t?"!pont-flex-col":"!pont-flex-row")}get contentClasses(){return zt("pont-flex-grow",this.isModal?`pont-account-settings-modal-content ${this.isHorizontalOrientation?"pont-account-settings-modal-content-horizontal":""}`:"pont-account-settings-content-md-max-height-full",this.isVerticalOrientation?"pont-account-settings-vertical-margin":"")}connectedCallback(){super.connectedCallback(),this._updateBreakpoint(),window.addEventListener("resize",this._handleResize),document.addEventListener("remove-avatar",this._handleAvatarRemove),document.addEventListener("click",this._handleClickOutside),document.addEventListener("close-user-profile",this._handleCloseProfile),document.addEventListener("open-user-profile",this._handleOpenProfile),document.addEventListener("change-avatar",this._handleAvatarChange)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleResize),document.removeEventListener("remove-avatar",this._handleAvatarRemove),document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("close-user-profile",this._handleCloseProfile),document.removeEventListener("open-user-profile",this._handleOpenProfile),document.removeEventListener("change-avatar",this._handleAvatarChange)}updated(t){t.has("mode")&&(this.isModal?this.isOpen=!1:this.isOpen=!0),t.has("userContextValue")&&this.userContextValue.user&&this.tryRemoveFallback(),t.has("auth")&&this.loadUser()}firstUpdated(){this.__initialized||(this.__initialized=!0,this.style.width="100%",this.style.display="flex",this.style.justifyContent="center",this.style.flexDirection="column")}fillProfileData(t){var r;this.account={...this.account,avatar:t.picture||"",email:t.email||"",phone:t.phone||""},this.personal={...this.personal,bio:t.profile||"",first:t.given_name||"",last:t.family_name||"",username:t.username||"",gender:t.gender||"",middle:t.middle_name||"",nickname:t.nickname||""},this.location={...this.location,location:((r=t.address)==null?void 0:r.locality)||"",zoneInfo:t.zoneinfo||""},this.urls={...this.urls,website:t.website||""}}async loadUser(){var t,r;if(!(!((t=this.auth)!=null&&t.resolved)||!this.auth.isAuthenticated)&&!(this._userLoaded||this._userLoading)&&(this.userContextValue.identifier=((r=Y.getAuthenticatedUser())==null?void 0:r.email)??"",!!this.userContextValue.identifier)){this._userLoading=!0;try{this.userContextValue.user=await UP(),this.tryRemoveFallback(),this.fillProfileData(this.userContextValue.user),this._userLoaded=!0}catch(n){console.error("[pont-account-settings] Failed loading user:",n)}finally{this._userLoading=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}_updateBreakpoint(){const t=window.innerWidth;this.currentBreakpoint=t<bc.xs?"xs":t<bc.sm?"sm":"md"}renderWatermark(){return this.isVerticalOrientation?l`
3416
+ `}};Jr([a({type:String})],gr.prototype,"orientation",2);Jr([a({type:String})],gr.prototype,"displayType",2);Jr([a({type:String})],gr.prototype,"mode",2);Jr([a({type:Object})],gr.prototype,"config",2);Jr([a({type:String})],gr.prototype,"activeTab",2);Jr([g()],gr.prototype,"isMenuOpen",2);gr=Jr([p("pont-profile-sidebar")],gr);function _l(){document.dispatchEvent(new CustomEvent("open-user-profile",{bubbles:!0,composed:!0}))}function wl(){document.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}function zh(){document.dispatchEvent(new CustomEvent("open-member-management",{bubbles:!0,composed:!0}))}function Vh(){document.dispatchEvent(new CustomEvent("close-member-management",{bubbles:!0,composed:!0}))}function Hh(e){document.dispatchEvent(new CustomEvent("pont:set-locales",{detail:{locales:e},bubbles:!0,composed:!0}))}typeof window<"u"&&(window.__pontCoreSdk||(window.__pontCoreSdk={}),window.__pontCoreSdk.openAccountSettingsModal=_l,window.__pontCoreSdk.closeAccountSettingsModal=wl,window.__pontCoreSdk.openMemberManagementModal=zh,window.__pontCoreSdk.closeMemberManagementModal=Vh,window.__pontCoreSdk.setLocales=Hh);var d1=Object.defineProperty,qt=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&d1(t,r,o),o};class Ot extends f{constructor(){super(),this.showAvatarMenu=!1,this.orientation=Rr.HORIZONTAL,this.mobileDisplay=Ve.REGULAR,this.mode=sr.PAGE,this.widgetsLayout=nt.ROW,this.content=null,this.isOpen=!1,this.currentBreakpoint="md",this.activeTab=ue.PROFILE,this._userLoaded=!1,this._userLoading=!1,this.userContextValue={user:null,identifier:null},this.__initialized=!1,this.account={email:"",phone:"",avatar:""},this.personal={username:"",first:"",middle:"",last:"",nickname:"",gender:"",bio:""},this.location={location:"",zoneInfo:""},this.urls={website:""},this._handleResize=()=>{this._updateBreakpoint()},this._handleCloseProfile=()=>{this.isModal&&(this.isOpen=!1)},this._handleOpenProfile=()=>{this.isModal&&(this.isOpen=!0)},this._toggleAvatarMenu=t=>{t.stopPropagation(),this.showAvatarMenu=!this.showAvatarMenu},this._handleAvatarChange=()=>{const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=r=>{var i;const n=(i=r.target.files)==null?void 0:i[0];if(!n)return;const o=new FileReader;o.onload=()=>{this.account.avatar=o.result,this.requestUpdate()},o.readAsDataURL(n)},t.click()},this._handleAvatarRemove=()=>{this.account.avatar="https://via.placeholder.com/80",this.showAvatarMenu=!1},this._handleClickOutside=t=>{if(!this.showAvatarMenu)return;const r=t.target,n=this.querySelector("pont-account-info"),o=this.querySelector("pont-card");n!=null&&n.contains(r)||o!=null&&o.contains(r)||(this.showAvatarMenu=!1)},this._handleOpenProfile=this._handleOpenProfile.bind(this),this._handleCloseProfile=this._handleCloseProfile.bind(this),window.addEventListener("open-user-profile",this._handleOpenProfile),window.addEventListener("close-user-profile",this._handleCloseProfile)}get isModal(){return this.mode===sr.MODAL}get isVerticalOrientation(){return this.orientation===Rr.VERTICAL}get isHorizontalOrientation(){return this.orientation===Rr.HORIZONTAL}get isBurger(){return this.sidebarDisplayType===Ve.BURGER}get sidebarDisplayType(){return this.isVerticalOrientation||this.currentBreakpoint==="md"?Ve.REGULAR:Ve.BURGER}get layoutKey(){return`${this.orientation}|${this.mode}|${this.widgetsLayout}|${this.mobileDisplay}`}get containerClasses(){const t=this.isBurger||this.isVerticalOrientation;return zt(Aw,this.isModal?Dw:Tw,this.isModal?Iw:Rw,t?"!pont-flex-col":"!pont-flex-row")}get contentClasses(){return zt("pont-flex-grow",this.isModal?`pont-account-settings-modal-content ${this.isHorizontalOrientation?"pont-account-settings-modal-content-horizontal":""}`:"pont-account-settings-content-md-max-height-full",this.isVerticalOrientation?"pont-account-settings-vertical-margin":"")}connectedCallback(){super.connectedCallback(),this._updateBreakpoint(),window.addEventListener("resize",this._handleResize),document.addEventListener("remove-avatar",this._handleAvatarRemove),document.addEventListener("click",this._handleClickOutside),document.addEventListener("close-user-profile",this._handleCloseProfile),document.addEventListener("open-user-profile",this._handleOpenProfile),document.addEventListener("change-avatar",this._handleAvatarChange)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleResize),document.removeEventListener("remove-avatar",this._handleAvatarRemove),document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("close-user-profile",this._handleCloseProfile),document.removeEventListener("open-user-profile",this._handleOpenProfile),document.removeEventListener("change-avatar",this._handleAvatarChange)}updated(t){t.has("mode")&&(this.isModal?this.isOpen=!1:this.isOpen=!0),t.has("userContextValue")&&this.userContextValue.user&&this.tryRemoveFallback(),t.has("auth")&&this.loadUser()}firstUpdated(){this.__initialized||(this.__initialized=!0,this.style.width="100%",this.style.display="flex",this.style.justifyContent="center",this.style.flexDirection="column")}fillProfileData(t){var r;this.account={...this.account,avatar:t.picture||"",email:t.email||"",phone:t.phone||""},this.personal={...this.personal,bio:t.profile||"",first:t.given_name||"",last:t.family_name||"",username:t.username||"",gender:t.gender||"",middle:t.middle_name||"",nickname:t.nickname||""},this.location={...this.location,location:((r=t.address)==null?void 0:r.locality)||"",zoneInfo:t.zoneinfo||""},this.urls={...this.urls,website:t.website||""}}async loadUser(){var t,r;if(!(!((t=this.auth)!=null&&t.resolved)||!this.auth.isAuthenticated)&&!(this._userLoaded||this._userLoading)&&(this.userContextValue.identifier=((r=Y.getAuthenticatedUser())==null?void 0:r.email)??"",!!this.userContextValue.identifier)){this._userLoading=!0;try{this.userContextValue.user=await UP(),this.tryRemoveFallback(),this.fillProfileData(this.userContextValue.user),this._userLoaded=!0}catch(n){console.error("[pont-account-settings] Failed loading user:",n)}finally{this._userLoading=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}_updateBreakpoint(){const t=window.innerWidth;this.currentBreakpoint=t<bc.xs?"xs":t<bc.sm?"sm":"md"}renderWatermark(){return this.isVerticalOrientation?l`
3417
3417
  <div class="pont-account-settings-watermark-container">
3418
3418
  <pont-watermark custom-id="pont-watermark"></pont-watermark>
3419
3419
  </div>
@@ -3494,7 +3494,7 @@
3494
3494
  ${this.renderMainContent()}
3495
3495
  </div>
3496
3496
  </pont-modal>
3497
- `:this.renderMainContent():h:this.isModal?h:this.renderLoadingSkeleton()}createRenderRoot(){return this}}qt([a({type:Boolean})],Ot.prototype,"showAvatarMenu");qt([a({type:String})],Ot.prototype,"orientation");qt([a({type:String})],Ot.prototype,"mobileDisplay");qt([a({type:String,reflect:!0})],Ot.prototype,"mode");qt([a({type:String})],Ot.prototype,"widgetsLayout");qt([a({type:Object})],Ot.prototype,"content");qt([g()],Ot.prototype,"isOpen");qt([g()],Ot.prototype,"currentBreakpoint");qt([g()],Ot.prototype,"activeTab");qt([tt({context:Qr,subscribe:!0}),a({attribute:!1})],Ot.prototype,"auth");qt([g()],Ot.prototype,"_userLoaded");qt([g()],Ot.prototype,"_userLoading");qt([Kt({context:An}),g()],Ot.prototype,"userContextValue");customElements.define("pont-account-settings",Ot);var c1=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,Gh=(e,t,r,n)=>{for(var o=n>1?void 0:n?p1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c1(t,r,o),o};exports.PontSecuritySettings=class extends f{constructor(){super(...arguments),this.loading=!1}render(){return this.loading?l`<div class="pont-account-settings-security-loading">
3497
+ `:this.renderMainContent():h:this.isModal?h:this.renderLoadingSkeleton()}createRenderRoot(){return this}}qt([a({type:Boolean})],Ot.prototype,"showAvatarMenu");qt([a({type:String})],Ot.prototype,"orientation");qt([a({type:String})],Ot.prototype,"mobileDisplay");qt([a({type:String,reflect:!0})],Ot.prototype,"mode");qt([a({type:String})],Ot.prototype,"widgetsLayout");qt([a({type:Object})],Ot.prototype,"content");qt([g()],Ot.prototype,"isOpen");qt([g()],Ot.prototype,"currentBreakpoint");qt([g()],Ot.prototype,"activeTab");qt([rt({context:Qr,subscribe:!0}),a({attribute:!1})],Ot.prototype,"auth");qt([g()],Ot.prototype,"_userLoaded");qt([g()],Ot.prototype,"_userLoading");qt([Kt({context:Tn}),g()],Ot.prototype,"userContextValue");customElements.define("pont-account-settings",Ot);var c1=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,Gh=(e,t,r,n)=>{for(var o=n>1?void 0:n?p1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c1(t,r,o),o};exports.PontSecuritySettings=class extends f{constructor(){super(...arguments),this.loading=!1}render(){return this.loading?l`<div class="pont-account-settings-security-loading">
3498
3498
  Loading security settings...
3499
3499
  </div>`:l`
3500
3500
  <div class="pont-account-settings-security-panel">
@@ -3532,7 +3532,7 @@
3532
3532
  <pont-field-separator id="${this.rootId}" part="${exports.PontDivider.PARTS.root}">
3533
3533
  ${this.label??h}
3534
3534
  </pont-field-separator>
3535
- `}};exports.PontDivider.ROOT="divider";exports.PontDivider.TAG=`${rt}-${exports.PontDivider.ROOT}`;exports.PontDivider.PARTS={root:exports.PontDivider.ROOT};Vi([a({type:String})],exports.PontDivider.prototype,"seed",2);Vi([a({type:String,attribute:"custom-id"})],exports.PontDivider.prototype,"customId",2);Vi([a({type:String})],exports.PontDivider.prototype,"label",2);exports.PontDivider=Vi([p("pont-divider")],exports.PontDivider);var m1=Object.defineProperty,$l=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&m1(t,r,o),o};const Rl=class Rl extends f{constructor(){super(...arguments),this.totalPages=1,this.currentPage=1,this.hideGoTo=!1}createRenderRoot(){return this}get visiblePages(){if(this.totalPages<=0)return[];if(this.totalPages<=3)return Array.from({length:this.totalPages},(r,n)=>n+1);let t=Math.max(1,this.currentPage-1);return t+2>this.totalPages&&(t=this.totalPages-2),[t,t+1,t+2]}goTo(t){this.totalPages<=0||t===this.currentPage||t<1||t>this.totalPages||this.dispatchEvent(new CustomEvent("page-change",{detail:{page:t},bubbles:!0,composed:!0}))}render(){const t=this.totalPages,r=this.currentPage,n=t>0,o=!n||r<=1,i=!n||r>=t,s=n?this.visiblePages:[];return l`
3535
+ `}};exports.PontDivider.ROOT="divider";exports.PontDivider.TAG=`${ot}-${exports.PontDivider.ROOT}`;exports.PontDivider.PARTS={root:exports.PontDivider.ROOT};Vi([a({type:String})],exports.PontDivider.prototype,"seed",2);Vi([a({type:String,attribute:"custom-id"})],exports.PontDivider.prototype,"customId",2);Vi([a({type:String})],exports.PontDivider.prototype,"label",2);exports.PontDivider=Vi([p("pont-divider")],exports.PontDivider);var m1=Object.defineProperty,$l=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&m1(t,r,o),o};const Rl=class Rl extends f{constructor(){super(...arguments),this.totalPages=1,this.currentPage=1,this.hideGoTo=!1}createRenderRoot(){return this}get visiblePages(){if(this.totalPages<=0)return[];if(this.totalPages<=3)return Array.from({length:this.totalPages},(r,n)=>n+1);let t=Math.max(1,this.currentPage-1);return t+2>this.totalPages&&(t=this.totalPages-2),[t,t+1,t+2]}goTo(t){this.totalPages<=0||t===this.currentPage||t<1||t>this.totalPages||this.dispatchEvent(new CustomEvent("page-change",{detail:{page:t},bubbles:!0,composed:!0}))}render(){const t=this.totalPages,r=this.currentPage,n=t>0,o=!n||r<=1,i=!n||r>=t,s=n?this.visiblePages:[];return l`
3536
3536
  <nav
3537
3537
  class="pont-flex pont-flex-wrap pont-items-center pont-justify-center pont-gap-1"
3538
3538
  aria-label="Pagination"
@@ -4327,7 +4327,7 @@
4327
4327
  </div>
4328
4328
  </div>
4329
4329
  `}
4330
- `}};Yt([a({attribute:!1})],Ut.prototype,"invitations",2);Yt([a({type:Boolean,attribute:!1})],Ut.prototype,"invitationsLoading",2);Yt([a({type:String})],Ut.prototype,"searchTerm",2);Yt([a({type:Object,attribute:!1})],Ut.prototype,"invitationFilters",2);Yt([a({type:Array,attribute:!1})],Ut.prototype,"availableRoles",2);Yt([a({type:Array,attribute:!1})],Ut.prototype,"statusOptions",2);Yt([a({type:Number})],Ut.prototype,"invitationsPage",2);Yt([a({type:Number})],Ut.prototype,"invitationsTotalPages",2);Yt([a({type:Number})],Ut.prototype,"invitationsTotal",2);Yt([a({type:Number})],Ut.prototype,"rowsPerPage",2);Yt([g()],Ut.prototype,"_searchDebounceTimer",2);Ut=Yt([p("pont-member-management-invitations-panel")],Ut);var or=(e=>(e.MEMBERS="Members",e.INVITATIONS="Invitations",e))(or||{});function E1(e){const t=[{key:"admin",name:"Admin",description:"Full access",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["*"],permission_count:10,assignment_count:2,inheritance:{parent_role_keys:[],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3},{key:"manager",name:"Manager",description:"Can manage projects and members",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["read:projects","write:projects","read:members"],permission_count:3,assignment_count:4,inheritance:{parent_role_keys:["admin"],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3},{key:"developer",name:"Developer",description:"Can read and write code",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["read:repos","write:repos"],permission_count:2,assignment_count:6,inheritance:{parent_role_keys:[],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3},{key:"viewer",name:"Viewer",description:"Read-only access",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["read:projects"],permission_count:1,assignment_count:8,inheritance:{parent_role_keys:[],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3}];return{data:t,object:"list",pagination:{page:1,limit:20,total:t.length,total_pages:1}}}const Bn="2026-08-05T10:00:00Z",Un="2026-08-04T10:00:00Z",x1=[{id:"mem_1",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"admin",name:"Admin"}],joined_at:"2026-08-04T10:00:00Z",last_active_at:"2024-12-01T08:30:00Z",created_at:"2024-01-15T10:00:00Z",updated_at:"2024-12-01T08:30:00Z",object:"member",user:{id:"user_1",email:"alice@example.com",email_verified:!0,family_name:"Smith",given_name:"Alice",name:"Alice Smith",picture:"",status:"active",username:"alice"}},{id:"mem_2",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"manager",name:"Manager"}],joined_at:"2024-02-10T11:00:00Z",last_active_at:"2024-11-28T14:20:00Z",created_at:"2024-02-10T11:00:00Z",updated_at:"2024-11-28T14:20:00Z",object:"member",user:{id:"user_2",email:"bob@example.com",email_verified:!0,family_name:"Johnson",given_name:"Bob",name:"Bob Johnson",picture:"",status:"active",username:"bob"}},{id:"mem_3",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"developer",name:"Developer"}],joined_at:"2024-03-20T09:00:00Z",last_active_at:"2024-12-02T16:45:00Z",created_at:"2024-03-20T09:00:00Z",updated_at:"2024-12-02T16:45:00Z",object:"member",user:{id:"user_3",email:"charlie@example.com",email_verified:!0,family_name:"Davis",given_name:"Charlie",name:"Charlie Davis",picture:"",status:"active",username:"charlie"}},{id:"mem_4",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"viewer",name:"Viewer"}],joined_at:"2024-04-05T13:30:00Z",last_active_at:"2024-11-20T10:00:00Z",created_at:"2024-04-05T13:30:00Z",updated_at:"2024-11-20T10:00:00Z",object:"member",user:{id:"user_4",email:"diana@example.com",email_verified:!0,family_name:"Evans",given_name:"Diana",name:"Diana Evans",picture:"https://ui-avatars.com/api/?name=Diana+Evans&background=random",status:"active",username:"diana"}},{id:"mem_5",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"developer",name:"Developer"}],joined_at:"2024-05-12T08:00:00Z",last_active_at:"2024-12-03T09:15:00Z",created_at:"2024-05-12T08:00:00Z",updated_at:"2024-12-03T09:15:00Z",object:"member",user:{id:"user_5",email:"eve@example.com",email_verified:!0,family_name:"Foster",given_name:"Eve",name:"Eve Foster",picture:"https://ui-avatars.com/api/?name=Eve+Foster&background=random",status:"active",username:"eve"}},{id:"mem_6",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"manager",name:"Manager"}],joined_at:Bn,last_active_at:Bn,created_at:Bn,updated_at:Bn,object:"member",user:{id:"user_6",email:"fiona@example.com",email_verified:!0,family_name:"Green",given_name:"Fiona",name:"Fiona Green",picture:"https://ui-avatars.com/api/?name=Fiona+Green&background=random",status:"active",username:"fiona"}},{id:"mem_7",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"viewer",name:"Viewer"}],joined_at:Un,last_active_at:Un,created_at:Un,updated_at:Un,object:"member",user:{id:"user_7",email:"george@example.com",email_verified:!0,family_name:"Hughes",given_name:"George",name:"George Hughes",picture:"https://ui-avatars.com/api/?name=George+Hughes&background=random",status:"active",username:"george"}}];function O1(e){let t=[...x1];if(e!=null&&e.search){const d=e.search.toLowerCase();t=t.filter(c=>c.user.name.toLowerCase().includes(d)||c.user.email.toLowerCase().includes(d))}if(e!=null&&e.roles){const d=e.roles.split(",");t=t.filter(c=>c.roles.some(m=>d.includes(m.key)))}const r=(e==null?void 0:e.page)||1,n=(e==null?void 0:e.limit)||5,o=(r-1)*n,i=o+n;return{data:t.slice(o,i),object:"list",pagination:{page:r,limit:n,total:t.length,total_pages:Math.ceil(t.length/n)}}}const R1=[{id:"inv_1",organization_id:"org_123",invitee_email:"frank@example.com",roles:[{key:"viewer",name:"Viewer"}],status:"pending",invited_by:{id:"user_1",name:"Alice Smith"},created_at:Date.now()/1e3-86400*2,updated_at:Date.now()/1e3-86400*2,expires_at:Date.now()/1e3+86400*5,last_sent_at:Date.now()/1e3-86400*2,resend_count:0,object:"invitation"},{id:"inv_2",organization_id:"org_123",invitee_email:"grace@example.com",roles:[{key:"manager",name:"Manager"}],status:"pending",invited_by:{id:"user_2",name:"Bob Johnson"},created_at:Date.now()/1e3-86400*10,updated_at:Date.now()/1e3-86400*10,expires_at:Date.now()/1e3+86400*1,last_sent_at:Date.now()/1e3-86400*3,resend_count:2,object:"invitation"},{id:"inv_3",organization_id:"org_123",invitee_email:"henry@example.com",roles:[{key:"developer",name:"Developer"}],status:"accepted",invited_by:{id:"user_3",name:"Charlie Davis"},created_at:Date.now()/1e3-86400*30,updated_at:Date.now()/1e3-86400*28,expires_at:Date.now()/1e3-86400*10,last_sent_at:Date.now()/1e3-86400*30,resend_count:0,accepted_at:Date.now()/1e3-86400*28,object:"invitation"},{id:"inv_4",organization_id:"org_123",invitee_email:"irene@example.com",roles:[{key:"viewer",name:"Viewer"}],status:"expired",invited_by:{id:"user_4",name:"Diana Evans"},created_at:Date.now()/1e3-86400*15,updated_at:Date.now()/1e3-86400*15,expires_at:Date.now()/1e3-86400*5,last_sent_at:Date.now()/1e3-86400*15,resend_count:1,object:"invitation"},{id:"inv_5",organization_id:"org_123",invitee_email:"jack@example.com",roles:[{key:"admin",name:"Admin"}],status:"pending",invited_by:{id:"user_1",name:"Alice Smith"},created_at:Date.now()/1e3-86400*1,updated_at:Date.now()/1e3-86400*1,expires_at:Date.now()/1e3+86400*7,last_sent_at:Date.now()/1e3-86400*1,resend_count:0,object:"invitation"}];function I1(e){let t=[...R1];if(e!=null&&e.search){const c=e.search.toLowerCase();t=t.filter(m=>m.invitee_email.toLowerCase().includes(c))}if(e!=null&&e.roles){const c=e.roles.split(",");t=t.filter(m=>m.roles.some(v=>c.includes(v.key)))}let r=e!=null&&e.status?e.status.split(","):["pending"];r.length>0&&r[0]!==""&&(t=t.filter(c=>r.includes(c.status)));const n=(e==null?void 0:e.page)||1,o=(e==null?void 0:e.limit)||5,i=(n-1)*o,s=i+o;return{data:t.slice(i,s),object:"list",pagination:{page:n,limit:o,total:t.length,total_pages:Math.ceil(t.length/o)}}}var A1=Object.defineProperty,V=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&A1(t,r,o),o};class j extends f{constructor(){super(...arguments),this.mode="PAGE",this.title="Member Management",this.description="Manage member access, roles, and invitations",this.organizationId="",this.isOpen=!1,this.monitoringFlag=!1,this.membersSearchTerm="",this.invitationsSearchTerm="",this.members=[],this.invitations=[],this.membersLoading=!1,this.invitationsLoading=!1,this.useMockData=!1,this.membersPage=1,this.membersTotalPages=0,this.invitationsPage=1,this.invitationsTotalPages=0,this.membersTotal=0,this.invitationsTotal=0,this.rowsPerPage=5,this.inviteDrawerId="pont-member-invite",this.availableRoles=[],this.isLoadingRoles=!1,this._rolesLoaded=!1,this.memberFilters={roles:[]},this.invitationFilters={roles:[],status:[]},this.invitationStatusOptions=[{value:"pending",label:"Pending"},{value:"accepted",label:"Accepted"},{value:"expired",label:"Expired"}],this.selectedMember=null,this.actionModalOpen=!1,this.actionModalConfig={title:"",description:"",confirmLabel:"Confirm",cancelLabel:"Cancel",variant:"default",onConfirm:()=>{},onCancel:()=>{},warningText:""},this.manageRolesDrawerId="pont-manage-roles",this._handleOpen=()=>{this.mode==="MODAL"&&(this.isOpen=!0)},this._handleClose=()=>{this.mode==="MODAL"&&(this.isOpen=!1)},this.loadData=async()=>{this.organizationId&&(await this.loadMembers(),await this.loadInvitations(),this.tryRemoveFallback())}}async openActionModal(t){this.actionModalConfig={...this.actionModalConfig,...t},this.actionModalOpen=!1,this.requestUpdate(),await this.updateComplete,this.actionModalOpen=!0}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r?r.remove():console.warn("fallback not found")})}connectedCallback(){super.connectedCallback(),window.addEventListener("open-member-management",this._handleOpen),window.addEventListener("close-member-management",this._handleClose),document.addEventListener("open-member-management",this._handleOpen),document.addEventListener("close-member-management",this._handleClose),window.addEventListener("invite-members-success",this.loadData),window.addEventListener("update-members-role",this.loadData)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("open-member-management",this._handleOpen),window.removeEventListener("close-member-management",this._handleClose),document.removeEventListener("open-member-management",this._handleOpen),document.removeEventListener("close-member-management",this._handleClose),window.removeEventListener("invite-members-success",this.loadData),window.removeEventListener("update-members-role",this.loadData),this._membersSearchDebounceTimer&&window.clearTimeout(this._membersSearchDebounceTimer),this._invitationsSearchDebounceTimer&&window.clearTimeout(this._invitationsSearchDebounceTimer)}firstUpdated(){this.isOpen=this.mode==="PAGE",this.loadData(),this.organizationId&&!this._rolesLoaded&&this.loadRoles()}updated(t){t.has("mode")&&(this.isOpen=this.mode==="PAGE"),t.has("organizationId")&&this.organizationId&&!this._rolesLoaded&&this.loadRoles()}async loadRoles(){if(!(!this.organizationId||this._rolesLoaded))try{this.isLoadingRoles=!0;let t;if(this.useMockData)t=E1({resource_id:this.organizationId,resource_type:"organization"});else{const r={resource_id:this.organizationId,resource_type:"organization"};t=await yl(r)}this.availableRoles=t.data.map(r=>({value:r.key||r.name,label:r.name})),this._rolesLoaded=!0}catch(t){console.error("Failed to load roles:",t)}finally{this.isLoadingRoles=!1}}async loadMembers(t=1,r=this.rowsPerPage,n,o){try{this.membersLoading=!0;const i={page:t,limit:r};n&&(i.search=n);const s=o||this.memberFilters;s.roles&&s.roles.length&&(i.roles=s.roles.join(","));let d;this.useMockData?d=O1(i):d=await jP(this.organizationId,i),this.members=d.data,this.membersPage=d.pagination.page,this.membersTotalPages=d.pagination.total_pages,this.membersTotal=d.pagination.total,this.useMockData=!1}catch(i){console.error("[pont-member-management] Failed loading members:",i)}finally{this.membersLoading=!1}}async loadInvitations(t=1,r=this.rowsPerPage,n,o){try{this.invitationsLoading=!0;const i={page:t,limit:r};n&&(i.search=n);const s=o||this.invitationFilters;let d="pending";s.status&&s.status.length>0&&(d=s.status.join(",")),i.status=d,s.roles&&s.roles.length&&(i.roles=s.roles.join(","));let c;this.useMockData?c=I1(i):c=await KP(this.organizationId,i),this.invitations=c.data,this.invitationsPage=c.pagination.page,this.invitationsTotalPages=c.pagination.total_pages,this.invitationsTotal=c.pagination.total}catch(i){console.error("[pont-member-management] Failed loading invitations:",i)}finally{this.invitationsLoading=!1}}handleMembersPageChange(t){const r=t.detail.page;this.loadMembers(r,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsPageChange(t){const r=t.detail.page;this.loadInvitations(r,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersSearchChange(t){this.membersSearchTerm=t.detail.searchTerm||"",this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm.trim()?this.membersSearchTerm:void 0,this.memberFilters)}handleInvitationsSearchChange(t){this.invitationsSearchTerm=t.detail.searchTerm||"",this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm.trim()?this.invitationsSearchTerm:void 0,this.invitationFilters)}handleMembersFilterChange(t){const r=t.detail.roles||[];this.memberFilters={roles:r},this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsFilterChange(t){const r=t.detail||{};this.invitationFilters={roles:r.roles||[],status:r.status||[]},this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersClearFilters(){this.memberFilters={roles:[]},this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsClearFilters(){this.invitationFilters={roles:[],status:[]},this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersRemoveFilter(t){const r=t.detail.filterValue;this.memberFilters={...this.memberFilters,roles:this.memberFilters.roles.filter(n=>n!==r)},this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsRemoveFilter(t){const r=t.detail.filterValue;this.invitationFilters={...this.invitationFilters,roles:this.invitationFilters.roles.filter(n=>n!==r),status:this.invitationFilters.status.filter(n=>n!==r)},this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersRowsPerPageChange(t){const r=t.detail.rowsPerPage;this.rowsPerPage=r,this.loadMembers(1,r,this.membersSearchTerm,this.memberFilters)}handleInvitationsRowsPerPageChange(t){const r=t.detail.rowsPerPage;this.rowsPerPage=r,this.loadInvitations(1,r,this.invitationsSearchTerm,this.invitationFilters)}handleRefresh(t){t==="members"?this.loadMembers(this.membersPage,this.rowsPerPage,this.membersSearchTerm,this.memberFilters):this.loadInvitations(this.invitationsPage,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}openManageRoles(t){const r=t.detail;this.selectedMember=r,setTimeout(()=>{document.dispatchEvent(new CustomEvent("open-sidedrawer",{detail:{id:this.manageRolesDrawerId,side:"right"},bubbles:!0,composed:!0}))},50)}handleSuspendMember(t){var n,o;const r=t.detail;this.openActionModal({title:"Suspend User",description:l`
4330
+ `}};Yt([a({attribute:!1})],Ut.prototype,"invitations",2);Yt([a({type:Boolean,attribute:!1})],Ut.prototype,"invitationsLoading",2);Yt([a({type:String})],Ut.prototype,"searchTerm",2);Yt([a({type:Object,attribute:!1})],Ut.prototype,"invitationFilters",2);Yt([a({type:Array,attribute:!1})],Ut.prototype,"availableRoles",2);Yt([a({type:Array,attribute:!1})],Ut.prototype,"statusOptions",2);Yt([a({type:Number})],Ut.prototype,"invitationsPage",2);Yt([a({type:Number})],Ut.prototype,"invitationsTotalPages",2);Yt([a({type:Number})],Ut.prototype,"invitationsTotal",2);Yt([a({type:Number})],Ut.prototype,"rowsPerPage",2);Yt([g()],Ut.prototype,"_searchDebounceTimer",2);Ut=Yt([p("pont-member-management-invitations-panel")],Ut);var or=(e=>(e.MEMBERS="Members",e.INVITATIONS="Invitations",e))(or||{});function E1(e){const t=[{key:"admin",name:"Admin",description:"Full access",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["*"],permission_count:10,assignment_count:2,inheritance:{parent_role_keys:[],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3},{key:"manager",name:"Manager",description:"Can manage projects and members",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["read:projects","write:projects","read:members"],permission_count:3,assignment_count:4,inheritance:{parent_role_keys:["admin"],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3},{key:"developer",name:"Developer",description:"Can read and write code",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["read:repos","write:repos"],permission_count:2,assignment_count:6,inheritance:{parent_role_keys:[],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3},{key:"viewer",name:"Viewer",description:"Read-only access",type:"system",resource_type:"organization",resource_id:"org_123",permissions:["read:projects"],permission_count:1,assignment_count:8,inheritance:{parent_role_keys:[],relation:""},metadata:{},object:"role",created_at:Date.now()/1e3,updated_at:Date.now()/1e3}];return{data:t,object:"list",pagination:{page:1,limit:20,total:t.length,total_pages:1}}}const Un="2026-08-05T10:00:00Z",jn="2026-08-04T10:00:00Z",x1=[{id:"mem_1",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"admin",name:"Admin"}],joined_at:"2026-08-04T10:00:00Z",last_active_at:"2024-12-01T08:30:00Z",created_at:"2024-01-15T10:00:00Z",updated_at:"2024-12-01T08:30:00Z",object:"member",user:{id:"user_1",email:"alice@example.com",email_verified:!0,family_name:"Smith",given_name:"Alice",name:"Alice Smith",picture:"",status:"active",username:"alice"}},{id:"mem_2",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"manager",name:"Manager"}],joined_at:"2024-02-10T11:00:00Z",last_active_at:"2024-11-28T14:20:00Z",created_at:"2024-02-10T11:00:00Z",updated_at:"2024-11-28T14:20:00Z",object:"member",user:{id:"user_2",email:"bob@example.com",email_verified:!0,family_name:"Johnson",given_name:"Bob",name:"Bob Johnson",picture:"",status:"active",username:"bob"}},{id:"mem_3",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"developer",name:"Developer"}],joined_at:"2024-03-20T09:00:00Z",last_active_at:"2024-12-02T16:45:00Z",created_at:"2024-03-20T09:00:00Z",updated_at:"2024-12-02T16:45:00Z",object:"member",user:{id:"user_3",email:"charlie@example.com",email_verified:!0,family_name:"Davis",given_name:"Charlie",name:"Charlie Davis",picture:"",status:"active",username:"charlie"}},{id:"mem_4",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"viewer",name:"Viewer"}],joined_at:"2024-04-05T13:30:00Z",last_active_at:"2024-11-20T10:00:00Z",created_at:"2024-04-05T13:30:00Z",updated_at:"2024-11-20T10:00:00Z",object:"member",user:{id:"user_4",email:"diana@example.com",email_verified:!0,family_name:"Evans",given_name:"Diana",name:"Diana Evans",picture:"https://ui-avatars.com/api/?name=Diana+Evans&background=random",status:"active",username:"diana"}},{id:"mem_5",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"developer",name:"Developer"}],joined_at:"2024-05-12T08:00:00Z",last_active_at:"2024-12-03T09:15:00Z",created_at:"2024-05-12T08:00:00Z",updated_at:"2024-12-03T09:15:00Z",object:"member",user:{id:"user_5",email:"eve@example.com",email_verified:!0,family_name:"Foster",given_name:"Eve",name:"Eve Foster",picture:"https://ui-avatars.com/api/?name=Eve+Foster&background=random",status:"active",username:"eve"}},{id:"mem_6",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"manager",name:"Manager"}],joined_at:Un,last_active_at:Un,created_at:Un,updated_at:Un,object:"member",user:{id:"user_6",email:"fiona@example.com",email_verified:!0,family_name:"Green",given_name:"Fiona",name:"Fiona Green",picture:"https://ui-avatars.com/api/?name=Fiona+Green&background=random",status:"active",username:"fiona"}},{id:"mem_7",organization_id:"org_123",organization_name:"Acme Corp",organization_slug:"acme",instance_id:"inst_1",roles:[{key:"viewer",name:"Viewer"}],joined_at:jn,last_active_at:jn,created_at:jn,updated_at:jn,object:"member",user:{id:"user_7",email:"george@example.com",email_verified:!0,family_name:"Hughes",given_name:"George",name:"George Hughes",picture:"https://ui-avatars.com/api/?name=George+Hughes&background=random",status:"active",username:"george"}}];function O1(e){let t=[...x1];if(e!=null&&e.search){const d=e.search.toLowerCase();t=t.filter(c=>c.user.name.toLowerCase().includes(d)||c.user.email.toLowerCase().includes(d))}if(e!=null&&e.roles){const d=e.roles.split(",");t=t.filter(c=>c.roles.some(m=>d.includes(m.key)))}const r=(e==null?void 0:e.page)||1,n=(e==null?void 0:e.limit)||5,o=(r-1)*n,i=o+n;return{data:t.slice(o,i),object:"list",pagination:{page:r,limit:n,total:t.length,total_pages:Math.ceil(t.length/n)}}}const R1=[{id:"inv_1",organization_id:"org_123",invitee_email:"frank@example.com",roles:[{key:"viewer",name:"Viewer"}],status:"pending",invited_by:{id:"user_1",name:"Alice Smith"},created_at:Date.now()/1e3-86400*2,updated_at:Date.now()/1e3-86400*2,expires_at:Date.now()/1e3+86400*5,last_sent_at:Date.now()/1e3-86400*2,resend_count:0,object:"invitation"},{id:"inv_2",organization_id:"org_123",invitee_email:"grace@example.com",roles:[{key:"manager",name:"Manager"}],status:"pending",invited_by:{id:"user_2",name:"Bob Johnson"},created_at:Date.now()/1e3-86400*10,updated_at:Date.now()/1e3-86400*10,expires_at:Date.now()/1e3+86400*1,last_sent_at:Date.now()/1e3-86400*3,resend_count:2,object:"invitation"},{id:"inv_3",organization_id:"org_123",invitee_email:"henry@example.com",roles:[{key:"developer",name:"Developer"}],status:"accepted",invited_by:{id:"user_3",name:"Charlie Davis"},created_at:Date.now()/1e3-86400*30,updated_at:Date.now()/1e3-86400*28,expires_at:Date.now()/1e3-86400*10,last_sent_at:Date.now()/1e3-86400*30,resend_count:0,accepted_at:Date.now()/1e3-86400*28,object:"invitation"},{id:"inv_4",organization_id:"org_123",invitee_email:"irene@example.com",roles:[{key:"viewer",name:"Viewer"}],status:"expired",invited_by:{id:"user_4",name:"Diana Evans"},created_at:Date.now()/1e3-86400*15,updated_at:Date.now()/1e3-86400*15,expires_at:Date.now()/1e3-86400*5,last_sent_at:Date.now()/1e3-86400*15,resend_count:1,object:"invitation"},{id:"inv_5",organization_id:"org_123",invitee_email:"jack@example.com",roles:[{key:"admin",name:"Admin"}],status:"pending",invited_by:{id:"user_1",name:"Alice Smith"},created_at:Date.now()/1e3-86400*1,updated_at:Date.now()/1e3-86400*1,expires_at:Date.now()/1e3+86400*7,last_sent_at:Date.now()/1e3-86400*1,resend_count:0,object:"invitation"}];function I1(e){let t=[...R1];if(e!=null&&e.search){const c=e.search.toLowerCase();t=t.filter(m=>m.invitee_email.toLowerCase().includes(c))}if(e!=null&&e.roles){const c=e.roles.split(",");t=t.filter(m=>m.roles.some(v=>c.includes(v.key)))}let r=e!=null&&e.status?e.status.split(","):["pending"];r.length>0&&r[0]!==""&&(t=t.filter(c=>r.includes(c.status)));const n=(e==null?void 0:e.page)||1,o=(e==null?void 0:e.limit)||5,i=(n-1)*o,s=i+o;return{data:t.slice(i,s),object:"list",pagination:{page:n,limit:o,total:t.length,total_pages:Math.ceil(t.length/o)}}}var A1=Object.defineProperty,V=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&A1(t,r,o),o};class j extends f{constructor(){super(...arguments),this.mode="PAGE",this.title="Member Management",this.description="Manage member access, roles, and invitations",this.organizationId="",this.isOpen=!1,this.monitoringFlag=!1,this.membersSearchTerm="",this.invitationsSearchTerm="",this.members=[],this.invitations=[],this.membersLoading=!1,this.invitationsLoading=!1,this.useMockData=!1,this.membersPage=1,this.membersTotalPages=0,this.invitationsPage=1,this.invitationsTotalPages=0,this.membersTotal=0,this.invitationsTotal=0,this.rowsPerPage=5,this.inviteDrawerId="pont-member-invite",this.availableRoles=[],this.isLoadingRoles=!1,this._rolesLoaded=!1,this.memberFilters={roles:[]},this.invitationFilters={roles:[],status:[]},this.invitationStatusOptions=[{value:"pending",label:"Pending"},{value:"accepted",label:"Accepted"},{value:"expired",label:"Expired"}],this.selectedMember=null,this.actionModalOpen=!1,this.actionModalConfig={title:"",description:"",confirmLabel:"Confirm",cancelLabel:"Cancel",variant:"default",onConfirm:()=>{},onCancel:()=>{},warningText:""},this.manageRolesDrawerId="pont-manage-roles",this._handleOpen=()=>{this.mode==="MODAL"&&(this.isOpen=!0)},this._handleClose=()=>{this.mode==="MODAL"&&(this.isOpen=!1)},this.loadData=async()=>{this.organizationId&&(await this.loadMembers(),await this.loadInvitations(),this.tryRemoveFallback())}}async openActionModal(t){this.actionModalConfig={...this.actionModalConfig,...t},this.actionModalOpen=!1,this.requestUpdate(),await this.updateComplete,this.actionModalOpen=!0}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r?r.remove():console.warn("fallback not found")})}connectedCallback(){super.connectedCallback(),window.addEventListener("open-member-management",this._handleOpen),window.addEventListener("close-member-management",this._handleClose),document.addEventListener("open-member-management",this._handleOpen),document.addEventListener("close-member-management",this._handleClose),window.addEventListener("invite-members-success",this.loadData),window.addEventListener("update-members-role",this.loadData)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("open-member-management",this._handleOpen),window.removeEventListener("close-member-management",this._handleClose),document.removeEventListener("open-member-management",this._handleOpen),document.removeEventListener("close-member-management",this._handleClose),window.removeEventListener("invite-members-success",this.loadData),window.removeEventListener("update-members-role",this.loadData),this._membersSearchDebounceTimer&&window.clearTimeout(this._membersSearchDebounceTimer),this._invitationsSearchDebounceTimer&&window.clearTimeout(this._invitationsSearchDebounceTimer)}firstUpdated(){this.isOpen=this.mode==="PAGE",this.loadData(),this.organizationId&&!this._rolesLoaded&&this.loadRoles()}updated(t){t.has("mode")&&(this.isOpen=this.mode==="PAGE"),t.has("organizationId")&&this.organizationId&&!this._rolesLoaded&&this.loadRoles()}async loadRoles(){if(!(!this.organizationId||this._rolesLoaded))try{this.isLoadingRoles=!0;let t;if(this.useMockData)t=E1({resource_id:this.organizationId,resource_type:"organization"});else{const r={resource_id:this.organizationId,resource_type:"organization"};t=await yl(r)}this.availableRoles=t.data.map(r=>({value:r.key||r.name,label:r.name})),this._rolesLoaded=!0}catch(t){console.error("Failed to load roles:",t)}finally{this.isLoadingRoles=!1}}async loadMembers(t=1,r=this.rowsPerPage,n,o){try{this.membersLoading=!0;const i={page:t,limit:r};n&&(i.search=n);const s=o||this.memberFilters;s.roles&&s.roles.length&&(i.roles=s.roles.join(","));let d;this.useMockData?d=O1(i):d=await jP(this.organizationId,i),this.members=d.data,this.membersPage=d.pagination.page,this.membersTotalPages=d.pagination.total_pages,this.membersTotal=d.pagination.total,this.useMockData=!1}catch(i){console.error("[pont-member-management] Failed loading members:",i)}finally{this.membersLoading=!1}}async loadInvitations(t=1,r=this.rowsPerPage,n,o){try{this.invitationsLoading=!0;const i={page:t,limit:r};n&&(i.search=n);const s=o||this.invitationFilters;let d="pending";s.status&&s.status.length>0&&(d=s.status.join(",")),i.status=d,s.roles&&s.roles.length&&(i.roles=s.roles.join(","));let c;this.useMockData?c=I1(i):c=await KP(this.organizationId,i),this.invitations=c.data,this.invitationsPage=c.pagination.page,this.invitationsTotalPages=c.pagination.total_pages,this.invitationsTotal=c.pagination.total}catch(i){console.error("[pont-member-management] Failed loading invitations:",i)}finally{this.invitationsLoading=!1}}handleMembersPageChange(t){const r=t.detail.page;this.loadMembers(r,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsPageChange(t){const r=t.detail.page;this.loadInvitations(r,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersSearchChange(t){this.membersSearchTerm=t.detail.searchTerm||"",this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm.trim()?this.membersSearchTerm:void 0,this.memberFilters)}handleInvitationsSearchChange(t){this.invitationsSearchTerm=t.detail.searchTerm||"",this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm.trim()?this.invitationsSearchTerm:void 0,this.invitationFilters)}handleMembersFilterChange(t){const r=t.detail.roles||[];this.memberFilters={roles:r},this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsFilterChange(t){const r=t.detail||{};this.invitationFilters={roles:r.roles||[],status:r.status||[]},this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersClearFilters(){this.memberFilters={roles:[]},this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsClearFilters(){this.invitationFilters={roles:[],status:[]},this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersRemoveFilter(t){const r=t.detail.filterValue;this.memberFilters={...this.memberFilters,roles:this.memberFilters.roles.filter(n=>n!==r)},this.loadMembers(1,this.rowsPerPage,this.membersSearchTerm,this.memberFilters)}handleInvitationsRemoveFilter(t){const r=t.detail.filterValue;this.invitationFilters={...this.invitationFilters,roles:this.invitationFilters.roles.filter(n=>n!==r),status:this.invitationFilters.status.filter(n=>n!==r)},this.loadInvitations(1,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}handleMembersRowsPerPageChange(t){const r=t.detail.rowsPerPage;this.rowsPerPage=r,this.loadMembers(1,r,this.membersSearchTerm,this.memberFilters)}handleInvitationsRowsPerPageChange(t){const r=t.detail.rowsPerPage;this.rowsPerPage=r,this.loadInvitations(1,r,this.invitationsSearchTerm,this.invitationFilters)}handleRefresh(t){t==="members"?this.loadMembers(this.membersPage,this.rowsPerPage,this.membersSearchTerm,this.memberFilters):this.loadInvitations(this.invitationsPage,this.rowsPerPage,this.invitationsSearchTerm,this.invitationFilters)}openManageRoles(t){const r=t.detail;this.selectedMember=r,setTimeout(()=>{document.dispatchEvent(new CustomEvent("open-sidedrawer",{detail:{id:this.manageRolesDrawerId,side:"right"},bubbles:!0,composed:!0}))},50)}handleSuspendMember(t){var n,o;const r=t.detail;this.openActionModal({title:"Suspend User",description:l`
4331
4331
  <p part="description">
4332
4332
  Are you sure you want to suspend
4333
4333
  <span part="highlight-name"
@@ -4505,13 +4505,13 @@
4505
4505
  `}};Hi([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);Hi([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);Hi([a({attribute:!1})],exports.PreviewComponent.prototype,"branding",2);exports.PreviewComponent=Hi([p("pont-preview")],exports.PreviewComponent);var L1=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,Gi=(e,t,r,n)=>{for(var o=n>1?void 0:n?F1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&L1(t,r,o),o};exports.PontInvitation=class extends f{constructor(){super(...arguments),this.renderSpec=null,this.branding=Zr,this.locales="",this.__flowStarted=!1,this.__initialized=!1,this.__previousLocale=null}createRenderRoot(){return this}firstUpdated(){this.__initialized||(this.__initialized=!0,this.__previousLocale=this.locales,this.startAuthFlow())}updated(t){if(t.has("locales")){const r=this.locales;this.__previousLocale!==r&&(this.__previousLocale=r,this.__flowStarted=!1,this.startAuthFlow())}t.has("renderSpec")&&this.renderSpec&&this.tryRemoveFallback()}async startAuthFlow(){if(!this.__flowStarted){this.__flowStarted=!0,await vl(Y);try{await Y.startLoginflow(),this.tryRemoveFallback()}catch(t){console.error("[pont-invitation] Accepting the invitation failed:",t),this.__flowStarted=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const t=this.querySelector('[part="fallback"]');t==null||t.remove()})}render(){return this.renderSpec?l`<pont-layout
4506
4506
  .renderSpec=${this.renderSpec}
4507
4507
  .branding=${this.branding}
4508
- ></pont-layout>`:l``}};Gi([tt({context:Li,subscribe:!0})],exports.PontInvitation.prototype,"renderSpec",2);Gi([tt({context:jo,subscribe:!0})],exports.PontInvitation.prototype,"branding",2);Gi([tt({context:Fi,subscribe:!0})],exports.PontInvitation.prototype,"locales",2);exports.PontInvitation=Gi([p("pont-invitation")],exports.PontInvitation);var k1=Object.defineProperty,M1=Object.getOwnPropertyDescriptor,Ki=(e,t,r,n)=>{for(var o=n>1?void 0:n?M1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&k1(t,r,o),o};exports.PontSignIn=class extends f{constructor(){super(...arguments),this.renderSpec=null,this.branding=Zr,this.locales="",this.__flowStarted=!1,this.__initialized=!1,this.__previousLocale=null}createRenderRoot(){return this}firstUpdated(){this.__initialized||(this.__initialized=!0,this.__previousLocale=this.locales,this.startAuthFlow())}updated(t){if(t.has("locales")){const r=this.locales;this.__previousLocale!==r&&(this.__previousLocale=r,this.__flowStarted=!1,this.startAuthFlow())}this.renderSpec&&this.tryRemoveFallback()}async startAuthFlow(){if(!this.__flowStarted){this.__flowStarted=!0,await vl(Y);try{await Y.startLoginflow("sys_signin-flow-passkey"),this.tryRemoveFallback()}catch(t){console.error("[pont-signin] Auth failed:",t),this.__flowStarted=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}render(){return this.renderSpec?l`<pont-layout
4508
+ ></pont-layout>`:l``}};Gi([rt({context:Li,subscribe:!0})],exports.PontInvitation.prototype,"renderSpec",2);Gi([rt({context:jo,subscribe:!0})],exports.PontInvitation.prototype,"branding",2);Gi([rt({context:Fi,subscribe:!0})],exports.PontInvitation.prototype,"locales",2);exports.PontInvitation=Gi([p("pont-invitation")],exports.PontInvitation);var k1=Object.defineProperty,M1=Object.getOwnPropertyDescriptor,Ki=(e,t,r,n)=>{for(var o=n>1?void 0:n?M1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&k1(t,r,o),o};exports.PontSignIn=class extends f{constructor(){super(...arguments),this.renderSpec=null,this.branding=Zr,this.locales="",this.__flowStarted=!1,this.__initialized=!1,this.__previousLocale=null}createRenderRoot(){return this}firstUpdated(){this.__initialized||(this.__initialized=!0,this.__previousLocale=this.locales,this.startAuthFlow())}updated(t){if(t.has("locales")){const r=this.locales;this.__previousLocale!==r&&(this.__previousLocale=r,this.__flowStarted=!1,this.startAuthFlow())}this.renderSpec&&this.tryRemoveFallback()}async startAuthFlow(){if(!this.__flowStarted){this.__flowStarted=!0,await vl(Y);try{await Y.startLoginflow("sys_signin-flow-passkey"),this.tryRemoveFallback()}catch(t){console.error("[pont-signin] Auth failed:",t),this.__flowStarted=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}render(){return this.renderSpec?l`<pont-layout
4509
4509
  .renderSpec=${this.renderSpec}
4510
4510
  .branding=${this.branding}
4511
- ></pont-layout>`:l``}};Ki([tt({context:Li,subscribe:!0})],exports.PontSignIn.prototype,"renderSpec",2);Ki([tt({context:jo,subscribe:!0})],exports.PontSignIn.prototype,"branding",2);Ki([tt({context:Fi,subscribe:!0})],exports.PontSignIn.prototype,"locales",2);exports.PontSignIn=Ki([p("pont-signin")],exports.PontSignIn);var N1=Object.defineProperty,B1=Object.getOwnPropertyDescriptor,Wi=(e,t,r,n)=>{for(var o=n>1?void 0:n?B1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&N1(t,r,o),o};exports.PontSignUp=class extends f{constructor(){super(...arguments),this.renderSpec=null,this.branding=Zr,this.locales="",this.__flowStarted=!1,this.__initialized=!1,this.__previousLocale=null}createRenderRoot(){return this}firstUpdated(){this.__initialized||(this.__initialized=!0,this.__previousLocale=this.locales,this.startAuthFlow())}updated(t){if(t.has("locales")){const r=this.locales;this.__previousLocale!==r&&(this.__previousLocale=r,this.__flowStarted=!1,this.startAuthFlow())}t.has("renderSpec")&&this.renderSpec&&this.tryRemoveFallback()}async startAuthFlow(){if(!this.__flowStarted){this.__flowStarted=!0,await vl(Y);try{await Y.startLoginflow("sys_signup-flow"),this.tryRemoveFallback()}catch(t){console.error("[pont-signup] Auth failed:",t),this.__flowStarted=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}render(){return this.renderSpec?l`<pont-layout
4511
+ ></pont-layout>`:l``}};Ki([rt({context:Li,subscribe:!0})],exports.PontSignIn.prototype,"renderSpec",2);Ki([rt({context:jo,subscribe:!0})],exports.PontSignIn.prototype,"branding",2);Ki([rt({context:Fi,subscribe:!0})],exports.PontSignIn.prototype,"locales",2);exports.PontSignIn=Ki([p("pont-signin")],exports.PontSignIn);var N1=Object.defineProperty,B1=Object.getOwnPropertyDescriptor,Wi=(e,t,r,n)=>{for(var o=n>1?void 0:n?B1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&N1(t,r,o),o};exports.PontSignUp=class extends f{constructor(){super(...arguments),this.renderSpec=null,this.branding=Zr,this.locales="",this.__flowStarted=!1,this.__initialized=!1,this.__previousLocale=null}createRenderRoot(){return this}firstUpdated(){this.__initialized||(this.__initialized=!0,this.__previousLocale=this.locales,this.startAuthFlow())}updated(t){if(t.has("locales")){const r=this.locales;this.__previousLocale!==r&&(this.__previousLocale=r,this.__flowStarted=!1,this.startAuthFlow())}t.has("renderSpec")&&this.renderSpec&&this.tryRemoveFallback()}async startAuthFlow(){if(!this.__flowStarted){this.__flowStarted=!0,await vl(Y);try{await Y.startLoginflow("sys_signup-flow"),this.tryRemoveFallback()}catch(t){console.error("[pont-signup] Auth failed:",t),this.__flowStarted=!1}}}tryRemoveFallback(){requestAnimationFrame(()=>{const r=this.querySelector('[part="fallback"]');r==null||r.remove()})}render(){return this.renderSpec?l`<pont-layout
4512
4512
  .renderSpec=${this.renderSpec}
4513
4513
  .branding=${this.branding}
4514
- ></pont-layout>`:l``}};Wi([tt({context:Li,subscribe:!0})],exports.PontSignUp.prototype,"renderSpec",2);Wi([tt({context:jo,subscribe:!0})],exports.PontSignUp.prototype,"branding",2);Wi([tt({context:Fi,subscribe:!0})],exports.PontSignUp.prototype,"locales",2);exports.PontSignUp=Wi([p("pont-signup")],exports.PontSignUp);var U1=Object.defineProperty,Le=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&U1(t,r,o),o};class Yi extends f{constructor(){super(...arguments),this.isTrigger=!1,this.user={}}createRenderRoot(){return this}render(){const{name:t,email:r,avatar_url:n}=this.user||{};return l`
4514
+ ></pont-layout>`:l``}};Wi([rt({context:Li,subscribe:!0})],exports.PontSignUp.prototype,"renderSpec",2);Wi([rt({context:jo,subscribe:!0})],exports.PontSignUp.prototype,"branding",2);Wi([rt({context:Fi,subscribe:!0})],exports.PontSignUp.prototype,"locales",2);exports.PontSignUp=Wi([p("pont-signup")],exports.PontSignUp);var U1=Object.defineProperty,Le=(e,t,r,n)=>{for(var o=void 0,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(t,r,o)||o);return o&&U1(t,r,o),o};class Yi extends f{constructor(){super(...arguments),this.isTrigger=!1,this.user={}}createRenderRoot(){return this}render(){const{name:t,email:r,avatar_url:n}=this.user||{};return l`
4515
4515
  <div
4516
4516
  class=${zt("pont-flex pont-items-center pont-gap-2 pont-w-full",this.isTrigger?"pont-py-2":"")}
4517
4517
  >
@@ -4624,7 +4624,7 @@
4624
4624
  </pont-dropdown-menu-group>
4625
4625
  </pont-dropdown-menu-content>
4626
4626
  </pont-dropdown-menu>
4627
- `}_navigate(t){const r=new URL(t,window.location.href);r.pathname===window.location.pathname&&r.search===window.location.search||(window.location.href=t)}_handleMenuItemClick(t,r){t.stopPropagation();try{if(r&&typeof r.onClick=="function"){r.onClick(t,r),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{item:r},bubbles:!0,composed:!0}));return}if(r&&r.href){this._navigate(r.href),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{item:r},bubbles:!0,composed:!0}));return}}catch(n){console.error("[pont-account-menu] menu item click handler failed",n)}}}Le([a({type:String})],Fe.prototype,"accountSettingsPath");Le([a({attribute:!1})],Fe.prototype,"menuItems");Le([tt({context:Qr,subscribe:!0}),a({attribute:!1})],Fe.prototype,"auth");Le([g()],Fe.prototype,"user");Le([g()],Fe.prototype,"signedIn");Le([g()],Fe.prototype,"isLoading");Le([g()],Fe.prototype,"_itemStates");Le([g()],Fe.prototype,"_subMenuOpen");customElements.define("pont-account-menu",Fe);var j1=Object.defineProperty,q1=Object.getOwnPropertyDescriptor,Kh=(e,t,r,n)=>{for(var o=n>1?void 0:n?q1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&j1(t,r,o),o};exports.PontHint=class extends f{constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return l`<p class="pont-mt-2">${this.content}</p>`}};Kh([a({type:String})],exports.PontHint.prototype,"content",2);exports.PontHint=Kh([p("pont-hint")],exports.PontHint);var z1=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,ke=(e,t,r,n)=>{for(var o=n>1?void 0:n?V1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&z1(t,r,o),o};const H1=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;exports.MultiEmailInput=class extends f{constructor(){super(...arguments),this.label="",this.value=[],this.placeholder="Enter email addresses",this.disabled=!1,this.maxEmails=50,this.className="",this.inputValue="",this.error=null}createRenderRoot(){return this}validateEmail(t){return H1.test(t.trim())}addEmails(t){const r=[],n=[];for(const o of t){const i=o.trim();i&&(this.validateEmail(i)?!this.value.includes(i)&&!r.includes(i)&&r.push(i):n.push(i))}if(r.length>0){const o=[...this.value,...r].slice(0,this.maxEmails);this.value=o,this.inputValue="",this.error=null,o.length>=this.maxEmails&&(this.error=`Maximum ${this.maxEmails} emails allowed`),this.notifyChange(o)}n.length>0&&(this.error=`Invalid email${n.length>1?"s":""}: ${n.join(", ")}`)}notifyChange(t){var r;(r=this.onChange)==null||r.call(this,t),this.dispatchEvent(new CustomEvent("emails-changed",{detail:{emails:t},bubbles:!0,composed:!0}))}handleKeyDown(t){if(this.error&&this.inputValue!==""&&(this.error=null),["Enter",",",";"," "].includes(t.key)){t.preventDefault(),this.inputValue.trim()&&this.addEmails([this.inputValue]);return}if(t.key==="Backspace"&&!this.inputValue&&this.value.length>0){const r=this.value.slice(0,-1);this.value=r,this.error=null,this.notifyChange(r)}}handlePaste(t){var o;t.preventDefault();const n=(((o=t.clipboardData)==null?void 0:o.getData("text"))??"").split(/[;,\n\s]+/).map(i=>i.trim()).filter(Boolean);this.addEmails(n)}handleBlur(){this.inputValue.trim()&&this.addEmails([this.inputValue])}removeEmail(t){const r=this.value.filter(n=>n!==t);this.value=r,this.error=null,this.notifyChange(r)}render(){const t=this.disabled||this.value.length>=this.maxEmails;return l`
4627
+ `}_navigate(t){const r=new URL(t,window.location.href);r.pathname===window.location.pathname&&r.search===window.location.search||(window.location.href=t)}_handleMenuItemClick(t,r){t.stopPropagation();try{if(r&&typeof r.onClick=="function"){r.onClick(t,r),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{item:r},bubbles:!0,composed:!0}));return}if(r&&r.href){this._navigate(r.href),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{item:r},bubbles:!0,composed:!0}));return}}catch(n){console.error("[pont-account-menu] menu item click handler failed",n)}}}Le([a({type:String})],Fe.prototype,"accountSettingsPath");Le([a({attribute:!1})],Fe.prototype,"menuItems");Le([rt({context:Qr,subscribe:!0}),a({attribute:!1})],Fe.prototype,"auth");Le([g()],Fe.prototype,"user");Le([g()],Fe.prototype,"signedIn");Le([g()],Fe.prototype,"isLoading");Le([g()],Fe.prototype,"_itemStates");Le([g()],Fe.prototype,"_subMenuOpen");customElements.define("pont-account-menu",Fe);var j1=Object.defineProperty,q1=Object.getOwnPropertyDescriptor,Kh=(e,t,r,n)=>{for(var o=n>1?void 0:n?q1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&j1(t,r,o),o};exports.PontHint=class extends f{constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return l`<p class="pont-mt-2">${this.content}</p>`}};Kh([a({type:String})],exports.PontHint.prototype,"content",2);exports.PontHint=Kh([p("pont-hint")],exports.PontHint);var z1=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,ke=(e,t,r,n)=>{for(var o=n>1?void 0:n?V1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&z1(t,r,o),o};const H1=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;exports.MultiEmailInput=class extends f{constructor(){super(...arguments),this.label="",this.value=[],this.placeholder="Enter email addresses",this.disabled=!1,this.maxEmails=50,this.className="",this.inputValue="",this.error=null}createRenderRoot(){return this}validateEmail(t){return H1.test(t.trim())}addEmails(t){const r=[],n=[];for(const o of t){const i=o.trim();i&&(this.validateEmail(i)?!this.value.includes(i)&&!r.includes(i)&&r.push(i):n.push(i))}if(r.length>0){const o=[...this.value,...r].slice(0,this.maxEmails);this.value=o,this.inputValue="",this.error=null,o.length>=this.maxEmails&&(this.error=`Maximum ${this.maxEmails} emails allowed`),this.notifyChange(o)}n.length>0&&(this.error=`Invalid email${n.length>1?"s":""}: ${n.join(", ")}`)}notifyChange(t){var r;(r=this.onChange)==null||r.call(this,t),this.dispatchEvent(new CustomEvent("emails-changed",{detail:{emails:t},bubbles:!0,composed:!0}))}handleKeyDown(t){if(this.error&&this.inputValue!==""&&(this.error=null),["Enter",",",";"," "].includes(t.key)){t.preventDefault(),this.inputValue.trim()&&this.addEmails([this.inputValue]);return}if(t.key==="Backspace"&&!this.inputValue&&this.value.length>0){const r=this.value.slice(0,-1);this.value=r,this.error=null,this.notifyChange(r)}}handlePaste(t){var o;t.preventDefault();const n=(((o=t.clipboardData)==null?void 0:o.getData("text"))??"").split(/[;,\n\s]+/).map(i=>i.trim()).filter(Boolean);this.addEmails(n)}handleBlur(){this.inputValue.trim()&&this.addEmails([this.inputValue])}removeEmail(t){const r=this.value.filter(n=>n!==t);this.value=r,this.error=null,this.notifyChange(r)}render(){const t=this.disabled||this.value.length>=this.maxEmails;return l`
4628
4628
  <div class="pont-space-y-2 ${this.className}">
4629
4629
  ${this.label?l`<pont-label part="label">${this.label}</pont-label>`:h}
4630
4630
 
@@ -4763,7 +4763,7 @@
4763
4763
  ${this._cachedChildren}
4764
4764
  </div>
4765
4765
  </aside>
4766
- `}};Xr([a({type:String})],exports.PontSideDrawer.prototype,"drawer_id",2);Xr([a({type:Boolean})],exports.PontSideDrawer.prototype,"inplace",2);Xr([a({type:String})],exports.PontSideDrawer.prototype,"side",2);Xr([a({type:Boolean,reflect:!0})],exports.PontSideDrawer.prototype,"open",2);Xr([a({type:Boolean})],exports.PontSideDrawer.prototype,"closeOnOverlay",2);Xr([g()],exports.PontSideDrawer.prototype,"_mounted",2);exports.PontSideDrawer=Xr([p("pont-sidedrawer")],exports.PontSideDrawer);var Q1=Object.defineProperty,Z1=Object.getOwnPropertyDescriptor,Dn=(e,t,r,n)=>{for(var o=n>1?void 0:n?Z1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Q1(t,r,o),o};exports.PontMultiSelectFilter=class extends f{constructor(){super(...arguments),this.options=[],this.selected=[],this.placeholder="Filter…",this.label="Filter"}_handleToggle(t){const r=this.selected.includes(t)?this.selected.filter(n=>n!==t):[...this.selected,t];this.dispatchEvent(new CustomEvent("change",{detail:{selected:r},bubbles:!0,composed:!0}))}render(){return this.options.filter(r=>this.selected.includes(r.value)).map(r=>r.label).join(", ")||this.placeholder,l`
4766
+ `}};Xr([a({type:String})],exports.PontSideDrawer.prototype,"drawer_id",2);Xr([a({type:Boolean})],exports.PontSideDrawer.prototype,"inplace",2);Xr([a({type:String})],exports.PontSideDrawer.prototype,"side",2);Xr([a({type:Boolean,reflect:!0})],exports.PontSideDrawer.prototype,"open",2);Xr([a({type:Boolean})],exports.PontSideDrawer.prototype,"closeOnOverlay",2);Xr([g()],exports.PontSideDrawer.prototype,"_mounted",2);exports.PontSideDrawer=Xr([p("pont-sidedrawer")],exports.PontSideDrawer);var Q1=Object.defineProperty,Z1=Object.getOwnPropertyDescriptor,Ln=(e,t,r,n)=>{for(var o=n>1?void 0:n?Z1(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Q1(t,r,o),o};exports.PontMultiSelectFilter=class extends f{constructor(){super(...arguments),this.options=[],this.selected=[],this.placeholder="Filter…",this.label="Filter"}_handleToggle(t){const r=this.selected.includes(t)?this.selected.filter(n=>n!==t):[...this.selected,t];this.dispatchEvent(new CustomEvent("change",{detail:{selected:r},bubbles:!0,composed:!0}))}render(){return this.options.filter(r=>this.selected.includes(r.value)).map(r=>r.label).join(", ")||this.placeholder,l`
4767
4767
  <pont-dropdown-menu>
4768
4768
  <pont-dropdown-menu-trigger as-child>
4769
4769
  <pont-button variant="outline" size="default">
@@ -4795,7 +4795,7 @@
4795
4795
  </pont-dropdown-menu-group>
4796
4796
  </pont-dropdown-menu-content>
4797
4797
  </pont-dropdown-menu>
4798
- `}createRenderRoot(){return this}};Dn([a({type:Array})],exports.PontMultiSelectFilter.prototype,"options",2);Dn([a({type:Array})],exports.PontMultiSelectFilter.prototype,"selected",2);Dn([a({type:String})],exports.PontMultiSelectFilter.prototype,"placeholder",2);Dn([a({type:String})],exports.PontMultiSelectFilter.prototype,"label",2);exports.PontMultiSelectFilter=Dn([p("pont-multi-select-filter")],exports.PontMultiSelectFilter);const io={variant:"secondary",size:"default",content:"label",iconAlign:"start",label:"Continue with Passkey"},so={variant:"outline",size:"default",content:"icon-label",iconAlign:"start",prompt:"Continue with"},ao={variant:"default",size:"default",content:"label",iconAlign:"end",label:"Submit"},J1={apple:"Apple",discord:"Discord",facebook:"Facebook",github:"GitHub",google:"Google",linkedin:"LinkedIn",meta:"Meta",microsoft:"Microsoft",x:"X"},X1={apple:U`<path d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701" />`,discord:U`<path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />`,facebook:U`<path d="M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z" />`,github:U`<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />`,google:U`<path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" />`,linkedin:U`<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />`,meta:U`<path d="M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z" />`,microsoft:U`<path d="M11.4 24H0V12.6h11.4V24zM24 24H12.6V12.6H24V24zM11.4 11.4H0V0h11.4v11.4zM24 11.4H12.6V0H24v11.4z" />`,x:U`<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.763l7.726-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z" />`};var t0=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,Zt=(e,t,r,n)=>{for(var o=n>1?void 0:n?e0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&t0(t,r,o),o};exports.PontPasskeyButton=class extends f{constructor(){super(...arguments),this.seed=_t(),this.variant=io.variant,this.size=io.size,this.content=io.content,this.iconAlign=io.iconAlign,this._label=io.label,this._loading=!1,this._handleClick=async()=>{if(!this.isDisabled){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.PontPasskeyButton.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}));try{if(this.event){const t=await Y.processLoginflowEvent({event:this.event});this.dispatchEvent(new CustomEvent(exports.PontPasskeyButton.SUCCESS_EVENT,{detail:{id:this.rootId,event:this.event,result:t},bubbles:!0,composed:!0}))}}catch(t){const r=t instanceof Error?t.message:String(t);this.dispatchEvent(new CustomEvent(exports.PontPasskeyButton.ERROR_EVENT,{detail:{id:this.rootId,event:this.event,message:r},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:io.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontPasskeyButton.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontPasskeyButton.ICON}`}get isLoading(){return this.loading||this._loading}get isDisabled(){return this.disabled||this.isLoading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderIcon(){const t=this.content==="icon"?"":`pont-icon-align-${this.iconAlign}`;return this.isLoading?l`
4798
+ `}createRenderRoot(){return this}};Ln([a({type:Array})],exports.PontMultiSelectFilter.prototype,"options",2);Ln([a({type:Array})],exports.PontMultiSelectFilter.prototype,"selected",2);Ln([a({type:String})],exports.PontMultiSelectFilter.prototype,"placeholder",2);Ln([a({type:String})],exports.PontMultiSelectFilter.prototype,"label",2);exports.PontMultiSelectFilter=Ln([p("pont-multi-select-filter")],exports.PontMultiSelectFilter);const io={variant:"secondary",size:"default",content:"label",iconAlign:"start",label:"Continue with Passkey"},so={variant:"outline",size:"default",content:"icon-label",iconAlign:"start",prompt:"Continue with"},ao={variant:"default",size:"default",content:"label",iconAlign:"end",label:"Submit"},J1={apple:"Apple",discord:"Discord",facebook:"Facebook",github:"GitHub",google:"Google",linkedin:"LinkedIn",meta:"Meta",microsoft:"Microsoft",x:"X"},X1={apple:U`<path d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701" />`,discord:U`<path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />`,facebook:U`<path d="M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z" />`,github:U`<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />`,google:U`<path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" />`,linkedin:U`<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />`,meta:U`<path d="M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z" />`,microsoft:U`<path d="M11.4 24H0V12.6h11.4V24zM24 24H12.6V12.6H24V24zM11.4 11.4H0V0h11.4v11.4zM24 11.4H12.6V0H24v11.4z" />`,x:U`<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.763l7.726-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z" />`};var t0=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,Zt=(e,t,r,n)=>{for(var o=n>1?void 0:n?e0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&t0(t,r,o),o};exports.PontPasskeyButton=class extends f{constructor(){super(...arguments),this.seed=_t(),this.variant=io.variant,this.size=io.size,this.content=io.content,this.iconAlign=io.iconAlign,this._label=io.label,this._loading=!1,this._handleClick=async()=>{if(!this.isDisabled){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.PontPasskeyButton.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}));try{if(this.event){const t=await Y.processLoginflowEvent({event:this.event});this.dispatchEvent(new CustomEvent(exports.PontPasskeyButton.SUCCESS_EVENT,{detail:{id:this.rootId,event:this.event,result:t},bubbles:!0,composed:!0}))}}catch(t){const r=t instanceof Error?t.message:String(t);this.dispatchEvent(new CustomEvent(exports.PontPasskeyButton.ERROR_EVENT,{detail:{id:this.rootId,event:this.event,message:r},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:io.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontPasskeyButton.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontPasskeyButton.ICON}`}get isLoading(){return this.loading||this._loading}get isDisabled(){return this.disabled||this.isLoading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderIcon(){const t=this.content==="icon"?"":`pont-icon-align-${this.iconAlign}`;return this.isLoading?l`
4799
4799
  <pont-spinner
4800
4800
  id="${this.iconId}"
4801
4801
  part="${exports.PontPasskeyButton.PARTS.icon}"
@@ -4836,7 +4836,7 @@
4836
4836
  ${this.content.includes("label")?this.label:h}
4837
4837
  ${this.iconAlign==="end"?this._renderIcon():h}
4838
4838
  </pont-button>
4839
- `}};exports.PontPasskeyButton.ROOT="passkey-button";exports.PontPasskeyButton.ICON="icon";exports.PontPasskeyButton.TAG=`${rt}-${exports.PontPasskeyButton.ROOT}`;exports.PontPasskeyButton.CLICK_EVENT=`${exports.PontPasskeyButton.TAG}:click`;exports.PontPasskeyButton.SUCCESS_EVENT=`${exports.PontPasskeyButton.TAG}:success`;exports.PontPasskeyButton.ERROR_EVENT=`${exports.PontPasskeyButton.TAG}:error`;exports.PontPasskeyButton.PARTS={root:exports.PontPasskeyButton.ROOT,icon:`${exports.PontPasskeyButton.ROOT}-${exports.PontPasskeyButton.ICON}`};Zt([a({type:String})],exports.PontPasskeyButton.prototype,"seed",2);Zt([a({type:String,attribute:"custom-id"})],exports.PontPasskeyButton.prototype,"customId",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"variant",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"size",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"content",2);Zt([a({type:String,attribute:"icon-align"})],exports.PontPasskeyButton.prototype,"iconAlign",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"label",1);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"event",2);Zt([a({type:Boolean})],exports.PontPasskeyButton.prototype,"disabled",2);Zt([a({type:Boolean})],exports.PontPasskeyButton.prototype,"loading",2);Zt([g()],exports.PontPasskeyButton.prototype,"_loading",2);exports.PontPasskeyButton=Zt([p("pont-passkey-button")],exports.PontPasskeyButton);var r0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,Dt=(e,t,r,n)=>{for(var o=n>1?void 0:n?o0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&r0(t,r,o),o};exports.PontProviderButton=class extends f{constructor(){super(...arguments),this.seed=_t(),this.design=new In(this),this.variant=so.variant,this.size=so.size,this.content=so.content,this.iconAlign=so.iconAlign,this._prompt=so.prompt,this._loading=!1,this._handleClick=async()=>{if(!this.isDisabled){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.PontProviderButton.CLICK_EVENT,{detail:{id:this.rootId,provider:this.provider,event:this.event},bubbles:!0,composed:!0}));try{if(this.event){const t=await Y.processLoginflowEvent({event:this.event});this.dispatchEvent(new CustomEvent(exports.PontProviderButton.SUCCESS_EVENT,{detail:{id:this.rootId,provider:this.provider,event:this.event,result:t},bubbles:!0,composed:!0}))}}catch(t){const r=t instanceof Error?t.message:String(t);this.dispatchEvent(new CustomEvent(exports.PontProviderButton.ERROR_EVENT,{detail:{id:this.rootId,provider:this.provider,event:this.event,message:r},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}}get _provider(){return!this.provider&&this.design.active?"google":this.provider}get prompt(){return this._prompt}set prompt(t){const r=this._prompt;this._prompt=t.length?t:so.prompt,this.requestUpdate("prompt",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontProviderButton.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontProviderButton.ICON}`}get isLoading(){return this.loading||this._loading}get isDisabled(){return this.disabled||this.isLoading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderIcon(){const t=this.content==="icon"?"":`pont-icon-align-${this.iconAlign}`;return this.isLoading?l`
4839
+ `}};exports.PontPasskeyButton.ROOT="passkey-button";exports.PontPasskeyButton.ICON="icon";exports.PontPasskeyButton.TAG=`${ot}-${exports.PontPasskeyButton.ROOT}`;exports.PontPasskeyButton.CLICK_EVENT=`${exports.PontPasskeyButton.TAG}:click`;exports.PontPasskeyButton.SUCCESS_EVENT=`${exports.PontPasskeyButton.TAG}:success`;exports.PontPasskeyButton.ERROR_EVENT=`${exports.PontPasskeyButton.TAG}:error`;exports.PontPasskeyButton.PARTS={root:exports.PontPasskeyButton.ROOT,icon:`${exports.PontPasskeyButton.ROOT}-${exports.PontPasskeyButton.ICON}`};Zt([a({type:String})],exports.PontPasskeyButton.prototype,"seed",2);Zt([a({type:String,attribute:"custom-id"})],exports.PontPasskeyButton.prototype,"customId",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"variant",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"size",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"content",2);Zt([a({type:String,attribute:"icon-align"})],exports.PontPasskeyButton.prototype,"iconAlign",2);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"label",1);Zt([a({type:String})],exports.PontPasskeyButton.prototype,"event",2);Zt([a({type:Boolean})],exports.PontPasskeyButton.prototype,"disabled",2);Zt([a({type:Boolean})],exports.PontPasskeyButton.prototype,"loading",2);Zt([g()],exports.PontPasskeyButton.prototype,"_loading",2);exports.PontPasskeyButton=Zt([p("pont-passkey-button")],exports.PontPasskeyButton);var r0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,Dt=(e,t,r,n)=>{for(var o=n>1?void 0:n?o0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&r0(t,r,o),o};exports.PontProviderButton=class extends f{constructor(){super(...arguments),this.seed=_t(),this.design=new An(this),this.variant=so.variant,this.size=so.size,this.content=so.content,this.iconAlign=so.iconAlign,this._prompt=so.prompt,this._loading=!1,this._handleClick=async()=>{if(!this.isDisabled){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.PontProviderButton.CLICK_EVENT,{detail:{id:this.rootId,provider:this.provider,event:this.event},bubbles:!0,composed:!0}));try{if(this.event){const t=await Y.processLoginflowEvent({event:this.event});this.dispatchEvent(new CustomEvent(exports.PontProviderButton.SUCCESS_EVENT,{detail:{id:this.rootId,provider:this.provider,event:this.event,result:t},bubbles:!0,composed:!0}))}}catch(t){const r=t instanceof Error?t.message:String(t);this.dispatchEvent(new CustomEvent(exports.PontProviderButton.ERROR_EVENT,{detail:{id:this.rootId,provider:this.provider,event:this.event,message:r},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}}get _provider(){return!this.provider&&this.design.active?"google":this.provider}get prompt(){return this._prompt}set prompt(t){const r=this._prompt;this._prompt=t.length?t:so.prompt,this.requestUpdate("prompt",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontProviderButton.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontProviderButton.ICON}`}get isLoading(){return this.loading||this._loading}get isDisabled(){return this.disabled||this.isLoading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderIcon(){const t=this.content==="icon"?"":`pont-icon-align-${this.iconAlign}`;return this.isLoading?l`
4840
4840
  <pont-spinner
4841
4841
  id="${this.iconId}"
4842
4842
  part="${exports.PontProviderButton.PARTS.icon}"
@@ -4868,7 +4868,7 @@
4868
4868
  ${this.content.includes("label")?r:h}
4869
4869
  ${this.iconAlign==="end"?this._renderIcon():h}
4870
4870
  </pont-button>
4871
- `}};exports.PontProviderButton.ROOT="provider-button";exports.PontProviderButton.ICON="icon";exports.PontProviderButton.TAG=`${rt}-${exports.PontProviderButton.ROOT}`;exports.PontProviderButton.CLICK_EVENT=`${exports.PontProviderButton.TAG}:click`;exports.PontProviderButton.SUCCESS_EVENT=`${exports.PontProviderButton.TAG}:success`;exports.PontProviderButton.ERROR_EVENT=`${exports.PontProviderButton.TAG}:error`;exports.PontProviderButton.PARTS={root:exports.PontProviderButton.ROOT,icon:`${exports.PontProviderButton.ROOT}-${exports.PontProviderButton.ICON}`};Dt([a({type:String})],exports.PontProviderButton.prototype,"seed",2);Dt([a({type:String,attribute:"custom-id"})],exports.PontProviderButton.prototype,"customId",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"provider",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"variant",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"size",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"content",2);Dt([a({type:String,attribute:"icon-align"})],exports.PontProviderButton.prototype,"iconAlign",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"prompt",1);Dt([a({type:String})],exports.PontProviderButton.prototype,"label",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"event",2);Dt([a({type:Boolean})],exports.PontProviderButton.prototype,"disabled",2);Dt([a({type:Boolean})],exports.PontProviderButton.prototype,"loading",2);Dt([g()],exports.PontProviderButton.prototype,"_loading",2);exports.PontProviderButton=Dt([p("pont-provider-button")],exports.PontProviderButton);var n0=Object.defineProperty,i0=Object.getOwnPropertyDescriptor,de=(e,t,r,n)=>{for(var o=n>1?void 0:n?i0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&n0(t,r,o),o};exports.PontSubmitButton=class extends f{constructor(){super(...arguments),this.seed=_t(),this.variant=ao.variant,this.size=ao.size,this.content=ao.content,this.iconAlign=ao.iconAlign,this._label=ao.label,this._handleClick=()=>{this.isDisabled||this.dispatchEvent(new CustomEvent(exports.PontSubmitButton.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}))}}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:ao.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontSubmitButton.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontSubmitButton.ICON}`}get isDisabled(){return this.disabled||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderIcon(){const t=this.content==="icon"?"":`pont-icon-align-${this.iconAlign}`;return this.loading?l`
4871
+ `}};exports.PontProviderButton.ROOT="provider-button";exports.PontProviderButton.ICON="icon";exports.PontProviderButton.TAG=`${ot}-${exports.PontProviderButton.ROOT}`;exports.PontProviderButton.CLICK_EVENT=`${exports.PontProviderButton.TAG}:click`;exports.PontProviderButton.SUCCESS_EVENT=`${exports.PontProviderButton.TAG}:success`;exports.PontProviderButton.ERROR_EVENT=`${exports.PontProviderButton.TAG}:error`;exports.PontProviderButton.PARTS={root:exports.PontProviderButton.ROOT,icon:`${exports.PontProviderButton.ROOT}-${exports.PontProviderButton.ICON}`};Dt([a({type:String})],exports.PontProviderButton.prototype,"seed",2);Dt([a({type:String,attribute:"custom-id"})],exports.PontProviderButton.prototype,"customId",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"provider",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"variant",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"size",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"content",2);Dt([a({type:String,attribute:"icon-align"})],exports.PontProviderButton.prototype,"iconAlign",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"prompt",1);Dt([a({type:String})],exports.PontProviderButton.prototype,"label",2);Dt([a({type:String})],exports.PontProviderButton.prototype,"event",2);Dt([a({type:Boolean})],exports.PontProviderButton.prototype,"disabled",2);Dt([a({type:Boolean})],exports.PontProviderButton.prototype,"loading",2);Dt([g()],exports.PontProviderButton.prototype,"_loading",2);exports.PontProviderButton=Dt([p("pont-provider-button")],exports.PontProviderButton);var n0=Object.defineProperty,i0=Object.getOwnPropertyDescriptor,de=(e,t,r,n)=>{for(var o=n>1?void 0:n?i0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&n0(t,r,o),o};exports.PontSubmitButton=class extends f{constructor(){super(...arguments),this.seed=_t(),this.variant=ao.variant,this.size=ao.size,this.content=ao.content,this.iconAlign=ao.iconAlign,this._label=ao.label,this._handleClick=()=>{this.isDisabled||this.dispatchEvent(new CustomEvent(exports.PontSubmitButton.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}))}}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:ao.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontSubmitButton.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontSubmitButton.ICON}`}get isDisabled(){return this.disabled||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderIcon(){const t=this.content==="icon"?"":`pont-icon-align-${this.iconAlign}`;return this.loading?l`
4872
4872
  <pont-spinner
4873
4873
  id="${this.iconId}"
4874
4874
  part="${exports.PontSubmitButton.PARTS.icon}"
@@ -4907,7 +4907,7 @@
4907
4907
  ${this.content.includes("label")?this.label:h}
4908
4908
  ${this.iconAlign==="end"?this._renderIcon():h}
4909
4909
  </pont-button>
4910
- `}};exports.PontSubmitButton.ROOT="submit-button";exports.PontSubmitButton.ICON="icon";exports.PontSubmitButton.TAG=`${rt}-${exports.PontSubmitButton.ROOT}`;exports.PontSubmitButton.CLICK_EVENT=`${exports.PontSubmitButton.TAG}:click`;exports.PontSubmitButton.PARTS={root:exports.PontSubmitButton.ROOT,icon:`${exports.PontSubmitButton.ROOT}-${exports.PontSubmitButton.ICON}`};de([a({type:String})],exports.PontSubmitButton.prototype,"seed",2);de([a({type:String,attribute:"custom-id"})],exports.PontSubmitButton.prototype,"customId",2);de([a({type:String})],exports.PontSubmitButton.prototype,"variant",2);de([a({type:String})],exports.PontSubmitButton.prototype,"size",2);de([a({type:String})],exports.PontSubmitButton.prototype,"content",2);de([a({type:String,attribute:"icon-align"})],exports.PontSubmitButton.prototype,"iconAlign",2);de([a({type:String})],exports.PontSubmitButton.prototype,"label",1);de([a({type:String})],exports.PontSubmitButton.prototype,"event",2);de([a({type:Boolean})],exports.PontSubmitButton.prototype,"disabled",2);de([a({type:Boolean})],exports.PontSubmitButton.prototype,"loading",2);exports.PontSubmitButton=de([p("pont-submit-button")],exports.PontSubmitButton);var s0=Object.defineProperty,a0=Object.getOwnPropertyDescriptor,z=(e,t,r,n)=>{for(var o=n>1?void 0:n?a0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&s0(t,r,o),o};exports.PontPasswordField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=qe.name,this._label=qe.label,this.variant=qe.variant,this.rules=qe.rules,this.validation=qe.validation,this._forgotLabel=qe.forgotLabel,this._invalid=!1,this._errors=[],this._value="",this._loading=!1,this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontPasswordField.INPUT_SELECTORS} input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontPasswordField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._errors=[],this._value="",this._dirty=!1},this._handleForgotClick=async()=>{if(this.isDisabled)return;this._loading=!0;const{rootId:t,forgotId:r,forgotEvent:n}=this;this.dispatchEvent(new CustomEvent(exports.PontPasswordField.FORGOT_CLICK_EVENT,{detail:{id:t,forgotId:r,event:n},bubbles:!0,composed:!0}));try{if(n){const o=await Y.processLoginflowEvent({event:n});this.dispatchEvent(new CustomEvent(exports.PontPasswordField.FORGOT_SUCCESS_EVENT,{detail:{id:t,forgotId:r,event:n,result:o},bubbles:!0,composed:!0}))}}catch(o){const i=o instanceof Error?o.message:String(o);this.dispatchEvent(new CustomEvent(exports.PontPasswordField.FORGOT_ERROR_EVENT,{detail:{id:t,forgotId:r,event:n,message:i},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}get _defaultInputId(){return`${this.rootId}-${exports.PontPasswordField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:qe.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:qe.label,this.requestUpdate("label",r)}get minlength(){return this._minlength}set minlength(t){const r=this._minlength;this._minlength=t===void 0||t>0?t:void 0,this.requestUpdate("minlength",r)}get maxlength(){return this._maxlength}set maxlength(t){const r=this._maxlength;if(t===void 0||t<=0)this._maxlength=void 0;else{const{minlength:n}=this;this._maxlength=n?Math.max(t,n):t}this.requestUpdate("maxlength",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultMinlengthError(){return qo(this.label,this.minlength)}get minlengthError(){return this._minlengthError??this._defaultMinlengthError}set minlengthError(t){const r=this.minlengthError;this._minlengthError=t||void 0,this.requestUpdate("minlengthError",r)}get _defaultMaxlengthError(){return zo(this.label,this.maxlength)}get maxlengthError(){return this._maxlengthError??this._defaultMaxlengthError}set maxlengthError(t){const r=this.maxlengthError;this._maxlengthError=t||void 0,this.requestUpdate("maxlengthError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}get forgotLabel(){return this._forgotLabel}set forgotLabel(t){const r=this._forgotLabel;this._forgotLabel=t.length?t:qe.forgotLabel,this.requestUpdate("forgotLabel",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontPasswordField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontPasswordField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontPasswordField.MARK}`}get forgotId(){return`${this.rootId}-${exports.PontPasswordField.FORGOT}`}get descriptionId(){return`${this.rootId}-${exports.PontPasswordField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontPasswordField.ERROR}`}get value(){const t=this.defaultValue??"";return this._dirty?this._value:t}get isDisabled(){return this.disabled||this._loading}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontPasswordField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontPasswordField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._errors=[],this._dispatchValidate(!0,"success","Valid password.")}_onValidateError(t,r,n){this._invalid=!0,this._errors=n!=null&&n.length?n:[r],this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;if(this.required&&!t)return this._onValidateError("required",this.requiredError),!1;if(!t||this.validation==="simple")return this._onValidateSuccess(),!0;const{minlength:r}=this;if(r&&t.length<r)return this._onValidateError("minlength",this.minlengthError),!1;const{maxlength:n}=this;if(n&&t.length>n)return this._onValidateError("maxlength",this.maxlengthError),!1;let o=!0;const i=[];for(const s of this.rules)(s.name?exports.PontPasswordField.RULE_PATTERNS[s.name]:new RegExp(s.pattern)).test(t)||(o=!1,s.error&&i.push(s.error));if(!o){const s=i.length?i.join(" "):this.formatError;return this._onValidateError("format",s,i),!1}return this._onValidateSuccess(),!0}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
4910
+ `}};exports.PontSubmitButton.ROOT="submit-button";exports.PontSubmitButton.ICON="icon";exports.PontSubmitButton.TAG=`${ot}-${exports.PontSubmitButton.ROOT}`;exports.PontSubmitButton.CLICK_EVENT=`${exports.PontSubmitButton.TAG}:click`;exports.PontSubmitButton.PARTS={root:exports.PontSubmitButton.ROOT,icon:`${exports.PontSubmitButton.ROOT}-${exports.PontSubmitButton.ICON}`};de([a({type:String})],exports.PontSubmitButton.prototype,"seed",2);de([a({type:String,attribute:"custom-id"})],exports.PontSubmitButton.prototype,"customId",2);de([a({type:String})],exports.PontSubmitButton.prototype,"variant",2);de([a({type:String})],exports.PontSubmitButton.prototype,"size",2);de([a({type:String})],exports.PontSubmitButton.prototype,"content",2);de([a({type:String,attribute:"icon-align"})],exports.PontSubmitButton.prototype,"iconAlign",2);de([a({type:String})],exports.PontSubmitButton.prototype,"label",1);de([a({type:String})],exports.PontSubmitButton.prototype,"event",2);de([a({type:Boolean})],exports.PontSubmitButton.prototype,"disabled",2);de([a({type:Boolean})],exports.PontSubmitButton.prototype,"loading",2);exports.PontSubmitButton=de([p("pont-submit-button")],exports.PontSubmitButton);var s0=Object.defineProperty,a0=Object.getOwnPropertyDescriptor,z=(e,t,r,n)=>{for(var o=n>1?void 0:n?a0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&s0(t,r,o),o};exports.PontPasswordField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=qe.name,this._label=qe.label,this.variant=qe.variant,this.rules=qe.rules,this.validation=qe.validation,this._forgotLabel=qe.forgotLabel,this._invalid=!1,this._errors=[],this._value="",this._loading=!1,this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontPasswordField.INPUT_SELECTORS} input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontPasswordField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._errors=[],this._value="",this._dirty=!1},this._handleForgotClick=async()=>{if(this.isDisabled)return;this._loading=!0;const{rootId:t,forgotId:r,forgotEvent:n}=this;this.dispatchEvent(new CustomEvent(exports.PontPasswordField.FORGOT_CLICK_EVENT,{detail:{id:t,forgotId:r,event:n},bubbles:!0,composed:!0}));try{if(n){const o=await Y.processLoginflowEvent({event:n});this.dispatchEvent(new CustomEvent(exports.PontPasswordField.FORGOT_SUCCESS_EVENT,{detail:{id:t,forgotId:r,event:n,result:o},bubbles:!0,composed:!0}))}}catch(o){const i=o instanceof Error?o.message:String(o);this.dispatchEvent(new CustomEvent(exports.PontPasswordField.FORGOT_ERROR_EVENT,{detail:{id:t,forgotId:r,event:n,message:i},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}get _defaultInputId(){return`${this.rootId}-${exports.PontPasswordField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:qe.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:qe.label,this.requestUpdate("label",r)}get minlength(){return this._minlength}set minlength(t){const r=this._minlength;this._minlength=t===void 0||t>0?t:void 0,this.requestUpdate("minlength",r)}get maxlength(){return this._maxlength}set maxlength(t){const r=this._maxlength;if(t===void 0||t<=0)this._maxlength=void 0;else{const{minlength:n}=this;this._maxlength=n?Math.max(t,n):t}this.requestUpdate("maxlength",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultMinlengthError(){return qo(this.label,this.minlength)}get minlengthError(){return this._minlengthError??this._defaultMinlengthError}set minlengthError(t){const r=this.minlengthError;this._minlengthError=t||void 0,this.requestUpdate("minlengthError",r)}get _defaultMaxlengthError(){return zo(this.label,this.maxlength)}get maxlengthError(){return this._maxlengthError??this._defaultMaxlengthError}set maxlengthError(t){const r=this.maxlengthError;this._maxlengthError=t||void 0,this.requestUpdate("maxlengthError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}get forgotLabel(){return this._forgotLabel}set forgotLabel(t){const r=this._forgotLabel;this._forgotLabel=t.length?t:qe.forgotLabel,this.requestUpdate("forgotLabel",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontPasswordField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontPasswordField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontPasswordField.MARK}`}get forgotId(){return`${this.rootId}-${exports.PontPasswordField.FORGOT}`}get descriptionId(){return`${this.rootId}-${exports.PontPasswordField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontPasswordField.ERROR}`}get value(){const t=this.defaultValue??"";return this._dirty?this._value:t}get isDisabled(){return this.disabled||this._loading}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontPasswordField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontPasswordField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._errors=[],this._dispatchValidate(!0,"success","Valid password.")}_onValidateError(t,r,n){this._invalid=!0,this._errors=n!=null&&n.length?n:[r],this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;if(this.required&&!t)return this._onValidateError("required",this.requiredError),!1;if(!t||this.validation==="simple")return this._onValidateSuccess(),!0;const{minlength:r}=this;if(r&&t.length<r)return this._onValidateError("minlength",this.minlengthError),!1;const{maxlength:n}=this;if(n&&t.length>n)return this._onValidateError("maxlength",this.maxlengthError),!1;let o=!0;const i=[];for(const s of this.rules)(s.name?exports.PontPasswordField.RULE_PATTERNS[s.name]:new RegExp(s.pattern)).test(t)||(o=!1,s.error&&i.push(s.error));if(!o){const s=i.length?i.join(" "):this.formatError;return this._onValidateError("format",s,i),!1}return this._onValidateSuccess(),!0}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
4911
4911
  <span
4912
4912
  id="${this.markId}"
4913
4913
  part="${exports.PontPasswordField.PARTS.mark}"
@@ -4981,7 +4981,7 @@
4981
4981
  </pont-field-description>
4982
4982
  `:h}
4983
4983
  </pont-field>
4984
- `}};exports.PontPasswordField.ROOT="password-field";exports.PontPasswordField.LABEL="label";exports.PontPasswordField.MARK="mark";exports.PontPasswordField.FORGOT="forgot";exports.PontPasswordField.DESCRIPTION="description";exports.PontPasswordField.INPUT="input";exports.PontPasswordField.ERROR="error";exports.PontPasswordField.TAG=`${rt}-${exports.PontPasswordField.ROOT}`;exports.PontPasswordField.VALIDATE_EVENT=`${exports.PontPasswordField.TAG}:validate`;exports.PontPasswordField.FORGOT_CLICK_EVENT=`${exports.PontPasswordField.TAG}:forgot-click`;exports.PontPasswordField.FORGOT_SUCCESS_EVENT=`${exports.PontPasswordField.TAG}:forgot-success`;exports.PontPasswordField.FORGOT_ERROR_EVENT=`${exports.PontPasswordField.TAG}:forgot-error`;exports.PontPasswordField.PARTS={root:exports.PontPasswordField.ROOT,label:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.LABEL}`,mark:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.MARK}`,forgot:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.FORGOT}`,description:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.DESCRIPTION}`,input:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.INPUT}`,error:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.ERROR}`};exports.PontPasswordField.INPUT_SELECTORS=`pont-input[part="${exports.PontPasswordField.PARTS.input}"], pont-password-input[part="${exports.PontPasswordField.PARTS.input}"]`;exports.PontPasswordField.RULE_PATTERNS={uppercase:/[A-Z]/,lowercase:/[a-z]/,number:/[0-9]/,special:/[!@#$%^&*()_=+{}[\]|\\;:"<>,./?-]/};z([a({type:String})],exports.PontPasswordField.prototype,"seed",2);z([a({type:String,attribute:"custom-id"})],exports.PontPasswordField.prototype,"customId",2);z([a({type:String,attribute:"input-id"})],exports.PontPasswordField.prototype,"inputId",1);z([a({type:String})],exports.PontPasswordField.prototype,"name",1);z([a({type:String,attribute:"default-value"})],exports.PontPasswordField.prototype,"defaultValue",2);z([a({type:String})],exports.PontPasswordField.prototype,"label",1);z([a({type:String})],exports.PontPasswordField.prototype,"placeholder",2);z([a({type:String})],exports.PontPasswordField.prototype,"description",2);z([a({type:String})],exports.PontPasswordField.prototype,"variant",2);z([a({type:String})],exports.PontPasswordField.prototype,"mark",2);z([a({type:Boolean})],exports.PontPasswordField.prototype,"caret",2);z([a({type:String})],exports.PontPasswordField.prototype,"autocomplete",2);z([a({type:Boolean})],exports.PontPasswordField.prototype,"disabled",2);z([a({type:Boolean})],exports.PontPasswordField.prototype,"required",2);z([a({type:Number})],exports.PontPasswordField.prototype,"minlength",1);z([a({type:Number})],exports.PontPasswordField.prototype,"maxlength",1);z([a({type:Array})],exports.PontPasswordField.prototype,"rules",2);z([a({type:String})],exports.PontPasswordField.prototype,"validation",2);z([a({type:String,attribute:"required-error"})],exports.PontPasswordField.prototype,"requiredError",1);z([a({type:String,attribute:"minlength-error"})],exports.PontPasswordField.prototype,"minlengthError",1);z([a({type:String,attribute:"maxlength-error"})],exports.PontPasswordField.prototype,"maxlengthError",1);z([a({type:String,attribute:"format-error"})],exports.PontPasswordField.prototype,"formatError",1);z([a({type:Boolean})],exports.PontPasswordField.prototype,"forgot",2);z([a({type:String,attribute:"forgot-label"})],exports.PontPasswordField.prototype,"forgotLabel",1);z([a({type:String,attribute:"forgot-event"})],exports.PontPasswordField.prototype,"forgotEvent",2);z([g()],exports.PontPasswordField.prototype,"_invalid",2);z([g()],exports.PontPasswordField.prototype,"_errors",2);z([g()],exports.PontPasswordField.prototype,"_value",2);z([g()],exports.PontPasswordField.prototype,"_loading",2);exports.PontPasswordField=z([p("pont-password-field")],exports.PontPasswordField);const Lt=e=>`${e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()} is a required field.`,Me=e=>`Please enter a valid ${e.toLowerCase()}.`,qo=(e,t)=>t?`${e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()} must be at least ${t} characters.`:`Please enter a longer ${e.toLowerCase()}.`,zo=(e,t)=>t?`${e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()} can have at most ${t} characters.`:`Please enter a shorter ${e.toLowerCase()}.`,lo={name:"email",label:"Email",pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.source,validation:"default",requiredError:Lt("Email"),formatError:Me("Email")},co={name:"phone",label:"Phone",pattern:/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/.source,validation:"default",requiredError:Lt("Phone"),formatError:Me("Phone")},po={name:"username",label:"Username",pattern:/^[a-z0-9_]*$/.source,validation:"default",requiredError:Lt("Username"),minlengthError:qo("Username"),maxlengthError:zo("Username"),formatError:Me("Username")},ho={name:"name",label:"Name",pattern:/^[\p{L} .'-]*$/u.source,validation:"default",requiredError:Lt("Name"),minlengthError:qo("Name"),maxlengthError:zo("Name"),formatError:Me("Name")},Zo={name:"login_id",identifiers:[],label:"Identifier",validation:"default",requiredError:Lt("Identifier")},qe={name:"password",label:"Password",variant:"toggle",rules:[{name:"uppercase",error:"Must contain an uppercase letter."},{name:"lowercase",error:"Must contain a lowercase letter."},{name:"number",error:"Must contain a number."},{name:"special",error:"Must contain a special character."}],validation:"default",requiredError:Lt("Password"),minlengthError:qo("Password"),maxlengthError:zo("Password"),formatError:Me("Password"),forgotLabel:"Forgot your password?"},ze={name:"confirm",label:"Confirm Password",variant:"toggle",pair:exports.PontPasswordField.TAG,validation:"default",requiredError:Lt("Confirm Password"),matchError:"Passwords do not match."};var l0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,it=(e,t,r,n)=>{for(var o=n>1?void 0:n?d0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&l0(t,r,o),o};exports.PontConfirmField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=ze.name,this._label=ze.label,this.variant=ze.variant,this.pair=ze.pair,this.validation=ze.validation,this._matchError=ze.matchError,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontConfirmField.INPUT_SELECTORS} input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontConfirmField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontConfirmField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:ze.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:ze.label,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get matchError(){return this._matchError}set matchError(t){const r=this._matchError;this._matchError=t.length?t:ze.matchError,this.requestUpdate("matchError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontConfirmField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontConfirmField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontConfirmField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontConfirmField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontConfirmField.ERROR}`}get value(){const t=this.defaultValue??"";return this._dirty?this._value:t}get pairValue(){const r=(this._form??document).querySelector(this.pair);return r?r.value:""}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontConfirmField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this,c={selector:this.pair,value:this.pairValue};this.dispatchEvent(new CustomEvent(exports.PontConfirmField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,pair:c,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid confirm.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):!t||this.validation==="simple"?(this._onValidateSuccess(),!0):t!==this.pairValue?(this._onValidateError("match",this.matchError),!1):(this._onValidateSuccess(),!0)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
4984
+ `}};exports.PontPasswordField.ROOT="password-field";exports.PontPasswordField.LABEL="label";exports.PontPasswordField.MARK="mark";exports.PontPasswordField.FORGOT="forgot";exports.PontPasswordField.DESCRIPTION="description";exports.PontPasswordField.INPUT="input";exports.PontPasswordField.ERROR="error";exports.PontPasswordField.TAG=`${ot}-${exports.PontPasswordField.ROOT}`;exports.PontPasswordField.VALIDATE_EVENT=`${exports.PontPasswordField.TAG}:validate`;exports.PontPasswordField.FORGOT_CLICK_EVENT=`${exports.PontPasswordField.TAG}:forgot-click`;exports.PontPasswordField.FORGOT_SUCCESS_EVENT=`${exports.PontPasswordField.TAG}:forgot-success`;exports.PontPasswordField.FORGOT_ERROR_EVENT=`${exports.PontPasswordField.TAG}:forgot-error`;exports.PontPasswordField.PARTS={root:exports.PontPasswordField.ROOT,label:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.LABEL}`,mark:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.MARK}`,forgot:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.FORGOT}`,description:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.DESCRIPTION}`,input:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.INPUT}`,error:`${exports.PontPasswordField.ROOT}-${exports.PontPasswordField.ERROR}`};exports.PontPasswordField.INPUT_SELECTORS=`pont-input[part="${exports.PontPasswordField.PARTS.input}"], pont-password-input[part="${exports.PontPasswordField.PARTS.input}"]`;exports.PontPasswordField.RULE_PATTERNS={uppercase:/[A-Z]/,lowercase:/[a-z]/,number:/[0-9]/,special:/[!@#$%^&*()_=+{}[\]|\\;:"<>,./?-]/};z([a({type:String})],exports.PontPasswordField.prototype,"seed",2);z([a({type:String,attribute:"custom-id"})],exports.PontPasswordField.prototype,"customId",2);z([a({type:String,attribute:"input-id"})],exports.PontPasswordField.prototype,"inputId",1);z([a({type:String})],exports.PontPasswordField.prototype,"name",1);z([a({type:String,attribute:"default-value"})],exports.PontPasswordField.prototype,"defaultValue",2);z([a({type:String})],exports.PontPasswordField.prototype,"label",1);z([a({type:String})],exports.PontPasswordField.prototype,"placeholder",2);z([a({type:String})],exports.PontPasswordField.prototype,"description",2);z([a({type:String})],exports.PontPasswordField.prototype,"variant",2);z([a({type:String})],exports.PontPasswordField.prototype,"mark",2);z([a({type:Boolean})],exports.PontPasswordField.prototype,"caret",2);z([a({type:String})],exports.PontPasswordField.prototype,"autocomplete",2);z([a({type:Boolean})],exports.PontPasswordField.prototype,"disabled",2);z([a({type:Boolean})],exports.PontPasswordField.prototype,"required",2);z([a({type:Number})],exports.PontPasswordField.prototype,"minlength",1);z([a({type:Number})],exports.PontPasswordField.prototype,"maxlength",1);z([a({type:Array})],exports.PontPasswordField.prototype,"rules",2);z([a({type:String})],exports.PontPasswordField.prototype,"validation",2);z([a({type:String,attribute:"required-error"})],exports.PontPasswordField.prototype,"requiredError",1);z([a({type:String,attribute:"minlength-error"})],exports.PontPasswordField.prototype,"minlengthError",1);z([a({type:String,attribute:"maxlength-error"})],exports.PontPasswordField.prototype,"maxlengthError",1);z([a({type:String,attribute:"format-error"})],exports.PontPasswordField.prototype,"formatError",1);z([a({type:Boolean})],exports.PontPasswordField.prototype,"forgot",2);z([a({type:String,attribute:"forgot-label"})],exports.PontPasswordField.prototype,"forgotLabel",1);z([a({type:String,attribute:"forgot-event"})],exports.PontPasswordField.prototype,"forgotEvent",2);z([g()],exports.PontPasswordField.prototype,"_invalid",2);z([g()],exports.PontPasswordField.prototype,"_errors",2);z([g()],exports.PontPasswordField.prototype,"_value",2);z([g()],exports.PontPasswordField.prototype,"_loading",2);exports.PontPasswordField=z([p("pont-password-field")],exports.PontPasswordField);const Lt=e=>`${e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()} is a required field.`,Me=e=>`Please enter a valid ${e.toLowerCase()}.`,qo=(e,t)=>t?`${e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()} must be at least ${t} characters.`:`Please enter a longer ${e.toLowerCase()}.`,zo=(e,t)=>t?`${e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()} can have at most ${t} characters.`:`Please enter a shorter ${e.toLowerCase()}.`,lo={name:"email",label:"Email",pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.source,validation:"default",requiredError:Lt("Email"),formatError:Me("Email")},co={name:"phone",label:"Phone",pattern:/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/.source,validation:"default",requiredError:Lt("Phone"),formatError:Me("Phone")},po={name:"username",label:"Username",pattern:/^[a-z0-9_]*$/.source,validation:"default",requiredError:Lt("Username"),minlengthError:qo("Username"),maxlengthError:zo("Username"),formatError:Me("Username")},ho={name:"name",label:"Name",pattern:/^[\p{L} .'-]*$/u.source,validation:"default",requiredError:Lt("Name"),minlengthError:qo("Name"),maxlengthError:zo("Name"),formatError:Me("Name")},Zo={name:"login_id",identifiers:[],label:"Identifier",validation:"default",requiredError:Lt("Identifier")},qe={name:"password",label:"Password",variant:"toggle",rules:[{name:"uppercase",error:"Must contain an uppercase letter."},{name:"lowercase",error:"Must contain a lowercase letter."},{name:"number",error:"Must contain a number."},{name:"special",error:"Must contain a special character."}],validation:"default",requiredError:Lt("Password"),minlengthError:qo("Password"),maxlengthError:zo("Password"),formatError:Me("Password"),forgotLabel:"Forgot your password?"},ze={name:"confirm",label:"Confirm Password",variant:"toggle",pair:exports.PontPasswordField.TAG,validation:"default",requiredError:Lt("Confirm Password"),matchError:"Passwords do not match."};var l0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,st=(e,t,r,n)=>{for(var o=n>1?void 0:n?d0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&l0(t,r,o),o};exports.PontConfirmField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=ze.name,this._label=ze.label,this.variant=ze.variant,this.pair=ze.pair,this.validation=ze.validation,this._matchError=ze.matchError,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontConfirmField.INPUT_SELECTORS} input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontConfirmField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontConfirmField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:ze.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:ze.label,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get matchError(){return this._matchError}set matchError(t){const r=this._matchError;this._matchError=t.length?t:ze.matchError,this.requestUpdate("matchError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontConfirmField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontConfirmField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontConfirmField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontConfirmField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontConfirmField.ERROR}`}get value(){const t=this.defaultValue??"";return this._dirty?this._value:t}get pairValue(){const r=(this._form??document).querySelector(this.pair);return r?r.value:""}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontConfirmField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this,c={selector:this.pair,value:this.pairValue};this.dispatchEvent(new CustomEvent(exports.PontConfirmField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,pair:c,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid confirm.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):!t||this.validation==="simple"?(this._onValidateSuccess(),!0):t!==this.pairValue?(this._onValidateError("match",this.matchError),!1):(this._onValidateSuccess(),!0)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
4985
4985
  <span
4986
4986
  id="${this.markId}"
4987
4987
  part="${exports.PontConfirmField.PARTS.mark}"
@@ -5043,7 +5043,7 @@
5043
5043
  </pont-field-description>
5044
5044
  `:h}
5045
5045
  </pont-field>
5046
- `}};exports.PontConfirmField.ROOT="confirm-field";exports.PontConfirmField.LABEL="label";exports.PontConfirmField.MARK="mark";exports.PontConfirmField.DESCRIPTION="description";exports.PontConfirmField.INPUT="input";exports.PontConfirmField.ERROR="error";exports.PontConfirmField.TAG=`${rt}-${exports.PontConfirmField.ROOT}`;exports.PontConfirmField.VALIDATE_EVENT=`${exports.PontConfirmField.TAG}:validate`;exports.PontConfirmField.PARTS={root:exports.PontConfirmField.ROOT,label:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.LABEL}`,mark:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.MARK}`,description:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.DESCRIPTION}`,input:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.INPUT}`,error:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.ERROR}`};exports.PontConfirmField.INPUT_SELECTORS=`pont-input[part="${exports.PontConfirmField.PARTS.input}"], pont-password-input[part="${exports.PontConfirmField.PARTS.input}"]`;it([a({type:String})],exports.PontConfirmField.prototype,"seed",2);it([a({type:String,attribute:"custom-id"})],exports.PontConfirmField.prototype,"customId",2);it([a({type:String,attribute:"input-id"})],exports.PontConfirmField.prototype,"inputId",1);it([a({type:String})],exports.PontConfirmField.prototype,"name",1);it([a({type:String,attribute:"default-value"})],exports.PontConfirmField.prototype,"defaultValue",2);it([a({type:String})],exports.PontConfirmField.prototype,"label",1);it([a({type:String})],exports.PontConfirmField.prototype,"placeholder",2);it([a({type:String})],exports.PontConfirmField.prototype,"description",2);it([a({type:String})],exports.PontConfirmField.prototype,"variant",2);it([a({type:String})],exports.PontConfirmField.prototype,"mark",2);it([a({type:Boolean})],exports.PontConfirmField.prototype,"caret",2);it([a({type:String})],exports.PontConfirmField.prototype,"autocomplete",2);it([a({type:Boolean})],exports.PontConfirmField.prototype,"disabled",2);it([a({type:Boolean})],exports.PontConfirmField.prototype,"required",2);it([a({type:String})],exports.PontConfirmField.prototype,"pair",2);it([a({type:String})],exports.PontConfirmField.prototype,"validation",2);it([a({type:String,attribute:"required-error"})],exports.PontConfirmField.prototype,"requiredError",1);it([a({type:String,attribute:"match-error"})],exports.PontConfirmField.prototype,"matchError",1);it([g()],exports.PontConfirmField.prototype,"_invalid",2);it([g()],exports.PontConfirmField.prototype,"_error",2);it([g()],exports.PontConfirmField.prototype,"_value",2);exports.PontConfirmField=it([p("pont-confirm-field")],exports.PontConfirmField);var c0=Object.defineProperty,p0=Object.getOwnPropertyDescriptor,ht=(e,t,r,n)=>{for(var o=n>1?void 0:n?p0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c0(t,r,o),o};exports.PontEmailField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=lo.name,this._label=lo.label,this.pattern=lo.pattern,this.validation=lo.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontEmailField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontEmailField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontEmailField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:lo.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:lo.label,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontEmailField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontEmailField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontEmailField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontEmailField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontEmailField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().toLowerCase()}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontEmailField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontEmailField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid email.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):!t||this.validation==="simple"?(this._onValidateSuccess(),!0):new RegExp(this.pattern).test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5046
+ `}};exports.PontConfirmField.ROOT="confirm-field";exports.PontConfirmField.LABEL="label";exports.PontConfirmField.MARK="mark";exports.PontConfirmField.DESCRIPTION="description";exports.PontConfirmField.INPUT="input";exports.PontConfirmField.ERROR="error";exports.PontConfirmField.TAG=`${ot}-${exports.PontConfirmField.ROOT}`;exports.PontConfirmField.VALIDATE_EVENT=`${exports.PontConfirmField.TAG}:validate`;exports.PontConfirmField.PARTS={root:exports.PontConfirmField.ROOT,label:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.LABEL}`,mark:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.MARK}`,description:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.DESCRIPTION}`,input:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.INPUT}`,error:`${exports.PontConfirmField.ROOT}-${exports.PontConfirmField.ERROR}`};exports.PontConfirmField.INPUT_SELECTORS=`pont-input[part="${exports.PontConfirmField.PARTS.input}"], pont-password-input[part="${exports.PontConfirmField.PARTS.input}"]`;st([a({type:String})],exports.PontConfirmField.prototype,"seed",2);st([a({type:String,attribute:"custom-id"})],exports.PontConfirmField.prototype,"customId",2);st([a({type:String,attribute:"input-id"})],exports.PontConfirmField.prototype,"inputId",1);st([a({type:String})],exports.PontConfirmField.prototype,"name",1);st([a({type:String,attribute:"default-value"})],exports.PontConfirmField.prototype,"defaultValue",2);st([a({type:String})],exports.PontConfirmField.prototype,"label",1);st([a({type:String})],exports.PontConfirmField.prototype,"placeholder",2);st([a({type:String})],exports.PontConfirmField.prototype,"description",2);st([a({type:String})],exports.PontConfirmField.prototype,"variant",2);st([a({type:String})],exports.PontConfirmField.prototype,"mark",2);st([a({type:Boolean})],exports.PontConfirmField.prototype,"caret",2);st([a({type:String})],exports.PontConfirmField.prototype,"autocomplete",2);st([a({type:Boolean})],exports.PontConfirmField.prototype,"disabled",2);st([a({type:Boolean})],exports.PontConfirmField.prototype,"required",2);st([a({type:String})],exports.PontConfirmField.prototype,"pair",2);st([a({type:String})],exports.PontConfirmField.prototype,"validation",2);st([a({type:String,attribute:"required-error"})],exports.PontConfirmField.prototype,"requiredError",1);st([a({type:String,attribute:"match-error"})],exports.PontConfirmField.prototype,"matchError",1);st([g()],exports.PontConfirmField.prototype,"_invalid",2);st([g()],exports.PontConfirmField.prototype,"_error",2);st([g()],exports.PontConfirmField.prototype,"_value",2);exports.PontConfirmField=st([p("pont-confirm-field")],exports.PontConfirmField);var c0=Object.defineProperty,p0=Object.getOwnPropertyDescriptor,ht=(e,t,r,n)=>{for(var o=n>1?void 0:n?p0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c0(t,r,o),o};exports.PontEmailField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=lo.name,this._label=lo.label,this.pattern=lo.pattern,this.validation=lo.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontEmailField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontEmailField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontEmailField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:lo.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:lo.label,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontEmailField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontEmailField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontEmailField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontEmailField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontEmailField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().toLowerCase()}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontEmailField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontEmailField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid email.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):!t||this.validation==="simple"?(this._onValidateSuccess(),!0):new RegExp(this.pattern).test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5047
5047
  <span
5048
5048
  id="${this.markId}"
5049
5049
  part="${exports.PontEmailField.PARTS.mark}"
@@ -5093,7 +5093,7 @@
5093
5093
  </pont-field-description>
5094
5094
  `:h}
5095
5095
  </pont-field>
5096
- `}};exports.PontEmailField.ROOT="email-field";exports.PontEmailField.LABEL="label";exports.PontEmailField.MARK="mark";exports.PontEmailField.DESCRIPTION="description";exports.PontEmailField.INPUT="input";exports.PontEmailField.ERROR="error";exports.PontEmailField.TAG=`${rt}-${exports.PontEmailField.ROOT}`;exports.PontEmailField.VALIDATE_EVENT=`${exports.PontEmailField.TAG}:validate`;exports.PontEmailField.PARTS={root:exports.PontEmailField.ROOT,label:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.LABEL}`,mark:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.MARK}`,description:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.DESCRIPTION}`,input:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.INPUT}`,error:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.ERROR}`};exports.PontEmailField.INPUT_SELECTORS=`pont-input[part="${exports.PontEmailField.PARTS.input}"]`;ht([a({type:String})],exports.PontEmailField.prototype,"seed",2);ht([a({type:String,attribute:"custom-id"})],exports.PontEmailField.prototype,"customId",2);ht([a({type:String,attribute:"input-id"})],exports.PontEmailField.prototype,"inputId",1);ht([a({type:String})],exports.PontEmailField.prototype,"name",1);ht([a({type:String,attribute:"default-value"})],exports.PontEmailField.prototype,"defaultValue",2);ht([a({type:String})],exports.PontEmailField.prototype,"label",1);ht([a({type:String})],exports.PontEmailField.prototype,"placeholder",2);ht([a({type:String})],exports.PontEmailField.prototype,"description",2);ht([a({type:String})],exports.PontEmailField.prototype,"mark",2);ht([a({type:Boolean})],exports.PontEmailField.prototype,"caret",2);ht([a({type:String})],exports.PontEmailField.prototype,"autocomplete",2);ht([a({type:Boolean})],exports.PontEmailField.prototype,"disabled",2);ht([a({type:Boolean})],exports.PontEmailField.prototype,"required",2);ht([a({type:String})],exports.PontEmailField.prototype,"pattern",2);ht([a({type:String})],exports.PontEmailField.prototype,"validation",2);ht([a({type:String,attribute:"required-error"})],exports.PontEmailField.prototype,"requiredError",1);ht([a({type:String,attribute:"format-error"})],exports.PontEmailField.prototype,"formatError",1);ht([g()],exports.PontEmailField.prototype,"_invalid",2);ht([g()],exports.PontEmailField.prototype,"_error",2);ht([g()],exports.PontEmailField.prototype,"_value",2);exports.PontEmailField=ht([p("pont-email-field")],exports.PontEmailField);var h0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,bt=(e,t,r,n)=>{for(var o=n>1?void 0:n?u0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&h0(t,r,o),o};exports.PontIdentifierField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=Zo.name,this.identifiers=Zo.identifiers,this.design=new In(this),this.validation=Zo.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontIdentifierField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontIdentifierField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontIdentifierField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:Zo.name,this.requestUpdate("name",r)}get _identifiers(){return this.identifiers.length===0&&this.design.active?["email","username","phone"]:this.identifiers}get _defaultLabel(){const t=this._identifiers;if(t.length===0)return Zo.label;let r=t[0];if(t.length>1){const n=t.slice(0,-1).join(", "),o=t.length>2?", or ":" or ",i=t.slice(-1)[0];r=n+o+i}return r.charAt(0).toUpperCase()+r.slice(1)}get label(){return this._label??this._defaultLabel}set label(t){const r=this.label;this._label=t||void 0,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontIdentifierField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontIdentifierField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontIdentifierField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontIdentifierField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontIdentifierField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().toLowerCase()}get _type(){const t=this._identifiers.join();return t==="email"?"email":t==="phone"?"tel":"text"}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontIdentifierField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,identifiers:d,value:c}=this;this.dispatchEvent(new CustomEvent(exports.PontIdentifierField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,identifiers:d,value:c,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid identifier.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):(this._onValidateSuccess(),!0)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5096
+ `}};exports.PontEmailField.ROOT="email-field";exports.PontEmailField.LABEL="label";exports.PontEmailField.MARK="mark";exports.PontEmailField.DESCRIPTION="description";exports.PontEmailField.INPUT="input";exports.PontEmailField.ERROR="error";exports.PontEmailField.TAG=`${ot}-${exports.PontEmailField.ROOT}`;exports.PontEmailField.VALIDATE_EVENT=`${exports.PontEmailField.TAG}:validate`;exports.PontEmailField.PARTS={root:exports.PontEmailField.ROOT,label:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.LABEL}`,mark:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.MARK}`,description:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.DESCRIPTION}`,input:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.INPUT}`,error:`${exports.PontEmailField.ROOT}-${exports.PontEmailField.ERROR}`};exports.PontEmailField.INPUT_SELECTORS=`pont-input[part="${exports.PontEmailField.PARTS.input}"]`;ht([a({type:String})],exports.PontEmailField.prototype,"seed",2);ht([a({type:String,attribute:"custom-id"})],exports.PontEmailField.prototype,"customId",2);ht([a({type:String,attribute:"input-id"})],exports.PontEmailField.prototype,"inputId",1);ht([a({type:String})],exports.PontEmailField.prototype,"name",1);ht([a({type:String,attribute:"default-value"})],exports.PontEmailField.prototype,"defaultValue",2);ht([a({type:String})],exports.PontEmailField.prototype,"label",1);ht([a({type:String})],exports.PontEmailField.prototype,"placeholder",2);ht([a({type:String})],exports.PontEmailField.prototype,"description",2);ht([a({type:String})],exports.PontEmailField.prototype,"mark",2);ht([a({type:Boolean})],exports.PontEmailField.prototype,"caret",2);ht([a({type:String})],exports.PontEmailField.prototype,"autocomplete",2);ht([a({type:Boolean})],exports.PontEmailField.prototype,"disabled",2);ht([a({type:Boolean})],exports.PontEmailField.prototype,"required",2);ht([a({type:String})],exports.PontEmailField.prototype,"pattern",2);ht([a({type:String})],exports.PontEmailField.prototype,"validation",2);ht([a({type:String,attribute:"required-error"})],exports.PontEmailField.prototype,"requiredError",1);ht([a({type:String,attribute:"format-error"})],exports.PontEmailField.prototype,"formatError",1);ht([g()],exports.PontEmailField.prototype,"_invalid",2);ht([g()],exports.PontEmailField.prototype,"_error",2);ht([g()],exports.PontEmailField.prototype,"_value",2);exports.PontEmailField=ht([p("pont-email-field")],exports.PontEmailField);var h0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,bt=(e,t,r,n)=>{for(var o=n>1?void 0:n?u0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&h0(t,r,o),o};exports.PontIdentifierField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=Zo.name,this.identifiers=Zo.identifiers,this.design=new An(this),this.validation=Zo.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontIdentifierField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontIdentifierField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontIdentifierField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:Zo.name,this.requestUpdate("name",r)}get _identifiers(){return this.identifiers.length===0&&this.design.active?["email","username","phone"]:this.identifiers}get _defaultLabel(){const t=this._identifiers;if(t.length===0)return Zo.label;let r=t[0];if(t.length>1){const n=t.slice(0,-1).join(", "),o=t.length>2?", or ":" or ",i=t.slice(-1)[0];r=n+o+i}return r.charAt(0).toUpperCase()+r.slice(1)}get label(){return this._label??this._defaultLabel}set label(t){const r=this.label;this._label=t||void 0,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontIdentifierField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontIdentifierField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontIdentifierField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontIdentifierField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontIdentifierField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().toLowerCase()}get _type(){const t=this._identifiers.join();return t==="email"?"email":t==="phone"?"tel":"text"}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontIdentifierField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,identifiers:d,value:c}=this;this.dispatchEvent(new CustomEvent(exports.PontIdentifierField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,identifiers:d,value:c,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid identifier.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):(this._onValidateSuccess(),!0)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5097
5097
  <span
5098
5098
  id="${this.markId}"
5099
5099
  part="${exports.PontIdentifierField.PARTS.mark}"
@@ -5143,7 +5143,7 @@
5143
5143
  </pont-field-description>
5144
5144
  `:h}
5145
5145
  </pont-field>
5146
- `}};exports.PontIdentifierField.ROOT="identifier-field";exports.PontIdentifierField.LABEL="label";exports.PontIdentifierField.MARK="mark";exports.PontIdentifierField.DESCRIPTION="description";exports.PontIdentifierField.INPUT="input";exports.PontIdentifierField.ERROR="error";exports.PontIdentifierField.TAG=`${rt}-${exports.PontIdentifierField.ROOT}`;exports.PontIdentifierField.VALIDATE_EVENT=`${exports.PontIdentifierField.TAG}:validate`;exports.PontIdentifierField.PARTS={root:exports.PontIdentifierField.ROOT,label:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.LABEL}`,mark:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.MARK}`,description:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.DESCRIPTION}`,input:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.INPUT}`,error:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.ERROR}`};exports.PontIdentifierField.INPUT_SELECTORS=`pont-input[part="${exports.PontIdentifierField.PARTS.input}"]`;bt([a({type:String})],exports.PontIdentifierField.prototype,"seed",2);bt([a({type:String,attribute:"custom-id"})],exports.PontIdentifierField.prototype,"customId",2);bt([a({type:String,attribute:"input-id"})],exports.PontIdentifierField.prototype,"inputId",1);bt([a({type:String})],exports.PontIdentifierField.prototype,"name",1);bt([a({type:String,attribute:"default-value"})],exports.PontIdentifierField.prototype,"defaultValue",2);bt([a({type:Array})],exports.PontIdentifierField.prototype,"identifiers",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"label",1);bt([a({type:String})],exports.PontIdentifierField.prototype,"placeholder",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"description",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"mark",2);bt([a({type:Boolean})],exports.PontIdentifierField.prototype,"caret",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"autocomplete",2);bt([a({type:Boolean})],exports.PontIdentifierField.prototype,"disabled",2);bt([a({type:Boolean})],exports.PontIdentifierField.prototype,"required",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"validation",2);bt([a({type:String,attribute:"required-error"})],exports.PontIdentifierField.prototype,"requiredError",1);bt([g()],exports.PontIdentifierField.prototype,"_invalid",2);bt([g()],exports.PontIdentifierField.prototype,"_error",2);bt([g()],exports.PontIdentifierField.prototype,"_value",2);exports.PontIdentifierField=bt([p("pont-identifier-field")],exports.PontIdentifierField);var m0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,J=(e,t,r,n)=>{for(var o=n>1?void 0:n?g0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&m0(t,r,o),o};exports.PontNameField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=ho.name,this._label=ho.label,this.pattern=ho.pattern,this.validation=ho.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontNameField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontNameField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontNameField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:ho.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:ho.label,this.requestUpdate("label",r)}get minlength(){return this._minlength}set minlength(t){const r=this._minlength;this._minlength=t===void 0||t>0?t:void 0,this.requestUpdate("minlength",r)}get maxlength(){return this._maxlength}set maxlength(t){const r=this._maxlength;if(t===void 0||t<=0)this._maxlength=void 0;else{const{minlength:n}=this;this._maxlength=n?Math.max(t,n):t}this.requestUpdate("maxlength",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultMinlengthError(){return qo(this.label,this.minlength)}get minlengthError(){return this._minlengthError??this._defaultMinlengthError}set minlengthError(t){const r=this.minlengthError;this._minlengthError=t||void 0,this.requestUpdate("minlengthError",r)}get _defaultMaxlengthError(){return zo(this.label,this.maxlength)}get maxlengthError(){return this._maxlengthError??this._defaultMaxlengthError}set maxlengthError(t){const r=this.maxlengthError;this._maxlengthError=t||void 0,this.requestUpdate("maxlengthError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontNameField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontNameField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontNameField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontNameField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontNameField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().replace(/\s+/g," ")}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontNameField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontNameField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid name.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;if(this.required&&!t)return this._onValidateError("required",this.requiredError),!1;if(!t||this.validation==="simple")return this._onValidateSuccess(),!0;const{minlength:r}=this;if(r&&t.length<r)return this._onValidateError("minlength",this.minlengthError),!1;const{maxlength:n}=this;return n&&t.length>n?(this._onValidateError("maxlength",this.maxlengthError),!1):new RegExp(this.pattern,"u").test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5146
+ `}};exports.PontIdentifierField.ROOT="identifier-field";exports.PontIdentifierField.LABEL="label";exports.PontIdentifierField.MARK="mark";exports.PontIdentifierField.DESCRIPTION="description";exports.PontIdentifierField.INPUT="input";exports.PontIdentifierField.ERROR="error";exports.PontIdentifierField.TAG=`${ot}-${exports.PontIdentifierField.ROOT}`;exports.PontIdentifierField.VALIDATE_EVENT=`${exports.PontIdentifierField.TAG}:validate`;exports.PontIdentifierField.PARTS={root:exports.PontIdentifierField.ROOT,label:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.LABEL}`,mark:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.MARK}`,description:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.DESCRIPTION}`,input:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.INPUT}`,error:`${exports.PontIdentifierField.ROOT}-${exports.PontIdentifierField.ERROR}`};exports.PontIdentifierField.INPUT_SELECTORS=`pont-input[part="${exports.PontIdentifierField.PARTS.input}"]`;bt([a({type:String})],exports.PontIdentifierField.prototype,"seed",2);bt([a({type:String,attribute:"custom-id"})],exports.PontIdentifierField.prototype,"customId",2);bt([a({type:String,attribute:"input-id"})],exports.PontIdentifierField.prototype,"inputId",1);bt([a({type:String})],exports.PontIdentifierField.prototype,"name",1);bt([a({type:String,attribute:"default-value"})],exports.PontIdentifierField.prototype,"defaultValue",2);bt([a({type:Array})],exports.PontIdentifierField.prototype,"identifiers",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"label",1);bt([a({type:String})],exports.PontIdentifierField.prototype,"placeholder",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"description",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"mark",2);bt([a({type:Boolean})],exports.PontIdentifierField.prototype,"caret",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"autocomplete",2);bt([a({type:Boolean})],exports.PontIdentifierField.prototype,"disabled",2);bt([a({type:Boolean})],exports.PontIdentifierField.prototype,"required",2);bt([a({type:String})],exports.PontIdentifierField.prototype,"validation",2);bt([a({type:String,attribute:"required-error"})],exports.PontIdentifierField.prototype,"requiredError",1);bt([g()],exports.PontIdentifierField.prototype,"_invalid",2);bt([g()],exports.PontIdentifierField.prototype,"_error",2);bt([g()],exports.PontIdentifierField.prototype,"_value",2);exports.PontIdentifierField=bt([p("pont-identifier-field")],exports.PontIdentifierField);var m0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,J=(e,t,r,n)=>{for(var o=n>1?void 0:n?g0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&m0(t,r,o),o};exports.PontNameField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=ho.name,this._label=ho.label,this.pattern=ho.pattern,this.validation=ho.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontNameField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontNameField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontNameField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:ho.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:ho.label,this.requestUpdate("label",r)}get minlength(){return this._minlength}set minlength(t){const r=this._minlength;this._minlength=t===void 0||t>0?t:void 0,this.requestUpdate("minlength",r)}get maxlength(){return this._maxlength}set maxlength(t){const r=this._maxlength;if(t===void 0||t<=0)this._maxlength=void 0;else{const{minlength:n}=this;this._maxlength=n?Math.max(t,n):t}this.requestUpdate("maxlength",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultMinlengthError(){return qo(this.label,this.minlength)}get minlengthError(){return this._minlengthError??this._defaultMinlengthError}set minlengthError(t){const r=this.minlengthError;this._minlengthError=t||void 0,this.requestUpdate("minlengthError",r)}get _defaultMaxlengthError(){return zo(this.label,this.maxlength)}get maxlengthError(){return this._maxlengthError??this._defaultMaxlengthError}set maxlengthError(t){const r=this.maxlengthError;this._maxlengthError=t||void 0,this.requestUpdate("maxlengthError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontNameField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontNameField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontNameField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontNameField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontNameField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().replace(/\s+/g," ")}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontNameField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontNameField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid name.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;if(this.required&&!t)return this._onValidateError("required",this.requiredError),!1;if(!t||this.validation==="simple")return this._onValidateSuccess(),!0;const{minlength:r}=this;if(r&&t.length<r)return this._onValidateError("minlength",this.minlengthError),!1;const{maxlength:n}=this;return n&&t.length>n?(this._onValidateError("maxlength",this.maxlengthError),!1):new RegExp(this.pattern,"u").test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5147
5147
  <span
5148
5148
  id="${this.markId}"
5149
5149
  part="${exports.PontNameField.PARTS.mark}"
@@ -5193,7 +5193,7 @@
5193
5193
  </pont-field-description>
5194
5194
  `:h}
5195
5195
  </pont-field>
5196
- `}};exports.PontNameField.ROOT="name-field";exports.PontNameField.LABEL="label";exports.PontNameField.MARK="mark";exports.PontNameField.DESCRIPTION="description";exports.PontNameField.INPUT="input";exports.PontNameField.ERROR="error";exports.PontNameField.TAG=`${rt}-${exports.PontNameField.ROOT}`;exports.PontNameField.VALIDATE_EVENT=`${exports.PontNameField.TAG}:validate`;exports.PontNameField.PARTS={root:exports.PontNameField.ROOT,label:`${exports.PontNameField.ROOT}-${exports.PontNameField.LABEL}`,mark:`${exports.PontNameField.ROOT}-${exports.PontNameField.MARK}`,description:`${exports.PontNameField.ROOT}-${exports.PontNameField.DESCRIPTION}`,input:`${exports.PontNameField.ROOT}-${exports.PontNameField.INPUT}`,error:`${exports.PontNameField.ROOT}-${exports.PontNameField.ERROR}`};exports.PontNameField.INPUT_SELECTORS=`pont-input[part="${exports.PontNameField.PARTS.input}"]`;J([a({type:String})],exports.PontNameField.prototype,"seed",2);J([a({type:String,attribute:"custom-id"})],exports.PontNameField.prototype,"customId",2);J([a({type:String,attribute:"input-id"})],exports.PontNameField.prototype,"inputId",1);J([a({type:String})],exports.PontNameField.prototype,"name",1);J([a({type:String,attribute:"default-value"})],exports.PontNameField.prototype,"defaultValue",2);J([a({type:String})],exports.PontNameField.prototype,"label",1);J([a({type:String})],exports.PontNameField.prototype,"placeholder",2);J([a({type:String})],exports.PontNameField.prototype,"description",2);J([a({type:String})],exports.PontNameField.prototype,"mark",2);J([a({type:Boolean})],exports.PontNameField.prototype,"caret",2);J([a({type:String})],exports.PontNameField.prototype,"autocomplete",2);J([a({type:Boolean})],exports.PontNameField.prototype,"disabled",2);J([a({type:Boolean})],exports.PontNameField.prototype,"required",2);J([a({type:Number})],exports.PontNameField.prototype,"minlength",1);J([a({type:Number})],exports.PontNameField.prototype,"maxlength",1);J([a({type:String})],exports.PontNameField.prototype,"pattern",2);J([a({type:String})],exports.PontNameField.prototype,"validation",2);J([a({type:String,attribute:"required-error"})],exports.PontNameField.prototype,"requiredError",1);J([a({type:String,attribute:"minlength-error"})],exports.PontNameField.prototype,"minlengthError",1);J([a({type:String,attribute:"maxlength-error"})],exports.PontNameField.prototype,"maxlengthError",1);J([a({type:String,attribute:"format-error"})],exports.PontNameField.prototype,"formatError",1);J([g()],exports.PontNameField.prototype,"_invalid",2);J([g()],exports.PontNameField.prototype,"_error",2);J([g()],exports.PontNameField.prototype,"_value",2);exports.PontNameField=J([p("pont-name-field")],exports.PontNameField);var f0=Object.defineProperty,v0=Object.getOwnPropertyDescriptor,ut=(e,t,r,n)=>{for(var o=n>1?void 0:n?v0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&f0(t,r,o),o};exports.PontPhoneField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=co.name,this._label=co.label,this.pattern=co.pattern,this.validation=co.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontPhoneField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontPhoneField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontPhoneField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:co.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:co.label,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontPhoneField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontPhoneField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontPhoneField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontPhoneField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontPhoneField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).replace(/\s/g,"")}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontPhoneField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontPhoneField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid phone.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):!t||this.validation==="simple"?(this._onValidateSuccess(),!0):new RegExp(this.pattern).test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5196
+ `}};exports.PontNameField.ROOT="name-field";exports.PontNameField.LABEL="label";exports.PontNameField.MARK="mark";exports.PontNameField.DESCRIPTION="description";exports.PontNameField.INPUT="input";exports.PontNameField.ERROR="error";exports.PontNameField.TAG=`${ot}-${exports.PontNameField.ROOT}`;exports.PontNameField.VALIDATE_EVENT=`${exports.PontNameField.TAG}:validate`;exports.PontNameField.PARTS={root:exports.PontNameField.ROOT,label:`${exports.PontNameField.ROOT}-${exports.PontNameField.LABEL}`,mark:`${exports.PontNameField.ROOT}-${exports.PontNameField.MARK}`,description:`${exports.PontNameField.ROOT}-${exports.PontNameField.DESCRIPTION}`,input:`${exports.PontNameField.ROOT}-${exports.PontNameField.INPUT}`,error:`${exports.PontNameField.ROOT}-${exports.PontNameField.ERROR}`};exports.PontNameField.INPUT_SELECTORS=`pont-input[part="${exports.PontNameField.PARTS.input}"]`;J([a({type:String})],exports.PontNameField.prototype,"seed",2);J([a({type:String,attribute:"custom-id"})],exports.PontNameField.prototype,"customId",2);J([a({type:String,attribute:"input-id"})],exports.PontNameField.prototype,"inputId",1);J([a({type:String})],exports.PontNameField.prototype,"name",1);J([a({type:String,attribute:"default-value"})],exports.PontNameField.prototype,"defaultValue",2);J([a({type:String})],exports.PontNameField.prototype,"label",1);J([a({type:String})],exports.PontNameField.prototype,"placeholder",2);J([a({type:String})],exports.PontNameField.prototype,"description",2);J([a({type:String})],exports.PontNameField.prototype,"mark",2);J([a({type:Boolean})],exports.PontNameField.prototype,"caret",2);J([a({type:String})],exports.PontNameField.prototype,"autocomplete",2);J([a({type:Boolean})],exports.PontNameField.prototype,"disabled",2);J([a({type:Boolean})],exports.PontNameField.prototype,"required",2);J([a({type:Number})],exports.PontNameField.prototype,"minlength",1);J([a({type:Number})],exports.PontNameField.prototype,"maxlength",1);J([a({type:String})],exports.PontNameField.prototype,"pattern",2);J([a({type:String})],exports.PontNameField.prototype,"validation",2);J([a({type:String,attribute:"required-error"})],exports.PontNameField.prototype,"requiredError",1);J([a({type:String,attribute:"minlength-error"})],exports.PontNameField.prototype,"minlengthError",1);J([a({type:String,attribute:"maxlength-error"})],exports.PontNameField.prototype,"maxlengthError",1);J([a({type:String,attribute:"format-error"})],exports.PontNameField.prototype,"formatError",1);J([g()],exports.PontNameField.prototype,"_invalid",2);J([g()],exports.PontNameField.prototype,"_error",2);J([g()],exports.PontNameField.prototype,"_value",2);exports.PontNameField=J([p("pont-name-field")],exports.PontNameField);var f0=Object.defineProperty,v0=Object.getOwnPropertyDescriptor,ut=(e,t,r,n)=>{for(var o=n>1?void 0:n?v0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&f0(t,r,o),o};exports.PontPhoneField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=co.name,this._label=co.label,this.pattern=co.pattern,this.validation=co.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontPhoneField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontPhoneField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontPhoneField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:co.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:co.label,this.requestUpdate("label",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontPhoneField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontPhoneField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontPhoneField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontPhoneField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontPhoneField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).replace(/\s/g,"")}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontPhoneField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontPhoneField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid phone.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;return this.required&&!t?(this._onValidateError("required",this.requiredError),!1):!t||this.validation==="simple"?(this._onValidateSuccess(),!0):new RegExp(this.pattern).test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5197
5197
  <span
5198
5198
  id="${this.markId}"
5199
5199
  part="${exports.PontPhoneField.PARTS.mark}"
@@ -5243,7 +5243,7 @@
5243
5243
  </pont-field-description>
5244
5244
  `:h}
5245
5245
  </pont-field>
5246
- `}};exports.PontPhoneField.ROOT="phone-field";exports.PontPhoneField.LABEL="label";exports.PontPhoneField.MARK="mark";exports.PontPhoneField.DESCRIPTION="description";exports.PontPhoneField.INPUT="input";exports.PontPhoneField.ERROR="error";exports.PontPhoneField.TAG=`${rt}-${exports.PontPhoneField.ROOT}`;exports.PontPhoneField.VALIDATE_EVENT=`${exports.PontPhoneField.TAG}:validate`;exports.PontPhoneField.PARTS={root:exports.PontPhoneField.ROOT,label:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.LABEL}`,mark:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.MARK}`,description:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.DESCRIPTION}`,input:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.INPUT}`,error:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.ERROR}`};exports.PontPhoneField.INPUT_SELECTORS=`pont-input[part="${exports.PontPhoneField.PARTS.input}"]`;ut([a({type:String})],exports.PontPhoneField.prototype,"seed",2);ut([a({type:String,attribute:"custom-id"})],exports.PontPhoneField.prototype,"customId",2);ut([a({type:String,attribute:"input-id"})],exports.PontPhoneField.prototype,"inputId",1);ut([a({type:String})],exports.PontPhoneField.prototype,"name",1);ut([a({type:String,attribute:"default-value"})],exports.PontPhoneField.prototype,"defaultValue",2);ut([a({type:String})],exports.PontPhoneField.prototype,"label",1);ut([a({type:String})],exports.PontPhoneField.prototype,"placeholder",2);ut([a({type:String})],exports.PontPhoneField.prototype,"description",2);ut([a({type:String})],exports.PontPhoneField.prototype,"mark",2);ut([a({type:Boolean})],exports.PontPhoneField.prototype,"caret",2);ut([a({type:String})],exports.PontPhoneField.prototype,"autocomplete",2);ut([a({type:Boolean})],exports.PontPhoneField.prototype,"disabled",2);ut([a({type:Boolean})],exports.PontPhoneField.prototype,"required",2);ut([a({type:String})],exports.PontPhoneField.prototype,"pattern",2);ut([a({type:String})],exports.PontPhoneField.prototype,"validation",2);ut([a({type:String,attribute:"required-error"})],exports.PontPhoneField.prototype,"requiredError",1);ut([a({type:String,attribute:"format-error"})],exports.PontPhoneField.prototype,"formatError",1);ut([g()],exports.PontPhoneField.prototype,"_invalid",2);ut([g()],exports.PontPhoneField.prototype,"_error",2);ut([g()],exports.PontPhoneField.prototype,"_value",2);exports.PontPhoneField=ut([p("pont-phone-field")],exports.PontPhoneField);var b0=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,X=(e,t,r,n)=>{for(var o=n>1?void 0:n?y0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&b0(t,r,o),o};exports.PontUsernameField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=po.name,this._label=po.label,this.pattern=po.pattern,this.validation=po.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontUsernameField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontUsernameField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontUsernameField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:po.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:po.label,this.requestUpdate("label",r)}get minlength(){return this._minlength}set minlength(t){const r=this._minlength;this._minlength=t===void 0||t>0?t:void 0,this.requestUpdate("minlength",r)}get maxlength(){return this._maxlength}set maxlength(t){const r=this._maxlength;if(t===void 0||t<=0)this._maxlength=void 0;else{const{minlength:n}=this;this._maxlength=n?Math.max(t,n):t}this.requestUpdate("maxlength",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultMinlengthError(){return qo(this.label,this.minlength)}get minlengthError(){return this._minlengthError??this._defaultMinlengthError}set minlengthError(t){const r=this.minlengthError;this._minlengthError=t||void 0,this.requestUpdate("minlengthError",r)}get _defaultMaxlengthError(){return zo(this.label,this.maxlength)}get maxlengthError(){return this._maxlengthError??this._defaultMaxlengthError}set maxlengthError(t){const r=this.maxlengthError;this._maxlengthError=t||void 0,this.requestUpdate("maxlengthError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontUsernameField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontUsernameField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontUsernameField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontUsernameField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontUsernameField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().toLowerCase()}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontUsernameField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontUsernameField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid username.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;if(this.required&&!t)return this._onValidateError("required",this.requiredError),!1;if(!t||this.validation==="simple")return this._onValidateSuccess(),!0;const{minlength:r}=this;if(r&&t.length<r)return this._onValidateError("minlength",this.minlengthError),!1;const{maxlength:n}=this;return n&&t.length>n?(this._onValidateError("maxlength",this.maxlengthError),!1):new RegExp(this.pattern).test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5246
+ `}};exports.PontPhoneField.ROOT="phone-field";exports.PontPhoneField.LABEL="label";exports.PontPhoneField.MARK="mark";exports.PontPhoneField.DESCRIPTION="description";exports.PontPhoneField.INPUT="input";exports.PontPhoneField.ERROR="error";exports.PontPhoneField.TAG=`${ot}-${exports.PontPhoneField.ROOT}`;exports.PontPhoneField.VALIDATE_EVENT=`${exports.PontPhoneField.TAG}:validate`;exports.PontPhoneField.PARTS={root:exports.PontPhoneField.ROOT,label:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.LABEL}`,mark:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.MARK}`,description:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.DESCRIPTION}`,input:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.INPUT}`,error:`${exports.PontPhoneField.ROOT}-${exports.PontPhoneField.ERROR}`};exports.PontPhoneField.INPUT_SELECTORS=`pont-input[part="${exports.PontPhoneField.PARTS.input}"]`;ut([a({type:String})],exports.PontPhoneField.prototype,"seed",2);ut([a({type:String,attribute:"custom-id"})],exports.PontPhoneField.prototype,"customId",2);ut([a({type:String,attribute:"input-id"})],exports.PontPhoneField.prototype,"inputId",1);ut([a({type:String})],exports.PontPhoneField.prototype,"name",1);ut([a({type:String,attribute:"default-value"})],exports.PontPhoneField.prototype,"defaultValue",2);ut([a({type:String})],exports.PontPhoneField.prototype,"label",1);ut([a({type:String})],exports.PontPhoneField.prototype,"placeholder",2);ut([a({type:String})],exports.PontPhoneField.prototype,"description",2);ut([a({type:String})],exports.PontPhoneField.prototype,"mark",2);ut([a({type:Boolean})],exports.PontPhoneField.prototype,"caret",2);ut([a({type:String})],exports.PontPhoneField.prototype,"autocomplete",2);ut([a({type:Boolean})],exports.PontPhoneField.prototype,"disabled",2);ut([a({type:Boolean})],exports.PontPhoneField.prototype,"required",2);ut([a({type:String})],exports.PontPhoneField.prototype,"pattern",2);ut([a({type:String})],exports.PontPhoneField.prototype,"validation",2);ut([a({type:String,attribute:"required-error"})],exports.PontPhoneField.prototype,"requiredError",1);ut([a({type:String,attribute:"format-error"})],exports.PontPhoneField.prototype,"formatError",1);ut([g()],exports.PontPhoneField.prototype,"_invalid",2);ut([g()],exports.PontPhoneField.prototype,"_error",2);ut([g()],exports.PontPhoneField.prototype,"_value",2);exports.PontPhoneField=ut([p("pont-phone-field")],exports.PontPhoneField);var b0=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,X=(e,t,r,n)=>{for(var o=n>1?void 0:n?y0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&b0(t,r,o),o};exports.PontUsernameField=class extends f{constructor(){super(...arguments),this.seed=_t(),this._name=po.name,this._label=po.label,this.pattern=po.pattern,this.validation=po.validation,this._invalid=!1,this._error="",this._value="",this._dirty=!1,this._form=null,this._handleInput=t=>{const r=t.target,n=`${exports.PontUsernameField.INPUT_SELECTORS} > input`;r.matches(n)&&(this._dirty=!0,this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=exports.PontUsernameField.INPUT_SELECTORS,r=this.querySelector(t);r&&(r.value=this.defaultValue??""),this._invalid=!1,this._error="",this._value="",this._dirty=!1}}get _defaultInputId(){return`${this.rootId}-${exports.PontUsernameField.INPUT}`}get inputId(){return this._inputId??this._defaultInputId}set inputId(t){const r=this.inputId;this._inputId=t||void 0,this.requestUpdate("inputId",r)}get name(){return this._name}set name(t){const r=this._name;this._name=t.length?t:po.name,this.requestUpdate("name",r)}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:po.label,this.requestUpdate("label",r)}get minlength(){return this._minlength}set minlength(t){const r=this._minlength;this._minlength=t===void 0||t>0?t:void 0,this.requestUpdate("minlength",r)}get maxlength(){return this._maxlength}set maxlength(t){const r=this._maxlength;if(t===void 0||t<=0)this._maxlength=void 0;else{const{minlength:n}=this;this._maxlength=n?Math.max(t,n):t}this.requestUpdate("maxlength",r)}get _defaultRequiredError(){return Lt(this.label)}get requiredError(){return this._requiredError??this._defaultRequiredError}set requiredError(t){const r=this.requiredError;this._requiredError=t||void 0,this.requestUpdate("requiredError",r)}get _defaultMinlengthError(){return qo(this.label,this.minlength)}get minlengthError(){return this._minlengthError??this._defaultMinlengthError}set minlengthError(t){const r=this.minlengthError;this._minlengthError=t||void 0,this.requestUpdate("minlengthError",r)}get _defaultMaxlengthError(){return zo(this.label,this.maxlength)}get maxlengthError(){return this._maxlengthError??this._defaultMaxlengthError}set maxlengthError(t){const r=this.maxlengthError;this._maxlengthError=t||void 0,this.requestUpdate("maxlengthError",r)}get _defaultFormatError(){return Me(this.label)}get formatError(){return this._formatError??this._defaultFormatError}set formatError(t){const r=this.formatError;this._formatError=t||void 0,this.requestUpdate("formatError",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontUsernameField.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontUsernameField.LABEL}`}get markId(){return`${this.rootId}-${exports.PontUsernameField.MARK}`}get descriptionId(){return`${this.rootId}-${exports.PontUsernameField.DESCRIPTION}`}get errorId(){return`${this.rootId}-${exports.PontUsernameField.ERROR}`}get value(){const t=this.defaultValue??"";return(this._dirty?this._value:t).trim().toLowerCase()}updated(t){if(t.has("defaultValue")&&!this._dirty){const r=exports.PontUsernameField.INPUT_SELECTORS,n=this.querySelector(r);n&&(n.value=this.defaultValue??"")}}connectedCallback(){super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form!==null&&(this._form.noValidate=!0,this._form.addEventListener("submit",this._handleFormSubmit),this._form.addEventListener("reset",this._handleFormReset))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),this._form!==null&&(this._form.removeEventListener("submit",this._handleFormSubmit),this._form.removeEventListener("reset",this._handleFormReset),this._form=null)}validate(){return this._validate()}_dispatchValidate(t,r,n){const{rootId:o,inputId:i,name:s,value:d}=this;this.dispatchEvent(new CustomEvent(exports.PontUsernameField.VALIDATE_EVENT,{detail:{id:o,inputId:i,name:s,value:d,valid:t,type:r,message:n},bubbles:!0,composed:!0}))}_onValidateSuccess(){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success","Valid username.")}_onValidateError(t,r){this._invalid=!0,this._error=r,this._dispatchValidate(!1,t,r)}_validate(){const t=this.value;if(this.required&&!t)return this._onValidateError("required",this.requiredError),!1;if(!t||this.validation==="simple")return this._onValidateSuccess(),!0;const{minlength:r}=this;if(r&&t.length<r)return this._onValidateError("minlength",this.minlengthError),!1;const{maxlength:n}=this;return n&&t.length>n?(this._onValidateError("maxlength",this.maxlengthError),!1):new RegExp(this.pattern).test(t)?(this._onValidateSuccess(),!0):(this._onValidateError("format",this.formatError),!1)}_renderMark(){let t;if(this.mark)t="mark";else if(this.required&&this.caret)t="caret";else return h;return l`
5247
5247
  <span
5248
5248
  id="${this.markId}"
5249
5249
  part="${exports.PontUsernameField.PARTS.mark}"
@@ -5293,7 +5293,7 @@
5293
5293
  </pont-field-description>
5294
5294
  `:h}
5295
5295
  </pont-field>
5296
- `}};exports.PontUsernameField.ROOT="username-field";exports.PontUsernameField.LABEL="label";exports.PontUsernameField.MARK="mark";exports.PontUsernameField.DESCRIPTION="description";exports.PontUsernameField.INPUT="input";exports.PontUsernameField.ERROR="error";exports.PontUsernameField.TAG=`${rt}-${exports.PontUsernameField.ROOT}`;exports.PontUsernameField.VALIDATE_EVENT=`${exports.PontUsernameField.TAG}:validate`;exports.PontUsernameField.PARTS={root:exports.PontUsernameField.ROOT,label:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.LABEL}`,mark:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.MARK}`,description:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.DESCRIPTION}`,input:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.INPUT}`,error:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.ERROR}`};exports.PontUsernameField.INPUT_SELECTORS=`pont-input[part="${exports.PontUsernameField.PARTS.input}"]`;X([a({type:String})],exports.PontUsernameField.prototype,"seed",2);X([a({type:String,attribute:"custom-id"})],exports.PontUsernameField.prototype,"customId",2);X([a({type:String,attribute:"input-id"})],exports.PontUsernameField.prototype,"inputId",1);X([a({type:String})],exports.PontUsernameField.prototype,"name",1);X([a({type:String,attribute:"default-value"})],exports.PontUsernameField.prototype,"defaultValue",2);X([a({type:String})],exports.PontUsernameField.prototype,"label",1);X([a({type:String})],exports.PontUsernameField.prototype,"placeholder",2);X([a({type:String})],exports.PontUsernameField.prototype,"description",2);X([a({type:String})],exports.PontUsernameField.prototype,"mark",2);X([a({type:Boolean})],exports.PontUsernameField.prototype,"caret",2);X([a({type:String})],exports.PontUsernameField.prototype,"autocomplete",2);X([a({type:Boolean})],exports.PontUsernameField.prototype,"disabled",2);X([a({type:Boolean})],exports.PontUsernameField.prototype,"required",2);X([a({type:Number})],exports.PontUsernameField.prototype,"minlength",1);X([a({type:Number})],exports.PontUsernameField.prototype,"maxlength",1);X([a({type:String})],exports.PontUsernameField.prototype,"pattern",2);X([a({type:String})],exports.PontUsernameField.prototype,"validation",2);X([a({type:String,attribute:"required-error"})],exports.PontUsernameField.prototype,"requiredError",1);X([a({type:String,attribute:"minlength-error"})],exports.PontUsernameField.prototype,"minlengthError",1);X([a({type:String,attribute:"maxlength-error"})],exports.PontUsernameField.prototype,"maxlengthError",1);X([a({type:String,attribute:"format-error"})],exports.PontUsernameField.prototype,"formatError",1);X([g()],exports.PontUsernameField.prototype,"_invalid",2);X([g()],exports.PontUsernameField.prototype,"_error",2);X([g()],exports.PontUsernameField.prototype,"_value",2);exports.PontUsernameField=X([p("pont-username-field")],exports.PontUsernameField);const cs={label:"Link",service:"auth"};var _0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,Ne=(e,t,r,n)=>{for(var o=n>1?void 0:n?w0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&_0(t,r,o),o};exports.PontLink=class extends f{constructor(){super(...arguments),this.seed=_t(),this._label=cs.label,this.service=cs.service,this._loading=!1,this._handleClick=async()=>{if(this.isDisabled)return;this._loading=!0;const{rootId:t,buttonId:r,service:n,event:o}=this;this.dispatchEvent(new CustomEvent(exports.PontLink.CLICK_EVENT,{detail:{id:t,buttonId:r,service:n,event:o},bubbles:!0,composed:!0}));try{if(o&&n==="auth"){const i=await Y.processLoginflowEvent({event:o});this.dispatchEvent(new CustomEvent(exports.PontLink.SUCCESS_EVENT,{detail:{id:t,buttonId:r,event:o,result:i},bubbles:!0,composed:!0}))}}catch(i){const s=i instanceof Error?i.message:String(i);this.dispatchEvent(new CustomEvent(exports.PontLink.ERROR_EVENT,{detail:{id:t,buttonId:r,event:o,message:s},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:cs.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontLink.TAG}-${this.seed}`}get buttonId(){return`${this.rootId}-${exports.PontLink.BUTTON}`}get promptId(){return`${this.rootId}-${exports.PontLink.PROMPT}`}get isLoading(){return this.loading||this._loading}get isDisabled(){return this.disabled||this.isLoading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}render(){var t;return l`
5296
+ `}};exports.PontUsernameField.ROOT="username-field";exports.PontUsernameField.LABEL="label";exports.PontUsernameField.MARK="mark";exports.PontUsernameField.DESCRIPTION="description";exports.PontUsernameField.INPUT="input";exports.PontUsernameField.ERROR="error";exports.PontUsernameField.TAG=`${ot}-${exports.PontUsernameField.ROOT}`;exports.PontUsernameField.VALIDATE_EVENT=`${exports.PontUsernameField.TAG}:validate`;exports.PontUsernameField.PARTS={root:exports.PontUsernameField.ROOT,label:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.LABEL}`,mark:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.MARK}`,description:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.DESCRIPTION}`,input:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.INPUT}`,error:`${exports.PontUsernameField.ROOT}-${exports.PontUsernameField.ERROR}`};exports.PontUsernameField.INPUT_SELECTORS=`pont-input[part="${exports.PontUsernameField.PARTS.input}"]`;X([a({type:String})],exports.PontUsernameField.prototype,"seed",2);X([a({type:String,attribute:"custom-id"})],exports.PontUsernameField.prototype,"customId",2);X([a({type:String,attribute:"input-id"})],exports.PontUsernameField.prototype,"inputId",1);X([a({type:String})],exports.PontUsernameField.prototype,"name",1);X([a({type:String,attribute:"default-value"})],exports.PontUsernameField.prototype,"defaultValue",2);X([a({type:String})],exports.PontUsernameField.prototype,"label",1);X([a({type:String})],exports.PontUsernameField.prototype,"placeholder",2);X([a({type:String})],exports.PontUsernameField.prototype,"description",2);X([a({type:String})],exports.PontUsernameField.prototype,"mark",2);X([a({type:Boolean})],exports.PontUsernameField.prototype,"caret",2);X([a({type:String})],exports.PontUsernameField.prototype,"autocomplete",2);X([a({type:Boolean})],exports.PontUsernameField.prototype,"disabled",2);X([a({type:Boolean})],exports.PontUsernameField.prototype,"required",2);X([a({type:Number})],exports.PontUsernameField.prototype,"minlength",1);X([a({type:Number})],exports.PontUsernameField.prototype,"maxlength",1);X([a({type:String})],exports.PontUsernameField.prototype,"pattern",2);X([a({type:String})],exports.PontUsernameField.prototype,"validation",2);X([a({type:String,attribute:"required-error"})],exports.PontUsernameField.prototype,"requiredError",1);X([a({type:String,attribute:"minlength-error"})],exports.PontUsernameField.prototype,"minlengthError",1);X([a({type:String,attribute:"maxlength-error"})],exports.PontUsernameField.prototype,"maxlengthError",1);X([a({type:String,attribute:"format-error"})],exports.PontUsernameField.prototype,"formatError",1);X([g()],exports.PontUsernameField.prototype,"_invalid",2);X([g()],exports.PontUsernameField.prototype,"_error",2);X([g()],exports.PontUsernameField.prototype,"_value",2);exports.PontUsernameField=X([p("pont-username-field")],exports.PontUsernameField);const cs={label:"Link",service:"auth"};var _0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,Ne=(e,t,r,n)=>{for(var o=n>1?void 0:n?w0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&_0(t,r,o),o};exports.PontLink=class extends f{constructor(){super(...arguments),this.seed=_t(),this._label=cs.label,this.service=cs.service,this._loading=!1,this._handleClick=async()=>{if(this.isDisabled)return;this._loading=!0;const{rootId:t,buttonId:r,service:n,event:o}=this;this.dispatchEvent(new CustomEvent(exports.PontLink.CLICK_EVENT,{detail:{id:t,buttonId:r,service:n,event:o},bubbles:!0,composed:!0}));try{if(o&&n==="auth"){const i=await Y.processLoginflowEvent({event:o});this.dispatchEvent(new CustomEvent(exports.PontLink.SUCCESS_EVENT,{detail:{id:t,buttonId:r,event:o,result:i},bubbles:!0,composed:!0}))}}catch(i){const s=i instanceof Error?i.message:String(i);this.dispatchEvent(new CustomEvent(exports.PontLink.ERROR_EVENT,{detail:{id:t,buttonId:r,event:o,message:s},bubbles:!0,composed:!0}))}finally{this._loading=!1}}}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:cs.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontLink.TAG}-${this.seed}`}get buttonId(){return`${this.rootId}-${exports.PontLink.BUTTON}`}get promptId(){return`${this.rootId}-${exports.PontLink.PROMPT}`}get isLoading(){return this.loading||this._loading}get isDisabled(){return this.disabled||this.isLoading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}render(){var t;return l`
5297
5297
  <div id="${this.rootId}" part="${exports.PontLink.PARTS.root}">
5298
5298
  ${(t=this.prompt)!=null&&t.length?l`
5299
5299
  <p id="${this.promptId}" part="${exports.PontLink.PARTS.prompt}">
@@ -5313,7 +5313,7 @@
5313
5313
  ${this.label}
5314
5314
  </pont-button>
5315
5315
  </div>
5316
- `}};exports.PontLink.ROOT="link";exports.PontLink.BUTTON="button";exports.PontLink.PROMPT="prompt";exports.PontLink.TAG=`${rt}-${exports.PontLink.ROOT}`;exports.PontLink.CLICK_EVENT=`${exports.PontLink.TAG}:click`;exports.PontLink.SUCCESS_EVENT=`${exports.PontLink.TAG}:success`;exports.PontLink.ERROR_EVENT=`${exports.PontLink.TAG}:error`;exports.PontLink.PARTS={root:exports.PontLink.ROOT,button:`${exports.PontLink.ROOT}-${exports.PontLink.BUTTON}`,prompt:`${exports.PontLink.ROOT}-${exports.PontLink.PROMPT}`};Ne([a({type:String})],exports.PontLink.prototype,"seed",2);Ne([a({type:String,attribute:"custom-id"})],exports.PontLink.prototype,"customId",2);Ne([a({type:String})],exports.PontLink.prototype,"label",1);Ne([a({type:String})],exports.PontLink.prototype,"prompt",2);Ne([a({type:String})],exports.PontLink.prototype,"service",2);Ne([a({type:String})],exports.PontLink.prototype,"event",2);Ne([a({type:Boolean})],exports.PontLink.prototype,"disabled",2);Ne([a({type:Boolean})],exports.PontLink.prototype,"loading",2);Ne([g()],exports.PontLink.prototype,"_loading",2);exports.PontLink=Ne([p("pont-link")],exports.PontLink);/**
5316
+ `}};exports.PontLink.ROOT="link";exports.PontLink.BUTTON="button";exports.PontLink.PROMPT="prompt";exports.PontLink.TAG=`${ot}-${exports.PontLink.ROOT}`;exports.PontLink.CLICK_EVENT=`${exports.PontLink.TAG}:click`;exports.PontLink.SUCCESS_EVENT=`${exports.PontLink.TAG}:success`;exports.PontLink.ERROR_EVENT=`${exports.PontLink.TAG}:error`;exports.PontLink.PARTS={root:exports.PontLink.ROOT,button:`${exports.PontLink.ROOT}-${exports.PontLink.BUTTON}`,prompt:`${exports.PontLink.ROOT}-${exports.PontLink.PROMPT}`};Ne([a({type:String})],exports.PontLink.prototype,"seed",2);Ne([a({type:String,attribute:"custom-id"})],exports.PontLink.prototype,"customId",2);Ne([a({type:String})],exports.PontLink.prototype,"label",1);Ne([a({type:String})],exports.PontLink.prototype,"prompt",2);Ne([a({type:String})],exports.PontLink.prototype,"service",2);Ne([a({type:String})],exports.PontLink.prototype,"event",2);Ne([a({type:Boolean})],exports.PontLink.prototype,"disabled",2);Ne([a({type:Boolean})],exports.PontLink.prototype,"loading",2);Ne([g()],exports.PontLink.prototype,"_loading",2);exports.PontLink=Ne([p("pont-link")],exports.PontLink);/**
5317
5317
  * @license
5318
5318
  * Copyright 2020 Google LLC
5319
5319
  * SPDX-License-Identifier: BSD-3-Clause
@@ -5353,7 +5353,7 @@
5353
5353
  </pont-button>
5354
5354
  </div>
5355
5355
  `:h}
5356
- `}};exports.PontOtp.ROOT="otp";exports.PontOtp.TAG=`${rt}-${exports.PontOtp.ROOT}`;yt([a({type:Boolean,attribute:"exclude-from-form",converter:{fromAttribute:e=>e!==null&&e!=="false",toAttribute:e=>e?"":null}})],exports.PontOtp.prototype,"excludeFromForm",2);yt([a({type:Boolean})],exports.PontOtp.prototype,"required",2);yt([a({attribute:"required-error"})],exports.PontOtp.prototype,"requiredError",2);yt([a({attribute:"incomplete-error"})],exports.PontOtp.prototype,"incompleteError",2);yt([a()],exports.PontOtp.prototype,"variant",2);yt([a({type:Number})],exports.PontOtp.prototype,"length",2);yt([a({type:Number})],exports.PontOtp.prototype,"timeout",2);yt([a({attribute:"data-key"})],exports.PontOtp.prototype,"dataKey",2);yt([a()],exports.PontOtp.prototype,"name",2);yt([a({type:Boolean})],exports.PontOtp.prototype,"disabled",2);yt([a({type:Boolean,attribute:"auto-submit",converter:{fromAttribute:e=>e!==null&&e!=="false",toAttribute:e=>e?"":null}})],exports.PontOtp.prototype,"autoSubmit",2);yt([a()],exports.PontOtp.prototype,"event",2);yt([a({attribute:"resend-text"})],exports.PontOtp.prototype,"resendText",2);yt([a({attribute:"resend-button-text"})],exports.PontOtp.prototype,"resendButtonText",2);yt([a({attribute:"resend-event"})],exports.PontOtp.prototype,"resendEvent",2);yt([a()],exports.PontOtp.prototype,"id",2);yt([g()],exports.PontOtp.prototype,"_invalid",2);yt([g()],exports.PontOtp.prototype,"_error",2);yt([g()],exports.PontOtp.prototype,"_value",2);exports.PontOtp=yt([p("pont-otp")],exports.PontOtp);const jn={duration:60,resend_event:"",resend_button_label:"Resend code",count_down_text:"Resend code in "};var x0=Object.defineProperty,O0=Object.getOwnPropertyDescriptor,yr=(e,t,r,n)=>{for(var o=n>1?void 0:n?O0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&x0(t,r,o),o};exports.PontOtpResend=class extends f{constructor(){super(...arguments),this.seed=_t(),this.duration=jn.duration,this.resend_event=jn.resend_event,this.resend_button_label=jn.resend_button_label,this.count_down_text=jn.count_down_text,this._remaining=0,this._handleResendClick=()=>{Y.processLoginflowEvent({event:this.resend_event}),this._startCountdown()}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontOtpResend.TAG}-${this.seed}`}get countdownId(){return`${this.rootId}-${exports.PontOtpResend.COUNTDOWN}`}get resendButtonId(){return`${this.rootId}-${exports.PontOtpResend.RESEND_BUTTON}`}connectedCallback(){super.connectedCallback(),this._startCountdown()}disconnectedCallback(){super.disconnectedCallback(),this._clearTimer()}updated(t){t.has("duration")&&this._startCountdown()}_startCountdown(){this._clearTimer();const t=this.duration;if(t<=0){this._remaining=0;return}this._remaining=t,this._timer=window.setInterval(()=>{this._remaining=Math.max(0,this._remaining-1),this._remaining<=0&&this._clearTimer()},1e3)}_clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=void 0)}render(){const t=this._remaining>0;return l`
5356
+ `}};exports.PontOtp.ROOT="otp";exports.PontOtp.TAG=`${ot}-${exports.PontOtp.ROOT}`;yt([a({type:Boolean,attribute:"exclude-from-form",converter:{fromAttribute:e=>e!==null&&e!=="false",toAttribute:e=>e?"":null}})],exports.PontOtp.prototype,"excludeFromForm",2);yt([a({type:Boolean})],exports.PontOtp.prototype,"required",2);yt([a({attribute:"required-error"})],exports.PontOtp.prototype,"requiredError",2);yt([a({attribute:"incomplete-error"})],exports.PontOtp.prototype,"incompleteError",2);yt([a()],exports.PontOtp.prototype,"variant",2);yt([a({type:Number})],exports.PontOtp.prototype,"length",2);yt([a({type:Number})],exports.PontOtp.prototype,"timeout",2);yt([a({attribute:"data-key"})],exports.PontOtp.prototype,"dataKey",2);yt([a()],exports.PontOtp.prototype,"name",2);yt([a({type:Boolean})],exports.PontOtp.prototype,"disabled",2);yt([a({type:Boolean,attribute:"auto-submit",converter:{fromAttribute:e=>e!==null&&e!=="false",toAttribute:e=>e?"":null}})],exports.PontOtp.prototype,"autoSubmit",2);yt([a()],exports.PontOtp.prototype,"event",2);yt([a({attribute:"resend-text"})],exports.PontOtp.prototype,"resendText",2);yt([a({attribute:"resend-button-text"})],exports.PontOtp.prototype,"resendButtonText",2);yt([a({attribute:"resend-event"})],exports.PontOtp.prototype,"resendEvent",2);yt([a()],exports.PontOtp.prototype,"id",2);yt([g()],exports.PontOtp.prototype,"_invalid",2);yt([g()],exports.PontOtp.prototype,"_error",2);yt([g()],exports.PontOtp.prototype,"_value",2);exports.PontOtp=yt([p("pont-otp")],exports.PontOtp);const qn={duration:60,resend_event:"",resend_button_label:"Resend code",count_down_text:"Resend code in "};var x0=Object.defineProperty,O0=Object.getOwnPropertyDescriptor,yr=(e,t,r,n)=>{for(var o=n>1?void 0:n?O0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&x0(t,r,o),o};exports.PontOtpResend=class extends f{constructor(){super(...arguments),this.seed=_t(),this.duration=qn.duration,this.resend_event=qn.resend_event,this.resend_button_label=qn.resend_button_label,this.count_down_text=qn.count_down_text,this._remaining=0,this._handleResendClick=()=>{Y.processLoginflowEvent({event:this.resend_event}),this._startCountdown()}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontOtpResend.TAG}-${this.seed}`}get countdownId(){return`${this.rootId}-${exports.PontOtpResend.COUNTDOWN}`}get resendButtonId(){return`${this.rootId}-${exports.PontOtpResend.RESEND_BUTTON}`}connectedCallback(){super.connectedCallback(),this._startCountdown()}disconnectedCallback(){super.disconnectedCallback(),this._clearTimer()}updated(t){t.has("duration")&&this._startCountdown()}_startCountdown(){this._clearTimer();const t=this.duration;if(t<=0){this._remaining=0;return}this._remaining=t,this._timer=window.setInterval(()=>{this._remaining=Math.max(0,this._remaining-1),this._remaining<=0&&this._clearTimer()},1e3)}_clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=void 0)}render(){const t=this._remaining>0;return l`
5357
5357
  <div part=${exports.PontOtpResend.PARTS.root} id=${this.rootId}>
5358
5358
  ${t?l`
5359
5359
  <pont-typography-muted
@@ -5373,14 +5373,14 @@
5373
5373
  </pont-button>
5374
5374
  `}
5375
5375
  </div>
5376
- `}};exports.PontOtpResend.ROOT="otp-resend";exports.PontOtpResend.COUNTDOWN="countdown";exports.PontOtpResend.RESEND_BUTTON="resend-button";exports.PontOtpResend.TAG=`${rt}-${exports.PontOtpResend.ROOT}`;exports.PontOtpResend.PARTS={root:exports.PontOtpResend.ROOT,countdown:`${exports.PontOtpResend.ROOT}-${exports.PontOtpResend.COUNTDOWN}`,resendButton:`${exports.PontOtpResend.ROOT}-${exports.PontOtpResend.RESEND_BUTTON}`};yr([a({type:String})],exports.PontOtpResend.prototype,"seed",2);yr([a({type:String,attribute:"custom-id"})],exports.PontOtpResend.prototype,"customId",2);yr([a({type:Number})],exports.PontOtpResend.prototype,"duration",2);yr([a({type:String,attribute:"resend-event"})],exports.PontOtpResend.prototype,"resend_event",2);yr([a({type:String,attribute:"resend-button-label"})],exports.PontOtpResend.prototype,"resend_button_label",2);yr([a({type:String,attribute:"count-down-text"})],exports.PontOtpResend.prototype,"count_down_text",2);yr([g()],exports.PontOtpResend.prototype,"_remaining",2);exports.PontOtpResend=yr([p("pont-otp-resend")],exports.PontOtpResend);const R0=[exports.PontEmailField,exports.PontPhoneField,exports.PontUsernameField,exports.PontIdentifierField,exports.PontNameField,exports.PontPasswordField,exports.PontConfirmField,exports.PontOtp],I0=[exports.PontPasskeyButton,exports.PontProviderButton,exports.PontLink];var A0=Object.defineProperty,T0=Object.getOwnPropertyDescriptor,Ln=(e,t,r,n)=>{for(var o=n>1?void 0:n?T0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&A0(t,r,o),o};exports.PontForm=class extends f{constructor(){super(...arguments),this.seed=_t(),this._loading=!1,this._handleSubmitClick=t=>{var r;this._pendingEvent=(r=t.detail)==null?void 0:r.event},this._handleSubmit=async t=>{if(t.preventDefault(),this._loading)return;const r=this._fields;if(!r.map(b=>b.validate()).every(Boolean))return;const i={};r.forEach(b=>{i[b.name]=b.value});const s=this._pendingEvent;if(this.onSubmit){this.onSubmit(i,s);return}if(!s)return;const d=new CustomEvent(exports.PontForm.SUBMIT_EVENT,{detail:{id:this.rootId,data:i,event:s},bubbles:!0,composed:!0,cancelable:!0});if(this.dispatchEvent(d),d.defaultPrevented)return;const c=this._interactives,m=r.map(b=>!!b.disabled),v=c.map(b=>!!b.disabled);this._setLoading(!0,r,m,c,v);try{const b=await Y.processLoginflowEvent({event:s,...Object.keys(i).length?{data:i}:{}});this._dispatch(exports.PontForm.SUCCESS_EVENT,{id:this.rootId,data:i,event:s,result:b})}catch(b){const w=b instanceof Error?b.message:String(b);this._dispatch(exports.PontForm.ERROR_EVENT,{id:this.rootId,data:i,event:s,message:w})}finally{this._setLoading(!1,r,m,c,v),this._pendingEvent=void 0}},this._handleReset=t=>{this._pendingEvent=void 0,this.onReset&&this.onReset(t),this._dispatch(exports.PontForm.RESET_EVENT,{id:this.rootId})}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontForm.TAG}-${this.seed}`}get _form(){const t=`form[part="${exports.PontForm.PARTS.root}"]`;return this.querySelector(t)}get _fields(){const t=this._form;return t?Array.from(t.querySelectorAll(R0.map(n=>n.TAG).join(", "))).filter(n=>typeof n.isFormField>"u"?!0:n.isFormField):[]}get _submit(){const t=this._form;if(!t)return null;const r=exports.PontSubmitButton.TAG;return t.querySelector(r)}get _interactives(){const t=this._form;if(!t)return[];const r=I0.map(n=>n.TAG).join(", ");return Array.from(t.querySelectorAll(r))}connectedCallback(){super.connectedCallback();const t=exports.PontSubmitButton.CLICK_EVENT;this.addEventListener(t,this._handleSubmitClick)}disconnectedCallback(){super.disconnectedCallback();const t=exports.PontSubmitButton.CLICK_EVENT;this.removeEventListener(t,this._handleSubmitClick)}firstUpdated(){const t=this._form;if(!t)return;Array.from(this.childNodes).filter(n=>n!==t).forEach(n=>t.appendChild(n))}_dispatch(t,r={}){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}_setLoading(t,r,n,o,i){r.forEach((d,c)=>{d.disabled=t?!0:n[c]}),o.forEach((d,c)=>{d.disabled=t?!0:i[c]});const s=this._submit;s&&(s.loading=t),this._loading=t}render(){return l`
5376
+ `}};exports.PontOtpResend.ROOT="otp-resend";exports.PontOtpResend.COUNTDOWN="countdown";exports.PontOtpResend.RESEND_BUTTON="resend-button";exports.PontOtpResend.TAG=`${ot}-${exports.PontOtpResend.ROOT}`;exports.PontOtpResend.PARTS={root:exports.PontOtpResend.ROOT,countdown:`${exports.PontOtpResend.ROOT}-${exports.PontOtpResend.COUNTDOWN}`,resendButton:`${exports.PontOtpResend.ROOT}-${exports.PontOtpResend.RESEND_BUTTON}`};yr([a({type:String})],exports.PontOtpResend.prototype,"seed",2);yr([a({type:String,attribute:"custom-id"})],exports.PontOtpResend.prototype,"customId",2);yr([a({type:Number})],exports.PontOtpResend.prototype,"duration",2);yr([a({type:String,attribute:"resend-event"})],exports.PontOtpResend.prototype,"resend_event",2);yr([a({type:String,attribute:"resend-button-label"})],exports.PontOtpResend.prototype,"resend_button_label",2);yr([a({type:String,attribute:"count-down-text"})],exports.PontOtpResend.prototype,"count_down_text",2);yr([g()],exports.PontOtpResend.prototype,"_remaining",2);exports.PontOtpResend=yr([p("pont-otp-resend")],exports.PontOtpResend);const R0=[exports.PontEmailField,exports.PontPhoneField,exports.PontUsernameField,exports.PontIdentifierField,exports.PontNameField,exports.PontPasswordField,exports.PontConfirmField,exports.PontOtp],I0=[exports.PontPasskeyButton,exports.PontProviderButton,exports.PontLink];var A0=Object.defineProperty,T0=Object.getOwnPropertyDescriptor,Fn=(e,t,r,n)=>{for(var o=n>1?void 0:n?T0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&A0(t,r,o),o};exports.PontForm=class extends f{constructor(){super(...arguments),this.seed=_t(),this._loading=!1,this._handleSubmitClick=t=>{var r;this._pendingEvent=(r=t.detail)==null?void 0:r.event},this._handleSubmit=async t=>{if(t.preventDefault(),this._loading)return;const r=this._fields;if(!r.map(b=>b.validate()).every(Boolean))return;const i={};r.forEach(b=>{i[b.name]=b.value});const s=this._pendingEvent;if(this.onSubmit){this.onSubmit(i,s);return}if(!s)return;const d=new CustomEvent(exports.PontForm.SUBMIT_EVENT,{detail:{id:this.rootId,data:i,event:s},bubbles:!0,composed:!0,cancelable:!0});if(this.dispatchEvent(d),d.defaultPrevented)return;const c=this._interactives,m=r.map(b=>!!b.disabled),v=c.map(b=>!!b.disabled);this._setLoading(!0,r,m,c,v);try{const b=await Y.processLoginflowEvent({event:s,...Object.keys(i).length?{data:i}:{}});this._dispatch(exports.PontForm.SUCCESS_EVENT,{id:this.rootId,data:i,event:s,result:b})}catch(b){const w=b instanceof Error?b.message:String(b);this._dispatch(exports.PontForm.ERROR_EVENT,{id:this.rootId,data:i,event:s,message:w})}finally{this._setLoading(!1,r,m,c,v),this._pendingEvent=void 0}},this._handleReset=t=>{this._pendingEvent=void 0,this.onReset&&this.onReset(t),this._dispatch(exports.PontForm.RESET_EVENT,{id:this.rootId})}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontForm.TAG}-${this.seed}`}get _form(){const t=`form[part="${exports.PontForm.PARTS.root}"]`;return this.querySelector(t)}get _fields(){const t=this._form;return t?Array.from(t.querySelectorAll(R0.map(n=>n.TAG).join(", "))).filter(n=>typeof n.isFormField>"u"?!0:n.isFormField):[]}get _submit(){const t=this._form;if(!t)return null;const r=exports.PontSubmitButton.TAG;return t.querySelector(r)}get _interactives(){const t=this._form;if(!t)return[];const r=I0.map(n=>n.TAG).join(", ");return Array.from(t.querySelectorAll(r))}connectedCallback(){super.connectedCallback();const t=exports.PontSubmitButton.CLICK_EVENT;this.addEventListener(t,this._handleSubmitClick)}disconnectedCallback(){super.disconnectedCallback();const t=exports.PontSubmitButton.CLICK_EVENT;this.removeEventListener(t,this._handleSubmitClick)}firstUpdated(){const t=this._form;if(!t)return;Array.from(this.childNodes).filter(n=>n!==t).forEach(n=>t.appendChild(n))}_dispatch(t,r={}){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}_setLoading(t,r,n,o,i){r.forEach((d,c)=>{d.disabled=t?!0:n[c]}),o.forEach((d,c)=>{d.disabled=t?!0:i[c]});const s=this._submit;s&&(s.loading=t),this._loading=t}render(){return l`
5377
5377
  <form
5378
5378
  id="${this.rootId}"
5379
5379
  part="${exports.PontForm.PARTS.root}"
5380
5380
  @submit=${this._handleSubmit}
5381
5381
  @reset=${this._handleReset}
5382
5382
  ></form>
5383
- `}};exports.PontForm.ROOT="form";exports.PontForm.TAG=`${rt}-${exports.PontForm.ROOT}`;exports.PontForm.SUBMIT_EVENT=`${exports.PontForm.TAG}:submit`;exports.PontForm.SUCCESS_EVENT=`${exports.PontForm.TAG}:success`;exports.PontForm.ERROR_EVENT=`${exports.PontForm.TAG}:error`;exports.PontForm.RESET_EVENT=`${exports.PontForm.TAG}:reset`;exports.PontForm.PARTS={root:exports.PontForm.ROOT};Ln([a({type:String})],exports.PontForm.prototype,"seed",2);Ln([a({type:String,attribute:"custom-id"})],exports.PontForm.prototype,"customId",2);Ln([a({attribute:!1})],exports.PontForm.prototype,"onSubmit",2);Ln([a({attribute:!1})],exports.PontForm.prototype,"onReset",2);exports.PontForm=Ln([p("pont-form")],exports.PontForm);var D0=Object.defineProperty,L0=Object.getOwnPropertyDescriptor,Ft=(e,t,r,n)=>{for(var o=n>1?void 0:n?L0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&D0(t,r,o),o};exports.PontProviderField=class extends f{constructor(){super(...arguments),this.seed=_t(),this.providers=[],this.overrides=[],this.design=new In(this)}static get parts(){const t=this._ROOT,r=`${t}-${this._BUTTON}`;return{root:t,button:r}}createRenderRoot(){return this}get rootId(){return this.customId??`${rt}-${exports.PontProviderField.parts.root}-${this.seed}`}get buttonId(){return`${this.rootId}-${exports.PontProviderField._BUTTON}`}get columns(){const t=this._providers.length;return t<3?"one":t%3===0?"three":t===5?"two-three":t===7?"three-four":"four"}get _providers(){return this.providers.length===0&&this.design.active?[...exports.PontProviderField.DESIGN_PROVIDERS]:[...new Set(this.providers)]}get _overrides(){return this.overrides.filter((t,r,n)=>r===n.findIndex(o=>o.provider===t.provider))}_renderButton(t){const r=`signin_with_oauth(${t.provider})`,n=t.content??this.content??(this._providers.length>2?"icon":void 0);return l`
5383
+ `}};exports.PontForm.ROOT="form";exports.PontForm.TAG=`${ot}-${exports.PontForm.ROOT}`;exports.PontForm.SUBMIT_EVENT=`${exports.PontForm.TAG}:submit`;exports.PontForm.SUCCESS_EVENT=`${exports.PontForm.TAG}:success`;exports.PontForm.ERROR_EVENT=`${exports.PontForm.TAG}:error`;exports.PontForm.RESET_EVENT=`${exports.PontForm.TAG}:reset`;exports.PontForm.PARTS={root:exports.PontForm.ROOT};Fn([a({type:String})],exports.PontForm.prototype,"seed",2);Fn([a({type:String,attribute:"custom-id"})],exports.PontForm.prototype,"customId",2);Fn([a({attribute:!1})],exports.PontForm.prototype,"onSubmit",2);Fn([a({attribute:!1})],exports.PontForm.prototype,"onReset",2);exports.PontForm=Fn([p("pont-form")],exports.PontForm);var D0=Object.defineProperty,L0=Object.getOwnPropertyDescriptor,Ft=(e,t,r,n)=>{for(var o=n>1?void 0:n?L0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&D0(t,r,o),o};exports.PontProviderField=class extends f{constructor(){super(...arguments),this.seed=_t(),this.providers=[],this.overrides=[],this.design=new An(this)}static get parts(){const t=this._ROOT,r=`${t}-${this._BUTTON}`;return{root:t,button:r}}createRenderRoot(){return this}get rootId(){return this.customId??`${ot}-${exports.PontProviderField.parts.root}-${this.seed}`}get buttonId(){return`${this.rootId}-${exports.PontProviderField._BUTTON}`}get columns(){const t=this._providers.length;return t<3?"one":t%3===0?"three":t===5?"two-three":t===7?"three-four":"four"}get _providers(){return this.providers.length===0&&this.design.active?[...exports.PontProviderField.DESIGN_PROVIDERS]:[...new Set(this.providers)]}get _overrides(){return this.overrides.filter((t,r,n)=>r===n.findIndex(o=>o.provider===t.provider))}_renderButton(t){const r=`signin_with_oauth(${t.provider})`,n=t.content??this.content??(this._providers.length>2?"icon":void 0);return l`
5384
5384
  <pont-provider-button
5385
5385
  id="${this.buttonId}"
5386
5386
  part="${exports.PontProviderField.parts.button}"
@@ -5405,7 +5405,7 @@
5405
5405
  >
5406
5406
  ${this._providers.map(r=>this._renderButton(t.find(n=>n.provider===r)??{provider:r}))}
5407
5407
  </pont-field>
5408
- `}};exports.PontProviderField._ROOT="provider-field";exports.PontProviderField._BUTTON="button";exports.PontProviderField.DESIGN_PROVIDERS=["google","apple","github"];Ft([a({type:String})],exports.PontProviderField.prototype,"seed",2);Ft([a({attribute:"custom-id",type:String})],exports.PontProviderField.prototype,"customId",2);Ft([a({type:Array})],exports.PontProviderField.prototype,"providers",2);Ft([a({type:String})],exports.PontProviderField.prototype,"content",2);Ft([a({type:String})],exports.PontProviderField.prototype,"variant",2);Ft([a({type:String})],exports.PontProviderField.prototype,"size",2);Ft([a({type:String})],exports.PontProviderField.prototype,"prompt",2);Ft([a({attribute:"icon-align",type:String})],exports.PontProviderField.prototype,"iconAlign",2);Ft([a({type:String})],exports.PontProviderField.prototype,"label",2);Ft([a({type:Boolean})],exports.PontProviderField.prototype,"disabled",2);Ft([a({type:Boolean})],exports.PontProviderField.prototype,"loading",2);Ft([a({type:String})],exports.PontProviderField.prototype,"event",2);Ft([a({type:Array})],exports.PontProviderField.prototype,"overrides",2);exports.PontProviderField=Ft([p("pont-provider-field")],exports.PontProviderField);const F0={identifier:""};var k0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,Fn=(e,t,r,n)=>{for(var o=n>1?void 0:n?M0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&k0(t,r,o),o};exports.PontEditIdentifier=class extends f{constructor(){super(...arguments),this.seed=_t(),this.identifier=F0.identifier,this.event="",this._handleClick=()=>{Y.processLoginflowEvent({event:this.event})}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontEditIdentifier.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontEditIdentifier.ICON}`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}render(){return l`
5408
+ `}};exports.PontProviderField._ROOT="provider-field";exports.PontProviderField._BUTTON="button";exports.PontProviderField.DESIGN_PROVIDERS=["google","apple","github"];Ft([a({type:String})],exports.PontProviderField.prototype,"seed",2);Ft([a({attribute:"custom-id",type:String})],exports.PontProviderField.prototype,"customId",2);Ft([a({type:Array})],exports.PontProviderField.prototype,"providers",2);Ft([a({type:String})],exports.PontProviderField.prototype,"content",2);Ft([a({type:String})],exports.PontProviderField.prototype,"variant",2);Ft([a({type:String})],exports.PontProviderField.prototype,"size",2);Ft([a({type:String})],exports.PontProviderField.prototype,"prompt",2);Ft([a({attribute:"icon-align",type:String})],exports.PontProviderField.prototype,"iconAlign",2);Ft([a({type:String})],exports.PontProviderField.prototype,"label",2);Ft([a({type:Boolean})],exports.PontProviderField.prototype,"disabled",2);Ft([a({type:Boolean})],exports.PontProviderField.prototype,"loading",2);Ft([a({type:String})],exports.PontProviderField.prototype,"event",2);Ft([a({type:Array})],exports.PontProviderField.prototype,"overrides",2);exports.PontProviderField=Ft([p("pont-provider-field")],exports.PontProviderField);const F0={identifier:""};var k0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,kn=(e,t,r,n)=>{for(var o=n>1?void 0:n?M0(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&k0(t,r,o),o};exports.PontEditIdentifier=class extends f{constructor(){super(...arguments),this.seed=_t(),this.identifier=F0.identifier,this.event="",this._handleClick=()=>{Y.processLoginflowEvent({event:this.event})}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontEditIdentifier.TAG}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.PontEditIdentifier.ICON}`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}render(){return l`
5409
5409
  <div>
5410
5410
  <pont-typography-p>${this.identifier}</pont-typography-p>
5411
5411
  <div class="pont-flex pont-items-center">
@@ -5414,14 +5414,14 @@
5414
5414
  >
5415
5415
  </div>
5416
5416
  </div>
5417
- `}};exports.PontEditIdentifier.ROOT="edit-identifier";exports.PontEditIdentifier.ICON="icon";exports.PontEditIdentifier.TAG=`${rt}-${exports.PontEditIdentifier.ROOT}`;exports.PontEditIdentifier.CLICK_EVENT=`${exports.PontEditIdentifier.TAG}:click`;exports.PontEditIdentifier.PARTS={root:exports.PontEditIdentifier.ROOT,icon:`${exports.PontEditIdentifier.ROOT}-${exports.PontEditIdentifier.ICON}`};Fn([a({type:String})],exports.PontEditIdentifier.prototype,"seed",2);Fn([a({type:String,attribute:"custom-id"})],exports.PontEditIdentifier.prototype,"customId",2);Fn([a({type:String})],exports.PontEditIdentifier.prototype,"identifier",2);Fn([a({type:String})],exports.PontEditIdentifier.prototype,"event",2);exports.PontEditIdentifier=Fn([p("pont-edit-identifier")],exports.PontEditIdentifier);function N0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo={},hs,Bc;function B0(){return Bc||(Bc=1,hs=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),hs}var us={},rr={},Uc;function to(){if(Uc)return rr;Uc=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return rr.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},rr.getSymbolTotalCodewords=function(n){return t[n]},rr.getBCHDigit=function(r){let n=0;for(;r!==0;)n++,r>>>=1;return n},rr.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},rr.isKanjiModeEnabled=function(){return typeof e<"u"},rr.toSJIS=function(n){return e(n)},rr}var ms={},jc;function Pl(){return jc||(jc=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,o){if(e.isValid(n))return n;try{return t(n)}catch{return o}}})(ms)),ms}var gs,qc;function U0(){if(qc)return gs;qc=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let n=0;n<r;n++)this.putBit((t>>>r-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},gs=e,gs}var fs,zc;function j0(){if(zc)return fs;zc=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,n,o){const i=t*this.size+r;this.data[i]=n,o&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,n){this.data[t*this.size+r]^=n},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},fs=e,fs}var vs={},Vc;function q0(){return Vc||(Vc=1,(function(e){const t=to().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const o=Math.floor(n/7)+2,i=t(n),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,d=[i-7];for(let c=1;c<o-1;c++)d[c]=d[c-1]-s;return d.push(6),d.reverse()},e.getPositions=function(n){const o=[],i=e.getRowColCoords(n),s=i.length;for(let d=0;d<s;d++)for(let c=0;c<s;c++)d===0&&c===0||d===0&&c===s-1||d===s-1&&c===0||o.push([i[d],i[c]]);return o}})(vs)),vs}var bs={},Hc;function z0(){if(Hc)return bs;Hc=1;const e=to().getSymbolSize,t=7;return bs.getPositions=function(n){const o=e(n);return[[0,0],[o-t,0],[0,o-t]]},bs}var ys={},Gc;function V0(){return Gc||(Gc=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,d=0,c=0,m=null,v=null;for(let b=0;b<i;b++){d=c=0,m=v=null;for(let w=0;w<i;w++){let _=o.get(b,w);_===m?d++:(d>=5&&(s+=t.N1+(d-5)),m=_,d=1),_=o.get(w,b),_===v?c++:(c>=5&&(s+=t.N1+(c-5)),v=_,c=1)}d>=5&&(s+=t.N1+(d-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let d=0;d<i-1;d++)for(let c=0;c<i-1;c++){const m=o.get(d,c)+o.get(d,c+1)+o.get(d+1,c)+o.get(d+1,c+1);(m===4||m===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,d=0,c=0;for(let m=0;m<i;m++){d=c=0;for(let v=0;v<i;v++)d=d<<1&2047|o.get(m,v),v>=10&&(d===1488||d===93)&&s++,c=c<<1&2047|o.get(v,m),v>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let c=0;c<s;c++)i+=o.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(n,o,i){switch(n){case e.Patterns.PATTERN000:return(o+i)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(o+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return o*i%2+o*i%3===0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2===0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(o,i){const s=i.size;for(let d=0;d<s;d++)for(let c=0;c<s;c++)i.isReserved(c,d)||i.xor(c,d,r(o,c,d))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let d=0,c=1/0;for(let m=0;m<s;m++){i(m),e.applyMask(m,o);const v=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(m,o),v<c&&(c=v,d=m)}return d}})(ys)),ys}var qn={},Kc;function Yh(){if(Kc)return qn;Kc=1;const e=Pl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return qn.getBlocksCount=function(o,i){switch(i){case e.L:return t[(o-1)*4+0];case e.M:return t[(o-1)*4+1];case e.Q:return t[(o-1)*4+2];case e.H:return t[(o-1)*4+3];default:return}},qn.getTotalCodewordsCount=function(o,i){switch(i){case e.L:return r[(o-1)*4+0];case e.M:return r[(o-1)*4+1];case e.Q:return r[(o-1)*4+2];case e.H:return r[(o-1)*4+3];default:return}},qn}var _s={},Jo={},Wc;function H0(){if(Wc)return Jo;Wc=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let n=1;for(let o=0;o<255;o++)e[o]=n,t[n]=o,n<<=1,n&256&&(n^=285);for(let o=255;o<512;o++)e[o]=e[o-255]})(),Jo.log=function(n){if(n<1)throw new Error("log("+n+")");return t[n]},Jo.exp=function(n){return e[n]},Jo.mul=function(n,o){return n===0||o===0?0:e[t[n]+t[o]]},Jo}var Yc;function G0(){return Yc||(Yc=1,(function(e){const t=H0();e.mul=function(n,o){const i=new Uint8Array(n.length+o.length-1);for(let s=0;s<n.length;s++)for(let d=0;d<o.length;d++)i[s+d]^=t.mul(n[s],o[d]);return i},e.mod=function(n,o){let i=new Uint8Array(n);for(;i.length-o.length>=0;){const s=i[0];for(let c=0;c<o.length;c++)i[c]^=t.mul(o[c],s);let d=0;for(;d<i.length&&i[d]===0;)d++;i=i.slice(d)}return i},e.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let i=0;i<n;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(_s)),_s}var ws,Qc;function K0(){if(Qc)return ws;Qc=1;const e=G0();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(n.length+this.degree);o.set(n);const i=e.mod(o,this.genPoly),s=this.degree-i.length;if(s>0){const d=new Uint8Array(this.degree);return d.set(i,s),d}return i},ws=t,ws}var $s={},Ps={},Cs={},Zc;function Qh(){return Zc||(Zc=1,Cs.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Cs}var pe={},Jc;function Zh(){if(Jc)return pe;Jc=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
5417
+ `}};exports.PontEditIdentifier.ROOT="edit-identifier";exports.PontEditIdentifier.ICON="icon";exports.PontEditIdentifier.TAG=`${ot}-${exports.PontEditIdentifier.ROOT}`;exports.PontEditIdentifier.CLICK_EVENT=`${exports.PontEditIdentifier.TAG}:click`;exports.PontEditIdentifier.PARTS={root:exports.PontEditIdentifier.ROOT,icon:`${exports.PontEditIdentifier.ROOT}-${exports.PontEditIdentifier.ICON}`};kn([a({type:String})],exports.PontEditIdentifier.prototype,"seed",2);kn([a({type:String,attribute:"custom-id"})],exports.PontEditIdentifier.prototype,"customId",2);kn([a({type:String})],exports.PontEditIdentifier.prototype,"identifier",2);kn([a({type:String})],exports.PontEditIdentifier.prototype,"event",2);exports.PontEditIdentifier=kn([p("pont-edit-identifier")],exports.PontEditIdentifier);function N0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo={},hs,Bc;function B0(){return Bc||(Bc=1,hs=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),hs}var us={},rr={},Uc;function to(){if(Uc)return rr;Uc=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return rr.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},rr.getSymbolTotalCodewords=function(n){return t[n]},rr.getBCHDigit=function(r){let n=0;for(;r!==0;)n++,r>>>=1;return n},rr.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},rr.isKanjiModeEnabled=function(){return typeof e<"u"},rr.toSJIS=function(n){return e(n)},rr}var ms={},jc;function Pl(){return jc||(jc=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,o){if(e.isValid(n))return n;try{return t(n)}catch{return o}}})(ms)),ms}var gs,qc;function U0(){if(qc)return gs;qc=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let n=0;n<r;n++)this.putBit((t>>>r-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},gs=e,gs}var fs,zc;function j0(){if(zc)return fs;zc=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,n,o){const i=t*this.size+r;this.data[i]=n,o&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,n){this.data[t*this.size+r]^=n},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},fs=e,fs}var vs={},Vc;function q0(){return Vc||(Vc=1,(function(e){const t=to().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const o=Math.floor(n/7)+2,i=t(n),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,d=[i-7];for(let c=1;c<o-1;c++)d[c]=d[c-1]-s;return d.push(6),d.reverse()},e.getPositions=function(n){const o=[],i=e.getRowColCoords(n),s=i.length;for(let d=0;d<s;d++)for(let c=0;c<s;c++)d===0&&c===0||d===0&&c===s-1||d===s-1&&c===0||o.push([i[d],i[c]]);return o}})(vs)),vs}var bs={},Hc;function z0(){if(Hc)return bs;Hc=1;const e=to().getSymbolSize,t=7;return bs.getPositions=function(n){const o=e(n);return[[0,0],[o-t,0],[0,o-t]]},bs}var ys={},Gc;function V0(){return Gc||(Gc=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,d=0,c=0,m=null,v=null;for(let b=0;b<i;b++){d=c=0,m=v=null;for(let w=0;w<i;w++){let _=o.get(b,w);_===m?d++:(d>=5&&(s+=t.N1+(d-5)),m=_,d=1),_=o.get(w,b),_===v?c++:(c>=5&&(s+=t.N1+(c-5)),v=_,c=1)}d>=5&&(s+=t.N1+(d-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let d=0;d<i-1;d++)for(let c=0;c<i-1;c++){const m=o.get(d,c)+o.get(d,c+1)+o.get(d+1,c)+o.get(d+1,c+1);(m===4||m===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,d=0,c=0;for(let m=0;m<i;m++){d=c=0;for(let v=0;v<i;v++)d=d<<1&2047|o.get(m,v),v>=10&&(d===1488||d===93)&&s++,c=c<<1&2047|o.get(v,m),v>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let c=0;c<s;c++)i+=o.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(n,o,i){switch(n){case e.Patterns.PATTERN000:return(o+i)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(o+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return o*i%2+o*i%3===0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2===0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(o,i){const s=i.size;for(let d=0;d<s;d++)for(let c=0;c<s;c++)i.isReserved(c,d)||i.xor(c,d,r(o,c,d))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let d=0,c=1/0;for(let m=0;m<s;m++){i(m),e.applyMask(m,o);const v=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(m,o),v<c&&(c=v,d=m)}return d}})(ys)),ys}var zn={},Kc;function Yh(){if(Kc)return zn;Kc=1;const e=Pl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return zn.getBlocksCount=function(o,i){switch(i){case e.L:return t[(o-1)*4+0];case e.M:return t[(o-1)*4+1];case e.Q:return t[(o-1)*4+2];case e.H:return t[(o-1)*4+3];default:return}},zn.getTotalCodewordsCount=function(o,i){switch(i){case e.L:return r[(o-1)*4+0];case e.M:return r[(o-1)*4+1];case e.Q:return r[(o-1)*4+2];case e.H:return r[(o-1)*4+3];default:return}},zn}var _s={},Jo={},Wc;function H0(){if(Wc)return Jo;Wc=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let n=1;for(let o=0;o<255;o++)e[o]=n,t[n]=o,n<<=1,n&256&&(n^=285);for(let o=255;o<512;o++)e[o]=e[o-255]})(),Jo.log=function(n){if(n<1)throw new Error("log("+n+")");return t[n]},Jo.exp=function(n){return e[n]},Jo.mul=function(n,o){return n===0||o===0?0:e[t[n]+t[o]]},Jo}var Yc;function G0(){return Yc||(Yc=1,(function(e){const t=H0();e.mul=function(n,o){const i=new Uint8Array(n.length+o.length-1);for(let s=0;s<n.length;s++)for(let d=0;d<o.length;d++)i[s+d]^=t.mul(n[s],o[d]);return i},e.mod=function(n,o){let i=new Uint8Array(n);for(;i.length-o.length>=0;){const s=i[0];for(let c=0;c<o.length;c++)i[c]^=t.mul(o[c],s);let d=0;for(;d<i.length&&i[d]===0;)d++;i=i.slice(d)}return i},e.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let i=0;i<n;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(_s)),_s}var ws,Qc;function K0(){if(Qc)return ws;Qc=1;const e=G0();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(n.length+this.degree);o.set(n);const i=e.mod(o,this.genPoly),s=this.degree-i.length;if(s>0){const d=new Uint8Array(this.degree);return d.set(i,s),d}return i},ws=t,ws}var $s={},Ps={},Cs={},Zc;function Qh(){return Zc||(Zc=1,Cs.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Cs}var pe={},Jc;function Zh(){if(Jc)return pe;Jc=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
5418
5418
  ]))+`;pe.KANJI=new RegExp(r,"g"),pe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),pe.BYTE=new RegExp(n,"g"),pe.NUMERIC=new RegExp(e,"g"),pe.ALPHANUMERIC=new RegExp(t,"g");const o=new RegExp("^"+r+"$"),i=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return pe.testKanji=function(c){return o.test(c)},pe.testNumeric=function(c){return i.test(c)},pe.testAlphanumeric=function(c){return s.test(c)},pe}var Xc;function eo(){return Xc||(Xc=1,(function(e){const t=Qh(),r=Zh();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return n(i)}catch{return s}}})(Ps)),Ps}var tp;function W0(){return tp||(tp=1,(function(e){const t=to(),r=Yh(),n=Pl(),o=eo(),i=Qh(),s=7973,d=t.getBCHDigit(s);function c(w,_,C){for(let P=1;P<=40;P++)if(_<=e.getCapacity(P,C,w))return P}function m(w,_){return o.getCharCountIndicator(w,_)+4}function v(w,_){let C=0;return w.forEach(function(P){const x=m(P.mode,_);C+=x+P.getBitsLength()}),C}function b(w,_){for(let C=1;C<=40;C++)if(v(w,C)<=e.getCapacity(C,_,o.MIXED))return C}e.from=function(_,C){return i.isValid(_)?parseInt(_,10):C},e.getCapacity=function(_,C,P){if(!i.isValid(_))throw new Error("Invalid QR Code version");typeof P>"u"&&(P=o.BYTE);const x=t.getSymbolTotalCodewords(_),S=r.getTotalCodewordsCount(_,C),D=(x-S)*8;if(P===o.MIXED)return D;const L=D-m(P,_);switch(P){case o.NUMERIC:return Math.floor(L/10*3);case o.ALPHANUMERIC:return Math.floor(L/11*2);case o.KANJI:return Math.floor(L/13);case o.BYTE:default:return Math.floor(L/8)}},e.getBestVersionForData=function(_,C){let P;const x=n.from(C,n.M);if(Array.isArray(_)){if(_.length>1)return b(_,x);if(_.length===0)return 1;P=_[0]}else P=_;return c(P.mode,P.getLength(),x)},e.getEncodedBits=function(_){if(!i.isValid(_)||_<7)throw new Error("Invalid QR Code version");let C=_<<12;for(;t.getBCHDigit(C)-d>=0;)C^=s<<t.getBCHDigit(C)-d;return _<<12|C}})($s)),$s}var Ss={},ep;function Y0(){if(ep)return Ss;ep=1;const e=to(),t=1335,r=21522,n=e.getBCHDigit(t);return Ss.getEncodedBits=function(i,s){const d=i.bit<<3|s;let c=d<<10;for(;e.getBCHDigit(c)-n>=0;)c^=t<<e.getBCHDigit(c)-n;return(d<<10|c)^r},Ss}var Es={},xs,rp;function Q0(){if(rp)return xs;rp=1;const e=eo();function t(r){this.mode=e.NUMERIC,this.data=r.toString()}return t.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let o,i,s;for(o=0;o+3<=this.data.length;o+=3)i=this.data.substr(o,3),s=parseInt(i,10),n.put(s,10);const d=this.data.length-o;d>0&&(i=this.data.substr(o),s=parseInt(i,10),n.put(s,d*3+1))},xs=t,xs}var Os,op;function Z0(){if(op)return Os;op=1;const e=eo(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(n){this.mode=e.ALPHANUMERIC,this.data=n}return r.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(o){let i;for(i=0;i+2<=this.data.length;i+=2){let s=t.indexOf(this.data[i])*45;s+=t.indexOf(this.data[i+1]),o.put(s,11)}this.data.length%2&&o.put(t.indexOf(this.data[i]),6)},Os=r,Os}var Rs,np;function J0(){if(np)return Rs;np=1;const e=eo();function t(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return t.getBitsLength=function(n){return n*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){for(let n=0,o=this.data.length;n<o;n++)r.put(this.data[n],8)},Rs=t,Rs}var Is,ip;function X0(){if(ip)return Is;ip=1;const e=eo(),t=to();function r(n){this.mode=e.KANJI,this.data=n}return r.getBitsLength=function(o){return o*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(n){let o;for(o=0;o<this.data.length;o++){let i=t.toSJIS(this.data[o]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+`
5419
5419
  Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),n.put(i,13)}},Is=r,Is}var As={exports:{}},sp;function t2(){return sp||(sp=1,(function(e){var t={single_source_shortest_paths:function(r,n,o){var i={},s={};s[n]=0;var d=t.PriorityQueue.make();d.push(n,0);for(var c,m,v,b,w,_,C,P,x;!d.empty();){c=d.pop(),m=c.value,b=c.cost,w=r[m]||{};for(v in w)w.hasOwnProperty(v)&&(_=w[v],C=b+_,P=s[v],x=typeof s[v]>"u",(x||P>C)&&(s[v]=C,d.push(v,C),i[v]=m))}if(typeof o<"u"&&typeof s[o]>"u"){var S=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(S)}return i},extract_shortest_path_from_predecessor_list:function(r,n){for(var o=[],i=n;i;)o.push(i),r[i],i=r[i];return o.reverse(),o},find_path:function(r,n,o){var i=t.single_source_shortest_paths(r,n,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var n=t.PriorityQueue,o={},i;r=r||{};for(i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);return o.queue=[],o.sorter=r.sorter||n.default_sorter,o},default_sorter:function(r,n){return r.cost-n.cost},push:function(r,n){var o={value:r,cost:n};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(As)),As.exports}var ap;function e2(){return ap||(ap=1,(function(e){const t=eo(),r=Q0(),n=Z0(),o=J0(),i=X0(),s=Zh(),d=to(),c=t2();function m(S){return unescape(encodeURIComponent(S)).length}function v(S,D,L){const R=[];let K;for(;(K=S.exec(L))!==null;)R.push({data:K[0],index:K.index,mode:D,length:K[0].length});return R}function b(S){const D=v(s.NUMERIC,t.NUMERIC,S),L=v(s.ALPHANUMERIC,t.ALPHANUMERIC,S);let R,K;return d.isKanjiModeEnabled()?(R=v(s.BYTE,t.BYTE,S),K=v(s.KANJI,t.KANJI,S)):(R=v(s.BYTE_KANJI,t.BYTE,S),K=[]),D.concat(L,R,K).sort(function(A,T){return A.index-T.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function w(S,D){switch(D){case t.NUMERIC:return r.getBitsLength(S);case t.ALPHANUMERIC:return n.getBitsLength(S);case t.KANJI:return i.getBitsLength(S);case t.BYTE:return o.getBitsLength(S)}}function _(S){return S.reduce(function(D,L){const R=D.length-1>=0?D[D.length-1]:null;return R&&R.mode===L.mode?(D[D.length-1].data+=L.data,D):(D.push(L),D)},[])}function C(S){const D=[];for(let L=0;L<S.length;L++){const R=S[L];switch(R.mode){case t.NUMERIC:D.push([R,{data:R.data,mode:t.ALPHANUMERIC,length:R.length},{data:R.data,mode:t.BYTE,length:R.length}]);break;case t.ALPHANUMERIC:D.push([R,{data:R.data,mode:t.BYTE,length:R.length}]);break;case t.KANJI:D.push([R,{data:R.data,mode:t.BYTE,length:m(R.data)}]);break;case t.BYTE:D.push([{data:R.data,mode:t.BYTE,length:m(R.data)}])}}return D}function P(S,D){const L={},R={start:{}};let K=["start"];for(let O=0;O<S.length;O++){const A=S[O],T=[];for(let E=0;E<A.length;E++){const M=A[E],F=""+O+E;T.push(F),L[F]={node:M,lastCount:0},R[F]={};for(let $=0;$<K.length;$++){const k=K[$];L[k]&&L[k].node.mode===M.mode?(R[k][F]=w(L[k].lastCount+M.length,M.mode)-w(L[k].lastCount,M.mode),L[k].lastCount+=M.length):(L[k]&&(L[k].lastCount=M.length),R[k][F]=w(M.length,M.mode)+4+t.getCharCountIndicator(M.mode,D))}}K=T}for(let O=0;O<K.length;O++)R[K[O]].end=0;return{map:R,table:L}}function x(S,D){let L;const R=t.getBestModeForData(S);if(L=t.from(D,R),L!==t.BYTE&&L.bit<R.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(L)+`.
5420
- Suggested mode is: `+t.toString(R));switch(L===t.KANJI&&!d.isKanjiModeEnabled()&&(L=t.BYTE),L){case t.NUMERIC:return new r(S);case t.ALPHANUMERIC:return new n(S);case t.KANJI:return new i(S);case t.BYTE:return new o(S)}}e.fromArray=function(D){return D.reduce(function(L,R){return typeof R=="string"?L.push(x(R,null)):R.data&&L.push(x(R.data,R.mode)),L},[])},e.fromString=function(D,L){const R=b(D,d.isKanjiModeEnabled()),K=C(R),O=P(K,L),A=c.find_path(O.map,"start","end"),T=[];for(let E=1;E<A.length-1;E++)T.push(O.table[A[E]].node);return e.fromArray(_(T))},e.rawSplit=function(D){return e.fromArray(b(D,d.isKanjiModeEnabled()))}})(Es)),Es}var lp;function r2(){if(lp)return us;lp=1;const e=to(),t=Pl(),r=U0(),n=j0(),o=q0(),i=z0(),s=V0(),d=Yh(),c=K0(),m=W0(),v=Y0(),b=eo(),w=e2();function _(O,A){const T=O.size,E=i.getPositions(A);for(let M=0;M<E.length;M++){const F=E[M][0],$=E[M][1];for(let k=-1;k<=7;k++)if(!(F+k<=-1||T<=F+k))for(let N=-1;N<=7;N++)$+N<=-1||T<=$+N||(k>=0&&k<=6&&(N===0||N===6)||N>=0&&N<=6&&(k===0||k===6)||k>=2&&k<=4&&N>=2&&N<=4?O.set(F+k,$+N,!0,!0):O.set(F+k,$+N,!1,!0))}}function C(O){const A=O.size;for(let T=8;T<A-8;T++){const E=T%2===0;O.set(T,6,E,!0),O.set(6,T,E,!0)}}function P(O,A){const T=o.getPositions(A);for(let E=0;E<T.length;E++){const M=T[E][0],F=T[E][1];for(let $=-2;$<=2;$++)for(let k=-2;k<=2;k++)$===-2||$===2||k===-2||k===2||$===0&&k===0?O.set(M+$,F+k,!0,!0):O.set(M+$,F+k,!1,!0)}}function x(O,A){const T=O.size,E=m.getEncodedBits(A);let M,F,$;for(let k=0;k<18;k++)M=Math.floor(k/3),F=k%3+T-8-3,$=(E>>k&1)===1,O.set(M,F,$,!0),O.set(F,M,$,!0)}function S(O,A,T){const E=O.size,M=v.getEncodedBits(A,T);let F,$;for(F=0;F<15;F++)$=(M>>F&1)===1,F<6?O.set(F,8,$,!0):F<8?O.set(F+1,8,$,!0):O.set(E-15+F,8,$,!0),F<8?O.set(8,E-F-1,$,!0):F<9?O.set(8,15-F-1+1,$,!0):O.set(8,15-F-1,$,!0);O.set(E-8,8,1,!0)}function D(O,A){const T=O.size;let E=-1,M=T-1,F=7,$=0;for(let k=T-1;k>0;k-=2)for(k===6&&k--;;){for(let N=0;N<2;N++)if(!O.isReserved(M,k-N)){let Jt=!1;$<A.length&&(Jt=(A[$]>>>F&1)===1),O.set(M,k-N,Jt),F--,F===-1&&($++,F=7)}if(M+=E,M<0||T<=M){M-=E,E=-E;break}}}function L(O,A,T){const E=new r;T.forEach(function(N){E.put(N.mode.bit,4),E.put(N.getLength(),b.getCharCountIndicator(N.mode,O)),N.write(E)});const M=e.getSymbolTotalCodewords(O),F=d.getTotalCodewordsCount(O,A),$=(M-F)*8;for(E.getLengthInBits()+4<=$&&E.put(0,4);E.getLengthInBits()%8!==0;)E.putBit(0);const k=($-E.getLengthInBits())/8;for(let N=0;N<k;N++)E.put(N%2?17:236,8);return R(E,O,A)}function R(O,A,T){const E=e.getSymbolTotalCodewords(A),M=d.getTotalCodewordsCount(A,T),F=E-M,$=d.getBlocksCount(A,T),k=E%$,N=$-k,Jt=Math.floor(E/$),ce=Math.floor(F/$),kn=ce+1,ro=Jt-ce,$r=new c(ro);let oo=0;const Rt=new Array($),Il=new Array($);let Ji=0;const Xh=new Uint8Array(O.buffer);for(let no=0;no<$;no++){const ts=no<N?ce:kn;Rt[no]=Xh.slice(oo,oo+ts),Il[no]=$r.encode(Rt[no]),oo+=ts,Ji=Math.max(Ji,ts)}const Xi=new Uint8Array(E);let Al=0,Be,Ue;for(Be=0;Be<Ji;Be++)for(Ue=0;Ue<$;Ue++)Be<Rt[Ue].length&&(Xi[Al++]=Rt[Ue][Be]);for(Be=0;Be<ro;Be++)for(Ue=0;Ue<$;Ue++)Xi[Al++]=Il[Ue][Be];return Xi}function K(O,A,T,E){let M;if(Array.isArray(O))M=w.fromArray(O);else if(typeof O=="string"){let Jt=A;if(!Jt){const ce=w.rawSplit(O);Jt=m.getBestVersionForData(ce,T)}M=w.fromString(O,Jt||40)}else throw new Error("Invalid data");const F=m.getBestVersionForData(M,T);if(!F)throw new Error("The amount of data is too big to be stored in a QR Code");if(!A)A=F;else if(A<F)throw new Error(`
5420
+ Suggested mode is: `+t.toString(R));switch(L===t.KANJI&&!d.isKanjiModeEnabled()&&(L=t.BYTE),L){case t.NUMERIC:return new r(S);case t.ALPHANUMERIC:return new n(S);case t.KANJI:return new i(S);case t.BYTE:return new o(S)}}e.fromArray=function(D){return D.reduce(function(L,R){return typeof R=="string"?L.push(x(R,null)):R.data&&L.push(x(R.data,R.mode)),L},[])},e.fromString=function(D,L){const R=b(D,d.isKanjiModeEnabled()),K=C(R),O=P(K,L),A=c.find_path(O.map,"start","end"),T=[];for(let E=1;E<A.length-1;E++)T.push(O.table[A[E]].node);return e.fromArray(_(T))},e.rawSplit=function(D){return e.fromArray(b(D,d.isKanjiModeEnabled()))}})(Es)),Es}var lp;function r2(){if(lp)return us;lp=1;const e=to(),t=Pl(),r=U0(),n=j0(),o=q0(),i=z0(),s=V0(),d=Yh(),c=K0(),m=W0(),v=Y0(),b=eo(),w=e2();function _(O,A){const T=O.size,E=i.getPositions(A);for(let M=0;M<E.length;M++){const F=E[M][0],$=E[M][1];for(let k=-1;k<=7;k++)if(!(F+k<=-1||T<=F+k))for(let N=-1;N<=7;N++)$+N<=-1||T<=$+N||(k>=0&&k<=6&&(N===0||N===6)||N>=0&&N<=6&&(k===0||k===6)||k>=2&&k<=4&&N>=2&&N<=4?O.set(F+k,$+N,!0,!0):O.set(F+k,$+N,!1,!0))}}function C(O){const A=O.size;for(let T=8;T<A-8;T++){const E=T%2===0;O.set(T,6,E,!0),O.set(6,T,E,!0)}}function P(O,A){const T=o.getPositions(A);for(let E=0;E<T.length;E++){const M=T[E][0],F=T[E][1];for(let $=-2;$<=2;$++)for(let k=-2;k<=2;k++)$===-2||$===2||k===-2||k===2||$===0&&k===0?O.set(M+$,F+k,!0,!0):O.set(M+$,F+k,!1,!0)}}function x(O,A){const T=O.size,E=m.getEncodedBits(A);let M,F,$;for(let k=0;k<18;k++)M=Math.floor(k/3),F=k%3+T-8-3,$=(E>>k&1)===1,O.set(M,F,$,!0),O.set(F,M,$,!0)}function S(O,A,T){const E=O.size,M=v.getEncodedBits(A,T);let F,$;for(F=0;F<15;F++)$=(M>>F&1)===1,F<6?O.set(F,8,$,!0):F<8?O.set(F+1,8,$,!0):O.set(E-15+F,8,$,!0),F<8?O.set(8,E-F-1,$,!0):F<9?O.set(8,15-F-1+1,$,!0):O.set(8,15-F-1,$,!0);O.set(E-8,8,1,!0)}function D(O,A){const T=O.size;let E=-1,M=T-1,F=7,$=0;for(let k=T-1;k>0;k-=2)for(k===6&&k--;;){for(let N=0;N<2;N++)if(!O.isReserved(M,k-N)){let Jt=!1;$<A.length&&(Jt=(A[$]>>>F&1)===1),O.set(M,k-N,Jt),F--,F===-1&&($++,F=7)}if(M+=E,M<0||T<=M){M-=E,E=-E;break}}}function L(O,A,T){const E=new r;T.forEach(function(N){E.put(N.mode.bit,4),E.put(N.getLength(),b.getCharCountIndicator(N.mode,O)),N.write(E)});const M=e.getSymbolTotalCodewords(O),F=d.getTotalCodewordsCount(O,A),$=(M-F)*8;for(E.getLengthInBits()+4<=$&&E.put(0,4);E.getLengthInBits()%8!==0;)E.putBit(0);const k=($-E.getLengthInBits())/8;for(let N=0;N<k;N++)E.put(N%2?17:236,8);return R(E,O,A)}function R(O,A,T){const E=e.getSymbolTotalCodewords(A),M=d.getTotalCodewordsCount(A,T),F=E-M,$=d.getBlocksCount(A,T),k=E%$,N=$-k,Jt=Math.floor(E/$),ce=Math.floor(F/$),Mn=ce+1,ro=Jt-ce,$r=new c(ro);let oo=0;const Rt=new Array($),Il=new Array($);let Ji=0;const Xh=new Uint8Array(O.buffer);for(let no=0;no<$;no++){const ts=no<N?ce:Mn;Rt[no]=Xh.slice(oo,oo+ts),Il[no]=$r.encode(Rt[no]),oo+=ts,Ji=Math.max(Ji,ts)}const Xi=new Uint8Array(E);let Al=0,Be,Ue;for(Be=0;Be<Ji;Be++)for(Ue=0;Ue<$;Ue++)Be<Rt[Ue].length&&(Xi[Al++]=Rt[Ue][Be]);for(Be=0;Be<ro;Be++)for(Ue=0;Ue<$;Ue++)Xi[Al++]=Il[Ue][Be];return Xi}function K(O,A,T,E){let M;if(Array.isArray(O))M=w.fromArray(O);else if(typeof O=="string"){let Jt=A;if(!Jt){const ce=w.rawSplit(O);Jt=m.getBestVersionForData(ce,T)}M=w.fromString(O,Jt||40)}else throw new Error("Invalid data");const F=m.getBestVersionForData(M,T);if(!F)throw new Error("The amount of data is too big to be stored in a QR Code");if(!A)A=F;else if(A<F)throw new Error(`
5421
5421
  The chosen QR Code version cannot contain this amount of data.
5422
5422
  Minimum version required to store current data is: `+F+`.
5423
5423
  `);const $=L(A,T,M),k=e.getSymbolSize(A),N=new n(k);return _(N,A),C(N),P(N,A),S(N,T,0),A>=7&&x(N,A),D(N,$),isNaN(E)&&(E=s.getBestMask(N,S.bind(null,N,T))),s.applyMask(E,N),S(N,T,E),{modules:N,version:A,errorCorrectionLevel:T,maskPattern:E,segments:M}}return us.create=function(A,T){if(typeof A>"u"||A==="")throw new Error("No input text");let E=t.M,M,F;return typeof T<"u"&&(E=t.from(T.errorCorrectionLevel,t.M),M=m.from(T.version),F=s.from(T.maskPattern),T.toSJISFunc&&e.setToSJISFunction(T.toSJISFunc)),K(A,M,E,F)},us}var Ts={},Ds={},dp;function Jh(){return dp||(dp=1,(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+r);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const o=parseInt(n.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const o=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,o){return o.width&&o.width>=n+o.margin*2?o.width/(n+o.margin*2):o.scale},e.getImageWidth=function(n,o){const i=e.getScale(n,o);return Math.floor((n+o.margin*2)*i)},e.qrToImageData=function(n,o,i){const s=o.modules.size,d=o.modules.data,c=e.getScale(s,i),m=Math.floor((s+i.margin*2)*c),v=i.margin*c,b=[i.color.light,i.color.dark];for(let w=0;w<m;w++)for(let _=0;_<m;_++){let C=(w*m+_)*4,P=i.color.light;if(w>=v&&_>=v&&w<m-v&&_<m-v){const x=Math.floor((w-v)/c),S=Math.floor((_-v)/c);P=b[d[x*s+S]?1:0]}n[C++]=P.r,n[C++]=P.g,n[C++]=P.b,n[C]=P.a}}})(Ds)),Ds}var cp;function o2(){return cp||(cp=1,(function(e){const t=Jh();function r(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,d){let c=d,m=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(m=n()),c=t.getOptions(c);const v=t.getImageWidth(i.modules.size,c),b=m.getContext("2d"),w=b.createImageData(v,v);return t.qrToImageData(w.data,i,c),r(b,m,v),b.putImageData(w,0,0),m},e.renderToDataURL=function(i,s,d){let c=d;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const m=e.render(i,s,c),v=c.type||"image/png",b=c.rendererOpts||{};return m.toDataURL(v,b.quality)}})(Ts)),Ts}var Ls={},pp;function n2(){if(pp)return Ls;pp=1;const e=Jh();function t(o,i){const s=o.a/255,d=i+'="'+o.hex+'"';return s<1?d+" "+i+'-opacity="'+s.toFixed(2).slice(1)+'"':d}function r(o,i,s){let d=o+i;return typeof s<"u"&&(d+=" "+s),d}function n(o,i,s){let d="",c=0,m=!1,v=0;for(let b=0;b<o.length;b++){const w=Math.floor(b%i),_=Math.floor(b/i);!w&&!m&&(m=!0),o[b]?(v++,b>0&&w>0&&o[b-1]||(d+=m?r("M",w+s,.5+_+s):r("m",c,0),c=0,m=!1),w+1<i&&o[b+1]||(d+=r("h",v),v=0)):c++}return d}return Ls.render=function(i,s,d){const c=e.getOptions(s),m=i.modules.size,v=i.modules.data,b=m+c.margin*2,w=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+b+"v"+b+'H0z"/>':"",_="<path "+t(c.color.dark,"stroke")+' d="'+n(v,m,c.margin)+'"/>',C='viewBox="0 0 '+b+" "+b+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+C+' shape-rendering="crispEdges">'+w+_+`</svg>
5424
- `;return typeof d=="function"&&d(null,x),x},Ls}var hp;function i2(){if(hp)return uo;hp=1;const e=B0(),t=r2(),r=o2(),n=n2();function o(i,s,d,c,m){const v=[].slice.call(arguments,1),b=v.length,w=typeof v[b-1]=="function";if(!w&&!e())throw new Error("Callback required as last argument");if(w){if(b<2)throw new Error("Too few arguments provided");b===2?(m=d,d=s,s=c=void 0):b===3&&(s.getContext&&typeof m>"u"?(m=c,c=void 0):(m=c,c=d,d=s,s=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(d=s,s=c=void 0):b===2&&!s.getContext&&(c=d,d=s,s=void 0),new Promise(function(_,C){try{const P=t.create(d,c);_(i(P,s,c))}catch(P){C(P)}})}try{const _=t.create(d,c);m(null,i(_,s,c))}catch(_){m(_)}}return uo.create=t.create,uo.toCanvas=o.bind(null,r.render),uo.toDataURL=o.bind(null,r.renderToDataURL),uo.toString=o.bind(null,function(i,s,d){return n.render(i,d)}),uo}var s2=i2();const a2=N0(s2),zn={url:"",timeout:10,reappearButtonText:"Show QR Code",errorCorrection:"M"};var l2=Object.defineProperty,d2=Object.getOwnPropertyDescriptor,Je=(e,t,r,n)=>{for(var o=n>1?void 0:n?d2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&l2(t,r,o),o};exports.PontQrCode=class extends f{constructor(){super(...arguments),this.seed=_t(),this.url=zn.url,this.timeout=zn.timeout,this.reappearButtonText=zn.reappearButtonText,this.disabled=!1,this.errorCorrection=zn.errorCorrection,this._obscured=!1,this._canvasElement=null,this._handleReappear=()=>{this.disabled||(this._obscured=!1,this._clearTimer(),this._startTimer(),this.emit("pont-qr:reappear",{id:this.rootId,url:this.url}))}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontQrCode.TAG}-${this.seed}`}get canvasId(){return`${this.rootId}-${exports.PontQrCode.QR_CANVAS}`}get overlayId(){return`${this.rootId}-${exports.PontQrCode.OVERLAY}`}get reappearButtonId(){return`${this.rootId}-${exports.PontQrCode.REAPPEAR_BUTTON}`}connectedCallback(){super.connectedCallback(),this._startTimer()}disconnectedCallback(){super.disconnectedCallback(),this._clearTimer()}firstUpdated(){const t=this.querySelector(`#${this.canvasId}`);t&&(this._canvasElement=t,this._renderQR())}updated(t){(t.has("url")||t.has("errorCorrection"))&&(this._renderQR(),this._obscured=!1,this._clearTimer(),this._startTimer()),t.has("timeout")&&(this._clearTimer(),this._startTimer())}_startTimer(){this.timeout<=0||(this._clearTimer(),this._timer=window.setTimeout(()=>{this._obscured=!0,this._timer=void 0,this.emit("pont-qr:obscured",{id:this.rootId,url:this.url})},this.timeout*1e3))}_clearTimer(){this._timer&&(clearTimeout(this._timer),this._timer=void 0)}_renderQR(){if(!this._canvasElement||!this.url)return;const t=getComputedStyle(this),r=parseInt(t.getPropertyValue("--pont-qr-code-canvas-render-width"))||200,n=parseInt(t.getPropertyValue("--pont-qr-code-canvas-render-height"))||200;this._canvasElement.width=r,this._canvasElement.height=n;const o={errorCorrectionLevel:this.errorCorrection};a2.toCanvas(this._canvasElement,this.url,o,i=>{i&&(console.warn("QR generation failed:",i),this.emit("pont-qr:error",{error:i,url:this.url}))})}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}render(){const t=this._obscured&&!this.disabled;return l`
5424
+ `;return typeof d=="function"&&d(null,x),x},Ls}var hp;function i2(){if(hp)return uo;hp=1;const e=B0(),t=r2(),r=o2(),n=n2();function o(i,s,d,c,m){const v=[].slice.call(arguments,1),b=v.length,w=typeof v[b-1]=="function";if(!w&&!e())throw new Error("Callback required as last argument");if(w){if(b<2)throw new Error("Too few arguments provided");b===2?(m=d,d=s,s=c=void 0):b===3&&(s.getContext&&typeof m>"u"?(m=c,c=void 0):(m=c,c=d,d=s,s=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(d=s,s=c=void 0):b===2&&!s.getContext&&(c=d,d=s,s=void 0),new Promise(function(_,C){try{const P=t.create(d,c);_(i(P,s,c))}catch(P){C(P)}})}try{const _=t.create(d,c);m(null,i(_,s,c))}catch(_){m(_)}}return uo.create=t.create,uo.toCanvas=o.bind(null,r.render),uo.toDataURL=o.bind(null,r.renderToDataURL),uo.toString=o.bind(null,function(i,s,d){return n.render(i,d)}),uo}var s2=i2();const a2=N0(s2),Vn={url:"",timeout:10,reappearButtonText:"Show QR Code",errorCorrection:"M"};var l2=Object.defineProperty,d2=Object.getOwnPropertyDescriptor,Je=(e,t,r,n)=>{for(var o=n>1?void 0:n?d2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&l2(t,r,o),o};exports.PontQrCode=class extends f{constructor(){super(...arguments),this.seed=_t(),this.url=Vn.url,this.timeout=Vn.timeout,this.reappearButtonText=Vn.reappearButtonText,this.disabled=!1,this.errorCorrection=Vn.errorCorrection,this._obscured=!1,this._canvasElement=null,this._handleReappear=()=>{this.disabled||(this._obscured=!1,this._clearTimer(),this._startTimer(),this.emit("pont-qr:reappear",{id:this.rootId,url:this.url}))}}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontQrCode.TAG}-${this.seed}`}get canvasId(){return`${this.rootId}-${exports.PontQrCode.QR_CANVAS}`}get overlayId(){return`${this.rootId}-${exports.PontQrCode.OVERLAY}`}get reappearButtonId(){return`${this.rootId}-${exports.PontQrCode.REAPPEAR_BUTTON}`}connectedCallback(){super.connectedCallback(),this._startTimer()}disconnectedCallback(){super.disconnectedCallback(),this._clearTimer()}firstUpdated(){const t=this.querySelector(`#${this.canvasId}`);t&&(this._canvasElement=t,this._renderQR())}updated(t){(t.has("url")||t.has("errorCorrection"))&&(this._renderQR(),this._obscured=!1,this._clearTimer(),this._startTimer()),t.has("timeout")&&(this._clearTimer(),this._startTimer())}_startTimer(){this.timeout<=0||(this._clearTimer(),this._timer=window.setTimeout(()=>{this._obscured=!0,this._timer=void 0,this.emit("pont-qr:obscured",{id:this.rootId,url:this.url})},this.timeout*1e3))}_clearTimer(){this._timer&&(clearTimeout(this._timer),this._timer=void 0)}_renderQR(){if(!this._canvasElement||!this.url)return;const t=getComputedStyle(this),r=parseInt(t.getPropertyValue("--pont-qr-code-canvas-render-width"))||200,n=parseInt(t.getPropertyValue("--pont-qr-code-canvas-render-height"))||200;this._canvasElement.width=r,this._canvasElement.height=n;const o={errorCorrectionLevel:this.errorCorrection};a2.toCanvas(this._canvasElement,this.url,o,i=>{i&&(console.warn("QR generation failed:",i),this.emit("pont-qr:error",{error:i,url:this.url}))})}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}render(){const t=this._obscured&&!this.disabled;return l`
5425
5425
  <div
5426
5426
  part=${exports.PontQrCode.PARTS.root}
5427
5427
  id=${this.rootId}
@@ -5454,7 +5454,7 @@ Minimum version required to store current data is: `+F+`.
5454
5454
  `:h}
5455
5455
  </div>
5456
5456
  </div>
5457
- `}_getReappearButtonVariant(){return getComputedStyle(this).getPropertyValue("--pont-qr-code-reappear-button-variant").trim()||"primary"}};exports.PontQrCode.ROOT="qr-code";exports.PontQrCode.QR_CANVAS="canvas";exports.PontQrCode.OVERLAY="overlay";exports.PontQrCode.REAPPEAR_BUTTON="reappear-button";exports.PontQrCode.TAG=`${rt}-${exports.PontQrCode.ROOT}`;exports.PontQrCode.PARTS={root:exports.PontQrCode.ROOT,canvas:`${exports.PontQrCode.ROOT}-${exports.PontQrCode.QR_CANVAS}`,overlay:`${exports.PontQrCode.ROOT}-${exports.PontQrCode.OVERLAY}`,reappearButton:`${exports.PontQrCode.ROOT}-${exports.PontQrCode.REAPPEAR_BUTTON}`};Je([a({type:String})],exports.PontQrCode.prototype,"seed",2);Je([a({type:String,attribute:"custom-id"})],exports.PontQrCode.prototype,"customId",2);Je([a({type:String})],exports.PontQrCode.prototype,"url",2);Je([a({type:Number})],exports.PontQrCode.prototype,"timeout",2);Je([a({type:String,attribute:"reappear-button-text"})],exports.PontQrCode.prototype,"reappearButtonText",2);Je([a({type:Boolean})],exports.PontQrCode.prototype,"disabled",2);Je([a({type:String,attribute:"error-correction"})],exports.PontQrCode.prototype,"errorCorrection",2);Je([g()],exports.PontQrCode.prototype,"_obscured",2);exports.PontQrCode=Je([p("pont-qr-code")],exports.PontQrCode);const Xo={title:"Can't scan?",secret:"",issuer:"",account:"",secretLabel:"Manual secret"};var c2=Object.defineProperty,p2=Object.getOwnPropertyDescriptor,_r=(e,t,r,n)=>{for(var o=n>1?void 0:n?p2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c2(t,r,o),o};exports.PontSecret=class extends jt{constructor(){super(...arguments),this.title=Xo.title,this.secret=Xo.secret,this.issuer=Xo.issuer,this.account=Xo.account,this.secretLabel=Xo.secretLabel,this.disabled=!1,this._copied=!1,this._handleCopy=async()=>{if(!(!this.secret||this.disabled))try{await navigator.clipboard.writeText(this.secret),this.emit("pont-secret:copied",{secret:this.secret}),this._copied=!0,this._copyTimeout&&clearTimeout(this._copyTimeout),this._copyTimeout=window.setTimeout(()=>{this._copied=!1,this._copyTimeout=void 0},2e3)}catch(t){console.warn("Failed to copy secret:",t),this.emit("pont-secret:copy-error",{error:t})}}}createRenderRoot(){return this}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}render(){return l`
5457
+ `}_getReappearButtonVariant(){return getComputedStyle(this).getPropertyValue("--pont-qr-code-reappear-button-variant").trim()||"primary"}};exports.PontQrCode.ROOT="qr-code";exports.PontQrCode.QR_CANVAS="canvas";exports.PontQrCode.OVERLAY="overlay";exports.PontQrCode.REAPPEAR_BUTTON="reappear-button";exports.PontQrCode.TAG=`${ot}-${exports.PontQrCode.ROOT}`;exports.PontQrCode.PARTS={root:exports.PontQrCode.ROOT,canvas:`${exports.PontQrCode.ROOT}-${exports.PontQrCode.QR_CANVAS}`,overlay:`${exports.PontQrCode.ROOT}-${exports.PontQrCode.OVERLAY}`,reappearButton:`${exports.PontQrCode.ROOT}-${exports.PontQrCode.REAPPEAR_BUTTON}`};Je([a({type:String})],exports.PontQrCode.prototype,"seed",2);Je([a({type:String,attribute:"custom-id"})],exports.PontQrCode.prototype,"customId",2);Je([a({type:String})],exports.PontQrCode.prototype,"url",2);Je([a({type:Number})],exports.PontQrCode.prototype,"timeout",2);Je([a({type:String,attribute:"reappear-button-text"})],exports.PontQrCode.prototype,"reappearButtonText",2);Je([a({type:Boolean})],exports.PontQrCode.prototype,"disabled",2);Je([a({type:String,attribute:"error-correction"})],exports.PontQrCode.prototype,"errorCorrection",2);Je([g()],exports.PontQrCode.prototype,"_obscured",2);exports.PontQrCode=Je([p("pont-qr-code")],exports.PontQrCode);const Xo={title:"Can't scan?",secret:"",issuer:"",account:"",secretLabel:"Manual secret"};var c2=Object.defineProperty,p2=Object.getOwnPropertyDescriptor,_r=(e,t,r,n)=>{for(var o=n>1?void 0:n?p2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&c2(t,r,o),o};exports.PontSecret=class extends jt{constructor(){super(...arguments),this.title=Xo.title,this.secret=Xo.secret,this.issuer=Xo.issuer,this.account=Xo.account,this.secretLabel=Xo.secretLabel,this.disabled=!1,this._copied=!1,this._handleCopy=async()=>{if(!(!this.secret||this.disabled))try{await navigator.clipboard.writeText(this.secret),this.emit("pont-secret:copied",{secret:this.secret}),this._copied=!0,this._copyTimeout&&clearTimeout(this._copyTimeout),this._copyTimeout=window.setTimeout(()=>{this._copied=!1,this._copyTimeout=void 0},2e3)}catch(t){console.warn("Failed to copy secret:",t),this.emit("pont-secret:copy-error",{error:t})}}}createRenderRoot(){return this}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}render(){return l`
5458
5458
  <div part=${exports.PontSecret.PARTS.root} class="pont-secret-root">
5459
5459
  <div part=${exports.PontSecret.PARTS.card} class="pont-secret-card">
5460
5460
  <div part=${exports.PontSecret.PARTS.title} class="pont-secret-title">
@@ -5510,7 +5510,7 @@ Minimum version required to store current data is: `+F+`.
5510
5510
  </div>
5511
5511
  </div>
5512
5512
  </div>
5513
- `}};exports.PontSecret.ROOT="secret";exports.PontSecret.CARD="card";exports.PontSecret.TITLE="title";exports.PontSecret.INPUT_GROUP="input-group";exports.PontSecret.COPY_BUTTON="copy-button";exports.PontSecret.METADATA="metadata";exports.PontSecret.ISSUER="issuer";exports.PontSecret.ACCOUNT="account";exports.PontSecret.TOOLTIP="tooltip";exports.PontSecret.TAG=`${rt}-${exports.PontSecret.ROOT}`;exports.PontSecret.PARTS={root:exports.PontSecret.ROOT,card:`${exports.PontSecret.ROOT}-${exports.PontSecret.CARD}`,title:`${exports.PontSecret.ROOT}-${exports.PontSecret.TITLE}`,inputGroup:`${exports.PontSecret.ROOT}-${exports.PontSecret.INPUT_GROUP}`,copyButton:`${exports.PontSecret.ROOT}-${exports.PontSecret.COPY_BUTTON}`,metadata:`${exports.PontSecret.ROOT}-${exports.PontSecret.METADATA}`,issuer:`${exports.PontSecret.ROOT}-${exports.PontSecret.ISSUER}`,account:`${exports.PontSecret.ROOT}-${exports.PontSecret.ACCOUNT}`,tooltip:`${exports.PontSecret.ROOT}-${exports.PontSecret.TOOLTIP}`};_r([a({type:String})],exports.PontSecret.prototype,"title",2);_r([a({type:String})],exports.PontSecret.prototype,"secret",2);_r([a({type:String})],exports.PontSecret.prototype,"issuer",2);_r([a({type:String})],exports.PontSecret.prototype,"account",2);_r([a({type:String,attribute:"secret-label"})],exports.PontSecret.prototype,"secretLabel",2);_r([a({type:Boolean})],exports.PontSecret.prototype,"disabled",2);_r([g()],exports.PontSecret.prototype,"_copied",2);exports.PontSecret=_r([p("pont-secret")],exports.PontSecret);const Fs={title:"Recovery codes",subtitle:"Use these codes if you lose access to your authenticator app.",codes:[]};var h2=Object.defineProperty,u2=Object.getOwnPropertyDescriptor,Vo=(e,t,r,n)=>{for(var o=n>1?void 0:n?u2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&h2(t,r,o),o};exports.PontRecoveryCodes=class extends jt{constructor(){super(...arguments),this.title=Fs.title,this.subtitle=Fs.subtitle,this.codes=Fs.codes,this.disabled=!1,this._copied=!1,this._handleCopyAll=async()=>{if(!this.codes.length||this.disabled)return;const t=this.codes.join(`
5513
+ `}};exports.PontSecret.ROOT="secret";exports.PontSecret.CARD="card";exports.PontSecret.TITLE="title";exports.PontSecret.INPUT_GROUP="input-group";exports.PontSecret.COPY_BUTTON="copy-button";exports.PontSecret.METADATA="metadata";exports.PontSecret.ISSUER="issuer";exports.PontSecret.ACCOUNT="account";exports.PontSecret.TOOLTIP="tooltip";exports.PontSecret.TAG=`${ot}-${exports.PontSecret.ROOT}`;exports.PontSecret.PARTS={root:exports.PontSecret.ROOT,card:`${exports.PontSecret.ROOT}-${exports.PontSecret.CARD}`,title:`${exports.PontSecret.ROOT}-${exports.PontSecret.TITLE}`,inputGroup:`${exports.PontSecret.ROOT}-${exports.PontSecret.INPUT_GROUP}`,copyButton:`${exports.PontSecret.ROOT}-${exports.PontSecret.COPY_BUTTON}`,metadata:`${exports.PontSecret.ROOT}-${exports.PontSecret.METADATA}`,issuer:`${exports.PontSecret.ROOT}-${exports.PontSecret.ISSUER}`,account:`${exports.PontSecret.ROOT}-${exports.PontSecret.ACCOUNT}`,tooltip:`${exports.PontSecret.ROOT}-${exports.PontSecret.TOOLTIP}`};_r([a({type:String})],exports.PontSecret.prototype,"title",2);_r([a({type:String})],exports.PontSecret.prototype,"secret",2);_r([a({type:String})],exports.PontSecret.prototype,"issuer",2);_r([a({type:String})],exports.PontSecret.prototype,"account",2);_r([a({type:String,attribute:"secret-label"})],exports.PontSecret.prototype,"secretLabel",2);_r([a({type:Boolean})],exports.PontSecret.prototype,"disabled",2);_r([g()],exports.PontSecret.prototype,"_copied",2);exports.PontSecret=_r([p("pont-secret")],exports.PontSecret);const Fs={title:"Recovery codes",subtitle:"Use these codes if you lose access to your authenticator app.",codes:[]};var h2=Object.defineProperty,u2=Object.getOwnPropertyDescriptor,Vo=(e,t,r,n)=>{for(var o=n>1?void 0:n?u2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&h2(t,r,o),o};exports.PontRecoveryCodes=class extends jt{constructor(){super(...arguments),this.title=Fs.title,this.subtitle=Fs.subtitle,this.codes=Fs.codes,this.disabled=!1,this._copied=!1,this._handleCopyAll=async()=>{if(!this.codes.length||this.disabled)return;const t=this.codes.join(`
5514
5514
  `);try{await navigator.clipboard.writeText(t),this.emit("pont-recovery-codes:copied",{codes:this.codes}),this._copied=!0,this._copyTimeout&&clearTimeout(this._copyTimeout),this._copyTimeout=window.setTimeout(()=>{this._copied=!1,this._copyTimeout=void 0},2e3)}catch(r){console.warn("Failed to copy codes:",r),this.emit("pont-recovery-codes:copy-error",{error:r})}},this._handleDownload=()=>{if(!this.codes.length||this.disabled)return;const t=this.codes.join(`
5515
5515
  `),r=new Blob([t],{type:"text/plain"}),n=URL.createObjectURL(r),o=document.createElement("a");o.href=n,o.download="recovery-codes.txt",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n),this.emit("pont-recovery-codes:downloaded",{codes:this.codes})}}createRenderRoot(){return this}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}render(){const t=this.codes&&this.codes.length>0;return l`
5516
5516
  <div part=${exports.PontRecoveryCodes.PARTS.root} class="pont-recovery-codes-root">
@@ -5583,7 +5583,7 @@ Minimum version required to store current data is: `+F+`.
5583
5583
  </div>
5584
5584
  </div>
5585
5585
  </div>
5586
- `}};exports.PontRecoveryCodes.ROOT="recovery-codes";exports.PontRecoveryCodes.CARD="card";exports.PontRecoveryCodes.TITLE="title";exports.PontRecoveryCodes.SUBTITLE="subtitle";exports.PontRecoveryCodes.CODES_LIST="codes-list";exports.PontRecoveryCodes.CODE_ITEM="code-item";exports.PontRecoveryCodes.BUTTONS="buttons";exports.PontRecoveryCodes.COPY_BUTTON="copy-button";exports.PontRecoveryCodes.DOWNLOAD_BUTTON="download-button";exports.PontRecoveryCodes.TOOLTIP="tooltip";exports.PontRecoveryCodes.TAG=`${rt}-${exports.PontRecoveryCodes.ROOT}`;exports.PontRecoveryCodes.PARTS={root:exports.PontRecoveryCodes.ROOT,card:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.CARD}`,title:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.TITLE}`,subtitle:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.SUBTITLE}`,codesList:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.CODES_LIST}`,codeItem:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.CODE_ITEM}`,buttons:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.BUTTONS}`,copyButton:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.COPY_BUTTON}`,downloadButton:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.DOWNLOAD_BUTTON}`,tooltip:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.TOOLTIP}`};Vo([a({type:String})],exports.PontRecoveryCodes.prototype,"title",2);Vo([a({type:String})],exports.PontRecoveryCodes.prototype,"subtitle",2);Vo([a({type:Array})],exports.PontRecoveryCodes.prototype,"codes",2);Vo([a({type:Boolean})],exports.PontRecoveryCodes.prototype,"disabled",2);Vo([g()],exports.PontRecoveryCodes.prototype,"_copied",2);exports.PontRecoveryCodes=Vo([p("pont-recovery-codes")],exports.PontRecoveryCodes);const m2={default:U`
5586
+ `}};exports.PontRecoveryCodes.ROOT="recovery-codes";exports.PontRecoveryCodes.CARD="card";exports.PontRecoveryCodes.TITLE="title";exports.PontRecoveryCodes.SUBTITLE="subtitle";exports.PontRecoveryCodes.CODES_LIST="codes-list";exports.PontRecoveryCodes.CODE_ITEM="code-item";exports.PontRecoveryCodes.BUTTONS="buttons";exports.PontRecoveryCodes.COPY_BUTTON="copy-button";exports.PontRecoveryCodes.DOWNLOAD_BUTTON="download-button";exports.PontRecoveryCodes.TOOLTIP="tooltip";exports.PontRecoveryCodes.TAG=`${ot}-${exports.PontRecoveryCodes.ROOT}`;exports.PontRecoveryCodes.PARTS={root:exports.PontRecoveryCodes.ROOT,card:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.CARD}`,title:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.TITLE}`,subtitle:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.SUBTITLE}`,codesList:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.CODES_LIST}`,codeItem:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.CODE_ITEM}`,buttons:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.BUTTONS}`,copyButton:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.COPY_BUTTON}`,downloadButton:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.DOWNLOAD_BUTTON}`,tooltip:`${exports.PontRecoveryCodes.ROOT}-${exports.PontRecoveryCodes.TOOLTIP}`};Vo([a({type:String})],exports.PontRecoveryCodes.prototype,"title",2);Vo([a({type:String})],exports.PontRecoveryCodes.prototype,"subtitle",2);Vo([a({type:Array})],exports.PontRecoveryCodes.prototype,"codes",2);Vo([a({type:Boolean})],exports.PontRecoveryCodes.prototype,"disabled",2);Vo([g()],exports.PontRecoveryCodes.prototype,"_copied",2);exports.PontRecoveryCodes=Vo([p("pont-recovery-codes")],exports.PontRecoveryCodes);const m2={default:U`
5587
5587
  <circle cx="12" cy="12" r="10"/>
5588
5588
  <line x1="12" x2="12" y1="8" y2="12"/>
5589
5589
  <line x1="12" x2="12.01" y1="16" y2="16"/>
@@ -5643,7 +5643,7 @@ Minimum version required to store current data is: `+F+`.
5643
5643
  </pont-callout-description>
5644
5644
  `:h}
5645
5645
  </pont-callout>
5646
- `}};exports.PontAlert.ROOT="alert";exports.PontAlert.ICON="icon";exports.PontAlert.TITLE="title";exports.PontAlert.DESCRIPTION="description";exports.PontAlert.TAG=`${rt}-${exports.PontAlert.ROOT}`;exports.PontAlert.PARTS={root:exports.PontAlert.ROOT,icon:`${exports.PontAlert.ROOT}-${exports.PontAlert.ICON}`,title:`${exports.PontAlert.ROOT}-${exports.PontAlert.TITLE}`,description:`${exports.PontAlert.ROOT}-${exports.PontAlert.DESCRIPTION}`};Xe([a({type:String})],exports.PontAlert.prototype,"seed",2);Xe([a({type:String,attribute:"custom-id"})],exports.PontAlert.prototype,"customId",2);Xe([a({type:String})],exports.PontAlert.prototype,"status",2);Xe([a({type:String})],exports.PontAlert.prototype,"palette",2);Xe([a({type:String})],exports.PontAlert.prototype,"variant",2);Xe([a({type:String})],exports.PontAlert.prototype,"title",1);Xe([a({type:String})],exports.PontAlert.prototype,"description",2);Xe([a({type:Boolean})],exports.PontAlert.prototype,"icon",2);exports.PontAlert=Xe([p("pont-alert")],exports.PontAlert);var v2=Object.defineProperty,b2=Object.getOwnPropertyDescriptor,Ho=(e,t,r,n)=>{for(var o=n>1?void 0:n?b2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&v2(t,r,o),o};exports.PontCountdown=class extends jt{constructor(){super(...arguments),this.content="",this.duration=5,this.redirectUrl="/",this.id="",this.seconds=0,this.timerId=null}get _containerElement(){return this.querySelector(`div[part=${this.id?this.id:"countdown"}]`)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){this.seconds=Math.max(0,this.duration||0),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer(),window.location.href=this.redirectUrl||"/"}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.content} ${this.seconds}s...`}render(){return l`
5646
+ `}};exports.PontAlert.ROOT="alert";exports.PontAlert.ICON="icon";exports.PontAlert.TITLE="title";exports.PontAlert.DESCRIPTION="description";exports.PontAlert.TAG=`${ot}-${exports.PontAlert.ROOT}`;exports.PontAlert.PARTS={root:exports.PontAlert.ROOT,icon:`${exports.PontAlert.ROOT}-${exports.PontAlert.ICON}`,title:`${exports.PontAlert.ROOT}-${exports.PontAlert.TITLE}`,description:`${exports.PontAlert.ROOT}-${exports.PontAlert.DESCRIPTION}`};Xe([a({type:String})],exports.PontAlert.prototype,"seed",2);Xe([a({type:String,attribute:"custom-id"})],exports.PontAlert.prototype,"customId",2);Xe([a({type:String})],exports.PontAlert.prototype,"status",2);Xe([a({type:String})],exports.PontAlert.prototype,"palette",2);Xe([a({type:String})],exports.PontAlert.prototype,"variant",2);Xe([a({type:String})],exports.PontAlert.prototype,"title",1);Xe([a({type:String})],exports.PontAlert.prototype,"description",2);Xe([a({type:Boolean})],exports.PontAlert.prototype,"icon",2);exports.PontAlert=Xe([p("pont-alert")],exports.PontAlert);var v2=Object.defineProperty,b2=Object.getOwnPropertyDescriptor,Ho=(e,t,r,n)=>{for(var o=n>1?void 0:n?b2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&v2(t,r,o),o};exports.PontCountdown=class extends jt{constructor(){super(...arguments),this.content="",this.duration=5,this.redirectUrl="/",this.id="",this.seconds=0,this.timerId=null}get _containerElement(){return this.querySelector(`div[part=${this.id?this.id:"countdown"}]`)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){this.seconds=Math.max(0,this.duration||0),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer(),window.location.href=this.redirectUrl||"/"}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.content} ${this.seconds}s...`}render(){return l`
5647
5647
  <div part=${this.id?this.id:"countdown"}>
5648
5648
  <pont-typography-p>${this.renderContent()}</pont-typography-p>
5649
5649
  </div>
@@ -5660,7 +5660,7 @@ Minimum version required to store current data is: `+F+`.
5660
5660
  <pont-card-content></pont-card-content>
5661
5661
  ${this.branding.showWatermark?this._renderWatermark():h}
5662
5662
  </pont-card>
5663
- `}};Qi([a()],exports.PontBlock.prototype,"id",2);Qi([a()],exports.PontBlock.prototype,"align",2);Qi([a()],exports.PontBlock.prototype,"justify",2);exports.PontBlock=Qi([p("pont-block")],exports.PontBlock);var w2=Object.defineProperty,$2=Object.getOwnPropertyDescriptor,Cl=(e,t,r,n)=>{for(var o=n>1?void 0:n?$2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&w2(t,r,o),o};const P2="data-pont-design",C2="data-pont-design-empty",S2="data-pont-container";exports.PontContainer=class extends jt{constructor(){super(...arguments),this.id="",this.type="flex_column",this.design=new In(this)}createRenderRoot(){return this}get innerElement(){return this.querySelector(`:scope > [${S2}]`)}async firstUpdated(){await this.updateComplete;const t=this.innerElement;t&&this.moveLightDomChildrenInto(t),this.syncDesignState()}async updated(){await this.updateComplete,await Oa(),this.syncDesignState()}syncDesignState(){var r;const t=this.design.active;this.toggleAttribute(P2,t),this.toggleAttribute(C2,t&&(((r=this.innerElement)==null?void 0:r.childElementCount)??0)===0)}render(){return l`<div
5663
+ `}};Qi([a()],exports.PontBlock.prototype,"id",2);Qi([a()],exports.PontBlock.prototype,"align",2);Qi([a()],exports.PontBlock.prototype,"justify",2);exports.PontBlock=Qi([p("pont-block")],exports.PontBlock);var w2=Object.defineProperty,$2=Object.getOwnPropertyDescriptor,Cl=(e,t,r,n)=>{for(var o=n>1?void 0:n?$2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&w2(t,r,o),o};const P2="data-pont-design",C2="data-pont-design-empty",S2="data-pont-container";exports.PontContainer=class extends jt{constructor(){super(...arguments),this.id="",this.type="flex_column",this.design=new An(this)}createRenderRoot(){return this}get innerElement(){return this.querySelector(`:scope > [${S2}]`)}async firstUpdated(){await this.updateComplete;const t=this.innerElement;t&&this.moveLightDomChildrenInto(t),this.syncDesignState()}async updated(){await this.updateComplete,await Oa(),this.syncDesignState()}syncDesignState(){var r;const t=this.design.active;this.toggleAttribute(P2,t),this.toggleAttribute(C2,t&&(((r=this.innerElement)==null?void 0:r.childElementCount)??0)===0)}render(){return l`<div
5664
5664
  data-pont-container
5665
5665
  part=${this.id?this.id:"container"}
5666
5666
  data-type="${this.type}"
@@ -5691,7 +5691,7 @@ Minimum version required to store current data is: `+F+`.
5691
5691
  * @license
5692
5692
  * Copyright 2017 Google LLC
5693
5693
  * SPDX-License-Identifier: BSD-3-Clause
5694
- */class Ta extends Zn{}Ta.directiveName="unsafeSVG",Ta.resultType=2;const up=xo(Ta);var F2=Object.defineProperty,k2=Object.getOwnPropertyDescriptor,wr=(e,t,r,n)=>{for(var o=n>1?void 0:n?k2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&F2(t,r,o),o};const M2=`
5694
+ */class Ta extends Jn{}Ta.directiveName="unsafeSVG",Ta.resultType=2;const up=xo(Ta);var F2=Object.defineProperty,k2=Object.getOwnPropertyDescriptor,wr=(e,t,r,n)=>{for(var o=n>1?void 0:n?k2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&F2(t,r,o),o};const M2=`
5695
5695
  <svg viewBox="0 0 120 32" role="img" aria-label="Logo placeholder"
5696
5696
  xmlns="http://www.w3.org/2000/svg" width="120" height="32">
5697
5697
  <rect x="0.75" y="0.75" width="118.5" height="30.5" rx="6"
@@ -5702,7 +5702,7 @@ Minimum version required to store current data is: `+F+`.
5702
5702
  fill="currentColor" fill-opacity="0.3"/>
5703
5703
  <rect x="32" y="19" width="34" height="4" rx="2"
5704
5704
  fill="currentColor" fill-opacity="0.18"/>
5705
- </svg>`;exports.PontLogo=class extends jt{constructor(){super(...arguments),this.align="center",this.width="",this.height="",this.theme=this.getTheme(),this.isSvg=!1,this.design=new In(this)}get _containerElement(){return this.querySelector(".pont-logo-wrapper")}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.updateLayoutFromProps(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}updated(t){super.updated(t),(t.has("align")||t.has("width")||t.has("height"))&&this.updateLayoutFromProps()}updateLayoutFromProps(){const t=this._containerElement;t&&(this.align&&(t.style.justifySelf=this.align),this.width&&(t.style.width=this.width),this.height&&(t.style.height=this.height))}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")??"light"}createRenderRoot(){return this}render(){const t=hP(this.imageUrl,this.theme);if(!t&&this.design.active)return this.isSvg=!0,l`
5705
+ </svg>`;exports.PontLogo=class extends jt{constructor(){super(...arguments),this.align="center",this.width="",this.height="",this.theme=this.getTheme(),this.isSvg=!1,this.design=new An(this)}get _containerElement(){return this.querySelector(".pont-logo-wrapper")}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.updateLayoutFromProps(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}updated(t){super.updated(t),(t.has("align")||t.has("width")||t.has("height"))&&this.updateLayoutFromProps()}updateLayoutFromProps(){const t=this._containerElement;t&&(this.align&&(t.style.justifySelf=this.align),this.width&&(t.style.width=this.width),this.height&&(t.style.height=this.height))}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")??"light"}createRenderRoot(){return this}render(){const t=hP(this.imageUrl,this.theme);if(!t&&this.design.active)return this.isSvg=!0,l`
5706
5706
  <div class="pont-logo-wrapper" part=${this.id?this.id:"logo"}>
5707
5707
  ${up(M2)}
5708
5708
  </div>
@@ -5716,7 +5716,7 @@ Minimum version required to store current data is: `+F+`.
5716
5716
  />
5717
5717
  `}
5718
5718
  </div>
5719
- `}};wr([a({type:String})],exports.PontLogo.prototype,"id",2);wr([a({type:String,attribute:"image-url"})],exports.PontLogo.prototype,"imageUrl",2);wr([a({type:String,reflect:!0})],exports.PontLogo.prototype,"align",2);wr([a({type:String,reflect:!0})],exports.PontLogo.prototype,"width",2);wr([a({type:String,reflect:!0})],exports.PontLogo.prototype,"height",2);wr([g()],exports.PontLogo.prototype,"theme",2);wr([g()],exports.PontLogo.prototype,"isSvg",2);exports.PontLogo=wr([p("pont-logo")],exports.PontLogo);const Vn={variant:"brand",logoAlign:"end",label:"Powered by"};var N2=Object.defineProperty,B2=Object.getOwnPropertyDescriptor,Go=(e,t,r,n)=>{for(var o=n>1?void 0:n?B2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&N2(t,r,o),o};exports.PontWatermark=class extends f{constructor(){super(...arguments),this.seed=_t(),this.variant=Vn.variant,this.logoAlign=Vn.logoAlign,this._label=Vn.label}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:Vn.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontWatermark.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontWatermark.LABEL}`}get logoId(){return`${this.rootId}-${exports.PontWatermark.LOGO}`}_renderLabel(){return l`
5719
+ `}};wr([a({type:String})],exports.PontLogo.prototype,"id",2);wr([a({type:String,attribute:"image-url"})],exports.PontLogo.prototype,"imageUrl",2);wr([a({type:String,reflect:!0})],exports.PontLogo.prototype,"align",2);wr([a({type:String,reflect:!0})],exports.PontLogo.prototype,"width",2);wr([a({type:String,reflect:!0})],exports.PontLogo.prototype,"height",2);wr([g()],exports.PontLogo.prototype,"theme",2);wr([g()],exports.PontLogo.prototype,"isSvg",2);exports.PontLogo=wr([p("pont-logo")],exports.PontLogo);const Hn={variant:"brand",logoAlign:"end",label:"Powered by"};var N2=Object.defineProperty,B2=Object.getOwnPropertyDescriptor,Go=(e,t,r,n)=>{for(var o=n>1?void 0:n?B2(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&N2(t,r,o),o};exports.PontWatermark=class extends f{constructor(){super(...arguments),this.seed=_t(),this.variant=Hn.variant,this.logoAlign=Hn.logoAlign,this._label=Hn.label}get label(){return this._label}set label(t){const r=this._label;this._label=t.length?t:Hn.label,this.requestUpdate("label",r)}createRenderRoot(){return this}get rootId(){return this.customId??`${exports.PontWatermark.TAG}-${this.seed}`}get labelId(){return`${this.rootId}-${exports.PontWatermark.LABEL}`}get logoId(){return`${this.rootId}-${exports.PontWatermark.LOGO}`}_renderLabel(){return l`
5720
5720
  <span id="${this.labelId}" part="${exports.PontWatermark.PARTS.label}">
5721
5721
  ${this.label}
5722
5722
  </span>
@@ -5771,5 +5771,5 @@ Minimum version required to store current data is: `+F+`.
5771
5771
  >
5772
5772
  ${this.logoAlign==="start"?l`${this._renderLogo()} ${this._renderLabel()}`:l`${this._renderLabel()} ${this._renderLogo()}`}
5773
5773
  </span>
5774
- `}};exports.PontWatermark.ROOT="watermark";exports.PontWatermark.LABEL="label";exports.PontWatermark.LOGO="logo";exports.PontWatermark.TAG=`${rt}-${exports.PontWatermark.ROOT}`;exports.PontWatermark.PARTS={root:exports.PontWatermark.ROOT,label:`${exports.PontWatermark.ROOT}-${exports.PontWatermark.LABEL}`,logo:`${exports.PontWatermark.ROOT}-${exports.PontWatermark.LOGO}`};Go([a({type:String})],exports.PontWatermark.prototype,"seed",2);Go([a({type:String,attribute:"custom-id"})],exports.PontWatermark.prototype,"customId",2);Go([a({type:String})],exports.PontWatermark.prototype,"variant",2);Go([a({type:String,attribute:"logo-align"})],exports.PontWatermark.prototype,"logoAlign",2);Go([a({type:String})],exports.PontWatermark.prototype,"label",1);exports.PontWatermark=Go([p("pont-watermark")],exports.PontWatermark);function U2(){return Y}exports.BaseElement=jt;exports.PontAccountMenu=Fe;exports.PontAccountSettings=Ot;exports.PontMemberManagement=j;exports.PontPaginator=zr;exports.PontUserSnippet=Yi;exports.closeAccountSettingsModal=wl;exports.closeMemberManagementModal=Vh;exports.openAccountSettingsModal=_l;exports.openMemberManagementModal=zh;exports.setLocales=Hh;exports.useAuthProvider=U2;
5774
+ `}};exports.PontWatermark.ROOT="watermark";exports.PontWatermark.LABEL="label";exports.PontWatermark.LOGO="logo";exports.PontWatermark.TAG=`${ot}-${exports.PontWatermark.ROOT}`;exports.PontWatermark.PARTS={root:exports.PontWatermark.ROOT,label:`${exports.PontWatermark.ROOT}-${exports.PontWatermark.LABEL}`,logo:`${exports.PontWatermark.ROOT}-${exports.PontWatermark.LOGO}`};Go([a({type:String})],exports.PontWatermark.prototype,"seed",2);Go([a({type:String,attribute:"custom-id"})],exports.PontWatermark.prototype,"customId",2);Go([a({type:String})],exports.PontWatermark.prototype,"variant",2);Go([a({type:String,attribute:"logo-align"})],exports.PontWatermark.prototype,"logoAlign",2);Go([a({type:String})],exports.PontWatermark.prototype,"label",1);exports.PontWatermark=Go([p("pont-watermark")],exports.PontWatermark);function U2(){return Y}exports.BaseElement=jt;exports.PontAccountMenu=Fe;exports.PontAccountSettings=Ot;exports.PontMemberManagement=j;exports.PontPaginator=zr;exports.PontUserSnippet=Yi;exports.closeAccountSettingsModal=wl;exports.closeMemberManagementModal=Vh;exports.openAccountSettingsModal=_l;exports.openMemberManagementModal=zh;exports.setLocales=Hh;exports.useAuthProvider=U2;
5775
5775
  //# sourceMappingURL=index.js.map