bettercx-widget
Version:
Professional AI-powered chat widget for BetterCX platform. Seamlessly integrate intelligent customer support into any website.
27 lines (21 loc) • 1.44 kB
JavaScript
var index = require('./index-F8724PmO.js');
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
/*
Stencil Client Patch Browser v4.36.3 | MIT Licensed | https://stenciljs.com
*/
var patchBrowser = () => {
const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bettercx-widget.cjs.js', document.baseURI).href));
const opts = {};
if (importMeta !== "") {
opts.resourcesUrl = new URL(".", importMeta).href;
}
return index.promiseResolve(opts);
};
patchBrowser().then(async (options) => {
await index.globalScripts();
return index.bootstrapLazy([["bcx-message-composer.cjs",[[257,"bcx-message-composer",{"disabled":[4],"loading":[4],"placeholder":[1],"maxLength":[2,"max-length"],"message":[32]}]]],["bettercx-widget.cjs",[[257,"bettercx-widget",{"publicKey":[1,"public-key"],"theme":[1],"debug":[4],"baseUrl":[1,"base-url"],"aiServiceUrl":[1,"ai-service-url"],"autoInit":[4,"auto-init"],"position":[1],"state":[32],"language":[32],"open":[64],"close":[64],"toggle":[64],"sendMessage":[64]},null,{"publicKey":["onPublicKeyChange"]}]]]], options);
});
exports.setNonce = index.setNonce;
//# sourceMappingURL=bettercx-widget.cjs.js.map
//# sourceMappingURL=bettercx-widget.cjs.js.map
;