@plattar/plattar-ar-adapter 1.120.1 → 1.122.2

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.
@@ -36,9 +36,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
36
36
 
37
37
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
38
38
 
39
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
39
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
40
40
 
41
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
42
42
 
43
43
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
44
44
 
@@ -52,7 +52,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
52
52
 
53
53
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
54
54
 
55
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
55
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
56
56
 
57
57
  (function (f) {
58
58
  if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined") {
@@ -166,9 +166,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
166
166
  });
167
167
  exports.LauncherAR = void 0;
168
168
 
169
- var LauncherAR = function LauncherAR() {
169
+ var LauncherAR = /*#__PURE__*/_createClass(function LauncherAR() {
170
170
  _classCallCheck(this, LauncherAR);
171
- };
171
+ });
172
172
 
173
173
  exports.LauncherAR = LauncherAR;
174
174
  }, {}],
@@ -181,6 +181,213 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
181
181
  };
182
182
  };
183
183
 
184
+ Object.defineProperty(exports, "__esModule", {
185
+ value: true
186
+ });
187
+ exports.ModelAR = void 0;
188
+
189
+ var plattar_api_1 = require("@plattar/plattar-api");
190
+
191
+ var plattar_analytics_1 = require("@plattar/plattar-analytics");
192
+
193
+ var util_1 = require("../util/util");
194
+
195
+ var quicklook_viewer_1 = __importDefault(require("../viewers/quicklook-viewer"));
196
+
197
+ var reality_viewer_1 = __importDefault(require("../viewers/reality-viewer"));
198
+
199
+ var scene_viewer_1 = __importDefault(require("../viewers/scene-viewer"));
200
+
201
+ var launcher_ar_1 = require("./launcher-ar");
202
+ /**
203
+ * Performs AT Functionality using Plattar FileModel types
204
+ */
205
+
206
+
207
+ var ModelAR = /*#__PURE__*/function (_launcher_ar_1$Launch2) {
208
+ _inherits(ModelAR, _launcher_ar_1$Launch2);
209
+
210
+ var _super2 = _createSuper(ModelAR);
211
+
212
+ function ModelAR() {
213
+ var _this;
214
+
215
+ var modelID = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
216
+
217
+ _classCallCheck(this, ModelAR);
218
+
219
+ _this = _super2.call(this); // analytics instance
220
+
221
+ _this._analytics = null;
222
+
223
+ if (!modelID) {
224
+ throw new Error("ModelAR.constructor(modelID) - modelID must be defined");
225
+ }
226
+
227
+ _this._modelID = modelID;
228
+ _this._ar = null;
229
+ return _this;
230
+ }
231
+
232
+ _createClass(ModelAR, [{
233
+ key: "modelID",
234
+ get: function get() {
235
+ return this._modelID;
236
+ }
237
+ }, {
238
+ key: "_SetupAnalytics",
239
+ value: function _SetupAnalytics(model) {
240
+ var analytics = null;
241
+ var project = model.relationships.find(plattar_api_1.Project); // setup scene stuff (if any)
242
+
243
+ if (project) {
244
+ analytics = new plattar_analytics_1.Analytics(project.id);
245
+ analytics.origin = plattar_api_1.Server.location().type;
246
+ analytics.data.push("applicationId", project.id);
247
+ analytics.data.push("applicationTitle", project.attributes.title);
248
+ analytics.data.push("modelId", model.id);
249
+ analytics.data.push("modelTitle", model.attributes.title);
250
+ this._analytics = analytics;
251
+ }
252
+ }
253
+ /**
254
+ * Initialise the ModelAR instance. This returns a Promise that resolves
255
+ * successfully if initialisation is successful, otherwise it will fail.
256
+ *
257
+ * filure can occur for a number of reasons but it generally means that AR
258
+ * cannot be performed.
259
+ */
260
+
261
+ }, {
262
+ key: "init",
263
+ value: function init() {
264
+ var _this2 = this;
265
+
266
+ return new Promise(function (accept, reject) {
267
+ if (!util_1.Util.canAugment()) {
268
+ return reject(new Error("ModelAR.init() - cannot proceed as AR not available in context"));
269
+ }
270
+
271
+ var model = new plattar_api_1.FileModel(_this2.modelID);
272
+ model.include(plattar_api_1.Project);
273
+ model.get().then(function (model) {
274
+ // setup the analytics data
275
+ _this2._SetupAnalytics(model); // we need to define our AR module here
276
+ // we are in Safari/Quicklook mode here
277
+
278
+
279
+ if (util_1.Util.isSafari() || util_1.Util.isChromeOnIOS()) {
280
+ // model needs to have either USDZ or REALITY files defined
281
+ // we load REALITY stuff first if available
282
+ if (model.attributes.reality_filename && util_1.Util.canRealityViewer()) {
283
+ _this2._ar = new reality_viewer_1["default"]();
284
+ _this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.reality_filename;
285
+ return accept(_this2);
286
+ } // otherwise, load the USDZ stuff second if available
287
+
288
+
289
+ if (model.attributes.usdz_filename && util_1.Util.canQuicklook()) {
290
+ _this2._ar = new quicklook_viewer_1["default"]();
291
+ _this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.usdz_filename;
292
+ return accept(_this2);
293
+ }
294
+
295
+ return reject(new Error("ModelAR.init() - cannot proceed as ModelFile does not have a defined .usdz or .reality file"));
296
+ } // check android
297
+
298
+
299
+ if (util_1.Util.canSceneViewer()) {
300
+ _this2._ar = new scene_viewer_1["default"]();
301
+ _this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.original_filename;
302
+ return accept(_this2);
303
+ } // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
304
+ // earlier in the process
305
+
306
+
307
+ return reject(new Error("ModelAR.init() - could not initialise AR correctly, check values"));
308
+ })["catch"](reject);
309
+ });
310
+ }
311
+ /**
312
+ * Initialise and launch with a single function call. this is mostly for convenience.
313
+ * Use .init() and .start() separately for fine-grained control
314
+ */
315
+
316
+ }, {
317
+ key: "launch",
318
+ value: function launch() {
319
+ var _this3 = this;
320
+
321
+ return new Promise(function (accept, reject) {
322
+ _this3.init().then(function (value) {
323
+ value.start();
324
+ return accept();
325
+ })["catch"](reject);
326
+ });
327
+ }
328
+ /**
329
+ * Launches the internal AR instance using an appropriate version of AR Viewers
330
+ */
331
+
332
+ }, {
333
+ key: "start",
334
+ value: function start() {
335
+ if (!this._ar) {
336
+ throw new Error("ModelAR.start() - cannot proceed as AR instance is null");
337
+ }
338
+
339
+ var analytics = this._analytics;
340
+
341
+ if (analytics) {
342
+ analytics.data.push("device", this._ar.device);
343
+ analytics.data.push("eventCategory", this._ar.nodeType);
344
+ analytics.data.push("eventAction", "Start Model Augment");
345
+ analytics.write();
346
+ analytics.startRecordEngagement();
347
+ } // this was initialised via the init() function
348
+
349
+
350
+ this._ar.start();
351
+ }
352
+ }, {
353
+ key: "canQuicklook",
354
+ value: function canQuicklook() {
355
+ return this._ar && this._ar.nodeType === "Quick Look" ? true : false;
356
+ }
357
+ }, {
358
+ key: "canRealityViewer",
359
+ value: function canRealityViewer() {
360
+ return this._ar && this._ar.nodeType === "Reality Viewer" ? true : false;
361
+ }
362
+ }, {
363
+ key: "canSceneViewer",
364
+ value: function canSceneViewer() {
365
+ return this._ar && this._ar.nodeType === "Scene Viewer" ? true : false;
366
+ }
367
+ }]);
368
+
369
+ return ModelAR;
370
+ }(launcher_ar_1.LauncherAR);
371
+
372
+ exports.ModelAR = ModelAR;
373
+ }, {
374
+ "../util/util": 8,
375
+ "../viewers/quicklook-viewer": 11,
376
+ "../viewers/reality-viewer": 12,
377
+ "../viewers/scene-viewer": 13,
378
+ "./launcher-ar": 2,
379
+ "@plattar/plattar-analytics": 31,
380
+ "@plattar/plattar-api": 35
381
+ }],
382
+ 4: [function (require, module, exports) {
383
+ "use strict";
384
+
385
+ var __importDefault = this && this.__importDefault || function (mod) {
386
+ return mod && mod.__esModule ? mod : {
387
+ "default": mod
388
+ };
389
+ };
390
+
184
391
  Object.defineProperty(exports, "__esModule", {
185
392
  value: true
186
393
  });
@@ -204,31 +411,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
204
411
  */
205
412
 
206
413
 
207
- var ProductAR = /*#__PURE__*/function (_launcher_ar_1$Launch2) {
208
- _inherits(ProductAR, _launcher_ar_1$Launch2);
414
+ var ProductAR = /*#__PURE__*/function (_launcher_ar_1$Launch3) {
415
+ _inherits(ProductAR, _launcher_ar_1$Launch3);
209
416
 
210
- var _super2 = _createSuper(ProductAR);
417
+ var _super3 = _createSuper(ProductAR);
211
418
 
212
419
  function ProductAR() {
213
- var _this;
420
+ var _this4;
214
421
 
215
422
  var productID = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
216
423
  var variationID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
217
424
 
218
425
  _classCallCheck(this, ProductAR);
219
426
 
220
- _this = _super2.call(this); // analytics instance
427
+ _this4 = _super3.call(this); // analytics instance
221
428
 
222
- _this._analytics = null;
429
+ _this4._analytics = null;
223
430
 
224
431
  if (!productID) {
225
432
  throw new Error("ProductAR.constructor(productID, variationID) - productID must be defined");
226
433
  }
227
434
 
228
- _this._productID = productID;
229
- _this._variationID = variationID ? variationID : "default";
230
- _this._ar = null;
231
- return _this;
435
+ _this4._productID = productID;
436
+ _this4._variationID = variationID ? variationID : "default";
437
+ _this4._ar = null;
438
+ return _this4;
232
439
  }
233
440
 
234
441
  _createClass(ProductAR, [{
@@ -283,21 +490,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
283
490
  }, {
284
491
  key: "init",
285
492
  value: function init() {
286
- var _this2 = this;
493
+ var _this5 = this;
287
494
 
288
495
  return new Promise(function (accept, reject) {
289
496
  if (!util_1.Util.canAugment()) {
290
497
  return reject(new Error("ProductAR.init() - cannot proceed as AR not available in context"));
291
498
  }
292
499
 
293
- var product = new plattar_api_1.Product(_this2.productID);
500
+ var product = new plattar_api_1.Product(_this5.productID);
294
501
  product.include(plattar_api_1.ProductVariation);
295
502
  product.include(plattar_api_1.ProductVariation.include(plattar_api_1.FileModel));
296
503
  product.include(plattar_api_1.Scene);
297
504
  product.include(plattar_api_1.Scene.include(plattar_api_1.Project));
298
505
  product.get().then(function (product) {
299
506
  // find the required variation from our product
300
- var variationID = _this2.variationID ? _this2.variationID === "default" ? product.attributes.product_variation_id : _this2.variationID : product.attributes.product_variation_id;
507
+ var variationID = _this5.variationID ? _this5.variationID === "default" ? product.attributes.product_variation_id : _this5.variationID : product.attributes.product_variation_id;
301
508
 
302
509
  if (!variationID) {
303
510
  return reject(new Error("ProductAR.init() - cannot proceed as variation was not defined correctly"));
@@ -325,7 +532,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
325
532
  return reject(new Error("ProductAR.init() - cannot proceed as ModelFile for selected variation is corrupt"));
326
533
  }
327
534
 
328
- _this2._setupAnalytics(product, variation); // we need to define our AR module here
535
+ _this5._setupAnalytics(product, variation); // we need to define our AR module here
329
536
  // we are in Safari/Quicklook mode here
330
537
 
331
538
 
@@ -333,16 +540,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
333
540
  // model needs to have either USDZ or REALITY files defined
334
541
  // we load REALITY stuff first if available
335
542
  if (model.attributes.reality_filename && util_1.Util.canRealityViewer()) {
336
- _this2._ar = new reality_viewer_1["default"]();
337
- _this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.reality_filename;
338
- return accept(_this2);
543
+ _this5._ar = new reality_viewer_1["default"]();
544
+ _this5._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.reality_filename;
545
+ return accept(_this5);
339
546
  } // otherwise, load the USDZ stuff second if available
340
547
 
341
548
 
342
549
  if (model.attributes.usdz_filename && util_1.Util.canQuicklook()) {
343
- _this2._ar = new quicklook_viewer_1["default"]();
344
- _this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.usdz_filename;
345
- return accept(_this2);
550
+ _this5._ar = new quicklook_viewer_1["default"]();
551
+ _this5._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.usdz_filename;
552
+ return accept(_this5);
346
553
  }
347
554
 
348
555
  return reject(new Error("ProductAR.init() - cannot proceed as ModelFile does not have a defined .usdz or .reality file"));
@@ -350,9 +557,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
350
557
 
351
558
 
352
559
  if (util_1.Util.canSceneViewer()) {
353
- _this2._ar = new scene_viewer_1["default"]();
354
- _this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.original_filename;
355
- return accept(_this2);
560
+ _this5._ar = new scene_viewer_1["default"]();
561
+ _this5._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.original_filename;
562
+ return accept(_this5);
356
563
  } // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
357
564
  // earlier in the process
358
565
 
@@ -369,10 +576,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
369
576
  }, {
370
577
  key: "launch",
371
578
  value: function launch() {
372
- var _this3 = this;
579
+ var _this6 = this;
373
580
 
374
581
  return new Promise(function (accept, reject) {
375
- _this3.init().then(function (value) {
582
+ _this6.init().then(function (value) {
376
583
  value.start();
377
584
  return accept();
378
585
  })["catch"](reject);
@@ -424,15 +631,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
424
631
 
425
632
  exports.ProductAR = ProductAR;
426
633
  }, {
427
- "../util/util": 7,
428
- "../viewers/quicklook-viewer": 10,
429
- "../viewers/reality-viewer": 11,
430
- "../viewers/scene-viewer": 12,
634
+ "../util/util": 8,
635
+ "../viewers/quicklook-viewer": 11,
636
+ "../viewers/reality-viewer": 12,
637
+ "../viewers/scene-viewer": 13,
431
638
  "./launcher-ar": 2,
432
- "@plattar/plattar-analytics": 30,
433
- "@plattar/plattar-api": 34
639
+ "@plattar/plattar-analytics": 31,
640
+ "@plattar/plattar-api": 35
434
641
  }],
435
- 4: [function (require, module, exports) {
642
+ 5: [function (require, module, exports) {
436
643
  "use strict";
437
644
 
438
645
  Object.defineProperty(exports, "__esModule", {
@@ -446,15 +653,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
446
653
  */
447
654
 
448
655
 
449
- var SceneAR = /*#__PURE__*/function (_launcher_ar_1$Launch3) {
450
- _inherits(SceneAR, _launcher_ar_1$Launch3);
656
+ var SceneAR = /*#__PURE__*/function (_launcher_ar_1$Launch4) {
657
+ _inherits(SceneAR, _launcher_ar_1$Launch4);
451
658
 
452
- var _super3 = _createSuper(SceneAR);
659
+ var _super4 = _createSuper(SceneAR);
453
660
 
454
661
  function SceneAR() {
455
662
  _classCallCheck(this, SceneAR);
456
663
 
457
- return _super3.apply(this, arguments);
664
+ return _super4.apply(this, arguments);
458
665
  }
459
666
 
460
667
  _createClass(SceneAR, [{
@@ -481,7 +688,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
481
688
  }, {
482
689
  "./launcher-ar": 2
483
690
  }],
484
- 5: [function (require, module, exports) {
691
+ 6: [function (require, module, exports) {
485
692
  "use strict";
486
693
 
487
694
  Object.defineProperty(exports, "__esModule", {
@@ -491,6 +698,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
491
698
  var plattar_api_1 = require("@plattar/plattar-api");
492
699
 
493
700
  var product_ar_1 = require("../ar/product-ar");
701
+ /**
702
+ * This tracks the current state of the Embed
703
+ */
704
+
705
+
706
+ var EmbedState;
707
+
708
+ (function (EmbedState) {
709
+ EmbedState[EmbedState["None"] = 0] = "None";
710
+ EmbedState[EmbedState["SceneViewer"] = 1] = "SceneViewer";
711
+ EmbedState[EmbedState["ProductViewer"] = 2] = "ProductViewer";
712
+ EmbedState[EmbedState["ProductAR"] = 3] = "ProductAR";
713
+ EmbedState[EmbedState["QRCode"] = 4] = "QRCode";
714
+ })(EmbedState || (EmbedState = {}));
494
715
  /**
495
716
  * This is the primary <plattar-embed /> node that allows easy embedding
496
717
  * of Plattar related content
@@ -500,23 +721,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
500
721
  var PlattarEmbed = /*#__PURE__*/function (_HTMLElement) {
501
722
  _inherits(PlattarEmbed, _HTMLElement);
502
723
 
503
- var _super4 = _createSuper(PlattarEmbed);
724
+ var _super5 = _createSuper(PlattarEmbed);
504
725
 
505
726
  function PlattarEmbed() {
506
- var _this4;
727
+ var _this7;
507
728
 
508
729
  _classCallCheck(this, PlattarEmbed);
509
730
 
510
- _this4 = _super4.call(this);
511
- _this4._sceneID = null;
512
- _this4._productID = null;
513
- _this4._variationID = null;
514
- _this4._isReady = false;
515
- _this4._width = "500px";
516
- _this4._height = "500px";
517
- _this4._server = "production";
518
- _this4._viewer = null;
519
- return _this4;
731
+ _this7 = _super5.call(this); // this is the current state of the embed, none by default
732
+
733
+ _this7._currentState = EmbedState.None;
734
+ _this7._qrCodeOptions = {
735
+ color: "#101721",
736
+ qrType: "default",
737
+ margin: 0
738
+ };
739
+ _this7._sceneID = null;
740
+ _this7._productID = null;
741
+ _this7._variationID = null;
742
+ _this7._isReady = false;
743
+ _this7._width = "500px";
744
+ _this7._height = "500px";
745
+ _this7._server = "production";
746
+ _this7._viewer = null;
747
+ return _this7;
520
748
  }
521
749
 
522
750
  _createClass(PlattarEmbed, [{
@@ -527,8 +755,41 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
527
755
  }, {
528
756
  key: "connectedCallback",
529
757
  value: function connectedCallback() {
530
- var _this5 = this;
758
+ var _this8 = this;
531
759
 
760
+ var observer = new MutationObserver(function (mutations) {
761
+ mutations.forEach(function (mutation) {
762
+ if (mutation.type === "attributes") {
763
+ var sceneID = _this8.hasAttribute("scene-id") ? _this8.getAttribute("scene-id") : null;
764
+ var productID = _this8.hasAttribute("product-id") ? _this8.getAttribute("product-id") : null;
765
+ var variationID = _this8.hasAttribute("variation-id") ? _this8.getAttribute("variation-id") : null;
766
+ var updated = false;
767
+
768
+ if (sceneID !== _this8._sceneID) {
769
+ _this8._sceneID = sceneID;
770
+ updated = true;
771
+ }
772
+
773
+ if (productID !== _this8._productID) {
774
+ _this8._productID = productID;
775
+ updated = true;
776
+ }
777
+
778
+ if (variationID !== _this8._variationID) {
779
+ _this8._variationID = variationID;
780
+ updated = true;
781
+ }
782
+
783
+ if (updated) {
784
+ // re-render based on internal state
785
+ _this8._OnAttributesUpdated();
786
+ }
787
+ }
788
+ });
789
+ });
790
+ observer.observe(this, {
791
+ attributes: true
792
+ });
532
793
  var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
533
794
  plattar_api_1.Server.create(plattar_api_1.Server.match(server || "production"));
534
795
 
@@ -562,33 +823,42 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
562
823
  } else if (init === "ar-fallback-qrcode") {
563
824
  this.startAR().then(function () {// nothing to do, launched successfully
564
825
  })["catch"](function (_err) {
565
- _this5.startQRCode();
826
+ _this8.startQRCode();
566
827
  });
567
828
  } else if (init === "ar-fallback-viewer") {
568
829
  this.startAR().then(function () {// nothing to do, launched successfully
569
830
  })["catch"](function (_err) {
570
- _this5.startViewer();
831
+ _this8.startViewer();
571
832
  });
572
833
  }
573
834
  }
574
835
  }, {
575
836
  key: "initAR",
576
837
  value: function initAR() {
577
- var _this6 = this;
838
+ var _this9 = this;
578
839
 
579
840
  return new Promise(function (accept, reject) {
580
- if (!_this6._isReady) {
841
+ if (!_this9._isReady) {
581
842
  return reject(new Error("PlattarEmbed.initAR() - cannot execute as page has not loaded yet"));
582
843
  } // if scene is not set but product is, then use ProductAR
583
844
 
584
845
 
585
- if (!_this6._sceneID && _this6._productID) {
586
- var product = new product_ar_1.ProductAR(_this6._productID, _this6._variationID);
846
+ if (!_this9._sceneID && _this9._productID) {
847
+ var product = new product_ar_1.ProductAR(_this9._productID, _this9._variationID);
587
848
  return product.init().then(accept)["catch"](reject);
849
+ } // If Product is set (under any scenario) then use ProductAR
850
+ // NOTE: At some point this should check for Scenes when SceneAR
851
+ // is implemented
852
+
853
+
854
+ if (_this9._productID) {
855
+ var _product = new product_ar_1.ProductAR(_this9._productID, _this9._variationID);
856
+
857
+ return _product.init().then(accept)["catch"](reject);
588
858
  } // otherwise, scene was set so use SceneAR
589
859
 
590
860
 
591
- if (_this6._sceneID) {
861
+ if (_this9._sceneID) {
592
862
  return reject(new Error("PlattarEmbed.initAR() - scene-id not yet supported"));
593
863
  }
594
864
 
@@ -598,14 +868,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
598
868
  }, {
599
869
  key: "startAR",
600
870
  value: function startAR() {
601
- var _this7 = this;
871
+ var _this10 = this;
602
872
 
603
873
  return new Promise(function (accept, reject) {
604
- if (!_this7._isReady) {
874
+ if (!_this10._isReady) {
605
875
  return reject(new Error("PlattarEmbed.startAR() - cannot execute as page has not loaded yet"));
606
876
  }
607
877
 
608
- _this7.initAR().then(function (launcher) {
878
+ _this10.initAR().then(function (launcher) {
609
879
  launcher.start();
610
880
  accept();
611
881
  })["catch"](reject);
@@ -614,67 +884,77 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
614
884
  }, {
615
885
  key: "startViewer",
616
886
  value: function startViewer() {
617
- var _this8 = this;
887
+ var _this11 = this;
618
888
 
619
889
  return new Promise(function (accept, reject) {
620
- if (!_this8._isReady) {
890
+ if (!_this11._isReady) {
621
891
  return reject(new Error("PlattarEmbed.startViewer() - cannot execute as page has not loaded yet"));
622
892
  }
623
893
 
624
- if (_this8._viewer) {
625
- _this8._viewer.remove();
894
+ if (_this11._viewer) {
895
+ _this11._viewer.remove();
626
896
 
627
- _this8._viewer = null;
897
+ _this11._viewer = null;
628
898
  } // if scene is set, we use <plattar-viewer /> node from plattar-web
629
899
 
630
900
 
631
- if (_this8._sceneID) {
901
+ if (_this11._sceneID) {
632
902
  var viewer = document.createElement("plattar-viewer");
633
- viewer.setAttribute("width", _this8._width);
634
- viewer.setAttribute("height", _this8._height);
635
- viewer.setAttribute("server", _this8._server);
636
- viewer.setAttribute("scene-id", _this8._sceneID);
903
+ viewer.setAttribute("width", _this11._width);
904
+ viewer.setAttribute("height", _this11._height);
905
+ viewer.setAttribute("server", _this11._server);
906
+ viewer.setAttribute("scene-id", _this11._sceneID);
907
+
908
+ if (_this11._productID) {
909
+ viewer.setAttribute("product-id", _this11._productID);
910
+ }
911
+
912
+ if (_this11._variationID) {
913
+ viewer.setAttribute("variation-id", _this11._variationID);
914
+ }
637
915
 
638
916
  viewer.onload = function () {
639
917
  return accept(viewer);
640
918
  };
641
919
 
642
- var shadow = _this8.shadowRoot || _this8.attachShadow({
920
+ var shadow = _this11.shadowRoot || _this11.attachShadow({
643
921
  mode: 'open'
644
922
  });
645
923
 
646
924
  shadow.append(viewer);
647
- _this8._viewer = viewer;
925
+ _this11._viewer = viewer;
926
+ _this11._currentState = EmbedState.SceneViewer;
648
927
  return;
649
928
  } // if product is set, we use <plattar-product /> node from plattar-web
650
929
 
651
930
 
652
- if (_this8._productID) {
931
+ if (_this11._productID) {
653
932
  var _viewer = document.createElement("plattar-product");
654
933
 
655
- _viewer.setAttribute("width", _this8._width);
934
+ _viewer.setAttribute("width", _this11._width);
656
935
 
657
- _viewer.setAttribute("height", _this8._height);
936
+ _viewer.setAttribute("height", _this11._height);
658
937
 
659
- _viewer.setAttribute("server", _this8._server);
938
+ _viewer.setAttribute("server", _this11._server);
660
939
 
661
- _viewer.setAttribute("product-id", _this8._productID);
940
+ _viewer.setAttribute("product-id", _this11._productID);
662
941
 
663
- if (_this8._variationID) {
664
- _viewer.setAttribute("variation-id", _this8._variationID);
942
+ if (_this11._variationID) {
943
+ _viewer.setAttribute("variation-id", _this11._variationID);
665
944
  }
666
945
 
667
946
  _viewer.onload = function () {
668
947
  return accept(_viewer);
669
948
  };
670
949
 
671
- var _shadow = _this8.shadowRoot || _this8.attachShadow({
950
+ var _shadow = _this11.shadowRoot || _this11.attachShadow({
672
951
  mode: 'open'
673
952
  });
674
953
 
675
954
  _shadow.append(_viewer);
676
955
 
677
- _this8._viewer = _viewer;
956
+ _this11._viewer = _viewer;
957
+ _this11._currentState = EmbedState.ProductViewer;
678
958
  return;
679
959
  }
680
960
 
@@ -684,31 +964,29 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
684
964
  }, {
685
965
  key: "startQRCode",
686
966
  value: function startQRCode() {
687
- var _this9 = this;
967
+ var _this12 = this;
688
968
 
689
969
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
690
970
  return new Promise(function (accept, reject) {
691
- if (!_this9._isReady) {
971
+ if (!_this12._isReady) {
692
972
  return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as page has not loaded yet"));
693
973
  }
694
974
 
695
- var opt = options || {
696
- color: "#101721",
697
- qrType: "default",
698
- margin: 0
699
- };
975
+ var opt = options || _this12._qrCodeOptions; // reset instance for later use
700
976
 
701
- if (_this9._viewer) {
702
- _this9._viewer.remove();
977
+ _this12._qrCodeOptions = opt;
703
978
 
704
- _this9._viewer = null;
979
+ if (_this12._viewer) {
980
+ _this12._viewer.remove();
981
+
982
+ _this12._viewer = null;
705
983
  } // if scene is set, we embed a QR code that takes us to viewer.html
706
984
 
707
985
 
708
- if (_this9._sceneID) {
986
+ if (_this12._sceneID) {
709
987
  var viewer = document.createElement("plattar-qrcode");
710
- viewer.setAttribute("width", _this9._width);
711
- viewer.setAttribute("height", _this9._height);
988
+ viewer.setAttribute("width", _this12._width);
989
+ viewer.setAttribute("height", _this12._height);
712
990
 
713
991
  if (opt.color) {
714
992
  viewer.setAttribute("color", opt.color);
@@ -722,7 +1000,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
722
1000
  viewer.setAttribute("qr-type", opt.qrType);
723
1001
  }
724
1002
 
725
- var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this9._sceneID;
1003
+ var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this12._sceneID;
1004
+
1005
+ if (_this12._productID) {
1006
+ dst += "&productId=" + _this12._productID;
1007
+ }
1008
+
1009
+ if (_this12._variationID) {
1010
+ dst += "&variationId=" + _this12._variationID;
1011
+ }
726
1012
 
727
1013
  viewer.setAttribute("url", dst);
728
1014
 
@@ -730,22 +1016,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
730
1016
  return accept(viewer);
731
1017
  };
732
1018
 
733
- var shadow = _this9.shadowRoot || _this9.attachShadow({
1019
+ var shadow = _this12.shadowRoot || _this12.attachShadow({
734
1020
  mode: 'open'
735
1021
  });
736
1022
 
737
1023
  shadow.append(viewer);
738
- _this9._viewer = viewer;
1024
+ _this12._viewer = viewer;
1025
+ _this12._currentState = EmbedState.QRCode;
739
1026
  return;
740
1027
  } // if product is set, we embed a QR code that takes us to product.html
741
1028
 
742
1029
 
743
- if (_this9._productID) {
1030
+ if (_this12._productID) {
744
1031
  var _viewer2 = document.createElement("plattar-qrcode");
745
1032
 
746
- _viewer2.setAttribute("width", _this9._width);
1033
+ _viewer2.setAttribute("width", _this12._width);
747
1034
 
748
- _viewer2.setAttribute("height", _this9._height);
1035
+ _viewer2.setAttribute("height", _this12._height);
749
1036
 
750
1037
  if (opt.color) {
751
1038
  _viewer2.setAttribute("color", opt.color);
@@ -759,10 +1046,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
759
1046
  _viewer2.setAttribute("qr-type", opt.qrType);
760
1047
  }
761
1048
 
762
- var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this9._productID;
1049
+ var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this12._productID;
763
1050
 
764
- if (_this9._variationID) {
765
- _dst += "&variation_id=" + _this9._variationID;
1051
+ if (_this12._variationID) {
1052
+ _dst += "&variation_id=" + _this12._variationID;
766
1053
  }
767
1054
 
768
1055
  _viewer2.setAttribute("url", _dst);
@@ -771,19 +1058,60 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
771
1058
  return accept(_viewer2);
772
1059
  };
773
1060
 
774
- var _shadow2 = _this9.shadowRoot || _this9.attachShadow({
1061
+ var _shadow2 = _this12.shadowRoot || _this12.attachShadow({
775
1062
  mode: 'open'
776
1063
  });
777
1064
 
778
1065
  _shadow2.append(_viewer2);
779
1066
 
780
- _this9._viewer = _viewer2;
1067
+ _this12._viewer = _viewer2;
1068
+ _this12._currentState = EmbedState.QRCode;
781
1069
  return;
782
1070
  }
783
1071
 
784
1072
  return reject(new Error("PlattarEmbed.startQRCode() - minimum required attributes not set, use scene-id or product-id as a minimum"));
785
1073
  });
786
1074
  }
1075
+ /**
1076
+ * This is called by the observer if any of the embed attributes have changed
1077
+ * based on the state of the embed, we update the internal structure accordingly
1078
+ */
1079
+
1080
+ }, {
1081
+ key: "_OnAttributesUpdated",
1082
+ value: function _OnAttributesUpdated() {
1083
+ // nothing to update in these scenarios
1084
+ if (this._currentState === EmbedState.None || this._currentState === EmbedState.ProductAR) {
1085
+ return;
1086
+ } // re-render the QR Code when attributes have changed
1087
+
1088
+
1089
+ if (this._currentState === EmbedState.QRCode) {
1090
+ this.startQRCode(this._qrCodeOptions);
1091
+ return;
1092
+ } // use the messenger function to change variation when attributes have changed
1093
+
1094
+
1095
+ if (this._currentState === EmbedState.SceneViewer) {
1096
+ var viewer = this.viewer;
1097
+
1098
+ if (viewer) {
1099
+ viewer.messenger.selectVariation(this._productID, this._variationID);
1100
+ }
1101
+
1102
+ return;
1103
+ }
1104
+
1105
+ if (this._currentState === EmbedState.ProductViewer) {
1106
+ var _viewer3 = this.viewer;
1107
+
1108
+ if (_viewer3) {
1109
+ _viewer3.messenger.selectVariation(this._variationID);
1110
+ }
1111
+
1112
+ return;
1113
+ }
1114
+ }
787
1115
  }]);
788
1116
 
789
1117
  return PlattarEmbed;
@@ -791,10 +1119,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
791
1119
 
792
1120
  exports["default"] = PlattarEmbed;
793
1121
  }, {
794
- "../ar/product-ar": 3,
795
- "@plattar/plattar-api": 34
1122
+ "../ar/product-ar": 4,
1123
+ "@plattar/plattar-api": 35
796
1124
  }],
797
- 6: [function (require, module, exports) {
1125
+ 7: [function (require, module, exports) {
798
1126
  "use strict";
799
1127
 
800
1128
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -840,7 +1168,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
840
1168
  Object.defineProperty(exports, "__esModule", {
841
1169
  value: true
842
1170
  });
843
- exports.Util = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
1171
+ exports.Util = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
844
1172
  exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
845
1173
  exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
846
1174
  exports.version = __importStar(require("./version"));
@@ -872,6 +1200,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
872
1200
  }
873
1201
  });
874
1202
 
1203
+ var model_ar_1 = require("./ar/model-ar");
1204
+
1205
+ Object.defineProperty(exports, "ModelAR", {
1206
+ enumerable: true,
1207
+ get: function get() {
1208
+ return model_ar_1.ModelAR;
1209
+ }
1210
+ });
1211
+
875
1212
  var util_1 = require("./util/util");
876
1213
 
877
1214
  Object.defineProperty(exports, "Util", {
@@ -886,21 +1223,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
886
1223
  var version_1 = __importDefault(require("./version"));
887
1224
 
888
1225
  if (customElements) {
889
- customElements.define("plattar-embed", plattar_embed_1["default"]);
1226
+ if (customElements.get("plattar-embed") === undefined) {
1227
+ customElements.define("plattar-embed", plattar_embed_1["default"]);
1228
+ }
890
1229
  }
891
1230
 
892
1231
  console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
893
1232
  }, {
894
1233
  "./ar/configurator-ar": 1,
895
- "./ar/product-ar": 3,
896
- "./ar/scene-ar": 4,
897
- "./embed/plattar-embed": 5,
898
- "./util/util": 7,
899
- "./version": 8,
900
- "@plattar/plattar-qrcode": 100,
901
- "@plattar/plattar-web": 113
1234
+ "./ar/model-ar": 3,
1235
+ "./ar/product-ar": 4,
1236
+ "./ar/scene-ar": 5,
1237
+ "./embed/plattar-embed": 6,
1238
+ "./util/util": 8,
1239
+ "./version": 9,
1240
+ "@plattar/plattar-qrcode": 101,
1241
+ "@plattar/plattar-web": 114
902
1242
  }],
903
- 7: [function (require, module, exports) {
1243
+ 8: [function (require, module, exports) {
904
1244
  "use strict";
905
1245
 
906
1246
  Object.defineProperty(exports, "__esModule", {
@@ -1024,31 +1364,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1024
1364
 
1025
1365
  exports.Util = Util;
1026
1366
  }, {}],
1027
- 8: [function (require, module, exports) {
1367
+ 9: [function (require, module, exports) {
1028
1368
  "use strict";
1029
1369
 
1030
1370
  Object.defineProperty(exports, "__esModule", {
1031
1371
  value: true
1032
1372
  });
1033
- exports["default"] = "1.120.1";
1373
+ exports["default"] = "1.122.2";
1034
1374
  }, {}],
1035
- 9: [function (require, module, exports) {
1375
+ 10: [function (require, module, exports) {
1036
1376
  "use strict";
1037
1377
 
1038
1378
  Object.defineProperty(exports, "__esModule", {
1039
1379
  value: true
1040
1380
  });
1041
1381
 
1042
- var ARViewer = function ARViewer() {
1382
+ var ARViewer = /*#__PURE__*/_createClass(function ARViewer() {
1043
1383
  _classCallCheck(this, ARViewer);
1044
1384
 
1045
1385
  this.modelUrl = null;
1046
1386
  this.modelUrl = null;
1047
- };
1387
+ });
1048
1388
 
1049
1389
  exports["default"] = ARViewer;
1050
1390
  }, {}],
1051
- 10: [function (require, module, exports) {
1391
+ 11: [function (require, module, exports) {
1052
1392
  "use strict";
1053
1393
 
1054
1394
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1066,20 +1406,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1066
1406
  var QuicklookViewer = /*#__PURE__*/function (_ar_viewer_1$default) {
1067
1407
  _inherits(QuicklookViewer, _ar_viewer_1$default);
1068
1408
 
1069
- var _super5 = _createSuper(QuicklookViewer);
1409
+ var _super6 = _createSuper(QuicklookViewer);
1070
1410
 
1071
1411
  function QuicklookViewer() {
1072
- var _this10;
1412
+ var _this13;
1073
1413
 
1074
1414
  _classCallCheck(this, QuicklookViewer);
1075
1415
 
1076
- _this10 = _super5.call(this);
1077
- _this10.araction = null;
1078
- _this10.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
1416
+ _this13 = _super6.call(this);
1417
+ _this13.araction = null;
1418
+ _this13.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
1079
1419
 
1080
- _this10.arcallback = function () {};
1420
+ _this13.arcallback = function () {};
1081
1421
 
1082
- return _this10;
1422
+ return _this13;
1083
1423
  }
1084
1424
 
1085
1425
  _createClass(QuicklookViewer, [{
@@ -1095,7 +1435,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1095
1435
  }, {
1096
1436
  key: "start",
1097
1437
  value: function start() {
1098
- var _this11 = this;
1438
+ var _this14 = this;
1099
1439
 
1100
1440
  if (!this.modelUrl) {
1101
1441
  throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
@@ -1110,7 +1450,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1110
1450
  if (araction) {
1111
1451
  var handleQuicklook = function handleQuicklook(event) {
1112
1452
  if (event.data === "_apple_ar_quicklook_button_tapped") {
1113
- _this11.arcallback();
1453
+ _this14.arcallback();
1114
1454
  }
1115
1455
 
1116
1456
  document.body.removeChild(anchor);
@@ -1136,9 +1476,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1136
1476
 
1137
1477
  exports["default"] = QuicklookViewer;
1138
1478
  }, {
1139
- "./ar-viewer": 9
1479
+ "./ar-viewer": 10
1140
1480
  }],
1141
- 11: [function (require, module, exports) {
1481
+ 12: [function (require, module, exports) {
1142
1482
  "use strict";
1143
1483
 
1144
1484
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1156,12 +1496,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1156
1496
  var RealityViewer = /*#__PURE__*/function (_ar_viewer_1$default2) {
1157
1497
  _inherits(RealityViewer, _ar_viewer_1$default2);
1158
1498
 
1159
- var _super6 = _createSuper(RealityViewer);
1499
+ var _super7 = _createSuper(RealityViewer);
1160
1500
 
1161
1501
  function RealityViewer() {
1162
1502
  _classCallCheck(this, RealityViewer);
1163
1503
 
1164
- return _super6.call(this);
1504
+ return _super7.call(this);
1165
1505
  }
1166
1506
 
1167
1507
  _createClass(RealityViewer, [{
@@ -1194,9 +1534,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1194
1534
 
1195
1535
  exports["default"] = RealityViewer;
1196
1536
  }, {
1197
- "./ar-viewer": 9
1537
+ "./ar-viewer": 10
1198
1538
  }],
1199
- 12: [function (require, module, exports) {
1539
+ 13: [function (require, module, exports) {
1200
1540
  "use strict";
1201
1541
 
1202
1542
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1214,19 +1554,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1214
1554
  var SceneViewer = /*#__PURE__*/function (_ar_viewer_1$default3) {
1215
1555
  _inherits(SceneViewer, _ar_viewer_1$default3);
1216
1556
 
1217
- var _super7 = _createSuper(SceneViewer);
1557
+ var _super8 = _createSuper(SceneViewer);
1218
1558
 
1219
1559
  function SceneViewer() {
1220
- var _this12;
1560
+ var _this15;
1221
1561
 
1222
1562
  _classCallCheck(this, SceneViewer);
1223
1563
 
1224
- _this12 = _super7.call(this);
1225
- _this12.araction = null;
1226
- _this12.isVertical = false;
1227
- _this12.titleHTML = "<b>" + document.title;
1228
- _this12.isVertical = false;
1229
- return _this12;
1564
+ _this15 = _super8.call(this);
1565
+ _this15.araction = null;
1566
+ _this15.isVertical = false;
1567
+ _this15.titleHTML = "<b>" + document.title;
1568
+ _this15.isVertical = false;
1569
+ return _this15;
1230
1570
  }
1231
1571
 
1232
1572
  _createClass(SceneViewer, [{
@@ -1283,9 +1623,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1283
1623
 
1284
1624
  exports["default"] = SceneViewer;
1285
1625
  }, {
1286
- "./ar-viewer": 9
1626
+ "./ar-viewer": 10
1287
1627
  }],
1288
- 13: [function (require, module, exports) {
1628
+ 14: [function (require, module, exports) {
1289
1629
  "use strict";
1290
1630
 
1291
1631
  var Messenger = require("./messenger/messenger.js");
@@ -1321,12 +1661,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1321
1661
  version: Version
1322
1662
  };
1323
1663
  }, {
1324
- "./memory/memory.js": 14,
1325
- "./messenger/global-event-handler.js": 21,
1326
- "./messenger/messenger.js": 22,
1327
- "./version": 27
1664
+ "./memory/memory.js": 15,
1665
+ "./messenger/global-event-handler.js": 22,
1666
+ "./messenger/messenger.js": 23,
1667
+ "./version": 28
1328
1668
  }],
1329
- 14: [function (require, module, exports) {
1669
+ 15: [function (require, module, exports) {
1330
1670
  var PermanentMemory = require("./permanent-memory");
1331
1671
 
1332
1672
  var TemporaryMemory = require("./temporary-memory");
@@ -1338,7 +1678,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1338
1678
 
1339
1679
  var Memory = /*#__PURE__*/function () {
1340
1680
  function Memory(messengerInstance) {
1341
- var _this13 = this;
1681
+ var _this16 = this;
1342
1682
 
1343
1683
  _classCallCheck(this, Memory);
1344
1684
 
@@ -1347,11 +1687,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1347
1687
  this._permMemory = new PermanentMemory(messengerInstance);
1348
1688
 
1349
1689
  this._messenger.self.__memory__set_temp_var = function (name, data) {
1350
- _this13._tempMemory[name] = data;
1690
+ _this16._tempMemory[name] = data;
1351
1691
  };
1352
1692
 
1353
1693
  this._messenger.self.__memory__set_perm_var = function (name, data) {
1354
- _this13._permMemory[name] = data;
1694
+ _this16._permMemory[name] = data;
1355
1695
  };
1356
1696
  }
1357
1697
 
@@ -1372,13 +1712,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1372
1712
 
1373
1713
  module.exports = Memory;
1374
1714
  }, {
1375
- "./permanent-memory": 15,
1376
- "./temporary-memory": 16
1715
+ "./permanent-memory": 16,
1716
+ "./temporary-memory": 17
1377
1717
  }],
1378
- 15: [function (require, module, exports) {
1718
+ 16: [function (require, module, exports) {
1379
1719
  var WrappedValue = require("./wrapped-value");
1380
1720
 
1381
- var PermanentMemory = function PermanentMemory(messengerInstance) {
1721
+ var PermanentMemory = /*#__PURE__*/_createClass(function PermanentMemory(messengerInstance) {
1382
1722
  _classCallCheck(this, PermanentMemory);
1383
1723
 
1384
1724
  return new Proxy(this, {
@@ -1469,16 +1809,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1469
1809
  return true;
1470
1810
  }
1471
1811
  });
1472
- };
1812
+ });
1473
1813
 
1474
1814
  module.exports = PermanentMemory;
1475
1815
  }, {
1476
- "./wrapped-value": 17
1816
+ "./wrapped-value": 18
1477
1817
  }],
1478
- 16: [function (require, module, exports) {
1818
+ 17: [function (require, module, exports) {
1479
1819
  var WrappedValue = require("./wrapped-value");
1480
1820
 
1481
- var TemporaryMemory = function TemporaryMemory(messengerInstance) {
1821
+ var TemporaryMemory = /*#__PURE__*/_createClass(function TemporaryMemory(messengerInstance) {
1482
1822
  _classCallCheck(this, TemporaryMemory);
1483
1823
 
1484
1824
  return new Proxy(this, {
@@ -1548,13 +1888,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1548
1888
  return true;
1549
1889
  }
1550
1890
  });
1551
- };
1891
+ });
1552
1892
 
1553
1893
  module.exports = TemporaryMemory;
1554
1894
  }, {
1555
- "./wrapped-value": 17
1895
+ "./wrapped-value": 18
1556
1896
  }],
1557
- 17: [function (require, module, exports) {
1897
+ 18: [function (require, module, exports) {
1558
1898
  /**
1559
1899
  * WrappedValue represents a generic value type with a callback function
1560
1900
  * for when the value has changed
@@ -1672,7 +2012,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1672
2012
 
1673
2013
  module.exports = WrappedValue;
1674
2014
  }, {}],
1675
- 18: [function (require, module, exports) {
2015
+ 19: [function (require, module, exports) {
1676
2016
  /**
1677
2017
  * Broadcaster is used to call functions in multiple contexts at the
1678
2018
  * same time. This can be useful without having to handle complex logic
@@ -1739,10 +2079,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1739
2079
 
1740
2080
  module.exports = Broadcaster;
1741
2081
  }, {}],
1742
- 19: [function (require, module, exports) {
2082
+ 20: [function (require, module, exports) {
1743
2083
  var WrappedFunction = require("./wrapped-local-function");
1744
2084
 
1745
- var CurrentFunctionList = function CurrentFunctionList() {
2085
+ var CurrentFunctionList = /*#__PURE__*/_createClass(function CurrentFunctionList() {
1746
2086
  _classCallCheck(this, CurrentFunctionList);
1747
2087
 
1748
2088
  return new Proxy(this, {
@@ -1798,13 +2138,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1798
2138
  return true;
1799
2139
  }
1800
2140
  });
1801
- };
2141
+ });
1802
2142
 
1803
2143
  module.exports = CurrentFunctionList;
1804
2144
  }, {
1805
- "./wrapped-local-function": 20
2145
+ "./wrapped-local-function": 21
1806
2146
  }],
1807
- 20: [function (require, module, exports) {
2147
+ 21: [function (require, module, exports) {
1808
2148
  var Util = require("../util/util.js");
1809
2149
  /**
1810
2150
  * WrappedLocalFunction represents a container that holds and maintains a specific function
@@ -1849,20 +2189,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1849
2189
  }, {
1850
2190
  key: "exec",
1851
2191
  value: function exec() {
1852
- var _this14 = this;
2192
+ var _this17 = this;
1853
2193
 
1854
2194
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1855
2195
  args[_key3] = arguments[_key3];
1856
2196
  }
1857
2197
 
1858
2198
  return new Promise(function (accept, reject) {
1859
- if (!_this14._value) {
1860
- return reject(new Error("WrappedLocalFunction.exec() function with name " + _this14._funcName + "() is not defined"));
2199
+ if (!_this17._value) {
2200
+ return reject(new Error("WrappedLocalFunction.exec() function with name " + _this17._funcName + "() is not defined"));
1861
2201
  }
1862
2202
 
1863
2203
  try {
1864
2204
  // otherwise execute the function
1865
- var rObject = _this14._execute.apply(_this14, args); // we need to check if the returned object is a Promise, if so, handle it
2205
+ var rObject = _this17._execute.apply(_this17, args); // we need to check if the returned object is a Promise, if so, handle it
1866
2206
  // differently. This can happen if the function wants to execute asyn
1867
2207
 
1868
2208
 
@@ -1914,9 +2254,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1914
2254
 
1915
2255
  module.exports = WrappedLocalFunction;
1916
2256
  }, {
1917
- "../util/util.js": 26
2257
+ "../util/util.js": 27
1918
2258
  }],
1919
- 21: [function (require, module, exports) {
2259
+ 22: [function (require, module, exports) {
1920
2260
  var RemoteInterface = require("./remote-interface.js");
1921
2261
  /**
1922
2262
  * This is a singleton class that handles events on a global basis. Allows
@@ -1926,7 +2266,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1926
2266
 
1927
2267
  var GlobalEventHandler = /*#__PURE__*/function () {
1928
2268
  function GlobalEventHandler() {
1929
- var _this15 = this;
2269
+ var _this18 = this;
1930
2270
 
1931
2271
  _classCallCheck(this, GlobalEventHandler);
1932
2272
 
@@ -1948,10 +2288,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1948
2288
 
1949
2289
  if (jsonData && jsonData.event && jsonData.data) {
1950
2290
  // see if there are any listeners for this
1951
- if (_this15._eventListeners[jsonData.event]) {
2291
+ if (_this18._eventListeners[jsonData.event]) {
1952
2292
  var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
1953
2293
 
1954
- _this15._eventListeners[jsonData.event].forEach(function (callback) {
2294
+ _this18._eventListeners[jsonData.event].forEach(function (callback) {
1955
2295
  try {
1956
2296
  callback(remoteInterface, jsonData.data);
1957
2297
  } catch (e) {
@@ -2008,9 +2348,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2008
2348
 
2009
2349
  module.exports = GlobalEventHandler;
2010
2350
  }, {
2011
- "./remote-interface.js": 23
2351
+ "./remote-interface.js": 24
2012
2352
  }],
2013
- 22: [function (require, module, exports) {
2353
+ 23: [function (require, module, exports) {
2014
2354
  var CurrentFunctionList = require("./current/current-function-list");
2015
2355
 
2016
2356
  var RemoteInterface = require("./remote-interface");
@@ -2147,40 +2487,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2147
2487
  }, {
2148
2488
  key: "_registerListeners",
2149
2489
  value: function _registerListeners() {
2150
- var _this16 = this;
2490
+ var _this19 = this;
2151
2491
 
2152
2492
  GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
2153
2493
  var iframeID = src.id; // check reserved key list
2154
2494
 
2155
2495
  switch (iframeID) {
2156
2496
  case undefined:
2157
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID cannot be undefined");
2497
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID cannot be undefined");
2158
2498
 
2159
2499
  case "self":
2160
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2500
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2161
2501
 
2162
2502
  case "parent":
2163
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2503
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2164
2504
 
2165
2505
  case "id":
2166
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2506
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2167
2507
 
2168
2508
  case "onload":
2169
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2509
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2170
2510
 
2171
2511
  default:
2172
2512
  break;
2173
2513
  } // initialise the child iframe as a messenger pipe
2174
2514
 
2175
2515
 
2176
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2516
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2177
2517
 
2178
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2518
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2179
2519
 
2180
2520
 
2181
- _this16._broadcaster._push(iframeID);
2521
+ _this19._broadcaster._push(iframeID);
2182
2522
 
2183
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2523
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2184
2524
 
2185
2525
  if (callbacks.has(iframeID)) {
2186
2526
  var array = callbacks.get(iframeID);
@@ -2204,33 +2544,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2204
2544
 
2205
2545
  switch (iframeID) {
2206
2546
  case undefined:
2207
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID cannot be undefined");
2547
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID cannot be undefined");
2208
2548
 
2209
2549
  case "self":
2210
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2550
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2211
2551
 
2212
2552
  case "parent":
2213
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2553
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2214
2554
 
2215
2555
  case "id":
2216
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2556
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2217
2557
 
2218
2558
  case "onload":
2219
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2559
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2220
2560
 
2221
2561
  default:
2222
2562
  break;
2223
2563
  } // initialise the child iframe as a messenger pipe
2224
2564
 
2225
2565
 
2226
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2566
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2227
2567
 
2228
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2568
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2229
2569
 
2230
2570
 
2231
- _this16._broadcaster._push(iframeID);
2571
+ _this19._broadcaster._push(iframeID);
2232
2572
 
2233
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2573
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2234
2574
 
2235
2575
  if (callbacks.has(iframeID)) {
2236
2576
  var array = callbacks.get(iframeID);
@@ -2250,11 +2590,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2250
2590
  });
2251
2591
  GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
2252
2592
  var iframeID = "parent";
2253
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2593
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2254
2594
 
2255
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin));
2595
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin));
2256
2596
 
2257
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2597
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2258
2598
 
2259
2599
  if (callbacks.has(iframeID)) {
2260
2600
  var array = callbacks.get(iframeID);
@@ -2279,11 +2619,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2279
2619
 
2280
2620
  GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
2281
2621
  var iframeID = "parent";
2282
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2622
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2283
2623
 
2284
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin));
2624
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin));
2285
2625
 
2286
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2626
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2287
2627
 
2288
2628
  if (callbacks.has(iframeID)) {
2289
2629
  var array = callbacks.get(iframeID);
@@ -2339,14 +2679,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2339
2679
 
2340
2680
  module.exports = Messenger;
2341
2681
  }, {
2342
- "./broadcaster.js": 18,
2343
- "./current/current-function-list": 19,
2344
- "./global-event-handler.js": 21,
2345
- "./remote-interface": 23,
2346
- "./remote/remote-function-list": 24,
2347
- "./util/util.js": 26
2682
+ "./broadcaster.js": 19,
2683
+ "./current/current-function-list": 20,
2684
+ "./global-event-handler.js": 22,
2685
+ "./remote-interface": 24,
2686
+ "./remote/remote-function-list": 25,
2687
+ "./util/util.js": 27
2348
2688
  }],
2349
- 23: [function (require, module, exports) {
2689
+ 24: [function (require, module, exports) {
2350
2690
  /**
2351
2691
  * Provides a single useful interface for performing remote function calls
2352
2692
  */
@@ -2418,7 +2758,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2418
2758
 
2419
2759
  module.exports = RemoteInterface;
2420
2760
  }, {}],
2421
- 24: [function (require, module, exports) {
2761
+ 25: [function (require, module, exports) {
2422
2762
  var WrappedFunction = require("./wrapped-remote-function");
2423
2763
 
2424
2764
  var RemoteFunctionList = /*#__PURE__*/function () {
@@ -2506,9 +2846,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2506
2846
 
2507
2847
  module.exports = RemoteFunctionList;
2508
2848
  }, {
2509
- "./wrapped-remote-function": 25
2849
+ "./wrapped-remote-function": 26
2510
2850
  }],
2511
- 25: [function (require, module, exports) {
2851
+ 26: [function (require, module, exports) {
2512
2852
  var Util = require("../util/util.js");
2513
2853
 
2514
2854
  var GlobalEventHandler = require("../global-event-handler.js");
@@ -2521,7 +2861,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2521
2861
 
2522
2862
  var WrappedRemoteFunction = /*#__PURE__*/function () {
2523
2863
  function WrappedRemoteFunction(funcName, remoteInterface) {
2524
- var _this17 = this;
2864
+ var _this20 = this;
2525
2865
 
2526
2866
  _classCallCheck(this, WrappedRemoteFunction);
2527
2867
 
@@ -2532,19 +2872,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2532
2872
  GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
2533
2873
  var instanceID = data.instance_id; // the function name must match
2534
2874
 
2535
- if (data.function_name !== _this17._funcName) {
2875
+ if (data.function_name !== _this20._funcName) {
2536
2876
  return;
2537
2877
  } // the instance ID must be found, otherwise this is a rogue execution
2538
2878
  // that can be ignored (should not happen)
2539
2879
 
2540
2880
 
2541
- if (!_this17._callInstances[instanceID]) {
2881
+ if (!_this20._callInstances[instanceID]) {
2542
2882
  return;
2543
2883
  }
2544
2884
 
2545
- var promise = _this17._callInstances[instanceID]; // remove the old instance
2885
+ var promise = _this20._callInstances[instanceID]; // remove the old instance
2546
2886
 
2547
- delete _this17._callInstances[instanceID]; // perform the promise callbacks
2887
+ delete _this20._callInstances[instanceID]; // perform the promise callbacks
2548
2888
 
2549
2889
  if (data.function_status === "success") {
2550
2890
  promise.accept(data.function_args);
@@ -2561,7 +2901,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2561
2901
  _createClass(WrappedRemoteFunction, [{
2562
2902
  key: "exec",
2563
2903
  value: function exec() {
2564
- var _this18 = this;
2904
+ var _this21 = this;
2565
2905
 
2566
2906
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2567
2907
  args[_key4] = arguments[_key4];
@@ -2581,14 +2921,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2581
2921
 
2582
2922
  return new Promise(function (accept, reject) {
2583
2923
  // save this promise to be executed later
2584
- _this18._callInstances[instanceID] = {
2924
+ _this21._callInstances[instanceID] = {
2585
2925
  accept: accept,
2586
2926
  reject: reject
2587
2927
  }; // execute this event in another context
2588
2928
 
2589
- _this18._remoteInterface.send("__messenger__exec_fnc", {
2929
+ _this21._remoteInterface.send("__messenger__exec_fnc", {
2590
2930
  instance_id: instanceID,
2591
- function_name: _this18._funcName,
2931
+ function_name: _this21._funcName,
2592
2932
  function_args: args
2593
2933
  });
2594
2934
  });
@@ -2600,10 +2940,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2600
2940
 
2601
2941
  module.exports = WrappedRemoteFunction;
2602
2942
  }, {
2603
- "../global-event-handler.js": 21,
2604
- "../util/util.js": 26
2943
+ "../global-event-handler.js": 22,
2944
+ "../util/util.js": 27
2605
2945
  }],
2606
- 26: [function (require, module, exports) {
2946
+ 27: [function (require, module, exports) {
2607
2947
  var Util = /*#__PURE__*/function () {
2608
2948
  function Util() {
2609
2949
  _classCallCheck(this, Util);
@@ -2643,10 +2983,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2643
2983
 
2644
2984
  module.exports = Util;
2645
2985
  }, {}],
2646
- 27: [function (require, module, exports) {
2986
+ 28: [function (require, module, exports) {
2647
2987
  module.exports = "1.113.6";
2648
2988
  }, {}],
2649
- 28: [function (require, module, exports) {
2989
+ 29: [function (require, module, exports) {
2650
2990
  "use strict";
2651
2991
 
2652
2992
  Object.defineProperty(exports, "__esModule", {
@@ -2715,9 +3055,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2715
3055
 
2716
3056
  exports.AnalyticsData = AnalyticsData;
2717
3057
  }, {
2718
- "../util/util": 32
3058
+ "../util/util": 33
2719
3059
  }],
2720
- 29: [function (require, module, exports) {
3060
+ 30: [function (require, module, exports) {
2721
3061
  "use strict";
2722
3062
 
2723
3063
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -2737,7 +3077,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2737
3077
 
2738
3078
  var Analytics = /*#__PURE__*/function () {
2739
3079
  function Analytics(applicationID) {
2740
- var _this19 = this;
3080
+ var _this22 = this;
2741
3081
 
2742
3082
  _classCallCheck(this, Analytics);
2743
3083
 
@@ -2754,21 +3094,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2754
3094
 
2755
3095
  this._handlePageHide = function () {
2756
3096
  if (document.visibilityState === "hidden") {
2757
- _this19._pageTime = new Date();
2758
- } else if (_this19._pageTime) {
3097
+ _this22._pageTime = new Date();
3098
+ } else if (_this22._pageTime) {
2759
3099
  var time2 = new Date();
2760
3100
 
2761
- var diff = time2.getTime() - _this19._pageTime.getTime();
3101
+ var diff = time2.getTime() - _this22._pageTime.getTime();
2762
3102
 
2763
- var data = _this19.data;
3103
+ var data = _this22.data;
2764
3104
  data.push("eventAction", "View Time");
2765
3105
  data.push("viewTime", diff);
2766
3106
  data.push("eventLabel", diff);
2767
3107
 
2768
- _this19.write();
3108
+ _this22.write();
2769
3109
 
2770
- _this19._pageTime = null;
2771
- document.removeEventListener("visibilitychange", _this19._handlePageHide, false);
3110
+ _this22._pageTime = null;
3111
+ document.removeEventListener("visibilitychange", _this22._handlePageHide, false);
2772
3112
  }
2773
3113
  };
2774
3114
  }
@@ -2776,7 +3116,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2776
3116
  _createClass(Analytics, [{
2777
3117
  key: "query",
2778
3118
  value: function query() {
2779
- var _this20 = this;
3119
+ var _this23 = this;
2780
3120
 
2781
3121
  var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
2782
3122
 
@@ -2785,11 +3125,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2785
3125
  return reject(new Error("Analytics.query() - provided query was null"));
2786
3126
  }
2787
3127
 
2788
- var url = _this20.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
3128
+ var url = _this23.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
2789
3129
  var data = {
2790
3130
  type: "read",
2791
- application_id: _this20._applicationID,
2792
- event: _this20.event,
3131
+ application_id: _this23._applicationID,
3132
+ event: _this23.event,
2793
3133
  data: _query
2794
3134
  };
2795
3135
  basic_http_1["default"].exec("POST", url, data).then(function (result) {
@@ -2800,21 +3140,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2800
3140
  }, {
2801
3141
  key: "write",
2802
3142
  value: function write() {
2803
- var _this21 = this;
3143
+ var _this24 = this;
2804
3144
 
2805
3145
  return new Promise(function (accept, reject) {
2806
- var data = _this21._data;
2807
- var url = _this21.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
2808
- data.push("applicationId", _this21._applicationID);
3146
+ var data = _this24._data;
3147
+ var url = _this24.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
3148
+ data.push("applicationId", _this24._applicationID);
2809
3149
  var sendData = {
2810
3150
  type: "write",
2811
- application_id: _this21._applicationID,
2812
- origin: _this21.origin,
2813
- event: _this21.event,
3151
+ application_id: _this24._applicationID,
3152
+ origin: _this24.origin,
3153
+ event: _this24.event,
2814
3154
  data: data.data
2815
3155
  };
2816
3156
 
2817
- if (_this21.isBeacon === false) {
3157
+ if (_this24.isBeacon === false) {
2818
3158
  basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
2819
3159
  accept(result && result.results ? result.results : {});
2820
3160
  })["catch"](reject);
@@ -2842,10 +3182,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2842
3182
 
2843
3183
  exports.Analytics = Analytics;
2844
3184
  }, {
2845
- "../util/basic-http": 31,
2846
- "./analytics-data": 28
3185
+ "../util/basic-http": 32,
3186
+ "./analytics-data": 29
2847
3187
  }],
2848
- 30: [function (require, module, exports) {
3188
+ 31: [function (require, module, exports) {
2849
3189
  "use strict";
2850
3190
 
2851
3191
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -2907,10 +3247,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2907
3247
 
2908
3248
  console.log("using @plattar/plattar-analytics v" + version_1["default"]);
2909
3249
  }, {
2910
- "./analytics/analytics": 29,
2911
- "./version": 33
3250
+ "./analytics/analytics": 30,
3251
+ "./version": 34
2912
3252
  }],
2913
- 31: [function (require, module, exports) {
3253
+ 32: [function (require, module, exports) {
2914
3254
  "use strict";
2915
3255
 
2916
3256
  Object.defineProperty(exports, "__esModule", {
@@ -2996,7 +3336,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2996
3336
 
2997
3337
  exports["default"] = BasicHTTP;
2998
3338
  }, {}],
2999
- 32: [function (require, module, exports) {
3339
+ 33: [function (require, module, exports) {
3000
3340
  "use strict";
3001
3341
 
3002
3342
  Object.defineProperty(exports, "__esModule", {
@@ -3035,7 +3375,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3035
3375
 
3036
3376
  exports.Util = Util;
3037
3377
  }, {}],
3038
- 33: [function (require, module, exports) {
3378
+ 34: [function (require, module, exports) {
3039
3379
  "use strict";
3040
3380
 
3041
3381
  Object.defineProperty(exports, "__esModule", {
@@ -3043,7 +3383,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3043
3383
  });
3044
3384
  exports["default"] = "1.117.2";
3045
3385
  }, {}],
3046
- 34: [function (require, module, exports) {
3386
+ 35: [function (require, module, exports) {
3047
3387
  "use strict";
3048
3388
 
3049
3389
  var Server = require("./server/plattar-server.js");
@@ -3246,67 +3586,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3246
3586
  version: Version
3247
3587
  };
3248
3588
  }, {
3249
- "./server/plattar-server.js": 36,
3250
- "./types/application.js": 37,
3251
- "./types/content-pipeline/brief.js": 38,
3252
- "./types/content-pipeline/comment-brief.js": 39,
3253
- "./types/content-pipeline/comment-quote.js": 40,
3254
- "./types/content-pipeline/comment-solution.js": 41,
3255
- "./types/content-pipeline/folder.js": 42,
3256
- "./types/content-pipeline/pipeline-user.js": 43,
3257
- "./types/content-pipeline/quote.js": 44,
3258
- "./types/content-pipeline/rating.js": 45,
3259
- "./types/content-pipeline/solution.js": 46,
3260
- "./types/file/file-audio.js": 47,
3261
- "./types/file/file-base.js": 48,
3262
- "./types/file/file-image.js": 49,
3263
- "./types/file/file-model.js": 50,
3264
- "./types/file/file-script.js": 51,
3265
- "./types/file/file-video.js": 52,
3266
- "./types/misc/application-build.js": 56,
3267
- "./types/misc/asset-library.js": 57,
3268
- "./types/misc/async-job.js": 58,
3269
- "./types/misc/script-event.js": 59,
3270
- "./types/misc/tag.js": 60,
3271
- "./types/page/card-base.js": 61,
3272
- "./types/page/card-button.js": 62,
3273
- "./types/page/card-html.js": 63,
3274
- "./types/page/card-iframe.js": 64,
3275
- "./types/page/card-image.js": 65,
3276
- "./types/page/card-map.js": 66,
3277
- "./types/page/card-paragraph.js": 67,
3278
- "./types/page/card-row.js": 68,
3279
- "./types/page/card-slider.js": 69,
3280
- "./types/page/card-title.js": 70,
3281
- "./types/page/card-video.js": 71,
3282
- "./types/page/card-youtube.js": 72,
3283
- "./types/page/page.js": 73,
3284
- "./types/product/product-annotation.js": 74,
3285
- "./types/product/product-base.js": 75,
3286
- "./types/product/product-variation.js": 76,
3287
- "./types/product/product.js": 77,
3288
- "./types/scene/scene-annotation.js": 78,
3289
- "./types/scene/scene-audio.js": 79,
3290
- "./types/scene/scene-base.js": 80,
3291
- "./types/scene/scene-button.js": 81,
3292
- "./types/scene/scene-camera.js": 82,
3293
- "./types/scene/scene-carousel.js": 83,
3294
- "./types/scene/scene-image.js": 84,
3295
- "./types/scene/scene-model.js": 85,
3296
- "./types/scene/scene-panorama.js": 86,
3297
- "./types/scene/scene-poller.js": 87,
3298
- "./types/scene/scene-product.js": 88,
3299
- "./types/scene/scene-script.js": 89,
3300
- "./types/scene/scene-shadow.js": 90,
3301
- "./types/scene/scene-video.js": 91,
3302
- "./types/scene/scene-volumetric.js": 92,
3303
- "./types/scene/scene-youtube.js": 93,
3304
- "./types/scene/scene.js": 94,
3305
- "./types/trigger/trigger-image.js": 95,
3306
- "./util/plattar-util.js": 96,
3307
- "./version": 97
3589
+ "./server/plattar-server.js": 37,
3590
+ "./types/application.js": 38,
3591
+ "./types/content-pipeline/brief.js": 39,
3592
+ "./types/content-pipeline/comment-brief.js": 40,
3593
+ "./types/content-pipeline/comment-quote.js": 41,
3594
+ "./types/content-pipeline/comment-solution.js": 42,
3595
+ "./types/content-pipeline/folder.js": 43,
3596
+ "./types/content-pipeline/pipeline-user.js": 44,
3597
+ "./types/content-pipeline/quote.js": 45,
3598
+ "./types/content-pipeline/rating.js": 46,
3599
+ "./types/content-pipeline/solution.js": 47,
3600
+ "./types/file/file-audio.js": 48,
3601
+ "./types/file/file-base.js": 49,
3602
+ "./types/file/file-image.js": 50,
3603
+ "./types/file/file-model.js": 51,
3604
+ "./types/file/file-script.js": 52,
3605
+ "./types/file/file-video.js": 53,
3606
+ "./types/misc/application-build.js": 57,
3607
+ "./types/misc/asset-library.js": 58,
3608
+ "./types/misc/async-job.js": 59,
3609
+ "./types/misc/script-event.js": 60,
3610
+ "./types/misc/tag.js": 61,
3611
+ "./types/page/card-base.js": 62,
3612
+ "./types/page/card-button.js": 63,
3613
+ "./types/page/card-html.js": 64,
3614
+ "./types/page/card-iframe.js": 65,
3615
+ "./types/page/card-image.js": 66,
3616
+ "./types/page/card-map.js": 67,
3617
+ "./types/page/card-paragraph.js": 68,
3618
+ "./types/page/card-row.js": 69,
3619
+ "./types/page/card-slider.js": 70,
3620
+ "./types/page/card-title.js": 71,
3621
+ "./types/page/card-video.js": 72,
3622
+ "./types/page/card-youtube.js": 73,
3623
+ "./types/page/page.js": 74,
3624
+ "./types/product/product-annotation.js": 75,
3625
+ "./types/product/product-base.js": 76,
3626
+ "./types/product/product-variation.js": 77,
3627
+ "./types/product/product.js": 78,
3628
+ "./types/scene/scene-annotation.js": 79,
3629
+ "./types/scene/scene-audio.js": 80,
3630
+ "./types/scene/scene-base.js": 81,
3631
+ "./types/scene/scene-button.js": 82,
3632
+ "./types/scene/scene-camera.js": 83,
3633
+ "./types/scene/scene-carousel.js": 84,
3634
+ "./types/scene/scene-image.js": 85,
3635
+ "./types/scene/scene-model.js": 86,
3636
+ "./types/scene/scene-panorama.js": 87,
3637
+ "./types/scene/scene-poller.js": 88,
3638
+ "./types/scene/scene-product.js": 89,
3639
+ "./types/scene/scene-script.js": 90,
3640
+ "./types/scene/scene-shadow.js": 91,
3641
+ "./types/scene/scene-video.js": 92,
3642
+ "./types/scene/scene-volumetric.js": 93,
3643
+ "./types/scene/scene-youtube.js": 94,
3644
+ "./types/scene/scene.js": 95,
3645
+ "./types/trigger/trigger-image.js": 96,
3646
+ "./util/plattar-util.js": 97,
3647
+ "./version": 98
3308
3648
  }],
3309
- 35: [function (require, module, exports) {
3649
+ 36: [function (require, module, exports) {
3310
3650
  var fetch = require("node-fetch");
3311
3651
 
3312
3652
  var PlattarQuery = /*#__PURE__*/function () {
@@ -3365,11 +3705,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3365
3705
  }, {
3366
3706
  key: "_get",
3367
3707
  value: function _get(opt) {
3368
- var _this22 = this;
3708
+ var _this25 = this;
3369
3709
 
3370
3710
  return new Promise(function (resolve, reject) {
3371
- var target = _this22.target;
3372
- var server = _this22.server; // we cannot perform a GET request without an ID
3711
+ var target = _this25.target;
3712
+ var server = _this25.server; // we cannot perform a GET request without an ID
3373
3713
 
3374
3714
  if (!target.id) {
3375
3715
  reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
@@ -3394,16 +3734,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3394
3734
  var origin = server.originLocation.api_read;
3395
3735
  var auth = server.authToken;
3396
3736
  var headers = {
3397
- 'cookie': 'laravel_session=' + _this22.getCookie('laravel_session')
3737
+ 'cookie': 'laravel_session=' + _this25.getCookie('laravel_session')
3398
3738
  };
3399
3739
  Object.assign(headers, auth);
3400
3740
  var reqopts = {
3401
3741
  method: "GET",
3402
3742
  headers: headers
3403
3743
  };
3404
- var includeQuery = _this22._IncludeQuery;
3744
+ var includeQuery = _this25._IncludeQuery;
3405
3745
 
3406
- var params = _this22._ParamFor("get");
3746
+ var params = _this25._ParamFor("get");
3407
3747
 
3408
3748
  var endpoint = origin + target.type() + "/" + target.id;
3409
3749
 
@@ -3444,11 +3784,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3444
3784
  }, {
3445
3785
  key: "_update",
3446
3786
  value: function _update() {
3447
- var _this23 = this;
3787
+ var _this26 = this;
3448
3788
 
3449
3789
  return new Promise(function (resolve, reject) {
3450
- var target = _this23.target;
3451
- var server = _this23.server; // we cannot perform a GET request without an ID
3790
+ var target = _this26.target;
3791
+ var server = _this26.server; // we cannot perform a GET request without an ID
3452
3792
 
3453
3793
  if (!target.id) {
3454
3794
  reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
@@ -3461,7 +3801,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3461
3801
  var headers = {
3462
3802
  'Accept': 'application/json',
3463
3803
  'Content-Type': 'application/json',
3464
- 'cookie': 'laravel_session=' + _this23.getCookie('laravel_session')
3804
+ 'cookie': 'laravel_session=' + _this26.getCookie('laravel_session')
3465
3805
  };
3466
3806
  Object.assign(headers, auth);
3467
3807
  var reqopts = {
@@ -3476,7 +3816,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3476
3816
  })
3477
3817
  };
3478
3818
 
3479
- var params = _this23._ParamFor("update");
3819
+ var params = _this26._ParamFor("update");
3480
3820
 
3481
3821
  var endpoint = origin + target.type() + "/" + target.id;
3482
3822
 
@@ -3518,18 +3858,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3518
3858
  }, {
3519
3859
  key: "_create",
3520
3860
  value: function _create() {
3521
- var _this24 = this;
3861
+ var _this27 = this;
3522
3862
 
3523
3863
  return new Promise(function (resolve, reject) {
3524
- var target = _this24.target;
3525
- var server = _this24.server; // otherwise, proceed with the fetching op
3864
+ var target = _this27.target;
3865
+ var server = _this27.server; // otherwise, proceed with the fetching op
3526
3866
 
3527
3867
  var origin = server.originLocation.api_write;
3528
3868
  var auth = server.authToken;
3529
3869
  var headers = {
3530
3870
  'Accept': 'application/json',
3531
3871
  'Content-Type': 'application/json',
3532
- 'cookie': 'laravel_session=' + _this24.getCookie('laravel_session')
3872
+ 'cookie': 'laravel_session=' + _this27.getCookie('laravel_session')
3533
3873
  };
3534
3874
  Object.assign(headers, auth);
3535
3875
  var reqopts = {
@@ -3543,7 +3883,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3543
3883
  })
3544
3884
  };
3545
3885
 
3546
- var params = _this24._ParamFor("create");
3886
+ var params = _this27._ParamFor("create");
3547
3887
 
3548
3888
  var endpoint = origin + target.type();
3549
3889
 
@@ -3587,11 +3927,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3587
3927
  }, {
3588
3928
  key: "_delete",
3589
3929
  value: function _delete() {
3590
- var _this25 = this;
3930
+ var _this28 = this;
3591
3931
 
3592
3932
  return new Promise(function (resolve, reject) {
3593
- var target = _this25.target;
3594
- var server = _this25.server; // we cannot perform a GET request without an ID
3933
+ var target = _this28.target;
3934
+ var server = _this28.server; // we cannot perform a GET request without an ID
3595
3935
 
3596
3936
  if (!target.id) {
3597
3937
  reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
@@ -3604,7 +3944,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3604
3944
  var headers = {
3605
3945
  'Accept': 'application/json',
3606
3946
  'Content-Type': 'application/json',
3607
- 'cookie': 'laravel_session=' + _this25.getCookie('laravel_session')
3947
+ 'cookie': 'laravel_session=' + _this28.getCookie('laravel_session')
3608
3948
  };
3609
3949
  Object.assign(headers, auth);
3610
3950
  var reqopts = {
@@ -3619,7 +3959,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3619
3959
  })
3620
3960
  };
3621
3961
 
3622
- var params = _this25._ParamFor("delete");
3962
+ var params = _this28._ParamFor("delete");
3623
3963
 
3624
3964
  var endpoint = origin + target.type() + "/" + target.id;
3625
3965
 
@@ -3682,7 +4022,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3682
4022
  }, {
3683
4023
  key: "_include",
3684
4024
  value: function _include(args) {
3685
- var _this26 = this;
4025
+ var _this29 = this;
3686
4026
 
3687
4027
  if (!args || args.length <= 0) {
3688
4028
  return this;
@@ -3695,21 +4035,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3695
4035
  if (Array.isArray(obj)) {
3696
4036
  obj.forEach(function (strObject) {
3697
4037
  if (typeof strObject === "string" || strObject instanceof String) {
3698
- _this26._getIncludeQuery.push(strObject);
4038
+ _this29._getIncludeQuery.push(strObject);
3699
4039
  } else {
3700
- throw new Error("PlattarQuery." + _this26.target.type() + ".include(...args) - argument of Array must only include Strings");
4040
+ throw new Error("PlattarQuery." + _this29.target.type() + ".include(...args) - argument of Array must only include Strings");
3701
4041
  }
3702
4042
  });
3703
4043
  } else if (PlattarUtil.isPlattarObject(obj)) {
3704
4044
  var type = obj.type();
3705
4045
 
3706
4046
  if (Array.isArray(type)) {
3707
- _this26._include(type);
4047
+ _this29._include(type);
3708
4048
  } else {
3709
- _this26._getIncludeQuery.push(type);
4049
+ _this29._getIncludeQuery.push(type);
3710
4050
  }
3711
4051
  } else {
3712
- throw new Error("PlattarQuery." + _this26.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
4052
+ throw new Error("PlattarQuery." + _this29.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
3713
4053
  }
3714
4054
  });
3715
4055
  return this;
@@ -3790,10 +4130,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3790
4130
 
3791
4131
  module.exports = PlattarQuery;
3792
4132
  }, {
3793
- "../util/plattar-util.js": 96,
3794
- "node-fetch": 116
4133
+ "../util/plattar-util.js": 97,
4134
+ "node-fetch": 117
3795
4135
  }],
3796
- 36: [function (require, module, exports) {
4136
+ 37: [function (require, module, exports) {
3797
4137
  (function (process) {
3798
4138
  (function () {
3799
4139
  var fetch = require("node-fetch");
@@ -3849,13 +4189,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3849
4189
  }, {
3850
4190
  key: "auth",
3851
4191
  value: function auth(token, opt) {
3852
- var _this27 = this;
4192
+ var _this30 = this;
3853
4193
 
3854
4194
  var copt = opt || {
3855
4195
  validate: false
3856
4196
  };
3857
4197
  return new Promise(function (resolve, reject) {
3858
- var server = _this27.originLocation.api_write;
4198
+ var server = _this30.originLocation.api_write;
3859
4199
 
3860
4200
  if (!server) {
3861
4201
  reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
@@ -3868,10 +4208,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3868
4208
  }
3869
4209
 
3870
4210
  if (!copt.validate) {
3871
- _this27._authToken = {
4211
+ _this30._authToken = {
3872
4212
  "plattar-auth-token": token
3873
4213
  };
3874
- resolve(_this27);
4214
+ resolve(_this30);
3875
4215
  return;
3876
4216
  }
3877
4217
 
@@ -3884,10 +4224,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3884
4224
  };
3885
4225
  fetch(endpoint, options).then(function (res) {
3886
4226
  if (res.ok) {
3887
- _this27._authToken = {
4227
+ _this30._authToken = {
3888
4228
  "plattar-auth-token": token
3889
4229
  };
3890
- resolve(_this27);
4230
+ resolve(_this30);
3891
4231
  } else {
3892
4232
  reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
3893
4233
  }
@@ -3897,7 +4237,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3897
4237
  }, {
3898
4238
  key: "origin",
3899
4239
  value: function origin(server, opt) {
3900
- var _this28 = this;
4240
+ var _this31 = this;
3901
4241
 
3902
4242
  var copt = opt || {
3903
4243
  validate: false
@@ -3909,8 +4249,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3909
4249
  }
3910
4250
 
3911
4251
  if (!copt.validate) {
3912
- _this28._serverLocation = server;
3913
- resolve(_this28);
4252
+ _this31._serverLocation = server;
4253
+ resolve(_this31);
3914
4254
  return;
3915
4255
  }
3916
4256
 
@@ -3920,8 +4260,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3920
4260
  };
3921
4261
  fetch(endpoint, options).then(function (res) {
3922
4262
  if (res.ok) {
3923
- _this28._serverLocation = server;
3924
- resolve(_this28);
4263
+ _this31._serverLocation = server;
4264
+ resolve(_this31);
3925
4265
  } else {
3926
4266
  reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
3927
4267
  }
@@ -4015,21 +4355,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4015
4355
  }).call(this);
4016
4356
  }).call(this, require('_process'));
4017
4357
  }, {
4018
- "_process": 117,
4019
- "node-fetch": 116
4358
+ "_process": 118,
4359
+ "node-fetch": 117
4020
4360
  }],
4021
- 37: [function (require, module, exports) {
4361
+ 38: [function (require, module, exports) {
4022
4362
  var PlattarBase = require("./interfaces/plattar-base.js");
4023
4363
 
4024
4364
  var Application = /*#__PURE__*/function (_PlattarBase) {
4025
4365
  _inherits(Application, _PlattarBase);
4026
4366
 
4027
- var _super8 = _createSuper(Application);
4367
+ var _super9 = _createSuper(Application);
4028
4368
 
4029
4369
  function Application() {
4030
4370
  _classCallCheck(this, Application);
4031
4371
 
4032
- return _super8.apply(this, arguments);
4372
+ return _super9.apply(this, arguments);
4033
4373
  }
4034
4374
 
4035
4375
  _createClass(Application, null, [{
@@ -4044,20 +4384,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4044
4384
 
4045
4385
  module.exports = Application;
4046
4386
  }, {
4047
- "./interfaces/plattar-base.js": 53
4387
+ "./interfaces/plattar-base.js": 54
4048
4388
  }],
4049
- 38: [function (require, module, exports) {
4389
+ 39: [function (require, module, exports) {
4050
4390
  var PlattarBase = require("../interfaces/plattar-base");
4051
4391
 
4052
4392
  var Brief = /*#__PURE__*/function (_PlattarBase2) {
4053
4393
  _inherits(Brief, _PlattarBase2);
4054
4394
 
4055
- var _super9 = _createSuper(Brief);
4395
+ var _super10 = _createSuper(Brief);
4056
4396
 
4057
4397
  function Brief() {
4058
4398
  _classCallCheck(this, Brief);
4059
4399
 
4060
- return _super9.apply(this, arguments);
4400
+ return _super10.apply(this, arguments);
4061
4401
  }
4062
4402
 
4063
4403
  _createClass(Brief, null, [{
@@ -4072,20 +4412,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4072
4412
 
4073
4413
  module.exports = Brief;
4074
4414
  }, {
4075
- "../interfaces/plattar-base": 53
4415
+ "../interfaces/plattar-base": 54
4076
4416
  }],
4077
- 39: [function (require, module, exports) {
4417
+ 40: [function (require, module, exports) {
4078
4418
  var PlattarBase = require("../interfaces/plattar-base");
4079
4419
 
4080
4420
  var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
4081
4421
  _inherits(CommentBrief, _PlattarBase3);
4082
4422
 
4083
- var _super10 = _createSuper(CommentBrief);
4423
+ var _super11 = _createSuper(CommentBrief);
4084
4424
 
4085
4425
  function CommentBrief() {
4086
4426
  _classCallCheck(this, CommentBrief);
4087
4427
 
4088
- return _super10.apply(this, arguments);
4428
+ return _super11.apply(this, arguments);
4089
4429
  }
4090
4430
 
4091
4431
  _createClass(CommentBrief, null, [{
@@ -4100,20 +4440,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4100
4440
 
4101
4441
  module.exports = CommentBrief;
4102
4442
  }, {
4103
- "../interfaces/plattar-base": 53
4443
+ "../interfaces/plattar-base": 54
4104
4444
  }],
4105
- 40: [function (require, module, exports) {
4445
+ 41: [function (require, module, exports) {
4106
4446
  var PlattarBase = require("../interfaces/plattar-base");
4107
4447
 
4108
4448
  var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
4109
4449
  _inherits(CommentQuote, _PlattarBase4);
4110
4450
 
4111
- var _super11 = _createSuper(CommentQuote);
4451
+ var _super12 = _createSuper(CommentQuote);
4112
4452
 
4113
4453
  function CommentQuote() {
4114
4454
  _classCallCheck(this, CommentQuote);
4115
4455
 
4116
- return _super11.apply(this, arguments);
4456
+ return _super12.apply(this, arguments);
4117
4457
  }
4118
4458
 
4119
4459
  _createClass(CommentQuote, null, [{
@@ -4128,20 +4468,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4128
4468
 
4129
4469
  module.exports = CommentQuote;
4130
4470
  }, {
4131
- "../interfaces/plattar-base": 53
4471
+ "../interfaces/plattar-base": 54
4132
4472
  }],
4133
- 41: [function (require, module, exports) {
4473
+ 42: [function (require, module, exports) {
4134
4474
  var PlattarBase = require("../interfaces/plattar-base");
4135
4475
 
4136
4476
  var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
4137
4477
  _inherits(CommentSolution, _PlattarBase5);
4138
4478
 
4139
- var _super12 = _createSuper(CommentSolution);
4479
+ var _super13 = _createSuper(CommentSolution);
4140
4480
 
4141
4481
  function CommentSolution() {
4142
4482
  _classCallCheck(this, CommentSolution);
4143
4483
 
4144
- return _super12.apply(this, arguments);
4484
+ return _super13.apply(this, arguments);
4145
4485
  }
4146
4486
 
4147
4487
  _createClass(CommentSolution, null, [{
@@ -4156,20 +4496,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4156
4496
 
4157
4497
  module.exports = CommentSolution;
4158
4498
  }, {
4159
- "../interfaces/plattar-base": 53
4499
+ "../interfaces/plattar-base": 54
4160
4500
  }],
4161
- 42: [function (require, module, exports) {
4501
+ 43: [function (require, module, exports) {
4162
4502
  var PlattarBase = require("../interfaces/plattar-base");
4163
4503
 
4164
4504
  var Folder = /*#__PURE__*/function (_PlattarBase6) {
4165
4505
  _inherits(Folder, _PlattarBase6);
4166
4506
 
4167
- var _super13 = _createSuper(Folder);
4507
+ var _super14 = _createSuper(Folder);
4168
4508
 
4169
4509
  function Folder() {
4170
4510
  _classCallCheck(this, Folder);
4171
4511
 
4172
- return _super13.apply(this, arguments);
4512
+ return _super14.apply(this, arguments);
4173
4513
  }
4174
4514
 
4175
4515
  _createClass(Folder, null, [{
@@ -4184,20 +4524,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4184
4524
 
4185
4525
  module.exports = Folder;
4186
4526
  }, {
4187
- "../interfaces/plattar-base": 53
4527
+ "../interfaces/plattar-base": 54
4188
4528
  }],
4189
- 43: [function (require, module, exports) {
4529
+ 44: [function (require, module, exports) {
4190
4530
  var PlattarBase = require("../interfaces/plattar-base");
4191
4531
 
4192
4532
  var PipelineUser = /*#__PURE__*/function (_PlattarBase7) {
4193
4533
  _inherits(PipelineUser, _PlattarBase7);
4194
4534
 
4195
- var _super14 = _createSuper(PipelineUser);
4535
+ var _super15 = _createSuper(PipelineUser);
4196
4536
 
4197
4537
  function PipelineUser() {
4198
4538
  _classCallCheck(this, PipelineUser);
4199
4539
 
4200
- return _super14.apply(this, arguments);
4540
+ return _super15.apply(this, arguments);
4201
4541
  }
4202
4542
 
4203
4543
  _createClass(PipelineUser, null, [{
@@ -4212,20 +4552,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4212
4552
 
4213
4553
  module.exports = PipelineUser;
4214
4554
  }, {
4215
- "../interfaces/plattar-base": 53
4555
+ "../interfaces/plattar-base": 54
4216
4556
  }],
4217
- 44: [function (require, module, exports) {
4557
+ 45: [function (require, module, exports) {
4218
4558
  var PlattarBase = require("../interfaces/plattar-base");
4219
4559
 
4220
4560
  var Quote = /*#__PURE__*/function (_PlattarBase8) {
4221
4561
  _inherits(Quote, _PlattarBase8);
4222
4562
 
4223
- var _super15 = _createSuper(Quote);
4563
+ var _super16 = _createSuper(Quote);
4224
4564
 
4225
4565
  function Quote() {
4226
4566
  _classCallCheck(this, Quote);
4227
4567
 
4228
- return _super15.apply(this, arguments);
4568
+ return _super16.apply(this, arguments);
4229
4569
  }
4230
4570
 
4231
4571
  _createClass(Quote, null, [{
@@ -4240,20 +4580,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4240
4580
 
4241
4581
  module.exports = Quote;
4242
4582
  }, {
4243
- "../interfaces/plattar-base": 53
4583
+ "../interfaces/plattar-base": 54
4244
4584
  }],
4245
- 45: [function (require, module, exports) {
4585
+ 46: [function (require, module, exports) {
4246
4586
  var PlattarBase = require("../interfaces/plattar-base");
4247
4587
 
4248
4588
  var Rating = /*#__PURE__*/function (_PlattarBase9) {
4249
4589
  _inherits(Rating, _PlattarBase9);
4250
4590
 
4251
- var _super16 = _createSuper(Rating);
4591
+ var _super17 = _createSuper(Rating);
4252
4592
 
4253
4593
  function Rating() {
4254
4594
  _classCallCheck(this, Rating);
4255
4595
 
4256
- return _super16.apply(this, arguments);
4596
+ return _super17.apply(this, arguments);
4257
4597
  }
4258
4598
 
4259
4599
  _createClass(Rating, null, [{
@@ -4268,20 +4608,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4268
4608
 
4269
4609
  module.exports = Rating;
4270
4610
  }, {
4271
- "../interfaces/plattar-base": 53
4611
+ "../interfaces/plattar-base": 54
4272
4612
  }],
4273
- 46: [function (require, module, exports) {
4613
+ 47: [function (require, module, exports) {
4274
4614
  var PlattarBase = require("../interfaces/plattar-base");
4275
4615
 
4276
4616
  var Solution = /*#__PURE__*/function (_PlattarBase10) {
4277
4617
  _inherits(Solution, _PlattarBase10);
4278
4618
 
4279
- var _super17 = _createSuper(Solution);
4619
+ var _super18 = _createSuper(Solution);
4280
4620
 
4281
4621
  function Solution() {
4282
4622
  _classCallCheck(this, Solution);
4283
4623
 
4284
- return _super17.apply(this, arguments);
4624
+ return _super18.apply(this, arguments);
4285
4625
  }
4286
4626
 
4287
4627
  _createClass(Solution, null, [{
@@ -4296,20 +4636,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4296
4636
 
4297
4637
  module.exports = Solution;
4298
4638
  }, {
4299
- "../interfaces/plattar-base": 53
4639
+ "../interfaces/plattar-base": 54
4300
4640
  }],
4301
- 47: [function (require, module, exports) {
4641
+ 48: [function (require, module, exports) {
4302
4642
  var FileBase = require("./file-base.js");
4303
4643
 
4304
4644
  var FileAudio = /*#__PURE__*/function (_FileBase) {
4305
4645
  _inherits(FileAudio, _FileBase);
4306
4646
 
4307
- var _super18 = _createSuper(FileAudio);
4647
+ var _super19 = _createSuper(FileAudio);
4308
4648
 
4309
4649
  function FileAudio() {
4310
4650
  _classCallCheck(this, FileAudio);
4311
4651
 
4312
- return _super18.apply(this, arguments);
4652
+ return _super19.apply(this, arguments);
4313
4653
  }
4314
4654
 
4315
4655
  _createClass(FileAudio, null, [{
@@ -4324,9 +4664,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4324
4664
 
4325
4665
  module.exports = FileAudio;
4326
4666
  }, {
4327
- "./file-base.js": 48
4667
+ "./file-base.js": 49
4328
4668
  }],
4329
- 48: [function (require, module, exports) {
4669
+ 49: [function (require, module, exports) {
4330
4670
  var PlattarBase = require("../interfaces/plattar-base.js");
4331
4671
 
4332
4672
  var Server = require("../../server/plattar-server.js");
@@ -4334,20 +4674,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4334
4674
  var FileBase = /*#__PURE__*/function (_PlattarBase11) {
4335
4675
  _inherits(FileBase, _PlattarBase11);
4336
4676
 
4337
- var _super19 = _createSuper(FileBase);
4677
+ var _super20 = _createSuper(FileBase);
4338
4678
 
4339
4679
  function FileBase(id, server) {
4340
- var _this29;
4680
+ var _this32;
4341
4681
 
4342
4682
  _classCallCheck(this, FileBase);
4343
4683
 
4344
- _this29 = _super19.call(this, id, server || Server["default"]());
4684
+ _this32 = _super20.call(this, id, server || Server["default"]());
4345
4685
 
4346
- if (_this29.constructor === FileBase) {
4686
+ if (_this32.constructor === FileBase) {
4347
4687
  throw new Error("FileBase is abstract and cannot be created");
4348
4688
  }
4349
4689
 
4350
- return _this29;
4690
+ return _this32;
4351
4691
  }
4352
4692
 
4353
4693
  _createClass(FileBase, [{
@@ -4412,25 +4752,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4412
4752
 
4413
4753
  module.exports = FileBase;
4414
4754
  }, {
4415
- "../../server/plattar-server.js": 36,
4416
- "../interfaces/plattar-base.js": 53,
4417
- "./file-audio.js": 47,
4418
- "./file-image.js": 49,
4419
- "./file-model.js": 50,
4420
- "./file-video.js": 52
4755
+ "../../server/plattar-server.js": 37,
4756
+ "../interfaces/plattar-base.js": 54,
4757
+ "./file-audio.js": 48,
4758
+ "./file-image.js": 50,
4759
+ "./file-model.js": 51,
4760
+ "./file-video.js": 53
4421
4761
  }],
4422
- 49: [function (require, module, exports) {
4762
+ 50: [function (require, module, exports) {
4423
4763
  var FileBase = require("./file-base.js");
4424
4764
 
4425
4765
  var FileImage = /*#__PURE__*/function (_FileBase2) {
4426
4766
  _inherits(FileImage, _FileBase2);
4427
4767
 
4428
- var _super20 = _createSuper(FileImage);
4768
+ var _super21 = _createSuper(FileImage);
4429
4769
 
4430
4770
  function FileImage() {
4431
4771
  _classCallCheck(this, FileImage);
4432
4772
 
4433
- return _super20.apply(this, arguments);
4773
+ return _super21.apply(this, arguments);
4434
4774
  }
4435
4775
 
4436
4776
  _createClass(FileImage, null, [{
@@ -4445,20 +4785,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4445
4785
 
4446
4786
  module.exports = FileImage;
4447
4787
  }, {
4448
- "./file-base.js": 48
4788
+ "./file-base.js": 49
4449
4789
  }],
4450
- 50: [function (require, module, exports) {
4790
+ 51: [function (require, module, exports) {
4451
4791
  var FileBase = require("./file-base.js");
4452
4792
 
4453
4793
  var FileModel = /*#__PURE__*/function (_FileBase3) {
4454
4794
  _inherits(FileModel, _FileBase3);
4455
4795
 
4456
- var _super21 = _createSuper(FileModel);
4796
+ var _super22 = _createSuper(FileModel);
4457
4797
 
4458
4798
  function FileModel() {
4459
4799
  _classCallCheck(this, FileModel);
4460
4800
 
4461
- return _super21.apply(this, arguments);
4801
+ return _super22.apply(this, arguments);
4462
4802
  }
4463
4803
 
4464
4804
  _createClass(FileModel, null, [{
@@ -4473,20 +4813,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4473
4813
 
4474
4814
  module.exports = FileModel;
4475
4815
  }, {
4476
- "./file-base.js": 48
4816
+ "./file-base.js": 49
4477
4817
  }],
4478
- 51: [function (require, module, exports) {
4818
+ 52: [function (require, module, exports) {
4479
4819
  var FileBase = require("./file-base.js");
4480
4820
 
4481
4821
  var FileScript = /*#__PURE__*/function (_FileBase4) {
4482
4822
  _inherits(FileScript, _FileBase4);
4483
4823
 
4484
- var _super22 = _createSuper(FileScript);
4824
+ var _super23 = _createSuper(FileScript);
4485
4825
 
4486
4826
  function FileScript() {
4487
4827
  _classCallCheck(this, FileScript);
4488
4828
 
4489
- return _super22.apply(this, arguments);
4829
+ return _super23.apply(this, arguments);
4490
4830
  }
4491
4831
 
4492
4832
  _createClass(FileScript, null, [{
@@ -4501,20 +4841,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4501
4841
 
4502
4842
  module.exports = FileScript;
4503
4843
  }, {
4504
- "./file-base.js": 48
4844
+ "./file-base.js": 49
4505
4845
  }],
4506
- 52: [function (require, module, exports) {
4846
+ 53: [function (require, module, exports) {
4507
4847
  var FileBase = require("./file-base.js");
4508
4848
 
4509
4849
  var FileVideo = /*#__PURE__*/function (_FileBase5) {
4510
4850
  _inherits(FileVideo, _FileBase5);
4511
4851
 
4512
- var _super23 = _createSuper(FileVideo);
4852
+ var _super24 = _createSuper(FileVideo);
4513
4853
 
4514
4854
  function FileVideo() {
4515
4855
  _classCallCheck(this, FileVideo);
4516
4856
 
4517
- return _super23.apply(this, arguments);
4857
+ return _super24.apply(this, arguments);
4518
4858
  }
4519
4859
 
4520
4860
  _createClass(FileVideo, null, [{
@@ -4529,9 +4869,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4529
4869
 
4530
4870
  module.exports = FileVideo;
4531
4871
  }, {
4532
- "./file-base.js": 48
4872
+ "./file-base.js": 49
4533
4873
  }],
4534
- 53: [function (require, module, exports) {
4874
+ 54: [function (require, module, exports) {
4535
4875
  var PlattarObject = require("./plattar-object.js");
4536
4876
 
4537
4877
  var Server = require("../../server/plattar-server.js");
@@ -4539,31 +4879,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4539
4879
  var PlattarBase = /*#__PURE__*/function (_PlattarObject) {
4540
4880
  _inherits(PlattarBase, _PlattarObject);
4541
4881
 
4542
- var _super24 = _createSuper(PlattarBase);
4882
+ var _super25 = _createSuper(PlattarBase);
4543
4883
 
4544
4884
  function PlattarBase(id, server) {
4545
- var _this30;
4885
+ var _this33;
4546
4886
 
4547
4887
  _classCallCheck(this, PlattarBase);
4548
4888
 
4549
- _this30 = _super24.call(this, id, server || Server["default"]());
4889
+ _this33 = _super25.call(this, id, server || Server["default"]());
4550
4890
 
4551
- if (_this30.constructor === PlattarBase) {
4891
+ if (_this33.constructor === PlattarBase) {
4552
4892
  throw new Error("PlattarBase is abstract and cannot be created");
4553
4893
  }
4554
4894
 
4555
- return _this30;
4895
+ return _this33;
4556
4896
  }
4557
4897
 
4558
- return PlattarBase;
4898
+ return _createClass(PlattarBase);
4559
4899
  }(PlattarObject);
4560
4900
 
4561
4901
  module.exports = PlattarBase;
4562
4902
  }, {
4563
- "../../server/plattar-server.js": 36,
4564
- "./plattar-object.js": 55
4903
+ "../../server/plattar-server.js": 37,
4904
+ "./plattar-object.js": 56
4565
4905
  }],
4566
- 54: [function (require, module, exports) {
4906
+ 55: [function (require, module, exports) {
4567
4907
  /**
4568
4908
  * Handles the list of relationships for the provided object
4569
4909
  */
@@ -4624,7 +4964,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4624
4964
  }, {
4625
4965
  key: "filter",
4626
4966
  value: function filter(obj, id) {
4627
- var _this31 = this;
4967
+ var _this34 = this;
4628
4968
 
4629
4969
  if (!obj) {
4630
4970
  return [];
@@ -4642,7 +4982,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4642
4982
  if (Array.isArray(type)) {
4643
4983
  var compiledList = [];
4644
4984
  type.forEach(function (inObject) {
4645
- var retArray = _this31.filter(inObject, id);
4985
+ var retArray = _this34.filter(inObject, id);
4646
4986
 
4647
4987
  if (retArray.length > 0) {
4648
4988
  compiledList = compiledList.concat(retArray);
@@ -4699,9 +5039,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4699
5039
 
4700
5040
  module.exports = PlattarObjectRelations;
4701
5041
  }, {
4702
- "../../util/plattar-util.js": 96
5042
+ "../../util/plattar-util.js": 97
4703
5043
  }],
4704
- 55: [function (require, module, exports) {
5044
+ 56: [function (require, module, exports) {
4705
5045
  var PlattarQuery = require("../../server/plattar-query.js");
4706
5046
 
4707
5047
  var PlattarObjectRelations = require("./plattar-object-relations.js");
@@ -4845,7 +5185,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4845
5185
  }, {
4846
5186
  key: "include",
4847
5187
  value: function include() {
4848
- var _this32 = this;
5188
+ var _this35 = this;
4849
5189
 
4850
5190
  for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
4851
5191
  args[_key6] = arguments[_key6];
@@ -4861,15 +5201,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4861
5201
  if (Array.isArray(obj)) {
4862
5202
  obj.forEach(function (strObject) {
4863
5203
  if (typeof strObject === "string" || strObject instanceof String) {
4864
- includes.push("".concat(_this32.type(), ".").concat(strObject));
5204
+ includes.push("".concat(_this35.type(), ".").concat(strObject));
4865
5205
  } else {
4866
- throw new Error("PlattarObject." + _this32.type() + ".include(...args) - argument of Array must only include Strings");
5206
+ throw new Error("PlattarObject." + _this35.type() + ".include(...args) - argument of Array must only include Strings");
4867
5207
  }
4868
5208
  });
4869
5209
  } else if (obj.prototype instanceof PlattarObject) {
4870
- includes.push("".concat(_this32.type(), ".").concat(obj.type()));
5210
+ includes.push("".concat(_this35.type(), ".").concat(obj.type()));
4871
5211
  } else {
4872
- throw new Error("PlattarObject." + _this32.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
5212
+ throw new Error("PlattarObject." + _this35.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
4873
5213
  }
4874
5214
  });
4875
5215
  return includes;
@@ -4881,21 +5221,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4881
5221
 
4882
5222
  module.exports = PlattarObject;
4883
5223
  }, {
4884
- "../../server/plattar-query.js": 35,
4885
- "./plattar-object-relations.js": 54
5224
+ "../../server/plattar-query.js": 36,
5225
+ "./plattar-object-relations.js": 55
4886
5226
  }],
4887
- 56: [function (require, module, exports) {
5227
+ 57: [function (require, module, exports) {
4888
5228
  var PlattarBase = require("../interfaces/plattar-base.js");
4889
5229
 
4890
5230
  var ApplicationBuild = /*#__PURE__*/function (_PlattarBase12) {
4891
5231
  _inherits(ApplicationBuild, _PlattarBase12);
4892
5232
 
4893
- var _super25 = _createSuper(ApplicationBuild);
5233
+ var _super26 = _createSuper(ApplicationBuild);
4894
5234
 
4895
5235
  function ApplicationBuild() {
4896
5236
  _classCallCheck(this, ApplicationBuild);
4897
5237
 
4898
- return _super25.apply(this, arguments);
5238
+ return _super26.apply(this, arguments);
4899
5239
  }
4900
5240
 
4901
5241
  _createClass(ApplicationBuild, null, [{
@@ -4910,20 +5250,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4910
5250
 
4911
5251
  module.exports = ApplicationBuild;
4912
5252
  }, {
4913
- "../interfaces/plattar-base.js": 53
5253
+ "../interfaces/plattar-base.js": 54
4914
5254
  }],
4915
- 57: [function (require, module, exports) {
5255
+ 58: [function (require, module, exports) {
4916
5256
  var PlattarBase = require("../interfaces/plattar-base.js");
4917
5257
 
4918
5258
  var AssetLibrary = /*#__PURE__*/function (_PlattarBase13) {
4919
5259
  _inherits(AssetLibrary, _PlattarBase13);
4920
5260
 
4921
- var _super26 = _createSuper(AssetLibrary);
5261
+ var _super27 = _createSuper(AssetLibrary);
4922
5262
 
4923
5263
  function AssetLibrary() {
4924
5264
  _classCallCheck(this, AssetLibrary);
4925
5265
 
4926
- return _super26.apply(this, arguments);
5266
+ return _super27.apply(this, arguments);
4927
5267
  }
4928
5268
 
4929
5269
  _createClass(AssetLibrary, null, [{
@@ -4938,20 +5278,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4938
5278
 
4939
5279
  module.exports = AssetLibrary;
4940
5280
  }, {
4941
- "../interfaces/plattar-base.js": 53
5281
+ "../interfaces/plattar-base.js": 54
4942
5282
  }],
4943
- 58: [function (require, module, exports) {
5283
+ 59: [function (require, module, exports) {
4944
5284
  var PlattarBase = require("../interfaces/plattar-base.js");
4945
5285
 
4946
5286
  var AsyncJob = /*#__PURE__*/function (_PlattarBase14) {
4947
5287
  _inherits(AsyncJob, _PlattarBase14);
4948
5288
 
4949
- var _super27 = _createSuper(AsyncJob);
5289
+ var _super28 = _createSuper(AsyncJob);
4950
5290
 
4951
5291
  function AsyncJob() {
4952
5292
  _classCallCheck(this, AsyncJob);
4953
5293
 
4954
- return _super27.apply(this, arguments);
5294
+ return _super28.apply(this, arguments);
4955
5295
  }
4956
5296
 
4957
5297
  _createClass(AsyncJob, [{
@@ -4971,20 +5311,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4971
5311
 
4972
5312
  module.exports = AsyncJob;
4973
5313
  }, {
4974
- "../interfaces/plattar-base.js": 53
5314
+ "../interfaces/plattar-base.js": 54
4975
5315
  }],
4976
- 59: [function (require, module, exports) {
5316
+ 60: [function (require, module, exports) {
4977
5317
  var PlattarBase = require("../interfaces/plattar-base.js");
4978
5318
 
4979
5319
  var ScriptEvent = /*#__PURE__*/function (_PlattarBase15) {
4980
5320
  _inherits(ScriptEvent, _PlattarBase15);
4981
5321
 
4982
- var _super28 = _createSuper(ScriptEvent);
5322
+ var _super29 = _createSuper(ScriptEvent);
4983
5323
 
4984
5324
  function ScriptEvent() {
4985
5325
  _classCallCheck(this, ScriptEvent);
4986
5326
 
4987
- return _super28.apply(this, arguments);
5327
+ return _super29.apply(this, arguments);
4988
5328
  }
4989
5329
 
4990
5330
  _createClass(ScriptEvent, null, [{
@@ -4999,20 +5339,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4999
5339
 
5000
5340
  module.exports = ScriptEvent;
5001
5341
  }, {
5002
- "../interfaces/plattar-base.js": 53
5342
+ "../interfaces/plattar-base.js": 54
5003
5343
  }],
5004
- 60: [function (require, module, exports) {
5344
+ 61: [function (require, module, exports) {
5005
5345
  var PlattarBase = require("../interfaces/plattar-base.js");
5006
5346
 
5007
5347
  var Tag = /*#__PURE__*/function (_PlattarBase16) {
5008
5348
  _inherits(Tag, _PlattarBase16);
5009
5349
 
5010
- var _super29 = _createSuper(Tag);
5350
+ var _super30 = _createSuper(Tag);
5011
5351
 
5012
5352
  function Tag() {
5013
5353
  _classCallCheck(this, Tag);
5014
5354
 
5015
- return _super29.apply(this, arguments);
5355
+ return _super30.apply(this, arguments);
5016
5356
  }
5017
5357
 
5018
5358
  _createClass(Tag, null, [{
@@ -5027,9 +5367,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5027
5367
 
5028
5368
  module.exports = Tag;
5029
5369
  }, {
5030
- "../interfaces/plattar-base.js": 53
5370
+ "../interfaces/plattar-base.js": 54
5031
5371
  }],
5032
- 61: [function (require, module, exports) {
5372
+ 62: [function (require, module, exports) {
5033
5373
  var PlattarBase = require("../interfaces/plattar-base.js");
5034
5374
 
5035
5375
  var Server = require("../../server/plattar-server.js");
@@ -5037,20 +5377,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5037
5377
  var CardBase = /*#__PURE__*/function (_PlattarBase17) {
5038
5378
  _inherits(CardBase, _PlattarBase17);
5039
5379
 
5040
- var _super30 = _createSuper(CardBase);
5380
+ var _super31 = _createSuper(CardBase);
5041
5381
 
5042
5382
  function CardBase(id, server) {
5043
- var _this33;
5383
+ var _this36;
5044
5384
 
5045
5385
  _classCallCheck(this, CardBase);
5046
5386
 
5047
- _this33 = _super30.call(this, id, server || Server["default"]());
5387
+ _this36 = _super31.call(this, id, server || Server["default"]());
5048
5388
 
5049
- if (_this33.constructor === CardBase) {
5389
+ if (_this36.constructor === CardBase) {
5050
5390
  throw new Error("CardBase is abstract and cannot be created");
5051
5391
  }
5052
5392
 
5053
- return _this33;
5393
+ return _this36;
5054
5394
  }
5055
5395
 
5056
5396
  _createClass(CardBase, null, [{
@@ -5087,32 +5427,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5087
5427
 
5088
5428
  module.exports = CardBase;
5089
5429
  }, {
5090
- "../../server/plattar-server.js": 36,
5091
- "../interfaces/plattar-base.js": 53,
5092
- "./card-button.js": 62,
5093
- "./card-html.js": 63,
5094
- "./card-iframe.js": 64,
5095
- "./card-image.js": 65,
5096
- "./card-map.js": 66,
5097
- "./card-paragraph.js": 67,
5098
- "./card-row.js": 68,
5099
- "./card-slider.js": 69,
5100
- "./card-title.js": 70,
5101
- "./card-video.js": 71,
5102
- "./card-youtube.js": 72
5430
+ "../../server/plattar-server.js": 37,
5431
+ "../interfaces/plattar-base.js": 54,
5432
+ "./card-button.js": 63,
5433
+ "./card-html.js": 64,
5434
+ "./card-iframe.js": 65,
5435
+ "./card-image.js": 66,
5436
+ "./card-map.js": 67,
5437
+ "./card-paragraph.js": 68,
5438
+ "./card-row.js": 69,
5439
+ "./card-slider.js": 70,
5440
+ "./card-title.js": 71,
5441
+ "./card-video.js": 72,
5442
+ "./card-youtube.js": 73
5103
5443
  }],
5104
- 62: [function (require, module, exports) {
5444
+ 63: [function (require, module, exports) {
5105
5445
  var CardBase = require("./card-base.js");
5106
5446
 
5107
5447
  var CardButton = /*#__PURE__*/function (_CardBase) {
5108
5448
  _inherits(CardButton, _CardBase);
5109
5449
 
5110
- var _super31 = _createSuper(CardButton);
5450
+ var _super32 = _createSuper(CardButton);
5111
5451
 
5112
5452
  function CardButton() {
5113
5453
  _classCallCheck(this, CardButton);
5114
5454
 
5115
- return _super31.apply(this, arguments);
5455
+ return _super32.apply(this, arguments);
5116
5456
  }
5117
5457
 
5118
5458
  _createClass(CardButton, null, [{
@@ -5127,20 +5467,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5127
5467
 
5128
5468
  module.exports = CardButton;
5129
5469
  }, {
5130
- "./card-base.js": 61
5470
+ "./card-base.js": 62
5131
5471
  }],
5132
- 63: [function (require, module, exports) {
5472
+ 64: [function (require, module, exports) {
5133
5473
  var CardBase = require("./card-base.js");
5134
5474
 
5135
5475
  var CardHTML = /*#__PURE__*/function (_CardBase2) {
5136
5476
  _inherits(CardHTML, _CardBase2);
5137
5477
 
5138
- var _super32 = _createSuper(CardHTML);
5478
+ var _super33 = _createSuper(CardHTML);
5139
5479
 
5140
5480
  function CardHTML() {
5141
5481
  _classCallCheck(this, CardHTML);
5142
5482
 
5143
- return _super32.apply(this, arguments);
5483
+ return _super33.apply(this, arguments);
5144
5484
  }
5145
5485
 
5146
5486
  _createClass(CardHTML, null, [{
@@ -5155,20 +5495,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5155
5495
 
5156
5496
  module.exports = CardHTML;
5157
5497
  }, {
5158
- "./card-base.js": 61
5498
+ "./card-base.js": 62
5159
5499
  }],
5160
- 64: [function (require, module, exports) {
5500
+ 65: [function (require, module, exports) {
5161
5501
  var CardBase = require("./card-base.js");
5162
5502
 
5163
5503
  var CardIFrame = /*#__PURE__*/function (_CardBase3) {
5164
5504
  _inherits(CardIFrame, _CardBase3);
5165
5505
 
5166
- var _super33 = _createSuper(CardIFrame);
5506
+ var _super34 = _createSuper(CardIFrame);
5167
5507
 
5168
5508
  function CardIFrame() {
5169
5509
  _classCallCheck(this, CardIFrame);
5170
5510
 
5171
- return _super33.apply(this, arguments);
5511
+ return _super34.apply(this, arguments);
5172
5512
  }
5173
5513
 
5174
5514
  _createClass(CardIFrame, null, [{
@@ -5183,20 +5523,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5183
5523
 
5184
5524
  module.exports = CardIFrame;
5185
5525
  }, {
5186
- "./card-base.js": 61
5526
+ "./card-base.js": 62
5187
5527
  }],
5188
- 65: [function (require, module, exports) {
5528
+ 66: [function (require, module, exports) {
5189
5529
  var CardBase = require("./card-base.js");
5190
5530
 
5191
5531
  var CardImage = /*#__PURE__*/function (_CardBase4) {
5192
5532
  _inherits(CardImage, _CardBase4);
5193
5533
 
5194
- var _super34 = _createSuper(CardImage);
5534
+ var _super35 = _createSuper(CardImage);
5195
5535
 
5196
5536
  function CardImage() {
5197
5537
  _classCallCheck(this, CardImage);
5198
5538
 
5199
- return _super34.apply(this, arguments);
5539
+ return _super35.apply(this, arguments);
5200
5540
  }
5201
5541
 
5202
5542
  _createClass(CardImage, null, [{
@@ -5211,20 +5551,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5211
5551
 
5212
5552
  module.exports = CardImage;
5213
5553
  }, {
5214
- "./card-base.js": 61
5554
+ "./card-base.js": 62
5215
5555
  }],
5216
- 66: [function (require, module, exports) {
5556
+ 67: [function (require, module, exports) {
5217
5557
  var CardBase = require("./card-base.js");
5218
5558
 
5219
5559
  var CardMap = /*#__PURE__*/function (_CardBase5) {
5220
5560
  _inherits(CardMap, _CardBase5);
5221
5561
 
5222
- var _super35 = _createSuper(CardMap);
5562
+ var _super36 = _createSuper(CardMap);
5223
5563
 
5224
5564
  function CardMap() {
5225
5565
  _classCallCheck(this, CardMap);
5226
5566
 
5227
- return _super35.apply(this, arguments);
5567
+ return _super36.apply(this, arguments);
5228
5568
  }
5229
5569
 
5230
5570
  _createClass(CardMap, null, [{
@@ -5239,20 +5579,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5239
5579
 
5240
5580
  module.exports = CardMap;
5241
5581
  }, {
5242
- "./card-base.js": 61
5582
+ "./card-base.js": 62
5243
5583
  }],
5244
- 67: [function (require, module, exports) {
5584
+ 68: [function (require, module, exports) {
5245
5585
  var CardBase = require("./card-base.js");
5246
5586
 
5247
5587
  var CardParagraph = /*#__PURE__*/function (_CardBase6) {
5248
5588
  _inherits(CardParagraph, _CardBase6);
5249
5589
 
5250
- var _super36 = _createSuper(CardParagraph);
5590
+ var _super37 = _createSuper(CardParagraph);
5251
5591
 
5252
5592
  function CardParagraph() {
5253
5593
  _classCallCheck(this, CardParagraph);
5254
5594
 
5255
- return _super36.apply(this, arguments);
5595
+ return _super37.apply(this, arguments);
5256
5596
  }
5257
5597
 
5258
5598
  _createClass(CardParagraph, null, [{
@@ -5267,20 +5607,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5267
5607
 
5268
5608
  module.exports = CardParagraph;
5269
5609
  }, {
5270
- "./card-base.js": 61
5610
+ "./card-base.js": 62
5271
5611
  }],
5272
- 68: [function (require, module, exports) {
5612
+ 69: [function (require, module, exports) {
5273
5613
  var CardBase = require("./card-base.js");
5274
5614
 
5275
5615
  var CardRow = /*#__PURE__*/function (_CardBase7) {
5276
5616
  _inherits(CardRow, _CardBase7);
5277
5617
 
5278
- var _super37 = _createSuper(CardRow);
5618
+ var _super38 = _createSuper(CardRow);
5279
5619
 
5280
5620
  function CardRow() {
5281
5621
  _classCallCheck(this, CardRow);
5282
5622
 
5283
- return _super37.apply(this, arguments);
5623
+ return _super38.apply(this, arguments);
5284
5624
  }
5285
5625
 
5286
5626
  _createClass(CardRow, null, [{
@@ -5295,20 +5635,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5295
5635
 
5296
5636
  module.exports = CardRow;
5297
5637
  }, {
5298
- "./card-base.js": 61
5638
+ "./card-base.js": 62
5299
5639
  }],
5300
- 69: [function (require, module, exports) {
5640
+ 70: [function (require, module, exports) {
5301
5641
  var CardBase = require("./card-base.js");
5302
5642
 
5303
5643
  var CardSlider = /*#__PURE__*/function (_CardBase8) {
5304
5644
  _inherits(CardSlider, _CardBase8);
5305
5645
 
5306
- var _super38 = _createSuper(CardSlider);
5646
+ var _super39 = _createSuper(CardSlider);
5307
5647
 
5308
5648
  function CardSlider() {
5309
5649
  _classCallCheck(this, CardSlider);
5310
5650
 
5311
- return _super38.apply(this, arguments);
5651
+ return _super39.apply(this, arguments);
5312
5652
  }
5313
5653
 
5314
5654
  _createClass(CardSlider, null, [{
@@ -5323,20 +5663,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5323
5663
 
5324
5664
  module.exports = CardSlider;
5325
5665
  }, {
5326
- "./card-base.js": 61
5666
+ "./card-base.js": 62
5327
5667
  }],
5328
- 70: [function (require, module, exports) {
5668
+ 71: [function (require, module, exports) {
5329
5669
  var CardBase = require("./card-base.js");
5330
5670
 
5331
5671
  var CardTitle = /*#__PURE__*/function (_CardBase9) {
5332
5672
  _inherits(CardTitle, _CardBase9);
5333
5673
 
5334
- var _super39 = _createSuper(CardTitle);
5674
+ var _super40 = _createSuper(CardTitle);
5335
5675
 
5336
5676
  function CardTitle() {
5337
5677
  _classCallCheck(this, CardTitle);
5338
5678
 
5339
- return _super39.apply(this, arguments);
5679
+ return _super40.apply(this, arguments);
5340
5680
  }
5341
5681
 
5342
5682
  _createClass(CardTitle, null, [{
@@ -5351,20 +5691,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5351
5691
 
5352
5692
  module.exports = CardTitle;
5353
5693
  }, {
5354
- "./card-base.js": 61
5694
+ "./card-base.js": 62
5355
5695
  }],
5356
- 71: [function (require, module, exports) {
5696
+ 72: [function (require, module, exports) {
5357
5697
  var CardBase = require("./card-base.js");
5358
5698
 
5359
5699
  var CardVideo = /*#__PURE__*/function (_CardBase10) {
5360
5700
  _inherits(CardVideo, _CardBase10);
5361
5701
 
5362
- var _super40 = _createSuper(CardVideo);
5702
+ var _super41 = _createSuper(CardVideo);
5363
5703
 
5364
5704
  function CardVideo() {
5365
5705
  _classCallCheck(this, CardVideo);
5366
5706
 
5367
- return _super40.apply(this, arguments);
5707
+ return _super41.apply(this, arguments);
5368
5708
  }
5369
5709
 
5370
5710
  _createClass(CardVideo, null, [{
@@ -5379,20 +5719,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5379
5719
 
5380
5720
  module.exports = CardVideo;
5381
5721
  }, {
5382
- "./card-base.js": 61
5722
+ "./card-base.js": 62
5383
5723
  }],
5384
- 72: [function (require, module, exports) {
5724
+ 73: [function (require, module, exports) {
5385
5725
  var CardBase = require("./card-base.js");
5386
5726
 
5387
5727
  var CardYoutube = /*#__PURE__*/function (_CardBase11) {
5388
5728
  _inherits(CardYoutube, _CardBase11);
5389
5729
 
5390
- var _super41 = _createSuper(CardYoutube);
5730
+ var _super42 = _createSuper(CardYoutube);
5391
5731
 
5392
5732
  function CardYoutube() {
5393
5733
  _classCallCheck(this, CardYoutube);
5394
5734
 
5395
- return _super41.apply(this, arguments);
5735
+ return _super42.apply(this, arguments);
5396
5736
  }
5397
5737
 
5398
5738
  _createClass(CardYoutube, null, [{
@@ -5407,20 +5747,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5407
5747
 
5408
5748
  module.exports = CardYoutube;
5409
5749
  }, {
5410
- "./card-base.js": 61
5750
+ "./card-base.js": 62
5411
5751
  }],
5412
- 73: [function (require, module, exports) {
5752
+ 74: [function (require, module, exports) {
5413
5753
  var PlattarBase = require("../interfaces/plattar-base.js");
5414
5754
 
5415
5755
  var Page = /*#__PURE__*/function (_PlattarBase18) {
5416
5756
  _inherits(Page, _PlattarBase18);
5417
5757
 
5418
- var _super42 = _createSuper(Page);
5758
+ var _super43 = _createSuper(Page);
5419
5759
 
5420
5760
  function Page() {
5421
5761
  _classCallCheck(this, Page);
5422
5762
 
5423
- return _super42.apply(this, arguments);
5763
+ return _super43.apply(this, arguments);
5424
5764
  }
5425
5765
 
5426
5766
  _createClass(Page, null, [{
@@ -5435,20 +5775,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5435
5775
 
5436
5776
  module.exports = Page;
5437
5777
  }, {
5438
- "../interfaces/plattar-base.js": 53
5778
+ "../interfaces/plattar-base.js": 54
5439
5779
  }],
5440
- 74: [function (require, module, exports) {
5780
+ 75: [function (require, module, exports) {
5441
5781
  var ProductBase = require("./product-base.js");
5442
5782
 
5443
5783
  var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
5444
5784
  _inherits(ProductAnnotation, _ProductBase);
5445
5785
 
5446
- var _super43 = _createSuper(ProductAnnotation);
5786
+ var _super44 = _createSuper(ProductAnnotation);
5447
5787
 
5448
5788
  function ProductAnnotation() {
5449
5789
  _classCallCheck(this, ProductAnnotation);
5450
5790
 
5451
- return _super43.apply(this, arguments);
5791
+ return _super44.apply(this, arguments);
5452
5792
  }
5453
5793
 
5454
5794
  _createClass(ProductAnnotation, null, [{
@@ -5463,9 +5803,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5463
5803
 
5464
5804
  module.exports = ProductAnnotation;
5465
5805
  }, {
5466
- "./product-base.js": 75
5806
+ "./product-base.js": 76
5467
5807
  }],
5468
- 75: [function (require, module, exports) {
5808
+ 76: [function (require, module, exports) {
5469
5809
  var PlattarBase = require("../interfaces/plattar-base.js");
5470
5810
 
5471
5811
  var Server = require("../../server/plattar-server.js");
@@ -5473,20 +5813,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5473
5813
  var ProductBase = /*#__PURE__*/function (_PlattarBase19) {
5474
5814
  _inherits(ProductBase, _PlattarBase19);
5475
5815
 
5476
- var _super44 = _createSuper(ProductBase);
5816
+ var _super45 = _createSuper(ProductBase);
5477
5817
 
5478
5818
  function ProductBase(id, server) {
5479
- var _this34;
5819
+ var _this37;
5480
5820
 
5481
5821
  _classCallCheck(this, ProductBase);
5482
5822
 
5483
- _this34 = _super44.call(this, id, server || Server["default"]());
5823
+ _this37 = _super45.call(this, id, server || Server["default"]());
5484
5824
 
5485
- if (_this34.constructor === ProductBase) {
5825
+ if (_this37.constructor === ProductBase) {
5486
5826
  throw new Error("ProductBase is abstract and cannot be created");
5487
5827
  }
5488
5828
 
5489
- return _this34;
5829
+ return _this37;
5490
5830
  }
5491
5831
 
5492
5832
  _createClass(ProductBase, null, [{
@@ -5505,23 +5845,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5505
5845
 
5506
5846
  module.exports = ProductBase;
5507
5847
  }, {
5508
- "../../server/plattar-server.js": 36,
5509
- "../interfaces/plattar-base.js": 53,
5510
- "./product-annotation.js": 74,
5511
- "./product-variation.js": 76
5848
+ "../../server/plattar-server.js": 37,
5849
+ "../interfaces/plattar-base.js": 54,
5850
+ "./product-annotation.js": 75,
5851
+ "./product-variation.js": 77
5512
5852
  }],
5513
- 76: [function (require, module, exports) {
5853
+ 77: [function (require, module, exports) {
5514
5854
  var ProductBase = require("./product-base.js");
5515
5855
 
5516
5856
  var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
5517
5857
  _inherits(ProductVariation, _ProductBase2);
5518
5858
 
5519
- var _super45 = _createSuper(ProductVariation);
5859
+ var _super46 = _createSuper(ProductVariation);
5520
5860
 
5521
5861
  function ProductVariation() {
5522
5862
  _classCallCheck(this, ProductVariation);
5523
5863
 
5524
- return _super45.apply(this, arguments);
5864
+ return _super46.apply(this, arguments);
5525
5865
  }
5526
5866
 
5527
5867
  _createClass(ProductVariation, null, [{
@@ -5536,20 +5876,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5536
5876
 
5537
5877
  module.exports = ProductVariation;
5538
5878
  }, {
5539
- "./product-base.js": 75
5879
+ "./product-base.js": 76
5540
5880
  }],
5541
- 77: [function (require, module, exports) {
5881
+ 78: [function (require, module, exports) {
5542
5882
  var PlattarBase = require("../interfaces/plattar-base.js");
5543
5883
 
5544
5884
  var Product = /*#__PURE__*/function (_PlattarBase20) {
5545
5885
  _inherits(Product, _PlattarBase20);
5546
5886
 
5547
- var _super46 = _createSuper(Product);
5887
+ var _super47 = _createSuper(Product);
5548
5888
 
5549
5889
  function Product() {
5550
5890
  _classCallCheck(this, Product);
5551
5891
 
5552
- return _super46.apply(this, arguments);
5892
+ return _super47.apply(this, arguments);
5553
5893
  }
5554
5894
 
5555
5895
  _createClass(Product, null, [{
@@ -5564,20 +5904,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5564
5904
 
5565
5905
  module.exports = Product;
5566
5906
  }, {
5567
- "../interfaces/plattar-base.js": 53
5907
+ "../interfaces/plattar-base.js": 54
5568
5908
  }],
5569
- 78: [function (require, module, exports) {
5909
+ 79: [function (require, module, exports) {
5570
5910
  var SceneBase = require("./scene-base.js");
5571
5911
 
5572
5912
  var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
5573
5913
  _inherits(SceneAnnotation, _SceneBase);
5574
5914
 
5575
- var _super47 = _createSuper(SceneAnnotation);
5915
+ var _super48 = _createSuper(SceneAnnotation);
5576
5916
 
5577
5917
  function SceneAnnotation() {
5578
5918
  _classCallCheck(this, SceneAnnotation);
5579
5919
 
5580
- return _super47.apply(this, arguments);
5920
+ return _super48.apply(this, arguments);
5581
5921
  }
5582
5922
 
5583
5923
  _createClass(SceneAnnotation, null, [{
@@ -5592,20 +5932,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5592
5932
 
5593
5933
  module.exports = SceneAnnotation;
5594
5934
  }, {
5595
- "./scene-base.js": 80
5935
+ "./scene-base.js": 81
5596
5936
  }],
5597
- 79: [function (require, module, exports) {
5937
+ 80: [function (require, module, exports) {
5598
5938
  var SceneBase = require("./scene-base.js");
5599
5939
 
5600
5940
  var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
5601
5941
  _inherits(SceneAudio, _SceneBase2);
5602
5942
 
5603
- var _super48 = _createSuper(SceneAudio);
5943
+ var _super49 = _createSuper(SceneAudio);
5604
5944
 
5605
5945
  function SceneAudio() {
5606
5946
  _classCallCheck(this, SceneAudio);
5607
5947
 
5608
- return _super48.apply(this, arguments);
5948
+ return _super49.apply(this, arguments);
5609
5949
  }
5610
5950
 
5611
5951
  _createClass(SceneAudio, null, [{
@@ -5620,9 +5960,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5620
5960
 
5621
5961
  module.exports = SceneAudio;
5622
5962
  }, {
5623
- "./scene-base.js": 80
5963
+ "./scene-base.js": 81
5624
5964
  }],
5625
- 80: [function (require, module, exports) {
5965
+ 81: [function (require, module, exports) {
5626
5966
  var PlattarBase = require("../interfaces/plattar-base.js");
5627
5967
 
5628
5968
  var Server = require("../../server/plattar-server.js");
@@ -5630,20 +5970,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5630
5970
  var SceneBase = /*#__PURE__*/function (_PlattarBase21) {
5631
5971
  _inherits(SceneBase, _PlattarBase21);
5632
5972
 
5633
- var _super49 = _createSuper(SceneBase);
5973
+ var _super50 = _createSuper(SceneBase);
5634
5974
 
5635
5975
  function SceneBase(id, server) {
5636
- var _this35;
5976
+ var _this38;
5637
5977
 
5638
5978
  _classCallCheck(this, SceneBase);
5639
5979
 
5640
- _this35 = _super49.call(this, id, server || Server["default"]());
5980
+ _this38 = _super50.call(this, id, server || Server["default"]());
5641
5981
 
5642
- if (_this35.constructor === SceneBase) {
5982
+ if (_this38.constructor === SceneBase) {
5643
5983
  throw new Error("SceneBase is abstract and cannot be created");
5644
5984
  }
5645
5985
 
5646
- return _this35;
5986
+ return _this38;
5647
5987
  }
5648
5988
 
5649
5989
  _createClass(SceneBase, null, [{
@@ -5686,35 +6026,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5686
6026
 
5687
6027
  module.exports = SceneBase;
5688
6028
  }, {
5689
- "../../server/plattar-server.js": 36,
5690
- "../interfaces/plattar-base.js": 53,
5691
- "./scene-annotation.js": 78,
5692
- "./scene-audio.js": 79,
5693
- "./scene-button.js": 81,
5694
- "./scene-camera.js": 82,
5695
- "./scene-carousel.js": 83,
5696
- "./scene-image.js": 84,
5697
- "./scene-model.js": 85,
5698
- "./scene-panorama.js": 86,
5699
- "./scene-poller.js": 87,
5700
- "./scene-product.js": 88,
5701
- "./scene-shadow.js": 90,
5702
- "./scene-video.js": 91,
5703
- "./scene-volumetric.js": 92,
5704
- "./scene-youtube.js": 93
6029
+ "../../server/plattar-server.js": 37,
6030
+ "../interfaces/plattar-base.js": 54,
6031
+ "./scene-annotation.js": 79,
6032
+ "./scene-audio.js": 80,
6033
+ "./scene-button.js": 82,
6034
+ "./scene-camera.js": 83,
6035
+ "./scene-carousel.js": 84,
6036
+ "./scene-image.js": 85,
6037
+ "./scene-model.js": 86,
6038
+ "./scene-panorama.js": 87,
6039
+ "./scene-poller.js": 88,
6040
+ "./scene-product.js": 89,
6041
+ "./scene-shadow.js": 91,
6042
+ "./scene-video.js": 92,
6043
+ "./scene-volumetric.js": 93,
6044
+ "./scene-youtube.js": 94
5705
6045
  }],
5706
- 81: [function (require, module, exports) {
6046
+ 82: [function (require, module, exports) {
5707
6047
  var SceneBase = require("./scene-base.js");
5708
6048
 
5709
6049
  var SceneButton = /*#__PURE__*/function (_SceneBase3) {
5710
6050
  _inherits(SceneButton, _SceneBase3);
5711
6051
 
5712
- var _super50 = _createSuper(SceneButton);
6052
+ var _super51 = _createSuper(SceneButton);
5713
6053
 
5714
6054
  function SceneButton() {
5715
6055
  _classCallCheck(this, SceneButton);
5716
6056
 
5717
- return _super50.apply(this, arguments);
6057
+ return _super51.apply(this, arguments);
5718
6058
  }
5719
6059
 
5720
6060
  _createClass(SceneButton, null, [{
@@ -5729,20 +6069,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5729
6069
 
5730
6070
  module.exports = SceneButton;
5731
6071
  }, {
5732
- "./scene-base.js": 80
6072
+ "./scene-base.js": 81
5733
6073
  }],
5734
- 82: [function (require, module, exports) {
6074
+ 83: [function (require, module, exports) {
5735
6075
  var SceneBase = require("./scene-base.js");
5736
6076
 
5737
6077
  var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
5738
6078
  _inherits(SceneCamera, _SceneBase4);
5739
6079
 
5740
- var _super51 = _createSuper(SceneCamera);
6080
+ var _super52 = _createSuper(SceneCamera);
5741
6081
 
5742
6082
  function SceneCamera() {
5743
6083
  _classCallCheck(this, SceneCamera);
5744
6084
 
5745
- return _super51.apply(this, arguments);
6085
+ return _super52.apply(this, arguments);
5746
6086
  }
5747
6087
 
5748
6088
  _createClass(SceneCamera, null, [{
@@ -5757,20 +6097,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5757
6097
 
5758
6098
  module.exports = SceneCamera;
5759
6099
  }, {
5760
- "./scene-base.js": 80
6100
+ "./scene-base.js": 81
5761
6101
  }],
5762
- 83: [function (require, module, exports) {
6102
+ 84: [function (require, module, exports) {
5763
6103
  var SceneBase = require("./scene-base.js");
5764
6104
 
5765
6105
  var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
5766
6106
  _inherits(SceneCarousel, _SceneBase5);
5767
6107
 
5768
- var _super52 = _createSuper(SceneCarousel);
6108
+ var _super53 = _createSuper(SceneCarousel);
5769
6109
 
5770
6110
  function SceneCarousel() {
5771
6111
  _classCallCheck(this, SceneCarousel);
5772
6112
 
5773
- return _super52.apply(this, arguments);
6113
+ return _super53.apply(this, arguments);
5774
6114
  }
5775
6115
 
5776
6116
  _createClass(SceneCarousel, null, [{
@@ -5785,20 +6125,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5785
6125
 
5786
6126
  module.exports = SceneCarousel;
5787
6127
  }, {
5788
- "./scene-base.js": 80
6128
+ "./scene-base.js": 81
5789
6129
  }],
5790
- 84: [function (require, module, exports) {
6130
+ 85: [function (require, module, exports) {
5791
6131
  var SceneBase = require("./scene-base.js");
5792
6132
 
5793
6133
  var SceneImage = /*#__PURE__*/function (_SceneBase6) {
5794
6134
  _inherits(SceneImage, _SceneBase6);
5795
6135
 
5796
- var _super53 = _createSuper(SceneImage);
6136
+ var _super54 = _createSuper(SceneImage);
5797
6137
 
5798
6138
  function SceneImage() {
5799
6139
  _classCallCheck(this, SceneImage);
5800
6140
 
5801
- return _super53.apply(this, arguments);
6141
+ return _super54.apply(this, arguments);
5802
6142
  }
5803
6143
 
5804
6144
  _createClass(SceneImage, null, [{
@@ -5813,20 +6153,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5813
6153
 
5814
6154
  module.exports = SceneImage;
5815
6155
  }, {
5816
- "./scene-base.js": 80
6156
+ "./scene-base.js": 81
5817
6157
  }],
5818
- 85: [function (require, module, exports) {
6158
+ 86: [function (require, module, exports) {
5819
6159
  var SceneBase = require("./scene-base.js");
5820
6160
 
5821
6161
  var SceneModel = /*#__PURE__*/function (_SceneBase7) {
5822
6162
  _inherits(SceneModel, _SceneBase7);
5823
6163
 
5824
- var _super54 = _createSuper(SceneModel);
6164
+ var _super55 = _createSuper(SceneModel);
5825
6165
 
5826
6166
  function SceneModel() {
5827
6167
  _classCallCheck(this, SceneModel);
5828
6168
 
5829
- return _super54.apply(this, arguments);
6169
+ return _super55.apply(this, arguments);
5830
6170
  }
5831
6171
 
5832
6172
  _createClass(SceneModel, null, [{
@@ -5841,20 +6181,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5841
6181
 
5842
6182
  module.exports = SceneModel;
5843
6183
  }, {
5844
- "./scene-base.js": 80
6184
+ "./scene-base.js": 81
5845
6185
  }],
5846
- 86: [function (require, module, exports) {
6186
+ 87: [function (require, module, exports) {
5847
6187
  var SceneBase = require("./scene-base.js");
5848
6188
 
5849
6189
  var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
5850
6190
  _inherits(ScenePanorama, _SceneBase8);
5851
6191
 
5852
- var _super55 = _createSuper(ScenePanorama);
6192
+ var _super56 = _createSuper(ScenePanorama);
5853
6193
 
5854
6194
  function ScenePanorama() {
5855
6195
  _classCallCheck(this, ScenePanorama);
5856
6196
 
5857
- return _super55.apply(this, arguments);
6197
+ return _super56.apply(this, arguments);
5858
6198
  }
5859
6199
 
5860
6200
  _createClass(ScenePanorama, null, [{
@@ -5869,20 +6209,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5869
6209
 
5870
6210
  module.exports = ScenePanorama;
5871
6211
  }, {
5872
- "./scene-base.js": 80
6212
+ "./scene-base.js": 81
5873
6213
  }],
5874
- 87: [function (require, module, exports) {
6214
+ 88: [function (require, module, exports) {
5875
6215
  var SceneBase = require("./scene-base.js");
5876
6216
 
5877
6217
  var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
5878
6218
  _inherits(ScenePoller, _SceneBase9);
5879
6219
 
5880
- var _super56 = _createSuper(ScenePoller);
6220
+ var _super57 = _createSuper(ScenePoller);
5881
6221
 
5882
6222
  function ScenePoller() {
5883
6223
  _classCallCheck(this, ScenePoller);
5884
6224
 
5885
- return _super56.apply(this, arguments);
6225
+ return _super57.apply(this, arguments);
5886
6226
  }
5887
6227
 
5888
6228
  _createClass(ScenePoller, null, [{
@@ -5897,20 +6237,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5897
6237
 
5898
6238
  module.exports = ScenePoller;
5899
6239
  }, {
5900
- "./scene-base.js": 80
6240
+ "./scene-base.js": 81
5901
6241
  }],
5902
- 88: [function (require, module, exports) {
6242
+ 89: [function (require, module, exports) {
5903
6243
  var SceneBase = require("./scene-base.js");
5904
6244
 
5905
6245
  var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
5906
6246
  _inherits(SceneProduct, _SceneBase10);
5907
6247
 
5908
- var _super57 = _createSuper(SceneProduct);
6248
+ var _super58 = _createSuper(SceneProduct);
5909
6249
 
5910
6250
  function SceneProduct() {
5911
6251
  _classCallCheck(this, SceneProduct);
5912
6252
 
5913
- return _super57.apply(this, arguments);
6253
+ return _super58.apply(this, arguments);
5914
6254
  }
5915
6255
 
5916
6256
  _createClass(SceneProduct, null, [{
@@ -5925,20 +6265,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5925
6265
 
5926
6266
  module.exports = SceneProduct;
5927
6267
  }, {
5928
- "./scene-base.js": 80
6268
+ "./scene-base.js": 81
5929
6269
  }],
5930
- 89: [function (require, module, exports) {
6270
+ 90: [function (require, module, exports) {
5931
6271
  var SceneBase = require("./scene-base.js");
5932
6272
 
5933
6273
  var SceneScript = /*#__PURE__*/function (_SceneBase11) {
5934
6274
  _inherits(SceneScript, _SceneBase11);
5935
6275
 
5936
- var _super58 = _createSuper(SceneScript);
6276
+ var _super59 = _createSuper(SceneScript);
5937
6277
 
5938
6278
  function SceneScript() {
5939
6279
  _classCallCheck(this, SceneScript);
5940
6280
 
5941
- return _super58.apply(this, arguments);
6281
+ return _super59.apply(this, arguments);
5942
6282
  }
5943
6283
 
5944
6284
  _createClass(SceneScript, null, [{
@@ -5953,20 +6293,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5953
6293
 
5954
6294
  module.exports = SceneScript;
5955
6295
  }, {
5956
- "./scene-base.js": 80
6296
+ "./scene-base.js": 81
5957
6297
  }],
5958
- 90: [function (require, module, exports) {
6298
+ 91: [function (require, module, exports) {
5959
6299
  var SceneBase = require("./scene-base.js");
5960
6300
 
5961
6301
  var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
5962
6302
  _inherits(SceneShadow, _SceneBase12);
5963
6303
 
5964
- var _super59 = _createSuper(SceneShadow);
6304
+ var _super60 = _createSuper(SceneShadow);
5965
6305
 
5966
6306
  function SceneShadow() {
5967
6307
  _classCallCheck(this, SceneShadow);
5968
6308
 
5969
- return _super59.apply(this, arguments);
6309
+ return _super60.apply(this, arguments);
5970
6310
  }
5971
6311
 
5972
6312
  _createClass(SceneShadow, null, [{
@@ -5981,20 +6321,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5981
6321
 
5982
6322
  module.exports = SceneShadow;
5983
6323
  }, {
5984
- "./scene-base.js": 80
6324
+ "./scene-base.js": 81
5985
6325
  }],
5986
- 91: [function (require, module, exports) {
6326
+ 92: [function (require, module, exports) {
5987
6327
  var SceneBase = require("./scene-base.js");
5988
6328
 
5989
6329
  var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
5990
6330
  _inherits(SceneVideo, _SceneBase13);
5991
6331
 
5992
- var _super60 = _createSuper(SceneVideo);
6332
+ var _super61 = _createSuper(SceneVideo);
5993
6333
 
5994
6334
  function SceneVideo() {
5995
6335
  _classCallCheck(this, SceneVideo);
5996
6336
 
5997
- return _super60.apply(this, arguments);
6337
+ return _super61.apply(this, arguments);
5998
6338
  }
5999
6339
 
6000
6340
  _createClass(SceneVideo, null, [{
@@ -6009,20 +6349,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6009
6349
 
6010
6350
  module.exports = SceneVideo;
6011
6351
  }, {
6012
- "./scene-base.js": 80
6352
+ "./scene-base.js": 81
6013
6353
  }],
6014
- 92: [function (require, module, exports) {
6354
+ 93: [function (require, module, exports) {
6015
6355
  var SceneBase = require("./scene-base.js");
6016
6356
 
6017
6357
  var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
6018
6358
  _inherits(SceneVolumetric, _SceneBase14);
6019
6359
 
6020
- var _super61 = _createSuper(SceneVolumetric);
6360
+ var _super62 = _createSuper(SceneVolumetric);
6021
6361
 
6022
6362
  function SceneVolumetric() {
6023
6363
  _classCallCheck(this, SceneVolumetric);
6024
6364
 
6025
- return _super61.apply(this, arguments);
6365
+ return _super62.apply(this, arguments);
6026
6366
  }
6027
6367
 
6028
6368
  _createClass(SceneVolumetric, null, [{
@@ -6037,20 +6377,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6037
6377
 
6038
6378
  module.exports = SceneVolumetric;
6039
6379
  }, {
6040
- "./scene-base.js": 80
6380
+ "./scene-base.js": 81
6041
6381
  }],
6042
- 93: [function (require, module, exports) {
6382
+ 94: [function (require, module, exports) {
6043
6383
  var SceneBase = require("./scene-base.js");
6044
6384
 
6045
6385
  var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
6046
6386
  _inherits(SceneYoutube, _SceneBase15);
6047
6387
 
6048
- var _super62 = _createSuper(SceneYoutube);
6388
+ var _super63 = _createSuper(SceneYoutube);
6049
6389
 
6050
6390
  function SceneYoutube() {
6051
6391
  _classCallCheck(this, SceneYoutube);
6052
6392
 
6053
- return _super62.apply(this, arguments);
6393
+ return _super63.apply(this, arguments);
6054
6394
  }
6055
6395
 
6056
6396
  _createClass(SceneYoutube, null, [{
@@ -6065,20 +6405,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6065
6405
 
6066
6406
  module.exports = SceneYoutube;
6067
6407
  }, {
6068
- "./scene-base.js": 80
6408
+ "./scene-base.js": 81
6069
6409
  }],
6070
- 94: [function (require, module, exports) {
6410
+ 95: [function (require, module, exports) {
6071
6411
  var PlattarBase = require("../interfaces/plattar-base.js");
6072
6412
 
6073
6413
  var Scene = /*#__PURE__*/function (_PlattarBase22) {
6074
6414
  _inherits(Scene, _PlattarBase22);
6075
6415
 
6076
- var _super63 = _createSuper(Scene);
6416
+ var _super64 = _createSuper(Scene);
6077
6417
 
6078
6418
  function Scene() {
6079
6419
  _classCallCheck(this, Scene);
6080
6420
 
6081
- return _super63.apply(this, arguments);
6421
+ return _super64.apply(this, arguments);
6082
6422
  }
6083
6423
 
6084
6424
  _createClass(Scene, null, [{
@@ -6093,20 +6433,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6093
6433
 
6094
6434
  module.exports = Scene;
6095
6435
  }, {
6096
- "../interfaces/plattar-base.js": 53
6436
+ "../interfaces/plattar-base.js": 54
6097
6437
  }],
6098
- 95: [function (require, module, exports) {
6438
+ 96: [function (require, module, exports) {
6099
6439
  var PlattarBase = require("../interfaces/plattar-base.js");
6100
6440
 
6101
6441
  var TriggerImage = /*#__PURE__*/function (_PlattarBase23) {
6102
6442
  _inherits(TriggerImage, _PlattarBase23);
6103
6443
 
6104
- var _super64 = _createSuper(TriggerImage);
6444
+ var _super65 = _createSuper(TriggerImage);
6105
6445
 
6106
6446
  function TriggerImage() {
6107
6447
  _classCallCheck(this, TriggerImage);
6108
6448
 
6109
- return _super64.apply(this, arguments);
6449
+ return _super65.apply(this, arguments);
6110
6450
  }
6111
6451
 
6112
6452
  _createClass(TriggerImage, null, [{
@@ -6121,9 +6461,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6121
6461
 
6122
6462
  module.exports = TriggerImage;
6123
6463
  }, {
6124
- "../interfaces/plattar-base.js": 53
6464
+ "../interfaces/plattar-base.js": 54
6125
6465
  }],
6126
- 96: [function (require, module, exports) {
6466
+ 97: [function (require, module, exports) {
6127
6467
  var Application = require("../types/application.js"); // import Scene types and its children
6128
6468
 
6129
6469
 
@@ -6235,9 +6575,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6235
6575
 
6236
6576
  var AssetLibrary = require("../types/misc/asset-library");
6237
6577
 
6238
- var PlattarUtil = function PlattarUtil() {
6578
+ var PlattarUtil = /*#__PURE__*/_createClass(function PlattarUtil() {
6239
6579
  _classCallCheck(this, PlattarUtil);
6240
- };
6580
+ });
6241
6581
  /**
6242
6582
  * Checks if the provided Object is a Plattar Object
6243
6583
  *
@@ -6510,81 +6850,81 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6510
6850
 
6511
6851
  module.exports = PlattarUtil;
6512
6852
  }, {
6513
- "../types/application.js": 37,
6514
- "../types/content-pipeline/brief.js": 38,
6515
- "../types/content-pipeline/comment-brief.js": 39,
6516
- "../types/content-pipeline/comment-quote.js": 40,
6517
- "../types/content-pipeline/comment-solution.js": 41,
6518
- "../types/content-pipeline/folder.js": 42,
6519
- "../types/content-pipeline/pipeline-user.js": 43,
6520
- "../types/content-pipeline/quote.js": 44,
6521
- "../types/content-pipeline/rating.js": 45,
6522
- "../types/content-pipeline/solution.js": 46,
6523
- "../types/file/file-audio.js": 47,
6524
- "../types/file/file-image.js": 49,
6525
- "../types/file/file-model.js": 50,
6526
- "../types/file/file-script.js": 51,
6527
- "../types/file/file-video.js": 52,
6528
- "../types/interfaces/plattar-object.js": 55,
6529
- "../types/misc/application-build.js": 56,
6530
- "../types/misc/asset-library": 57,
6531
- "../types/misc/async-job.js": 58,
6532
- "../types/misc/script-event.js": 59,
6533
- "../types/misc/tag.js": 60,
6534
- "../types/page/card-button.js": 62,
6535
- "../types/page/card-html.js": 63,
6536
- "../types/page/card-iframe.js": 64,
6537
- "../types/page/card-image.js": 65,
6538
- "../types/page/card-map.js": 66,
6539
- "../types/page/card-paragraph.js": 67,
6540
- "../types/page/card-row.js": 68,
6541
- "../types/page/card-slider.js": 69,
6542
- "../types/page/card-title.js": 70,
6543
- "../types/page/card-video.js": 71,
6544
- "../types/page/card-youtube.js": 72,
6545
- "../types/page/page.js": 73,
6546
- "../types/product/product-annotation.js": 74,
6547
- "../types/product/product-variation.js": 76,
6548
- "../types/product/product.js": 77,
6549
- "../types/scene/scene-annotation.js": 78,
6550
- "../types/scene/scene-audio.js": 79,
6551
- "../types/scene/scene-button.js": 81,
6552
- "../types/scene/scene-camera.js": 82,
6553
- "../types/scene/scene-carousel.js": 83,
6554
- "../types/scene/scene-image.js": 84,
6555
- "../types/scene/scene-model.js": 85,
6556
- "../types/scene/scene-panorama.js": 86,
6557
- "../types/scene/scene-poller.js": 87,
6558
- "../types/scene/scene-product.js": 88,
6559
- "../types/scene/scene-script.js": 89,
6560
- "../types/scene/scene-shadow.js": 90,
6561
- "../types/scene/scene-video.js": 91,
6562
- "../types/scene/scene-volumetric.js": 92,
6563
- "../types/scene/scene-youtube.js": 93,
6564
- "../types/scene/scene.js": 94,
6565
- "../types/trigger/trigger-image.js": 95
6853
+ "../types/application.js": 38,
6854
+ "../types/content-pipeline/brief.js": 39,
6855
+ "../types/content-pipeline/comment-brief.js": 40,
6856
+ "../types/content-pipeline/comment-quote.js": 41,
6857
+ "../types/content-pipeline/comment-solution.js": 42,
6858
+ "../types/content-pipeline/folder.js": 43,
6859
+ "../types/content-pipeline/pipeline-user.js": 44,
6860
+ "../types/content-pipeline/quote.js": 45,
6861
+ "../types/content-pipeline/rating.js": 46,
6862
+ "../types/content-pipeline/solution.js": 47,
6863
+ "../types/file/file-audio.js": 48,
6864
+ "../types/file/file-image.js": 50,
6865
+ "../types/file/file-model.js": 51,
6866
+ "../types/file/file-script.js": 52,
6867
+ "../types/file/file-video.js": 53,
6868
+ "../types/interfaces/plattar-object.js": 56,
6869
+ "../types/misc/application-build.js": 57,
6870
+ "../types/misc/asset-library": 58,
6871
+ "../types/misc/async-job.js": 59,
6872
+ "../types/misc/script-event.js": 60,
6873
+ "../types/misc/tag.js": 61,
6874
+ "../types/page/card-button.js": 63,
6875
+ "../types/page/card-html.js": 64,
6876
+ "../types/page/card-iframe.js": 65,
6877
+ "../types/page/card-image.js": 66,
6878
+ "../types/page/card-map.js": 67,
6879
+ "../types/page/card-paragraph.js": 68,
6880
+ "../types/page/card-row.js": 69,
6881
+ "../types/page/card-slider.js": 70,
6882
+ "../types/page/card-title.js": 71,
6883
+ "../types/page/card-video.js": 72,
6884
+ "../types/page/card-youtube.js": 73,
6885
+ "../types/page/page.js": 74,
6886
+ "../types/product/product-annotation.js": 75,
6887
+ "../types/product/product-variation.js": 77,
6888
+ "../types/product/product.js": 78,
6889
+ "../types/scene/scene-annotation.js": 79,
6890
+ "../types/scene/scene-audio.js": 80,
6891
+ "../types/scene/scene-button.js": 82,
6892
+ "../types/scene/scene-camera.js": 83,
6893
+ "../types/scene/scene-carousel.js": 84,
6894
+ "../types/scene/scene-image.js": 85,
6895
+ "../types/scene/scene-model.js": 86,
6896
+ "../types/scene/scene-panorama.js": 87,
6897
+ "../types/scene/scene-poller.js": 88,
6898
+ "../types/scene/scene-product.js": 89,
6899
+ "../types/scene/scene-script.js": 90,
6900
+ "../types/scene/scene-shadow.js": 91,
6901
+ "../types/scene/scene-video.js": 92,
6902
+ "../types/scene/scene-volumetric.js": 93,
6903
+ "../types/scene/scene-youtube.js": 94,
6904
+ "../types/scene/scene.js": 95,
6905
+ "../types/trigger/trigger-image.js": 96
6566
6906
  }],
6567
- 97: [function (require, module, exports) {
6907
+ 98: [function (require, module, exports) {
6568
6908
  module.exports = "1.120.1";
6569
6909
  }, {}],
6570
- 98: [function (require, module, exports) {
6910
+ 99: [function (require, module, exports) {
6571
6911
  var QRCodeStyling = require("qr-code-styling");
6572
6912
 
6573
6913
  var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
6574
6914
  _inherits(BaseElement, _HTMLElement2);
6575
6915
 
6576
- var _super65 = _createSuper(BaseElement);
6916
+ var _super66 = _createSuper(BaseElement);
6577
6917
 
6578
6918
  function BaseElement() {
6579
6919
  _classCallCheck(this, BaseElement);
6580
6920
 
6581
- return _super65.call(this);
6921
+ return _super66.call(this);
6582
6922
  }
6583
6923
 
6584
6924
  _createClass(BaseElement, [{
6585
6925
  key: "connectedCallback",
6586
6926
  value: function connectedCallback() {
6587
- var _this36 = this;
6927
+ var _this39 = this;
6588
6928
 
6589
6929
  if (this.hasAttribute("url")) {
6590
6930
  this.renderQRCode();
@@ -6593,8 +6933,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6593
6933
  var observer = new MutationObserver(function (mutations) {
6594
6934
  mutations.forEach(function (mutation) {
6595
6935
  if (mutation.type === "attributes") {
6596
- if (_this36.hasAttribute("url")) {
6597
- _this36.renderQRCode();
6936
+ if (_this39.hasAttribute("url")) {
6937
+ _this39.renderQRCode();
6598
6938
  }
6599
6939
  }
6600
6940
  });
@@ -6772,30 +7112,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6772
7112
 
6773
7113
  module.exports = BaseElement;
6774
7114
  }, {
6775
- "qr-code-styling": 118
7115
+ "qr-code-styling": 119
6776
7116
  }],
6777
- 99: [function (require, module, exports) {
7117
+ 100: [function (require, module, exports) {
6778
7118
  var BaseElement = require("./base/base-element.js");
6779
7119
 
6780
7120
  var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
6781
7121
  _inherits(QRCodeElement, _BaseElement);
6782
7122
 
6783
- var _super66 = _createSuper(QRCodeElement);
7123
+ var _super67 = _createSuper(QRCodeElement);
6784
7124
 
6785
7125
  function QRCodeElement() {
6786
7126
  _classCallCheck(this, QRCodeElement);
6787
7127
 
6788
- return _super66.call(this);
7128
+ return _super67.call(this);
6789
7129
  }
6790
7130
 
6791
- return QRCodeElement;
7131
+ return _createClass(QRCodeElement);
6792
7132
  }(BaseElement);
6793
7133
 
6794
7134
  module.exports = QRCodeElement;
6795
7135
  }, {
6796
- "./base/base-element.js": 98
7136
+ "./base/base-element.js": 99
6797
7137
  }],
6798
- 100: [function (require, module, exports) {
7138
+ 101: [function (require, module, exports) {
6799
7139
  "use strict";
6800
7140
 
6801
7141
  var QRCodeElement = require("./elements/qrcode-element.js");
@@ -6808,24 +7148,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6808
7148
  version: Version
6809
7149
  };
6810
7150
  }, {
6811
- "./elements/qrcode-element.js": 99,
6812
- "./version": 101
7151
+ "./elements/qrcode-element.js": 100,
7152
+ "./version": 102
6813
7153
  }],
6814
- 101: [function (require, module, exports) {
7154
+ 102: [function (require, module, exports) {
6815
7155
  module.exports = "1.120.3";
6816
7156
  }, {}],
6817
- 102: [function (require, module, exports) {
7157
+ 103: [function (require, module, exports) {
6818
7158
  var ElementController = require("../controllers/element-controller");
6819
7159
 
6820
7160
  var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
6821
7161
  _inherits(BaseElement, _HTMLElement3);
6822
7162
 
6823
- var _super67 = _createSuper(BaseElement);
7163
+ var _super68 = _createSuper(BaseElement);
6824
7164
 
6825
7165
  function BaseElement() {
6826
7166
  _classCallCheck(this, BaseElement);
6827
7167
 
6828
- return _super67.call(this);
7168
+ return _super68.call(this);
6829
7169
  }
6830
7170
 
6831
7171
  _createClass(BaseElement, [{
@@ -6925,19 +7265,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6925
7265
  }, {
6926
7266
  key: "allMappedAttributes",
6927
7267
  get: function get() {
6928
- var _this37 = this;
7268
+ var _this40 = this;
6929
7269
 
6930
7270
  var map = new Map();
6931
7271
  var coreAttr = this.coreAttributes;
6932
7272
  var optAttr = this.optionalAttributes;
6933
7273
  coreAttr.forEach(function (ele) {
6934
- if (_this37.hasAttribute(ele.key)) {
6935
- map.set(ele.map, _this37.getAttribute(ele.key));
7274
+ if (_this40.hasAttribute(ele.key)) {
7275
+ map.set(ele.map, _this40.getAttribute(ele.key));
6936
7276
  }
6937
7277
  });
6938
7278
  optAttr.forEach(function (ele) {
6939
- if (_this37.hasAttribute(ele.key)) {
6940
- map.set(ele.map, _this37.getAttribute(ele.key));
7279
+ if (_this40.hasAttribute(ele.key)) {
7280
+ map.set(ele.map, _this40.getAttribute(ele.key));
6941
7281
  }
6942
7282
  });
6943
7283
  return map;
@@ -6958,7 +7298,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6958
7298
  key = _step7$value[0],
6959
7299
  value = _step7$value[1];
6960
7300
 
6961
- queryStr = first ? "?" + key + "=" + value : "&" + key + "=" + value;
7301
+ queryStr += first ? "?" + key + "=" + value : "&" + key + "=" + value;
6962
7302
  first = false;
6963
7303
  }
6964
7304
  } catch (err) {
@@ -6981,9 +7321,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6981
7321
 
6982
7322
  module.exports = BaseElement;
6983
7323
  }, {
6984
- "../controllers/element-controller": 103
7324
+ "../controllers/element-controller": 104
6985
7325
  }],
6986
- 103: [function (require, module, exports) {
7326
+ 104: [function (require, module, exports) {
6987
7327
  var Util = require("../../util/util.js");
6988
7328
 
6989
7329
  var _require = require("@plattar/context-messenger"),
@@ -6993,7 +7333,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6993
7333
 
6994
7334
  var ElementController = /*#__PURE__*/function () {
6995
7335
  function ElementController(element) {
6996
- var _this38 = this;
7336
+ var _this41 = this;
6997
7337
 
6998
7338
  _classCallCheck(this, ElementController);
6999
7339
 
@@ -7009,7 +7349,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7009
7349
 
7010
7350
  if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
7011
7351
  if (element.hasAllCoreAttributes) {
7012
- _this38._load();
7352
+ _this41._load();
7013
7353
  }
7014
7354
  }
7015
7355
  }
@@ -7100,16 +7440,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7100
7440
 
7101
7441
  module.exports = ElementController;
7102
7442
  }, {
7103
- "../../util/util.js": 114,
7104
- "./iframe-controller.js": 104,
7105
- "@plattar/context-messenger": 13
7443
+ "../../util/util.js": 115,
7444
+ "./iframe-controller.js": 105,
7445
+ "@plattar/context-messenger": 14
7106
7446
  }],
7107
- 104: [function (require, module, exports) {
7447
+ 105: [function (require, module, exports) {
7108
7448
  var Util = require("../../util/util.js");
7109
7449
 
7110
7450
  var IFrameController = /*#__PURE__*/function () {
7111
7451
  function IFrameController(element, src, id) {
7112
- var _this39 = this;
7452
+ var _this42 = this;
7113
7453
 
7114
7454
  var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
7115
7455
 
@@ -7121,7 +7461,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7121
7461
  if (!element.hasAttribute("sameorigin")) {
7122
7462
  this._iframe.onload = function () {
7123
7463
  if (onelemload) {
7124
- onelemload(_this39._iframe);
7464
+ onelemload(_this42._iframe);
7125
7465
  }
7126
7466
  };
7127
7467
  }
@@ -7218,20 +7558,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7218
7558
 
7219
7559
  module.exports = IFrameController;
7220
7560
  }, {
7221
- "../../util/util.js": 114
7561
+ "../../util/util.js": 115
7222
7562
  }],
7223
- 105: [function (require, module, exports) {
7563
+ 106: [function (require, module, exports) {
7224
7564
  var BaseElement = require("./base/base-element.js");
7225
7565
 
7226
7566
  var EditorElement = /*#__PURE__*/function (_BaseElement2) {
7227
7567
  _inherits(EditorElement, _BaseElement2);
7228
7568
 
7229
- var _super68 = _createSuper(EditorElement);
7569
+ var _super69 = _createSuper(EditorElement);
7230
7570
 
7231
7571
  function EditorElement() {
7232
7572
  _classCallCheck(this, EditorElement);
7233
7573
 
7234
- return _super68.call(this);
7574
+ return _super69.call(this);
7235
7575
  }
7236
7576
 
7237
7577
  _createClass(EditorElement, [{
@@ -7251,26 +7591,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7251
7591
 
7252
7592
  module.exports = EditorElement;
7253
7593
  }, {
7254
- "./base/base-element.js": 102
7594
+ "./base/base-element.js": 103
7255
7595
  }],
7256
- 106: [function (require, module, exports) {
7596
+ 107: [function (require, module, exports) {
7257
7597
  var BaseElement = require("./base/base-element.js");
7258
7598
 
7259
7599
  var EWallElement = /*#__PURE__*/function (_BaseElement3) {
7260
7600
  _inherits(EWallElement, _BaseElement3);
7261
7601
 
7262
- var _super69 = _createSuper(EWallElement);
7602
+ var _super70 = _createSuper(EWallElement);
7263
7603
 
7264
7604
  function EWallElement() {
7265
- var _this40;
7605
+ var _this43;
7266
7606
 
7267
7607
  _classCallCheck(this, EWallElement);
7268
7608
 
7269
- _this40 = _super69.call(this);
7609
+ _this43 = _super70.call(this);
7270
7610
  var tag = document.createElement("script");
7271
7611
  tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
7272
7612
  tag.defer = true;
7273
- return _this40;
7613
+ return _this43;
7274
7614
  }
7275
7615
 
7276
7616
  _createClass(EWallElement, [{
@@ -7306,20 +7646,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7306
7646
 
7307
7647
  module.exports = EWallElement;
7308
7648
  }, {
7309
- "./base/base-element.js": 102
7649
+ "./base/base-element.js": 103
7310
7650
  }],
7311
- 107: [function (require, module, exports) {
7651
+ 108: [function (require, module, exports) {
7312
7652
  var BaseElement = require("./base/base-element.js");
7313
7653
 
7314
7654
  var FaceARElement = /*#__PURE__*/function (_BaseElement4) {
7315
7655
  _inherits(FaceARElement, _BaseElement4);
7316
7656
 
7317
- var _super70 = _createSuper(FaceARElement);
7657
+ var _super71 = _createSuper(FaceARElement);
7318
7658
 
7319
7659
  function FaceARElement() {
7320
7660
  _classCallCheck(this, FaceARElement);
7321
7661
 
7322
- return _super70.call(this);
7662
+ return _super71.call(this);
7323
7663
  }
7324
7664
 
7325
7665
  _createClass(FaceARElement, [{
@@ -7332,6 +7672,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7332
7672
  get: function get() {
7333
7673
  return "facear";
7334
7674
  }
7675
+ }, {
7676
+ key: "optionalAttributes",
7677
+ get: function get() {
7678
+ return [{
7679
+ key: "variation-id",
7680
+ map: "variationId"
7681
+ }, {
7682
+ key: "product-id",
7683
+ map: "productId"
7684
+ }];
7685
+ }
7335
7686
  }]);
7336
7687
 
7337
7688
  return FaceARElement;
@@ -7339,20 +7690,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7339
7690
 
7340
7691
  module.exports = FaceARElement;
7341
7692
  }, {
7342
- "./base/base-element.js": 102
7693
+ "./base/base-element.js": 103
7343
7694
  }],
7344
- 108: [function (require, module, exports) {
7695
+ 109: [function (require, module, exports) {
7345
7696
  var BaseElement = require("./base/base-element.js");
7346
7697
 
7347
7698
  var ModelElement = /*#__PURE__*/function (_BaseElement5) {
7348
7699
  _inherits(ModelElement, _BaseElement5);
7349
7700
 
7350
- var _super71 = _createSuper(ModelElement);
7701
+ var _super72 = _createSuper(ModelElement);
7351
7702
 
7352
7703
  function ModelElement() {
7353
7704
  _classCallCheck(this, ModelElement);
7354
7705
 
7355
- return _super71.call(this);
7706
+ return _super72.call(this);
7356
7707
  }
7357
7708
 
7358
7709
  _createClass(ModelElement, [{
@@ -7380,20 +7731,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7380
7731
 
7381
7732
  module.exports = ModelElement;
7382
7733
  }, {
7383
- "./base/base-element.js": 102
7734
+ "./base/base-element.js": 103
7384
7735
  }],
7385
- 109: [function (require, module, exports) {
7736
+ 110: [function (require, module, exports) {
7386
7737
  var BaseElement = require("./base/base-element.js");
7387
7738
 
7388
7739
  var ProductElement = /*#__PURE__*/function (_BaseElement6) {
7389
7740
  _inherits(ProductElement, _BaseElement6);
7390
7741
 
7391
- var _super72 = _createSuper(ProductElement);
7742
+ var _super73 = _createSuper(ProductElement);
7392
7743
 
7393
7744
  function ProductElement() {
7394
7745
  _classCallCheck(this, ProductElement);
7395
7746
 
7396
- return _super72.call(this);
7747
+ return _super73.call(this);
7397
7748
  }
7398
7749
 
7399
7750
  _createClass(ProductElement, [{
@@ -7429,20 +7780,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7429
7780
 
7430
7781
  module.exports = ProductElement;
7431
7782
  }, {
7432
- "./base/base-element.js": 102
7783
+ "./base/base-element.js": 103
7433
7784
  }],
7434
- 110: [function (require, module, exports) {
7785
+ 111: [function (require, module, exports) {
7435
7786
  var BaseElement = require("./base/base-element.js");
7436
7787
 
7437
7788
  var StudioElement = /*#__PURE__*/function (_BaseElement7) {
7438
7789
  _inherits(StudioElement, _BaseElement7);
7439
7790
 
7440
- var _super73 = _createSuper(StudioElement);
7791
+ var _super74 = _createSuper(StudioElement);
7441
7792
 
7442
7793
  function StudioElement() {
7443
7794
  _classCallCheck(this, StudioElement);
7444
7795
 
7445
- return _super73.call(this);
7796
+ return _super74.call(this);
7446
7797
  }
7447
7798
 
7448
7799
  _createClass(StudioElement, [{
@@ -7462,20 +7813,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7462
7813
 
7463
7814
  module.exports = StudioElement;
7464
7815
  }, {
7465
- "./base/base-element.js": 102
7816
+ "./base/base-element.js": 103
7466
7817
  }],
7467
- 111: [function (require, module, exports) {
7818
+ 112: [function (require, module, exports) {
7468
7819
  var BaseElement = require("./base/base-element.js");
7469
7820
 
7470
7821
  var ViewerElement = /*#__PURE__*/function (_BaseElement8) {
7471
7822
  _inherits(ViewerElement, _BaseElement8);
7472
7823
 
7473
- var _super74 = _createSuper(ViewerElement);
7824
+ var _super75 = _createSuper(ViewerElement);
7474
7825
 
7475
7826
  function ViewerElement() {
7476
7827
  _classCallCheck(this, ViewerElement);
7477
7828
 
7478
- return _super74.call(this);
7829
+ return _super75.call(this);
7479
7830
  }
7480
7831
 
7481
7832
  _createClass(ViewerElement, [{
@@ -7488,6 +7839,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7488
7839
  get: function get() {
7489
7840
  return "viewer";
7490
7841
  }
7842
+ }, {
7843
+ key: "optionalAttributes",
7844
+ get: function get() {
7845
+ return [{
7846
+ key: "variation-id",
7847
+ map: "variationId"
7848
+ }, {
7849
+ key: "product-id",
7850
+ map: "productId"
7851
+ }];
7852
+ }
7491
7853
  }]);
7492
7854
 
7493
7855
  return ViewerElement;
@@ -7495,20 +7857,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7495
7857
 
7496
7858
  module.exports = ViewerElement;
7497
7859
  }, {
7498
- "./base/base-element.js": 102
7860
+ "./base/base-element.js": 103
7499
7861
  }],
7500
- 112: [function (require, module, exports) {
7862
+ 113: [function (require, module, exports) {
7501
7863
  var BaseElement = require("./base/base-element.js");
7502
7864
 
7503
7865
  var WebXRElement = /*#__PURE__*/function (_BaseElement9) {
7504
7866
  _inherits(WebXRElement, _BaseElement9);
7505
7867
 
7506
- var _super75 = _createSuper(WebXRElement);
7868
+ var _super76 = _createSuper(WebXRElement);
7507
7869
 
7508
7870
  function WebXRElement() {
7509
7871
  _classCallCheck(this, WebXRElement);
7510
7872
 
7511
- return _super75.call(this);
7873
+ return _super76.call(this);
7512
7874
  }
7513
7875
 
7514
7876
  _createClass(WebXRElement, [{
@@ -7528,9 +7890,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7528
7890
 
7529
7891
  module.exports = WebXRElement;
7530
7892
  }, {
7531
- "./base/base-element.js": 102
7893
+ "./base/base-element.js": 103
7532
7894
  }],
7533
- 113: [function (require, module, exports) {
7895
+ 114: [function (require, module, exports) {
7534
7896
  "use strict";
7535
7897
 
7536
7898
  var WebXRElement = require("./elements/webxr-element.js");
@@ -7551,30 +7913,54 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7551
7913
 
7552
7914
  var Version = require("./version");
7553
7915
 
7554
- customElements.define("plattar-webxr", WebXRElement);
7555
- customElements.define("plattar-viewer", ViewerElement);
7556
- customElements.define("plattar-product", ProductElement);
7557
- customElements.define("plattar-editor", EditorElement);
7558
- customElements.define("plattar-facear", FaceARElement);
7559
- customElements.define("plattar-8wall", EWallElement);
7560
- customElements.define("plattar-studio", StudioElement);
7561
- customElements.define("plattar-model", ModelElement);
7916
+ if (customElements.get("plattar-webxr") === undefined) {
7917
+ customElements.define("plattar-webxr", WebXRElement);
7918
+ }
7919
+
7920
+ if (customElements.get("plattar-viewer") === undefined) {
7921
+ customElements.define("plattar-viewer", ViewerElement);
7922
+ }
7923
+
7924
+ if (customElements.get("plattar-product") === undefined) {
7925
+ customElements.define("plattar-product", ProductElement);
7926
+ }
7927
+
7928
+ if (customElements.get("plattar-editor") === undefined) {
7929
+ customElements.define("plattar-editor", EditorElement);
7930
+ }
7931
+
7932
+ if (customElements.get("plattar-facear") === undefined) {
7933
+ customElements.define("plattar-facear", FaceARElement);
7934
+ }
7935
+
7936
+ if (customElements.get("plattar-8wall") === undefined) {
7937
+ customElements.define("plattar-8wall", EWallElement);
7938
+ }
7939
+
7940
+ if (customElements.get("plattar-studio") === undefined) {
7941
+ customElements.define("plattar-studio", StudioElement);
7942
+ }
7943
+
7944
+ if (customElements.get("plattar-model") === undefined) {
7945
+ customElements.define("plattar-model", ModelElement);
7946
+ }
7947
+
7562
7948
  console.log("using @plattar/plattar-web v" + Version);
7563
7949
  module.exports = {
7564
7950
  version: Version
7565
7951
  };
7566
7952
  }, {
7567
- "./elements/editor-element.js": 105,
7568
- "./elements/ewall-element.js": 106,
7569
- "./elements/facear-element.js": 107,
7570
- "./elements/model-element.js": 108,
7571
- "./elements/product-element.js": 109,
7572
- "./elements/studio-element.js": 110,
7573
- "./elements/viewer-element.js": 111,
7574
- "./elements/webxr-element.js": 112,
7575
- "./version": 115
7953
+ "./elements/editor-element.js": 106,
7954
+ "./elements/ewall-element.js": 107,
7955
+ "./elements/facear-element.js": 108,
7956
+ "./elements/model-element.js": 109,
7957
+ "./elements/product-element.js": 110,
7958
+ "./elements/studio-element.js": 111,
7959
+ "./elements/viewer-element.js": 112,
7960
+ "./elements/webxr-element.js": 113,
7961
+ "./version": 116
7576
7962
  }],
7577
- 114: [function (require, module, exports) {
7963
+ 115: [function (require, module, exports) {
7578
7964
  var Util = /*#__PURE__*/function () {
7579
7965
  function Util() {
7580
7966
  _classCallCheck(this, Util);
@@ -7671,10 +8057,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7671
8057
 
7672
8058
  module.exports = Util;
7673
8059
  }, {}],
7674
- 115: [function (require, module, exports) {
7675
- module.exports = "1.117.1";
7676
- }, {}],
7677
8060
  116: [function (require, module, exports) {
8061
+ module.exports = "1.122.2";
8062
+ }, {}],
8063
+ 117: [function (require, module, exports) {
7678
8064
  (function (global) {
7679
8065
  (function () {
7680
8066
  "use strict"; // ref: https://github.com/tc39/proposal-global
@@ -7711,7 +8097,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7711
8097
  }).call(this);
7712
8098
  }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
7713
8099
  }, {}],
7714
- 117: [function (require, module, exports) {
8100
+ 118: [function (require, module, exports) {
7715
8101
  // shim for using process in browser
7716
8102
  var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
7717
8103
  // don't break things. But we need to wrap it in a try catch in case it is
@@ -7921,7 +8307,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7921
8307
  return 0;
7922
8308
  };
7923
8309
  }, {}],
7924
- 118: [function (require, module, exports) {
8310
+ 119: [function (require, module, exports) {
7925
8311
  !function (t, e) {
7926
8312
  "object" == _typeof(exports) && "object" == _typeof(module) ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == _typeof(exports) ? exports.QRCodeStyling = e() : t.QRCodeStyling = e();
7927
8313
  }(self, function () {
@@ -10553,6 +10939,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
10553
10939
  }()["default"];
10554
10940
  });
10555
10941
  }, {}]
10556
- }, {}, [6])(6);
10942
+ }, {}, [7])(7);
10557
10943
  });
10558
10944