@3t-transform/threeteeui 0.0.12 → 0.0.13

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.
Files changed (46) hide show
  1. package/dist/cjs/{index-61cd741f.js → index-bf39be87.js} +88 -2
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-list.cjs.entry.js +1 -1
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-popover-content.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +10 -8
  11. package/dist/cjs/tttx.cjs.js +7 -3
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +37 -29
  14. package/dist/components/index.d.ts +9 -0
  15. package/dist/components/index.js +1 -1
  16. package/dist/components/tttx-standalone-input.js +10 -10
  17. package/dist/esm/{index-d8718abe.js → index-63c4d25e.js} +88 -3
  18. package/dist/esm/loader.js +4 -3
  19. package/dist/esm/polyfills/css-shim.js +1 -1
  20. package/dist/esm/tttx-button.entry.js +1 -1
  21. package/dist/esm/tttx-checkbox.entry.js +1 -1
  22. package/dist/esm/tttx-form.entry.js +1 -1
  23. package/dist/esm/tttx-icon.entry.js +1 -1
  24. package/dist/esm/tttx-list.entry.js +1 -1
  25. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  26. package/dist/esm/tttx-popover-content.entry.js +1 -1
  27. package/dist/esm/tttx-standalone-input.entry.js +10 -8
  28. package/dist/esm/tttx.js +4 -3
  29. package/dist/tttx/{p-629411bc.entry.js → p-1a4eb1f3.entry.js} +1 -1
  30. package/dist/tttx/p-25953f82.entry.js +1 -0
  31. package/dist/tttx/{p-dee50f14.entry.js → p-2b6720ac.entry.js} +1 -1
  32. package/dist/tttx/{p-7d84c410.entry.js → p-2d54f8aa.entry.js} +1 -1
  33. package/dist/tttx/{p-e5c02c27.entry.js → p-4c57bcbd.entry.js} +1 -1
  34. package/dist/tttx/p-709246f5.entry.js +1 -0
  35. package/dist/tttx/{p-db1f56ba.entry.js → p-95a29e09.entry.js} +1 -1
  36. package/dist/tttx/{p-daa82b1b.entry.js → p-ad0c3fe4.entry.js} +1 -1
  37. package/dist/tttx/p-bec472d8.js +2 -0
  38. package/dist/tttx/tttx.esm.js +1 -1
  39. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +10 -10
  40. package/dist/types/components.d.ts +2 -2
  41. package/dist/types/stencil-public-runtime.d.ts +59 -3
  42. package/loader/index.d.ts +9 -0
  43. package/package.json +1 -1
  44. package/dist/tttx/p-1b6b4223.entry.js +0 -1
  45. package/dist/tttx/p-1ea7e424.entry.js +0 -1
  46. package/dist/tttx/p-80bbe164.js +0 -2
