@lancom/shared 0.0.354 → 0.0.356

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.
@@ -4,6 +4,10 @@ export function getShopCountrySettings(shop, country) {
4
4
 
5
5
  return {
6
6
  ...shop.settings,
7
+ contacts: {
8
+ ...(shop.settings.app || {}),
9
+ ...settingsValues(countrySetting?.settings?.app)
10
+ },
7
11
  contacts: {
8
12
  ...shop.settings.contacts,
9
13
  ...settingsValues(countrySetting?.settings?.contacts)
@@ -11,23 +11,31 @@
11
11
  <div class="form-row OrderPaymentInformation__form">
12
12
  <label
13
13
  class="form-label OrderPaymentInformation__checkbox"
14
- @click="updatePaymentType(false)">
15
- <checked-icon :checked="!isDepositPayment" />
14
+ @click="updatePaymentType('card')">
15
+ <checked-icon :checked="paymentMethod === 'card'" />
16
16
  <span class="lc_regular12 lc__grey1 OrderPaymentInformation__checkbox-label">
17
17
  Credit Card
18
18
  </span>
19
19
  </label>
20
20
  <label
21
21
  class="form-label OrderPaymentInformation__checkbox"
22
- @click="updatePaymentType(true)">
23
- <checked-icon :checked="isDepositPayment" />
22
+ @click="updatePaymentType('deposit')">
23
+ <checked-icon :checked="paymentMethod === 'deposit'" />
24
24
  <span class="lc_regular12 lc__grey1 OrderPaymentInformation__checkbox-label">
25
25
  Bank Transfer
26
26
  </span>
27
27
  </label>
28
+ <label
29
+ class="form-label OrderPaymentInformation__checkbox"
30
+ @click="updatePaymentType('google')">
31
+ <checked-icon :checked="paymentMethod === 'google'" />
32
+ <span class="lc_regular12 lc__grey1 OrderPaymentInformation__checkbox-label">
33
+ Google Pay
34
+ </span>
35
+ </label>
28
36
  </div>
29
37
  <div
30
- v-if="isDepositPayment"
38
+ v-if="paymentMethod === 'deposit'"
31
39
  class="OrderPaymentInformation__direct-deposit">
32
40
  <div
33
41
  class="OrderPaymentInformation__direct-deposit-info"
@@ -60,6 +68,8 @@
60
68
  <payment-card
61
69
  v-if="orderData"
62
70
  ref="paymentCart"
71
+ :key="paymentMethod"
72
+ :google="paymentMethod === 'google'"
63
73
  :amount="cartPricing.totalPrice"
64
74
  :order="orderData"
65
75
  @inited="initedCard">
@@ -108,6 +118,7 @@ export default {
108
118
  creating: false,
109
119
  submitting: false,
110
120
  loadingCard: true,
121
+ paymentMethod: this.order.paymentMethod || ORDER_PAYMENT_METHOD.CARD,
111
122
  isDepositPayment: this.order.paymentMethod === ORDER_PAYMENT_METHOD.DEPOSIT
112
123
  };
113
124
  },
@@ -162,8 +173,9 @@ export default {
162
173
  }
163
174
  }
164
175
  },
