@salla.sa/twilight-components 1.4.6 → 1.4.7

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.
@@ -1555,7 +1555,6 @@ const SallaScopees = class {
1555
1555
  salla.event.on('scopes::open', ({ mode = null, product_id = null }) => {
1556
1556
  if (!!mode)
1557
1557
  this.mode = mode;
1558
- this.isDefault = !mode || mode == ModeType.DEFAULT;
1559
1558
  this.open(mode, product_id);
1560
1559
  });
1561
1560
  this.branchNotFound = salla.lang.get("blocks.scope.branch_looking_for_not_found");
@@ -1571,6 +1570,7 @@ const SallaScopees = class {
1571
1570
  return await ((_a = this.modal) === null || _a === void 0 ? void 0 : _a.close());
1572
1571
  }
1573
1572
  async open(mode = ModeType.DEFAULT, product_id = null) {
1573
+ this.isDefault = !mode || mode == ModeType.DEFAULT;
1574
1574
  this.modal.open();
1575
1575
  return await (mode == ModeType.AVAILABILITY ? salla.scope.getProductAvailability(product_id) : salla.scope.get())
1576
1576
  .then((resp) => {
@@ -31,7 +31,6 @@ export class SallaScopees {
31
31
  salla.event.on('scopes::open', ({ mode = null, product_id = null }) => {
32
32
  if (!!mode)
33
33
  this.mode = mode;
34
- this.isDefault = !mode || mode == ModeType.DEFAULT;
35
34
  this.open(mode, product_id);
36
35
  });
37
36
  this.branchNotFound = salla.lang.get("blocks.scope.branch_looking_for_not_found");
@@ -47,6 +46,7 @@ export class SallaScopees {
47
46
  return await ((_a = this.modal) === null || _a === void 0 ? void 0 : _a.close());
48
47
  }
49
48
  async open(mode = ModeType.DEFAULT, product_id = null) {
49
+ this.isDefault = !mode || mode == ModeType.DEFAULT;
50
50
  this.modal.open();
51
51
  return await (mode == ModeType.AVAILABILITY ? salla.scope.getProductAvailability(product_id) : salla.scope.get())
52
52
  .then((resp) => {
@@ -58,7 +58,6 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
58
58
  salla.event.on('scopes::open', ({ mode = null, product_id = null }) => {
59
59
  if (!!mode)
60
60
  this.mode = mode;
61
- this.isDefault = !mode || mode == ModeType.DEFAULT;
62
61
  this.open(mode, product_id);
63
62
  });
64
63
  this.branchNotFound = salla.lang.get("blocks.scope.branch_looking_for_not_found");
@@ -74,6 +73,7 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
74
73
  return await ((_a = this.modal) === null || _a === void 0 ? void 0 : _a.close());
75
74
  }
76
75
  async open(mode = ModeType.DEFAULT, product_id = null) {
76
+ this.isDefault = !mode || mode == ModeType.DEFAULT;
77
77
  this.modal.open();
78
78
  return await (mode == ModeType.AVAILABILITY ? salla.scope.getProductAvailability(product_id) : salla.scope.get())
79
79
  .then((resp) => {
@@ -1551,7 +1551,6 @@ const SallaScopees = class {
1551
1551
  salla.event.on('scopes::open', ({ mode = null, product_id = null }) => {
1552
1552
  if (!!mode)
1553
1553
  this.mode = mode;
1554
- this.isDefault = !mode || mode == ModeType.DEFAULT;
1555
1554
  this.open(mode, product_id);
1556
1555
  });
1557
1556
  this.branchNotFound = salla.lang.get("blocks.scope.branch_looking_for_not_found");
@@ -1567,6 +1566,7 @@ const SallaScopees = class {
1567
1566
  return await ((_a = this.modal) === null || _a === void 0 ? void 0 : _a.close());
1568
1567
  }
1569
1568
  async open(mode = ModeType.DEFAULT, product_id = null) {
1569
+ this.isDefault = !mode || mode == ModeType.DEFAULT;
1570
1570
  this.modal.open();
1571
1571
  return await (mode == ModeType.AVAILABILITY ? salla.scope.getProductAvailability(product_id) : salla.scope.get())
1572
1572
  .then((resp) => {