@adobe/magento-storefront-events-sdk 1.1.7 → 1.1.8

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/README.md CHANGED
@@ -115,6 +115,14 @@ Sets the `Category` context.
115
115
  - [context schema definition](https://github.com/adobe/magento-storefront-events-sdk/blob/main/src/types/schemas/category.ts)
116
116
  - [context example](https://github.com/adobe/magento-storefront-events-sdk/blob/main/tests/mocks.ts#L31)
117
117
 
118
+ #### `setAccount`
119
+
120
+ ```javascript
121
+ mse.context.setAccount(accountCtx);
122
+ ```
123
+
124
+ Sets the `Account` context.
125
+
118
126
  #### `setCustomUrl`
119
127
 
120
128
  ```javascript
@@ -332,10 +340,23 @@ These functions publish events which notify all subscribers:
332
340
  mse.publish.addToCart();
333
341
  ```
334
342
 
343
+ ```javascript
344
+ // requires shoppingCart ctx to be set
345
+ mse.publish.abandonCart();
346
+ ```
347
+
348
+ ```javascript
349
+ mse.publish.createAccount(ctx);
350
+ ```
351
+
335
352
  ```javascript
336
353
  mse.publish.customUrl(ctx);
337
354
  ```
338
355
 
356
+ ```javascript
357
+ mse.publish.editAccount(ctx);
358
+ ```
359
+
339
360
  ```javascript
340
361
  mse.publish.initiateCheckout(ctx);
341
362
  ```
@@ -452,7 +473,10 @@ These functions subscribe to events:
452
473
 
453
474
  ```javascript
454
475
  mse.subscribe.addToCart(handler, options);
476
+ mse.subscribe.abandonCart(handler, options);
477
+ mse.subscribe.createAccount(handler, options);
455
478
  mse.subscribe.customUrl(handler, options);
479
+ mse.subscribe.editAccount(handler, options);
456
480
  mse.subscribe.dataLayerChange(handler, options);
457
481
  mse.subscribe.dataLayerEvent(handler, options);
458
482
  mse.subscribe.initiateCheckout(handler, options);
@@ -487,7 +511,10 @@ These functions unsubscribe from events:
487
511
 
488
512
  ```javascript
489
513
  mse.unsubscribe.addToCart(handler);
514
+ mse.unsubscribe.abandonCart(handler);
515
+ mse.unsubscribe.createAccount(handler);
490
516
  mse.unsubscribe.customUrl(handler);
517
+ mse.unsubscribe.editAccount(handler);
491
518
  mse.unsubscribe.dataLayerChange(handler);
492
519
  mse.unsubscribe.dataLayerEvent(handler);
493
520
  mse.unsubscribe.initiateCheckout(handler);
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("magentoStorefrontEvents",[],e):"object"==typeof exports?exports.magentoStorefrontEvents=e():t.magentoStorefrontEvents=e()}(self,(function(){return(()=>{"use strict";var t={921:(t,e,n)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=i(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return o(e[a][1][t]||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,r){(function(t){(function(){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function o(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function i(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function a(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function c(t,e,n){var r=t.length;for(n+=-1;++n<r;)if(e(t[n],n,t))return n;return-1}function u(t){return t!=t}function f(t){return function(e){return t(e)}}function l(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function h(t){var e=Object;return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function d(){}function v(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function b(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function g(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new b;++e<n;)this.add(t[e])}function m(t){this.size=(this.__data__=new y(t)).size}function j(t,e){var n,r=gn(t),o=!r&&bn(t),i=!r&&!o&&mn(t),a=!r&&!o&&!i&&xn(t);if(r=r||o||i||a){o=t.length;for(var s=String,c=-1,u=Array(o);++c<o;)u[c]=s(c);o=u}else o=[];for(n in s=o.length,t)!e&&!ge.call(t,n)||r&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||et(n,s))||o.push(n);return o}function E(t,e,n){(n===Mt||pt(t[e],n))&&(n!==Mt||e in t)||_(t,e,n)}function x(t,e,n){var r=t[e];ge.call(t,e)&&pt(r,n)&&(n!==Mt||e in t)||_(t,e,n)}function C(t,e){for(var n=t.length;n--;)if(pt(t[n][0],e))return n;return-1}function _(t,e,n){"__proto__"==e&&Re?Re(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function w(t,e,n,r,o,i){var a,s=1&e,c=2&e,u=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),a!==Mt)return a;if(!gt(t))return t;if(r=gn(t)){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ge.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return $(t,a)}else{var f=an(t),l="[object Function]"==f||"[object GeneratorFunction]"==f;if(mn(t))return M(t,s);if("[object Object]"==f||"[object Arguments]"==f||l&&!o){if(a=c||l?{}:Z(t),!s)return c?function(t,e){return B(t,on(t),e)}(t,function(t,e){return t&&B(e,It(e),t)}(a,t)):function(t,e){return B(t,rn(t),e)}(t,function(t,e){return t&&B(e,kt(e),t)}(a,t))}else{if(!te[f])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return V(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return e=n?V(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return z(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(e=new t.constructor(t.source,Ht.exec(t))).lastIndex=t.lastIndex,e;case"[object Symbol]":return Qe?Object(Qe.call(t)):{}}}(t,f,s)}}if(o=(i=i||new m).get(t))return o;if(i.set(t,a),En(t))return t.forEach((function(r){a.add(w(r,e,n,r,t,i))})),a;if(jn(t))return t.forEach((function(r,o){a.set(o,w(r,e,n,o,t,i))})),a;c=u?c?J:H:c?It:kt;var h=r?Mt:c(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n););}(h||t,(function(r,o){h&&(r=t[o=r]),x(a,o,w(r,e,n,o,t,i))})),a}function L(t,e){for(var n=0,r=(e=F(e,t)).length;null!=t&&n<r;)t=t[at(e[n++])];return n&&n==r?t:Mt}function A(t,e,n){return e=e(t),gn(t)?e:i(e,n(t))}function O(t){if(null==t)t=t===Mt?"[object Undefined]":"[object Null]";else if(Te&&Te in Object(t)){var e=ge.call(t,Te),n=t[Te];try{t[Te]=Mt;var r=!0}catch(t){}var o=je.call(t);r&&(e?t[Te]=n:delete t[Te]),t=o}else t=je.call(t);return t}function S(t,e){return null!=t&&ge.call(t,e)}function k(t,e){return null!=t&&e in Object(t)}function I(t){return mt(t)&&"[object Arguments]"==O(t)}function T(t,e,n,r,o){if(t===e)e=!0;else if(null==t||null==e||!mt(t)&&!mt(e))e=t!=t&&e!=e;else t:{var i,a,s=gn(t),c=gn(e),u="[object Object]"==(i="[object Arguments]"==(i=s?"[object Array]":an(t))?"[object Object]":i);if(c="[object Object]"==(a="[object Arguments]"==(a=c?"[object Array]":an(e))?"[object Object]":a),(a=i==a)&&mn(t)){if(!mn(e)){e=!1;break t}u=!(s=!0)}if(a&&!u)o=o||new m,e=s||xn(t)?G(t,e,n,r,T,o):function(t,e,n,r,o,i,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!i(new we(t),new we(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return pt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=l;case"[object Set]":if(s=s||p,t.size!=e.size&&!(1&r))break;return(n=a.get(t))?n==e:(r|=2,a.set(t,e),e=G(s(t),s(e),r,o,i,a),a.delete(t),e);case"[object Symbol]":if(Qe)return Qe.call(t)==Qe.call(e)}return!1}(t,e,i,n,r,T,o);else{if(!(1&n)&&(s=u&&ge.call(t,"__wrapped__"),i=c&&ge.call(e,"__wrapped__"),s||i)){e=T(t=s?t.value():t,e=i?e.value():e,n,r,o=o||new m);break t}if(a)e:if(o=o||new m,s=1&n,i=H(t),c=i.length,a=H(e).length,c==a||s){for(u=c;u--;){var f=i[u];if(!(s?f in e:ge.call(e,f))){e=!1;break e}}if((a=o.get(t))&&o.get(e))e=a==e;else{a=!0,o.set(t,e),o.set(e,t);for(var h=s;++u<c;){var d=t[f=i[u]],v=e[f];if(r)var y=s?r(v,d,f,e,t,o):r(d,v,f,t,e,o);if(y===Mt?d!==v&&!T(d,v,n,r,o):!y){a=!1;break}h=h||"constructor"==f}a&&!h&&(n=t.constructor)!=(r=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(a=!1),o.delete(t),o.delete(e),e=a}}else e=!1;else e=!1}}return e}function R(t){return"function"==typeof t?t:null==t?Dt:"object"==s(t)?gn(t)?function(t,e){return nt(t)&&e==e&&!gt(e)?ot(at(t),e):function(n){var r=Ot(n,t);return r===Mt&&r===e?St(n,t):T(e,r,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=kt(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,o==o&&!gt(o)]}return e}(t);return 1==e.length&&e[0][2]?ot(e[0][0],e[0][1]):function(n){return n===t||function(t,e){var n=e.length,r=n;if(null==t)return!r;for(t=Object(t);n--;)if((o=e[n])[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1;for(;++n<r;){var o,i=(o=e[n])[0],a=t[i],s=o[1];if(o[2]){if(a===Mt&&!(i in t))return!1}else if(!T(s,a,3,void 0,o=new m))return!1}return!0}(n,e)}}(t):Nt(t)}function D(t){if(!rt(t))return Ne(t);var e,n=[];for(e in Object(t))ge.call(t,e)&&"constructor"!=e&&n.push(e);return n}function U(t,e,n,r,o){t!==e&&en(e,(function(i,a){if(gt(i)){var s=o=o||new m,c="__proto__"==a?Mt:t[a],u="__proto__"==a?Mt:e[a];if(d=s.get(u))E(t,a,d);else{var f=(d=r?r(c,u,a+"",t,e,s):Mt)===Mt;if(f){var l=gn(u),h=!l&&mn(u),p=!l&&!h&&xn(u),d=u;l||h||p?d=gn(c)?c:vt(c)?$(c):h?M(u,!(f=!1)):p?z(u,!(f=!1)):[]:jt(u)||bn(u)?bn(d=c)?d=Lt(c):(!gt(c)||n&&yt(c))&&(d=Z(u)):f=!1}f&&(s.set(u,d),U(d,u,n,r,s),s.delete(u)),E(t,a,d)}}else(s=r?r("__proto__"==a?Mt:t[a],i,a+"",t,e,o):Mt)===Mt&&(s=i),E(t,a,s)}),It)}function N(t){if("string"==typeof t)return t;if(gn(t))return o(t,N)+"";if(xt(t))return Xe?Xe.call(t):"";var e=t+"";return"0"==e&&1/t==-Vt?"-0":e}function P(t,e){var n;if((e=F(e,t)).length<2)n=t;else{var r=0,o=-1,i=-1,a=(n=e).length;for(r<0&&(r=a<-r?0:a+r),(o=a<o?a:o)<0&&(o+=a),a=o<r?0:o-r>>>0,r>>>=0,o=Array(a);++i<a;)o[i]=n[i+r];n=L(t,o)}null==(t=n)||delete t[at(ft(e))]}function F(t,e){return gn(t)?t:nt(t,e)?[t]:dn(At(t))}function M(t,e){if(e)return t.slice();var n=t.length;return n=Le?Le(n):new t.constructor(n),t.copy(n),n}function V(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function z(t,e){return new t.constructor(e?V(t.buffer):t.buffer,t.byteOffset,t.length)}function $(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}function B(t,e,n){var r=!n;n=n||{};for(var o=-1,i=e.length;++o<i;){var a=e[o],s=Mt;s===Mt&&(s=t[a]),r?_(n,a,s):x(n,a,s)}return n}function q(t){return function(t){return pn(it(t,void 0,Dt),t+"")}((function(e,n){var r,o=-1,i=n.length,a=1<i?n[i-1]:Mt,c=2<i?n[2]:Mt;if(a=3<t.length&&"function"==typeof a?(i--,a):Mt,r=c){r=n[0];var u=n[1];if(gt(c)){var f=s(u);r=!!("number"==f?dt(c)&&et(u,c.length):"string"==f&&u in c)&&pt(c[u],r)}else r=!1}for(r&&(a=i<3?Mt:a,i=1),e=Object(e);++o<i;)(c=n[o])&&t(e,c,o,a);return e}))}function W(t){return jt(t)?Mt:t}function G(t,e,n,r,o,i){var s=1&n,c=t.length;if(c!=(u=e.length)&&!(s&&c<u))return!1;if((u=i.get(t))&&i.get(e))return u==e;var u=-1,f=!0,l=2&n?new g:Mt;for(i.set(t,e),i.set(e,t);++u<c;){var h=t[u],p=e[u];if(r)var d=s?r(p,h,u,e,t,i):r(h,p,u,t,e,i);if(d!==Mt){if(d)continue;f=!1;break}if(l){if(!a(e,(function(t,e){if(!l.has(e)&&(h===t||o(h,t,n,r,i)))return l.push(e)}))){f=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function H(t){return A(t,kt,rn)}function J(t){return A(t,It,on)}function Y(t,e){var n=(n=d.iteratee||Ut)===Ut?R:n;return arguments.length?n(t,e):n}function K(t,e){var n=t.__data__,r=s(e);return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function Q(t,e){var n=null==t?Mt:t[e];return!gt(n)||me&&me in n||!(yt(n)?xe:Kt).test(st(n))?Mt:n}function X(t,e,n){for(var r=-1,o=(e=F(e,t)).length,i=!1;++r<o;){var a=at(e[r]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&bt(o)&&et(a,o)&&(gn(t)||bn(t))}function Z(t){return"function"!=typeof t.constructor||rt(t)?{}:Ze(Ae(t))}function tt(t){return gn(t)||bn(t)||!!(Ie&&t&&t[Ie])}function et(t,e){var n=s(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Xt.test(t))&&-1<t&&0==t%1&&t<e}function nt(t,e){if(gn(t))return!1;var n=s(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!xt(t))||Bt.test(t)||!$t.test(t)||null!=e&&t in Object(e)}function rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ve)}function ot(t,e){return function(n){return null!=n&&n[t]===e&&(e!==Mt||t in Object(n))}}function it(t,e,n){return e=Pe(e===Mt?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Pe(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];for(o=-1,i=Array(e+1);++o<e;)i[o]=r[o];return i[e]=n(a),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,i)}}function at(t){if("string"==typeof t||xt(t))return t;var e=t+"";return"0"==e&&1/t==-Vt?"-0":e}function st(t){if(null==t)return"";try{return be.call(t)}catch(t){}return t+""}function ct(t,e,n){var r=null==t?0:t.length;return r?((n=null==n?0:_t(n))<0&&(n=Pe(r+n,0)),c(t,Y(e,3),n)):-1}function ut(t){return null!=t&&t.length?function t(e,n,r,o,a){var s=-1,c=e.length;for(r=r||tt,a=a||[];++s<c;){var u=e[s];0<n&&r(u)?1<n?t(u,n-1,r,o,a):i(a,u):o||(a[a.length]=u)}return a}(t,1):[]}function ft(t){var e=null==t?0:t.length;return e?t[e-1]:Mt}function lt(t,e){function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");return n.cache=new(lt.Cache||b),n}function ht(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function pt(t,e){return t===e||t!=t&&e!=e}function dt(t){return null!=t&&bt(t.length)&&!yt(t)}function vt(t){return mt(t)&&dt(t)}function yt(t){return!!gt(t)&&("[object Function]"==(t=O(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function bt(t){return"number"==typeof t&&-1<t&&0==t%1&&t<=9007199254740991}function gt(t){var e=s(t);return null!=t&&("object"==e||"function"==e)}function mt(t){return null!=t&&"object"==s(t)}function jt(t){return!(!mt(t)||"[object Object]"!=O(t))&&(null===(t=Ae(t))||"function"==typeof(t=ge.call(t,"constructor")&&t.constructor)&&t instanceof t&&be.call(t)==Ee)}function Et(t){return"string"==typeof t||!gn(t)&&mt(t)&&"[object String]"==O(t)}function xt(t){return"symbol"==s(t)||mt(t)&&"[object Symbol]"==O(t)}function Ct(t){return t?(t=wt(t))===Vt||t===-Vt?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function _t(t){var e=(t=Ct(t))%1;return t==t?e?t-e:t:0}function wt(t){if("number"==typeof t)return t;if(xt(t))return zt;if(gt(t)&&(t=gt(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(Wt,"");var e=Yt.test(t);return e||Qt.test(t)?ne(t.slice(2),e?2:8):Jt.test(t)?zt:+t}function Lt(t){return B(t,It(t))}function At(t){return null==t?"":N(t)}function Ot(t,e,n){return(t=null==t?Mt:L(t,e))===Mt?n:t}function St(t,e){return null!=t&&X(t,e,k)}function kt(t){return dt(t)?j(t):D(t)}function It(t){if(dt(t))t=j(t,!0);else if(gt(t)){var e,n=rt(t),r=[];for(e in t)("constructor"!=e||!n&&ge.call(t,e))&&r.push(e);t=r}else{if(e=[],null!=t)for(n in Object(t))e.push(n);t=e}return t}function Tt(t){return null==t?[]:function(t,e){return o(e,(function(e){return t[e]}))}(t,kt(t))}function Rt(t){return function(){return t}}function Dt(t){return t}function Ut(t){return R("function"==typeof t?t:w(t,1))}function Nt(t){return nt(t)?function(t){return function(e){return null==e?Mt:e[t]}}(at(t)):function(t){return function(e){return L(e,t)}}(t)}function Pt(){return[]}function Ft(){return!1}var Mt,Vt=1/0,zt=NaN,$t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/^\s+|\s+$/g,Gt=/\\(\\)?/g,Ht=/\w*$/,Jt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Xt=/^(?:0|[1-9]\d*)$/,Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var te={};te["[object Arguments]"]=te["[object Array]"]=te["[object ArrayBuffer]"]=te["[object DataView]"]=te["[object Boolean]"]=te["[object Date]"]=te["[object Float32Array]"]=te["[object Float64Array]"]=te["[object Int8Array]"]=te["[object Int16Array]"]=te["[object Int32Array]"]=te["[object Map]"]=te["[object Number]"]=te["[object Object]"]=te["[object RegExp]"]=te["[object Set]"]=te["[object String]"]=te["[object Symbol]"]=te["[object Uint8Array]"]=te["[object Uint8ClampedArray]"]=te["[object Uint16Array]"]=te["[object Uint32Array]"]=!0,te["[object Error]"]=te["[object Function]"]=te["[object WeakMap]"]=!1;var ee,ne=parseInt,re="object"==s(t)&&t&&t.Object===Object&&t,oe="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,ie=re||oe||Function("return this")(),ae="object"==s(r)&&r&&!r.nodeType&&r,se=ae&&"object"==s(e)&&e&&!e.nodeType&&e,ce=se&&se.exports===ae,ue=ce&&re.process;t:{try{ee=ue&&ue.binding&&ue.binding("util");break t}catch(f){}ee=void 0}var fe,le=ee&&ee.isMap,he=ee&&ee.isSet,pe=ee&&ee.isTypedArray,de=Array.prototype,ve=Object.prototype,ye=ie["__core-js_shared__"],be=Function.prototype.toString,ge=ve.hasOwnProperty,me=(fe=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||""))?"Symbol(src)_1."+fe:"",je=ve.toString,Ee=be.call(Object),xe=RegExp("^"+be.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ce=ce?ie.Buffer:Mt,_e=ie.Symbol,we=ie.Uint8Array,Le=Ce?Ce.a:Mt,Ae=h(Object.getPrototypeOf),Oe=Object.create,Se=ve.propertyIsEnumerable,ke=de.splice,Ie=_e?_e.isConcatSpreadable:Mt,Te=_e?_e.toStringTag:Mt,Re=function(){try{var t=Q(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),De=Object.getOwnPropertySymbols,Ue=Ce?Ce.isBuffer:Mt,Ne=h(Object.keys),Pe=Math.max,Fe=Date.now,Me=Q(ie,"DataView"),Ve=Q(ie,"Map"),ze=Q(ie,"Promise"),$e=Q(ie,"Set"),Be=Q(ie,"WeakMap"),qe=Q(Object,"create"),We=st(Me),Ge=st(Ve),He=st(ze),Je=st($e),Ye=st(Be),Ke=_e?_e.prototype:Mt,Qe=Ke?Ke.valueOf:Mt,Xe=Ke?Ke.toString:Mt,Ze=function(t){return gt(t)?Oe?Oe(t):(tn.prototype=t,t=new tn,tn.prototype=Mt,t):{}};function tn(){}v.prototype.clear=function(){this.__data__=qe?qe(null):{},this.size=0},v.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},v.prototype.get=function(t){var e=this.__data__;return qe?"__lodash_hash_undefined__"===(t=e[t])?Mt:t:ge.call(e,t)?e[t]:Mt},v.prototype.has=function(t){var e=this.__data__;return qe?e[t]!==Mt:ge.call(e,t)},v.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=qe&&e===Mt?"__lodash_hash_undefined__":e,this},y.prototype.clear=function(){this.__data__=[],this.size=0},y.prototype.delete=function(t){var e=this.__data__;return!((t=C(e,t))<0||(t==e.length-1?e.pop():ke.call(e,t,1),--this.size,0))},y.prototype.get=function(t){var e=this.__data__;return(t=C(e,t))<0?Mt:e[t][1]},y.prototype.has=function(t){return-1<C(this.__data__,t)},y.prototype.set=function(t,e){var n=this.__data__,r=C(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},b.prototype.clear=function(){this.size=0,this.__data__={hash:new v,map:new(Ve||y),string:new v}},b.prototype.delete=function(t){return t=K(this,t).delete(t),this.size-=t?1:0,t},b.prototype.get=function(t){return K(this,t).get(t)},b.prototype.has=function(t){return K(this,t).has(t)},b.prototype.set=function(t,e){var n=K(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},g.prototype.add=g.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},g.prototype.has=function(t){return this.__data__.has(t)},m.prototype.clear=function(){this.__data__=new y,this.size=0},m.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},m.prototype.get=function(t){return this.__data__.get(t)},m.prototype.has=function(t){return this.__data__.has(t)},m.prototype.set=function(t,e){var n=this.__data__;if(n instanceof y){var r=n.__data__;if(!Ve||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new b(r)}return n.set(t,e),this.size=n.size,this};var en=function(t,e,n){for(var r=-1,o=Object(t),i=(n=n(t)).length;i--;){var a=n[++r];if(!1===e(o[a],a,o))break}return t},nn=Re?function(t,e){return Re(t,"toString",{configurable:!0,enumerable:!1,value:Rt(e),writable:!0})}:Dt,rn=De?function(t){return null==t?[]:(t=Object(t),n(De(t),(function(e){return Se.call(t,e)})))}:Pt,on=De?function(t){for(var e=[];t;)i(e,rn(t)),t=Ae(t);return e}:Pt,an=O;(Me&&"[object DataView]"!=an(new Me(new ArrayBuffer(1)))||Ve&&"[object Map]"!=an(new Ve)||ze&&"[object Promise]"!=an(ze.resolve())||$e&&"[object Set]"!=an(new $e)||Be&&"[object WeakMap]"!=an(new Be))&&(an=function(t){var e=O(t);if(t=(t="[object Object]"==e?t.constructor:Mt)?st(t):"")switch(t){case We:return"[object DataView]";case Ge:return"[object Map]";case He:return"[object Promise]";case Je:return"[object Set]";case Ye:return"[object WeakMap]"}return e});var sn,cn,un,fn,ln,hn,pn=(fn=nn,hn=ln=0,function(){var t=Fe(),e=16-(t-hn);if(hn=t,0<e){if(800<=++ln)return arguments[0]}else ln=0;return fn.apply(Mt,arguments)}),dn=(un=(cn=lt(cn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(qt,(function(t,n,r,o){e.push(r?o.replace(Gt,"$1"):n||t)})),e},(function(t){return 500===un.size&&un.clear(),t}))).cache,cn),vn=(sn=ct,function(t,e,n){var r=Object(t);if(!dt(t)){var o=Y(e,3);t=kt(t),e=function(t){return o(r[t],t,r)}}return-1<(e=sn(t,e,n))?r[o?t[e]:e]:Mt});lt.Cache=b;var yn,bn=I(function(){return arguments}())?I:function(t){return mt(t)&&ge.call(t,"callee")&&!Se.call(t,"callee")},gn=Array.isArray,mn=Ue||Ft,jn=le?f(le):function(t){return mt(t)&&"[object Map]"==an(t)},En=he?f(he):function(t){return mt(t)&&"[object Set]"==an(t)},xn=pe?f(pe):function(t){return mt(t)&&bt(t.length)&&!!Zt[O(t)]},Cn=q((function(t,e,n){U(t,e,n)})),_n=q((function(t,e,n,r){U(t,e,n,r)})),wn=pn(it(yn=function(t,e){var n={};if(null==t)return n;var r=!1;e=o(e,(function(e){return e=F(e,t),r=r||1<e.length,e})),B(t,J(t),n),r&&(n=w(n,7,W));for(var i=e.length;i--;)P(n,e[i]);return n},Mt,ut),yn+"");d.constant=Rt,d.flatten=ut,d.iteratee=Ut,d.keys=kt,d.keysIn=It,d.memoize=lt,d.merge=Cn,d.mergeWith=_n,d.negate=ht,d.omit=wn,d.property=Nt,d.reject=function(t,e){return(gn(t)?n:function(t,e){var n=[];return function(t,e){if(null==t)return t;if(!dt(t))return function(t,e){return t&&en(t,e,kt)}(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););}(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n})(t,ht(Y(e,3)))},d.toPlainObject=Lt,d.values=Tt,d.cloneDeep=function(t){return w(t,5)},d.cloneDeepWith=function(t,e){return w(t,5,e="function"==typeof e?e:Mt)},d.eq=pt,d.find=vn,d.findIndex=ct,d.get=Ot,d.has=function(t,e){return null!=t&&X(t,e,S)},d.hasIn=St,d.identity=Dt,d.includes=function(t,e,n,r){if(t=dt(t)?t:Tt(t),n=n&&!r?_t(n):0,r=t.length,n<0&&(n=Pe(r+n,0)),Et(t))t=n<=r&&-1<t.indexOf(e,n);else{if(r=!!r){if(e==e)t:{for(n-=1,r=t.length;++n<r;)if(t[n]===e){t=n;break t}t=-1}else t=c(t,u,n);r=-1<t}t=r}return t},d.isArguments=bn,d.isArray=gn,d.isArrayLike=dt,d.isArrayLikeObject=vt,d.isBuffer=mn,d.isEmpty=function(t){if(null==t)return!0;if(dt(t)&&(gn(t)||"string"==typeof t||"function"==typeof t.splice||mn(t)||xn(t)||bn(t)))return!t.length;var e=an(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(rt(t))return!D(t).length;for(var n in t)if(ge.call(t,n))return!1;return!0},d.isEqual=function(t,e){return T(t,e)},d.isFunction=yt,d.isLength=bt,d.isMap=jn,d.isNull=function(t){return null===t},d.isObject=gt,d.isObjectLike=mt,d.isPlainObject=jt,d.isSet=En,d.isString=Et,d.isSymbol=xt,d.isTypedArray=xn,d.last=ft,d.stubArray=Pt,d.stubFalse=Ft,d.toFinite=Ct,d.toInteger=_t,d.toNumber=wt,d.toString=At,d.VERSION="4.17.5",se&&((se.exports=d)._=d,ae._=d)}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){e.exports={itemType:{DATA:"data",FCTN:"fctn",EVENT:"event",LISTENER_ON:"listenerOn",LISTENER_OFF:"listenerOff"},dataLayerEvent:{CHANGE:"adobeDataLayer:change",EVENT:"adobeDataLayer:event"},listenerScope:{PAST:"past",FUTURE:"future",ALL:"all"}}},{}],3:[function(t,e,n){var r=t("../custom-lodash"),i=t("../version.json").version,a=r.cloneDeep,s=r.get,c=t("./item"),u=t("./listener"),f=t("./listenerManager"),l=t("./constants"),h=t("./utils/customMerge");e.exports=function(t){var e,n,r=t||{},p=[],d={},v={getState:function(){return d},getDataLayer:function(){return p}};function y(t){d=h(d,t.data)}function b(t){function n(t){return 0===p.length||t.index>p.length-1?[]:p.slice(0,t.index).map((function(t){return c(t)}))}t.valid?{data:function(t){y(t),e.triggerListeners(t)},fctn:function(t){t.config.call(p,p)},event:function(t){t.data&&y(t),e.triggerListeners(t)},listenerOn:function(t){var r=u(t);switch(r.scope){case l.listenerScope.PAST:var i,a=o(n(t));try{for(a.s();!(i=a.n()).done;){var s=i.value;e.triggerListener(r,s)}}catch(t){a.e(t)}finally{a.f()}break;case l.listenerScope.FUTURE:e.register(r);break;case l.listenerScope.ALL:if(e.register(r)){var c,f=o(n(t));try{for(f.s();!(c=f.n()).done;){var h=c.value;e.triggerListener(r,h)}}catch(t){f.e(t)}finally{f.f()}}}},listenerOff:function(t){e.unregister(u(t))}}[t.type](t):g(t)}function g(t){var e="The following item cannot be handled by the data layer because it does not have a valid format: "+JSON.stringify(t.config);console.error(e)}return Array.isArray(r.dataLayer)||(r.dataLayer=[]),n=r.dataLayer.splice(0,r.dataLayer.length),(p=r.dataLayer).version=i,d={},e=f(v),p.push=function(t){var e=arguments,n=arguments;if(Object.keys(e).forEach((function(t){var r=c(e[t]);switch(r.valid||(g(r),delete n[t]),r.type){case l.itemType.DATA:case l.itemType.EVENT:b(r);break;case l.itemType.FCTN:delete n[t],b(r);break;case l.itemType.LISTENER_ON:case l.itemType.LISTENER_OFF:delete n[t]}})),n[0])return Array.prototype.push.apply(this,n)},p.getState=function(t){return t?s(a(d),t):a(d)},p.addEventListener=function(t,e,n){b(c({on:t,handler:e,scope:n&&n.scope,path:n&&n.path}))},p.removeEventListener=function(t,e){b(c({off:t,handler:e}))},function(){for(var t=0;t<n.length;t++)p.push(n[t])}(),v}},{"../custom-lodash":1,"../version.json":14,"./constants":2,"./item":5,"./listener":7,"./listenerManager":8,"./utils/customMerge":10}],4:[function(t,e,n){var r={Manager:t("./dataLayerManager")};window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.version?console.warn("Adobe Client Data Layer v".concat(window.adobeDataLayer.version," has already been imported/initialized on this page. You may be erroneously loading it a second time.")):r.Manager({dataLayer:window.adobeDataLayer}),e.exports=r},{"./dataLayerManager":3}],5:[function(t,e,n){var r=t("../custom-lodash"),o=r.isPlainObject,i=r.isEmpty,a=r.omit,s=r.find,c=t("./utils/dataMatchesContraints"),u=t("./itemConstraints"),f=t("./constants");e.exports=function(t,e){var n=t,r=e,l=s(Object.keys(u),(function(t){return c(n,u[t])}))||"function"==typeof n&&f.itemType.FCTN||o(n)&&f.itemType.DATA,h=function(){var t=a(n,Object.keys(u.event));if(!i(t))return t}();return{config:n,type:l,data:h,valid:!!l,index:r}}},{"../custom-lodash":1,"./constants":2,"./itemConstraints":6,"./utils/dataMatchesContraints":11}],6:[function(t,e,n){e.exports={event:{event:{type:"string"},eventInfo:{optional:!0}},listenerOn:{on:{type:"string"},handler:{type:"function"},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}},listenerOff:{off:{type:"string"},handler:{type:"function",optional:!0},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}}}},{}],7:[function(t,e,n){var r=t("./constants");e.exports=function(t){return{event:t.config.on||t.config.off,handler:t.config.handler||null,scope:t.config.scope||t.config.on&&r.listenerScope.ALL||null,path:t.config.path||null}}},{"./constants":2}],8:[function(t,e,n){var r=t("../custom-lodash").cloneDeep,i=t("./constants"),a=t("./utils/listenerMatch"),s=t("./utils/indexOfListener");e.exports=function(t){var e={},n=t,c=s.bind(null,e);function u(t,e){if(a(t,e)){var o=[r(e.config)];t.handler.apply(n.getDataLayer(),o)}}return{register:function(t){var n=t.event;return Object.prototype.hasOwnProperty.call(e,n)?-1===c(t)&&(e[t.event].push(t),!0):(e[t.event]=[t],!0)},unregister:function(t){var n=t.event;if(Object.prototype.hasOwnProperty.call(e,n))if(t.handler||t.scope||t.path){var r=c(t);-1<r&&e[n].splice(r,1)}else e[n]=[]},triggerListeners:function(t){(function(t){var e=[];switch(t.type){case i.itemType.DATA:e.push(i.dataLayerEvent.CHANGE);break;case i.itemType.EVENT:e.push(i.dataLayerEvent.EVENT),t.data&&e.push(i.dataLayerEvent.CHANGE),t.config.event!==i.dataLayerEvent.CHANGE&&e.push(t.config.event)}return e})(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r,i=o(e[n]);try{for(i.s();!(r=i.n()).done;)u(r.value,t)}catch(n){i.e(n)}finally{i.f()}}}))},triggerListener:function(t,e){u(t,e)}}}},{"../custom-lodash":1,"./constants":2,"./utils/indexOfListener":12,"./utils/listenerMatch":13}],9:[function(t,e,n){var r=t("../../custom-lodash"),o=r.has,i=r.get;e.exports=function(t,e){for(var n=e.substring(0,e.lastIndexOf("."));n;){if(o(t,n)&&null==i(t,n))return!0;n=n.substring(0,n.lastIndexOf("."))}return!1}},{"../../custom-lodash":1}],10:[function(t,e,n){var r=t("../../custom-lodash"),o=r.cloneDeepWith,i=r.isObject,a=r.isArray,s=r.reject,c=r.mergeWith,u=r.isNull;e.exports=function(t,e){return c(t,e,(function(t,e,n,r){if(null==e)return null})),function(t,e){return o(t,(n=1<arguments.length&&void 0!==e?e:function(t){return!t},function t(e,r,c,u){if(i(e)){if(a(e))return s(e,n).map((function(e){return o(e,t)}));for(var f={},l=0,h=Object.keys(e);l<h.length;l++){var p=h[l];n(e[p])||(f[p]=o(e[p],t))}return f}}));var n}(t,u)}},{"../../custom-lodash":1}],11:[function(t,e,n){var r=t("../../custom-lodash"),o=r.find,i=r.includes;e.exports=function(t,e){return void 0===o(Object.keys(e),(function(n){var r=e[n].type,o=n&&e[n].values,a=!e[n].optional,c=t[n],u=s(c),f=r&&u!==r,l=o&&!i(o,c);return a?!c||f||l:c&&(f||l)}))}},{"../../custom-lodash":1}],12:[function(t,e,n){var i=t("../../custom-lodash").isEqual;e.exports=function(t,e){var n=e.event;if(Object.prototype.hasOwnProperty.call(t,n)){var a,s=o(t[n].entries());try{for(s.s();!(a=s.n()).done;){var c=r(a.value,2),u=c[0],f=c[1];if(i(f.handler,e.handler))return u}}catch(t){s.e(t)}finally{s.f()}}return-1}},{"../../custom-lodash":1}],13:[function(t,e,n){var r=t("../../custom-lodash").has,o=t("../constants"),i=t("./ancestorRemoved");function a(t,e){return!e.data||!t.path||r(e.data,t.path)||i(e.data,t.path)}e.exports=function(t,e){var n=t.event,r=e.config,i=!1;return e.type===o.itemType.DATA?n===o.dataLayerEvent.CHANGE&&(i=a(t,e)):e.type===o.itemType.EVENT&&(n!==o.dataLayerEvent.EVENT&&n!==r.event||(i=a(t,e)),e.data&&n===o.dataLayerEvent.CHANGE&&(i=a(t,e))),i}},{"../../custom-lodash":1,"../constants":2,"./ancestorRemoved":9}],14:[function(t,e,n){e.exports={version:"2.0.2"}},{}]},{},[4])}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{n.d(r,{default:()=>Z}),n(921);class t{setContext(t,e){window.adobeDataLayer.push({[t]:null}),window.adobeDataLayer.push({[t]:e})}getContext(t){return window.adobeDataLayer.getState?window.adobeDataLayer.getState(t):{}}addEventListener(t,e,n){window.adobeDataLayer.push((r=>{r.addEventListener(t,e,n)}))}removeEventListener(t,e){window.adobeDataLayer.push((n=>{n.removeEventListener(t,e)}))}pushEvent(t,e={}){window.adobeDataLayer.push((n=>{n.push({event:t,eventInfo:Object.assign(Object.assign({},this.getContext()),e)})}))}}const e="aepContext",o="categoryContext",i="customUrlContext",a="dataServicesExtensionContext",s="eventForwardingContext",c="magentoExtensionContext",u="orderContext",f="pageContext",l="productContext",h="recommendationsContext",p="recommendationsExtensionContext",d="referrerUrlContext",v="searchExtensionContext",y="searchInputContext",b="searchResultsContext",g="shopperContext",m="shoppingCartContext",j="storefrontInstanceContext";class E extends t{getAEP(){return this.getContext(e)}setAEP(t){this.setContext(e,t)}getCategory(){return this.getContext(o)}setCategory(t){this.setContext(o,t)}getEventForwarding(){return this.getContext(s)}setEventForwarding(t){this.setContext(s,t)}getCustomUrl(){return this.getContext(i)}setCustomUrl(t){this.setContext(i,t)}getDataServicesExtension(){return this.getContext(a)}setDataServicesExtension(t){this.setContext(a,t)}getMagentoExtension(){return this.getContext(c)}setMagentoExtension(t){this.setContext(c,t)}getOrder(){return this.getContext(u)}setOrder(t){this.setContext(u,t)}getPage(){return this.getContext(f)}setPage(t){this.setContext(f,t)}getProduct(){return this.getContext(l)}setProduct(t){this.setContext(l,t)}getRecommendations(){return this.getContext(h)}setRecommendations(t){this.setContext(h,t)}getRecommendationsExtension(){return this.getContext(p)}setRecommendationsExtension(t){this.setContext(p,t)}getReferrerUrl(){return this.getContext(d)}setReferrerUrl(t){this.setContext(d,t)}getSearchExtension(){return this.getContext(v)}setSearchExtension(t){this.setContext(v,t)}getSearchInput(){return this.getContext(y)}setSearchInput(t){this.setContext(y,t)}getSearchResults(){return this.getContext(b)}setSearchResults(t){this.setContext(b,t)}getShopper(){return this.getContext(g)}setShopper(t){this.setContext(g,t)}getShoppingCart(){return this.getContext(m)}setShoppingCart(t){this.setContext(m,t)}getStorefrontInstance(){return this.getContext(j)}setStorefrontInstance(t){this.setContext(j,t)}getContext(t){return super.getContext(t)}setContext(t,e){super.setContext(t,e)}}const x="add-to-cart",C="custom-url",_="adobeDataLayer:change",w="adobeDataLayer:event",L="initiate-checkout",A="instant-purchase",O="page-activity-summary",S="page-view",k="place-order",I="product-page-view",T="recs-item-click",R="recs-item-add-to-cart-click",D="recs-api-request-sent",U="recs-api-response-received",N="recs-unit-impression-render",P="recs-unit-view",F="referrer-url",M="remove-from-cart",V="search-category-click",z="search-product-click",$="search-request-sent",B="search-response-received",q="search-results-view",W="search-suggestion-click",G="shopping-cart-view",H="sign-in",J="sign-out",Y="update-cart";class K extends t{addToCart(t){this.pushEvent(x,{customContext:t})}customUrl(t){this.pushEvent(C,{customContext:t})}initiateCheckout(t){this.pushEvent(L,{customContext:t})}instantPurchase(t){this.pushEvent(A,{customContext:t})}pageActivitySummary(t){this.pushEvent(O,{customContext:t})}pageView(t){this.pushEvent(S,{customContext:t})}placeOrder(t){this.pushEvent(k,{customContext:t})}productPageView(t){this.pushEvent(I,{customContext:t})}recsItemAddToCartClick(t,e,n){this.pushEvent(R,{unitId:t,productId:e,customContext:n})}recsItemClick(t,e,n){this.pushEvent(T,{unitId:t,productId:e,customContext:n})}recsRequestSent(t){this.pushEvent(D,{customContext:t})}recsResponseReceived(t){this.pushEvent(U,{customContext:t})}recsUnitRender(t,e){this.pushEvent(N,{unitId:t,customContext:e})}recsUnitView(t,e){this.pushEvent(P,{unitId:t,customContext:e})}referrerUrl(t){this.pushEvent(F,{customContext:t})}removeFromCart(t){this.pushEvent(M,{customContext:t})}searchCategoryClick(t,e,n){this.pushEvent(V,{searchUnitId:t,name:e,customContext:n})}searchProductClick(t,e,n){this.pushEvent(z,{searchUnitId:t,sku:e,customContext:n})}searchRequestSent(t,e){this.pushEvent($,{searchUnitId:t,customContext:e})}searchResponseReceived(t,e){this.pushEvent(B,{searchUnitId:t,customContext:e})}searchResultsView(t,e){this.pushEvent(q,{searchUnitId:t,customContext:e})}searchSuggestionClick(t,e,n){this.pushEvent(W,{searchUnitId:t,suggestion:e,customContext:n})}shoppingCartView(t){this.pushEvent(G,{customContext:t})}signIn(t){this.pushEvent(H,{customContext:t})}signOut(t){this.pushEvent(J,{customContext:t})}updateCart(t){this.pushEvent(Y,{customContext:t})}}class Q extends t{addToCart(t,e){this.addEventListener(x,t,e)}customUrl(t,e){this.addEventListener(C,t,e)}dataLayerChange(t,e){this.addEventListener(_,t,e)}dataLayerEvent(t,e){this.addEventListener(w,t,e)}initiateCheckout(t,e){this.addEventListener(L,t,e)}instantPurchase(t,e){this.addEventListener(A,t,e)}pageActivitySummary(t,e){this.addEventListener(O,t,e)}pageView(t,e){this.addEventListener(S,t,e)}placeOrder(t,e){this.addEventListener(k,t,e)}productPageView(t,e){this.addEventListener(I,t,e)}recsItemAddToCartClick(t,e){this.addEventListener(R,t,e)}recsItemClick(t,e){this.addEventListener(T,t,e)}recsRequestSent(t,e){this.addEventListener(D,t,e)}recsResponseReceived(t,e){this.addEventListener(U,t,e)}recsUnitRender(t,e){this.addEventListener(N,t,e)}recsUnitView(t,e){this.addEventListener(P,t,e)}referrerUrl(t,e){this.addEventListener(F,t,e)}removeFromCart(t,e){this.addEventListener(M,t,e)}searchCategoryClick(t){this.addEventListener(V,t)}searchProductClick(t){this.addEventListener(z,t)}searchRequestSent(t){this.addEventListener($,t)}searchResponseReceived(t){this.addEventListener(B,t)}searchResultsView(t){this.addEventListener(q,t)}searchSuggestionClick(t){this.addEventListener(W,t)}shoppingCartView(t){this.addEventListener(G,t)}signIn(t,e){this.addEventListener(H,t,e)}signOut(t,e){this.addEventListener(J,t,e)}updateCart(t){this.addEventListener(Y,t)}}class X extends t{addToCart(t){this.removeEventListener(x,t)}customUrl(t){this.removeEventListener(C,t)}dataLayerChange(t){this.removeEventListener(_,t)}dataLayerEvent(t){this.removeEventListener(w,t)}initiateCheckout(t){this.removeEventListener(L,t)}instantPurchase(t){this.removeEventListener(A,t)}pageActivitySummary(t){this.removeEventListener(O,t)}pageView(t){this.removeEventListener(S,t)}placeOrder(t){this.removeEventListener(k,t)}productPageView(t){this.removeEventListener(I,t)}recsItemAddToCartClick(t){this.removeEventListener(R,t)}recsItemClick(t){this.removeEventListener(T,t)}recsRequestSent(t){this.removeEventListener(D,t)}recsResponseReceived(t){this.removeEventListener(U,t)}recsUnitRender(t){this.removeEventListener(N,t)}recsUnitView(t){this.removeEventListener(P,t)}referrerUrl(t){this.removeEventListener(F,t)}removeFromCart(t){this.removeEventListener(M,t)}searchCategoryClick(t){this.removeEventListener(V,t)}searchProductClick(t){this.removeEventListener(z,t)}searchRequestSent(t){this.removeEventListener($,t)}searchResponseReceived(t){this.removeEventListener(B,t)}searchResultsView(t){this.removeEventListener(q,t)}searchSuggestionClick(t){this.removeEventListener(W,t)}shoppingCartView(t){this.removeEventListener(G,t)}signIn(t){this.removeEventListener(H,t)}signOut(t){this.removeEventListener(J,t)}updateCart(t){this.removeEventListener(Y,t)}}const Z=new class{constructor(){this.context=new E,this.publish=new K,this.subscribe=new Q,this.unsubscribe=new X,window.adobeDataLayer=window.adobeDataLayer||[],window.postMessage("magento-storefront-events-sdk","*")}}})(),r.default})()}));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("magentoStorefrontEvents",[],e):"object"==typeof exports?exports.magentoStorefrontEvents=e():t.magentoStorefrontEvents=e()}(self,(function(){return(()=>{"use strict";var t={921:(t,e,n)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=i(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return o(e[a][1][t]||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,r){(function(t){(function(){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function o(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function i(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function a(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function c(t,e,n){var r=t.length;for(n+=-1;++n<r;)if(e(t[n],n,t))return n;return-1}function u(t){return t!=t}function f(t){return function(e){return t(e)}}function l(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function h(t){var e=Object;return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function d(){}function v(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function b(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function g(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new b;++e<n;)this.add(t[e])}function m(t){this.size=(this.__data__=new y(t)).size}function j(t,e){var n,r=gn(t),o=!r&&bn(t),i=!r&&!o&&mn(t),a=!r&&!o&&!i&&xn(t);if(r=r||o||i||a){o=t.length;for(var s=String,c=-1,u=Array(o);++c<o;)u[c]=s(c);o=u}else o=[];for(n in s=o.length,t)!e&&!ge.call(t,n)||r&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||et(n,s))||o.push(n);return o}function E(t,e,n){(n===Mt||pt(t[e],n))&&(n!==Mt||e in t)||_(t,e,n)}function x(t,e,n){var r=t[e];ge.call(t,e)&&pt(r,n)&&(n!==Mt||e in t)||_(t,e,n)}function C(t,e){for(var n=t.length;n--;)if(pt(t[n][0],e))return n;return-1}function _(t,e,n){"__proto__"==e&&Re?Re(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function w(t,e,n,r,o,i){var a,s=1&e,c=2&e,u=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),a!==Mt)return a;if(!gt(t))return t;if(r=gn(t)){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ge.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return $(t,a)}else{var f=an(t),l="[object Function]"==f||"[object GeneratorFunction]"==f;if(mn(t))return M(t,s);if("[object Object]"==f||"[object Arguments]"==f||l&&!o){if(a=c||l?{}:Z(t),!s)return c?function(t,e){return B(t,on(t),e)}(t,function(t,e){return t&&B(e,It(e),t)}(a,t)):function(t,e){return B(t,rn(t),e)}(t,function(t,e){return t&&B(e,kt(e),t)}(a,t))}else{if(!te[f])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return V(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return e=n?V(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return z(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(e=new t.constructor(t.source,Ht.exec(t))).lastIndex=t.lastIndex,e;case"[object Symbol]":return Qe?Object(Qe.call(t)):{}}}(t,f,s)}}if(o=(i=i||new m).get(t))return o;if(i.set(t,a),En(t))return t.forEach((function(r){a.add(w(r,e,n,r,t,i))})),a;if(jn(t))return t.forEach((function(r,o){a.set(o,w(r,e,n,o,t,i))})),a;c=u?c?J:H:c?It:kt;var h=r?Mt:c(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n););}(h||t,(function(r,o){h&&(r=t[o=r]),x(a,o,w(r,e,n,o,t,i))})),a}function L(t,e){for(var n=0,r=(e=F(e,t)).length;null!=t&&n<r;)t=t[at(e[n++])];return n&&n==r?t:Mt}function A(t,e,n){return e=e(t),gn(t)?e:i(e,n(t))}function O(t){if(null==t)t=t===Mt?"[object Undefined]":"[object Null]";else if(Te&&Te in Object(t)){var e=ge.call(t,Te),n=t[Te];try{t[Te]=Mt;var r=!0}catch(t){}var o=je.call(t);r&&(e?t[Te]=n:delete t[Te]),t=o}else t=je.call(t);return t}function S(t,e){return null!=t&&ge.call(t,e)}function k(t,e){return null!=t&&e in Object(t)}function I(t){return mt(t)&&"[object Arguments]"==O(t)}function T(t,e,n,r,o){if(t===e)e=!0;else if(null==t||null==e||!mt(t)&&!mt(e))e=t!=t&&e!=e;else t:{var i,a,s=gn(t),c=gn(e),u="[object Object]"==(i="[object Arguments]"==(i=s?"[object Array]":an(t))?"[object Object]":i);if(c="[object Object]"==(a="[object Arguments]"==(a=c?"[object Array]":an(e))?"[object Object]":a),(a=i==a)&&mn(t)){if(!mn(e)){e=!1;break t}u=!(s=!0)}if(a&&!u)o=o||new m,e=s||xn(t)?G(t,e,n,r,T,o):function(t,e,n,r,o,i,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!i(new we(t),new we(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return pt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=l;case"[object Set]":if(s=s||p,t.size!=e.size&&!(1&r))break;return(n=a.get(t))?n==e:(r|=2,a.set(t,e),e=G(s(t),s(e),r,o,i,a),a.delete(t),e);case"[object Symbol]":if(Qe)return Qe.call(t)==Qe.call(e)}return!1}(t,e,i,n,r,T,o);else{if(!(1&n)&&(s=u&&ge.call(t,"__wrapped__"),i=c&&ge.call(e,"__wrapped__"),s||i)){e=T(t=s?t.value():t,e=i?e.value():e,n,r,o=o||new m);break t}if(a)e:if(o=o||new m,s=1&n,i=H(t),c=i.length,a=H(e).length,c==a||s){for(u=c;u--;){var f=i[u];if(!(s?f in e:ge.call(e,f))){e=!1;break e}}if((a=o.get(t))&&o.get(e))e=a==e;else{a=!0,o.set(t,e),o.set(e,t);for(var h=s;++u<c;){var d=t[f=i[u]],v=e[f];if(r)var y=s?r(v,d,f,e,t,o):r(d,v,f,t,e,o);if(y===Mt?d!==v&&!T(d,v,n,r,o):!y){a=!1;break}h=h||"constructor"==f}a&&!h&&(n=t.constructor)!=(r=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(a=!1),o.delete(t),o.delete(e),e=a}}else e=!1;else e=!1}}return e}function R(t){return"function"==typeof t?t:null==t?Dt:"object"==s(t)?gn(t)?function(t,e){return nt(t)&&e==e&&!gt(e)?ot(at(t),e):function(n){var r=Ot(n,t);return r===Mt&&r===e?St(n,t):T(e,r,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=kt(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,o==o&&!gt(o)]}return e}(t);return 1==e.length&&e[0][2]?ot(e[0][0],e[0][1]):function(n){return n===t||function(t,e){var n=e.length,r=n;if(null==t)return!r;for(t=Object(t);n--;)if((o=e[n])[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1;for(;++n<r;){var o,i=(o=e[n])[0],a=t[i],s=o[1];if(o[2]){if(a===Mt&&!(i in t))return!1}else if(!T(s,a,3,void 0,o=new m))return!1}return!0}(n,e)}}(t):Nt(t)}function D(t){if(!rt(t))return Ne(t);var e,n=[];for(e in Object(t))ge.call(t,e)&&"constructor"!=e&&n.push(e);return n}function U(t,e,n,r,o){t!==e&&en(e,(function(i,a){if(gt(i)){var s=o=o||new m,c="__proto__"==a?Mt:t[a],u="__proto__"==a?Mt:e[a];if(d=s.get(u))E(t,a,d);else{var f=(d=r?r(c,u,a+"",t,e,s):Mt)===Mt;if(f){var l=gn(u),h=!l&&mn(u),p=!l&&!h&&xn(u),d=u;l||h||p?d=gn(c)?c:vt(c)?$(c):h?M(u,!(f=!1)):p?z(u,!(f=!1)):[]:jt(u)||bn(u)?bn(d=c)?d=Lt(c):(!gt(c)||n&&yt(c))&&(d=Z(u)):f=!1}f&&(s.set(u,d),U(d,u,n,r,s),s.delete(u)),E(t,a,d)}}else(s=r?r("__proto__"==a?Mt:t[a],i,a+"",t,e,o):Mt)===Mt&&(s=i),E(t,a,s)}),It)}function N(t){if("string"==typeof t)return t;if(gn(t))return o(t,N)+"";if(xt(t))return Xe?Xe.call(t):"";var e=t+"";return"0"==e&&1/t==-Vt?"-0":e}function P(t,e){var n;if((e=F(e,t)).length<2)n=t;else{var r=0,o=-1,i=-1,a=(n=e).length;for(r<0&&(r=a<-r?0:a+r),(o=a<o?a:o)<0&&(o+=a),a=o<r?0:o-r>>>0,r>>>=0,o=Array(a);++i<a;)o[i]=n[i+r];n=L(t,o)}null==(t=n)||delete t[at(ft(e))]}function F(t,e){return gn(t)?t:nt(t,e)?[t]:dn(At(t))}function M(t,e){if(e)return t.slice();var n=t.length;return n=Le?Le(n):new t.constructor(n),t.copy(n),n}function V(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function z(t,e){return new t.constructor(e?V(t.buffer):t.buffer,t.byteOffset,t.length)}function $(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}function B(t,e,n){var r=!n;n=n||{};for(var o=-1,i=e.length;++o<i;){var a=e[o],s=Mt;s===Mt&&(s=t[a]),r?_(n,a,s):x(n,a,s)}return n}function q(t){return function(t){return pn(it(t,void 0,Dt),t+"")}((function(e,n){var r,o=-1,i=n.length,a=1<i?n[i-1]:Mt,c=2<i?n[2]:Mt;if(a=3<t.length&&"function"==typeof a?(i--,a):Mt,r=c){r=n[0];var u=n[1];if(gt(c)){var f=s(u);r=!!("number"==f?dt(c)&&et(u,c.length):"string"==f&&u in c)&&pt(c[u],r)}else r=!1}for(r&&(a=i<3?Mt:a,i=1),e=Object(e);++o<i;)(c=n[o])&&t(e,c,o,a);return e}))}function W(t){return jt(t)?Mt:t}function G(t,e,n,r,o,i){var s=1&n,c=t.length;if(c!=(u=e.length)&&!(s&&c<u))return!1;if((u=i.get(t))&&i.get(e))return u==e;var u=-1,f=!0,l=2&n?new g:Mt;for(i.set(t,e),i.set(e,t);++u<c;){var h=t[u],p=e[u];if(r)var d=s?r(p,h,u,e,t,i):r(h,p,u,t,e,i);if(d!==Mt){if(d)continue;f=!1;break}if(l){if(!a(e,(function(t,e){if(!l.has(e)&&(h===t||o(h,t,n,r,i)))return l.push(e)}))){f=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function H(t){return A(t,kt,rn)}function J(t){return A(t,It,on)}function Y(t,e){var n=(n=d.iteratee||Ut)===Ut?R:n;return arguments.length?n(t,e):n}function K(t,e){var n=t.__data__,r=s(e);return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function Q(t,e){var n=null==t?Mt:t[e];return!gt(n)||me&&me in n||!(yt(n)?xe:Kt).test(st(n))?Mt:n}function X(t,e,n){for(var r=-1,o=(e=F(e,t)).length,i=!1;++r<o;){var a=at(e[r]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&bt(o)&&et(a,o)&&(gn(t)||bn(t))}function Z(t){return"function"!=typeof t.constructor||rt(t)?{}:Ze(Ae(t))}function tt(t){return gn(t)||bn(t)||!!(Ie&&t&&t[Ie])}function et(t,e){var n=s(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Xt.test(t))&&-1<t&&0==t%1&&t<e}function nt(t,e){if(gn(t))return!1;var n=s(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!xt(t))||Bt.test(t)||!$t.test(t)||null!=e&&t in Object(e)}function rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ve)}function ot(t,e){return function(n){return null!=n&&n[t]===e&&(e!==Mt||t in Object(n))}}function it(t,e,n){return e=Pe(e===Mt?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Pe(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];for(o=-1,i=Array(e+1);++o<e;)i[o]=r[o];return i[e]=n(a),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,i)}}function at(t){if("string"==typeof t||xt(t))return t;var e=t+"";return"0"==e&&1/t==-Vt?"-0":e}function st(t){if(null==t)return"";try{return be.call(t)}catch(t){}return t+""}function ct(t,e,n){var r=null==t?0:t.length;return r?((n=null==n?0:_t(n))<0&&(n=Pe(r+n,0)),c(t,Y(e,3),n)):-1}function ut(t){return null!=t&&t.length?function t(e,n,r,o,a){var s=-1,c=e.length;for(r=r||tt,a=a||[];++s<c;){var u=e[s];0<n&&r(u)?1<n?t(u,n-1,r,o,a):i(a,u):o||(a[a.length]=u)}return a}(t,1):[]}function ft(t){var e=null==t?0:t.length;return e?t[e-1]:Mt}function lt(t,e){function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");return n.cache=new(lt.Cache||b),n}function ht(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function pt(t,e){return t===e||t!=t&&e!=e}function dt(t){return null!=t&&bt(t.length)&&!yt(t)}function vt(t){return mt(t)&&dt(t)}function yt(t){return!!gt(t)&&("[object Function]"==(t=O(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function bt(t){return"number"==typeof t&&-1<t&&0==t%1&&t<=9007199254740991}function gt(t){var e=s(t);return null!=t&&("object"==e||"function"==e)}function mt(t){return null!=t&&"object"==s(t)}function jt(t){return!(!mt(t)||"[object Object]"!=O(t))&&(null===(t=Ae(t))||"function"==typeof(t=ge.call(t,"constructor")&&t.constructor)&&t instanceof t&&be.call(t)==Ee)}function Et(t){return"string"==typeof t||!gn(t)&&mt(t)&&"[object String]"==O(t)}function xt(t){return"symbol"==s(t)||mt(t)&&"[object Symbol]"==O(t)}function Ct(t){return t?(t=wt(t))===Vt||t===-Vt?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function _t(t){var e=(t=Ct(t))%1;return t==t?e?t-e:t:0}function wt(t){if("number"==typeof t)return t;if(xt(t))return zt;if(gt(t)&&(t=gt(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(Wt,"");var e=Yt.test(t);return e||Qt.test(t)?ne(t.slice(2),e?2:8):Jt.test(t)?zt:+t}function Lt(t){return B(t,It(t))}function At(t){return null==t?"":N(t)}function Ot(t,e,n){return(t=null==t?Mt:L(t,e))===Mt?n:t}function St(t,e){return null!=t&&X(t,e,k)}function kt(t){return dt(t)?j(t):D(t)}function It(t){if(dt(t))t=j(t,!0);else if(gt(t)){var e,n=rt(t),r=[];for(e in t)("constructor"!=e||!n&&ge.call(t,e))&&r.push(e);t=r}else{if(e=[],null!=t)for(n in Object(t))e.push(n);t=e}return t}function Tt(t){return null==t?[]:function(t,e){return o(e,(function(e){return t[e]}))}(t,kt(t))}function Rt(t){return function(){return t}}function Dt(t){return t}function Ut(t){return R("function"==typeof t?t:w(t,1))}function Nt(t){return nt(t)?function(t){return function(e){return null==e?Mt:e[t]}}(at(t)):function(t){return function(e){return L(e,t)}}(t)}function Pt(){return[]}function Ft(){return!1}var Mt,Vt=1/0,zt=NaN,$t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,qt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/^\s+|\s+$/g,Gt=/\\(\\)?/g,Ht=/\w*$/,Jt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Xt=/^(?:0|[1-9]\d*)$/,Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var te={};te["[object Arguments]"]=te["[object Array]"]=te["[object ArrayBuffer]"]=te["[object DataView]"]=te["[object Boolean]"]=te["[object Date]"]=te["[object Float32Array]"]=te["[object Float64Array]"]=te["[object Int8Array]"]=te["[object Int16Array]"]=te["[object Int32Array]"]=te["[object Map]"]=te["[object Number]"]=te["[object Object]"]=te["[object RegExp]"]=te["[object Set]"]=te["[object String]"]=te["[object Symbol]"]=te["[object Uint8Array]"]=te["[object Uint8ClampedArray]"]=te["[object Uint16Array]"]=te["[object Uint32Array]"]=!0,te["[object Error]"]=te["[object Function]"]=te["[object WeakMap]"]=!1;var ee,ne=parseInt,re="object"==s(t)&&t&&t.Object===Object&&t,oe="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,ie=re||oe||Function("return this")(),ae="object"==s(r)&&r&&!r.nodeType&&r,se=ae&&"object"==s(e)&&e&&!e.nodeType&&e,ce=se&&se.exports===ae,ue=ce&&re.process;t:{try{ee=ue&&ue.binding&&ue.binding("util");break t}catch(f){}ee=void 0}var fe,le=ee&&ee.isMap,he=ee&&ee.isSet,pe=ee&&ee.isTypedArray,de=Array.prototype,ve=Object.prototype,ye=ie["__core-js_shared__"],be=Function.prototype.toString,ge=ve.hasOwnProperty,me=(fe=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||""))?"Symbol(src)_1."+fe:"",je=ve.toString,Ee=be.call(Object),xe=RegExp("^"+be.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ce=ce?ie.Buffer:Mt,_e=ie.Symbol,we=ie.Uint8Array,Le=Ce?Ce.a:Mt,Ae=h(Object.getPrototypeOf),Oe=Object.create,Se=ve.propertyIsEnumerable,ke=de.splice,Ie=_e?_e.isConcatSpreadable:Mt,Te=_e?_e.toStringTag:Mt,Re=function(){try{var t=Q(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),De=Object.getOwnPropertySymbols,Ue=Ce?Ce.isBuffer:Mt,Ne=h(Object.keys),Pe=Math.max,Fe=Date.now,Me=Q(ie,"DataView"),Ve=Q(ie,"Map"),ze=Q(ie,"Promise"),$e=Q(ie,"Set"),Be=Q(ie,"WeakMap"),qe=Q(Object,"create"),We=st(Me),Ge=st(Ve),He=st(ze),Je=st($e),Ye=st(Be),Ke=_e?_e.prototype:Mt,Qe=Ke?Ke.valueOf:Mt,Xe=Ke?Ke.toString:Mt,Ze=function(t){return gt(t)?Oe?Oe(t):(tn.prototype=t,t=new tn,tn.prototype=Mt,t):{}};function tn(){}v.prototype.clear=function(){this.__data__=qe?qe(null):{},this.size=0},v.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},v.prototype.get=function(t){var e=this.__data__;return qe?"__lodash_hash_undefined__"===(t=e[t])?Mt:t:ge.call(e,t)?e[t]:Mt},v.prototype.has=function(t){var e=this.__data__;return qe?e[t]!==Mt:ge.call(e,t)},v.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=qe&&e===Mt?"__lodash_hash_undefined__":e,this},y.prototype.clear=function(){this.__data__=[],this.size=0},y.prototype.delete=function(t){var e=this.__data__;return!((t=C(e,t))<0||(t==e.length-1?e.pop():ke.call(e,t,1),--this.size,0))},y.prototype.get=function(t){var e=this.__data__;return(t=C(e,t))<0?Mt:e[t][1]},y.prototype.has=function(t){return-1<C(this.__data__,t)},y.prototype.set=function(t,e){var n=this.__data__,r=C(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},b.prototype.clear=function(){this.size=0,this.__data__={hash:new v,map:new(Ve||y),string:new v}},b.prototype.delete=function(t){return t=K(this,t).delete(t),this.size-=t?1:0,t},b.prototype.get=function(t){return K(this,t).get(t)},b.prototype.has=function(t){return K(this,t).has(t)},b.prototype.set=function(t,e){var n=K(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},g.prototype.add=g.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},g.prototype.has=function(t){return this.__data__.has(t)},m.prototype.clear=function(){this.__data__=new y,this.size=0},m.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},m.prototype.get=function(t){return this.__data__.get(t)},m.prototype.has=function(t){return this.__data__.has(t)},m.prototype.set=function(t,e){var n=this.__data__;if(n instanceof y){var r=n.__data__;if(!Ve||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new b(r)}return n.set(t,e),this.size=n.size,this};var en=function(t,e,n){for(var r=-1,o=Object(t),i=(n=n(t)).length;i--;){var a=n[++r];if(!1===e(o[a],a,o))break}return t},nn=Re?function(t,e){return Re(t,"toString",{configurable:!0,enumerable:!1,value:Rt(e),writable:!0})}:Dt,rn=De?function(t){return null==t?[]:(t=Object(t),n(De(t),(function(e){return Se.call(t,e)})))}:Pt,on=De?function(t){for(var e=[];t;)i(e,rn(t)),t=Ae(t);return e}:Pt,an=O;(Me&&"[object DataView]"!=an(new Me(new ArrayBuffer(1)))||Ve&&"[object Map]"!=an(new Ve)||ze&&"[object Promise]"!=an(ze.resolve())||$e&&"[object Set]"!=an(new $e)||Be&&"[object WeakMap]"!=an(new Be))&&(an=function(t){var e=O(t);if(t=(t="[object Object]"==e?t.constructor:Mt)?st(t):"")switch(t){case We:return"[object DataView]";case Ge:return"[object Map]";case He:return"[object Promise]";case Je:return"[object Set]";case Ye:return"[object WeakMap]"}return e});var sn,cn,un,fn,ln,hn,pn=(fn=nn,hn=ln=0,function(){var t=Fe(),e=16-(t-hn);if(hn=t,0<e){if(800<=++ln)return arguments[0]}else ln=0;return fn.apply(Mt,arguments)}),dn=(un=(cn=lt(cn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(qt,(function(t,n,r,o){e.push(r?o.replace(Gt,"$1"):n||t)})),e},(function(t){return 500===un.size&&un.clear(),t}))).cache,cn),vn=(sn=ct,function(t,e,n){var r=Object(t);if(!dt(t)){var o=Y(e,3);t=kt(t),e=function(t){return o(r[t],t,r)}}return-1<(e=sn(t,e,n))?r[o?t[e]:e]:Mt});lt.Cache=b;var yn,bn=I(function(){return arguments}())?I:function(t){return mt(t)&&ge.call(t,"callee")&&!Se.call(t,"callee")},gn=Array.isArray,mn=Ue||Ft,jn=le?f(le):function(t){return mt(t)&&"[object Map]"==an(t)},En=he?f(he):function(t){return mt(t)&&"[object Set]"==an(t)},xn=pe?f(pe):function(t){return mt(t)&&bt(t.length)&&!!Zt[O(t)]},Cn=q((function(t,e,n){U(t,e,n)})),_n=q((function(t,e,n,r){U(t,e,n,r)})),wn=pn(it(yn=function(t,e){var n={};if(null==t)return n;var r=!1;e=o(e,(function(e){return e=F(e,t),r=r||1<e.length,e})),B(t,J(t),n),r&&(n=w(n,7,W));for(var i=e.length;i--;)P(n,e[i]);return n},Mt,ut),yn+"");d.constant=Rt,d.flatten=ut,d.iteratee=Ut,d.keys=kt,d.keysIn=It,d.memoize=lt,d.merge=Cn,d.mergeWith=_n,d.negate=ht,d.omit=wn,d.property=Nt,d.reject=function(t,e){return(gn(t)?n:function(t,e){var n=[];return function(t,e){if(null==t)return t;if(!dt(t))return function(t,e){return t&&en(t,e,kt)}(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););}(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n})(t,ht(Y(e,3)))},d.toPlainObject=Lt,d.values=Tt,d.cloneDeep=function(t){return w(t,5)},d.cloneDeepWith=function(t,e){return w(t,5,e="function"==typeof e?e:Mt)},d.eq=pt,d.find=vn,d.findIndex=ct,d.get=Ot,d.has=function(t,e){return null!=t&&X(t,e,S)},d.hasIn=St,d.identity=Dt,d.includes=function(t,e,n,r){if(t=dt(t)?t:Tt(t),n=n&&!r?_t(n):0,r=t.length,n<0&&(n=Pe(r+n,0)),Et(t))t=n<=r&&-1<t.indexOf(e,n);else{if(r=!!r){if(e==e)t:{for(n-=1,r=t.length;++n<r;)if(t[n]===e){t=n;break t}t=-1}else t=c(t,u,n);r=-1<t}t=r}return t},d.isArguments=bn,d.isArray=gn,d.isArrayLike=dt,d.isArrayLikeObject=vt,d.isBuffer=mn,d.isEmpty=function(t){if(null==t)return!0;if(dt(t)&&(gn(t)||"string"==typeof t||"function"==typeof t.splice||mn(t)||xn(t)||bn(t)))return!t.length;var e=an(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(rt(t))return!D(t).length;for(var n in t)if(ge.call(t,n))return!1;return!0},d.isEqual=function(t,e){return T(t,e)},d.isFunction=yt,d.isLength=bt,d.isMap=jn,d.isNull=function(t){return null===t},d.isObject=gt,d.isObjectLike=mt,d.isPlainObject=jt,d.isSet=En,d.isString=Et,d.isSymbol=xt,d.isTypedArray=xn,d.last=ft,d.stubArray=Pt,d.stubFalse=Ft,d.toFinite=Ct,d.toInteger=_t,d.toNumber=wt,d.toString=At,d.VERSION="4.17.5",se&&((se.exports=d)._=d,ae._=d)}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){e.exports={itemType:{DATA:"data",FCTN:"fctn",EVENT:"event",LISTENER_ON:"listenerOn",LISTENER_OFF:"listenerOff"},dataLayerEvent:{CHANGE:"adobeDataLayer:change",EVENT:"adobeDataLayer:event"},listenerScope:{PAST:"past",FUTURE:"future",ALL:"all"}}},{}],3:[function(t,e,n){var r=t("../custom-lodash"),i=t("../version.json").version,a=r.cloneDeep,s=r.get,c=t("./item"),u=t("./listener"),f=t("./listenerManager"),l=t("./constants"),h=t("./utils/customMerge");e.exports=function(t){var e,n,r=t||{},p=[],d={},v={getState:function(){return d},getDataLayer:function(){return p}};function y(t){d=h(d,t.data)}function b(t){function n(t){return 0===p.length||t.index>p.length-1?[]:p.slice(0,t.index).map((function(t){return c(t)}))}t.valid?{data:function(t){y(t),e.triggerListeners(t)},fctn:function(t){t.config.call(p,p)},event:function(t){t.data&&y(t),e.triggerListeners(t)},listenerOn:function(t){var r=u(t);switch(r.scope){case l.listenerScope.PAST:var i,a=o(n(t));try{for(a.s();!(i=a.n()).done;){var s=i.value;e.triggerListener(r,s)}}catch(t){a.e(t)}finally{a.f()}break;case l.listenerScope.FUTURE:e.register(r);break;case l.listenerScope.ALL:if(e.register(r)){var c,f=o(n(t));try{for(f.s();!(c=f.n()).done;){var h=c.value;e.triggerListener(r,h)}}catch(t){f.e(t)}finally{f.f()}}}},listenerOff:function(t){e.unregister(u(t))}}[t.type](t):g(t)}function g(t){var e="The following item cannot be handled by the data layer because it does not have a valid format: "+JSON.stringify(t.config);console.error(e)}return Array.isArray(r.dataLayer)||(r.dataLayer=[]),n=r.dataLayer.splice(0,r.dataLayer.length),(p=r.dataLayer).version=i,d={},e=f(v),p.push=function(t){var e=arguments,n=arguments;if(Object.keys(e).forEach((function(t){var r=c(e[t]);switch(r.valid||(g(r),delete n[t]),r.type){case l.itemType.DATA:case l.itemType.EVENT:b(r);break;case l.itemType.FCTN:delete n[t],b(r);break;case l.itemType.LISTENER_ON:case l.itemType.LISTENER_OFF:delete n[t]}})),n[0])return Array.prototype.push.apply(this,n)},p.getState=function(t){return t?s(a(d),t):a(d)},p.addEventListener=function(t,e,n){b(c({on:t,handler:e,scope:n&&n.scope,path:n&&n.path}))},p.removeEventListener=function(t,e){b(c({off:t,handler:e}))},function(){for(var t=0;t<n.length;t++)p.push(n[t])}(),v}},{"../custom-lodash":1,"../version.json":14,"./constants":2,"./item":5,"./listener":7,"./listenerManager":8,"./utils/customMerge":10}],4:[function(t,e,n){var r={Manager:t("./dataLayerManager")};window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.version?console.warn("Adobe Client Data Layer v".concat(window.adobeDataLayer.version," has already been imported/initialized on this page. You may be erroneously loading it a second time.")):r.Manager({dataLayer:window.adobeDataLayer}),e.exports=r},{"./dataLayerManager":3}],5:[function(t,e,n){var r=t("../custom-lodash"),o=r.isPlainObject,i=r.isEmpty,a=r.omit,s=r.find,c=t("./utils/dataMatchesContraints"),u=t("./itemConstraints"),f=t("./constants");e.exports=function(t,e){var n=t,r=e,l=s(Object.keys(u),(function(t){return c(n,u[t])}))||"function"==typeof n&&f.itemType.FCTN||o(n)&&f.itemType.DATA,h=function(){var t=a(n,Object.keys(u.event));if(!i(t))return t}();return{config:n,type:l,data:h,valid:!!l,index:r}}},{"../custom-lodash":1,"./constants":2,"./itemConstraints":6,"./utils/dataMatchesContraints":11}],6:[function(t,e,n){e.exports={event:{event:{type:"string"},eventInfo:{optional:!0}},listenerOn:{on:{type:"string"},handler:{type:"function"},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}},listenerOff:{off:{type:"string"},handler:{type:"function",optional:!0},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}}}},{}],7:[function(t,e,n){var r=t("./constants");e.exports=function(t){return{event:t.config.on||t.config.off,handler:t.config.handler||null,scope:t.config.scope||t.config.on&&r.listenerScope.ALL||null,path:t.config.path||null}}},{"./constants":2}],8:[function(t,e,n){var r=t("../custom-lodash").cloneDeep,i=t("./constants"),a=t("./utils/listenerMatch"),s=t("./utils/indexOfListener");e.exports=function(t){var e={},n=t,c=s.bind(null,e);function u(t,e){if(a(t,e)){var o=[r(e.config)];t.handler.apply(n.getDataLayer(),o)}}return{register:function(t){var n=t.event;return Object.prototype.hasOwnProperty.call(e,n)?-1===c(t)&&(e[t.event].push(t),!0):(e[t.event]=[t],!0)},unregister:function(t){var n=t.event;if(Object.prototype.hasOwnProperty.call(e,n))if(t.handler||t.scope||t.path){var r=c(t);-1<r&&e[n].splice(r,1)}else e[n]=[]},triggerListeners:function(t){(function(t){var e=[];switch(t.type){case i.itemType.DATA:e.push(i.dataLayerEvent.CHANGE);break;case i.itemType.EVENT:e.push(i.dataLayerEvent.EVENT),t.data&&e.push(i.dataLayerEvent.CHANGE),t.config.event!==i.dataLayerEvent.CHANGE&&e.push(t.config.event)}return e})(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r,i=o(e[n]);try{for(i.s();!(r=i.n()).done;)u(r.value,t)}catch(n){i.e(n)}finally{i.f()}}}))},triggerListener:function(t,e){u(t,e)}}}},{"../custom-lodash":1,"./constants":2,"./utils/indexOfListener":12,"./utils/listenerMatch":13}],9:[function(t,e,n){var r=t("../../custom-lodash"),o=r.has,i=r.get;e.exports=function(t,e){for(var n=e.substring(0,e.lastIndexOf("."));n;){if(o(t,n)&&null==i(t,n))return!0;n=n.substring(0,n.lastIndexOf("."))}return!1}},{"../../custom-lodash":1}],10:[function(t,e,n){var r=t("../../custom-lodash"),o=r.cloneDeepWith,i=r.isObject,a=r.isArray,s=r.reject,c=r.mergeWith,u=r.isNull;e.exports=function(t,e){return c(t,e,(function(t,e,n,r){if(null==e)return null})),function(t,e){return o(t,(n=1<arguments.length&&void 0!==e?e:function(t){return!t},function t(e,r,c,u){if(i(e)){if(a(e))return s(e,n).map((function(e){return o(e,t)}));for(var f={},l=0,h=Object.keys(e);l<h.length;l++){var p=h[l];n(e[p])||(f[p]=o(e[p],t))}return f}}));var n}(t,u)}},{"../../custom-lodash":1}],11:[function(t,e,n){var r=t("../../custom-lodash"),o=r.find,i=r.includes;e.exports=function(t,e){return void 0===o(Object.keys(e),(function(n){var r=e[n].type,o=n&&e[n].values,a=!e[n].optional,c=t[n],u=s(c),f=r&&u!==r,l=o&&!i(o,c);return a?!c||f||l:c&&(f||l)}))}},{"../../custom-lodash":1}],12:[function(t,e,n){var i=t("../../custom-lodash").isEqual;e.exports=function(t,e){var n=e.event;if(Object.prototype.hasOwnProperty.call(t,n)){var a,s=o(t[n].entries());try{for(s.s();!(a=s.n()).done;){var c=r(a.value,2),u=c[0],f=c[1];if(i(f.handler,e.handler))return u}}catch(t){s.e(t)}finally{s.f()}}return-1}},{"../../custom-lodash":1}],13:[function(t,e,n){var r=t("../../custom-lodash").has,o=t("../constants"),i=t("./ancestorRemoved");function a(t,e){return!e.data||!t.path||r(e.data,t.path)||i(e.data,t.path)}e.exports=function(t,e){var n=t.event,r=e.config,i=!1;return e.type===o.itemType.DATA?n===o.dataLayerEvent.CHANGE&&(i=a(t,e)):e.type===o.itemType.EVENT&&(n!==o.dataLayerEvent.EVENT&&n!==r.event||(i=a(t,e)),e.data&&n===o.dataLayerEvent.CHANGE&&(i=a(t,e))),i}},{"../../custom-lodash":1,"../constants":2,"./ancestorRemoved":9}],14:[function(t,e,n){e.exports={version:"2.0.2"}},{}]},{},[4])}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{n.d(r,{default:()=>rt}),n(921);class t{setContext(t,e){window.adobeDataLayer.push({[t]:null}),window.adobeDataLayer.push({[t]:e})}getContext(t){return window.adobeDataLayer.getState?window.adobeDataLayer.getState(t):{}}addEventListener(t,e,n){window.adobeDataLayer.push((r=>{r.addEventListener(t,e,n)}))}removeEventListener(t,e){window.adobeDataLayer.push((n=>{n.removeEventListener(t,e)}))}pushEvent(t,e={}){window.adobeDataLayer.push((n=>{n.push({event:t,eventInfo:Object.assign(Object.assign({},this.getContext()),e)})}))}}const e="aepContext",o="accountContext",i="categoryContext",a="customUrlContext",s="dataServicesExtensionContext",c="eventForwardingContext",u="magentoExtensionContext",f="orderContext",l="pageContext",h="productContext",p="recommendationsContext",d="recommendationsExtensionContext",v="referrerUrlContext",y="searchExtensionContext",b="searchInputContext",g="searchResultsContext",m="shopperContext",j="shoppingCartContext",E="storefrontInstanceContext";class x extends t{getAEP(){return this.getContext(e)}setAEP(t){this.setContext(e,t)}getAccount(){return this.getContext(o)}setAccount(t){this.setContext(o,t)}getCategory(){return this.getContext(i)}setCategory(t){this.setContext(i,t)}getEventForwarding(){return this.getContext(c)}setEventForwarding(t){this.setContext(c,t)}getCustomUrl(){return this.getContext(a)}setCustomUrl(t){this.setContext(a,t)}getDataServicesExtension(){return this.getContext(s)}setDataServicesExtension(t){this.setContext(s,t)}getMagentoExtension(){return this.getContext(u)}setMagentoExtension(t){this.setContext(u,t)}getOrder(){return this.getContext(f)}setOrder(t){this.setContext(f,t)}getPage(){return this.getContext(l)}setPage(t){this.setContext(l,t)}getProduct(){return this.getContext(h)}setProduct(t){this.setContext(h,t)}getRecommendations(){return this.getContext(p)}setRecommendations(t){this.setContext(p,t)}getRecommendationsExtension(){return this.getContext(d)}setRecommendationsExtension(t){this.setContext(d,t)}getReferrerUrl(){return this.getContext(v)}setReferrerUrl(t){this.setContext(v,t)}getSearchExtension(){return this.getContext(y)}setSearchExtension(t){this.setContext(y,t)}getSearchInput(){return this.getContext(b)}setSearchInput(t){this.setContext(b,t)}getSearchResults(){return this.getContext(g)}setSearchResults(t){this.setContext(g,t)}getShopper(){return this.getContext(m)}setShopper(t){this.setContext(m,t)}getShoppingCart(){return this.getContext(j)}setShoppingCart(t){this.setContext(j,t)}getStorefrontInstance(){return this.getContext(E)}setStorefrontInstance(t){this.setContext(E,t)}getContext(t){return super.getContext(t)}setContext(t,e){super.setContext(t,e)}}const C="add-to-cart",_="abandon-cart",w="create-account",L="custom-url",A="adobeDataLayer:change",O="adobeDataLayer:event",S="edit-account",k="initiate-checkout",I="instant-purchase",T="page-activity-summary",R="page-view",D="place-order",U="product-page-view",N="recs-item-click",P="recs-item-add-to-cart-click",F="recs-api-request-sent",M="recs-api-response-received",V="recs-unit-impression-render",z="recs-unit-view",$="referrer-url",B="remove-from-cart",q="search-category-click",W="search-product-click",G="search-request-sent",H="search-response-received",J="search-results-view",Y="search-suggestion-click",K="shopping-cart-view",Q="sign-in",X="sign-out",Z="update-cart";class tt extends t{addToCart(t){this.pushEvent(C,{customContext:t})}abandonCart(t){this.pushEvent(_,{customContext:t})}createAccount(t){this.pushEvent(w,{customContext:t})}customUrl(t){this.pushEvent(L,{customContext:t})}editAccount(t){this.pushEvent(S,{customContext:t})}initiateCheckout(t){this.pushEvent(k,{customContext:t})}instantPurchase(t){this.pushEvent(I,{customContext:t})}pageActivitySummary(t){this.pushEvent(T,{customContext:t})}pageView(t){this.pushEvent(R,{customContext:t})}placeOrder(t){this.pushEvent(D,{customContext:t})}productPageView(t){this.pushEvent(U,{customContext:t})}recsItemAddToCartClick(t,e,n){this.pushEvent(P,{unitId:t,productId:e,customContext:n})}recsItemClick(t,e,n){this.pushEvent(N,{unitId:t,productId:e,customContext:n})}recsRequestSent(t){this.pushEvent(F,{customContext:t})}recsResponseReceived(t){this.pushEvent(M,{customContext:t})}recsUnitRender(t,e){this.pushEvent(V,{unitId:t,customContext:e})}recsUnitView(t,e){this.pushEvent(z,{unitId:t,customContext:e})}referrerUrl(t){this.pushEvent($,{customContext:t})}removeFromCart(t){this.pushEvent(B,{customContext:t})}searchCategoryClick(t,e,n){this.pushEvent(q,{searchUnitId:t,name:e,customContext:n})}searchProductClick(t,e,n){this.pushEvent(W,{searchUnitId:t,sku:e,customContext:n})}searchRequestSent(t,e){this.pushEvent(G,{searchUnitId:t,customContext:e})}searchResponseReceived(t,e){this.pushEvent(H,{searchUnitId:t,customContext:e})}searchResultsView(t,e){this.pushEvent(J,{searchUnitId:t,customContext:e})}searchSuggestionClick(t,e,n){this.pushEvent(Y,{searchUnitId:t,suggestion:e,customContext:n})}shoppingCartView(t){this.pushEvent(K,{customContext:t})}signIn(t){this.pushEvent(Q,{customContext:t})}signOut(t){this.pushEvent(X,{customContext:t})}updateCart(t){this.pushEvent(Z,{customContext:t})}}class et extends t{addToCart(t,e){this.addEventListener(C,t,e)}abandonCart(t,e){this.addEventListener(_,t,e)}createAccount(t,e){this.addEventListener(w,t,e)}customUrl(t,e){this.addEventListener(L,t,e)}editAccount(t,e){this.addEventListener(S,t,e)}dataLayerChange(t,e){this.addEventListener(A,t,e)}dataLayerEvent(t,e){this.addEventListener(O,t,e)}initiateCheckout(t,e){this.addEventListener(k,t,e)}instantPurchase(t,e){this.addEventListener(I,t,e)}pageActivitySummary(t,e){this.addEventListener(T,t,e)}pageView(t,e){this.addEventListener(R,t,e)}placeOrder(t,e){this.addEventListener(D,t,e)}productPageView(t,e){this.addEventListener(U,t,e)}recsItemAddToCartClick(t,e){this.addEventListener(P,t,e)}recsItemClick(t,e){this.addEventListener(N,t,e)}recsRequestSent(t,e){this.addEventListener(F,t,e)}recsResponseReceived(t,e){this.addEventListener(M,t,e)}recsUnitRender(t,e){this.addEventListener(V,t,e)}recsUnitView(t,e){this.addEventListener(z,t,e)}referrerUrl(t,e){this.addEventListener($,t,e)}removeFromCart(t,e){this.addEventListener(B,t,e)}searchCategoryClick(t){this.addEventListener(q,t)}searchProductClick(t){this.addEventListener(W,t)}searchRequestSent(t){this.addEventListener(G,t)}searchResponseReceived(t){this.addEventListener(H,t)}searchResultsView(t){this.addEventListener(J,t)}searchSuggestionClick(t){this.addEventListener(Y,t)}shoppingCartView(t){this.addEventListener(K,t)}signIn(t,e){this.addEventListener(Q,t,e)}signOut(t,e){this.addEventListener(X,t,e)}updateCart(t){this.addEventListener(Z,t)}}class nt extends t{addToCart(t){this.removeEventListener(C,t)}abandonCart(t){this.removeEventListener(_,t)}createAccount(t){this.removeEventListener(w,t)}customUrl(t){this.removeEventListener(L,t)}editAccount(t){this.removeEventListener(S,t)}dataLayerChange(t){this.removeEventListener(A,t)}dataLayerEvent(t){this.removeEventListener(O,t)}initiateCheckout(t){this.removeEventListener(k,t)}instantPurchase(t){this.removeEventListener(I,t)}pageActivitySummary(t){this.removeEventListener(T,t)}pageView(t){this.removeEventListener(R,t)}placeOrder(t){this.removeEventListener(D,t)}productPageView(t){this.removeEventListener(U,t)}recsItemAddToCartClick(t){this.removeEventListener(P,t)}recsItemClick(t){this.removeEventListener(N,t)}recsRequestSent(t){this.removeEventListener(F,t)}recsResponseReceived(t){this.removeEventListener(M,t)}recsUnitRender(t){this.removeEventListener(V,t)}recsUnitView(t){this.removeEventListener(z,t)}referrerUrl(t){this.removeEventListener($,t)}removeFromCart(t){this.removeEventListener(B,t)}searchCategoryClick(t){this.removeEventListener(q,t)}searchProductClick(t){this.removeEventListener(W,t)}searchRequestSent(t){this.removeEventListener(G,t)}searchResponseReceived(t){this.removeEventListener(H,t)}searchResultsView(t){this.removeEventListener(J,t)}searchSuggestionClick(t){this.removeEventListener(Y,t)}shoppingCartView(t){this.removeEventListener(K,t)}signIn(t){this.removeEventListener(Q,t)}signOut(t){this.removeEventListener(X,t)}updateCart(t){this.removeEventListener(Z,t)}}const rt=new class{constructor(){this.context=new x,this.publish=new tt,this.subscribe=new et,this.unsubscribe=new nt,window.adobeDataLayer=window.adobeDataLayer||[],window.postMessage("magento-storefront-events-sdk","*")}}})(),r.default})()}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * @adobe/magento-storefront-events-sdk@v1.1.7
2
+ * @adobe/magento-storefront-events-sdk@v1.1.8
3
3
  * Copyright © Adobe, Inc. All rights reserved.See COPYING.txt for license details.
4
4
  */
@@ -1,8 +1,10 @@
1
1
  import { Base } from "./Base";
2
- import { AEP, Category, CustomUrl, EventForwarding, MagentoExtension, Order, Page, Product, Shopper, ShoppingCart, StorefrontInstance, Recommendations, ReferrerUrl, SearchInput, SearchResults, DataServicesExtension, RecommendationsExtension, SearchExtension } from "./types/schemas";
2
+ import { Account, AEP, Category, CustomUrl, EventForwarding, MagentoExtension, Order, Page, Product, Shopper, ShoppingCart, StorefrontInstance, Recommendations, ReferrerUrl, SearchInput, SearchResults, DataServicesExtension, RecommendationsExtension, SearchExtension } from "./types/schemas";
3
3
  export default class ContextManager extends Base {
4
4
  getAEP(): AEP;
5
5
  setAEP(context: AEP): void;
6
+ getAccount(): Account;
7
+ setAccount(context: Account): void;
6
8
  getCategory(): Category;
7
9
  setCategory(context: Category): void;
8
10
  getEventForwarding(): EventForwarding;
@@ -2,108 +2,33 @@ import { Base } from "./Base";
2
2
  import { CustomContext } from "./types/contexts";
3
3
  import { RecommendationUnit, RecommendedProduct, SearchResultUnit, SearchResultCategory, SearchResultProduct, SearchResultSuggestion } from "./types/schemas";
4
4
  export default class PublishManager extends Base {
5
- /**
6
- * Publish Add to Cart event
7
- */
8
5
  addToCart(context?: CustomContext): void;
9
- /**
10
- * Publish Custom Url event
11
- */
6
+ abandonCart(context?: CustomContext): void;
7
+ createAccount(context?: CustomContext): void;
12
8
  customUrl(context?: CustomContext): void;
13
- /**
14
- * Publish Initiate Checkout event
15
- */
9
+ editAccount(context?: CustomContext): void;
16
10
  initiateCheckout(context?: CustomContext): void;
17
- /**
18
- * Publish Instant Purchase event
19
- */
20
11
  instantPurchase(context?: CustomContext): void;
21
- /**
22
- * Publish Page Activity Summary event
23
- */
24
12
  pageActivitySummary(context?: CustomContext): void;
25
- /**
26
- * Publish Page View event
27
- */
28
13
  pageView(context?: CustomContext): void;
29
- /**
30
- * Publish Place Order event
31
- */
32
14
  placeOrder(context?: CustomContext): void;
33
- /**
34
- * Publish Product Page View event
35
- */
36
15
  productPageView(context?: CustomContext): void;
37
- /**
38
- * Publish Recommended Item Add to Cart Click event
39
- */
40
16
  recsItemAddToCartClick(unitId: RecommendationUnit["unitId"], productId: RecommendedProduct["productId"], context?: CustomContext): void;
41
- /**
42
- * Publish Recommended Item Click event
43
- */
44
17
  recsItemClick(unitId: RecommendationUnit["unitId"], productId: RecommendedProduct["productId"], context?: CustomContext): void;
45
- /**
46
- * Publish Recommendations API Request event
47
- */
48
18
  recsRequestSent(context?: CustomContext): void;
49
- /**
50
- * Publish Recommendations Response Received event
51
- */
52
19
  recsResponseReceived(context?: CustomContext): void;
53
- /**
54
- * Publish Recommended Unit Render Event
55
- */
56
20
  recsUnitRender(unitId: RecommendationUnit["unitId"], context?: CustomContext): void;
57
- /**
58
- * Publish Recommended Unit View event
59
- */
60
21
  recsUnitView(unitId: RecommendationUnit["unitId"], context?: CustomContext): void;
61
- /**
62
- * Publish Referrer Url event
63
- */
64
22
  referrerUrl(context?: CustomContext): void;
65
- /**
66
- * Publish Remove from Cart event
67
- */
68
23
  removeFromCart(context?: CustomContext): void;
69
- /**
70
- * Publish Search Category Click event
71
- */
72
24
  searchCategoryClick(searchUnitId: SearchResultUnit["searchUnitId"], name: SearchResultCategory["name"], context?: CustomContext): void;
73
- /**
74
- * Publish Search Product Click event
75
- */
76
25
  searchProductClick(searchUnitId: SearchResultUnit["searchUnitId"], sku: SearchResultProduct["sku"], context?: CustomContext): void;
77
- /**
78
- * Publish Search Request Sent event
79
- */
80
26
  searchRequestSent(searchUnitId: SearchResultUnit["searchUnitId"], context?: CustomContext): void;
81
- /**
82
- * Publish Search Response Received event
83
- */
84
27
  searchResponseReceived(searchUnitId: SearchResultUnit["searchUnitId"], context?: CustomContext): void;
85
- /**
86
- * Publish Search Results View event
87
- */
88
28
  searchResultsView(searchUnitId: SearchResultUnit["searchUnitId"], context?: CustomContext): void;
89
- /**
90
- * Publish Search Suggestion Click event
91
- */
92
29
  searchSuggestionClick(searchUnitId: SearchResultUnit["searchUnitId"], suggestion: SearchResultSuggestion["suggestion"], context?: CustomContext): void;
93
- /**
94
- * Publish Shopping Cart View event
95
- */
96
30
  shoppingCartView(context?: CustomContext): void;
97
- /**
98
- * Publish Sign In event
99
- */
100
31
  signIn(context?: CustomContext): void;
101
- /**
102
- * Publish Sign Out event
103
- */
104
32
  signOut(context?: CustomContext): void;
105
- /**
106
- * Publish Cart Update events
107
- */
108
33
  updateCart(context?: CustomContext): void;
109
34
  }
@@ -1,116 +1,35 @@
1
1
  import { Base } from "./Base";
2
2
  import { ListenerOptions, EventHandler } from "./types/events";
3
3
  export default class SubscribeManager extends Base {
4
- /**
5
- * Subscribe to Add to Cart event
6
- */
7
4
  addToCart(handler: EventHandler, options?: ListenerOptions): void;
8
- /**
9
- * Subscribe to Custom Url event
10
- */
5
+ abandonCart(handler: EventHandler, options?: ListenerOptions): void;
6
+ createAccount(handler: EventHandler, options?: ListenerOptions): void;
11
7
  customUrl(handler: EventHandler, options?: ListenerOptions): void;
12
- /**
13
- * Subscribe to changes on the data layer
14
- */
8
+ editAccount(handler: EventHandler, options?: ListenerOptions): void;
15
9
  dataLayerChange(handler: EventHandler, options?: ListenerOptions): void;
16
- /**
17
- * Subscribe to all events on the data layer
18
- */
19
10
  dataLayerEvent(handler: EventHandler, options?: ListenerOptions): void;
20
- /**
21
- * Subscribe to Initiate Checkout event
22
- */
23
11
  initiateCheckout(handler: EventHandler, options?: ListenerOptions): void;
24
- /**
25
- * Subscribe to Instant Purchase event
26
- */
27
12
  instantPurchase(handler: EventHandler, options?: ListenerOptions): void;
28
- /**
29
- * Subscribe to Page Activity Summary event
30
- */
31
13
  pageActivitySummary(handler: EventHandler, options?: ListenerOptions): void;
32
- /**
33
- * Subscribe to Page View event
34
- */
35
14
  pageView(handler: EventHandler, options?: ListenerOptions): void;
36
- /**
37
- * Subscribe to Place Order event
38
- */
39
15
  placeOrder(handler: EventHandler, options?: ListenerOptions): void;
40
- /**
41
- * Subscribe to Product Page View event
42
- */
43
16
  productPageView(handler: EventHandler, options?: ListenerOptions): void;
44
- /**
45
- * Subscribe to Recommended Item Add to Cart Click event
46
- */
47
17
  recsItemAddToCartClick(handler: EventHandler, options?: ListenerOptions): void;
48
- /**
49
- * Subscribe to Recommended Item Click event
50
- */
51
18
  recsItemClick(handler: EventHandler, options?: ListenerOptions): void;
52
- /**
53
- * Subscribe to Recommendations API Request event
54
- */
55
19
  recsRequestSent(handler: EventHandler, options?: ListenerOptions): void;
56
- /**
57
- * Subscribe to Recommendations Response Received event
58
- */
59
20
  recsResponseReceived(handler: EventHandler, options?: ListenerOptions): void;
60
- /**
61
- * Subscribe to Recommended Unit Render Event
62
- */
63
21
  recsUnitRender(handler: EventHandler, options?: ListenerOptions): void;
64
- /**
65
- * Subscribe to Recommended Unit View event
66
- */
67
22
  recsUnitView(handler: EventHandler, options?: ListenerOptions): void;
68
- /**
69
- * Subscribe to Referrer Url event
70
- */
71
23
  referrerUrl(handler: EventHandler, options?: ListenerOptions): void;
72
- /**
73
- * Subscribe to Remove from Cart event
74
- */
75
24
  removeFromCart(handler: EventHandler, options?: ListenerOptions): void;
76
- /**
77
- * Subscribe to Search Category Click event
78
- */
79
25
  searchCategoryClick(handler: EventHandler): void;
80
- /**
81
- * Subscribe to Search Product Click event
82
- */
83
26
  searchProductClick(handler: EventHandler): void;
84
- /**
85
- * Subscribe to Search Request Sent event
86
- */
87
27
  searchRequestSent(handler: EventHandler): void;
88
- /**
89
- * Subscribe to Search Response Received event
90
- */
91
28
  searchResponseReceived(handler: EventHandler): void;
92
- /**
93
- * Subscribe to Search Results View event
94
- */
95
29
  searchResultsView(handler: EventHandler): void;
96
- /**
97
- * Subscribe to Search Suggestion Click event
98
- */
99
30
  searchSuggestionClick(handler: EventHandler): void;
100
- /**
101
- * Subscribe to Shopping Cart View event
102
- */
103
31
  shoppingCartView(handler: EventHandler): void;
104
- /**
105
- * Subscribe to Sign In event
106
- */
107
32
  signIn(handler: EventHandler, options?: ListenerOptions): void;
108
- /**
109
- * Subscribe to Sign Out event
110
- */
111
33
  signOut(handler: EventHandler, options?: ListenerOptions): void;
112
- /**
113
- * Subscribe to Update Cart event
114
- */
115
34
  updateCart(handler: EventHandler): void;
116
35
  }
@@ -1,116 +1,35 @@
1
1
  import { Base } from "./Base";
2
2
  import { EventHandler } from "./types/events";
3
3
  export default class UnsubscribeManager extends Base {
4
- /**
5
- * Unsubscribe from Add to Cart event
6
- */
7
4
  addToCart(handler: EventHandler): void;
8
- /**
9
- * Unsubscribe from Custom Url event
10
- */
5
+ abandonCart(handler: EventHandler): void;
6
+ createAccount(handler: EventHandler): void;
11
7
  customUrl(handler: EventHandler): void;
12
- /**
13
- * Unsubscribe from Data Layer Change event
14
- */
8
+ editAccount(handler: EventHandler): void;
15
9
  dataLayerChange(handler: EventHandler): void;
16
- /**
17
- * Unsubscribe from Data Layer Event event
18
- */
19
10
  dataLayerEvent(handler: EventHandler): void;
20
- /**
21
- * Unsubscribe from Initiate Checkout event
22
- */
23
11
  initiateCheckout(handler: EventHandler): void;
24
- /**
25
- * Unsubscribe from Instant Purchase event
26
- */
27
12
  instantPurchase(handler: EventHandler): void;
28
- /**
29
- * Unsubscribe from Page Activity Summary event
30
- */
31
13
  pageActivitySummary(handler: EventHandler): void;
32
- /**
33
- * Unsubscribe from Page View event
34
- */
35
14
  pageView(handler: EventHandler): void;
36
- /**
37
- * Unsubscribe from Place Order event
38
- */
39
15
  placeOrder(handler: EventHandler): void;
40
- /**
41
- * Unsubscribe from Product Page View event
42
- */
43
16
  productPageView(handler: EventHandler): void;
44
- /**
45
- * Unsubscribe to Recommended Item Add to Cart Click event
46
- */
47
17
  recsItemAddToCartClick(handler: EventHandler): void;
48
- /**
49
- * Unsubscribe to Recommended Item Click event
50
- */
51
18
  recsItemClick(handler: EventHandler): void;
52
- /**
53
- * Unsubscribe to Recommendations API Request event
54
- */
55
19
  recsRequestSent(handler: EventHandler): void;
56
- /**
57
- * Unsubscribe to Recommendations Response Received event
58
- */
59
20
  recsResponseReceived(handler: EventHandler): void;
60
- /**
61
- * Unsubscribe to Recommended Unit Render Event
62
- */
63
21
  recsUnitRender(handler: EventHandler): void;
64
- /**
65
- * Unsubscribe to Recommended Unit View event
66
- */
67
22
  recsUnitView(handler: EventHandler): void;
68
- /**
69
- * Unsubscribe from Referrer Url event
70
- */
71
23
  referrerUrl(handler: EventHandler): void;
72
- /**
73
- * Unsubscribe from Remove from Cart event
74
- */
75
24
  removeFromCart(handler: EventHandler): void;
76
- /**
77
- * Unsubscribe from Search Category Click event
78
- */
79
25
  searchCategoryClick(handler: EventHandler): void;
80
- /**
81
- * Unsubscribe from Search Product Click event
82
- */
83
26
  searchProductClick(handler: EventHandler): void;
84
- /**
85
- * Unsubscribe from Search Request Sent event
86
- */
87
27
  searchRequestSent(handler: EventHandler): void;
88
- /**
89
- * Unsubscribe from Search Response Received event
90
- */
91
28
  searchResponseReceived(handler: EventHandler): void;
92
- /**
93
- * Unsubscribe from Search Results View event
94
- */
95
29
  searchResultsView(handler: EventHandler): void;
96
- /**
97
- * Unsubscribe from Search Suggestion Click event
98
- */
99
30
  searchSuggestionClick(handler: EventHandler): void;
100
- /**
101
- * Unsubscribe from Shopping Cart View event
102
- */
103
31
  shoppingCartView(handler: EventHandler): void;
104
- /**
105
- * Unsubscribe from Sign In event
106
- */
107
32
  signIn(handler: EventHandler): void;
108
- /**
109
- * Unsubscribe from Sign Out event
110
- */
111
33
  signOut(handler: EventHandler): void;
112
- /**
113
- * Unsubscribe from Update Cart event
114
- */
115
34
  updateCart(handler: EventHandler): void;
116
35
  }
@@ -1,5 +1,6 @@
1
1
  declare const contexts: {
2
2
  readonly AEP_CONTEXT: "aepContext";
3
+ readonly ACCOUNT_CONTEXT: "accountContext";
3
4
  readonly CATEGORY_CONTEXT: "categoryContext";
4
5
  readonly CUSTOM_URL_CONTEXT: "customUrlContext";
5
6
  readonly DATA_SERVICES_EXTENSION_CONTEXT: "dataServicesExtensionContext";
@@ -1,8 +1,11 @@
1
1
  declare const events: {
2
2
  readonly ADD_TO_CART: "add-to-cart";
3
+ readonly ABANDON_CART: "abandon-cart";
4
+ readonly CREATE_ACCOUNT: "create-account";
3
5
  readonly CUSTOM_URL: "custom-url";
4
6
  readonly DATA_LAYER_CHANGE: "adobeDataLayer:change";
5
7
  readonly DATA_LAYER_EVENT: "adobeDataLayer:event";
8
+ readonly EDIT_ACCOUNT: "edit-account";
6
9
  readonly INITIATE_CHECKOUT: "initiate-checkout";
7
10
  readonly INSTANT_PURCHASE: "instant-purchase";
8
11
  readonly PAGE_ACTIVITY_SUMMARY: "page-activity-summary";
@@ -1,7 +1,8 @@
1
1
  import contexts from "../contexts";
2
- import { AEP, Category, CustomUrl, DataServicesExtension, EventForwarding, MagentoExtension, Order, Page, Product, Recommendations, RecommendationsExtension, ReferrerUrl, SearchExtension, SearchInput, SearchResults, Shopper, ShoppingCart, StorefrontInstance } from "./schemas";
2
+ import { Account, AEP, Category, CustomUrl, DataServicesExtension, EventForwarding, MagentoExtension, Order, Page, Product, Recommendations, RecommendationsExtension, ReferrerUrl, SearchExtension, SearchInput, SearchResults, Shopper, ShoppingCart, StorefrontInstance } from "./schemas";
3
3
  export declare type ContextName = typeof contexts.AEP_CONTEXT | typeof contexts.CATEGORY_CONTEXT | typeof contexts.CUSTOM_URL_CONTEXT | typeof contexts.DATA_SERVICES_EXTENSION_CONTEXT | typeof contexts.EVENT_FORWARDING_CONTEXT | typeof contexts.MAGENTO_EXTENSION_CONTEXT | typeof contexts.ORDER_CONTEXT | typeof contexts.PAGE_CONTEXT | typeof contexts.PRODUCT_CONTEXT | typeof contexts.RECOMMENDATIONS_CONTEXT | typeof contexts.RECOMMENDATIONS_EXTENSION_CONTEXT | typeof contexts.REFERRER_URL_CONTEXT | typeof contexts.SEARCH_EXTENSION_CONTEXT | typeof contexts.SEARCH_INPUT_CONTEXT | typeof contexts.SEARCH_RESULTS_CONTEXT | typeof contexts.SHOPPER_CONTEXT | typeof contexts.SHOPPING_CART_CONTEXT | typeof contexts.STOREFRONT_INSTANCE_CONTEXT;
4
4
  export declare type Context = {
5
+ [contexts.ACCOUNT_CONTEXT]?: Account;
5
6
  [contexts.AEP_CONTEXT]?: AEP;
6
7
  [contexts.CATEGORY_CONTEXT]: Category;
7
8
  [contexts.CUSTOM_URL_CONTEXT]: CustomUrl;
@@ -1,6 +1,6 @@
1
1
  import { CustomContext, Context } from "./contexts";
2
2
  import events from "../events";
3
- export declare type EventName = typeof events.ADD_TO_CART | typeof events.CUSTOM_URL | typeof events.DATA_LAYER_CHANGE | typeof events.DATA_LAYER_EVENT | typeof events.INITIATE_CHECKOUT | typeof events.INSTANT_PURCHASE | typeof events.PAGE_ACTIVITY_SUMMARY | typeof events.PAGE_VIEW | typeof events.PLACE_ORDER | typeof events.PRODUCT_PAGE_VIEW | typeof events.RECS_ITEM_CLICK | typeof events.RECS_ITEM_ADD_TO_CART_CLICK | typeof events.RECS_REQUEST_SENT | typeof events.RECS_RESPONSE_RECEIVED | typeof events.RECS_UNIT_RENDER | typeof events.RECS_UNIT_VIEW | typeof events.REFERRER_URL | typeof events.REMOVE_FROM_CART | typeof events.SEARCH_CATEGORY_CLICK | typeof events.SEARCH_PRODUCT_CLICK | typeof events.SEARCH_REQUEST_SENT | typeof events.SEARCH_RESPONSE_RECEIVED | typeof events.SEARCH_RESULTS_VIEW | typeof events.SEARCH_SUGGESTION_CLICK | typeof events.SHOPPING_CART_VIEW | typeof events.SIGN_IN | typeof events.SIGN_OUT | typeof events.UPDATE_CART;
3
+ export declare type EventName = typeof events.ADD_TO_CART | typeof events.ABANDON_CART | typeof events.CREATE_ACCOUNT | typeof events.CUSTOM_URL | typeof events.DATA_LAYER_CHANGE | typeof events.DATA_LAYER_EVENT | typeof events.EDIT_ACCOUNT | typeof events.INITIATE_CHECKOUT | typeof events.INSTANT_PURCHASE | typeof events.PAGE_ACTIVITY_SUMMARY | typeof events.PAGE_VIEW | typeof events.PLACE_ORDER | typeof events.PRODUCT_PAGE_VIEW | typeof events.RECS_ITEM_CLICK | typeof events.RECS_ITEM_ADD_TO_CART_CLICK | typeof events.RECS_REQUEST_SENT | typeof events.RECS_RESPONSE_RECEIVED | typeof events.RECS_UNIT_RENDER | typeof events.RECS_UNIT_VIEW | typeof events.REFERRER_URL | typeof events.REMOVE_FROM_CART | typeof events.SEARCH_CATEGORY_CLICK | typeof events.SEARCH_PRODUCT_CLICK | typeof events.SEARCH_REQUEST_SENT | typeof events.SEARCH_RESPONSE_RECEIVED | typeof events.SEARCH_RESULTS_VIEW | typeof events.SEARCH_SUGGESTION_CLICK | typeof events.SHOPPING_CART_VIEW | typeof events.SIGN_IN | typeof events.SIGN_OUT | typeof events.UPDATE_CART;
4
4
  export declare type Event = {
5
5
  event: EventName;
6
6
  eventInfo: Context & CustomContext;
@@ -0,0 +1,12 @@
1
+ import { Address } from ".";
2
+ export declare type Account = {
3
+ firstName: string;
4
+ lastName: string;
5
+ billingAddress?: Address;
6
+ shippingAddress?: Address;
7
+ emailAddress?: string;
8
+ phoneNumber?: string;
9
+ company?: string;
10
+ userType?: string;
11
+ customerGroup?: string;
12
+ };
@@ -1,4 +1,4 @@
1
- export declare type BillingAddress = {
1
+ export declare type Address = {
2
2
  postalCode: string;
3
3
  countryCode: string;
4
4
  region?: string;
@@ -1,5 +1,6 @@
1
+ export * from "./account";
1
2
  export * from "./aep";
2
- export * from "./billingAddress";
3
+ export * from "./address";
3
4
  export * from "./category";
4
5
  export * from "./customUrl";
5
6
  export * from "./eventForwarding";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/magento-storefront-events-sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "SDK for working with events on an Adobe Commerce storefront",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",