@salla.sa/twilight-components 2.11.84 → 2.11.86

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.
Files changed (38) hide show
  1. package/dist/cjs/_commonjsHelpers-f57e29ee.js +256 -0
  2. package/dist/cjs/{app-globals-e7da6d6d.js → app-globals-bf20263f.js} +2008 -41
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/salla-button_37.cjs.entry.js +8 -4
  5. package/dist/cjs/twilight.cjs.js +2 -2
  6. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +5 -1
  7. package/dist/components/index.js +2007 -39
  8. package/dist/components/salla-localization-modal.js +5 -1
  9. package/dist/components/salla-quick-buy2.js +229 -3
  10. package/dist/esm/_commonjsHelpers-a7c4abac.js +250 -0
  11. package/dist/esm/{app-globals-03a8e704.js → app-globals-30874674.js} +2007 -40
  12. package/dist/esm/loader.js +2 -2
  13. package/dist/esm/salla-button_37.entry.js +8 -4
  14. package/dist/esm/twilight.js +2 -2
  15. package/dist/esm-es5/_commonjsHelpers-a7c4abac.js +4 -0
  16. package/dist/esm-es5/app-globals-30874674.js +30 -0
  17. package/dist/esm-es5/loader.js +1 -1
  18. package/dist/esm-es5/salla-button_37.entry.js +2 -2
  19. package/dist/esm-es5/twilight.js +1 -1
  20. package/dist/twilight/{p-a6a5e6bc.system.entry.js → p-0d221d45.system.entry.js} +9 -9
  21. package/dist/twilight/p-71b1ddca.js +24 -0
  22. package/dist/twilight/{p-2845b9fd.system.js → p-7f520307.system.js} +1 -1
  23. package/dist/twilight/p-854e2c89.system.js +30 -0
  24. package/dist/twilight/p-99ed8fff.system.js +4 -0
  25. package/dist/twilight/p-ce54db8d.js +4 -0
  26. package/dist/twilight/p-df0e0ea8.entry.js +36 -0
  27. package/dist/twilight/twilight.esm.js +1 -1
  28. package/dist/twilight/twilight.js +1 -1
  29. package/package.json +6 -6
  30. package/dist/cjs/_commonjsHelpers-691dd63b.js +0 -28
  31. package/dist/esm/_commonjsHelpers-1415ffd3.js +0 -24
  32. package/dist/esm-es5/_commonjsHelpers-1415ffd3.js +0 -4
  33. package/dist/esm-es5/app-globals-03a8e704.js +0 -24
  34. package/dist/twilight/p-104838c8.js +0 -24
  35. package/dist/twilight/p-31871b97.entry.js +0 -36
  36. package/dist/twilight/p-67b3841e.system.js +0 -24
  37. package/dist/twilight/p-9beb6b7b.system.js +0 -4
  38. package/dist/twilight/p-f84bae34.js +0 -4
@@ -6,8 +6,8 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-1d2b3370.js');
9
- const appGlobals = require('./app-globals-e7da6d6d.js');
10
- require('./_commonjsHelpers-691dd63b.js');
9
+ const appGlobals = require('./app-globals-bf20263f.js');
10
+ require('./_commonjsHelpers-f57e29ee.js');
11
11
 
12
12
  /*
13
13
  Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -7,7 +7,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-1d2b3370.js');
9
9
  const cart = require('./cart-3ecaa815.js');
10
- const _commonjsHelpers = require('./_commonjsHelpers-691dd63b.js');
10
+ const _commonjsHelpers = require('./_commonjsHelpers-f57e29ee.js');
11
11
  const camera = require('./camera-058ddeeb.js');
12
12
 
13
13
  const sallaButtonCss = "";
@@ -21623,7 +21623,11 @@ const SallaLocalizationModal = class {
21623
21623
  })
21624
21624
  .then(() => this.btn.stop())
21625
21625
  .then(() => this.close())
21626
- .then(() => url && (window.location.href = url));
21626
+ .then(() => {
21627
+ if (url) {
21628
+ window.location.href = url.replace(`/${salla.config.get('user.language_code')}/`, `/${this.language}/`);
21629
+ }
21630
+ });
21627
21631
  }
21628
21632
  render() {
21629
21633
  return (index.h("salla-modal", { isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, index.h("div", { slot: 'loading' }, index.h("div", { class: "s-localization-modal-skeleton" }, index.h("salla-skeleton", { width: '25%', height: '15px' }), index.h("div", { class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => index.h("div", { class: "s-localization-modal-skeleton-item" }, index.h("div", { class: "s-localization-modal-skeleton-item-flex" }, index.h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), index.h("salla-skeleton", { height: '10px', width: '100px' })), index.h("salla-skeleton", { height: '15px', width: '20px' })))), index.h("salla-skeleton", { width: '25%', height: '15px' }), index.h("div", { class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => index.h("div", { class: "s-localization-modal-skeleton-item" }, index.h("div", { class: "s-localization-modal-skeleton-item-flex" }, index.h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), index.h("salla-skeleton", { height: '10px', width: '100px' })), index.h("salla-skeleton", { height: '15px', width: '20px' })))), index.h("salla-skeleton", { height: '40px', width: '100%' }))), !!this.hasError ?
@@ -24618,7 +24622,7 @@ function getDefaultAdapter() {
24618
24622
  if (typeof XMLHttpRequest !== 'undefined') {
24619
24623
  // For browsers use XHR adapter
24620
24624
  adapter = xhr;
24621
- } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
24625
+ } else if (typeof _commonjsHelpers.browser$1 !== 'undefined' && Object.prototype.toString.call(_commonjsHelpers.browser$1) === '[object process]') {
24622
24626
  // For node use HTTP adapter
24623
24627
  adapter = xhr;
24624
24628
  }
@@ -26002,7 +26006,7 @@ window.SallaApplePay = {
26002
26006
  };
26003
26007
 
26004
26008
  //applePay doesn't allow iframes
26005
- if (window.ApplePaySession && undefined.self === undefined.top && ApplePaySession.canMakePayments()) {
26009
+ if (window.ApplePaySession && window.self === window.top && ApplePaySession.canMakePayments()) {
26006
26010
  SallaApplePay.init();
26007
26011
  } else {
26008
26012
  // You can hide the Apple Pay button easy with add data-show-if-apple-pay-supported to element like <div data-show-if-apple-pay-supported>
@@ -4,8 +4,8 @@
4
4
  'use strict';
5
5
 
6
6
  const index = require('./index-1d2b3370.js');
7
- const appGlobals = require('./app-globals-e7da6d6d.js');
8
- require('./_commonjsHelpers-691dd63b.js');
7
+ const appGlobals = require('./app-globals-bf20263f.js');
8
+ require('./_commonjsHelpers-f57e29ee.js');
9
9
 
10
10
  /*
11
11
  Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
@@ -103,7 +103,11 @@ export class SallaLocalizationModal {
103
103
  })
104
104
  .then(() => this.btn.stop())
105
105
  .then(() => this.close())
106
- .then(() => url && (window.location.href = url));
106
+ .then(() => {
107
+ if (url) {
108
+ window.location.href = url.replace(`/${salla.config.get('user.language_code')}/`, `/${this.language}/`);
109
+ }
110
+ });
107
111
  }
108
112
  render() {
109
113
  return (h("salla-modal", { isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" },