@coveops/abi 1.1.0 → 1.3.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.
- package/dist/abi/abi.esm.js +1 -1
- package/dist/abi/index.esm.js +1 -1
- package/dist/abi/{p-151bed82.entry.js → p-07a6ff58.entry.js} +1 -1
- package/dist/bundle/index.html +1 -1
- package/dist/bundle/index.js +8 -3
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/results-manager.cjs.entry.js +1 -1
- package/dist/collection/index.js +11 -0
- package/dist/components/index.js +12 -1
- package/dist/esm/index.js +11 -0
- package/dist/esm/results-manager.entry.js +1 -1
- package/package.json +1 -1
- package/src/components/results-manager/PeopleSnowTemplate.html +7 -2
- package/src/index.ts +11 -0
- package/src/pages/index.html +1 -1
package/dist/abi/abi.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as
|
|
1
|
+
import{p as e,b as a}from"./p-d6d34d34.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((e=>a([["p-8c974da8",[[1,"faq-popup-component",{result:[32]}]]],["p-07a6ff58",[[0,"results-manager"]]],["p-c058cc61",[[1,"sample-component",{pagerState:[32],statusState:[32]}]]],["p-b267e2bb",[[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,a as n}from"./p-c82303fb.js";!async function(){await e();const o=document.querySelector("#search");o&&async function(e){await e.initialize({accessToken:"x2242b5a3-4f36-44f9-99c7-074b09a262fa",organizationId:"anheuserbuschinbevkmnonprod",platformUrl:"https://platform.cloud.coveo.com",preprocessRequest:(e,n,o)=>{if("searchApiFetch"==n&&"search"==(null==o?void 0:o.method)){e.url+="&viewAllContent=1";var a=JSON.parse(e.body);a.context={user_country_snow:"CZ"},e.body=JSON.stringify(a)}return e}}),e.executeFirstSearch()}(o);const a=document.querySelector("#searchbox");a&&async function(e){await e.initialize({accessToken:"x2242b5a3-4f36-44f9-99c7-074b09a262fa",organizationId:"anheuserbuschinbevkmnonprod",platformUrl:"https://platform.cloud.coveo.com",preprocessRequest:(e,n,o)=>{if("searchApiFetch"==n&&"search"==(null==o?void 0:o.method)){e.url+="&viewAllContent=1";var a=JSON.parse(e.body);a.context={user_country_snow:"CZ"};var c=new CustomEvent("header/searchbox/query",{detail:a.q||""});window.dispatchEvent(c),e.body=JSON.stringify(a)}return e},analytics:{enabled:!1}})}(a),await n(),Array.from(document.querySelectorAll("atomic-recs-interface")).length&&async function(){const e=document.querySelector("#recs");await(null==e?void 0:e.initialize({accessToken:"x2242b5a3-4f36-44f9-99c7-074b09a262fa",organizationId:"anheuserbuschinbevkmnonprod",preprocessRequest:(e,n,o)=>{if("searchApiFetch"==n&&"recommendations"==(null==o?void 0:o.method)){e.url+="&viewAllContent=1";var a=JSON.parse(e.body);a.context={user_country:"CZ",user_country_snow:"CZ"},e.body=JSON.stringify(a)}return e}})),null==e||e.getRecommendations()}()}();
|
|
1
|
+
import{w as e,a as n}from"./p-c82303fb.js";!async function(){await e();const o=document.querySelector("#search");o&&async function(e){await e.initialize({accessToken:"x2242b5a3-4f36-44f9-99c7-074b09a262fa",organizationId:"anheuserbuschinbevkmnonprod",platformUrl:"https://platform.cloud.coveo.com",preprocessRequest:(e,n,o)=>{if("searchApiFetch"==n&&"search"==(null==o?void 0:o.method)){e.url+="&viewAllContent=1";var a=JSON.parse(e.body);a.context={user_country_snow:"CZ"},e.body=JSON.stringify(a)}return e},search:{preprocessSearchResponseMiddleware:e=>(e.body.results.forEach((e=>(e.raw.snavatar&&(e.raw.resultpicture="https://abinbevwwdev.service-now.com/"+e.raw.snavatar),e))),e)}}),e.executeFirstSearch()}(o);const a=document.querySelector("#searchbox");a&&async function(e){await e.initialize({accessToken:"x2242b5a3-4f36-44f9-99c7-074b09a262fa",organizationId:"anheuserbuschinbevkmnonprod",platformUrl:"https://platform.cloud.coveo.com",preprocessRequest:(e,n,o)=>{if("searchApiFetch"==n&&"search"==(null==o?void 0:o.method)){e.url+="&viewAllContent=1";var a=JSON.parse(e.body);a.context={user_country_snow:"CZ"};var c=new CustomEvent("header/searchbox/query",{detail:a.q||""});window.dispatchEvent(c),e.body=JSON.stringify(a)}return e},analytics:{enabled:!1}})}(a),await n(),Array.from(document.querySelectorAll("atomic-recs-interface")).length&&async function(){const e=document.querySelector("#recs");await(null==e?void 0:e.initialize({accessToken:"x2242b5a3-4f36-44f9-99c7-074b09a262fa",organizationId:"anheuserbuschinbevkmnonprod",preprocessRequest:(e,n,o)=>{if("searchApiFetch"==n&&"recommendations"==(null==o?void 0:o.method)){e.url+="&viewAllContent=1";var a=JSON.parse(e.body);a.context={user_country:"CZ",user_country_snow:"CZ"},e.body=JSON.stringify(a)}return e}})),null==e||e.getRecommendations()}()}();
|