@xplor-education/react-wrappers 2.0.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@stencil/react-output-target/runtime"),f=require("react"),vt="xplor-component-library",K={hydratedSelectorName:"hydrated",lazyLoad:!1,slotRelocation:!0,updatable:!0};var kt=Object.defineProperty,wt=(e,n)=>{for(var t in n)kt(e,t,{get:n[t],enumerable:!0})},_t="http://www.w3.org/2000/svg",Ct="http://www.w3.org/1999/xhtml",Yn=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(Yn||{}),Qn=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(Qn||{}),sn="type",dn="value",cn="serialized:",P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},$t=(e,n)=>{const t={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map};t.$onReadyPromise$=new Promise(i=>t.$onReadyResolve$=i),e["s-p"]=[],e["s-rc"]=[];const o=t;return e.__stencil__getHostRef=()=>o,o},zn=(e,n)=>n in e,V=(e,n)=>(0,console.error)(e,n),nn=new Map,St="r",It="o",Et="s",zt="t",Tt="c",W="s-id",pn="sty-id",Tn="c-id",Dt="slot-fb{display:contents}slot-fb[hidden]{display:none}",C=typeof window<"u"?window:{},y=C.HTMLElement||class{},$={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,o)=>e.addEventListener(n,t,o),rel:(e,n,t,o)=>e.removeEventListener(n,t,o),ce:(e,n)=>new CustomEvent(e,n)},Xt=(()=>{var e;let n=!1;try{(e=C.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),Lt=e=>Promise.resolve(e),yn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),gn=!1,Dn=[],Kn=[],Bt=(e,n)=>t=>{e.push(t),gn||(gn=!0,$.$flags$&4?an(xn):$.raf(xn))},Xn=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){V(t)}e.length=0},xn=()=>{Xn(Dn),Xn(Kn),(gn=Dn.length>0)&&$.raf(xn)},an=e=>Lt().then(e),Ft=Bt(Kn),At=e=>e!=null&&e!==void 0,vn=e=>(e=typeof e,e==="object"||e==="function");function Mt(e){var n,t,o;return(o=(t=(n=e.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?o:void 0}var Pt=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ot=class M{static fromLocalValue(n){const t=n[sn],o=dn in n?n[dn]:void 0;switch(t){case"string":return o;case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return o==="NaN"?NaN:o==="-0"?-0:o==="Infinity"?1/0:o==="-Infinity"?-1/0:o;case"array":return o.map(d=>M.fromLocalValue(d));case"date":return new Date(o);case"map":const i=new Map;for(const[d,p]of o){const g=typeof d=="object"&&d!==null?M.fromLocalValue(d):d,b=M.fromLocalValue(p);i.set(g,b)}return i;case"object":const a={};for(const[d,p]of o)a[d]=M.fromLocalValue(p);return a;case"regexp":const{pattern:s,flags:l}=o;return new RegExp(s,l);case"set":const c=new Set;for(const d of o)c.add(M.fromLocalValue(d));return c;case"symbol":return Symbol(o);default:throw new Error(`Unsupported type: ${t}`)}}static fromLocalValueArray(n){return n.map(t=>M.fromLocalValue(t))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(sn))return!1;const t=n[sn];return Object.values({...Yn,...Qn}).includes(t)?t!=="null"&&t!=="undefined"?n.hasOwnProperty(dn):!0:!1}},jt={};wt(jt,{err:()=>Vn,map:()=>Ht,ok:()=>mn,unwrap:()=>Rt,unwrapErr:()=>Ut});var mn=e=>({isOk:!0,isErr:!1,value:e}),Vn=e=>({isOk:!1,isErr:!0,value:e});function Ht(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then(o=>mn(o)):mn(t)}if(e.isErr){const t=e.value;return Vn(t)}throw"should never get here"}var Rt=e=>{if(e.isOk)return e.value;throw e.value},Ut=e=>{if(e.isErr)return e.value;throw e.value};function qt(e){return typeof e!="string"||!e.startsWith(cn)?e:Ot.fromLocalValue(JSON.parse(atob(e.slice(cn.length))))}function Wt(e){const n=this.attachShadow({mode:"open"});if(yn){const t=new CSSStyleSheet;t.replaceSync(_r),n.adoptedStyleSheets.push(t)}}var Gn=e=>{const n=en(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Zn(n,e.tagName).forEach(o=>{o.nodeType===1&&o.tagName==="SLOT-FB"&&(Qt(o,kn(o),!1).length?o.hidden=!0:o.hidden=!1)});let t=0;for(t=0;t<n.length;t++){const o=n[t];o.nodeType===1&&en(o,"childNodes").length&&Gn(o)}},Yt=e=>{const n=[];for(let t=0;t<e.length;t++){const o=e[t]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n};function Zn(e,n,t){let o=0,i=[],a;for(;o<e.length;o++)a=e[o],a["s-sr"]&&(!n||a["s-hn"]===n)&&t===void 0&&i.push(a),i=[...i,...Zn(a.childNodes,n,t)];return i}var Qt=(e,n,t=!0)=>{const o=[];(t&&e["s-sr"]||!e["s-sr"])&&o.push(e);let i=e;for(;i=i.nextSibling;)kn(i)===n&&(t||!i["s-sr"])&&o.push(i);return o},Ln=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",Kt=(e,n,t,o)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const i=document.createTextNode("");if(i["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const a=n["s-cr"].parentNode,s=en(a,"appendChild");if(typeof o<"u"){i["s-oo"]=o;const l=en(a,"childNodes"),c=[i];l.forEach(d=>{d["s-nr"]&&c.push(d)}),c.sort((d,p)=>!d["s-oo"]||d["s-oo"]<(p["s-oo"]||0)?-1:!p["s-oo"]||p["s-oo"]<d["s-oo"]?1:0),c.forEach(d=>s.call(a,d))}else s.call(a,i);e["s-ol"]=i,e["s-sh"]=n["s-hn"]},kn=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Jn(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=t=>(function(o){const i=[],a=this["s-sn"];o!=null&&o.flatten&&console.error(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@stencil/react-output-target/runtime"),f=require("react"),kt="xplor-component-library",V={hydratedSelectorName:"hydrated",lazyLoad:!1,slotRelocation:!0,updatable:!0};var wt=Object.defineProperty,_t=(e,n)=>{for(var t in n)wt(e,t,{get:n[t],enumerable:!0})},Ct="http://www.w3.org/2000/svg",$t="http://www.w3.org/1999/xhtml",Kn=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(Kn||{}),Yn=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(Yn||{}),sn="type",dn="value",cn="serialized:",P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},It=(e,n)=>{const t={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map};t.$onReadyPromise$=new Promise(i=>t.$onReadyResolve$=i),e["s-p"]=[],e["s-rc"]=[];const o=t;return e.__stencil__getHostRef=()=>o,o},zn=(e,n)=>n in e,Q=(e,n)=>(0,console.error)(e,n),nn=new Map,St="r",Et="o",zt="s",Tt="t",Dt="c",W="s-id",pn="sty-id",Tn="c-id",Lt="slot-fb{display:contents}slot-fb[hidden]{display:none}",C=typeof window<"u"?window:{},y=C.HTMLElement||class{},$={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,o)=>e.addEventListener(n,t,o),rel:(e,n,t,o)=>e.removeEventListener(n,t,o),ce:(e,n)=>new CustomEvent(e,n)},Ft=(()=>{var e;let n=!1;try{(e=C.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),Xt=e=>Promise.resolve(e),yn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),gn=!1,Dn=[],Vn=[],At=(e,n)=>t=>{e.push(t),gn||(gn=!0,$.$flags$&4?an(xn):$.raf(xn))},Ln=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Q(t)}e.length=0},xn=()=>{Ln(Dn),Ln(Vn),(gn=Dn.length>0)&&$.raf(xn)},an=e=>Xt().then(e),Bt=At(Vn),Mt=e=>e!=null&&e!==void 0,vn=e=>(e=typeof e,e==="object"||e==="function");function Pt(e){var n,t,o;return(o=(t=(n=e.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?o:void 0}var Ot=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),jt=class M{static fromLocalValue(n){const t=n[sn],o=dn in n?n[dn]:void 0;switch(t){case"string":return o;case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return o==="NaN"?NaN:o==="-0"?-0:o==="Infinity"?1/0:o==="-Infinity"?-1/0:o;case"array":return o.map(d=>M.fromLocalValue(d));case"date":return new Date(o);case"map":const i=new Map;for(const[d,p]of o){const g=typeof d=="object"&&d!==null?M.fromLocalValue(d):d,x=M.fromLocalValue(p);i.set(g,x)}return i;case"object":const a={};for(const[d,p]of o)a[d]=M.fromLocalValue(p);return a;case"regexp":const{pattern:l,flags:s}=o;return new RegExp(l,s);case"set":const c=new Set;for(const d of o)c.add(M.fromLocalValue(d));return c;case"symbol":return Symbol(o);default:throw new Error(`Unsupported type: ${t}`)}}static fromLocalValueArray(n){return n.map(t=>M.fromLocalValue(t))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(sn))return!1;const t=n[sn];return Object.values({...Kn,...Yn}).includes(t)?t!=="null"&&t!=="undefined"?n.hasOwnProperty(dn):!0:!1}},Ht={};_t(Ht,{err:()=>Qn,map:()=>Rt,ok:()=>mn,unwrap:()=>qt,unwrapErr:()=>Ut});var mn=e=>({isOk:!0,isErr:!1,value:e}),Qn=e=>({isOk:!1,isErr:!0,value:e});function Rt(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then(o=>mn(o)):mn(t)}if(e.isErr){const t=e.value;return Qn(t)}throw"should never get here"}var qt=e=>{if(e.isOk)return e.value;throw e.value},Ut=e=>{if(e.isErr)return e.value;throw e.value};function Wt(e){return typeof e!="string"||!e.startsWith(cn)?e:jt.fromLocalValue(JSON.parse(atob(e.slice(cn.length))))}function Kt(e){const n=this.attachShadow({mode:"open"});if(yn){const t=new CSSStyleSheet;t.replaceSync(Cr),n.adoptedStyleSheets.push(t)}}var Gn=e=>{const n=en(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Zn(n,e.tagName).forEach(o=>{o.nodeType===1&&o.tagName==="SLOT-FB"&&(Vt(o,kn(o),!1).length?o.hidden=!0:o.hidden=!1)});let t=0;for(t=0;t<n.length;t++){const o=n[t];o.nodeType===1&&en(o,"childNodes").length&&Gn(o)}},Yt=e=>{const n=[];for(let t=0;t<e.length;t++){const o=e[t]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n};function Zn(e,n,t){let o=0,i=[],a;for(;o<e.length;o++)a=e[o],a["s-sr"]&&(!n||a["s-hn"]===n)&&t===void 0&&i.push(a),i=[...i,...Zn(a.childNodes,n,t)];return i}var Vt=(e,n,t=!0)=>{const o=[];(t&&e["s-sr"]||!e["s-sr"])&&o.push(e);let i=e;for(;i=i.nextSibling;)kn(i)===n&&(t||!i["s-sr"])&&o.push(i);return o},Fn=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",Qt=(e,n,t,o)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const i=document.createTextNode("");if(i["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const a=n["s-cr"].parentNode,l=en(a,"appendChild");if(typeof o<"u"){i["s-oo"]=o;const s=en(a,"childNodes"),c=[i];s.forEach(d=>{d["s-nr"]&&c.push(d)}),c.sort((d,p)=>!d["s-oo"]||d["s-oo"]<(p["s-oo"]||0)?-1:!p["s-oo"]||p["s-oo"]<d["s-oo"]?1:0),c.forEach(d=>l.call(a,d))}else l.call(a,i);e["s-ol"]=i,e["s-sh"]=n["s-hn"]},kn=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Jn(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=t=>(function(o){const i=[],a=this["s-sn"];o!=null&&o.flatten&&console.error(`
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:Yt(s.childNodes)).forEach(c=>{a===kn(c)&&i.push(c)}),t?i.filter(c=>c.nodeType===1):i}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function en(e,n){if("__"+n in e){const t=e["__"+n];return typeof t!="function"?t:t.bind(e)}else return typeof e[n]!="function"?e[n]:e[n].bind(e)}var A=(e,n="")=>()=>{},r=(e,n,...t)=>{let o=null,i=null,a=null,s=!1,l=!1;const c=[],d=g=>{for(let b=0;b<g.length;b++)o=g[b],Array.isArray(o)?d(o):o!=null&&typeof o!="boolean"&&((s=typeof e!="function"&&!vn(o))&&(o=String(o)),s&&l?c[c.length-1].$text$+=o:c.push(s?U(null,o):o),l=s)};if(d(t),n){n.key&&(i=n.key),n.name&&(a=n.name);{const g=n.className||n.class;g&&(n.class=typeof g!="object"?g:Object.keys(g).filter(b=>g[b]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,c,Gt);const p=U(e,null);return p.$attrs$=n,c.length>0&&(p.$children$=c),p.$key$=i,p.$name$=a,p},U=(e,n)=>{const t={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return t.$attrs$=null,t.$key$=null,t.$name$=null,t},h={},Vt=e=>e&&e.$tag$===h,Gt={forEach:(e,n)=>e.map(Bn).forEach(n),map:(e,n)=>e.map(Bn).map(n).map(Zt)},Bn=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Zt=e=>{if(typeof e.vtag=="function"){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),r(e.vtag,t,...e.vchildren||[])}const n=U(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},Jt=(e,n,t,o)=>{var i;const a=A("hydrateClient",n),s=e.shadowRoot,l=[],c=[],d=[],p=s?[]:null,g=U(n,null);g.$elm$=e,Object.entries(((i=o.$cmpMeta$)==null?void 0:i.$members$)||{}).forEach(([_,[D,E]])=>{var Z;if(!(D&31))return;const ft=E||_,En=e.getAttribute(ft);if(En!==null){const yt=_n(En,D);(Z=o==null?void 0:o.$instanceValues$)==null||Z.set(_,yt)}});let m;{const _=o.$cmpMeta$;_&&_.$flags$&10&&e["s-sc"]?(m=e["s-sc"],e.classList.add(m+"-h")):e["s-sc"]&&delete e["s-sc"]}C.document&&(!$.$orgLocNodes$||!$.$orgLocNodes$.size)&&hn(C.document.body,$.$orgLocNodes$=new Map),e[W]=t,e.removeAttribute(W),o.$vnode$=bn(g,l,c,p,e,e,t,d);let k=0;const I=l.length;let w;for(k;k<I;k++){w=l[k];const _=w.$hostId$+"."+w.$nodeId$,D=$.$orgLocNodes$.get(_),E=w.$elm$;s||(E["s-hn"]=n.toUpperCase(),w.$tag$==="slot"&&(E["s-cr"]=e["s-cr"])),w.$tag$==="slot"&&(w.$name$=w.$elm$["s-sn"]||w.$elm$.name||null,w.$children$?(w.$flags$|=2,w.$elm$.childNodes.length||w.$children$.forEach(Z=>{w.$elm$.appendChild(Z.$elm$)})):w.$flags$|=1),D&&D.isConnected&&(s&&D["s-en"]===""&&D.parentNode.insertBefore(E,D.nextSibling),D.parentNode.removeChild(D),s||(E["s-oo"]=parseInt(w.$nodeId$))),$.$orgLocNodes$.delete(_)}const L=[],O=d.length;let X=0,S,q,In,z;for(X;X<O;X++)if(S=d[X],!(!S||!S.length))for(In=S.length,q=0,q;q<In;q++){if(z=S[q],L[z.hostId]||(L[z.hostId]=$.$orgLocNodes$.get(z.hostId)),!L[z.hostId])continue;const _=L[z.hostId];(!_.shadowRoot||!s)&&(z.slot["s-cr"]=_["s-cr"],!z.slot["s-cr"]&&_.shadowRoot?z.slot["s-cr"]=_:z.slot["s-cr"]=(_.__childNodes||_.childNodes)[0],Kt(z.node,z.slot,!1,z.node["s-oo"])),_.shadowRoot&&z.node.parentElement!==_&&_.appendChild(z.node)}if(m&&c.length&&c.forEach(_=>{_.$elm$.parentElement.classList.add(m+"-s")}),s&&!s.childNodes.length){let _=0;const D=p.length;if(D){for(_;_<D;_++)s.appendChild(p[_]);Array.from(e.childNodes).forEach(E=>{typeof E["s-en"]!="string"&&typeof E["s-sn"]!="string"&&(E.nodeType===1&&E.slot&&E.hidden?E.removeAttribute("hidden"):(E.nodeType===8||E.nodeType===3&&!E.wholeText.trim())&&E.parentNode.removeChild(E))})}}$.$orgLocNodes$.delete(e["s-id"]),o.$hostElement$=e,a()},bn=(e,n,t,o,i,a,s,l=[])=>{let c,d,p,g;const b=i["s-sc"];if(a.nodeType===1){if(c=a.getAttribute(Tn),c&&(d=c.split("."),d[0]===s||d[0]==="0")){p=Fn({$flags$:0,$hostId$:d[0],$nodeId$:d[1],$depth$:d[2],$index$:d[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:{class:a.className||""}}),n.push(p),a.removeAttribute(Tn),e.$children$||(e.$children$=[]),b&&(a["s-si"]=b,p.$attrs$.class+=" "+b);const k=p.$elm$.getAttribute("s-sn");typeof k=="string"&&(p.$tag$==="slot-fb"&&(An(k,d[2],p,a,e,n,t,o,l),b&&a.classList.add(b)),p.$elm$["s-sn"]=k,p.$elm$.removeAttribute("s-sn")),p.$index$!==void 0&&(e.$children$[p.$index$]=p),e=p,o&&p.$depth$==="0"&&(o[p.$index$]=p.$elm$)}if(a.shadowRoot)for(g=a.shadowRoot.childNodes.length-1;g>=0;g--)bn(e,n,t,o,i,a.shadowRoot.childNodes[g],s,l);const m=a.__childNodes||a.childNodes;for(g=m.length-1;g>=0;g--)bn(e,n,t,o,i,m[g],s,l)}else if(a.nodeType===8){if(d=a.nodeValue.split("."),d[1]===s||d[1]==="0"){if(c=d[0],p=Fn({$hostId$:d[1],$nodeId$:d[2],$depth$:d[3],$index$:d[4]||"0",$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),c===zt)p.$elm$=Pn(a,3),p.$elm$&&p.$elm$.nodeType===3&&(p.$text$=p.$elm$.textContent,n.push(p),a.remove(),s===p.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[p.$index$]=p),o&&p.$depth$==="0"&&(o[p.$index$]=p.$elm$));else if(c===Tt)p.$elm$=Pn(a,8),p.$elm$&&p.$elm$.nodeType===8&&(n.push(p),a.remove());else if(p.$hostId$===s)if(c===Et){const m=a["s-sn"]=d[5]||"";An(m,d[2],p,a,e,n,t,o,l)}else c===St&&(o?a.remove():(i["s-cr"]=a,a["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const m=U(null,a.textContent);m.$elm$=a,m.$index$="0",e.$children$=[m]}else a.nodeType===3&&!a.wholeText.trim()&&a.remove();return e},hn=(e,n)=>{if(e.nodeType===1){const t=e[W]||e.getAttribute(W);t&&n.set(t,e);let o=0;if(e.shadowRoot)for(;o<e.shadowRoot.childNodes.length;o++)hn(e.shadowRoot.childNodes[o],n);const i=e.__childNodes||e.childNodes;for(o=0;o<i.length;o++)hn(i[o],n)}else if(e.nodeType===8){const t=e.nodeValue.split(".");t[0]===It&&(n.set(t[1]+"."+t[2],e),e.nodeValue="",e["s-en"]=t[3])}},Fn=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function An(e,n,t,o,i,a,s,l,c){o["s-sr"]=!0,t.$name$=e||null,t.$tag$="slot";const d=i!=null&&i.$elm$?i.$elm$["s-id"]||i.$elm$.getAttribute("s-id"):"";if(l&&C.document){const p=t.$elm$=C.document.createElement(t.$tag$);t.$name$&&t.$elm$.setAttribute("name",e),d&&d!==t.$hostId$?i.$elm$.insertBefore(p,i.$elm$.children[0]):o.parentNode.insertBefore(p,o),Mn(c,n,e,o,t.$hostId$),o.remove(),t.$depth$==="0"&&(l[t.$index$]=t.$elm$)}else{const p=t.$elm$,g=d&&d!==t.$hostId$&&i.$elm$.shadowRoot;Mn(c,n,e,o,g?d:t.$hostId$),Jn(o),g&&i.$elm$.insertBefore(p,i.$elm$.children[0])}a.push(t),s.push(t),i.$children$||(i.$children$=[]),i.$children$[t.$index$]=t}var Mn=(e,n,t,o,i)=>{let a=o.nextSibling;for(e[n]=e[n]||[];a&&((a.getAttribute&&a.getAttribute("slot")||a["s-sn"])===t||t===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3));)a["s-sn"]=t,e[n].push({slot:o,node:a,hostId:i}),a=a.nextSibling},Pn=(e,n)=>{let t=e;do t=t.nextSibling;while(t&&(t.nodeType!==n||!t.nodeValue));return t},wn=e=>{const n=Pt(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};wn("::slotted");wn(":host");wn(":host-context");var _n=(e,n,t)=>{if(typeof e=="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")))try{return e=JSON.parse(e),e}catch{}return typeof e=="string"&&e.startsWith(cn)?(e=qt(e),e):e!=null&&!vn(e)?n&4?e==="false"?!1:e===""||!!e:n&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:n&1?String(e):e:e},Nt=e=>e,x=(e,n,t)=>{const o=Nt(e);return{emit:i=>Nn(o,n,{bubbles:!0,composed:!0,cancelable:!0,detail:i})}},Nn=(e,n,t)=>{const o=$.ce(n,t);return e.dispatchEvent(o),o},H=new WeakMap,ne=(e,n,t)=>{let o=nn.get(e);yn&&t?(o=o||new CSSStyleSheet,typeof o=="string"?o=n:o.replaceSync(n)):o=n,nn.set(e,o)},ee=(e,n,t)=>{var o;const i=Cn(n),a=nn.get(i);if(!C.document)return i;if(e=e.nodeType===11?e:C.document,a)if(typeof a=="string"){e=e.head||e;let s=H.get(e),l;if(s||H.set(e,s=new Set),!s.has(i)){if(e.host&&(l=e.querySelector(`[${pn}="${i}"]`)))l.innerHTML=a;else{l=C.document.createElement("style"),l.innerHTML=a;const c=(o=$.$nonce$)!=null?o:Mt(C.document);if(c!=null&&l.setAttribute("nonce",c),!(n.$flags$&1))if(e.nodeName==="HEAD"){const d=e.querySelectorAll("link[rel=preconnect]"),p=d.length>0?d[d.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(p==null?void 0:p.parentNode)===e?p:null)}else if("host"in e)if(yn){const d=new CSSStyleSheet;d.replaceSync(a),e.adoptedStyleSheets=[d,...e.adoptedStyleSheets]}else{const d=e.querySelector("style");d?d.innerHTML=a+d.innerHTML:e.prepend(l)}else e.append(l);n.$flags$&1&&e.insertBefore(l,null)}n.$flags$&4&&(l.innerHTML+=Dt),s&&s.add(i)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return i},nr=e=>{const n=e.$cmpMeta$,t=e.$hostElement$,o=n.$flags$,i=A("attachStyles",n.$tagName$),a=ee(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);o&10&&(t["s-sc"]=a,t.classList.add(a+"-h")),i()},Cn=(e,n)=>"sc-"+e.$tagName$,er=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),tr=()=>{if(!C.document)return;const e=C.document.querySelectorAll(`[${pn}]`);let n=0;for(;n<e.length;n++)ne(e[n].getAttribute(pn),er(e[n].innerHTML),!0)},On=(e,n,t,o,i,a,s)=>{if(t===o)return;let l=zn(e,n),c=n.toLowerCase();if(n==="class"){const d=e.classList,p=jn(t);let g=jn(o);e["s-si"]&&s?(g.push(e["s-si"]),p.forEach(b=>{b.startsWith(e["s-si"])&&g.push(b)}),g=[...new Set(g)],d.add(...g)):(d.remove(...p.filter(b=>b&&!g.includes(b))),d.add(...g.filter(b=>b&&!p.includes(b))))}else if(n==="style"){for(const d in t)(!o||o[d]==null)&&(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(const d in o)(!t||o[d]!==t[d])&&(d.includes("-")?e.style.setProperty(d,o[d]):e.style[d]=o[d])}else if(n!=="key")if(n==="ref")o&&o(e);else if(!e.__lookupSetter__(n)&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"?n=n.slice(3):zn(C,c)?n=c.slice(2):n=c[2]+n.slice(3),t||o){const d=n.endsWith(te);n=n.replace(or,""),t&&$.rel(e,n,t,d),o&&$.ael(e,n,o,d)}}else{const d=vn(o);if((l||d&&o!==null)&&!i)try{if(e.tagName.includes("-"))e[n]!==o&&(e[n]=o);else{const p=o??"";n==="list"?l=!1:(t==null||e[n]!=p)&&(typeof e.__lookupSetter__(n)=="function"?e[n]=p:e.setAttribute(n,p))}}catch{}o==null||o===!1?(o!==!1||e.getAttribute(n)==="")&&e.removeAttribute(n):(!l||a&4||i)&&!d&&e.nodeType===1&&(o=o===!0?"":o,e.setAttribute(n,o))}},rr=/\s/,jn=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(rr)),te="Capture",or=new RegExp(te+"$"),un=(e,n,t,o)=>{const i=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,a=e&&e.$attrs$||{},s=n.$attrs$||{};for(const l of Hn(Object.keys(a)))l in s||On(i,l,a[l],void 0,t,n.$flags$,o);for(const l of Hn(Object.keys(s)))On(i,l,a[l],s[l],t,n.$flags$,o)};function Hn(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var N,tn,ln,fn=!1,rn=!1,$n=!1,T=!1,on=(e,n,t)=>{var o;const i=n.$children$[t];let a=0,s,l,c;if(fn||($n=!0,i.$tag$==="slot"&&(i.$flags$|=i.$children$?2:1)),i.$text$!==null)s=i.$elm$=C.document.createTextNode(i.$text$);else if(i.$flags$&1)s=i.$elm$=C.document.createTextNode(""),un(null,i,T);else{if(T||(T=i.$tag$==="svg"),!C.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=i.$elm$=C.document.createElementNS(T?_t:Ct,!fn&&K.slotRelocation&&i.$flags$&2?"slot-fb":i.$tag$),T&&i.$tag$==="foreignObject"&&(T=!1),un(null,i,T),At(N)&&s["s-si"]!==N&&s.classList.add(s["s-si"]=N),i.$children$)for(a=0;a<i.$children$.length;++a)l=on(e,i,a),l&&s.appendChild(l);i.$tag$==="svg"?T=!1:s.tagName==="foreignObject"&&(T=!0)}return s["s-hn"]=ln,i.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=tn,s["s-sn"]=i.$name$||"",s["s-rf"]=(o=i.$attrs$)==null?void 0:o.ref,Jn(s),c=e&&e.$children$&&e.$children$[t],c&&c.$tag$===i.$tag$&&e.$elm$&&Y(e.$elm$,!1),le(tn,s,n.$elm$,e==null?void 0:e.$elm$)),s},Y=(e,n)=>{$.$flags$|=1;const t=Array.from(e.__childNodes||e.childNodes);for(let o=t.length-1;o>=0;o--){const i=t[o];i["s-hn"]!==ln&&i["s-ol"]&&(F(Q(i).parentNode,i,Q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,$n=!0),n&&Y(i,n)}$.$flags$&=-2},re=(e,n,t,o,i,a)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,l;for(s.shadowRoot&&s.tagName===ln&&(s=s.shadowRoot);i<=a;++i)o[i]&&(l=on(null,t,i),l&&(o[i].$elm$=l,F(s,l,Q(n))))},oe=(e,n,t)=>{for(let o=n;o<=t;++o){const i=e[o];if(i){const a=i.$elm$;ae(i),a&&(rn=!0,a["s-ol"]?a["s-ol"].remove():Y(a,!0),a.remove())}}},ir=(e,n,t,o,i=!1)=>{let a=0,s=0,l=0,c=0,d=n.length-1,p=n[0],g=n[d],b=o.length-1,m=o[0],k=o[b],I,w;for(;a<=d&&s<=b;)if(p==null)p=n[++a];else if(g==null)g=n[--d];else if(m==null)m=o[++s];else if(k==null)k=o[--b];else if(J(p,m,i))j(p,m,i),p=n[++a],m=o[++s];else if(J(g,k,i))j(g,k,i),g=n[--d],k=o[--b];else if(J(p,k,i))(p.$tag$==="slot"||k.$tag$==="slot")&&Y(p.$elm$.parentNode,!1),j(p,k,i),F(e,p.$elm$,g.$elm$.nextSibling),p=n[++a],k=o[--b];else if(J(g,m,i))(p.$tag$==="slot"||k.$tag$==="slot")&&Y(g.$elm$.parentNode,!1),j(g,m,i),F(e,g.$elm$,p.$elm$),g=n[--d],m=o[++s];else{for(l=-1,c=a;c<=d;++c)if(n[c]&&n[c].$key$!==null&&n[c].$key$===m.$key$){l=c;break}l>=0?(w=n[l],w.$tag$!==m.$tag$?I=on(n&&n[s],t,l):(j(w,m,i),n[l]=void 0,I=w.$elm$),m=o[++s]):(I=on(n&&n[s],t,s),m=o[++s]),I&&F(Q(p.$elm$).parentNode,I,Q(p.$elm$))}a>d?re(e,o[b+1]==null?null:o[b+1].$elm$,t,o,s,b):s>b&&oe(n,a,d)},J=(e,n,t=!1)=>e.$tag$===n.$tag$?e.$tag$==="slot"?e.$name$===n.$name$:t?(t&&!e.$key$&&n.$key$&&(e.$key$=n.$key$),!0):e.$key$===n.$key$:!1,Q=e=>e&&e["s-ol"]||e,j=(e,n,t=!1)=>{const o=n.$elm$=e.$elm$,i=e.$children$,a=n.$children$,s=n.$tag$,l=n.$text$;let c;l===null?(T=s==="svg"?!0:s==="foreignObject"?!1:T,un(e,n,T,t),i!==null&&a!==null?ir(o,i,n,a,t):a!==null?(e.$text$!==null&&(o.textContent=""),re(o,null,n,a,0,a.length-1)):!t&&K.updatable&&i!==null&&oe(i,0,i.length-1),T&&s==="svg"&&(T=!1)):(c=o["s-cr"])?c.parentNode.textContent=l:e.$text$!==l&&(o.data=l)},B=[],ie=e=>{let n,t,o;const i=e.__childNodes||e.childNodes;for(const a of i){if(a["s-sr"]&&(n=a["s-cr"])&&n.parentNode){t=n.parentNode.__childNodes||n.parentNode.childNodes;const s=a["s-sn"];for(o=t.length-1;o>=0;o--)if(n=t[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==a["s-hn"])if(Ln(n,s)){let l=B.find(c=>c.$nodeToRelocate$===n);rn=!0,n["s-sn"]=n["s-sn"]||s,l?(l.$nodeToRelocate$["s-sh"]=a["s-hn"],l.$slotRefNode$=a):(n["s-sh"]=a["s-hn"],B.push({$slotRefNode$:a,$nodeToRelocate$:n})),n["s-sr"]&&B.map(c=>{Ln(c.$nodeToRelocate$,n["s-sn"])&&(l=B.find(d=>d.$nodeToRelocate$===n),l&&!c.$slotRefNode$&&(c.$slotRefNode$=l.$slotRefNode$))})}else B.some(l=>l.$nodeToRelocate$===n)||B.push({$nodeToRelocate$:n})}a.nodeType===1&&ie(a)}},ae=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ae)},F=(e,n,t)=>(typeof n["s-sn"]=="string"&&n["s-sr"]&&n["s-cr"]&&le(n["s-cr"],n,e,n.parentElement),e==null?void 0:e.insertBefore(n,t));function le(e,n,t,o){var i,a;let s;if(e&&typeof n["s-sn"]=="string"&&n["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(s=n["s-si"]||e.parentNode["s-sc"])){const l=n["s-sn"],c=n["s-hn"];if((i=t.classList)==null||i.add(s+"-s"),o&&((a=o.classList)!=null&&a.contains(s+"-s"))){let d=(o.__childNodes||o.childNodes)[0],p=!1;for(;d;){if(d["s-sn"]!==l&&d["s-hn"]===c&&d["s-sr"]){p=!0;break}d=d.nextSibling}p||o.classList.remove(s+"-s")}}}var ar=(e,n,t=!1)=>{var o,i,a,s;const l=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||U(null,null),g=Vt(n)?n:r(null,null,n);if(ln=l.tagName,t&&g.$attrs$)for(const b of Object.keys(g.$attrs$))l.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(g.$attrs$[b]=l[b]);g.$tag$=null,g.$flags$|=4,e.$vnode$=g,g.$elm$=d.$elm$=l.shadowRoot||l,N=l["s-sc"],fn=!!(c.$flags$&1)&&!(c.$flags$&128),tn=l["s-cr"],rn=!1,j(d,g,t);{if($.$flags$|=1,$n){ie(g.$elm$);for(const b of B){const m=b.$nodeToRelocate$;if(!m["s-ol"]&&C.document){const k=C.document.createTextNode("");k["s-nr"]=m,F(m.parentNode,m["s-ol"]=k,m)}}for(const b of B){const m=b.$nodeToRelocate$,k=b.$slotRefNode$;if(k){const I=k.parentNode;let w=k.nextSibling;{let X=(o=m["s-ol"])==null?void 0:o.previousSibling;for(;X;){let S=(i=X["s-nr"])!=null?i:null;if(S&&S["s-sn"]===m["s-sn"]&&I===(S.__parentNode||S.parentNode)){for(S=S.nextSibling;S===m||S!=null&&S["s-sr"];)S=S==null?void 0:S.nextSibling;if(!S||!S["s-nr"]){w=S;break}}X=X.previousSibling}}const L=m.__parentNode||m.parentNode,O=m.__nextSibling||m.nextSibling;(!w&&I!==L||O!==w)&&m!==w&&(!m["s-hn"]&&m["s-ol"]&&(m["s-hn"]=m["s-ol"].parentNode.nodeName),F(I,m,w),m.nodeType===1&&m.tagName!=="SLOT-FB"&&(m.hidden=(a=m["s-ih"])!=null?a:!1)),m&&typeof k["s-rf"]=="function"&&k["s-rf"](k)}else m.nodeType===1&&(t&&(m["s-ih"]=(s=m.hidden)!=null?s:!1),m.hidden=!0)}}rn&&Gn(g.$elm$),$.$flags$&=-2,B.length=0}tn=void 0},se=(e,n)=>{if(n&&!e.$onRenderResolve$&&n["s-p"]){const t=n["s-p"].push(new Promise(o=>e.$onRenderResolve$=()=>{n["s-p"].splice(t-1,1),o()}))}},Sn=(e,n)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return se(e,e.$ancestorComponent$),Ft(()=>lr(e,n))},lr=(e,n)=>{const t=e.$hostElement$,o=A("scheduleUpdate",e.$cmpMeta$.$tagName$),i=t;if(!i)throw new Error(`Can't render component <${t.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return n?a=R(i,"componentWillLoad",void 0,t):a=R(i,"componentWillUpdate",void 0,t),a=Rn(a,()=>R(i,"componentWillRender",void 0,t)),o(),Rn(a,()=>dr(e,i,n))},Rn=(e,n)=>sr(e)?e.then(n).catch(t=>{console.error(t),n()}):n(),sr=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",dr=async(e,n,t)=>{var o;const i=e.$hostElement$,a=A("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];t&&nr(e);const l=A("render",e.$cmpMeta$.$tagName$);cr(e,n,i,t),s&&(s.map(c=>c()),i["s-rc"]=void 0),l(),a();{const c=(o=i["s-p"])!=null?o:[],d=()=>pr(e);c.length===0?d():(Promise.all(c).then(d),e.$flags$|=4,c.length=0)}},cr=(e,n,t,o)=>{try{n=n.render(),e.$flags$&=-17,e.$flags$|=2,ar(e,n,o)}catch(i){V(i,e.$hostElement$)}return null},pr=e=>{const n=e.$cmpMeta$.$tagName$,t=e.$hostElement$,o=A("postUpdate",n),i=t,a=e.$ancestorComponent$;R(i,"componentDidRender",void 0,t),e.$flags$&64?(R(i,"componentDidUpdate",void 0,t),o()):(e.$flags$|=64,xr(t),R(i,"componentDidLoad",void 0,t),o(),e.$onReadyResolve$(t),a||gr()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&an(()=>Sn(e,!1)),e.$flags$&=-517},gr=e=>{an(()=>Nn(C,"appload",{detail:{namespace:vt}}))},R=(e,n,t,o)=>{if(e&&e[n])try{return e[n](t)}catch(i){V(i,o)}},xr=e=>{var n;return e.setAttribute((n=K.hydratedSelectorName)!=null?n:"hydrated","")},mr=(e,n)=>P(e).$instanceValues$.get(n),Un=(e,n,t,o)=>{const i=P(e),a=e,s=i.$instanceValues$.get(n),l=i.$flags$,c=a;t=_n(t,o.$members$[n][0]);const d=Number.isNaN(s)&&Number.isNaN(t);if(t!==s&&!d){i.$instanceValues$.set(n,t);{if(o.$watchers$&&l&128){const g=o.$watchers$[n];g&&g.map(b=>{try{c[b](t,s,n)}catch(m){V(m,a)}})}if((l&18)===2){if(c.componentShouldUpdate&&c.componentShouldUpdate(t,s,n)===!1)return;Sn(i,!1)}}}},br=(e,n,t)=>{var o,i;const a=e.prototype;if(n.$members$||n.$watchers$||e.watchers){e.watchers&&!n.$watchers$&&(n.$watchers$=e.watchers);const s=Object.entries((o=n.$members$)!=null?o:{});s.map(([l,[c]])=>{if(c&31||c&32){const{get:d,set:p}=Object.getOwnPropertyDescriptor(a,l)||{};d&&(n.$members$[l][0]|=2048),p&&(n.$members$[l][0]|=4096),Object.defineProperty(a,l,{get(){return d?d.apply(this):mr(this,l)},configurable:!0,enumerable:!0}),Object.defineProperty(a,l,{set(g){const b=P(this);if(p){const m=c&32?this[l]:b.$hostElement$[l];typeof m>"u"&&b.$instanceValues$.get(l)?g=b.$instanceValues$.get(l):!b.$instanceValues$.get(l)&&m&&b.$instanceValues$.set(l,m),p.apply(this,[_n(g,c)]),g=c&32?this[l]:b.$hostElement$[l],Un(this,l,g,n);return}{Un(this,l,g,n);return}}})}});{const l=new Map;a.attributeChangedCallback=function(c,d,p){$.jmp(()=>{var g;const b=l.get(c);if(!(this.hasOwnProperty(b)&&K.lazyLoad)){if(a.hasOwnProperty(b)&&typeof this[b]=="number"&&this[b]==p)return;if(b==null){const k=P(this),I=k==null?void 0:k.$flags$;if(I&&!(I&8)&&I&128&&p!==d){const L=this,O=(g=n.$watchers$)==null?void 0:g[c];O==null||O.forEach(X=>{L[X]!=null&&L[X].call(L,p,d,c)})}return}}const m=Object.getOwnPropertyDescriptor(a,b);p=p===null&&typeof this[b]=="boolean"?!1:p,p!==this[b]&&(!m.get||m.set)&&(this[b]=p)})},e.observedAttributes=Array.from(new Set([...Object.keys((i=n.$watchers$)!=null?i:{}),...s.filter(([c,d])=>d[0]&15).map(([c,d])=>{const p=d[1]||c;return l.set(p,c),p})]))}}return e},qn=async(e,n,t,o)=>{let i;if(!(n.$flags$&32)){n.$flags$|=32;{i=e.constructor;const l=e.localName;customElements.whenDefined(l).then(()=>n.$flags$|=128)}if(i&&i.style){let l;typeof i.style=="string"&&(l=i.style);const c=Cn(t);if(!nn.has(c)){const d=A("registerStyles",t.$tagName$);ne(c,l,!!(t.$flags$&1)),d()}}}const a=n.$ancestorComponent$,s=()=>Sn(n,!0);a&&a["s-rc"]?a["s-rc"].push(s):s()},hr=(e,n)=>{},ur=e=>{if(!($.$flags$&1)){const n=P(e),t=n.$cmpMeta$,o=A("connectedCallback",t.$tagName$);if(n.$flags$&1)de(e,n,t.$listeners$),n!=null&&n.$lazyInstance$||n!=null&&n.$onReadyPromise$&&n.$onReadyPromise$.then(()=>hr());else{n.$flags$|=1;let i;if(i=e.getAttribute(W),i){if(t.$flags$&1){const a=ee(e.shadowRoot,t);e.classList.remove(a+"-h",a+"-s")}else if(t.$flags$&2){const a=Cn(t);e["s-sc"]=a}Jt(e,t.$tagName$,i,n)}i||t.$flags$&12&&fr(e);{let a=e;for(;a=a.parentNode||a.host;)if(a.nodeType===1&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){se(n,n.$ancestorComponent$=a);break}}t.$members$&&Object.entries(t.$members$).map(([a,[s]])=>{if(s&31&&e.hasOwnProperty(a)){const l=e[a];delete e[a],e[a]=l}}),K.initializeNextTick?an(()=>qn(e,n,t)):qn(e,n,t)}o()}},fr=e=>{if(!C.document)return;const n=e["s-cr"]=C.document.createComment("");n["s-cn"]=!0,F(e,n,e.firstChild)},yr=async e=>{if(!($.$flags$&1)){const n=P(e);n.$rmListeners$&&(n.$rmListeners$.map(t=>t()),n.$rmListeners$=void 0)}H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)},v=(e,n)=>{const t={$flags$:n[0],$tagName$:n[1]};t.$members$=n[2],t.$listeners$=n[3],t.$watchers$=e.$watchers$,tr();const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){$t(this,t)},connectedCallback(){if(!this.__hasHostListenerAttached){const a=P(this);de(this,a,t.$listeners$),this.__hasHostListenerAttached=!0}ur(this),o&&o.call(this)},disconnectedCallback(){yr(this),i&&i.call(this)},__attachShadow(){if(!this.shadowRoot)Wt.call(this,t);else if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${t.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}),e.is=t.$tagName$,br(e,t)},de=(e,n,t,o)=>{t&&C.document&&t.map(([i,a,s])=>{const l=kr(C.document,e,i),c=vr(n,s),d=wr(i);$.ael(l,a,c,d),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>$.rel(l,a,c,d))})},vr=(e,n)=>t=>{try{e.$hostElement$[n](t)}catch(o){V(o,e.$hostElement$)}},kr=(e,n,t)=>t&4?e:n,wr=e=>Xt?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;const _r=`*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb;}::before,::after{--tw-content:''}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Montserrat, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;}body{margin:0;line-height:inherit;}hr{height:0;color:inherit;border-top-width:1px;}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse;}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0;}button,select{text-transform:none}button,input:where([type='button']),input:where([type='reset']),input:where([type='submit']){-webkit-appearance:button;background-color:transparent;background-image:none;}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af;}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af;}button,[role="button"]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden="until-found"])){display:none}html[data-theme='office']{--color-primary:rgb(219, 59, 3);--color-secondary:rgb(0, 119, 107);--color-buttons:#89da59;--color-typography:#ff320e}html{--color-primary:#db3b03;--color-secondary:rgb(0, 119, 107);--color-buttons:#fbbc05;--color-typography:#ea4335}:root{--color-primary:#db3b03;--color-secondary:rgb(0, 119, 107);--color-tertiary:rgb(128, 104, 186);--color-white:white;--color-emphasis:rgb(8, 8, 9);--color-supergiant:rgb(213, 66, 99);--color-orange:rgb(250, 200, 127);--color-buttons:#fbbc05;--color-typography:#ea4335;--background:20 66% 99%;--foreground:20 51% 4%;--muted:20 25% 86%;--muted-foreground:20 7% 25%;--popover:20 66% 98%;--popover-foreground:20 51% 3%;--card:20 66% 98%;--card-foreground:20 51% 3%;--border:20 15% 94%;--input:20 15% 94%;--primary:20 48% 72%;--primary-foreground:20 48% 12%;--secondary:20 12% 92%;--secondary-foreground:20 12% 32%;--accent:20 12% 92%;--accent-foreground:20 12% 32%;--destructive:11 80% 22%;--destructive-foreground:11 80% 82%;--ring:20 48% 72%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:253 43% 3%;--foreground:253 31% 98%;--muted:253 7% 13%;--muted-foreground:253 13% 63%;--popover:253 43% 3%;--popover-foreground:253 31% 98%;--card:253 43% 4%;--card-foreground:253 31% 99%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--primary:253 91% 58%;--primary-foreground:253 91% 98%;--secondary:253 7% 9%;--secondary-foreground:253 7% 69%;--accent:253 13% 14%;--accent-foreground:253 13% 74%;--destructive:339.2 90.36% 51.18%;--destructive-foreground:0 0% 100%;--ring:253 91% 58%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{box-sizing:border-box;background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:0.25rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-16{width:1rem;height:1rem}.h-3{height:0.75rem}.h-4{height:0.25rem}.w-3{width:0.75rem}.w-4{width:0.25rem}.w-full{width:100%}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-xl{max-width:36rem}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:0.25rem}.gap-2{gap:0.5rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.gap-y-12{row-gap:0.75rem}.overflow-x-auto{overflow-x:auto}.text-pretty{text-wrap:pretty}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity:1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-6{padding:1.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.py-1\\.5{padding-top:0.375rem;padding-bottom:0.375rem}.py-24{padding-top:1.5rem;padding-bottom:1.5rem}.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Montserrat, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base\\/7{font-size:1rem;line-height:1.75rem}.text-lg\\/8{font-size:1.125rem;line-height:2rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-sm\\/6{font-size:0.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-0.025em}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-primary{color:var(--color-primary)}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.theme-office{--color-black:#000000;--color-white:#ffffff;--color-primary:#db3b03;--color-secondary:#ec7702;--color-buttons:#89da59;--color-typography:#ff320e}.theme-pg{--color-primary:#00776b;--color-secondary:#01a39d;--color-buttons:#89da59;--color-typography:#ff320e}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-teal-50:hover{--tw-bg-opacity:1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.hover\\:bg-teal-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.hover\\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:text-teal-800:hover{--tw-text-opacity:1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.focus\\:border-teal-500:focus{--tw-border-opacity:1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.focus\\:ring-teal-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 184 166 / var(--tw-ring-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:0.5}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.sm\\:gap-y-16{row-gap:1rem}.sm\\:py-32{padding-top:2rem;padding-bottom:2rem}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:0.5rem;padding-right:0.5rem}}@media (min-width: 1280px){.xl\\:col-span-2{grid-column:span 2 / span 2}.xl\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}`,Cr=`@tailwind base;
5
+ `);const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:Yt(l.childNodes)).forEach(c=>{a===kn(c)&&i.push(c)}),t?i.filter(c=>c.nodeType===1):i}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function en(e,n){if("__"+n in e){const t=e["__"+n];return typeof t!="function"?t:t.bind(e)}else return typeof e[n]!="function"?e[n]:e[n].bind(e)}var B=(e,n="")=>()=>{},r=(e,n,...t)=>{let o=null,i=null,a=null,l=!1,s=!1;const c=[],d=g=>{for(let x=0;x<g.length;x++)o=g[x],Array.isArray(o)?d(o):o!=null&&typeof o!="boolean"&&((l=typeof e!="function"&&!vn(o))&&(o=String(o)),l&&s?c[c.length-1].$text$+=o:c.push(l?q(null,o):o),s=l)};if(d(t),n){n.key&&(i=n.key),n.name&&(a=n.name);{const g=n.className||n.class;g&&(n.class=typeof g!="object"?g:Object.keys(g).filter(x=>g[x]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,c,Zt);const p=q(e,null);return p.$attrs$=n,c.length>0&&(p.$children$=c),p.$key$=i,p.$name$=a,p},q=(e,n)=>{const t={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return t.$attrs$=null,t.$key$=null,t.$name$=null,t},b={},Gt=e=>e&&e.$tag$===b,Zt={forEach:(e,n)=>e.map(Xn).forEach(n),map:(e,n)=>e.map(Xn).map(n).map(Jt)},Xn=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Jt=e=>{if(typeof e.vtag=="function"){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),r(e.vtag,t,...e.vchildren||[])}const n=q(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},Nt=(e,n,t,o)=>{var i;const a=B("hydrateClient",n),l=e.shadowRoot,s=[],c=[],d=[],p=l?[]:null,g=q(n,null);g.$elm$=e,Object.entries(((i=o.$cmpMeta$)==null?void 0:i.$members$)||{}).forEach(([_,[D,E]])=>{var Z;if(!(D&31))return;const yt=E||_,En=e.getAttribute(yt);if(En!==null){const vt=_n(En,D);(Z=o==null?void 0:o.$instanceValues$)==null||Z.set(_,vt)}});let h;{const _=o.$cmpMeta$;_&&_.$flags$&10&&e["s-sc"]?(h=e["s-sc"],e.classList.add(h+"-h")):e["s-sc"]&&delete e["s-sc"]}C.document&&(!$.$orgLocNodes$||!$.$orgLocNodes$.size)&&bn(C.document.body,$.$orgLocNodes$=new Map),e[W]=t,e.removeAttribute(W),o.$vnode$=hn(g,s,c,p,e,e,t,d);let k=0;const S=s.length;let w;for(k;k<S;k++){w=s[k];const _=w.$hostId$+"."+w.$nodeId$,D=$.$orgLocNodes$.get(_),E=w.$elm$;l||(E["s-hn"]=n.toUpperCase(),w.$tag$==="slot"&&(E["s-cr"]=e["s-cr"])),w.$tag$==="slot"&&(w.$name$=w.$elm$["s-sn"]||w.$elm$.name||null,w.$children$?(w.$flags$|=2,w.$elm$.childNodes.length||w.$children$.forEach(Z=>{w.$elm$.appendChild(Z.$elm$)})):w.$flags$|=1),D&&D.isConnected&&(l&&D["s-en"]===""&&D.parentNode.insertBefore(E,D.nextSibling),D.parentNode.removeChild(D),l||(E["s-oo"]=parseInt(w.$nodeId$))),$.$orgLocNodes$.delete(_)}const F=[],O=d.length;let L=0,I,U,Sn,z;for(L;L<O;L++)if(I=d[L],!(!I||!I.length))for(Sn=I.length,U=0,U;U<Sn;U++){if(z=I[U],F[z.hostId]||(F[z.hostId]=$.$orgLocNodes$.get(z.hostId)),!F[z.hostId])continue;const _=F[z.hostId];(!_.shadowRoot||!l)&&(z.slot["s-cr"]=_["s-cr"],!z.slot["s-cr"]&&_.shadowRoot?z.slot["s-cr"]=_:z.slot["s-cr"]=(_.__childNodes||_.childNodes)[0],Qt(z.node,z.slot,!1,z.node["s-oo"])),_.shadowRoot&&z.node.parentElement!==_&&_.appendChild(z.node)}if(h&&c.length&&c.forEach(_=>{_.$elm$.parentElement.classList.add(h+"-s")}),l&&!l.childNodes.length){let _=0;const D=p.length;if(D){for(_;_<D;_++)l.appendChild(p[_]);Array.from(e.childNodes).forEach(E=>{typeof E["s-en"]!="string"&&typeof E["s-sn"]!="string"&&(E.nodeType===1&&E.slot&&E.hidden?E.removeAttribute("hidden"):(E.nodeType===8||E.nodeType===3&&!E.wholeText.trim())&&E.parentNode.removeChild(E))})}}$.$orgLocNodes$.delete(e["s-id"]),o.$hostElement$=e,a()},hn=(e,n,t,o,i,a,l,s=[])=>{let c,d,p,g;const x=i["s-sc"];if(a.nodeType===1){if(c=a.getAttribute(Tn),c&&(d=c.split("."),d[0]===l||d[0]==="0")){p=An({$flags$:0,$hostId$:d[0],$nodeId$:d[1],$depth$:d[2],$index$:d[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:{class:a.className||""}}),n.push(p),a.removeAttribute(Tn),e.$children$||(e.$children$=[]),x&&(a["s-si"]=x,p.$attrs$.class+=" "+x);const k=p.$elm$.getAttribute("s-sn");typeof k=="string"&&(p.$tag$==="slot-fb"&&(Bn(k,d[2],p,a,e,n,t,o,s),x&&a.classList.add(x)),p.$elm$["s-sn"]=k,p.$elm$.removeAttribute("s-sn")),p.$index$!==void 0&&(e.$children$[p.$index$]=p),e=p,o&&p.$depth$==="0"&&(o[p.$index$]=p.$elm$)}if(a.shadowRoot)for(g=a.shadowRoot.childNodes.length-1;g>=0;g--)hn(e,n,t,o,i,a.shadowRoot.childNodes[g],l,s);const h=a.__childNodes||a.childNodes;for(g=h.length-1;g>=0;g--)hn(e,n,t,o,i,h[g],l,s)}else if(a.nodeType===8){if(d=a.nodeValue.split("."),d[1]===l||d[1]==="0"){if(c=d[0],p=An({$hostId$:d[1],$nodeId$:d[2],$depth$:d[3],$index$:d[4]||"0",$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),c===Tt)p.$elm$=Pn(a,3),p.$elm$&&p.$elm$.nodeType===3&&(p.$text$=p.$elm$.textContent,n.push(p),a.remove(),l===p.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[p.$index$]=p),o&&p.$depth$==="0"&&(o[p.$index$]=p.$elm$));else if(c===Dt)p.$elm$=Pn(a,8),p.$elm$&&p.$elm$.nodeType===8&&(n.push(p),a.remove());else if(p.$hostId$===l)if(c===zt){const h=a["s-sn"]=d[5]||"";Bn(h,d[2],p,a,e,n,t,o,s)}else c===St&&(o?a.remove():(i["s-cr"]=a,a["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const h=q(null,a.textContent);h.$elm$=a,h.$index$="0",e.$children$=[h]}else a.nodeType===3&&!a.wholeText.trim()&&a.remove();return e},bn=(e,n)=>{if(e.nodeType===1){const t=e[W]||e.getAttribute(W);t&&n.set(t,e);let o=0;if(e.shadowRoot)for(;o<e.shadowRoot.childNodes.length;o++)bn(e.shadowRoot.childNodes[o],n);const i=e.__childNodes||e.childNodes;for(o=0;o<i.length;o++)bn(i[o],n)}else if(e.nodeType===8){const t=e.nodeValue.split(".");t[0]===Et&&(n.set(t[1]+"."+t[2],e),e.nodeValue="",e["s-en"]=t[3])}},An=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function Bn(e,n,t,o,i,a,l,s,c){o["s-sr"]=!0,t.$name$=e||null,t.$tag$="slot";const d=i!=null&&i.$elm$?i.$elm$["s-id"]||i.$elm$.getAttribute("s-id"):"";if(s&&C.document){const p=t.$elm$=C.document.createElement(t.$tag$);t.$name$&&t.$elm$.setAttribute("name",e),d&&d!==t.$hostId$?i.$elm$.insertBefore(p,i.$elm$.children[0]):o.parentNode.insertBefore(p,o),Mn(c,n,e,o,t.$hostId$),o.remove(),t.$depth$==="0"&&(s[t.$index$]=t.$elm$)}else{const p=t.$elm$,g=d&&d!==t.$hostId$&&i.$elm$.shadowRoot;Mn(c,n,e,o,g?d:t.$hostId$),Jn(o),g&&i.$elm$.insertBefore(p,i.$elm$.children[0])}a.push(t),l.push(t),i.$children$||(i.$children$=[]),i.$children$[t.$index$]=t}var Mn=(e,n,t,o,i)=>{let a=o.nextSibling;for(e[n]=e[n]||[];a&&((a.getAttribute&&a.getAttribute("slot")||a["s-sn"])===t||t===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3));)a["s-sn"]=t,e[n].push({slot:o,node:a,hostId:i}),a=a.nextSibling},Pn=(e,n)=>{let t=e;do t=t.nextSibling;while(t&&(t.nodeType!==n||!t.nodeValue));return t},wn=e=>{const n=Ot(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};wn("::slotted");wn(":host");wn(":host-context");var _n=(e,n,t)=>{if(typeof e=="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")))try{return e=JSON.parse(e),e}catch{}return typeof e=="string"&&e.startsWith(cn)?(e=Wt(e),e):e!=null&&!vn(e)?n&4?e==="false"?!1:e===""||!!e:n&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:n&1?String(e):e:e},nr=e=>e,m=(e,n,t)=>{const o=nr(e);return{emit:i=>Nn(o,n,{bubbles:!0,composed:!0,cancelable:!0,detail:i})}},Nn=(e,n,t)=>{const o=$.ce(n,t);return e.dispatchEvent(o),o},H=new WeakMap,ne=(e,n,t)=>{let o=nn.get(e);yn&&t?(o=o||new CSSStyleSheet,typeof o=="string"?o=n:o.replaceSync(n)):o=n,nn.set(e,o)},ee=(e,n,t)=>{var o;const i=Cn(n),a=nn.get(i);if(!C.document)return i;if(e=e.nodeType===11?e:C.document,a)if(typeof a=="string"){e=e.head||e;let l=H.get(e),s;if(l||H.set(e,l=new Set),!l.has(i)){if(e.host&&(s=e.querySelector(`[${pn}="${i}"]`)))s.innerHTML=a;else{s=C.document.createElement("style"),s.innerHTML=a;const c=(o=$.$nonce$)!=null?o:Pt(C.document);if(c!=null&&s.setAttribute("nonce",c),!(n.$flags$&1))if(e.nodeName==="HEAD"){const d=e.querySelectorAll("link[rel=preconnect]"),p=d.length>0?d[d.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(p==null?void 0:p.parentNode)===e?p:null)}else if("host"in e)if(yn){const d=new CSSStyleSheet;d.replaceSync(a),e.adoptedStyleSheets=[d,...e.adoptedStyleSheets]}else{const d=e.querySelector("style");d?d.innerHTML=a+d.innerHTML:e.prepend(s)}else e.append(s);n.$flags$&1&&e.insertBefore(s,null)}n.$flags$&4&&(s.innerHTML+=Lt),l&&l.add(i)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return i},er=e=>{const n=e.$cmpMeta$,t=e.$hostElement$,o=n.$flags$,i=B("attachStyles",n.$tagName$),a=ee(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);o&10&&(t["s-sc"]=a,t.classList.add(a+"-h")),i()},Cn=(e,n)=>"sc-"+e.$tagName$,tr=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),rr=()=>{if(!C.document)return;const e=C.document.querySelectorAll(`[${pn}]`);let n=0;for(;n<e.length;n++)ne(e[n].getAttribute(pn),tr(e[n].innerHTML),!0)},On=(e,n,t,o,i,a,l)=>{if(t===o)return;let s=zn(e,n),c=n.toLowerCase();if(n==="class"){const d=e.classList,p=jn(t);let g=jn(o);e["s-si"]&&l?(g.push(e["s-si"]),p.forEach(x=>{x.startsWith(e["s-si"])&&g.push(x)}),g=[...new Set(g)],d.add(...g)):(d.remove(...p.filter(x=>x&&!g.includes(x))),d.add(...g.filter(x=>x&&!p.includes(x))))}else if(n==="style"){for(const d in t)(!o||o[d]==null)&&(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(const d in o)(!t||o[d]!==t[d])&&(d.includes("-")?e.style.setProperty(d,o[d]):e.style[d]=o[d])}else if(n!=="key")if(n==="ref")o&&o(e);else if(!e.__lookupSetter__(n)&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"?n=n.slice(3):zn(C,c)?n=c.slice(2):n=c[2]+n.slice(3),t||o){const d=n.endsWith(te);n=n.replace(ir,""),t&&$.rel(e,n,t,d),o&&$.ael(e,n,o,d)}}else{const d=vn(o);if((s||d&&o!==null)&&!i)try{if(e.tagName.includes("-"))e[n]!==o&&(e[n]=o);else{const p=o??"";n==="list"?s=!1:(t==null||e[n]!=p)&&(typeof e.__lookupSetter__(n)=="function"?e[n]=p:e.setAttribute(n,p))}}catch{}o==null||o===!1?(o!==!1||e.getAttribute(n)==="")&&e.removeAttribute(n):(!s||a&4||i)&&!d&&e.nodeType===1&&(o=o===!0?"":o,e.setAttribute(n,o))}},or=/\s/,jn=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(or)),te="Capture",ir=new RegExp(te+"$"),un=(e,n,t,o)=>{const i=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,a=e&&e.$attrs$||{},l=n.$attrs$||{};for(const s of Hn(Object.keys(a)))s in l||On(i,s,a[s],void 0,t,n.$flags$,o);for(const s of Hn(Object.keys(l)))On(i,s,a[s],l[s],t,n.$flags$,o)};function Hn(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var N,tn,ln,fn=!1,rn=!1,$n=!1,T=!1,on=(e,n,t)=>{var o;const i=n.$children$[t];let a=0,l,s,c;if(fn||($n=!0,i.$tag$==="slot"&&(i.$flags$|=i.$children$?2:1)),i.$text$!==null)l=i.$elm$=C.document.createTextNode(i.$text$);else if(i.$flags$&1)l=i.$elm$=C.document.createTextNode(""),un(null,i,T);else{if(T||(T=i.$tag$==="svg"),!C.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=i.$elm$=C.document.createElementNS(T?Ct:$t,!fn&&V.slotRelocation&&i.$flags$&2?"slot-fb":i.$tag$),T&&i.$tag$==="foreignObject"&&(T=!1),un(null,i,T),Mt(N)&&l["s-si"]!==N&&l.classList.add(l["s-si"]=N),i.$children$)for(a=0;a<i.$children$.length;++a)s=on(e,i,a),s&&l.appendChild(s);i.$tag$==="svg"?T=!1:l.tagName==="foreignObject"&&(T=!0)}return l["s-hn"]=ln,i.$flags$&3&&(l["s-sr"]=!0,l["s-cr"]=tn,l["s-sn"]=i.$name$||"",l["s-rf"]=(o=i.$attrs$)==null?void 0:o.ref,Jn(l),c=e&&e.$children$&&e.$children$[t],c&&c.$tag$===i.$tag$&&e.$elm$&&K(e.$elm$,!1),le(tn,l,n.$elm$,e==null?void 0:e.$elm$)),l},K=(e,n)=>{$.$flags$|=1;const t=Array.from(e.__childNodes||e.childNodes);for(let o=t.length-1;o>=0;o--){const i=t[o];i["s-hn"]!==ln&&i["s-ol"]&&(A(Y(i).parentNode,i,Y(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,$n=!0),n&&K(i,n)}$.$flags$&=-2},re=(e,n,t,o,i,a)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e,s;for(l.shadowRoot&&l.tagName===ln&&(l=l.shadowRoot);i<=a;++i)o[i]&&(s=on(null,t,i),s&&(o[i].$elm$=s,A(l,s,Y(n))))},oe=(e,n,t)=>{for(let o=n;o<=t;++o){const i=e[o];if(i){const a=i.$elm$;ae(i),a&&(rn=!0,a["s-ol"]?a["s-ol"].remove():K(a,!0),a.remove())}}},ar=(e,n,t,o,i=!1)=>{let a=0,l=0,s=0,c=0,d=n.length-1,p=n[0],g=n[d],x=o.length-1,h=o[0],k=o[x],S,w;for(;a<=d&&l<=x;)if(p==null)p=n[++a];else if(g==null)g=n[--d];else if(h==null)h=o[++l];else if(k==null)k=o[--x];else if(J(p,h,i))j(p,h,i),p=n[++a],h=o[++l];else if(J(g,k,i))j(g,k,i),g=n[--d],k=o[--x];else if(J(p,k,i))(p.$tag$==="slot"||k.$tag$==="slot")&&K(p.$elm$.parentNode,!1),j(p,k,i),A(e,p.$elm$,g.$elm$.nextSibling),p=n[++a],k=o[--x];else if(J(g,h,i))(p.$tag$==="slot"||k.$tag$==="slot")&&K(g.$elm$.parentNode,!1),j(g,h,i),A(e,g.$elm$,p.$elm$),g=n[--d],h=o[++l];else{for(s=-1,c=a;c<=d;++c)if(n[c]&&n[c].$key$!==null&&n[c].$key$===h.$key$){s=c;break}s>=0?(w=n[s],w.$tag$!==h.$tag$?S=on(n&&n[l],t,s):(j(w,h,i),n[s]=void 0,S=w.$elm$),h=o[++l]):(S=on(n&&n[l],t,l),h=o[++l]),S&&A(Y(p.$elm$).parentNode,S,Y(p.$elm$))}a>d?re(e,o[x+1]==null?null:o[x+1].$elm$,t,o,l,x):l>x&&oe(n,a,d)},J=(e,n,t=!1)=>e.$tag$===n.$tag$?e.$tag$==="slot"?e.$name$===n.$name$:t?(t&&!e.$key$&&n.$key$&&(e.$key$=n.$key$),!0):e.$key$===n.$key$:!1,Y=e=>e&&e["s-ol"]||e,j=(e,n,t=!1)=>{const o=n.$elm$=e.$elm$,i=e.$children$,a=n.$children$,l=n.$tag$,s=n.$text$;let c;s===null?(T=l==="svg"?!0:l==="foreignObject"?!1:T,un(e,n,T,t),i!==null&&a!==null?ar(o,i,n,a,t):a!==null?(e.$text$!==null&&(o.textContent=""),re(o,null,n,a,0,a.length-1)):!t&&V.updatable&&i!==null&&oe(i,0,i.length-1),T&&l==="svg"&&(T=!1)):(c=o["s-cr"])?c.parentNode.textContent=s:e.$text$!==s&&(o.data=s)},X=[],ie=e=>{let n,t,o;const i=e.__childNodes||e.childNodes;for(const a of i){if(a["s-sr"]&&(n=a["s-cr"])&&n.parentNode){t=n.parentNode.__childNodes||n.parentNode.childNodes;const l=a["s-sn"];for(o=t.length-1;o>=0;o--)if(n=t[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==a["s-hn"])if(Fn(n,l)){let s=X.find(c=>c.$nodeToRelocate$===n);rn=!0,n["s-sn"]=n["s-sn"]||l,s?(s.$nodeToRelocate$["s-sh"]=a["s-hn"],s.$slotRefNode$=a):(n["s-sh"]=a["s-hn"],X.push({$slotRefNode$:a,$nodeToRelocate$:n})),n["s-sr"]&&X.map(c=>{Fn(c.$nodeToRelocate$,n["s-sn"])&&(s=X.find(d=>d.$nodeToRelocate$===n),s&&!c.$slotRefNode$&&(c.$slotRefNode$=s.$slotRefNode$))})}else X.some(s=>s.$nodeToRelocate$===n)||X.push({$nodeToRelocate$:n})}a.nodeType===1&&ie(a)}},ae=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ae)},A=(e,n,t)=>(typeof n["s-sn"]=="string"&&n["s-sr"]&&n["s-cr"]&&le(n["s-cr"],n,e,n.parentElement),e==null?void 0:e.insertBefore(n,t));function le(e,n,t,o){var i,a;let l;if(e&&typeof n["s-sn"]=="string"&&n["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(l=n["s-si"]||e.parentNode["s-sc"])){const s=n["s-sn"],c=n["s-hn"];if((i=t.classList)==null||i.add(l+"-s"),o&&((a=o.classList)!=null&&a.contains(l+"-s"))){let d=(o.__childNodes||o.childNodes)[0],p=!1;for(;d;){if(d["s-sn"]!==s&&d["s-hn"]===c&&d["s-sr"]){p=!0;break}d=d.nextSibling}p||o.classList.remove(l+"-s")}}}var lr=(e,n,t=!1)=>{var o,i,a,l;const s=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||q(null,null),g=Gt(n)?n:r(null,null,n);if(ln=s.tagName,t&&g.$attrs$)for(const x of Object.keys(g.$attrs$))s.hasAttribute(x)&&!["key","ref","style","class"].includes(x)&&(g.$attrs$[x]=s[x]);g.$tag$=null,g.$flags$|=4,e.$vnode$=g,g.$elm$=d.$elm$=s.shadowRoot||s,N=s["s-sc"],fn=!!(c.$flags$&1)&&!(c.$flags$&128),tn=s["s-cr"],rn=!1,j(d,g,t);{if($.$flags$|=1,$n){ie(g.$elm$);for(const x of X){const h=x.$nodeToRelocate$;if(!h["s-ol"]&&C.document){const k=C.document.createTextNode("");k["s-nr"]=h,A(h.parentNode,h["s-ol"]=k,h)}}for(const x of X){const h=x.$nodeToRelocate$,k=x.$slotRefNode$;if(k){const S=k.parentNode;let w=k.nextSibling;{let L=(o=h["s-ol"])==null?void 0:o.previousSibling;for(;L;){let I=(i=L["s-nr"])!=null?i:null;if(I&&I["s-sn"]===h["s-sn"]&&S===(I.__parentNode||I.parentNode)){for(I=I.nextSibling;I===h||I!=null&&I["s-sr"];)I=I==null?void 0:I.nextSibling;if(!I||!I["s-nr"]){w=I;break}}L=L.previousSibling}}const F=h.__parentNode||h.parentNode,O=h.__nextSibling||h.nextSibling;(!w&&S!==F||O!==w)&&h!==w&&(!h["s-hn"]&&h["s-ol"]&&(h["s-hn"]=h["s-ol"].parentNode.nodeName),A(S,h,w),h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null?a:!1)),h&&typeof k["s-rf"]=="function"&&k["s-rf"](k)}else h.nodeType===1&&(t&&(h["s-ih"]=(l=h.hidden)!=null?l:!1),h.hidden=!0)}}rn&&Gn(g.$elm$),$.$flags$&=-2,X.length=0}tn=void 0},se=(e,n)=>{if(n&&!e.$onRenderResolve$&&n["s-p"]){const t=n["s-p"].push(new Promise(o=>e.$onRenderResolve$=()=>{n["s-p"].splice(t-1,1),o()}))}},In=(e,n)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return se(e,e.$ancestorComponent$),Bt(()=>sr(e,n))},sr=(e,n)=>{const t=e.$hostElement$,o=B("scheduleUpdate",e.$cmpMeta$.$tagName$),i=t;if(!i)throw new Error(`Can't render component <${t.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return n?a=R(i,"componentWillLoad",void 0,t):a=R(i,"componentWillUpdate",void 0,t),a=Rn(a,()=>R(i,"componentWillRender",void 0,t)),o(),Rn(a,()=>cr(e,i,n))},Rn=(e,n)=>dr(e)?e.then(n).catch(t=>{console.error(t),n()}):n(),dr=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",cr=async(e,n,t)=>{var o;const i=e.$hostElement$,a=B("update",e.$cmpMeta$.$tagName$),l=i["s-rc"];t&&er(e);const s=B("render",e.$cmpMeta$.$tagName$);pr(e,n,i,t),l&&(l.map(c=>c()),i["s-rc"]=void 0),s(),a();{const c=(o=i["s-p"])!=null?o:[],d=()=>gr(e);c.length===0?d():(Promise.all(c).then(d),e.$flags$|=4,c.length=0)}},pr=(e,n,t,o)=>{try{n=n.render(),e.$flags$&=-17,e.$flags$|=2,lr(e,n,o)}catch(i){Q(i,e.$hostElement$)}return null},gr=e=>{const n=e.$cmpMeta$.$tagName$,t=e.$hostElement$,o=B("postUpdate",n),i=t,a=e.$ancestorComponent$;R(i,"componentDidRender",void 0,t),e.$flags$&64?(R(i,"componentDidUpdate",void 0,t),o()):(e.$flags$|=64,mr(t),R(i,"componentDidLoad",void 0,t),o(),e.$onReadyResolve$(t),a||xr()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&an(()=>In(e,!1)),e.$flags$&=-517},xr=e=>{an(()=>Nn(C,"appload",{detail:{namespace:kt}}))},R=(e,n,t,o)=>{if(e&&e[n])try{return e[n](t)}catch(i){Q(i,o)}},mr=e=>{var n;return e.setAttribute((n=V.hydratedSelectorName)!=null?n:"hydrated","")},hr=(e,n)=>P(e).$instanceValues$.get(n),qn=(e,n,t,o)=>{const i=P(e),a=e,l=i.$instanceValues$.get(n),s=i.$flags$,c=a;t=_n(t,o.$members$[n][0]);const d=Number.isNaN(l)&&Number.isNaN(t);if(t!==l&&!d){i.$instanceValues$.set(n,t);{if(o.$watchers$&&s&128){const g=o.$watchers$[n];g&&g.map(x=>{try{c[x](t,l,n)}catch(h){Q(h,a)}})}if((s&18)===2){if(c.componentShouldUpdate&&c.componentShouldUpdate(t,l,n)===!1)return;In(i,!1)}}}},br=(e,n,t)=>{var o,i;const a=e.prototype;if(n.$members$||n.$watchers$||e.watchers){e.watchers&&!n.$watchers$&&(n.$watchers$=e.watchers);const l=Object.entries((o=n.$members$)!=null?o:{});l.map(([s,[c]])=>{if(c&31||c&32){const{get:d,set:p}=Object.getOwnPropertyDescriptor(a,s)||{};d&&(n.$members$[s][0]|=2048),p&&(n.$members$[s][0]|=4096),Object.defineProperty(a,s,{get(){return d?d.apply(this):hr(this,s)},configurable:!0,enumerable:!0}),Object.defineProperty(a,s,{set(g){const x=P(this);if(p){const h=c&32?this[s]:x.$hostElement$[s];typeof h>"u"&&x.$instanceValues$.get(s)?g=x.$instanceValues$.get(s):!x.$instanceValues$.get(s)&&h&&x.$instanceValues$.set(s,h),p.apply(this,[_n(g,c)]),g=c&32?this[s]:x.$hostElement$[s],qn(this,s,g,n);return}{qn(this,s,g,n);return}}})}});{const s=new Map;a.attributeChangedCallback=function(c,d,p){$.jmp(()=>{var g;const x=s.get(c);if(!(this.hasOwnProperty(x)&&V.lazyLoad)){if(a.hasOwnProperty(x)&&typeof this[x]=="number"&&this[x]==p)return;if(x==null){const k=P(this),S=k==null?void 0:k.$flags$;if(S&&!(S&8)&&S&128&&p!==d){const F=this,O=(g=n.$watchers$)==null?void 0:g[c];O==null||O.forEach(L=>{F[L]!=null&&F[L].call(F,p,d,c)})}return}}const h=Object.getOwnPropertyDescriptor(a,x);p=p===null&&typeof this[x]=="boolean"?!1:p,p!==this[x]&&(!h.get||h.set)&&(this[x]=p)})},e.observedAttributes=Array.from(new Set([...Object.keys((i=n.$watchers$)!=null?i:{}),...l.filter(([c,d])=>d[0]&15).map(([c,d])=>{const p=d[1]||c;return s.set(p,c),p})]))}}return e},Un=async(e,n,t,o)=>{let i;if(!(n.$flags$&32)){n.$flags$|=32;{i=e.constructor;const s=e.localName;customElements.whenDefined(s).then(()=>n.$flags$|=128)}if(i&&i.style){let s;typeof i.style=="string"&&(s=i.style);const c=Cn(t);if(!nn.has(c)){const d=B("registerStyles",t.$tagName$);ne(c,s,!!(t.$flags$&1)),d()}}}const a=n.$ancestorComponent$,l=()=>In(n,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()},ur=(e,n)=>{},fr=e=>{if(!($.$flags$&1)){const n=P(e),t=n.$cmpMeta$,o=B("connectedCallback",t.$tagName$);if(n.$flags$&1)de(e,n,t.$listeners$),n!=null&&n.$lazyInstance$||n!=null&&n.$onReadyPromise$&&n.$onReadyPromise$.then(()=>ur());else{n.$flags$|=1;let i;if(i=e.getAttribute(W),i){if(t.$flags$&1){const a=ee(e.shadowRoot,t);e.classList.remove(a+"-h",a+"-s")}else if(t.$flags$&2){const a=Cn(t);e["s-sc"]=a}Nt(e,t.$tagName$,i,n)}i||t.$flags$&12&&yr(e);{let a=e;for(;a=a.parentNode||a.host;)if(a.nodeType===1&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){se(n,n.$ancestorComponent$=a);break}}t.$members$&&Object.entries(t.$members$).map(([a,[l]])=>{if(l&31&&e.hasOwnProperty(a)){const s=e[a];delete e[a],e[a]=s}}),V.initializeNextTick?an(()=>Un(e,n,t)):Un(e,n,t)}o()}},yr=e=>{if(!C.document)return;const n=e["s-cr"]=C.document.createComment("");n["s-cn"]=!0,A(e,n,e.firstChild)},vr=async e=>{if(!($.$flags$&1)){const n=P(e);n.$rmListeners$&&(n.$rmListeners$.map(t=>t()),n.$rmListeners$=void 0)}H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)},v=(e,n)=>{const t={$flags$:n[0],$tagName$:n[1]};t.$members$=n[2],t.$listeners$=n[3],t.$watchers$=e.$watchers$,rr();const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){It(this,t)},connectedCallback(){if(!this.__hasHostListenerAttached){const a=P(this);de(this,a,t.$listeners$),this.__hasHostListenerAttached=!0}fr(this),o&&o.call(this)},disconnectedCallback(){vr(this),i&&i.call(this)},__attachShadow(){if(!this.shadowRoot)Kt.call(this,t);else if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${t.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}),e.is=t.$tagName$,br(e,t)},de=(e,n,t,o)=>{t&&C.document&&t.map(([i,a,l])=>{const s=wr(C.document,e,i),c=kr(n,l),d=_r(i);$.ael(s,a,c,d),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>$.rel(s,a,c,d))})},kr=(e,n)=>t=>{try{e.$hostElement$[n](t)}catch(o){Q(o,e.$hostElement$)}},wr=(e,n,t)=>t&4?e:n,_r=e=>Ft?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;const Cr=`*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb;}::before,::after{--tw-content:''}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Montserrat, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;}body{margin:0;line-height:inherit;}hr{height:0;color:inherit;border-top-width:1px;}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse;}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0;}button,select{text-transform:none}button,input:where([type='button']),input:where([type='reset']),input:where([type='submit']){-webkit-appearance:button;background-color:transparent;background-image:none;}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af;}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af;}button,[role="button"]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden="until-found"])){display:none}html[data-theme='office']{--color-primary:rgb(219, 59, 3);--color-secondary:rgb(0, 119, 107);--color-buttons:#89da59;--color-typography:#ff320e}html{--color-primary:#db3b03;--color-secondary:rgb(0, 119, 107);--color-buttons:#fbbc05;--color-typography:#ea4335}:root{--color-primary:#db3b03;--color-secondary:rgb(0, 119, 107);--color-tertiary:rgb(128, 104, 186);--color-white:white;--color-emphasis:rgb(8, 8, 9);--color-supergiant:rgb(213, 66, 99);--color-orange:rgb(250, 200, 127);--color-buttons:#fbbc05;--color-typography:#ea4335;--background:20 66% 99%;--foreground:20 51% 4%;--muted:20 25% 86%;--muted-foreground:20 7% 25%;--popover:20 66% 98%;--popover-foreground:20 51% 3%;--card:20 66% 98%;--card-foreground:20 51% 3%;--border:20 15% 94%;--input:20 15% 94%;--primary:20 48% 72%;--primary-foreground:20 48% 12%;--secondary:20 12% 92%;--secondary-foreground:20 12% 32%;--accent:20 12% 92%;--accent-foreground:20 12% 32%;--destructive:11 80% 22%;--destructive-foreground:11 80% 82%;--ring:20 48% 72%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:253 43% 3%;--foreground:253 31% 98%;--muted:253 7% 13%;--muted-foreground:253 13% 63%;--popover:253 43% 3%;--popover-foreground:253 31% 98%;--card:253 43% 4%;--card-foreground:253 31% 99%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--primary:253 91% 58%;--primary-foreground:253 91% 98%;--secondary:253 7% 9%;--secondary-foreground:253 7% 69%;--accent:253 13% 14%;--accent-foreground:253 13% 74%;--destructive:339.2 90.36% 51.18%;--destructive-foreground:0 0% 100%;--ring:253 91% 58%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{box-sizing:border-box;background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:0.25rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-16{width:1rem;height:1rem}.h-3{height:0.75rem}.h-4{height:0.25rem}.w-3{width:0.75rem}.w-4{width:0.25rem}.w-full{width:100%}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-xl{max-width:36rem}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:0.25rem}.gap-2{gap:0.5rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.gap-y-12{row-gap:0.75rem}.overflow-x-auto{overflow-x:auto}.text-pretty{text-wrap:pretty}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity:1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-6{padding:1.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.py-1\\.5{padding-top:0.375rem;padding-bottom:0.375rem}.py-24{padding-top:1.5rem;padding-bottom:1.5rem}.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Montserrat, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base\\/7{font-size:1rem;line-height:1.75rem}.text-lg\\/8{font-size:1.125rem;line-height:2rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-sm\\/6{font-size:0.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-0.025em}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-primary{color:var(--color-primary)}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.theme-office{--color-black:#000000;--color-white:#ffffff;--color-primary:#db3b03;--color-secondary:#ec7702;--color-buttons:#89da59;--color-typography:#ff320e}.theme-pg{--color-primary:#00776b;--color-secondary:#01a39d;--color-buttons:#89da59;--color-typography:#ff320e}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-teal-50:hover{--tw-bg-opacity:1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.hover\\:bg-teal-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.hover\\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:text-teal-800:hover{--tw-text-opacity:1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.focus\\:border-teal-500:focus{--tw-border-opacity:1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.focus\\:ring-teal-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 184 166 / var(--tw-ring-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:0.5}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.sm\\:gap-y-16{row-gap:1rem}.sm\\:py-32{padding-top:2rem;padding-bottom:2rem}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:0.5rem;padding-right:0.5rem}}@media (min-width: 1280px){.xl\\:col-span-2{grid-column:span 2 / span 2}.xl\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}`,$r=`@tailwind base;
6
6
  @tailwind components;
7
7
  @tailwind utilities;
8
8
  @layer base {
@@ -331,7 +331,7 @@ ol.mdc-list.sc-xplor-alert-dialog li.mdc-list-item.sc-xplor-alert-dialog, ul.mdc
331
331
  opacity: 1;
332
332
  transform: scale(1);
333
333
  }
334
- }`,ce=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClose=x(this,"xplorClose"),this.xplorDialogChange=x(this,"xplorDialogChange"),this.open=!1,this.width="408px",this.persistent=!0,this.handleBackdropClick=()=>{this.persistent||this.closeDialog()},this.handleCardClick=n=>{n.stopPropagation()},this.closeDialog=()=>{this.open=!1,this.xplorClose.emit(),this.xplorDialogChange.emit(!1)}}handleOpenChange(n){n?document.body.style.overflow="hidden":document.body.style.overflow=""}disconnectedCallback(){document.body.style.overflow=""}render(){return this.open?r(h,null,r("div",{class:"xplor-alert-dialog__backdrop",onClick:this.handleBackdropClick},r("div",{class:"xplor-alert-dialog__card",style:{width:this.width},onClick:this.handleCardClick},r("button",{type:"button",class:"xplor-alert-dialog__close-btn",onClick:this.closeDialog,"aria-label":"Close dialog"},"✕"),r("div",{class:"xplor-alert-dialog__title"},r("slot",{name:"title"})),r("div",{class:"xplor-alert-dialog__text"},r("slot",{name:"text"})),r("div",{class:"xplor-alert-dialog__actions"},r("slot",{name:"actions"}))))):null}static get watchers(){return{open:["handleOpenChange"]}}static get style(){return Cr}},[6,"xplor-alert-dialog",{open:[1028],width:[1],persistent:[4]},void 0,{open:["handleOpenChange"]}]);function $r(){if(typeof customElements>"u")return;["xplor-alert-dialog"].forEach(n=>{switch(n){case"xplor-alert-dialog":customElements.get(n)||customElements.define(n,ce);break}})}const Sr=ce,Ir=$r,Er=`@tailwind base;
334
+ }`,ce=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClose=m(this,"xplorClose"),this.xplorDialogChange=m(this,"xplorDialogChange"),this.open=!1,this.width="408px",this.persistent=!0,this.previouslyFocusedElement=null,this.handleBackdropClick=()=>{this.persistent||this.closeDialog()},this.handleCardClick=n=>{n.stopPropagation()},this.closeDialog=()=>{this.open=!1,this.xplorClose.emit(),this.xplorDialogChange.emit(!1)}}handleOpenChange(n){n?(document.body.style.overflow="hidden",this.previouslyFocusedElement=document.activeElement,requestAnimationFrame(()=>{this.setInitialFocus()})):(document.body.style.overflow="",this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null))}disconnectedCallback(){document.body.style.overflow=""}handleKeyDown(n){if(this.open){if(n.key==="Escape"&&!this.persistent){n.preventDefault(),this.closeDialog();return}n.key==="Tab"&&this.trapFocus(n)}}getFocusableElements(){return this.dialogEl?Array.from(this.dialogEl.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')):[]}trapFocus(n){const t=this.getFocusableElements();if(t.length===0)return;const o=t[0],i=t[t.length-1];n.shiftKey?document.activeElement===o&&(n.preventDefault(),i.focus()):document.activeElement===i&&(n.preventDefault(),o.focus())}setInitialFocus(){const n=this.getFocusableElements();n.length>0?n[0].focus():this.dialogEl&&this.dialogEl.focus()}render(){return this.open?r(b,null,r("div",{class:"xplor-alert-dialog__backdrop",onClick:this.handleBackdropClick},r("div",{class:"xplor-alert-dialog__card",style:{width:this.width},onClick:this.handleCardClick,role:"alertdialog","aria-modal":"true","aria-labelledby":this.ariaLabel?void 0:"xplor-alert-dialog-title","aria-label":this.ariaLabel,"aria-describedby":"xplor-alert-dialog-text",tabindex:"-1",ref:n=>this.dialogEl=n},r("button",{type:"button",class:"xplor-alert-dialog__close-btn",onClick:this.closeDialog,"aria-label":"Close dialog"},"✕"),r("div",{class:"xplor-alert-dialog__title",id:"xplor-alert-dialog-title"},r("slot",{name:"title"})),r("div",{class:"xplor-alert-dialog__text",id:"xplor-alert-dialog-text"},r("slot",{name:"text"})),r("div",{class:"xplor-alert-dialog__actions"},r("slot",{name:"actions"}))))):null}get el(){return this}static get watchers(){return{open:["handleOpenChange"]}}static get style(){return $r}},[6,"xplor-alert-dialog",{open:[1028],width:[1],persistent:[4],ariaLabel:[1,"aria-label"]},[[0,"keydown","handleKeyDown"]],{open:["handleOpenChange"]}]);function Ir(){if(typeof customElements>"u")return;["xplor-alert-dialog"].forEach(n=>{switch(n){case"xplor-alert-dialog":customElements.get(n)||customElements.define(n,ce);break}})}const Sr=ce,Er=Ir,zr=`@tailwind base;
335
335
  @tailwind components;
336
336
  @tailwind utilities;
337
337
  @layer base {
@@ -664,29 +664,29 @@ ol.mdc-list.sc-xplor-alert-message li.mdc-list-item.sc-xplor-alert-message, ul.m
664
664
  outline: 2px solid currentColor;
665
665
  outline-offset: 2px;
666
666
  border-radius: 2px;
667
- }`,pe=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorDismiss=x(this,"xplorDismiss"),this.type="info",this.dismissible=!1,this.handleDismiss=()=>{this.xplorDismiss.emit()}}render(){return r(h,{key:"9b7353e68d89701b3fdb4dcd5fb5e6c886b08d8b"},r("div",{key:"335c16829ae65019c3c7d32a9e7dd3a3ef13c1ae",class:{"alert-message":!0,[`alert-message--${this.type}`]:!0},role:"alert"},r("div",{key:"08feddcdf81a93b0aaa907688923d3b943fcc7ed",class:"alert-message__content"},this.alertTitle&&r("div",{key:"a994f5d65e9112cae41bf3379f4454e986d62e00",class:"alert-message__title"},r("slot",{key:"b4cd15b229b6e5539c29c929dfa804b7da537030",name:"title"},this.alertTitle)),r("div",{key:"ef6135360584c77ad418f46022ed8600c5786c2a",class:"alert-message__body"},r("slot",{key:"36d800fb3ebdfad5c2bf602212410381210db99b"})),r("div",{key:"79d1d65fc21759299f17d42523839c0d733b2098",class:"alert-message__actions"},r("slot",{key:"f4cc482a2392656d0bc385c0d3cafe23285f32e8",name:"actions"}))),this.dismissible&&r("button",{key:"37656219e43ce25d72e7afa66a1fc1a2e9f22002",class:"alert-message__dismiss",onClick:this.handleDismiss,"aria-label":"Dismiss alert",type:"button"},"×")))}static get style(){return Er}},[6,"xplor-alert-message",{type:[1],alertTitle:[1,"alert-title"],dismissible:[4]}]);function zr(){if(typeof customElements>"u")return;["xplor-alert-message"].forEach(n=>{switch(n){case"xplor-alert-message":customElements.get(n)||customElements.define(n,pe);break}})}const Tr=pe,Dr=zr;function Xr(){const e=Date.now(),n=Math.random().toString(36).substring(2,11);return`session_${e}_${n}`}function Lr(){const e=new Date,n=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${n}-${t}-${o}`}function Br(){const e=new Date,n=String(e.getHours()).padStart(2,"0"),t=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0");return`${n}:${t}:${o}`}async function Fr(e,n,t,o,i,a){if(!e)throw new Error("API endpoint is required");if(!n||!n.trim())throw new Error("Message cannot be empty");const s={message:n.trim(),sessionId:t,userId:o,userEmail:i,userName:a,currentDate:Lr(),currentTime:Br()};try{const l=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!l.ok){const d=await l.text().catch(()=>l.statusText);throw new Error(`API error: ${l.status} - ${d}`)}const c=await l.json();if(!c.message||!c.sessionId)throw new Error("Invalid API response: missing required fields");return c}catch(l){throw l instanceof Error?l.name==="TypeError"&&l.message.includes("fetch")?new Error("Network error: Unable to reach the API. Please check your connection."):l:new Error("Unknown error occurred while calling the API")}}function Ar(){if(typeof window>"u")return{voiceInput:!1,textToSpeech:!1};const e="SpeechRecognition"in window||"webkitSpeechRecognition"in window,n="speechSynthesis"in window;return{voiceInput:e,textToSpeech:n}}class Mr{constructor(){if(this.recognition=null,this.onResultCallback=null,this.onErrorCallback=null,this.onStartCallback=null,this.onEndCallback=null,typeof window>"u")return;const n=window.SpeechRecognition||window.webkitSpeechRecognition;n&&(this.recognition=new n,this.recognition.continuous=!1,this.recognition.interimResults=!1,this.recognition.lang="en-US",this.recognition.maxAlternatives=1,this.recognition.onstart=()=>{this.onStartCallback&&this.onStartCallback()},this.recognition.onresult=t=>{const o=t.results[0][0].transcript;this.onResultCallback&&this.onResultCallback(o)},this.recognition.onerror=t=>{const o=this.getErrorMessage(t.error);this.onErrorCallback&&this.onErrorCallback(o)},this.recognition.onend=()=>{this.onEndCallback&&this.onEndCallback()})}getErrorMessage(n){switch(n){case"no-speech":return"No speech detected. Please try again.";case"audio-capture":return"No microphone found. Please ensure a microphone is connected.";case"not-allowed":return"Microphone permission denied. Please allow microphone access.";case"network":return"Network error. Please check your connection.";default:return`Speech recognition error: ${n}`}}start(){if(!this.recognition){console.error("Speech recognition not supported");return}try{this.recognition.start()}catch(n){console.error("Failed to start speech recognition:",n),this.onErrorCallback&&this.onErrorCallback("Failed to start voice recognition")}}stop(){this.recognition&&this.recognition.stop()}onResult(n){this.onResultCallback=n}onError(n){this.onErrorCallback=n}onStart(n){this.onStartCallback=n}onEnd(n){this.onEndCallback=n}isAvailable(){return this.recognition!==null}}class Pr{constructor(){this.currentUtterance=null,this.onStartCallback=null,this.onEndCallback=null}speak(n){if(typeof window>"u"||!("speechSynthesis"in window)){console.error("Speech synthesis not supported");return}this.stop(),this.currentUtterance=new SpeechSynthesisUtterance(n),this.currentUtterance.lang="en-US",this.currentUtterance.rate=1,this.currentUtterance.pitch=1,this.currentUtterance.volume=1,this.currentUtterance.onstart=()=>{this.onStartCallback&&this.onStartCallback()},this.currentUtterance.onend=()=>{this.onEndCallback&&this.onEndCallback(),this.currentUtterance=null},this.currentUtterance.onerror=t=>{console.error("Speech synthesis error:",t),this.onEndCallback&&this.onEndCallback(),this.currentUtterance=null},window.speechSynthesis.speak(this.currentUtterance)}stop(){typeof window>"u"||!("speechSynthesis"in window)||(window.speechSynthesis.speaking&&(window.speechSynthesis.cancel(),this.onEndCallback&&this.onEndCallback()),this.currentUtterance=null)}isSpeaking(){return typeof window>"u"||!("speechSynthesis"in window)?!1:window.speechSynthesis.speaking}onStart(n){this.onStartCallback=n}onEnd(n){this.onEndCallback=n}isAvailable(){return typeof window<"u"&&"speechSynthesis"in window}}const Or=`
667
+ }`,pe=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorDismiss=m(this,"xplorDismiss"),this.type="info",this.dismissible=!1,this.handleDismiss=()=>{this.xplorDismiss.emit()}}render(){return r(b,{key:"9b7353e68d89701b3fdb4dcd5fb5e6c886b08d8b"},r("div",{key:"335c16829ae65019c3c7d32a9e7dd3a3ef13c1ae",class:{"alert-message":!0,[`alert-message--${this.type}`]:!0},role:"alert"},r("div",{key:"08feddcdf81a93b0aaa907688923d3b943fcc7ed",class:"alert-message__content"},this.alertTitle&&r("div",{key:"a994f5d65e9112cae41bf3379f4454e986d62e00",class:"alert-message__title"},r("slot",{key:"b4cd15b229b6e5539c29c929dfa804b7da537030",name:"title"},this.alertTitle)),r("div",{key:"ef6135360584c77ad418f46022ed8600c5786c2a",class:"alert-message__body"},r("slot",{key:"36d800fb3ebdfad5c2bf602212410381210db99b"})),r("div",{key:"79d1d65fc21759299f17d42523839c0d733b2098",class:"alert-message__actions"},r("slot",{key:"f4cc482a2392656d0bc385c0d3cafe23285f32e8",name:"actions"}))),this.dismissible&&r("button",{key:"37656219e43ce25d72e7afa66a1fc1a2e9f22002",class:"alert-message__dismiss",onClick:this.handleDismiss,"aria-label":"Dismiss alert",type:"button"},"×")))}static get style(){return zr}},[6,"xplor-alert-message",{type:[1],alertTitle:[1,"alert-title"],dismissible:[4]}]);function Tr(){if(typeof customElements>"u")return;["xplor-alert-message"].forEach(n=>{switch(n){case"xplor-alert-message":customElements.get(n)||customElements.define(n,pe);break}})}const Dr=pe,Lr=Tr;function Fr(){const e=Date.now(),n=Math.random().toString(36).substring(2,11);return`session_${e}_${n}`}function Xr(){const e=new Date,n=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${n}-${t}-${o}`}function Ar(){const e=new Date,n=String(e.getHours()).padStart(2,"0"),t=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0");return`${n}:${t}:${o}`}async function Br(e,n,t,o,i,a){if(!e)throw new Error("API endpoint is required");if(!n||!n.trim())throw new Error("Message cannot be empty");const l={message:n.trim(),sessionId:t,userId:o,userEmail:i,userName:a,currentDate:Xr(),currentTime:Ar()};try{const s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!s.ok){const d=await s.text().catch(()=>s.statusText);throw new Error(`API error: ${s.status} - ${d}`)}const c=await s.json();if(!c.message||!c.sessionId)throw new Error("Invalid API response: missing required fields");return c}catch(s){throw s instanceof Error?s.name==="TypeError"&&s.message.includes("fetch")?new Error("Network error: Unable to reach the API. Please check your connection."):s:new Error("Unknown error occurred while calling the API")}}function Mr(){if(typeof window>"u")return{voiceInput:!1,textToSpeech:!1};const e="SpeechRecognition"in window||"webkitSpeechRecognition"in window,n="speechSynthesis"in window;return{voiceInput:e,textToSpeech:n}}class Pr{constructor(){if(this.recognition=null,this.onResultCallback=null,this.onErrorCallback=null,this.onStartCallback=null,this.onEndCallback=null,typeof window>"u")return;const n=window.SpeechRecognition||window.webkitSpeechRecognition;n&&(this.recognition=new n,this.recognition.continuous=!1,this.recognition.interimResults=!1,this.recognition.lang="en-US",this.recognition.maxAlternatives=1,this.recognition.onstart=()=>{this.onStartCallback&&this.onStartCallback()},this.recognition.onresult=t=>{const o=t.results[0][0].transcript;this.onResultCallback&&this.onResultCallback(o)},this.recognition.onerror=t=>{const o=this.getErrorMessage(t.error);this.onErrorCallback&&this.onErrorCallback(o)},this.recognition.onend=()=>{this.onEndCallback&&this.onEndCallback()})}getErrorMessage(n){switch(n){case"no-speech":return"No speech detected. Please try again.";case"audio-capture":return"No microphone found. Please ensure a microphone is connected.";case"not-allowed":return"Microphone permission denied. Please allow microphone access.";case"network":return"Network error. Please check your connection.";default:return`Speech recognition error: ${n}`}}start(){if(!this.recognition){console.error("Speech recognition not supported");return}try{this.recognition.start()}catch(n){console.error("Failed to start speech recognition:",n),this.onErrorCallback&&this.onErrorCallback("Failed to start voice recognition")}}stop(){this.recognition&&this.recognition.stop()}onResult(n){this.onResultCallback=n}onError(n){this.onErrorCallback=n}onStart(n){this.onStartCallback=n}onEnd(n){this.onEndCallback=n}isAvailable(){return this.recognition!==null}}class Or{constructor(){this.currentUtterance=null,this.onStartCallback=null,this.onEndCallback=null}speak(n){if(typeof window>"u"||!("speechSynthesis"in window)){console.error("Speech synthesis not supported");return}this.stop(),this.currentUtterance=new SpeechSynthesisUtterance(n),this.currentUtterance.lang="en-US",this.currentUtterance.rate=1,this.currentUtterance.pitch=1,this.currentUtterance.volume=1,this.currentUtterance.onstart=()=>{this.onStartCallback&&this.onStartCallback()},this.currentUtterance.onend=()=>{this.onEndCallback&&this.onEndCallback(),this.currentUtterance=null},this.currentUtterance.onerror=t=>{console.error("Speech synthesis error:",t),this.onEndCallback&&this.onEndCallback(),this.currentUtterance=null},window.speechSynthesis.speak(this.currentUtterance)}stop(){typeof window>"u"||!("speechSynthesis"in window)||(window.speechSynthesis.speaking&&(window.speechSynthesis.cancel(),this.onEndCallback&&this.onEndCallback()),this.currentUtterance=null)}isSpeaking(){return typeof window>"u"||!("speechSynthesis"in window)?!1:window.speechSynthesis.speaking}onStart(n){this.onStartCallback=n}onEnd(n){this.onEndCallback=n}isAvailable(){return typeof window<"u"&&"speechSynthesis"in window}}const jr=`
668
668
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
669
669
  <path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
670
670
  <path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
671
671
  <line x1="12" y1="19" x2="12" y2="23"></line>
672
672
  <line x1="8" y1="23" x2="16" y2="23"></line>
673
673
  </svg>
674
- `,jr=`
674
+ `,Hr=`
675
675
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
676
676
  <line x1="22" y1="2" x2="11" y2="13"></line>
677
677
  <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>
678
678
  </svg>
679
- `,Hr=`
679
+ `,Rr=`
680
680
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
681
681
  <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>
682
682
  <path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>
683
683
  <path d="M19.07 4.93a10 10 0 0 1 0 14.14"></path>
684
684
  </svg>
685
- `,Rr=`
685
+ `,qr=`
686
686
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" stroke="none">
687
687
  <rect x="6" y="6" width="12" height="12" rx="2"></rect>
688
688
  </svg>
689
- `,Ur=e=>{const{message:n,enableTextToSpeech:t,isSpeaking:o,onSpeak:i,onStopSpeaking:a}=e,s={"xplor-assistant__message":!0,"xplor-assistant__message--user":n.role==="user","xplor-assistant__message--assistant":n.role==="assistant"},l=()=>{o?a==null||a():i==null||i(n.content)},c=d=>{const p=d.getHours(),g=d.getMinutes(),b=p>=12?"PM":"AM",m=p%12||12,k=g<10?`0${g}`:g;return`${m}:${k} ${b}`};return r("div",{class:s},r("div",{class:"xplor-assistant__message-content"},n.content),r("div",{class:"xplor-assistant__message-footer"},r("span",{class:"xplor-assistant__message-timestamp"},c(n.timestamp)),n.role==="assistant"&&t&&r("button",{class:{"xplor-assistant__speak-button":!0,"xplor-assistant__speak-button--active":o},onClick:l,title:o?"Stop speaking":"Listen to message",type:"button"},r("span",{class:"xplor-assistant__speak-icon",innerHTML:o?Rr:Hr}))))},qr=e=>{const{placeholder:n,disabled:t,isLoading:o,enableVoiceInput:i,isListening:a,inputValue:s,onSendMessage:l,onStartListening:c,onStopListening:d,setInputValue:p}=e,g=I=>{I.preventDefault(),console.log("[AssistantInput] Submit triggered, inputValue:",s),s.trim()&&!t&&!o?(console.log("[AssistantInput] Calling onSendMessage with:",s),l(s),p("")):console.log("[AssistantInput] Submit blocked - disabled:",t,"isLoading:",o,"hasValue:",!!s.trim())},b=I=>{const w=I.target;p(w.value)},m=()=>{a?d():c()},k=!s.trim()||t||o;return r("div",{class:"xplor-assistant__input-container"},r("form",{onSubmit:g,class:"xplor-assistant__input-form"},i&&r("button",{type:"button",class:{"xplor-assistant__voice-button":!0,"xplor-assistant__voice-button--listening":a},onClick:m,disabled:t||o,title:a?"Stop listening":"Start voice input"},r("span",{class:"xplor-assistant__voice-icon",innerHTML:Or})),r("input",{type:"text",class:"xplor-assistant__input",placeholder:n,value:s,onInput:b,disabled:t||o}),r("button",{type:"submit",class:"xplor-assistant__send-button",disabled:k,title:"Send message"},r("span",{class:"xplor-assistant__send-icon",innerHTML:jr}))))},Wr=e=>{const{replies:n,disabled:t,onReplyClick:o}=e;return!n||n.length===0?null:r("div",{class:"xplor-assistant__quick-replies"},n.map(i=>r("button",{class:"xplor-assistant__quick-reply",onClick:()=>o(i),disabled:t,type:"button"},i)))},Yr=()=>r("div",{class:"xplor-assistant__typing-indicator"},r("span",{class:"xplor-assistant__typing-dot"}),r("span",{class:"xplor-assistant__typing-dot"}),r("span",{class:"xplor-assistant__typing-dot"})),Qr=`@tailwind base;
689
+ `,Ur=e=>{const{message:n,enableTextToSpeech:t,isSpeaking:o,onSpeak:i,onStopSpeaking:a}=e,l={"xplor-assistant__message":!0,"xplor-assistant__message--user":n.role==="user","xplor-assistant__message--assistant":n.role==="assistant"},s=()=>{o?a==null||a():i==null||i(n.content)},c=d=>{const p=d.getHours(),g=d.getMinutes(),x=p>=12?"PM":"AM",h=p%12||12,k=g<10?`0${g}`:g;return`${h}:${k} ${x}`};return r("div",{class:l},r("div",{class:"xplor-assistant__message-content"},n.content),r("div",{class:"xplor-assistant__message-footer"},r("span",{class:"xplor-assistant__message-timestamp"},c(n.timestamp)),n.role==="assistant"&&t&&r("button",{class:{"xplor-assistant__speak-button":!0,"xplor-assistant__speak-button--active":o},onClick:s,title:o?"Stop speaking":"Listen to message",type:"button"},r("span",{class:"xplor-assistant__speak-icon",innerHTML:o?qr:Rr}))))},Wr=e=>{const{placeholder:n,disabled:t,isLoading:o,enableVoiceInput:i,isListening:a,inputValue:l,onSendMessage:s,onStartListening:c,onStopListening:d,setInputValue:p}=e,g=S=>{S.preventDefault(),console.log("[AssistantInput] Submit triggered, inputValue:",l),l.trim()&&!t&&!o?(console.log("[AssistantInput] Calling onSendMessage with:",l),s(l),p("")):console.log("[AssistantInput] Submit blocked - disabled:",t,"isLoading:",o,"hasValue:",!!l.trim())},x=S=>{const w=S.target;p(w.value)},h=()=>{a?d():c()},k=!l.trim()||t||o;return r("div",{class:"xplor-assistant__input-container"},r("form",{onSubmit:g,class:"xplor-assistant__input-form"},i&&r("button",{type:"button",class:{"xplor-assistant__voice-button":!0,"xplor-assistant__voice-button--listening":a},onClick:h,disabled:t||o,title:a?"Stop listening":"Start voice input","aria-label":"Voice input"},r("span",{class:"xplor-assistant__voice-icon",innerHTML:jr})),r("input",{type:"text",class:"xplor-assistant__input",placeholder:n,value:l,onInput:x,disabled:t||o}),r("button",{type:"submit",class:"xplor-assistant__send-button",disabled:k,title:"Send message","aria-label":"Send message"},r("span",{class:"xplor-assistant__send-icon",innerHTML:Hr}))))},Kr=e=>{const{replies:n,disabled:t,onReplyClick:o}=e;return!n||n.length===0?null:r("div",{class:"xplor-assistant__quick-replies"},n.map(i=>r("button",{class:"xplor-assistant__quick-reply",onClick:()=>o(i),disabled:t,type:"button"},i)))},Yr=()=>r("div",{class:"xplor-assistant__typing-indicator"},r("span",{class:"xplor-assistant__typing-dot"}),r("span",{class:"xplor-assistant__typing-dot"}),r("span",{class:"xplor-assistant__typing-dot"})),Vr=`@tailwind base;
690
690
  @tailwind components;
691
691
  @tailwind utilities;
692
692
  @layer base {
@@ -2051,7 +2051,7 @@ ol.mdc-list.sc-xplor-assistant li.mdc-list-item.sc-xplor-assistant, ul.mdc-list.
2051
2051
  transform: scale(1.05);
2052
2052
  opacity: 0.9;
2053
2053
  }
2054
- }`,ge=v(class extends y{constructor(){super(),this.__registerHost(),this.assistantMessageSent=x(this,"assistantMessageSent"),this.assistantMessageReceived=x(this,"assistantMessageReceived"),this.assistantError=x(this,"assistantError"),this.assistantSessionCreated=x(this,"assistantSessionCreated"),this.placeholder="Type your message...",this.enableVoiceInput=!0,this.enableTextToSpeech=!0,this.autoSpeak=!1,this.maxHeight="600px",this.disabled=!1,this.messages=[],this.internalSessionId="",this.isLoading=!1,this.isListening=!1,this.isSpeaking=!1,this.error="",this.inputValue="",this.hasVoiceSupport=!1,this.hasTTSSupport=!1,this.handleSendMessage=async n=>{if(console.log("[XplorAssistant] handleSendMessage called with:",n),this.disabled||this.isLoading||!n.trim()){console.log("[XplorAssistant] Message blocked - disabled:",this.disabled,"isLoading:",this.isLoading,"hasValue:",!!n.trim());return}this.inputValue="",console.log("[XplorAssistant] Input cleared, proceeding with message");const t={id:`user-${Date.now()}`,role:"user",content:n.trim(),timestamp:new Date};this.messages=[...this.messages,t],this.error="",this.isLoading=!0,this.assistantMessageSent.emit({message:t.content,sessionId:this.internalSessionId,timestamp:t.timestamp});try{const o=await Fr(this.apiEndpoint,t.content,this.internalSessionId,this.userId,this.userEmail,this.userName);o.sessionId&&o.sessionId!==this.internalSessionId&&(this.internalSessionId=o.sessionId);const i={id:`assistant-${Date.now()}`,role:"assistant",content:o.message,timestamp:new Date};this.messages=[...this.messages,i],this.assistantMessageReceived.emit({message:i.content,sessionId:this.internalSessionId,timestamp:i.timestamp}),this.autoSpeak&&this.enableTextToSpeech&&this.speechSynthesis.speak(i.content)}catch(o){const i=o instanceof Error?o.message:"Failed to send message";this.handleError(i,"api")}finally{this.isLoading=!1}},this.handleVoiceInput=n=>{n&&n.trim()&&this.handleSendMessage(n)},this.handleError=(n,t)=>{this.error=n,this.assistantError.emit({error:n,type:t,timestamp:new Date})},this.handleStartListening=()=>{this.speechRecognition&&this.enableVoiceInput&&!this.disabled&&!this.isLoading&&this.speechRecognition.start()},this.handleStopListening=()=>{this.speechRecognition&&this.speechRecognition.stop()},this.handleSpeak=n=>{this.speechSynthesis&&this.enableTextToSpeech&&this.speechSynthesis.speak(n)},this.handleStopSpeaking=()=>{this.speechSynthesis&&this.speechSynthesis.stop()},this.handleQuickReply=n=>{this.handleSendMessage(n)},this.setInputValue=n=>{this.inputValue=n}}componentWillLoad(){if(!this.apiEndpoint){console.error("xplor-assistant: apiEndpoint prop is required"),this.error="Configuration error: API endpoint not provided";return}if(!this.userId||!this.userEmail||!this.userName){console.error("xplor-assistant: userId, userEmail, and userName props are required"),this.error="Configuration error: User information not provided";return}this.sessionId?this.internalSessionId=this.sessionId:(this.internalSessionId=Xr(),this.assistantSessionCreated.emit({sessionId:this.internalSessionId,timestamp:new Date}));const n=Ar();this.hasVoiceSupport=n.voiceInput,this.hasTTSSupport=n.textToSpeech,this.hasVoiceSupport||(this.enableVoiceInput=!1),this.hasTTSSupport||(this.enableTextToSpeech=!1),this.speechRecognition=new Mr,this.speechSynthesis=new Pr,this.speechRecognition.onStart(()=>{this.isListening=!0}),this.speechRecognition.onEnd(()=>{this.isListening=!1}),this.speechRecognition.onResult(t=>{this.handleVoiceInput(t)}),this.speechRecognition.onError(t=>{this.isListening=!1,this.handleError(t,"voice")}),this.speechSynthesis.onStart(()=>{this.isSpeaking=!0}),this.speechSynthesis.onEnd(()=>{this.isSpeaking=!1})}handleSessionIdChange(n){n&&n!==this.internalSessionId&&(this.internalSessionId=n)}componentDidUpdate(){this.scrollToBottom()}disconnectedCallback(){this.speechSynthesis&&this.speechSynthesis.stop()}async sendMessage(n){!n||!n.trim()||await this.handleSendMessage(n)}async clearHistory(){this.messages=[],this.error=""}async speak(n){this.enableTextToSpeech&&this.speechSynthesis&&this.speechSynthesis.speak(n)}async stopSpeaking(){this.speechSynthesis&&this.speechSynthesis.stop()}scrollToBottom(){this.messagesContainerRef&&setTimeout(()=>{this.messagesContainerRef.scrollTop=this.messagesContainerRef.scrollHeight},100)}render(){return this.error&&!this.apiEndpoint?r(h,null,r("div",{class:"xplor-assistant xplor-assistant--error"},r("div",{class:"xplor-assistant__error-message"},this.error))):r(h,null,r("div",{class:{"xplor-assistant":!0,"xplor-assistant--disabled":this.disabled},style:{maxHeight:this.maxHeight}},r("div",{class:"xplor-assistant__messages",ref:n=>this.messagesContainerRef=n},this.messages.map(n=>r(Ur,{message:n,enableTextToSpeech:this.enableTextToSpeech,autoSpeak:!1,isSpeaking:this.isSpeaking,onSpeak:this.handleSpeak,onStopSpeaking:this.handleStopSpeaking})),this.isLoading&&r("div",{class:"xplor-assistant__message xplor-assistant__message--assistant"},r(Yr,null)),this.error&&this.apiEndpoint&&r("div",{class:"xplor-assistant__error-banner"},this.error)),this.quickReplies&&this.quickReplies.length>0&&r(Wr,{replies:this.quickReplies,disabled:this.disabled||this.isLoading,onReplyClick:this.handleQuickReply}),r(qr,{placeholder:this.placeholder,disabled:this.disabled,isLoading:this.isLoading,enableVoiceInput:this.enableVoiceInput&&this.hasVoiceSupport,isListening:this.isListening,onSendMessage:this.handleSendMessage,onStartListening:this.handleStartListening,onStopListening:this.handleStopListening,inputValue:this.inputValue,setInputValue:this.setInputValue})))}get el(){return this}static get watchers(){return{sessionId:["handleSessionIdChange"]}}static get style(){return Qr}},[2,"xplor-assistant",{apiEndpoint:[1,"api-endpoint"],userId:[1,"user-id"],userEmail:[1,"user-email"],userName:[1,"user-name"],sessionId:[1,"session-id"],quickReplies:[16,"quick-replies"],placeholder:[1],enableVoiceInput:[4,"enable-voice-input"],enableTextToSpeech:[4,"enable-text-to-speech"],autoSpeak:[4,"auto-speak"],maxHeight:[1,"max-height"],disabled:[4],messages:[32],internalSessionId:[32],isLoading:[32],isListening:[32],isSpeaking:[32],error:[32],inputValue:[32],hasVoiceSupport:[32],hasTTSSupport:[32],sendMessage:[64],clearHistory:[64],speak:[64],stopSpeaking:[64]},void 0,{sessionId:["handleSessionIdChange"]}]);function Kr(){if(typeof customElements>"u")return;["xplor-assistant"].forEach(n=>{switch(n){case"xplor-assistant":customElements.get(n)||customElements.define(n,ge);break}})}const Vr=ge,Gr=Kr,Zr=`@tailwind base;
2054
+ }`,ge=v(class extends y{constructor(){super(),this.__registerHost(),this.assistantMessageSent=m(this,"assistantMessageSent"),this.assistantMessageReceived=m(this,"assistantMessageReceived"),this.assistantError=m(this,"assistantError"),this.assistantSessionCreated=m(this,"assistantSessionCreated"),this.placeholder="Type your message...",this.enableVoiceInput=!0,this.enableTextToSpeech=!0,this.autoSpeak=!1,this.maxHeight="600px",this.disabled=!1,this.messages=[],this.internalSessionId="",this.isLoading=!1,this.isListening=!1,this.isSpeaking=!1,this.error="",this.inputValue="",this.hasVoiceSupport=!1,this.hasTTSSupport=!1,this.handleSendMessage=async n=>{if(console.log("[XplorAssistant] handleSendMessage called with:",n),this.disabled||this.isLoading||!n.trim()){console.log("[XplorAssistant] Message blocked - disabled:",this.disabled,"isLoading:",this.isLoading,"hasValue:",!!n.trim());return}this.inputValue="",console.log("[XplorAssistant] Input cleared, proceeding with message");const t={id:`user-${Date.now()}`,role:"user",content:n.trim(),timestamp:new Date};this.messages=[...this.messages,t],this.error="",this.isLoading=!0,this.assistantMessageSent.emit({message:t.content,sessionId:this.internalSessionId,timestamp:t.timestamp});try{const o=await Br(this.apiEndpoint,t.content,this.internalSessionId,this.userId,this.userEmail,this.userName);o.sessionId&&o.sessionId!==this.internalSessionId&&(this.internalSessionId=o.sessionId);const i={id:`assistant-${Date.now()}`,role:"assistant",content:o.message,timestamp:new Date};this.messages=[...this.messages,i],this.assistantMessageReceived.emit({message:i.content,sessionId:this.internalSessionId,timestamp:i.timestamp}),this.autoSpeak&&this.enableTextToSpeech&&this.speechSynthesis.speak(i.content)}catch(o){const i=o instanceof Error?o.message:"Failed to send message";this.handleError(i,"api")}finally{this.isLoading=!1}},this.handleVoiceInput=n=>{n&&n.trim()&&this.handleSendMessage(n)},this.handleError=(n,t)=>{this.error=n,this.assistantError.emit({error:n,type:t,timestamp:new Date})},this.handleStartListening=()=>{this.speechRecognition&&this.enableVoiceInput&&!this.disabled&&!this.isLoading&&this.speechRecognition.start()},this.handleStopListening=()=>{this.speechRecognition&&this.speechRecognition.stop()},this.handleSpeak=n=>{this.speechSynthesis&&this.enableTextToSpeech&&this.speechSynthesis.speak(n)},this.handleStopSpeaking=()=>{this.speechSynthesis&&this.speechSynthesis.stop()},this.handleQuickReply=n=>{this.handleSendMessage(n)},this.setInputValue=n=>{this.inputValue=n}}componentWillLoad(){if(!this.apiEndpoint){console.error("xplor-assistant: apiEndpoint prop is required"),this.error="Configuration error: API endpoint not provided";return}if(!this.userId||!this.userEmail||!this.userName){console.error("xplor-assistant: userId, userEmail, and userName props are required"),this.error="Configuration error: User information not provided";return}this.sessionId?this.internalSessionId=this.sessionId:(this.internalSessionId=Fr(),this.assistantSessionCreated.emit({sessionId:this.internalSessionId,timestamp:new Date}));const n=Mr();this.hasVoiceSupport=n.voiceInput,this.hasTTSSupport=n.textToSpeech,this.hasVoiceSupport||(this.enableVoiceInput=!1),this.hasTTSSupport||(this.enableTextToSpeech=!1),this.speechRecognition=new Pr,this.speechSynthesis=new Or,this.speechRecognition.onStart(()=>{this.isListening=!0}),this.speechRecognition.onEnd(()=>{this.isListening=!1}),this.speechRecognition.onResult(t=>{this.handleVoiceInput(t)}),this.speechRecognition.onError(t=>{this.isListening=!1,this.handleError(t,"voice")}),this.speechSynthesis.onStart(()=>{this.isSpeaking=!0}),this.speechSynthesis.onEnd(()=>{this.isSpeaking=!1})}handleSessionIdChange(n){n&&n!==this.internalSessionId&&(this.internalSessionId=n)}componentDidUpdate(){this.scrollToBottom()}disconnectedCallback(){this.speechSynthesis&&this.speechSynthesis.stop()}async sendMessage(n){!n||!n.trim()||await this.handleSendMessage(n)}async clearHistory(){this.messages=[],this.error=""}async speak(n){this.enableTextToSpeech&&this.speechSynthesis&&this.speechSynthesis.speak(n)}async stopSpeaking(){this.speechSynthesis&&this.speechSynthesis.stop()}scrollToBottom(){this.messagesContainerRef&&setTimeout(()=>{this.messagesContainerRef.scrollTop=this.messagesContainerRef.scrollHeight},100)}render(){return this.error&&!this.apiEndpoint?r(b,null,r("div",{class:"xplor-assistant xplor-assistant--error"},r("div",{class:"xplor-assistant__error-message"},this.error))):r(b,null,r("div",{class:{"xplor-assistant":!0,"xplor-assistant--disabled":this.disabled},style:{maxHeight:this.maxHeight}},r("div",{class:"xplor-assistant__messages",ref:n=>this.messagesContainerRef=n,role:"log","aria-live":"polite","aria-busy":this.isLoading?"true":"false"},this.messages.map(n=>r(Ur,{message:n,enableTextToSpeech:this.enableTextToSpeech,autoSpeak:!1,isSpeaking:this.isSpeaking,onSpeak:this.handleSpeak,onStopSpeaking:this.handleStopSpeaking})),this.isLoading&&r("div",{class:"xplor-assistant__message xplor-assistant__message--assistant"},r(Yr,null)),this.error&&this.apiEndpoint&&r("div",{class:"xplor-assistant__error-banner"},this.error)),this.quickReplies&&this.quickReplies.length>0&&r(Kr,{replies:this.quickReplies,disabled:this.disabled||this.isLoading,onReplyClick:this.handleQuickReply}),r(Wr,{placeholder:this.placeholder,disabled:this.disabled,isLoading:this.isLoading,enableVoiceInput:this.enableVoiceInput&&this.hasVoiceSupport,isListening:this.isListening,onSendMessage:this.handleSendMessage,onStartListening:this.handleStartListening,onStopListening:this.handleStopListening,inputValue:this.inputValue,setInputValue:this.setInputValue})))}get el(){return this}static get watchers(){return{sessionId:["handleSessionIdChange"]}}static get style(){return Vr}},[2,"xplor-assistant",{apiEndpoint:[1,"api-endpoint"],userId:[1,"user-id"],userEmail:[1,"user-email"],userName:[1,"user-name"],sessionId:[1,"session-id"],quickReplies:[16,"quick-replies"],placeholder:[1],enableVoiceInput:[4,"enable-voice-input"],enableTextToSpeech:[4,"enable-text-to-speech"],autoSpeak:[4,"auto-speak"],maxHeight:[1,"max-height"],disabled:[4],messages:[32],internalSessionId:[32],isLoading:[32],isListening:[32],isSpeaking:[32],error:[32],inputValue:[32],hasVoiceSupport:[32],hasTTSSupport:[32],sendMessage:[64],clearHistory:[64],speak:[64],stopSpeaking:[64]},void 0,{sessionId:["handleSessionIdChange"]}]);function Qr(){if(typeof customElements>"u")return;["xplor-assistant"].forEach(n=>{switch(n){case"xplor-assistant":customElements.get(n)||customElements.define(n,ge);break}})}const Gr=ge,Zr=Qr,Jr=`@tailwind base;
2055
2055
  @tailwind components;
2056
2056
  @tailwind utilities;
2057
2057
  @layer base {
@@ -2490,7 +2490,7 @@ ol.mdc-list.sc-xplor-autocomplete li.mdc-list-item.sc-xplor-autocomplete, ul.mdc
2490
2490
  text-align: center;
2491
2491
  color: #757575;
2492
2492
  font-size: 0.875rem;
2493
- }`,xe=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=x(this,"xplorChange"),this.xplorSelect=x(this,"xplorSelect"),this.xplorClear=x(this,"xplorClear"),this.xplorSearch=x(this,"xplorSearch"),this.items=[],this.value=null,this.placeholder="Search...",this.disabled=!1,this.readonly=!1,this.clearable=!1,this.multiple=!1,this.minSearchLength=0,this.itemValue="value",this.itemText="label",this.menuMaxWidth="100%",this.isOpen=!1,this.searchQuery="",this.filteredItems=[],this.selectedItems=[],this.highlightedIndex=-1,this.handleInputFocus=()=>{this.disabled||this.readonly||(this.isOpen=!0,this.highlightedIndex=-1)},this.handleInputChange=n=>{const t=n.target;this.searchQuery=t.value,this.filterItems(),this.isOpen=!0,this.highlightedIndex=-1,this.xplorSearch.emit(this.searchQuery),!this.multiple&&this.searchQuery===""&&(this.value=null,this.xplorChange.emit(null))},this.handleInputKeyDown=n=>{var t;if(!(this.disabled||this.readonly))switch(n.key){case"ArrowDown":n.preventDefault(),this.isOpen=!0,this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredItems.length-1),this.scrollToHighlighted();break;case"ArrowUp":n.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,-1),this.scrollToHighlighted();break;case"Enter":n.preventDefault(),this.highlightedIndex>=0&&this.highlightedIndex<this.filteredItems.length&&this.selectItem(this.filteredItems[this.highlightedIndex]);break;case"Escape":n.preventDefault(),this.isOpen=!1,(t=this.inputEl)===null||t===void 0||t.blur();break;case"Backspace":this.multiple&&this.searchQuery===""&&this.selectedItems.length>0&&(n.preventDefault(),this.removeItem(this.selectedItems[this.selectedItems.length-1]));break}},this.handleClear=()=>{var n;this.value=this.multiple?[]:null,this.selectedItems=[],this.searchQuery="",this.filterItems(),this.xplorChange.emit(this.value),this.xplorClear.emit(),(n=this.inputEl)===null||n===void 0||n.focus()}}getItemValue(n){return n[this.itemValue]!==void 0?n[this.itemValue]:n.value}getItemText(n){return n[this.itemText]!==void 0?String(n[this.itemText]):String(n.label)}componentWillLoad(){if(this.filterItems(),this.value!==null){if(this.multiple&&Array.isArray(this.value))this.selectedItems=this.value;else if(!this.multiple){const n=this.items.find(t=>this.getItemValue(t)===this.value);n&&(this.searchQuery=this.getItemText(n))}}}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}filterItems(){if(this.searchQuery.length<this.minSearchLength){this.filteredItems=this.items;return}const n=this.searchQuery.toLowerCase();this.filteredItems=this.items.filter(t=>this.getItemText(t).toLowerCase().includes(n))}scrollToHighlighted(){if(this.dropdownEl&&this.highlightedIndex>=0){const n=this.dropdownEl.querySelector(`[data-index="${this.highlightedIndex}"]`);n&&n.scrollIntoView({block:"nearest"})}}selectItem(n){var t;if(n.disabled)return;const o=this.getItemValue(n);this.multiple?(this.selectedItems.includes(o)||(this.selectedItems=[...this.selectedItems,o],this.value=this.selectedItems,this.xplorChange.emit(this.value)),this.searchQuery="",this.filterItems()):(this.value=o,this.searchQuery=this.getItemText(n),this.isOpen=!1,this.xplorChange.emit(this.value)),this.xplorSelect.emit(n),(t=this.inputEl)===null||t===void 0||t.focus()}removeItem(n){this.selectedItems=this.selectedItems.filter(t=>t!==n),this.value=this.selectedItems,this.xplorChange.emit(this.value)}getSelectedItemLabel(n){const t=this.items.find(o=>this.getItemValue(o)===n);return t?this.getItemText(t):n}findItemByValue(n){return this.items.find(t=>this.getItemValue(t)===n)}render(){const n=this.multiple?this.selectedItems.length>0:this.value!==null&&this.searchQuery!=="";return r(h,{key:"3f88b352e99fbaf327995f2392b22a589a838c72"},r("div",{key:"358c6a0fbae370f7225c17f9b859edc0d5a1cfc5",class:{autocomplete:!0,"autocomplete--disabled":this.disabled,"autocomplete--readonly":this.readonly,"autocomplete--open":this.isOpen}},this.label&&r("label",{key:"e07d2fc33354bef628b7361eeb924cf00eafb989",class:"autocomplete__label"},this.label),r("div",{key:"455efa54f13e4aa22d62df4f30dbfb42540d4baf",class:"autocomplete__input-wrapper"},this.multiple&&this.selectedItems.length>0&&r("div",{key:"e1f68cc007e84feb11f01bfcde8294a3b3a52122",class:"autocomplete__chips"},this.selectedItems.map(t=>{const o=this.findItemByValue(t);return r("div",{class:"autocomplete__chip"},r("span",{class:"autocomplete__chip-label"},this.renderSelection&&o?this.renderSelection(o):this.getSelectedItemLabel(t)),r("button",{type:"button",class:"autocomplete__chip-remove",onClick:()=>this.removeItem(t),disabled:this.disabled||this.readonly},"×"))})),r("input",{key:"bfe3af918668f6003e11b3e331d7875773c31848",ref:t=>this.inputEl=t,type:"text",class:"autocomplete__input",placeholder:this.placeholder,value:this.searchQuery,onFocus:this.handleInputFocus,onInput:this.handleInputChange,onKeyDown:this.handleInputKeyDown,disabled:this.disabled,readonly:this.readonly,autocomplete:"off"}),r("div",{key:"6198fb2b029bd365c9929bdfe0b82815b3dd6bf2",class:"autocomplete__actions"},this.clearable&&n&&!this.disabled&&!this.readonly&&r("button",{key:"e997555b393f60ae3f4affd803a92ba39e95b48b",type:"button",class:"autocomplete__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("span",{key:"0eab80a3ce9e55e403758ba0a53e89e7c3d3a36e",class:"autocomplete__icon"},"▼"))),this.isOpen&&this.filteredItems.length>0&&r("div",{key:"37a77dc04d78b8c8cdc4decedf65f0adda67f626",class:"autocomplete__dropdown",ref:t=>this.dropdownEl=t,style:{maxWidth:this.menuMaxWidth}},this.filteredItems.map((t,o)=>{const i=this.getItemValue(t);return r("div",{key:i,"data-index":o,class:{autocomplete__item:!0,"autocomplete__item--highlighted":o===this.highlightedIndex,"autocomplete__item--selected":this.multiple?this.selectedItems.includes(i):this.value===i,"autocomplete__item--disabled":t.disabled},onClick:()=>this.selectItem(t)},this.renderItem?this.renderItem(t):this.getItemText(t))})),this.isOpen&&this.filteredItems.length===0&&r("div",{key:"0f27440009a83374a615acf39b400181f4c7189f",class:"autocomplete__dropdown",style:{maxWidth:this.menuMaxWidth}},r("div",{key:"634fb46e7f539c1cddfa11f2a30f80e34a684913",class:"autocomplete__no-results"},"No results found"))))}get el(){return this}static get style(){return Zr}},[2,"xplor-autocomplete",{items:[16],value:[1032],placeholder:[1],label:[1],disabled:[4],readonly:[4],clearable:[4],multiple:[4],minSearchLength:[2,"min-search-length"],itemValue:[1,"item-value"],itemText:[1,"item-text"],menuMaxWidth:[1,"menu-max-width"],renderItem:[16,"render-item"],renderSelection:[16,"render-selection"],isOpen:[32],searchQuery:[32],filteredItems:[32],selectedItems:[32],highlightedIndex:[32]},[[4,"click","handleDocumentClick"]]]);function Jr(){if(typeof customElements>"u")return;["xplor-autocomplete"].forEach(n=>{switch(n){case"xplor-autocomplete":customElements.get(n)||customElements.define(n,xe);break}})}const Nr=xe,no=Jr,eo=`/* on mobile browsers, I set a width of 100% */
2493
+ }`,xe=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=m(this,"xplorChange"),this.xplorSelect=m(this,"xplorSelect"),this.xplorClear=m(this,"xplorClear"),this.xplorSearch=m(this,"xplorSearch"),this.items=[],this.value=null,this.placeholder="Search...",this.disabled=!1,this.readonly=!1,this.clearable=!1,this.multiple=!1,this.minSearchLength=0,this.itemValue="value",this.itemText="label",this.menuMaxWidth="100%",this.isOpen=!1,this.searchQuery="",this.filteredItems=[],this.selectedItems=[],this.highlightedIndex=-1,this.handleInputFocus=()=>{this.disabled||this.readonly||(this.isOpen=!0,this.highlightedIndex=-1)},this.handleInputChange=n=>{const t=n.target;this.searchQuery=t.value,this.filterItems(),this.isOpen=!0,this.highlightedIndex=-1,this.xplorSearch.emit(this.searchQuery),!this.multiple&&this.searchQuery===""&&(this.value=null,this.xplorChange.emit(null))},this.handleInputKeyDown=n=>{var t;if(!(this.disabled||this.readonly))switch(n.key){case"ArrowDown":n.preventDefault(),this.isOpen=!0,this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredItems.length-1),this.scrollToHighlighted();break;case"ArrowUp":n.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,-1),this.scrollToHighlighted();break;case"Enter":n.preventDefault(),this.highlightedIndex>=0&&this.highlightedIndex<this.filteredItems.length&&this.selectItem(this.filteredItems[this.highlightedIndex]);break;case"Escape":n.preventDefault(),this.isOpen=!1,(t=this.inputEl)===null||t===void 0||t.blur();break;case"Backspace":this.multiple&&this.searchQuery===""&&this.selectedItems.length>0&&(n.preventDefault(),this.removeItem(this.selectedItems[this.selectedItems.length-1]));break}},this.handleClear=()=>{var n;this.value=this.multiple?[]:null,this.selectedItems=[],this.searchQuery="",this.filterItems(),this.xplorChange.emit(this.value),this.xplorClear.emit(),(n=this.inputEl)===null||n===void 0||n.focus()}}getItemValue(n){return n[this.itemValue]!==void 0?n[this.itemValue]:n.value}getItemText(n){return n[this.itemText]!==void 0?String(n[this.itemText]):String(n.label)}componentWillLoad(){if(this.filterItems(),this.value!==null){if(this.multiple&&Array.isArray(this.value))this.selectedItems=this.value;else if(!this.multiple){const n=this.items.find(t=>this.getItemValue(t)===this.value);n&&(this.searchQuery=this.getItemText(n))}}}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}filterItems(){if(this.searchQuery.length<this.minSearchLength){this.filteredItems=this.items;return}const n=this.searchQuery.toLowerCase();this.filteredItems=this.items.filter(t=>this.getItemText(t).toLowerCase().includes(n))}scrollToHighlighted(){if(this.dropdownEl&&this.highlightedIndex>=0){const n=this.dropdownEl.querySelector(`[data-index="${this.highlightedIndex}"]`);n&&n.scrollIntoView({block:"nearest"})}}selectItem(n){var t;if(n.disabled)return;const o=this.getItemValue(n);this.multiple?(this.selectedItems.includes(o)||(this.selectedItems=[...this.selectedItems,o],this.value=this.selectedItems,this.xplorChange.emit(this.value)),this.searchQuery="",this.filterItems()):(this.value=o,this.searchQuery=this.getItemText(n),this.isOpen=!1,this.xplorChange.emit(this.value)),this.xplorSelect.emit(n),(t=this.inputEl)===null||t===void 0||t.focus()}removeItem(n){this.selectedItems=this.selectedItems.filter(t=>t!==n),this.value=this.selectedItems,this.xplorChange.emit(this.value)}getSelectedItemLabel(n){const t=this.items.find(o=>this.getItemValue(o)===n);return t?this.getItemText(t):n}findItemByValue(n){return this.items.find(t=>this.getItemValue(t)===n)}render(){const n=this.multiple?this.selectedItems.length>0:this.value!==null&&this.searchQuery!=="",t="autocomplete-listbox",o="autocomplete-label",i=this.highlightedIndex>=0?`autocomplete-option-${this.highlightedIndex}`:void 0;return r(b,{key:"f76ac5f9d1cd6e6c9618ac3884bc86a2bfabb3c5"},r("div",{key:"efd2bd854c305c56971b5d6e19a5b9eb497099f8",class:{autocomplete:!0,"autocomplete--disabled":this.disabled,"autocomplete--readonly":this.readonly,"autocomplete--open":this.isOpen}},this.label&&r("label",{key:"97bb161105b66181558d22519c9f0cd1287b2c49",class:"autocomplete__label",id:o},this.label),r("div",{key:"128acf53793205be89a8d619ce548107aaed8b28",class:"autocomplete__input-wrapper"},this.multiple&&this.selectedItems.length>0&&r("div",{key:"670da50897139688951c077db4b6116b88bfadfa",class:"autocomplete__chips"},this.selectedItems.map(a=>{const l=this.findItemByValue(a),s=this.getSelectedItemLabel(a);return r("div",{class:"autocomplete__chip"},r("span",{class:"autocomplete__chip-label"},this.renderSelection&&l?this.renderSelection(l):s),r("button",{type:"button",class:"autocomplete__chip-remove",onClick:()=>this.removeItem(a),disabled:this.disabled||this.readonly,"aria-label":`Remove ${s}`},"×"))})),r("input",{key:"25e9e5111726cd720ab88a4a5ae25f84b48eee1e",ref:a=>this.inputEl=a,type:"text",class:"autocomplete__input",placeholder:this.placeholder,value:this.searchQuery,onFocus:this.handleInputFocus,onInput:this.handleInputChange,onKeyDown:this.handleInputKeyDown,disabled:this.disabled,readonly:this.readonly,autocomplete:"off",role:"combobox","aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-controls":this.isOpen?t:void 0,"aria-activedescendant":i,"aria-labelledby":this.label?o:void 0,"aria-label":this.label?void 0:this.ariaLabel||this.placeholder,"aria-autocomplete":"list"}),r("div",{key:"5128b893c4743a49439a279b0cb7094077ebd528",class:"autocomplete__actions"},this.clearable&&n&&!this.disabled&&!this.readonly&&r("button",{key:"512d7956e79d9767e072462f1ec309b081716c86",type:"button",class:"autocomplete__clear",onClick:this.handleClear,"aria-label":"Clear selection"},"×"),r("span",{key:"e0cfba3c1513b63f9697835ad6919d045c7011db",class:"autocomplete__icon","aria-hidden":"true"},"▼"))),this.isOpen&&this.filteredItems.length>0&&r("div",{key:"9c100abedb5ee252df82994722c0da9d5787d1bf",class:"autocomplete__dropdown",ref:a=>this.dropdownEl=a,style:{maxWidth:this.menuMaxWidth},role:"listbox",id:t,"aria-label":this.label||this.ariaLabel||"Suggestions"},this.filteredItems.map((a,l)=>{const s=this.getItemValue(a),c=this.multiple?this.selectedItems.includes(s):this.value===s;return r("div",{key:s,id:`autocomplete-option-${l}`,"data-index":l,role:"option","aria-selected":c?"true":"false","aria-disabled":a.disabled?"true":void 0,class:{autocomplete__item:!0,"autocomplete__item--highlighted":l===this.highlightedIndex,"autocomplete__item--selected":c,"autocomplete__item--disabled":a.disabled},onClick:()=>this.selectItem(a)},this.renderItem?this.renderItem(a):this.getItemText(a))})),this.isOpen&&this.filteredItems.length===0&&r("div",{key:"329f92d7f4bf36bb114909853e249978412ae82f",class:"autocomplete__dropdown",style:{maxWidth:this.menuMaxWidth},role:"listbox",id:t},r("div",{key:"400e97f955724f59830fb37b52d99c3723627e51",class:"autocomplete__no-results",role:"option","aria-disabled":"true"},"No results found"))))}get el(){return this}static get style(){return Jr}},[2,"xplor-autocomplete",{items:[16],value:[1032],placeholder:[1],label:[1],ariaLabel:[1,"aria-label"],disabled:[4],readonly:[4],clearable:[4],multiple:[4],minSearchLength:[2,"min-search-length"],itemValue:[1,"item-value"],itemText:[1,"item-text"],menuMaxWidth:[1,"menu-max-width"],renderItem:[16,"render-item"],renderSelection:[16,"render-selection"],isOpen:[32],searchQuery:[32],filteredItems:[32],selectedItems:[32],highlightedIndex:[32]},[[4,"click","handleDocumentClick"]]]);function Nr(){if(typeof customElements>"u")return;["xplor-autocomplete"].forEach(n=>{switch(n){case"xplor-autocomplete":customElements.get(n)||customElements.define(n,xe);break}})}const no=xe,eo=Nr,to=`/* on mobile browsers, I set a width of 100% */
2494
2494
  @tailwind base;
2495
2495
  @tailwind components;
2496
2496
  @tailwind utilities;
@@ -2760,7 +2760,7 @@ ul.mdc-list li.mdc-list-item {
2760
2760
 
2761
2761
  :host {
2762
2762
  display: block;
2763
- }`,me=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.disabled=!1}render(){let n="xpl-avatar";this.size&&(n+=` xpl-avatar--${this.size}`),this.color&&(n+=` xpl-avatar--${this.color}`);const t=r("div",{key:"2e2722f2649108b7fdc3fd51375e17ac47e6f1ff"},this.src?r("img",{alt:this.name,src:this.src}):r("div",{class:"xpl-avatar__placeholder"},r("slot",null)),this.status&&r("div",{key:"1367e8fccd661b566d95cb1bf3a20467be7bc40f",class:`xpl-avatar__dot--${this.status}`}));return r(h,{key:"ac12deb4b322146d75c650ba0abe6d96c35efd67"},this.href&&!this.disabled?r("a",{href:this.href,class:n,target:this.target},t):this.href&&this.disabled?r("div",{class:n+" xpl-avatar--disabled"},t):r("div",{class:n},t))}static get style(){return eo}},[1,"xplor-avatar",{color:[1],disabled:[4],href:[1],name:[1],size:[1],src:[1],status:[1],target:[1]}]);function be(){if(typeof customElements>"u")return;["xplor-avatar"].forEach(n=>{switch(n){case"xplor-avatar":customElements.get(n)||customElements.define(n,me);break}})}const to=`@tailwind base;
2763
+ }`,me=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.disabled=!1}render(){let n="xpl-avatar";this.size&&(n+=` xpl-avatar--${this.size}`),this.color&&(n+=` xpl-avatar--${this.color}`);const t=r("div",{key:"2e2722f2649108b7fdc3fd51375e17ac47e6f1ff"},this.src?r("img",{alt:this.name,src:this.src}):r("div",{class:"xpl-avatar__placeholder"},r("slot",null)),this.status&&r("div",{key:"26fa57a9a697a110ef73434376715eda0e5134a5",class:`xpl-avatar__dot--${this.status}`,"aria-label":`Status: ${this.status}`,role:"img"}));return r(b,{key:"9c99cec20679f0d10fbcf9dffc70877c0dc879f9"},this.href&&!this.disabled?r("a",{href:this.href,class:n,target:this.target},t):this.href&&this.disabled?r("div",{class:n+" xpl-avatar--disabled"},t):r("div",{class:n},t))}static get style(){return to}},[1,"xplor-avatar",{color:[1],disabled:[4],href:[1],name:[1],size:[1],src:[1],status:[1],target:[1]}]);function he(){if(typeof customElements>"u")return;["xplor-avatar"].forEach(n=>{switch(n){case"xplor-avatar":customElements.get(n)||customElements.define(n,me);break}})}const ro=`@tailwind base;
2764
2764
  @tailwind components;
2765
2765
  @tailwind utilities;
2766
2766
  @layer base {
@@ -3025,7 +3025,7 @@ ol.mdc-list.sc-xplor-avatar-and-name li.mdc-list-item.sc-xplor-avatar-and-name,
3025
3025
  font-weight: 500;
3026
3026
  color: #212121;
3027
3027
  line-height: 1.5;
3028
- }`,he=v(class extends y{constructor(){super(),this.__registerHost(),this.size="md"}render(){return r(h,{key:"adf60fff779f4cc4bf31c20468c6372c6cef675b"},r("div",{key:"1c94683794ed122c7c1456e4abf7ae60f6458dd0",class:"avatar-and-name"},r("xplor-avatar",{key:"f37593d3b66ea539fefebadc9ff8e1657bd4a645",name:this.name,src:this.src,size:this.size,color:this.color,status:this.status},!this.src&&this.name&&this.name.charAt(0).toUpperCase()),r("span",{key:"663d209d1a1fd4cf70198f1b4a08d71263b201d5",class:"avatar-and-name__text"},r("slot",{key:"611eb31cc972f67f1a9d184eb844b4c2134f0f9f"},this.name))))}static get style(){return to}},[6,"xplor-avatar-and-name",{name:[1],src:[1],size:[1],color:[1],status:[1]}]);function ro(){if(typeof customElements>"u")return;["xplor-avatar-and-name","xplor-avatar"].forEach(n=>{switch(n){case"xplor-avatar-and-name":customElements.get(n)||customElements.define(n,he);break;case"xplor-avatar":customElements.get(n)||be();break}})}const oo=he,io=ro,ao=me,lo=be,so=`@tailwind base;
3028
+ }`,be=v(class extends y{constructor(){super(),this.__registerHost(),this.size="md"}render(){return r(b,{key:"adf60fff779f4cc4bf31c20468c6372c6cef675b"},r("div",{key:"1c94683794ed122c7c1456e4abf7ae60f6458dd0",class:"avatar-and-name"},r("xplor-avatar",{key:"f37593d3b66ea539fefebadc9ff8e1657bd4a645",name:this.name,src:this.src,size:this.size,color:this.color,status:this.status},!this.src&&this.name&&this.name.charAt(0).toUpperCase()),r("span",{key:"663d209d1a1fd4cf70198f1b4a08d71263b201d5",class:"avatar-and-name__text"},r("slot",{key:"611eb31cc972f67f1a9d184eb844b4c2134f0f9f"},this.name))))}static get style(){return ro}},[6,"xplor-avatar-and-name",{name:[1],src:[1],size:[1],color:[1],status:[1]}]);function oo(){if(typeof customElements>"u")return;["xplor-avatar-and-name","xplor-avatar"].forEach(n=>{switch(n){case"xplor-avatar-and-name":customElements.get(n)||customElements.define(n,be);break;case"xplor-avatar":customElements.get(n)||he();break}})}const io=be,ao=oo,lo=me,so=he,co=`@tailwind base;
3029
3029
  @tailwind components;
3030
3030
  @tailwind utilities;
3031
3031
  @layer base {
@@ -3286,7 +3286,7 @@ ol.mdc-list.sc-xplor-badge-active li.mdc-list-item.sc-xplor-badge-active, ul.mdc
3286
3286
  padding: 4px 12px;
3287
3287
  border-radius: 16px;
3288
3288
  display: inline-block;
3289
- }`,ue=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"821006a66a77dcb1380c039c7f5932accb290e30"},r("span",{key:"48942c3389b30d05660061e82ef9461842c38ea8",class:"xplor-badge-active"},"Active"))}static get style(){return so}},[2,"xplor-badge-active"]);function co(){if(typeof customElements>"u")return;["xplor-badge-active"].forEach(n=>{switch(n){case"xplor-badge-active":customElements.get(n)||customElements.define(n,ue);break}})}const po=ue,go=co,xo=`@tailwind base;
3289
+ }`,ue=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"821006a66a77dcb1380c039c7f5932accb290e30"},r("span",{key:"48942c3389b30d05660061e82ef9461842c38ea8",class:"xplor-badge-active"},"Active"))}static get style(){return co}},[2,"xplor-badge-active"]);function po(){if(typeof customElements>"u")return;["xplor-badge-active"].forEach(n=>{switch(n){case"xplor-badge-active":customElements.get(n)||customElements.define(n,ue);break}})}const go=ue,xo=po,mo=`@tailwind base;
3290
3290
  @tailwind components;
3291
3291
  @tailwind utilities;
3292
3292
  @layer base {
@@ -3547,7 +3547,7 @@ ol.mdc-list.sc-xplor-badge-archived li.mdc-list-item.sc-xplor-badge-archived, ul
3547
3547
  padding: 4px 12px;
3548
3548
  border-radius: 16px;
3549
3549
  display: inline-block;
3550
- }`,fe=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"599e09f32f830d73850b5ec237839da8a7121c80"},r("span",{key:"844fd6e6bc86467cfe4be78922462d7a8da3a3ce",class:"xplor-badge-archived"},"Archived"))}static get style(){return xo}},[2,"xplor-badge-archived"]);function mo(){if(typeof customElements>"u")return;["xplor-badge-archived"].forEach(n=>{switch(n){case"xplor-badge-archived":customElements.get(n)||customElements.define(n,fe);break}})}const bo=fe,ho=mo,uo=`@tailwind base;
3550
+ }`,fe=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"599e09f32f830d73850b5ec237839da8a7121c80"},r("span",{key:"844fd6e6bc86467cfe4be78922462d7a8da3a3ce",class:"xplor-badge-archived"},"Archived"))}static get style(){return mo}},[2,"xplor-badge-archived"]);function ho(){if(typeof customElements>"u")return;["xplor-badge-archived"].forEach(n=>{switch(n){case"xplor-badge-archived":customElements.get(n)||customElements.define(n,fe);break}})}const bo=fe,uo=ho,fo=`@tailwind base;
3551
3551
  @tailwind components;
3552
3552
  @tailwind utilities;
3553
3553
  @layer base {
@@ -3808,7 +3808,7 @@ ol.mdc-list.sc-xplor-badge-deleted li.mdc-list-item.sc-xplor-badge-deleted, ul.m
3808
3808
  padding: 4px 12px;
3809
3809
  border-radius: 16px;
3810
3810
  display: inline-block;
3811
- }`,ye=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"df3f8b3c1375d524ab3d43973744d60c2abfaac5"},r("span",{key:"61801350159e59fe22fd75ebe81d0c6601df3de7",class:"xplor-badge-deleted"},"Deleted"))}static get style(){return uo}},[2,"xplor-badge-deleted"]);function fo(){if(typeof customElements>"u")return;["xplor-badge-deleted"].forEach(n=>{switch(n){case"xplor-badge-deleted":customElements.get(n)||customElements.define(n,ye);break}})}const yo=ye,vo=fo,ko=`@tailwind base;
3811
+ }`,ye=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"df3f8b3c1375d524ab3d43973744d60c2abfaac5"},r("span",{key:"61801350159e59fe22fd75ebe81d0c6601df3de7",class:"xplor-badge-deleted"},"Deleted"))}static get style(){return fo}},[2,"xplor-badge-deleted"]);function yo(){if(typeof customElements>"u")return;["xplor-badge-deleted"].forEach(n=>{switch(n){case"xplor-badge-deleted":customElements.get(n)||customElements.define(n,ye);break}})}const vo=ye,ko=yo,wo=`@tailwind base;
3812
3812
  @tailwind components;
3813
3813
  @tailwind utilities;
3814
3814
  @layer base {
@@ -4069,7 +4069,7 @@ ol.mdc-list.sc-xplor-badge-expired li.mdc-list-item.sc-xplor-badge-expired, ul.m
4069
4069
  padding: 4px 12px;
4070
4070
  border-radius: 16px;
4071
4071
  display: inline-block;
4072
- }`,ve=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"fed692675532969ab1353a505743baf529ee8267"},r("span",{key:"780c2bf72f1b4d0f6dc2057ac1b4fc2c29e9b479",class:"xplor-badge-expired"},"Expired"))}static get style(){return ko}},[2,"xplor-badge-expired"]);function wo(){if(typeof customElements>"u")return;["xplor-badge-expired"].forEach(n=>{switch(n){case"xplor-badge-expired":customElements.get(n)||customElements.define(n,ve);break}})}const _o=ve,Co=wo,$o=`@tailwind base;
4072
+ }`,ve=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"fed692675532969ab1353a505743baf529ee8267"},r("span",{key:"780c2bf72f1b4d0f6dc2057ac1b4fc2c29e9b479",class:"xplor-badge-expired"},"Expired"))}static get style(){return wo}},[2,"xplor-badge-expired"]);function _o(){if(typeof customElements>"u")return;["xplor-badge-expired"].forEach(n=>{switch(n){case"xplor-badge-expired":customElements.get(n)||customElements.define(n,ve);break}})}const Co=ve,$o=_o,Io=`@tailwind base;
4073
4073
  @tailwind components;
4074
4074
  @tailwind utilities;
4075
4075
  @layer base {
@@ -4330,7 +4330,7 @@ ol.mdc-list.sc-xplor-badge-inactive li.mdc-list-item.sc-xplor-badge-inactive, ul
4330
4330
  padding: 4px 12px;
4331
4331
  border-radius: 16px;
4332
4332
  display: inline-block;
4333
- }`,ke=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"91648179b68ae6aa6db61292bf53b27761b7e00a"},r("span",{key:"08eab77d253bf84f767f78e0ee147147d7b999ef",class:"xplor-badge-inactive"},"Inactive"))}static get style(){return $o}},[2,"xplor-badge-inactive"]);function So(){if(typeof customElements>"u")return;["xplor-badge-inactive"].forEach(n=>{switch(n){case"xplor-badge-inactive":customElements.get(n)||customElements.define(n,ke);break}})}const Io=ke,Eo=So,zo=`@tailwind base;
4333
+ }`,ke=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"91648179b68ae6aa6db61292bf53b27761b7e00a"},r("span",{key:"08eab77d253bf84f767f78e0ee147147d7b999ef",class:"xplor-badge-inactive"},"Inactive"))}static get style(){return Io}},[2,"xplor-badge-inactive"]);function So(){if(typeof customElements>"u")return;["xplor-badge-inactive"].forEach(n=>{switch(n){case"xplor-badge-inactive":customElements.get(n)||customElements.define(n,ke);break}})}const Eo=ke,zo=So,To=`@tailwind base;
4334
4334
  @tailwind components;
4335
4335
  @tailwind utilities;
4336
4336
  @layer base {
@@ -4591,7 +4591,7 @@ ol.mdc-list.sc-xplor-badge-recalled li.mdc-list-item.sc-xplor-badge-recalled, ul
4591
4591
  padding: 4px 12px;
4592
4592
  border-radius: 16px;
4593
4593
  display: inline-block;
4594
- }`,we=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"9233d1e70a44d0b058b44f42afab990f4bdb851d"},r("span",{key:"be98dcedb815e3df2c68c94ba21b7084f55523a7",class:"xplor-badge-recalled"},"Recalled"))}static get style(){return zo}},[2,"xplor-badge-recalled"]);function To(){if(typeof customElements>"u")return;["xplor-badge-recalled"].forEach(n=>{switch(n){case"xplor-badge-recalled":customElements.get(n)||customElements.define(n,we);break}})}const Do=we,Xo=To,Lo=`@tailwind base;
4594
+ }`,we=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"9233d1e70a44d0b058b44f42afab990f4bdb851d"},r("span",{key:"be98dcedb815e3df2c68c94ba21b7084f55523a7",class:"xplor-badge-recalled"},"Recalled"))}static get style(){return To}},[2,"xplor-badge-recalled"]);function Do(){if(typeof customElements>"u")return;["xplor-badge-recalled"].forEach(n=>{switch(n){case"xplor-badge-recalled":customElements.get(n)||customElements.define(n,we);break}})}const Lo=we,Fo=Do,Xo=`@tailwind base;
4595
4595
  @tailwind components;
4596
4596
  @tailwind utilities;
4597
4597
  @layer base {
@@ -4872,7 +4872,7 @@ ol.mdc-list.sc-xplor-badge-session-booking li.mdc-list-item.sc-xplor-badge-sessi
4872
4872
  }
4873
4873
  .xplor-badge-session-booking--waived.sc-xplor-badge-session-booking {
4874
4874
  opacity: 0.5;
4875
- }`,_e=v(class extends y{constructor(){super(),this.__registerHost()}getBookingTypeClass(){var n,t;const o=["xplor-badge-session-booking"];switch((n=this.booking)===null||n===void 0?void 0:n.type){case"absence":o.push("xplor-badge-session-booking--absent");break;case"attendance":o.push("xplor-badge-session-booking--attend");break;case"holiday":o.push("xplor-badge-session-booking--holiday");break;default:o.push("xplor-badge-session-booking--default");break}return!((t=this.item)===null||t===void 0)&&t.ccs_gap_fee_is_waived&&o.push("xplor-badge-session-booking--waived"),o.join(" ")}render(){return r(h,{key:"2de356577c682b61f7bab3df1963df5b23884a19"},r("span",{key:"810ab3316b54ada35c0352a5ae47f60a4590b986",class:this.getBookingTypeClass()},r("slot",{key:"7da46c8b9e18ee6a1553a088bea17494e0aee832"})))}static get style(){return Lo}},[6,"xplor-badge-session-booking",{booking:[16],item:[16]}]);function Bo(){if(typeof customElements>"u")return;["xplor-badge-session-booking"].forEach(n=>{switch(n){case"xplor-badge-session-booking":customElements.get(n)||customElements.define(n,_e);break}})}const Fo=_e,Ao=Bo,Mo=`@tailwind base;
4875
+ }`,_e=v(class extends y{constructor(){super(),this.__registerHost()}getBookingTypeClass(){var n,t;const o=["xplor-badge-session-booking"];switch((n=this.booking)===null||n===void 0?void 0:n.type){case"absence":o.push("xplor-badge-session-booking--absent");break;case"attendance":o.push("xplor-badge-session-booking--attend");break;case"holiday":o.push("xplor-badge-session-booking--holiday");break;default:o.push("xplor-badge-session-booking--default");break}return!((t=this.item)===null||t===void 0)&&t.ccs_gap_fee_is_waived&&o.push("xplor-badge-session-booking--waived"),o.join(" ")}render(){return r(b,{key:"2de356577c682b61f7bab3df1963df5b23884a19"},r("span",{key:"810ab3316b54ada35c0352a5ae47f60a4590b986",class:this.getBookingTypeClass()},r("slot",{key:"7da46c8b9e18ee6a1553a088bea17494e0aee832"})))}static get style(){return Xo}},[6,"xplor-badge-session-booking",{booking:[16],item:[16]}]);function Ao(){if(typeof customElements>"u")return;["xplor-badge-session-booking"].forEach(n=>{switch(n){case"xplor-badge-session-booking":customElements.get(n)||customElements.define(n,_e);break}})}const Bo=_e,Mo=Ao,Po=`@tailwind base;
4876
4876
  @tailwind components;
4877
4877
  @tailwind utilities;
4878
4878
  @layer base {
@@ -5133,7 +5133,7 @@ ol.mdc-list.sc-xplor-badge-upcoming li.mdc-list-item.sc-xplor-badge-upcoming, ul
5133
5133
  padding: 4px 12px;
5134
5134
  border-radius: 16px;
5135
5135
  display: inline-block;
5136
- }`,Ce=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"51078127992721291d5b557148239d657b050ad4"},r("span",{key:"cd95ea48dad3fb544df80a70318da7671b8700be",class:"xplor-badge-upcoming"},"Upcoming"))}static get style(){return Mo}},[2,"xplor-badge-upcoming"]);function Po(){if(typeof customElements>"u")return;["xplor-badge-upcoming"].forEach(n=>{switch(n){case"xplor-badge-upcoming":customElements.get(n)||customElements.define(n,Ce);break}})}const Oo=Ce,jo=Po,Ho=`@tailwind base;
5136
+ }`,Ce=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"51078127992721291d5b557148239d657b050ad4"},r("span",{key:"cd95ea48dad3fb544df80a70318da7671b8700be",class:"xplor-badge-upcoming"},"Upcoming"))}static get style(){return Po}},[2,"xplor-badge-upcoming"]);function Oo(){if(typeof customElements>"u")return;["xplor-badge-upcoming"].forEach(n=>{switch(n){case"xplor-badge-upcoming":customElements.get(n)||customElements.define(n,Ce);break}})}const jo=Ce,Ho=Oo,Ro=`@tailwind base;
5137
5137
  @tailwind components;
5138
5138
  @tailwind utilities;
5139
5139
  @layer base {
@@ -5394,7 +5394,7 @@ ol.mdc-list.sc-xplor-badge-waitlist li.mdc-list-item.sc-xplor-badge-waitlist, ul
5394
5394
  padding: 4px 12px;
5395
5395
  border-radius: 16px;
5396
5396
  display: inline-block;
5397
- }`,$e=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(h,{key:"918d4113efa7e206ba15af2ccacdf11950640aaf"},r("span",{key:"697713efbf0a9b86a6af4e7bf102f07a7ad2dd48",class:"xplor-badge-waitlist"},"Waitlist"))}static get style(){return Ho}},[2,"xplor-badge-waitlist"]);function Ro(){if(typeof customElements>"u")return;["xplor-badge-waitlist"].forEach(n=>{switch(n){case"xplor-badge-waitlist":customElements.get(n)||customElements.define(n,$e);break}})}const Uo=$e,qo=Ro,Wo=`@tailwind base;
5397
+ }`,$e=v(class extends y{constructor(){super(),this.__registerHost()}render(){return r(b,{key:"918d4113efa7e206ba15af2ccacdf11950640aaf"},r("span",{key:"697713efbf0a9b86a6af4e7bf102f07a7ad2dd48",class:"xplor-badge-waitlist"},"Waitlist"))}static get style(){return Ro}},[2,"xplor-badge-waitlist"]);function qo(){if(typeof customElements>"u")return;["xplor-badge-waitlist"].forEach(n=>{switch(n){case"xplor-badge-waitlist":customElements.get(n)||customElements.define(n,$e);break}})}const Uo=$e,Wo=qo,Ko=`@tailwind base;
5398
5398
  @tailwind components;
5399
5399
  @tailwind utilities;
5400
5400
  @layer base {
@@ -6475,7 +6475,7 @@ ol.mdc-list.sc-xplor-badge li.mdc-list-item.sc-xplor-badge, ul.mdc-list.sc-xplor
6475
6475
  .xplor-badge--datatable.sc-xplor-badge {
6476
6476
  padding: 8px 12px;
6477
6477
  border-radius: 14px;
6478
- }`,Se=v(class extends y{constructor(){super(),this.__registerHost(),this.backgroundColor="#e3f2fd",this.color="auto",this.threshold=130,this.variant="flat",this.size="medium",this.datatable=!1,this.text=""}calculateLuminance(n,t,o){const[i,a,s]=[n,t,o].map(l=>(l=l/255,l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)));return .2126*i+.7152*a+.0722*s}parseColor(n){if(n.startsWith("#")){const o=n.replace("#","");if(o.length===3){const i=parseInt(o[0]+o[0],16),a=parseInt(o[1]+o[1],16),s=parseInt(o[2]+o[2],16);return{r:i,g:a,b:s}}else if(o.length===6){const i=parseInt(o.substring(0,2),16),a=parseInt(o.substring(2,4),16),s=parseInt(o.substring(4,6),16);return{r:i,g:a,b:s}}}const t=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return t?{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3])}:null}calculateContrastingColor(n){const t=this.parseColor(n);return t?this.calculateLuminance(t.r,t.g,t.b)>.5?"#000000":"#ffffff":"#000000"}get cssVars(){const n={};return n["--xplor-badge-bg"]=this.backgroundColor,this.color==="auto"?n["--xplor-badge-color"]=this.calculateContrastingColor(this.backgroundColor):n["--xplor-badge-color"]=this.color,n}get computedClasses(){return{"xplor-badge":!0,[`xplor-badge--${this.variant}`]:!0,[`xplor-badge--${this.size}`]:!0,"xplor-badge--datatable":this.datatable}}render(){return r(h,{key:"4f0691b5233e85340519a7ead5f3f3508c35c307"},r("span",{key:"1588d8d3a85def71d7e5b5f5883d36ca5a232141",class:this.computedClasses,style:this.cssVars},r("slot",{key:"571aa32299b77b94351ef8a1b66e071fa318c2e5"},this.text)))}static get style(){return Wo}},[6,"xplor-badge",{backgroundColor:[1,"background-color"],color:[1],threshold:[2],variant:[1],size:[1],datatable:[4],text:[1]}]);function Yo(){if(typeof customElements>"u")return;["xplor-badge"].forEach(n=>{switch(n){case"xplor-badge":customElements.get(n)||customElements.define(n,Se);break}})}const Qo=Se,Ko=Yo,Vo=`@tailwind base;
6478
+ }`,Ie=v(class extends y{constructor(){super(),this.__registerHost(),this.backgroundColor="#e3f2fd",this.color="auto",this.threshold=130,this.variant="flat",this.size="medium",this.datatable=!1,this.text=""}calculateLuminance(n,t,o){const[i,a,l]=[n,t,o].map(s=>(s=s/255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)));return .2126*i+.7152*a+.0722*l}parseColor(n){if(n.startsWith("#")){const o=n.replace("#","");if(o.length===3){const i=parseInt(o[0]+o[0],16),a=parseInt(o[1]+o[1],16),l=parseInt(o[2]+o[2],16);return{r:i,g:a,b:l}}else if(o.length===6){const i=parseInt(o.substring(0,2),16),a=parseInt(o.substring(2,4),16),l=parseInt(o.substring(4,6),16);return{r:i,g:a,b:l}}}const t=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return t?{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3])}:null}calculateContrastingColor(n){const t=this.parseColor(n);return t?this.calculateLuminance(t.r,t.g,t.b)>.5?"#000000":"#ffffff":"#000000"}get cssVars(){const n={};return n["--xplor-badge-bg"]=this.backgroundColor,this.color==="auto"?n["--xplor-badge-color"]=this.calculateContrastingColor(this.backgroundColor):n["--xplor-badge-color"]=this.color,n}get computedClasses(){return{"xplor-badge":!0,[`xplor-badge--${this.variant}`]:!0,[`xplor-badge--${this.size}`]:!0,"xplor-badge--datatable":this.datatable}}render(){return r(b,{key:"4f0691b5233e85340519a7ead5f3f3508c35c307"},r("span",{key:"1588d8d3a85def71d7e5b5f5883d36ca5a232141",class:this.computedClasses,style:this.cssVars},r("slot",{key:"571aa32299b77b94351ef8a1b66e071fa318c2e5"},this.text)))}static get style(){return Ko}},[6,"xplor-badge",{backgroundColor:[1,"background-color"],color:[1],threshold:[2],variant:[1],size:[1],datatable:[4],text:[1]}]);function Yo(){if(typeof customElements>"u")return;["xplor-badge"].forEach(n=>{switch(n){case"xplor-badge":customElements.get(n)||customElements.define(n,Ie);break}})}const Vo=Ie,Qo=Yo,Go=`@tailwind base;
6479
6479
  @tailwind components;
6480
6480
  @tailwind utilities;
6481
6481
  @layer base {
@@ -6762,7 +6762,7 @@ ol.mdc-list.sc-xplor-btn-back-to-parent li.mdc-list-item.sc-xplor-btn-back-to-pa
6762
6762
  position: relative;
6763
6763
  top: 0;
6764
6764
  right: 0;
6765
- }`,Ie=v(class extends y{constructor(){super(),this.__registerHost(),this.back=x(this,"back"),this.size="2.25rem",this.inline=!1,this.bgColor="white",this.color="secondary",this.variant="tonal",this.handleClick=()=>{this.back.emit()}}render(){const n={"xplor-btn-back-to-parent":!0,"xplor-btn-back-to-parent--inline":this.inline},t={"--btn-size":this.size};return r(h,{key:"9ea4d137e9f4c80d0f5586953c5d463f365f5205"},r("button",{key:"1e1839f03ca09a8a106a6f2ee2d7ca0a7b407588",class:n,style:t,onClick:this.handleClick},r("span",{key:"50f7ee25b402d4ee796670ab59ad3c1085a0138d",class:"xplor-btn-back-to-parent__icon"},"✕")))}static get style(){return Vo}},[2,"xplor-btn-back-to-parent",{size:[1],inline:[4],bgColor:[1,"bg-color"],color:[1],variant:[1]}]);function Go(){if(typeof customElements>"u")return;["xplor-btn-back-to-parent"].forEach(n=>{switch(n){case"xplor-btn-back-to-parent":customElements.get(n)||customElements.define(n,Ie);break}})}const Zo=Ie,Jo=Go,No=`@tailwind base;
6765
+ }`,Se=v(class extends y{constructor(){super(),this.__registerHost(),this.back=m(this,"back"),this.size="2.25rem",this.inline=!1,this.bgColor="white",this.color="secondary",this.variant="tonal",this.ariaLabel="Back to parent",this.handleClick=()=>{this.back.emit()}}render(){const n={"xplor-btn-back-to-parent":!0,"xplor-btn-back-to-parent--inline":this.inline},t={"--btn-size":this.size};return r(b,{key:"0962b04ae634f044dd3e7c1eacf42b7d2c8e0f1e"},r("button",{key:"82cb8fa3218a17784a0ab360d328b68f2c0e6e81",class:n,style:t,onClick:this.handleClick,"aria-label":this.ariaLabel},r("span",{key:"784853baa5b013fc85a07054e446e6166eab7068",class:"xplor-btn-back-to-parent__icon"},"✕")))}static get style(){return Go}},[2,"xplor-btn-back-to-parent",{size:[1],inline:[4],bgColor:[1,"bg-color"],color:[1],variant:[1],ariaLabel:[1,"aria-label"]}]);function Zo(){if(typeof customElements>"u")return;["xplor-btn-back-to-parent"].forEach(n=>{switch(n){case"xplor-btn-back-to-parent":customElements.get(n)||customElements.define(n,Se);break}})}const Jo=Se,No=Zo,ni=`@tailwind base;
6766
6766
  @tailwind components;
6767
6767
  @tailwind utilities;
6768
6768
  @layer base {
@@ -7049,7 +7049,7 @@ ol.mdc-list.sc-xplor-btn-back li.mdc-list-item.sc-xplor-btn-back, ul.mdc-list.sc
7049
7049
  opacity: 0.38;
7050
7050
  cursor: not-allowed;
7051
7051
  pointer-events: none;
7052
- }`,Ee=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClick=x(this,"xplorClick"),this.color="secondary",this.minWidth="6.375rem",this.minHeight="3rem",this.gap="0.625rem",this.disabled=!1,this.handleClick=n=>{this.disabled||this.xplorClick.emit(n)}}render(){const n={"xplor-btn-back":!0,"xplor-btn-back--disabled":this.disabled},t={"--min-width":this.minWidth,"--min-height":this.minHeight,"--gap":this.gap};return r(h,{key:"1fa9f6b770f01f2a384591293831a2fecb15b593"},r("button",{key:"3d201c9b3ccb3176401b1c671237825231c78d39",class:n,style:t,disabled:this.disabled,onClick:this.handleClick},r("span",{key:"2e92390e29ad2f0e9c5144f802d66544bd1f00c4",class:"xplor-btn-back__icon"},"‹"),r("span",{key:"e663a5e163007a0fc82162b6d9a2a8018cab8a76",class:"xplor-btn-back__text"},r("slot",{key:"4bcd417f211ec014b8c861d309bf709048e34c8d"},"Back"))))}static get style(){return No}},[6,"xplor-btn-back",{color:[1],minWidth:[1,"min-width"],minHeight:[1,"min-height"],gap:[1],disabled:[4]}]);function ni(){if(typeof customElements>"u")return;["xplor-btn-back"].forEach(n=>{switch(n){case"xplor-btn-back":customElements.get(n)||customElements.define(n,Ee);break}})}const ei=Ee,ti=ni,ri=`@tailwind base;
7052
+ }`,Ee=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClick=m(this,"xplorClick"),this.color="secondary",this.minWidth="6.375rem",this.minHeight="3rem",this.gap="0.625rem",this.disabled=!1,this.handleClick=n=>{this.disabled||this.xplorClick.emit(n)}}render(){const n={"xplor-btn-back":!0,"xplor-btn-back--disabled":this.disabled},t={"--min-width":this.minWidth,"--min-height":this.minHeight,"--gap":this.gap};return r(b,{key:"1fa9f6b770f01f2a384591293831a2fecb15b593"},r("button",{key:"3d201c9b3ccb3176401b1c671237825231c78d39",class:n,style:t,disabled:this.disabled,onClick:this.handleClick},r("span",{key:"2e92390e29ad2f0e9c5144f802d66544bd1f00c4",class:"xplor-btn-back__icon"},"‹"),r("span",{key:"e663a5e163007a0fc82162b6d9a2a8018cab8a76",class:"xplor-btn-back__text"},r("slot",{key:"4bcd417f211ec014b8c861d309bf709048e34c8d"},"Back"))))}static get style(){return ni}},[6,"xplor-btn-back",{color:[1],minWidth:[1,"min-width"],minHeight:[1,"min-height"],gap:[1],disabled:[4]}]);function ei(){if(typeof customElements>"u")return;["xplor-btn-back"].forEach(n=>{switch(n){case"xplor-btn-back":customElements.get(n)||customElements.define(n,Ee);break}})}const ti=Ee,ri=ei,oi=`@tailwind base;
7053
7053
  @tailwind components;
7054
7054
  @tailwind utilities;
7055
7055
  @layer base {
@@ -7400,7 +7400,7 @@ ol.mdc-list.sc-xplor-btn-icon li.mdc-list-item.sc-xplor-btn-icon, ul.mdc-list.sc
7400
7400
  opacity: 0.38;
7401
7401
  cursor: not-allowed;
7402
7402
  pointer-events: none;
7403
- }`,ze=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClick=x(this,"xplorClick"),this.color="secondary",this.size="32",this.iconSize="18",this.variant="elevated",this.disabled=!1,this.handleClick=n=>{this.disabled||this.xplorClick.emit(n)}}render(){const n={"xplor-btn-icon":!0,[`xplor-btn-icon--${this.color}`]:!0,[`xplor-btn-icon--${this.variant}`]:!0,"xplor-btn-icon--disabled":this.disabled},t={"--btn-size":typeof this.size=="number"?`${this.size}px`:this.size,"--icon-size":typeof this.iconSize=="number"?`${this.iconSize}px`:this.iconSize};return r(h,{key:"d5077956c7999278384896a9a7a6bc011a6c84fe"},r("button",{key:"8c58f798cdfd47607c4d7275d1a1d3c63c34d96d",class:n,style:t,disabled:this.disabled,onClick:this.handleClick},r("span",{key:"b2da80152f63a20cd4c284103c344e1c95f76f10",class:"xplor-btn-icon__content"},r("slot",{key:"de99b1a981800af7c0639cb0d1188268a9a408e1"}))))}static get style(){return ri}},[6,"xplor-btn-icon",{color:[1],size:[8],iconSize:[8,"icon-size"],variant:[1],disabled:[4]}]);function oi(){if(typeof customElements>"u")return;["xplor-btn-icon"].forEach(n=>{switch(n){case"xplor-btn-icon":customElements.get(n)||customElements.define(n,ze);break}})}const ii=ze,ai=oi,li=`@tailwind base;
7403
+ }`,ze=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClick=m(this,"xplorClick"),this.color="secondary",this.size="32",this.iconSize="18",this.variant="elevated",this.disabled=!1,this.handleClick=n=>{this.disabled||this.xplorClick.emit(n)}}render(){const n={"xplor-btn-icon":!0,[`xplor-btn-icon--${this.color}`]:!0,[`xplor-btn-icon--${this.variant}`]:!0,"xplor-btn-icon--disabled":this.disabled},t={"--btn-size":typeof this.size=="number"?`${this.size}px`:this.size,"--icon-size":typeof this.iconSize=="number"?`${this.iconSize}px`:this.iconSize};return r(b,{key:"9d87aab5e3af33201c71dffeab51a5a02cc61e98"},r("button",{key:"c30b8c4aa51a957c84e7fff3d72e01961dec911c",class:n,style:t,disabled:this.disabled,onClick:this.handleClick,"aria-label":this.ariaLabel},r("span",{key:"99773527f599523638ce8463fe308826f01202cf",class:"xplor-btn-icon__content"},r("slot",{key:"14e1356bcecd1d2b8768cddbaf257f49bf92e5a7"}))))}static get style(){return oi}},[6,"xplor-btn-icon",{color:[1],size:[8],iconSize:[8,"icon-size"],variant:[1],disabled:[4],ariaLabel:[1,"aria-label"]}]);function ii(){if(typeof customElements>"u")return;["xplor-btn-icon"].forEach(n=>{switch(n){case"xplor-btn-icon":customElements.get(n)||customElements.define(n,ze);break}})}const ai=ze,li=ii,si=`@tailwind base;
7404
7404
  @tailwind components;
7405
7405
  @tailwind utilities;
7406
7406
  @layer base {
@@ -7708,7 +7708,7 @@ ol.mdc-list.sc-xplor-btn-menu li.mdc-list-item.sc-xplor-btn-menu, ul.mdc-list.sc
7708
7708
  opacity: 0.38;
7709
7709
  cursor: not-allowed;
7710
7710
  pointer-events: none;
7711
- }`,Te=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClick=x(this,"xplorClick"),this.label="",this.options=[],this.hiddenKeys=[],this.disabledKeys=[],this.color="secondary",this.density="default",this.show=!1,this.handleOutsideClick=n=>{this.menuRef&&!this.menuRef.contains(n.target)&&(this.show=!1)},this.toggleMenu=()=>{this.show=!this.show},this.handleClickOption=n=>{this.xplorClick.emit(n),this.show=!1},this.isHidden=n=>n!==null&&this.hiddenKeys.includes(n),this.isDisabled=n=>n!==null&&this.disabledKeys.includes(n)}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return r(h,{key:"3e9516c7c2b31794bf8d71eb5672e46d3210dbc8"},r("div",{key:"e030d7ab1b7eee7fc8de9a6a519c69c285d01529",class:"xplor-btn-menu",ref:n=>this.menuRef=n},r("slot",{key:"185cb5433a18d51ea7e2f9b9309f7570050fdcea",name:"activator"},r("button",{key:"de5afd1f3e58b56301ea75724f0f1a5e04697f39",class:"xplor-btn-menu__button",onClick:this.toggleMenu},r("span",{key:"73eaed41e0a754d06753f0fa30ef32864f2841f8"},this.label),r("span",{key:"63bc890fe97154d02eb4da50e689f1db5226870f",class:"xplor-btn-menu__icon"},"▼"))),this.show&&r("div",{key:"6f231d7e1feac5dca59c9ef03d45dcfeffcedcbf",class:"xplor-btn-menu__list"},this.options.map((n,t)=>{const o=n.key||String(t);return this.isHidden(o)?null:r("div",{key:o,class:{"xplor-btn-menu__item":!0,"xplor-btn-menu__item--disabled":this.isDisabled(o)},onClick:()=>!this.isDisabled(o)&&this.handleClickOption(n)},r("slot",{name:o},n.label||""))}))))}static get style(){return li}},[6,"xplor-btn-menu",{label:[1],options:[16],hiddenKeys:[16,"hidden-keys"],disabledKeys:[16,"disabled-keys"],color:[1],density:[1],show:[32]}]);function si(){if(typeof customElements>"u")return;["xplor-btn-menu"].forEach(n=>{switch(n){case"xplor-btn-menu":customElements.get(n)||customElements.define(n,Te);break}})}const di=Te,ci=si,pi=`@tailwind base;
7711
+ }`,Te=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClick=m(this,"xplorClick"),this.label="",this.options=[],this.hiddenKeys=[],this.disabledKeys=[],this.color="secondary",this.density="default",this.show=!1,this.focusedIndex=-1,this.handleOutsideClick=n=>{this.menuRef&&!this.menuRef.contains(n.target)&&(this.show=!1)},this.toggleMenu=()=>{this.show=!this.show,this.show||(this.focusedIndex=-1)},this.handleClickOption=n=>{var t;this.xplorClick.emit(n),this.show=!1,this.focusedIndex=-1,(t=this.triggerBtnRef)===null||t===void 0||t.focus()},this.isHidden=n=>n!==null&&this.hiddenKeys.includes(n),this.isDisabled=n=>n!==null&&this.disabledKeys.includes(n)}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}getVisibleOptions(){return this.options.map((n,t)=>({option:n,key:n.key||String(t)})).filter(({key:n})=>!this.isHidden(n))}focusMenuItem(n){if(this.menuRef){const t=this.menuRef.querySelectorAll('[role="menuitem"]');t[n]&&t[n].focus()}}handleKeyDown(n){var t,o;if(!this.show&&(n.key==="ArrowDown"||n.key==="Enter"||n.key===" ")){const l=n.target;(l===this.triggerBtnRef||!((t=this.el.querySelector('[slot="activator"]'))===null||t===void 0)&&t.contains(l))&&n.key==="ArrowDown"&&(n.preventDefault(),this.show=!0,this.focusedIndex=0,requestAnimationFrame(()=>this.focusMenuItem(0)));return}if(!this.show)return;const i=this.getVisibleOptions(),a=i.length;switch(n.key){case"ArrowDown":n.preventDefault(),this.focusedIndex=this.focusedIndex<a-1?this.focusedIndex+1:0,this.focusMenuItem(this.focusedIndex);break;case"ArrowUp":n.preventDefault(),this.focusedIndex=this.focusedIndex>0?this.focusedIndex-1:a-1,this.focusMenuItem(this.focusedIndex);break;case"Escape":n.preventDefault(),this.show=!1,this.focusedIndex=-1,(o=this.triggerBtnRef)===null||o===void 0||o.focus();break;case"Enter":case" ":if(n.preventDefault(),this.focusedIndex>=0&&this.focusedIndex<a){const{option:l,key:s}=i[this.focusedIndex];this.isDisabled(s)||this.handleClickOption(l)}break;case"Home":n.preventDefault(),this.focusedIndex=0,this.focusMenuItem(this.focusedIndex);break;case"End":n.preventDefault(),this.focusedIndex=a-1,this.focusMenuItem(this.focusedIndex);break;case"Tab":this.show=!1,this.focusedIndex=-1;break}}render(){const n="xplor-btn-menu-list";let t=0;return r(b,{key:"20b1a4d54b992d5ea4b1a4cd8fbaa5699b1bc6ab"},r("div",{key:"e23725f6fa432e19b59a3c0809706df45df02def",class:"xplor-btn-menu",ref:o=>this.menuRef=o},r("slot",{key:"ed385faab26b9a1bf83ed583261b0d22744a5b10",name:"activator"},r("button",{key:"f0539b0092489e356b087cddd67bfb84cb31acf8",ref:o=>this.triggerBtnRef=o,class:"xplor-btn-menu__button",onClick:this.toggleMenu,"aria-haspopup":"menu","aria-expanded":this.show?"true":"false","aria-controls":this.show?n:void 0,"aria-label":this.ariaLabel||this.label||"Menu"},r("span",{key:"b1126eb8ffc12a89b3dd1a83afd5f644226496ee"},this.label),r("span",{key:"f9053a73065841d35278612e8f9d5345b3e1daf4",class:"xplor-btn-menu__icon","aria-hidden":"true"},"▼"))),this.show&&r("div",{key:"7b294e8b3702051c2adc317736d9bb3085137f27",class:"xplor-btn-menu__list",role:"menu",id:n,"aria-label":this.ariaLabel||this.label||"Menu"},this.options.map((o,i)=>{const a=o.key||String(i);if(this.isHidden(a))return null;const l=this.isDisabled(a),s=t++;return r("div",{key:a,role:"menuitem",tabindex:s===this.focusedIndex?0:-1,"aria-disabled":l?"true":void 0,class:{"xplor-btn-menu__item":!0,"xplor-btn-menu__item--disabled":l},onClick:()=>!l&&this.handleClickOption(o)},r("slot",{name:a},o.label||""))}))))}get el(){return this}static get style(){return si}},[6,"xplor-btn-menu",{ariaLabel:[1,"aria-label"],label:[1],options:[16],hiddenKeys:[16,"hidden-keys"],disabledKeys:[16,"disabled-keys"],color:[1],density:[1],show:[32],focusedIndex:[32]},[[0,"keydown","handleKeyDown"]]]);function di(){if(typeof customElements>"u")return;["xplor-btn-menu"].forEach(n=>{switch(n){case"xplor-btn-menu":customElements.get(n)||customElements.define(n,Te);break}})}const ci=Te,pi=di,gi=`@tailwind base;
7712
7712
  @tailwind components;
7713
7713
  @tailwind utilities;
7714
7714
  @layer base {
@@ -7967,7 +7967,7 @@ ol.mdc-list.sc-xplor-btn-toggle-group li.mdc-list-item.sc-xplor-btn-toggle-group
7967
7967
  flex-wrap: wrap;
7968
7968
  gap: 0.5rem;
7969
7969
  height: auto;
7970
- }`,De=v(class extends y{constructor(){super(),this.__registerHost(),this.multiple=!1,this.density="default"}render(){return r(h,{key:"587016261064869ff2b10cf04371963f57642221"},r("div",{key:"ee8813207ade2261011e699ce12010135a6d640b",class:"xplor-btn-toggle-group",role:"group"},r("slot",{key:"3b4d82938d310ac8864a02425d97b822ba4b1d9d"})))}static get style(){return pi}},[6,"xplor-btn-toggle-group",{multiple:[4],density:[1]}]);function gi(){if(typeof customElements>"u")return;["xplor-btn-toggle-group"].forEach(n=>{switch(n){case"xplor-btn-toggle-group":customElements.get(n)||customElements.define(n,De);break}})}const xi=De,mi=gi,bi=`@tailwind base;
7970
+ }`,De=v(class extends y{constructor(){super(),this.__registerHost(),this.multiple=!1,this.density="default"}render(){return r(b,{key:"587016261064869ff2b10cf04371963f57642221"},r("div",{key:"ee8813207ade2261011e699ce12010135a6d640b",class:"xplor-btn-toggle-group",role:"group"},r("slot",{key:"3b4d82938d310ac8864a02425d97b822ba4b1d9d"})))}static get style(){return gi}},[6,"xplor-btn-toggle-group",{multiple:[4],density:[1]}]);function xi(){if(typeof customElements>"u")return;["xplor-btn-toggle-group"].forEach(n=>{switch(n){case"xplor-btn-toggle-group":customElements.get(n)||customElements.define(n,De);break}})}const mi=De,hi=xi,bi=`@tailwind base;
7971
7971
  @tailwind components;
7972
7972
  @tailwind utilities;
7973
7973
  @layer base {
@@ -8262,7 +8262,7 @@ ol.mdc-list.sc-xplor-btn-toggle-secondary li.mdc-list-item.sc-xplor-btn-toggle-s
8262
8262
  }
8263
8263
  .xplor-btn-toggle-secondary.sc-xplor-btn-toggle-secondary:hover:not(.xplor-btn-toggle-secondary--disabled).xplor-btn-toggle-secondary--active {
8264
8264
  background-color: #D0EBD2;
8265
- }`,Xe=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorToggle=x(this,"xplorToggle"),this.active=!1,this.disabled=!1,this.inactiveOutlined=!1,this.handleClick=()=>{this.disabled||(this.active=!this.active,this.xplorToggle.emit(this.active))}}render(){const n={"xplor-btn-toggle-secondary":!0,"xplor-btn-toggle-secondary--active":this.active,"xplor-btn-toggle-secondary--disabled":this.disabled,"xplor-btn-toggle-secondary--inactive-outlined":this.inactiveOutlined&&!this.active};return r(h,{key:"e82338d3bdbd2af08df290ee79359acb9e61dfae"},r("button",{key:"137cf53e7b48676e86e3ed12a575e94792eab35c",class:n,disabled:this.disabled,onClick:this.handleClick,"aria-pressed":this.active?"true":"false"},r("slot",{key:"bfacf098eb4692bc56faf88a4444b1c2213d3a3b"})))}static get style(){return bi}},[6,"xplor-btn-toggle-secondary",{active:[1028],disabled:[4],inactiveOutlined:[4,"inactive-outlined"]}]);function hi(){if(typeof customElements>"u")return;["xplor-btn-toggle-secondary"].forEach(n=>{switch(n){case"xplor-btn-toggle-secondary":customElements.get(n)||customElements.define(n,Xe);break}})}const ui=Xe,fi=hi,yi=`@tailwind base;
8265
+ }`,Le=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorToggle=m(this,"xplorToggle"),this.active=!1,this.disabled=!1,this.inactiveOutlined=!1,this.handleClick=()=>{this.disabled||(this.active=!this.active,this.xplorToggle.emit(this.active))}}render(){const n={"xplor-btn-toggle-secondary":!0,"xplor-btn-toggle-secondary--active":this.active,"xplor-btn-toggle-secondary--disabled":this.disabled,"xplor-btn-toggle-secondary--inactive-outlined":this.inactiveOutlined&&!this.active};return r(b,{key:"e82338d3bdbd2af08df290ee79359acb9e61dfae"},r("button",{key:"137cf53e7b48676e86e3ed12a575e94792eab35c",class:n,disabled:this.disabled,onClick:this.handleClick,"aria-pressed":this.active?"true":"false"},r("slot",{key:"bfacf098eb4692bc56faf88a4444b1c2213d3a3b"})))}static get style(){return bi}},[6,"xplor-btn-toggle-secondary",{active:[1028],disabled:[4],inactiveOutlined:[4,"inactive-outlined"]}]);function ui(){if(typeof customElements>"u")return;["xplor-btn-toggle-secondary"].forEach(n=>{switch(n){case"xplor-btn-toggle-secondary":customElements.get(n)||customElements.define(n,Le);break}})}const fi=Le,yi=ui,vi=`@tailwind base;
8266
8266
  @tailwind components;
8267
8267
  @tailwind utilities;
8268
8268
  @layer base {
@@ -8555,7 +8555,7 @@ ol.mdc-list.sc-xplor-btn-toggle li.mdc-list-item.sc-xplor-btn-toggle, ul.mdc-lis
8555
8555
  }
8556
8556
  .xplor-btn-toggle.sc-xplor-btn-toggle:hover:not(.xplor-btn-toggle--disabled).xplor-btn-toggle--active {
8557
8557
  background-color: #D0EBD2;
8558
- }`,Le=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorToggle=x(this,"xplorToggle"),this.active=!1,this.color="secondary",this.disabled=!1,this.inactiveOutlined=!1,this.handleClick=()=>{this.disabled||(this.active=!this.active,this.xplorToggle.emit(this.active))}}render(){const n={"xplor-btn-toggle":!0,"xplor-btn-toggle--active":this.active,"xplor-btn-toggle--disabled":this.disabled,"xplor-btn-toggle--inactive-outlined":this.inactiveOutlined&&!this.active};return r(h,{key:"9434059f3e934707d2be2dbabe539ef6f06dbf66"},r("button",{key:"bbdc0032e4eb79951d06fb47e19ab76a842f0c46",class:n,disabled:this.disabled,onClick:this.handleClick,"aria-pressed":this.active?"true":"false"},r("slot",{key:"c5944a5ce768ca5f1cafa5f33dcf72145c94b189"})))}static get style(){return yi}},[6,"xplor-btn-toggle",{active:[1028],color:[1],disabled:[4],inactiveOutlined:[4,"inactive-outlined"]}]);function vi(){if(typeof customElements>"u")return;["xplor-btn-toggle"].forEach(n=>{switch(n){case"xplor-btn-toggle":customElements.get(n)||customElements.define(n,Le);break}})}const ki=Le,wi=vi,_i=`@tailwind base;
8558
+ }`,Fe=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorToggle=m(this,"xplorToggle"),this.active=!1,this.color="secondary",this.disabled=!1,this.inactiveOutlined=!1,this.handleClick=()=>{this.disabled||(this.active=!this.active,this.xplorToggle.emit(this.active))}}render(){const n={"xplor-btn-toggle":!0,"xplor-btn-toggle--active":this.active,"xplor-btn-toggle--disabled":this.disabled,"xplor-btn-toggle--inactive-outlined":this.inactiveOutlined&&!this.active};return r(b,{key:"9434059f3e934707d2be2dbabe539ef6f06dbf66"},r("button",{key:"bbdc0032e4eb79951d06fb47e19ab76a842f0c46",class:n,disabled:this.disabled,onClick:this.handleClick,"aria-pressed":this.active?"true":"false"},r("slot",{key:"c5944a5ce768ca5f1cafa5f33dcf72145c94b189"})))}static get style(){return vi}},[6,"xplor-btn-toggle",{active:[1028],color:[1],disabled:[4],inactiveOutlined:[4,"inactive-outlined"]}]);function ki(){if(typeof customElements>"u")return;["xplor-btn-toggle"].forEach(n=>{switch(n){case"xplor-btn-toggle":customElements.get(n)||customElements.define(n,Fe);break}})}const wi=Fe,_i=ki,Ci=`@tailwind base;
8559
8559
  @tailwind components;
8560
8560
  @tailwind utilities;
8561
8561
  @layer base {
@@ -9789,7 +9789,7 @@ ol.mdc-list.sc-xplor-button li.mdc-list-item.sc-xplor-button, ul.mdc-list.sc-xpl
9789
9789
  .x-button.disabled.x-button--icon-only.sc-xplor-button, .x-button.disabled.x-button--with-icon.sc-xplor-button {
9790
9790
  cursor: not-allowed;
9791
9791
  opacity: 0.6;
9792
- }`,Be=v(class extends y{constructor(){super(),this.__registerHost(),this.type="secondary",this.mode="pg",this.icon="+"}renderIcon(){return this.icon==="svg"&&this.iconSvg?r("span",{class:"button-icon button-icon--svg ",innerHTML:this.iconSvg}):r("span",{class:"button-icon"},this.icon)}render(){const n=!this.text&&this.iconPosition!==null,t=this.iconPosition!==null;return r(h,{key:"94fed7b7f39f8aca0273d5b6da123e1ce7d87d01"},r("slot",{key:"fd6a53ce8ce00175207dff16d976379a0ab8040b"},r("button",{key:"a688aabc8675ef63f3c18c2af4b0a24c8bc29de7",role:"button",class:Object.assign({"x-button":!0,[this.type]:!0,shadow:this.type!=="minimal"&&this.type!=="text","x-button--icon-only":n,"x-button--with-icon":t&&!n,"x-button--icon-start":this.iconPosition==="start"&&!n,"x-button--icon-end":this.iconPosition==="end"&&!n},this.styles?{[this.styles]:!0}:{}),onClick:()=>this.clickAction&&this.clickAction()},t&&this.iconPosition==="start"&&this.renderIcon(),this.text&&r("span",{key:"82d9558a551bcc23ead90b3f42d0fcd94bd7301f",class:"button-text"},this.text),t&&this.iconPosition==="end"&&this.renderIcon())))}static get style(){return _i}},[6,"xplor-button",{text:[1],type:[1],mode:[1],size:[1],styles:[1],clickAction:[16,"click-action"],iconPosition:[1,"icon-position"],icon:[1],iconSvg:[1,"icon-svg"]}]);function G(){if(typeof customElements>"u")return;["xplor-button"].forEach(n=>{switch(n){case"xplor-button":customElements.get(n)||customElements.define(n,Be);break}})}const Ci=`@tailwind base;
9792
+ }`,Xe=v(class extends y{constructor(){super(),this.__registerHost(),this.type="secondary",this.mode="pg",this.disabled=!1,this.icon="+"}renderIcon(){return this.icon==="svg"&&this.iconSvg?r("span",{class:"button-icon button-icon--svg ",innerHTML:this.iconSvg}):r("span",{class:"button-icon"},this.icon)}render(){const n=!this.text&&this.iconPosition!==null,t=this.iconPosition!==null;return r(b,{key:"193c8139b43bdbaf108bf09d220b20d746f72cd7"},r("slot",{key:"61b731d8173a15bcd76fbbf16f0d1d97cbab6e34"},r("button",{key:"04486cbf547798161e7756a5999898bc46b298b5",role:"button",class:Object.assign({"x-button":!0,[this.type]:!0,shadow:this.type!=="minimal"&&this.type!=="text","x-button--icon-only":n,"x-button--with-icon":t&&!n,"x-button--icon-start":this.iconPosition==="start"&&!n,"x-button--icon-end":this.iconPosition==="end"&&!n},this.styles?{[this.styles]:!0}:{}),onClick:()=>this.clickAction&&this.clickAction(),"aria-label":this.ariaLabel,"aria-disabled":this.disabled?"true":null,disabled:this.disabled},t&&this.iconPosition==="start"&&this.renderIcon(),this.text&&r("span",{key:"07e204d356d830444e1b26979be6f1f3926ba551",class:"button-text"},this.text),t&&this.iconPosition==="end"&&this.renderIcon())))}static get style(){return Ci}},[6,"xplor-button",{text:[1],type:[1],mode:[1],size:[1],styles:[1],clickAction:[16,"click-action"],ariaLabel:[1,"aria-label"],disabled:[4],iconPosition:[1,"icon-position"],icon:[1],iconSvg:[1,"icon-svg"]}]);function G(){if(typeof customElements>"u")return;["xplor-button"].forEach(n=>{switch(n){case"xplor-button":customElements.get(n)||customElements.define(n,Xe);break}})}const $i=`@tailwind base;
9793
9793
  @tailwind components;
9794
9794
  @tailwind utilities;
9795
9795
  @layer base {
@@ -10106,7 +10106,7 @@ ol.mdc-list.sc-xplor-tooltip li.mdc-list-item.sc-xplor-tooltip, ul.mdc-list.sc-x
10106
10106
 
10107
10107
  .tooltip--right.sc-xplor-tooltip .tooltip__arrow.sc-xplor-tooltip {
10108
10108
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
10109
- }`,Fe=v(class extends y{constructor(){super(),this.__registerHost(),this.position="top",this.trigger="hover",this.arrow=!0,this.open=!1,this.disabled=!1,this.tooltipStyle={},this.arrowStyle={},this.handleMouseEnter=()=>{this.disabled||(this.hideTimeout&&clearTimeout(this.hideTimeout),this.showTooltip())},this.handleMouseLeave=()=>{this.disabled||(this.hideTimeout=setTimeout(()=>{this.hideTooltip()},100))},this.handleClick=()=>{this.disabled||this.trigger==="click"&&(this.open=!this.open,this.open&&requestAnimationFrame(()=>this.updatePosition()))}}componentDidLoad(){this.trigger==="hover"&&this.setupHoverListeners()}disconnectedCallback(){this.cleanupListeners(),this.hideTimeout&&clearTimeout(this.hideTimeout)}setupHoverListeners(){this.triggerEl&&(this.triggerEl.addEventListener("mouseenter",this.handleMouseEnter),this.triggerEl.addEventListener("mouseleave",this.handleMouseLeave))}cleanupListeners(){this.triggerEl&&(this.triggerEl.removeEventListener("mouseenter",this.handleMouseEnter),this.triggerEl.removeEventListener("mouseleave",this.handleMouseLeave))}handleDocumentClick(n){if(this.trigger==="click"&&this.open){const t=n.target;this.el.contains(t)||(this.open=!1)}}showTooltip(){this.open=!0,requestAnimationFrame(()=>this.updatePosition())}hideTooltip(){this.open=!1}updatePosition(){if(!this.triggerEl||!this.tooltipEl)return;const n=this.triggerEl.getBoundingClientRect(),t=this.tooltipEl.getBoundingClientRect(),o=8,i=this.arrow?6:0;let a=0,s=0,l="",c="",d="";switch(this.position){case"top":a=n.top-t.height-o-i,s=n.left+n.width/2-t.width/2,l="100%",c="50%",d="translateX(-50%) rotate(45deg)";break;case"bottom":a=n.bottom+o+i,s=n.left+n.width/2-t.width/2,l="-6px",c="50%",d="translateX(-50%) rotate(45deg)";break;case"left":a=n.top+n.height/2-t.height/2,s=n.left-t.width-o-i,l="50%",c="100%",d="translateY(-50%) rotate(45deg)";break;case"right":a=n.top+n.height/2-t.height/2,s=n.right+o+i,l="50%",c="-6px",d="translateY(-50%) rotate(45deg)";break}const p=8;s<p?s=p:s+t.width>window.innerWidth-p&&(s=window.innerWidth-t.width-p),a<p?a=p:a+t.height>window.innerHeight-p&&(a=window.innerHeight-t.height-p),this.tooltipStyle={top:`${a}px`,left:`${s}px`},this.arrowStyle={top:l,left:c,transform:d}}render(){return r(h,{key:"472521bc51295f0b7dcc4d17c0aef70df5c7181e"},r("div",{key:"9458cc629deea68c914e7214a762498ff9c3d4c8",class:"tooltip-trigger",ref:n=>this.triggerEl=n,onClick:this.handleClick},r("slot",{key:"f5f6d6c85270fdca9b345dc9fed31b776c5d6358",name:"trigger"})),this.open&&r("div",{key:"d56f6b7f8e2d4c0b6425a85a290e330978645e74",class:{tooltip:!0,[`tooltip--${this.position}`]:!0},style:this.tooltipStyle,ref:n=>this.tooltipEl=n,role:"tooltip"},r("div",{key:"0b5735ca4b5d591dbec6f6ca6b2e47233b391198",class:"tooltip__content"},r("slot",{key:"c4e8c76025b546b8aa485f3f9d37ee7ecf7fbddd"},this.content)),this.arrow&&r("div",{key:"373c339feda5732f8c5f2307deea89f2d66969ba",class:"tooltip__arrow",style:this.arrowStyle})))}get el(){return this}static get style(){return Ci}},[6,"xplor-tooltip",{position:[1],trigger:[1],arrow:[4],open:[1028],content:[1],disabled:[4],tooltipStyle:[32],arrowStyle:[32]},[[4,"click","handleDocumentClick"]]]);function Ae(){if(typeof customElements>"u")return;["xplor-tooltip"].forEach(n=>{switch(n){case"xplor-tooltip":customElements.get(n)||customElements.define(n,Fe);break}})}const $i=`@tailwind base;
10109
+ }`;let Ii=0;const Ae=v(class extends y{constructor(){super(),this.__registerHost(),this.position="top",this.trigger="hover",this.arrow=!0,this.open=!1,this.disabled=!1,this.tooltipStyle={},this.arrowStyle={},this.tooltipId=`xplor-tooltip-${++Ii}`,this.handleMouseEnter=()=>{this.disabled||(this.hideTimeout&&clearTimeout(this.hideTimeout),this.showTooltip())},this.handleMouseLeave=()=>{this.disabled||(this.hideTimeout=setTimeout(()=>{this.hideTooltip()},100))},this.handleFocusIn=()=>{this.disabled||this.showTooltip()},this.handleFocusOut=()=>{this.disabled||this.hideTooltip()},this.handleClick=()=>{this.disabled||this.trigger==="click"&&(this.open=!this.open,this.open&&requestAnimationFrame(()=>this.updatePosition()))}}componentDidLoad(){this.trigger==="hover"&&this.setupHoverListeners()}disconnectedCallback(){this.cleanupListeners(),this.hideTimeout&&clearTimeout(this.hideTimeout)}setupHoverListeners(){this.triggerEl&&(this.triggerEl.addEventListener("mouseenter",this.handleMouseEnter),this.triggerEl.addEventListener("mouseleave",this.handleMouseLeave),this.triggerEl.addEventListener("focusin",this.handleFocusIn),this.triggerEl.addEventListener("focusout",this.handleFocusOut))}cleanupListeners(){this.triggerEl&&(this.triggerEl.removeEventListener("mouseenter",this.handleMouseEnter),this.triggerEl.removeEventListener("mouseleave",this.handleMouseLeave),this.triggerEl.removeEventListener("focusin",this.handleFocusIn),this.triggerEl.removeEventListener("focusout",this.handleFocusOut))}handleDocumentClick(n){if(this.trigger==="click"&&this.open){const t=n.target;this.el.contains(t)||(this.open=!1)}}showTooltip(){this.open=!0,requestAnimationFrame(()=>this.updatePosition())}hideTooltip(){this.open=!1}updatePosition(){if(!this.triggerEl||!this.tooltipEl)return;const n=this.triggerEl.getBoundingClientRect(),t=this.tooltipEl.getBoundingClientRect(),o=8,i=this.arrow?6:0;let a=0,l=0,s="",c="",d="";switch(this.position){case"top":a=n.top-t.height-o-i,l=n.left+n.width/2-t.width/2,s="100%",c="50%",d="translateX(-50%) rotate(45deg)";break;case"bottom":a=n.bottom+o+i,l=n.left+n.width/2-t.width/2,s="-6px",c="50%",d="translateX(-50%) rotate(45deg)";break;case"left":a=n.top+n.height/2-t.height/2,l=n.left-t.width-o-i,s="50%",c="100%",d="translateY(-50%) rotate(45deg)";break;case"right":a=n.top+n.height/2-t.height/2,l=n.right+o+i,s="50%",c="-6px",d="translateY(-50%) rotate(45deg)";break}const p=8;l<p?l=p:l+t.width>window.innerWidth-p&&(l=window.innerWidth-t.width-p),a<p?a=p:a+t.height>window.innerHeight-p&&(a=window.innerHeight-t.height-p),this.tooltipStyle={top:`${a}px`,left:`${l}px`},this.arrowStyle={top:s,left:c,transform:d}}render(){return r(b,{key:"135c627d93956798eef4e842ec256a0f156c771a"},r("div",{key:"1a4253fa4f893d7726227c346c9ebc850c7ee463",class:"tooltip-trigger",ref:n=>this.triggerEl=n,onClick:this.handleClick,"aria-describedby":this.open?this.tooltipId:void 0},r("slot",{key:"8970f94fa612b40e573a66102533b1f54387b9b2",name:"trigger"})),this.open&&r("div",{key:"c1b873e3b9ccaf8747c772672282e63615528be7",class:{tooltip:!0,[`tooltip--${this.position}`]:!0},style:this.tooltipStyle,ref:n=>this.tooltipEl=n,role:"tooltip",id:this.tooltipId},r("div",{key:"93af160a6f7fc1776ca358f3f91f0fecb381ce8d",class:"tooltip__content"},r("slot",{key:"cb1c56d228c3f494d668dad73e2af6b303af9f42"},this.content)),this.arrow&&r("div",{key:"9d528e58c6b772c4b72096533bdb1f0df710aa8f",class:"tooltip__arrow",style:this.arrowStyle})))}get el(){return this}static get style(){return $i}},[6,"xplor-tooltip",{position:[1],trigger:[1],arrow:[4],open:[1028],content:[1],disabled:[4],tooltipStyle:[32],arrowStyle:[32]},[[4,"click","handleDocumentClick"]]]);function Be(){if(typeof customElements>"u")return;["xplor-tooltip"].forEach(n=>{switch(n){case"xplor-tooltip":customElements.get(n)||customElements.define(n,Ae);break}})}const Si=`@tailwind base;
10110
10110
  @tailwind components;
10111
10111
  @tailwind utilities;
10112
10112
  @layer base {
@@ -10358,7 +10358,7 @@ ol.mdc-list.sc-xplor-btn-tooltip li.mdc-list-item.sc-xplor-btn-tooltip, ul.mdc-l
10358
10358
 
10359
10359
  .sc-xplor-btn-tooltip-h {
10360
10360
  display: inline-block;
10361
- }`,Me=v(class extends y{constructor(){super(),this.__registerHost(),this.tooltipPosition="top",this.type="primary",this.disabled=!1}render(){return r(h,{key:"252d295aa8fa8f6f404727baef30d00dbcac17b8"},r("xplor-tooltip",{key:"cba71a8dd339f47b16f4a161a341895ca70e22b0",position:this.tooltipPosition,content:this.tooltipText,trigger:"hover",arrow:!0,disabled:this.disabled},r("xplor-button",{key:"31c167ffa852074e94a2cac255ab10b86ad041ef",slot:"trigger",text:this.text,type:this.type,mode:this.mode,"icon-position":this.iconPosition},r("slot",{key:"aef011d1873e4f81237f88d651f5bfb7c0fb2569"}))))}static get style(){return $i}},[6,"xplor-btn-tooltip",{text:[1],tooltipText:[1,"tooltip-text"],tooltipPosition:[1,"tooltip-position"],type:[1],mode:[1],iconPosition:[1,"icon-position"],disabled:[4]}]);function Si(){if(typeof customElements>"u")return;["xplor-btn-tooltip","xplor-button","xplor-tooltip"].forEach(n=>{switch(n){case"xplor-btn-tooltip":customElements.get(n)||customElements.define(n,Me);break;case"xplor-button":customElements.get(n)||G();break;case"xplor-tooltip":customElements.get(n)||Ae();break}})}const Ii=Me,Ei=Si,zi=Be,Ti=G,Di=`/* on mobile browsers, I set a width of 100% */
10361
+ }`,Me=v(class extends y{constructor(){super(),this.__registerHost(),this.tooltipPosition="top",this.type="primary",this.disabled=!1}render(){return r(b,{key:"252d295aa8fa8f6f404727baef30d00dbcac17b8"},r("xplor-tooltip",{key:"cba71a8dd339f47b16f4a161a341895ca70e22b0",position:this.tooltipPosition,content:this.tooltipText,trigger:"hover",arrow:!0,disabled:this.disabled},r("xplor-button",{key:"31c167ffa852074e94a2cac255ab10b86ad041ef",slot:"trigger",text:this.text,type:this.type,mode:this.mode,"icon-position":this.iconPosition},r("slot",{key:"aef011d1873e4f81237f88d651f5bfb7c0fb2569"}))))}static get style(){return Si}},[6,"xplor-btn-tooltip",{text:[1],tooltipText:[1,"tooltip-text"],tooltipPosition:[1,"tooltip-position"],type:[1],mode:[1],iconPosition:[1,"icon-position"],disabled:[4]}]);function Ei(){if(typeof customElements>"u")return;["xplor-btn-tooltip","xplor-button","xplor-tooltip"].forEach(n=>{switch(n){case"xplor-btn-tooltip":customElements.get(n)||customElements.define(n,Me);break;case"xplor-button":customElements.get(n)||G();break;case"xplor-tooltip":customElements.get(n)||Be();break}})}const zi=Me,Ti=Ei,Di=Xe,Li=G,Fi=`/* on mobile browsers, I set a width of 100% */
10362
10362
  @tailwind base;
10363
10363
  @tailwind components;
10364
10364
  @tailwind utilities;
@@ -10643,7 +10643,7 @@ ul.mdc-list li.mdc-list-item {
10643
10643
  height: 45px;
10644
10644
  text-align: center;
10645
10645
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
10646
- }`,Pe=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return r(h,{key:"a4c0fd10eb0727179e89fd8d5065a679631c8df8"},r("select",{key:"251713d910a1eda1bf6935c138b91e1a946afb6c",class:"xplor-dropdown",onChange:this.handleChange},this.options.map(n=>r("option",{value:n,selected:this.selected===n},n))))}static get style(){return Di}},[1,"xplor-dropdown",{options:[16],selected:[1],handleChange:[16,"handle-change"]}]);function Oe(){if(typeof customElements>"u")return;["xplor-dropdown"].forEach(n=>{switch(n){case"xplor-dropdown":customElements.get(n)||customElements.define(n,Pe);break}})}const Xi=`/* on mobile browsers, I set a width of 100% */
10646
+ }`,Pe=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return r(b,{key:"bfd5bc76c18f4c7882ec47389978338eec81b1d1"},r("select",{key:"54310c80fdda944ca6d9cc8faaf643e79d4a5f32",class:"xplor-dropdown",onChange:this.handleChange},this.options.map(n=>r("option",{value:n,selected:this.selected===n},n))))}static get style(){return Fi}},[1,"xplor-dropdown",{options:[16],selected:[1],handleChange:[16,"handle-change"]}]);function Oe(){if(typeof customElements>"u")return;["xplor-dropdown"].forEach(n=>{switch(n){case"xplor-dropdown":customElements.get(n)||customElements.define(n,Pe);break}})}const Xi=`/* on mobile browsers, I set a width of 100% */
10647
10647
  @tailwind base;
10648
10648
  @tailwind components;
10649
10649
  @tailwind utilities;
@@ -10918,7 +10918,7 @@ ul.mdc-list li.mdc-list-item {
10918
10918
  .container {
10919
10919
  display: flex;
10920
10920
  margin-top: 20px;
10921
- }`,je=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.languageOptions=["English","Spanish","French","German","Italian"],this.textId="text",this.selectedLanguage="English",this.handleClick=()=>{debugger;fetch("https://nnvy1fqqcb.execute-api.ap-southeast-2.amazonaws.com/ai_dev/ai/prompt-generation",{method:"POST",headers:{"Content-Type":"application/json","x-api-key":this.apiKey},body:JSON.stringify({service:null,action:"translate",language:this.selectedLanguage,content:this.textValue||""})}).then(n=>{if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return n.json()}).then(n=>{console.log("Success:",n),this.textValue=n.response}).catch(n=>{console.error("Error:",n)})},this.handleChange=n=>{const t=n.target;this.selectedLanguage=t.value,console.log("Selected language:",this.selectedLanguage)}}componentDidLoad(){var n;const t=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.getElementById("text");t&&(this.textValue=t.textContent||"",console.log("textValue:",this.textValue))}render(){return r(h,{key:"19fe2c1cbe9c2f82779a3e9e6966db8e22988002"},r("div",{key:"b2d611ff824b3e4c9eff2c7eac45716219de2b96",id:"ai-text"},this.textValue),r("div",{key:"96ca4702ebd751d3b6ab95a23ca1b762ef1be270",class:"container"},r("xplor-dropdown",{key:"74a7468be12b73d97cf473cd7bb9bae99e62fa1b",options:this.languageOptions,selected:this.selectedLanguage,handleChange:this.handleChange}),r("xplor-button",{key:"4177a337e0295507422bee77f90a26ea6ed3b12b",text:"translate",mode:"pg",type:"primary",onClick:this.handleClick})))}get host(){return this}static get style(){return Xi}},[1,"xplor-chat-widget",{languageOptions:[16,"language-options"],textId:[1,"text-id"],apiKey:[1,"api-key"],selectedLanguage:[32],textValue:[32]}]);function Li(){if(typeof customElements>"u")return;["xplor-chat-widget","xplor-button","xplor-dropdown"].forEach(n=>{switch(n){case"xplor-chat-widget":customElements.get(n)||customElements.define(n,je);break;case"xplor-button":customElements.get(n)||G();break;case"xplor-dropdown":customElements.get(n)||Oe();break}})}const Bi=je,Fi=Li,Ai=`/* on mobile browsers, I set a width of 100% */
10921
+ }`,je=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.languageOptions=["English","Spanish","French","German","Italian"],this.textId="text",this.selectedLanguage="English",this.handleClick=()=>{debugger;fetch("https://nnvy1fqqcb.execute-api.ap-southeast-2.amazonaws.com/ai_dev/ai/prompt-generation",{method:"POST",headers:{"Content-Type":"application/json","x-api-key":this.apiKey},body:JSON.stringify({service:null,action:"translate",language:this.selectedLanguage,content:this.textValue||""})}).then(n=>{if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return n.json()}).then(n=>{console.log("Success:",n),this.textValue=n.response}).catch(n=>{console.error("Error:",n)})},this.handleChange=n=>{const t=n.target;this.selectedLanguage=t.value,console.log("Selected language:",this.selectedLanguage)}}componentDidLoad(){var n;const t=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.getElementById("text");t&&(this.textValue=t.textContent||"",console.log("textValue:",this.textValue))}render(){return r(b,{key:"19fe2c1cbe9c2f82779a3e9e6966db8e22988002"},r("div",{key:"b2d611ff824b3e4c9eff2c7eac45716219de2b96",id:"ai-text"},this.textValue),r("div",{key:"96ca4702ebd751d3b6ab95a23ca1b762ef1be270",class:"container"},r("xplor-dropdown",{key:"74a7468be12b73d97cf473cd7bb9bae99e62fa1b",options:this.languageOptions,selected:this.selectedLanguage,handleChange:this.handleChange}),r("xplor-button",{key:"4177a337e0295507422bee77f90a26ea6ed3b12b",text:"translate",mode:"pg",type:"primary",onClick:this.handleClick})))}get host(){return this}static get style(){return Xi}},[1,"xplor-chat-widget",{languageOptions:[16,"language-options"],textId:[1,"text-id"],apiKey:[1,"api-key"],selectedLanguage:[32],textValue:[32]}]);function Ai(){if(typeof customElements>"u")return;["xplor-chat-widget","xplor-button","xplor-dropdown"].forEach(n=>{switch(n){case"xplor-chat-widget":customElements.get(n)||customElements.define(n,je);break;case"xplor-button":customElements.get(n)||G();break;case"xplor-dropdown":customElements.get(n)||Oe();break}})}const Bi=je,Mi=Ai,Pi=`/* on mobile browsers, I set a width of 100% */
10922
10922
  @tailwind base;
10923
10923
  @tailwind components;
10924
10924
  @tailwind utilities;
@@ -11370,7 +11370,7 @@ ul.mdc-list li.mdc-list-item {
11370
11370
  }
11371
11371
  .checkbox.disabled ~ .label {
11372
11372
  opacity: 0.4;
11373
- }`,He=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.checkboxChange=x(this,"checkboxChange"),this.initialChecked=!1,this.initialIndeterminate=!1,this.disabled=!1,this.error=!1,this.label="",this.checked=!1,this.indeterminate=!1,this.isHovered=!1,this.isFocused=!1,this.isPressed=!1,this.handleClick=()=>{this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked=!this.checked,this.checkboxChange.emit({checked:this.checked,indeterminate:this.indeterminate}))},this.handleKeyDown=n=>{this.disabled||(n.key===" "||n.key==="Enter")&&(n.preventDefault(),this.isPressed=!0,this.handleClick())},this.handleKeyUp=n=>{(n.key===" "||n.key==="Enter")&&(this.isPressed=!1)},this.getCheckboxClass=()=>{const n=["checkbox"];return this.checked&&n.push("checked"),this.indeterminate&&n.push("indeterminate"),this.disabled&&n.push("disabled"),this.error&&n.push("error"),this.isHovered&&!this.disabled&&n.push("hover"),this.isFocused&&!this.disabled&&n.push("focus"),this.isPressed&&!this.disabled&&n.push("pressed"),n.join(" ")}}watchCheckedProp(n){this.checked=n}watchIndeterminateProp(n){this.indeterminate=n}componentWillLoad(){this.checked=this.initialChecked,this.indeterminate=this.initialIndeterminate}render(){return r("div",{key:"b8e50575c4ab946f2bd1949a552abf98218c3cc0",class:"checkbox-wrapper"},r("div",{key:"4e1ea41fed9f07346be31da5436eeb4d8961d559",class:this.getCheckboxClass(),onClick:this.handleClick,onMouseEnter:()=>this.isHovered=!0,onMouseLeave:()=>this.isHovered=!1,onMouseDown:()=>this.isPressed=!0,onMouseUp:()=>this.isPressed=!1,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,tabIndex:this.disabled?-1:0,role:"checkbox","aria-checked":this.indeterminate?"mixed":this.checked.toString(),"aria-disabled":this.disabled.toString()},this.checked&&r("svg",{key:"de6740ce5950517792bbcacd5019af968d0d75f8",class:"check-icon",viewBox:"0 0 16 16",fill:"none"},r("path",{key:"25b2882bc42793685ce25b4a06ae35a3f33fb195",d:"M13.3334 4L6.00002 11.3333L2.66669 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),this.indeterminate&&r("svg",{key:"a54be57758d0447a8575a1d141fa592e55e8cbdc",class:"indeterminate-icon",viewBox:"0 0 16 16",fill:"none"},r("path",{key:"12350f7a694cac2f3f18327a2a3626a414167a58",d:"M3.33331 8H12.6666",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}))),this.label&&r("span",{key:"8185cd091331cf4aed793dbdffcb674d478d5d3a",class:"label"},this.label))}static get watchers(){return{initialChecked:["watchCheckedProp"],initialIndeterminate:["watchIndeterminateProp"]}}static get style(){return Ai}},[1,"xplor-checkbox",{initialChecked:[4,"initial-checked"],initialIndeterminate:[4,"initial-indeterminate"],disabled:[4],error:[4],label:[1],checked:[32],indeterminate:[32],isHovered:[32],isFocused:[32],isPressed:[32]},void 0,{initialChecked:["watchCheckedProp"],initialIndeterminate:["watchIndeterminateProp"]}]);function Mi(){if(typeof customElements>"u")return;["xplor-checkbox"].forEach(n=>{switch(n){case"xplor-checkbox":customElements.get(n)||customElements.define(n,He);break}})}const Pi=He,Oi=Mi,ji=`@tailwind base;
11373
+ }`;let Oi=0;const He=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.checkboxChange=m(this,"checkboxChange"),this.labelId=`xplor-checkbox-label-${++Oi}`,this.initialChecked=!1,this.initialIndeterminate=!1,this.disabled=!1,this.error=!1,this.label="",this.checked=!1,this.indeterminate=!1,this.isHovered=!1,this.isFocused=!1,this.isPressed=!1,this.handleClick=()=>{this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked=!this.checked,this.checkboxChange.emit({checked:this.checked,indeterminate:this.indeterminate}))},this.handleKeyDown=n=>{this.disabled||(n.key===" "||n.key==="Enter")&&(n.preventDefault(),this.isPressed=!0,this.handleClick())},this.handleKeyUp=n=>{(n.key===" "||n.key==="Enter")&&(this.isPressed=!1)},this.getCheckboxClass=()=>{const n=["checkbox"];return this.checked&&n.push("checked"),this.indeterminate&&n.push("indeterminate"),this.disabled&&n.push("disabled"),this.error&&n.push("error"),this.isHovered&&!this.disabled&&n.push("hover"),this.isFocused&&!this.disabled&&n.push("focus"),this.isPressed&&!this.disabled&&n.push("pressed"),n.join(" ")}}watchCheckedProp(n){this.checked=n}watchIndeterminateProp(n){this.indeterminate=n}componentWillLoad(){this.checked=this.initialChecked,this.indeterminate=this.initialIndeterminate}render(){return r("div",{key:"02d3efb24ac53caa742721720ec6d212eb159a55",class:"checkbox-wrapper"},r("div",{key:"1d1024d0dfb9328d607919dad86bfa25def7bf35",class:this.getCheckboxClass(),onClick:this.handleClick,onMouseEnter:()=>this.isHovered=!0,onMouseLeave:()=>this.isHovered=!1,onMouseDown:()=>this.isPressed=!0,onMouseUp:()=>this.isPressed=!1,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,tabIndex:this.disabled?-1:0,role:"checkbox","aria-checked":this.indeterminate?"mixed":this.checked.toString(),"aria-disabled":this.disabled.toString(),"aria-labelledby":this.label?this.labelId:void 0},this.checked&&r("svg",{key:"e5bd243560546d47bfc77d753df3020fb1abb417",class:"check-icon",viewBox:"0 0 16 16",fill:"none"},r("path",{key:"19da038d854b218177b668da5b8e8c3489dd377d",d:"M13.3334 4L6.00002 11.3333L2.66669 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),this.indeterminate&&r("svg",{key:"069ce072241705fabb0a740271d7b6e6192e35a8",class:"indeterminate-icon",viewBox:"0 0 16 16",fill:"none"},r("path",{key:"afc9851ff1e2ecb32cb7f0037c72844e8ae1a625",d:"M3.33331 8H12.6666",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}))),this.label&&r("span",{key:"4fbc5b3bbf78fd53aa0ee5a65e1a3b1b76cbb114",class:"label",id:this.labelId},this.label))}static get watchers(){return{initialChecked:["watchCheckedProp"],initialIndeterminate:["watchIndeterminateProp"]}}static get style(){return Pi}},[1,"xplor-checkbox",{initialChecked:[4,"initial-checked"],initialIndeterminate:[4,"initial-indeterminate"],disabled:[4],error:[4],label:[1],checked:[32],indeterminate:[32],isHovered:[32],isFocused:[32],isPressed:[32]},void 0,{initialChecked:["watchCheckedProp"],initialIndeterminate:["watchIndeterminateProp"]}]);function ji(){if(typeof customElements>"u")return;["xplor-checkbox"].forEach(n=>{switch(n){case"xplor-checkbox":customElements.get(n)||customElements.define(n,He);break}})}const Hi=He,Ri=ji,qi=`@tailwind base;
11374
11374
  @tailwind components;
11375
11375
  @tailwind utilities;
11376
11376
  @layer base {
@@ -11824,7 +11824,7 @@ ol.mdc-list.sc-xplor-combobox li.mdc-list-item.sc-xplor-combobox, ul.mdc-list.sc
11824
11824
  text-align: center;
11825
11825
  color: #757575;
11826
11826
  font-size: 0.875rem;
11827
- }`,Re=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=x(this,"xplorChange"),this.xplorSelect=x(this,"xplorSelect"),this.xplorCreate=x(this,"xplorCreate"),this.xplorClear=x(this,"xplorClear"),this.xplorSearch=x(this,"xplorSearch"),this.items=[],this.value=null,this.placeholder="Type to search or add...",this.disabled=!1,this.readonly=!1,this.clearable=!1,this.multiple=!1,this.allowCustom=!0,this.createMessage="Create",this.isOpen=!1,this.searchQuery="",this.filteredItems=[],this.selectedItems=[],this.highlightedIndex=-1,this.customItems=[],this.handleInputFocus=()=>{this.disabled||this.readonly||(this.isOpen=!0,this.highlightedIndex=-1)},this.handleInputChange=n=>{const t=n.target;this.searchQuery=t.value,this.filterItems(),this.isOpen=!0,this.highlightedIndex=-1,this.xplorSearch.emit(this.searchQuery),!this.multiple&&this.searchQuery===""&&(this.value=null,this.xplorChange.emit(null))},this.handleInputKeyDown=n=>{var t;if(this.disabled||this.readonly)return;const o=this.filteredItems.length+(this.canCreateNew()?1:0);switch(n.key){case"ArrowDown":n.preventDefault(),this.isOpen=!0,this.highlightedIndex=Math.min(this.highlightedIndex+1,o-1),this.scrollToHighlighted();break;case"ArrowUp":n.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,-1),this.scrollToHighlighted();break;case"Enter":n.preventDefault(),this.highlightedIndex>=0?this.highlightedIndex<this.filteredItems.length?this.selectItem(this.filteredItems[this.highlightedIndex]):this.canCreateNew()&&this.createNewItem():this.canCreateNew()&&this.searchQuery.trim()!==""&&this.createNewItem();break;case"Escape":n.preventDefault(),this.isOpen=!1,(t=this.inputEl)===null||t===void 0||t.blur();break;case"Backspace":this.multiple&&this.searchQuery===""&&this.selectedItems.length>0&&(n.preventDefault(),this.removeItem(this.selectedItems[this.selectedItems.length-1]));break}},this.handleClear=()=>{var n;this.value=this.multiple?[]:null,this.selectedItems=[],this.searchQuery="",this.filterItems(),this.xplorChange.emit(this.value),this.xplorClear.emit(),(n=this.inputEl)===null||n===void 0||n.focus()}}componentWillLoad(){if(this.filterItems(),this.value!==null){if(this.multiple&&Array.isArray(this.value))this.selectedItems=this.value;else if(!this.multiple){const t=[...this.items,...this.customItems].find(o=>o.value===this.value);t&&(this.searchQuery=t.label)}}}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}filterItems(){const n=this.searchQuery.toLowerCase(),t=[...this.items,...this.customItems];if(n===""){this.filteredItems=t;return}this.filteredItems=t.filter(o=>o.label.toLowerCase().includes(n))}canCreateNew(){return!this.allowCustom||this.searchQuery.trim()===""?!1:![...this.items,...this.customItems].some(o=>o.label.toLowerCase()===this.searchQuery.toLowerCase())}scrollToHighlighted(){if(this.dropdownEl&&this.highlightedIndex>=0){const n=this.dropdownEl.querySelector(`[data-index="${this.highlightedIndex}"]`);n&&n.scrollIntoView({block:"nearest"})}}selectItem(n){var t;n.disabled||(this.multiple?(this.selectedItems.includes(n.value)||(this.selectedItems=[...this.selectedItems,n.value],this.value=this.selectedItems,this.xplorChange.emit(this.value)),this.searchQuery="",this.filterItems()):(this.value=n.value,this.searchQuery=n.label,this.isOpen=!1,this.xplorChange.emit(this.value)),this.xplorSelect.emit(n),(t=this.inputEl)===null||t===void 0||t.focus())}createNewItem(){const n=this.searchQuery.trim(),t={label:n,value:n};this.customItems=[...this.customItems,t],this.selectItem(t),this.xplorCreate.emit(n)}removeItem(n){this.selectedItems=this.selectedItems.filter(t=>t!==n),this.value=this.selectedItems,this.xplorChange.emit(this.value)}getSelectedItemLabel(n){const o=[...this.items,...this.customItems].find(i=>i.value===n);return o?o.label:n}render(){const n=this.multiple?this.selectedItems.length>0:this.value!==null&&this.searchQuery!=="",t=this.canCreateNew();return r(h,{key:"64bfbc829a52c048f8270ab328f73607bd94ebc1"},r("div",{key:"25d9cf959f68c555befdfd5d2351cbb1964b1e46",class:{combobox:!0,"combobox--disabled":this.disabled,"combobox--readonly":this.readonly,"combobox--open":this.isOpen}},this.label&&r("label",{key:"5d6afc2c5c9b3c84abca67469b87c1acb88b9517",class:"combobox__label"},this.label),r("div",{key:"5d7666d518792cc71c7062453f308771499056f9",class:"combobox__input-wrapper"},this.multiple&&this.selectedItems.length>0&&r("div",{key:"c16c2887b644a9c47034b70a949a7d4dcc403233",class:"combobox__chips"},this.selectedItems.map(o=>r("div",{class:"combobox__chip"},r("span",{class:"combobox__chip-label"},this.getSelectedItemLabel(o)),r("button",{type:"button",class:"combobox__chip-remove",onClick:()=>this.removeItem(o),disabled:this.disabled||this.readonly},"×")))),r("input",{key:"28721137cc8339ac1c0881319dc4718ed2c04cf2",ref:o=>this.inputEl=o,type:"text",class:"combobox__input",placeholder:this.placeholder,value:this.searchQuery,onFocus:this.handleInputFocus,onInput:this.handleInputChange,onKeyDown:this.handleInputKeyDown,disabled:this.disabled,readonly:this.readonly,autocomplete:"off"}),r("div",{key:"ba914008002039d274efd11f9790e9d13613a048",class:"combobox__actions"},this.clearable&&n&&!this.disabled&&!this.readonly&&r("button",{key:"3b442197e1a6e0b94157dfb6f3a5d5e5529419dc",type:"button",class:"combobox__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("span",{key:"cdafaeb0392798f291892342d50a0cec7234b7a1",class:"combobox__icon"},"▼"))),this.isOpen&&(this.filteredItems.length>0||t)&&r("div",{key:"d50da0e18e34a079345c13498efbf3c61fb6be28",class:"combobox__dropdown",ref:o=>this.dropdownEl=o},this.filteredItems.map((o,i)=>r("div",{key:o.value,"data-index":i,class:{combobox__item:!0,"combobox__item--highlighted":i===this.highlightedIndex,"combobox__item--selected":this.multiple?this.selectedItems.includes(o.value):this.value===o.value,"combobox__item--disabled":o.disabled},onClick:()=>this.selectItem(o)},o.label)),t&&r("div",{key:"9801a00634c1b6a1ed4bf1f97dc5c5321dc8c189","data-index":this.filteredItems.length,class:{combobox__item:!0,"combobox__item--create":!0,"combobox__item--highlighted":this.highlightedIndex===this.filteredItems.length},onClick:()=>this.createNewItem()},r("span",{key:"4d563ce7576c3caa2b343bfe18dbdf2c29f0ceb2",class:"combobox__create-label"},this.createMessage,":")," ",r("strong",{key:"e792de9d6e8586757271e0838b9035da7c3f47cb"},'"',this.searchQuery,'"'))),this.isOpen&&this.filteredItems.length===0&&!t&&r("div",{key:"f163e417e711ec833320a8f6d687a3202741b1fe",class:"combobox__dropdown"},r("div",{key:"30831097ffecac58be272ff9fe6931e2d7bd4a34",class:"combobox__no-results"},"No results found"))))}get el(){return this}static get style(){return ji}},[2,"xplor-combobox",{items:[16],value:[1032],placeholder:[1],label:[1],disabled:[4],readonly:[4],clearable:[4],multiple:[4],allowCustom:[4,"allow-custom"],createMessage:[1,"create-message"],isOpen:[32],searchQuery:[32],filteredItems:[32],selectedItems:[32],highlightedIndex:[32],customItems:[32]},[[4,"click","handleDocumentClick"]]]);function Hi(){if(typeof customElements>"u")return;["xplor-combobox"].forEach(n=>{switch(n){case"xplor-combobox":customElements.get(n)||customElements.define(n,Re);break}})}const Ri=Re,Ui=Hi,qi=`/* on mobile browsers, I set a width of 100% */
11827
+ }`,Re=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=m(this,"xplorChange"),this.xplorSelect=m(this,"xplorSelect"),this.xplorCreate=m(this,"xplorCreate"),this.xplorClear=m(this,"xplorClear"),this.xplorSearch=m(this,"xplorSearch"),this.items=[],this.value=null,this.placeholder="Type to search or add...",this.disabled=!1,this.readonly=!1,this.clearable=!1,this.multiple=!1,this.allowCustom=!0,this.createMessage="Create",this.isOpen=!1,this.searchQuery="",this.filteredItems=[],this.selectedItems=[],this.highlightedIndex=-1,this.customItems=[],this.handleInputFocus=()=>{this.disabled||this.readonly||(this.isOpen=!0,this.highlightedIndex=-1)},this.handleInputChange=n=>{const t=n.target;this.searchQuery=t.value,this.filterItems(),this.isOpen=!0,this.highlightedIndex=-1,this.xplorSearch.emit(this.searchQuery),!this.multiple&&this.searchQuery===""&&(this.value=null,this.xplorChange.emit(null))},this.handleInputKeyDown=n=>{var t;if(this.disabled||this.readonly)return;const o=this.filteredItems.length+(this.canCreateNew()?1:0);switch(n.key){case"ArrowDown":n.preventDefault(),this.isOpen=!0,this.highlightedIndex=Math.min(this.highlightedIndex+1,o-1),this.scrollToHighlighted();break;case"ArrowUp":n.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,-1),this.scrollToHighlighted();break;case"Enter":n.preventDefault(),this.highlightedIndex>=0?this.highlightedIndex<this.filteredItems.length?this.selectItem(this.filteredItems[this.highlightedIndex]):this.canCreateNew()&&this.createNewItem():this.canCreateNew()&&this.searchQuery.trim()!==""&&this.createNewItem();break;case"Escape":n.preventDefault(),this.isOpen=!1,(t=this.inputEl)===null||t===void 0||t.blur();break;case"Backspace":this.multiple&&this.searchQuery===""&&this.selectedItems.length>0&&(n.preventDefault(),this.removeItem(this.selectedItems[this.selectedItems.length-1]));break}},this.handleClear=()=>{var n;this.value=this.multiple?[]:null,this.selectedItems=[],this.searchQuery="",this.filterItems(),this.xplorChange.emit(this.value),this.xplorClear.emit(),(n=this.inputEl)===null||n===void 0||n.focus()}}componentWillLoad(){if(this.filterItems(),this.value!==null){if(this.multiple&&Array.isArray(this.value))this.selectedItems=this.value;else if(!this.multiple){const t=[...this.items,...this.customItems].find(o=>o.value===this.value);t&&(this.searchQuery=t.label)}}}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}filterItems(){const n=this.searchQuery.toLowerCase(),t=[...this.items,...this.customItems];if(n===""){this.filteredItems=t;return}this.filteredItems=t.filter(o=>o.label.toLowerCase().includes(n))}canCreateNew(){return!this.allowCustom||this.searchQuery.trim()===""?!1:![...this.items,...this.customItems].some(o=>o.label.toLowerCase()===this.searchQuery.toLowerCase())}scrollToHighlighted(){if(this.dropdownEl&&this.highlightedIndex>=0){const n=this.dropdownEl.querySelector(`[data-index="${this.highlightedIndex}"]`);n&&n.scrollIntoView({block:"nearest"})}}selectItem(n){var t;n.disabled||(this.multiple?(this.selectedItems.includes(n.value)||(this.selectedItems=[...this.selectedItems,n.value],this.value=this.selectedItems,this.xplorChange.emit(this.value)),this.searchQuery="",this.filterItems()):(this.value=n.value,this.searchQuery=n.label,this.isOpen=!1,this.xplorChange.emit(this.value)),this.xplorSelect.emit(n),(t=this.inputEl)===null||t===void 0||t.focus())}createNewItem(){const n=this.searchQuery.trim(),t={label:n,value:n};this.customItems=[...this.customItems,t],this.selectItem(t),this.xplorCreate.emit(n)}removeItem(n){this.selectedItems=this.selectedItems.filter(t=>t!==n),this.value=this.selectedItems,this.xplorChange.emit(this.value)}getSelectedItemLabel(n){const o=[...this.items,...this.customItems].find(i=>i.value===n);return o?o.label:n}render(){const n=this.multiple?this.selectedItems.length>0:this.value!==null&&this.searchQuery!=="",t=this.canCreateNew(),o="combobox-listbox",i="combobox-label",a=this.highlightedIndex>=0?`combobox-option-${this.highlightedIndex}`:void 0;return r(b,{key:"5c3fb39153fe1a83d72b4ad3aa60d4602014916c"},r("div",{key:"ed9f80ab76d19c842e9da6a016040fdf68395332",class:{combobox:!0,"combobox--disabled":this.disabled,"combobox--readonly":this.readonly,"combobox--open":this.isOpen}},this.label&&r("label",{key:"a5837bdc2fe30046a56a659a942c82c6612e5eed",class:"combobox__label",id:i},this.label),r("div",{key:"84022a8390a2024ef29d7dbdb5bd3b34c1da2305",class:"combobox__input-wrapper"},this.multiple&&this.selectedItems.length>0&&r("div",{key:"7df2befc1d6104e8b5472c800fe30eda0ecac550",class:"combobox__chips"},this.selectedItems.map(l=>{const s=this.getSelectedItemLabel(l);return r("div",{class:"combobox__chip"},r("span",{class:"combobox__chip-label"},s),r("button",{type:"button",class:"combobox__chip-remove",onClick:()=>this.removeItem(l),disabled:this.disabled||this.readonly,"aria-label":`Remove ${s}`},"×"))})),r("input",{key:"4b01ffb37bfe750c24081ec839fcd6b70f87bde0",ref:l=>this.inputEl=l,type:"text",class:"combobox__input",placeholder:this.placeholder,value:this.searchQuery,onFocus:this.handleInputFocus,onInput:this.handleInputChange,onKeyDown:this.handleInputKeyDown,disabled:this.disabled,readonly:this.readonly,autocomplete:"off",role:"combobox","aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-controls":this.isOpen?o:void 0,"aria-activedescendant":a,"aria-labelledby":this.label?i:void 0,"aria-label":this.label?void 0:this.ariaLabel||this.placeholder,"aria-autocomplete":"list"}),r("div",{key:"f1fa0b56edeb6c5e25eebd34a9d143a0ecca1173",class:"combobox__actions"},this.clearable&&n&&!this.disabled&&!this.readonly&&r("button",{key:"5179310582b9aef4739985dbeefd35bda1bb86bb",type:"button",class:"combobox__clear",onClick:this.handleClear,"aria-label":"Clear selection"},"×"),r("span",{key:"93c5431addfcaf88e51d38907304a4e289c3183d",class:"combobox__icon","aria-hidden":"true"},"▼"))),this.isOpen&&(this.filteredItems.length>0||t)&&r("div",{key:"9fba0e29de90f8bdcdd4861fbb0fb06a20fa980b",class:"combobox__dropdown",ref:l=>this.dropdownEl=l,role:"listbox",id:o,"aria-label":this.label||this.ariaLabel||"Options"},this.filteredItems.map((l,s)=>{const c=this.multiple?this.selectedItems.includes(l.value):this.value===l.value;return r("div",{key:l.value,id:`combobox-option-${s}`,"data-index":s,role:"option","aria-selected":c?"true":"false","aria-disabled":l.disabled?"true":void 0,class:{combobox__item:!0,"combobox__item--highlighted":s===this.highlightedIndex,"combobox__item--selected":c,"combobox__item--disabled":l.disabled},onClick:()=>this.selectItem(l)},l.label)}),t&&r("div",{key:"880bc30bc32c87dfb9ecf9b706162299e80fd1c5",id:`combobox-option-${this.filteredItems.length}`,"data-index":this.filteredItems.length,role:"option","aria-selected":"false",class:{combobox__item:!0,"combobox__item--create":!0,"combobox__item--highlighted":this.highlightedIndex===this.filteredItems.length},onClick:()=>this.createNewItem()},r("span",{key:"d0ff5841add7495a79a1e9453b87706971cf8907",class:"combobox__create-label"},this.createMessage,":")," ",r("strong",{key:"e1b1e94a5afce2ab3f5a714a7c593e59d9d22ff0"},'"',this.searchQuery,'"'))),this.isOpen&&this.filteredItems.length===0&&!t&&r("div",{key:"0a95426511036f918cd42999cd1543fc26efbff2",class:"combobox__dropdown",role:"listbox",id:o},r("div",{key:"551dc3ad968c049c5bbf2a9da71d45e203e15df7",class:"combobox__no-results",role:"option","aria-disabled":"true"},"No results found"))))}get el(){return this}static get style(){return qi}},[2,"xplor-combobox",{items:[16],value:[1032],placeholder:[1],label:[1],ariaLabel:[1,"aria-label"],disabled:[4],readonly:[4],clearable:[4],multiple:[4],allowCustom:[4,"allow-custom"],createMessage:[1,"create-message"],isOpen:[32],searchQuery:[32],filteredItems:[32],selectedItems:[32],highlightedIndex:[32],customItems:[32]},[[4,"click","handleDocumentClick"]]]);function Ui(){if(typeof customElements>"u")return;["xplor-combobox"].forEach(n=>{switch(n){case"xplor-combobox":customElements.get(n)||customElements.define(n,Re);break}})}const Wi=Re,Ki=Ui,Yi=`/* on mobile browsers, I set a width of 100% */
11828
11828
  @tailwind base;
11829
11829
  @tailwind components;
11830
11830
  @tailwind utilities;
@@ -12403,7 +12403,7 @@ table.hover tbody tr:not(.empty-row):hover.selected {
12403
12403
  .datatable-footer .footer-controls {
12404
12404
  justify-content: space-between;
12405
12405
  }
12406
- }`,Ue=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.rowClick=x(this,"rowClick"),this.xplorSelectionChange=x(this,"xplorSelectionChange"),this.paginationChange=x(this,"paginationChange"),this.sortChange=x(this,"sortChange"),this.headers=[],this.items=[],this.loading=!1,this.pagination={page:1,perpage:10,total:0},this.selected=[],this.canSelect=!1,this.horizontalLines=!0,this.striped=!1,this.skeletonLoader=!0,this.hover=!0,this.perPageOptions=[10,25,50,100],this.sortBy=null,this.sortDirection=null,this.internalSelected=new Set,this.allSelected=!1,this.handleSort=n=>{n.sortable!==!1&&(this.sortBy===n.value?this.sortDirection==="asc"?this.sortDirection="desc":this.sortDirection==="desc"&&(this.sortDirection=null,this.sortBy=null):(this.sortBy=n.value,this.sortDirection="asc"),this.sortChange.emit({column:this.sortBy,direction:this.sortDirection}))},this.handleSelectAll=n=>{const o=n.target.checked;o?this.items.forEach(i=>this.internalSelected.add(i)):this.internalSelected.clear(),this.allSelected=o,this.internalSelected=new Set(this.internalSelected),this.xplorSelectionChange.emit(Array.from(this.internalSelected))},this.handleSelectOne=(n,t)=>{n.target.checked?this.internalSelected.add(t):this.internalSelected.delete(t),this.internalSelected=new Set(this.internalSelected),this.updateAllSelectedState(),this.xplorSelectionChange.emit(Array.from(this.internalSelected))},this.handleRowClick=(n,t)=>{const o=t.target;o.tagName==="INPUT"||o.closest("input")||this.rowClick.emit(n)},this.handlePageChange=n=>{const t=Object.assign(Object.assign({},this.pagination),{page:n});this.paginationChange.emit(t)},this.handlePerPageChange=n=>{const t=n.target,o=parseInt(t.value,10);if(!isNaN(o)){const i=Object.assign(Object.assign({},this.pagination),{page:1,perpage:o});this.paginationChange.emit(i)}}}componentWillLoad(){this.internalSelected=new Set(this.selected)}watchSelected(n){this.internalSelected=new Set(n),this.updateAllSelectedState()}watchItems(){this.updateAllSelectedState()}updateAllSelectedState(){if(this.items.length===0){this.allSelected=!1;return}this.allSelected=this.items.every(n=>this.internalSelected.has(n))}getSortIcon(n){return this.sortBy!==n.value?r("svg",{class:"sort-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M8 3L11 6H5L8 3Z",fill:"currentColor",opacity:"0.3"}),r("path",{d:"M8 13L5 10H11L8 13Z",fill:"currentColor",opacity:"0.3"})):this.sortDirection==="asc"?r("svg",{class:"sort-icon active",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M8 3L11 6H5L8 3Z",fill:"currentColor"}),r("path",{d:"M8 13L5 10H11L8 13Z",fill:"currentColor",opacity:"0.3"})):r("svg",{class:"sort-icon active",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M8 3L11 6H5L8 3Z",fill:"currentColor",opacity:"0.3"}),r("path",{d:"M8 13L5 10H11L8 13Z",fill:"currentColor"}))}renderSkeletonLoader(){return r("tbody",{class:"skeleton-loader"},Array.from({length:this.pagination.perpage}).map(()=>r("tr",null,this.canSelect&&r("td",null,r("div",{class:"skeleton skeleton-checkbox"})),this.headers.map(()=>r("td",null,r("div",{class:"skeleton skeleton-text"}))))))}renderPagination(){const n=Math.ceil(this.pagination.total/this.pagination.perpage),t=this.pagination.page,o=(t-1)*this.pagination.perpage+1,i=Math.min(t*this.pagination.perpage,this.pagination.total);return r("div",{class:"datatable-footer"},r("div",{class:"footer-info"},this.pagination.total>0?r("span",null,"Showing ",o," to ",i," of ",this.pagination.total," entries"):r("span",null,"No entries")),r("div",{class:"footer-controls"},r("div",{class:"per-page-selector"},r("label",null,"Rows per page:",r("select",{onInput:this.handlePerPageChange},this.perPageOptions.map(a=>r("option",{value:a,selected:a===this.pagination.perpage},a))))),r("div",{class:"pagination-controls"},r("button",{class:"pagination-btn",disabled:t===1,onClick:()=>this.handlePageChange(1),"aria-label":"First page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M11 12L7 8L11 4M5 4V12",stroke:"currentColor","stroke-width":"1.5"}))),r("button",{class:"pagination-btn",disabled:t===1,onClick:()=>this.handlePageChange(t-1),"aria-label":"Previous page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M10 12L6 8L10 4",stroke:"currentColor","stroke-width":"1.5"}))),r("span",{class:"page-info"},"Page ",t," of ",n||1),r("button",{class:"pagination-btn",disabled:t>=n,onClick:()=>this.handlePageChange(t+1),"aria-label":"Next page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5"}))),r("button",{class:"pagination-btn",disabled:t>=n,onClick:()=>this.handlePageChange(n),"aria-label":"Last page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M5 4L9 8L5 12M11 4V12",stroke:"currentColor","stroke-width":"1.5"}))))))}render(){const n=typeof this.height=="number"?`${this.height}px`:this.height,t=!!this.height;return r(h,{key:"779f32a211bb2d9d5d70363112970f00d62d9ccf",class:"xplor-datatable"},r("div",{key:"27995dd2f98074fe0bd223b52ae3b25cc48a8ab6",class:"datatable-container"},r("div",{key:"379d7b6999df3d94e2fa6618394e14fa9e99d96b",class:{"table-wrapper":!0,"has-height":t,"horizontal-lines":this.horizontalLines,striped:this.striped,"is-empty":this.items.length===0},style:t?{height:n}:{}},r("table",{key:"5f46224fe7ecc2fd3781e11d592fee5c8d80e9f2",class:{hover:this.hover}},r("thead",{key:"d20432aa1d6551dd324a60ed594cd5ebc2c80198"},r("tr",{key:"62cc50e679f8345caba6f92a7ae117b68728425d"},this.canSelect&&r("th",{key:"dfffb0bf421458b192db6eae3538da8a752f5356",class:"select-column"},r("label",{key:"17cdb037cee9b2d0cce729e0761f03b4bca14354",class:"checkbox-label"},r("input",{key:"ecba2511bab5cd9a25a01eb1e7038e1400492392",type:"checkbox",checked:this.allSelected,indeterminate:this.internalSelected.size>0&&this.internalSelected.size<this.items.length,onChange:this.handleSelectAll}))),this.headers.map(o=>r("th",{class:{sortable:o.sortable!==!1,sorted:this.sortBy===o.value,fixed:o.fixed,[`align-${o.align||"left"}`]:!0},style:o.width?{width:typeof o.width=="number"?`${o.width}px`:o.width}:{},onClick:()=>o.sortable!==!1&&this.handleSort(o)},r("div",{class:"header-content"},r("span",null,o.text),o.sortable!==!1&&this.getSortIcon(o)))))),this.loading&&this.skeletonLoader?this.renderSkeletonLoader():r("tbody",null,this.items.length===0?r("tr",{class:"empty-row"},r("td",{colSpan:this.headers.length+(this.canSelect?1:0)},r("div",{class:"empty-state"},r("p",null,"No data available")))):this.items.map(o=>{const i=this.internalSelected.has(o);return r("tr",{class:{selected:i,clickable:!0},onClick:a=>this.handleRowClick(o,a)},this.canSelect&&r("td",{class:"select-column"},r("label",{class:"checkbox-label"},r("input",{type:"checkbox",checked:i,onChange:a=>this.handleSelectOne(a,o)}))),this.headers.map(a=>r("td",{class:`align-${a.align||"left"}`},r("slot",{name:`item.${a.value}`},o[a.value]))))})))),this.pagination&&this.pagination.total>0&&this.renderPagination()))}get el(){return this}static get watchers(){return{selected:["watchSelected"],items:["watchItems"]}}static get style(){return qi}},[1,"xplor-datatable",{headers:[16],items:[16],loading:[4],pagination:[16],selected:[16],canSelect:[4,"can-select"],horizontalLines:[4,"horizontal-lines"],striped:[4],height:[8],skeletonLoader:[4,"skeleton-loader"],hover:[4],perPageOptions:[16,"per-page-options"],sortBy:[32],sortDirection:[32],internalSelected:[32],allSelected:[32]},void 0,{selected:["watchSelected"],items:["watchItems"]}]);function Wi(){if(typeof customElements>"u")return;["xplor-datatable"].forEach(n=>{switch(n){case"xplor-datatable":customElements.get(n)||customElements.define(n,Ue);break}})}const Yi=Ue,Qi=Wi,Ki=`@tailwind base;
12406
+ }`,qe=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.rowClick=m(this,"rowClick"),this.xplorSelectionChange=m(this,"xplorSelectionChange"),this.paginationChange=m(this,"paginationChange"),this.sortChange=m(this,"sortChange"),this.headers=[],this.items=[],this.loading=!1,this.pagination={page:1,perpage:10,total:0},this.selected=[],this.canSelect=!1,this.horizontalLines=!0,this.striped=!1,this.skeletonLoader=!0,this.hover=!0,this.perPageOptions=[10,25,50,100],this.sortBy=null,this.sortDirection=null,this.internalSelected=new Set,this.allSelected=!1,this.handleSort=n=>{n.sortable!==!1&&(this.sortBy===n.value?this.sortDirection==="asc"?this.sortDirection="desc":this.sortDirection==="desc"&&(this.sortDirection=null,this.sortBy=null):(this.sortBy=n.value,this.sortDirection="asc"),this.sortChange.emit({column:this.sortBy,direction:this.sortDirection}))},this.handleSelectAll=n=>{const o=n.target.checked;o?this.items.forEach(i=>this.internalSelected.add(i)):this.internalSelected.clear(),this.allSelected=o,this.internalSelected=new Set(this.internalSelected),this.xplorSelectionChange.emit(Array.from(this.internalSelected))},this.handleSelectOne=(n,t)=>{n.target.checked?this.internalSelected.add(t):this.internalSelected.delete(t),this.internalSelected=new Set(this.internalSelected),this.updateAllSelectedState(),this.xplorSelectionChange.emit(Array.from(this.internalSelected))},this.handleRowClick=(n,t)=>{const o=t.target;o.tagName==="INPUT"||o.closest("input")||this.rowClick.emit(n)},this.handlePageChange=n=>{const t=Object.assign(Object.assign({},this.pagination),{page:n});this.paginationChange.emit(t)},this.handlePerPageChange=n=>{const t=n.target,o=parseInt(t.value,10);if(!isNaN(o)){const i=Object.assign(Object.assign({},this.pagination),{page:1,perpage:o});this.paginationChange.emit(i)}}}componentWillLoad(){this.internalSelected=new Set(this.selected)}watchSelected(n){this.internalSelected=new Set(n),this.updateAllSelectedState()}watchItems(){this.updateAllSelectedState()}updateAllSelectedState(){if(this.items.length===0){this.allSelected=!1;return}this.allSelected=this.items.every(n=>this.internalSelected.has(n))}getSortIcon(n){return this.sortBy!==n.value?r("svg",{class:"sort-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M8 3L11 6H5L8 3Z",fill:"currentColor",opacity:"0.3"}),r("path",{d:"M8 13L5 10H11L8 13Z",fill:"currentColor",opacity:"0.3"})):this.sortDirection==="asc"?r("svg",{class:"sort-icon active",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M8 3L11 6H5L8 3Z",fill:"currentColor"}),r("path",{d:"M8 13L5 10H11L8 13Z",fill:"currentColor",opacity:"0.3"})):r("svg",{class:"sort-icon active",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M8 3L11 6H5L8 3Z",fill:"currentColor",opacity:"0.3"}),r("path",{d:"M8 13L5 10H11L8 13Z",fill:"currentColor"}))}renderSkeletonLoader(){return r("tbody",{class:"skeleton-loader"},Array.from({length:this.pagination.perpage}).map(()=>r("tr",null,this.canSelect&&r("td",null,r("div",{class:"skeleton skeleton-checkbox"})),this.headers.map(()=>r("td",null,r("div",{class:"skeleton skeleton-text"}))))))}renderPagination(){const n=Math.ceil(this.pagination.total/this.pagination.perpage),t=this.pagination.page,o=(t-1)*this.pagination.perpage+1,i=Math.min(t*this.pagination.perpage,this.pagination.total);return r("div",{class:"datatable-footer"},r("div",{class:"footer-info"},this.pagination.total>0?r("span",null,"Showing ",o," to ",i," of ",this.pagination.total," entries"):r("span",null,"No entries")),r("div",{class:"footer-controls"},r("div",{class:"per-page-selector"},r("label",null,"Rows per page:",r("select",{onInput:this.handlePerPageChange},this.perPageOptions.map(a=>r("option",{value:a,selected:a===this.pagination.perpage},a))))),r("div",{class:"pagination-controls"},r("button",{class:"pagination-btn",disabled:t===1,onClick:()=>this.handlePageChange(1),"aria-label":"First page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M11 12L7 8L11 4M5 4V12",stroke:"currentColor","stroke-width":"1.5"}))),r("button",{class:"pagination-btn",disabled:t===1,onClick:()=>this.handlePageChange(t-1),"aria-label":"Previous page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M10 12L6 8L10 4",stroke:"currentColor","stroke-width":"1.5"}))),r("span",{class:"page-info"},"Page ",t," of ",n||1),r("button",{class:"pagination-btn",disabled:t>=n,onClick:()=>this.handlePageChange(t+1),"aria-label":"Next page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5"}))),r("button",{class:"pagination-btn",disabled:t>=n,onClick:()=>this.handlePageChange(n),"aria-label":"Last page"},r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r("path",{d:"M5 4L9 8L5 12M11 4V12",stroke:"currentColor","stroke-width":"1.5"}))))))}render(){const n=typeof this.height=="number"?`${this.height}px`:this.height,t=!!this.height;return r(b,{key:"779f32a211bb2d9d5d70363112970f00d62d9ccf",class:"xplor-datatable"},r("div",{key:"27995dd2f98074fe0bd223b52ae3b25cc48a8ab6",class:"datatable-container"},r("div",{key:"379d7b6999df3d94e2fa6618394e14fa9e99d96b",class:{"table-wrapper":!0,"has-height":t,"horizontal-lines":this.horizontalLines,striped:this.striped,"is-empty":this.items.length===0},style:t?{height:n}:{}},r("table",{key:"5f46224fe7ecc2fd3781e11d592fee5c8d80e9f2",class:{hover:this.hover}},r("thead",{key:"d20432aa1d6551dd324a60ed594cd5ebc2c80198"},r("tr",{key:"62cc50e679f8345caba6f92a7ae117b68728425d"},this.canSelect&&r("th",{key:"dfffb0bf421458b192db6eae3538da8a752f5356",class:"select-column"},r("label",{key:"17cdb037cee9b2d0cce729e0761f03b4bca14354",class:"checkbox-label"},r("input",{key:"668128d3f8238449b965df2825e164a2e12a4626",type:"checkbox",checked:this.allSelected,indeterminate:this.internalSelected.size>0&&this.internalSelected.size<this.items.length,onChange:this.handleSelectAll,"aria-label":"Select all rows"}))),this.headers.map(o=>r("th",{class:{sortable:o.sortable!==!1,sorted:this.sortBy===o.value,fixed:o.fixed,[`align-${o.align||"left"}`]:!0},style:o.width?{width:typeof o.width=="number"?`${o.width}px`:o.width}:{},onClick:()=>o.sortable!==!1&&this.handleSort(o),"aria-sort":o.sortable!==!1&&this.sortBy===o.value?this.sortDirection==="asc"?"ascending":this.sortDirection==="desc"?"descending":"none":void 0},r("div",{class:"header-content"},r("span",null,o.text),o.sortable!==!1&&this.getSortIcon(o)))))),this.loading&&this.skeletonLoader?this.renderSkeletonLoader():r("tbody",null,this.items.length===0?r("tr",{class:"empty-row"},r("td",{colSpan:this.headers.length+(this.canSelect?1:0)},r("div",{class:"empty-state"},r("p",null,"No data available")))):this.items.map(o=>{const i=this.internalSelected.has(o);return r("tr",{class:{selected:i,clickable:!0},onClick:a=>this.handleRowClick(o,a),"aria-selected":this.canSelect?i?"true":"false":void 0},this.canSelect&&r("td",{class:"select-column"},r("label",{class:"checkbox-label"},r("input",{type:"checkbox",checked:i,onChange:a=>this.handleSelectOne(a,o)}))),this.headers.map(a=>r("td",{class:`align-${a.align||"left"}`},r("slot",{name:`item.${a.value}`},o[a.value]))))})))),this.pagination&&this.pagination.total>0&&this.renderPagination()))}get el(){return this}static get watchers(){return{selected:["watchSelected"],items:["watchItems"]}}static get style(){return Yi}},[1,"xplor-datatable",{headers:[16],items:[16],loading:[4],pagination:[16],selected:[16],canSelect:[4,"can-select"],horizontalLines:[4,"horizontal-lines"],striped:[4],height:[8],skeletonLoader:[4,"skeleton-loader"],hover:[4],perPageOptions:[16,"per-page-options"],sortBy:[32],sortDirection:[32],internalSelected:[32],allSelected:[32]},void 0,{selected:["watchSelected"],items:["watchItems"]}]);function Vi(){if(typeof customElements>"u")return;["xplor-datatable"].forEach(n=>{switch(n){case"xplor-datatable":customElements.get(n)||customElements.define(n,qe);break}})}const Qi=qe,Gi=Vi,Zi=`@tailwind base;
12407
12407
  @tailwind components;
12408
12408
  @tailwind utilities;
12409
12409
  @layer base {
@@ -12794,7 +12794,7 @@ ol.mdc-list.sc-xplor-inline-date-picker li.mdc-list-item.sc-xplor-inline-date-pi
12794
12794
  }
12795
12795
  [compact].sc-xplor-inline-date-picker-h .xplor-inline-date-picker__calendar.sc-xplor-inline-date-picker {
12796
12796
  width: 280px;
12797
- }`,qe=v(class extends y{constructor(){super(),this.__registerHost(),this.dateSelected=x(this,"dateSelected"),this.monthChanged=x(this,"monthChanged"),this.selectedDate="",this.min="",this.max="",this.readonly=!1,this.color="#008480",this.startWeekOnSunday=!0,this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this.dayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.dayNamesStartMonday=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],this.previousMonth=()=>{this.currentMonth===0?(this.currentMonth=11,this.currentYear--):this.currentMonth--,this.viewDate=new Date(this.currentYear,this.currentMonth,1),this.monthChanged.emit({year:this.currentYear,month:this.currentMonth})},this.nextMonth=()=>{this.currentMonth===11?(this.currentMonth=0,this.currentYear++):this.currentMonth++,this.viewDate=new Date(this.currentYear,this.currentMonth,1),this.monthChanged.emit({year:this.currentYear,month:this.currentMonth})},this.selectDate=n=>{if(this.readonly)return;const t=new Date(this.currentYear,this.currentMonth,n),o=this.formatDate(t);this.isDateDisabled(t)||(this.selectedDate=o,this.dateSelected.emit(o))},this.formatDate=n=>{const t=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0");return`${t}-${o}-${i}`},this.isDateDisabled=n=>{if(this.min){const t=new Date(this.min);if(n<t)return!0}if(this.max){const t=new Date(this.max);if(n>t)return!0}return!1},this.isToday=n=>{const t=new Date;return n===t.getDate()&&this.currentMonth===t.getMonth()&&this.currentYear===t.getFullYear()},this.isSelected=n=>{if(!this.selectedDate)return!1;const t=new Date(this.selectedDate);return n===t.getDate()&&this.currentMonth===t.getMonth()&&this.currentYear===t.getFullYear()},this.getDaysInMonth=()=>new Date(this.currentYear,this.currentMonth+1,0).getDate(),this.getFirstDayOfMonth=()=>{const n=new Date(this.currentYear,this.currentMonth,1).getDay();return this.startWeekOnSunday?n:n===0?6:n-1},this.renderCalendarDays=()=>{const n=this.getDaysInMonth(),t=this.getFirstDayOfMonth(),o=[];for(let i=0;i<t;i++)o.push(r("div",{class:"xplor-inline-date-picker__day xplor-inline-date-picker__day--empty"}));for(let i=1;i<=n;i++){const a=new Date(this.currentYear,this.currentMonth,i),s=this.isDateDisabled(a),l=this.isToday(i),c=this.isSelected(i);o.push(r("div",{class:{"xplor-inline-date-picker__day":!0,"xplor-inline-date-picker__day--today":l,"xplor-inline-date-picker__day--selected":c,"xplor-inline-date-picker__day--disabled":s},onClick:()=>!s&&this.selectDate(i)},i))}return o},this.getSidebarDate=()=>{const n=this.selectedDate?new Date(this.selectedDate):new Date,t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return{year:n.getFullYear(),day:t[n.getDay()],date:`${o[n.getMonth()]} ${n.getDate()}`}}}componentWillLoad(){const n=this.selectedDate?new Date(this.selectedDate):new Date;this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth(),this.viewDate=new Date(this.currentYear,this.currentMonth,1)}render(){const n=this.getSidebarDate(),t=this.startWeekOnSunday?this.dayNames:this.dayNamesStartMonday;return r(h,{key:"ee263c09219ac46da344c5ded89d43ccead118c5"},r("div",{key:"b8ad22f96552be1dc7aee70031f710eaea50f48a",class:"xplor-inline-date-picker",style:{"--picker-color":this.color}},r("div",{key:"7a4e2dbe6bb6200ba8a9e09294a28ca5884c1bcc",class:"xplor-inline-date-picker__sidebar"},r("div",{key:"3772f7bf9333f0c1378933b8219ad89a31c48f02",class:"xplor-inline-date-picker__sidebar-year"},n.year),r("div",{key:"5e6030ad1997e6d9788de0b06a28250abceddca3",class:"xplor-inline-date-picker__sidebar-day"},n.day,","),r("div",{key:"338021ddedaa98c48bb3a3fe9d66e9ebcc2844ea",class:"xplor-inline-date-picker__sidebar-date"},n.date)),r("div",{key:"cae9df55ce178a5565cab9464c54acb3d920f0f2",class:"xplor-inline-date-picker__calendar"},r("div",{key:"251870432d80a336351a22f2c27230fe69563908",class:"xplor-inline-date-picker__header"},r("button",{key:"8e31cdb4556c2db31c702177559a9083aa86ece7",type:"button",class:"xplor-inline-date-picker__arrow",onClick:this.previousMonth,"aria-label":"Previous month"},"‹"),r("div",{key:"5e6fdb54a49a6e029cc162025af534bc692bd1f6",class:"xplor-inline-date-picker__title"},this.monthNames[this.currentMonth]," ",this.currentYear),r("button",{key:"548e7e277c53245a1f33f96fb77cc784917c84ff",type:"button",class:"xplor-inline-date-picker__arrow",onClick:this.nextMonth,"aria-label":"Next month"},"›")),r("div",{key:"9a21fe00132c860916720d827a1e867feb7db8c9",class:"xplor-inline-date-picker__weekdays"},t.map(o=>r("div",{class:"xplor-inline-date-picker__weekday"},o))),r("div",{key:"85c840414639b471ba0b1cfb8f80fe7a61c25246",class:"xplor-inline-date-picker__days"},this.renderCalendarDays()))))}static get style(){return Ki}},[2,"xplor-inline-date-picker",{selectedDate:[1025,"selected-date"],min:[1],max:[1],readonly:[4],color:[1],startWeekOnSunday:[4,"start-week-on-sunday"],currentYear:[32],currentMonth:[32],viewDate:[32]}]);function We(){if(typeof customElements>"u")return;["xplor-inline-date-picker"].forEach(n=>{switch(n){case"xplor-inline-date-picker":customElements.get(n)||customElements.define(n,qe);break}})}const Vi=`@tailwind base;
12797
+ }`,Ue=v(class extends y{constructor(){super(),this.__registerHost(),this.dateSelected=m(this,"dateSelected"),this.monthChanged=m(this,"monthChanged"),this.selectedDate="",this.min="",this.max="",this.readonly=!1,this.color="#008480",this.startWeekOnSunday=!0,this.focusedDay=0,this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this.dayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.dayNamesStartMonday=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],this.previousMonth=()=>{this.currentMonth===0?(this.currentMonth=11,this.currentYear--):this.currentMonth--,this.viewDate=new Date(this.currentYear,this.currentMonth,1),this.monthChanged.emit({year:this.currentYear,month:this.currentMonth})},this.nextMonth=()=>{this.currentMonth===11?(this.currentMonth=0,this.currentYear++):this.currentMonth++,this.viewDate=new Date(this.currentYear,this.currentMonth,1),this.monthChanged.emit({year:this.currentYear,month:this.currentMonth})},this.selectDate=n=>{if(this.readonly)return;const t=new Date(this.currentYear,this.currentMonth,n),o=this.formatDate(t);this.isDateDisabled(t)||(this.selectedDate=o,this.dateSelected.emit(o))},this.formatDate=n=>{const t=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0");return`${t}-${o}-${i}`},this.isDateDisabled=n=>{if(this.min){const t=new Date(this.min);if(n<t)return!0}if(this.max){const t=new Date(this.max);if(n>t)return!0}return!1},this.isToday=n=>{const t=new Date;return n===t.getDate()&&this.currentMonth===t.getMonth()&&this.currentYear===t.getFullYear()},this.isSelected=n=>{if(!this.selectedDate)return!1;const t=new Date(this.selectedDate);return n===t.getDate()&&this.currentMonth===t.getMonth()&&this.currentYear===t.getFullYear()},this.getDaysInMonth=()=>new Date(this.currentYear,this.currentMonth+1,0).getDate(),this.getFirstDayOfMonth=()=>{const n=new Date(this.currentYear,this.currentMonth,1).getDay();return this.startWeekOnSunday?n:n===0?6:n-1},this.renderCalendarDays=()=>{const n=this.getDaysInMonth(),t=this.getFirstDayOfMonth(),o=[];for(let i=0;i<t;i++)o.push(r("div",{class:"xplor-inline-date-picker__day xplor-inline-date-picker__day--empty"}));for(let i=1;i<=n;i++){const a=new Date(this.currentYear,this.currentMonth,i),l=this.isDateDisabled(a),s=this.isToday(i),c=this.isSelected(i);o.push(r("div",{class:{"xplor-inline-date-picker__day":!0,"xplor-inline-date-picker__day--today":s,"xplor-inline-date-picker__day--selected":c,"xplor-inline-date-picker__day--disabled":l},onClick:()=>!l&&this.selectDate(i),role:"gridcell","aria-selected":c?"true":"false","aria-current":s?"date":void 0,"aria-disabled":l?"true":void 0,tabIndex:i===this.focusedDay?0:-1,"data-day":i},i))}return o},this.getSidebarDate=()=>{const n=this.selectedDate?new Date(this.selectedDate):new Date,t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return{year:n.getFullYear(),day:t[n.getDay()],date:`${o[n.getMonth()]} ${n.getDate()}`}}}componentWillLoad(){const n=this.selectedDate?new Date(this.selectedDate):new Date;this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth(),this.viewDate=new Date(this.currentYear,this.currentMonth,1),this.focusedDay=n.getDate()}handleKeyDown(n){const t=this.getDaysInMonth();switch(n.key){case"ArrowLeft":n.preventDefault(),this.focusedDay>1?this.focusedDay--:(this.previousMonth(),this.focusedDay=this.getDaysInMonth());break;case"ArrowRight":n.preventDefault(),this.focusedDay<t?this.focusedDay++:(this.nextMonth(),this.focusedDay=1);break;case"ArrowUp":n.preventDefault(),this.focusedDay>7?this.focusedDay-=7:(this.previousMonth(),this.focusedDay=this.getDaysInMonth()-(7-this.focusedDay));break;case"ArrowDown":if(n.preventDefault(),this.focusedDay+7<=t)this.focusedDay+=7;else{const o=this.focusedDay+7-t;this.nextMonth(),this.focusedDay=o}break;case"Enter":case" ":n.preventDefault(),this.focusedDay>=1&&this.focusedDay<=t&&this.selectDate(this.focusedDay);break;default:return}requestAnimationFrame(()=>{const o=this.el.querySelector(`[data-day="${this.focusedDay}"]`);o&&o.focus()})}render(){const n=this.getSidebarDate(),t=this.startWeekOnSunday?this.dayNames:this.dayNamesStartMonday;return r(b,{key:"80febb025a7aa5f0ca6f1e2370eb4258bee8d248"},r("div",{key:"debf9345ef19400a3eaefeff63e41639e6fd0a81",class:"xplor-inline-date-picker",style:{"--picker-color":this.color}},r("div",{key:"c3580aeec39d5305aa9b03e1198ed98ef7321a5d",class:"xplor-inline-date-picker__sidebar"},r("div",{key:"f657dcf267477af5390386d61aaa01836b3e70a5",class:"xplor-inline-date-picker__sidebar-year"},n.year),r("div",{key:"66283f6555f37ba7100be5af9d21ac3a7c99f3fa",class:"xplor-inline-date-picker__sidebar-day"},n.day,","),r("div",{key:"f479af2fc60e60060a4b43f62b18d1164b762efd",class:"xplor-inline-date-picker__sidebar-date"},n.date)),r("div",{key:"7c60d94c66b60653cd03c0b7e0585bef5cf4fdb0",class:"xplor-inline-date-picker__calendar"},r("div",{key:"ac94d2e0c42be967c28af3fa2ccad0316f7220a6",class:"xplor-inline-date-picker__header"},r("button",{key:"02ab5127e6d25a6832277997177ae760f9e3e602",type:"button",class:"xplor-inline-date-picker__arrow",onClick:this.previousMonth,"aria-label":"Previous month"},"‹"),r("div",{key:"11ec1328d212eea25df1d30e5608ac744a91a74b",class:"xplor-inline-date-picker__title"},this.monthNames[this.currentMonth]," ",this.currentYear),r("button",{key:"40a7d69baca4784254fbde45a5b2488c6ee94c2c",type:"button",class:"xplor-inline-date-picker__arrow",onClick:this.nextMonth,"aria-label":"Next month"},"›")),r("div",{key:"ee2b65a6d095192b41c1f2f81dc326fee817ddda",class:"xplor-inline-date-picker__weekdays"},t.map(o=>r("div",{class:"xplor-inline-date-picker__weekday"},o))),r("div",{key:"a789c627f00ff649d40fe099b53fa35bc561a148",class:"xplor-inline-date-picker__days",role:"grid"},this.renderCalendarDays()))))}get el(){return this}static get style(){return Zi}},[2,"xplor-inline-date-picker",{selectedDate:[1025,"selected-date"],min:[1],max:[1],readonly:[4],color:[1],startWeekOnSunday:[4,"start-week-on-sunday"],currentYear:[32],currentMonth:[32],viewDate:[32],focusedDay:[32]},[[0,"keydown","handleKeyDown"]]]);function We(){if(typeof customElements>"u")return;["xplor-inline-date-picker"].forEach(n=>{switch(n){case"xplor-inline-date-picker":customElements.get(n)||customElements.define(n,Ue);break}})}const Ji=`@tailwind base;
12798
12798
  @tailwind components;
12799
12799
  @tailwind utilities;
12800
12800
  @layer base {
@@ -13190,7 +13190,7 @@ ol.mdc-list.sc-xplor-date-picker li.mdc-list-item.sc-xplor-date-picker, ul.mdc-l
13190
13190
  }
13191
13191
  .date-picker__error-message.sc-xplor-date-picker {
13192
13192
  color: #d32f2f;
13193
- }`,Ye=v(class extends y{constructor(){super(),this.__registerHost(),this.dateChange=x(this,"dateChange"),this.xplorFocus=x(this,"xplorFocus"),this.xplorBlur=x(this,"xplorBlur"),this.xplorClear=x(this,"xplorClear"),this.value="",this.label="",this.placeholder="Select date",this.type="date",this.monthType="start",this.display="input",this.dateFormat="short",this.min="",this.max="",this.readonly=!1,this.disabled=!1,this.clearable=!1,this.closeOnSelect=!0,this.bgColor="white",this.color="#008480",this.startWeekOnSunday=!0,this.error="",this.hideDetails="auto",this.required=!1,this.isOpen=!1,this.inputText="",this.dropdownPosition="bottom",this.toggleDropdown=()=>{this.disabled||this.readonly||(this.updateDropdownPosition(),this.isOpen=!this.isOpen)},this.handleInputFocus=n=>{this.xplorFocus.emit(n)},this.handleInputBlur=n=>{this.xplorBlur.emit(n);const t=this.parseInputText(this.inputText);t&&this.isDateInRange(t)?(this.value=t,this.inputText=this.formatDateForDisplay(t),this.dateChange.emit(t)):this.value?this.inputText=this.formatDateForDisplay(this.value):this.inputText=""},this.handleInputChange=n=>{const t=n.target;this.inputText=t.value},this.handleDateSelected=n=>{n.stopPropagation();const t=n.detail;if(this.isDateInRange(t)){if(this.type==="month"){const o=this.parseISODate(t);if(o){let i;this.monthType==="end"?i=new Date(o.getFullYear(),o.getMonth()+1,0):i=new Date(o.getFullYear(),o.getMonth(),1);const a=this.toISO(i);this.value=a,this.inputText=this.formatDateForDisplay(a),this.dateChange.emit(a)}}else this.value=t,this.inputText=this.formatDateForDisplay(t),this.dateChange.emit(t);this.closeOnSelect&&(this.isOpen=!1)}},this.handleClear=n=>{n.stopPropagation(),this.value="",this.inputText="",this.dateChange.emit(""),this.xplorClear.emit()},this.handleTextClick=()=>{this.disabled||this.readonly||(this.updateDropdownPosition(),this.isOpen=!this.isOpen)}}componentWillLoad(){this.value&&(this.inputText=this.formatDateForDisplay(this.value))}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}parseISODate(n){if(!n)return null;const t=new Date(n+"T00:00:00");return isNaN(t.getTime())?null:t}formatDateForDisplay(n){const t=this.parseISODate(n);if(!t)return n;if(this.type==="month")return new Intl.DateTimeFormat("en-AU",{month:"long",year:"numeric"}).format(t);switch(this.dateFormat){case"long":return new Intl.DateTimeFormat("en-AU",{day:"numeric",month:"short",year:"numeric"}).format(t);case"iso":return n;case"short":default:return new Intl.DateTimeFormat("en-AU",{day:"2-digit",month:"2-digit",year:"numeric"}).format(t)}}toISO(n){const t=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0");return`${t}-${o}-${i}`}parseInputText(n){const t=n.trim();if(!t)return null;const o=t.match(/^(\d{1,2})[/\-.](\d{1,2})[/\-.](\d{4})$/);if(o){const s=parseInt(o[1],10),l=parseInt(o[2],10),c=parseInt(o[3],10),d=new Date(c,l-1,s);if(d.getFullYear()===c&&d.getMonth()===l-1&&d.getDate()===s)return this.toISO(d)}const i=t.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);if(i){const s=parseInt(i[1],10),l=parseInt(i[2],10),c=parseInt(i[3],10),d=new Date(s,l-1,c);if(d.getFullYear()===s&&d.getMonth()===l-1&&d.getDate()===c)return this.toISO(d)}const a=new Date(t);return isNaN(a.getTime())?null:this.toISO(a)}isDateInRange(n){return n?!(this.min&&n<this.min||this.max&&n>this.max):!0}updateDropdownPosition(){const n=this.el.getBoundingClientRect(),t=window.innerHeight-n.bottom;this.dropdownPosition=t<350?"top":"bottom"}render(){const n=this.hideDetails===!1||this.hideDetails==="auto"&&this.error,t=r("svg",{key:"9a8e37792f14af7af7f14ec86602b5c9bfb28b56",class:"date-picker__icon-svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("rect",{key:"bfbc6e0022ea0c4d5d9ebd49636d9d8b32c2d32c",x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),r("line",{key:"0d1fd4f951edd7bf388709e4db248d1421c67832",x1:"16",y1:"2",x2:"16",y2:"6"}),r("line",{key:"0995228bc198c5a09de2c9213a4713c2b3e3f054",x1:"8",y1:"2",x2:"8",y2:"6"}),r("line",{key:"c938471721e6e72b25cbc7d46ddf823f5a37bfe5",x1:"3",y1:"10",x2:"21",y2:"10"}));return r(h,{key:"5acf3baf9f4d5cece68b25339a68a05f572a1bb9"},r("div",{key:"b1c2d84e87ab4d99a1af317397c6b442fbb49f93",class:{"date-picker":!0,"date-picker--disabled":this.disabled,"date-picker--error":!!this.error,"date-picker--open":this.isOpen}},this.label&&r("label",{key:"94d43b8d44f60806824f4ef72fe4cb0113441351",class:"date-picker__label"},this.label,this.required&&r("span",{key:"2ae8a33b2a46d7e81a990368390f52c167879013",class:"date-picker__required"},"*")),this.display==="text"?r("div",{class:"date-picker__text-display",onClick:this.handleTextClick},r("span",{class:"date-picker__text-value"},this.value?this.formatDateForDisplay(this.value):this.placeholder),t):r("div",{class:"date-picker__field"},r("input",{type:"text",class:"date-picker__input",value:this.inputText,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onInput:this.handleInputChange,style:{backgroundColor:this.bgColor}}),r("div",{class:"date-picker__actions"},this.clearable&&this.value&&!this.disabled&&!this.readonly&&r("button",{type:"button",class:"date-picker__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("button",{type:"button",class:"date-picker__icon-btn",onClick:this.toggleDropdown,disabled:this.disabled,"aria-label":"Open calendar"},t))),n&&r("div",{key:"eff419a0def4d85e0df8e3182132eeeb57454cef",class:"date-picker__details"},this.error&&r("div",{key:"554878b0d415e16dd8715f58db0da94259a2e3c8",class:"date-picker__error-message"},this.error)),this.isOpen&&r("div",{key:"75ec84dd8849b3007cb4f99b73098e52b458a476",class:{"date-picker__dropdown":!0,"date-picker__dropdown--top":this.dropdownPosition==="top"}},r("xplor-inline-date-picker",{key:"74c870356063103474e60245888b8b2ae67fcd1a",selectedDate:this.value,min:this.min,max:this.max,readonly:this.readonly,color:this.color,startWeekOnSunday:this.startWeekOnSunday,onDateSelected:this.handleDateSelected}))))}get el(){return this}static get style(){return Vi}},[2,"xplor-date-picker",{value:[1025],label:[1],placeholder:[1],type:[1],monthType:[1,"month-type"],display:[1],dateFormat:[1,"date-format"],min:[1],max:[1],readonly:[4],disabled:[4],clearable:[4],closeOnSelect:[4,"close-on-select"],bgColor:[1,"bg-color"],color:[1],startWeekOnSunday:[4,"start-week-on-sunday"],error:[1],hideDetails:[8,"hide-details"],required:[4],isOpen:[32],inputText:[32],dropdownPosition:[32]},[[4,"click","handleDocumentClick"]]]);function Gi(){if(typeof customElements>"u")return;["xplor-date-picker","xplor-inline-date-picker"].forEach(n=>{switch(n){case"xplor-date-picker":customElements.get(n)||customElements.define(n,Ye);break;case"xplor-inline-date-picker":customElements.get(n)||We();break}})}const Zi=Ye,Ji=Gi,Ni=`@tailwind base;
13193
+ }`;let Ni=0;const Ke=v(class extends y{constructor(){super(),this.__registerHost(),this.dateChange=m(this,"dateChange"),this.xplorFocus=m(this,"xplorFocus"),this.xplorBlur=m(this,"xplorBlur"),this.xplorClear=m(this,"xplorClear"),this.value="",this.label="",this.placeholder="Select date",this.type="date",this.monthType="start",this.display="input",this.dateFormat="short",this.min="",this.max="",this.readonly=!1,this.disabled=!1,this.clearable=!1,this.closeOnSelect=!0,this.bgColor="white",this.color="#008480",this.startWeekOnSunday=!0,this.error="",this.hideDetails="auto",this.required=!1,this.isOpen=!1,this.inputText="",this.dropdownPosition="bottom",this.inputId=`xplor-date-picker-${++Ni}`,this.labelId=`${this.inputId}-label`,this.errorId=`${this.inputId}-error`,this.toggleDropdown=()=>{this.disabled||this.readonly||(this.updateDropdownPosition(),this.isOpen=!this.isOpen)},this.handleInputFocus=n=>{this.xplorFocus.emit(n)},this.handleInputBlur=n=>{this.xplorBlur.emit(n);const t=this.parseInputText(this.inputText);t&&this.isDateInRange(t)?(this.value=t,this.inputText=this.formatDateForDisplay(t),this.dateChange.emit(t)):this.value?this.inputText=this.formatDateForDisplay(this.value):this.inputText=""},this.handleInputChange=n=>{const t=n.target;this.inputText=t.value},this.handleDateSelected=n=>{n.stopPropagation();const t=n.detail;if(this.isDateInRange(t)){if(this.type==="month"){const o=this.parseISODate(t);if(o){let i;this.monthType==="end"?i=new Date(o.getFullYear(),o.getMonth()+1,0):i=new Date(o.getFullYear(),o.getMonth(),1);const a=this.toISO(i);this.value=a,this.inputText=this.formatDateForDisplay(a),this.dateChange.emit(a)}}else this.value=t,this.inputText=this.formatDateForDisplay(t),this.dateChange.emit(t);this.closeOnSelect&&(this.isOpen=!1)}},this.handleClear=n=>{n.stopPropagation(),this.value="",this.inputText="",this.dateChange.emit(""),this.xplorClear.emit()},this.handleTextClick=()=>{this.disabled||this.readonly||(this.updateDropdownPosition(),this.isOpen=!this.isOpen)}}componentWillLoad(){this.value&&(this.inputText=this.formatDateForDisplay(this.value))}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}parseISODate(n){if(!n)return null;const t=new Date(n+"T00:00:00");return isNaN(t.getTime())?null:t}formatDateForDisplay(n){const t=this.parseISODate(n);if(!t)return n;if(this.type==="month")return new Intl.DateTimeFormat("en-AU",{month:"long",year:"numeric"}).format(t);switch(this.dateFormat){case"long":return new Intl.DateTimeFormat("en-AU",{day:"numeric",month:"short",year:"numeric"}).format(t);case"iso":return n;case"short":default:return new Intl.DateTimeFormat("en-AU",{day:"2-digit",month:"2-digit",year:"numeric"}).format(t)}}toISO(n){const t=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0");return`${t}-${o}-${i}`}parseInputText(n){const t=n.trim();if(!t)return null;const o=t.match(/^(\d{1,2})[/\-.](\d{1,2})[/\-.](\d{4})$/);if(o){const l=parseInt(o[1],10),s=parseInt(o[2],10),c=parseInt(o[3],10),d=new Date(c,s-1,l);if(d.getFullYear()===c&&d.getMonth()===s-1&&d.getDate()===l)return this.toISO(d)}const i=t.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);if(i){const l=parseInt(i[1],10),s=parseInt(i[2],10),c=parseInt(i[3],10),d=new Date(l,s-1,c);if(d.getFullYear()===l&&d.getMonth()===s-1&&d.getDate()===c)return this.toISO(d)}const a=new Date(t);return isNaN(a.getTime())?null:this.toISO(a)}isDateInRange(n){return n?!(this.min&&n<this.min||this.max&&n>this.max):!0}updateDropdownPosition(){const n=this.el.getBoundingClientRect(),t=window.innerHeight-n.bottom;this.dropdownPosition=t<350?"top":"bottom"}render(){const n=this.hideDetails===!1||this.hideDetails==="auto"&&this.error,t=r("svg",{key:"8e3f3be13346ec15a3e4e2a9e9ccf3481cf8c87b",class:"date-picker__icon-svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("rect",{key:"1f5d918d65a44a7b8f9dec0609ef125c96b1ccdf",x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),r("line",{key:"d2a5ccfbe2e4afe8ed5d9277c49b09169c6ae651",x1:"16",y1:"2",x2:"16",y2:"6"}),r("line",{key:"8d114a93b8f1c4d8fc65360f34afaecc14148328",x1:"8",y1:"2",x2:"8",y2:"6"}),r("line",{key:"40b3ab407c3872d6eda481a64f8210b505e202cc",x1:"3",y1:"10",x2:"21",y2:"10"}));return r(b,{key:"7c04e985b0a900863965311e69a336d859852e66"},r("div",{key:"15b17203d293c694130493bf45b8bd6d38c7bd36",class:{"date-picker":!0,"date-picker--disabled":this.disabled,"date-picker--error":!!this.error,"date-picker--open":this.isOpen}},this.label&&r("label",{key:"e9e03dde337f9c2259611f1f1f4748bb92d86cfb",class:"date-picker__label",id:this.labelId,htmlFor:this.inputId},this.label,this.required&&r("span",{key:"4e68d0071f5224c9fc30df8864898a4906f6efba",class:"date-picker__required"},"*")),this.display==="text"?r("div",{class:"date-picker__text-display",onClick:this.handleTextClick,"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"dialog",role:"button",tabIndex:0},r("span",{class:"date-picker__text-value"},this.value?this.formatDateForDisplay(this.value):this.placeholder),t):r("div",{class:"date-picker__field"},r("input",{id:this.inputId,type:"text",class:"date-picker__input",value:this.inputText,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onInput:this.handleInputChange,style:{backgroundColor:this.bgColor},"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"dialog","aria-describedby":this.error?this.errorId:void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0}),r("div",{class:"date-picker__actions"},this.clearable&&this.value&&!this.disabled&&!this.readonly&&r("button",{type:"button",class:"date-picker__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("button",{type:"button",class:"date-picker__icon-btn",onClick:this.toggleDropdown,disabled:this.disabled,"aria-label":"Open calendar"},t))),n&&r("div",{key:"4e9fd12626bf5436604e28a236a304d60c452b50",class:"date-picker__details"},this.error&&r("div",{key:"a40425ac84ee81671f4289f4323db9a9a472d3c7",class:"date-picker__error-message",id:this.errorId},this.error)),this.isOpen&&r("div",{key:"86c55873b678dcfe74c09475cbde7657f1983799",class:{"date-picker__dropdown":!0,"date-picker__dropdown--top":this.dropdownPosition==="top"}},r("xplor-inline-date-picker",{key:"bd1636e13522a65ea6377857edea2928a6182282",selectedDate:this.value,min:this.min,max:this.max,readonly:this.readonly,color:this.color,startWeekOnSunday:this.startWeekOnSunday,onDateSelected:this.handleDateSelected}))))}get el(){return this}static get style(){return Ji}},[2,"xplor-date-picker",{value:[1025],label:[1],placeholder:[1],type:[1],monthType:[1,"month-type"],display:[1],dateFormat:[1,"date-format"],min:[1],max:[1],readonly:[4],disabled:[4],clearable:[4],closeOnSelect:[4,"close-on-select"],bgColor:[1,"bg-color"],color:[1],startWeekOnSunday:[4,"start-week-on-sunday"],error:[1],hideDetails:[8,"hide-details"],required:[4],isOpen:[32],inputText:[32],dropdownPosition:[32]},[[4,"click","handleDocumentClick"]]]);function na(){if(typeof customElements>"u")return;["xplor-date-picker","xplor-inline-date-picker"].forEach(n=>{switch(n){case"xplor-date-picker":customElements.get(n)||customElements.define(n,Ke);break;case"xplor-inline-date-picker":customElements.get(n)||We();break}})}const ea=Ke,ta=na,ra=`@tailwind base;
13194
13194
  @tailwind components;
13195
13195
  @tailwind utilities;
13196
13196
  @layer base {
@@ -14224,7 +14224,7 @@ ol.mdc-list.sc-xplor-drag-and-drop-input li.mdc-list-item.sc-xplor-drag-and-drop
14224
14224
  display: block;
14225
14225
  }
14226
14226
 
14227
- .drag-drop-wrapper.sc-xplor-drag-and-drop-input {
14227
+ .drag-drop-zone.sc-xplor-drag-and-drop-input {
14228
14228
  position: relative;
14229
14229
  padding-bottom: 2.5rem;
14230
14230
  }
@@ -14234,21 +14234,22 @@ ol.mdc-list.sc-xplor-drag-and-drop-input li.mdc-list-item.sc-xplor-drag-and-drop
14234
14234
  }
14235
14235
 
14236
14236
  .drag-drop-card.sc-xplor-drag-and-drop-input {
14237
- background-color: var(--color-secondary-50, #f3e5f5);
14237
+ background-color: #f5f5f5;
14238
14238
  border-radius: 8px;
14239
- border: 3px dashed #e0e0e0;
14240
- min-height: 240px;
14241
- padding: 1rem 1.5rem 2.5rem;
14239
+ border: 2px dashed var(--color-secondary);
14240
+ min-height: 160px;
14241
+ padding: 1rem 1.5rem 2rem;
14242
14242
  text-align: center;
14243
14243
  transition: all 0.2s ease;
14244
14244
  cursor: default;
14245
14245
  }
14246
14246
  .drag-drop-card.sc-xplor-drag-and-drop-input:hover:not(.drag-drop-card--disabled) {
14247
14247
  border-color: var(--color-secondary);
14248
+ background-color: #eeeeee;
14248
14249
  }
14249
14250
  .drag-drop-card--dragover.sc-xplor-drag-and-drop-input {
14250
- border: 3px dashed var(--color-secondary);
14251
- background-color: var(--color-secondary-100, #e1bee7);
14251
+ border: 2px dashed var(--color-secondary);
14252
+ background-color: #eeeeee;
14252
14253
  }
14253
14254
  .drag-drop-card--disabled.sc-xplor-drag-and-drop-input {
14254
14255
  opacity: 0.6;
@@ -14259,22 +14260,22 @@ ol.mdc-list.sc-xplor-drag-and-drop-input li.mdc-list-item.sc-xplor-drag-and-drop
14259
14260
  display: flex;
14260
14261
  flex-direction: column;
14261
14262
  align-items: center;
14262
- gap: 1rem;
14263
- padding: 0.5rem 0 0;
14263
+ gap: 0.25rem;
14264
+ padding: 0.25rem 0 0;
14264
14265
  }
14265
14266
 
14266
14267
  .drag-drop-card__icon.sc-xplor-drag-and-drop-input {
14267
14268
  color: var(--color-secondary);
14268
- width: 68px;
14269
- height: 68px;
14269
+ width: 40px;
14270
+ height: 40px;
14270
14271
  }
14271
14272
 
14272
14273
  .drag-drop-card__title.sc-xplor-drag-and-drop-input {
14273
14274
  color: #000000;
14274
14275
  font-family: Inter, sans-serif;
14275
- font-size: 24px;
14276
+ font-size: 18px;
14276
14277
  font-weight: 700;
14277
- line-height: 32px;
14278
+ line-height: 24px;
14278
14279
  letter-spacing: 0;
14279
14280
  margin: 0;
14280
14281
  }
@@ -14295,30 +14296,133 @@ ol.mdc-list.sc-xplor-drag-and-drop-input li.mdc-list-item.sc-xplor-drag-and-drop
14295
14296
  transform: translateX(-50%);
14296
14297
  }
14297
14298
 
14298
- .drag-drop-card__file-info.sc-xplor-drag-and-drop-input {
14299
- margin-top: 1rem;
14300
- color: #616161;
14299
+ .file-info.sc-xplor-drag-and-drop-input {
14300
+ margin-top: 1.5rem;
14301
+ }
14302
+
14303
+ .file-info__status.sc-xplor-drag-and-drop-input {
14301
14304
  font-family: Inter, sans-serif;
14302
14305
  font-size: 14px;
14303
14306
  font-weight: 400;
14304
14307
  line-height: 20px;
14305
- padding: 0.25rem;
14306
- text-align: center;
14308
+ color: #616161;
14309
+ margin: 0 0 0.5rem 0;
14310
+ }
14311
+
14312
+ .file-info__card.sc-xplor-drag-and-drop-input {
14313
+ display: flex;
14314
+ align-items: flex-start;
14315
+ gap: 0.75rem;
14316
+ background-color: #ffffff;
14317
+ border: 1px solid #e0e0e0;
14318
+ border-radius: 8px;
14319
+ padding: 0.75rem 1rem;
14320
+ }
14321
+
14322
+ .file-info__icon.sc-xplor-drag-and-drop-input {
14323
+ flex-shrink: 0;
14324
+ display: flex;
14325
+ align-items: center;
14326
+ justify-content: center;
14327
+ width: 40px;
14328
+ height: 40px;
14329
+ border-radius: 8px;
14330
+ background-color: var(--color-secondary-50, #f3e5f5);
14331
+ color: var(--color-secondary);
14332
+ }
14333
+
14334
+ .file-info__details.sc-xplor-drag-and-drop-input {
14335
+ flex: 1;
14336
+ min-width: 0;
14337
+ }
14338
+
14339
+ .file-info__name.sc-xplor-drag-and-drop-input {
14340
+ font-family: Inter, sans-serif;
14341
+ font-size: 14px;
14342
+ font-weight: 600;
14343
+ line-height: 20px;
14344
+ color: #000000;
14345
+ margin: 0;
14346
+ overflow: hidden;
14347
+ text-overflow: ellipsis;
14348
+ white-space: nowrap;
14349
+ }
14350
+
14351
+ .file-info__meta.sc-xplor-drag-and-drop-input {
14352
+ font-family: Inter, sans-serif;
14353
+ font-size: 12px;
14354
+ font-weight: 400;
14355
+ line-height: 18px;
14356
+ color: var(--color-secondary);
14357
+ margin: 0.25rem 0 0 0;
14358
+ }
14359
+
14360
+ .file-info__progress-row.sc-xplor-drag-and-drop-input {
14361
+ display: flex;
14362
+ align-items: center;
14363
+ gap: 0.5rem;
14364
+ margin-top: 0.5rem;
14365
+ }
14366
+
14367
+ .file-info__progress-bar.sc-xplor-drag-and-drop-input {
14368
+ flex: 1;
14369
+ height: 6px;
14370
+ background-color: #eeeeee;
14371
+ border-radius: 3px;
14372
+ overflow: hidden;
14373
+ }
14374
+
14375
+ .file-info__progress-fill.sc-xplor-drag-and-drop-input {
14376
+ height: 100%;
14377
+ background-color: var(--color-secondary);
14378
+ border-radius: 3px;
14379
+ transition: width 0.3s ease;
14380
+ }
14381
+
14382
+ .file-info__progress-text.sc-xplor-drag-and-drop-input {
14383
+ font-family: Inter, sans-serif;
14384
+ font-size: 12px;
14385
+ font-weight: 400;
14386
+ line-height: 18px;
14387
+ color: #757575;
14388
+ flex-shrink: 0;
14389
+ min-width: 32px;
14390
+ text-align: right;
14391
+ }
14392
+
14393
+ .file-info__remove.sc-xplor-drag-and-drop-input {
14394
+ flex-shrink: 0;
14395
+ display: flex;
14396
+ align-items: center;
14397
+ justify-content: center;
14398
+ width: 32px;
14399
+ height: 32px;
14400
+ border-radius: 50%;
14401
+ border: none;
14402
+ background-color: #eeeeee;
14403
+ color: #757575;
14404
+ cursor: pointer;
14405
+ padding: 0;
14406
+ transition: background-color 0.2s ease;
14407
+ }
14408
+ .file-info__remove.sc-xplor-drag-and-drop-input:hover {
14409
+ background-color: #e0e0e0;
14410
+ color: #424242;
14307
14411
  }
14308
14412
 
14309
14413
  @media (max-width: 768px) {
14310
14414
  .drag-drop-card.sc-xplor-drag-and-drop-input {
14311
- min-height: 200px;
14415
+ min-height: 140px;
14312
14416
  }
14313
14417
  .drag-drop-card__title.sc-xplor-drag-and-drop-input {
14314
- font-size: 20px;
14315
- line-height: 28px;
14418
+ font-size: 16px;
14419
+ line-height: 22px;
14316
14420
  }
14317
14421
  .drag-drop-card__accepts.sc-xplor-drag-and-drop-input, .drag-drop-card__divider.sc-xplor-drag-and-drop-input {
14318
14422
  font-size: 13px;
14319
14423
  line-height: 18px;
14320
14424
  }
14321
- }`,Wn="*/*",Qe=v(class extends y{constructor(){super(),this.__registerHost(),this.fileSelect=x(this,"fileSelect"),this.fileClear=x(this,"fileClear"),this.disabled=!1,this.accepts=Wn,this.label="Drag and drop your file here",this.browseLabel="Browse Files",this.dragover=!1,this.currentFile=null,this.onDrop=n=>{var t,o;if(n.preventDefault(),this.dragover=!1,this.disabled)return;const i=(o=(t=n.dataTransfer)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o[0];i&&(this.currentFile=i,this.fileSelect.emit(this.currentFile))},this.onDragOver=n=>{n.preventDefault(),this.disabled||(this.dragover=!0)},this.onDragEnter=n=>{n.preventDefault(),this.disabled||(this.dragover=!0)},this.onDragLeave=n=>{n.preventDefault(),this.dragover=!1},this.onFileSelect=n=>{var t;const o=n.target,i=(t=o.files)===null||t===void 0?void 0:t[0];i&&(this.currentFile=i,this.fileSelect.emit(this.currentFile)),o.value=""},this.openFileDialog=()=>{var n;this.disabled||(n=this.fileInputEl)===null||n===void 0||n.click()},this.getAcceptsLabel=()=>{var n;const t=(n=this.accepts)===null||n===void 0?void 0:n.trim();return!t||t===Wn?"*":t}}async clearCurrentFile(){this.currentFile=null,this.fileInputEl&&(this.fileInputEl.value=""),this.fileClear.emit()}render(){return r(h,{key:"b72e4af7297041c85e4739d815a306ff911e7aa1"},r("div",{key:"40ffa20b154c281bfc25b9b84ad4c2f0b8ed8ccb",class:"drag-drop-wrapper"},r("div",{key:"32129f70d878d4d9521125038ea19deddfed91d4",class:{"drag-drop-card":!0,"drag-drop-card--dragover":this.dragover,"drag-drop-card--disabled":this.disabled},onDrop:this.onDrop,onDragOver:this.onDragOver,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave},r("div",{key:"a85fdd90c7906f3aaaa7abc8d32242c8187962fe",class:"drag-drop-card__content"},r("svg",{key:"6db73c93ac4466f211877acf4624e619e1a720f3",class:"drag-drop-card__icon",xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 24 24",fill:"none"},r("path",{key:"498a203a5dd4bae94216812bbd0bb50e7754ab87",d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04Z",fill:"currentColor",opacity:"0.3"}),r("path",{key:"eb67e96947f184dab5a6b85987ef7938993b5f33",d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04ZM14 13V17H10V13H7L12 8L17 13H14Z",fill:"currentColor"})),r("h3",{key:"e37febff26d168eee495b5bc7dd49346fdb1079f",class:"drag-drop-card__title"},this.label),r("p",{key:"514955f0836288b51e45d1ddaefe5eb2361e6007",class:"drag-drop-card__accepts"},"Accepted file types: ",this.getAcceptsLabel()),r("p",{key:"d390f6dc61ba8d87a512ca216c46dc8faf6d76a8",class:"drag-drop-card__divider"},"or"))),r("div",{key:"2127925fcb39ec6adea03f107ffe6faaee5a0c48",class:"drag-drop-card__action"},r("xplor-button",{key:"0659fa9bcc6f363516aebc12f66329f1aee630ab",text:this.browseLabel,type:this.disabled?"disabled":"secondary",clickAction:this.openFileDialog})),this.currentFile&&r("div",{key:"f6a788d77dd8d6f725ee0c6fde06ee3dbbadd77b",class:"drag-drop-card__file-info"},"File Selected: ",this.currentFile.name)),r("input",{key:"c514f68ceea5a5c6fd51e9bbe2098d100c6a9870",id:"drag-drop-file-select",type:"file",disabled:this.disabled,accept:this.accepts,class:"drag-drop-input-hidden",ref:n=>this.fileInputEl=n,onChange:this.onFileSelect}))}static get style(){return Ni}},[2,"xplor-drag-and-drop-input",{disabled:[4],accepts:[1],label:[1],browseLabel:[1,"browse-label"],dragover:[32],currentFile:[32],clearCurrentFile:[64]}]);function na(){if(typeof customElements>"u")return;["xplor-drag-and-drop-input","xplor-button"].forEach(n=>{switch(n){case"xplor-drag-and-drop-input":customElements.get(n)||customElements.define(n,Qe);break;case"xplor-button":customElements.get(n)||G();break}})}const ea=Qe,ta=na,ra=Pe,oa=Oe,ia=`@tailwind base;
14425
+ }`,Wn="*/*",Ye=v(class extends y{constructor(){super(),this.__registerHost(),this.fileSelect=m(this,"fileSelect"),this.fileClear=m(this,"fileClear"),this.disabled=!1,this.accepts=Wn,this.label="Drag and drop your files here",this.browseLabel="Browse Files",this.progress=-1,this.dragover=!1,this.currentFile=null,this.onDrop=n=>{var t,o;if(n.preventDefault(),this.dragover=!1,this.disabled)return;const i=(o=(t=n.dataTransfer)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o[0];i&&(this.currentFile=i,this.fileSelect.emit(this.currentFile))},this.onDragOver=n=>{n.preventDefault(),this.disabled||(this.dragover=!0)},this.onDragEnter=n=>{n.preventDefault(),this.disabled||(this.dragover=!0)},this.onDragLeave=n=>{n.preventDefault(),this.dragover=!1},this.onFileSelect=n=>{var t;const o=n.target,i=(t=o.files)===null||t===void 0?void 0:t[0];i&&(this.currentFile=i,this.fileSelect.emit(this.currentFile)),o.value=""},this.openFileDialog=()=>{var n;this.disabled||(n=this.fileInputEl)===null||n===void 0||n.click()},this.getAcceptsLabel=()=>{var n;const t=(n=this.accepts)===null||n===void 0?void 0:n.trim();return!t||t===Wn?"*":t},this.formatFileSize=n=>{if(n===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],i=Math.floor(Math.log(n)/Math.log(t));return parseFloat((n/Math.pow(t,i)).toFixed(2))+" "+o[i]},this.formatDate=n=>{const t=new Date(n),o=t.getDate(),a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],l=t.getFullYear(),s=o===1||o===21||o===31?"st":o===2||o===22?"nd":o===3||o===23?"rd":"th",c=t.getHours(),d=t.getMinutes().toString().padStart(2,"0"),p=t.getSeconds().toString().padStart(2,"0"),g=c>=12?"PM":"AM",x=c%12||12;return`${o}${s} ${a} ${l}, ${x}:${d}:${p} ${g}`},this.showProgress=()=>this.progress>=0&&this.progress<=100}async clearCurrentFile(){this.currentFile=null,this.fileInputEl&&(this.fileInputEl.value=""),this.fileClear.emit()}render(){const n=Math.min(Math.max(this.progress,0),100),t=this.ariaLabel||`${this.label}. Accepted file types: ${this.getAcceptsLabel()}. Or use the ${this.browseLabel} button.`;return r(b,{key:"4ca1a26f1c043761a3bcafebf3ccdf57ec17467b"},r("div",{key:"60c9f55d838820e2d9c087fbb652559944ecfc36",class:"drag-drop-zone"},r("div",{key:"f15e206b7f1e1741f5ee96681e000400e72d66b1",class:{"drag-drop-card":!0,"drag-drop-card--dragover":this.dragover,"drag-drop-card--disabled":this.disabled},onDrop:this.onDrop,onDragOver:this.onDragOver,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,role:"region","aria-label":t},r("div",{key:"49325fd7ff2d44a045eba593e2cb3708316a5be4",class:"drag-drop-card__content"},r("svg",{key:"23b8f38df073266201a01ec78a45b1cac924a3e4",class:"drag-drop-card__icon",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},r("path",{key:"eb1c750d1657fd578cf15c9bc16d5d1885d703e8",d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04Z",fill:"currentColor",opacity:"0.3"}),r("path",{key:"04dc16407d2abd999fbef9cc02346d499644f0a7",d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04ZM14 13V17H10V13H7L12 8L17 13H14Z",fill:"currentColor"})),r("h3",{key:"82c31b56cb5f17445748e0bfb8668caef4ceea59",class:"drag-drop-card__title"},this.label),r("p",{key:"69f3cf01f58dc8f3e2e13782be2a0274f2925a0d",class:"drag-drop-card__accepts"},"Accepted file types: ",this.getAcceptsLabel()),r("p",{key:"0a6221601983e61cb4a0afd4a5178377b59b4ce4",class:"drag-drop-card__divider"},"or"))),r("div",{key:"164c31d1407d492e415a086ae97dc8081a32eccc",class:"drag-drop-card__action"},r("xplor-button",{key:"b47c05a246700472cebc32c551096ad17f12da77",text:this.browseLabel,type:this.disabled?"disabled":"secondary",clickAction:this.openFileDialog,"aria-label":this.browseLabel}))),this.currentFile&&r("div",{key:"6e74d72d3545bc85f91a6d55865743bde26eba78",class:"file-info","aria-live":"polite"},this.showProgress()&&r("p",{key:"7884acf7b14ddcd052a11b53131e6fea03c0376d",class:"file-info__status"},"Uploading ",this.progress===100?"1":"0"," / 1"),r("div",{key:"980b31adfde06383bdbe9d03f868a9cf907c83f8",class:"file-info__card"},r("div",{key:"c9ed4fc96a229e748a461d788ed60a8b7c693f7c",class:"file-info__icon","aria-hidden":"true"},r("svg",{key:"1749fafd0495beacdbbf2f89b2cf62c2530101db",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor"},r("path",{key:"1b114d4b5b0f055534ba5f6a476d413600829c74",d:"M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2ZM6 20V4H13V9H18V20H6Z"}))),r("div",{key:"45608139178d2d821a6aeb39d75b1aa4117ca12a",class:"file-info__details"},r("p",{key:"66df2443dd4dd310891e30f78ccd007df726afd3",class:"file-info__name"},this.currentFile.name),r("p",{key:"f8efc8b19987c88e7ff7de242b7ad3df4ff5962e",class:"file-info__meta"},this.formatFileSize(this.currentFile.size),this.currentFile.lastModified?` | Last modified: ${this.formatDate(this.currentFile.lastModified)}`:""),this.showProgress()&&r("div",{key:"eb384d34fcb7908a39bb3dd1520389f8bc35a8fd",class:"file-info__progress-row"},r("div",{key:"bbfb481fa86247c231db4c7505009d1a991c85d2",class:"file-info__progress-bar",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Upload progress: ${Math.round(n)}%`},r("div",{key:"8b93dcc26a1497783c4ef832b75c202e639a04ff",class:"file-info__progress-fill",style:{width:`${n}%`}})),r("span",{key:"a429605ee278d74660a717bc04765ca21af60f64",class:"file-info__progress-text","aria-hidden":"true"},Math.round(this.progress),"%"))),r("button",{key:"5ede3c138b788270b45a053ccf2504a35a5037ed",class:"file-info__remove",onClick:()=>this.clearCurrentFile(),"aria-label":`Remove file ${this.currentFile.name}`},r("svg",{key:"0a5c03471e01b7f59dadaff6c8ea08b746c8c4c2",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},r("path",{key:"29a950f57d7a7d9aa74262f64fc055d8230e4453",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12Z"}))))),r("input",{key:"437111b2dbd80a8aaf1a2a4105bc8298431b2b95",id:"drag-drop-file-select",type:"file",disabled:this.disabled,accept:this.accepts,class:"drag-drop-input-hidden",ref:o=>this.fileInputEl=o,onChange:this.onFileSelect,"aria-label":`${this.browseLabel} - ${this.label}`,tabindex:-1}))}static get style(){return ra}},[2,"xplor-drag-and-drop-input",{disabled:[4],accepts:[1],label:[1],browseLabel:[1,"browse-label"],ariaLabel:[1,"aria-label"],progress:[2],dragover:[32],currentFile:[32],clearCurrentFile:[64]}]);function oa(){if(typeof customElements>"u")return;["xplor-drag-and-drop-input","xplor-button"].forEach(n=>{switch(n){case"xplor-drag-and-drop-input":customElements.get(n)||customElements.define(n,Ye);break;case"xplor-button":customElements.get(n)||G();break}})}const ia=Ye,aa=oa,la=Pe,sa=Oe,da=`@tailwind base;
14322
14426
  @tailwind components;
14323
14427
  @tailwind utilities;
14324
14428
  @layer base {
@@ -14633,7 +14737,7 @@ ol.mdc-list.sc-xplor-expansion-panel li.mdc-list-item.sc-xplor-expansion-panel,
14633
14737
 
14634
14738
  .expansion-panel__content-inner.sc-xplor-expansion-panel {
14635
14739
  padding: 1rem 1.5rem;
14636
- }`;let aa=0;const Ke=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorPanelToggle=x(this,"xplorPanelToggle"),this.disabled=!1,this.open=!1,this.contentHeight=0,this.handleToggle=()=>{this.disabled||(this.open=!this.open,this.xplorPanelToggle.emit({id:this.panelId,isOpen:this.open}),setTimeout(()=>this.updateContentHeight(),0))}}componentWillLoad(){this.panelId=`panel-${aa++}`}componentDidLoad(){this.updateContentHeight()}updateContentHeight(){this.contentEl&&(this.contentHeight=this.contentEl.scrollHeight)}render(){return r(h,{key:"0049148b013c93b1dc071a2ab339b600c9335d14"},r("div",{key:"95ea285cf259218ecd924ca99ea60f8f82624802",class:{"expansion-panel":!0,"expansion-panel--open":this.open,"expansion-panel--disabled":this.disabled}},r("button",{key:"6830f386af7ffbbcc126c3e048ea37ba774aea1c",class:"expansion-panel__header",onClick:this.handleToggle,disabled:this.disabled,"aria-expanded":this.open?"true":"false",type:"button"},r("div",{key:"07214bcf411e7778d7dd0effb53dfb9d65604646",class:"expansion-panel__header-content"},r("slot",{key:"351b3e28b5d57169f79aae1fec0df8721a4557e4",name:"header"})),r("span",{key:"041f8e499549325dd46fae89f7797576e43e047c",class:{"expansion-panel__icon":!0,"expansion-panel__icon--open":this.open}},"▼")),r("div",{key:"c24a708cb5fb363d4e5e17e34604341872f9e4da",class:"expansion-panel__content",style:{maxHeight:this.open?`${this.contentHeight}px`:"0"}},r("div",{key:"cace106961690c2f4e1312f273136b9342f7eaca",class:"expansion-panel__content-inner",ref:n=>this.contentEl=n},r("slot",{key:"c29f780d6929b5f9687ea381cf332cfc945c8b5b"})))))}get el(){return this}static get style(){return ia}},[6,"xplor-expansion-panel",{disabled:[4],open:[1028],panelId:[32],contentHeight:[32]}]);function la(){if(typeof customElements>"u")return;["xplor-expansion-panel"].forEach(n=>{switch(n){case"xplor-expansion-panel":customElements.get(n)||customElements.define(n,Ke);break}})}const sa=Ke,da=la,ca=`@tailwind base;
14740
+ }`;let ca=0;const Ve=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorPanelToggle=m(this,"xplorPanelToggle"),this.disabled=!1,this.open=!1,this.contentHeight=0,this.handleToggle=()=>{this.disabled||(this.open=!this.open,this.xplorPanelToggle.emit({id:this.panelId,isOpen:this.open}),setTimeout(()=>this.updateContentHeight(),0))}}componentWillLoad(){this.panelId=`panel-${ca++}`}componentDidLoad(){this.updateContentHeight()}updateContentHeight(){this.contentEl&&(this.contentHeight=this.contentEl.scrollHeight)}render(){return r(b,{key:"f2b19e6a1ad6315341e0840e2c000a1123caa7e0"},r("div",{key:"1cb9ca368efb2f9e16c64c3987546f3d16981a2b",class:{"expansion-panel":!0,"expansion-panel--open":this.open,"expansion-panel--disabled":this.disabled}},r("button",{key:"5c2b82b2f13395137413e7f86160ac132c44b7ee",class:"expansion-panel__header",onClick:this.handleToggle,disabled:this.disabled,"aria-expanded":this.open?"true":"false","aria-controls":`${this.panelId}-content`,type:"button"},r("div",{key:"c1534981f842b0b7d75a6c8135a12fb6f209639c",class:"expansion-panel__header-content"},r("slot",{key:"01c5a0a1dfacdf730ec82dc0a09916d159d1c016",name:"header"})),r("span",{key:"f82ea607638e601be6b956f9ad5c6d31d6461ec6",class:{"expansion-panel__icon":!0,"expansion-panel__icon--open":this.open}},"▼")),r("div",{key:"385abb97450d912cda5fbd3bc5a5e48ea8ce8a0d",class:"expansion-panel__content",id:`${this.panelId}-content`,role:"region","aria-labelledby":this.panelId,style:{maxHeight:this.open?`${this.contentHeight}px`:"0"}},r("div",{key:"12c32ef07b6084b8528bf4800101afe0707adf05",class:"expansion-panel__content-inner",ref:n=>this.contentEl=n},r("slot",{key:"a18755879b94fc09948ed8128d73cfb3b0639885"})))))}get el(){return this}static get style(){return da}},[6,"xplor-expansion-panel",{disabled:[4],open:[1028],panelId:[32],contentHeight:[32]}]);function pa(){if(typeof customElements>"u")return;["xplor-expansion-panel"].forEach(n=>{switch(n){case"xplor-expansion-panel":customElements.get(n)||customElements.define(n,Ve);break}})}const ga=Ve,xa=pa,ma=`@tailwind base;
14637
14741
  @tailwind components;
14638
14742
  @tailwind utilities;
14639
14743
  @layer base {
@@ -14891,7 +14995,7 @@ ol.mdc-list.sc-xplor-expansion-panels li.mdc-list-item.sc-xplor-expansion-panels
14891
14995
  display: flex;
14892
14996
  flex-direction: column;
14893
14997
  gap: 0;
14894
- }`,Ve=v(class extends y{constructor(){super(),this.__registerHost(),this.value=[],this.multiple=!1,this.accordion=!0,this.openPanels=new Set}componentWillLoad(){Array.isArray(this.value)?this.openPanels=new Set(this.value):this.value&&(this.openPanels=new Set([this.value]))}handlePanelToggle(n){n.stopPropagation();const{id:t,isOpen:o}=n.detail;if(o)this.multiple?this.openPanels=new Set([...this.openPanels,t]):this.openPanels=new Set([t]);else{const i=new Set(this.openPanels);i.delete(t),this.openPanels=i}this.value=this.multiple?Array.from(this.openPanels):Array.from(this.openPanels)[0]||""}render(){return r(h,{key:"84799902825dd3245333d6ae1e3c2016bfe4351c"},r("div",{key:"b43833c79be3f85cb941fd26a57f31efddc4b898",class:"expansion-panels"},r("slot",{key:"56a99fa50bad4de4b1955ce7fd10db7eefa2b0fe"})))}static get style(){return ca}},[6,"xplor-expansion-panels",{value:[1025],multiple:[4],accordion:[4],openPanels:[32]},[[0,"xplorPanelToggle","handlePanelToggle"]]]);function pa(){if(typeof customElements>"u")return;["xplor-expansion-panels"].forEach(n=>{switch(n){case"xplor-expansion-panels":customElements.get(n)||customElements.define(n,Ve);break}})}const ga=Ve,xa=pa,ma=`@tailwind base;
14998
+ }`,Qe=v(class extends y{constructor(){super(),this.__registerHost(),this.value=[],this.multiple=!1,this.accordion=!0,this.openPanels=new Set}componentWillLoad(){Array.isArray(this.value)?this.openPanels=new Set(this.value):this.value&&(this.openPanels=new Set([this.value]))}handlePanelToggle(n){n.stopPropagation();const{id:t,isOpen:o}=n.detail;if(o)this.multiple?this.openPanels=new Set([...this.openPanels,t]):this.openPanels=new Set([t]);else{const i=new Set(this.openPanels);i.delete(t),this.openPanels=i}this.value=this.multiple?Array.from(this.openPanels):Array.from(this.openPanels)[0]||""}render(){return r(b,{key:"c55c8eef4f6f134c83f2f8dffcb434401596a095"},r("div",{key:"d29c006de658c679ce5cfa2a465b9e5756b8bba5",class:"expansion-panels","aria-label":"Accordion"},r("slot",{key:"32560ca5fa3b041e6e1f5f8011df9fef8f50cc6f"})))}static get style(){return ma}},[6,"xplor-expansion-panels",{value:[1025],multiple:[4],accordion:[4],openPanels:[32]},[[0,"xplorPanelToggle","handlePanelToggle"]]]);function ha(){if(typeof customElements>"u")return;["xplor-expansion-panels"].forEach(n=>{switch(n){case"xplor-expansion-panels":customElements.get(n)||customElements.define(n,Qe);break}})}const ba=Qe,ua=ha,fa=`@tailwind base;
14895
14999
  @tailwind components;
14896
15000
  @tailwind utilities;
14897
15001
  @layer base {
@@ -15305,7 +15409,7 @@ ol.mdc-list.sc-xplor-file-upload li.mdc-list-item.sc-xplor-file-upload, ul.mdc-l
15305
15409
  .file-upload__remove.sc-xplor-file-upload:focus {
15306
15410
  outline: 2px solid #1976d2;
15307
15411
  outline-offset: 2px;
15308
- }`,ba="*/*",Ge=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorFileAdd=x(this,"xplorFileAdd"),this.xplorFileRemove=x(this,"xplorFileRemove"),this.xplorError=x(this,"xplorError"),this.accepts=ba,this.maxSize=10*1024*1024,this.multiple=!1,this.disabled=!1,this.showPreview=!0,this.label="Upload Files",this.files=[],this.isDragging=!1,this.error="",this.handleFileSelect=n=>{const t=n.target;t.files&&this.processFiles(Array.from(t.files))},this.handleDragOver=n=>{n.preventDefault(),this.disabled||(this.isDragging=!0)},this.handleDragLeave=n=>{n.preventDefault(),this.isDragging=!1},this.handleDrop=n=>{var t;n.preventDefault(),this.isDragging=!1,!this.disabled&&!((t=n.dataTransfer)===null||t===void 0)&&t.files&&this.processFiles(Array.from(n.dataTransfer.files))},this.handleRemoveFile=n=>{this.files=this.files.filter(t=>t.id!==n.id),this.xplorFileRemove.emit(n)},this.handleButtonClick=()=>{!this.disabled&&this.fileInputEl&&this.fileInputEl.click()}}processFiles(n){this.error="";const t=[];for(const o of n){if(o.size>this.maxSize){const a=(this.maxSize/1048576).toFixed(2);this.error=`File "${o.name}" exceeds maximum size of ${a}MB`,this.xplorError.emit(this.error);continue}if(this.accepts!=="*/*"){const a=this.accepts.split(",").map(c=>c.trim()),s=`.${o.name.split(".").pop()}`;if(!a.some(c=>c.endsWith("/*")?o.type.startsWith(c.replace("/*","")):c===o.type||c===s)){this.error=`File type "${o.type}" is not accepted`,this.xplorError.emit(this.error);continue}}const i={file:o,id:`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,name:o.name,size:o.size,type:o.type};if(this.showPreview&&o.type.startsWith("image/")){const a=new FileReader;a.onload=s=>{var l;i.dataUrl=(l=s.target)===null||l===void 0?void 0:l.result,this.files=[...this.files]},a.readAsDataURL(o)}t.push(i)}t.length>0&&(this.multiple?this.files=[...this.files,...t]:this.files=[t[0]],this.xplorFileAdd.emit(t)),this.fileInputEl&&(this.fileInputEl.value="")}formatFileSize(n){if(n===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],i=Math.floor(Math.log(n)/Math.log(t));return Math.round(n/Math.pow(t,i)*100)/100+" "+o[i]}render(){return r(h,{key:"9c3ad81ff741fe6324a5e8af562c740965024df1"},r("div",{key:"b0b9bb545ce5a4e74c38bc6b49f7681f6e10dd89",class:"file-upload"},r("div",{key:"d1f1198c0d47009ffa85cc1188d292029b979111",class:{"file-upload__dropzone":!0,"file-upload__dropzone--dragging":this.isDragging,"file-upload__dropzone--disabled":this.disabled},onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},r("input",{key:"1625dae6ee5648ea0dee0673a892420d0dab2e7c",ref:n=>this.fileInputEl=n,type:"file",accept:this.accepts,multiple:this.multiple,disabled:this.disabled,onChange:this.handleFileSelect,class:"file-upload__input"}),r("div",{key:"2d1e0ff6e55dd56df7ff04829128dd74eb05d350",class:"file-upload__content"},r("svg",{key:"aab4f33389ed3cddc4d6a30300d384209058f64e",class:"file-upload__icon",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},r("path",{key:"51da727eaa0d9394184b54c845ae70c0de2c9c5c",d:"M12 15V3M12 3L8 7M12 3L16 7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{key:"38123b6c7c9c898040a225d851ff7b488f8fedf4",d:"M2 17L2 19C2 20.1046 2.89543 21 4 21L20 21C21.1046 21 22 20.1046 22 19L22 17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})),r("p",{key:"530f416409a178f0dc9de208476085452e66156a",class:"file-upload__text"},"Drag & drop files here or"," ",r("button",{key:"9465171b3ee487fbf0e7aa75da09709eb061a32e",type:"button",class:"file-upload__button",onClick:this.handleButtonClick,disabled:this.disabled},this.label)),r("p",{key:"b94b0c91a37fc218362a25ffe46d77929a6752f5",class:"file-upload__hint"},"Max size: ",this.formatFileSize(this.maxSize),this.accepts!=="*/*"&&` • Accepts: ${this.accepts}`))),this.error&&r("div",{key:"46a708db58e94110d41a8b86571dd29e58e76ae2",class:"file-upload__error",role:"alert"},this.error),this.files.length>0&&r("div",{key:"95d2aadf7587f759ecd3b55a84b7d6a7ec8c61ac",class:"file-upload__files"},this.files.map(n=>r("div",{key:n.id,class:"file-upload__file"},n.dataUrl&&r("img",{src:n.dataUrl,alt:n.name,class:"file-upload__preview"}),r("div",{class:"file-upload__file-info"},r("span",{class:"file-upload__file-name",title:n.name},n.name),r("span",{class:"file-upload__file-size"},this.formatFileSize(n.size))),r("button",{type:"button",class:"file-upload__remove",onClick:()=>this.handleRemoveFile(n),"aria-label":`Remove ${n.name}`},"×"))))))}static get style(){return ma}},[2,"xplor-file-upload",{accepts:[1],maxSize:[2,"max-size"],multiple:[4],disabled:[4],showPreview:[4,"show-preview"],label:[1],files:[32],isDragging:[32],error:[32]}]);function ha(){if(typeof customElements>"u")return;["xplor-file-upload"].forEach(n=>{switch(n){case"xplor-file-upload":customElements.get(n)||customElements.define(n,Ge);break}})}const ua=Ge,fa=ha,ya=`@tailwind base;
15412
+ }`,ya="*/*",Ge=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorFileAdd=m(this,"xplorFileAdd"),this.xplorFileRemove=m(this,"xplorFileRemove"),this.xplorError=m(this,"xplorError"),this.accepts=ya,this.maxSize=10*1024*1024,this.multiple=!1,this.disabled=!1,this.showPreview=!0,this.label="Upload Files",this.files=[],this.isDragging=!1,this.error="",this.handleFileSelect=n=>{const t=n.target;t.files&&this.processFiles(Array.from(t.files))},this.handleDragOver=n=>{n.preventDefault(),this.disabled||(this.isDragging=!0)},this.handleDragLeave=n=>{n.preventDefault(),this.isDragging=!1},this.handleDrop=n=>{var t;n.preventDefault(),this.isDragging=!1,!this.disabled&&!((t=n.dataTransfer)===null||t===void 0)&&t.files&&this.processFiles(Array.from(n.dataTransfer.files))},this.handleRemoveFile=n=>{this.files=this.files.filter(t=>t.id!==n.id),this.xplorFileRemove.emit(n)},this.handleButtonClick=()=>{!this.disabled&&this.fileInputEl&&this.fileInputEl.click()}}processFiles(n){this.error="";const t=[];for(const o of n){if(o.size>this.maxSize){const a=(this.maxSize/1048576).toFixed(2);this.error=`File "${o.name}" exceeds maximum size of ${a}MB`,this.xplorError.emit(this.error);continue}if(this.accepts!=="*/*"){const a=this.accepts.split(",").map(c=>c.trim()),l=`.${o.name.split(".").pop()}`;if(!a.some(c=>c.endsWith("/*")?o.type.startsWith(c.replace("/*","")):c===o.type||c===l)){this.error=`File type "${o.type}" is not accepted`,this.xplorError.emit(this.error);continue}}const i={file:o,id:`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,name:o.name,size:o.size,type:o.type};if(this.showPreview&&o.type.startsWith("image/")){const a=new FileReader;a.onload=l=>{var s;i.dataUrl=(s=l.target)===null||s===void 0?void 0:s.result,this.files=[...this.files]},a.readAsDataURL(o)}t.push(i)}t.length>0&&(this.multiple?this.files=[...this.files,...t]:this.files=[t[0]],this.xplorFileAdd.emit(t)),this.fileInputEl&&(this.fileInputEl.value="")}formatFileSize(n){if(n===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],i=Math.floor(Math.log(n)/Math.log(t));return Math.round(n/Math.pow(t,i)*100)/100+" "+o[i]}render(){return r(b,{key:"9c3ad81ff741fe6324a5e8af562c740965024df1"},r("div",{key:"b0b9bb545ce5a4e74c38bc6b49f7681f6e10dd89",class:"file-upload"},r("div",{key:"791a95676b8e640b7dbd84b6ccf95627e5a10d7e",class:{"file-upload__dropzone":!0,"file-upload__dropzone--dragging":this.isDragging,"file-upload__dropzone--disabled":this.disabled},onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,"aria-label":`Drop zone for file upload. ${this.accepts!=="*/*"?`Accepts: ${this.accepts}.`:""} Maximum size: ${this.formatFileSize(this.maxSize)}`},r("input",{key:"c2b392d7fdd995819bceec3fa6122f457d78c2a4",ref:n=>this.fileInputEl=n,type:"file",accept:this.accepts,multiple:this.multiple,disabled:this.disabled,onChange:this.handleFileSelect,class:"file-upload__input"}),r("div",{key:"33e9ca40b7db3df954ea7221104a5191807ff05a",class:"file-upload__content"},r("svg",{key:"84c718d713b36dd0b227a234c9b05f7a54bfeb02",class:"file-upload__icon",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},r("path",{key:"21c50cf95b559252a2604352a6d14b0b051d5480",d:"M12 15V3M12 3L8 7M12 3L16 7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{key:"51d16f53f6553d9df2348e10f163b174efb61913",d:"M2 17L2 19C2 20.1046 2.89543 21 4 21L20 21C21.1046 21 22 20.1046 22 19L22 17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})),r("p",{key:"854efe384b8f181d5200d959db6633a6492c28f1",class:"file-upload__text"},"Drag & drop files here or"," ",r("button",{key:"e83a3a2f6e6caee30173579c6397edacd6e1c8a8",type:"button",class:"file-upload__button",onClick:this.handleButtonClick,disabled:this.disabled},this.label)),r("p",{key:"a667e6665ce619f854c247626454efad11131568",class:"file-upload__hint"},"Max size: ",this.formatFileSize(this.maxSize),this.accepts!=="*/*"&&` • Accepts: ${this.accepts}`))),this.error&&r("div",{key:"872a3eceb9eebbd35a06c0d841cf486e13bd48ea",class:"file-upload__error",role:"alert"},this.error),this.files.length>0&&r("div",{key:"15cc50322682fd1d555d313d089f18f92bfbb77d",class:"file-upload__files"},this.files.map(n=>r("div",{key:n.id,class:"file-upload__file"},n.dataUrl&&r("img",{src:n.dataUrl,alt:n.name,class:"file-upload__preview"}),r("div",{class:"file-upload__file-info"},r("span",{class:"file-upload__file-name",title:n.name},n.name),r("span",{class:"file-upload__file-size"},this.formatFileSize(n.size))),r("button",{type:"button",class:"file-upload__remove",onClick:()=>this.handleRemoveFile(n),"aria-label":`Remove ${n.name}`},"×"))))))}static get style(){return fa}},[2,"xplor-file-upload",{accepts:[1],maxSize:[2,"max-size"],multiple:[4],disabled:[4],showPreview:[4,"show-preview"],label:[1],files:[32],isDragging:[32],error:[32]}]);function va(){if(typeof customElements>"u")return;["xplor-file-upload"].forEach(n=>{switch(n){case"xplor-file-upload":customElements.get(n)||customElements.define(n,Ge);break}})}const ka=Ge,wa=va,_a=`@tailwind base;
15309
15413
  @tailwind components;
15310
15414
  @tailwind utilities;
15311
15415
  @layer base {
@@ -15586,7 +15690,7 @@ ol.mdc-list.sc-xplor-inline-checkbox li.mdc-list-item.sc-xplor-inline-checkbox,
15586
15690
  }
15587
15691
  .xplor-inline-checkbox--disabled.sc-xplor-inline-checkbox .xplor-inline-checkbox__label.sc-xplor-inline-checkbox {
15588
15692
  color: rgba(0, 0, 0, 0.38);
15589
- }`,Ze=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=x(this,"xplorChange"),this.checked=!1,this.color="#008480",this.disabled=!1,this.indeterminate=!1,this.label="",this.handleChange=n=>{const t=n.target;this.checked=t.checked,this.xplorChange.emit(this.checked)}}render(){const n={"xplor-inline-checkbox":!0,"xplor-inline-checkbox--disabled":this.disabled,"xplor-inline-checkbox--checked":this.checked};return r(h,{key:"e8d3c2bfb8824944eb230ab67dd282da16eac103"},r("label",{key:"ecbecd91460e78f0e1fa50013b36d8ff37fbaa65",class:n},r("input",{key:"6e5ad3043737fc8fcd46c477cd11279a18df6646",type:"checkbox",class:"xplor-inline-checkbox__input",checked:this.checked,value:this.value,disabled:this.disabled,indeterminate:this.indeterminate,onChange:this.handleChange,style:{accentColor:this.color}}),this.label&&r("span",{key:"9ae4683f392b63af41286676b0bd6c648fc9571a",class:"xplor-inline-checkbox__label"},this.label),r("slot",{key:"d6d6642934b65aacf4d5ed899b925b7445414ae0"})))}static get style(){return ya}},[6,"xplor-inline-checkbox",{checked:[1028],value:[8],color:[1],disabled:[4],indeterminate:[4],label:[1]}]);function va(){if(typeof customElements>"u")return;["xplor-inline-checkbox"].forEach(n=>{switch(n){case"xplor-inline-checkbox":customElements.get(n)||customElements.define(n,Ze);break}})}const ka=Ze,wa=va,_a=qe,Ca=We,$a=`@tailwind base;
15693
+ }`,Ze=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=m(this,"xplorChange"),this.checked=!1,this.color="#008480",this.disabled=!1,this.indeterminate=!1,this.label="",this.handleChange=n=>{const t=n.target;this.checked=t.checked,this.xplorChange.emit(this.checked)}}render(){const n={"xplor-inline-checkbox":!0,"xplor-inline-checkbox--disabled":this.disabled,"xplor-inline-checkbox--checked":this.checked};return r(b,{key:"2273357108dc65e665f9fdd9dcece4d4ed8edac3"},r("label",{key:"630091008ad489a1cc4c0e71ef1ae802ef4b0c89",class:n},r("input",{key:"0c823ba53cb0d25d4823e42bcb037efaeddff405",type:"checkbox",class:"xplor-inline-checkbox__input",checked:this.checked,value:this.value,disabled:this.disabled,indeterminate:this.indeterminate,onChange:this.handleChange,style:{accentColor:this.color}}),this.label&&r("span",{key:"9e1bbb0bd85cc7cfe7d760501507d68dcc3bf3c2",class:"xplor-inline-checkbox__label"},this.label),r("slot",{key:"7a95d78de68af2887149bd6eb9f08330b9c57d6b"})))}static get style(){return _a}},[6,"xplor-inline-checkbox",{checked:[1028],value:[8],color:[1],disabled:[4],indeterminate:[4],label:[1]}]);function Ca(){if(typeof customElements>"u")return;["xplor-inline-checkbox"].forEach(n=>{switch(n){case"xplor-inline-checkbox":customElements.get(n)||customElements.define(n,Ze);break}})}const $a=Ze,Ia=Ca,Sa=Ue,Ea=We,za=`@tailwind base;
15590
15694
  @tailwind components;
15591
15695
  @tailwind utilities;
15592
15696
  @layer base {
@@ -15910,7 +16014,7 @@ ol.mdc-list.sc-xplor-inline-switch li.mdc-list-item.sc-xplor-inline-switch, ul.m
15910
16014
  .xplor-inline-switch__input.sc-xplor-inline-switch:focus + .xplor-inline-switch__track.sc-xplor-inline-switch {
15911
16015
  outline: 2px solid var(--switch-color);
15912
16016
  outline-offset: 2px;
15913
- }`,Je=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=x(this,"xplorChange"),this.checked=!1,this.color="#008480",this.disabled=!1,this.label="",this.handleChange=n=>{const t=n.target;this.checked=t.checked,this.xplorChange.emit(this.checked)}}render(){const n={"xplor-inline-switch":!0,"xplor-inline-switch--disabled":this.disabled,"xplor-inline-switch--checked":this.checked};return r(h,{key:"02ad648d6ff7606f9801fd7900afd96725bd127f"},r("label",{key:"7b981a71ec242a3ced40544f84b10975bed2a9ba",class:n,style:{"--switch-color":this.color}},r("input",{key:"79e95af6e8d77c24471441542638bd2b8eb1781a",type:"checkbox",class:"xplor-inline-switch__input",checked:this.checked,value:this.value,disabled:this.disabled,onChange:this.handleChange}),r("span",{key:"a44af41de8093b31f20bcee05aa755775cc2d399",class:"xplor-inline-switch__track"},r("span",{key:"42b43f6ce8672a04efd673822558fe083223ecc0",class:"xplor-inline-switch__thumb"})),this.label&&r("span",{key:"c0393b42d7f2974f3f545e18d4a202d55c7eb98f",class:"xplor-inline-switch__label"},this.label),r("slot",{key:"467c6d0a8f46a8fe5720071d6eedd99f2872835e"})))}static get style(){return $a}},[6,"xplor-inline-switch",{checked:[1028],value:[8],color:[1],disabled:[4],label:[1]}]);function Sa(){if(typeof customElements>"u")return;["xplor-inline-switch"].forEach(n=>{switch(n){case"xplor-inline-switch":customElements.get(n)||customElements.define(n,Je);break}})}const Ia=Je,Ea=Sa,za=`@tailwind base;
16017
+ }`,Je=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=m(this,"xplorChange"),this.checked=!1,this.color="#008480",this.disabled=!1,this.label="",this.handleChange=n=>{const t=n.target;this.checked=t.checked,this.xplorChange.emit(this.checked)}}render(){const n={"xplor-inline-switch":!0,"xplor-inline-switch--disabled":this.disabled,"xplor-inline-switch--checked":this.checked};return r(b,{key:"d881ff0653ee51f1ddc8c146ccc6f70f3c128e3b"},r("label",{key:"2ffe4cdf99f925c5973657769f056cffb8bea283",class:n,style:{"--switch-color":this.color}},r("input",{key:"60fb990d1dce371c3579da91bd0d9fd4dd50f82b",type:"checkbox",class:"xplor-inline-switch__input",checked:this.checked,value:this.value,disabled:this.disabled,onChange:this.handleChange}),r("span",{key:"28e9f5444653009f4b56d510c2d73ba710e93115",class:"xplor-inline-switch__track"},r("span",{key:"f002449aa843c0b268dbc38d94dbf44a0e68d0de",class:"xplor-inline-switch__thumb"})),this.label&&r("span",{key:"f460d55e6cbaab94806c8025a1d17cd4d4b6790b",class:"xplor-inline-switch__label"},this.label),r("slot",{key:"59e3248368aab93dd48287f3facdbe9221a39f5b"})))}static get style(){return za}},[6,"xplor-inline-switch",{checked:[1028],value:[8],color:[1],disabled:[4],label:[1]}]);function Ta(){if(typeof customElements>"u")return;["xplor-inline-switch"].forEach(n=>{switch(n){case"xplor-inline-switch":customElements.get(n)||customElements.define(n,Je);break}})}const Da=Je,La=Ta,Fa=`@tailwind base;
15914
16018
  @tailwind components;
15915
16019
  @tailwind utilities;
15916
16020
  @layer base {
@@ -16282,7 +16386,7 @@ ol.mdc-list.sc-xplor-input-file li.mdc-list-item.sc-xplor-input-file, ul.mdc-lis
16282
16386
  font-size: 0.75rem;
16283
16387
  color: rgba(0, 0, 0, 0.6);
16284
16388
  padding: 0 1rem;
16285
- }`,Ne=v(class extends y{constructor(){super(),this.__registerHost(),this.attach=x(this,"attach"),this.xplorClear=x(this,"xplorClear"),this.label="",this.placeholder="Choose file(s)",this.color="#008480",this.disabled=!1,this.multiple=!1,this.accept="",this.maxChips=1,this.counter=!0,this.showSize=1e3,this.prependInnerIcon="📎",this.selectedFiles=[],this.handleFileChange=n=>{const t=n.target;t.files&&(this.selectedFiles=Array.from(t.files),this.attach.emit(this.selectedFiles))},this.handleClear=()=>{this.selectedFiles=[],this.fileInputRef&&(this.fileInputRef.value=""),this.xplorClear.emit()},this.formatFileSize=n=>{if(n===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],i=Math.floor(Math.log(n)/Math.log(t));return Math.round(n/Math.pow(t,i)*100)/100+" "+o[i]}}render(){const n={"xplor-input-file":!0,"xplor-input-file--disabled":this.disabled},t=this.selectedFiles.slice(0,this.maxChips),o=this.selectedFiles.length-this.maxChips;return r(h,{key:"40fb5f31ec8451dc63096f535164de6f6eb11014"},r("div",{key:"b52686901e2d3bbd56cfb0ee3088bfbf5f8ec365",class:n},this.label&&r("label",{key:"f73832f4c1a8f41690db70e301474d56c6c969b7",class:"xplor-input-file__label"},this.label),r("div",{key:"46512b939981a4b4f07ad87f5f9c82c9acb0e7a2",class:"xplor-input-file__field"},r("span",{key:"d30c938dff0d36ab2973ce69c29388ed6391317d",class:"xplor-input-file__icon"},this.prependInnerIcon),r("div",{key:"9d6bb0b0e5ec09e81f9ee57360d84f2239bf5270",class:"xplor-input-file__content"},this.selectedFiles.length===0?r("span",{class:"xplor-input-file__placeholder"},this.placeholder):r("div",{class:"xplor-input-file__chips"},t.map(i=>r("div",{class:"xplor-input-file__chip",key:i.name},r("span",{class:"xplor-input-file__chip-text"},i.name),this.showSize&&i.size&&r("span",{class:"xplor-input-file__chip-size"},"(",this.formatFileSize(i.size),")"))),o>0&&r("span",{class:"xplor-input-file__additional"},"+",o," additional file",o>1?"s":""))),this.selectedFiles.length>0&&!this.disabled&&r("button",{key:"a1300d4dce7eed67552774efeb8edc8ce1a41dd7",type:"button",class:"xplor-input-file__clear",onClick:this.handleClear,"aria-label":"Clear"},"✕"),r("input",{key:"41285fdb00cc6e52466b665d5c1fd5bbb4fc54e1",ref:i=>this.fileInputRef=i,type:"file",class:"xplor-input-file__input",multiple:this.multiple,accept:this.accept,disabled:this.disabled,onChange:this.handleFileChange})),this.counter&&this.selectedFiles.length>0&&r("div",{key:"e11fcc8dab8fb8d73fda9f6b82f2187e65ba61c2",class:"xplor-input-file__counter"},this.selectedFiles.length," file",this.selectedFiles.length>1?"s":""," selected")))}static get style(){return za}},[2,"xplor-input-file",{label:[1],placeholder:[1],color:[1],disabled:[4],multiple:[4],accept:[1],maxChips:[2,"max-chips"],counter:[4],showSize:[2,"show-size"],prependInnerIcon:[1,"prepend-inner-icon"],selectedFiles:[32]}]);function Ta(){if(typeof customElements>"u")return;["xplor-input-file"].forEach(n=>{switch(n){case"xplor-input-file":customElements.get(n)||customElements.define(n,Ne);break}})}const Da=Ne,Xa=Ta,La=`@tailwind base;
16389
+ }`;let Xa=0;const Ne=v(class extends y{constructor(){super(),this.__registerHost(),this.attach=m(this,"attach"),this.xplorClear=m(this,"xplorClear"),this.inputId=`xplor-input-file-${++Xa}`,this.label="",this.placeholder="Choose file(s)",this.color="#008480",this.disabled=!1,this.multiple=!1,this.accept="",this.maxChips=1,this.counter=!0,this.showSize=1e3,this.prependInnerIcon="📎",this.selectedFiles=[],this.handleFileChange=n=>{const t=n.target;t.files&&(this.selectedFiles=Array.from(t.files),this.attach.emit(this.selectedFiles))},this.handleClear=()=>{this.selectedFiles=[],this.fileInputRef&&(this.fileInputRef.value=""),this.xplorClear.emit()},this.formatFileSize=n=>{if(n===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],i=Math.floor(Math.log(n)/Math.log(t));return Math.round(n/Math.pow(t,i)*100)/100+" "+o[i]}}render(){const n={"xplor-input-file":!0,"xplor-input-file--disabled":this.disabled},t=this.selectedFiles.slice(0,this.maxChips),o=this.selectedFiles.length-this.maxChips;return r(b,{key:"f4cdb8be9b2a73258a308e31c07f9a8077ae39c8"},r("div",{key:"3a43a67ebb7354d1965b808d5252c70939fa917e",class:n},this.label&&r("label",{key:"03a177574387efc0a1a7aa3ea05c1425d18a0db9",class:"xplor-input-file__label",htmlFor:this.inputId},this.label),r("div",{key:"ca9c5943b0471244343e507955352af0b72eab76",class:"xplor-input-file__field"},r("span",{key:"4570d02fbed6e939b153a69ca444cf4c2be7230f",class:"xplor-input-file__icon"},this.prependInnerIcon),r("div",{key:"408231a07d2ccbdca8e57a7ae36de017f01940bc",class:"xplor-input-file__content"},this.selectedFiles.length===0?r("span",{class:"xplor-input-file__placeholder"},this.placeholder):r("div",{class:"xplor-input-file__chips"},t.map(i=>r("div",{class:"xplor-input-file__chip",key:i.name},r("span",{class:"xplor-input-file__chip-text"},i.name),this.showSize&&i.size&&r("span",{class:"xplor-input-file__chip-size"},"(",this.formatFileSize(i.size),")"))),o>0&&r("span",{class:"xplor-input-file__additional"},"+",o," additional file",o>1?"s":""))),this.selectedFiles.length>0&&!this.disabled&&r("button",{key:"da690e16f90d31d9def263a69d4ceef18e185aab",type:"button",class:"xplor-input-file__clear",onClick:this.handleClear,"aria-label":"Clear"},"✕"),r("input",{key:"f72a3b3295ce47aa4dcad63751f12256fcc20c01",id:this.inputId,ref:i=>this.fileInputRef=i,type:"file",class:"xplor-input-file__input",multiple:this.multiple,accept:this.accept,disabled:this.disabled,onChange:this.handleFileChange,"aria-label":this.label||"Choose file"})),this.counter&&this.selectedFiles.length>0&&r("div",{key:"495dd2d0314549a384085706df7f2ab722169edf",class:"xplor-input-file__counter"},this.selectedFiles.length," file",this.selectedFiles.length>1?"s":""," selected")))}static get style(){return Fa}},[2,"xplor-input-file",{label:[1],placeholder:[1],color:[1],disabled:[4],multiple:[4],accept:[1],maxChips:[2,"max-chips"],counter:[4],showSize:[2,"show-size"],prependInnerIcon:[1,"prepend-inner-icon"],selectedFiles:[32]}]);function Aa(){if(typeof customElements>"u")return;["xplor-input-file"].forEach(n=>{switch(n){case"xplor-input-file":customElements.get(n)||customElements.define(n,Ne);break}})}const Ba=Ne,Ma=Aa,Pa=`@tailwind base;
16286
16390
  @tailwind components;
16287
16391
  @tailwind utilities;
16288
16392
  @layer base {
@@ -16634,7 +16738,7 @@ ol.mdc-list.sc-xplor-input-search li.mdc-list-item.sc-xplor-input-search, ul.mdc
16634
16738
  }
16635
16739
  .xplor-input-search--disabled.sc-xplor-input-search .xplor-input-search__field.sc-xplor-input-search {
16636
16740
  background-color: rgba(0, 0, 0, 0.04);
16637
- }`,nt=v(class extends y{constructor(){super(),this.__registerHost(),this.search=x(this,"search"),this.value="",this.placeholder="Search...",this.bgColor="white",this.color="#008480",this.disabled=!1,this.density="default",this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value},this.handleSearch=()=>{this.search.emit(this.value)},this.handleKeyDown=n=>{n.key==="Enter"&&this.handleSearch()}}render(){const n={"xplor-input-search":!0,[`xplor-input-search--${this.density}`]:!0,"xplor-input-search--focused":this.isFocused,"xplor-input-search--disabled":this.disabled};return r(h,{key:"c608c1ad9c73dc708aaf5d985b0e376ad7923b59"},r("div",{key:"8efabc2eea7bf741658a8d01f4b6ed14b259de82",class:n},r("div",{key:"82384b7cf2967ca26e8d3b1358a5c9266fa09f20",class:"xplor-input-search__field"},r("input",{key:"57a6c1dc9fff69f25bd75ad78e9c092e593cbee1",type:"text",class:"xplor-input-search__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onKeyDown:this.handleKeyDown,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,style:{backgroundColor:this.bgColor}}),r("slot",{key:"8656098e81af32b857589443a89f009791429d2d",name:"append-inner"},r("button",{key:"ca36754aec41e189e4b870103fe82efb8667d895",type:"button",class:"xplor-input-search__button",onClick:this.handleSearch,disabled:this.disabled,"data-testid":"input-search-button"},r("svg",{key:"3e5f9f080c757f46e17641c549bfda7eeb0d9b30",viewBox:"0 0 24 24",class:"xplor-input-search__icon"},r("path",{key:"c5814684ea375fe19074f47234cc11f919a4db5c",d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"})))))))}static get style(){return La}},[6,"xplor-input-search",{value:[1025],placeholder:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],density:[1],isFocused:[32]}]);function Ba(){if(typeof customElements>"u")return;["xplor-input-search"].forEach(n=>{switch(n){case"xplor-input-search":customElements.get(n)||customElements.define(n,nt);break}})}const Fa=nt,Aa=Ba,Ma=`@tailwind base;
16741
+ }`;let Oa=0;const nt=v(class extends y{constructor(){super(),this.__registerHost(),this.search=m(this,"search"),this.inputId=`xplor-input-search-${++Oa}`,this.value="",this.placeholder="Search...",this.bgColor="white",this.color="#008480",this.disabled=!1,this.density="default",this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value},this.handleSearch=()=>{this.search.emit(this.value)},this.handleKeyDown=n=>{n.key==="Enter"&&this.handleSearch()}}render(){const n={"xplor-input-search":!0,[`xplor-input-search--${this.density}`]:!0,"xplor-input-search--focused":this.isFocused,"xplor-input-search--disabled":this.disabled};return r(b,{key:"943cf40e14806c8d2645e8e08c7868f1bbe1d585"},r("div",{key:"a073a7da5206a8f97ad4576628bb5688572709ed",class:n},r("div",{key:"52d484023b8d5275d22a2b890fc73c0b758a7899",class:"xplor-input-search__field"},r("input",{key:"b520a1127ec5aefe99a8ea92d329823e0380ac63",id:this.inputId,type:"search",class:"xplor-input-search__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onKeyDown:this.handleKeyDown,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,style:{backgroundColor:this.bgColor},role:"searchbox","aria-label":"Search"}),r("slot",{key:"2e352e10096c529d275071cffa6ff8062faf27a3",name:"append-inner"},r("button",{key:"ce5993a34434803f80ff05fc07993ea7865f7120",type:"button",class:"xplor-input-search__button",onClick:this.handleSearch,disabled:this.disabled,"data-testid":"input-search-button","aria-label":"Search"},r("svg",{key:"518d76a88181e3286d14102ceced2e1dae0b6a8c",viewBox:"0 0 24 24",class:"xplor-input-search__icon"},r("path",{key:"f7253605b82900a022475c107b4719612f614564",d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"})))))))}static get style(){return Pa}},[6,"xplor-input-search",{value:[1025],placeholder:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],density:[1],isFocused:[32]}]);function ja(){if(typeof customElements>"u")return;["xplor-input-search"].forEach(n=>{switch(n){case"xplor-input-search":customElements.get(n)||customElements.define(n,nt);break}})}const Ha=nt,Ra=ja,qa=`@tailwind base;
16638
16742
  @tailwind components;
16639
16743
  @tailwind utilities;
16640
16744
  @layer base {
@@ -16947,17 +17051,12 @@ ol.mdc-list.sc-xplor-input-select li.mdc-list-item.sc-xplor-input-select, ul.mdc
16947
17051
  flex-shrink: 0;
16948
17052
  }
16949
17053
  .xplor-input-select__menu.sc-xplor-input-select {
16950
- position: absolute;
16951
- top: 100%;
16952
- left: 0;
16953
- right: 0;
16954
- margin-top: 0.25rem;
16955
17054
  max-height: 300px;
16956
17055
  overflow-y: auto;
16957
17056
  background-color: white;
16958
17057
  border-radius: 0.5rem;
16959
17058
  box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
16960
- z-index: 1000;
17059
+ z-index: 9999;
16961
17060
  }
16962
17061
  .xplor-input-select__empty.sc-xplor-input-select {
16963
17062
  padding: 1rem;
@@ -17012,7 +17111,7 @@ ol.mdc-list.sc-xplor-input-select li.mdc-list-item.sc-xplor-input-select, ul.mdc
17012
17111
  }
17013
17112
  .xplor-input-select__helper-text.sc-xplor-input-select {
17014
17113
  color: rgba(0, 0, 0, 0.6);
17015
- }`,et=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=x(this,"xplorChange"),this.value=null,this.label="",this.placeholder="Select...",this.options=[],this.multiple=!1,this.bgColor="white",this.color="#008480",this.disabled=!1,this.readonly=!1,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isOpen=!1,this.isFocused=!1,this.handleOutsideClick=n=>{this.selectRef&&!this.selectRef.contains(n.target)&&(this.isOpen=!1)},this.toggleDropdown=()=>{!this.disabled&&!this.readonly&&(this.isOpen=!this.isOpen)},this.handleOptionClick=n=>{if(this.multiple){const t=Array.isArray(this.value)?this.value:[],o=t.findIndex(i=>i===n.value);o>-1?this.value=t.filter((i,a)=>a!==o):this.value=[...t,n.value]}else this.value=n.value,this.isOpen=!1;this.xplorChange.emit(this.value)},this.isSelected=n=>this.multiple?(Array.isArray(this.value)?this.value:[]).includes(n.value):this.value===n.value,this.getDisplayValue=()=>{if(this.multiple){const t=Array.isArray(this.value)?this.value:[];return t.length===0?this.placeholder:`${this.options.filter(i=>t.includes(i.value)).length} selected`}const n=this.options.find(t=>t.value===this.value);return n?n.title:this.placeholder}}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){const n={"xplor-input-select":!0,"xplor-input-select--open":this.isOpen,"xplor-input-select--focused":this.isFocused,"xplor-input-select--disabled":this.disabled,"xplor-input-select--error":!!this.error},t=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(h,{key:"186b55603079f4fec337dc824c2e3a4776472ae6"},r("div",{key:"07d765115aa286e8da1f13fc76f55c6c6e9008c1",class:n,ref:o=>this.selectRef=o},this.label&&r("label",{key:"6e1116ba611eee1673ffdb71c5bb15455afd5921",class:"xplor-input-select__label"},this.label,this.required&&r("span",{key:"77cefc98c67261ebcddac9c179f01cd6615306e8",class:"xplor-input-select__required"},"*")),r("div",{key:"b65e671edced0c0f1780ecdd74cc23197310a550",class:"xplor-input-select__field",onClick:this.toggleDropdown},r("div",{key:"52e7b58288c7d4c7ad4d505ae03f75204d461f15",class:"xplor-input-select__value"},this.getDisplayValue()),r("span",{key:"7c780d75bc62648aed641e0d4be4e4d55065099b",class:"xplor-input-select__arrow"},this.isOpen?"▲":"▼")),this.isOpen&&r("div",{key:"809f4c0254c09d61cdf597e467daf8d1f5f7667c",class:"xplor-input-select__menu"},this.options.length===0?r("div",{class:"xplor-input-select__empty"},"No options available"):this.options.map(o=>r("div",{key:o.value,class:{"xplor-input-select__option":!0,"xplor-input-select__option--selected":this.isSelected(o)},onClick:()=>this.handleOptionClick(o)},this.multiple&&r("input",{type:"checkbox",class:"xplor-input-select__checkbox",checked:this.isSelected(o),readOnly:!0}),r("div",{class:"xplor-input-select__option-content"},r("div",{class:"xplor-input-select__option-title"},o.title),o.subtitle&&r("div",{class:"xplor-input-select__option-subtitle"},o.subtitle))))),t&&r("div",{key:"73f7808a7261cce5b3dc6e28e9771d9d669835d7",class:"xplor-input-select__details"},this.error&&r("div",{key:"9e934df8f33b080fd528fa99d0c5a4cb78c8f03a",class:"xplor-input-select__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"8c0bdbc7304c433cca0d85d09c213f6ccf5f3b29",class:"xplor-input-select__helper-text"},this.helperText))))}static get style(){return Ma}},[2,"xplor-input-select",{value:[1032],label:[1],placeholder:[1],options:[16],multiple:[4],bgColor:[1,"bg-color"],color:[1],disabled:[4],readonly:[4],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isOpen:[32],isFocused:[32]}]);function Pa(){if(typeof customElements>"u")return;["xplor-input-select"].forEach(n=>{switch(n){case"xplor-input-select":customElements.get(n)||customElements.define(n,et);break}})}const Oa=et,ja=Pa,Ha=`@tailwind base;
17114
+ }`,et=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=m(this,"xplorChange"),this.value=null,this.label="",this.placeholder="Select...",this.options=[],this.multiple=!1,this.bgColor="white",this.color="#008480",this.disabled=!1,this.readonly=!1,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isOpen=!1,this.isFocused=!1,this.menuPosition=null,this.highlightedIndex=-1,this.updateMenuPosition=()=>{if(this.fieldRef){const n=this.fieldRef.getBoundingClientRect();this.menuPosition={top:n.bottom+4,left:n.left,width:n.width}}},this.handleOutsideClick=n=>{this.selectRef&&!this.selectRef.contains(n.target)&&(this.isOpen=!1)},this.toggleDropdown=()=>{!this.disabled&&!this.readonly&&(this.isOpen||(this.updateMenuPosition(),this.highlightedIndex=-1),this.isOpen=!this.isOpen,this.isOpen||(this.highlightedIndex=-1))},this.handleOptionClick=n=>{if(this.multiple){const t=Array.isArray(this.value)?this.value:[],o=t.findIndex(i=>i===n.value);o>-1?this.value=t.filter((i,a)=>a!==o):this.value=[...t,n.value]}else this.value=n.value,this.isOpen=!1;this.xplorChange.emit(this.value)},this.isSelected=n=>this.multiple?(Array.isArray(this.value)?this.value:[]).includes(n.value):this.value===n.value,this.getDisplayValue=()=>{if(this.multiple){const t=Array.isArray(this.value)?this.value:[];return t.length===0?this.placeholder:`${this.options.filter(i=>t.includes(i.value)).length} selected`}const n=this.options.find(t=>t.value===this.value);return n?n.title:this.placeholder}}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}handleKeyDown(n){var t;const o=this.options.length;if(o!==0)switch(n.key){case"ArrowDown":n.preventDefault(),this.isOpen?this.highlightedIndex=this.highlightedIndex<o-1?this.highlightedIndex+1:0:(this.updateMenuPosition(),this.isOpen=!0,this.highlightedIndex=0),this.scrollToHighlightedOption();break;case"ArrowUp":n.preventDefault(),this.isOpen?this.highlightedIndex=this.highlightedIndex>0?this.highlightedIndex-1:o-1:(this.updateMenuPosition(),this.isOpen=!0,this.highlightedIndex=o-1),this.scrollToHighlightedOption();break;case"Enter":case" ":n.preventDefault(),this.isOpen&&this.highlightedIndex>=0&&this.highlightedIndex<o?this.handleOptionClick(this.options[this.highlightedIndex]):this.isOpen||this.toggleDropdown();break;case"Escape":n.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,(t=this.fieldRef)===null||t===void 0||t.focus();break;case"Home":this.isOpen&&(n.preventDefault(),this.highlightedIndex=0,this.scrollToHighlightedOption());break;case"End":this.isOpen&&(n.preventDefault(),this.highlightedIndex=o-1,this.scrollToHighlightedOption());break;case"Tab":this.isOpen=!1,this.highlightedIndex=-1;break}}scrollToHighlightedOption(){requestAnimationFrame(()=>{if(this.selectRef&&this.highlightedIndex>=0){const n=this.selectRef.querySelector(`[data-option-index="${this.highlightedIndex}"]`);n&&n.scrollIntoView({block:"nearest"})}})}render(){const n={"xplor-input-select":!0,"xplor-input-select--open":this.isOpen,"xplor-input-select--focused":this.isFocused,"xplor-input-select--disabled":this.disabled,"xplor-input-select--error":!!this.error},t=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText),o="input-select-listbox",i="input-select-label",a="input-select-error",l="input-select-helper",s=this.highlightedIndex>=0?`input-select-option-${this.highlightedIndex}`:void 0,c=[];this.error&&c.push(a),!this.error&&this.helperText&&c.push(l);const d=c.length>0?c.join(" "):void 0;return r(b,{key:"4c7693dfd1a0a4ac74ed4f4ff5024d4375acd3a8"},r("div",{key:"bcd180aa7fbccfae34ce29b1c9bbe6329bf87476",class:n,ref:p=>this.selectRef=p},this.label&&r("label",{key:"85c20aecaf25a7fc260c79a15e4d4bb30804213d",class:"xplor-input-select__label",id:i},this.label,this.required&&r("span",{key:"82c8dbcb5d7e77c42e0a6e54b69cbb514563ac2b",class:"xplor-input-select__required"},"*")),r("div",{key:"b7cfc5c895fc57f3eac6e66aa5fd431a89dd07bb",class:"xplor-input-select__field",onClick:this.toggleDropdown,ref:p=>this.fieldRef=p,role:"combobox",tabindex:this.disabled?-1:0,"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-controls":this.isOpen?o:void 0,"aria-activedescendant":s,"aria-labelledby":this.label?i:void 0,"aria-label":this.label?void 0:this.ariaLabel||this.placeholder,"aria-describedby":d,"aria-required":this.required?"true":void 0,"aria-disabled":this.disabled?"true":void 0},r("div",{key:"1125703089a34186cbbfaba5e51d6ea50c5f4239",class:"xplor-input-select__value"},this.getDisplayValue()),r("span",{key:"e33ab0424fddc90d1f48ef2b285e70fd3eeaff8a",class:"xplor-input-select__arrow","aria-hidden":"true"},this.isOpen?"▲":"▼")),this.isOpen&&this.menuPosition&&r("div",{key:"b1fb47a1d217c4156250bded2c9e9ae9bdebf603",class:"xplor-input-select__menu",role:"listbox",id:o,"aria-label":this.label||this.ariaLabel||"Options","aria-multiselectable":this.multiple?"true":void 0,style:{position:"fixed",top:`${this.menuPosition.top}px`,left:`${this.menuPosition.left}px`,width:`${this.menuPosition.width}px`}},this.options.length===0?r("div",{class:"xplor-input-select__empty",role:"option","aria-disabled":"true"},"No options available"):this.options.map((p,g)=>{const x=this.isSelected(p);return r("div",{key:p.value,id:`input-select-option-${g}`,"data-option-index":g,role:"option","aria-selected":x?"true":"false",class:{"xplor-input-select__option":!0,"xplor-input-select__option--selected":x,"xplor-input-select__option--highlighted":g===this.highlightedIndex},onClick:()=>this.handleOptionClick(p)},this.multiple&&r("input",{type:"checkbox",class:"xplor-input-select__checkbox",checked:x,readOnly:!0,tabindex:-1,"aria-checked":x?"true":"false","aria-hidden":"true"}),r("div",{class:"xplor-input-select__option-content"},r("div",{class:"xplor-input-select__option-title"},p.title),p.subtitle&&r("div",{class:"xplor-input-select__option-subtitle"},p.subtitle)))})),t&&r("div",{key:"0a4f46b2460cd068fe27635cbe45d054c06e9538",class:"xplor-input-select__details"},this.error&&r("div",{key:"2d0f44af6a4c115bf3ed66764092b29cf117d57e",class:"xplor-input-select__error-message",id:a,role:"alert"},this.error),!this.error&&this.helperText&&r("div",{key:"ee93ffdd070c853b1d779235d6c57e368d75bcf1",class:"xplor-input-select__helper-text",id:l},this.helperText))))}get el(){return this}static get style(){return qa}},[2,"xplor-input-select",{ariaLabel:[1,"aria-label"],value:[1032],label:[1],placeholder:[1],options:[16],multiple:[4],bgColor:[1,"bg-color"],color:[1],disabled:[4],readonly:[4],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isOpen:[32],isFocused:[32],menuPosition:[32],highlightedIndex:[32]},[[0,"keydown","handleKeyDown"]]]);function Ua(){if(typeof customElements>"u")return;["xplor-input-select"].forEach(n=>{switch(n){case"xplor-input-select":customElements.get(n)||customElements.define(n,et);break}})}const Wa=et,Ka=Ua,Ya=`@tailwind base;
17016
17115
  @tailwind components;
17017
17116
  @tailwind utilities;
17018
17117
  @layer base {
@@ -17305,7 +17404,7 @@ ol.mdc-list.sc-xplor-input-send li.mdc-list-item.sc-xplor-input-send, ul.mdc-lis
17305
17404
 
17306
17405
  .input-send__button.sc-xplor-input-send {
17307
17406
  flex-shrink: 0;
17308
- }`,tt=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorSend=x(this,"xplorSend"),this.xplorValueChange=x(this,"xplorValueChange"),this.placeholder="Type a message...",this.disabled=!1,this.value="",this.buttonText="Send",this.buttonType="primary",this.internalValue="",this.handleInput=n=>{const t=n.target;this.internalValue=t.value,this.value=t.value,this.xplorValueChange.emit(t.value)},this.handleKeyDown=n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.handleSend())},this.handleSend=()=>{this.disabled||!this.internalValue.trim()||(this.xplorSend.emit(this.internalValue.trim()),this.internalValue="",this.value="",this.inputEl&&this.inputEl.focus())}}componentWillLoad(){this.internalValue=this.value}render(){return r(h,{key:"bbf2f299e9c78afed930b178f67494f3c9171ca0"},r("div",{key:"a9e29fbc660b5fcc9ad5e8c0a543d39b39073cf9",class:{"input-send":!0,"input-send--disabled":this.disabled}},r("input",{key:"645f813fd6aad4905635c392afd87ead717bd3d4",ref:n=>this.inputEl=n,type:"text",class:"input-send__input",placeholder:this.placeholder,value:this.internalValue,onInput:this.handleInput,onKeyDown:this.handleKeyDown,disabled:this.disabled,maxLength:this.maxLength}),r("xplor-button",{key:"0c5ea75208baea586babbd9ecfa8a433da65e2be",class:"input-send__button",text:this.buttonText,type:this.disabled||!this.internalValue.trim()?"disabled":this.buttonType,onClick:this.handleSend})))}static get style(){return Ha}},[2,"xplor-input-send",{placeholder:[1],disabled:[4],maxLength:[2,"max-length"],value:[1025],buttonText:[1,"button-text"],buttonType:[1,"button-type"],internalValue:[32]}]);function Ra(){if(typeof customElements>"u")return;["xplor-input-send","xplor-button"].forEach(n=>{switch(n){case"xplor-input-send":customElements.get(n)||customElements.define(n,tt);break;case"xplor-button":customElements.get(n)||G();break}})}const Ua=tt,qa=Ra,Wa=`@tailwind base;
17407
+ }`,tt=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorSend=m(this,"xplorSend"),this.xplorValueChange=m(this,"xplorValueChange"),this.placeholder="Type a message...",this.disabled=!1,this.value="",this.buttonText="Send",this.buttonType="primary",this.internalValue="",this.handleInput=n=>{const t=n.target;this.internalValue=t.value,this.value=t.value,this.xplorValueChange.emit(t.value)},this.handleKeyDown=n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.handleSend())},this.handleSend=()=>{this.disabled||!this.internalValue.trim()||(this.xplorSend.emit(this.internalValue.trim()),this.internalValue="",this.value="",this.inputEl&&this.inputEl.focus())}}componentWillLoad(){this.internalValue=this.value}render(){return r(b,{key:"87d0d49d2a9e9061152b294e6b7a91ffae7f39b0"},r("div",{key:"ef857693127c5945ff78c20e431609b051df32e7",class:{"input-send":!0,"input-send--disabled":this.disabled}},r("input",{key:"ab468e8669120fef885db5e1dd4da774acfd2f74",ref:n=>this.inputEl=n,type:"text",class:"input-send__input",placeholder:this.placeholder,value:this.internalValue,onInput:this.handleInput,onKeyDown:this.handleKeyDown,disabled:this.disabled,maxLength:this.maxLength,"aria-label":this.placeholder||"Type a message"}),r("xplor-button",{key:"216e72c5c263f0a18e4d8b4f03d253776376c6b3",class:"input-send__button",text:this.buttonText,type:this.disabled||!this.internalValue.trim()?"disabled":this.buttonType,onClick:this.handleSend})))}static get style(){return Ya}},[2,"xplor-input-send",{placeholder:[1],disabled:[4],maxLength:[2,"max-length"],value:[1025],buttonText:[1,"button-text"],buttonType:[1,"button-type"],internalValue:[32]}]);function Va(){if(typeof customElements>"u")return;["xplor-input-send","xplor-button"].forEach(n=>{switch(n){case"xplor-input-send":customElements.get(n)||customElements.define(n,tt);break;case"xplor-button":customElements.get(n)||G();break}})}const Qa=tt,Ga=Va,Za=`@tailwind base;
17309
17408
  @tailwind components;
17310
17409
  @tailwind utilities;
17311
17410
  @layer base {
@@ -17645,7 +17744,7 @@ ol.mdc-list.sc-xplor-input-text-area li.mdc-list-item.sc-xplor-input-text-area,
17645
17744
  }
17646
17745
  .xplor-input-text-area__helper-text.sc-xplor-input-text-area {
17647
17746
  color: rgba(0, 0, 0, 0.6);
17648
- }`,rt=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=x(this,"xplorInput"),this.xplorChange=x(this,"xplorChange"),this.xplorClear=x(this,"xplorClear"),this.value="",this.label="",this.placeholder="",this.bgColor="white",this.color="#008480",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.rows=3,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)},this.handleClear=()=>{this.value="",this.xplorClear.emit(),this.xplorChange.emit(this.value)}}render(){const n={"xplor-input-text-area":!0,"xplor-input-text-area--focused":this.isFocused,"xplor-input-text-area--disabled":this.disabled,"xplor-input-text-area--error":!!this.error},t=this.clearable&&this.value&&!this.readonly&&!this.disabled,o=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(h,{key:"1acbd7f541a1673ead7718eba34c514ffdc7057c"},r("div",{key:"e7e9c3964c63d585b1837362da89720f353a7b7d",class:n},this.label&&r("label",{key:"4313a150717b50a08d82179292e1b3eb38c53821",class:"xplor-input-text-area__label"},this.label,this.required&&r("span",{key:"96ecf54bf62d2f519c72f48e7698683eb9b2c869",class:"xplor-input-text-area__required"},"*")),r("div",{key:"36317993f4045d9dc86cf85e67cf7fd2a0e663c2",class:"xplor-input-text-area__field"},r("textarea",{key:"9c98044198dae93a6a46fcbc26239208203befc1",class:"xplor-input-text-area__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,required:this.required,rows:this.rows,onInput:this.handleInput,onChange:this.handleChange,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,style:{backgroundColor:this.bgColor}}),t&&r("button",{key:"8495d86ff604f538cb7b2144eea778dafc414a74",type:"button",class:"xplor-input-text-area__clear",onClick:this.handleClear,"aria-label":"Clear"},"✕")),o&&r("div",{key:"d51398eb122563ced96d1e92d381740a6cb484d2",class:"xplor-input-text-area__details"},this.error&&r("div",{key:"83d436bf141d4f4594f5c1dfeae9ab3de7ac4301",class:"xplor-input-text-area__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"db6c99c12fc9197785b10b8703d81fdb21488934",class:"xplor-input-text-area__helper-text"},this.helperText))))}static get style(){return Wa}},[2,"xplor-input-text-area",{value:[1025],label:[1],placeholder:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],readonly:[4],clearable:[4],rows:[2],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isFocused:[32]}]);function Ya(){if(typeof customElements>"u")return;["xplor-input-text-area"].forEach(n=>{switch(n){case"xplor-input-text-area":customElements.get(n)||customElements.define(n,rt);break}})}const Qa=rt,Ka=Ya,Va=`@tailwind base;
17747
+ }`;let Ja=0;const rt=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=m(this,"xplorInput"),this.xplorChange=m(this,"xplorChange"),this.xplorClear=m(this,"xplorClear"),this.inputId=`xplor-input-text-area-${++Ja}`,this.errorId=`${this.inputId}-error`,this.helperId=`${this.inputId}-helper`,this.value="",this.label="",this.placeholder="",this.bgColor="white",this.color="#008480",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.rows=3,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)},this.handleClear=()=>{this.value="",this.xplorClear.emit(),this.xplorChange.emit(this.value)}}render(){const n={"xplor-input-text-area":!0,"xplor-input-text-area--focused":this.isFocused,"xplor-input-text-area--disabled":this.disabled,"xplor-input-text-area--error":!!this.error},t=this.clearable&&this.value&&!this.readonly&&!this.disabled,o=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(b,{key:"c03b31f6576f7a103227964d33a40cb4e659c3ce"},r("div",{key:"3f29fe2801d281c6e110a512156527cabce854a8",class:n},this.label&&r("label",{key:"b2d3bcb28e66d80a43fbca6e6bc37f1c967982ba",class:"xplor-input-text-area__label",htmlFor:this.inputId},this.label,this.required&&r("span",{key:"73c21af6cba3faff373a0d1700a8577ee3fffb46",class:"xplor-input-text-area__required"},"*")),r("div",{key:"f9f60ad9aa09747bdd77b51f7576d4d9811b5c81",class:"xplor-input-text-area__field"},r("textarea",{key:"d41b249092b9478a5fb323042a1e7397b1326dd0",id:this.inputId,class:"xplor-input-text-area__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,required:this.required,rows:this.rows,onInput:this.handleInput,onChange:this.handleChange,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,style:{backgroundColor:this.bgColor},"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,"aria-describedby":this.error?this.errorId:this.helperText?this.helperId:void 0}),t&&r("button",{key:"8cb817547c0c494c2f82216a9f07a78bc4c5314d",type:"button",class:"xplor-input-text-area__clear",onClick:this.handleClear,"aria-label":"Clear"},"✕")),o&&r("div",{key:"e0f4d72ac96eda8ce0913cb80f11a65b1adfc0c4",class:"xplor-input-text-area__details"},this.error&&r("div",{key:"7eb06f00783c62614af72fc769b585b167f8d25b",class:"xplor-input-text-area__error-message",id:this.errorId},this.error),!this.error&&this.helperText&&r("div",{key:"c9f5ad0158da20c2a743e7fb304a04eeb6a0270b",class:"xplor-input-text-area__helper-text",id:this.helperId},this.helperText))))}static get style(){return Za}},[2,"xplor-input-text-area",{value:[1025],label:[1],placeholder:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],readonly:[4],clearable:[4],rows:[2],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isFocused:[32]}]);function Na(){if(typeof customElements>"u")return;["xplor-input-text-area"].forEach(n=>{switch(n){case"xplor-input-text-area":customElements.get(n)||customElements.define(n,rt);break}})}const nl=rt,el=Na,tl=`@tailwind base;
17649
17748
  @tailwind components;
17650
17749
  @tailwind utilities;
17651
17750
  @layer base {
@@ -17965,7 +18064,7 @@ ol.mdc-list.sc-xplor-input-text-secondary li.mdc-list-item.sc-xplor-input-text-s
17965
18064
  }
17966
18065
  .input-secondary__helper-text.sc-xplor-input-text-secondary {
17967
18066
  color: rgba(0, 0, 0, 0.6);
17968
- }`,ot=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=x(this,"xplorInput"),this.xplorChange=x(this,"xplorChange"),this.xplorFocus=x(this,"xplorFocus"),this.xplorBlur=x(this,"xplorBlur"),this.value="",this.label="",this.placeholder="",this.type="text",this.bgColor="white",this.disabled=!1,this.readonly=!1,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isDirty=!1,this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)},this.handleFocus=n=>{this.isFocused=!0,this.xplorFocus.emit(n)},this.handleBlur=n=>{this.isFocused=!1,this.xplorBlur.emit(n)}}render(){const n={"input-secondary":!0,"input-secondary--focused":this.isFocused,"input-secondary--disabled":this.disabled,"input-secondary--error":!!this.error,"input-secondary--dirty":this.isDirty},t=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(h,{key:"d7b5a95dba54e640b3bc0fb0e5e5ad07d209f21c"},r("div",{key:"dc0cc65fb5f74f8ed8f173c0736899afb5201ad1",class:n},this.label&&r("label",{key:"328c402c4e0a05252ea0dd965c7b274c06e99864",class:"input-secondary__label"},this.label,this.required&&r("span",{key:"6c4217b11971405df02ee5a7a07ece655860cabf",class:"input-secondary__required"},"*")),r("div",{key:"30179854ac1c1eaa8a6c3f39cdf7a0fff4c45103",class:"input-secondary__field"},r("input",{key:"ddb142835cf10d39fea9ff1b2023ed0cad968f9f",type:this.type,class:"input-secondary__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,required:this.required,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,style:{backgroundColor:this.bgColor}}),r("slot",{key:"a2a0a03935964ba65591508ec50081323ac2c33a",name:"append-inner"})),t&&r("div",{key:"f3b0025dbaaf4a6bbbef5d1f0edd5866e0e79267",class:"input-secondary__details"},this.error&&r("div",{key:"91835745a04b17003b3c2254c6a5c405d36f3b08",class:"input-secondary__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"96948fed46bb7765699a57c1017d0dbe3c4e2ec7",class:"input-secondary__helper-text"},this.helperText)),r("slot",{key:"e0ef7c8cea7a11cc05636e3d020737957fc49040",name:"append"})))}static get style(){return Va}},[6,"xplor-input-text-secondary",{value:[1025],label:[1],placeholder:[1],type:[1],bgColor:[1,"bg-color"],disabled:[4],readonly:[4],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isDirty:[4,"is-dirty"],isFocused:[32]}]);function Ga(){if(typeof customElements>"u")return;["xplor-input-text-secondary"].forEach(n=>{switch(n){case"xplor-input-text-secondary":customElements.get(n)||customElements.define(n,ot);break}})}const Za=ot,Ja=Ga,Na=`@tailwind base;
18067
+ }`;let rl=0;const ot=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=m(this,"xplorInput"),this.xplorChange=m(this,"xplorChange"),this.xplorFocus=m(this,"xplorFocus"),this.xplorBlur=m(this,"xplorBlur"),this.inputId=`xplor-input-text-secondary-${++rl}`,this.errorId=`${this.inputId}-error`,this.helperId=`${this.inputId}-helper`,this.value="",this.label="",this.placeholder="",this.type="text",this.bgColor="white",this.disabled=!1,this.readonly=!1,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isDirty=!1,this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)},this.handleFocus=n=>{this.isFocused=!0,this.xplorFocus.emit(n)},this.handleBlur=n=>{this.isFocused=!1,this.xplorBlur.emit(n)}}render(){const n={"input-secondary":!0,"input-secondary--focused":this.isFocused,"input-secondary--disabled":this.disabled,"input-secondary--error":!!this.error,"input-secondary--dirty":this.isDirty},t=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(b,{key:"cba1682d9584d1dad7da1974dee2ba86423e5a8b"},r("div",{key:"2dd7399f266c15a9654dcb8075edd69501f464e0",class:n},this.label&&r("label",{key:"445608b567e7673386bb99791f63e852c6b95627",class:"input-secondary__label",htmlFor:this.inputId},this.label,this.required&&r("span",{key:"3e926e2b17ada694064559525a86dab2f64bbb39",class:"input-secondary__required"},"*")),r("div",{key:"f2b73b8eed06c0ad8931e67e8d26e6d13effa14d",class:"input-secondary__field"},r("input",{key:"dd3506bb5fd1e14f3e30600f3b00b28446f7fa87",id:this.inputId,type:this.type,class:"input-secondary__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,required:this.required,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,style:{backgroundColor:this.bgColor},"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,"aria-describedby":this.error?this.errorId:this.helperText?this.helperId:void 0}),r("slot",{key:"ae3d7ee9248d8098e36bd44a8e07454cbdfecb32",name:"append-inner"})),t&&r("div",{key:"9cf7faef29234709d7301ede1d635dda4eabf3ac",class:"input-secondary__details"},this.error&&r("div",{key:"7315826f15369e3a98cd629d484a34bc373f753d",class:"input-secondary__error-message",id:this.errorId},this.error),!this.error&&this.helperText&&r("div",{key:"356726d208da52b6e4c973f06511132a26f70069",class:"input-secondary__helper-text",id:this.helperId},this.helperText)),r("slot",{key:"190b4ed0fd2e6253dcae23ac4637bab3e0b26d81",name:"append"})))}static get style(){return tl}},[6,"xplor-input-text-secondary",{value:[1025],label:[1],placeholder:[1],type:[1],bgColor:[1,"bg-color"],disabled:[4],readonly:[4],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isDirty:[4,"is-dirty"],isFocused:[32]}]);function ol(){if(typeof customElements>"u")return;["xplor-input-text-secondary"].forEach(n=>{switch(n){case"xplor-input-text-secondary":customElements.get(n)||customElements.define(n,ot);break}})}const il=ot,al=ol,ll=`@tailwind base;
17969
18068
  @tailwind components;
17970
18069
  @tailwind utilities;
17971
18070
  @layer base {
@@ -18280,7 +18379,7 @@ ol.mdc-list.sc-xplor-input-text li.mdc-list-item.sc-xplor-input-text, ul.mdc-lis
18280
18379
  }
18281
18380
  .xplor-input-text__helper-text.sc-xplor-input-text {
18282
18381
  color: rgba(0, 0, 0, 0.6);
18283
- }`,it=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=x(this,"xplorInput"),this.xplorChange=x(this,"xplorChange"),this.xplorFocus=x(this,"xplorFocus"),this.xplorBlur=x(this,"xplorBlur"),this.value="",this.label="",this.placeholder="",this.type="text",this.bgColor="white",this.color="#008480",this.disabled=!1,this.readonly=!1,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)},this.handleFocus=n=>{this.isFocused=!0,this.xplorFocus.emit(n)},this.handleBlur=n=>{this.isFocused=!1,this.xplorBlur.emit(n)}}render(){const n={"xplor-input-text":!0,"xplor-input-text--focused":this.isFocused,"xplor-input-text--disabled":this.disabled,"xplor-input-text--error":!!this.error},t=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(h,{key:"63a41a0420e4006ee19740d408c9c6dc1f609a96"},r("div",{key:"2b5c2990098b4fe843e70a52eae25d284abc5dfc",class:n},this.label&&r("label",{key:"9f0184741293bfd453b78e1edc0eb3f3c02bd12e",class:"xplor-input-text__label"},this.label,this.required&&r("span",{key:"3ec943a28889363da1356aa69392f906b0bc6542",class:"xplor-input-text__required"},"*")),r("div",{key:"a7f83624fb3564fbeb59d8d984c039980354c6af",class:"xplor-input-text__field"},r("input",{key:"0a886666e4086099333e22ee4aa3406e81a73917",type:this.type,class:"xplor-input-text__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,required:this.required,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,style:{backgroundColor:this.bgColor}}),r("slot",{key:"8d854313cb392c2a3b8ff63b9f193fa38af672ec",name:"append-inner"})),t&&r("div",{key:"0a9b055a64e296ead6b0f20ffc717782f89b6718",class:"xplor-input-text__details"},this.error&&r("div",{key:"2101193d34660879589cb581e2beddba2fd93363",class:"xplor-input-text__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"648b517eb3b510680036e2514ab23a00d9dc90fc",class:"xplor-input-text__helper-text"},this.helperText)),r("slot",{key:"754393f25fa96e8bf7a91e51f91ae8afe3d03e7b",name:"append"})))}static get style(){return Na}},[6,"xplor-input-text",{value:[1025],label:[1],placeholder:[1],type:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],readonly:[4],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isFocused:[32]}]);function nl(){if(typeof customElements>"u")return;["xplor-input-text"].forEach(n=>{switch(n){case"xplor-input-text":customElements.get(n)||customElements.define(n,it);break}})}const el=it,tl=nl,rl=`@tailwind base;
18382
+ }`;let sl=0;const it=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=m(this,"xplorInput"),this.xplorChange=m(this,"xplorChange"),this.xplorFocus=m(this,"xplorFocus"),this.xplorBlur=m(this,"xplorBlur"),this.inputId=`xplor-input-text-${++sl}`,this.errorId=`${this.inputId}-error`,this.helperId=`${this.inputId}-helper`,this.value="",this.label="",this.placeholder="",this.type="text",this.bgColor="white",this.color="#008480",this.disabled=!1,this.readonly=!1,this.hideDetails="auto",this.error="",this.helperText="",this.required=!1,this.isFocused=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)},this.handleFocus=n=>{this.isFocused=!0,this.xplorFocus.emit(n)},this.handleBlur=n=>{this.isFocused=!1,this.xplorBlur.emit(n)}}render(){const n={"xplor-input-text":!0,"xplor-input-text--focused":this.isFocused,"xplor-input-text--disabled":this.disabled,"xplor-input-text--error":!!this.error},t=this.hideDetails===!1||this.hideDetails==="auto"&&(this.error||this.helperText);return r(b,{key:"74d78e4b2d95f642b57606b0e8315d3064de446e"},r("div",{key:"7852dd1859fec108d191f612c1f02763edb4f419",class:n},this.label&&r("label",{key:"e9f627130b2ed1f07d9eb6a91f7b40b79cafd550",class:"xplor-input-text__label",htmlFor:this.inputId},this.label,this.required&&r("span",{key:"a4763b2c5e5a3702b126528845dfcdb5d42e9e3d",class:"xplor-input-text__required"},"*")),r("div",{key:"fce0f4b127098b1c88200f36190d2a89214b3341",class:"xplor-input-text__field"},r("input",{key:"63ce8a595f7ea39f9ab011fe00c11530ce256c6c",id:this.inputId,type:this.type,class:"xplor-input-text__input",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,required:this.required,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,style:{backgroundColor:this.bgColor},"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,"aria-describedby":this.error?this.errorId:this.helperText?this.helperId:void 0}),r("slot",{key:"a24e700dcbd30d21ff559b6a8fa189d260e3a470",name:"append-inner"})),t&&r("div",{key:"b20cd03b0d9d4fb0ab52f9fe0c7bb03488f88401",class:"xplor-input-text__details"},this.error&&r("div",{key:"cbc084358dfb8c457d97ae66a21f3068ad5ccabb",class:"xplor-input-text__error-message",id:this.errorId},this.error),!this.error&&this.helperText&&r("div",{key:"a1ab582138c63ed2f1830910e7a5b740c0f71909",class:"xplor-input-text__helper-text",id:this.helperId},this.helperText)),r("slot",{key:"30f30e929242a463a86a6470ceae0d708714cf8f",name:"append"})))}static get style(){return ll}},[6,"xplor-input-text",{value:[1025],label:[1],placeholder:[1],type:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],readonly:[4],hideDetails:[8,"hide-details"],error:[1],helperText:[1,"helper-text"],required:[4],isFocused:[32]}]);function dl(){if(typeof customElements>"u")return;["xplor-input-text"].forEach(n=>{switch(n){case"xplor-input-text":customElements.get(n)||customElements.define(n,it);break}})}const cl=it,pl=dl,gl=`@tailwind base;
18284
18383
  @tailwind components;
18285
18384
  @tailwind utilities;
18286
18385
  @layer base {
@@ -18565,7 +18664,7 @@ ol.mdc-list.sc-xplor-input-title li.mdc-list-item.sc-xplor-input-title, ul.mdc-l
18565
18664
  }
18566
18665
  .xplor-input-title.sc-xplor-input-title:read-only {
18567
18666
  color: rgba(0, 0, 0, 0.6);
18568
- }`,at=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=x(this,"xplorInput"),this.xplorChange=x(this,"xplorChange"),this.value="",this.placeholder="",this.disabled=!1,this.readonly=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)}}render(){return r(h,{key:"7c7192c83a6642754940924a7e59a41911ac5988"},r("input",{key:"e5ba49fe7a49b22dd740c170652007f7a7d86cad",type:"text",class:"xplor-input-title",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,onInput:this.handleInput,onChange:this.handleChange}))}static get style(){return rl}},[2,"xplor-input-title",{value:[1025],placeholder:[1],disabled:[4],readonly:[4]}]);function ol(){if(typeof customElements>"u")return;["xplor-input-title"].forEach(n=>{switch(n){case"xplor-input-title":customElements.get(n)||customElements.define(n,at);break}})}const il=at,al=ol,ll=":host{display:block}.x-link{display:block;padding:0.5rem 0;text-decoration:none;color:var(--xplor-link-color)}",lt=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return r(h,{key:"790a4cfec621e97ea4de475fa53e57a77a3cd12f",class:`theme-${this.brand}`},r("a",{key:"13cb8ca17ea4717aed386a4a4e2cb3c4402a94f0",class:"x-link",href:"https://google.com"}," ","googole this is a link"," "),r("div",{key:"69005a5165c15a0fb175b8eea7b4d409edede8f6",class:"bg-black p-2 rounded-md flex justify-center"},r("h1",{key:"7b02c87ac23ea8ab57b4ed50c5196701574c2e61",class:"text-primary font-sans"},"This is a Stencil component using Tailwind")),r("div",{key:"43656b47443543dc22c2155c34d0fa48dc837a63",class:"bg-white py-24 sm:py-32"},r("div",{key:"7d6233d14a660cb47b7e1d819c1cc636219efbf2",class:"mx-auto grid max-w-7xl gap-20 px-6 lg:px-8 xl:grid-cols-3"},r("div",{key:"8b1d3e79dfd215fb70d9a5ffafc337b78bf7f05c",class:"max-w-xl"},r("h2",{key:"a124d7943e4c3143850b5ce7411a0c39d17d4646",class:"text-pretty text-3xl font-semibold tracking-tight text-gray-900 sm:text-4xl"},"Meet our leadership"),r("p",{key:"97687d43671e3fb5138892f16d94a88a53ea2da7",class:"mt-6 text-lg/8 text-gray-600"},"We’re a dynamic group of individuals who are passionate about what we do and dedicated to delivering the best results for our clients.")),r("ul",{key:"cbe0df5fe4848e59ab77dcb316283ca072c5601c",role:"list",class:"grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2"},r("li",{key:"c386756c84360e832fe8ad9673f137b2622d52d1"},r("div",{key:"d5f92709313deb415d9868e18f30d33da7f46f9c",class:"flex items-center gap-x-6"},r("img",{key:"786e4a048269b46c0e3969578de897551496c562",class:"size-16 rounded-full",src:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",alt:""}),r("div",{key:"75d001f9e1670f1f9be6eec0177797c8d9957e2f"},r("h3",{key:"9f8bf97a2fe329f6c790f40cd8e3a59251a25cc6",class:"text-base/7 font-semibold tracking-tight text-gray-900"},"Leslie Alexander"),r("p",{key:"f848b02a1fe071682ca36a4900fb9d19938db71e",class:"text-sm/6 font-semibold text-indigo-600"},"Co-Founder / CEO"))))))))}static get style(){return ll}},[1,"xplor-links",{brand:[1]}]);function sl(){if(typeof customElements>"u")return;["xplor-links"].forEach(n=>{switch(n){case"xplor-links":customElements.get(n)||customElements.define(n,lt);break}})}const dl=lt,cl=sl,pl=`@tailwind base;
18667
+ }`,at=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorInput=m(this,"xplorInput"),this.xplorChange=m(this,"xplorChange"),this.value="",this.placeholder="",this.disabled=!1,this.readonly=!1,this.ariaLabel="Title",this.handleInput=n=>{const t=n.target;this.value=t.value,this.xplorInput.emit(this.value)},this.handleChange=n=>{const t=n.target;this.value=t.value,this.xplorChange.emit(this.value)}}render(){return r(b,{key:"1e49e53ce1525bdfa81b550739c97b3927a919e6"},r("input",{key:"74dd032886da4bca30a5f38a15b18903f03c5095",type:"text",class:"xplor-input-title",value:this.value,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,"aria-label":this.ariaLabel,onInput:this.handleInput,onChange:this.handleChange}))}static get style(){return gl}},[2,"xplor-input-title",{value:[1025],placeholder:[1],disabled:[4],readonly:[4],ariaLabel:[1,"aria-label"]}]);function xl(){if(typeof customElements>"u")return;["xplor-input-title"].forEach(n=>{switch(n){case"xplor-input-title":customElements.get(n)||customElements.define(n,at);break}})}const ml=at,hl=xl,bl=":host{display:block}.x-link{display:block;padding:0.5rem 0;text-decoration:none;color:var(--xplor-link-color)}",lt=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.imageAlt=""}render(){return r(b,{key:"e26ac5962cb44c6e05a39034e76b6f35d076cb60",class:`theme-${this.brand}`},r("a",{key:"030c76cf101abf498a2828bffef051f5e01d3a65",class:"x-link",href:"https://google.com"}," ","googole this is a link"," "),r("div",{key:"13ef22eb8e5ddc49976006b138b7bac0e379d85c",class:"bg-black p-2 rounded-md flex justify-center"},r("h1",{key:"39e7adc65ee5b26b4be9c111eabdb295fc964065",class:"text-primary font-sans"},"This is a Stencil component using Tailwind")),r("div",{key:"dae9ed47cdaa4afb6a6b70ca82c9b3c280f39215",class:"bg-white py-24 sm:py-32"},r("div",{key:"32f746f7ec8c3337fff37e445dfb7e31a42e68c9",class:"mx-auto grid max-w-7xl gap-20 px-6 lg:px-8 xl:grid-cols-3"},r("div",{key:"309dfd3930301f77cf83eea80579063d1c4aee85",class:"max-w-xl"},r("h2",{key:"6fac68cca56d79303a1d92b86d059f7f91296b3e",class:"text-pretty text-3xl font-semibold tracking-tight text-gray-900 sm:text-4xl"},"Meet our leadership"),r("p",{key:"d759f98a1c30f4636592a5aa5ffa8f06cfa93dbe",class:"mt-6 text-lg/8 text-gray-600"},"We’re a dynamic group of individuals who are passionate about what we do and dedicated to delivering the best results for our clients.")),r("ul",{key:"978c9a043988f63c53b2ec9f7e0e73367dd72f41",role:"list",class:"grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2"},r("li",{key:"6ae95678b9ef5ed2ad60c62661aa4a6c966f2740"},r("div",{key:"0a98faa21b7216205d1ad44d977bcade55ce3162",class:"flex items-center gap-x-6"},r("img",{key:"58c7a75c098911ca434d5de959ca358a80cb5598",class:"size-16 rounded-full",src:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",alt:this.imageAlt}),r("div",{key:"314a9de00a4ac46b67a12cc57ca8392ccea7cfd8"},r("h3",{key:"d87b6c4fcdcf68e7bd9b9b29428cfe10de9e03fd",class:"text-base/7 font-semibold tracking-tight text-gray-900"},"Leslie Alexander"),r("p",{key:"254489d8c64e765276fbfb72cd88221a0e2575ad",class:"text-sm/6 font-semibold text-indigo-600"},"Co-Founder / CEO"))))))))}static get style(){return bl}},[1,"xplor-links",{brand:[1],imageAlt:[1,"image-alt"]}]);function ul(){if(typeof customElements>"u")return;["xplor-links"].forEach(n=>{switch(n){case"xplor-links":customElements.get(n)||customElements.define(n,lt);break}})}const fl=lt,yl=ul,vl=`@tailwind base;
18569
18668
  @tailwind components;
18570
18669
  @tailwind utilities;
18571
18670
  @layer base {
@@ -18931,7 +19030,7 @@ ol.mdc-list.sc-xplor-modal li.mdc-list-item.sc-xplor-modal, ul.mdc-list.sc-xplor
18931
19030
  to {
18932
19031
  transform: rotate(360deg);
18933
19032
  }
18934
- }`,st=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClose=x(this,"xplorClose"),this.open=!1,this.width="600px",this.maxWidth="90%",this.maxHeight="90%",this.scrollable=!0,this.persistent=!1,this.loading=!1,this.showTitle=!0,this.handleBackdropClick=()=>{this.persistent||this.closeModal()},this.handleCardClick=n=>{n.stopPropagation()},this.closeModal=()=>{this.open=!1,this.xplorClose.emit()}}handleOpenChange(n){n?document.body.style.overflow="hidden":document.body.style.overflow=""}disconnectedCallback(){document.body.style.overflow=""}render(){if(!this.open)return null;const n={"xplor-modal__card":!0,"xplor-modal__card--scrollable":this.scrollable},t={"xplor-modal__body":!0,"xplor-modal__body--no-title":!this.showTitle};return r(h,null,r("div",{class:"xplor-modal__backdrop",onClick:this.handleBackdropClick},r("div",{class:n,style:{width:this.width,maxWidth:this.maxWidth,maxHeight:this.maxHeight},onClick:this.handleCardClick},r("button",{type:"button",class:"xplor-modal__close-btn",onClick:this.closeModal,"aria-label":"Close modal","data-testid":"common-modal-close-button"},"✕"),r("div",{class:"xplor-modal__title"},r("slot",{name:"title"})),r("div",{class:"xplor-modal__subtitle"},r("slot",{name:"subtitle"})),r("div",{class:t},this.loading?r("div",{class:"xplor-modal__loading"},r("div",{class:"xplor-modal__spinner"})):r("slot",{name:"body"})),r("div",{class:"xplor-modal__actions"},r("slot",{name:"actions"})))))}static get watchers(){return{open:["handleOpenChange"]}}static get style(){return pl}},[6,"xplor-modal",{open:[1028],width:[1],maxWidth:[1,"max-width"],maxHeight:[1,"max-height"],scrollable:[4],persistent:[4],loading:[4],showTitle:[4,"show-title"]},void 0,{open:["handleOpenChange"]}]);function dt(){if(typeof customElements>"u")return;["xplor-modal"].forEach(n=>{switch(n){case"xplor-modal":customElements.get(n)||customElements.define(n,st);break}})}const ct=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClose=x(this,"xplorClose"),this.open=!1,this.width="600px",this.maxWidth="90%",this.maxHeight="90%",this.loading=!1}render(){return r(h,{key:"607487d12b9744b7915c168a702b9f53c1edd18a"},r("xplor-modal",{key:"72213498ca31332338afda4b1a8520fd34fbec19",open:this.open,width:this.width,maxWidth:this.maxWidth,maxHeight:this.maxHeight,loading:this.loading,persistent:!0,onXplorClose:()=>this.xplorClose.emit()},r("slot",{key:"4841432590db3562ca033f57325aca10b947c60f",name:"title",slot:"title"}),r("slot",{key:"78263228bc06c994c6107b0fea103b25a5171f7f",name:"subtitle",slot:"subtitle"}),r("slot",{key:"b51d5bf90aa0b9c3889a897adda36eaaf1a72659",name:"body",slot:"body"}),r("slot",{key:"4c4c403072d0a0f10da0eeeefbe73e05d4a9f33d",name:"actions",slot:"actions"})))}},[4,"xplor-modal-persistent",{open:[4],width:[1],maxWidth:[1,"max-width"],maxHeight:[1,"max-height"],loading:[4]}]);function gl(){if(typeof customElements>"u")return;["xplor-modal-persistent","xplor-modal"].forEach(n=>{switch(n){case"xplor-modal-persistent":customElements.get(n)||customElements.define(n,ct);break;case"xplor-modal":customElements.get(n)||dt();break}})}const xl=ct,ml=gl,bl=st,hl=dt,ul=`@tailwind base;
19033
+ }`,st=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClose=m(this,"xplorClose"),this.open=!1,this.width="600px",this.maxWidth="90%",this.maxHeight="90%",this.scrollable=!0,this.persistent=!1,this.loading=!1,this.showTitle=!0,this.previouslyFocusedElement=null,this.handleBackdropClick=()=>{this.persistent||this.closeModal()},this.handleCardClick=n=>{n.stopPropagation()},this.closeModal=()=>{this.open=!1,this.xplorClose.emit()}}handleOpenChange(n){n?(document.body.style.overflow="hidden",this.previouslyFocusedElement=document.activeElement,requestAnimationFrame(()=>{this.setInitialFocus()})):(document.body.style.overflow="",this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null))}disconnectedCallback(){document.body.style.overflow=""}handleKeyDown(n){if(this.open){if(n.key==="Escape"&&!this.persistent){n.preventDefault(),this.closeModal();return}n.key==="Tab"&&this.trapFocus(n)}}getFocusableElements(){return this.dialogEl?Array.from(this.dialogEl.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')):[]}trapFocus(n){const t=this.getFocusableElements();if(t.length===0)return;const o=t[0],i=t[t.length-1];n.shiftKey?document.activeElement===o&&(n.preventDefault(),i.focus()):document.activeElement===i&&(n.preventDefault(),o.focus())}setInitialFocus(){const n=this.getFocusableElements();n.length>0?n[0].focus():this.dialogEl&&this.dialogEl.focus()}render(){if(!this.open)return null;const n={"xplor-modal__card":!0,"xplor-modal__card--scrollable":this.scrollable},t={"xplor-modal__body":!0,"xplor-modal__body--no-title":!this.showTitle};return r(b,null,r("div",{class:"xplor-modal__backdrop",onClick:this.handleBackdropClick},r("div",{class:n,style:{width:this.width,maxWidth:this.maxWidth,maxHeight:this.maxHeight},onClick:this.handleCardClick,role:"dialog","aria-modal":"true","aria-labelledby":this.ariaLabel?void 0:"xplor-modal-title","aria-label":this.ariaLabel,tabindex:"-1",ref:o=>this.dialogEl=o},r("button",{type:"button",class:"xplor-modal__close-btn",onClick:this.closeModal,"aria-label":"Close modal","data-testid":"common-modal-close-button"},"✕"),r("div",{class:"xplor-modal__title",id:"xplor-modal-title"},r("slot",{name:"title"})),r("div",{class:"xplor-modal__subtitle"},r("slot",{name:"subtitle"})),r("div",{class:t},this.loading?r("div",{class:"xplor-modal__loading",role:"status","aria-label":"Loading"},r("div",{class:"xplor-modal__spinner"})):[r("slot",{name:"body"}),r("slot",null)]),r("div",{class:"xplor-modal__actions"},r("slot",{name:"actions"})))))}get el(){return this}static get watchers(){return{open:["handleOpenChange"]}}static get style(){return vl}},[6,"xplor-modal",{open:[1028],width:[1],maxWidth:[1,"max-width"],maxHeight:[1,"max-height"],scrollable:[4],persistent:[4],loading:[4],showTitle:[4,"show-title"],ariaLabel:[1,"aria-label"]},[[0,"keydown","handleKeyDown"]],{open:["handleOpenChange"]}]);function dt(){if(typeof customElements>"u")return;["xplor-modal"].forEach(n=>{switch(n){case"xplor-modal":customElements.get(n)||customElements.define(n,st);break}})}const ct=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorClose=m(this,"xplorClose"),this.open=!1,this.width="600px",this.maxWidth="90%",this.maxHeight="90%",this.loading=!1}render(){return r(b,{key:"60cd29fcdff8efad4d0b24f4532acb86e4f6220b"},r("xplor-modal",{key:"6252525de022fcc1098e2e179c4aedb81ebb15d3",open:this.open,width:this.width,maxWidth:this.maxWidth,maxHeight:this.maxHeight,loading:this.loading,persistent:!0,onXplorClose:()=>this.xplorClose.emit()},r("slot",{key:"484eeecc00f647e920878512f5e6bd61b41ba825",name:"title",slot:"title"}),r("slot",{key:"e3fb52e2f19fdd4346fc4d014a0391dcc3e7c156",name:"subtitle",slot:"subtitle"}),r("slot",{key:"aa8a47b1afa24229269c08783fe0b69c5a258adc",name:"body",slot:"body"}),r("slot",{key:"8d1711d5e3223922596a26ce4eb9d30288c259ed",name:"actions",slot:"actions"})))}},[4,"xplor-modal-persistent",{open:[4],width:[1],maxWidth:[1,"max-width"],maxHeight:[1,"max-height"],loading:[4]}]);function kl(){if(typeof customElements>"u")return;["xplor-modal-persistent","xplor-modal"].forEach(n=>{switch(n){case"xplor-modal-persistent":customElements.get(n)||customElements.define(n,ct);break;case"xplor-modal":customElements.get(n)||dt();break}})}const wl=ct,_l=kl,Cl=st,$l=dt,Il=`@tailwind base;
18935
19034
  @tailwind components;
18936
19035
  @tailwind utilities;
18937
19036
  @layer base {
@@ -19245,7 +19344,392 @@ ol.mdc-list.sc-xplor-nav-tabs li.mdc-list-item.sc-xplor-nav-tabs, ul.mdc-list.sc
19245
19344
 
19246
19345
  .nav-tabs--secondary.sc-xplor-nav-tabs .nav-tabs__tab.sc-xplor-nav-tabs:hover:not(.nav-tabs__tab--disabled) {
19247
19346
  color: #7b1fa2;
19248
- }`,pt=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=x(this,"xplorChange"),this.items=[],this.color="primary",this.grow=!1,this.handleTabClick=n=>{n.disabled||(this.value=n.value,this.xplorChange.emit(n.value))}}render(){return r(h,{key:"30bab02780d071338f386b6a72559bbd65212118"},r("div",{key:"2684dbbd4a812bbb88d55baeb42b281c2f3bf753",class:{"nav-tabs":!0,"nav-tabs--grow":this.grow,[`nav-tabs--${this.color}`]:!0},role:"tablist"},this.items.map(n=>r("button",{key:n.value,class:{"nav-tabs__tab":!0,"nav-tabs__tab--active":this.value===n.value,"nav-tabs__tab--disabled":n.disabled},onClick:()=>this.handleTabClick(n),disabled:n.disabled,role:"tab","aria-selected":this.value===n.value?"true":"false",type:"button"},n.label)),r("slot",{key:"dae806f8f498015b5837c799cb024fc3d688cc8d"})))}static get style(){return ul}},[6,"xplor-nav-tabs",{value:[1025],items:[16],color:[1],grow:[4]}]);function fl(){if(typeof customElements>"u")return;["xplor-nav-tabs"].forEach(n=>{switch(n){case"xplor-nav-tabs":customElements.get(n)||customElements.define(n,pt);break}})}const yl=pt,vl=fl,kl=`@tailwind base;
19347
+ }`,pt=v(class extends y{constructor(){super(),this.__registerHost(),this.xplorChange=m(this,"xplorChange"),this.items=[],this.color="primary",this.grow=!1,this.handleTabClick=n=>{n.disabled||(this.value=n.value,this.xplorChange.emit(n.value))}}handleKeyDown(n){const t=this.items.filter(d=>!d.disabled);if(t.length===0)return;const o=t.findIndex(d=>d.value===this.value);let i=o;switch(n.key){case"ArrowRight":n.preventDefault(),i=o<t.length-1?o+1:0;break;case"ArrowLeft":n.preventDefault(),i=o>0?o-1:t.length-1;break;case"Home":n.preventDefault(),i=0;break;case"End":n.preventDefault(),i=t.length-1;break;default:return}const a=t[i];this.value=a.value,this.xplorChange.emit(a.value);const l=this.el.querySelectorAll('button[role="tab"]'),s=this.items.indexOf(a),c=l[s];c&&c.focus()}render(){return r(b,{key:"1a94314129f0f6c94df3196ef7e2a493b6626fd7"},r("div",{key:"71b0ee2d2baab1fed571ed88f04fc49754b2952e",class:{"nav-tabs":!0,"nav-tabs--grow":this.grow,[`nav-tabs--${this.color}`]:!0},role:"tablist"},this.items.map(n=>r("button",{key:n.value,class:{"nav-tabs__tab":!0,"nav-tabs__tab--active":this.value===n.value,"nav-tabs__tab--disabled":n.disabled},onClick:()=>this.handleTabClick(n),disabled:n.disabled,role:"tab","aria-selected":this.value===n.value?"true":"false",tabIndex:this.value===n.value?0:-1,type:"button"},n.label)),r("slot",{key:"fbf08f6785a81babc1c29359f0dff202dca18d6c"})))}get el(){return this}static get style(){return Il}},[6,"xplor-nav-tabs",{value:[1025],items:[16],color:[1],grow:[4]},[[0,"keydown","handleKeyDown"]]]);function Sl(){if(typeof customElements>"u")return;["xplor-nav-tabs"].forEach(n=>{switch(n){case"xplor-nav-tabs":customElements.get(n)||customElements.define(n,pt);break}})}const El=pt,zl=Sl,Tl=`/* on mobile browsers, I set a width of 100% */
19348
+ @tailwind base;
19349
+ @tailwind components;
19350
+ @tailwind utilities;
19351
+ @layer base {
19352
+ /* html[data-theme='office'] {
19353
+ --color-primary: rgb(219, 59, 3);
19354
+ --color-secondary: rgb(0, 119, 107);
19355
+ --color-buttons: #89da59;
19356
+ --color-typography: #ff320e;
19357
+ }
19358
+
19359
+ html {
19360
+ --color-primary: #db3b03;
19361
+ --color-primary-50: #db3b03;
19362
+ --color-secondary: rgb(0, 119, 107);
19363
+ --color-secondary-50: rgb(0, 119, 107);
19364
+ --color-tertiary: rgb(128, 104, 186);
19365
+ } */
19366
+ :root {
19367
+ --color-primary: #db3b03;
19368
+ --color-primary-50: rgba(255, 152, 0, 1);
19369
+ --color-secondary: rgb(0, 119, 107);
19370
+ --color-secondary-50: rgba(1, 163, 157, 1);
19371
+ --color-tertiary: rgb(128, 104, 186);
19372
+ --color-tertiary: rgb(223, 242, 241);
19373
+ --color-white: white;
19374
+ --color-emphasis: rgb(8, 8, 9);
19375
+ --color-supergiant: rgb(213, 66, 99);
19376
+ --color-orange: rgb(250, 200, 127);
19377
+ --color-buttons: #fbbc05;
19378
+ --color-typography: #ea4335;
19379
+ --background: 20 66% 99%;
19380
+ --foreground: 20 51% 4%;
19381
+ --muted: 20 25% 86%;
19382
+ --muted-foreground: 20 7% 25%;
19383
+ --popover: 20 66% 98%;
19384
+ --popover-foreground: 20 51% 3%;
19385
+ --card: 20 66% 98%;
19386
+ --card-foreground: 20 51% 3%;
19387
+ --border: 20 15% 94%;
19388
+ --input: 20 15% 94%;
19389
+ --primary: 20 48% 72%;
19390
+ --primary-foreground: 20 48% 12%;
19391
+ --secondary: 20 12% 92%;
19392
+ --secondary-foreground: 20 12% 32%;
19393
+ --accent: 20 12% 92%;
19394
+ --accent-foreground: 20 12% 32%;
19395
+ --destructive: 11 80% 22%;
19396
+ --destructive-foreground: 11 80% 82%;
19397
+ --ring: 20 48% 72%;
19398
+ --radius: 0.5rem;
19399
+ --chart-1: 12 76% 61%;
19400
+ --chart-2: 173 58% 39%;
19401
+ --chart-3: 197 37% 24%;
19402
+ --chart-4: 43 74% 66%;
19403
+ --chart-5: 27 87% 67%;
19404
+ }
19405
+ .dark {
19406
+ --background: 253 43% 3%;
19407
+ --foreground: 253 31% 98%;
19408
+ --muted: 253 7% 13%;
19409
+ --muted-foreground: 253 13% 63%;
19410
+ --popover: 253 43% 3%;
19411
+ --popover-foreground: 253 31% 98%;
19412
+ --card: 253 43% 4%;
19413
+ --card-foreground: 253 31% 99%;
19414
+ --border: 215 27.9% 16.9%;
19415
+ --input: 215 27.9% 16.9%;
19416
+ --primary: 253 91% 58%;
19417
+ --primary-foreground: 253 91% 98%;
19418
+ --secondary: 253 7% 9%;
19419
+ --secondary-foreground: 253 7% 69%;
19420
+ --accent: 253 13% 14%;
19421
+ --accent-foreground: 253 13% 74%;
19422
+ --destructive: 339.2 90.36% 51.18%;
19423
+ --destructive-foreground: 0 0% 100%;
19424
+ --ring: 253 91% 58%;
19425
+ --chart-1: 220 70% 50%;
19426
+ --chart-2: 160 60% 45%;
19427
+ --chart-3: 30 80% 55%;
19428
+ --chart-4: 280 65% 60%;
19429
+ --chart-5: 340 75% 55%;
19430
+ }
19431
+ }
19432
+ @layer base {
19433
+ * {
19434
+ @apply border-border;
19435
+ }
19436
+ body {
19437
+ @apply box-border bg-background text-foreground;
19438
+ }
19439
+ }
19440
+ @layer utilities {
19441
+ .min-h-screen {
19442
+ min-height: 100vh;
19443
+ /* Fallback */
19444
+ min-height: 100dvh;
19445
+ }
19446
+ .h-screen {
19447
+ height: 100vh;
19448
+ /* Fallback */
19449
+ height: 100dvh;
19450
+ }
19451
+ }
19452
+ @tailwind base;
19453
+ @tailwind components;
19454
+ @tailwind utilities;
19455
+ @layer components {
19456
+ .glass {
19457
+ border: none;
19458
+ backdrop-filter: blur(var(--glass-blur, 40px));
19459
+ background-color: transparent;
19460
+ background-image: linear-gradient(135deg, rgb(255, 255, 255, var(--glass-opacity, 30%)), transparent), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255, 255, 255, var(--glass-reflex-opacity, 10%)) 25%, transparent 0);
19461
+ box-shadow: 0 0 0 1px rgb(255, 255, 255, var(--glass-border-opacity, 10%)) inset, 0 0 0 2px rgba(0, 0, 0, 0.05);
19462
+ text-shadow: 0 1px rgb(0, 0, 0, var(--glass-text-shadow-opacity, 5%));
19463
+ }
19464
+ }
19465
+ .tox.tox-tinymce {
19466
+ width: 50% !important;
19467
+ height: 400px !important;
19468
+ display: inline-flex;
19469
+ }
19470
+
19471
+ /* on large screens, I use a different layout, so 600px are sufficient */
19472
+ @media only screen and (min-width: 600px) {
19473
+ .tox.tox-tinymce {
19474
+ width: 600px !important;
19475
+ }
19476
+ }
19477
+ h1 {
19478
+ color: var(--color-primary);
19479
+ /* Header/H1 */
19480
+ font-family: Inter;
19481
+ font-size: 48px;
19482
+ font-style: normal;
19483
+ font-weight: 400;
19484
+ line-height: 56px; /* 116.667% */
19485
+ }
19486
+
19487
+ h2 {
19488
+ color: var(--grey-1100252525, #252525);
19489
+ /* Header/H2 Bold */
19490
+ font-family: Inter;
19491
+ font-size: 32px;
19492
+ font-style: normal;
19493
+ font-weight: 600;
19494
+ line-height: 38px; /* 118.75% */
19495
+ letter-spacing: 0.25px;
19496
+ }
19497
+
19498
+ h3 {
19499
+ color: var(--grey-1100252525, #252525);
19500
+ /* Header/H3 */
19501
+ font-family: Inter;
19502
+ font-size: 24px;
19503
+ font-style: normal;
19504
+ font-weight: 400;
19505
+ line-height: 32px; /* 133.333% */
19506
+ }
19507
+
19508
+ .overline {
19509
+ color: var(--grey-1100252525, #252525);
19510
+ /* Overline/Regular */
19511
+ font-family: Inter;
19512
+ font-size: 12px;
19513
+ font-style: normal;
19514
+ font-weight: 500;
19515
+ line-height: 16px; /* 133.333% */
19516
+ letter-spacing: 3.2px;
19517
+ text-transform: uppercase;
19518
+ }
19519
+
19520
+ ol,
19521
+ ul {
19522
+ list-style: none;
19523
+ margin: 1rem;
19524
+ padding: 0;
19525
+ }
19526
+ ol li,
19527
+ ul li {
19528
+ margin: 1rem;
19529
+ padding: 0;
19530
+ }
19531
+ ol.mdc-list,
19532
+ ul.mdc-list {
19533
+ list-style-type: none;
19534
+ list-style: none;
19535
+ }
19536
+ ol.mdc-list li.mdc-list-item,
19537
+ ul.mdc-list li.mdc-list-item {
19538
+ list-style-type: none;
19539
+ list-style: none !important;
19540
+ }
19541
+
19542
+ .orange-label {
19543
+ color: var(--Orange-900-Primary, #db3b03);
19544
+ /* Caption 1/Regular */
19545
+ font-family: Inter;
19546
+ font-size: 12px;
19547
+ font-style: normal;
19548
+ font-weight: 400;
19549
+ line-height: 16px; /* 133.333% */
19550
+ letter-spacing: 0.4px;
19551
+ margin: 0px 0 -9px 16px;
19552
+ z-index: 1 !important;
19553
+ position: relative;
19554
+ width: fit-content;
19555
+ }
19556
+ .orange-label.grey-bg {
19557
+ background-color: #fefcfb;
19558
+ }
19559
+
19560
+ #spinnerLoader {
19561
+ position: fixed;
19562
+ top: 50%;
19563
+ left: 50%;
19564
+ transform: translate(-50%, -50%);
19565
+ background-color: #fff;
19566
+ padding: 20px;
19567
+ border-radius: 5px;
19568
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
19569
+ display: flex;
19570
+ align-items: center;
19571
+ justify-content: center;
19572
+ z-index: 100;
19573
+ pointer-events: none;
19574
+ }
19575
+
19576
+ #textfield-Title-label {
19577
+ background-color: white;
19578
+ }
19579
+
19580
+ .mdc-ripple-upgraded .mdc-text-field--outlined .mdc-notched-outline__notch {
19581
+ border: 0px solid transparent !important;
19582
+ border-bottom: 1px solid #db3b03 !important;
19583
+ padding: 0;
19584
+ height: 0;
19585
+ }
19586
+
19587
+ .mdc-text-field--focused .mdc-notched-outline__notch {
19588
+ border: 0px solid transparent !important;
19589
+ border-bottom: 2px solid #db3b03 !important;
19590
+ }
19591
+
19592
+ .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {
19593
+ max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);
19594
+ border-top: transparent;
19595
+ }
19596
+
19597
+ .generate-btn {
19598
+ display: flex;
19599
+ height: 48px;
19600
+ padding: 12px 24px;
19601
+ justify-content: center;
19602
+ align-items: center;
19603
+ gap: 10px;
19604
+ border-radius: 16px;
19605
+ }
19606
+ .generate-btn.link:hover {
19607
+ background-color: var(--Cyan-700-Secondary, #e27046);
19608
+ color: var(--Cyan-700-Secondary-Text, #fff);
19609
+ }
19610
+
19611
+ .bg-green {
19612
+ background: var(--Cyan-700-Secondary, #00776b);
19613
+ }
19614
+
19615
+ :host {
19616
+ display: inline-block;
19617
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
19618
+ }
19619
+
19620
+ .radio-wrapper {
19621
+ display: inline-flex;
19622
+ align-items: center;
19623
+ gap: 8px;
19624
+ cursor: pointer;
19625
+ }
19626
+ .radio-wrapper--disabled {
19627
+ cursor: not-allowed;
19628
+ }
19629
+
19630
+ .radio {
19631
+ width: 20px;
19632
+ height: 20px;
19633
+ border-radius: 50%;
19634
+ border: 2px solid #9ca3af;
19635
+ background: white;
19636
+ display: flex;
19637
+ align-items: center;
19638
+ justify-content: center;
19639
+ cursor: pointer;
19640
+ transition: all 0.15s ease;
19641
+ outline: none;
19642
+ position: relative;
19643
+ flex-shrink: 0;
19644
+ }
19645
+ .radio.hover {
19646
+ border-color: #059669;
19647
+ background: #d1fae5;
19648
+ }
19649
+ .radio.focus {
19650
+ border-color: #059669;
19651
+ background: #a7f3d0;
19652
+ box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
19653
+ }
19654
+ .radio.pressed {
19655
+ border-color: #059669;
19656
+ background: #6ee7b7;
19657
+ }
19658
+ .radio.checked {
19659
+ border-color: #059669;
19660
+ }
19661
+ .radio.checked.hover {
19662
+ background: #d1fae5;
19663
+ }
19664
+ .radio.checked.hover .radio-inner {
19665
+ background: #059669;
19666
+ }
19667
+ .radio.checked.focus {
19668
+ background: #a7f3d0;
19669
+ box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
19670
+ }
19671
+ .radio.checked.focus .radio-inner {
19672
+ background: #059669;
19673
+ }
19674
+ .radio.checked.pressed {
19675
+ background: #6ee7b7;
19676
+ }
19677
+ .radio.checked.pressed .radio-inner {
19678
+ background: #059669;
19679
+ }
19680
+ .radio.error {
19681
+ border-color: #ef4444;
19682
+ }
19683
+ .radio.error.hover {
19684
+ background: #fee2e2;
19685
+ border-color: #ef4444;
19686
+ }
19687
+ .radio.error.focus {
19688
+ background: #fecaca;
19689
+ border-color: #ef4444;
19690
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
19691
+ }
19692
+ .radio.error.pressed {
19693
+ background: #fca5a5;
19694
+ border-color: #ef4444;
19695
+ }
19696
+ .radio.error.checked .radio-inner {
19697
+ background: #ef4444;
19698
+ }
19699
+ .radio.disabled {
19700
+ opacity: 0.4;
19701
+ cursor: not-allowed;
19702
+ border-color: #d1d5db;
19703
+ background: white;
19704
+ }
19705
+ .radio.disabled.checked {
19706
+ border-color: #9ca3af;
19707
+ }
19708
+ .radio.disabled.checked .radio-inner {
19709
+ background: #9ca3af;
19710
+ }
19711
+
19712
+ .radio-inner {
19713
+ width: 10px;
19714
+ height: 10px;
19715
+ border-radius: 50%;
19716
+ background: #059669;
19717
+ transform: scale(0);
19718
+ transition: transform 0.15s ease;
19719
+ }
19720
+ .radio-inner--visible {
19721
+ transform: scale(1);
19722
+ }
19723
+
19724
+ .label {
19725
+ font-size: 14px;
19726
+ color: #374151;
19727
+ user-select: none;
19728
+ }
19729
+
19730
+ .radio-wrapper--disabled .label {
19731
+ opacity: 0.4;
19732
+ }`,gt=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.radioChange=m(this,"radioChange"),this.label="",this.value="",this.name="",this.initialChecked=!1,this.disabled=!1,this.error=!1,this.checked=!1,this.isHovered=!1,this.isFocused=!1,this.isPressed=!1,this.handleClick=()=>{this.disabled||this.checked||(this.getSiblingRadios().forEach(n=>n.deselect()),this.checked=!0,this.radioChange.emit({value:this.value,checked:this.checked}))},this.handleKeyDown=n=>{this.disabled||(n.key===" "||n.key==="Enter")&&(n.preventDefault(),this.isPressed=!0,this.handleClick())},this.handleKeyUp=n=>{(n.key===" "||n.key==="Enter")&&(this.isPressed=!1)},this.getRadioClass=()=>{const n=["radio"];return this.checked&&n.push("checked"),this.disabled&&n.push("disabled"),this.error&&n.push("error"),this.isHovered&&!this.disabled&&n.push("hover"),this.isFocused&&!this.disabled&&n.push("focus"),this.isPressed&&!this.disabled&&n.push("pressed"),n.join(" ")}}watchCheckedProp(n){this.checked=n}componentWillLoad(){this.checked=this.initialChecked}async deselect(){this.checked=!1}getSiblingRadios(){if(!this.name)return[];const n=this.el.parentElement;return n?Array.from(n.querySelectorAll(`xplor-radio-btn[name="${this.name}"]`)).filter(o=>o!==this.el):[]}render(){return r("label",{key:"dee9c14f54e292d18b3267ca5e2000aca36b0456",class:{"radio-wrapper":!0,"radio-wrapper--disabled":this.disabled}},r("div",{key:"30bd9ba24abb9b37e6baa55d6ba767a2058cd1d0",class:this.getRadioClass(),onClick:this.handleClick,onMouseEnter:()=>this.isHovered=!0,onMouseLeave:()=>this.isHovered=!1,onMouseDown:()=>this.isPressed=!0,onMouseUp:()=>this.isPressed=!1,onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,tabIndex:this.disabled?-1:0,role:"radio","aria-checked":this.checked.toString(),"aria-disabled":this.disabled.toString(),"aria-label":this.label},r("div",{key:"d09a47486e2041f12cbdeadd29fd537cab41db3b",class:{"radio-inner":!0,"radio-inner--visible":this.checked}})),this.label&&r("span",{key:"d8b820cd1b843f33a99a64c236f3f53a1c68be70",class:"label"},this.label))}get el(){return this}static get watchers(){return{initialChecked:["watchCheckedProp"]}}static get style(){return Tl}},[1,"xplor-radio-btn",{label:[1],value:[1],name:[1],initialChecked:[4,"initial-checked"],disabled:[4],error:[4],checked:[32],isHovered:[32],isFocused:[32],isPressed:[32],deselect:[64]},void 0,{initialChecked:["watchCheckedProp"]}]);function Dl(){if(typeof customElements>"u")return;["xplor-radio-btn"].forEach(n=>{switch(n){case"xplor-radio-btn":customElements.get(n)||customElements.define(n,gt);break}})}const Ll=gt,Fl=Dl,Xl=`@tailwind base;
19249
19733
  @tailwind components;
19250
19734
  @tailwind utilities;
19251
19735
  @layer base {
@@ -20302,7 +20786,7 @@ ol.mdc-list.sc-xplor-section-card li.mdc-list-item.sc-xplor-section-card, ul.mdc
20302
20786
  }
20303
20787
  .section-card__actions.sc-xplor-section-card:empty {
20304
20788
  display: none;
20305
- }`,gt=v(class extends y{constructor(){super(),this.__registerHost(),this.outlined=!0,this.rounded=!0,this.padding="1.5rem"}render(){return r(h,{key:"667ddbeb2048497ae0ec2d23876f50058e9b4870"},r("div",{key:"ccbce0700966f088c5a053df2169d466529d4ce3",class:{"section-card":!0,"section-card--outlined":this.outlined,"section-card--rounded":this.rounded},style:{padding:this.padding}},r("slot",{key:"edd611a0afe1e5343ddedabf7d1daec8962a037b",name:"title"}),r("slot",{key:"2543fd02c710dd9045a7e5920ddc625712febc71",name:"subtitle"}),r("div",{key:"bdd87422f48d711b43e6a1bf3f27a08d33819d1e",class:"section-card__body"},r("slot",{key:"4989480c1010e3bae58cfeba4e0637e5fc1397da",name:"body"})),r("div",{key:"891bd2f17631f7f2732dbb04caefb26503d30e75",class:"section-card__actions"},r("slot",{key:"8d49640f1c96c75afb915ed4acd1dd574ae4c2b9",name:"actions"}))))}static get style(){return kl}},[6,"xplor-section-card",{outlined:[4],rounded:[4],padding:[1]}]);function wl(){if(typeof customElements>"u")return;["xplor-section-card"].forEach(n=>{switch(n){case"xplor-section-card":customElements.get(n)||customElements.define(n,gt);break}})}const _l=gt,Cl=wl,$l=`@tailwind base;
20789
+ }`,xt=v(class extends y{constructor(){super(),this.__registerHost(),this.outlined=!0,this.rounded=!0,this.padding="1.5rem"}render(){return r(b,{key:"14876af087f131508ff26d4fefbba1792fb1f092"},r("div",{key:"38bf7ff900f46b701416e2a3483c66728939cf8c",class:{"section-card":!0,"section-card--outlined":this.outlined,"section-card--rounded":this.rounded},style:{padding:this.padding}},r("slot",{key:"2189b986d9b08b1ef6168af7a5fe24da4a599301",name:"title"}),r("slot",{key:"c3efe60808ac203e0c9a63c7c636dee242856bf0",name:"subtitle"}),r("div",{key:"cf9d94651682ca4d1da25ccadbbfe2168295a326",class:"section-card__body"},r("slot",{key:"732633bbbe5ad06f1c10222e81929a33ba06a12c",name:"body"}),r("slot",{key:"e403abfc1b71759aab693c700b5ed8be1215f30e"})),r("div",{key:"89ffdd8215a88483635d1542a56a6f446abf61c4",class:"section-card__actions"},r("slot",{key:"e21b2e8b8cd048c4a0dfd369684186b547cc7611",name:"actions"}))))}static get style(){return Xl}},[6,"xplor-section-card",{outlined:[4],rounded:[4],padding:[1]}]);function Al(){if(typeof customElements>"u")return;["xplor-section-card"].forEach(n=>{switch(n){case"xplor-section-card":customElements.get(n)||customElements.define(n,xt);break}})}const Bl=xt,Ml=Al,Pl=`@tailwind base;
20306
20790
  @tailwind components;
20307
20791
  @tailwind utilities;
20308
20792
  @layer base {
@@ -20568,7 +21052,7 @@ ol.mdc-list.sc-xplor-section-heading li.mdc-list-item.sc-xplor-section-heading,
20568
21052
  }
20569
21053
  .section-heading--large.sc-xplor-section-heading {
20570
21054
  font-size: 1.1em;
20571
- }`,xt=v(class extends y{constructor(){super(),this.__registerHost(),this.size="medium"}render(){return r(h,{key:"4c30a434a144abb7ba1925a4fe98847fb8a0e09c"},r("span",{key:"faa456eebb9ba58d55945f0b5f6db9e02efd9d31",class:{"section-heading":!0,"section-heading--small":this.size==="small","section-heading--large":this.size==="large"}},r("slot",{key:"3a164def63f5365f6a76702e7a8462fe0ce4fcc9"},this.text)))}static get style(){return $l}},[6,"xplor-section-heading",{size:[1],text:[1]}]);function Sl(){if(typeof customElements>"u")return;["xplor-section-heading"].forEach(n=>{switch(n){case"xplor-section-heading":customElements.get(n)||customElements.define(n,xt);break}})}const Il=xt,El=Sl,zl=e=>{switch(e){case"asc":return"arrow-up";case"desc":return"arrow-down";default:return"dash"}},mt=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.tableSelect=x(this,"tableSelect"),this.selectedValues=[],this.isSortable=!0,this.sortableColumns=[],this.areAllSelected=!1,this.hasScrolled=!1,this.sortTypeArray=[],this.selectedDateRange="All",this.currentPage=1,this.totalPages=3,this.handlePagination=n=>{switch(n){case"first":this.currentPage=1;break;case"prev":this.currentPage>1&&this.currentPage--;break;case"next":this.currentPage<this.totalPages&&this.currentPage++;break;case"last":this.currentPage=this.totalPages;break}},this.handleDateRangeChange=n=>{const t=n.target;this.selectedDateRange=t.value},this.handleFilterReports=()=>{console.log("Filter reports clicked")},this.handleDownloadAll=()=>{console.log("Download all clicked")},this.selectAllValue=Math.random().toString(36).slice(2),this.selectAll=n=>{const{target:t}=n;if(!(t instanceof HTMLInputElement))return;const{checked:o}=t;this.areAllSelected=o,this.selected=this.selectedValues.length>0?Array.from(this.el.querySelectorAll("tbody td:first-child input")).map(i=>o&&(i==null?void 0:i.value)):this.selected.map(()=>o),this.onChange()},this.selectOne=(n,t)=>{const{target:o}=n;if(!(o instanceof HTMLInputElement))return;const{checked:i,value:a}=o;this.areAllSelected=!1,this.selected=this.selected.map((s,l)=>l!==t?s:this.selectedValues.length>0?i&&a:i),this.onChange()},this.onChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})},this.onScroll=()=>{this.hasScrolled=this.container.scrollLeft>0},this.sortBy=n=>{this.sortTypeArray=this.sortTypeArray.map((o,i)=>{if(i!==n)return null;switch(o){case"asc":return"desc";case"desc":return null;default:return"asc"}});const t=(o,i)=>o[n].toLocaleLowerCase()<i[n].toLocaleLowerCase()?-1:o[n].toLocaleLowerCase()>i[n].toLocaleLowerCase()?1:0;this.sortTypeArray[n]==="asc"?this.rowData.sort((o,i)=>t(o,i)):this.sortTypeArray[n]==="desc"?this.rowData.sort((o,i)=>t(i,o)):(this.rowData=this.data,this.sortTypeArray[n]=null),this.rowData=Array.from(this.rowData),this.render()},this.setData=()=>{this.rowData=this.data!==void 0?Array.from(this.data):[]}}getPaginatedData(){const n=(this.currentPage-1)*10,t=n+10;return this.rowData.slice(n,t)}watchData(){this.setData()}componentWillLoad(){this.areAllSelected=!1,this.setData(),this.selected=new Array(this.rowData.length).fill(!1),this.sortTypeArray=this.columns&&this.columns.map(()=>null)}render(){let n="xpl-table";this.striped&&(n+=" xpl-table--striped"),this.freeze&&(n+=" xpl-table--freeze"),this.hasScrolled&&(n+=" xpl-table--has-scrolled");const t=this.getPaginatedData();return r(h,{key:"2d97030af789ed65f7021cb28a7afc2419fbccd5",class:"xplor-table"},r("div",{key:"e790897b07a94c98f28af0c1a8d9acbc0bded6c6",class:"bg-white rounded-lg shadow-sm border border-gray-200 p-6 max-w-6xl mx-auto"},r("div",{key:"a1f167a0de10b05288715269bc9c469a547c6102",class:"xpl-table-container",onScroll:this.onScroll,ref:o=>{this.container=o}},r("div",{key:"84ab92d9467e4ac9d866a3220ccba9d63b8c8cc8",class:"mb-6"},r("h1",{key:"f8746a5162a38476937b83d9549a2fad2a030f8a",class:"text-xl font-semibold text-gray-900 mb-4"},"Head Counts Report"),r("div",{key:"1e7188d1e0a7dd74f466dab3e6ee00189ab88e53",class:"flex flex-wrap items-center gap-4 mb-6"},r("div",{key:"c3f2d92bef894ccc749e1249536154147a324711",class:"flex items-center gap-2"},r("label",{key:"6156ed236c96b1e1f7d480bc97bb0ab8b0b01a87",class:"text-sm text-gray-600 font-medium"},"Date Range"),r("select",{key:"da1caff2afb5a1b4786adec7fd9ca7a9480c0f57",class:"border border-gray-300 rounded px-3 py-1.5 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-teal-500",onInput:this.handleDateRangeChange},r("option",{key:"6c31c50fe2119d1f5086e3f33ddff4903a290a03",value:"All"},"All"),r("option",{key:"17d4c7b7c52763065dab2f5dceb85ddd8d23e892",value:"Today"},"Today"),r("option",{key:"1ec247907dc275825d6a8a105b3c841d2de131f0",value:"This Week"},"This Week"),r("option",{key:"3fa99b268c42232eb3dccf73dd125b27608d2ba8",value:"This Month"},"This Month"),r("option",{key:"bfeea456dde4d67cdc12b00cdba0b694fb5fa3cf",value:"Custom"},"Custom Range")),r("button",{key:"f5d3badb19132f137573b4248f0ce99e95e38daa",class:"p-1.5 border border-gray-300 rounded hover:bg-gray-50"},r("svg",{key:"f32657ec8d66d3e1a10cdb304406999a933ad7ee",class:"w-4 h-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"4b63cca1e36df1a5cd5b598f558fc5bd88f25f17","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})))),r("button",{key:"f5133d241b1669c8ae425a76b69a25db91bc9e69",onClick:this.handleFilterReports,class:"bg-teal-600 hover:bg-teal-700 text-white px-4 py-1.5 rounded text-sm font-medium transition-colors"},"Filter Reports"),r("button",{key:"4df30f93e7b019be1ad293a7e70fad80df5c42a8",onClick:this.handleDownloadAll,class:"flex items-center gap-2 text-gray-600 hover:text-gray-800 text-sm"},r("svg",{key:"18dc2f9716e0f5bc095d84349f85703f38d23238",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"cbcfc4fd12a099008c3fcbf762cbfccc63b1706c","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})),"Download All"))),r("table",{key:"cf9f942709fcc413f99891d612b1640eed94debf",class:`w-full ${n}`},this.columns&&r("thead",{key:"baeee3644d8fb2fd9e2d038200b24d433bbdf87b"},this.columns.map((o,i)=>{const a=zl(this.sortTypeArray[i]),s=!!(this.isSortable&&this.sortableColumns[i]);return r("th",{class:"text-left py-3 px-4 text-sm font-medium text-gray-600"},this.multiselect&&i===0?r("label",{onClick:l=>{l.preventDefault(),l.stopPropagation();debugger;s&&this.sortBy(i)},class:s?"cursor-pointer":""},r("input",{checked:this.areAllSelected,id:"__xpl-table-th",indeterminate:!this.areAllSelected&&this.selected.some(l=>l),onClick:l=>{l.stopPropagation(),this.selectAll(l)},type:"checkbox",value:`select-all-${this.selectAllValue}`}),o,s&&!!this.sortTypeArray[i]&&r("xpl-icon",{icon:a,size:16})):r("label",{onClick:()=>s&&this.sortBy(i),class:s?"cursor-pointer":""},o,s&&!!this.sortTypeArray[i]&&r("svg",{width:"11",height:"6",viewBox:"0 0 11 6",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M10.5 5.5L5.5 0.5L0.5 5.5L10.5 5.5Z",fill:"currentColor"}))))})),r("tbody",{key:"b0715075cfba14dd9ac1e783e0c27a197e41a725"},t.map((o,i)=>r("tr",{class:"border-b border-gray-100 hover:bg-gray-50"},o.map((a,s)=>r("td",{class:"py-3 px-4 text-sm text-gray-900"},this.multiselect&&s===0?r("label",{class:"flex items-center gap-2",htmlFor:`__xpl-table-row-${i}`},r("input",{id:`__xpl-table-row-${i}`,checked:!!this.selected[i],type:"checkbox",onChange:l=>this.selectOne(l,i),value:this.selectedValues.length>0?this.selectedValues[i]:`xpl-table-checkbox-${i}`}),r("div",{innerHTML:a})):r("div",{innerHTML:a}))))))),r("div",{key:"658aec34fd3394c205d12ab67d06c6f1bb385aa6",id:"pagination",class:"w-full flex items-center justify-between mt-6 text-sm"},r("div",{key:"aa7d796792186a3bd76f4201ead86e2055d65cf9",class:"flex items-center gap-2"},r("button",{key:"7517d034c1456224fb24a0d66c3f60a446e96ef0",onClick:()=>this.handlePagination("first"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===1},r("svg",{key:"9af8fe875c042ffdd8fd7015b01703d29789a1af",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"41a1023ce1243190df484411ac9390ccd1496f10","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"}))),r("button",{key:"ac9f0e09603e4bd45d6aa10dd45303f8bc90f892",onClick:()=>this.handlePagination("prev"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===1},r("svg",{key:"af67ed98c91a36076f1578e5eaa49321aa919984",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"f0e3498f7b8e784e4848c0190eaab285f1c220af","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})))),r("span",{key:"29ae566f6e8f3cbaad39998165529b5022073a56",class:"text-gray-600"},"Page ",this.currentPage," of ",this.totalPages),r("div",{key:"91da8153fd11fac318ef63b768e3ce0fda3e4b63",class:"flex items-center gap-2"},r("button",{key:"f8e399e46605f060d09c0f1fcc5864dae84949fd",onClick:()=>this.handlePagination("next"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===this.totalPages},r("svg",{key:"93a0154407f0034993b31f79f746b905d8c720ba",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"67341c2e70e6e0e51bca7f6c0f8d790577efb80c","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"}))),r("button",{key:"6c4e12bf4877e44ffb5cb6cec4a91dd41c76a95d",onClick:()=>this.handlePagination("last"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===this.totalPages},r("svg",{key:"b476cb40832e1116db85780080839fe87fc75777",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"da32eb5c65018fe776af2f65ccd433573b21822e","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 5l7 7-7 7M5 5l7 7-7 7"}))))))))}get el(){return this}static get watchers(){return{data:["watchData"]}}},[1,"xplor-table",{columns:[16],data:[16],freeze:[4],multiselect:[4],striped:[4],selectedValues:[16,"selected-values"],isSortable:[4,"is-sortable"],sortableColumns:[16,"sortable-columns"],areAllSelected:[32],rowData:[32],hasScrolled:[32],selected:[32],sortTypeArray:[32],selectedDateRange:[32],currentPage:[32],totalPages:[32]},void 0,{data:["watchData"]}]);function Tl(){if(typeof customElements>"u")return;["xplor-table"].forEach(n=>{switch(n){case"xplor-table":customElements.get(n)||customElements.define(n,mt);break}})}const Dl=mt,Xl=Tl,Ll=`@tailwind base;
21055
+ }`,mt=v(class extends y{constructor(){super(),this.__registerHost(),this.size="medium",this.level=2}render(){const n=`h${this.level}`;return r(b,{key:"dbd9dc5f552dd6a20d6a5e39efd636ced45df7cb"},r(n,{key:"90ceffcb3383b8d167e11e42cb6a2e915ddeec1b",class:{"section-heading":!0,"section-heading--small":this.size==="small","section-heading--large":this.size==="large"}},r("slot",{key:"dd861c58c3e59e0bb4b0e7195ecaaa55ffab4912"},this.text)))}static get style(){return Pl}},[6,"xplor-section-heading",{size:[1],text:[1],level:[2]}]);function Ol(){if(typeof customElements>"u")return;["xplor-section-heading"].forEach(n=>{switch(n){case"xplor-section-heading":customElements.get(n)||customElements.define(n,mt);break}})}const jl=mt,Hl=Ol,Rl=e=>{switch(e){case"asc":return"arrow-up";case"desc":return"arrow-down";default:return"dash"}},ht=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.tableSelect=m(this,"tableSelect"),this.selectedValues=[],this.isSortable=!0,this.sortableColumns=[],this.areAllSelected=!1,this.hasScrolled=!1,this.sortTypeArray=[],this.selectedDateRange="All",this.currentPage=1,this.totalPages=3,this.handlePagination=n=>{switch(n){case"first":this.currentPage=1;break;case"prev":this.currentPage>1&&this.currentPage--;break;case"next":this.currentPage<this.totalPages&&this.currentPage++;break;case"last":this.currentPage=this.totalPages;break}},this.handleDateRangeChange=n=>{const t=n.target;this.selectedDateRange=t.value},this.handleFilterReports=()=>{console.log("Filter reports clicked")},this.handleDownloadAll=()=>{console.log("Download all clicked")},this.selectAllValue=Math.random().toString(36).slice(2),this.selectAll=n=>{const{target:t}=n;if(!(t instanceof HTMLInputElement))return;const{checked:o}=t;this.areAllSelected=o,this.selected=this.selectedValues.length>0?Array.from(this.el.querySelectorAll("tbody td:first-child input")).map(i=>o&&(i==null?void 0:i.value)):this.selected.map(()=>o),this.onChange()},this.selectOne=(n,t)=>{const{target:o}=n;if(!(o instanceof HTMLInputElement))return;const{checked:i,value:a}=o;this.areAllSelected=!1,this.selected=this.selected.map((l,s)=>s!==t?l:this.selectedValues.length>0?i&&a:i),this.onChange()},this.onChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})},this.onScroll=()=>{this.hasScrolled=this.container.scrollLeft>0},this.sortBy=n=>{this.sortTypeArray=this.sortTypeArray.map((o,i)=>{if(i!==n)return null;switch(o){case"asc":return"desc";case"desc":return null;default:return"asc"}});const t=(o,i)=>o[n].toLocaleLowerCase()<i[n].toLocaleLowerCase()?-1:o[n].toLocaleLowerCase()>i[n].toLocaleLowerCase()?1:0;this.sortTypeArray[n]==="asc"?this.rowData.sort((o,i)=>t(o,i)):this.sortTypeArray[n]==="desc"?this.rowData.sort((o,i)=>t(i,o)):(this.rowData=this.data,this.sortTypeArray[n]=null),this.rowData=Array.from(this.rowData),this.render()},this.setData=()=>{this.rowData=this.data!==void 0?Array.from(this.data):[]}}getPaginatedData(){const n=(this.currentPage-1)*10,t=n+10;return this.rowData.slice(n,t)}watchData(){this.setData()}componentWillLoad(){this.areAllSelected=!1,this.setData(),this.selected=new Array(this.rowData.length).fill(!1),this.sortTypeArray=this.columns&&this.columns.map(()=>null)}render(){let n="xpl-table";this.striped&&(n+=" xpl-table--striped"),this.freeze&&(n+=" xpl-table--freeze"),this.hasScrolled&&(n+=" xpl-table--has-scrolled");const t=this.getPaginatedData();return r(b,{key:"da8ded4b349560e2272fd0ffa1395ffc04d92769",class:"xplor-table"},r("div",{key:"5cddb71e28a6eb512bbe0a209816fb8ba8050e22",class:"bg-white rounded-lg shadow-sm border border-gray-200 p-6 max-w-6xl mx-auto"},r("div",{key:"24abe132c8b2889e656f39b197dcb2348cf7c49b",class:"xpl-table-container",onScroll:this.onScroll,ref:o=>{this.container=o}},r("div",{key:"afd56f434c013d1175c198790562f60cbed5d6ce",class:"mb-6"},r("h1",{key:"ba650cfc24623c63910f9dfb7547272dc2adbe68",class:"text-xl font-semibold text-gray-900 mb-4"},"Head Counts Report"),r("div",{key:"4150efe6295d6697a787322e6bc8550d82296b69",class:"flex flex-wrap items-center gap-4 mb-6"},r("div",{key:"1bef7dc05a99081de7b2cf0588c58fb4cd0cb429",class:"flex items-center gap-2"},r("label",{key:"ce45f248fd5151412bd64f75038996e3febf09a1",class:"text-sm text-gray-600 font-medium"},"Date Range"),r("select",{key:"cc7b10bb86619c119bb3d4f5ab5267f733ad7805",class:"border border-gray-300 rounded px-3 py-1.5 text-sm bg-white focus:outline-none focus:ring-2 focus:ring-teal-500 focus:border-teal-500",onInput:this.handleDateRangeChange},r("option",{key:"62474a4b5ad2fd7ba9f0806bf7bb26b487df04ff",value:"All"},"All"),r("option",{key:"aba4fb209168ae645d87475f0467ba38ee258f7e",value:"Today"},"Today"),r("option",{key:"8203884e17bdcd012f90245dde1b9aec9abf16ed",value:"This Week"},"This Week"),r("option",{key:"7a721035e8d8e31d61869f7513b586e06d06b1e9",value:"This Month"},"This Month"),r("option",{key:"9a1d085c513236cb746cc9a6ebac1c48c8e35214",value:"Custom"},"Custom Range")),r("button",{key:"7119eae652a26a19f774fe2a3e2564a993937caa",class:"p-1.5 border border-gray-300 rounded hover:bg-gray-50"},r("svg",{key:"c430ab8a591ebd2e9c7cf14dd0f0758419be1178",class:"w-4 h-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"8330e74a528e0890375f9277d8dc7481bb88e8f9","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})))),r("button",{key:"85dc3c28587d7ce09cdb8dfe50e2b44f0f04b7c9",onClick:this.handleFilterReports,class:"bg-teal-600 hover:bg-teal-700 text-white px-4 py-1.5 rounded text-sm font-medium transition-colors"},"Filter Reports"),r("button",{key:"36d9d5fc49d73a0944c7abf1f5b96932d9789f0b",onClick:this.handleDownloadAll,class:"flex items-center gap-2 text-gray-600 hover:text-gray-800 text-sm"},r("svg",{key:"81cbf1b31e01c1d4fbba64b53b21bc26146d6f84",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"d3c68b2337d4a4ab9a8d218d9aa722814d548e1b","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})),"Download All"))),r("table",{key:"782e125327cea0381296ab5a3f2e3ddec6f42f24",class:`w-full ${n}`},this.columns&&r("thead",{key:"ad3958e4d04f974dd47136da227afb662ff6cc7f"},this.columns.map((o,i)=>{const a=Rl(this.sortTypeArray[i]),l=!!(this.isSortable&&this.sortableColumns[i]);return r("th",{class:"text-left py-3 px-4 text-sm font-medium text-gray-600","aria-sort":l&&this.sortTypeArray[i]?this.sortTypeArray[i]==="asc"?"ascending":"descending":l?"none":void 0},this.multiselect&&i===0?r("label",{onClick:s=>{s.preventDefault(),s.stopPropagation(),l&&this.sortBy(i)},class:l?"cursor-pointer":""},r("input",{checked:this.areAllSelected,id:"__xpl-table-th",indeterminate:!this.areAllSelected&&this.selected.some(s=>s),onClick:s=>{s.stopPropagation(),this.selectAll(s)},type:"checkbox",value:`select-all-${this.selectAllValue}`,"aria-label":"Select all rows"}),o,l&&!!this.sortTypeArray[i]&&r("xpl-icon",{icon:a,size:16})):r("label",{onClick:()=>l&&this.sortBy(i),class:l?"cursor-pointer":"","aria-label":l?`Sort by ${o}`:void 0},o,l&&!!this.sortTypeArray[i]&&r("svg",{width:"11",height:"6",viewBox:"0 0 11 6",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M10.5 5.5L5.5 0.5L0.5 5.5L10.5 5.5Z",fill:"currentColor"}))))})),r("tbody",{key:"1168d8fb9e1f324b37abdc1e8a899bb14dedf786"},t.map((o,i)=>r("tr",{class:"border-b border-gray-100 hover:bg-gray-50"},o.map((a,l)=>r("td",{class:"py-3 px-4 text-sm text-gray-900"},this.multiselect&&l===0?r("label",{class:"flex items-center gap-2",htmlFor:`__xpl-table-row-${i}`},r("input",{id:`__xpl-table-row-${i}`,checked:!!this.selected[i],type:"checkbox",onChange:s=>this.selectOne(s,i),value:this.selectedValues.length>0?this.selectedValues[i]:`xpl-table-checkbox-${i}`}),r("div",{innerHTML:a})):r("div",{innerHTML:a}))))))),r("div",{key:"dddc5e97acb0270689af29fdfbb0a96018074f48",id:"pagination",class:"w-full flex items-center justify-between mt-6 text-sm"},r("div",{key:"e7a37384aacfcd801b904082b028dd7b646b7938",class:"flex items-center gap-2"},r("button",{key:"0d099c93f970f255015df19a10736c76317f3d58",onClick:()=>this.handlePagination("first"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===1},r("svg",{key:"3ef73d6177480ef3c6bb2e0ba3c11faf93fad40a",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"61447e4f959176a412b9702dfd5f0c126dfd1dcf","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"}))),r("button",{key:"5d996706416e30beeb36b3ccf5f49a0f728c9d46",onClick:()=>this.handlePagination("prev"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===1},r("svg",{key:"a4e874b1db8cb252698f36497aebbfd8dfef9f7d",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"9ea64241e49ebfdc43f26317c1403a0dec074a2e","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})))),r("span",{key:"25c2b77e2d374c782bef6907bbaa5f7d1c2b9a51",class:"text-gray-600"},"Page ",this.currentPage," of ",this.totalPages),r("div",{key:"6586812fde391e75b56da67db64eeece80629dbc",class:"flex items-center gap-2"},r("button",{key:"f63385fd3ccae39ecb97b10fc92f204fb3e2fd62",onClick:()=>this.handlePagination("next"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===this.totalPages},r("svg",{key:"2024b6fa282b30ffcd8870dab2f50c0f1af0f4ef",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"397312376d85ef4262c42f0f4382371aeb0c5eef","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"}))),r("button",{key:"bb42b666d217a21b3f2b91b28eaa39a96ad403ba",onClick:()=>this.handlePagination("last"),class:"p-1.5 text-gray-400 hover:text-gray-600 disabled:opacity-50",disabled:this.currentPage===this.totalPages},r("svg",{key:"2e8f28f57ef6fd799559ae70c3c9bc9d7d74cdc3",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"02270640aefaf430f27acf75465bfc5b30d2a881","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 5l7 7-7 7M5 5l7 7-7 7"}))))))))}get el(){return this}static get watchers(){return{data:["watchData"]}}},[1,"xplor-table",{columns:[16],data:[16],freeze:[4],multiselect:[4],striped:[4],selectedValues:[16,"selected-values"],isSortable:[4,"is-sortable"],sortableColumns:[16,"sortable-columns"],areAllSelected:[32],rowData:[32],hasScrolled:[32],selected:[32],sortTypeArray:[32],selectedDateRange:[32],currentPage:[32],totalPages:[32]},void 0,{data:["watchData"]}]);function ql(){if(typeof customElements>"u")return;["xplor-table"].forEach(n=>{switch(n){case"xplor-table":customElements.get(n)||customElements.define(n,ht);break}})}const Ul=ht,Wl=ql,Kl=`@tailwind base;
20572
21056
  @tailwind components;
20573
21057
  @tailwind utilities;
20574
21058
  @layer base {
@@ -20834,7 +21318,7 @@ ol.mdc-list.sc-xplor-text-bubble li.mdc-list-item.sc-xplor-text-bubble, ul.mdc-l
20834
21318
  .text-bubble--orange.sc-xplor-text-bubble {
20835
21319
  border: 1px solid #F28602;
20836
21320
  background: #FEF2E0;
20837
- }`,bt=v(class extends y{constructor(){super(),this.__registerHost(),this.color="orange"}render(){return r(h,{key:"5b22dd9c96119743c998364cdd27667709f4e52f"},r("div",{key:"d42bc901517dce4e629a5d19fe2667925afcdf6e",class:{"text-bubble":!0,"text-bubble--green":this.color==="green","text-bubble--orange":this.color==="orange"}},r("slot",{key:"1ee2dc33d86906cdebd22019c3794ad1be606c1a"})))}static get style(){return Ll}},[6,"xplor-text-bubble",{color:[1]}]);function Bl(){if(typeof customElements>"u")return;["xplor-text-bubble"].forEach(n=>{switch(n){case"xplor-text-bubble":customElements.get(n)||customElements.define(n,bt);break}})}const Fl=bt,Al=Bl,Ml=`@tailwind base;
21321
+ }`,bt=v(class extends y{constructor(){super(),this.__registerHost(),this.color="orange"}render(){return r(b,{key:"bd93a7c09ef941a3c5a18b8b6b0704b2c9842b23"},r("div",{key:"234e72bed4c9cdf297901639130b452dd82392cf",class:{"text-bubble":!0,"text-bubble--green":this.color==="green","text-bubble--orange":this.color==="orange"}},r("slot",{key:"92c5fe22e00dd2506b15d49333ba8e31021d9bbf"})))}static get style(){return Kl}},[6,"xplor-text-bubble",{color:[1]}]);function Yl(){if(typeof customElements>"u")return;["xplor-text-bubble"].forEach(n=>{switch(n){case"xplor-text-bubble":customElements.get(n)||customElements.define(n,bt);break}})}const Vl=bt,Ql=Yl,Gl=`@tailwind base;
20838
21322
  @tailwind components;
20839
21323
  @tailwind utilities;
20840
21324
  @layer base {
@@ -22095,7 +22579,7 @@ ol.mdc-list.sc-xplor-text-field li.mdc-list-item.sc-xplor-text-field, ul.mdc-lis
22095
22579
  }
22096
22580
  .xplor-text-field--underlined.xplor-text-field--focused.sc-xplor-text-field .xplor-text-field__outline.sc-xplor-text-field {
22097
22581
  border-bottom-width: 2px;
22098
- }`,ht=v(class extends y{constructor(){super(),this.__registerHost(),this.valueChange=x(this,"valueChange"),this.inputBlur=x(this,"inputBlur"),this.inputFocus=x(this,"inputFocus"),this.clearClick=x(this,"clearClick"),this.value="",this.label="",this.placeholder="",this.type="text",this.color="secondary",this.variant="outlined",this.bgColor="white",this.errorMessages=[],this.hideDetails="auto",this.disabled=!1,this.readonly=!1,this.required=!1,this.isDirty=!1,this.clearable=!1,this.customClass="",this.isFocused=!1,this.hasValue=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.valueChange.emit(t.value)},this.handleFocus=n=>{this.isFocused=!0,this.inputFocus.emit(n)},this.handleBlur=n=>{this.isFocused=!1,this.inputBlur.emit(n)},this.handleClear=n=>{n.stopPropagation(),this.value="",this.valueChange.emit(""),this.clearClick.emit(),this.inputElement&&this.inputElement.focus()}}handleValueChange(n){this.hasValue=!!n}componentWillLoad(){this.hasValue=!!this.value}get hasError(){return this.errorMessages&&this.errorMessages.length>0}get showDetails(){return typeof this.hideDetails=="boolean"?!this.hideDetails:this.hasError}get computedClasses(){return{"xplor-text-field":!0,[`xplor-text-field--${this.variant}`]:!0,[`xplor-text-field--${this.color}`]:!0,"xplor-text-field--focused":this.isFocused,"xplor-text-field--error":this.hasError,"xplor-text-field--disabled":this.disabled,"xplor-text-field--readonly":this.readonly,"xplor-text-field--dirty":this.isDirty,"xplor-text-field--has-value":this.hasValue||this.isFocused,[this.customClass]:!!this.customClass}}render(){const n=this.isFocused||this.hasValue;return r(h,{key:"e5addac91e0cd95aae82078fca048c9cf3d63899"},r("div",{key:"5af015996b692ba7a9da193d85aa982a3c314e5f",class:this.computedClasses},r("div",{key:"ce8f119584d984368ed267c6343d36d5023a7cc4",class:"xplor-text-field__wrapper",style:{backgroundColor:this.bgColor}},r("div",{key:"65da1d866155e01344fafb88deb23b7c3e781e47",class:"xplor-text-field__input-wrapper"},this.label&&r("label",{key:"2b21d90a9e9621262e87669ac64b588d712015de",class:{"xplor-text-field__label":!0,"xplor-text-field__label--floating":n}},r("slot",{key:"eca54b3a90bce7b2437bb8f6034a72d38e95145a",name:"label"},this.label),this.required&&r("span",{key:"dc29dc197c8ec0613602b199ddacb2901301b496",class:"xplor-text-field__required"},"*")),r("input",{key:"ff58f03b2fd6ccd30e901e70116ddf13e392ec6c",ref:t=>this.inputElement=t,class:"xplor-text-field__input",type:this.type,value:this.value,placeholder:this.isFocused?this.placeholder:"",disabled:this.disabled,readonly:this.readonly,required:this.required,maxlength:this.maxlength,min:this.min,max:this.max,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,"aria-invalid":this.hasError?"true":"false","aria-describedby":this.hasError?"error-messages":void 0}),r("div",{key:"01c6224679cf4709b51015943bb163d5e6cc929a",class:"xplor-text-field__append-inner"},this.clearable&&this.hasValue&&!this.disabled&&!this.readonly&&r("button",{key:"e212288acbed1693c8a31c9fb01de80ed5d7509c",type:"button",class:"xplor-text-field__clear-btn",onClick:this.handleClear,"aria-label":"Clear"},r("svg",{key:"8c457ed9da2b09b0457c12db18e7a4924251dfca",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},r("path",{key:"947f8e2599d17fb4fc763b864b1ab2fec0ca2ab2",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}))),r("slot",{key:"53062cd78fbbbadf85aa722e23c78f477145a34e",name:"append-inner"})),r("fieldset",{key:"accd6fc547d7112f5806a82dc6826bbd386d9596",class:"xplor-text-field__outline"},r("legend",{key:"ef077a25a838e77901a747c65296529b694f6559",class:{"xplor-text-field__outline-legend":!0,"xplor-text-field__outline-legend--floating":n}},n&&this.label?r("span",null,this.label,this.required&&"*"):r("span",null,"​")))),r("div",{key:"7374765a73e8e4cc21ad265290a35ed07a1fc2de",class:"xplor-text-field__append"},r("slot",{key:"3cfeb58881b2103a516cfe38f6bedd0583c18aed",name:"append"}))),this.showDetails&&r("div",{key:"81677f56be4a7e77a415b5b21ea67448bed1c9ee",class:"xplor-text-field__details"},this.hasError&&r("div",{key:"20539967a3acbc1f2165df9cbe85f9bad7fd577c",id:"error-messages",class:"xplor-text-field__error-messages"},this.errorMessages.map(t=>r("div",{class:"xplor-text-field__error"},t))))))}get el(){return this}static get watchers(){return{value:["handleValueChange"]}}static get style(){return Ml}},[6,"xplor-text-field",{value:[1025],label:[1],placeholder:[1],type:[1],color:[1],variant:[1],bgColor:[1,"bg-color"],errorMessages:[16,"error-messages"],hideDetails:[8,"hide-details"],disabled:[4],readonly:[4],required:[4],isDirty:[4,"is-dirty"],clearable:[4],customClass:[1,"custom-class"],maxlength:[2],min:[2],max:[2],isFocused:[32],hasValue:[32]},void 0,{value:["handleValueChange"]}]);function Pl(){if(typeof customElements>"u")return;["xplor-text-field"].forEach(n=>{switch(n){case"xplor-text-field":customElements.get(n)||customElements.define(n,ht);break}})}const Ol=ht,jl=Pl,Hl=`@tailwind base;
22582
+ }`,ut=v(class extends y{constructor(){super(),this.__registerHost(),this.valueChange=m(this,"valueChange"),this.inputBlur=m(this,"inputBlur"),this.inputFocus=m(this,"inputFocus"),this.clearClick=m(this,"clearClick"),this.value="",this.label="",this.placeholder="",this.type="text",this.color="secondary",this.variant="outlined",this.bgColor="white",this.errorMessages=[],this.hideDetails="auto",this.disabled=!1,this.readonly=!1,this.required=!1,this.isDirty=!1,this.clearable=!1,this.customClass="",this.isFocused=!1,this.hasValue=!1,this.handleInput=n=>{const t=n.target;this.value=t.value,this.valueChange.emit(t.value)},this.handleFocus=n=>{this.isFocused=!0,this.inputFocus.emit(n)},this.handleBlur=n=>{this.isFocused=!1,this.inputBlur.emit(n)},this.handleClear=n=>{n.stopPropagation(),this.value="",this.valueChange.emit(""),this.clearClick.emit(),this.inputElement&&this.inputElement.focus()}}handleValueChange(n){this.hasValue=!!n}componentWillLoad(){this.hasValue=!!this.value}get hasError(){return this.errorMessages&&this.errorMessages.length>0}get showDetails(){return typeof this.hideDetails=="boolean"?!this.hideDetails:this.hasError}get computedClasses(){return{"xplor-text-field":!0,[`xplor-text-field--${this.variant}`]:!0,[`xplor-text-field--${this.color}`]:!0,"xplor-text-field--focused":this.isFocused,"xplor-text-field--error":this.hasError,"xplor-text-field--disabled":this.disabled,"xplor-text-field--readonly":this.readonly,"xplor-text-field--dirty":this.isDirty,"xplor-text-field--has-value":this.hasValue||this.isFocused,[this.customClass]:!!this.customClass}}render(){const n=this.isFocused||this.hasValue;return r(b,{key:"3c7117a290dc3f7157270b083559266c94ad21b8"},r("div",{key:"f97ceed7ef938aed090f297d070cd240b658d8a7",class:this.computedClasses},r("div",{key:"81ba47f6a22762d85e33052765896949e87e824f",class:"xplor-text-field__wrapper",style:{backgroundColor:this.bgColor}},r("div",{key:"33190e56a1443af9e4891d4a166442daa52ecb79",class:"xplor-text-field__input-wrapper"},this.label&&r("label",{key:"a44ab99f0e1719b2a93edcd7963c89476154f2f6",class:{"xplor-text-field__label":!0,"xplor-text-field__label--floating":n}},r("slot",{key:"c2299aedeb64c404c6bb7b6c0a29c9daae67fc44",name:"label"},this.label),this.required&&r("span",{key:"0d6ed2e883c3a651986470ef89f7be59ba33a645",class:"xplor-text-field__required"},"*")),r("input",{key:"de966a8eb84dd86bd8a0e529561badffe71d3d46",ref:t=>this.inputElement=t,class:"xplor-text-field__input",type:this.type,value:this.value,placeholder:this.isFocused?this.placeholder:"",disabled:this.disabled,readonly:this.readonly,required:this.required,maxlength:this.maxlength,min:this.min,max:this.max,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,"aria-invalid":this.hasError?"true":"false","aria-describedby":this.hasError?"error-messages":void 0}),r("div",{key:"b0bcd17da89b2f63f25d212f863d875489175a8c",class:"xplor-text-field__append-inner"},this.clearable&&this.hasValue&&!this.disabled&&!this.readonly&&r("button",{key:"0cac263bf21ccc5536d62d420ce493e906811fd6",type:"button",class:"xplor-text-field__clear-btn",onClick:this.handleClear,"aria-label":"Clear"},r("svg",{key:"2c02a7e8a9dbe7f9d133fc3c3156389db914bf73",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},r("path",{key:"bfaf865c53bb90b7d14ba27e419ca131e4107bfd",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}))),r("slot",{key:"82eb809592dcc52a9c447c837b614d57e47f1678",name:"append-inner"})),r("fieldset",{key:"828c5d47eab64b6ff91edd9d739c87fdaa88c589",class:"xplor-text-field__outline"},r("legend",{key:"e1fef5e2002b8ea21c07c8f06272c6f53785f8b0",class:{"xplor-text-field__outline-legend":!0,"xplor-text-field__outline-legend--floating":n}},n&&this.label?r("span",null,this.label,this.required&&"*"):r("span",null,"​")))),r("div",{key:"f5d2af691c5e9adb1295bbc4eb74b5510ab203f6",class:"xplor-text-field__append"},r("slot",{key:"8b26d1a847bfbbecd77067d2addb2a555464684e",name:"append"}))),this.showDetails&&r("div",{key:"63acbf8b66a619b74769b5aba9559da813e3081e",class:"xplor-text-field__details"},this.hasError&&r("div",{key:"c1e72205a335a0cf361ebb1936d19a0a6e1f52fd",id:"error-messages",class:"xplor-text-field__error-messages"},this.errorMessages.map(t=>r("div",{class:"xplor-text-field__error"},t))))))}get el(){return this}static get watchers(){return{value:["handleValueChange"]}}static get style(){return Gl}},[6,"xplor-text-field",{value:[1025],label:[1],placeholder:[1],type:[1],color:[1],variant:[1],bgColor:[1,"bg-color"],errorMessages:[16,"error-messages"],hideDetails:[8,"hide-details"],disabled:[4],readonly:[4],required:[4],isDirty:[4,"is-dirty"],clearable:[4],customClass:[1,"custom-class"],maxlength:[2],min:[2],max:[2],isFocused:[32],hasValue:[32]},void 0,{value:["handleValueChange"]}]);function Zl(){if(typeof customElements>"u")return;["xplor-text-field"].forEach(n=>{switch(n){case"xplor-text-field":customElements.get(n)||customElements.define(n,ut);break}})}const Jl=ut,Nl=Zl,ns=`@tailwind base;
22099
22583
  @tailwind components;
22100
22584
  @tailwind utilities;
22101
22585
  @layer base {
@@ -22524,4 +23008,4 @@ ol.mdc-list.sc-xplor-time-picker li.mdc-list-item.sc-xplor-time-picker, ul.mdc-l
22524
23008
  }
22525
23009
  .time-picker__error-message.sc-xplor-time-picker {
22526
23010
  color: #d32f2f;
22527
- }`,ut=v(class extends y{constructor(){super(),this.__registerHost(),this.timeChange=x(this,"timeChange"),this.xplorFocus=x(this,"xplorFocus"),this.xplorBlur=x(this,"xplorBlur"),this.xplorClear=x(this,"xplorClear"),this.value="",this.label="",this.placeholder="Select time",this.clearable=!1,this.prefill=!1,this.bgColor="white",this.showSeconds=!1,this.disabled=!1,this.readonly=!1,this.error="",this.hideDetails="auto",this.required=!1,this.isOpen=!1,this.inputText="",this.hours=12,this.minutes=0,this.seconds=0,this.period="AM",this.lastGoodValue="",this.toggleDropdown=()=>{this.disabled||this.readonly||(this.isOpen=!this.isOpen)},this.handleInputFocus=n=>{if(this.xplorFocus.emit(n),this.prefill&&!this.value){const t=new Date;this.hours=t.getHours()%12||12,this.minutes=t.getMinutes(),this.seconds=t.getSeconds(),this.period=t.getHours()>=12?"PM":"AM",this.emitChange()}},this.handleInputBlur=n=>{if(this.xplorBlur.emit(n),this.inputText.trim()==="")return;this.parseInputText(this.inputText)?this.emitChange():this.inputText=this.lastGoodValue},this.handleInputChange=n=>{const t=n.target;this.inputText=t.value},this.handleClear=n=>{n.stopPropagation(),this.value="",this.inputText="",this.lastGoodValue="",this.hours=12,this.minutes=0,this.seconds=0,this.period="AM",this.timeChange.emit(""),this.xplorClear.emit()},this.incrementHours=()=>{this.hours=this.hours>=12?1:this.hours+1,this.emitChange()},this.decrementHours=()=>{this.hours=this.hours<=1?12:this.hours-1,this.emitChange()},this.incrementMinutes=()=>{this.minutes>=59?(this.minutes=0,this.incrementHours()):(this.minutes++,this.emitChange())},this.decrementMinutes=()=>{this.minutes<=0?(this.minutes=59,this.decrementHours()):(this.minutes--,this.emitChange())},this.incrementSeconds=()=>{this.seconds>=59?(this.seconds=0,this.incrementMinutes()):(this.seconds++,this.emitChange())},this.decrementSeconds=()=>{this.seconds<=0?(this.seconds=59,this.decrementMinutes()):(this.seconds--,this.emitChange())},this.togglePeriod=()=>{this.period=this.period==="AM"?"PM":"AM",this.emitChange()}}componentWillLoad(){this.value&&(this.parseValueToState(this.value),this.inputText=this.formatDisplayTime(),this.lastGoodValue=this.inputText)}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}parseValueToState(n){if(!n)return;const t=n.split(":");let o=parseInt(t[0],10)||0;const i=parseInt(t[1],10)||0,a=parseInt(t[2],10)||0;this.period=o>=12?"PM":"AM",o===0?o=12:o>12&&(o-=12),this.hours=o,this.minutes=i,this.seconds=a}stateToValue(){let n=this.hours;this.period==="AM"&&n===12?n=0:this.period==="PM"&&n!==12&&(n+=12);const t=String(n).padStart(2,"0"),o=String(this.minutes).padStart(2,"0"),i=String(this.seconds).padStart(2,"0");return`${t}:${o}:${i}`}formatDisplayTime(){const n=this.hours,t=String(this.minutes).padStart(2,"0");if(this.showSeconds){const o=String(this.seconds).padStart(2,"0");return`${n}:${t}:${o} ${this.period}`}return`${n}:${t} ${this.period}`}parseInputText(n){const t=n.trim();if(!t)return!1;if(t.toLowerCase()==="am"||t.toLowerCase()==="pm")return this.hours=12,this.minutes=0,this.seconds=0,this.period=t.toLowerCase()==="pm"?"PM":"AM",!0;let o="am";t.toLowerCase().indexOf("p")!==-1&&(o="pm");const i=t.replace(/(\s*)(pm|am|p|a)/gi,"").trim(),s=i.replace(/\./g,":").split(":");let l,c=0,d=0;if(s.length===1){const p=i.trim();p.length===3?(l=parseInt(p.substring(0,1),10),c=parseInt(p.substring(1,3),10)):p.length===4?(l=parseInt(p.substring(0,2),10),c=parseInt(p.substring(2,4),10)):p.length===6?(l=parseInt(p.substring(0,2),10),c=parseInt(p.substring(2,4),10),d=parseInt(p.substring(4,6),10)):l=parseInt(p,10)}else if(s.length===2)l=parseInt(s[0].trim(),10),c=parseInt(s[1].trim(),10);else if(s.length===3)l=parseInt(s[0].trim(),10),c=parseInt(s[1].trim(),10),d=parseInt(s[2].trim(),10);else return!1;return isNaN(l)||l<0?!1:(isNaN(c)&&(c=0),isNaN(d)&&(d=0),c>=60&&(l+=Math.floor(c/60),c=c%60),l>=12&&(o="pm",l>=24&&(l=l%24,o=l>=12?"pm":"am"),l>12&&(l-=12)),l===0&&(l=12,o="am"),d>=60&&(d=59),this.hours=l,this.minutes=c,this.seconds=d,this.period=o==="pm"?"PM":"AM",!0)}emitChange(){const n=this.stateToValue();this.value=n,this.inputText=this.formatDisplayTime(),this.lastGoodValue=this.inputText,this.timeChange.emit(n)}renderChevronUp(){return r("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("polyline",{points:"18 15 12 9 6 15"}))}renderChevronDown(){return r("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("polyline",{points:"6 9 12 15 18 9"}))}render(){const n=this.hideDetails===!1||this.hideDetails==="auto"&&this.error,t=r("svg",{key:"ed28bf3f52630c4da2ad6a8e870bb8c3a4f3d190",class:"time-picker__icon-svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("circle",{key:"8bc107ea8c5b9762965b64c12393466f4373fd89",cx:"12",cy:"12",r:"10"}),r("polyline",{key:"ff49c4901b312dc15e6bd09dca83b5413112fb75",points:"12 6 12 12 16 14"}));return r(h,{key:"c096645386cd430139108770b6808647fbaadf70"},r("div",{key:"64c8c4afd184aef1b2e4ca8b8d4f63363470081a",class:{"time-picker":!0,"time-picker--disabled":this.disabled,"time-picker--error":!!this.error,"time-picker--open":this.isOpen}},this.label&&r("label",{key:"0e7bcf1942c56009e2396a777288529b6f5f53a1",class:"time-picker__label"},this.label,this.required&&r("span",{key:"034692f862e15e2719759706a2b487d208cf379d",class:"time-picker__required"},"*")),r("div",{key:"6cfa2b11f58478a9fc7cdae83408331980a6760d",class:"time-picker__field"},r("input",{key:"4ac1c82ccc1ab5f7dc0441544495ffca40077045",type:"text",class:"time-picker__input",value:this.inputText,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onInput:this.handleInputChange,style:{backgroundColor:this.bgColor}}),r("div",{key:"223f64d070ee70d5930bbcf416c5790bb4338adc",class:"time-picker__actions"},this.clearable&&this.value&&!this.disabled&&!this.readonly&&r("button",{key:"41282f7c47134fce27192eb28402a9f2d5cf1c87",type:"button",class:"time-picker__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("button",{key:"d0f1150c1acf001eb6b5861ae4acf2d340f76f95",type:"button",class:"time-picker__icon-btn",onClick:this.toggleDropdown,disabled:this.disabled,"aria-label":"Open time picker"},t))),n&&r("div",{key:"70610a25a848c840e606f6a1b93558e057aede46",class:"time-picker__details"},this.error&&r("div",{key:"c7e4ae629d26c606b2c06a4c8998748ce5942a80",class:"time-picker__error-message"},this.error)),this.isOpen&&r("div",{key:"0a17052ddf4e3af3e1b5f324b817a8db63729484",class:"time-picker__dropdown"},r("div",{key:"6cfba596b82f570ac55c6fcb4e0b3e5eecf2a107",class:"time-picker__columns"},r("div",{key:"61c18caf8b91ecd1f0afd11f26183ba371272065",class:"time-picker__column"},r("button",{key:"96b264a2bd6f40dd39cbca273c7c884b6ec4d6c6",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementHours,"aria-label":"Increase hours"},this.renderChevronUp()),r("div",{key:"89b079611ff601cec4e247be6a86941333c71857",class:"time-picker__value"},String(this.hours).padStart(2,"0")),r("button",{key:"332143c42d2cb34039a4b5efb7dae27c1e7b5d90",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementHours,"aria-label":"Decrease hours"},this.renderChevronDown())),r("div",{key:"852197ee83d55ed901492f9bb124639154f2ae52",class:"time-picker__separator"},":"),r("div",{key:"b5e99a034ccce887449004989d584207bbb3b191",class:"time-picker__column"},r("button",{key:"dc19cd280092e3e8f22e3ef9f4c45eda87a0cdef",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementMinutes,"aria-label":"Increase minutes"},this.renderChevronUp()),r("div",{key:"5f7086f5917eefa76612e0ca083fb62bddf2bb98",class:"time-picker__value"},String(this.minutes).padStart(2,"0")),r("button",{key:"047266d75f4fb274e9046a1524104bda6786fa24",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementMinutes,"aria-label":"Decrease minutes"},this.renderChevronDown())),this.showSeconds&&[r("div",{key:"e4d548f5010bc56ca617be43bcd7e7e098909d5d",class:"time-picker__separator"},":"),r("div",{key:"20ff897d25fa596d82e4a28e0d9784272e0eecfb",class:"time-picker__column"},r("button",{key:"0a0f99b92f2b341233b7c51f0a66c2af96e82756",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementSeconds,"aria-label":"Increase seconds"},this.renderChevronUp()),r("div",{key:"6b8a50efc2fa8417ba5b8b2cdc0463f6fe56a3cb",class:"time-picker__value"},String(this.seconds).padStart(2,"0")),r("button",{key:"10870c306b1a9491aab977290a1f257bbd72aa63",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementSeconds,"aria-label":"Decrease seconds"},this.renderChevronDown()))],r("div",{key:"8c5b9eab81c3710418f051cbde691bed9cfe7f3f",class:"time-picker__column time-picker__column--period"},r("button",{key:"728512b9552f759f48238c33a99e4bff23c821e8",type:"button",class:"time-picker__spinner-btn",onClick:this.togglePeriod,"aria-label":"Toggle AM/PM"},this.renderChevronUp()),r("div",{key:"b7721c167f5bd7c7162eed89ecd47f77979557b6",class:"time-picker__value time-picker__value--period"},this.period),r("button",{key:"aa075ac24108e4f29b34574abb68b9b19a8d5a61",type:"button",class:"time-picker__spinner-btn",onClick:this.togglePeriod,"aria-label":"Toggle AM/PM"},this.renderChevronDown()))))))}get el(){return this}static get style(){return Hl}},[2,"xplor-time-picker",{value:[1025],label:[1],placeholder:[1],clearable:[4],prefill:[4],bgColor:[1,"bg-color"],showSeconds:[4,"show-seconds"],disabled:[4],readonly:[4],error:[1],hideDetails:[8,"hide-details"],required:[4],isOpen:[32],inputText:[32],hours:[32],minutes:[32],seconds:[32],period:[32],lastGoodValue:[32]},[[4,"click","handleDocumentClick"]]]);function Rl(){if(typeof customElements>"u")return;["xplor-time-picker"].forEach(n=>{switch(n){case"xplor-time-picker":customElements.get(n)||customElements.define(n,ut);break}})}const Ul=ut,ql=Rl,Wl=Fe,Yl=Ae,Ql=u.createComponent({tagName:"xplor-alert-dialog",elementClass:Sr,react:f,events:{onXplorClose:"xplorClose",onXplorDialogChange:"xplorDialogChange"},defineCustomElement:Ir}),Kl=u.createComponent({tagName:"xplor-alert-message",elementClass:Tr,react:f,events:{onXplorDismiss:"xplorDismiss"},defineCustomElement:Dr}),Vl=u.createComponent({tagName:"xplor-assistant",elementClass:Vr,react:f,events:{onAssistantMessageSent:"assistantMessageSent",onAssistantMessageReceived:"assistantMessageReceived",onAssistantError:"assistantError",onAssistantSessionCreated:"assistantSessionCreated"},defineCustomElement:Gr}),Gl=u.createComponent({tagName:"xplor-autocomplete",elementClass:Nr,react:f,events:{onXplorChange:"xplorChange",onXplorSelect:"xplorSelect",onXplorClear:"xplorClear",onXplorSearch:"xplorSearch"},defineCustomElement:no}),Zl=u.createComponent({tagName:"xplor-avatar",elementClass:ao,react:f,events:{},defineCustomElement:lo}),Jl=u.createComponent({tagName:"xplor-avatar-and-name",elementClass:oo,react:f,events:{},defineCustomElement:io}),Nl=u.createComponent({tagName:"xplor-badge",elementClass:Qo,react:f,events:{},defineCustomElement:Ko}),ns=u.createComponent({tagName:"xplor-badge-active",elementClass:po,react:f,events:{},defineCustomElement:go}),es=u.createComponent({tagName:"xplor-badge-archived",elementClass:bo,react:f,events:{},defineCustomElement:ho}),ts=u.createComponent({tagName:"xplor-badge-deleted",elementClass:yo,react:f,events:{},defineCustomElement:vo}),rs=u.createComponent({tagName:"xplor-badge-expired",elementClass:_o,react:f,events:{},defineCustomElement:Co}),os=u.createComponent({tagName:"xplor-badge-inactive",elementClass:Io,react:f,events:{},defineCustomElement:Eo}),is=u.createComponent({tagName:"xplor-badge-recalled",elementClass:Do,react:f,events:{},defineCustomElement:Xo}),as=u.createComponent({tagName:"xplor-badge-session-booking",elementClass:Fo,react:f,events:{},defineCustomElement:Ao}),ls=u.createComponent({tagName:"xplor-badge-upcoming",elementClass:Oo,react:f,events:{},defineCustomElement:jo}),ss=u.createComponent({tagName:"xplor-badge-waitlist",elementClass:Uo,react:f,events:{},defineCustomElement:qo}),ds=u.createComponent({tagName:"xplor-btn-back",elementClass:ei,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:ti}),cs=u.createComponent({tagName:"xplor-btn-back-to-parent",elementClass:Zo,react:f,events:{onBack:"back"},defineCustomElement:Jo}),ps=u.createComponent({tagName:"xplor-btn-icon",elementClass:ii,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:ai}),gs=u.createComponent({tagName:"xplor-btn-menu",elementClass:di,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:ci}),xs=u.createComponent({tagName:"xplor-btn-toggle",elementClass:ki,react:f,events:{onXplorToggle:"xplorToggle"},defineCustomElement:wi}),ms=u.createComponent({tagName:"xplor-btn-toggle-group",elementClass:xi,react:f,events:{},defineCustomElement:mi}),bs=u.createComponent({tagName:"xplor-btn-toggle-secondary",elementClass:ui,react:f,events:{onXplorToggle:"xplorToggle"},defineCustomElement:fi}),hs=u.createComponent({tagName:"xplor-btn-tooltip",elementClass:Ii,react:f,events:{},defineCustomElement:Ei}),us=u.createComponent({tagName:"xplor-button",elementClass:zi,react:f,events:{},defineCustomElement:Ti}),fs=u.createComponent({tagName:"xplor-chat-widget",elementClass:Bi,react:f,events:{},defineCustomElement:Fi}),ys=u.createComponent({tagName:"xplor-checkbox",elementClass:Pi,react:f,events:{onCheckboxChange:"checkboxChange"},defineCustomElement:Oi}),vs=u.createComponent({tagName:"xplor-combobox",elementClass:Ri,react:f,events:{onXplorChange:"xplorChange",onXplorSelect:"xplorSelect",onXplorCreate:"xplorCreate",onXplorClear:"xplorClear",onXplorSearch:"xplorSearch"},defineCustomElement:Ui}),ks=u.createComponent({tagName:"xplor-datatable",elementClass:Yi,react:f,events:{onRowClick:"rowClick",onXplorSelectionChange:"xplorSelectionChange",onPaginationChange:"paginationChange",onSortChange:"sortChange"},defineCustomElement:Qi}),ws=u.createComponent({tagName:"xplor-date-picker",elementClass:Zi,react:f,events:{onDateChange:"dateChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur",onXplorClear:"xplorClear"},defineCustomElement:Ji}),_s=u.createComponent({tagName:"xplor-drag-and-drop-input",elementClass:ea,react:f,events:{onFileSelect:"fileSelect",onFileClear:"fileClear"},defineCustomElement:ta}),Cs=u.createComponent({tagName:"xplor-dropdown",elementClass:ra,react:f,events:{},defineCustomElement:oa}),$s=u.createComponent({tagName:"xplor-expansion-panel",elementClass:sa,react:f,events:{onXplorPanelToggle:"xplorPanelToggle"},defineCustomElement:da}),Ss=u.createComponent({tagName:"xplor-expansion-panels",elementClass:ga,react:f,events:{},defineCustomElement:xa}),Is=u.createComponent({tagName:"xplor-file-upload",elementClass:ua,react:f,events:{onXplorFileAdd:"xplorFileAdd",onXplorFileRemove:"xplorFileRemove",onXplorError:"xplorError"},defineCustomElement:fa}),Es=u.createComponent({tagName:"xplor-inline-checkbox",elementClass:ka,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:wa}),zs=u.createComponent({tagName:"xplor-inline-date-picker",elementClass:_a,react:f,events:{onDateSelected:"dateSelected",onMonthChanged:"monthChanged"},defineCustomElement:Ca}),Ts=u.createComponent({tagName:"xplor-inline-switch",elementClass:Ia,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:Ea}),Ds=u.createComponent({tagName:"xplor-input-file",elementClass:Da,react:f,events:{onAttach:"attach",onXplorClear:"xplorClear"},defineCustomElement:Xa}),Xs=u.createComponent({tagName:"xplor-input-search",elementClass:Fa,react:f,events:{onSearch:"search"},defineCustomElement:Aa}),Ls=u.createComponent({tagName:"xplor-input-select",elementClass:Oa,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:ja}),Bs=u.createComponent({tagName:"xplor-input-send",elementClass:Ua,react:f,events:{onXplorSend:"xplorSend",onXplorValueChange:"xplorValueChange"},defineCustomElement:qa}),Fs=u.createComponent({tagName:"xplor-input-text",elementClass:el,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur"},defineCustomElement:tl}),As=u.createComponent({tagName:"xplor-input-text-area",elementClass:Qa,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorClear:"xplorClear"},defineCustomElement:Ka}),Ms=u.createComponent({tagName:"xplor-input-text-secondary",elementClass:Za,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur"},defineCustomElement:Ja}),Ps=u.createComponent({tagName:"xplor-input-title",elementClass:il,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange"},defineCustomElement:al}),Os=u.createComponent({tagName:"xplor-links",elementClass:dl,react:f,events:{},defineCustomElement:cl}),js=u.createComponent({tagName:"xplor-modal",elementClass:bl,react:f,events:{onXplorClose:"xplorClose"},defineCustomElement:hl}),Hs=u.createComponent({tagName:"xplor-modal-persistent",elementClass:xl,react:f,events:{onXplorClose:"xplorClose"},defineCustomElement:ml}),Rs=u.createComponent({tagName:"xplor-nav-tabs",elementClass:yl,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:vl}),Us=u.createComponent({tagName:"xplor-section-card",elementClass:_l,react:f,events:{},defineCustomElement:Cl}),qs=u.createComponent({tagName:"xplor-section-heading",elementClass:Il,react:f,events:{},defineCustomElement:El}),Ws=u.createComponent({tagName:"xplor-table",elementClass:Dl,react:f,events:{onTableSelect:"tableSelect"},defineCustomElement:Xl}),Ys=u.createComponent({tagName:"xplor-text-bubble",elementClass:Fl,react:f,events:{},defineCustomElement:Al}),Qs=u.createComponent({tagName:"xplor-text-field",elementClass:Ol,react:f,events:{onValueChange:"valueChange",onInputBlur:"inputBlur",onInputFocus:"inputFocus",onClearClick:"clearClick"},defineCustomElement:jl}),Ks=u.createComponent({tagName:"xplor-time-picker",elementClass:Ul,react:f,events:{onTimeChange:"timeChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur",onXplorClear:"xplorClear"},defineCustomElement:ql}),Vs=u.createComponent({tagName:"xplor-tooltip",elementClass:Wl,react:f,events:{},defineCustomElement:Yl});exports.XplorAlertDialog=Ql;exports.XplorAlertMessage=Kl;exports.XplorAssistant=Vl;exports.XplorAutocomplete=Gl;exports.XplorAvatar=Zl;exports.XplorAvatarAndName=Jl;exports.XplorBadge=Nl;exports.XplorBadgeActive=ns;exports.XplorBadgeArchived=es;exports.XplorBadgeDeleted=ts;exports.XplorBadgeExpired=rs;exports.XplorBadgeInactive=os;exports.XplorBadgeRecalled=is;exports.XplorBadgeSessionBooking=as;exports.XplorBadgeUpcoming=ls;exports.XplorBadgeWaitlist=ss;exports.XplorBtnBack=ds;exports.XplorBtnBackToParent=cs;exports.XplorBtnIcon=ps;exports.XplorBtnMenu=gs;exports.XplorBtnToggle=xs;exports.XplorBtnToggleGroup=ms;exports.XplorBtnToggleSecondary=bs;exports.XplorBtnTooltip=hs;exports.XplorButton=us;exports.XplorChatWidget=fs;exports.XplorCheckbox=ys;exports.XplorCombobox=vs;exports.XplorDatatable=ks;exports.XplorDatePicker=ws;exports.XplorDragAndDropInput=_s;exports.XplorDropdown=Cs;exports.XplorExpansionPanel=$s;exports.XplorExpansionPanels=Ss;exports.XplorFileUpload=Is;exports.XplorInlineCheckbox=Es;exports.XplorInlineDatePicker=zs;exports.XplorInlineSwitch=Ts;exports.XplorInputFile=Ds;exports.XplorInputSearch=Xs;exports.XplorInputSelect=Ls;exports.XplorInputSend=Bs;exports.XplorInputText=Fs;exports.XplorInputTextArea=As;exports.XplorInputTextSecondary=Ms;exports.XplorInputTitle=Ps;exports.XplorLinks=Os;exports.XplorModal=js;exports.XplorModalPersistent=Hs;exports.XplorNavTabs=Rs;exports.XplorSectionCard=Us;exports.XplorSectionHeading=qs;exports.XplorTable=Ws;exports.XplorTextBubble=Ys;exports.XplorTextField=Qs;exports.XplorTimePicker=Ks;exports.XplorTooltip=Vs;
23011
+ }`,ft=v(class extends y{constructor(){super(),this.__registerHost(),this.timeChange=m(this,"timeChange"),this.xplorFocus=m(this,"xplorFocus"),this.xplorBlur=m(this,"xplorBlur"),this.xplorClear=m(this,"xplorClear"),this.value="",this.label="",this.placeholder="Select time",this.clearable=!1,this.prefill=!1,this.bgColor="white",this.showSeconds=!1,this.disabled=!1,this.readonly=!1,this.error="",this.hideDetails="auto",this.required=!1,this.isOpen=!1,this.inputText="",this.hours=12,this.minutes=0,this.seconds=0,this.period="AM",this.lastGoodValue="",this.toggleDropdown=()=>{this.disabled||this.readonly||(this.isOpen=!this.isOpen)},this.handleInputFocus=n=>{if(this.xplorFocus.emit(n),this.prefill&&!this.value){const t=new Date;this.hours=t.getHours()%12||12,this.minutes=t.getMinutes(),this.seconds=t.getSeconds(),this.period=t.getHours()>=12?"PM":"AM",this.emitChange()}},this.handleInputBlur=n=>{if(this.xplorBlur.emit(n),this.inputText.trim()==="")return;this.parseInputText(this.inputText)?this.emitChange():this.inputText=this.lastGoodValue},this.handleInputChange=n=>{const t=n.target;this.inputText=t.value},this.handleClear=n=>{n.stopPropagation(),this.value="",this.inputText="",this.lastGoodValue="",this.hours=12,this.minutes=0,this.seconds=0,this.period="AM",this.timeChange.emit(""),this.xplorClear.emit()},this.incrementHours=()=>{this.hours=this.hours>=12?1:this.hours+1,this.emitChange()},this.decrementHours=()=>{this.hours=this.hours<=1?12:this.hours-1,this.emitChange()},this.incrementMinutes=()=>{this.minutes>=59?(this.minutes=0,this.incrementHours()):(this.minutes++,this.emitChange())},this.decrementMinutes=()=>{this.minutes<=0?(this.minutes=59,this.decrementHours()):(this.minutes--,this.emitChange())},this.incrementSeconds=()=>{this.seconds>=59?(this.seconds=0,this.incrementMinutes()):(this.seconds++,this.emitChange())},this.decrementSeconds=()=>{this.seconds<=0?(this.seconds=59,this.decrementMinutes()):(this.seconds--,this.emitChange())},this.togglePeriod=()=>{this.period=this.period==="AM"?"PM":"AM",this.emitChange()}}componentWillLoad(){this.value&&(this.parseValueToState(this.value),this.inputText=this.formatDisplayTime(),this.lastGoodValue=this.inputText)}handleDocumentClick(n){const t=n.target;this.el.contains(t)||(this.isOpen=!1)}parseValueToState(n){if(!n)return;const t=n.split(":");let o=parseInt(t[0],10)||0;const i=parseInt(t[1],10)||0,a=parseInt(t[2],10)||0;this.period=o>=12?"PM":"AM",o===0?o=12:o>12&&(o-=12),this.hours=o,this.minutes=i,this.seconds=a}stateToValue(){let n=this.hours;this.period==="AM"&&n===12?n=0:this.period==="PM"&&n!==12&&(n+=12);const t=String(n).padStart(2,"0"),o=String(this.minutes).padStart(2,"0"),i=String(this.seconds).padStart(2,"0");return`${t}:${o}:${i}`}formatDisplayTime(){const n=this.hours,t=String(this.minutes).padStart(2,"0");if(this.showSeconds){const o=String(this.seconds).padStart(2,"0");return`${n}:${t}:${o} ${this.period}`}return`${n}:${t} ${this.period}`}parseInputText(n){const t=n.trim();if(!t)return!1;if(t.toLowerCase()==="am"||t.toLowerCase()==="pm")return this.hours=12,this.minutes=0,this.seconds=0,this.period=t.toLowerCase()==="pm"?"PM":"AM",!0;let o="am";t.toLowerCase().indexOf("p")!==-1&&(o="pm");const i=t.replace(/(\s*)(pm|am|p|a)/gi,"").trim(),l=i.replace(/\./g,":").split(":");let s,c=0,d=0;if(l.length===1){const p=i.trim();p.length===3?(s=parseInt(p.substring(0,1),10),c=parseInt(p.substring(1,3),10)):p.length===4?(s=parseInt(p.substring(0,2),10),c=parseInt(p.substring(2,4),10)):p.length===6?(s=parseInt(p.substring(0,2),10),c=parseInt(p.substring(2,4),10),d=parseInt(p.substring(4,6),10)):s=parseInt(p,10)}else if(l.length===2)s=parseInt(l[0].trim(),10),c=parseInt(l[1].trim(),10);else if(l.length===3)s=parseInt(l[0].trim(),10),c=parseInt(l[1].trim(),10),d=parseInt(l[2].trim(),10);else return!1;return isNaN(s)||s<0?!1:(isNaN(c)&&(c=0),isNaN(d)&&(d=0),c>=60&&(s+=Math.floor(c/60),c=c%60),s>=12&&(o="pm",s>=24&&(s=s%24,o=s>=12?"pm":"am"),s>12&&(s-=12)),s===0&&(s=12,o="am"),d>=60&&(d=59),this.hours=s,this.minutes=c,this.seconds=d,this.period=o==="pm"?"PM":"AM",!0)}emitChange(){const n=this.stateToValue();this.value=n,this.inputText=this.formatDisplayTime(),this.lastGoodValue=this.inputText,this.timeChange.emit(n)}renderChevronUp(){return r("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("polyline",{points:"18 15 12 9 6 15"}))}renderChevronDown(){return r("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("polyline",{points:"6 9 12 15 18 9"}))}render(){const n=this.hideDetails===!1||this.hideDetails==="auto"&&this.error,t=r("svg",{key:"4ceaab6e781f50e8a90c075c56cfadabb647d44a",class:"time-picker__icon-svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("circle",{key:"468d7d3f69e93dfa1dbd1c57922c62747d0332fc",cx:"12",cy:"12",r:"10"}),r("polyline",{key:"c6e3f11bc952645e9016ff95b3a712394c4a22b8",points:"12 6 12 12 16 14"}));return r(b,{key:"c645e604a3e24895a27018db69116ab12f83f8bf"},r("div",{key:"67a035080a85b790df31f65292babdddf4e4e61b",class:{"time-picker":!0,"time-picker--disabled":this.disabled,"time-picker--error":!!this.error,"time-picker--open":this.isOpen}},this.label&&r("label",{key:"fc39aebaf65eb55a47e36b9e502329938a50deac",class:"time-picker__label"},this.label,this.required&&r("span",{key:"f55931cd0b55c17176fa0f3da333f44b57b7e6a9",class:"time-picker__required"},"*")),r("div",{key:"3f4e57bf5c2973baaa0e53ec9bed0658e23c4c9c",class:"time-picker__field"},r("input",{key:"d893bd5ed3793a2e3d4aae60f16846db6c3d84a4",type:"text",class:"time-picker__input",value:this.inputText,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onInput:this.handleInputChange,style:{backgroundColor:this.bgColor}}),r("div",{key:"7cb62a66b55645c2bc3c18a60abcb0098f4700d9",class:"time-picker__actions"},this.clearable&&this.value&&!this.disabled&&!this.readonly&&r("button",{key:"a547394c2508cddbcad2f3ebc52e7f361cab8f2e",type:"button",class:"time-picker__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("button",{key:"48bac21bb410015f81b539205bafad2f556ced51",type:"button",class:"time-picker__icon-btn",onClick:this.toggleDropdown,disabled:this.disabled,"aria-label":"Open time picker"},t))),n&&r("div",{key:"f10a2918e0d2cd57c7fc1d64f24e3fd4038463be",class:"time-picker__details"},this.error&&r("div",{key:"da588b32f0fb80a797b44df89a4526ab337ec491",class:"time-picker__error-message"},this.error)),this.isOpen&&r("div",{key:"b23b28c312732c033a28bcb39f862311554d599c",class:"time-picker__dropdown"},r("div",{key:"fd8811287be54584fac873644be6da4d9a90a918",class:"time-picker__columns"},r("div",{key:"9373ac9977bb02507c09673783ecc9fc34f796f6",class:"time-picker__column"},r("button",{key:"64506ff04f398acf50e11e15adfabfc8a6e2950a",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementHours,"aria-label":"Increase hours"},this.renderChevronUp()),r("div",{key:"b593fe8ea7cc1c1620f534a010d0828297845f8a",class:"time-picker__value"},String(this.hours).padStart(2,"0")),r("button",{key:"1b2729ac84afa3aa5cbace2b027a8be77de7453c",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementHours,"aria-label":"Decrease hours"},this.renderChevronDown())),r("div",{key:"cfc0910a6a02a6545d03dc6fd56dce45e389825b",class:"time-picker__separator"},":"),r("div",{key:"084da53c62bfe3cfb2cf8843761509393541b82d",class:"time-picker__column"},r("button",{key:"017378d4bd006957267a242fd5da84bb5364626a",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementMinutes,"aria-label":"Increase minutes"},this.renderChevronUp()),r("div",{key:"344202f97262fbf267b872927c054d1fbcc636c4",class:"time-picker__value"},String(this.minutes).padStart(2,"0")),r("button",{key:"690a243ddce9f3da11d172647202e65212e87b53",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementMinutes,"aria-label":"Decrease minutes"},this.renderChevronDown())),this.showSeconds&&[r("div",{key:"6ca3eae6b03f75773a39d1eb67b0db8cbf00021d",class:"time-picker__separator"},":"),r("div",{key:"ce31e8550cff9783229d58f866f5b2cab6b236e6",class:"time-picker__column"},r("button",{key:"6be3f03bb5cb13f95d9381e22ed4ef27a2c31786",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementSeconds,"aria-label":"Increase seconds"},this.renderChevronUp()),r("div",{key:"faae89dc8d1a40f7a91df944c33d6cb0347dab72",class:"time-picker__value"},String(this.seconds).padStart(2,"0")),r("button",{key:"2e6094b085acefb6b80c835fc49d6d0c6fcde192",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementSeconds,"aria-label":"Decrease seconds"},this.renderChevronDown()))],r("div",{key:"2b029185906910cf1336726691b491bd8cd10421",class:"time-picker__column time-picker__column--period"},r("button",{key:"a1cced2dca331985851a8b2a71733cdc75540339",type:"button",class:"time-picker__spinner-btn",onClick:this.togglePeriod,"aria-label":"Toggle AM/PM"},this.renderChevronUp()),r("div",{key:"b17134d423b342cb077af961e9a684a985ed6f13",class:"time-picker__value time-picker__value--period"},this.period),r("button",{key:"4c4d04f7ba212eb7babccf6ec2ead94fa63dcb04",type:"button",class:"time-picker__spinner-btn",onClick:this.togglePeriod,"aria-label":"Toggle AM/PM"},this.renderChevronDown()))))))}get el(){return this}static get style(){return ns}},[2,"xplor-time-picker",{value:[1025],label:[1],placeholder:[1],clearable:[4],prefill:[4],bgColor:[1,"bg-color"],showSeconds:[4,"show-seconds"],disabled:[4],readonly:[4],error:[1],hideDetails:[8,"hide-details"],required:[4],isOpen:[32],inputText:[32],hours:[32],minutes:[32],seconds:[32],period:[32],lastGoodValue:[32]},[[4,"click","handleDocumentClick"]]]);function es(){if(typeof customElements>"u")return;["xplor-time-picker"].forEach(n=>{switch(n){case"xplor-time-picker":customElements.get(n)||customElements.define(n,ft);break}})}const ts=ft,rs=es,os=Ae,is=Be,as=u.createComponent({tagName:"xplor-alert-dialog",elementClass:Sr,react:f,events:{onXplorClose:"xplorClose",onXplorDialogChange:"xplorDialogChange"},defineCustomElement:Er}),ls=u.createComponent({tagName:"xplor-alert-message",elementClass:Dr,react:f,events:{onXplorDismiss:"xplorDismiss"},defineCustomElement:Lr}),ss=u.createComponent({tagName:"xplor-assistant",elementClass:Gr,react:f,events:{onAssistantMessageSent:"assistantMessageSent",onAssistantMessageReceived:"assistantMessageReceived",onAssistantError:"assistantError",onAssistantSessionCreated:"assistantSessionCreated"},defineCustomElement:Zr}),ds=u.createComponent({tagName:"xplor-autocomplete",elementClass:no,react:f,events:{onXplorChange:"xplorChange",onXplorSelect:"xplorSelect",onXplorClear:"xplorClear",onXplorSearch:"xplorSearch"},defineCustomElement:eo}),cs=u.createComponent({tagName:"xplor-avatar",elementClass:lo,react:f,events:{},defineCustomElement:so}),ps=u.createComponent({tagName:"xplor-avatar-and-name",elementClass:io,react:f,events:{},defineCustomElement:ao}),gs=u.createComponent({tagName:"xplor-badge",elementClass:Vo,react:f,events:{},defineCustomElement:Qo}),xs=u.createComponent({tagName:"xplor-badge-active",elementClass:go,react:f,events:{},defineCustomElement:xo}),ms=u.createComponent({tagName:"xplor-badge-archived",elementClass:bo,react:f,events:{},defineCustomElement:uo}),hs=u.createComponent({tagName:"xplor-badge-deleted",elementClass:vo,react:f,events:{},defineCustomElement:ko}),bs=u.createComponent({tagName:"xplor-badge-expired",elementClass:Co,react:f,events:{},defineCustomElement:$o}),us=u.createComponent({tagName:"xplor-badge-inactive",elementClass:Eo,react:f,events:{},defineCustomElement:zo}),fs=u.createComponent({tagName:"xplor-badge-recalled",elementClass:Lo,react:f,events:{},defineCustomElement:Fo}),ys=u.createComponent({tagName:"xplor-badge-session-booking",elementClass:Bo,react:f,events:{},defineCustomElement:Mo}),vs=u.createComponent({tagName:"xplor-badge-upcoming",elementClass:jo,react:f,events:{},defineCustomElement:Ho}),ks=u.createComponent({tagName:"xplor-badge-waitlist",elementClass:Uo,react:f,events:{},defineCustomElement:Wo}),ws=u.createComponent({tagName:"xplor-btn-back",elementClass:ti,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:ri}),_s=u.createComponent({tagName:"xplor-btn-back-to-parent",elementClass:Jo,react:f,events:{onBack:"back"},defineCustomElement:No}),Cs=u.createComponent({tagName:"xplor-btn-icon",elementClass:ai,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:li}),$s=u.createComponent({tagName:"xplor-btn-menu",elementClass:ci,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:pi}),Is=u.createComponent({tagName:"xplor-btn-toggle",elementClass:wi,react:f,events:{onXplorToggle:"xplorToggle"},defineCustomElement:_i}),Ss=u.createComponent({tagName:"xplor-btn-toggle-group",elementClass:mi,react:f,events:{},defineCustomElement:hi}),Es=u.createComponent({tagName:"xplor-btn-toggle-secondary",elementClass:fi,react:f,events:{onXplorToggle:"xplorToggle"},defineCustomElement:yi}),zs=u.createComponent({tagName:"xplor-btn-tooltip",elementClass:zi,react:f,events:{},defineCustomElement:Ti}),Ts=u.createComponent({tagName:"xplor-button",elementClass:Di,react:f,events:{},defineCustomElement:Li}),Ds=u.createComponent({tagName:"xplor-chat-widget",elementClass:Bi,react:f,events:{},defineCustomElement:Mi}),Ls=u.createComponent({tagName:"xplor-checkbox",elementClass:Hi,react:f,events:{onCheckboxChange:"checkboxChange"},defineCustomElement:Ri}),Fs=u.createComponent({tagName:"xplor-combobox",elementClass:Wi,react:f,events:{onXplorChange:"xplorChange",onXplorSelect:"xplorSelect",onXplorCreate:"xplorCreate",onXplorClear:"xplorClear",onXplorSearch:"xplorSearch"},defineCustomElement:Ki}),Xs=u.createComponent({tagName:"xplor-datatable",elementClass:Qi,react:f,events:{onRowClick:"rowClick",onXplorSelectionChange:"xplorSelectionChange",onPaginationChange:"paginationChange",onSortChange:"sortChange"},defineCustomElement:Gi}),As=u.createComponent({tagName:"xplor-date-picker",elementClass:ea,react:f,events:{onDateChange:"dateChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur",onXplorClear:"xplorClear"},defineCustomElement:ta}),Bs=u.createComponent({tagName:"xplor-drag-and-drop-input",elementClass:ia,react:f,events:{onFileSelect:"fileSelect",onFileClear:"fileClear"},defineCustomElement:aa}),Ms=u.createComponent({tagName:"xplor-dropdown",elementClass:la,react:f,events:{},defineCustomElement:sa}),Ps=u.createComponent({tagName:"xplor-expansion-panel",elementClass:ga,react:f,events:{onXplorPanelToggle:"xplorPanelToggle"},defineCustomElement:xa}),Os=u.createComponent({tagName:"xplor-expansion-panels",elementClass:ba,react:f,events:{},defineCustomElement:ua}),js=u.createComponent({tagName:"xplor-file-upload",elementClass:ka,react:f,events:{onXplorFileAdd:"xplorFileAdd",onXplorFileRemove:"xplorFileRemove",onXplorError:"xplorError"},defineCustomElement:wa}),Hs=u.createComponent({tagName:"xplor-inline-checkbox",elementClass:$a,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:Ia}),Rs=u.createComponent({tagName:"xplor-inline-date-picker",elementClass:Sa,react:f,events:{onDateSelected:"dateSelected",onMonthChanged:"monthChanged"},defineCustomElement:Ea}),qs=u.createComponent({tagName:"xplor-inline-switch",elementClass:Da,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:La}),Us=u.createComponent({tagName:"xplor-input-file",elementClass:Ba,react:f,events:{onAttach:"attach",onXplorClear:"xplorClear"},defineCustomElement:Ma}),Ws=u.createComponent({tagName:"xplor-input-search",elementClass:Ha,react:f,events:{onSearch:"search"},defineCustomElement:Ra}),Ks=u.createComponent({tagName:"xplor-input-select",elementClass:Wa,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:Ka}),Ys=u.createComponent({tagName:"xplor-input-send",elementClass:Qa,react:f,events:{onXplorSend:"xplorSend",onXplorValueChange:"xplorValueChange"},defineCustomElement:Ga}),Vs=u.createComponent({tagName:"xplor-input-text",elementClass:cl,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur"},defineCustomElement:pl}),Qs=u.createComponent({tagName:"xplor-input-text-area",elementClass:nl,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorClear:"xplorClear"},defineCustomElement:el}),Gs=u.createComponent({tagName:"xplor-input-text-secondary",elementClass:il,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur"},defineCustomElement:al}),Zs=u.createComponent({tagName:"xplor-input-title",elementClass:ml,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange"},defineCustomElement:hl}),Js=u.createComponent({tagName:"xplor-links",elementClass:fl,react:f,events:{},defineCustomElement:yl}),Ns=u.createComponent({tagName:"xplor-modal",elementClass:Cl,react:f,events:{onXplorClose:"xplorClose"},defineCustomElement:$l}),nd=u.createComponent({tagName:"xplor-modal-persistent",elementClass:wl,react:f,events:{onXplorClose:"xplorClose"},defineCustomElement:_l}),ed=u.createComponent({tagName:"xplor-nav-tabs",elementClass:El,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:zl}),td=u.createComponent({tagName:"xplor-radio-btn",elementClass:Ll,react:f,events:{onRadioChange:"radioChange"},defineCustomElement:Fl}),rd=u.createComponent({tagName:"xplor-section-card",elementClass:Bl,react:f,events:{},defineCustomElement:Ml}),od=u.createComponent({tagName:"xplor-section-heading",elementClass:jl,react:f,events:{},defineCustomElement:Hl}),id=u.createComponent({tagName:"xplor-table",elementClass:Ul,react:f,events:{onTableSelect:"tableSelect"},defineCustomElement:Wl}),ad=u.createComponent({tagName:"xplor-text-bubble",elementClass:Vl,react:f,events:{},defineCustomElement:Ql}),ld=u.createComponent({tagName:"xplor-text-field",elementClass:Jl,react:f,events:{onValueChange:"valueChange",onInputBlur:"inputBlur",onInputFocus:"inputFocus",onClearClick:"clearClick"},defineCustomElement:Nl}),sd=u.createComponent({tagName:"xplor-time-picker",elementClass:ts,react:f,events:{onTimeChange:"timeChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur",onXplorClear:"xplorClear"},defineCustomElement:rs}),dd=u.createComponent({tagName:"xplor-tooltip",elementClass:os,react:f,events:{},defineCustomElement:is});exports.XplorAlertDialog=as;exports.XplorAlertMessage=ls;exports.XplorAssistant=ss;exports.XplorAutocomplete=ds;exports.XplorAvatar=cs;exports.XplorAvatarAndName=ps;exports.XplorBadge=gs;exports.XplorBadgeActive=xs;exports.XplorBadgeArchived=ms;exports.XplorBadgeDeleted=hs;exports.XplorBadgeExpired=bs;exports.XplorBadgeInactive=us;exports.XplorBadgeRecalled=fs;exports.XplorBadgeSessionBooking=ys;exports.XplorBadgeUpcoming=vs;exports.XplorBadgeWaitlist=ks;exports.XplorBtnBack=ws;exports.XplorBtnBackToParent=_s;exports.XplorBtnIcon=Cs;exports.XplorBtnMenu=$s;exports.XplorBtnToggle=Is;exports.XplorBtnToggleGroup=Ss;exports.XplorBtnToggleSecondary=Es;exports.XplorBtnTooltip=zs;exports.XplorButton=Ts;exports.XplorChatWidget=Ds;exports.XplorCheckbox=Ls;exports.XplorCombobox=Fs;exports.XplorDatatable=Xs;exports.XplorDatePicker=As;exports.XplorDragAndDropInput=Bs;exports.XplorDropdown=Ms;exports.XplorExpansionPanel=Ps;exports.XplorExpansionPanels=Os;exports.XplorFileUpload=js;exports.XplorInlineCheckbox=Hs;exports.XplorInlineDatePicker=Rs;exports.XplorInlineSwitch=qs;exports.XplorInputFile=Us;exports.XplorInputSearch=Ws;exports.XplorInputSelect=Ks;exports.XplorInputSend=Ys;exports.XplorInputText=Vs;exports.XplorInputTextArea=Qs;exports.XplorInputTextSecondary=Gs;exports.XplorInputTitle=Zs;exports.XplorLinks=Js;exports.XplorModal=Ns;exports.XplorModalPersistent=nd;exports.XplorNavTabs=ed;exports.XplorRadioBtn=td;exports.XplorSectionCard=rd;exports.XplorSectionHeading=od;exports.XplorTable=id;exports.XplorTextBubble=ad;exports.XplorTextField=ld;exports.XplorTimePicker=sd;exports.XplorTooltip=dd;