@everymatrix/general-styling-wrapper 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/cjs/general-styling-wrapper.cjs.entry.js +5 -13
  2. package/dist/cjs/general-styling-wrapper.cjs.js +2 -2
  3. package/dist/cjs/{index-bd515e45.js → index-d32e7de6.js} +125 -239
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/general-styling-wrapper/general-styling-wrapper.js +5 -21
  7. package/dist/esm/general-styling-wrapper.entry.js +5 -13
  8. package/dist/esm/general-styling-wrapper.js +3 -3
  9. package/dist/esm/{index-d449ed4b.js → index-1d219aa0.js} +125 -239
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/general-styling-wrapper/general-styling-wrapper.esm.js +1 -1
  12. package/dist/general-styling-wrapper/p-0dd4160b.js +2 -0
  13. package/dist/general-styling-wrapper/p-ac93b3a6.entry.js +1 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/packages/stencil/general-styling-wrapper/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/packages/stencil/general-styling-wrapper/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/general-styling-wrapper/p-4bf9aa97.js +0 -2
  18. package/dist/general-styling-wrapper/p-fefdf7c8.entry.js +0 -1
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/packages/stencil/general-styling-wrapper/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/packages/stencil/general-styling-wrapper/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-styling-wrapper/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{p as t,b as a}from"./p-4bf9aa97.js";export{s as setNonce}from"./p-4bf9aa97.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),t(n)})().then((async t=>(await n(),a([["p-fefdf7c8",[[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],t))));
1
+ import{p as t,b as n}from"./p-0dd4160b.js";export{s as setNonce}from"./p-0dd4160b.js";import{g as r}from"./p-e1255160.js";(()=>{const n=import.meta.url,r={};return""!==n&&(r.resourcesUrl=new URL(".",n).href),t(r)})().then((async t=>(await r(),n([["p-ac93b3a6",[[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],t))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},f=c.document||{head:{}},u={l:0,o:"",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)},a=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,m=[],p=[],y=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&u.l?b(v):u.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},v=()=>{$(m),$(p),(h=m.length>0)&&u.raf(v)},b=e=>a().then(e),w=y(p,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>j,unwrap:()=>P,unwrapErr:()=>R});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,M,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!g(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?T(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,c.length>0&&(u.h=c),u.m=o,u.p=s,u},T=(e,t)=>({l:0,$:e,i:t,v:null,h:null,u:null,m:null,p:null}),x={},D=e=>n(e).$hostElement$,H=new WeakMap,N=e=>"sc-"+e.S,L=(e,t,n,l,o,s)=>{if(n!==l){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else{const r=g(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}}},W=/\s/,F=e=>e?e.split(W):[],U=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of q(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of q(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,I=!1,V=!1,_=!1,z=(e,t,n)=>{var l;const o=t.h[n];let s,i,r,c=0;if(G||(V=!0,"slot"===o.$&&(o.l|=o.h?2:1)),1&o.l)s=o.v=f.createTextNode("");else if(s=o.v=f.createElement(!G&&2&o.l?"slot-fb":o.$),U(null,o,_),s.getRootNode().querySelector("body"),o.h)for(c=0;c<o.h.length;++c)i=z(e,o,c),i&&s.appendChild(i);return s["s-hn"]=M,3&o.l&&(s["s-sr"]=!0,s["s-cr"]=C,s["s-sn"]=o.p||"",s["s-rf"]=null==(l=o.u)?void 0:l.ref,r=e&&e.h&&e.h[n],r&&r.$===o.$&&e.v&&B(e.v,!1)),s},B=(e,t)=>{u.l|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const l=n[e];l["s-hn"]!==M&&l["s-ol"]&&(oe(Y(l),l,X(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,V=!0),t&&B(l,t)}u.l&=-2},J=(e,t,n,l,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=s;++o)l[o]&&(i=z(null,n,o),i&&(l[o].v=i,oe(r,i,X(t))))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&(I=!0,e["s-ol"]?e["s-ol"].remove():B(e,!0),e.remove())}}},Q=(e,t,n=!1)=>!(e.$!==t.$||("slot"===e.$?"k"in e&&n&&8!==e.v.nodeType||e.p!==t.p:!n&&e.m!==t.m)),X=e=>e&&e["s-ol"]||e,Y=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Z=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h;("slot"!==t.$||G)&&U(e,t,_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=t.length-1,d=t[0],h=t[a],m=l.length-1,p=l[0],y=l[m];for(;r<=a&&c<=m;)if(null==d)d=t[++r];else if(null==h)h=t[--a];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(Q(d,p,o))Z(d,p,o),d=t[++r],p=l[++c];else if(Q(h,y,o))Z(h,y,o),h=t[--a],y=l[--m];else if(Q(d,y,o))"slot"!==d.$&&"slot"!==y.$||B(d.v.parentNode,!1),Z(d,y,o),oe(e,d.v,h.v.nextSibling),d=t[++r],y=l[--m];else if(Q(h,p,o))"slot"!==d.$&&"slot"!==y.$||B(h.v.parentNode,!1),Z(h,p,o),oe(e,h.v,d.v),h=t[--a],p=l[++c];else{for(f=-1,u=r;u<=a;++u)if(t[u]&&null!==t[u].m&&t[u].m===p.m){f=u;break}f>=0?(i=t[f],i.$!==p.$?s=z(t&&t[c],n,f):(Z(i,p,o),t[f]=void 0,s=i.v),p=l[++c]):(s=z(t&&t[c],n,c),p=l[++c]),s&&oe(Y(d.v),s,X(d.v))}r>a?J(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&K(t,r,a)})(l,o,t,s,n):null!==s?J(l,null,t,s,0,s.length-1):!n&&null!==o&&K(o,0,o.length-1)},ee=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}ee(e)}},te=[],ne=e=>{let t,n,l;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(le(t,e)){let n=te.find((e=>e.j===t));I=!0,t["s-sn"]=t["s-sn"]||e,n?(n.j["s-sh"]=o["s-hn"],n.O=o):(t["s-sh"]=o["s-hn"],te.push({O:o,j:t})),t["s-sr"]&&te.map((e=>{le(e.j,t["s-sn"])&&(n=te.find((e=>e.j===t)),n&&!e.O&&(e.O=n.O))}))}else te.some((e=>e.j===t))||te.push({j:t})}1===o.nodeType&&ne(o)}},le=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,oe=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),se=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return se(e,e.M),w((()=>re(e,t)));e.l|=512},re=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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 l;return t&&(l=me(n,"componentWillLoad")),ce(l,(()=>ue(e,n,t)))},ce=(e,t)=>fe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),fe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ue=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.P;((e,t)=>{var n;const l=N(t),o=i.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,i=H.get(e=e.head||e);if(i||H.set(e,i=new Set),!i.has(l)){{s=f.createElement("style"),s.innerHTML=o;const l=null!=(n=u.R)?n:k(f);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=r),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.$hostElement$.getRootNode(),t)})(e);ae(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>de(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ae=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{var l,o,s,i;const r=e.$hostElement$,c=e.A||T(null,null),a=(e=>e&&e.$===x)(t)?t:A(null,null,t);if(M=r.tagName,n&&a.u)for(const e of Object.keys(a.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.u[e]=r[e]);if(a.$=null,a.l|=4,e.A=a,a.v=c.v=r,G=!1,C=r["s-cr"],I=!1,Z(c,a,n),u.l|=1,V){ne(a.v);for(const e of te){const t=e.j;if(!t["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t,oe(t.parentNode,t["s-ol"]=e,t)}}for(const e of te){const t=e.j,r=e.O;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(l=t["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){for(l=l.nextSibling;l===t||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),oe(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}I&&ee(a.v),u.l&=-2,te.length=0,C=void 0})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},de=e=>{const t=e.$hostElement$,n=e.M;me(e.t,"componentDidRender"),64&e.l||(e.l|=64,pe(t),e.T(t),n||he()),e.C&&(e.C(),e.C=void 0),512&e.l&&b((()=>ie(e,!1))),e.l&=-517},he=()=>{pe(f.documentElement),b((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"general-styling-wrapper"}});return e.dispatchEvent(t),t})(c)))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},pe=e=>e.classList.add("hydrated"),ye=(e,t,l)=>{var o,s;const i=e.prototype;if(t.D){const r=Object.entries(null!=(o=t.D)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.H.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||g(e)?e:1&t?e+"":e)(l,o.D[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.H.set(t,l),c&&2==(18&r)&&ie(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){u.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.N)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},$e=(e,l={})=>{var a;const h=[],m=l.exclude||[],p=c.customElements,y=f.head,$=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let w,S=!0;Object.assign(u,l),u.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const r={l:l[0],S:l[1],D:l[2],L:l[3]};4&r.l&&(g=!0),r.D=l[2];const c=r.S,a=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,P:n,H:new Map};l.W=new Promise((e=>l.T=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,r)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):u.jmp((()=>(e=>{if(!(1&u.l)){const t=n(e),l=t.P,r=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.W)&&t.W.then((()=>{}));else{t.l|=1,12&l.l&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,oe(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){se(t,t.M=n);break}}l.D&&Object.entries(l.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.F){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.F;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.U}" was not found`);l.isProxied||(ye(l,n,2),l.isProxied=!0);const i=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,i()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=N(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const r=t.M,c=()=>ie(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,l)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async()=>{if(!(1&u.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}})()))}componentOnReady(){return n(this).W}};r.F=e[0],m.includes(c)||p.get(c)||(h.push(c),p.define(c,ye(a,r,1)))}))})),h.length>0&&(g&&(v.textContent+=r),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(a=u.R)?a:k(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):u.jmp((()=>w=setTimeout(he,30)))},ve=e=>u.R=e;export{$e as b,D as g,A as h,a as p,l as r,ve as s}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,g as e}from"./p-0dd4160b.js";const i=class{constructor(s){t(this,s),this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.el.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),s=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{s.innerHTML=t,setTimeout((()=>{this.el.prepend(s)}),1)})).catch((t=>{console.log("error ",t)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const t=[];if(this.translationUrl){const i=(s=this.translationUrl,e=this.targetTranslations,new Promise((t=>{fetch(s).then((t=>t.json())).then((s=>{Object.keys(s).forEach((t=>{e[t]=e[t]?e[t]:{};for(let i in s[t])e[t][i]=s[t][i]})),t(!0)}))})));t.push(i)}var s,e;return await Promise.all(t)}render(){return s("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},s("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return e(this)}};i.style=":host{display:block}";export{i as general_styling_wrapper}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-styling-wrapper",
3
- "version": "1.54.12",
3
+ "version": "1.55.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!1,m=[],p=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&f.o?b($):f.raf($))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},$=()=>{y(m),y(p),(h=m.length>0)&&f.raf($)},b=t=>a().then(t),w=v(p,!0),S=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>E,unwrapErr:()=>C});var j=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return O(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},C=t=>{if(t.isErr)return t.value;throw t.value},M=t=>{const e=t.__childNodes||t.childNodes;t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&T(e,t.tagName).forEach((t=>{var e;1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!(null==(e=L(t,t["s-sn"],!1))?void 0:e.length))}));for(const t of e)1===t.nodeType&&(t.__childNodes||t.childNodes).length&&M(t)};function T(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&o["s-hn"]===e&&(void 0===n||o["s-sn"]===n)&&(s.push(o),void 0!==n))return s;s=[...s,...T(o.childNodes,e,n)]}return s}var P,R,L=(t,e,n=!0)=>{const o=[];for((n&&t["s-sr"]||!t["s-sr"])&&o.push(t);(t=t.nextSibling)&&t["s-sn"]===e;)o.push(t);return o},x=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,A=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?F(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const f=F(t,null);return f.u=e,c.length>0&&(f.h=c),f.m=l,f.p=s,f},F=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,m:null,p:null}),N={},B=(t,e)=>null==t||S(t)?t:1&e?t+"":t,D=t=>n(t).$hostElement$,H=new WeakMap,W=t=>"sc-"+t.S,U=(t,e,n,o,l,s)=>{if(n!==o){let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=q(n);let s=q(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{const r=S(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||l)&&!r&&t.setAttribute(e,o=!0===o?"":o)}}},V=/\s/,q=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(V):[]),G=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||{},s=e.u||{};for(const t of _(Object.keys(l)))t in s||U(o,t,l[t],void 0,n,e.o);for(const t of _(Object.keys(s)))U(o,t,l[t],s[t],n,e.o)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,I=!1,J=!1,K=!1,Q=(t,e,n)=>{var o;const l=e.h[n];let s,i,r,c=0;if(z||(J=!0,"slot"===l.v&&(l.o|=l.h?2:1)),1&l.o)s=l.$=u.createTextNode("");else if(s=l.$=u.createElement(!z&&2&l.o?"slot-fb":l.v),G(null,l,K),l.h)for(c=0;c<l.h.length;++c)i=Q(t,l,c),i&&s.appendChild(i);return s["s-hn"]=R,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=P,s["s-sn"]=l.p||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,r=t&&t.h&&t.h[n],r&&r.v===l.v&&t.$&&X(t.$,!1)),s},X=(t,e)=>{f.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==R&&o["s-ol"]&&(st(et(o).parentNode,o,et(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,J=!0),e&&X(o,e)}f.o&=-2},Y=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(;l<=s;++l)o[l]&&(i=Q(null,n,l),i&&(o[l].$=i,st(r,i,et(e))))},Z=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;t&&(I=!0,t["s-ol"]?t["s-ol"].remove():X(t,!0),t.remove())}}},tt=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.p===e.p:n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),et=t=>t&&t["s-ol"]||t,nt=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h;("slot"!==e.v||z)&&G(t,e,K),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],m=o.length-1,p=o[0],v=o[m];for(;r<=a&&c<=m;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==p)p=o[++c];else if(null==v)v=o[--m];else if(tt(d,p,l))nt(d,p,l),d=e[++r],p=o[++c];else if(tt(h,v,l))nt(h,v,l),h=e[--a],v=o[--m];else if(tt(d,v,l))"slot"!==d.v&&"slot"!==v.v||X(d.$.parentNode,!1),nt(d,v,l),st(t,d.$,h.$.nextSibling),d=e[++r],v=o[--m];else if(tt(h,p,l))"slot"!==d.v&&"slot"!==v.v||X(h.$.parentNode,!1),nt(h,p,l),st(t,h.$,d.$),h=e[--a],p=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].m&&e[f].m===p.m){u=f;break}u>=0?(i=e[u],i.v!==p.v?s=Q(e&&e[c],n,u):(nt(i,p,l),e[u]=void 0,s=i.$),p=o[++c]):(s=Q(e&&e[c],n,c),p=o[++c]),s&&st(et(d.$).parentNode,s,et(d.$))}r>a?Y(t,null==o[m+1]?null:o[m+1].$,n,o,c,m):c>m&&Z(e,r,a)})(o,l,e,s,n):null!==s?Y(o,null,e,s,0,s.length-1):!n&&null!==l&&Z(l,0,l.length-1)},ot=[],lt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(x(e,l)){let n=ot.find((t=>t.j===e));I=!0,e["s-sn"]=e["s-sn"]||l,n?(n.j["s-sh"]=t["s-hn"],n.O=t):(e["s-sh"]=t["s-hn"],ot.push({O:t,j:e})),e["s-sr"]&&ot.map((t=>{x(t.j,e["s-sn"])&&(n=ot.find((t=>t.j===e)),n&&!t.O&&(t.O=n.O))}))}else ot.some((t=>t.j===e))||ot.push({j:e})}1===t.nodeType&&lt(t)}},st=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),it=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},rt=(t,e)=>{if(t.o|=16,!(4&t.o))return it(t,t.C),w((()=>ct(t,e)));t.o|=512},ct=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 l;return e&&(l=pt(o,"componentWillLoad",void 0,n)),ut(l,(()=>at(t,o,e)))},ut=(t,e)=>ft(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ft=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,at=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.M;((t,e)=>{var n;const o=W(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=H.get(t=t.head||t);if(i||H.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=f.T)?n:g(u);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.$hostElement$.getRootNode(),e)})(t);dt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ht(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},dt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.P||F(null,null),a=(t=>t&&t.v===N)(e)?e:A(null,null,e);if(R=r.tagName,n&&a.u)for(const t of Object.keys(a.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.u[t]=r[t]);if(a.v=null,a.o|=4,t.P=a,a.$=c.$=r,z=!1,P=r["s-cr"],I=!1,nt(c,a,n),f.o|=1,J){lt(a.$);for(const t of ot){const e=t.j;if(!e["s-ol"]){const t=u.createTextNode("");t["s-nr"]=e,st(e.parentNode,e["s-ol"]=t,e)}}for(const t of ot){const e=t.j,r=t.O;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),st(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}I&&M(a.$),f.o&=-2,ot.length=0,P=void 0})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},ht=t=>{const e=t.$hostElement$,n=t.C;pt(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,vt(e),t.R(e),n||mt()),t.k&&(t.k(),t.k=void 0),512&t.o&&b((()=>rt(t,!1))),t.o&=-517},mt=()=>{b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"general-styling-wrapper"}});return t.dispatchEvent(e),e})(c)))},pt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},vt=t=>t.classList.add("hydrated"),yt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.L.get(e),r=s.o,c=s.t;o=B(o,l.A[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.L.set(e,o),c&&2==(18&r)&&rt(s,!1))},$t=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).L.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.L.get(t)?s=i.L.get(t):!i.L.get(t)&&n&&i.L.set(t,n),r.call(this,B(s,l)),void yt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return yt(this,t,s,e),void(1&o&&!i.t&&i.F.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.L.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.L.get(t)&&n&&i.L.set(t,n),i.t[t]=B(s,l),yt(this,t,i.t[t],e)};i.t?n():i.F.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.N)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.N)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},bt=(t,o={})=>{var a;const h=[],m=o.exclude||[],p=c.customElements,v=u.head,y=v.querySelector("meta[charset]"),$=u.createElement("style"),b=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const r={o:o[0],S:o[1],A:o[2],B:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.S,a=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,M:n,L:new Map};o.F=new Promise((t=>o.R=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,r)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.M,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.F)&&e.F.then((()=>{}));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=u.createComment("");e["s-cn"]=!0,st(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){it(e,e.C=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.D){const i=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.D;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${e.H}" was not found`);o.isProxied||($t(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=W(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.C,c=()=>rt(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.F)&&e.F.then((()=>{}))}H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.P)?void 0:t.$)instanceof Node&&!e.P.$.isConnected&&delete e.P.$}))}componentOnReady(){return n(this).F}};r.D=t[0],m.includes(c)||p.get(c)||(h.push(c),p.define(c,$t(a,r,1)))}))})),h.length>0&&(j&&($.textContent+=r),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(a=f.T)?a:g(u);null!=t&&$.setAttribute("nonce",t),v.insertBefore($,y?y.nextSibling:v.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):f.jmp((()=>w=setTimeout(mt,30)))},wt=t=>f.T=t;export{bt as b,D as g,A as h,a as p,o as r,wt as s}
@@ -1 +0,0 @@
1
- import{r as t,h as s,g as e}from"./p-4bf9aa97.js";const i=class{constructor(s){t(this,s),this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.el.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),s=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{s.innerHTML=t,setTimeout((()=>{this.el.prepend(s)}),1)})).catch((t=>{console.log("error ",t)}))}}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const t=[];if(this.translationUrl){const i=(s=this.translationUrl,e=this.targetTranslations,new Promise((t=>{fetch(s).then((t=>t.json())).then((s=>{Object.keys(s).forEach((t=>{e[t]=e[t]?e[t]:{};for(let i in s[t])e[t][i]=s[t][i]})),t(!0)}))})));t.push(i)}var s,e;return await Promise.all(t)}render(){return s("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},s("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return e(this)}};i.style=":host{display:block}";export{i as general_styling_wrapper}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;