@plattar/plattar-ar-adapter 1.157.1 → 1.158.1

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.
@@ -102,7 +102,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
102
102
  /**
103
103
  * Performs AR functionality related to Plattar Scenes
104
104
  */
105
- var ConfiguratorAR = /*#__PURE__*/function (_launcher_ar_1$Launch) {
105
+ var ConfiguratorAR = /*#__PURE__*/function (_launcher_ar_1$Launch, _Compose2, _init) {
106
106
  _inherits(ConfiguratorAR, _launcher_ar_1$Launch);
107
107
  var _super = _createSuper(ConfiguratorAR);
108
108
  function ConfiguratorAR(state) {
@@ -146,8 +146,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
146
146
  */
147
147
  }, {
148
148
  key: "_Compose",
149
- value: function () {
150
- var _Compose2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(output) {
149
+ value: function _Compose(_x) {
150
+ return (_Compose2 = _Compose2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(output) {
151
151
  var objects, configurator, totalARObjectCount, results;
152
152
  return _regeneratorRuntime().wrap(function _callee$(_context) {
153
153
  while (1) switch (_context.prev = _context.next) {
@@ -190,12 +190,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
190
190
  return _context.stop();
191
191
  }
192
192
  }, _callee, this);
193
- }));
194
- function _Compose(_x) {
195
- return _Compose2.apply(this, arguments);
196
- }
197
- return _Compose;
198
- }()
193
+ }))).apply(this, arguments);
194
+ }
199
195
  /**
200
196
  * Initialise the SceneAR instance. This returns a Promise that resolves
201
197
  * successfully if initialisation is successful, otherwise it will fail.
@@ -205,8 +201,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
205
201
  */
206
202
  }, {
207
203
  key: "init",
208
- value: function () {
209
- var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
204
+ value: function init() {
205
+ return (_init = _init || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
210
206
  var scene, sceneOpt, modelUrl, _modelUrl, _modelUrl2, arviewer;
211
207
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
212
208
  while (1) switch (_context2.prev = _context2.next) {
@@ -280,12 +276,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
280
276
  return _context2.stop();
281
277
  }
282
278
  }, _callee2, this);
283
- }));
284
- function init() {
285
- return _init.apply(this, arguments);
286
- }
287
- return init;
288
- }()
279
+ }))).apply(this, arguments);
280
+ }
289
281
  }, {
290
282
  key: "start",
291
283
  value: function start() {
@@ -340,7 +332,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
340
332
  value: true
341
333
  });
342
334
  exports.LauncherAR = void 0;
343
- var LauncherAR = /*#__PURE__*/function () {
335
+ var LauncherAR = /*#__PURE__*/function (_launch) {
344
336
  function LauncherAR() {
345
337
  _classCallCheck(this, LauncherAR);
346
338
  this._opt = {
@@ -353,8 +345,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
353
345
  */
354
346
  _createClass(LauncherAR, [{
355
347
  key: "launch",
356
- value: function () {
357
- var _launch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
348
+ value: function launch() {
349
+ return (_launch = _launch || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
358
350
  var value;
359
351
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
360
352
  while (1) switch (_context3.prev = _context3.next) {
@@ -369,12 +361,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
369
361
  return _context3.stop();
370
362
  }
371
363
  }, _callee3, this);
372
- }));
373
- function launch() {
374
- return _launch.apply(this, arguments);
375
- }
376
- return launch;
377
- }()
364
+ }))).apply(this, arguments);
365
+ }
378
366
  /**
379
367
  * AR Options used for launching AR
380
368
  */
@@ -1304,7 +1292,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1304
1292
  /**
1305
1293
  * Manages an instance of the <plattar-configurator> HTML Element
1306
1294
  */
