@xplor-education/react-wrappers 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +456 -87
- package/dist/components.d.ts +5 -0
- package/dist/components.js +1108 -685
- package/package.json +3 -3
package/dist/components.cjs
CHANGED
|
@@ -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"),
|
|
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",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()},St=(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,K=(e,n)=>(0,console.error)(e,n),nn=new Map,It="r",Et="o",zt="s",Tt="t",Dt="c",W="s-id",pn="sty-id",Tn="c-id",Xt="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)},Lt=(()=>{var e;let n=!1;try{(e=C.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),Bt=e=>Promise.resolve(e),yn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),gn=!1,Dn=[],Vn=[],Ft=(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){K(t)}e.length=0},xn=()=>{Xn(Dn),Xn(Vn),(gn=Dn.length>0)&&$.raf(xn)},an=e=>Bt().then(e),Mt=Ft(Vn),At=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 A{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=>A.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?A.fromLocalValue(d):d,b=A.fromLocalValue(p);i.set(g,b)}return i;case"object":const a={};for(const[d,p]of o)a[d]=A.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(A.fromLocalValue(d));return c;case"symbol":return Symbol(o);default:throw new Error(`Unsupported type: ${t}`)}}static fromLocalValueArray(n){return n.map(t=>A.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}},Ht={};_t(Ht,{err:()=>Kn,map:()=>Rt,ok:()=>mn,unwrap:()=>Ut,unwrapErr:()=>qt});var mn=e=>({isOk:!0,isErr:!1,value:e}),Kn=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 Kn(t)}throw"should never get here"}var Ut=e=>{if(e.isOk)return e.value;throw e.value},qt=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 Yt(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)}},Qt=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},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(`
|
|
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 s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:Qt(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 M=(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,Zt);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={},Gt=e=>e&&e.$tag$===h,Zt={forEach:(e,n)=>e.map(Bn).forEach(n),map:(e,n)=>e.map(Bn).map(n).map(Jt)},Bn=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=U(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=M("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 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 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"&&(Mn(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===Tt)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===Dt)p.$elm$=Pn(a,8),p.$elm$&&p.$elm$.nodeType===8&&(n.push(p),a.remove());else if(p.$hostId$===s)if(c===zt){const m=a["s-sn"]=d[5]||"";Mn(m,d[2],p,a,e,n,t,o,l)}else c===It&&(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]===Et&&(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 Mn(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),An(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;An(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 An=(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,x=(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 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:Pt(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+=Xt),s&&s.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=M("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,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(ir,""),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))}},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$||{},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?Ct:$t,!fn&&V.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())}}},ar=(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?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&&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 lr=(e,n,t=!1)=>{var o,i,a,s;const l=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||U(null,null),g=Gt(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$),Mt(()=>sr(e,n))},sr=(e,n)=>{const t=e.$hostElement$,o=M("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=M("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];t&&er(e);const l=M("render",e.$cmpMeta$.$tagName$);pr(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=()=>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){K(i,e.$hostElement$)}return null},gr=e=>{const n=e.$cmpMeta$.$tagName$,t=e.$hostElement$,o=M("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(()=>Sn(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){K(i,o)}},mr=e=>{var n;return e.setAttribute((n=V.hydratedSelectorName)!=null?n:"hydrated","")},br=(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){K(m,a)}})}if((l&18)===2){if(c.componentShouldUpdate&&c.componentShouldUpdate(t,s,n)===!1)return;Sn(i,!1)}}}},hr=(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):br(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)&&V.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=M("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()},ur=(e,n)=>{},fr=e=>{if(!($.$flags$&1)){const n=P(e),t=n.$cmpMeta$,o=M("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,[s]])=>{if(s&31&&e.hasOwnProperty(a)){const l=e[a];delete e[a],e[a]=l}}),V.initializeNextTick?an(()=>qn(e,n,t)):qn(e,n,t)}o()}},yr=e=>{if(!C.document)return;const n=e["s-cr"]=C.document.createComment("");n["s-cn"]=!0,F(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(){St(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)Yt.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$,hr(e,t)},de=(e,n,t,o)=>{t&&C.document&&t.map(([i,a,s])=>{const l=wr(C.document,e,i),c=kr(n,s),d=_r(i);$.ael(l,a,c,d),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>$.rel(l,a,c,d))})},kr=(e,n)=>t=>{try{e.$hostElement$[n](t)}catch(o){K(o,e.$hostElement$)}},wr=(e,n,t)=>t&4?e:n,_r=e=>Lt?{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}}.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))}}`,$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
|
|
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 $r}},[6,"xplor-alert-dialog",{open:[1028],width:[1],persistent:[4]},void 0,{open:["handleOpenChange"]}]);function Sr(){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 Ir=ce,Er=Sr,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
|
|
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 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,Xr=Tr;function Lr(){const e=Date.now(),n=Math.random().toString(36).substring(2,11);return`session_${e}_${n}`}function Br(){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 Fr(){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 Mr(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:Br(),currentTime:Fr()};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 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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
685
|
+
`,Ur=`
|
|
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
|
-
`,
|
|
689
|
+
`,qr=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?Ur:Rr}))))},Wr=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:jr})),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:Hr}))))},Yr=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)))},Qr=()=>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
|
|
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 Mr(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=Lr(),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 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(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(qr,{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(Qr,null)),this.error&&this.apiEndpoint&&r("div",{class:"xplor-assistant__error-banner"},this.error)),this.quickReplies&&this.quickReplies.length>0&&r(Yr,{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 Kr(){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=Kr,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
|
|
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 Jr}},[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 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
|
|
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 to}},[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 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
|
|
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 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,he);break;case"xplor-avatar":customElements.get(n)||be();break}})}const io=he,ao=oo,lo=me,so=be,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
|
|
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 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
|
|
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 mo}},[2,"xplor-badge-archived"]);function bo(){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 ho=fe,uo=bo,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
|
|
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 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
|
|
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 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,So=`@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
|
|
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 So}},[2,"xplor-badge-inactive"]);function Io(){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=Io,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
|
|
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 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 Xo=we,Lo=Do,Bo=`@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
|
|
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 Bo}},[6,"xplor-badge-session-booking",{booking:[16],item:[16]}]);function Fo(){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 Mo=_e,Ao=Fo,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
|
|
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 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
|
|
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 Ro}},[2,"xplor-badge-waitlist"]);function Uo(){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 qo=$e,Wo=Uo,Yo=`@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
|
|
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 Yo}},[6,"xplor-badge",{backgroundColor:[1,"background-color"],color:[1],threshold:[2],variant:[1],size:[1],datatable:[4],text:[1]}]);function Qo(){if(typeof customElements>"u")return;["xplor-badge"].forEach(n=>{switch(n){case"xplor-badge":customElements.get(n)||customElements.define(n,Se);break}})}const Vo=Se,Ko=Qo,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
|
|
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 Go}},[2,"xplor-btn-back-to-parent",{size:[1],inline:[4],bgColor:[1,"bg-color"],color:[1],variant:[1]}]);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,Ie);break}})}const Jo=Ie,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
|
|
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 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
|
|
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 oi}},[6,"xplor-btn-icon",{color:[1],size:[8],iconSize:[8,"icon-size"],variant:[1],disabled:[4]}]);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
|
|
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 si}},[6,"xplor-btn-menu",{label:[1],options:[16],hiddenKeys:[16,"hidden-keys"],disabledKeys:[16,"disabled-keys"],color:[1],density:[1],show:[32]}]);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
|
|
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 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,bi=xi,hi=`@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
|
|
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 hi}},[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,Xe);break}})}const fi=Xe,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
|
|
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 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,Le);break}})}const wi=Le,_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
|
|
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 Ci}},[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 $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
|
|
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 $i}},[6,"xplor-tooltip",{position:[1],trigger:[1],arrow:[4],open:[1028],content:[1],disabled:[4],tooltipStyle:[32],arrowStyle:[32]},[[4,"click","handleDocumentClick"]]]);function Me(){if(typeof customElements>"u")return;["xplor-tooltip"].forEach(n=>{switch(n){case"xplor-tooltip":customElements.get(n)||customElements.define(n,Fe);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
|
-
}`,
|
|
10361
|
+
}`,Ae=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 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 Ii(){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,Ae);break;case"xplor-button":customElements.get(n)||G();break;case"xplor-tooltip":customElements.get(n)||Me();break}})}const Ei=Ae,zi=Ii,Ti=Be,Di=G,Xi=`/* 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:"
|
|
10646
|
+
}`,Pe=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return r(h,{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 Xi}},[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 Li=`/* 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
|
|
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 Li}},[1,"xplor-chat-widget",{languageOptions:[16,"language-options"],textId:[1,"text-id"],apiKey:[1,"api-key"],selectedLanguage:[32],textValue:[32]}]);function Bi(){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 Fi=je,Mi=Bi,Ai=`/* 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
|
|
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 Pi(){if(typeof customElements>"u")return;["xplor-checkbox"].forEach(n=>{switch(n){case"xplor-checkbox":customElements.get(n)||customElements.define(n,He);break}})}const Oi=He,ji=Pi,Hi=`@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
|
|
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 Hi}},[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 Ri(){if(typeof customElements>"u")return;["xplor-combobox"].forEach(n=>{switch(n){case"xplor-combobox":customElements.get(n)||customElements.define(n,Re);break}})}const Ui=Re,qi=Ri,Wi=`/* 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
|
|
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 Wi}},[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 Yi(){if(typeof customElements>"u")return;["xplor-datatable"].forEach(n=>{switch(n){case"xplor-datatable":customElements.get(n)||customElements.define(n,Ue);break}})}const Qi=Ue,Vi=Yi,Ki=`@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:"
|
|
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:"0a63c50c59ddc6ca12df01ba421b351ba7fa163a"},r("div",{key:"961a428446372ebab3e7ca008100742d5452a137",class:"xplor-inline-date-picker",style:{"--picker-color":this.color}},r("div",{key:"5ff94e618f8f292e13dcc3898c6b6be40536d64e",class:"xplor-inline-date-picker__sidebar"},r("div",{key:"1e96cb361882d9e58d9b720beff37d211d1552aa",class:"xplor-inline-date-picker__sidebar-year"},n.year),r("div",{key:"ce3bc570cc6ff6b4063cce28ada4da65cc97b3bb",class:"xplor-inline-date-picker__sidebar-day"},n.day,","),r("div",{key:"bcf8017b90193d0eed5b10d72454f9dc1051756e",class:"xplor-inline-date-picker__sidebar-date"},n.date)),r("div",{key:"7f36d03964d552ee8201493c920c0ec2d1119f89",class:"xplor-inline-date-picker__calendar"},r("div",{key:"05eca5f4d4b0a0bc7ef237185a3d31ca7202b2ff",class:"xplor-inline-date-picker__header"},r("button",{key:"91db152c009b87605a9fb21949d8cad5ef40a230",type:"button",class:"xplor-inline-date-picker__arrow",onClick:this.previousMonth,"aria-label":"Previous month"},"‹"),r("div",{key:"86299244563f9338281b5f107b3fef04053ec164",class:"xplor-inline-date-picker__title"},this.monthNames[this.currentMonth]," ",this.currentYear),r("button",{key:"f6a9e7caa26114c06e0b10e1e5fddebe9388efcb",type:"button",class:"xplor-inline-date-picker__arrow",onClick:this.nextMonth,"aria-label":"Next month"},"›")),r("div",{key:"f8de6b4d65c8ad58beeb97455c71d75c55668c6d",class:"xplor-inline-date-picker__weekdays"},t.map(o=>r("div",{class:"xplor-inline-date-picker__weekday"},o))),r("div",{key:"267c3f7076c41ad34873501151b567fdda572dcd",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 Gi=`@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
|
|
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 Gi}},[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 Zi(){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 Ji=Ye,Ni=Zi,na=`@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-
|
|
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:
|
|
14237
|
+
background-color: #f5f5f5;
|
|
14238
14238
|
border-radius: 8px;
|
|
14239
|
-
border:
|
|
14240
|
-
min-height:
|
|
14241
|
-
padding: 1rem 1.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:
|
|
14251
|
-
background-color:
|
|
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:
|
|
14263
|
-
padding: 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:
|
|
14269
|
-
height:
|
|
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:
|
|
14276
|
+
font-size: 18px;
|
|
14276
14277
|
font-weight: 700;
|
|
14277
|
-
line-height:
|
|
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
|
-
.
|
|
14299
|
-
margin-top:
|
|
14300
|
-
|
|
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
|
-
|
|
14306
|
-
|
|
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:
|
|
14415
|
+
min-height: 140px;
|
|
14312
14416
|
}
|
|
14313
14417
|
.drag-drop-card__title.sc-xplor-drag-and-drop-input {
|
|
14314
|
-
font-size:
|
|
14315
|
-
line-height:
|
|
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
|
|
14425
|
+
}`,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 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()],s=t.getFullYear(),l=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",b=c%12||12;return`${o}${l} ${a} ${s}, ${b}:${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(){return r(h,{key:"1996cf8e0d65afed803bb07a2f7a54adb5bbfaa5"},r("div",{key:"6fcf52a709e3d6b7e64583f201260e1841076cef",class:"drag-drop-zone"},r("div",{key:"a9c8bd35981166cf075bd9f0d215914ff87a0ff0",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:"eec73d07cce31d43151a6af27a584f764cf104ec",class:"drag-drop-card__content"},r("svg",{key:"75fe85db121bdf98d91872f847235e42f3505021",class:"drag-drop-card__icon",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",fill:"none"},r("path",{key:"454bda7cf271281374b965182d15120ab00059e1",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:"8bc44934968795b791cd4183e18f3d72f7a195de",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:"e17238c5e6bdb38ef75c5513c88154696a046273",class:"drag-drop-card__title"},this.label),r("p",{key:"b6aa94f6624a1fb09a56ca26dd31981aa56c3e8a",class:"drag-drop-card__accepts"},"Accepted file types: ",this.getAcceptsLabel()),r("p",{key:"0a6cb23bff2f8512e961cf3fae65463aec2f829e",class:"drag-drop-card__divider"},"or"))),r("div",{key:"8ad03f8da13062f5915005c80f88d41d4adc7e83",class:"drag-drop-card__action"},r("xplor-button",{key:"37dd6e0f4d61a6e4aa3e0648227b5c06b101d7f3",text:this.browseLabel,type:this.disabled?"disabled":"secondary",clickAction:this.openFileDialog}))),this.currentFile&&r("div",{key:"7ab8ffd9e6fa79c3adb83127c2263dbf1c8356af",class:"file-info"},this.showProgress()&&r("p",{key:"34e1f54d42c866012faad5462935400ad64fd69a",class:"file-info__status"},"Uploading ",this.progress===100?"1":"0"," / 1"),r("div",{key:"891749a5bc2d928226cdcdf855b992a94c46ec0e",class:"file-info__card"},r("div",{key:"df6230a7fed1e37536756d0d2ca79a7fa0f3f3b0",class:"file-info__icon"},r("svg",{key:"6f740a420e16cf0b8e1a008ac1e69a5356db1789",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor"},r("path",{key:"0cc9aa35e50ec4c04662abcef793175d56337e71",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:"cf0dc9b9592721a4e488fb852515273bdb5f75ad",class:"file-info__details"},r("p",{key:"082e3dc60b75a1b889c3390c140e32e232b57bff",class:"file-info__name"},this.currentFile.name),r("p",{key:"79da132f579221a718e4725e12dff7efb7b5f82f",class:"file-info__meta"},this.formatFileSize(this.currentFile.size),this.currentFile.lastModified?` | Last modified: ${this.formatDate(this.currentFile.lastModified)}`:""),this.showProgress()&&r("div",{key:"ff641e3fb53d0089c9392f1c77e7943783fa4745",class:"file-info__progress-row"},r("div",{key:"57bade7b09cd9700d6cdfe123b79b1f59d049b3e",class:"file-info__progress-bar"},r("div",{key:"8119c5937118adab06ae53257374964ced4b8446",class:"file-info__progress-fill",style:{width:`${Math.min(Math.max(this.progress,0),100)}%`}})),r("span",{key:"dca1ccade071119e10b724a8d0047ec966c78ed4",class:"file-info__progress-text"},Math.round(this.progress),"%"))),r("button",{key:"e9142fab6e8f708cdd6063c6ff3659bd8e6f77e6",class:"file-info__remove",onClick:()=>this.clearCurrentFile(),"aria-label":"Remove file"},r("svg",{key:"bc48ad8ce10fbed57c5bcbed53d8f2931461b90e",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},r("path",{key:"514e5299c4f288807c557035a0fa6c28fa770e3d",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:"38d92776629e98032272631ed3a26a018c2ea7cc",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 na}},[2,"xplor-drag-and-drop-input",{disabled:[4],accepts:[1],label:[1],browseLabel:[1,"browse-label"],progress:[2],dragover:[32],currentFile:[32],clearCurrentFile:[64]}]);function ea(){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 ta=Qe,ra=ea,oa=Pe,ia=Oe,aa=`@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
|
|
14740
|
+
}`;let la=0;const Ve=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-${la++}`}componentDidLoad(){this.updateContentHeight()}updateContentHeight(){this.contentEl&&(this.contentHeight=this.contentEl.scrollHeight)}render(){return r(h,{key:"f2b19e6a1ad6315341e0840e2c000a1123caa7e0"},r("div",{key:"1cb9ca368efb2f9e16c64c3987546f3d16981a2b",class:{"expansion-panel":!0,"expansion-panel--open":this.open,"expansion-panel--disabled":this.disabled}},r("button",{key:"4970230eb38600f662441cf741b1266af1c94221",class:"expansion-panel__header",onClick:this.handleToggle,disabled:this.disabled,"aria-expanded":this.open?"true":"false",type:"button"},r("div",{key:"5e3330870f44e2f0d0e9546cc3921f999c585ad2",class:"expansion-panel__header-content"},r("slot",{key:"f8cf1d3dcc8201c311adb40544adc59dc10643b2",name:"header"})),r("span",{key:"bed27404d65c83a0aed80b6f63847a3b221756c4",class:{"expansion-panel__icon":!0,"expansion-panel__icon--open":this.open}},"▼")),r("div",{key:"2c39930ed945844bde37acd8eb76cc5d321fb9e1",class:"expansion-panel__content",style:{maxHeight:this.open?`${this.contentHeight}px`:"0"}},r("div",{key:"db622a60396115228e0a3929f1a0765b7a0bf87f",class:"expansion-panel__content-inner",ref:n=>this.contentEl=n},r("slot",{key:"d88edfbce0ab807cdb3d21230e1e97caf6183cce"})))))}get el(){return this}static get style(){return aa}},[6,"xplor-expansion-panel",{disabled:[4],open:[1028],panelId:[32],contentHeight:[32]}]);function sa(){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 da=Ve,ca=sa,pa=`@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
|
-
}`,
|
|
14998
|
+
}`,Ke=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:"c55c8eef4f6f134c83f2f8dffcb434401596a095"},r("div",{key:"6611efdac4749c89180d34af7893577e09356ed1",class:"expansion-panels"},r("slot",{key:"ef8283e142cbd8fd6535c85a939455d99bdcc33e"})))}static get style(){return pa}},[6,"xplor-expansion-panels",{value:[1025],multiple:[4],accordion:[4],openPanels:[32]},[[0,"xplorPanelToggle","handlePanelToggle"]]]);function ga(){if(typeof customElements>"u")return;["xplor-expansion-panels"].forEach(n=>{switch(n){case"xplor-expansion-panels":customElements.get(n)||customElements.define(n,Ke);break}})}const xa=Ke,ma=ga,ba=`@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
|
-
}`,
|
|
15412
|
+
}`,ha="*/*",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=ha,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 ba}},[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 ua(){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 fa=Ge,ya=ua,va=`@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:"
|
|
15693
|
+
}`,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:"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 va}},[6,"xplor-inline-checkbox",{checked:[1028],value:[8],color:[1],disabled:[4],indeterminate:[4],label:[1]}]);function ka(){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 wa=Ze,_a=ka,Ca=qe,$a=We,Sa=`@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:"
|
|
16017
|
+
}`,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:"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 Sa}},[6,"xplor-inline-switch",{checked:[1028],value:[8],color:[1],disabled:[4],label:[1]}]);function Ia(){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 Ea=Je,za=Ia,Ta=`@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:"
|
|
16389
|
+
}`,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:"b8022fdd28a3e0087bc2a044856c3013d1f32245"},r("div",{key:"11c0494c76f5aed1fe03cff7b706c7bc809becda",class:n},this.label&&r("label",{key:"fca295123c0766e9ff4b1ae28abfc2662a345992",class:"xplor-input-file__label"},this.label),r("div",{key:"a63356f0857b420f1f707caa2e5e6ac587616949",class:"xplor-input-file__field"},r("span",{key:"f2b6f89f35d36a71a4c2bae38175cd16f897102d",class:"xplor-input-file__icon"},this.prependInnerIcon),r("div",{key:"0b6b59139696a1a1e9aee3f10b7069743f4d1934",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:"b0f312f157de2caf74c8c630d7c109fb6af4d7c0",type:"button",class:"xplor-input-file__clear",onClick:this.handleClear,"aria-label":"Clear"},"✕"),r("input",{key:"1b36ee20fe74f12cb0634fa8a6f11f0b18a8869c",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:"3db41f5660476718819e7315edbc59a9fa834178",class:"xplor-input-file__counter"},this.selectedFiles.length," file",this.selectedFiles.length>1?"s":""," selected")))}static get style(){return Ta}},[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 Da(){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 Xa=Ne,La=Da,Ba=`@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:"
|
|
16741
|
+
}`,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:"5b56e2a7105a8046e9d8a0260e4ccc3e3f74f2d1"},r("div",{key:"1056cd0367b2a02a9ca0b6327ee64fe451aa822f",class:n},r("div",{key:"b52566008beabead371696c73213c0c44d71caad",class:"xplor-input-search__field"},r("input",{key:"59c5434a7cedc56128d8acb5d3718e89a4521f60",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:"8a1ff9183e52e0b1907a2d592cf26ce92b8c3eb2",name:"append-inner"},r("button",{key:"9680a805a44074e1ca6544fc6cc1b6dc56b3cd3c",type:"button",class:"xplor-input-search__button",onClick:this.handleSearch,disabled:this.disabled,"data-testid":"input-search-button"},r("svg",{key:"b5889fd0aed963aa7f31a11fa705597caaa3d000",viewBox:"0 0 24 24",class:"xplor-input-search__icon"},r("path",{key:"78cd1c79a24b46b662d3be5bea287db253c0abe9",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 Ba}},[6,"xplor-input-search",{value:[1025],placeholder:[1],bgColor:[1,"bg-color"],color:[1],disabled:[4],density:[1],isFocused:[32]}]);function Fa(){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 Ma=nt,Aa=Fa,Pa=`@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:
|
|
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:"
|
|
17114
|
+
}`,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.menuPosition=null,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.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:"e5865a9d55129458a5357cf05f15115f1007019b"},r("div",{key:"66d54f5d1bb7514301427de3ad5bbf7746309cec",class:n,ref:o=>this.selectRef=o},this.label&&r("label",{key:"dfa166182add3a83872a05e4a20b77f654921231",class:"xplor-input-select__label"},this.label,this.required&&r("span",{key:"0da6997f30e1861b35e67e80974fce115560cc9b",class:"xplor-input-select__required"},"*")),r("div",{key:"f828546abc6121bcabcdbc905a0e43aa012bb5a9",class:"xplor-input-select__field",onClick:this.toggleDropdown,ref:o=>this.fieldRef=o},r("div",{key:"13692cc57a5c3c1da3915ca80f8324d091732ebb",class:"xplor-input-select__value"},this.getDisplayValue()),r("span",{key:"0a372cf751bc459d957130c50fb4387405e9f21f",class:"xplor-input-select__arrow"},this.isOpen?"▲":"▼")),this.isOpen&&this.menuPosition&&r("div",{key:"13e8536c6ce8220041364675d459dc2ee3ef7613",class:"xplor-input-select__menu",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"},"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:"240b60564cf80cc66b879bb4431885270c64db5b",class:"xplor-input-select__details"},this.error&&r("div",{key:"bbb2a2e796650c153e901aa87188a386c2f5b9f7",class:"xplor-input-select__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"a36ccb1626e1b5a9d19f2ee106213fd943177aa8",class:"xplor-input-select__helper-text"},this.helperText))))}static get style(){return Pa}},[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],menuPosition:[32]}]);function Oa(){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 ja=et,Ha=Oa,Ra=`@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:"
|
|
17407
|
+
}`,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:"87d0d49d2a9e9061152b294e6b7a91ffae7f39b0"},r("div",{key:"ef857693127c5945ff78c20e431609b051df32e7",class:{"input-send":!0,"input-send--disabled":this.disabled}},r("input",{key:"93aca7121d132bb72d812db77f8ff85be31a00aa",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:"92b64ec5e3c14cace28aacb12f58185e07b63f71",class:"input-send__button",text:this.buttonText,type:this.disabled||!this.internalValue.trim()?"disabled":this.buttonType,onClick:this.handleSend})))}static get style(){return Ra}},[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 Ua(){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,Wa=Ua,Ya=`@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:"
|
|
17747
|
+
}`,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:"310d900ed96c59bc8b0f19d40fc1573c1a08c220"},r("div",{key:"0a1903c53b92932e7a98bf910c00b912a1fa078e",class:n},this.label&&r("label",{key:"9c86a8f36b0007ecfdba4c70e3c76fa65a34d4e6",class:"xplor-input-text-area__label"},this.label,this.required&&r("span",{key:"5d57cbb3cd28c4533cfd42286bf16924f9937b4c",class:"xplor-input-text-area__required"},"*")),r("div",{key:"09feb36c8fe79b5a366d8c0f93495a363ec6596f",class:"xplor-input-text-area__field"},r("textarea",{key:"e05d3c094930b2993b5c959b1dfce569ad1b01d0",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:"3e95a44af498eb259fab45a653ed3ed2ce7ef3b7",type:"button",class:"xplor-input-text-area__clear",onClick:this.handleClear,"aria-label":"Clear"},"✕")),o&&r("div",{key:"cf21757ef973e21a44abba969baad7b88c0a273a",class:"xplor-input-text-area__details"},this.error&&r("div",{key:"bdfd559501f15f928a44ed7cfe797bb47b614092",class:"xplor-input-text-area__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"0eb05a84b610b3971e76cbd5f566f32ba260eacb",class:"xplor-input-text-area__helper-text"},this.helperText))))}static get style(){return Ya}},[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 Qa(){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 Va=rt,Ka=Qa,Ga=`@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:"
|
|
18067
|
+
}`,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:"d6c2b61f7fc153bd32577086f5c0ffcc335cbf4a"},r("div",{key:"b7cfabd013e84a7b72e6ca4cd7cd592bcd9de4df",class:n},this.label&&r("label",{key:"d5dfe32ab50128b1a3ff824e82b98f4ae75fcd17",class:"input-secondary__label"},this.label,this.required&&r("span",{key:"5de6c309872715b1bdd1f0aad9f577618f43f63f",class:"input-secondary__required"},"*")),r("div",{key:"5295e7d9cc7ee5ab401ee5a1182241791f2d81db",class:"input-secondary__field"},r("input",{key:"146cf2b3413de110e7aaadd19fc8da7bb824af4a",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:"8b72be3ae83c0de2f8c9f70198c012c0a25fb470",name:"append-inner"})),t&&r("div",{key:"a540ae6fd62ca09ca1ce337fd71d9b93950071d0",class:"input-secondary__details"},this.error&&r("div",{key:"1b899f4df036b2d648d7d6f87767d0ced8202a73",class:"input-secondary__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"ec2ba7e7cfc715235360bf9444bb054301537dc3",class:"input-secondary__helper-text"},this.helperText)),r("slot",{key:"8dfc77b85e9d89c8c3fdbae4569e7b1ddc6ccb0d",name:"append"})))}static get style(){return Ga}},[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 Za(){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 Ja=ot,Na=Za,nl=`@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:"
|
|
18382
|
+
}`,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:"eefd18f18a4a0303cccca87db9256d2d7033e767"},r("div",{key:"cf152d49ce4ed953162467a4cc6d9e8392380d4c",class:n},this.label&&r("label",{key:"78e7c0178ec1dedda68f6fdce7cb1f1dd13840fd",class:"xplor-input-text__label"},this.label,this.required&&r("span",{key:"1eaf01ca583263e7047444bbfe6b2636d8fde241",class:"xplor-input-text__required"},"*")),r("div",{key:"7318153a1c55ad38196cea03555238b8f2c37d51",class:"xplor-input-text__field"},r("input",{key:"41c1c60d8dbdea750477a17d32b110ef826e73a6",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:"48461bf663591d51ebd1ee4b6fbdc25680b322fb",name:"append-inner"})),t&&r("div",{key:"5ed0aecf6e5751e771882f9ab9cd58aafb44ba01",class:"xplor-input-text__details"},this.error&&r("div",{key:"b34fffee42d3f663b923a1b9fe14c7a0a19539b2",class:"xplor-input-text__error-message"},this.error),!this.error&&this.helperText&&r("div",{key:"7bf60893cc66f8916ebe3bc3bace1e827812541d",class:"xplor-input-text__helper-text"},this.helperText)),r("slot",{key:"c10099eb2c41e38cc65170a5acb6897b949b8173",name:"append"})))}static get style(){return nl}},[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 el(){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 tl=it,rl=el,ol=`@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:"
|
|
18667
|
+
}`,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:"8aaf2d386451218e3261ffec5c37d512905776ef"},r("input",{key:"0b79c0e500edcbd89a1e6f7bf4e1ea1b584b7a3e",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 ol}},[2,"xplor-input-title",{value:[1025],placeholder:[1],disabled:[4],readonly:[4]}]);function il(){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 al=at,ll=il,sl=":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:"4e672b4eb8d386705f07f8d647a4a4cdabde607f",class:`theme-${this.brand}`},r("a",{key:"8b23a97b669f6682588a568cc644a17cc92c8364",class:"x-link",href:"https://google.com"}," ","googole this is a link"," "),r("div",{key:"0b6bc1a1c77648137899cb8e554a93f1e56e4a15",class:"bg-black p-2 rounded-md flex justify-center"},r("h1",{key:"c2f23df8712e1763bf9d6910c0bea40a5ff476bf",class:"text-primary font-sans"},"This is a Stencil component using Tailwind")),r("div",{key:"e09c835f279ae0c2f70f2864ab4afa5942e1c900",class:"bg-white py-24 sm:py-32"},r("div",{key:"5b390160da6205dc508018ab53a5f09ab80602d1",class:"mx-auto grid max-w-7xl gap-20 px-6 lg:px-8 xl:grid-cols-3"},r("div",{key:"d7cf64efb0c15d643a74f67c11a3b9bc0807cd6d",class:"max-w-xl"},r("h2",{key:"78c877f919bd7098a79de55f2ef65d7538f418c5",class:"text-pretty text-3xl font-semibold tracking-tight text-gray-900 sm:text-4xl"},"Meet our leadership"),r("p",{key:"74b69e6d9f0d99b8653704e9fac32fa4ce50f211",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:"c8e457f3529ad8340c84d5bad80431b3c42318c8",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:"7cc055d330ab0ef28a10965f4fae52ba48b0f957"},r("div",{key:"47faf4cf76fe5363bde5c318abd8a9ff21972f00",class:"flex items-center gap-x-6"},r("img",{key:"ecea3e92117d535dbd3c97d0868d5888c61a3b26",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:"4978dd776ab303b667c5a5a8e2c90e2a51b30829"},r("h3",{key:"f49b65df05b1659a27dd6a5c82c11e1b9e18306d",class:"text-base/7 font-semibold tracking-tight text-gray-900"},"Leslie Alexander"),r("p",{key:"e74b5a0caf90fef101dcbdf01e2aa6d823f0e36d",class:"text-sm/6 font-semibold text-indigo-600"},"Co-Founder / CEO"))))))))}static get style(){return sl}},[1,"xplor-links",{brand:[1]}]);function dl(){if(typeof customElements>"u")return;["xplor-links"].forEach(n=>{switch(n){case"xplor-links":customElements.get(n)||customElements.define(n,lt);break}})}const cl=lt,pl=dl,gl=`@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
|
|
19033
|
+
}`,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 gl}},[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:"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 xl(){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 ml=ct,bl=xl,hl=st,ul=dt,fl=`@tailwind base;
|
|
18935
19034
|
@tailwind components;
|
|
18936
19035
|
@tailwind utilities;
|
|
18937
19036
|
@layer base {
|
|
@@ -19245,7 +19344,277 @@ 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
|
|
19347
|
+
}`,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 fl}},[6,"xplor-nav-tabs",{value:[1025],items:[16],color:[1],grow:[4]}]);function yl(){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 vl=pt,kl=yl,wl=`/* 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: block;
|
|
19617
|
+
}`,gt=v(class extends y{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return r(h,{key:"350aae21c138b87e3dfce7ebdb2d74747d5abc93"},r("h1",{key:"f7546bbab5c85aa0ed4d180116200790444f8c5f"},"I'm a button"),r("slot",{key:"79492d83d93da17775f56c21e2a600cafdea2c44"}))}static get style(){return wl}},[1,"xplor-radio-btn"]);function _l(){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 Cl=gt,$l=_l,Sl=`@tailwind base;
|
|
19249
19618
|
@tailwind components;
|
|
19250
19619
|
@tailwind utilities;
|
|
19251
19620
|
@layer base {
|
|
@@ -20302,7 +20671,7 @@ ol.mdc-list.sc-xplor-section-card li.mdc-list-item.sc-xplor-section-card, ul.mdc
|
|
|
20302
20671
|
}
|
|
20303
20672
|
.section-card__actions.sc-xplor-section-card:empty {
|
|
20304
20673
|
display: none;
|
|
20305
|
-
}`,
|
|
20674
|
+
}`,xt=v(class extends y{constructor(){super(),this.__registerHost(),this.outlined=!0,this.rounded=!0,this.padding="1.5rem"}render(){return r(h,{key:"f0bb8af2883a5441f3e325c4267ad3cec5716c9a"},r("div",{key:"a7611e3f28ca8d84782146adb2b906c789f4a338",class:{"section-card":!0,"section-card--outlined":this.outlined,"section-card--rounded":this.rounded},style:{padding:this.padding}},r("slot",{key:"e1a7153c70bf52f1d539dfc4f0b95d571aaa97da",name:"title"}),r("slot",{key:"90d1df5bf54fc04271e0f762a6f6df09f9a5cc32",name:"subtitle"}),r("div",{key:"81c011fa1950cee54769b7940b92722d3dcdd4d5",class:"section-card__body"},r("slot",{key:"5c8bba79d0900c8db7feb677ff1a6dc379bcad65",name:"body"})),r("div",{key:"d71137c24f428c4001c06c3038565368423e71cd",class:"section-card__actions"},r("slot",{key:"06b994a9fb3626a0054b6192b5bb666b89710f54",name:"actions"}))))}static get style(){return Sl}},[6,"xplor-section-card",{outlined:[4],rounded:[4],padding:[1]}]);function Il(){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 El=xt,zl=Il,Tl=`@tailwind base;
|
|
20306
20675
|
@tailwind components;
|
|
20307
20676
|
@tailwind utilities;
|
|
20308
20677
|
@layer base {
|
|
@@ -20568,7 +20937,7 @@ ol.mdc-list.sc-xplor-section-heading li.mdc-list-item.sc-xplor-section-heading,
|
|
|
20568
20937
|
}
|
|
20569
20938
|
.section-heading--large.sc-xplor-section-heading {
|
|
20570
20939
|
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;
|
|
20940
|
+
}`,mt=v(class extends y{constructor(){super(),this.__registerHost(),this.size="medium"}render(){return r(h,{key:"6ee4041528bf178feb4b641c6f6f937c28ed2e8e"},r("span",{key:"e9758f23fe78a18f5ebf77092225c4d3b2a29965",class:{"section-heading":!0,"section-heading--small":this.size==="small","section-heading--large":this.size==="large"}},r("slot",{key:"e0191f9f23da9858ffbb204554fec2c1012d1cd3"},this.text)))}static get style(){return Tl}},[6,"xplor-section-heading",{size:[1],text:[1]}]);function Dl(){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 Xl=mt,Ll=Dl,Bl=e=>{switch(e){case"asc":return"arrow-up";case"desc":return"arrow-down";default:return"dash"}},bt=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:"3f20eb245a5a7cb281d4d62c4decd5479a4a172f",class:"xplor-table"},r("div",{key:"1a28e8efbe4743b4dc77cfe62eeb21f317a9cbea",class:"bg-white rounded-lg shadow-sm border border-gray-200 p-6 max-w-6xl mx-auto"},r("div",{key:"a20608a0f5d4cde341974fb887f6bf0fcd1bce2d",class:"xpl-table-container",onScroll:this.onScroll,ref:o=>{this.container=o}},r("div",{key:"179d76f9152adf12775024ab4b8a272539ae1931",class:"mb-6"},r("h1",{key:"636955cf3e3b34e0dfd96d61b1dc055a8bd25421",class:"text-xl font-semibold text-gray-900 mb-4"},"Head Counts Report"),r("div",{key:"dbb17a39f87faf48f840cb0a0912e766d26fd3c6",class:"flex flex-wrap items-center gap-4 mb-6"},r("div",{key:"093859d4da39cdbda7c9d2bdde59dbe18e6379bc",class:"flex items-center gap-2"},r("label",{key:"01a133d35d6b97bb2c4e231ae6ebe8f4082f2955",class:"text-sm text-gray-600 font-medium"},"Date Range"),r("select",{key:"df99b873a684c2ae59f4d8ee5f2df68de8d0424d",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:"7886a61f2329e9ed9cc8ee7a2cf6addea173cca1",value:"All"},"All"),r("option",{key:"582f916607bb0cf80e0bae5bc0d6a2a555629139",value:"Today"},"Today"),r("option",{key:"e6b1b8b081ee25a4ed86a41e2de2e18a904b0696",value:"This Week"},"This Week"),r("option",{key:"9db97f27a005fe23d2e5c60f8920b867a8f6c6e5",value:"This Month"},"This Month"),r("option",{key:"3328f1c88fe0da23ede3010441f0fe4e2063b2ec",value:"Custom"},"Custom Range")),r("button",{key:"31041e09d90e476f7c795b29eb6f11b014ff7bfd",class:"p-1.5 border border-gray-300 rounded hover:bg-gray-50"},r("svg",{key:"1bafb7b5f685358f03d9c4aab68ae30eb49118dd",class:"w-4 h-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"e59bce624afdfb75f2c0118fc6ff83daab003246","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:"67ff7cd34e44e071f73d5d4e4f46df5ae386aa00",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:"5b23efc3355a5e4907b06696e29ca1f5b9d5c4f2",onClick:this.handleDownloadAll,class:"flex items-center gap-2 text-gray-600 hover:text-gray-800 text-sm"},r("svg",{key:"f787cf0f0759c4536786bc3e1ce2db99324ba085",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"1a21159e06c0371d4d43abc98a1e5d2c4919fa2f","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:"7ba170b68b794cd1dc031e801405d0f09c8d0e8f",class:`w-full ${n}`},this.columns&&r("thead",{key:"e79458ad7b197620a6ba37084fd009a3685340cc"},this.columns.map((o,i)=>{const a=Bl(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:"138ffddb19a8573fc00894a5e9b981cecbe3ac40"},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:"e82751ff914c2279cecdfbaa176e97f6e935732a",id:"pagination",class:"w-full flex items-center justify-between mt-6 text-sm"},r("div",{key:"4ed42566de46b43af24a36884832017947f117ef",class:"flex items-center gap-2"},r("button",{key:"a0c61305cbcace0eda2964da23085f58a8fc31a7",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:"322225c61fc14d0c6d8a201a3ff07cce094822c7",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"ae66792c0cf51383d2657ff5302383e4067761ce","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"}))),r("button",{key:"bc660dbbcf14d7ddf25820c337d212c11804b988",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:"365d59f74128819af1f163f125e393994a2e69ad",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"0b7c6305962e722c161d30e3b3ffe804c5d4c73e","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})))),r("span",{key:"2e0245cf9e2d23a944492432cd5c33bb915ecd2b",class:"text-gray-600"},"Page ",this.currentPage," of ",this.totalPages),r("div",{key:"5692bf81ffa24c2e10c8edb7d7a5ff6655816f7a",class:"flex items-center gap-2"},r("button",{key:"f60c4847070a3eb4e19e59c7c25141ce68ddbe81",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:"5f45f52d2dd1718691f582e765dd7cc3aa476dce",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"ad63a63e8956c6648781d7160761f8e310c5becc","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"}))),r("button",{key:"2ee1f6498fb0ccb4e2ea9a4e4d7651053b97851c",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:"e247cc56f3cfc8d870a7891fd0c457645473e3e1",class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},r("path",{key:"791f2af81bce193fbfcb41985feccec5338cee80","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 Fl(){if(typeof customElements>"u")return;["xplor-table"].forEach(n=>{switch(n){case"xplor-table":customElements.get(n)||customElements.define(n,bt);break}})}const Ml=bt,Al=Fl,Pl=`@tailwind base;
|
|
20572
20941
|
@tailwind components;
|
|
20573
20942
|
@tailwind utilities;
|
|
20574
20943
|
@layer base {
|
|
@@ -20834,7 +21203,7 @@ ol.mdc-list.sc-xplor-text-bubble li.mdc-list-item.sc-xplor-text-bubble, ul.mdc-l
|
|
|
20834
21203
|
.text-bubble--orange.sc-xplor-text-bubble {
|
|
20835
21204
|
border: 1px solid #F28602;
|
|
20836
21205
|
background: #FEF2E0;
|
|
20837
|
-
}`,
|
|
21206
|
+
}`,ht=v(class extends y{constructor(){super(),this.__registerHost(),this.color="orange"}render(){return r(h,{key:"61174051f7acc2747a0c95e1599a8ca04a9bc5e6"},r("div",{key:"fe266a910f906422a4e5d9e73d4f4d0570fa8c79",class:{"text-bubble":!0,"text-bubble--green":this.color==="green","text-bubble--orange":this.color==="orange"}},r("slot",{key:"1286ac72861f5da019bece897343778d40acdc36"})))}static get style(){return Pl}},[6,"xplor-text-bubble",{color:[1]}]);function Ol(){if(typeof customElements>"u")return;["xplor-text-bubble"].forEach(n=>{switch(n){case"xplor-text-bubble":customElements.get(n)||customElements.define(n,ht);break}})}const jl=ht,Hl=Ol,Rl=`@tailwind base;
|
|
20838
21207
|
@tailwind components;
|
|
20839
21208
|
@tailwind utilities;
|
|
20840
21209
|
@layer base {
|
|
@@ -22095,7 +22464,7 @@ ol.mdc-list.sc-xplor-text-field li.mdc-list-item.sc-xplor-text-field, ul.mdc-lis
|
|
|
22095
22464
|
}
|
|
22096
22465
|
.xplor-text-field--underlined.xplor-text-field--focused.sc-xplor-text-field .xplor-text-field__outline.sc-xplor-text-field {
|
|
22097
22466
|
border-bottom-width: 2px;
|
|
22098
|
-
}`,
|
|
22467
|
+
}`,ut=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:"93fdd30e48260ae52b33c18368637b1e7fdd7b6b"},r("div",{key:"ef93e7bc3588c225dfb7fef553f1146aecfcc027",class:this.computedClasses},r("div",{key:"5ffdd5634f410b2432e549403040e9ce7fdb0da4",class:"xplor-text-field__wrapper",style:{backgroundColor:this.bgColor}},r("div",{key:"08ab012b2ccb2698256f149563cc1ed47052e694",class:"xplor-text-field__input-wrapper"},this.label&&r("label",{key:"c4f359a167cb4cb47ba39355c56f7249523d8ef7",class:{"xplor-text-field__label":!0,"xplor-text-field__label--floating":n}},r("slot",{key:"cfd751bb2bbe51c6a847b6ac6317559b06feae39",name:"label"},this.label),this.required&&r("span",{key:"0d53dea42c4b288ec44c699aac77670ff45167b9",class:"xplor-text-field__required"},"*")),r("input",{key:"cbb7810c082c222a6aebe67fbfdfcce7804ff82c",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:"24a63d349c6a425854ed76c6ddb4a30ed5e91566",class:"xplor-text-field__append-inner"},this.clearable&&this.hasValue&&!this.disabled&&!this.readonly&&r("button",{key:"9145e93c91f67f98f0759370515552c66aeaae28",type:"button",class:"xplor-text-field__clear-btn",onClick:this.handleClear,"aria-label":"Clear"},r("svg",{key:"8dc823a286290bc563939bdee1b13bac39a6596d",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},r("path",{key:"d2f82e862b8331992aadd769366ef4bae2b744fd",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:"40cc5d4ba05c8e13a4697af6da86069b8f8d0003",name:"append-inner"})),r("fieldset",{key:"d066e7b23972b722cd9e1dca0a008ba3e412cde7",class:"xplor-text-field__outline"},r("legend",{key:"b8a3597b17f85b6877499cf7d984a874b0a124eb",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:"b116ffbdb2e0fa04aee252137c3300c5939df4e4",class:"xplor-text-field__append"},r("slot",{key:"5ff712dd69e453d488f3fc3cdad49a72ed9d5779",name:"append"}))),this.showDetails&&r("div",{key:"48ffb972bfb61eab4c33c61a4610f54ab6172cf6",class:"xplor-text-field__details"},this.hasError&&r("div",{key:"301bcf461bc00f3c4f5c5a322781f43a8451a597",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 Rl}},[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 Ul(){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 ql=ut,Wl=Ul,Yl=`@tailwind base;
|
|
22099
22468
|
@tailwind components;
|
|
22100
22469
|
@tailwind utilities;
|
|
22101
22470
|
@layer base {
|
|
@@ -22524,4 +22893,4 @@ ol.mdc-list.sc-xplor-time-picker li.mdc-list-item.sc-xplor-time-picker, ul.mdc-l
|
|
|
22524
22893
|
}
|
|
22525
22894
|
.time-picker__error-message.sc-xplor-time-picker {
|
|
22526
22895
|
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;
|
|
22896
|
+
}`,ft=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:"9b8bc8f441d31aaa0c92e49e5c1a669f48c7ca6e",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:"a21fb969eeb8690b82879ebc9a6c51b1cd7aafa7",cx:"12",cy:"12",r:"10"}),r("polyline",{key:"3a9baa3e13e7b8c34291a3755122262d868c61ed",points:"12 6 12 12 16 14"}));return r(h,{key:"d33be9ec453c217585e40c0eb8b0c0960c7bb382"},r("div",{key:"7ab538480696c0f08acd0855801f800bfe8c8862",class:{"time-picker":!0,"time-picker--disabled":this.disabled,"time-picker--error":!!this.error,"time-picker--open":this.isOpen}},this.label&&r("label",{key:"360dc161f783af2b499223cdadac2232e3e78ba5",class:"time-picker__label"},this.label,this.required&&r("span",{key:"78a2e4b030a913d992580d6ce1651a74ad5aab5e",class:"time-picker__required"},"*")),r("div",{key:"e17649b5447152ea129bd56d491c878fca99a2bd",class:"time-picker__field"},r("input",{key:"4d14139c735efafc6267e0a08e7087e61f38fea1",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:"84d7dbcc0f16b6f99453998b9daa27e6106cfc40",class:"time-picker__actions"},this.clearable&&this.value&&!this.disabled&&!this.readonly&&r("button",{key:"a70fedda5e74f4940fe098c9d78fe68a1bc0b54d",type:"button",class:"time-picker__clear",onClick:this.handleClear,"aria-label":"Clear"},"×"),r("button",{key:"a1fd37c75457a5dd93da61318e6ee40c206cf5e1",type:"button",class:"time-picker__icon-btn",onClick:this.toggleDropdown,disabled:this.disabled,"aria-label":"Open time picker"},t))),n&&r("div",{key:"32d5afad7a12bbe4fe427f095d8683c80f91982e",class:"time-picker__details"},this.error&&r("div",{key:"d8b06c272ddc8f89b629a4829d72268853f2de59",class:"time-picker__error-message"},this.error)),this.isOpen&&r("div",{key:"e32482cb95af8020176a98d430da82cd14e22d47",class:"time-picker__dropdown"},r("div",{key:"fda4e88d54bbe1aee73c559ed4739d8af92a1312",class:"time-picker__columns"},r("div",{key:"f6b11e869323e3ead50450c50c1513917e7d54b8",class:"time-picker__column"},r("button",{key:"006920c8b6f9482c71e86e51b57941ba9b01ac1a",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementHours,"aria-label":"Increase hours"},this.renderChevronUp()),r("div",{key:"8d24980d4686acb684198234be4e5795bb260a68",class:"time-picker__value"},String(this.hours).padStart(2,"0")),r("button",{key:"d3bacc27468fce121f8fd9d33bbdc017471d186a",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementHours,"aria-label":"Decrease hours"},this.renderChevronDown())),r("div",{key:"47b37a654b39d927bc8d61631f37b1f4668ddf4f",class:"time-picker__separator"},":"),r("div",{key:"06338eaa14004fe3db215d8dd3aab3148e187e1e",class:"time-picker__column"},r("button",{key:"2ef570ff9b18c21d5380a4d84b04ce9ae2e2b29a",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementMinutes,"aria-label":"Increase minutes"},this.renderChevronUp()),r("div",{key:"d6b0499440d0316ef9ce34564b3430580890a3d4",class:"time-picker__value"},String(this.minutes).padStart(2,"0")),r("button",{key:"da3cae735a153e422c8916575e6450ff60944b84",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementMinutes,"aria-label":"Decrease minutes"},this.renderChevronDown())),this.showSeconds&&[r("div",{key:"ac3ae8aaeff962e05ce23463e38ce8e1757125d6",class:"time-picker__separator"},":"),r("div",{key:"bacd826ab467fcfbe31bb0bfb0e14482792a83a7",class:"time-picker__column"},r("button",{key:"9f5160fbe4c64aabd12b7b1b0a862ad67b5d1c0b",type:"button",class:"time-picker__spinner-btn",onClick:this.incrementSeconds,"aria-label":"Increase seconds"},this.renderChevronUp()),r("div",{key:"e0de300ff5896edefc657e0c700ef63022896ba0",class:"time-picker__value"},String(this.seconds).padStart(2,"0")),r("button",{key:"ddd4a3851c3b95fbb204df8be210ff45770a5d4a",type:"button",class:"time-picker__spinner-btn",onClick:this.decrementSeconds,"aria-label":"Decrease seconds"},this.renderChevronDown()))],r("div",{key:"9475cca4161ce49d5542f9e80e67cca0fa8d6e47",class:"time-picker__column time-picker__column--period"},r("button",{key:"478377c07a24bf7d42efb8ead573f212fd71a5e5",type:"button",class:"time-picker__spinner-btn",onClick:this.togglePeriod,"aria-label":"Toggle AM/PM"},this.renderChevronUp()),r("div",{key:"c1f4614e726d95eea32c5b02ad906a9455588594",class:"time-picker__value time-picker__value--period"},this.period),r("button",{key:"26c95e4dcec81c18808ff42861a3ac319e43ea73",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 Yl}},[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 Ql(){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 Vl=ft,Kl=Ql,Gl=Fe,Zl=Me,Jl=u.createComponent({tagName:"xplor-alert-dialog",elementClass:Ir,react:f,events:{onXplorClose:"xplorClose",onXplorDialogChange:"xplorDialogChange"},defineCustomElement:Er}),Nl=u.createComponent({tagName:"xplor-alert-message",elementClass:Dr,react:f,events:{onXplorDismiss:"xplorDismiss"},defineCustomElement:Xr}),ns=u.createComponent({tagName:"xplor-assistant",elementClass:Gr,react:f,events:{onAssistantMessageSent:"assistantMessageSent",onAssistantMessageReceived:"assistantMessageReceived",onAssistantError:"assistantError",onAssistantSessionCreated:"assistantSessionCreated"},defineCustomElement:Zr}),es=u.createComponent({tagName:"xplor-autocomplete",elementClass:no,react:f,events:{onXplorChange:"xplorChange",onXplorSelect:"xplorSelect",onXplorClear:"xplorClear",onXplorSearch:"xplorSearch"},defineCustomElement:eo}),ts=u.createComponent({tagName:"xplor-avatar",elementClass:lo,react:f,events:{},defineCustomElement:so}),rs=u.createComponent({tagName:"xplor-avatar-and-name",elementClass:io,react:f,events:{},defineCustomElement:ao}),os=u.createComponent({tagName:"xplor-badge",elementClass:Vo,react:f,events:{},defineCustomElement:Ko}),is=u.createComponent({tagName:"xplor-badge-active",elementClass:go,react:f,events:{},defineCustomElement:xo}),as=u.createComponent({tagName:"xplor-badge-archived",elementClass:ho,react:f,events:{},defineCustomElement:uo}),ls=u.createComponent({tagName:"xplor-badge-deleted",elementClass:vo,react:f,events:{},defineCustomElement:ko}),ss=u.createComponent({tagName:"xplor-badge-expired",elementClass:Co,react:f,events:{},defineCustomElement:$o}),ds=u.createComponent({tagName:"xplor-badge-inactive",elementClass:Eo,react:f,events:{},defineCustomElement:zo}),cs=u.createComponent({tagName:"xplor-badge-recalled",elementClass:Xo,react:f,events:{},defineCustomElement:Lo}),ps=u.createComponent({tagName:"xplor-badge-session-booking",elementClass:Mo,react:f,events:{},defineCustomElement:Ao}),gs=u.createComponent({tagName:"xplor-badge-upcoming",elementClass:jo,react:f,events:{},defineCustomElement:Ho}),xs=u.createComponent({tagName:"xplor-badge-waitlist",elementClass:qo,react:f,events:{},defineCustomElement:Wo}),ms=u.createComponent({tagName:"xplor-btn-back",elementClass:ti,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:ri}),bs=u.createComponent({tagName:"xplor-btn-back-to-parent",elementClass:Jo,react:f,events:{onBack:"back"},defineCustomElement:No}),hs=u.createComponent({tagName:"xplor-btn-icon",elementClass:ai,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:li}),us=u.createComponent({tagName:"xplor-btn-menu",elementClass:ci,react:f,events:{onXplorClick:"xplorClick"},defineCustomElement:pi}),fs=u.createComponent({tagName:"xplor-btn-toggle",elementClass:wi,react:f,events:{onXplorToggle:"xplorToggle"},defineCustomElement:_i}),ys=u.createComponent({tagName:"xplor-btn-toggle-group",elementClass:mi,react:f,events:{},defineCustomElement:bi}),vs=u.createComponent({tagName:"xplor-btn-toggle-secondary",elementClass:fi,react:f,events:{onXplorToggle:"xplorToggle"},defineCustomElement:yi}),ks=u.createComponent({tagName:"xplor-btn-tooltip",elementClass:Ei,react:f,events:{},defineCustomElement:zi}),ws=u.createComponent({tagName:"xplor-button",elementClass:Ti,react:f,events:{},defineCustomElement:Di}),_s=u.createComponent({tagName:"xplor-chat-widget",elementClass:Fi,react:f,events:{},defineCustomElement:Mi}),Cs=u.createComponent({tagName:"xplor-checkbox",elementClass:Oi,react:f,events:{onCheckboxChange:"checkboxChange"},defineCustomElement:ji}),$s=u.createComponent({tagName:"xplor-combobox",elementClass:Ui,react:f,events:{onXplorChange:"xplorChange",onXplorSelect:"xplorSelect",onXplorCreate:"xplorCreate",onXplorClear:"xplorClear",onXplorSearch:"xplorSearch"},defineCustomElement:qi}),Ss=u.createComponent({tagName:"xplor-datatable",elementClass:Qi,react:f,events:{onRowClick:"rowClick",onXplorSelectionChange:"xplorSelectionChange",onPaginationChange:"paginationChange",onSortChange:"sortChange"},defineCustomElement:Vi}),Is=u.createComponent({tagName:"xplor-date-picker",elementClass:Ji,react:f,events:{onDateChange:"dateChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur",onXplorClear:"xplorClear"},defineCustomElement:Ni}),Es=u.createComponent({tagName:"xplor-drag-and-drop-input",elementClass:ta,react:f,events:{onFileSelect:"fileSelect",onFileClear:"fileClear"},defineCustomElement:ra}),zs=u.createComponent({tagName:"xplor-dropdown",elementClass:oa,react:f,events:{},defineCustomElement:ia}),Ts=u.createComponent({tagName:"xplor-expansion-panel",elementClass:da,react:f,events:{onXplorPanelToggle:"xplorPanelToggle"},defineCustomElement:ca}),Ds=u.createComponent({tagName:"xplor-expansion-panels",elementClass:xa,react:f,events:{},defineCustomElement:ma}),Xs=u.createComponent({tagName:"xplor-file-upload",elementClass:fa,react:f,events:{onXplorFileAdd:"xplorFileAdd",onXplorFileRemove:"xplorFileRemove",onXplorError:"xplorError"},defineCustomElement:ya}),Ls=u.createComponent({tagName:"xplor-inline-checkbox",elementClass:wa,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:_a}),Bs=u.createComponent({tagName:"xplor-inline-date-picker",elementClass:Ca,react:f,events:{onDateSelected:"dateSelected",onMonthChanged:"monthChanged"},defineCustomElement:$a}),Fs=u.createComponent({tagName:"xplor-inline-switch",elementClass:Ea,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:za}),Ms=u.createComponent({tagName:"xplor-input-file",elementClass:Xa,react:f,events:{onAttach:"attach",onXplorClear:"xplorClear"},defineCustomElement:La}),As=u.createComponent({tagName:"xplor-input-search",elementClass:Ma,react:f,events:{onSearch:"search"},defineCustomElement:Aa}),Ps=u.createComponent({tagName:"xplor-input-select",elementClass:ja,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:Ha}),Os=u.createComponent({tagName:"xplor-input-send",elementClass:qa,react:f,events:{onXplorSend:"xplorSend",onXplorValueChange:"xplorValueChange"},defineCustomElement:Wa}),js=u.createComponent({tagName:"xplor-input-text",elementClass:tl,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur"},defineCustomElement:rl}),Hs=u.createComponent({tagName:"xplor-input-text-area",elementClass:Va,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorClear:"xplorClear"},defineCustomElement:Ka}),Rs=u.createComponent({tagName:"xplor-input-text-secondary",elementClass:Ja,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur"},defineCustomElement:Na}),Us=u.createComponent({tagName:"xplor-input-title",elementClass:al,react:f,events:{onXplorInput:"xplorInput",onXplorChange:"xplorChange"},defineCustomElement:ll}),qs=u.createComponent({tagName:"xplor-links",elementClass:cl,react:f,events:{},defineCustomElement:pl}),Ws=u.createComponent({tagName:"xplor-modal",elementClass:hl,react:f,events:{onXplorClose:"xplorClose"},defineCustomElement:ul}),Ys=u.createComponent({tagName:"xplor-modal-persistent",elementClass:ml,react:f,events:{onXplorClose:"xplorClose"},defineCustomElement:bl}),Qs=u.createComponent({tagName:"xplor-nav-tabs",elementClass:vl,react:f,events:{onXplorChange:"xplorChange"},defineCustomElement:kl}),Vs=u.createComponent({tagName:"xplor-radio-btn",elementClass:Cl,react:f,events:{},defineCustomElement:$l}),Ks=u.createComponent({tagName:"xplor-section-card",elementClass:El,react:f,events:{},defineCustomElement:zl}),Gs=u.createComponent({tagName:"xplor-section-heading",elementClass:Xl,react:f,events:{},defineCustomElement:Ll}),Zs=u.createComponent({tagName:"xplor-table",elementClass:Ml,react:f,events:{onTableSelect:"tableSelect"},defineCustomElement:Al}),Js=u.createComponent({tagName:"xplor-text-bubble",elementClass:jl,react:f,events:{},defineCustomElement:Hl}),Ns=u.createComponent({tagName:"xplor-text-field",elementClass:ql,react:f,events:{onValueChange:"valueChange",onInputBlur:"inputBlur",onInputFocus:"inputFocus",onClearClick:"clearClick"},defineCustomElement:Wl}),nd=u.createComponent({tagName:"xplor-time-picker",elementClass:Vl,react:f,events:{onTimeChange:"timeChange",onXplorFocus:"xplorFocus",onXplorBlur:"xplorBlur",onXplorClear:"xplorClear"},defineCustomElement:Kl}),ed=u.createComponent({tagName:"xplor-tooltip",elementClass:Gl,react:f,events:{},defineCustomElement:Zl});exports.XplorAlertDialog=Jl;exports.XplorAlertMessage=Nl;exports.XplorAssistant=ns;exports.XplorAutocomplete=es;exports.XplorAvatar=ts;exports.XplorAvatarAndName=rs;exports.XplorBadge=os;exports.XplorBadgeActive=is;exports.XplorBadgeArchived=as;exports.XplorBadgeDeleted=ls;exports.XplorBadgeExpired=ss;exports.XplorBadgeInactive=ds;exports.XplorBadgeRecalled=cs;exports.XplorBadgeSessionBooking=ps;exports.XplorBadgeUpcoming=gs;exports.XplorBadgeWaitlist=xs;exports.XplorBtnBack=ms;exports.XplorBtnBackToParent=bs;exports.XplorBtnIcon=hs;exports.XplorBtnMenu=us;exports.XplorBtnToggle=fs;exports.XplorBtnToggleGroup=ys;exports.XplorBtnToggleSecondary=vs;exports.XplorBtnTooltip=ks;exports.XplorButton=ws;exports.XplorChatWidget=_s;exports.XplorCheckbox=Cs;exports.XplorCombobox=$s;exports.XplorDatatable=Ss;exports.XplorDatePicker=Is;exports.XplorDragAndDropInput=Es;exports.XplorDropdown=zs;exports.XplorExpansionPanel=Ts;exports.XplorExpansionPanels=Ds;exports.XplorFileUpload=Xs;exports.XplorInlineCheckbox=Ls;exports.XplorInlineDatePicker=Bs;exports.XplorInlineSwitch=Fs;exports.XplorInputFile=Ms;exports.XplorInputSearch=As;exports.XplorInputSelect=Ps;exports.XplorInputSend=Os;exports.XplorInputText=js;exports.XplorInputTextArea=Hs;exports.XplorInputTextSecondary=Rs;exports.XplorInputTitle=Us;exports.XplorLinks=qs;exports.XplorModal=Ws;exports.XplorModalPersistent=Ys;exports.XplorNavTabs=Qs;exports.XplorRadioBtn=Vs;exports.XplorSectionCard=Ks;exports.XplorSectionHeading=Gs;exports.XplorTable=Zs;exports.XplorTextBubble=Js;exports.XplorTextField=Ns;exports.XplorTimePicker=nd;exports.XplorTooltip=ed;
|