@jetshop/core 5.13.2 → 5.13.3-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/ChannelHandler/ChannelHandler.d.ts +2 -0
  2. package/ChannelHandler/ChannelHandler.js +9 -3
  3. package/ChannelHandler/ChannelHandler.js.map +1 -1
  4. package/ChannelHandler/PreserveRedirectRouteQuery.gql +1 -1
  5. package/ChannelHandler/channelUtils.d.ts +4 -0
  6. package/ChannelHandler/channelUtils.js +113 -7
  7. package/ChannelHandler/channelUtils.js.map +1 -1
  8. package/ChannelHandler/redirectUtils.test.js +24 -48
  9. package/ChannelHandler/redirectUtilsGroupedChannels.test.js +732 -0
  10. package/analytics/Analytics.js +1 -1
  11. package/analytics/Analytics.js.map +1 -1
  12. package/analytics/AnalyticsProvider.js +1 -1
  13. package/analytics/AnalyticsProvider.js.map +1 -1
  14. package/analytics/integrations/ga4.js +61 -62
  15. package/analytics/integrations/ga4.js.map +1 -1
  16. package/analytics/integrations/unslugify.js +0 -2
  17. package/analytics/integrations/unslugify.js.map +1 -1
  18. package/components/AuthContext/AuthProvider.js +2 -2
  19. package/components/AuthContext/AuthProvider.js.map +1 -1
  20. package/components/AuthContext/AuthProvider.test.js +2 -2
  21. package/components/ChannelContext/ChannelContext.d.ts +1 -0
  22. package/components/ChannelContext/ChannelContext.js.map +1 -1
  23. package/components/ChannelContext/ChannelProvider.js +4 -2
  24. package/components/ChannelContext/ChannelProvider.js.map +1 -1
  25. package/components/ChannelContext/useCountrySettings.js +2 -2
  26. package/components/ChannelContext/useCountrySettings.js.map +1 -1
  27. package/components/ConfigProvider.d.ts +0 -1
  28. package/components/ConfigProvider.js.map +1 -1
  29. package/components/Head.js +9 -4
  30. package/components/Head.js.map +1 -1
  31. package/components/OpenGraph/OpenGraph.test.js +2 -2
  32. package/components/OpenGraph/OpenGraphGeneralPageData.js +6 -6
  33. package/components/OpenGraph/OpenGraphGeneralPageData.js.map +1 -1
  34. package/components/OpenGraph/OpenGraphProductData.js +1 -1
  35. package/components/OpenGraph/OpenGraphProductData.js.map +1 -1
  36. package/components/Pagination/PaginationProvider.test.js +29 -29
  37. package/components/SortOrder/SortOrderContainer.js +1 -1
  38. package/components/SortOrder/SortOrderContainer.js.map +1 -1
  39. package/data/fragments/ChannelsFragment.gql +1 -0
  40. package/experiments/ExperimentsProvider.test.js +12 -12
  41. package/experiments/integration.test.js +6 -6
  42. package/experiments/useExperiment.test.js +10 -10
  43. package/hooks/Channels/useChannelSettings.js +1 -1
  44. package/hooks/Channels/useChannelSettings.js.map +1 -1
  45. package/hooks/Channels/useChannelSettings.test.js +1 -1
  46. package/hooks/usePrice.test.js +2 -2
  47. package/hooks/useShopConfig.d.ts +1 -1
  48. package/hooks/useShopConfig.js +1 -1
  49. package/hooks/useShopConfig.js.map +1 -1
  50. package/package.json +2 -2
  51. package/test-utils/ProviderPyramid.js +4 -4
  52. package/test-utils/variables.js +1234 -0
@@ -1228,4 +1228,1238 @@ export const singleDomainChannels = [
1228
1228
  }
1229
1229
  ];
1230
1230
 
