@ada-support/embed2 1.0.37 → 1.0.42

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.
@@ -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 + 1 modules
878
- var possibleConstructorReturn = __webpack_require__(1770);
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: "26ba329763628125ccd447c10be0476c80863a64",
8503
+ release: "42a0dad879a0093ea3dae3ce4fbc48176784fa90",
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 type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
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
- return stringify_default()({
8875
- name: this.name,
8876
- type: type,
8877
- payload: payload,
8878
- id: id,
8879
- status: status
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, "26ba329", "/index.html");
9195
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "42a0dad", "/index.html");
9180
9196
  }
9181
9197
  /**
9182
9198
  * Generate the Chat / API URL
@@ -13330,6 +13346,7 @@ function Container_mapDispatchToProps(dispatch) {
13330
13346
 
13331
13347
 
13332
13348
 
13349
+
13333
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; }
13334
13351
 
13335
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; }
@@ -13381,6 +13398,8 @@ var Embed = /*#__PURE__*/function () {
13381
13398
 
13382
13399
  (0,defineProperty/* default */.Z)(this, "initializationResolve", void 0);
13383
13400
 
13401
+ (0,defineProperty/* default */.Z)(this, "debounceCampaignTrigger", void 0);
13402
+
13384
13403
  this.adaSettings = adaSettings;
13385
13404
  this.unmountCallback = unmountCallback;
13386
13405
  this.messageService = new MessageService();
@@ -13391,6 +13410,38 @@ var Embed = /*#__PURE__*/function () {
13391
13410
  _this.initializationReject = reject;
13392
13411
  });
13393
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
+ });
13394
13445
  }
13395
13446
 
