@ada-support/embed2 1.2.9 → 1.2.10
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 +204 -15
- package/package.json +1 -1
package/dist/npm-entry/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
+
/***/ 8580:
|
|
5
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6
|
+
|
|
7
|
+
module.exports = __webpack_require__(3778);
|
|
8
|
+
|
|
9
|
+
/***/ }),
|
|
10
|
+
|
|
4
11
|
/***/ 9969:
|
|
5
12
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6
13
|
|
|
@@ -393,6 +400,17 @@ var parent = __webpack_require__(3059);
|
|
|
393
400
|
module.exports = parent;
|
|
394
401
|
|
|
395
402
|
|
|
403
|
+
/***/ }),
|
|
404
|
+
|
|
405
|
+
/***/ 991:
|
|
406
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
407
|
+
|
|
408
|
+
__webpack_require__(7690);
|
|
409
|
+
var entryVirtual = __webpack_require__(5703);
|
|
410
|
+
|
|
411
|
+
module.exports = entryVirtual('Array').includes;
|
|
412
|
+
|
|
413
|
+
|
|
396
414
|
/***/ }),
|
|
397
415
|
|
|
398
416
|
/***/ 8700:
|
|
@@ -404,6 +422,27 @@ var entryVirtual = __webpack_require__(5703);
|
|
|
404
422
|
module.exports = entryVirtual('Array').indexOf;
|
|
405
423
|
|
|
406
424
|
|
|
425
|
+
/***/ }),
|
|
426
|
+
|
|
427
|
+
/***/ 8557:
|
|
428
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
429
|
+
|
|
430
|
+
var isPrototypeOf = __webpack_require__(7046);
|
|
431
|
+
var arrayMethod = __webpack_require__(991);
|
|
432
|
+
var stringMethod = __webpack_require__(1631);
|
|
433
|
+
|
|
434
|
+
var ArrayPrototype = Array.prototype;
|
|
435
|
+
var StringPrototype = String.prototype;
|
|
436
|
+
|
|
437
|
+
module.exports = function (it) {
|
|
438
|
+
var own = it.includes;
|
|
439
|
+
if (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.includes)) return arrayMethod;
|
|
440
|
+
if (typeof it == 'string' || it === StringPrototype || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.includes)) {
|
|
441
|
+
return stringMethod;
|
|
442
|
+
} return own;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
|
|
407
446
|
/***/ }),
|
|
408
447
|
|
|
409
448
|
/***/ 4570:
|
|
@@ -470,6 +509,17 @@ var path = __webpack_require__(4058);
|
|
|
470
509
|
module.exports = path.Object.keys;
|
|
471
510
|
|
|
472
511
|
|
|
512
|
+
/***/ }),
|
|
513
|
+
|
|
514
|
+
/***/ 1631:
|
|
515
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
516
|
+
|
|
517
|
+
__webpack_require__(1035);
|
|
518
|
+
var entryVirtual = __webpack_require__(5703);
|
|
519
|
+
|
|
520
|
+
module.exports = entryVirtual('String').includes;
|
|
521
|
+
|
|
522
|
+
|
|
473
523
|
/***/ }),
|
|
474
524
|
|
|
475
525
|
/***/ 9447:
|
|
@@ -988,6 +1038,28 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
988
1038
|
};
|
|
989
1039
|
|
|
990
1040
|
|
|
1041
|
+
/***/ }),
|
|
1042
|
+
|
|
1043
|
+
/***/ 7772:
|
|
1044
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1045
|
+
|
|
1046
|
+
var wellKnownSymbol = __webpack_require__(9813);
|
|
1047
|
+
|
|
1048
|
+
var MATCH = wellKnownSymbol('match');
|
|
1049
|
+
|
|
1050
|
+
module.exports = function (METHOD_NAME) {
|
|
1051
|
+
var regexp = /./;
|
|
1052
|
+
try {
|
|
1053
|
+
'/./'[METHOD_NAME](regexp);
|
|
1054
|
+
} catch (error1) {
|
|
1055
|
+
try {
|
|
1056
|
+
regexp[MATCH] = false;
|
|
1057
|
+
return '/./'[METHOD_NAME](regexp);
|
|
1058
|
+
} catch (error2) { /* empty */ }
|
|
1059
|
+
} return false;
|
|
1060
|
+
};
|
|
1061
|
+
|
|
1062
|
+
|
|
991
1063
|
/***/ }),
|
|
992
1064
|
|
|
993
1065
|
/***/ 4160:
|
|
@@ -1960,6 +2032,25 @@ module.exports = function (it) {
|
|
|
1960
2032
|
module.exports = true;
|
|
1961
2033
|
|
|
1962
2034
|
|
|
2035
|
+
/***/ }),
|
|
2036
|
+
|
|
2037
|
+
/***/ 685:
|
|
2038
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2039
|
+
|
|
2040
|
+
var isObject = __webpack_require__(941);
|
|
2041
|
+
var classof = __webpack_require__(2532);
|
|
2042
|
+
var wellKnownSymbol = __webpack_require__(9813);
|
|
2043
|
+
|
|
2044
|
+
var MATCH = wellKnownSymbol('match');
|
|
2045
|
+
|
|
2046
|
+
// `IsRegExp` abstract operation
|
|
2047
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
2048
|
+
module.exports = function (it) {
|
|
2049
|
+
var isRegExp;
|
|
2050
|
+
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2053
|
+
|
|
1963
2054
|
/***/ }),
|
|
1964
2055
|
|
|
1965
2056
|
/***/ 6664:
|
|
@@ -2164,6 +2255,23 @@ var WeakMap = global.WeakMap;
|
|
|
2164
2255
|
module.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));
|
|
2165
2256
|
|
|
2166
2257
|
|
|
2258
|
+
/***/ }),
|
|
2259
|
+
|
|
2260
|
+
/***/ 344:
|
|
2261
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2262
|
+
|
|
2263
|
+
var global = __webpack_require__(1899);
|
|
2264
|
+
var isRegExp = __webpack_require__(685);
|
|
2265
|
+
|
|
2266
|
+
var TypeError = global.TypeError;
|
|
2267
|
+
|
|
2268
|
+
module.exports = function (it) {
|
|
2269
|
+
if (isRegExp(it)) {
|
|
2270
|
+
throw TypeError("The method doesn't accept regular expressions");
|
|
2271
|
+
} return it;
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
|
|
2167
2275
|
/***/ }),
|
|
2168
2276
|
|
|
2169
2277
|
/***/ 4420:
|
|
@@ -3324,6 +3432,29 @@ module.exports = function (name) {
|
|
|
3324
3432
|
};
|
|
3325
3433
|
|
|
3326
3434
|
|
|
3435
|
+
/***/ }),
|
|
3436
|
+
|
|
3437
|
+
/***/ 7690:
|
|
3438
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
3439
|
+
|
|
3440
|
+
"use strict";
|
|
3441
|
+
|
|
3442
|
+
var $ = __webpack_require__(6887);
|
|
3443
|
+
var $includes = (__webpack_require__(1692).includes);
|
|
3444
|
+
var addToUnscopables = __webpack_require__(8479);
|
|
3445
|
+
|
|
3446
|
+
// `Array.prototype.includes` method
|
|
3447
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
3448
|
+
$({ target: 'Array', proto: true }, {
|
|
3449
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
3450
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
3451
|
+
}
|
|
3452
|
+
});
|
|
3453
|
+
|
|
3454
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3455
|
+
addToUnscopables('includes');
|
|
3456
|
+
|
|
3457
|
+
|
|
3327
3458
|
/***/ }),
|
|
3328
3459
|
|
|
3329
3460
|
/***/ 9076:
|
|
@@ -3478,6 +3609,35 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
|
3478
3609
|
});
|
|
3479
3610
|
|
|
3480
3611
|
|
|
3612
|
+
/***/ }),
|
|
3613
|
+
|
|
3614
|
+
/***/ 1035:
|
|
3615
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
3616
|
+
|
|
3617
|
+
"use strict";
|
|
3618
|
+
|
|
3619
|
+
var $ = __webpack_require__(6887);
|
|
3620
|
+
var uncurryThis = __webpack_require__(5329);
|
|
3621
|
+
var notARegExp = __webpack_require__(344);
|
|
3622
|
+
var requireObjectCoercible = __webpack_require__(8219);
|
|
3623
|
+
var toString = __webpack_require__(5803);
|
|
3624
|
+
var correctIsRegExpLogic = __webpack_require__(7772);
|
|
3625
|
+
|
|
3626
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3627
|
+
|
|
3628
|
+
// `String.prototype.includes` method
|
|
3629
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
3630
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
3631
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
3632
|
+
return !!~stringIndexOf(
|
|
3633
|
+
toString(requireObjectCoercible(this)),
|
|
3634
|
+
toString(notARegExp(searchString)),
|
|
3635
|
+
arguments.length > 1 ? arguments[1] : undefined
|
|
3636
|
+
);
|
|
3637
|
+
}
|
|
3638
|
+
});
|
|
3639
|
+
|
|
3640
|
+
|
|
3481
3641
|
/***/ }),
|
|
3482
3642
|
|
|
3483
3643
|
/***/ 7971:
|
|
@@ -5300,6 +5460,16 @@ $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
|
5300
5460
|
// empty
|
|
5301
5461
|
|
|
5302
5462
|
|
|
5463
|
+
/***/ }),
|
|
5464
|
+
|
|
5465
|
+
/***/ 3778:
|
|
5466
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5467
|
+
|
|
5468
|
+
var parent = __webpack_require__(8557);
|
|
5469
|
+
|
|
5470
|
+
module.exports = parent;
|
|
5471
|
+
|
|
5472
|
+
|
|
5303
5473
|
/***/ }),
|
|
5304
5474
|
|
|
5305
5475
|
/***/ 9373:
|
|
@@ -7227,7 +7397,12 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
|
|
|
7227
7397
|
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;
|
|
7228
7398
|
//# sourceMappingURL=preact.module.js.map
|
|
7229
7399
|
|
|
7400
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
|
|
7401
|
+
var includes = __webpack_require__(8580);
|
|
7402
|
+
var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
|
|
7230
7403
|
;// CONCATENATED MODULE: ./src/common/helpers/errors.ts
|
|
7404
|
+
|
|
7405
|
+
|
|
7231
7406
|
/**
|
|
7232
7407
|
* Creates a standardized Error type for Ada Embed.
|
|
7233
7408
|
*/
|
|
@@ -7253,7 +7428,7 @@ function warn(warningText) {
|
|
|
7253
7428
|
const lastChar = text.charAt(text.length - 1);
|
|
7254
7429
|
const acceptedLastChars = [".", "?", "!"]; // Add period if one wasn't added
|
|
7255
7430
|
|
|
7256
|
-
if (!acceptedLastChars.
|
|
7431
|
+
if (!includes_default()(acceptedLastChars).call(acceptedLastChars, lastChar)) {
|
|
7257
7432
|
text = "".concat(text, ".");
|
|
7258
7433
|
}
|
|
7259
7434
|
|
|
@@ -15610,6 +15785,7 @@ var INTEGRATIONS = __assign(__assign(__assign({}, windowIntegrations), integrati
|
|
|
15610
15785
|
;// CONCATENATED MODULE: ./src/client/lib/error-tracker.ts
|
|
15611
15786
|
|
|
15612
15787
|
|
|
15788
|
+
|
|
15613
15789
|
const {
|
|
15614
15790
|
BrowserClient: error_tracker_BrowserClient
|
|
15615
15791
|
} = browser_esm_namespaceObject;
|
|
@@ -15635,7 +15811,7 @@ const client = new error_tracker_BrowserClient({
|
|
|
15635
15811
|
},
|
|
15636
15812
|
|
|
15637
15813
|
environment: "production",
|
|
15638
|
-
release: "1.2.
|
|
15814
|
+
release: "1.2.10-7430dc4",
|
|
15639
15815
|
sampleRate: 0.25,
|
|
15640
15816
|
autoSessionTracking: false,
|
|
15641
15817
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -15650,7 +15826,7 @@ const errorTracker = {
|
|
|
15650
15826
|
async trackException(error) {
|
|
15651
15827
|
warn(error.message);
|
|
15652
15828
|
|
|
15653
|
-
if (filteredErrorEvents.
|
|
15829
|
+
if (includes_default()(filteredErrorEvents).call(filteredErrorEvents, error.message)) {
|
|
15654
15830
|
return;
|
|
15655
15831
|
}
|
|
15656
15832
|
|
|
@@ -16222,6 +16398,7 @@ const ports = {
|
|
|
16222
16398
|
;// CONCATENATED MODULE: ./src/common/helpers/url/index.ts
|
|
16223
16399
|
|
|
16224
16400
|
|
|
16401
|
+
|
|
16225
16402
|
const DEFAULT_ADA_DOMAIN = "ada";
|
|
16226
16403
|
function getClientCacheUrl(handle, cluster, domain) {
|
|
16227
16404
|
if (false) {}
|
|
@@ -16249,13 +16426,15 @@ function getEmbedURL(_ref) {
|
|
|
16249
16426
|
host = "http://".concat(window.location.hostname, ":9001");
|
|
16250
16427
|
}
|
|
16251
16428
|
|
|
16252
|
-
return "".concat(host, "/embed/").concat(frameName, "/").concat("
|
|
16429
|
+
return "".concat(host, "/embed/").concat(frameName, "/").concat("7430dc4", "/index.html");
|
|
16253
16430
|
}
|
|
16254
16431
|
/**
|
|
16255
16432
|
* Generate the Chat / API URL
|
|
16256
16433
|
*/
|
|
16257
16434
|
|
|
16258
16435
|
function getURL(_ref2) {
|
|
16436
|
+
var _context;
|
|
16437
|
+
|
|
16259
16438
|
let {
|
|
16260
16439
|
name,
|
|
16261
16440
|
handle,
|
|
@@ -16283,9 +16462,11 @@ function getURL(_ref2) {
|
|
|
16283
16462
|
return prodUrl;
|
|
16284
16463
|
}
|
|
16285
16464
|
|
|
16286
|
-
if (window.location.hostname.
|
|
16465
|
+
if (includes_default()(_context = window.location.hostname).call(_context, "localhost") || handle === "e2ereference") {
|
|
16466
|
+
var _context2;
|
|
16467
|
+
|
|
16287
16468
|
let host = window.location.hostname;
|
|
16288
|
-
const domainName = window.location.hostname.
|
|
16469
|
+
const domainName = includes_default()(_context2 = window.location.hostname).call(_context2, "localhost") ? "localhost" : "e2ereference";
|
|
16289
16470
|
|
|
16290
16471
|
if (domainName === "localhost" && name === "chat") {
|
|
16291
16472
|
// Chat should be on a different domain (even though the port is different).
|
|
@@ -16725,6 +16906,7 @@ function store_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
|
16725
16906
|
|
|
16726
16907
|
|
|
16727
16908
|
|
|
16909
|
+
|
|
16728
16910
|
class Store {
|
|
16729
16911
|
constructor(messageService) {
|
|
16730
16912
|
_defineProperty(this, "state", void 0);
|
|
@@ -16783,7 +16965,11 @@ class Store {
|
|
|
16783
16965
|
payload
|
|
16784
16966
|
} = data; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16785
16967
|
|
|
16786
|
-
const actionKeyExists = ak =>
|
|
16968
|
+
const actionKeyExists = ak => {
|
|
16969
|
+
var _context;
|
|
16970
|
+
|
|
16971
|
+
return includes_default()(_context = Object.values(ActionCreators)).call(_context, ak);
|
|
16972
|
+
};
|
|
16787
16973
|
|
|
16788
16974
|
if (!actionKeyExists(actionKey)) {
|
|
16789
16975
|
console.error("Action \"".concat(actionKey, " doesn't exist."));
|
|
@@ -16915,6 +17101,7 @@ function doesUrlMatchPath(url, path) {
|
|
|
16915
17101
|
;// CONCATENATED MODULE: ./src/common/helpers/TriggerConditionEvaluator.ts
|
|
16916
17102
|
|
|
16917
17103
|
|
|
17104
|
+
|
|
16918
17105
|
const stripTrailingSlash = url => url.endsWith("/") ? url.slice(0, -1) : url;
|
|
16919
17106
|
|
|
16920
17107
|
const evalUrlMatchTriggerCondition = (triggerCondition, url) => {
|
|
@@ -16935,7 +17122,7 @@ const evalUrlMatchTriggerCondition = (triggerCondition, url) => {
|
|
|
16935
17122
|
}
|
|
16936
17123
|
|
|
16937
17124
|
case "contains":
|
|
16938
|
-
return url.
|
|
17125
|
+
return includes_default()(url).call(url, condition.value);
|
|
16939
17126
|
|
|
16940
17127
|
case "equals":
|
|
16941
17128
|
{
|
|
@@ -17081,6 +17268,7 @@ function isStartOptions(input) {
|
|
|
17081
17268
|
|
|
17082
17269
|
|
|
17083
17270
|
|
|
17271
|
+
|
|
17084
17272
|
/**
|
|
17085
17273
|
* To enforce frequency restrictions, when a campaign is shown we add its id to a list of shown
|
|
17086
17274
|
* campaigns, and any campaigns in this list will not be shown again until removed from the list.
|
|
@@ -17102,7 +17290,7 @@ function campaignShownWithinFrequency(campaign, handle) {
|
|
|
17102
17290
|
var _safeSessionStorage$g;
|
|
17103
17291
|
|
|
17104
17292
|
const perSessionCampaigns = ((_safeSessionStorage$g = safeSessionStorage.getItem("".concat(handle, "_marketing_campaigns_shown"))) === null || _safeSessionStorage$g === void 0 ? void 0 : _safeSessionStorage$g.split(",")) || [];
|
|
17105
|
-
return perSessionCampaigns.
|
|
17293
|
+
return includes_default()(perSessionCampaigns).call(perSessionCampaigns, campaign.campaign_key);
|
|
17106
17294
|
}
|
|
17107
17295
|
|
|
17108
17296
|
case "once-per-user":
|
|
@@ -17110,7 +17298,7 @@ function campaignShownWithinFrequency(campaign, handle) {
|
|
|
17110
17298
|
var _safeLocalStorage$get;
|
|
17111
17299
|
|
|
17112
17300
|
const perSessionCampaigns = ((_safeLocalStorage$get = safeLocalStorage.getItem("".concat(handle, "_marketing_campaigns_shown"))) === null || _safeLocalStorage$get === void 0 ? void 0 : _safeLocalStorage$get.split(",")) || [];
|
|
17113
|
-
return perSessionCampaigns.
|
|
17301
|
+
return includes_default()(perSessionCampaigns).call(perSessionCampaigns, campaign.campaign_key);
|
|
17114
17302
|
}
|
|
17115
17303
|
|
|
17116
17304
|
default:
|
|
@@ -17579,8 +17767,9 @@ async function fetchClient(handle, cluster, domain, language) {
|
|
|
17579
17767
|
}
|
|
17580
17768
|
;// CONCATENATED MODULE: ./src/common/helpers/isRTL.ts
|
|
17581
17769
|
|
|
17770
|
+
|
|
17582
17771
|
const RTLLanguages = ["ar", "he"];
|
|
17583
|
-
const isRTLLanguage = language => Boolean(language && RTLLanguages.
|
|
17772
|
+
const isRTLLanguage = language => Boolean(language && includes_default()(RTLLanguages).call(RTLLanguages, language)) || false;
|
|
17584
17773
|
const isRTL = (client, language) => {
|
|
17585
17774
|
const rtlLanguageBool = isRTLLanguage(language) || isRTLLanguage(getBrowserLanguage());
|
|
17586
17775
|
const featureFlagsBool = (client === null || client === void 0 ? void 0 : client.features.chat_ui_v2) && client.features.translations;
|
|
@@ -17810,9 +17999,9 @@ async function log(message, extra, options) {
|
|
|
17810
17999
|
service: "embed",
|
|
17811
18000
|
env: "production",
|
|
17812
18001
|
embedVersion: 2,
|
|
17813
|
-
version: "1.2.
|
|
18002
|
+
version: "1.2.10",
|
|
17814
18003
|
isNpm: true,
|
|
17815
|
-
commitHash: "
|
|
18004
|
+
commitHash: "7430dc4"
|
|
17816
18005
|
}))
|
|
17817
18006
|
});
|
|
17818
18007
|
}
|
|
@@ -18239,7 +18428,7 @@ class ChatFrame extends d {
|
|
|
18239
18428
|
const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
|
|
18240
18429
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18241
18430
|
const queryParams = {
|
|
18242
|
-
embedVersion: "
|
|
18431
|
+
embedVersion: "7430dc4".slice(0, 7),
|
|
18243
18432
|
greeting,
|
|
18244
18433
|
language,
|
|
18245
18434
|
skipGreeting,
|
|
@@ -20383,7 +20572,7 @@ class Embed {
|
|
|
20383
20572
|
|
|
20384
20573
|
}
|
|
20385
20574
|
|
|
20386
|
-
_defineProperty(Embed, "embed2Version", "
|
|
20575
|
+
_defineProperty(Embed, "embed2Version", "7430dc4");
|
|
20387
20576
|
;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
|
|
20388
20577
|
|
|
20389
20578
|
|