1307
- var ConfiguratorController = /*#__PURE__*/function (_plattar_controller_) {
1295
+ var ConfiguratorController = /*#__PURE__*/function (_plattar_controller_, _getConfiguratorState, _onAttributesUpdated, _startARQRCode, _startViewerQRCode, _startRenderer, _initAR, _InitARInherited2, _InitARGenerated2) {
1308
1296
  _inherits(ConfiguratorController, _plattar_controller_);
1309
1297
  var _super7 = _createSuper(ConfiguratorController);
1310
1298
  function ConfiguratorController() {
@@ -1316,8 +1304,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1316
1304
  }
1317
1305
  _createClass(ConfiguratorController, [{
1318
1306
  key: "getConfiguratorState",
1319
- value: function () {
1320
- var _getConfiguratorState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
1307
+ value: function getConfiguratorState() {
1308
+ return (_getConfiguratorState = _getConfiguratorState || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
1321
1309
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1322
1310
  while (1) switch (_context4.prev = _context4.next) {
1323
1311
  case 0:
@@ -1334,16 +1322,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1334
1322
  return _context4.stop();
1335
1323
  }
1336
1324
  }, _callee4, this);
1337
- }));
1338
- function getConfiguratorState() {
1339
- return _getConfiguratorState.apply(this, arguments);
1340
- }
1341
- return getConfiguratorState;
1342
- }()
1325
+ }))).apply(this, arguments);
1326
+ }
1343
1327
  }, {
1344
1328
  key: "onAttributesUpdated",
1345
- value: function () {
1346
- var _onAttributesUpdated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(attributeName) {
1329
+ value: function onAttributesUpdated(_x2) {
1330
+ return (_onAttributesUpdated = _onAttributesUpdated || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(attributeName) {
1347
1331
  var state, viewer, variationIDs, variationIDsList, variationSKUs, variationSKUList, configState, _variationIDs, _variationIDsList, _configState, _variationSKUs, _variationSKUList;
1348
1332
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
1349
1333
  while (1) switch (_context5.prev = _context5.next) {
@@ -1425,16 +1409,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1425
1409
  return _context5.stop();
1426
1410
  }
1427
1411
  }, _callee5, this);
1428
- }));
1429
- function onAttributesUpdated(_x2) {
1430
- return _onAttributesUpdated.apply(this, arguments);
1431
- }
1432
- return onAttributesUpdated;
1433
- }()
1412
+ }))).apply(this, arguments);
1413
+ }
1434
1414
  }, {
1435
1415
  key: "startARQRCode",
1436
- value: function () {
1437
- var _startARQRCode = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(options) {
1416
+ value: function startARQRCode(_x3) {
1417
+ return (_startARQRCode = _startARQRCode || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(options) {
1438
1418
  var dState, product, controller;
1439
1419
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
1440
1420
  while (1) switch (_context6.prev = _context6.next) {
@@ -1476,16 +1456,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1476
1456
  return _context6.stop();
1477
1457
  }
1478
1458
  }, _callee6, this, [[0, 16]]);
1479
- }));
1480
- function startARQRCode(_x3) {
1481
- return _startARQRCode.apply(this, arguments);
1482
- }
1483
- return startARQRCode;
1484
- }()
1459
+ }))).apply(this, arguments);
1460
+ }
1485
1461
  }, {
1486
1462
  key: "startViewerQRCode",
1487
- value: function () {
1488
- var _startViewerQRCode = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(options) {
1463
+ value: function startViewerQRCode(_x4) {
1464
+ return (_startViewerQRCode = _startViewerQRCode || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(options) {
1489
1465
  var _this15 = this;
1490
1466
  var sceneID, configState, dState, product, controller, opt, viewer, width, height, dst, showAR, showUI;
1491
1467
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
@@ -1580,16 +1556,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1580
1556
  return _context7.stop();
1581
1557
  }
1582
1558
  }, _callee7, this, [[5, 22]]);
1583
- }));
1584
- function startViewerQRCode(_x4) {
1585
- return _startViewerQRCode.apply(this, arguments);
1586
- }
1587
- return startViewerQRCode;
1588
- }()
1559
+ }))).apply(this, arguments);
1560
+ }
1589
1561
  }, {
1590
1562
  key: "startRenderer",
1591
- value: function () {
1592
- var _startRenderer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
1563
+ value: function startRenderer() {
1564
+ return (_startRenderer = _startRenderer || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
1593
1565
  var _this16 = this;
1594
1566
  var sceneID, configState, dState, product, controller, width, height, server, viewer, showAR, showUI;
1595
1567
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
@@ -1674,16 +1646,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1674
1646
  return _context8.stop();
1675
1647
  }
1676
1648
  }, _callee8, this, [[5, 22]]);
1677
- }));
1678
- function startRenderer() {
1679
- return _startRenderer.apply(this, arguments);
1680
- }
1681
- return startRenderer;
1682
- }()
1649
+ }))).apply(this, arguments);
1650
+ }
1683
1651
  }, {
1684
1652
  key: "initAR",
1685
- value: function () {
1686
- var _initAR = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
1653
+ value: function initAR() {
1654
+ return (_initAR = _initAR || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
1687
1655
  var dState, product, controller, arMode;
1688
1656
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
1689
1657
  while (1) switch (_context9.prev = _context9.next) {
@@ -1738,19 +1706,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1738
1706
  return _context9.stop();
1739
1707
  }
1740
1708
  }, _callee9, this, [[2, 18]]);
1741
- }));
1742
- function initAR() {
1743
- return _initAR.apply(this, arguments);
1744
- }
1745
- return initAR;
1746
- }()
1709
+ }))).apply(this, arguments);
1710
+ }
1747
1711
  /**
1748
1712
  * Private Function - This launches the Static/Inherited AR Mode
1749
1713
  */
