@coveops/abi 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi/abi.esm.js +1 -1
- package/dist/abi/index.esm.js +1 -1
- package/dist/abi/p-1fd19815.entry.js +1 -0
- package/dist/abi/{p-9f80f982.entry.js → p-3303b27f.entry.js} +1 -1
- package/dist/abi/p-50003f11.entry.js +1 -0
- package/dist/abi/p-cd8cdf0e.entry.js +1 -0
- package/dist/abi/p-d6d34d34.js +2 -0
- package/dist/abi/{p-dca22988.entry.js → p-dd8b0f76.entry.js} +1 -1
- package/dist/abi/p-ddacae1a.js +49 -0
- package/dist/bundle/index.html +64 -57
- package/dist/bundle/index.js +17 -17
- package/dist/cjs/abi.cjs.js +2 -2
- package/dist/cjs/faq-popup-component.cjs.entry.js +39 -6
- package/dist/cjs/{index-87155b50.js → index-355878fc.js} +55 -0
- package/dist/cjs/{index-03be0841.js → index-8f6652e1.js} +4 -1
- package/dist/cjs/index.cjs.js +27 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/results-manager.cjs.entry.js +1 -1
- package/dist/cjs/sample-component.cjs.entry.js +2 -2
- package/dist/cjs/standalone-searchbox-listener.cjs.entry.js +43 -0
- package/dist/cjs/strip-html-component.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/faq-popup-component/faq-popup-component.js +37 -4
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.js +45 -0
- package/dist/collection/index.js +26 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +148 -9
- package/dist/esm/abi.js +2 -2
- package/dist/esm/faq-popup-component.entry.js +39 -6
- package/dist/esm/{index-99665e7c.js → index-3c594d24.js} +55 -0
- package/dist/esm/{index-42e9a708.js → index-886ab6f0.js} +2 -2
- package/dist/esm/index.js +27 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/results-manager.entry.js +1 -1
- package/dist/esm/sample-component.entry.js +2 -2
- package/dist/esm/standalone-searchbox-listener.entry.js +39 -0
- package/dist/esm/strip-html-component.entry.js +1 -1
- package/dist/types/components/standalone-searchbox-listener/standalone-searchbox-listener.d.ts +7 -0
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/faq-popup-component/faq-popup-component.tsx +34 -1
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.tsx +52 -0
- package/src/components.d.ts +13 -0
- package/src/index.ts +29 -1
- package/src/pages/index.html +64 -57
- package/dist/abi/p-0f4a7ce9.js +0 -49
- package/dist/abi/p-211c1e78.entry.js +0 -1
- package/dist/abi/p-e7416b40.entry.js +0 -1
- package/dist/abi/p-facfefe1.js +0 -2
package/dist/abi/abi.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as t}from"./p-d6d34d34.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-cd8cdf0e",[[1,"faq-popup-component",{result:[32]}]]],["p-dd8b0f76",[[0,"results-manager"]]],["p-1fd19815",[[1,"sample-component",{pagerState:[32],statusState:[32]}]]],["p-50003f11",[[1,"standalone-searchbox-listener",null,[[8,"header/searchbox/query","handleStandaloneSearchbox"]]]]],["p-3303b27f",[[1,"strip-html-component",{result:[32]}]]]],e)));
|
package/dist/abi/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as e}from"./p-38555fec.js";!async function(){await e();const a=document.querySelector("
|
|
1
|
+
import{w as e}from"./p-38555fec.js";!async function(){await e();const a=document.querySelector("#search"),r=document.querySelector("#searchbox"),o="https://platform.cloud.coveo.com",c="anheuserbuschinbevprod",n="xf75e8727-ecce-4f14-afea-19a62c17334c";await a.initialize({accessToken:n,organizationId:c,platformUrl:o,preprocessRequest:(e,a,r)=>{if("searchApiFetch"==a&&"search"==(null==r?void 0:r.method)){e.url+="&viewAllContent=1";var o=JSON.parse(e.body);o.context={user_country_snow:"CZ"},e.body=JSON.stringify(o)}return e}}),a.executeFirstSearch(),await r.initialize({accessToken:n,organizationId:c,platformUrl:o,preprocessRequest:(e,a,r)=>{if("searchApiFetch"==a&&"search"==(null==r?void 0:r.method)){e.url+="&viewAllContent=1";var o=JSON.parse(e.body);o.context={user_country_snow:"CZ"};var c=new CustomEvent("header/searchbox/query",{detail:o.q||""});window.dispatchEvent(c),e.body=JSON.stringify(o)}return e},analytics:{enabled:!1}})}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as s,f as o}from"./p-d6d34d34.js";import{i as n,n as a,D as e}from"./p-ddacae1a.js";import{w as h}from"./p-38555fec.js";import"./p-d20ee37c.js";const r=class{constructor(i){t(this,i),this.pagerUnsubscribe=()=>{},this.statusUnsubscribe=()=>{},this.i18nUnsubscribe=()=>{}}async connectedCallback(){try{await h(),this.bindings=await n(this.host);const t=a(this.bindings.engine);this.pagerController=e(this.bindings.engine),this.statusUnsubscribe=t.subscribe((()=>this.statusState=t.state)),this.pagerUnsubscribe=this.pagerController.subscribe((()=>this.pagerState=this.pagerController.state));const i=()=>o(this);this.bindings.i18n.on("languageChanged",i),this.i18nUnsubscribe=()=>this.bindings.i18n.off("languageChanged",i)}catch(t){console.error(t),this.error=t}}disconnectedCallback(){this.pagerUnsubscribe(),this.statusUnsubscribe(),this.i18nUnsubscribe()}get pages(){return this.pagerState.currentPages.map((t=>this.buildPage(t)))}buildPage(t){const s=this.pagerController.isCurrentPage(t);return i("button",{onClick:()=>{this.pagerController.selectPage(t)}},s?"✓ ":"",t.toLocaleString(this.bindings.i18n.language))}get previous(){return i("button",{onClick:()=>{this.pagerController.previousPage()}},i("atomic-text",{value:"previous"}))}get next(){return i("button",{onClick:()=>{this.pagerController.nextPage()}},i("atomic-text",{value:"next"}))}render(){return this.error?i("p",null,"Error when initializing the component, please view the console for more information."):this.bindings&&this.statusState.hasResults?i("nav",null,this.pagerState.hasPreviousPage&&this.previous,this.pages,this.pagerState.hasNextPage&&this.next):void 0}get host(){return s(this)}};r.style="nav{width:300px;display:flex;justify-content:space-around}button{color:var(--atomic-on-primary);background-color:var(--atomic-primary)}";export{r as sample_component}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as r}from"./p-
|
|
1
|
+
import{r as t,h as i,g as r}from"./p-d6d34d34.js";import"./p-d20ee37c.js";import{r as s}from"./p-b83bab81.js";const e=class{constructor(i){t(this,i)}async connectedCallback(){try{this.result=await s(this.host)}catch(t){console.error(t),this.host.remove()}}stripHtmlAndEntities(t){var i=document.createElement("div");return i.innerHTML=t,(i.textContent||i.innerText||"").replace(/&#(\d+);/g,((t,i)=>String.fromCharCode(i)))}render(){if(!this.result)return;let t;t="Quick Links"==this.result.raw.abicontenttype?this.result.excerpt||"No description available":this.result.raw.description;let r="";return"string"==typeof t&&(r=this.stripHtmlAndEntities(t)),i("div",{style:{fontSize:"1.3rem",maxHeight:"none",lineHeight:"normal"}},r)}get host(){return r(this)}};e.style="b{color:var(--atomic-primary)}";export{e as strip_html_component}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as o,g as t,H as a}from"./p-d6d34d34.js";import{i,f as l,m as n,$ as d}from"./p-ddacae1a.js";import{w as e}from"./p-38555fec.js";import"./p-d20ee37c.js";const r=class{constructor(o){s(this,o)}async connectedCallback(){try{await e(),this.bindings=await i(this.host)}catch(s){console.error(s)}}async handleStandaloneSearchbox(s){var o,t,a,i,e,r,c;let h=l(null===(o=this.bindings)||void 0===o?void 0:o.engine);null===(a=null===(t=this.bindings)||void 0===t?void 0:t.engine)||void 0===a||a.dispatch(h.updateQuery({q:s.detail}));let v=n(null===(i=this.bindings)||void 0===i?void 0:i.engine),u=d(null===(e=this.bindings)||void 0===e?void 0:e.engine);null===(c=null===(r=this.bindings)||void 0===r?void 0:r.engine)||void 0===c||c.dispatch(u.executeSearch(v.logSearchboxSubmit()))}render(){return o(a,null)}get host(){return t(this)}};r.style="";export{r as standalone_searchbox_listener}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as o,H as s}from"./p-d6d34d34.js";import{i as e,F as n}from"./p-ddacae1a.js";import{r as d}from"./p-b83bab81.js";import"./p-d20ee37c.js";const h=class{constructor(i){t(this,i),this.closeFAQModal=()=>{this.modalElement.setAttribute("is-open","false"),this.modalElement.querySelector("#btn-done").removeEventListener("click",this.closeFAQModal)}}async connectedCallback(){var t;try{this.bindings=await e(this.host),this.result=await d(this.host),this.modalElement=null===(t=this.bindings)||void 0===t?void 0:t.interfaceElement.querySelector("#faq-modal"),this.result&&localStorage.getItem(`visited-${this.result.title}`)&&this.host.classList.add("visited-title")}catch(t){console.error(t),this.host.remove()}}openFAQModal(t){var i,o,s,e,d,h,a;if(this.bindings){const{logClickEvent:i}=n(this.bindings.engine);this.bindings.engine.dispatch(i({evt:"documentQuickview",result:t}))}this.modalElement.source=this.host;const l=this.modalElement.querySelector("[slot=body]");l.innerHTML="";const r=document.createElement("table"),c=document.createElement("tr");c.className="question-row",c.innerHTML="<td>Question: </td> <td>"+((null===(i=this.result)||void 0===i?void 0:i.title)||"")+'</td><div id="faq-modal-close-button"><svg width="48" height="49" viewBox="0 0 48 49" fill="black" xmlns="http://www.w3.org/2000/svg"><rect y="0.5" width="48" height="48" rx="24" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.5382 24.5L15 16.9618L16.4618 15.5L24 23.0382L31.5382 15.5L33 16.9618L25.4618 24.5L33 32.0382L31.5382 33.5L24 25.9618L16.4618 33.5L15 32.0382L22.5382 24.5Z" fill="#17171A"/></svg></div>',r.appendChild(c);const v=document.createElement("tr"),u=document.createElement("td");u.innerText="Answer:",v.appendChild(u);const m=document.createElement("td");if(null===(s=null===(o=this.result)||void 0===o?void 0:o.raw)||void 0===s?void 0:s.answer){let t=null===(d=null===(e=this.result)||void 0===e?void 0:e.raw)||void 0===d?void 0:d.answer;try{var p=(new DOMParser).parseFromString(t,"text/html"),w="";Array.from(p.children).forEach((t=>{var i;t.querySelectorAll("a").forEach((t=>{t.href.startsWith(window.location.origin)&&t.href.indexOf("/sites/")>-1&&(t.href=t.href.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com")),t.href.startsWith(window.location.origin)&&t.href.match(/:.:\/./)&&(t.href=t.href.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com"))})),t.querySelectorAll("img").forEach((t=>{t.src.startsWith(window.location.origin)&&t.src.indexOf("/sites/")>-1&&(t.src=t.src.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com")),t.src.startsWith(window.location.origin)&&t.src.match(/:.:\/./)&&(t.src=t.src.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com"))})),w+=null===(i=t.querySelector("body"))||void 0===i?void 0:i.innerHTML})),m.innerHTML=w}catch(i){console.log(i),m.innerHTML=t}}if(v.appendChild(m),r.appendChild(v),null===(h=this.result)||void 0===h?void 0:h.raw.category){const t=document.createElement("tr");t.innerHTML="<td> Category: </td><td>"+this.result.raw.category+"</td>",r.appendChild(t)}if(null===(a=this.result)||void 0===a?void 0:a.raw.newmoreinfo){const t=document.createElement("tr"),i=this.result.raw.newmoreinfo;t.innerHTML='<td> Link: </td><td> <a href="'+i+'" target="_blank">'+i+"</a> </td>",r.appendChild(t)}l.appendChild(r),this.modalElement.querySelector("#faq-modal-close-button").addEventListener("click",this.closeFAQModal),this.modalElement.setAttribute("is-open","true"),this.result&&localStorage.setItem(`visited-${this.result.title}`,"true"),this.host.classList.add("visited-title")}render(){if(this.result)return i(s,{className:"clickable-host",onClick:()=>this.openFAQModal(this.result)},this.result.title)}get host(){return o(this)}};h.style="b{color:var(--atomic-primary)}:host{color:#CAA144 !important;font-size:1.7rem !important;max-height:unset !important;line-height:normal !important}";export{h as faq_popup_component}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},c={t:0,l:"",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)},r=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),a=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),r=u(t,s),i=$(n);c.ael(o,l,r,i),(t.o=t.o||[]).push((()=>c.rel(o,l,r,i)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){K(e)}},f=(e,t)=>8&t?s:e,$=e=>0!=(2&e),y=new WeakMap,d=e=>"sc-"+e.$,h={},m=e=>"object"==(e=typeof e)||"function"===e,p=(e,t,...n)=>{let l=null,s=!1,o=!1;const c=[],r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!m(l))&&(l+=""),s&&o?c[c.length-1].h+=l:c.push(s?w(null,l):l),o=s)};if(r(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=w(e,null);return i.m=t,c.length>0&&(i.p=c),i},w=(e,t)=>({t:0,g:e,h:t,v:null,p:null,m:null}),b={},g=(e,t,n,l,o,r)=>{if(n!==l){let i=J(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if(i||"o"!==t[0]||"n"!==t[1]){const s=m(l);if((i||s&&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&r||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):J(s,a)?a.slice(2):a[2]+t.slice(3),n&&c.rel(e,t,n,!1),l&&c.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.m||h,c=t.m||h;for(l in o)l in c||g(s,l,o[l],void 0,n,t.t);for(l in c)g(s,l,o[l],c[l],n,t.t)},k=(t,l,s)=>{const c=l.p[s];let r,i,a=0;if(null!==c.h)r=c.v=o.createTextNode(c.h);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.p)for(a=0;a<c.p.length;++a)i=k(t,c,a),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},C=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=k(null,l,o),r&&(s[o].v=r,i.insertBefore(r,n)))},O=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.v.remove()},M=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.p,o=t.p,c=t.g,r=t.h;null===r?(n="svg"===c||"foreignObject"!==c&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],a=t[r],u=l.length-1,f=l[0],$=l[u];for(;o<=r&&c<=u;)null==i?i=t[++o]:null==a?a=t[--r]:null==f?f=l[++c]:null==$?$=l[--u]:M(i,f)?(x(i,f),i=t[++o],f=l[++c]):M(a,$)?(x(a,$),a=t[--r],$=l[--u]):M(i,$)?(x(i,$),e.insertBefore(i.v,a.v.nextSibling),i=t[++o],$=l[--u]):M(a,f)?(x(a,f),e.insertBefore(a.v,i.v),a=t[--r],f=l[++c]):(s=k(t&&t[c],n,c),f=l[++c],s&&i.v.parentNode.insertBefore(s,i.v));o>r?C(e,null==l[u+1]?null:l[u+1].v,n,l,c,u):c>u&&O(t,o,r)})(l,s,t,o):null!==o?(null!==e.h&&(l.textContent=""),C(l,null,t,o,0,o.length-1)):null!==s&&O(s,0,s.length-1),n&&"svg"===c&&(n=!1)):e.h!==r&&(l.data=r)},P=e=>D(e).S,E=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},L=(e,t)=>{if(e.t|=16,!(4&e.t))return E(e,e.k),oe((()=>N(e,t)));e.t|=512},N=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>T(e,n,t)))},T=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.S,l=t.t,s=((e,t)=>{let n=d(t);const l=Y.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=y.get(e=e.head||e);s||y.set(e,s=new Set),s.has(n)||(t=o.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"))})(e);W(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>A(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},W=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.O||w(null,null),c=(e=>e&&e.g===b)(l)?l:p(null,null,l);t=s.tagName,c.g=null,c.t|=4,n.O=c,c.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,c)})(n,l)}catch(e){K(e,n.S)}return null},A=e=>{const t=e.S,n=e.k;64&e.t||(e.t|=64,F(t),e.M(t),n||R()),e.j&&(e.j(),e.j=void 0),512&e.t&&se((()=>L(e,!1))),e.t&=-517},H=e=>{{const t=D(e),n=t.S.isConnected;return n&&2==(18&t.t)&&L(t,!1),n}},R=()=>{F(o.documentElement),se((()=>(e=>{const t=c.ce("appload",{detail:{namespace:"abi"}});return e.dispatchEvent(t),t})(s)))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){K(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),F=e=>e.classList.add("hydrated"),V=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(s,e,{get(){return((e,t)=>D(this).L.get(t))(0,e)},set(t){((e,t,n)=>{const l=D(e),s=l.L.get(t),o=l.t,c=l.i;n=(e=>(null==e||m(e),e))(n),8&o&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(l.L.set(t,n),c&&2==(18&o)&&L(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})}))}return e},_=e=>{U(e,"connectedCallback")},z=(e,t={})=>{const n=[],l=t.exclude||[],r=s.customElements,u=o.head,f=u.querySelector("meta[charset]"),$=o.createElement("style"),y=[];let h,m=!0;Object.assign(c,t),c.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.$,u=class extends HTMLElement{constructor(e){super(e),I(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?y.push(this):c.jmp((()=>(e=>{if(0==(1&c.t)){const t=D(e),n=t.C,l=()=>{};if(1&t.t)a(e,t,n.N),_(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.k=n);break}}(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=X(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(V(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){K(e)}t.t&=-9,e(),_(t.i)}if(s.style){let e=s.style;const t=d(n);if(!Y.has(t)){const l=()=>{};((e,t,n)=>{let l=Y.get(e);i&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,Y.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.k,c=()=>L(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){c.jmp((()=>(()=>{if(0==(1&c.t)){const e=D(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),U(t,"disconnectedCallback")}})()))}componentOnReady(){return D(this).T}};s.W=e[0],l.includes(o)||r.get(o)||(n.push(o),r.define(o,V(u,s,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),u.insertBefore($,f?f.nextSibling:u.firstChild),m=!1,y.length?y.map((e=>e.connectedCallback())):c.jmp((()=>h=setTimeout(R,30)))},B=new WeakMap,D=e=>B.get(e),G=(e,t)=>B.set(t.i=e,t),I=(e,t)=>{const n={t:0,S:e,C:t,L:new Map};return n.T=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[],a(e,n,t.N),B.set(e,n)},J=(e,t)=>t in e,K=(e,t)=>(0,console.error)(e,t),Q=new Map,X=e=>{const t=e.$.replace(/-/g,"_"),n=e.W,l=Q.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Q.set(n,e),e[t])),K)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z=[],ee=[],te=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&c.t?se(le):c.raf(le))},ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){K(e)}e.length=0},le=()=>{ne(Z),ne(ee),(l=Z.length>0)&&c.raf(le)},se=e=>r().then(e),oe=te(ee,!0);export{b as H,z as b,H as f,P as g,p as h,r as p,G as r}
|