13396
13447
  _createClass(Embed, [{
@@ -13447,32 +13498,32 @@ var Embed = /*#__PURE__*/function () {
13447
13498
  }, {
13448
13499
  key: "toggle",
13449
13500
  value: function () {
13450
- var _toggle = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
13451
- return regenerator_default().wrap(function _callee$(_context) {
13501
+ var _toggle = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
13502
+ return regenerator_default().wrap(function _callee2$(_context2) {
13452
13503
  while (1) {
13453
- switch (_context.prev = _context.next) {
13504
+ switch (_context2.prev = _context2.next) {
13454
13505
  case 0:
13455
13506
  if (!this.adaSettings.parentElement) {
13456
- _context.next = 2;
13507
+ _context2.next = 2;
13457
13508
  break;
13458
13509
  }
13459
13510
 
13460
13511
  throw new errors/* AdaEmbedError */.S("Cannot toggle when using parentElement.");
13461
13512
 
13462
13513
  case 2:
13463
- _context.next = 4;
13514
+ _context2.next = 4;
13464
13515
  return this.initialized;
13465
13516
 
13466
13517
  case 4:
13467
- _context.next = 6;
13518
+ _context2.next = 6;
13468
13519
  return this.localChannel.fetch(TOGGLE, TOGGLE_RESPONSE);
13469
13520
 
13470
13521
  case 6:
13471
13522
  case "end":
13472
- return _context.stop();
13523
+ return _context2.stop();
13473
13524
  }
13474
13525
  }
13475
- }, _callee, this);
13526
+ }, _callee2, this);
13476
13527
  }));
13477
13528
 
13478
13529
  function toggle() {
@@ -13484,23 +13535,23 @@ var Embed = /*#__PURE__*/function () {
13484
13535
  }, {
13485
13536
  key: "getInfo",
13486
13537
  value: function () {
13487
- var _getInfo = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
13488
- return regenerator_default().wrap(function _callee2$(_context2) {
13538
+ var _getInfo = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3() {
13539
+ return regenerator_default().wrap(function _callee3$(_context3) {
13489
13540
  while (1) {
13490
- switch (_context2.prev = _context2.next) {
13541
+ switch (_context3.prev = _context3.next) {
13491
13542
  case 0:
13492
- _context2.next = 2;
13543
+ _context3.next = 2;
13493
13544
  return this.initialized;
13494
13545
 
13495
13546
  case 2:
13496
- return _context2.abrupt("return", this.localChannel.fetch(GET_INFO, GET_INFO_RESPONSE));
13547
+ return _context3.abrupt("return", this.localChannel.fetch(GET_INFO, GET_INFO_RESPONSE));
13497
13548
 
13498
13549
  case 3:
13499
13550
  case "end":
13500
- return _context2.stop();
13551
+ return _context3.stop();
13501
13552
  }
13502
13553
  }
13503
- }, _callee2, this);
13554
+ }, _callee3, this);
13504
13555
  }));
13505
13556
 
13506
13557
  function getInfo() {
@@ -13512,27 +13563,27 @@ var Embed = /*#__PURE__*/function () {
13512
13563
  }, {
13513
13564
  key: "setMetaFields",
13514
13565
  value: function () {
13515
- var _setMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3(options) {
13516
- return regenerator_default().wrap(function _callee3$(_context3) {
13566
+ var _setMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee4(options) {
13567
+ return regenerator_default().wrap(function _callee4$(_context4) {
13517
13568
  while (1) {
13518
- switch (_context3.prev = _context3.next) {
13569
+ switch (_context4.prev = _context4.next) {
13519
13570
  case 0:
13520
- _context3.next = 2;
13571
+ _context4.next = 2;
13521
13572
  return this.initialized;
13522
13573
 
13523
13574
  case 2:
13524
- _context3.next = 4;
13575
+ _context4.next = 4;
13525
13576
  return this.localChannel.fetch(SET_META_FIELDS, SET_META_FIELDS_RESPONSE, options);
13526
13577
 
13527
13578
  case 4:
13528
13579
  case "end":
13529
- return _context3.stop();
13580
+ return _context4.stop();
13530
13581
  }
13531
13582
  }
13532
- }, _callee3, this);
13583
+ }, _callee4, this);
13533
13584
  }));
13534
13585
 
13535
- function setMetaFields(_x) {
13586
+ function setMetaFields(_x2) {
13536
13587
  return _setMetaFields.apply(this, arguments);
13537
13588
  }
13538
13589
 
@@ -13541,27 +13592,27 @@ var Embed = /*#__PURE__*/function () {
13541
13592
  }, {
13542
13593
  key: "setSensitiveMetaFields",
13543
13594
  value: function () {
13544
- var _setSensitiveMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee4(options) {
13545
- return regenerator_default().wrap(function _callee4$(_context4) {
13595
+ var _setSensitiveMetaFields = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee5(options) {
13596
+ return regenerator_default().wrap(function _callee5$(_context5) {
13546
13597
  while (1) {
13547
- switch (_context4.prev = _context4.next) {
13598
+ switch (_context5.prev = _context5.next) {
13548
13599
  case 0:
13549
- _context4.next = 2;
13600
+ _context5.next = 2;
13550
13601
  return this.initialized;
13551
13602
 
13552
13603
  case 2:
13553
- _context4.next = 4;
13604
+ _context5.next = 4;
13554
13605
  return this.localChannel.fetch("SET_SENSITIVE_META_FIELDS", "SET_SENSITIVE_META_FIELDS_RESPONSE", options);
13555
13606
 
13556
13607
  case 4:
13557
13608
  case "end":
13558
- return _context4.stop();
13609
+ return _context5.stop();
13559
13610
  }
13560
13611
  }
13561
- }, _callee4, this);
13612
+ }, _callee5, this);
13562
13613
  }));
13563
13614
 
13564
- function setSensitiveMetaFields(_x2) {
13615
+ function setSensitiveMetaFields(_x3) {
13565
13616
  return _setSensitiveMetaFields.apply(this, arguments);
13566
13617
  }
13567
13618
 
@@ -13570,24 +13621,24 @@ var Embed = /*#__PURE__*/function () {
13570
13621
  }, {
13571
13622
  key: "stop",
13572
13623
  value: function () {
13573
- var _stop = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee5() {
13574
- return regenerator_default().wrap(function _callee5$(_context5) {
13624
+ var _stop = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee6() {
13625
+ return regenerator_default().wrap(function _callee6$(_context6) {
13575
13626
  while (1) {
13576
- switch (_context5.prev = _context5.next) {
13627
+ switch (_context6.prev = _context6.next) {
13577
13628
  case 0:
13578
- _context5.next = 2;
13629
+ _context6.next = 2;
13579
13630
  return this.initialized;
13580
13631
 
13581
13632
  case 2:
13582
- _context5.next = 4;
13633
+ _context6.next = 4;
13583
13634
  return this.localChannel.fetch(STOP, STOP_RESPONSE);
13584
13635
 
13585
13636
  case 4:
13586
13637
  case "end":
13587
- return _context5.stop();
13638
+ return _context6.stop();
13588
13639
  }
13589
13640
  }
13590
- }, _callee5, this);
13641
+ }, _callee6, this);
13591
13642
  }));
13592
13643
 
13593
13644
  function stop() {
@@ -13599,24 +13650,24 @@ var Embed = /*#__PURE__*/function () {
13599
13650
  }, {
13600
13651
  key: "deleteHistory",
13601
13652
  value: function () {
13602
- var _deleteHistory = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee6() {
13603
- return regenerator_default().wrap(function _callee6$(_context6) {
13653
+ var _deleteHistory = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee7() {
13654
+ return regenerator_default().wrap(function _callee7$(_context7) {
13604
13655
  while (1) {
13605
- switch (_context6.prev = _context6.next) {
13656
+ switch (_context7.prev = _context7.next) {
13606
13657
  case 0:
13607
- _context6.next = 2;
13658
+ _context7.next = 2;
13608
13659
  return this.initialized;
13609
13660
 
13610
13661
  case 2:
13611
- _context6.next = 4;
13662
+ _context7.next = 4;
13612
13663
  return this.localChannel.fetch(DELETE_HISTORY, DELETE_HISTORY_RESPONSE);
13613
13664
 
13614
13665
  case 4:
13615
13666
  case "end":
13616
- return _context6.stop();
13667
+ return _context7.stop();
13617
13668
  }
13618
13669
  }
13619
- }, _callee6, this);
13670
+ }, _callee7, this);
13620
13671
  }));
13621
13672
 
13622
13673
  function deleteHistory() {
@@ -13628,27 +13679,27 @@ var Embed = /*#__PURE__*/function () {
13628
13679
  }, {
13629
13680
  key: "reset",
13630
13681
  value: function () {
13631
- var _reset = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee7() {
13682
+ var _reset = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee8() {
13632
13683
  var resetParams,
13633
- _args7 = arguments;
13634
- return regenerator_default().wrap(function _callee7$(_context7) {
13684
+ _args8 = arguments;
13685
+ return regenerator_default().wrap(function _callee8$(_context8) {
13635
13686
  while (1) {
13636
- switch (_context7.prev = _context7.next) {
13687
+ switch (_context8.prev = _context8.next) {
13637
13688
  case 0:
13638
- resetParams = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
13639
- _context7.next = 3;
13689
+ resetParams = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
13690
+ _context8.next = 3;
13640
13691
  return this.initialized;
13641
13692
 
13642
13693
  case 3:
13643
- _context7.next = 5;
13694
+ _context8.next = 5;
13644
13695
  return this.localChannel.fetch(RESET, RESET_RESPONSE, resetParams);
13645
13696
 
13646
13697
  case 5:
13647
13698
  case "end":
13648
- return _context7.stop();
13699
+ return _context8.stop();
13649
13700
  }
13650
13701
  }
13651
- }, _callee7, this);
13702
+ }, _callee8, this);
13652
13703
  }));
13653
13704
 
13654
13705
  function reset() {
@@ -13660,19 +13711,19 @@ var Embed = /*#__PURE__*/function () {
13660
13711
  }, {
13661
13712
  key: "trackEvent",
13662
13713
  value: function () {
13663
- var _trackEvent = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee8(eventKey, value) {
13714
+ var _trackEvent = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee9(eventKey, value) {
13664
13715
  var meta,
13665
- _args8 = arguments;
13666
- return regenerator_default().wrap(function _callee8$(_context8) {
13716
+ _args9 = arguments;
13717
+ return regenerator_default().wrap(function _callee9$(_context9) {
13667
13718
  while (1) {
13668
- switch (_context8.prev = _context8.next) {
13719
+ switch (_context9.prev = _context9.next) {
13669
13720
  case 0:
13670
- meta = _args8.length > 2 && _args8[2] !== undefined ? _args8[2] : {};
13671
- _context8.next = 3;
13721
+ meta = _args9.length > 2 && _args9[2] !== undefined ? _args9[2] : {};
13722
+ _context9.next = 3;
13672
13723
  return this.initialized;
13673
13724
 
13674
13725
  case 3:
13675
- _context8.next = 5;
13726
+ _context9.next = 5;
13676
13727
  return this.localChannel.fetch(TRACK_EVENT, TRACK_EVENT_RESPONSE, {
13677
13728
  eventKey: eventKey,
13678
13729
  value: value,
@@ -13681,13 +13732,13 @@ var Embed = /*#__PURE__*/function () {
13681
13732
 
13682
13733
  case 5:
13683
13734
  case "end":
13684
- return _context8.stop();
13735
+ return _context9.stop();
13685
13736
  }
13686
13737
  }
13687
- }, _callee8, this);
13738
+ }, _callee9, this);
13688
13739
  }));
13689
13740
 
13690
- function trackEvent(_x3, _x4) {
13741
+ function trackEvent(_x4, _x5) {
13691
13742
  return _trackEvent.apply(this, arguments);
13692
13743
  }
13693
13744
 
@@ -13696,32 +13747,25 @@ var Embed = /*#__PURE__*/function () {
13696
13747
  }, {
13697
13748
  key: "triggerCampaign",
13698
13749
  value: function () {
13699
- var _triggerCampaign = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee9(campaignKey) {
13750
+ var _triggerCampaign = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee10(campaignKey) {
13700
13751
  var triggerCampaignParams,
13701
- _args9 = arguments;
13702
- return regenerator_default().wrap(function _callee9$(_context9) {
13752
+ _args10 = arguments;
13753
+ return regenerator_default().wrap(function _callee10$(_context10) {
13703
13754
  while (1) {
13704
- switch (_context9.prev = _context9.next) {
13755
+ switch (_context10.prev = _context10.next) {
13705
13756
  case 0:
13706
- triggerCampaignParams = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : {};
13707
- _context9.next = 3;
13708
- return this.initialized;
13709
-
13710
- case 3:
13711
- _context9.next = 5;
13712
- return this.localChannel.fetch(TRIGGER_CAMPAIGN, TRIGGER_CAMPAIGN_RESPONSE, client_objectSpread({
13713
- campaignKey: campaignKey
13714
- }, triggerCampaignParams));
13757
+ triggerCampaignParams = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : {};
13758
+ this.debounceCampaignTrigger(campaignKey, triggerCampaignParams);
13715
13759
 
13716
- case 5:
13760
+ case 2:
13717
13761
  case "end":
13718
- return _context9.stop();
13762
+ return _context10.stop();
13719
13763
  }
13720
13764
  }
13721
- }, _callee9, this);
13765
+ }, _callee10, this);
13722
13766
  }));
13723
13767
 
13724
- function triggerCampaign(_x5) {
13768
+ function triggerCampaign(_x6) {
13725
13769
  return _triggerCampaign.apply(this, arguments);
13726
13770
  }
13727
13771
 
@@ -13730,27 +13774,27 @@ var Embed = /*#__PURE__*/function () {
13730
13774
  }, {
13731
13775
  key: "evaluateCampaignConditions",
13732
13776
  value: function () {
13733
- var _evaluateCampaignConditions = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee10(options) {
13734
- return regenerator_default().wrap(function _callee10$(_context10) {
13777
+ var _evaluateCampaignConditions = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee11(options) {
13778
+ return regenerator_default().wrap(function _callee11$(_context11) {
13735
13779
  while (1) {
13736
- switch (_context10.prev = _context10.next) {
13780
+ switch (_context11.prev = _context11.next) {
13737
13781
  case 0:
13738
- _context10.next = 2;
13782
+ _context11.next = 2;
13739
13783
  return this.initialized;
13740
13784
 
13741
13785
  case 2:
13742
- _context10.next = 4;
13786
+ _context11.next = 4;
13743
13787
  return this.localChannel.fetch(EVAL_CAMPAIGN_CONDITIONS, EVAL_CAMPAIGN_CONDITIONS_RESPONSE, options);
13744
13788
 
13745
13789
  case 4:
13746
13790
  case "end":
13747
- return _context10.stop();
13791
+ return _context11.stop();
13748
13792
  }
13749
13793
  }
13750
- }, _callee10, this);
13794
+ }, _callee11, this);
13751
13795
  }));
13752
13796
 
13753
- function evaluateCampaignConditions(_x6) {
13797
+ function evaluateCampaignConditions(_x7) {
13754
13798
  return _evaluateCampaignConditions.apply(this, arguments);
13755
13799
  }
13756
13800
 
@@ -13759,25 +13803,25 @@ var Embed = /*#__PURE__*/function () {
13759
13803
  }, {
13760
13804
  key: "createProactive",
13761
13805
  value: function () {
13762
- var _createProactive = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee11(body, duration, responseId) {
13763
- return regenerator_default().wrap(function _callee11$(_context11) {
13806
+ var _createProactive = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee12(body, duration, responseId) {
13807
+ return regenerator_default().wrap(function _callee12$(_context12) {
13764
13808
  while (1) {
13765
- switch (_context11.prev = _context11.next) {
13809
+ switch (_context12.prev = _context12.next) {
13766
13810
  case 0:
13767
13811
  if (!this.adaSettings.parentElement) {
13768
- _context11.next = 2;
13812
+ _context12.next = 2;
13769
13813
  break;
13770
13814
  }
13771
13815
 
13772
13816
  throw new errors/* AdaEmbedError */.S("Cannot call createProactive when using parentElement.");
13773
13817
 
13774
13818
  case 2:
13775
- _context11.next = 4;
13819
+ _context12.next = 4;
13776
13820
  return this.initialized;
13777
13821
 
13778
13822
  case 4:
13779
- _context11.prev = 4;
13780
- _context11.next = 7;
13823
+ _context12.prev = 4;
13824
+ _context12.next = 7;
13781
13825
  return this.localChannel.fetch(CREATE_PROACTIVE, CREATE_PROACTIVE_RESPONSE, {
13782
13826
  body: body,
13783
13827
  duration: duration,
@@ -13788,23 +13832,23 @@ var Embed = /*#__PURE__*/function () {
13788
13832
  duration * 1000 + 2000);
13789
13833
 
13790
13834
  case 7:
13791
- _context11.next = 12;
13835
+ _context12.next = 12;
13792
13836
  break;
13793
13837
 
13794
13838
  case 9:
13795
- _context11.prev = 9;
13796
- _context11.t0 = _context11["catch"](4);
13797
- throw new errors/* AdaEmbedError */.S(_context11.t0);
13839
+ _context12.prev = 9;
13840
+ _context12.t0 = _context12["catch"](4);
13841
+ throw new errors/* AdaEmbedError */.S(_context12.t0);
13798
13842
 
13799
13843
  case 12:
13800
13844
  case "end":
13801
- return _context11.stop();
13845
+ return _context12.stop();
13802
13846
  }
13803
13847
  }
13804
- }, _callee11, this, [[4, 9]]);
13848
+ }, _callee12, this, [[4, 9]]);
13805
13849
  }));
13806
13850
 
13807
- function createProactive(_x7, _x8, _x9) {
13851
+ function createProactive(_x8, _x9, _x10) {
13808
13852
  return _createProactive.apply(this, arguments);
13809
13853
  }
13810
13854
 
@@ -13848,7 +13892,7 @@ window.__AdaEmbedConstructor = Embed;
13848
13892
  /* harmony export */ });
13849
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);
13850
13894
  var isProduction = "production" === "production";
13851
- var embed2Version = "26ba329";
13895
+ var embed2Version = "42a0dad";
13852
13896
 
13853
13897
  /***/ }),
13854
13898
 
@@ -13870,8 +13914,8 @@ var construct_default = /*#__PURE__*/__webpack_require__.n(construct);
13870
13914
  var classCallCheck = __webpack_require__(8420);
13871
13915
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js
13872
13916
  var inherits = __webpack_require__(306);
13873
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js + 1 modules
13874
- var possibleConstructorReturn = __webpack_require__(1770);
13917
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
13918
+ var possibleConstructorReturn = __webpack_require__(3020);
13875
13919
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js
13876
13920
  var getPrototypeOf = __webpack_require__(3362);
13877
13921
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/map.js
@@ -22036,6 +22080,390 @@ module.exports = function (value, replacer, space) {
22036
22080
  };
22037
22081
 
22038
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
+
22039
22467
  /***/ }),
22040
22468
 
22041
22469
  /***/ 5666:
@@ -22984,51 +23412,25 @@ function _inherits(subClass, superClass) {
22984
23412
 
22985
23413
  /***/ }),
22986
23414
 
22987
- /***/ 1770:
23415
+ /***/ 3020:
22988
23416
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
22989
23417
 
22990
23418
  "use strict";
22991
-
22992
- // EXPORTS
22993
- __webpack_require__.d(__webpack_exports__, {
22994
- "Z": function() { return /* binding */ _possibleConstructorReturn; }
22995
- });
22996
-
22997
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol.js
22998
- var symbol = __webpack_require__(1446);
22999
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js
23000
- var iterator = __webpack_require__(3327);
23001
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
23002
-
23003
-
23004
- function _typeof(obj) {
23005
- "@babel/helpers - typeof";
23006
-
23007
- if (typeof symbol === "function" && typeof iterator === "symbol") {
23008
- _typeof = function _typeof(obj) {
23009
- return typeof obj;
23010
- };
23011
- } else {
23012
- _typeof = function _typeof(obj) {
23013
- return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
23014
- };
23015
- }
23016
-
23017
- return _typeof(obj);
23018
- }
23019
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js
23020
- var assertThisInitialized = __webpack_require__(5281);
23021
- ;// 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);
23022
23424
 
23023
23425
 
23024
23426
  function _possibleConstructorReturn(self, call) {
23025
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
23427
+ if (call && ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(call) === "object" || typeof call === "function")) {
23026
23428
  return call;
23027
23429
  } else if (call !== void 0) {
23028
23430
  throw new TypeError("Derived constructors may only return object or undefined");
23029
23431
  }
23030
23432
 
23031
- return (0,assertThisInitialized/* default */.Z)(self);
23433
+ return (0,_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(self);
23032
23434
  }
23033
23435
 
23034
23436
  /***/ }),
@@ -23051,6 +23453,35 @@ function _setPrototypeOf(o, p) {
23051
23453
  return _setPrototypeOf(o, p);
23052
23454
  }
23053
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
+
23054
23485
  /***/ })
23055
23486
 
23056
23487
  /******/ });
@@ -23245,7 +23676,7 @@ function _loadEmbed() {
23245
23676
  polyfillVersionString = "legacy";
23246
23677
  }
23247
23678
 
23248
- embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "26ba329", "/index.js");
23679
+ embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "42a0dad", "/index.js");
23249
23680
  }
23250
23681
 
23251
23682
  clientScriptExists = Boolean( true || // The client script is bundled with npm module
@@ -23372,10 +23803,10 @@ function createEmbedObject() {
23372
23803
  handle: adaSettings.handle,
23373
23804
  embedVersion: 2,
23374
23805
  embedSettings: adaSettings,
23375
- version: "1.0.37",
23806
+ version: "1.0.42",
23376
23807
  isNpm: true,
23377
23808
  hostPage: window.location.href,
23378
- commitHash: "26ba329"
23809
+ commitHash: "42a0dad"
23379
23810
  }, {
23380
23811
  sampleRate: 0.01 // 1% of logs will go through
23381
23812