@@ -0,0 +1,2 @@
1
+ let e,n,t=!1;const l={},o=e=>"object"==(e=typeof e)||"function"===e;function s(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,s=!1,c=!1;const r=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!o(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?i(null,l):l),c=s)};if(u(t),n){const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}const a=i(e,null);return a.l=n,r.length>0&&(a.o=r),a},i=(e,n)=>({i:0,u:e,t:n,m:null,o:null,l:null}),r={},u=e=>V(e).h,a=(e,n,t)=>{const l=u(e);return{emit:e=>f(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},f=(e,n,t)=>{const l=Y.ce(n,t);return e.dispatchEvent(l),l},d=new WeakMap,m=e=>"sc-"+e.p,h=(e,n,t,l,s,c)=>{if(t!==l){let i=B(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=y(t),s=y(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const r=o(l);if((i||r&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&c||s)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):B(Q,r)?r.slice(2):r[2]+n.slice(3),t&&Y.rel(e,n,t,!1),l&&Y.ael(e,n,l,!1)}},p=/\s/,y=e=>e?e.split(p):[],$=(e,n,t,o)=>{const s=11===n.m.nodeType&&n.m.host?n.m.host:n.m,c=e&&e.l||l,i=n.l||l;for(o in c)o in i||h(s,o,c[o],void 0,t,n.i);for(o in i)h(s,o,c[o],i[o],t,n.i)},b=(n,t,l)=>{const o=t.o[l];let s,c,i=0;if(null!==o.t)s=o.m=X.createTextNode(o.t);else if(s=o.m=X.createElement(o.u),$(null,o,!1),null!=e&&s["s-si"]!==e&&s.classList.add(s["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=b(n,o,i),c&&s.appendChild(c);return s},w=(e,t,l,o,s,c)=>{let i,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=b(null,l,s),i&&(o[s].m=i,r.insertBefore(i,t)))},v=(e,n,t,l,o)=>{for(;n<=t;++n)(l=e[n])&&(o=l.m,j(l),o.remove())},S=(e,n)=>e.u===n.u,g=(e,n)=>{const t=n.m=e.m,l=e.o,o=n.o,s=n.t;null===s?("slot"===n.u||$(e,n,!1),null!==l&&null!==o?((e,n,t,l)=>{let o,s=0,c=0,i=n.length-1,r=n[0],u=n[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=n[++s]:null==u?u=n[--i]:null==f?f=l[++c]:null==d?d=l[--a]:S(r,f)?(g(r,f),r=n[++s],f=l[++c]):S(u,d)?(g(u,d),u=n[--i],d=l[--a]):S(r,d)?(g(r,d),e.insertBefore(r.m,u.m.nextSibling),r=n[++s],d=l[--a]):S(u,f)?(g(u,f),e.insertBefore(u.m,r.m),u=n[--i],f=l[++c]):(o=b(n&&n[c],t,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?w(e,null==l[a+1]?null:l[a+1].m,t,l,c,a):c>a&&v(n,s,i)})(t,l,n,o):null!==o?(null!==e.t&&(t.textContent=""),w(t,null,n,o,0,o.length-1)):null!==l&&v(l,0,l.length-1)):e.t!==s&&(t.data=s)},j=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(j)},M=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},k=(e,n)=>{if(e.i|=16,!(4&e.i))return M(e,e.v),ie((()=>C(e,n)));e.i|=512},C=(e,n)=>{const t=e.S;let l;return n&&(e.i|=256,e.g&&(e.g.map((([e,n])=>R(t,e,n))),e.g=null),l=R(t,"componentWillLoad")),l=W(l,(()=>R(t,"componentWillRender"))),W(l,(()=>O(e,t,n)))},O=async(e,n,t)=>{const l=e.h,o=l["s-rc"];t&&(e=>{const n=e.j,t=e.h,l=n.i,o=((e,n)=>{var t;let l=m(n);const o=K.get(l);if(e=11===e.nodeType?e:X,o)if("string"==typeof o){let n,c=d.get(e=e.head||e);if(c||d.set(e,c=new Set),!c.has(l)){{n=X.createElement("style"),n.innerHTML=o;const l=null!==(t=Y.M)&&void 0!==t?t:s(X);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}c&&c.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"),2&l&&t.classList.add(o+"-s"))})(e);x(e,n),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>L(e);0===n.length?t():(Promise.all(n).then(t),e.i|=4,n.length=0)}},x=(t,l)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l)=>{const o=t.h,s=t.k||i(null,null),u=(e=>e&&e.u===r)(l)?l:c(null,null,l);n=o.tagName,u.u=null,u.i|=4,t.k=u,u.m=s.m=o.shadowRoot||o,e=o["s-sc"],g(s,u)})(t,l)}catch(e){G(e,t.h)}return null},L=e=>{const n=e.h,t=e.S,l=e.v;R(t,"componentDidRender"),64&e.i||(e.i|=64,E(n),R(t,"componentDidLoad"),e.C(n),l||P()),e.$&&(e.$(),e.$=void 0),512&e.i&&ce((()=>k(e,!1))),e.i&=-517},P=()=>{E(X.documentElement),ce((()=>f(Q,"appload",{detail:{namespace:"tttx"}})))},R=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){G(e)}},W=(e,n)=>e&&e.then?e.then(n):n(),E=e=>e.classList.add("hydrated"),N=(e,n,t)=>{if(n.O){e.watchers&&(n.L=e.watchers);const l=Object.entries(n.O),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(s,e,{get(){return((e,n)=>V(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const s=V(e),c=s.h,i=s.P.get(n),r=s.i,u=s.S;if(t=((e,n)=>null==e||o(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,l.O[n][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(s.P.set(n,t),u)){if(l.L&&128&r){const e=l.L[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){G(e,c)}}))}2==(18&r)&&k(s,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const n=new Map;s.attributeChangedCallback=function(e,t,l){Y.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},T=(e,n={})=>{var t;const l=[],o=n.exclude||[],c=Q.customElements,i=X.head,r=i.querySelector("meta[charset]"),u=X.createElement("style"),a=[];let f,d=!0;Object.assign(Y,n),Y.R=new URL(n.resourcesUrl||"./",X.baseURI).href,e.map((e=>{e[1].map((n=>{const t={i:n[0],p:n[1],O:n[2],W:n[3]};t.O=n[2],t.W=n[3],t.L={};const s=t.p,i=class extends HTMLElement{constructor(e){super(e),z(e=this,t),1&t.i&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Y.jmp((()=>(e=>{if(0==(1&Y.i)){const n=V(e),t=n.j,l=()=>{};if(1&n.i)A(e,n,t.W);else{n.i|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){M(n,n.v=t);break}}t.O&&Object.entries(t.O).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.i)){{if(n.i|=32,(o=J(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(t.L=o.watchers,N(o,t,2),o.isProxied=!0);const e=()=>{};n.i|=8;try{new o(n)}catch(e){G(e)}n.i&=-9,n.i|=128,e()}if(o.style){let e=o.style;const n=m(t);if(!K.has(n)){const l=()=>{};((e,n,t)=>{let l=K.get(e);ee&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(e,l)})(n,e,!!(1&t.i)),l()}}}const s=n.v,c=()=>k(n,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,n,t)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(()=>{if(0==(1&Y.i)){const e=V(this),n=e.S;e.N&&(e.N.map((e=>e())),e.N=void 0),R(n,"disconnectedCallback")}})()))}componentOnReady(){return V(this).T}};t.A=e[0],o.includes(s)||c.get(s)||(l.push(s),c.define(s,N(i,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=Y.M)&&void 0!==t?t:s(X);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):Y.jmp((()=>f=setTimeout(P,30)))},A=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=H(e,t),c=D(n,o),i=U(t);Y.ael(s,l,c,i),(n.N=n.N||[]).push((()=>Y.rel(s,l,c,i)))}))},D=(e,n)=>t=>{try{256&e.i?e.S[n](t):(e.g=e.g||[]).push([n,t])}catch(e){G(e)}},H=(e,n)=>4&n?X:e,U=e=>0!=(2&e),q=e=>Y.M=e,F=new WeakMap,V=e=>F.get(e),_=(e,n)=>F.set(n.S=e,n),z=(e,n)=>{const t={i:0,h:e,j:n,P:new Map};return t.T=new Promise((e=>t.C=e)),e["s-p"]=[],e["s-rc"]=[],A(e,t,n.W),F.set(e,t)},B=(e,n)=>n in e,G=(e,n)=>(0,console.error)(e,n),I=new Map,J=e=>{const n=e.p.replace(/-/g,"_"),t=e.A,l=I.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(I.set(t,e),e[n])),G)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={i:0,R:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Z=e=>Promise.resolve(e),ee=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],te=[],le=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&Y.i?ce(se):Y.raf(se))},oe=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){G(e)}e.length=0},se=()=>{oe(ne),oe(te),(t=ne.length>0)&&Y.raf(se)},ce=e=>Z().then(e),ie=le(te,!0);export{r as H,T as b,a as c,u as g,c as h,Z as p,_ as r,q as s}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-80bbe164.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-dee50f14",[[1,"tttx-list",{name:[1],selectable:[4],items:[32],selectedIds:[32],loading:[32],lastPage:[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["p-1ea7e424",[[2,"tttx-standalone-input",{label:[1],valid:[4],showerrormsg:[4],errormsg:[1],iconleft:[1],iconright:[1],autocapitalize:[1],autocomplete:[1],autofocus:[4],checked:[4],disabled:[4],max:[8],maxlength:[8],min:[8],minlength:[8],name:[1],pattern:[1],placeholder:[1],readonly:[8],required:[4],step:[8],type:[1],value:[1032],isfocused:[32]}]]],["p-629411bc",[[1,"tttx-button",{fontColor:[1,"font-color"],buttonStyle:[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["p-7d84c410",[[1,"tttx-checkbox",{value:[4],label:[1],required:[4]}]]],["p-db1f56ba",[[1,"tttx-form",{formschema:[8],submitValue:[8,"submit-value"]}]]],["p-daa82b1b",[[1,"tttx-popover-content",{header:[1],body:[1],linkcontext:[1],linktext:[1]}]]],["p-1b6b4223",[[1,"tttx-icon",{icon:[1],colour:[1]},[[4,"click","handleDocumentClick"]]]]],["p-e5c02c27",[[1,"tttx-loading-spinner",{loadingMessage:[1028,"loading-message"],size:[1025]}]]]],e)));
1
+ import{p as e,b as t}from"./p-bec472d8.js";export{s as setNonce}from"./p-bec472d8.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-2b6720ac",[[1,"tttx-list",{name:[1],selectable:[4],items:[32],selectedIds:[32],loading:[32],lastPage:[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["p-25953f82",[[2,"tttx-standalone-input",{label:[1],showerrormsg:[4],errormsg:[1],iconleft:[1],iconright:[1],autocapitalize:[1],autocomplete:[1],autofocus:[4],checked:[4],disabled:[4],max:[8],maxlength:[8],min:[8],minlength:[8],name:[1],pattern:[1],placeholder:[1],readonly:[8],required:[4],step:[8],type:[1],value:[1032]}]]],["p-1a4eb1f3",[[1,"tttx-button",{fontColor:[1,"font-color"],buttonStyle:[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["p-2d54f8aa",[[1,"tttx-checkbox",{value:[4],label:[1],required:[4]}]]],["p-95a29e09",[[1,"tttx-form",{formschema:[8],submitValue:[8,"submit-value"]}]]],["p-ad0c3fe4",[[1,"tttx-popover-content",{header:[1],body:[1],linkcontext:[1],linktext:[1]}]]],["p-709246f5",[[1,"tttx-icon",{icon:[1],colour:[1]},[[4,"click","handleDocumentClick"]]]]],["p-4c57bcbd",[[1,"tttx-loading-spinner",{loadingMessage:[1028,"loading-message"],size:[1025]}]]]],e)));
@@ -1,14 +1,12 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
- export declare type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
3
- export declare type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
4
- export declare type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
5
- export declare type TimeSyntax = `${number}${number}:${number}${number}`;
6
- export declare type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
7
- export declare type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
2
+ export type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
3
+ export type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
4
+ export type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
5
+ export type TimeSyntax = `${number}${number}:${number}${number}`;
6
+ export type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
7
+ export type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
8
8
  export declare class TttxInput {
9
- isfocused: boolean;
10
9
  label: string;
11
- valid: boolean;
12
10
  showerrormsg: boolean;
13
11
  errormsg: string;
14
12
  iconleft: string;
@@ -32,7 +30,9 @@ export declare class TttxInput {
32
30
  value: string | number;
33
31
  valueChanged: EventEmitter<string>;
34
32
  handleChange(event: Event | InputEvent): void;
35
- handleFocus(): void;
36
- handleBlur(): void;
33
+ focusChanged: EventEmitter<string>;
34
+ handleFocus(event: Event | InputEvent): void;
35
+ blurChanged: EventEmitter<string>;
36
+ handleBlur(event: Event | InputEvent): void;
37
37
  render(): any;
38
38
  }
@@ -60,7 +60,6 @@ export namespace Components {
60
60
  "showerrormsg": boolean;
61
61
  "step": string | number;
62
62
  "type": string;
63
- "valid": boolean;
64
63
  "value": string | number;
65
64
  }
66
65
  }
@@ -197,6 +196,8 @@ declare namespace LocalJSX {
197
196
  "min"?: MinMaxDates | number;
198
197
  "minlength"?: string | number;
199
198
  "name"?: string;
199
+ "onBlurChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
200
+ "onFocusChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
200
201
  "onValueChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
201
202
  "pattern"?: string;
202
203
  "placeholder"?: string;
@@ -205,7 +206,6 @@ declare namespace LocalJSX {
205
206
  "showerrormsg"?: boolean;
206
207
  "step"?: string | number;
207
208
  "type"?: string;
208
- "valid"?: boolean;
209
209
  "value"?: string | number;
210
210
  }
211
211
  interface IntrinsicElements {
@@ -133,7 +133,7 @@ export interface ListenOptions {
133
133
  */
134
134
  passive?: boolean;
135
135
  }
136
- export declare type ListenTargetOptions = 'body' | 'document' | 'window';
136
+ export type ListenTargetOptions = 'body' | 'document' | 'window';
137
137
  export interface StateDecorator {
138
138
  (): PropertyDecorator;
139
139
  }
@@ -214,8 +214,8 @@ export declare const State: StateDecorator;
214
214
  * https://stenciljs.com/docs/reactive-data#watch-decorator
215
215
  */
216
216
  export declare const Watch: WatchDecorator;
217
- export declare type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
218
- export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
217
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
218
+ export type ErrorHandler = (err: any, element?: HTMLElement) => void;
219
219
  /**
220
220
  * `setMode()` is used for libraries which provide multiple "modes" for styles.
221
221
  */
@@ -257,6 +257,15 @@ export declare function getAssetPath(path: string): string;
257
257
  * @returns the set path
258
258
  */
259
259
  export declare function setAssetPath(path: string): string;
260
+ /**
261
+ * Used to specify a nonce value that corresponds with an application's
262
+ * [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
263
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
264
+ * Alternatively, the nonce value can be set on a `meta` tag in the DOM head
265
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
266
+ * @param nonce The value to be used for the nonce attribute.
267
+ */
268
+ export declare function setNonce(nonce: string): void;
260
269
  /**
261
270
  * Retrieve a Stencil element for a given reference
262
271
  * @param ref the ref to get the Stencil element for
@@ -433,13 +442,57 @@ interface HostAttributes {
433
442
  ref?: (el: HTMLElement | null) => void;
434
443
  [prop: string]: any;
435
444
  }
445
+ /**
446
+ * Utilities for working with functional Stencil components. An object
447
+ * conforming to this interface is passed by the Stencil runtime as the third
448
+ * argument to a functional component, allowing component authors to work with
449
+ * features like children.
450
+ *
451
+ * The children of a functional component will be passed as the second
452
+ * argument, so a functional component which uses these utils to transform its
453
+ * children might look like the following:
454
+ *
455
+ * ```ts
456
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
457
+ * utils.map(children, child => ({
458
+ * ...child,
459
+ * vattrs: {
460
+ * ...child.vattrs,
461
+ * class: `${child.vattrs.class} add-class`
462
+ * }
463
+ * }))
464
+ * );
465
+ * ```
466
+ *
467
+ * For more see the Stencil documentation, here:
468
+ * https://stenciljs.com/docs/functional-components
469
+ */
436
470
  export interface FunctionalUtilities {
471
+ /**
472
+ * Utility for reading the children of a functional component at runtime.
473
+ * Since the Stencil runtime uses a different interface for children it is
474
+ * not recommendeded to read the children directly, and is preferable to use
475
+ * this utility to, for instance, perform a side effect for each child.
476
+ */
437
477
  forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
478
+ /**
479
+ * Utility for transforming the children of a functional component. Given an
480
+ * array of children and a callback this will return a list of the results of
481
+ * passing each child to the supplied callback.
482
+ */
438
483
  map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
439
484
  }
440
485
  export interface FunctionalComponent<T = {}> {
441
486
  (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
442
487
  }
488
+ /**
489
+ * A Child VDOM node
490
+ *
491
+ * This has most of the same properties as {@link VNode} but friendlier names
492
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
493
+ * order to provide a friendlier public interface for users of the
494
+ * {@link FunctionalUtilities}).
495
+ */
443
496
  export interface ChildNode {
444
497
  vtag?: string | number | Function;
445
498
  vkey?: string | number;
@@ -486,6 +539,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
486
539
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
487
540
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
488
541
  export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
542
+ /**
543
+ * A virtual DOM node
544
+ */
489
545
  export interface VNode {
490
546
  $flags$: number;
491
547
  $tag$: string | number | Function;
package/loader/index.d.ts CHANGED
@@ -10,3 +10,12 @@ export interface CustomElementsDefineOptions {
10
10
  }
11
11
  export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
12
  export declare function applyPolyfills(): Promise<void>;
13
+
14
+ /**
15
+ * Used to specify a nonce value that corresponds with an application's CSP.
16
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
17
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
18
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
19
+ * will result in the same behavior.
20
+ */
21
+ export declare function setNonce(nonce: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as t,h as n,H as e,g as r}from"./p-80bbe164.js";var o="top",i="bottom",a="right",f="left",u=[o,i,a,f],c=u.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),s=[].concat(u,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),l=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function p(t){return t?(t.nodeName||"").toLowerCase():null}function d(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function v(t){return t instanceof d(t).Element||t instanceof Element}function h(t){return t instanceof d(t).HTMLElement||t instanceof HTMLElement}function b(t){return"undefined"!=typeof ShadowRoot&&(t instanceof d(t).ShadowRoot||t instanceof ShadowRoot)}function m(t){return t.split("-")[0]}var y=Math.max,w=Math.min,x=Math.round;function g(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function O(){return!/^((?!chrome|android).)*safari/i.test(g())}function j(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),o=1,i=1;n&&h(t)&&(o=t.offsetWidth>0&&x(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&x(r.height)/t.offsetHeight||1);var a=(v(t)?d(t):window).visualViewport,f=!O()&&e,u=(r.left+(f&&a?a.offsetLeft:0))/o,c=(r.top+(f&&a?a.offsetTop:0))/i,s=r.width/o,l=r.height/i;return{width:s,height:l,top:c,right:u+s,bottom:c+l,left:u,x:u,y:c}}function k(t){var n=j(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function M(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&b(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(t){return d(t).getComputedStyle(t)}function A(t){return["table","td","th"].indexOf(p(t))>=0}function E(t){return((v(t)?t.ownerDocument:t.document)||window.document).documentElement}function P(t){return"html"===p(t)?t:t.assignedSlot||t.parentNode||(b(t)?t.host:null)||E(t)}function R(t){return h(t)&&"fixed"!==L(t).position?t.offsetParent:null}function q(t){for(var n=d(t),e=R(t);e&&A(e)&&"static"===L(e).position;)e=R(e);return e&&("html"===p(e)||"body"===p(e)&&"static"===L(e).position)?n:e||function(t){var n=/firefox/i.test(g());if(/Trident/i.test(g())&&h(t)&&"fixed"===L(t).position)return null;var e=P(t);for(b(e)&&(e=e.host);h(e)&&["html","body"].indexOf(p(e))<0;){var r=L(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function B(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function S(t,n,e){return y(t,w(n,e))}function W(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function z(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function C(t){return t.split("-")[1]}var H={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I(t){var n,e=t.popper,r=t.popperRect,u=t.placement,c=t.variation,s=t.offsets,l=t.position,p=t.gpuAcceleration,v=t.adaptive,h=t.roundOffsets,b=t.isFixed,m=s.x,y=void 0===m?0:m,w=s.y,g=void 0===w?0:w,O="function"==typeof h?h({x:y,y:g}):{x:y,y:g};y=O.x,g=O.y;var j=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),M=f,A=o,P=window;if(v){var R=q(e),B="clientHeight",S="clientWidth";R===d(e)&&"static"!==L(R=E(e)).position&&"absolute"===l&&(B="scrollHeight",S="scrollWidth"),R=R,(u===o||(u===f||u===a)&&"end"===c)&&(A=i,g-=(b&&R===P&&P.visualViewport?P.visualViewport.height:R[B])-r.height,g*=p?1:-1),u!==f&&(u!==o&&u!==i||"end"!==c)||(M=a,y-=(b&&R===P&&P.visualViewport?P.visualViewport.width:R[S])-r.width,y*=p?1:-1)}var W,z=Object.assign({position:l},v&&H),C=!0===h?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:x(t.x*r)/r||0,y:x(e*r)/r||0}}({x:y,y:g},d(e)):{x:y,y:g};return y=C.x,g=C.y,Object.assign({},z,p?((W={})[A]=k?"0":"",W[M]=j?"0":"",W.transform=(P.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",W):((n={})[A]=k?g+"px":"",n[M]=j?y+"px":"",n.transform="",n))}var T={passive:!0},D={left:"right",right:"left",bottom:"top",top:"bottom"};function F(t){return t.replace(/left|right|bottom|top/g,(function(t){return D[t]}))}var $={start:"end",end:"start"};function _(t){return t.replace(/start|end/g,(function(t){return $[t]}))}function G(t){var n=d(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function U(t){return j(E(t)).left+G(t).scrollLeft}function V(t){var n=L(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function J(t){return["html","body","#document"].indexOf(p(t))>=0?t.ownerDocument.body:h(t)&&V(t)?t:J(P(t))}function K(t,n){var e;void 0===n&&(n=[]);var r=J(t),o=r===(null==(e=t.ownerDocument)?void 0:e.body),i=d(r),a=o?[i].concat(i.visualViewport||[],V(r)?r:[]):r,f=n.concat(a);return o?f:f.concat(K(P(a)))}function N(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Q(t,n,e){return"viewport"===n?N(function(t,n){var e=d(t),r=E(t),o=e.visualViewport,i=r.clientWidth,a=r.clientHeight,f=0,u=0;if(o){i=o.width,a=o.height;var c=O();(c||!c&&"fixed"===n)&&(f=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:f+U(t),y:u}}(t,e)):v(n)?function(t,n){var e=j(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):N(function(t){var n,e=E(t),r=G(t),o=null==(n=t.ownerDocument)?void 0:n.body,i=y(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=y(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+U(t),u=-r.scrollTop;return"rtl"===L(o||e).direction&&(f+=y(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:f,y:u}}(E(t)))}function X(t){var n,e=t.reference,r=t.element,u=t.placement,c=u?m(u):null,s=u?C(u):null,l=e.x+e.width/2-r.width/2,p=e.y+e.height/2-r.height/2;switch(c){case o:n={x:l,y:e.y-r.height};break;case i:n={x:l,y:e.y+e.height};break;case a:n={x:e.x+e.width,y:p};break;case f:n={x:e.x-r.width,y:p};break;default:n={x:e.x,y:e.y}}var d=c?B(c):null;if(null!=d){var v="y"===d?"height":"width";switch(s){case"start":n[d]=n[d]-(e[v]/2-r[v]/2);break;case"end":n[d]=n[d]+(e[v]/2-r[v]/2)}}return n}function Y(t,n){void 0===n&&(n={});var e=n.placement,r=void 0===e?t.placement:e,f=n.strategy,c=void 0===f?t.strategy:f,s=n.boundary,l=void 0===s?"clippingParents":s,d=n.rootBoundary,b=void 0===d?"viewport":d,m=n.elementContext,x=void 0===m?"popper":m,g=n.altBoundary,O=void 0!==g&&g,k=n.padding,A=void 0===k?0:k,R=W("number"!=typeof A?A:z(A,u)),B=t.rects.popper,S=t.elements[O?"popper"===x?"reference":"popper":x],C=function(t,n,e,r){var o="clippingParents"===n?function(t){var n=K(P(t)),e=["absolute","fixed"].indexOf(L(t).position)>=0&&h(t)?q(t):t;return v(e)?n.filter((function(t){return v(t)&&M(t,e)&&"body"!==p(t)})):[]}(t):[].concat(n),i=[].concat(o,[e]),a=i.reduce((function(n,e){var o=Q(t,e,r);return n.top=y(o.top,n.top),n.right=w(o.right,n.right),n.bottom=w(o.bottom,n.bottom),n.left=y(o.left,n.left),n}),Q(t,i[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(v(S)?S:S.contextElement||E(t.elements.popper),l,b,c),H=j(t.elements.reference),I=X({reference:H,element:B,strategy:"absolute",placement:r}),T=N(Object.assign({},B,I)),D="popper"===x?T:H,F={top:C.top-D.top+R.top,bottom:D.bottom-C.bottom+R.bottom,left:C.left-D.left+R.left,right:D.right-C.right+R.right},$=t.modifiersData.offset;if("popper"===x&&$){var _=$[r];Object.keys(F).forEach((function(t){var n=[a,i].indexOf(t)>=0?1:-1,e=[o,i].indexOf(t)>=0?"y":"x";F[t]+=_[e]*n}))}return F}function Z(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,o=n.padding,i=n.flipVariations,a=n.allowedAutoPlacements,f=void 0===a?s:a,l=C(n.placement),p=l?i?c:c.filter((function(t){return C(t)===l})):u,d=p.filter((function(t){return f.indexOf(t)>=0}));0===d.length&&(d=p);var v=d.reduce((function(n,i){return n[i]=Y(t,{placement:i,boundary:e,rootBoundary:r,padding:o})[m(i)],n}),{});return Object.keys(v).sort((function(t,n){return v[t]-v[n]}))}function tt(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function nt(t){return[o,a,i,f].some((function(n){return t[n]>=0}))}function et(t,n,e){void 0===e&&(e=!1);var r,o,i=h(n),a=h(n)&&function(t){var n=t.getBoundingClientRect(),e=x(n.width)/t.offsetWidth||1,r=x(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),f=E(n),u=j(t,a,e),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!e)&&(("body"!==p(n)||V(f))&&(c=(r=n)!==d(r)&&h(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:G(r)),h(n)?((s=j(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):f&&(s.x=U(f))),{x:u.left+c.scrollLeft-s.x,y:u.top+c.scrollTop-s.y,width:u.width,height:u.height}}function rt(t){var n=new Map,e=new Set,r=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),r}var ot={placement:"bottom",modifiers:[],strategy:"absolute"};function it(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function at(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?ot:r;return function(t,n,r){void 0===r&&(r=o);var i,a,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},u=[],c=!1,s={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;p(),f.options=Object.assign({},o,f.options,i),f.scrollParents={reference:v(t)?K(t):t.contextElement?K(t.contextElement):[],popper:K(n)};var a,c,d=function(t){var n=rt(t);return l.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,f.options.modifiers),c=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return f.orderedModifiers=d.filter((function(t){return t.enabled})),f.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:f,name:t.name,instance:s,options:void 0===n?{}:n});u.push(r||function(){})}})),s.update()},forceUpdate:function(){if(!c){var t=f.elements,n=t.reference,e=t.popper;if(it(n,e)){f.rects={reference:et(n,q(e),"fixed"===f.options.strategy),popper:k(e)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(t){return f.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(f=i({state:f,options:void 0===a?{}:a,name:o.name,instance:s})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){s.forceUpdate(),t(f)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){p(),c=!0}};if(!it(t,n))return s;function p(){u.forEach((function(t){return t()})),u=[]}return s.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var ft=at({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,f=void 0===a||a,u=d(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",e.update,T)})),f&&u.addEventListener("resize",e.update,T),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",e.update,T)})),f&&u.removeEventListener("resize",e.update,T)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=X({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,a=void 0===i||i,f=e.roundOffsets,u=void 0===f||f,c={placement:m(n.placement),variation:C(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,I(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:u})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,I(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];h(o)&&p(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],o=n.attributes[t]||{},i=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});h(r)&&p(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,u=s.reduce((function(t,e){return t[e]=function(t,n,e){var r=m(t),i=[f,o].indexOf(r)>=0?-1:1,u="function"==typeof e?e(Object.assign({},n,{placement:t})):e,c=u[0],s=u[1];return c=c||0,s=(s||0)*i,[f,a].indexOf(r)>=0?{x:s,y:c}:{x:c,y:s}}(e,n.rects,i),t}),{}),c=u[n.placement],l=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=c.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[e]=u}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name;if(!n.modifiersData[r]._skip){for(var u=e.mainAxis,c=void 0===u||u,s=e.altAxis,l=void 0===s||s,p=e.fallbackPlacements,d=e.padding,v=e.boundary,h=e.rootBoundary,b=e.altBoundary,y=e.flipVariations,w=void 0===y||y,x=e.allowedAutoPlacements,g=n.options.placement,O=m(g),j=p||(O!==g&&w?function(t){if("auto"===m(t))return[];var n=F(t);return[_(t),n,_(n)]}(g):[F(g)]),k=[g].concat(j).reduce((function(t,e){return t.concat("auto"===m(e)?Z(n,{placement:e,boundary:v,rootBoundary:h,padding:d,flipVariations:w,allowedAutoPlacements:x}):e)}),[]),M=n.rects.reference,L=n.rects.popper,A=new Map,E=!0,P=k[0],R=0;R<k.length;R++){var q=k[R],B=m(q),S="start"===C(q),W=[o,i].indexOf(B)>=0,z=W?"width":"height",H=Y(n,{placement:q,boundary:v,rootBoundary:h,altBoundary:b,padding:d}),I=W?S?a:f:S?i:o;M[z]>L[z]&&(I=F(I));var T=F(I),D=[];if(c&&D.push(H[B]<=0),l&&D.push(H[I]<=0,H[T]<=0),D.every((function(t){return t}))){P=q,E=!1;break}A.set(q,D)}if(E)for(var $=function(t){var n=k.find((function(n){var e=A.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return P=n,"break"},G=w?3:1;G>0&&"break"!==$(G);G--);n.placement!==P&&(n.modifiersData[r]._skip=!0,n.placement=P,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name,u=e.mainAxis,c=void 0===u||u,s=e.altAxis,l=void 0!==s&&s,p=e.tether,d=void 0===p||p,v=e.tetherOffset,h=void 0===v?0:v,b=Y(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),x=m(n.placement),g=C(n.placement),O=!g,j=B(x),M="x"===j?"y":"x",L=n.modifiersData.popperOffsets,A=n.rects.reference,E=n.rects.popper,P="function"==typeof h?h(Object.assign({},n.rects,{placement:n.placement})):h,R="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,z={x:0,y:0};if(L){if(c){var H,I="y"===j?o:f,T="y"===j?i:a,D="y"===j?"height":"width",F=L[j],$=F+b[I],_=F-b[T],G=d?-E[D]/2:0,U="start"===g?A[D]:E[D],V="start"===g?-E[D]:-A[D],J=n.elements.arrow,K=d&&J?k(J):{width:0,height:0},N=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=N[I],X=N[T],Z=S(0,A[D],K[D]),tt=O?A[D]/2-G-Z-Q-R.mainAxis:U-Z-Q-R.mainAxis,nt=O?-A[D]/2+G+Z+X+R.mainAxis:V+Z+X+R.mainAxis,et=n.elements.arrow&&q(n.elements.arrow),rt=null!=(H=null==W?void 0:W[j])?H:0,ot=F+nt-rt,it=S(d?w($,F+tt-rt-(et?"y"===j?et.clientTop||0:et.clientLeft||0:0)):$,F,d?y(_,ot):_);L[j]=it,z[j]=it-F}if(l){var at,ft=L[M],ut="y"===M?"height":"width",ct=ft+b["x"===j?o:f],st=ft-b["x"===j?i:a],lt=-1!==[o,f].indexOf(x),pt=null!=(at=null==W?void 0:W[M])?at:0,dt=lt?ct:ft-A[ut]-E[ut]-pt+R.altAxis,vt=lt?ft+A[ut]+E[ut]-pt-R.altAxis:st,ht=d&&lt?function(t,n,e){var r=S(t,n,e);return r>e?e:r}(dt,ft,vt):S(d?dt:ct,ft,d?vt:st);L[M]=ht,z[M]=ht-ft}n.modifiersData[r]=z}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,r=t.name,c=t.options,s=e.elements.arrow,l=e.modifiersData.popperOffsets,p=m(e.placement),d=B(p),v=[f,a].indexOf(p)>=0?"height":"width";if(s&&l){var h=function(t,n){return W("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:z(t,u))}(c.padding,e),b=k(s),y="y"===d?o:f,w="y"===d?i:a,x=e.rects.reference[v]+e.rects.reference[d]-l[d]-e.rects.popper[v],g=l[d]-e.rects.reference[d],O=q(s),j=O?"y"===d?O.clientHeight||0:O.clientWidth||0:0,M=j/2-b[v]/2+(x/2-g/2),L=S(h[y],M,j-b[v]-h[w]);e.modifiersData[r]=((n={})[d]=L,n.centerOffset=L-M,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&M(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,o=n.rects.popper,i=n.modifiersData.preventOverflow,a=Y(n,{elementContext:"reference"}),f=Y(n,{altBoundary:!0}),u=tt(a,r),c=tt(f,o,i),s=nt(u),l=nt(c);n.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:l},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":l})}}]});const ut=class{constructor(n){t(this,n),this.icon=void 0,this.colour="grey"}handleDocumentClick(t){t.composedPath().includes(this.referenceElement)||(this.popperElement&&this.popperElement.removeAttribute("data-show"),this.popperInstance&&this.popperInstance.update())}componentWillLoad(){this.hasPopoverSlot=!!this.el.querySelector('[slot="popover"]')}componentDidLoad(){this.popperInstance=ft(this.referenceElement,this.popperElement,{placement:"top",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}},{name:"offset",options:{offset:[0,12]}}]})}disconnectedCallback(){this.popperInstance.destroy()}render(){return n(e,null,n("span",{onClick:()=>{this.popperElement&&this.popperElement.setAttribute("data-show",""),this.popperInstance&&this.popperInstance.update()},ref:t=>this.referenceElement=t,class:`material-symbols-rounded ${this.colour?this.colour:""} ${this.hasPopoverSlot?"clickable":""}`},this.icon),this.hasPopoverSlot&&n("div",{ref:t=>this.popperElement=t,class:"tooltip"},n("slot",{name:"popover"}),n("div",{class:"arrow","data-popper-arrow":!0})))}get el(){return r(this)}};ut.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:block}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}.clickable{cursor:pointer}';export{ut as tttx_icon}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as n}from"./p-80bbe164.js";const e=class{constructor(s){t(this,s),this.valueChanged=i(this,"valueChanged",7),this.isfocused=!1,this.label=void 0,this.valid=void 0,this.showerrormsg=void 0,this.errormsg=void 0,this.iconleft=void 0,this.iconright=void 0,this.autocapitalize=void 0,this.autocomplete=void 0,this.autofocus=void 0,this.checked=void 0,this.disabled=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.step=void 0,this.type="text",this.value=void 0}handleChange(t){const i=t.target;this.value=i.value,this.valueChanged.emit(i.value)}handleFocus(){this.isfocused=!0}handleBlur(){this.isfocused=!1}render(){const t=["standalone",this.showerrormsg?"invalid":""].join(" ");return s(n,null,s("label",{class:"inputBlock"},this.label,this.required?"":s("span",{class:"optional"}," (optional)"),this.iconleft&&s("div",{class:"icon-left"},s("tttx-icon",{icon:this.iconleft,colour:"grey"})),s("input",{class:t,autocapitalize:"url"===this.type||"email"===this.type||"password"===this.type?this.autocapitalize:null,autofocus:this.autofocus,autocomplete:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"datepickers"===this.type||"range"===this.type||"color"===this.type?this.autocomplete:null,checked:"checkbox"===this.type||"radio"===this.type?this.checked:null,disabled:this.required?null:this.disabled,max:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.max:null,maxlength:this.maxlength,min:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.min:null,minlength:this.maxlength,name:this.name,pattern:"text"===this.type||"date"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type?this.pattern:null,placeholder:"text"===this.type||"tel"===this.type||"email"===this.type||"url"===this.type||"password"===this.type||"search"===this.type?this.placeholder:null,readonly:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type?this.readonly:null,required:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"checkbox"===this.type||"radio"===this.type||"file"===this.type?this.required:null,step:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.step:null,type:this.type,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this)}),this.iconright&&s("div",{class:"icon-right"},s("tttx-icon",{icon:this.iconright,colour:"grey"})),s("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},s("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg)))}};e.style='.material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;margin-right:4px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.focused.sc-tttx-standalone-input{border-color:#1479c6}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}.sc-tttx-standalone-input-h{display:block}';export{e as tttx_standalone_input}
@@ -1,2 +0,0 @@
1
- let e,t,n=!1;const l={},s=e=>"object"==(e=typeof e)||"function"===e,o=(e,t,...n)=>{let l=null,o=!1,i=!1;const r=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&i?r[r.length-1].t+=l:r.push(o?c(null,l):l),i=o)};if(a(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const u=c(e,null);return u.l=t,r.length>0&&(u.o=r),u},c=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),i={},r=e=>q(e).m,a=(e,t,n)=>{const l=r(e);return{emit:e=>u(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},u=(e,t,n)=>{const l=Q.ce(t,n);return e.dispatchEvent(l),l},f=new WeakMap,d=e=>"sc-"+e.p,h=(e,t,n,l,o,c)=>{if(n!==l){let i=_(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,s=p(n),o=p(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=s(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):_(J,r)?r.slice(2):r[2]+t.slice(3),n&&Q.rel(e,t,n,!1),l&&Q.ael(e,t,l,!1)}},m=/\s/,p=e=>e?e.split(m):[],y=(e,t,n,s)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,c=e&&e.l||l,i=t.l||l;for(s in c)s in i||h(o,s,c[s],void 0,n,t.i);for(s in i)h(o,s,c[s],i[s],n,t.i)},$=(t,n,l)=>{const s=n.o[l];let o,c,i=0;if(null!==s.t)o=s.h=K.createTextNode(s.t);else if(o=s.h=K.createElement(s.u),y(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.o)for(i=0;i<s.o.length;++i)c=$(t,s,i),c&&o.appendChild(c);return o},b=(e,n,l,s,o,c)=>{let i,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);o<=c;++o)s[o]&&(i=$(null,l,o),i&&(s[o].h=i,r.insertBefore(i,n)))},w=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.h,j(l),s.remove())},S=(e,t)=>e.u===t.u,g=(e,t)=>{const n=t.h=e.h,l=e.o,s=t.o,o=t.t;null===o?("slot"===t.u||y(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,i=t.length-1,r=t[0],a=t[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&c<=u;)null==r?r=t[++o]:null==a?a=t[--i]:null==f?f=l[++c]:null==d?d=l[--u]:S(r,f)?(g(r,f),r=t[++o],f=l[++c]):S(a,d)?(g(a,d),a=t[--i],d=l[--u]):S(r,d)?(g(r,d),e.insertBefore(r.h,a.h.nextSibling),r=t[++o],d=l[--u]):S(a,f)?(g(a,f),e.insertBefore(a.h,r.h),a=t[--i],f=l[++c]):(s=$(t&&t[c],n,c),f=l[++c],s&&r.h.parentNode.insertBefore(s,r.h));o>i?b(e,null==l[u+1]?null:l[u+1].h,n,l,c,u):c>u&&w(t,o,i)})(n,l,t,s):null!==s?(null!==e.t&&(n.textContent=""),b(n,null,t,s,0,s.length-1)):null!==l&&w(l,0,l.length-1)):e.t!==o&&(n.data=o)},j=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(j)},v=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},M=(e,t)=>{if(e.i|=16,!(4&e.i))return v(e,e.S),oe((()=>k(e,t)));e.i|=512},k=(e,t)=>{const n=e.g;let l;return t&&(e.i|=256,e.j&&(e.j.map((([e,t])=>P(n,e,t))),e.j=null),l=P(n,"componentWillLoad")),l=R(l,(()=>P(n,"componentWillRender"))),R(l,(()=>C(e,n,t)))},C=async(e,t,n)=>{const l=e.m,s=l["s-rc"];n&&(e=>{const t=e.v,n=e.m,l=t.i,s=((e,t)=>{let n=d(t);const l=I.get(n);if(e=11===e.nodeType?e:K,l)if("string"==typeof l){let t,s=f.get(e=e.head||e);s||f.set(e,s=new Set),s.has(n)||(t=K.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&l&&n.classList.add(s+"-s"))})(e);O(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>x(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},O=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.m,r=n.M||c(null,null),a=(e=>e&&e.u===i)(l)?l:o(null,null,l);t=s.tagName,a.u=null,a.i|=4,n.M=a,a.h=r.h=s.shadowRoot||s,e=s["s-sc"],g(r,a)})(n,l)}catch(e){z(e,n.m)}return null},x=e=>{const t=e.m,n=e.g,l=e.S;P(n,"componentDidRender"),64&e.i||(e.i|=64,W(t),P(n,"componentDidLoad"),e.k(t),l||L()),e.$&&(e.$(),e.$=void 0),512&e.i&&se((()=>M(e,!1))),e.i&=-517},L=()=>{W(K.documentElement),se((()=>u(J,"appload",{detail:{namespace:"tttx"}})))},P=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){z(e)}},R=(e,t)=>e&&e.then?e.then(t):t(),W=e=>e.classList.add("hydrated"),E=(e,t,n)=>{if(t.C){e.watchers&&(t.O=e.watchers);const l=Object.entries(t.C),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>q(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=q(e),c=o.m,i=o.L.get(t),r=o.i,a=o.g;if(n=((e,t)=>null==e||s(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.C[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.L.set(t,n),a)){if(l.O&&128&r){const e=l.O[t];e&&e.map((e=>{try{a[e](n,i,t)}catch(e){z(e,c)}}))}2==(18&r)&&M(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){Q.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},N=(e,t={})=>{const n=[],l=t.exclude||[],s=J.customElements,o=K.head,c=o.querySelector("meta[charset]"),i=K.createElement("style"),r=[];let a,u=!0;Object.assign(Q,t),Q.P=new URL(t.resourcesUrl||"./",K.baseURI).href,e.map((e=>{e[1].map((t=>{const o={i:t[0],p:t[1],C:t[2],R:t[3]};o.C=t[2],o.R=t[3],o.O={};const c=o.p,i=class extends HTMLElement{constructor(e){super(e),V(e=this,o),1&o.i&&e.attachShadow({mode:"open"})}connectedCallback(){a&&(clearTimeout(a),a=null),u?r.push(this):Q.jmp((()=>(e=>{if(0==(1&Q.i)){const t=q(e),n=t.v,l=()=>{};if(1&t.i)T(e,t,n.R);else{t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){v(t,t.S=n);break}}n.C&&Object.entries(n.C).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.i)){{if(t.i|=32,(s=G(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.O=s.watchers,E(s,n,2),s.isProxied=!0);const e=()=>{};t.i|=8;try{new s(t)}catch(e){z(e)}t.i&=-9,t.i|=128,e()}if(s.style){let e=s.style;const t=d(n);if(!I.has(t)){const l=()=>{};((e,t,n)=>{let l=I.get(e);Y&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,I.set(e,l)})(t,e,!!(1&n.i)),l()}}}const o=t.S,c=()=>M(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){Q.jmp((()=>(()=>{if(0==(1&Q.i)){const e=q(this),t=e.g;e.W&&(e.W.map((e=>e())),e.W=void 0),P(t,"disconnectedCallback")}})()))}componentOnReady(){return q(this).N}};o.T=e[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,E(i,o,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,c?c.nextSibling:o.firstChild),u=!1,r.length?r.map((e=>e.connectedCallback())):Q.jmp((()=>a=setTimeout(L,30)))},T=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=D(e,n),c=A(t,s),i=H(n);Q.ael(o,l,c,i),(t.W=t.W||[]).push((()=>Q.rel(o,l,c,i)))}))},A=(e,t)=>n=>{try{256&e.i?e.g[t](n):(e.j=e.j||[]).push([t,n])}catch(e){z(e)}},D=(e,t)=>4&t?K:e,H=e=>0!=(2&e),U=new WeakMap,q=e=>U.get(e),F=(e,t)=>U.set(t.g=e,t),V=(e,t)=>{const n={i:0,m:e,v:t,L:new Map};return n.N=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],T(e,n,t.R),U.set(e,n)},_=(e,t)=>t in e,z=(e,t)=>(0,console.error)(e,t),B=new Map,G=e=>{const t=e.p.replace(/-/g,"_"),n=e.T,l=B.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(B.set(n,e),e[t])),z)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},I=new Map,J="undefined"!=typeof window?window:{},K=J.document||{head:{}},Q={i:0,P:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},X=e=>Promise.resolve(e),Y=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Z=[],ee=[],te=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&Q.i?se(le):Q.raf(le))},ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){z(e)}e.length=0},le=()=>{ne(Z),ne(ee),(n=Z.length>0)&&Q.raf(le)},se=e=>X().then(e),oe=te(ee,!0);export{i as H,N as b,a as c,r as g,o as h,X as p,F as r}