1750
1714
  }, {
1751
1715
  key: "_InitARInherited",
1752
- value: function () {
1753
- var _InitARInherited2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
1716
+ value: function _InitARInherited() {
1717
+ return (_InitARInherited2 = _InitARInherited2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
1754
1718
  var sceneID, state, first, sceneProductAR;
1755
1719
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
1756
1720
  while (1) switch (_context10.prev = _context10.next) {
@@ -1780,19 +1744,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1780
1744
  return _context10.stop();
1781
1745
  }
1782
1746
  }, _callee10, this);
1783
- }));
1784
- function _InitARInherited() {
1785
- return _InitARInherited2.apply(this, arguments);
1786
- }
1787
- return _InitARInherited;
1788
- }()
1747
+ }))).apply(this, arguments);
1748
+ }
1789
1749
  /**
1790
1750
  * Private Function - This launches the Dynamic/Generated AR Mode
1791
1751
  */
1792
1752
  }, {
1793
1753
  key: "_InitARGenerated",
1794
- value: function () {
1795
- var _InitARGenerated2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
1754
+ value: function _InitARGenerated() {
1755
+ return (_InitARGenerated2 = _InitARGenerated2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
1796
1756
  var sceneID, configAR;
1797
1757
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
1798
1758
  while (1) switch (_context11.prev = _context11.next) {
@@ -1816,12 +1776,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1816
1776
  return _context11.stop();
1817
1777
  }
1818
1778
  }, _callee11, this);
1819
- }));
1820
- function _InitARGenerated() {
1821
- return _InitARGenerated2.apply(this, arguments);
1822
- }
1823
- return _InitARGenerated;
1824
- }()
1779
+ }))).apply(this, arguments);
1780
+ }
1825
1781
  }, {
1826
1782
  key: "removeRenderer",
1827
1783
  value: function removeRenderer() {
@@ -1867,7 +1823,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1867
1823
  /**
1868
1824
  * All Plattar Controllers are derived from the same interface
1869
1825
  */
1870
- var PlattarController = /*#__PURE__*/function () {
1826
+ var PlattarController = /*#__PURE__*/function (_createConfiguratorState, _startAR, _startQRCode, _startARQRCode2) {
1871
1827
  function PlattarController(parent) {
1872
1828
  _classCallCheck(this, PlattarController);
1873
1829
  this._state = ControllerState.None;
@@ -1896,8 +1852,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1896
1852
  }
1897
1853
  }, {
1898
1854
  key: "createConfiguratorState",
1899
- value: function () {
1900
- var _createConfiguratorState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
1855
+ value: function createConfiguratorState() {
1856
+ return (_createConfiguratorState = _createConfiguratorState || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
1901
1857
  var sceneID, configState, variationIDs, variationSKUs, decodedState, variationIDList, variationSKUList;
1902
1858
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
1903
1859
  while (1) switch (_context12.prev = _context12.next) {
@@ -1946,12 +1902,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1946
1902
  return _context12.stop();
1947
1903
  }
1948
1904
  }, _callee12, this);
1949
- }));
1950
- function createConfiguratorState() {
1951
- return _createConfiguratorState.apply(this, arguments);
1952
- }
1953
- return createConfiguratorState;
1954
- }()
1905
+ }))).apply(this, arguments);
1906
+ }
1955
1907
  /**
1956
1908
  * Setup messenger observers to detect variation changes and apply to the internal
1957
1909
  * configuration state
@@ -1998,8 +1950,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1998
1950
  */