1231
+ export const groupedChannels = [
1232
+ {
1233
+ id: 1,
1234
+ name: 'INT',
1235
+ isDefault: true,
1236
+ displayName: 'International',
1237
+ groupName: 'Brand-1',
1238
+ url: 'https://flight.jetshop.se',
1239
+ countries: [
1240
+ {
1241
+ name: 'Iceland',
1242
+ code: 'IS',
1243
+ isDefault: false
1244
+ },
1245
+ {
1246
+ name: 'United Arab Emirates',
1247
+ code: 'AE',
1248
+ isDefault: false
1249
+ },
1250
+ {
1251
+ name: 'Argentina',
1252
+ code: 'AR',
1253
+ isDefault: false
1254
+ },
1255
+ {
1256
+ name: 'Brunei',
1257
+ code: 'BN',
1258
+ isDefault: false
1259
+ },
1260
+ {
1261
+ name: 'Brazil',
1262
+ code: 'BR',
1263
+ isDefault: false
1264
+ },
1265
+ {
1266
+ name: 'Canada',
1267
+ code: 'CA',
1268
+ isDefault: false
1269
+ },
1270
+ {
1271
+ name: 'China',
1272
+ code: 'CN',
1273
+ isDefault: false
1274
+ },
1275
+ {
1276
+ name: 'Faeroe Islands',
1277
+ code: 'FO',
1278
+ isDefault: false
1279
+ },
1280
+ {
1281
+ name: 'Martinique',
1282
+ code: 'MQ',
1283
+ isDefault: false
1284
+ },
1285
+ {
1286
+ name: 'Mexico',
1287
+ code: 'MX',
1288
+ isDefault: false
1289
+ },
1290
+ {
1291
+ name: 'Malaysia',
1292
+ code: 'MY',
1293
+ isDefault: false
1294
+ },
1295
+ {
1296
+ name: 'French Polynesia',
1297
+ code: 'PF',
1298
+ isDefault: false
1299
+ },
1300
+ {
1301
+ name: 'Russia',
1302
+ code: 'RU',
1303
+ isDefault: false
1304
+ },
1305
+ {
1306
+ name: 'Singapore',
1307
+ code: 'SG',
1308
+ isDefault: false
1309
+ },
1310
+ {
1311
+ name: 'El Salvador',
1312
+ code: 'SV',
1313
+ isDefault: false
1314
+ },
1315
+ {
1316
+ name: 'Thailand',
1317
+ code: 'TH',
1318
+ isDefault: false
1319
+ },
1320
+ {
1321
+ name: 'Turkey',
1322
+ code: 'TR',
1323
+ isDefault: false
1324
+ },
1325
+ {
1326
+ name: 'Taiwan',
1327
+ code: 'TW',
1328
+ isDefault: false
1329
+ },
1330
+ {
1331
+ name: 'Ukraina',
1332
+ code: 'UA',
1333
+ isDefault: false
1334
+ },
1335
+ {
1336
+ name: 'United States',
1337
+ code: 'US',
1338
+ isDefault: true
1339
+ },
1340
+ {
1341
+ name: 'South Africa',
1342
+ code: 'ZA',
1343
+ isDefault: false
1344
+ },
1345
+ {
1346
+ name: 'Hong Kong',
1347
+ code: 'HK',
1348
+ isDefault: false
1349
+ },
1350
+ {
1351
+ name: 'India',
1352
+ code: 'IN',
1353
+ isDefault: false
1354
+ },
1355
+ {
1356
+ name: 'Indonesia',
1357
+ code: 'ID',
1358
+ isDefault: false
1359
+ },
1360
+ {
1361
+ name: 'Israel',
1362
+ code: 'IL',
1363
+ isDefault: false
1364
+ },
1365
+ {
1366
+ name: 'Japan',
1367
+ code: 'JP',
1368
+ isDefault: false
1369
+ },
1370
+ {
1371
+ name: 'Kenya',
1372
+ code: 'KE',
1373
+ isDefault: false
1374
+ },
1375
+ {
1376
+ name: 'South Korea',
1377
+ code: 'KR',
1378
+ isDefault: false
1379
+ },
1380
+ {
1381
+ name: 'Saint Barthélemy',
1382
+ code: 'BL',
1383
+ isDefault: false
1384
+ }
1385
+ ],
1386
+ languages: [
1387
+ {
1388
+ culture: 'en-GB',
1389
+ name: 'Engelska',
1390
+ isDefault: true
1391
+ }
1392
+ ],
1393
+ currencies: [
1394
+ {
1395
+ name: 'USD',
1396
+ format: {
1397
+ decimals: 2
1398
+ }
1399
+ }
1400
+ ],
1401
+ defaultCurrency: {
1402
+ name: 'USD',
1403
+ format: {
1404
+ decimals: 2
1405
+ }
1406
+ },
1407
+ defaultLanguage: {
1408
+ culture: 'en-GB',
1409
+ name: 'Engelska',
1410
+ isDefault: true
1411
+ },
1412
+ settings: {
1413
+ tracking: {
1414
+ ga: {
1415
+ trackingId: ''
1416
+ },
1417
+ gtm: {
1418
+ containerId: ''
1419
+ }
1420
+ },
1421
+ countrySettings: [
1422
+ {
1423
+ countryCode: 'IS',
1424
+ paymentTypes: [],
1425
+ shipping: {
1426
+ freeShippingLimit: {
1427
+ exVat: 320,
1428
+ incVat: 400
1429
+ }
1430
+ }
1431
+ },
1432
+ {
1433
+ countryCode: 'AE',
1434
+ paymentTypes: [],
1435
+ shipping: {
1436
+ freeShippingLimit: {
1437
+ exVat: 160,
1438
+ incVat: 200
1439
+ }
1440
+ }
1441
+ },
1442
+ {
1443
+ countryCode: 'AR',
1444
+ paymentTypes: [],
1445
+ shipping: {
1446
+ freeShippingLimit: {
1447
+ exVat: 160,
1448
+ incVat: 200
1449
+ }
1450
+ }
1451
+ },
1452
+ {
1453
+ countryCode: 'BN',
1454
+ paymentTypes: [],
1455
+ shipping: {
1456
+ freeShippingLimit: {
1457
+ exVat: 160,
1458
+ incVat: 200
1459
+ }
1460
+ }
1461
+ },
1462
+ {
1463
+ countryCode: 'BR',
1464
+ paymentTypes: [],
1465
+ shipping: {
1466
+ freeShippingLimit: {
1467
+ exVat: 160,
1468
+ incVat: 200
1469
+ }
1470
+ }
1471
+ },
1472
+ {
1473
+ countryCode: 'CA',
1474
+ paymentTypes: [],
1475
+ shipping: {
1476
+ freeShippingLimit: {
1477
+ exVat: 200,
1478
+ incVat: 200
1479
+ }
1480
+ }
1481
+ },
1482
+ {
1483
+ countryCode: 'CN',
1484
+ paymentTypes: [],
1485
+ shipping: {
1486
+ freeShippingLimit: null
1487
+ }
1488
+ },
1489
+ {
1490
+ countryCode: 'FO',
1491
+ paymentTypes: [],
1492
+ shipping: {
1493
+ freeShippingLimit: {
1494
+ exVat: 160,
1495
+ incVat: 200
1496
+ }
1497
+ }
1498
+ },
1499
+ {
1500
+ countryCode: 'MQ',
1501
+ paymentTypes: [],
1502
+ shipping: {
1503
+ freeShippingLimit: {
1504
+ exVat: 160,
1505
+ incVat: 200
1506
+ }
1507
+ }
1508
+ },
1509
+ {
1510
+ countryCode: 'MX',
1511
+ paymentTypes: [],
1512
+ shipping: {
1513
+ freeShippingLimit: {
1514
+ exVat: 160,
1515
+ incVat: 200
1516
+ }
1517
+ }
1518
+ },
1519
+ {
1520
+ countryCode: 'MY',
1521
+ paymentTypes: [],
1522
+ shipping: {
1523
+ freeShippingLimit: {
1524
+ exVat: 160,
1525
+ incVat: 200
1526
+ }
1527
+ }
1528
+ },
1529
+ {
1530
+ countryCode: 'PF',
1531
+ paymentTypes: [],
1532
+ shipping: {
1533
+ freeShippingLimit: {
1534
+ exVat: 160,
1535
+ incVat: 200
1536
+ }
1537
+ }
1538
+ },
1539
+ {
1540
+ countryCode: 'RU',
1541
+ paymentTypes: [],
1542
+ shipping: {
1543
+ freeShippingLimit: {
1544
+ exVat: 160,
1545
+ incVat: 200
1546
+ }
1547
+ }
1548
+ },
1549
+ {
1550
+ countryCode: 'SG',
1551
+ paymentTypes: [],
1552
+ shipping: {
1553
+ freeShippingLimit: {
1554
+ exVat: 160,
1555
+ incVat: 200
1556
+ }
1557
+ }
1558
+ },
1559
+ {
1560
+ countryCode: 'SV',
1561
+ paymentTypes: [],
1562
+ shipping: {
1563
+ freeShippingLimit: {
1564
+ exVat: 160,
1565
+ incVat: 200
1566
+ }
1567
+ }
1568
+ },
1569
+ {
1570
+ countryCode: 'TH',
1571
+ paymentTypes: [],
1572
+ shipping: {
1573
+ freeShippingLimit: {
1574
+ exVat: 160,
1575
+ incVat: 200
1576
+ }
1577
+ }
1578
+ },
1579
+ {
1580
+ countryCode: 'TR',
1581
+ paymentTypes: [],
1582
+ shipping: {
1583
+ freeShippingLimit: {
1584
+ exVat: 160,
1585
+ incVat: 200
1586
+ }
1587
+ }
1588
+ },
1589
+ {
1590
+ countryCode: 'TW',
1591
+ paymentTypes: [],
1592
+ shipping: {
1593
+ freeShippingLimit: {
1594
+ exVat: 160,
1595
+ incVat: 200
1596
+ }
1597
+ }
1598
+ },
1599
+ {
1600
+ countryCode: 'UA',
1601
+ paymentTypes: [],
1602
+ shipping: {
1603
+ freeShippingLimit: {
1604
+ exVat: 160,
1605
+ incVat: 200
1606
+ }
1607
+ }
1608
+ },
1609
+ {
1610
+ countryCode: 'US',
1611
+ paymentTypes: [],
1612
+ shipping: {
1613
+ freeShippingLimit: {
1614
+ exVat: 200,
1615
+ incVat: 200
1616
+ }
1617
+ }
1618
+ },
1619
+ {
1620
+ countryCode: 'ZA',
1621
+ paymentTypes: [],
1622
+ shipping: {
1623
+ freeShippingLimit: {
1624
+ exVat: 160,
1625
+ incVat: 200
1626
+ }
1627
+ }
1628
+ },
1629
+ {
1630
+ countryCode: 'HK',
1631
+ paymentTypes: [],
1632
+ shipping: {
1633
+ freeShippingLimit: {
1634
+ exVat: 160,
1635
+ incVat: 200
1636
+ }
1637
+ }
1638
+ },
1639
+ {
1640
+ countryCode: 'IN',
1641
+ paymentTypes: [],
1642
+ shipping: {
1643
+ freeShippingLimit: {
1644
+ exVat: 320,
1645
+ incVat: 400
1646
+ }
1647
+ }
1648
+ },
1649
+ {
1650
+ countryCode: 'ID',
1651
+ paymentTypes: [],
1652
+ shipping: {
1653
+ freeShippingLimit: {
1654
+ exVat: 160,
1655
+ incVat: 200
1656
+ }
1657
+ }
1658
+ },
1659
+ {
1660
+ countryCode: 'IL',
1661
+ paymentTypes: [],
1662
+ shipping: {
1663
+ freeShippingLimit: {
1664
+ exVat: 160,
1665
+ incVat: 200
1666
+ }
1667
+ }
1668
+ },
1669
+ {
1670
+ countryCode: 'JP',
1671
+ paymentTypes: [],
1672
+ shipping: {
1673
+ freeShippingLimit: {
1674
+ exVat: 160,
1675
+ incVat: 200
1676
+ }
1677
+ }
1678
+ },
1679
+ {
1680
+ countryCode: 'KE',
1681
+ paymentTypes: [],
1682
+ shipping: {
1683
+ freeShippingLimit: {
1684
+ exVat: 160,
1685
+ incVat: 200
1686
+ }
1687
+ }
1688
+ },
1689
+ {
1690
+ countryCode: 'KR',
1691
+ paymentTypes: [],
1692
+ shipping: {
1693
+ freeShippingLimit: {
1694
+ exVat: 160,
1695
+ incVat: 200
1696
+ }
1697
+ }
1698
+ },
1699
+ {
1700
+ countryCode: 'BL',
1701
+ paymentTypes: [],
1702
+ shipping: {
1703
+ freeShippingLimit: {
1704
+ exVat: 160,
1705
+ incVat: 200
1706
+ }
1707
+ }
1708
+ }
1709
+ ],
1710
+ pricesIncVat: true
1711
+ }
1712
+ },
1713
+ {
1714
+ id: 4,
1715
+ name: 'SE',
1716
+ isDefault: false,
1717
+ displayName: null,
1718
+ groupName: 'Brand-1',
1719
+ url: 'https://flight-m2.jetshop.se',
1720
+ countries: [
1721
+ {
1722
+ name: 'Sweden',
1723
+ code: 'SE',
1724
+ isDefault: true
1725
+ }
1726
+ ],
1727
+ languages: [
1728
+ {
1729
+ culture: 'sv-SE',
1730
+ name: 'Svenska',
1731
+ isDefault: true
1732
+ },
1733
+ {
1734
+ culture: 'en-GB',
1735
+ name: 'English',
1736
+ isDefault: false
1737
+ }
1738
+ ],
1739
+ currencies: [
1740
+ {
1741
+ name: 'SEK',
1742
+ format: {
1743
+ decimals: 2
1744
+ }
1745
+ }
1746
+ ],
1747
+ defaultCurrency: {
1748
+ name: 'SEK',
1749
+ format: {
1750
+ decimals: 2
1751
+ }
1752
+ },
1753
+ defaultLanguage: {
1754
+ culture: 'sv-SE',
1755
+ name: 'Svenska',
1756
+ isDefault: true
1757
+ },
1758
+ settings: {
1759
+ tracking: {
1760
+ ga: {
1761
+ trackingId: ''
1762
+ },
1763
+ gtm: {
1764
+ containerId: ''
1765
+ }
1766
+ },
1767
+ countrySettings: [
1768
+ {
1769
+ countryCode: 'SE',
1770
+ paymentTypes: [],
1771
+ shipping: {
1772
+ freeShippingLimit: {
1773
+ exVat: 600,
1774
+ incVat: 600
1775
+ }
1776
+ }
1777
+ }
1778
+ ],
1779
+ pricesIncVat: true
1780
+ }
1781
+ },
1782
+ {
1783
+ id: 5,
1784
+ name: 'UK',
1785
+ isDefault: false,
1786
+ displayName: null,
1787
+ groupName: 'Brand-2',
1788
+ url: 'https://flight-m2.jetshop.uk',
1789
+ countries: [
1790
+ {
1791
+ name: 'Sweden',
1792
+ code: 'SE',
1793
+ isDefault: true
1794
+ }
1795
+ ],
1796
+ languages: [
1797
+ {
1798
+ culture: 'sv-SE',
1799
+ name: 'Svenska',
1800
+ isDefault: true
1801
+ }
1802
+ ],
1803
+ currencies: [
1804
+ {
1805
+ name: 'SEK',
1806
+ format: {
1807
+ decimals: 2
1808
+ }
1809
+ }
1810
+ ],
1811
+ defaultCurrency: {
1812
+ name: 'SEK',
1813
+ format: {
1814
+ decimals: 2
1815
+ }
1816
+ },
1817
+ defaultLanguage: {
1818
+ culture: 'sv-SE',
1819
+ name: 'Svenska',
1820
+ isDefault: true
1821
+ },
1822
+ settings: {
1823
+ tracking: {
1824
+ ga: {
1825
+ trackingId: ''
1826
+ },
1827
+ gtm: {
1828
+ containerId: ''
1829
+ }
1830
+ },
1831
+ countrySettings: [
1832
+ {
1833
+ countryCode: 'SE',
1834
+ paymentTypes: [],
1835
+ shipping: {
1836
+ freeShippingLimit: {
1837
+ exVat: 600,
1838
+ incVat: 600
1839
+ }
1840
+ }
1841
+ }
1842
+ ],
1843
+ pricesIncVat: true
1844
+ }
1845
+ }
1846
+ ];
1847
+
1848
+ export const groupedSingleDomainChannels = [
1849
+ {
1850
+ id: 1,
1851
+ name: 'INT',
1852
+ isDefault: true,
1853
+ displayName: 'International',
1854
+ groupName: 'Brand-1',
1855
+ url: 'https://flight-m2.jetshop.se/int',
1856
+ countries: [
1857
+ {
1858
+ name: 'Iceland',
1859
+ code: 'IS',
1860
+ isDefault: false
1861
+ },
1862
+ {
1863
+ name: 'United Arab Emirates',
1864
+ code: 'AE',
1865
+ isDefault: false
1866
+ },
1867
+ {
1868
+ name: 'Argentina',
1869
+ code: 'AR',
1870
+ isDefault: false
1871
+ },
1872
+ {
1873
+ name: 'Brunei',
1874
+ code: 'BN',
1875
+ isDefault: false
1876
+ },
1877
+ {
1878
+ name: 'Brazil',
1879
+ code: 'BR',
1880
+ isDefault: false
1881
+ },
1882
+ {
1883
+ name: 'Canada',
1884
+ code: 'CA',
1885
+ isDefault: false
1886
+ },
1887
+ {
1888
+ name: 'China',
1889
+ code: 'CN',
1890
+ isDefault: false
1891
+ },
1892
+ {
1893
+ name: 'Faeroe Islands',
1894
+ code: 'FO',
1895
+ isDefault: false
1896
+ },
1897
+ {
1898
+ name: 'Martinique',
1899
+ code: 'MQ',
1900
+ isDefault: false
1901
+ },
1902
+ {
1903
+ name: 'Mexico',
1904
+ code: 'MX',
1905
+ isDefault: false
1906
+ },
1907
+ {
1908
+ name: 'Malaysia',
1909
+ code: 'MY',
1910
+ isDefault: false
1911
+ },
1912
+ {
1913
+ name: 'French Polynesia',
1914
+ code: 'PF',
1915
+ isDefault: false
1916
+ },
1917
+ {
1918
+ name: 'Russia',
1919
+ code: 'RU',
1920
+ isDefault: false
1921
+ },
1922
+ {
1923
+ name: 'Singapore',
1924
+ code: 'SG',
1925
+ isDefault: false
1926
+ },
1927
+ {
1928
+ name: 'El Salvador',
1929
+ code: 'SV',
1930
+ isDefault: false
1931
+ },
1932
+ {
1933
+ name: 'Thailand',
1934
+ code: 'TH',
1935
+ isDefault: false
1936
+ },
1937
+ {
1938
+ name: 'Turkey',
1939
+ code: 'TR',
1940
+ isDefault: false
1941
+ },
1942
+ {
1943
+ name: 'Taiwan',
1944
+ code: 'TW',
1945
+ isDefault: false
1946
+ },
1947
+ {
1948
+ name: 'Ukraina',
1949
+ code: 'UA',
1950
+ isDefault: false
1951
+ },
1952
+ {
1953
+ name: 'United States',
1954
+ code: 'US',
1955
+ isDefault: true
1956
+ },
1957
+ {
1958
+ name: 'South Africa',
1959
+ code: 'ZA',
1960
+ isDefault: false
1961
+ },
1962
+ {
1963
+ name: 'Hong Kong',
1964
+ code: 'HK',
1965
+ isDefault: false
1966
+ },
1967
+ {
1968
+ name: 'India',
1969
+ code: 'IN',
1970
+ isDefault: false
1971
+ },
1972
+ {
1973
+ name: 'Indonesia',
1974
+ code: 'ID',
1975
+ isDefault: false
1976
+ },
1977
+ {
1978
+ name: 'Israel',
1979
+ code: 'IL',
1980
+ isDefault: false
1981
+ },
1982
+ {
1983
+ name: 'Japan',
1984
+ code: 'JP',
1985
+ isDefault: false
1986
+ },
1987
+ {
1988
+ name: 'Kenya',
1989
+ code: 'KE',
1990
+ isDefault: false
1991
+ },
1992
+ {
1993
+ name: 'South Korea',
1994
+ code: 'KR',
1995
+ isDefault: false
1996
+ },
1997
+ {
1998
+ name: 'Saint Barthélemy',
1999
+ code: 'BL',
2000
+ isDefault: false
2001
+ }
2002
+ ],
2003
+ languages: [
2004
+ {
2005
+ culture: 'en-GB',
2006
+ name: 'Engelska',
2007
+ isDefault: true
2008
+ }
2009
+ ],
2010
+ currencies: [
2011
+ {
2012
+ name: 'USD',
2013
+ format: {
2014
+ decimals: 2
2015
+ }
2016
+ }
2017
+ ],
2018
+ defaultCurrency: {
2019
+ name: 'USD',
2020
+ format: {
2021
+ decimals: 2
2022
+ }
2023
+ },
2024
+ defaultLanguage: {
2025
+ culture: 'en-GB',
2026
+ name: 'Engelska',
2027
+ isDefault: true
2028
+ },
2029
+ settings: {
2030
+ tracking: {
2031
+ ga: {
2032
+ trackingId: ''
2033
+ },
2034
+ gtm: {
2035
+ containerId: ''
2036
+ }
2037
+ },
2038
+ countrySettings: [
2039
+ {
2040
+ countryCode: 'IS',
2041
+ paymentTypes: [],
2042
+ shipping: {
2043
+ freeShippingLimit: {
2044
+ exVat: 320,
2045
+ incVat: 400
2046
+ }
2047
+ }
2048
+ },
2049
+ {
2050
+ countryCode: 'AE',
2051
+ paymentTypes: [],
2052
+ shipping: {
2053
+ freeShippingLimit: {
2054
+ exVat: 160,
2055
+ incVat: 200
2056
+ }
2057
+ }
2058
+ },
2059
+ {
2060
+ countryCode: 'AR',
2061
+ paymentTypes: [],
2062
+ shipping: {
2063
+ freeShippingLimit: {
2064
+ exVat: 160,
2065
+ incVat: 200
2066
+ }
2067
+ }
2068
+ },
2069
+ {
2070
+ countryCode: 'BN',
2071
+ paymentTypes: [],
2072
+ shipping: {
2073
+ freeShippingLimit: {
2074
+ exVat: 160,
2075
+ incVat: 200
2076
+ }
2077
+ }
2078
+ },
2079
+ {
2080
+ countryCode: 'BR',
2081
+ paymentTypes: [],
2082
+ shipping: {
2083
+ freeShippingLimit: {
2084
+ exVat: 160,
2085
+ incVat: 200
2086
+ }
2087
+ }
2088
+ },
2089
+ {
2090
+ countryCode: 'CA',
2091
+ paymentTypes: [],
2092
+ shipping: {
2093
+ freeShippingLimit: {
2094
+ exVat: 200,
2095
+ incVat: 200
2096
+ }
2097
+ }
2098
+ },
2099
+ {
2100
+ countryCode: 'CN',
2101
+ paymentTypes: [],
2102
+ shipping: {
2103
+ freeShippingLimit: null
2104
+ }
2105
+ },
2106
+ {
2107
+ countryCode: 'FO',
2108
+ paymentTypes: [],
2109
+ shipping: {
2110
+ freeShippingLimit: {
2111
+ exVat: 160,
2112
+ incVat: 200
2113
+ }
2114
+ }
2115
+ },
2116
+ {
2117
+ countryCode: 'MQ',
2118
+ paymentTypes: [],
2119
+ shipping: {
2120
+ freeShippingLimit: {
2121
+ exVat: 160,
2122
+ incVat: 200
2123
+ }
2124
+ }
2125
+ },
2126
+ {
2127
+ countryCode: 'MX',
2128
+ paymentTypes: [],
2129
+ shipping: {
2130
+ freeShippingLimit: {
2131
+ exVat: 160,
2132
+ incVat: 200
2133
+ }
2134
+ }
2135
+ },
2136
+ {
2137
+ countryCode: 'MY',
2138
+ paymentTypes: [],
2139
+ shipping: {
2140
+ freeShippingLimit: {
2141
+ exVat: 160,
2142
+ incVat: 200
2143
+ }
2144
+ }
2145
+ },
2146
+ {
2147
+ countryCode: 'PF',
2148
+ paymentTypes: [],
2149
+ shipping: {
2150
+ freeShippingLimit: {
2151
+ exVat: 160,
2152
+ incVat: 200
2153
+ }
2154
+ }
2155
+ },
2156
+ {
2157
+ countryCode: 'RU',
2158
+ paymentTypes: [],
2159
+ shipping: {
2160
+ freeShippingLimit: {
2161
+ exVat: 160,
2162
+ incVat: 200
2163
+ }
2164
+ }
2165
+ },
2166
+ {
2167
+ countryCode: 'SG',
2168
+ paymentTypes: [],
2169
+ shipping: {
2170
+ freeShippingLimit: {
2171
+ exVat: 160,
2172
+ incVat: 200
2173
+ }
2174
+ }
2175
+ },
2176
+ {
2177
+ countryCode: 'SV',
2178
+ paymentTypes: [],
2179
+ shipping: {
2180
+ freeShippingLimit: {
2181
+ exVat: 160,
2182
+ incVat: 200
2183
+ }
2184
+ }
2185
+ },
2186
+ {
2187
+ countryCode: 'TH',
2188
+ paymentTypes: [],
2189
+ shipping: {
2190
+ freeShippingLimit: {
2191
+ exVat: 160,
2192
+ incVat: 200
2193
+ }
2194
+ }
2195
+ },
2196
+ {
2197
+ countryCode: 'TR',
2198
+ paymentTypes: [],
2199
+ shipping: {
2200
+ freeShippingLimit: {
2201
+ exVat: 160,
2202
+ incVat: 200
2203
+ }
2204
+ }
2205
+ },
2206
+ {
2207
+ countryCode: 'TW',
2208
+ paymentTypes: [],
2209
+ shipping: {
2210
+ freeShippingLimit: {
2211
+ exVat: 160,
2212
+ incVat: 200
2213
+ }
2214
+ }
2215
+ },
2216
+ {
2217
+ countryCode: 'UA',
2218
+ paymentTypes: [],
2219
+ shipping: {
2220
+ freeShippingLimit: {
2221
+ exVat: 160,
2222
+ incVat: 200
2223
+ }
2224
+ }
2225
+ },
2226
+ {
2227
+ countryCode: 'US',
2228
+ paymentTypes: [],
2229
+ shipping: {
2230
+ freeShippingLimit: {
2231
+ exVat: 200,
2232
+ incVat: 200
2233
+ }
2234
+ }
2235
+ },
2236
+ {
2237
+ countryCode: 'ZA',
2238
+ paymentTypes: [],
2239
+ shipping: {
2240
+ freeShippingLimit: {
2241
+ exVat: 160,
2242
+ incVat: 200
2243
+ }
2244
+ }
2245
+ },
2246
+ {
2247
+ countryCode: 'HK',
2248
+ paymentTypes: [],
2249
+ shipping: {
2250
+ freeShippingLimit: {
2251
+ exVat: 160,
2252
+ incVat: 200
2253
+ }
2254
+ }
2255
+ },
2256
+ {
2257
+ countryCode: 'IN',
2258
+ paymentTypes: [],
2259
+ shipping: {
2260
+ freeShippingLimit: {
2261
+ exVat: 320,
2262
+ incVat: 400
2263
+ }
2264
+ }
2265
+ },
2266
+ {
2267
+ countryCode: 'ID',
2268
+ paymentTypes: [],
2269
+ shipping: {
2270
+ freeShippingLimit: {
2271
+ exVat: 160,
2272
+ incVat: 200
2273
+ }
2274
+ }
2275
+ },
2276
+ {
2277
+ countryCode: 'IL',
2278
+ paymentTypes: [],
2279
+ shipping: {
2280
+ freeShippingLimit: {
2281
+ exVat: 160,
2282
+ incVat: 200
2283
+ }
2284
+ }
2285
+ },
2286
+ {
2287
+ countryCode: 'JP',
2288
+ paymentTypes: [],
2289
+ shipping: {
2290
+ freeShippingLimit: {
2291
+ exVat: 160,
2292
+ incVat: 200
2293
+ }
2294
+ }
2295
+ },
2296
+ {
2297
+ countryCode: 'KE',
2298
+ paymentTypes: [],
2299
+ shipping: {
2300
+ freeShippingLimit: {
2301
+ exVat: 160,
2302
+ incVat: 200
2303
+ }
2304
+ }
2305
+ },
2306
+ {
2307
+ countryCode: 'KR',
2308
+ paymentTypes: [],
2309
+ shipping: {
2310
+ freeShippingLimit: {
2311
+ exVat: 160,
2312
+ incVat: 200
2313
+ }
2314
+ }
2315
+ },
2316
+ {
2317
+ countryCode: 'BL',
2318
+ paymentTypes: [],
2319
+ shipping: {
2320
+ freeShippingLimit: {
2321
+ exVat: 160,
2322
+ incVat: 200
2323
+ }
2324
+ }
2325
+ }
2326
+ ],
2327
+ pricesIncVat: true
2328
+ }
2329
+ },
2330
+ {
2331
+ id: 4,
2332
+ name: 'SE',
2333
+ isDefault: false,
2334
+ displayName: null,
2335
+ groupName: 'Brand-1',
2336
+ url: 'https://flight-m2.jetshop.se/se',
2337
+ countries: [
2338
+ {
2339
+ name: 'Sweden',
2340
+ code: 'SE',
2341
+ isDefault: true
2342
+ }
2343
+ ],
2344
+ languages: [
2345
+ {
2346
+ culture: 'sv-SE',
2347
+ name: 'Svenska',
2348
+ isDefault: true
2349
+ },
2350
+ {
2351
+ culture: 'en-GB',
2352
+ name: 'English',
2353
+ isDefault: false
2354
+ }
2355
+ ],
2356
+ currencies: [
2357
+ {
2358
+ name: 'SEK',
2359
+ format: {
2360
+ decimals: 2
2361
+ }
2362
+ }
2363
+ ],
2364
+ defaultCurrency: {
2365
+ name: 'SEK',
2366
+ format: {
2367
+ decimals: 2
2368
+ }
2369
+ },
2370
+ defaultLanguage: {
2371
+ culture: 'sv-SE',
2372
+ name: 'Svenska',
2373
+ isDefault: true
2374
+ },
2375
+ settings: {
2376
+ tracking: {
2377
+ ga: {
2378
+ trackingId: ''
2379
+ },
2380
+ gtm: {
2381
+ containerId: ''
2382
+ }
2383
+ },
2384
+ countrySettings: [
2385
+ {
2386
+ countryCode: 'SE',
2387
+ paymentTypes: [],
2388
+ shipping: {
2389
+ freeShippingLimit: {
2390
+ exVat: 600,
2391
+ incVat: 600
2392
+ }
2393
+ }
2394
+ }
2395
+ ],
2396
+ pricesIncVat: true
2397
+ }
2398
+ },
2399
+ {
2400
+ id: 5,
2401
+ name: 'UK',
2402
+ isDefault: false,
2403
+ displayName: null,
2404
+ groupName: 'Brand-2',
2405
+ url: 'https://flight-m2.jetshop.se/uk',
2406
+ countries: [
2407
+ {
2408
+ name: 'United Kingdom',
2409
+ code: 'UK',
2410
+ isDefault: true
2411
+ }
2412
+ ],
2413
+ languages: [
2414
+ {
2415
+ culture: 'sv-SE',
2416
+ name: 'Svenska',
2417
+ isDefault: true
2418
+ }
2419
+ ],
2420
+ currencies: [
2421
+ {
2422
+ name: 'SEK',
2423
+ format: {
2424
+ decimals: 2
2425
+ }
2426
+ }
2427
+ ],
2428
+ defaultCurrency: {
2429
+ name: 'SEK',
2430
+ format: {
2431
+ decimals: 2
2432
+ }
2433
+ },
2434
+ defaultLanguage: {
2435
+ culture: 'sv-SE',
2436
+ name: 'Svenska',
2437
+ isDefault: true
2438
+ },
2439
+ settings: {
2440
+ tracking: {
2441
+ ga: {
2442
+ trackingId: ''
2443
+ },
2444
+ gtm: {
2445
+ containerId: ''
2446
+ }
2447
+ },
2448
+ countrySettings: [
2449
+ {
2450
+ countryCode: 'SE',
2451
+ paymentTypes: [],
2452
+ shipping: {
2453
+ freeShippingLimit: {
2454
+ exVat: 600,
2455
+ incVat: 600
2456
+ }
2457
+ }
2458
+ }
2459
+ ],
2460
+ pricesIncVat: true
2461
+ }
2462
+ }
2463
+ ];
2464
+
1231
2465
  export const selectedChannel = createSelectedChannel(channels[0]);