165
- updatePaymentType(isDeposit) {
166
- this.isDepositPayment = isDeposit;
176
+ updatePaymentType(paymentMethod) {
177
+ this.isDepositPayment = paymentMethod === ORDER_PAYMENT_METHOD.DEPOSIT;
178
+ this.paymentMethod = paymentMethod;
167
179
  this.errorMessage = null;
168
180
  },
169
181
  depositInfo(info) {
@@ -13,7 +13,8 @@
13
13
  Order {{ orderData.code }}
14
14
  </div>
15
15
  <div class="OrderSuccess__card-info">
16
- Thanks for your order! You will receive an order confirmation email shortly.
16
+ Thanks for your order! Your order has been successfully processed using <b>{{ orderData.googleCharge ? 'Google Pay' : orderData.paymentMethod }} {{ cardInfo ? `(${cardInfo})` : '' }}</b>. You will receive an order confirmation email shortly.
17
+ <b></b>
17
18
  </div>
18
19
  <div>
19
20
  <btn
@@ -31,7 +32,11 @@ import { mapGetters } from 'vuex';
31
32
  export default {
32
33
  name: 'OrderSuccess',
33
34
  computed: {
34
- ...mapGetters('order', ['orderData'])
35
+ ...mapGetters('order', ['orderData']),
36
+ cardInfo() {
37
+ const { card } = this.orderData.charge?.payment_method_details || this.orderData.charge || {};
38
+ return card ? `${card.brand || card.scheme} ${card.display_number || `XXXX-XXXX-XXXX-${card.last4 || 'XXXX'}`}` : null;
39
+ }
35
40
  }
36
41
  };
37
42
  </script>
@@ -0,0 +1,73 @@
1
+ @import "@/assets/scss/ui_kit";
2
+ @import "@/assets/scss/variables";
3
+
4
+ .example {
5
+ margin: 5px;
6
+ display: flex;
7
+ flex-direction: row;
8
+ }
9
+
10
+ .example > .title {
11
+ width: 250px;
12
+ align-items: center;
13
+ display: inherit;
14
+ }
15
+
16
+ .example > .demo {
17
+ flex: 1 0 0;
18
+ }
19
+
20
+ .example > .demo > * {
21
+ margin: 1px;
22
+ }
23
+
24
+ .Payment {
25
+ &__wrapper {
26
+ .pin-form-field {
27
+ // @extend .form-field;
28
+ // @extend .labelless;
29
+ border-radius: 0px;
30
+ background-color: #F4F4F4;
31
+ }
32
+ }
33
+ &__field-container {
34
+ width: 100%;
35
+ }
36
+ &__message {
37
+ padding: 50px 140px;
38
+ }
39
+ &__content {
40
+ position: relative;
41
+ min-height: 100px;
42
+ }
43
+ &__fileds-spinner {
44
+ background-color: white;
45
+ }
46
+ &__terms {
47
+ margin-top: 20px;
48
+ }
49
+ &__label-with-checkbox {
50
+ display: flex !important;
51
+ align-items: center;
52
+ margin-bottom: 3px !important;
53
+ a {
54
+ color: $green;
55
+ }
56
+ }
57
+ }
58
+
59
+ .form-row--cols {
60
+ @media (max-width: $bp-extra-small-max) {
61
+ flex-direction: column;
62
+ }
63
+ .col-half {
64
+ @media (max-width: $bp-extra-small-max) {
65
+ flex-basis: 100%;
66
+ width: 100%;
67
+ margin-left: 0 !important;
68
+ &:nth-child(2) {
69
+ margin-top: 20px;
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,185 @@
1
+ <template>
2
+ <div class="Payment__wrapper">
3
+ <div v-if="(hasSpinner && processing) || loading">
4
+ <spinner />
5
+ </div>
6
+ <div
7
+ :style="{
8
+ opacity: loading ? 0 : 1
9
+ }">
10
+ <div
11
+ v-if="amount"
12
+ class="form-row">
13
+ <label
14
+ for="payment-amount"
15
+ class="form-label">
16
+ Amount to Pay
17
+ </label>
18
+ <input
19
+ id="payment-amount"
20
+ :value="`${amount} AUD`"
21
+ name="payment-amount"
22
+ placeholder="payment-amount"
23
+ disabled
24
+ type="text"
25
+ class="form-field labelless" />
26
+ </div>
27
+ <div class="examples">
28
+ <div>
29
+ <div class="example">
30
+ <div class="demo">
31
+ <google-pay-button
32
+ v-if="!loading"
33
+ environment="TEST"
34
+ button-type="plain"
35
+ button-color="black"
36
+ v-bind:paymentRequest.prop="{
37
+ apiVersion: 2,
38
+ apiVersionMinor: 0,
39
+ allowedPaymentMethods: [
40
+ {
41
+ type: 'CARD',
42
+ parameters: {
43
+ allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
44
+ allowedCardNetworks: ['MASTERCARD', 'VISA', 'AMEX'],
45
+ },
46
+ tokenizationSpecification: {
47
+ type: 'PAYMENT_GATEWAY',
48
+ parameters: {
49
+ gateway: 'pinpayments',
50
+ gatewayMerchantId: app.PAYMENT_GOOGLE_GATEWAY,
51
+ }
52
+ },
53
+ },
54
+ ],
55
+ merchantInfo: {
56
+ merchantId: app.PAYMENT_GOOGLE_MERCHANT_ID,
57
+ merchantName: app.PAYMENT_GOOGLE_MERCHANT_NAME,
58
+ },
59
+ transactionInfo: {
60
+ totalPriceStatus: 'FINAL',
61
+ totalPriceLabel: 'Total',
62
+ totalPrice: amountString,
63
+ currencyCode: currencyCode,
64
+ countryCode: countryCode
65
+ },
66
+ }"
67
+ @loadpaymentdata="onLoadPaymentData"
68
+ @error="onError" />
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ <slot v-if="!loading" name="controls" v-bind="{ processing }"></slot>
75
+ </div>
76
+ </template>
77
+
78
+ <script>
79
+ import { mapGetters } from 'vuex';
80
+ import '@google-pay/button-element';
81
+
82
+ let timer = null;
83
+ let googlepayStartLoaded = false;
84
+
85
+ export default {
86
+ name: 'Googlepay',
87
+ props: {
88
+ order: {
89
+ type: Object,
90
+ required: true
91
+ },
92
+ amount: {
93
+ type: Number
94
+ },
95
+ hasSpinner: {
96
+ type: Boolean,
97
+ default: true
98
+ }
99
+ },
100
+ data() {
101
+ return {
102
+ paymentData: null,
103
+ paymentError: null,
104
+ processing: false,
105
+ loading: false,
106
+ fields: null
107
+ };
108
+ },
109
+ async mounted() {
110
+ this.loading = true;
111
+ await this.loadGooglepay();
112
+ this.loading = false;
113
+ },
114
+ destroyed() {
115
+ clearInterval(timer);
116
+ },
117
+ computed: {
118
+ ...mapGetters(['country', 'currency', 'app']),
119
+ amountString() {
120
+ return `${this.amount.toFixed(2)}`;
121
+ },
122
+ currencyCode() {
123
+ return this.currency?.isoCode || 'AUSD';
124
+ },
125
+ countryCode() {
126
+ return this.country?.isoCode || 'AU';
127
+ }
128
+ },
129
+ methods: {
130
+ onLoadPaymentData(event) {
131
+ const token = JSON.parse(event.detail.paymentMethodData.tokenizationData.token);
132
+ this.paymentData = { google: true, token }
133
+ },
134
+ onError(event) {
135
+ this.paymentError = event.error;
136
+ console.log('this.paymentError: ', this.paymentError);
137
+ },
138
+ tokenize() {
139
+ this.processing = true;
140
+ return new Promise((resolve, reject) => {
141
+ if (this.paymentError || !this.paymentData) {
142
+ reject(!this.paymentData ? 'Payment Failed. Need to choose card' : 'Payment Failed')
143
+ } else {
144
+ resolve(this.paymentData);
145
+ }
146
+ this.processing = false;
147
+ });
148
+ },
149
+ async loadGooglepay() {
150
+ if (process.browser) {
151
+ await (new Promise((resolve, reject) => {
152
+ if (!googlepayStartLoaded) {
153
+ googlepayStartLoaded = true;
154
+ resolve();
155
+ googlepayStartLoaded = false;
156
+ // let domElement = document.createElement('script');
157
+ // domElement.type = "text/javascript";
158
+ // domElement.setAttribute('src', 'https://cdn.pinpayments.com/pin.hosted_fields.v1.js');
159
+ // domElement.onload = () => {
160
+ // resolve();
161
+ // };
162
+ // domElement.onerror = () => {
163
+ // setTimeout(() => this.loadPinpayments(), 1000);
164
+ // };
165
+ // document.body.appendChild(domElement);
166
+ } else {
167
+ let repeated = 0;
168
+ timer = setInterval(() => {
169
+ if (!googlepayStartLoaded || repeated++ > 40) {
170
+ clearInterval(timer);
171
+ resolve();
172
+ }
173
+ }, 500);
174
+ }
175
+ }));
176
+ }
177
+ }
178
+ }
179
+ };
180
+ </script>
181
+
182
+
183
+ <style lang="scss" scoped>
184
+ @import 'googlepay.scss';
185
+ </style>
@@ -17,6 +17,7 @@ import { mapGetters } from 'vuex';
17
17
  export default {
18
18
  name: 'PaymentCard',
19
19
  components: {
20
+ Googlepay: () => import('./googlepay/googlepay'),
20
21
  Pinpayment: () => import('./pinpayment/pinpayment'),
21
22
  Stripe: () => import('./stripe_card/stripe-card'),
22
23
  StripePayment: () => import('./stripe_payment/stripe-payment')
@@ -28,11 +29,17 @@ export default {
28
29
  },
29
30
  amount: {
30
31
  type: Number
32
+ },
33
+ google: {
34
+ type: Boolean
31
35
  }
32
36
  },
33
37
  computed: {
34
38
  ...mapGetters(['payment']),
35
39
  cardComponent() {
40
+ if (this.google) {
41
+ return 'googlepay';
42
+ }
36
43
  return this.payment?.type || 'stripe-payment';
37
44
  }
38
45
  },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="Spinner">
2
+ <div class="Spinner" :class="{ small }">
3
3
  <div class="Spinner__container">
4
4
  <div
5
5
  v-for="petal in 12"
@@ -17,16 +17,23 @@ export default {
17
17
  props: {
18
18
  background: {
19
19
  type: String
20
+ },
21
+ small: {
22
+ type: Boolean,
23
+ default: false
20
24
  }
21
25
  }
22
26
  };
23
27
  </script>
24
28
 
25
29
  <style lang="scss">
26
- $size: 26px;
30
+ $spinnerSize: 26px;
27
31
  $delay_step: 1/12;
28
32
 
29
33
  .Spinner {
34
+ &.small {
35
+ $spinnerSize: 14px !global;
36
+ }
30
37
  @keyframes lds-spinner {
31
38
  0% {
32
39
  opacity: 1;
@@ -45,22 +52,22 @@ $delay_step: 1/12;
45
52
  }
46
53
 
47
54
  &__container {
48
- width: $size;
49
- height: $size;
55
+ width: $spinnerSize;
56
+ height: $spinnerSize;
50
57
  margin: 0 auto;
51
58
  position: relative;
52
- transform: translate(-$size, -$size) scale(1) translate($size, $size);
59
+ transform: translate(-$spinnerSize, -$spinnerSize) scale(1) translate($spinnerSize, $spinnerSize);
53
60
  }
54
61
 
55
62
  &__petal{
56
- left: calc(#{($size / 16) * 7});
63
+ left: calc(#{($spinnerSize / 16) * 7});
57
64
  position: absolute;
58
65
  animation: lds-spinner linear 1s infinite;
59
66
  background: #55A8FF;
60
- width: calc(#{$size} / 8);
61
- height: calc(#{$size} / 4);
67
+ width: calc(#{$spinnerSize} / 8);
68
+ height: calc(#{$spinnerSize} / 4);
62
69
  border-radius: 40%;
63
- transform-origin: calc(#{$size} / 16) calc(#{$size} / 2);
70
+ transform-origin: calc(#{$spinnerSize} / 16) calc(#{$spinnerSize} / 2);
64
71
 
65
72
  @for $i from 1 through 12 {
66
73
  &:nth-child(#{$i}) {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="EditorProductDetails__wrapper">
3
3
  <h3 class="lc_h3 lc_black EditorProductDetails__name">
4
- {{ product.name }}
4
+ {{ fullProductName }}
5
5
  </h3>
6
6
  <div class="EditorProductDetails__header">
7
7
  <div
@@ -208,7 +208,9 @@ export default {
208
208
  'defaultSimpleProduct',
209
209
  'selectedPrintType',
210
210
  'isPrintPricing',
211
- 'printsPrice'
211
+ 'printsPrice',
212
+ 'availableSizes',
213
+ 'availableColors'
212
214
  ]),
213
215
  ...mapGetters('layers', [
214
216
  'layerThumbnails'
@@ -218,6 +220,12 @@ export default {
218
220
  'pricingSettings',
219
221
  'country'
220
222
  ]),
223
+ fullProductName() {
224
+ const name = this.product.name;
225
+ const color = this.availableColors?.find(c => c.alias === this.$route.query?.color);
226
+ const size = this.availableSizes?.find(c => c.shortName === this.$route.query?.size);
227
+ return `${name}${(color || size) ? ` | ${[color?.name, size?.shortName].filter(i => !!i).join(', ') || ''}` : ''}`;
228
+ },
221
229
  hasImages() {
222
230
  return this.modelImages.length > 0;
223
231
  },
@@ -20,6 +20,8 @@
20
20
  font-size: 14px;
21
21
  cursor: pointer;
22
22
  margin-right: 5px;
23
+ display: flex;
24
+ align-items: center;
23
25
  &--active {
24
26
  background: rgb(196, 226, 236);
25
27
  }
@@ -28,7 +28,11 @@
28
28
  'EditorWorkspaceSide__toggle-wireframe--active': visibleOnpress
29
29
  }"
30
30
  @mousedown.stop.prevent="toggleOnpressImage(true)">
31
- {{ visibleOnpress ? 'Hide On Press' : 'Show On Press' }}
31
+ <spinner
32
+ v-if="visibleOnpress && !backgroundImageLoaded"
33
+ :small="true"
34
+ style="margin-right: 10px;" />
35
+ {{ visibleOnpress ? 'Real product photo' : 'Press for real product photo' }}
32
36
  </div>
33
37
  </div>
34
38
  <div
@@ -59,6 +59,7 @@ async function googleShoppingFeed(axios, config, availableStores, country, isEdi
59
59
  .replace(/&middot;/, '·');
60
60
 
61
61
  let link = `https://${config.HOST_NAME}${generateProductLink(product, sp.color, isEditor)}`;
62
+ link = link.includes('?') ? `${link}&size=${sp.size?.shortName}` : `${link}?size=${sp.size?.shortName}`
62
63
  link = link.includes('?') ? `${link}&price=IT` : `${link}?price=IT`
63
64
  if (sp.multipackQty) {
64
65
  link = link.includes('?') ? `${link}&multipack=${sp.SKU}` : `${link}?multipack=${sp.SKU}`;
@@ -285,7 +285,7 @@
285
285
  ]
286
286
  };
287
287
 
288
- return [productsSchema, breadcrumbSchema];
288
+ return [productsSchema, breadcrumbSchema, this.$store.state.shop?.schema].filter(s => !!s);
289
289
  },
290
290
  methods: {
291
291
  ...mapActions([
package/mixins/payment.js CHANGED
@@ -38,7 +38,7 @@ export default {
38
38
  ...mapMutations('layers', ['resetLayers']),
39
39
  handleErrors(err) {
40
40
  // err.messages.forEach(({ message }) => this.$toastr.e(message));
41
- const defaultMessage = 'Payment error';
41
+ const defaultMessage = typeof err === 'string' ? err : 'Payment error';
42
42
  this.errorMessage = (err.messages ? err.messages.map(({ message }) => message).join(', ') : (err.error_description)) || err.message || defaultMessage;
43
43
  },
44
44
  async proceedPayment(card) {
@@ -4,7 +4,7 @@ import { fitLayerToEditorSize } from '@lancom/shared/assets/js/utils/layers';
4
4
  import { getPrintAreaByName } from '@lancom/shared/assets/js/models/print-area';
5
5
  import { getLayerModel } from '@lancom/shared/assets/js/models/product-layers';
6
6
  import { tax, staticLink, inRange } from '@lancom/shared/assets/js/utils/filters';
7
- import { getProductLargeCover } from '@lancom/shared/assets/js/utils/colors';
7
+ import { getProductLargeCover, isValidImageTypes } from '@lancom/shared/assets/js/utils/colors';
8
8
  import metaInfo from '@lancom/shared/mixins/meta-info';
9
9
  import { STORE_CODES } from '@/constants/store';
10
10
  import { generateProductLink, generateProductsLink } from '@lancom/shared/assets/js/utils/product';
@@ -255,19 +255,20 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
255
255
  brandAdditionalProductsRichSnippet = JSON.parse(this.product.brand.additionalProductsRichSnippet);
256
256
  } catch (e) {}
257
257
 
258
+ const description = (this.product.gsFeedDescription || this.product.description || '').replace(/<[^>]*>/g, '');
258
259
  const productSchema = {
259
260
  '@context': 'https://schema.org',
260
- '@type': 'Product',
261
- description: (this.product.gsFeedDescription || this.product.description || '').replace(/<[^>]*>/g, ''),
261
+ '@type': 'ProductGroup',
262
+ description: description,
262
263
  name,
263
- offers: this.productDetails?.simpleProducts.map(sp => {
264
+ hasVariant: this.productDetails?.simpleProducts.map(sp => {
264
265
  const spMaxPrice = (sp.pricing || []).reduce((price, pricing) => Math.max(price, pricing.price), 0);
265
266
  const maxPrice = this.printsPrice ? spMaxPrice + this.printsPrice : spMaxPrice;
266
267
  const availability = sp.quantityStock > 0 ? 'InStock' : 'OutOfStock';
267
268
 
268
269
  const offer = {
269
270
  '@type': 'Offer',
270
- name: `${sp.size?.name || ''} / ${sp.color?.name || ''}`,
271
+ name: `${sp.size?.shortName || ''} / ${sp.color?.name || ''}`,
271
272
  url,
272
273
  availability: `https://schema.org/${availability}`,
273
274
  price: +tax(maxPrice, this.gstTax).toFixed(2),
@@ -295,7 +296,22 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
295
296
  };
296
297
  }
297
298
 
298
- return offer;
299
+ const galleryImages = this.product.images?.filter(i => !(i.types || []).includes('designer') && i.color === sp.color?._id) || [];
300
+ const image = getProductLargeCover(this.product, 'front', sp.color);
301
+ return {
302
+ "@type": "Product",
303
+ "sku": sp.SKU,
304
+ "gtin13": sp.gtin,
305
+ "image": [
306
+ image,
307
+ ...galleryImages.map(i => i.large).filter(i => !!i && i !== image)
308
+ ],
309
+ "name": `${this.product.name} | ${sp.size?.shortName || ''} ${sp.color?.name || ''}`,
310
+ "description": description,
311
+ "color": sp.color?.name,
312
+ "size": sp.size?.shortName,
313
+ "offers": offer
314
+ };
299
315
  })
300
316
  };
301
317
 
@@ -308,7 +324,7 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
308
324
  }
309
325
 
310
326
  if (SKU) {
311
- productSchema.sku = SKU;
327
+ productSchema.productGroupID = SKU;
312
328
  // schema.gtin = SKU;
313
329
  }
314
330
 
@@ -384,7 +400,9 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
384
400
  return [
385
401
  productSchema,
386
402
  breadcrumbSchema,
387
- mainEntity.length > 0 ? faqSchema : null
403
+ mainEntity.length > 0 ? faqSchema : null,
404
+ this.$store.state.shop?.shippingPolicySchema,
405
+ this.$store.state.shop?.returnPolicySchema
388
406
  ].filter(s => !!s);
389
407
  }
390
408
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.354",
3
+ "version": "0.0.356",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
package/store/index.js CHANGED
@@ -13,6 +13,7 @@ export const state = () => ({
13
13
  payment: null,
14
14
  shop: {},
15
15
  menus: [],
16
+ app: {},
16
17
  contacts: {},
17
18
  orderInfo: {},
18
19
  pricing: {},
@@ -23,6 +24,7 @@ export const state = () => ({
23
24
  });
24
25
 
25
26
  export const getters = {
27
+ app: ({ app }) => app,
26
28
  stockCountry: ({ stockCountry }) => stockCountry,
27
29
  country: ({ country }) => country,
28
30
  countries: ({ shop }) => (shop.countries || []).map(({ country }) => country).filter(c => !!c),
@@ -147,7 +149,8 @@ export const mutations = {
147
149
  setCurrency(state, currency) {
148
150
  state.currency = currency;
149
151
  },
150
- setSettings(state, { contacts, notificationBar, discountPopup, order, depositInfo, pricing }) {
152
+ setSettings(state, { contacts, notificationBar, discountPopup, order, depositInfo, pricing, app }) {
153
+ state.app = app;
151
154
  state.contacts = contacts;
152
155
  state.orderInfo = order;
153
156
  state.notificationBar = notificationBar;