1999
1951
  }, {
2000
1952
  key: "startAR",
2001
- value: function () {
2002
- var _startAR = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
1953
+ value: function startAR() {
1954
+ return (_startAR = _startAR || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
2003
1955
  var launcher;
2004
1956
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
2005
1957
  while (1) switch (_context13.prev = _context13.next) {
@@ -2014,12 +1966,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2014
1966
  return _context13.stop();
2015
1967
  }
2016
1968
  }, _callee13, this);
2017
- }));
2018
- function startAR() {
2019
- return _startAR.apply(this, arguments);
2020
- }
2021
- return startAR;
2022
- }()
1969
+ }))).apply(this, arguments);
1970
+ }
2023
1971
  /**
2024
1972
  * Decide which QR Code to render according to the qr-type attribute
2025
1973
  * @param options
@@ -2027,8 +1975,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2027
1975
  */
2028
1976
  }, {
2029
1977
  key: "startQRCode",
2030
- value: function () {
2031
- var _startQRCode = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(options) {
1978
+ value: function startQRCode(_x5) {
1979
+ return (_startQRCode = _startQRCode || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(options) {
2032
1980
  var qrType;
2033
1981
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
2034
1982
  while (1) switch (_context14.prev = _context14.next) {
@@ -2046,12 +1994,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2046
1994
  return _context14.stop();
2047
1995
  }
2048
1996
  }, _callee14, this);
2049
- }));
2050
- function startQRCode(_x5) {
2051
- return _startQRCode.apply(this, arguments);
2052
- }
2053
- return startQRCode;
2054
- }()
1997
+ }))).apply(this, arguments);
1998
+ }
2055
1999
  /**
2056
2000
  * Displays a QR Code that sends the user direct to AR
2057
2001
  * @param options
@@ -2059,8 +2003,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2059
2003
  */
2060
2004
  }, {
2061
2005
  key: "startARQRCode",
2062
- value: function () {
2063
- var _startARQRCode2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(options) {
2006
+ value: function startARQRCode(_x6) {
2007
+ return (_startARQRCode2 = _startARQRCode2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(options) {
2064
2008
  var _this17 = this;
2065
2009
  var opt, viewer, width, height, qrOptions, dst, configState, sceneID, embedType, productID, sceneProductID, variationID, variationSKU, arMode;
2066
2010
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
@@ -2147,12 +2091,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2147
2091
  return _context15.stop();
2148
2092
  }
2149
2093
  }, _callee15, this, [[22, 28]]);
2150
- }));
2151
- function startARQRCode(_x6) {
2152
- return _startARQRCode2.apply(this, arguments);
2153
- }
2154
- return startARQRCode;
2155
- }()
2094
+ }))).apply(this, arguments);
2095
+ }
2156
2096
  /**
2157
2097
  * Returns the Parent Instance
2158
2098
  */
@@ -2221,7 +2161,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2221
2161
  * NOTE: As of 14th June 2023, this is now a legacy Controller and only used in legacy embeds
2222
2162
  * and should be deprecated from both documentation and previous integrations
2223
2163
  */
