@coveops/abi 1.5.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/abi/abi.css +206 -1
  2. package/dist/abi/abi.esm.js +129 -1
  3. package/dist/abi/app-globals-0f993ce5.js +3 -0
  4. package/dist/abi/css-shim-04165e59.js +4 -0
  5. package/dist/abi/dom-26e7cb2c.js +73 -0
  6. package/dist/{esm → abi}/faq-popup-component.entry.js +3 -4
  7. package/dist/abi/headless.esm-c328011d.js +72 -0
  8. package/dist/abi/index-4c45f50c.js +3064 -0
  9. package/dist/abi/index-bf9cad6e.js +4108 -0
  10. package/dist/abi/index.esm.js +168 -1
  11. package/dist/{esm → abi}/recs-initialization-helper.entry.js +3 -3
  12. package/dist/{esm → abi}/recs-results-manager.entry.js +1 -1
  13. package/dist/{esm → abi}/results-manager.entry.js +1 -1
  14. package/dist/{esm → abi}/sample-component.entry.js +3 -3
  15. package/dist/abi/shadow-css-1257b266.js +387 -0
  16. package/dist/{esm → abi}/standalone-searchbox-listener.entry.js +3 -3
  17. package/dist/{esm → abi}/strip-html-component.entry.js +2 -3
  18. package/package.json +2 -2
  19. package/dist/abi/p-380ced38.entry.js +0 -1
  20. package/dist/abi/p-9d42030c.entry.js +0 -1
  21. package/dist/abi/p-ac870f21.js +0 -49
  22. package/dist/abi/p-b09970bf.entry.js +0 -1
  23. package/dist/abi/p-b83bab81.js +0 -1
  24. package/dist/abi/p-c0436bc1.entry.js +0 -1
  25. package/dist/abi/p-c10b6b7f.js +0 -2
  26. package/dist/abi/p-c602c74e.entry.js +0 -1
  27. package/dist/abi/p-c82303fb.js +0 -1
  28. package/dist/abi/p-cd1744bb.entry.js +0 -1
  29. package/dist/abi/p-d20ee37c.js +0 -18
  30. package/dist/abi/p-d5e62885.entry.js +0 -1
  31. package/dist/bundle/index.css +0 -1
  32. package/dist/bundle/index.html +0 -72
  33. package/dist/bundle/index.js +0 -1363
  34. package/dist/cjs/abi.cjs.js +0 -19
  35. package/dist/cjs/atomic-70a93c69.js +0 -11
  36. package/dist/cjs/faq-popup-component.cjs.entry.js +0 -144
  37. package/dist/cjs/headless.esm-085e70ed-f2e18485.js +0 -1720
  38. package/dist/cjs/index-3cecd23d.js +0 -1283
  39. package/dist/cjs/index-d1493bab.js +0 -105
  40. package/dist/cjs/index.cjs.js +0 -170
  41. package/dist/cjs/loader.cjs.js +0 -21
  42. package/dist/cjs/recs-initialization-helper.cjs.entry.js +0 -55
  43. package/dist/cjs/recs-results-manager.cjs.entry.js +0 -36
  44. package/dist/cjs/result-template-decorators-881a4c8e-4ff46481.js +0 -33
  45. package/dist/cjs/results-manager.cjs.entry.js +0 -42
  46. package/dist/cjs/sample-component.cjs.entry.js +0 -87
  47. package/dist/cjs/standalone-searchbox-listener.cjs.entry.js +0 -48
  48. package/dist/cjs/strip-html-component.cjs.entry.js +0 -60
  49. package/dist/collection/collection-manifest.json +0 -23
  50. package/dist/collection/components/faq-popup-component/faq-popup-component.css +0 -15
  51. package/dist/collection/components/faq-popup-component/faq-popup-component.js +0 -162
  52. package/dist/collection/components/recs-initialization-helper/recs-initialization-helper.js +0 -66
  53. package/dist/collection/components/recs-results-manager/recs-results-manager.js +0 -39
  54. package/dist/collection/components/results-manager/results-manager.js +0 -50
  55. package/dist/collection/components/sample-component/sample-component.css +0 -10
  56. package/dist/collection/components/sample-component/sample-component.js +0 -102
  57. package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.css +0 -1
  58. package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.js +0 -50
  59. package/dist/collection/components/strip-html-component/strip-html-component.css +0 -3
  60. package/dist/collection/components/strip-html-component/strip-html-component.js +0 -64
  61. package/dist/collection/images/Default.png +0 -0
  62. package/dist/collection/images/Documents.png +0 -0
  63. package/dist/collection/images/FAQ.png +0 -0
  64. package/dist/collection/images/Images.png +0 -0
  65. package/dist/collection/images/Link.png +0 -0
  66. package/dist/collection/images/Movies.png +0 -0
  67. package/dist/collection/images/ProcessPeople.png +0 -0
  68. package/dist/collection/index.js +0 -167
  69. package/dist/collection/utils/atomic.js +0 -6
  70. package/dist/components/index.js +0 -3576
  71. package/dist/esm/abi.js +0 -17
  72. package/dist/esm/headless.esm-085e70ed-c4dfb380.js +0 -1717
  73. package/dist/esm/index-072be88f.js +0 -95
  74. package/dist/esm/index-66fdbb35.js +0 -1255
  75. package/dist/esm/index.js +0 -168
  76. package/dist/esm/loader.js +0 -17
  77. package/dist/esm/polyfills/core-js.js +0 -11
  78. package/dist/esm/polyfills/css-shim.js +0 -1
  79. package/dist/esm/polyfills/dom.js +0 -79
  80. package/dist/esm/polyfills/es5-html-element.js +0 -1
  81. package/dist/esm/polyfills/index.js +0 -34
  82. package/dist/esm/polyfills/system.js +0 -6
  83. package/dist/esm/result-template-decorators-881a4c8e-ed85ad21.js +0 -31
  84. package/dist/index.cjs.js +0 -1
  85. package/dist/index.js +0 -1
  86. package/dist/loader/cdn.js +0 -3
  87. package/dist/loader/index.cjs.js +0 -3
  88. package/dist/loader/index.d.ts +0 -12
  89. package/dist/loader/index.es2017.js +0 -3
  90. package/dist/loader/index.js +0 -4
  91. package/dist/loader/package.json +0 -10
  92. /package/dist/{esm → abi}/atomic-7b1e6d55.js +0 -0
