@ada-support/embed2 1.0.35 → 1.0.41
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/npm-entry/index.js
CHANGED
|
@@ -802,6 +802,9 @@ var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get
|
|
|
802
802
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js
|
|
803
803
|
var get_own_property_descriptors = __webpack_require__(9649);
|
|
804
804
|
var get_own_property_descriptors_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptors);
|
|
805
|
+
// EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
|
|
806
|
+
var lodash_debounce = __webpack_require__(1296);
|
|
807
|
+
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
805
808
|
;// CONCATENATED MODULE: ./node_modules/preact/dist/preact.module.js
|
|
806
809
|
var n,l,u,i,t,r,o,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function v(n,l,u){var i,t=arguments,r={};for(i in l)"key"!==i&&"ref"!==i&&(r[i]=l[i]);if(arguments.length>3)for(u=[u],i=3;i<arguments.length;i++)u.push(t[i]);if(null!=u&&(r.children=u),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===r[i]&&(r[i]=n.defaultProps[i]);return h(n,r,l&&l.key,l&&l.ref,null)}function h(l,u,i,t,r){var o={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r};return null==r&&(o.__v=o),n.vnode&&n.vnode(o),o}function y(){return{current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function w(l){(!l.__d&&(l.__d=!0)&&u.push(l)&&!m.__r++||t!==n.debounceRendering)&&((t=n.debounceRendering)||i)(m)}function m(){for(var n;m.__r=u.length;)n=u.sort(function(n,l){return n.__v.__b-l.__v.__b}),u=[],n.some(function(n){var l,u,i,t,r,o,f;n.__d&&(o=(r=(l=n).__v).__e,(f=l.__P)&&(u=[],(i=s({},r)).__v=i,t=T(f,r,i,l.__n,void 0!==f.ownerSVGElement,null,u,null==o?_(r):o),$(u,r),t!=o&&k(r)))})}function g(n,l,u,i,t,r,o,c,s,v){var y,d,k,w,m,g,b,A=i&&i.__k||e,P=A.length;for(s==f&&(s=null!=o?o[0]:P?_(i,0):null),u.__k=[],y=0;y<l.length;y++)if(null!=(w=u.__k[y]=null==(w=l[y])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(p,{children:w},null,null,null):null!=w.__e||null!=w.__c?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=u,w.__b=u.__b+1,null===(k=A[y])||k&&w.key==k.key&&w.type===k.type)A[y]=void 0;else for(d=0;d<P;d++){if((k=A[d])&&w.key==k.key&&w.type===k.type){A[d]=void 0;break}k=null}m=T(n,w,k=k||f,t,r,o,c,s,v),(d=w.ref)&&k.ref!=d&&(b||(b=[]),k.ref&&b.push(k.ref,null,w),b.push(d,w.__c||m,w)),null!=m?(null==g&&(g=m),s=x(n,w,k,A,o,m,s),"option"==u.type?n.value="":"function"==typeof u.type&&(u.__d=s)):s&&k.__e==s&&s.parentNode!=n&&(s=_(k))}if(u.__e=g,null!=o&&"function"!=typeof u.type)for(y=o.length;y--;)null!=o[y]&&a(o[y]);for(y=P;y--;)null!=A[y]&&I(A[y],A[y]);if(b)for(y=0;y<b.length;y++)H(b[y],b[++y],b[++y])}function b(n){return null==n||"boolean"==typeof n?[]:Array.isArray(n)?e.concat.apply([],n.map(b)):[n]}function x(n,l,u,i,t,r,o){var f,e,c;if(void 0!==l.__d)f=l.__d,l.__d=void 0;else if(t==u||r!=o||null==r.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(r),f=null;else{for(e=o,c=0;(e=e.nextSibling)&&c<i.length;c+=2)if(e==r)break n;n.insertBefore(r,o),f=o}return void 0!==f?f:r.nextSibling}function A(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||C(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||C(n,r,l[r],u[r],i)}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]="number"==typeof u&&!1===c.test(l)?u+"px":null==u?"":u}function C(n,l,u,i,t){var r,o,f,e,c;if(t?"className"===l&&(l="class"):"class"===l&&(l="className"),"style"===l)if(r=n.style,"string"==typeof u)r.cssText=u;else{if("string"==typeof i&&(r.cssText="",i=null),i)for(e in i)u&&e in u||P(r,e,"");if(u)for(c in u)i&&u[c]===i[c]||P(r,c,u[c])}else"o"===l[0]&&"n"===l[1]?(o=l!==(l=l.replace(/Capture$/,"")),f=l.toLowerCase(),l=(f in n?f:l).slice(2),u?(i||n.addEventListener(l,N,o),(n.l||(n.l={}))[l]=u):n.removeEventListener(l,N,o)):"list"!==l&&"tagName"!==l&&"form"!==l&&"type"!==l&&"size"!==l&&!t&&l in n?n[l]=null==u?"":u:"function"!=typeof u&&"dangerouslySetInnerHTML"!==l&&(l!==(l=l.replace(/^xlink:?/,""))?null==u||!1===u?n.removeAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase(),u):null==u||!1===u&&!/^ar/.test(l)?n.removeAttribute(l):n.setAttribute(l,u))}function N(l){this.l[l.type](n.event?n.event(l):l)}function z(n,l,u){var i,t;for(i=0;i<n.__k.length;i++)(t=n.__k[i])&&(t.__=n,t.__e&&("function"==typeof t.type&&t.__k.length>1&&z(t,l,u),l=x(u,t,t,n.__k,null,t.__e,l),"function"==typeof n.type&&(n.__d=l)))}function T(l,u,i,t,r,o,f,e,c){var a,v,h,y,_,k,w,m,b,x,A,P=u.type;if(void 0!==u.constructor)return null;(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(m=u.props,b=(a=P.contextType)&&t[a.__c],x=a?b?b.props.value:a.__:t,i.__c?w=(v=u.__c=i.__c).__=v.__E:("prototype"in P&&P.prototype.render?u.__c=v=new P(m,x):(u.__c=v=new d(m,x),v.constructor=P,v.render=L),b&&b.sub(v),v.props=m,v.state||(v.state={}),v.context=x,v.__n=t,h=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=P.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=s({},v.__s)),s(v.__s,P.getDerivedStateFromProps(m,v.__s))),y=v.props,_=v.state,h)null==P.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else{if(null==P.getDerivedStateFromProps&&m!==y&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(m,x),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(m,v.__s,x)||u.__v===i.__v){v.props=m,v.state=v.__s,u.__v!==i.__v&&(v.__d=!1),v.__v=u,u.__e=i.__e,u.__k=i.__k,v.__h.length&&f.push(v),z(u,e,l);break n}null!=v.componentWillUpdate&&v.componentWillUpdate(m,v.__s,x),null!=v.componentDidUpdate&&v.__h.push(function(){v.componentDidUpdate(y,_,k)})}v.context=x,v.props=m,v.state=v.__s,(a=n.__r)&&a(u),v.__d=!1,v.__v=u,v.__P=l,a=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(t=s(s({},t),v.getChildContext())),h||null==v.getSnapshotBeforeUpdate||(k=v.getSnapshotBeforeUpdate(y,_)),A=null!=a&&a.type==p&&null==a.key?a.props.children:a,g(l,Array.isArray(A)?A:[A],u,i,t,r,o,f,e,c),v.base=u.__e,v.__h.length&&f.push(v),w&&(v.__E=v.__=null),v.__e=!1}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=j(i.__e,u,i,t,r,o,f,c);(a=n.diffed)&&a(u)}catch(l){u.__v=null,n.__e(l,u,i)}return u.__e}function $(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u)})}catch(l){n.__e(l,u.__v)}})}function j(n,l,u,i,t,r,o,c){var s,a,v,h,y,p=u.props,d=l.props;if(t="svg"===l.type||t,null!=r)for(s=0;s<r.length;s++)if(null!=(a=r[s])&&((null===l.type?3===a.nodeType:a.localName===l.type)||n==a)){n=a,r[s]=null;break}if(null==n){if(null===l.type)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",l.type):document.createElement(l.type,d.is&&{is:d.is}),r=null,c=!1}if(null===l.type)p!==d&&n.data!=d&&(n.data=d);else{if(null!=r&&(r=e.slice.call(n.childNodes)),v=(p=u.props||f).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!c){if(null!=r)for(p={},y=0;y<n.attributes.length;y++)p[n.attributes[y].name]=n.attributes[y].value;(h||v)&&(h&&v&&h.__html==v.__html||(n.innerHTML=h&&h.__html||""))}A(n,d,p,t,c),h?l.__k=[]:(s=l.props.children,g(n,Array.isArray(s)?s:[s],l,u,i,"foreignObject"!==l.type&&t,r,o,f,c)),c||("value"in d&&void 0!==(s=d.value)&&s!==n.value&&C(n,"value",s,p.value,!1),"checked"in d&&void 0!==(s=d.checked)&&s!==n.checked&&C(n,"checked",s,p.checked,!1))}return n}function H(l,u,i){try{"function"==typeof l?l(u):l.current=u}catch(l){n.__e(l,i)}}function I(l,u,i){var t,r,o;if(n.unmount&&n.unmount(l),(t=l.ref)&&(t.current&&t.current!==l.__e||H(t,null,u)),i||"function"==typeof l.type||(i=null!=(r=l.__e)),l.__e=l.__d=void 0,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(l){n.__e(l,u)}t.base=t.__P=null}if(t=l.__k)for(o=0;o<t.length;o++)t[o]&&I(t[o],u,i);null!=r&&a(r)}function L(n,l,u){return this.constructor(n,u)}function M(l,u,i){var t,o,c;n.__&&n.__(l,u),o=(t=i===r)?null:i&&i.__k||u.__k,l=v(p,null,[l]),c=[],T(u,(t?u:i||u).__k=l,o||f,f,void 0!==u.ownerSVGElement,i&&!t?[i]:o?null:u.childNodes.length?e.slice.call(u.childNodes):null,c,i||f,t),$(c,l)}function O(n,l){M(n,l,r)}function S(n,l){var u,i;for(i in l=s(s({},n.props),l),arguments.length>2&&(l.children=e.slice.call(arguments,2)),u={},l)"key"!==i&&"ref"!==i&&(u[i]=l[i]);return h(n.type,u,l.key||n.key,l.ref||n.ref,null)}function q(n){var l={},u={__c:"__cC"+o++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var i,t=this;return this.getChildContext||(i=[],this.getChildContext=function(){return l[u.__c]=t,l},this.shouldComponentUpdate=function(n){t.props.value!==n.value&&i.some(function(l){l.context=n.value,w(l)})},this.sub=function(n){i.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Consumer.contextType=u,u.Provider.__=u,u}n={__e:function(n,l){for(var u,i;l=l.__;)if((u=l.__c)&&!u.__)try{if(u.constructor&&null!=u.constructor.getDerivedStateFromError&&(i=!0,u.setState(u.constructor.getDerivedStateFromError(n))),null!=u.componentDidCatch&&(i=!0,u.componentDidCatch(n)),i)return w(u.__E=u)}catch(l){n=l}throw n}},l=function(n){return null!=n&&void 0===n.constructor},d.prototype.setState=function(n,l){var u;u=this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(u,this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),w(this))},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w(this))},d.prototype.render=p,u=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,m.__r=0,r=f,o=0;
|
|
807
810
|
//# sourceMappingURL=preact.module.js.map
|
|
@@ -870,12 +873,14 @@ var values_default = /*#__PURE__*/__webpack_require__.n(values);
|
|
|
870
873
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js
|
|
871
874
|
var construct = __webpack_require__(1068);
|
|
872
875
|
var construct_default = /*#__PURE__*/__webpack_require__.n(construct);
|
|
876
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
|
|
877
|
+
var esm_typeof = __webpack_require__(9623);
|
|
873
878
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js
|
|
874
879
|
var assertThisInitialized = __webpack_require__(5281);
|
|
875
880
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js
|
|
876
881
|
var inherits = __webpack_require__(306);
|
|
877
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
|
|
878
|
-
var possibleConstructorReturn = __webpack_require__(
|
|
882
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
|
|
883
|
+
var possibleConstructorReturn = __webpack_require__(3020);
|
|
879
884
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js
|
|
880
885
|
var getPrototypeOf = __webpack_require__(3362);
|
|
881
886
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/set.js
|
|
@@ -887,6 +892,9 @@ var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
|
|
|
887
892
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js
|
|
888
893
|
var stringify = __webpack_require__(9340);
|
|
889
894
|
var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
|
|
895
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js
|
|
896
|
+
var concat = __webpack_require__(7766);
|
|
897
|
+
var concat_default = /*#__PURE__*/__webpack_require__.n(concat);
|
|
890
898
|
// EXTERNAL MODULE: ./node_modules/uniqid/index.js
|
|
891
899
|
var uniqid = __webpack_require__(6104);
|
|
892
900
|
var uniqid_default = /*#__PURE__*/__webpack_require__.n(uniqid);
|
|
@@ -8492,7 +8500,7 @@ var client = new error_tracker_BrowserClient({
|
|
|
8492
8500
|
return event;
|
|
8493
8501
|
},
|
|
8494
8502
|
environment: "production",
|
|
8495
|
-
release: "
|
|
8503
|
+
release: "70f4c5105d5400a23f717c52bc54f58ec20ae89a",
|
|
8496
8504
|
sampleRate: 0.25,
|
|
8497
8505
|
autoSessionTracking: false,
|
|
8498
8506
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -8772,12 +8780,16 @@ var Channel = /*#__PURE__*/function () {
|
|
|
8772
8780
|
|
|
8773
8781
|
|
|
8774
8782
|
|
|
8783
|
+
|
|
8784
|
+
|
|
8785
|
+
|
|
8775
8786
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0,getPrototypeOf/* default */.Z)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0,getPrototypeOf/* default */.Z)(this).constructor; result = construct_default()(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,possibleConstructorReturn/* default */.Z)(this, result); }; }
|
|
8776
8787
|
|
|
8777
8788
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !(construct_default())) return false; if ((construct_default()).sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct_default()(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8778
8789
|
|
|
8779
8790
|
|
|
8780
8791
|
|
|
8792
|
+
|
|
8781
8793
|
/**
|
|
8782
8794
|
* Frame Channel: Used for postMessage communication between iFrames.
|
|
8783
8795
|
* NOTE: iFrames must have the same domain - when postMessages are sent between
|
|
@@ -8865,19 +8877,28 @@ var FC = /*#__PURE__*/function (_Channel) {
|
|
|
8865
8877
|
}, {
|
|
8866
8878
|
key: "constructObjectToSend",
|
|
8867
8879
|
value: function constructObjectToSend() {
|
|
8868
|
-
var
|
|
8880
|
+
var eventName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
8869
8881
|
var payload = arguments.length > 1 ? arguments[1] : undefined;
|
|
8870
8882
|
var id = arguments.length > 2 ? arguments[2] : undefined;
|
|
8871
8883
|
var status = arguments.length > 3 ? arguments[3] : undefined;
|
|
8884
|
+
|
|
8872
8885
|
// IE passes event message data as a string, so we normalize to string for all objects
|
|
8873
8886
|
// (for all browsers)
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8887
|
+
try {
|
|
8888
|
+
return stringify_default()({
|
|
8889
|
+
name: this.name,
|
|
8890
|
+
type: eventName,
|
|
8891
|
+
payload: payload,
|
|
8892
|
+
id: id,
|
|
8893
|
+
status: status
|
|
8894
|
+
});
|
|
8895
|
+
} catch (e) {
|
|
8896
|
+
var _context2, _context3;
|
|
8897
|
+
|
|
8898
|
+
var reason = e instanceof Error ? e.message : "unknown";
|
|
8899
|
+
var payloadRootKeys = payload && (0,esm_typeof/* default */.Z)(payload) === "object" ? keys_default()(payload) : [];
|
|
8900
|
+
throw new errors/* AdaEmbedError */.S(concat_default()(_context2 = concat_default()(_context3 = "Failed to stringify object to JSON. Reason: \"".concat(reason, "\". Event name: \"")).call(_context3, eventName, "\". Payload root keys: ")).call(_context2, payloadRootKeys.join(", "), "."));
|
|
8901
|
+
}
|
|
8881
8902
|
}
|
|
8882
8903
|
}], [{
|
|
8883
8904
|
key: "isMessageEvent",
|
|
@@ -8890,9 +8911,6 @@ var FC = /*#__PURE__*/function (_Channel) {
|
|
|
8890
8911
|
}(Channel);
|
|
8891
8912
|
|
|
8892
8913
|
|
|
8893
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js
|
|
8894
|
-
var concat = __webpack_require__(7766);
|
|
8895
|
-
var concat_default = /*#__PURE__*/__webpack_require__.n(concat);
|
|
8896
8914
|
;// CONCATENATED MODULE: ./src/client/helpers/events/index.ts
|
|
8897
8915
|
/**
|
|
8898
8916
|
* Older browsers like IE11 cannot use Event and CustomEvent constructors. These
|
|
@@ -9017,8 +9035,6 @@ var CE = /*#__PURE__*/function (_Channel) {
|
|
|
9017
9035
|
}, {
|
|
9018
9036
|
key: "constructObjectToSend",
|
|
9019
9037
|
value: function constructObjectToSend(type, payload, id, status) {
|
|
9020
|
-
// IE passes event message data as a string, so we normalize to string for all objects
|
|
9021
|
-
// (for all browsers)
|
|
9022
9038
|
return {
|
|
9023
9039
|
type: type || "",
|
|
9024
9040
|
payload: payload,
|
|
@@ -9176,7 +9192,7 @@ function getEmbedURL(_ref) {
|
|
|
9176
9192
|
polyfillVersionString = "legacy";
|
|
9177
9193
|
}
|
|
9178
9194
|
|
|
9179
|
-
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "
|
|
9195
|
+
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "70f4c51", "/index.html");
|
|
9180
9196
|
}
|
|
9181
9197
|
/**
|
|
9182
9198
|
* Generate the Chat / API URL
|
|
@@ -10324,7 +10340,7 @@ function triggerCampaignImpl(_ref) {
|
|
|
10324
10340
|
});
|
|
10325
10341
|
}
|
|
10326
10342
|
}
|
|
10327
|
-
var getCampaignToTrigger = function getCampaignToTrigger(adaSettings,
|
|
10343
|
+
var getCampaignToTrigger = function getCampaignToTrigger(adaSettings, marketingCampaigns, options, onlyBasic) {
|
|
10328
10344
|
var _options$ignoreStatus = options.ignoreStatus,
|
|
10329
10345
|
ignoreStatus = _options$ignoreStatus === void 0 ? false : _options$ignoreStatus,
|
|
10330
10346
|
_options$ignoreFreque = options.ignoreFrequency,
|
|
@@ -10333,6 +10349,10 @@ var getCampaignToTrigger = function getCampaignToTrigger(adaSettings, chatterTok
|
|
|
10333
10349
|
return marketingCampaigns === null || marketingCampaigns === void 0 ? void 0 : find_default()(marketingCampaigns).call(marketingCampaigns, function (campaign) {
|
|
10334
10350
|
if (campaign.status !== "active" && !ignoreStatus) {
|
|
10335
10351
|
return false;
|
|
10352
|
+
}
|
|
10353
|
+
|
|
10354
|
+
if (onlyBasic && !campaign.message_text) {
|
|
10355
|
+
return false;
|
|
10336
10356
|
} // Campaigns with no trigger conditions can only be triggered manually
|
|
10337
10357
|
|
|
10338
10358
|
|
|
@@ -12595,14 +12615,13 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
12595
12615
|
var useDelay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
12596
12616
|
var _this$props8 = this.props,
|
|
12597
12617
|
adaSettings = _this$props8.adaSettings,
|
|
12598
|
-
chatterToken = _this$props8.chatterToken,
|
|
12599
12618
|
client = _this$props8.client;
|
|
12600
12619
|
|
|
12601
12620
|
if (!hasCampaignsEnabled(client)) {
|
|
12602
12621
|
return;
|
|
12603
12622
|
}
|
|
12604
12623
|
|
|
12605
|
-
var campaignToTrigger = getCampaignToTrigger(adaSettings,
|
|
12624
|
+
var campaignToTrigger = getCampaignToTrigger(adaSettings, client.marketing_campaigns, params, !client.features.afm_proactive_messaging);
|
|
12606
12625
|
|
|
12607
12626
|
if (campaignToTrigger) {
|
|
12608
12627
|
if (useDelay) {
|
|
@@ -13327,6 +13346,7 @@ function Container_mapDispatchToProps(dispatch) {
|
|
|
13327
13346
|
|
|
13328
13347
|
|
|
13329
13348
|
|
|
13349
|
+
|
|
13330
13350
|
function client_ownKeys(object, enumerableOnly) { var keys = keys_default()(object); if ((get_own_property_symbols_default())) { var symbols = get_own_property_symbols_default()(object); if (enumerableOnly) { symbols = filter_default()(symbols).call(symbols, function (sym) { return get_own_property_descriptor_default()(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
13331
13351
|
|
|
13332
13352
|
function client_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { client_ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }); } else if ((get_own_property_descriptors_default())) { Object.defineProperties(target, get_own_property_descriptors_default()(source)); } else { client_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, get_own_property_descriptor_default()(source, key)); }); } } return target; }
|
|
@@ -13378,6 +13398,8 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13378
13398
|
|
|
13379
13399
|
(0,defineProperty/* default */.Z)(this, "initializationResolve", void 0);
|
|
13380
13400
|
|
|
13401
|
+
(0,defineProperty/* default */.Z)(this, "debounceCampaignTrigger", void 0);
|
|
13402
|
+
|
|
13381
13403
|
this.adaSettings = adaSettings;
|
|
13382
13404
|
this.unmountCallback = unmountCallback;
|
|
13383
13405
|
this.messageService = new MessageService();
|
|
@@ -13388,6 +13410,38 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13388
13410
|
_this.initializationReject = reject;
|
|
13389
13411
|
});
|
|
13390
13412
|
this.renderPreactApp();
|
|
13413
|
+
this.debounceCampaignTrigger = lodash_debounce_default()( /*#__PURE__*/function () {
|
|
13414
|
+
var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(campaignKey) {
|
|
13415
|
+
var triggerCampaignParams,
|
|
13416
|
+
_args = arguments;
|
|
13417
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
13418
|
+
while (1) {
|
|
13419
|
+
switch (_context.prev = _context.next) {
|
|
13420
|
+
case 0:
|
|
13421
|
+
triggerCampaignParams = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
13422
|
+
_context.next = 3;
|
|
13423
|
+
return _this.initialized;
|
|
13424
|
+
|
|
13425
|
+
case 3:
|
|
13426
|
+
_context.next = 5;
|
|
13427
|
+
return _this.localChannel.fetch(TRIGGER_CAMPAIGN, TRIGGER_CAMPAIGN_RESPONSE, client_objectSpread({
|
|
13428
|
+
campaignKey: campaignKey
|
|
13429
|
+
}, triggerCampaignParams));
|
|
13430
|
+
|
|
13431
|
+
case 5:
|
|
13432
|
+
case "end":
|
|
13433
|
+
return _context.stop();
|
|
13434
|
+
}
|
|
13435
|
+
}
|
|
13436
|
+
}, _callee);
|
|
13437
|
+
}));
|
|
13438
|
+
|
|
13439
|
+
return function (_x) {
|
|
13440
|
+
return _ref.apply(this, arguments);
|
|
13441
|
+
};
|
|
13442
|
+
}(), 1000, {
|
|
13443
|
+
leading: true
|
|
13444
|
+
});
|
|
13391
13445
|
}
|
|
13392
13446
|
|
|
13393
13447
|
_createClass(Embed, [{
|
|
@@ -13444,32 +13498,32 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13444
13498
|
}, {
|
|
13445
13499
|
key: "toggle",
|
|
13446
13500
|
value: function () {
|
|
13447
|
-
var _toggle = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13448
|
-
return regenerator_default().wrap(function
|
|
13501
|
+
var _toggle = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
13502
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
13449
13503
|
while (1) {
|
|
13450
|
-
switch (
|
|
13504
|
+
switch (_context2.prev = _context2.next) {
|
|
13451
13505
|
case 0:
|
|
13452
13506
|
if (!this.adaSettings.parentElement) {
|
|
13453
|
-
|
|
13507
|
+
_context2.next = 2;
|
|
13454
13508
|
break;
|
|
13455
13509
|
}
|
|
13456
13510
|
|
|
13457
13511
|
throw new errors/* AdaEmbedError */.S("Cannot toggle when using parentElement.");
|
|
13458
13512
|
|
|
13459
13513
|
case 2:
|
|
13460
|
-
|
|
13514
|
+
_context2.next = 4;
|
|
13461
13515
|
return this.initialized;
|
|
13462
13516
|
|
|
13463
13517
|
case 4:
|
|
13464
|
-
|
|
13518
|
+
_context2.next = 6;
|
|
13465
13519
|
return this.localChannel.fetch(TOGGLE, TOGGLE_RESPONSE);
|
|
13466
13520
|
|
|
13467
13521
|
case 6:
|
|
13468
13522
|
case "end":
|
|
13469
|
-
return
|
|
13523
|
+
return _context2.stop();
|
|
13470
13524
|
}
|
|
13471
13525
|
}
|
|
13472
|
-
},
|
|
13526
|
+
}, _callee2, this);
|
|
13473
13527
|
}));
|
|
13474
13528
|
|
|
13475
13529
|
function toggle() {
|
|
@@ -13481,23 +13535,23 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13481
13535
|
}, {
|
|
13482
13536
|
key: "getInfo",
|
|
13483
13537
|
value: function () {
|
|
13484
|
-
var _getInfo = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13485
|
-
return regenerator_default().wrap(function
|
|
13538
|
+
var _getInfo = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
13539
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
13486
13540
|
while (1) {
|
|
13487
|
-
switch (
|
|
13541
|
+
switch (_context3.prev = _context3.next) {
|
|
13488
13542
|
case 0:
|
|
13489
|
-
|
|
13543
|
+
_context3.next = 2;
|
|
13490
13544
|
return this.initialized;
|
|
13491
13545
|
|
|
13492
13546
|
case 2:
|
|
13493
|
-
return
|
|
13547
|
+
return _context3.abrupt("return", this.localChannel.fetch(GET_INFO, GET_INFO_RESPONSE));
|
|
13494
13548
|
|
|
13495
13549
|
case 3:
|
|
13496
13550
|
case "end":
|
|
13497
|
-
return
|
|
13551
|
+
return _context3.stop();
|
|
13498
13552
|
}
|
|
13499
13553
|
}
|
|
13500
|
-
},
|
|
13554
|
+
}, _callee3, this);
|
|
13501
13555
|
}));
|
|
13502
13556
|
|
|
13503
13557
|
function getInfo() {
|
|
@@ -13509,27 +13563,27 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13509
13563
|
}, {
|
|
13510
13564
|
key: "setMetaFields",
|
|
13511
13565
|
value: function () {
|
|
13512
|
-
var _setMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13513
|
-
return regenerator_default().wrap(function
|
|
13566
|
+
var _setMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee4(options) {
|
|
13567
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
13514
13568
|
while (1) {
|
|
13515
|
-
switch (
|
|
13569
|
+
switch (_context4.prev = _context4.next) {
|
|
13516
13570
|
case 0:
|
|
13517
|
-
|
|
13571
|
+
_context4.next = 2;
|
|
13518
13572
|
return this.initialized;
|
|
13519
13573
|
|
|
13520
13574
|
case 2:
|
|
13521
|
-
|
|
13575
|
+
_context4.next = 4;
|
|
13522
13576
|
return this.localChannel.fetch(SET_META_FIELDS, SET_META_FIELDS_RESPONSE, options);
|
|
13523
13577
|
|
|
13524
13578
|
case 4:
|
|
13525
13579
|
case "end":
|
|
13526
|
-
return
|
|
13580
|
+
return _context4.stop();
|
|
13527
13581
|
}
|
|
13528
13582
|
}
|
|
13529
|
-
},
|
|
13583
|
+
}, _callee4, this);
|
|
13530
13584
|
}));
|
|
13531
13585
|
|
|
13532
|
-
function setMetaFields(
|
|
13586
|
+
function setMetaFields(_x2) {
|
|
13533
13587
|
return _setMetaFields.apply(this, arguments);
|
|
13534
13588
|
}
|
|
13535
13589
|
|
|
@@ -13538,27 +13592,27 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13538
13592
|
}, {
|
|
13539
13593
|
key: "setSensitiveMetaFields",
|
|
13540
13594
|
value: function () {
|
|
13541
|
-
var _setSensitiveMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13542
|
-
return regenerator_default().wrap(function
|
|
13595
|
+
var _setSensitiveMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee5(options) {
|
|
13596
|
+
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
13543
13597
|
while (1) {
|
|
13544
|
-
switch (
|
|
13598
|
+
switch (_context5.prev = _context5.next) {
|
|
13545
13599
|
case 0:
|
|
13546
|
-
|
|
13600
|
+
_context5.next = 2;
|
|
13547
13601
|
return this.initialized;
|
|
13548
13602
|
|
|
13549
13603
|
case 2:
|
|
13550
|
-
|
|
13604
|
+
_context5.next = 4;
|
|
13551
13605
|
return this.localChannel.fetch("SET_SENSITIVE_META_FIELDS", "SET_SENSITIVE_META_FIELDS_RESPONSE", options);
|
|
13552
13606
|
|
|
13553
13607
|
case 4:
|
|
13554
13608
|
case "end":
|
|
13555
|
-
return
|
|
13609
|
+
return _context5.stop();
|
|
13556
13610
|
}
|
|
13557
13611
|
}
|
|
13558
|
-
},
|
|
13612
|
+
}, _callee5, this);
|
|
13559
13613
|
}));
|
|
13560
13614
|
|
|
13561
|
-
function setSensitiveMetaFields(
|
|
13615
|
+
function setSensitiveMetaFields(_x3) {
|
|
13562
13616
|
return _setSensitiveMetaFields.apply(this, arguments);
|
|
13563
13617
|
}
|
|
13564
13618
|
|
|
@@ -13567,24 +13621,24 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13567
13621
|
}, {
|
|
13568
13622
|
key: "stop",
|
|
13569
13623
|
value: function () {
|
|
13570
|
-
var _stop = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13571
|
-
return regenerator_default().wrap(function
|
|
13624
|
+
var _stop = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee6() {
|
|
13625
|
+
return regenerator_default().wrap(function _callee6$(_context6) {
|
|
13572
13626
|
while (1) {
|
|
13573
|
-
switch (
|
|
13627
|
+
switch (_context6.prev = _context6.next) {
|
|
13574
13628
|
case 0:
|
|
13575
|
-
|
|
13629
|
+
_context6.next = 2;
|
|
13576
13630
|
return this.initialized;
|
|
13577
13631
|
|
|
13578
13632
|
case 2:
|
|
13579
|
-
|
|
13633
|
+
_context6.next = 4;
|
|
13580
13634
|
return this.localChannel.fetch(STOP, STOP_RESPONSE);
|
|
13581
13635
|
|
|
13582
13636
|
case 4:
|
|
13583
13637
|
case "end":
|
|
13584
|
-
return
|
|
13638
|
+
return _context6.stop();
|
|
13585
13639
|
}
|
|
13586
13640
|
}
|
|
13587
|
-
},
|
|
13641
|
+
}, _callee6, this);
|
|
13588
13642
|
}));
|
|
13589
13643
|
|
|
13590
13644
|
function stop() {
|
|
@@ -13596,24 +13650,24 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13596
13650
|
}, {
|
|
13597
13651
|
key: "deleteHistory",
|
|
13598
13652
|
value: function () {
|
|
13599
|
-
var _deleteHistory = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13600
|
-
return regenerator_default().wrap(function
|
|
13653
|
+
var _deleteHistory = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee7() {
|
|
13654
|
+
return regenerator_default().wrap(function _callee7$(_context7) {
|
|
13601
13655
|
while (1) {
|
|
13602
|
-
switch (
|
|
13656
|
+
switch (_context7.prev = _context7.next) {
|
|
13603
13657
|
case 0:
|
|
13604
|
-
|
|
13658
|
+
_context7.next = 2;
|
|
13605
13659
|
return this.initialized;
|
|
13606
13660
|
|
|
13607
13661
|
case 2:
|
|
13608
|
-
|
|
13662
|
+
_context7.next = 4;
|
|
13609
13663
|
return this.localChannel.fetch(DELETE_HISTORY, DELETE_HISTORY_RESPONSE);
|
|
13610
13664
|
|
|
13611
13665
|
case 4:
|
|
13612
13666
|
case "end":
|
|
13613
|
-
return
|
|
13667
|
+
return _context7.stop();
|
|
13614
13668
|
}
|
|
13615
13669
|
}
|
|
13616
|
-
},
|
|
13670
|
+
}, _callee7, this);
|
|
13617
13671
|
}));
|
|
13618
13672
|
|
|
13619
13673
|
function deleteHistory() {
|
|
@@ -13625,27 +13679,27 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13625
13679
|
}, {
|
|
13626
13680
|
key: "reset",
|
|
13627
13681
|
value: function () {
|
|
13628
|
-
var _reset = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13682
|
+
var _reset = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee8() {
|
|
13629
13683
|
var resetParams,
|
|
13630
|
-
|
|
13631
|
-
return regenerator_default().wrap(function
|
|
13684
|
+
_args8 = arguments;
|
|
13685
|
+
return regenerator_default().wrap(function _callee8$(_context8) {
|
|
13632
13686
|
while (1) {
|
|
13633
|
-
switch (
|
|
13687
|
+
switch (_context8.prev = _context8.next) {
|
|
13634
13688
|
case 0:
|
|
13635
|
-
resetParams =
|
|
13636
|
-
|
|
13689
|
+
resetParams = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
13690
|
+
_context8.next = 3;
|
|
13637
13691
|
return this.initialized;
|
|
13638
13692
|
|
|
13639
13693
|
case 3:
|
|
13640
|
-
|
|
13694
|
+
_context8.next = 5;
|
|
13641
13695
|
return this.localChannel.fetch(RESET, RESET_RESPONSE, resetParams);
|
|
13642
13696
|
|
|
13643
13697
|
case 5:
|
|
13644
13698
|
case "end":
|
|
13645
|
-
return
|
|
13699
|
+
return _context8.stop();
|
|
13646
13700
|
}
|
|
13647
13701
|
}
|
|
13648
|
-
},
|
|
13702
|
+
}, _callee8, this);
|
|
13649
13703
|
}));
|
|
13650
13704
|
|
|
13651
13705
|
function reset() {
|
|
@@ -13657,19 +13711,19 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13657
13711
|
}, {
|
|
13658
13712
|
key: "trackEvent",
|
|
13659
13713
|
value: function () {
|
|
13660
|
-
var _trackEvent = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13714
|
+
var _trackEvent = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee9(eventKey, value) {
|
|
13661
13715
|
var meta,
|
|
13662
|
-
|
|
13663
|
-
return regenerator_default().wrap(function
|
|
13716
|
+
_args9 = arguments;
|
|
13717
|
+
return regenerator_default().wrap(function _callee9$(_context9) {
|
|
13664
13718
|
while (1) {
|
|
13665
|
-
switch (
|
|
13719
|
+
switch (_context9.prev = _context9.next) {
|
|
13666
13720
|
case 0:
|
|
13667
|
-
meta =
|
|
13668
|
-
|
|
13721
|
+
meta = _args9.length > 2 && _args9[2] !== undefined ? _args9[2] : {};
|
|
13722
|
+
_context9.next = 3;
|
|
13669
13723
|
return this.initialized;
|
|
13670
13724
|
|
|
13671
13725
|
case 3:
|
|
13672
|
-
|
|
13726
|
+
_context9.next = 5;
|
|
13673
13727
|
return this.localChannel.fetch(TRACK_EVENT, TRACK_EVENT_RESPONSE, {
|
|
13674
13728
|
eventKey: eventKey,
|
|
13675
13729
|
value: value,
|
|
@@ -13678,13 +13732,13 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13678
13732
|
|
|
13679
13733
|
case 5:
|
|
13680
13734
|
case "end":
|
|
13681
|
-
return
|
|
13735
|
+
return _context9.stop();
|
|
13682
13736
|
}
|
|
13683
13737
|
}
|
|
13684
|
-
},
|
|
13738
|
+
}, _callee9, this);
|
|
13685
13739
|
}));
|
|
13686
13740
|
|
|
13687
|
-
function trackEvent(
|
|
13741
|
+
function trackEvent(_x4, _x5) {
|
|
13688
13742
|
return _trackEvent.apply(this, arguments);
|
|
13689
13743
|
}
|
|
13690
13744
|
|
|
@@ -13693,32 +13747,25 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13693
13747
|
}, {
|
|
13694
13748
|
key: "triggerCampaign",
|
|
13695
13749
|
value: function () {
|
|
13696
|
-
var _triggerCampaign = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13750
|
+
var _triggerCampaign = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee10(campaignKey) {
|
|
13697
13751
|
var triggerCampaignParams,
|
|
13698
|
-
|
|
13699
|
-
return regenerator_default().wrap(function
|
|
13752
|
+
_args10 = arguments;
|
|
13753
|
+
return regenerator_default().wrap(function _callee10$(_context10) {
|
|
13700
13754
|
while (1) {
|
|
13701
|
-
switch (
|
|
13755
|
+
switch (_context10.prev = _context10.next) {
|
|
13702
13756
|
case 0:
|
|
13703
|
-
triggerCampaignParams =
|
|
13704
|
-
|
|
13705
|
-
return this.initialized;
|
|
13706
|
-
|
|
13707
|
-
case 3:
|
|
13708
|
-
_context9.next = 5;
|
|
13709
|
-
return this.localChannel.fetch(TRIGGER_CAMPAIGN, TRIGGER_CAMPAIGN_RESPONSE, client_objectSpread({
|
|
13710
|
-
campaignKey: campaignKey
|
|
13711
|
-
}, triggerCampaignParams));
|
|
13757
|
+
triggerCampaignParams = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : {};
|
|
13758
|
+
this.debounceCampaignTrigger(campaignKey, triggerCampaignParams);
|
|
13712
13759
|
|
|
13713
|
-
case
|
|
13760
|
+
case 2:
|
|
13714
13761
|
case "end":
|
|
13715
|
-
return
|
|
13762
|
+
return _context10.stop();
|
|
13716
13763
|
}
|
|
13717
13764
|
}
|
|
13718
|
-
},
|
|
13765
|
+
}, _callee10, this);
|
|
13719
13766
|
}));
|
|
13720
13767
|
|
|
13721
|
-
function triggerCampaign(
|
|
13768
|
+
function triggerCampaign(_x6) {
|
|
13722
13769
|
return _triggerCampaign.apply(this, arguments);
|
|
13723
13770
|
}
|
|
13724
13771
|
|
|
@@ -13727,27 +13774,27 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13727
13774
|
}, {
|
|
13728
13775
|
key: "evaluateCampaignConditions",
|
|
13729
13776
|
value: function () {
|
|
13730
|
-
var _evaluateCampaignConditions = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13731
|
-
return regenerator_default().wrap(function
|
|
13777
|
+
var _evaluateCampaignConditions = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee11(options) {
|
|
13778
|
+
return regenerator_default().wrap(function _callee11$(_context11) {
|
|
13732
13779
|
while (1) {
|
|
13733
|
-
switch (
|
|
13780
|
+
switch (_context11.prev = _context11.next) {
|
|
13734
13781
|
case 0:
|
|
13735
|
-
|
|
13782
|
+
_context11.next = 2;
|
|
13736
13783
|
return this.initialized;
|
|
13737
13784
|
|
|
13738
13785
|
case 2:
|
|
13739
|
-
|
|
13786
|
+
_context11.next = 4;
|
|
13740
13787
|
return this.localChannel.fetch(EVAL_CAMPAIGN_CONDITIONS, EVAL_CAMPAIGN_CONDITIONS_RESPONSE, options);
|
|
13741
13788
|
|
|
13742
13789
|
case 4:
|
|
13743
13790
|
case "end":
|
|
13744
|
-
return
|
|
13791
|
+
return _context11.stop();
|
|
13745
13792
|
}
|
|
13746
13793
|
}
|
|
13747
|
-
},
|
|
13794
|
+
}, _callee11, this);
|
|
13748
13795
|
}));
|
|
13749
13796
|
|
|
13750
|
-
function evaluateCampaignConditions(
|
|
13797
|
+
function evaluateCampaignConditions(_x7) {
|
|
13751
13798
|
return _evaluateCampaignConditions.apply(this, arguments);
|
|
13752
13799
|
}
|
|
13753
13800
|
|
|
@@ -13756,25 +13803,25 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13756
13803
|
}, {
|
|
13757
13804
|
key: "createProactive",
|
|
13758
13805
|
value: function () {
|
|
13759
|
-
var _createProactive = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function
|
|
13760
|
-
return regenerator_default().wrap(function
|
|
13806
|
+
var _createProactive = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee12(body, duration, responseId) {
|
|
13807
|
+
return regenerator_default().wrap(function _callee12$(_context12) {
|
|
13761
13808
|
while (1) {
|
|
13762
|
-
switch (
|
|
13809
|
+
switch (_context12.prev = _context12.next) {
|
|
13763
13810
|
case 0:
|
|
13764
13811
|
if (!this.adaSettings.parentElement) {
|
|
13765
|
-
|
|
13812
|
+
_context12.next = 2;
|
|
13766
13813
|
break;
|
|
13767
13814
|
}
|
|
13768
13815
|
|
|
13769
13816
|
throw new errors/* AdaEmbedError */.S("Cannot call createProactive when using parentElement.");
|
|
13770
13817
|
|
|
13771
13818
|
case 2:
|
|
13772
|
-
|
|
13819
|
+
_context12.next = 4;
|
|
13773
13820
|
return this.initialized;
|
|
13774
13821
|
|
|
13775
13822
|
case 4:
|
|
13776
|
-
|
|
13777
|
-
|
|
13823
|
+
_context12.prev = 4;
|
|
13824
|
+
_context12.next = 7;
|
|
13778
13825
|
return this.localChannel.fetch(CREATE_PROACTIVE, CREATE_PROACTIVE_RESPONSE, {
|
|
13779
13826
|
body: body,
|
|
13780
13827
|
duration: duration,
|
|
@@ -13785,23 +13832,23 @@ var Embed = /*#__PURE__*/function () {
|
|
|
13785
13832
|
duration * 1000 + 2000);
|
|
13786
13833
|
|
|
13787
13834
|
case 7:
|
|
13788
|
-
|
|
13835
|
+
_context12.next = 12;
|
|
13789
13836
|
break;
|
|
13790
13837
|
|
|
13791
13838
|
case 9:
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
throw new errors/* AdaEmbedError */.S(
|
|
13839
|
+
_context12.prev = 9;
|
|
13840
|
+
_context12.t0 = _context12["catch"](4);
|
|
13841
|
+
throw new errors/* AdaEmbedError */.S(_context12.t0);
|
|
13795
13842
|
|
|
13796
13843
|
case 12:
|
|
13797
13844
|
case "end":
|
|
13798
|
-
return
|
|
13845
|
+
return _context12.stop();
|
|
13799
13846
|
}
|
|
13800
13847
|
}
|
|
13801
|
-
},
|
|
13848
|
+
}, _callee12, this, [[4, 9]]);
|
|
13802
13849
|
}));
|
|
13803
13850
|
|
|
13804
|
-
function createProactive(
|
|
13851
|
+
function createProactive(_x8, _x9, _x10) {
|
|
13805
13852
|
return _createProactive.apply(this, arguments);
|
|
13806
13853
|
}
|
|
13807
13854
|
|
|
@@ -13845,7 +13892,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
13845
13892
|
/* harmony export */ });
|
|
13846
13893
|
var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(14|(1[5-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(92|(9[3-9]|\\d{3,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(14|(1[5-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(91|(9[2-9]|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(91|(9[2-9]|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
|
|
13847
13894
|
var isProduction = "production" === "production";
|
|
13848
|
-
var embed2Version = "
|
|
13895
|
+
var embed2Version = "70f4c51";
|
|
13849
13896
|
|
|
13850
13897
|
/***/ }),
|
|
13851
13898
|
|
|
@@ -13867,8 +13914,8 @@ var construct_default = /*#__PURE__*/__webpack_require__.n(construct);
|
|
|
13867
13914
|
var classCallCheck = __webpack_require__(8420);
|
|
13868
13915
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js
|
|
13869
13916
|
var inherits = __webpack_require__(306);
|
|
13870
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
|
|
13871
|
-
var possibleConstructorReturn = __webpack_require__(
|
|
13917
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
|
|
13918
|
+
var possibleConstructorReturn = __webpack_require__(3020);
|
|
13872
13919
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js
|
|
13873
13920
|
var getPrototypeOf = __webpack_require__(3362);
|
|
13874
13921
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/map.js
|
|
@@ -22033,6 +22080,390 @@ module.exports = function (value, replacer, space) {
|
|
|
22033
22080
|
};
|
|
22034
22081
|
|
|
22035
22082
|
|
|
22083
|
+
/***/ }),
|
|
22084
|
+
|
|
22085
|
+
/***/ 1296:
|
|
22086
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22087
|
+
|
|
22088
|
+
/**
|
|
22089
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
22090
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
22091
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
22092
|
+
* Released under MIT license <https://lodash.com/license>
|
|
22093
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
22094
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
22095
|
+
*/
|
|
22096
|
+
|
|
22097
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
22098
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
22099
|
+
|
|
22100
|
+
/** Used as references for various `Number` constants. */
|
|
22101
|
+
var NAN = 0 / 0;
|
|
22102
|
+
|
|
22103
|
+
/** `Object#toString` result references. */
|
|
22104
|
+
var symbolTag = '[object Symbol]';
|
|
22105
|
+
|
|
22106
|
+
/** Used to match leading and trailing whitespace. */
|
|
22107
|
+
var reTrim = /^\s+|\s+$/g;
|
|
22108
|
+
|
|
22109
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
22110
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
22111
|
+
|
|
22112
|
+
/** Used to detect binary string values. */
|
|
22113
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
22114
|
+
|
|
22115
|
+
/** Used to detect octal string values. */
|
|
22116
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
22117
|
+
|
|
22118
|
+
/** Built-in method references without a dependency on `root`. */
|
|
22119
|
+
var freeParseInt = parseInt;
|
|
22120
|
+
|
|
22121
|
+
/** Detect free variable `global` from Node.js. */
|
|
22122
|
+
var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
|
|
22123
|
+
|
|
22124
|
+
/** Detect free variable `self`. */
|
|
22125
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
22126
|
+
|
|
22127
|
+
/** Used as a reference to the global object. */
|
|
22128
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
22129
|
+
|
|
22130
|
+
/** Used for built-in method references. */
|
|
22131
|
+
var objectProto = Object.prototype;
|
|
22132
|
+
|
|
22133
|
+
/**
|
|
22134
|
+
* Used to resolve the
|
|
22135
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
22136
|
+
* of values.
|
|
22137
|
+
*/
|
|
22138
|
+
var objectToString = objectProto.toString;
|
|
22139
|
+
|
|
22140
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
22141
|
+
var nativeMax = Math.max,
|
|
22142
|
+
nativeMin = Math.min;
|
|
22143
|
+
|
|
22144
|
+
/**
|
|
22145
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
22146
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
22147
|
+
*
|
|
22148
|
+
* @static
|
|
22149
|
+
* @memberOf _
|
|
22150
|
+
* @since 2.4.0
|
|
22151
|
+
* @category Date
|
|
22152
|
+
* @returns {number} Returns the timestamp.
|
|
22153
|
+
* @example
|
|
22154
|
+
*
|
|
22155
|
+
* _.defer(function(stamp) {
|
|
22156
|
+
* console.log(_.now() - stamp);
|
|
22157
|
+
* }, _.now());
|
|
22158
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
22159
|
+
*/
|
|
22160
|
+
var now = function() {
|
|
22161
|
+
return root.Date.now();
|
|
22162
|
+
};
|
|
22163
|
+
|
|
22164
|
+
/**
|
|
22165
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
22166
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
22167
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
22168
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
22169
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
22170
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
22171
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
22172
|
+
* calls to the debounced function return the result of the last `func`
|
|
22173
|
+
* invocation.
|
|
22174
|
+
*
|
|
22175
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
22176
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
22177
|
+
* is invoked more than once during the `wait` timeout.
|
|
22178
|
+
*
|
|
22179
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
22180
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
22181
|
+
*
|
|
22182
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
22183
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
22184
|
+
*
|
|
22185
|
+
* @static
|
|
22186
|
+
* @memberOf _
|
|
22187
|
+
* @since 0.1.0
|
|
22188
|
+
* @category Function
|
|
22189
|
+
* @param {Function} func The function to debounce.
|
|
22190
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
22191
|
+
* @param {Object} [options={}] The options object.
|
|
22192
|
+
* @param {boolean} [options.leading=false]
|
|
22193
|
+
* Specify invoking on the leading edge of the timeout.
|
|
22194
|
+
* @param {number} [options.maxWait]
|
|
22195
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
22196
|
+
* @param {boolean} [options.trailing=true]
|
|
22197
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
22198
|
+
* @returns {Function} Returns the new debounced function.
|
|
22199
|
+
* @example
|
|
22200
|
+
*
|
|
22201
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
22202
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
22203
|
+
*
|
|
22204
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
22205
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
22206
|
+
* 'leading': true,
|
|
22207
|
+
* 'trailing': false
|
|
22208
|
+
* }));
|
|
22209
|
+
*
|
|
22210
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
22211
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
22212
|
+
* var source = new EventSource('/stream');
|
|
22213
|
+
* jQuery(source).on('message', debounced);
|
|
22214
|
+
*
|
|
22215
|
+
* // Cancel the trailing debounced invocation.
|
|
22216
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
22217
|
+
*/
|
|
22218
|
+
function debounce(func, wait, options) {
|
|
22219
|
+
var lastArgs,
|
|
22220
|
+
lastThis,
|
|
22221
|
+
maxWait,
|
|
22222
|
+
result,
|
|
22223
|
+
timerId,
|
|
22224
|
+
lastCallTime,
|
|
22225
|
+
lastInvokeTime = 0,
|
|
22226
|
+
leading = false,
|
|
22227
|
+
maxing = false,
|
|
22228
|
+
trailing = true;
|
|
22229
|
+
|
|
22230
|
+
if (typeof func != 'function') {
|
|
22231
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
22232
|
+
}
|
|
22233
|
+
wait = toNumber(wait) || 0;
|
|
22234
|
+
if (isObject(options)) {
|
|
22235
|
+
leading = !!options.leading;
|
|
22236
|
+
maxing = 'maxWait' in options;
|
|
22237
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
22238
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
22239
|
+
}
|
|
22240
|
+
|
|
22241
|
+
function invokeFunc(time) {
|
|
22242
|
+
var args = lastArgs,
|
|
22243
|
+
thisArg = lastThis;
|
|
22244
|
+
|
|
22245
|
+
lastArgs = lastThis = undefined;
|
|
22246
|
+
lastInvokeTime = time;
|
|
22247
|
+
result = func.apply(thisArg, args);
|
|
22248
|
+
return result;
|
|
22249
|
+
}
|
|
22250
|
+
|
|
22251
|
+
function leadingEdge(time) {
|
|
22252
|
+
// Reset any `maxWait` timer.
|
|
22253
|
+
lastInvokeTime = time;
|
|
22254
|
+
// Start the timer for the trailing edge.
|
|
22255
|
+
timerId = setTimeout(timerExpired, wait);
|
|
22256
|
+
// Invoke the leading edge.
|
|
22257
|
+
return leading ? invokeFunc(time) : result;
|
|
22258
|
+
}
|
|
22259
|
+
|
|
22260
|
+
function remainingWait(time) {
|
|
22261
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
22262
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
22263
|
+
result = wait - timeSinceLastCall;
|
|
22264
|
+
|
|
22265
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
|
22266
|
+
}
|
|
22267
|
+
|
|
22268
|
+
function shouldInvoke(time) {
|
|
22269
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
22270
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
22271
|
+
|
|
22272
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
22273
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
22274
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
22275
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
22276
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
22277
|
+
}
|
|
22278
|
+
|
|
22279
|
+
function timerExpired() {
|
|
22280
|
+
var time = now();
|
|
22281
|
+
if (shouldInvoke(time)) {
|
|
22282
|
+
return trailingEdge(time);
|
|
22283
|
+
}
|
|
22284
|
+
// Restart the timer.
|
|
22285
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
22286
|
+
}
|
|
22287
|
+
|
|
22288
|
+
function trailingEdge(time) {
|
|
22289
|
+
timerId = undefined;
|
|
22290
|
+
|
|
22291
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
22292
|
+
// debounced at least once.
|
|
22293
|
+
if (trailing && lastArgs) {
|
|
22294
|
+
return invokeFunc(time);
|
|
22295
|
+
}
|
|
22296
|
+
lastArgs = lastThis = undefined;
|
|
22297
|
+
return result;
|
|
22298
|
+
}
|
|
22299
|
+
|
|
22300
|
+
function cancel() {
|
|
22301
|
+
if (timerId !== undefined) {
|
|
22302
|
+
clearTimeout(timerId);
|
|
22303
|
+
}
|
|
22304
|
+
lastInvokeTime = 0;
|
|
22305
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
22306
|
+
}
|
|
22307
|
+
|
|
22308
|
+
function flush() {
|
|
22309
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
22310
|
+
}
|
|
22311
|
+
|
|
22312
|
+
function debounced() {
|
|
22313
|
+
var time = now(),
|
|
22314
|
+
isInvoking = shouldInvoke(time);
|
|
22315
|
+
|
|
22316
|
+
lastArgs = arguments;
|
|
22317
|
+
lastThis = this;
|
|
22318
|
+
lastCallTime = time;
|
|
22319
|
+
|
|
22320
|
+
if (isInvoking) {
|
|
22321
|
+
if (timerId === undefined) {
|
|
22322
|
+
return leadingEdge(lastCallTime);
|
|
22323
|
+
}
|
|
22324
|
+
if (maxing) {
|
|
22325
|
+
// Handle invocations in a tight loop.
|
|
22326
|
+
timerId = setTimeout(timerExpired, wait);
|
|
22327
|
+
return invokeFunc(lastCallTime);
|
|
22328
|
+
}
|
|
22329
|
+
}
|
|
22330
|
+
if (timerId === undefined) {
|
|
22331
|
+
timerId = setTimeout(timerExpired, wait);
|
|
22332
|
+
}
|
|
22333
|
+
return result;
|
|
22334
|
+
}
|
|
22335
|
+
debounced.cancel = cancel;
|
|
22336
|
+
debounced.flush = flush;
|
|
22337
|
+
return debounced;
|
|
22338
|
+
}
|
|
22339
|
+
|
|
22340
|
+
/**
|
|
22341
|
+
* Checks if `value` is the
|
|
22342
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
22343
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
22344
|
+
*
|
|
22345
|
+
* @static
|
|
22346
|
+
* @memberOf _
|
|
22347
|
+
* @since 0.1.0
|
|
22348
|
+
* @category Lang
|
|
22349
|
+
* @param {*} value The value to check.
|
|
22350
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
22351
|
+
* @example
|
|
22352
|
+
*
|
|
22353
|
+
* _.isObject({});
|
|
22354
|
+
* // => true
|
|
22355
|
+
*
|
|
22356
|
+
* _.isObject([1, 2, 3]);
|
|
22357
|
+
* // => true
|
|
22358
|
+
*
|
|
22359
|
+
* _.isObject(_.noop);
|
|
22360
|
+
* // => true
|
|
22361
|
+
*
|
|
22362
|
+
* _.isObject(null);
|
|
22363
|
+
* // => false
|
|
22364
|
+
*/
|
|
22365
|
+
function isObject(value) {
|
|
22366
|
+
var type = typeof value;
|
|
22367
|
+
return !!value && (type == 'object' || type == 'function');
|
|
22368
|
+
}
|
|
22369
|
+
|
|
22370
|
+
/**
|
|
22371
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
22372
|
+
* and has a `typeof` result of "object".
|
|
22373
|
+
*
|
|
22374
|
+
* @static
|
|
22375
|
+
* @memberOf _
|
|
22376
|
+
* @since 4.0.0
|
|
22377
|
+
* @category Lang
|
|
22378
|
+
* @param {*} value The value to check.
|
|
22379
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
22380
|
+
* @example
|
|
22381
|
+
*
|
|
22382
|
+
* _.isObjectLike({});
|
|
22383
|
+
* // => true
|
|
22384
|
+
*
|
|
22385
|
+
* _.isObjectLike([1, 2, 3]);
|
|
22386
|
+
* // => true
|
|
22387
|
+
*
|
|
22388
|
+
* _.isObjectLike(_.noop);
|
|
22389
|
+
* // => false
|
|
22390
|
+
*
|
|
22391
|
+
* _.isObjectLike(null);
|
|
22392
|
+
* // => false
|
|
22393
|
+
*/
|
|
22394
|
+
function isObjectLike(value) {
|
|
22395
|
+
return !!value && typeof value == 'object';
|
|
22396
|
+
}
|
|
22397
|
+
|
|
22398
|
+
/**
|
|
22399
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
22400
|
+
*
|
|
22401
|
+
* @static
|
|
22402
|
+
* @memberOf _
|
|
22403
|
+
* @since 4.0.0
|
|
22404
|
+
* @category Lang
|
|
22405
|
+
* @param {*} value The value to check.
|
|
22406
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
22407
|
+
* @example
|
|
22408
|
+
*
|
|
22409
|
+
* _.isSymbol(Symbol.iterator);
|
|
22410
|
+
* // => true
|
|
22411
|
+
*
|
|
22412
|
+
* _.isSymbol('abc');
|
|
22413
|
+
* // => false
|
|
22414
|
+
*/
|
|
22415
|
+
function isSymbol(value) {
|
|
22416
|
+
return typeof value == 'symbol' ||
|
|
22417
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
22418
|
+
}
|
|
22419
|
+
|
|
22420
|
+
/**
|
|
22421
|
+
* Converts `value` to a number.
|
|
22422
|
+
*
|
|
22423
|
+
* @static
|
|
22424
|
+
* @memberOf _
|
|
22425
|
+
* @since 4.0.0
|
|
22426
|
+
* @category Lang
|
|
22427
|
+
* @param {*} value The value to process.
|
|
22428
|
+
* @returns {number} Returns the number.
|
|
22429
|
+
* @example
|
|
22430
|
+
*
|
|
22431
|
+
* _.toNumber(3.2);
|
|
22432
|
+
* // => 3.2
|
|
22433
|
+
*
|
|
22434
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
22435
|
+
* // => 5e-324
|
|
22436
|
+
*
|
|
22437
|
+
* _.toNumber(Infinity);
|
|
22438
|
+
* // => Infinity
|
|
22439
|
+
*
|
|
22440
|
+
* _.toNumber('3.2');
|
|
22441
|
+
* // => 3.2
|
|
22442
|
+
*/
|
|
22443
|
+
function toNumber(value) {
|
|
22444
|
+
if (typeof value == 'number') {
|
|
22445
|
+
return value;
|
|
22446
|
+
}
|
|
22447
|
+
if (isSymbol(value)) {
|
|
22448
|
+
return NAN;
|
|
22449
|
+
}
|
|
22450
|
+
if (isObject(value)) {
|
|
22451
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
22452
|
+
value = isObject(other) ? (other + '') : other;
|
|
22453
|
+
}
|
|
22454
|
+
if (typeof value != 'string') {
|
|
22455
|
+
return value === 0 ? value : +value;
|
|
22456
|
+
}
|
|
22457
|
+
value = value.replace(reTrim, '');
|
|
22458
|
+
var isBinary = reIsBinary.test(value);
|
|
22459
|
+
return (isBinary || reIsOctal.test(value))
|
|
22460
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
22461
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
22462
|
+
}
|
|
22463
|
+
|
|
22464
|
+
module.exports = debounce;
|
|
22465
|
+
|
|
22466
|
+
|
|
22036
22467
|
/***/ }),
|
|
22037
22468
|
|
|
22038
22469
|
/***/ 5666:
|
|
@@ -22981,51 +23412,25 @@ function _inherits(subClass, superClass) {
|
|
|
22981
23412
|
|
|
22982
23413
|
/***/ }),
|
|
22983
23414
|
|
|
22984
|
-
/***/
|
|
23415
|
+
/***/ 3020:
|
|
22985
23416
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
22986
23417
|
|
|
22987
23418
|
"use strict";
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
22991
|
-
|
|
22992
|
-
|
|
22993
|
-
|
|
22994
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol.js
|
|
22995
|
-
var symbol = __webpack_require__(1446);
|
|
22996
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js
|
|
22997
|
-
var iterator = __webpack_require__(3327);
|
|
22998
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
|
|
22999
|
-
|
|
23000
|
-
|
|
23001
|
-
function _typeof(obj) {
|
|
23002
|
-
"@babel/helpers - typeof";
|
|
23003
|
-
|
|
23004
|
-
if (typeof symbol === "function" && typeof iterator === "symbol") {
|
|
23005
|
-
_typeof = function _typeof(obj) {
|
|
23006
|
-
return typeof obj;
|
|
23007
|
-
};
|
|
23008
|
-
} else {
|
|
23009
|
-
_typeof = function _typeof(obj) {
|
|
23010
|
-
return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
23011
|
-
};
|
|
23012
|
-
}
|
|
23013
|
-
|
|
23014
|
-
return _typeof(obj);
|
|
23015
|
-
}
|
|
23016
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js
|
|
23017
|
-
var assertThisInitialized = __webpack_require__(5281);
|
|
23018
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
|
|
23419
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23420
|
+
/* harmony export */ "Z": function() { return /* binding */ _possibleConstructorReturn; }
|
|
23421
|
+
/* harmony export */ });
|
|
23422
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9623);
|
|
23423
|
+
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5281);
|
|
23019
23424
|
|
|
23020
23425
|
|
|
23021
23426
|
function _possibleConstructorReturn(self, call) {
|
|
23022
|
-
if (call && (
|
|
23427
|
+
if (call && ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(call) === "object" || typeof call === "function")) {
|
|
23023
23428
|
return call;
|
|
23024
23429
|
} else if (call !== void 0) {
|
|
23025
23430
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
23026
23431
|
}
|
|
23027
23432
|
|
|
23028
|
-
return (0,
|
|
23433
|
+
return (0,_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(self);
|
|
23029
23434
|
}
|
|
23030
23435
|
|
|
23031
23436
|
/***/ }),
|
|
@@ -23048,6 +23453,35 @@ function _setPrototypeOf(o, p) {
|
|
|
23048
23453
|
return _setPrototypeOf(o, p);
|
|
23049
23454
|
}
|
|
23050
23455
|
|
|
23456
|
+
/***/ }),
|
|
23457
|
+
|
|
23458
|
+
/***/ 9623:
|
|
23459
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
23460
|
+
|
|
23461
|
+
"use strict";
|
|
23462
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23463
|
+
/* harmony export */ "Z": function() { return /* binding */ _typeof; }
|
|
23464
|
+
/* harmony export */ });
|
|
23465
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1446);
|
|
23466
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_symbol_iterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3327);
|
|
23467
|
+
|
|
23468
|
+
|
|
23469
|
+
function _typeof(obj) {
|
|
23470
|
+
"@babel/helpers - typeof";
|
|
23471
|
+
|
|
23472
|
+
if (typeof _babel_runtime_corejs3_core_js_symbol__WEBPACK_IMPORTED_MODULE_0__ === "function" && typeof _babel_runtime_corejs3_core_js_symbol_iterator__WEBPACK_IMPORTED_MODULE_1__ === "symbol") {
|
|
23473
|
+
_typeof = function _typeof(obj) {
|
|
23474
|
+
return typeof obj;
|
|
23475
|
+
};
|
|
23476
|
+
} else {
|
|
23477
|
+
_typeof = function _typeof(obj) {
|
|
23478
|
+
return obj && typeof _babel_runtime_corejs3_core_js_symbol__WEBPACK_IMPORTED_MODULE_0__ === "function" && obj.constructor === _babel_runtime_corejs3_core_js_symbol__WEBPACK_IMPORTED_MODULE_0__ && obj !== _babel_runtime_corejs3_core_js_symbol__WEBPACK_IMPORTED_MODULE_0__.prototype ? "symbol" : typeof obj;
|
|
23479
|
+
};
|
|
23480
|
+
}
|
|
23481
|
+
|
|
23482
|
+
return _typeof(obj);
|
|
23483
|
+
}
|
|
23484
|
+
|
|
23051
23485
|
/***/ })
|
|
23052
23486
|
|
|
23053
23487
|
/******/ });
|
|
@@ -23242,7 +23676,7 @@ function _loadEmbed() {
|
|
|
23242
23676
|
polyfillVersionString = "legacy";
|
|
23243
23677
|
}
|
|
23244
23678
|
|
|
23245
|
-
embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "
|
|
23679
|
+
embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "70f4c51", "/index.js");
|
|
23246
23680
|
}
|
|
23247
23681
|
|
|
23248
23682
|
clientScriptExists = Boolean( true || // The client script is bundled with npm module
|
|
@@ -23369,10 +23803,10 @@ function createEmbedObject() {
|
|
|
23369
23803
|
handle: adaSettings.handle,
|
|
23370
23804
|
embedVersion: 2,
|
|
23371
23805
|
embedSettings: adaSettings,
|
|
23372
|
-
version: "1.0.
|
|
23806
|
+
version: "1.0.41",
|
|
23373
23807
|
isNpm: true,
|
|
23374
23808
|
hostPage: window.location.href,
|
|
23375
|
-
commitHash: "
|
|
23809
|
+
commitHash: "70f4c51"
|
|
23376
23810
|
}, {
|
|
23377
23811
|
sampleRate: 0.01 // 1% of logs will go through
|
|
23378
23812
|
|