2224
- var ProductController = /*#__PURE__*/function (_plattar_controller_2) {
2164
+ var ProductController = /*#__PURE__*/function (_plattar_controller_2, _getConfiguratorState2, _onAttributesUpdated2) {
2225
2165
  _inherits(ProductController, _plattar_controller_2);
2226
2166
  var _super8 = _createSuper(ProductController);
2227
2167
  function ProductController() {
@@ -2230,8 +2170,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2230
2170
  }
2231
2171
  _createClass(ProductController, [{
2232
2172
  key: "getConfiguratorState",
2233
- value: function () {
2234
- var _getConfiguratorState2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
2173
+ value: function getConfiguratorState() {
2174
+ return (_getConfiguratorState2 = _getConfiguratorState2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
2235
2175
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
2236
2176
  while (1) switch (_context16.prev = _context16.next) {
2237
2177
  case 0:
@@ -2241,16 +2181,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2241
2181
  return _context16.stop();
2242
2182
  }
2243
2183
  }, _callee16);
2244
- }));
2245
- function getConfiguratorState() {
2246
- return _getConfiguratorState2.apply(this, arguments);
2247
- }
2248
- return getConfiguratorState;
2249
- }()
2184
+ }))).apply(this, arguments);
2185
+ }
2250
2186
  }, {
2251
2187
  key: "onAttributesUpdated",
2252
- value: function () {
2253
- var _onAttributesUpdated2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(attributeName) {
2188
+ value: function onAttributesUpdated(_x7) {
2189
+ return (_onAttributesUpdated2 = _onAttributesUpdated2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(attributeName) {
2254
2190
  var state, viewer, variationID;
2255
2191
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
2256
2192
  while (1) switch (_context17.prev = _context17.next) {
@@ -2278,12 +2214,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2278
2214
  return _context17.stop();
2279
2215
  }
2280
2216
  }, _callee17, this);
2281
- }));
2282
- function onAttributesUpdated(_x7) {
2283
- return _onAttributesUpdated2.apply(this, arguments);
2284
- }
2285
- return onAttributesUpdated;
2286
- }()
2217
+ }))).apply(this, arguments);
2218
+ }
2287
2219
  }, {
2288
2220
  key: "startViewerQRCode",
2289
2221
  value: function startViewerQRCode(options) {
@@ -2510,7 +2442,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2510
2442
  /**
2511
2443
  * Manages an instance of the <plattar-configurator> HTML Element
2512
2444
  */
2513
- var VTOController = /*#__PURE__*/function (_plattar_controller_3) {
2445
+ var VTOController = /*#__PURE__*/function (_plattar_controller_3, _getConfiguratorState3, _onAttributesUpdated3, _startViewerQRCode2, _startRenderer2, _initAR2, _InitARInherited3, _InitARGenerated3) {
2514
2446
  _inherits(VTOController, _plattar_controller_3);
2515
2447
  var _super9 = _createSuper(VTOController);
2516
2448
  function VTOController() {
@@ -2522,8 +2454,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2522
2454
  }
2523
2455
  _createClass(VTOController, [{
2524
2456
  key: "getConfiguratorState",
2525
- value: function () {
2526
- var _getConfiguratorState3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
2457
+ value: function getConfiguratorState() {
2458
+ return (_getConfiguratorState3 = _getConfiguratorState3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
2527
2459
  return _regeneratorRuntime().wrap(function _callee18$(_context18) {
2528
2460
  while (1) switch (_context18.prev = _context18.next) {
2529
2461
  case 0:
@@ -2540,16 +2472,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2540
2472
  return _context18.stop();
2541
2473
  }
2542
2474
  }, _callee18, this);
2543
- }));
2544
- function getConfiguratorState() {
2545
- return _getConfiguratorState3.apply(this, arguments);
2546
- }
2547
- return getConfiguratorState;
2548
- }()
2475
+ }))).apply(this, arguments);
2476
+ }
2549
2477
  }, {
2550
2478
  key: "onAttributesUpdated",
2551
- value: function () {
2552
- var _onAttributesUpdated3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(attributeName) {
2479
+ value: function onAttributesUpdated(_x8) {
2480
+ return (_onAttributesUpdated3 = _onAttributesUpdated3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(attributeName) {
2553
2481
  var state, viewer, variationIDs, variationIDsList, variationSKUs, variationSKUList, configState, _variationIDs2, _variationIDsList2, _configState2, _variationSKUs2, _variationSKUList2;
2554
2482
  return _regeneratorRuntime().wrap(function _callee19$(_context19) {
2555
2483
  while (1) switch (_context19.prev = _context19.next) {
@@ -2631,16 +2559,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2631
2559
  return _context19.stop();
2632
2560
  }
2633
2561
  }, _callee19, this);
2634
- }));
2635
- function onAttributesUpdated(_x8) {
2636
- return _onAttributesUpdated3.apply(this, arguments);
2637
- }
2638
- return onAttributesUpdated;
2639
- }()
2562
+ }))).apply(this, arguments);
2563
+ }
2640
2564
  }, {
2641
2565
  key: "startViewerQRCode",
2642
- value: function () {
2643
- var _startViewerQRCode2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(options) {
2566
+ value: function startViewerQRCode(_x9) {
2567
+ return (_startViewerQRCode2 = _startViewerQRCode2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(options) {
2644
2568
  var _this23 = this;
2645
2569
  var sceneID, opt, viewer, width, height, dst, configState, showAR, productID, sceneProductID, variationID;
2646
2570
  return _regeneratorRuntime().wrap(function _callee20$(_context20) {
@@ -2721,16 +2645,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2721
2645
  return _context20.stop();
2722
2646
  }
2723
2647
  }, _callee20, this, [[17, 23]]);
2724
- }));
2725
- function startViewerQRCode(_x9) {
2726
- return _startViewerQRCode2.apply(this, arguments);
2727
- }
2728
- return startViewerQRCode;
2729
- }()
2648
+ }))).apply(this, arguments);
2649
+ }
2730
2650
  }, {
2731
2651
  key: "startRenderer",
2732
- value: function () {
2733
- var _startRenderer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
2652
+ value: function startRenderer() {
2653
+ return (_startRenderer2 = _startRenderer2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
2734
2654
  var _this24 = this;
2735
2655
  var sceneID, width, height, server, viewer, configState, showAR, productID, sceneProductID, variationID;
2736
2656
  return _regeneratorRuntime().wrap(function _callee21$(_context21) {
@@ -2802,16 +2722,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2802
2722
  return _context21.stop();
2803
2723
  }
2804
2724
  }, _callee21, this, [[14, 20]]);
2805
- }));
2806
- function startRenderer() {
2807
- return _startRenderer2.apply(this, arguments);
2808
- }
2809
- return startRenderer;
2810
- }()
2725
+ }))).apply(this, arguments);
2726
+ }
2811
2727
  }, {
2812
2728
  key: "initAR",
2813
- value: function () {
2814
- var _initAR2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
2729
+ value: function initAR() {
2730
+ return (_initAR2 = _initAR2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
2815
2731
  var arMode;
2816
2732
  return _regeneratorRuntime().wrap(function _callee22$(_context22) {
2817
2733
  while (1) switch (_context22.prev = _context22.next) {
@@ -2841,19 +2757,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2841
2757
  return _context22.stop();
2842
2758
  }
2843
2759
  }, _callee22, this);
2844
- }));
2845
- function initAR() {
2846
- return _initAR2.apply(this, arguments);
2847
- }
2848
- return initAR;
2849
- }()
2760
+ }))).apply(this, arguments);
2761
+ }
2850
2762
  /**
2851
2763
  * Private Function - This launches the Static/Inherited AR Mode
2852
2764
  */