@@ -1 +0,0 @@
1
- import{r as t,g as e}from"./p-c10b6b7f.js";import{i as s,Q as o}from"./p-ac870f21.js";import{w as a}from"./p-c82303fb.js";import"./p-d20ee37c.js";const c=class{constructor(e){t(this,e)}async connectedCallback(){var t;try{await a(),this.bindings=await s(this.host);let e=(new Date).toISOString(),c=new Date;1==c.getMonth()?(c.setMonth(12),c.setFullYear(c.getFullYear()-1)):c.setMonth(c.getMonth()-1);let i=encodeURIComponent(`(clicks.c_context_user_country_snow=='${this.userCountry}')`),n=`https://${null===(t=this.bindings)||void 0===t?void 0:t.engine.state.configuration.organizationId}.admin.org.coveo.com/rest/ua/v15/stats/combinedData?from=${c.toISOString()}&to=${e}&m=DocumentView&d=documentTitle&d=documentURL&d=clicks.c_context_user_country_snow&d=documentSysUriHash&f=${i}&p=1&n=10&s=DocumentView&asc=false&includeMetadata=true`;const r=new Headers;r.append("authorization","Bearer xxf42da36f-db11-4565-8358-8bac8c307236");const d={method:"GET",headers:r};let m=await fetch(n,d);if(m=await m.json(),m.combinations.length>0){let t=m.combinations.map((t=>t.documentSysUriHash));o(this.bindings.engine).add("dqExp",t),this.bindings.interfaceElement.getRecommendations()}else this.bindings.interfaceElement.style.display="none"}catch(t){console.error(t)}}get host(){return e(this)}};export{c as recs_initialization_helper}
@@ -1 +0,0 @@
1
- import{b as e,c as t}from"./p-d20ee37c.js";class r extends Error{constructor(e){super(`The "${e}" element must be the child of an "atomic-result" element.`)}}function s(s){return new Promise(((o,c)=>{const n=e("atomic/resolveResult",(e=>o(e)));s.dispatchEvent(n),t(s,"atomic-result")||c(new r(s.nodeName.toLowerCase()))}))}export{s as r}
@@ -1 +0,0 @@
1
- import{r as t,h as n}from"./p-c10b6b7f.js";import{a as e}from"./p-c82303fb.js";const i=class{constructor(n){t(this,n)}async componentWillLoad(){return e()}render(){return n("atomic-recs-list",{"number-of-recommendations":"5"},n("atomic-recs-result-template",{"must-match-abicontenttype":"FAQ"},n("template",{innerHTML:"\n<style>\n atomic-result-link{\n font-size: 1.3rem !important;\n color: #626971 !important;\n }\n faq-popup-component{\n font-size: 1.3rem; color: #626971 !important; \n }\n faq-popup-component:hover{\n text-decoration: underline; \n }\n hr {\n margin-top: 10px !important;\n }\n</style> \n<faq-popup-component></faq-popup-component>\n<hr>\n "})),n("atomic-recs-result-template",{"must-match-abicontenttype":"Quick Links"},n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n</style>\n\n\n<atomic-result-section-title>\n <atomic-result-link href-template="${raw.sfppcustomlinkcpplinkurlc}"><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n</atomic-result-section-title>'})),n("atomic-recs-result-template",{"must-match-abicontenttype":"Site Pages"},n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n </style>\n <atomic-result-section-title>\n <atomic-result-link><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n </atomic-result-section-title>'})),n("atomic-recs-result-template",{"must-match-abicontenttype":"Knowledge Article"},n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n </style>\n <atomic-result-section-title>\n <atomic-result-link><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n </atomic-result-section-title>'})),n("atomic-recs-result-template",{"must-match-abicontenttype":"Application"},n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n </style>\n <atomic-result-section-title>\n <atomic-result-link href-template="${raw.sfppcustomlinkcpplinkurlc}"><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n </atomic-result-section-title>'})),n("atomic-recs-result-template",{"must-match-abicontenttype":"eLearning"},n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n </style>\n <atomic-result-section-title>\n <atomic-result-link><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n </atomic-result-section-title>'})),n("atomic-recs-result-template",{"must-match-abicontenttype":"Documents"},n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n </style>\n <atomic-result-section-title>\n <atomic-result-link><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n </atomic-result-section-title>'})),n("atomic-recs-result-template",null,n("template",{innerHTML:'<style>\n atomic-result-link a {\n font-size: 1.3rem;\n color: #626971 !important;\n }\n hr {\n margin-top: 10px !important;\n }\n</style>\n<atomic-result-section-title>\n <atomic-result-link><a slot="attributes" target="_blank"></a>\n </atomic-result-link>\n <hr>\n</atomic-result-section-title>'})))}};export{i as recs_results_manager}
@@ -1,2 +0,0 @@
1
- let t,e,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},c={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},r=t=>Promise.resolve(t),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),u=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=f(t,n),r=a(e,s),i=h(n);c.ael(o,l,r,i),(e.o=e.o||[]).push((()=>c.rel(o,l,r,i)))}))},a=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){K(t)}},f=(t,e)=>8&e?s:t,h=t=>0!=(2&t),y=new WeakMap,$=t=>"sc-"+t.h,d={},p=t=>"object"==(t=typeof t)||"function"===t,m=(t,e,...n)=>{let l=null,s=!1,o=!1;const c=[],r=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!p(l))&&(l+=""),s&&o?c[c.length-1].$+=l:c.push(s?w(null,l):l),o=s)};if(r(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const i=w(t,null);return i.p=e,c.length>0&&(i.m=c),i},w=(t,e)=>({t:0,g:t,$:e,v:null,m:null,p:null}),b={},g=(t,e,n,l,o,r)=>{if(n!==l){let i=J(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,s=S(n),o=S(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(i||"o"!==e[0]||"n"!==e[1]){const s=p(l);if((i||s&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||o)&&!s&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):J(s,u)?u.slice(2):u[2]+e.slice(3),n&&c.rel(t,e,n,!1),l&&c.ael(t,e,l,!1)}},v=/\s/,S=t=>t?t.split(v):[],j=(t,e,n,l)=>{const s=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.p||d,c=e.p||d;for(l in o)l in c||g(s,l,o[l],void 0,n,e.t);for(l in c)g(s,l,o[l],c[l],n,e.t)},O=(e,l,s)=>{const c=l.m[s];let r,i,u=0;if(null!==c.$)r=c.v=o.createTextNode(c.$);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!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),c.m)for(u=0;u<c.m.length;++u)i=O(e,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},k=(t,n,l,s,o,c)=>{let r,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=O(null,l,o),r&&(s[o].v=r,i.insertBefore(r,n)))},C=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.v.remove()},M=(t,e)=>t.g===e.g,x=(t,e)=>{const l=e.v=t.v,s=t.m,o=e.m,c=e.g,r=e.$;null===r?(n="svg"===c||"foreignObject"!==c&&n,j(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,c=0,r=e.length-1,i=e[0],u=e[r],a=l.length-1,f=l[0],h=l[a];for(;o<=r&&c<=a;)null==i?i=e[++o]:null==u?u=e[--r]:null==f?f=l[++c]:null==h?h=l[--a]:M(i,f)?(x(i,f),i=e[++o],f=l[++c]):M(u,h)?(x(u,h),u=e[--r],h=l[--a]):M(i,h)?(x(i,h),t.insertBefore(i.v,u.v.nextSibling),i=e[++o],h=l[--a]):M(u,f)?(x(u,f),t.insertBefore(u.v,i.v),u=e[--r],f=l[++c]):(s=O(e&&e[c],n,c),f=l[++c],s&&i.v.parentNode.insertBefore(s,i.v));o>r?k(t,null==l[a+1]?null:l[a+1].v,n,l,c,a):c>a&&C(e,o,r)})(l,s,e,o):null!==o?(null!==t.$&&(l.textContent=""),k(l,null,e,o,0,o.length-1)):null!==s&&C(s,0,s.length-1),n&&"svg"===c&&(n=!1)):t.$!==r&&(l.data=r)},P=t=>D(t).S,E=(t,e)=>{e&&!t.j&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.j=e)))},L=(t,e)=>{if(t.t|=16,!(4&t.t))return E(t,t.O),ot((()=>N(t,e)));t.t|=512},N=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>U(n,t,e))),t.u=null),l=U(n,"componentWillLoad")),q(l,(()=>T(t,n,e)))},T=async(t,e,n)=>{const l=t.S,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.S,l=e.t,s=((t,e)=>{let n=$(e);const l=Y.get(n);if(t=11===t.nodeType?t:o,l)if("string"==typeof l){let e,s=y.get(t=t.head||t);s||y.set(t,s=new Set),s.has(n)||(e=o.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);W(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>A(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},W=(n,l)=>{try{l=l.render&&l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.C||w(null,null),c=(t=>t&&t.g===b)(l)?l:m(null,null,l);e=s.tagName,c.g=null,c.t|=4,n.C=c,c.v=o.v=s.shadowRoot||s,t=s["s-sc"],x(o,c)})(n,l)}catch(t){K(t,n.S)}return null},A=t=>{const e=t.S,n=t.O;64&t.t||(t.t|=64,F(e),t.M(e),n||R()),t.j&&(t.j(),t.j=void 0),512&t.t&&st((()=>L(t,!1))),t.t&=-517},H=t=>{{const e=D(t),n=e.S.isConnected;return n&&2==(18&e.t)&&L(e,!1),n}},R=()=>{F(o.documentElement),st((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"abi"}});return t.dispatchEvent(e),e})(s)))},U=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){K(t)}},q=(t,e)=>t&&t.then?t.then(e):e(),F=t=>t.classList.add("hydrated"),V=(t,e,n)=>{if(e.P){const l=Object.entries(e.P),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>D(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=D(t),o=s.L.get(e),c=s.t,r=s.i;n=((t,e)=>null==t||p(t)?t:1&e?t+"":t)(n,l.P[e][0]),8&c&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(e,n),r&&2==(18&c)&&L(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){c.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},_=t=>{U(t,"connectedCallback")},z=(t,e={})=>{const n=[],l=e.exclude||[],r=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),y=[];let d,p=!0;Object.assign(c,e),c.l=new URL(e.resourcesUrl||"./",o.baseURI).href,t.map((t=>{t[1].map((e=>{const s={t:e[0],h:e[1],P:e[2],N:e[3]};s.P=e[2],s.N=e[3];const o=s.h,a=class extends HTMLElement{constructor(t){super(t),I(t=this,s),1&s.t&&t.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?y.push(this):c.jmp((()=>(t=>{if(0==(1&c.t)){const e=D(t),n=e.k,l=()=>{};if(1&e.t)u(t,e,n.N),_(e.i);else{e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(e,e.O=n);break}}n.P&&Object.entries(n.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=X(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(V(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){K(t)}e.t&=-9,t(),_(e.i)}if(s.style){let t=s.style;const e=$(n);if(!Y.has(e)){const l=()=>{};((t,e,n)=>{let l=Y.get(t);i&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,Y.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.O,c=()=>L(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){c.jmp((()=>(()=>{if(0==(1&c.t)){const t=D(this),e=t.i;t.o&&(t.o.map((t=>t())),t.o=void 0),U(e,"disconnectedCallback")}})()))}componentOnReady(){return D(this).T}};s.W=t[0],l.includes(o)||r.get(o)||(n.push(o),r.define(o,V(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,y.length?y.map((t=>t.connectedCallback())):c.jmp((()=>d=setTimeout(R,30)))},B=new WeakMap,D=t=>B.get(t),G=(t,e)=>B.set(e.i=t,e),I=(t,e)=>{const n={t:0,S:t,k:e,L:new Map};return n.T=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[],u(t,n,e.N),B.set(t,n)},J=(t,e)=>e in t,K=(t,e)=>(0,console.error)(t,e),Q=new Map,X=t=>{const e=t.h.replace(/-/g,"_"),n=t.W,l=Q.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(Q.set(n,t),t[e])),K)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z=[],tt=[],et=(t,e)=>n=>{t.push(n),l||(l=!0,e&&4&c.t?st(lt):c.raf(lt))},nt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){K(t)}t.length=0},lt=()=>{nt(Z),nt(tt),(l=Z.length>0)&&c.raf(lt)},st=t=>r().then(t),ot=et(tt,!0);export{b as H,z as b,H as f,P as g,m as h,r as p,G as r}
@@ -1 +0,0 @@
1
- import{r as i,h as s,g as o,H as t}from"./p-c10b6b7f.js";import{i as l,f as a,a as n,m as r,$ as e}from"./p-ac870f21.js";import{w as d}from"./p-c82303fb.js";import"./p-d20ee37c.js";const c=class{constructor(s){i(this,s)}async connectedCallback(){var i;try{await d(),this.bindings=await l(this.host),null===(i=this.bindings)||void 0===i||i.i18n.addResourceBundle("en","translation",{"search-tips":"You may want to try using different keywords or checking for spelling mistakes."})}catch(i){console.error(i)}}async handleStandaloneSearchbox(i){var s,o,t,l,d,c,v,h,u,p;let f=a(null===(s=this.bindings)||void 0===s?void 0:s.engine);null===(t=null===(o=this.bindings)||void 0===o?void 0:o.engine)||void 0===t||t.dispatch(f.updateQuery({q:i.detail}));let m=n(null===(l=this.bindings)||void 0===l?void 0:l.engine);null===(c=null===(d=this.bindings)||void 0===d?void 0:d.engine)||void 0===c||c.dispatch(m.updatePage(1));let b=r(null===(v=this.bindings)||void 0===v?void 0:v.engine),y=e(null===(h=this.bindings)||void 0===h?void 0:h.engine);null===(p=null===(u=this.bindings)||void 0===u?void 0:u.engine)||void 0===p||p.dispatch(y.executeSearch(b.logSearchboxSubmit()))}render(){return s(t,null)}get host(){return o(this)}};c.style="";export{c as standalone_searchbox_listener}
@@ -1 +0,0 @@
1
- function e(){return customElements.whenDefined("atomic-search-interface")}function t(){return customElements.whenDefined("atomic-recs-interface")}export{t as a,e as w}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as r}from"./p-c10b6b7f.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}