2853
2765
  }, {
2854
2766
  key: "_InitARInherited",
2855
- value: function () {
2856
- var _InitARInherited3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
2767
+ value: function _InitARInherited() {
2768
+ return (_InitARInherited3 = _InitARInherited3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
2857
2769
  var sceneID, state, first, sceneProductAR;
2858
2770
  return _regeneratorRuntime().wrap(function _callee23$(_context23) {
2859
2771
  while (1) switch (_context23.prev = _context23.next) {
@@ -2883,19 +2795,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2883
2795
  return _context23.stop();
2884
2796
  }
2885
2797
  }, _callee23, this);
2886
- }));
2887
- function _InitARInherited() {
2888
- return _InitARInherited3.apply(this, arguments);
2889
- }
2890
- return _InitARInherited;
2891
- }()
2798
+ }))).apply(this, arguments);
2799
+ }
2892
2800
  /**
2893
2801
  * Private Function - This launches the Dynamic/Generated AR Mode
2894
2802
  */
2895
2803
  }, {
2896
2804
  key: "_InitARGenerated",
2897
- value: function () {
2898
- var _InitARGenerated3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
2805
+ value: function _InitARGenerated() {
2806
+ return (_InitARGenerated3 = _InitARGenerated3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
2899
2807
  var sceneID, configAR;
2900
2808
  return _regeneratorRuntime().wrap(function _callee24$(_context24) {
2901
2809
  while (1) switch (_context24.prev = _context24.next) {
@@ -2919,12 +2827,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2919
2827
  return _context24.stop();
2920
2828
  }
2921
2829
  }, _callee24, this);
2922
- }));
2923
- function _InitARGenerated() {
2924
- return _InitARGenerated3.apply(this, arguments);
2925
- }
2926
- return _InitARGenerated;
2927
- }()
2830
+ }))).apply(this, arguments);
2831
+ }
2928
2832
  }, {
2929
2833
  key: "removeRenderer",
2930
2834
  value: function removeRenderer() {
@@ -2984,7 +2888,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2984
2888
  * This is the primary <plattar-embed /> node that allows easy embedding
2985
2889
  * of Plattar related content
2986
2890
  */
2987
- var PlattarEmbed = /*#__PURE__*/function (_HTMLElement) {
2891
+ var PlattarEmbed = /*#__PURE__*/function (_HTMLElement, _initAR3, _startAR2, _startViewer, _startQRCode2) {
2988
2892
  _inherits(PlattarEmbed, _HTMLElement);
2989
2893
  var _super10 = _createSuper(PlattarEmbed);
2990
2894
  function PlattarEmbed() {
@@ -3041,7 +2945,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3041
2945
  attributes: true
3042
2946
  });
3043
2947
  }
3044
- var productID = this.hasAttribute("product-id") ? this.getAttribute("product-id") : null;
2948
+ var productID = this.hasAttribute("product-id") && !this.hasAttribute("scene-id") ? this.getAttribute("product-id") : null;
3045
2949
  if (productID) {
3046
2950
  this._currentType = EmbedType.Legacy;
3047
2951
  this._CreateLegacyEmbed();
@@ -3159,8 +3063,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3159
3063
  }
3160
3064
  }, {
3161
3065
  key: "initAR",
3162
- value: function () {
3163
- var _initAR3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
3066
+ value: function initAR() {
3067
+ return (_initAR3 = _initAR3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
3164
3068
  return _regeneratorRuntime().wrap(function _callee25$(_context25) {
3165
3069
  while (1) switch (_context25.prev = _context25.next) {
3166
3070
  case 0:
@@ -3176,16 +3080,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3176
3080
  return _context25.stop();
3177
3081
  }
3178
3082
  }, _callee25, this);
3179
- }));
3180
- function initAR() {
3181
- return _initAR3.apply(this, arguments);
3182
- }
3183
- return initAR;
3184
- }()
3083
+ }))).apply(this, arguments);
3084
+ }
3185
3085
  }, {
3186
3086
  key: "startAR",
3187
- value: function () {
3188
- var _startAR2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
3087
+ value: function startAR() {
3088
+ return (_startAR2 = _startAR2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
3189
3089
  return _regeneratorRuntime().wrap(function _callee26$(_context26) {
3190
3090
  while (1) switch (_context26.prev = _context26.next) {
3191
3091
  case 0:
@@ -3201,16 +3101,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3201
3101
  return _context26.stop();
3202
3102
  }
3203
3103
  }, _callee26, this);
3204
- }));
3205
- function startAR() {
3206
- return _startAR2.apply(this, arguments);
3207
- }
3208
- return startAR;
3209
- }()
3104
+ }))).apply(this, arguments);
3105
+ }
3210
3106
  }, {
3211
3107
  key: "startViewer",
3212
- value: function () {
3213
- var _startViewer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
3108
+ value: function startViewer() {
3109
+ return (_startViewer = _startViewer || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
3214
3110
  return _regeneratorRuntime().wrap(function _callee27$(_context27) {
3215
3111
  while (1) switch (_context27.prev = _context27.next) {
3216
3112
  case 0:
@@ -3226,16 +3122,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3226
3122
  return _context27.stop();
3227
3123
  }
3228
3124
  }, _callee27, this);
3229
- }));
3230
- function startViewer() {
3231
- return _startViewer.apply(this, arguments);
3232
- }
3233
- return startViewer;
3234
- }()
3125
+ }))).apply(this, arguments);
3126
+ }
3235
3127
  }, {
3236
3128
  key: "startQRCode",
3237
- value: function () {
3238
- var _startQRCode2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
3129
+ value: function startQRCode() {
3130
+ return (_startQRCode2 = _startQRCode2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
3239
3131
  var options,
3240
3132
  _args28 = arguments;
3241
3133
  return _regeneratorRuntime().wrap(function _callee28$(_context28) {
@@ -3254,12 +3146,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3254
3146
  return _context28.stop();
3255
3147
  }
3256
3148
  }, _callee28, this);
3257
- }));
3258
- function startQRCode() {
3259
- return _startQRCode2.apply(this, arguments);
3260
- }
3261
- return startQRCode;
3262
- }()
3149
+ }))).apply(this, arguments);
3150
+ }
3263
3151
  /**
3264
3152
  * This will remove the currently active Renderer
3265
3153
  *
@@ -3430,7 +3318,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3430
3318
  * Manages a Configuration State of multiple Products with multiple Variations
3431
3319
  * Allows easily changing
3432
3320
  */
3433
- var ConfiguratorState = /*#__PURE__*/function () {
3321
+ var ConfiguratorState = /*#__PURE__*/function (_decodeState, _decodeScene) {
3434
3322
  function ConfiguratorState() {
3435
3323
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
3436
3324
  _classCallCheck(this, ConfiguratorState);
@@ -3797,8 +3685,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3797
3685
  */
3798
3686
  }, {
3799
3687
  key: "decodeState",
3800
- value: function () {
3801
- var _decodeState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
3688
+ value: function decodeState() {
3689
+ return (_decodeState = _decodeState || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
3802
3690
  var sceneID,
3803
3691
  state,
3804
3692
  configState,
@@ -3836,12 +3724,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3836
3724
  return _context29.stop();
3837
3725
  }
3838
3726
  }, _callee29);
3839
- }));
3840
- function decodeState() {
3841
- return _decodeState.apply(this, arguments);
3842
- }
3843
- return decodeState;
3844
- }()
3727
+ }))).apply(this, arguments);
3728
+ }
3845
3729
  /**
3846
3730
  * Generates a new ConfiguratorState instance from all SceneProducts and default
3847
3731
  * variations from the provided Scene ID
@@ -3850,8 +3734,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3850
3734
  */
3851
3735
  }, {
3852
3736
  key: "decodeScene",
3853
- value: function () {
3854
- var _decodeScene = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
3737
+ value: function decodeScene() {
3738
+ return (_decodeScene = _decodeScene || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
3855
3739
  var sceneID,
3856
3740
  configState,
3857
3741
  fscene,
@@ -3933,12 +3817,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3933
3817
  return _context30.stop();
3934
3818
  }
3935
3819
  }, _callee30);
3936
- }));
3937
- function decodeScene() {
3938
- return _decodeScene.apply(this, arguments);
3939
- }
3940
- return decodeScene;
3941
- }()
3820
+ }))).apply(this, arguments);
3821
+ }
3942
3822
  }]);
3943
3823
  return ConfiguratorState;
3944
3824
  }();
@@ -4060,7 +3940,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4060
3940
  Object.defineProperty(exports, "__esModule", {
4061
3941
  value: true
4062
3942
  });
4063
- exports["default"] = "1.157.1";
3943
+ exports["default"] = "1.158.1";
4064
3944
  }, {}],
4065
3945
  17: [function (require, module, exports) {
4066
3946
  "use strict";
@@ -9638,10 +9518,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9638
9518
  "./version": 116
9639
9519
  }],
9640
9520
  116: [function (require, module, exports) {
9641
- arguments[4][16][0].apply(exports, arguments);
9642
- }, {
9643
- "dup": 16
9644
- }],
9521
+ "use strict";
9522
+
9523
+ Object.defineProperty(exports, "__esModule", {
9524
+ value: true
9525
+ });
9526
+ exports["default"] = "1.157.1";
9527
+ }, {}],
9645
9528
  117: [function (require, module, exports) {
9646
9529
  var Util = require("../../util/util");
9647
9530
  var ElementController = require("../controllers/element-controller");