@plattar/plattar-ar-adapter 1.119.1 → 1.122.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,24 +532,24 @@ 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
 
332
- if (util_1.Util.isSafari()) {
539
+ if (util_1.Util.isSafari() || util_1.Util.isChromeOnIOS()) {
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", {
@@ -500,23 +707,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
500
707
  var PlattarEmbed = /*#__PURE__*/function (_HTMLElement) {
501
708
  _inherits(PlattarEmbed, _HTMLElement);
502
709
 
503
- var _super4 = _createSuper(PlattarEmbed);
710
+ var _super5 = _createSuper(PlattarEmbed);
504
711
 
505
712
  function PlattarEmbed() {
506
- var _this4;
713
+ var _this7;
507
714
 
508
715
  _classCallCheck(this, PlattarEmbed);
509
716
 
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;
717
+ _this7 = _super5.call(this);
718
+ _this7._sceneID = null;
719
+ _this7._productID = null;
720
+ _this7._variationID = null;
721
+ _this7._isReady = false;
722
+ _this7._width = "500px";
723
+ _this7._height = "500px";
724
+ _this7._server = "production";
725
+ _this7._viewer = null;
726
+ return _this7;
520
727
  }
521
728
 
522
729
  _createClass(PlattarEmbed, [{
@@ -527,7 +734,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
527
734
  }, {
528
735
  key: "connectedCallback",
529
736
  value: function connectedCallback() {
530
- var _this5 = this;
737
+ var _this8 = this;
531
738
 
532
739
  var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
533
740
  plattar_api_1.Server.create(plattar_api_1.Server.match(server || "production"));
@@ -562,33 +769,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
562
769
  } else if (init === "ar-fallback-qrcode") {
563
770
  this.startAR().then(function () {// nothing to do, launched successfully
564
771
  })["catch"](function (_err) {
565
- _this5.startQRCode();
772
+ _this8.startQRCode();
566
773
  });
567
774
  } else if (init === "ar-fallback-viewer") {
568
775
  this.startAR().then(function () {// nothing to do, launched successfully
569
776
  })["catch"](function (_err) {
570
- _this5.startViewer();
777
+ _this8.startViewer();
571
778
  });
572
779
  }
573
780
  }
574
781
  }, {
575
782
  key: "initAR",
576
783
  value: function initAR() {
577
- var _this6 = this;
784
+ var _this9 = this;
578
785
 
579
786
  return new Promise(function (accept, reject) {
580
- if (!_this6._isReady) {
787
+ if (!_this9._isReady) {
581
788
  return reject(new Error("PlattarEmbed.initAR() - cannot execute as page has not loaded yet"));
582
789
  } // if scene is not set but product is, then use ProductAR
583
790
 
584
791
 
585
- if (!_this6._sceneID && _this6._productID) {
586
- var product = new product_ar_1.ProductAR(_this6._productID, _this6._variationID);
792
+ if (!_this9._sceneID && _this9._productID) {
793
+ var product = new product_ar_1.ProductAR(_this9._productID, _this9._variationID);
587
794
  return product.init().then(accept)["catch"](reject);
588
795
  } // otherwise, scene was set so use SceneAR
589
796
 
590
797
 
591
- if (_this6._sceneID) {
798
+ if (_this9._sceneID) {
592
799
  return reject(new Error("PlattarEmbed.initAR() - scene-id not yet supported"));
593
800
  }
594
801
 
@@ -598,14 +805,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
598
805
  }, {
599
806
  key: "startAR",
600
807
  value: function startAR() {
601
- var _this7 = this;
808
+ var _this10 = this;
602
809
 
603
810
  return new Promise(function (accept, reject) {
604
- if (!_this7._isReady) {
811
+ if (!_this10._isReady) {
605
812
  return reject(new Error("PlattarEmbed.startAR() - cannot execute as page has not loaded yet"));
606
813
  }
607
814
 
608
- _this7.initAR().then(function (launcher) {
815
+ _this10.initAR().then(function (launcher) {
609
816
  launcher.start();
610
817
  accept();
611
818
  })["catch"](reject);
@@ -614,67 +821,75 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
614
821
  }, {
615
822
  key: "startViewer",
616
823
  value: function startViewer() {
617
- var _this8 = this;
824
+ var _this11 = this;
618
825
 
619
826
  return new Promise(function (accept, reject) {
620
- if (!_this8._isReady) {
827
+ if (!_this11._isReady) {
621
828
  return reject(new Error("PlattarEmbed.startViewer() - cannot execute as page has not loaded yet"));
622
829
  }
623
830
 
624
- if (_this8._viewer) {
625
- _this8._viewer.remove();
831
+ if (_this11._viewer) {
832
+ _this11._viewer.remove();
626
833
 
627
- _this8._viewer = null;
834
+ _this11._viewer = null;
628
835
  } // if scene is set, we use <plattar-viewer /> node from plattar-web
629
836
 
630
837
 
631
- if (_this8._sceneID) {
838
+ if (_this11._sceneID) {
632
839
  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);
840
+ viewer.setAttribute("width", _this11._width);
841
+ viewer.setAttribute("height", _this11._height);
842
+ viewer.setAttribute("server", _this11._server);
843
+ viewer.setAttribute("scene-id", _this11._sceneID);
844
+
845
+ if (_this11._productID) {
846
+ viewer.setAttribute("product-id", _this11._productID);
847
+ }
848
+
849
+ if (_this11._variationID) {
850
+ viewer.setAttribute("variation-id", _this11._variationID);
851
+ }
637
852
 
638
853
  viewer.onload = function () {
639
854
  return accept(viewer);
640
855
  };
641
856
 
642
- var shadow = _this8.shadowRoot || _this8.attachShadow({
857
+ var shadow = _this11.shadowRoot || _this11.attachShadow({
643
858
  mode: 'open'
644
859
  });
645
860
 
646
861
  shadow.append(viewer);
647
- _this8._viewer = viewer;
862
+ _this11._viewer = viewer;
648
863
  return;
649
864
  } // if product is set, we use <plattar-product /> node from plattar-web
650
865
 
651
866
 
652
- if (_this8._productID) {
867
+ if (_this11._productID) {
653
868
  var _viewer = document.createElement("plattar-product");
654
869
 
655
- _viewer.setAttribute("width", _this8._width);
870
+ _viewer.setAttribute("width", _this11._width);
656
871
 
657
- _viewer.setAttribute("height", _this8._height);
872
+ _viewer.setAttribute("height", _this11._height);
658
873
 
659
- _viewer.setAttribute("server", _this8._server);
874
+ _viewer.setAttribute("server", _this11._server);
660
875
 
661
- _viewer.setAttribute("product-id", _this8._productID);
876
+ _viewer.setAttribute("product-id", _this11._productID);
662
877
 
663
- if (_this8._variationID) {
664
- _viewer.setAttribute("variation-id", _this8._variationID);
878
+ if (_this11._variationID) {
879
+ _viewer.setAttribute("variation-id", _this11._variationID);
665
880
  }
666
881
 
667
882
  _viewer.onload = function () {
668
883
  return accept(_viewer);
669
884
  };
670
885
 
671
- var _shadow = _this8.shadowRoot || _this8.attachShadow({
886
+ var _shadow = _this11.shadowRoot || _this11.attachShadow({
672
887
  mode: 'open'
673
888
  });
674
889
 
675
890
  _shadow.append(_viewer);
676
891
 
677
- _this8._viewer = _viewer;
892
+ _this11._viewer = _viewer;
678
893
  return;
679
894
  }
680
895
 
@@ -684,11 +899,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
684
899
  }, {
685
900
  key: "startQRCode",
686
901
  value: function startQRCode() {
687
- var _this9 = this;
902
+ var _this12 = this;
688
903
 
689
904
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
690
905
  return new Promise(function (accept, reject) {
691
- if (!_this9._isReady) {
906
+ if (!_this12._isReady) {
692
907
  return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as page has not loaded yet"));
693
908
  }
694
909
 
@@ -698,17 +913,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
698
913
  margin: 0
699
914
  };
700
915
 
701
- if (_this9._viewer) {
702
- _this9._viewer.remove();
916
+ if (_this12._viewer) {
917
+ _this12._viewer.remove();
703
918
 
704
- _this9._viewer = null;
919
+ _this12._viewer = null;
705
920
  } // if scene is set, we embed a QR code that takes us to viewer.html
706
921
 
707
922
 
708
- if (_this9._sceneID) {
923
+ if (_this12._sceneID) {
709
924
  var viewer = document.createElement("plattar-qrcode");
710
- viewer.setAttribute("width", _this9._width);
711
- viewer.setAttribute("height", _this9._height);
925
+ viewer.setAttribute("width", _this12._width);
926
+ viewer.setAttribute("height", _this12._height);
712
927
 
713
928
  if (opt.color) {
714
929
  viewer.setAttribute("color", opt.color);
@@ -722,7 +937,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
722
937
  viewer.setAttribute("qr-type", opt.qrType);
723
938
  }
724
939
 
725
- var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this9._sceneID;
940
+ var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this12._sceneID;
941
+
942
+ if (_this12._productID) {
943
+ dst += "&productId=" + _this12._productID;
944
+ }
945
+
946
+ if (_this12._variationID) {
947
+ dst += "&variationId=" + _this12._variationID;
948
+ }
726
949
 
727
950
  viewer.setAttribute("url", dst);
728
951
 
@@ -730,22 +953,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
730
953
  return accept(viewer);
731
954
  };
732
955
 
733
- var shadow = _this9.shadowRoot || _this9.attachShadow({
956
+ var shadow = _this12.shadowRoot || _this12.attachShadow({
734
957
  mode: 'open'
735
958
  });
736
959
 
737
960
  shadow.append(viewer);
738
- _this9._viewer = viewer;
961
+ _this12._viewer = viewer;
739
962
  return;
740
963
  } // if product is set, we embed a QR code that takes us to product.html
741
964
 
742
965
 
743
- if (_this9._productID) {
966
+ if (_this12._productID) {
744
967
  var _viewer2 = document.createElement("plattar-qrcode");
745
968
 
746
- _viewer2.setAttribute("width", _this9._width);
969
+ _viewer2.setAttribute("width", _this12._width);
747
970
 
748
- _viewer2.setAttribute("height", _this9._height);
971
+ _viewer2.setAttribute("height", _this12._height);
749
972
 
750
973
  if (opt.color) {
751
974
  _viewer2.setAttribute("color", opt.color);
@@ -759,10 +982,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
759
982
  _viewer2.setAttribute("qr-type", opt.qrType);
760
983
  }
761
984
 
762
- var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this9._productID;
985
+ var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this12._productID;
763
986
 
764
- if (_this9._variationID) {
765
- _dst += "&variation_id=" + _this9._variationID;
987
+ if (_this12._variationID) {
988
+ _dst += "&variation_id=" + _this12._variationID;
766
989
  }
767
990
 
768
991
  _viewer2.setAttribute("url", _dst);
@@ -771,13 +994,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
771
994
  return accept(_viewer2);
772
995
  };
773
996
 
774
- var _shadow2 = _this9.shadowRoot || _this9.attachShadow({
997
+ var _shadow2 = _this12.shadowRoot || _this12.attachShadow({
775
998
  mode: 'open'
776
999
  });
777
1000
 
778
1001
  _shadow2.append(_viewer2);
779
1002
 
780
- _this9._viewer = _viewer2;
1003
+ _this12._viewer = _viewer2;
781
1004
  return;
782
1005
  }
783
1006
 
@@ -791,10 +1014,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
791
1014
 
792
1015
  exports["default"] = PlattarEmbed;
793
1016
  }, {
794
- "../ar/product-ar": 3,
795
- "@plattar/plattar-api": 34
1017
+ "../ar/product-ar": 4,
1018
+ "@plattar/plattar-api": 35
796
1019
  }],
797
- 6: [function (require, module, exports) {
1020
+ 7: [function (require, module, exports) {
798
1021
  "use strict";
799
1022
 
800
1023
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -840,7 +1063,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
840
1063
  Object.defineProperty(exports, "__esModule", {
841
1064
  value: true
842
1065
  });
843
- exports.Util = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
1066
+ exports.Util = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
844
1067
  exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
845
1068
  exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
846
1069
  exports.version = __importStar(require("./version"));
@@ -872,6 +1095,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
872
1095
  }
873
1096
  });
874
1097
 
1098
+ var model_ar_1 = require("./ar/model-ar");
1099
+
1100
+ Object.defineProperty(exports, "ModelAR", {
1101
+ enumerable: true,
1102
+ get: function get() {
1103
+ return model_ar_1.ModelAR;
1104
+ }
1105
+ });
1106
+
875
1107
  var util_1 = require("./util/util");
876
1108
 
877
1109
  Object.defineProperty(exports, "Util", {
@@ -886,21 +1118,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
886
1118
  var version_1 = __importDefault(require("./version"));
887
1119
 
888
1120
  if (customElements) {
889
- customElements.define("plattar-embed", plattar_embed_1["default"]);
1121
+ if (customElements.get("plattar-embed") === undefined) {
1122
+ customElements.define("plattar-embed", plattar_embed_1["default"]);
1123
+ }
890
1124
  }
891
1125
 
892
1126
  console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
893
1127
  }, {
894
1128
  "./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
1129
+ "./ar/model-ar": 3,
1130
+ "./ar/product-ar": 4,
1131
+ "./ar/scene-ar": 5,
1132
+ "./embed/plattar-embed": 6,
1133
+ "./util/util": 8,
1134
+ "./version": 9,
1135
+ "@plattar/plattar-qrcode": 101,
1136
+ "@plattar/plattar-web": 114
902
1137
  }],
903
- 7: [function (require, module, exports) {
1138
+ 8: [function (require, module, exports) {
904
1139
  "use strict";
905
1140
 
906
1141
  Object.defineProperty(exports, "__esModule", {
@@ -919,19 +1154,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
919
1154
  _createClass(Util, null, [{
920
1155
  key: "canAugment",
921
1156
  value: function canAugment() {
922
- if (/Macintosh|iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
1157
+ var userAgent = navigator.userAgent; // test google chrome on IOS and standard IOS test
1158
+
1159
+ if ((/CriOS/i.test(userAgent) || /Macintosh|iPad|iPhone|iPod/.test(userAgent)) && !window.MSStream) {
923
1160
  // inside facebook browser
924
- if (/\bFB[\w_]+\//.test(navigator.userAgent)) {
1161
+ if (/\bFB[\w_]+\//.test(userAgent)) {
925
1162
  return false;
926
1163
  } // inside instagram browser
927
1164
 
928
1165
 
929
- if (/\bInstagram/i.test(navigator.userAgent)) {
1166
+ if (/\bInstagram/i.test(userAgent)) {
930
1167
  return false;
931
1168
  }
932
1169
 
933
1170
  return Util.canQuicklook();
934
- } else if (/android/i.test(navigator.userAgent)) {
1171
+ } else if (/android/i.test(userAgent)) {
935
1172
  return true;
936
1173
  }
937
1174
 
@@ -973,6 +1210,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
973
1210
  return false;
974
1211
  }
975
1212
  }, {
1213
+ key: "isChromeOnIOS",
1214
+ value: function isChromeOnIOS() {
1215
+ var userAgent = navigator.userAgent;
1216
+
1217
+ if (userAgent) {
1218
+ return Util.canAugment() && /CriOS/i.test(userAgent);
1219
+ }
1220
+
1221
+ return false;
1222
+ }
1223
+ }, {
976
1224
  key: "getIOSVersion",
977
1225
  value: function getIOSVersion() {
978
1226
  if (/iP(hone|od|ad)/.test(navigator.platform)) {
@@ -1011,31 +1259,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1011
1259
 
1012
1260
  exports.Util = Util;
1013
1261
  }, {}],
1014
- 8: [function (require, module, exports) {
1262
+ 9: [function (require, module, exports) {
1015
1263
  "use strict";
1016
1264
 
1017
1265
  Object.defineProperty(exports, "__esModule", {
1018
1266
  value: true
1019
1267
  });
1020
- exports["default"] = "1.119.1";
1268
+ exports["default"] = "1.122.1";
1021
1269
  }, {}],
1022
- 9: [function (require, module, exports) {
1270
+ 10: [function (require, module, exports) {
1023
1271
  "use strict";
1024
1272
 
1025
1273
  Object.defineProperty(exports, "__esModule", {
1026
1274
  value: true
1027
1275
  });
1028
1276
 
1029
- var ARViewer = function ARViewer() {
1277
+ var ARViewer = /*#__PURE__*/_createClass(function ARViewer() {
1030
1278
  _classCallCheck(this, ARViewer);
1031
1279
 
1032
1280
  this.modelUrl = null;
1033
1281
  this.modelUrl = null;
1034
- };
1282
+ });
1035
1283
 
1036
1284
  exports["default"] = ARViewer;
1037
1285
  }, {}],
1038
- 10: [function (require, module, exports) {
1286
+ 11: [function (require, module, exports) {
1039
1287
  "use strict";
1040
1288
 
1041
1289
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1053,20 +1301,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1053
1301
  var QuicklookViewer = /*#__PURE__*/function (_ar_viewer_1$default) {
1054
1302
  _inherits(QuicklookViewer, _ar_viewer_1$default);
1055
1303
 
1056
- var _super5 = _createSuper(QuicklookViewer);
1304
+ var _super6 = _createSuper(QuicklookViewer);
1057
1305
 
1058
1306
  function QuicklookViewer() {
1059
- var _this10;
1307
+ var _this13;
1060
1308
 
1061
1309
  _classCallCheck(this, QuicklookViewer);
1062
1310
 
1063
- _this10 = _super5.call(this);
1064
- _this10.araction = null;
1065
- _this10.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
1311
+ _this13 = _super6.call(this);
1312
+ _this13.araction = null;
1313
+ _this13.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
1066
1314
 
1067
- _this10.arcallback = function () {};
1315
+ _this13.arcallback = function () {};
1068
1316
 
1069
- return _this10;
1317
+ return _this13;
1070
1318
  }
1071
1319
 
1072
1320
  _createClass(QuicklookViewer, [{
@@ -1082,7 +1330,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1082
1330
  }, {
1083
1331
  key: "start",
1084
1332
  value: function start() {
1085
- var _this11 = this;
1333
+ var _this14 = this;
1086
1334
 
1087
1335
  if (!this.modelUrl) {
1088
1336
  throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
@@ -1097,7 +1345,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1097
1345
  if (araction) {
1098
1346
  var handleQuicklook = function handleQuicklook(event) {
1099
1347
  if (event.data === "_apple_ar_quicklook_button_tapped") {
1100
- _this11.arcallback();
1348
+ _this14.arcallback();
1101
1349
  }
1102
1350
 
1103
1351
  document.body.removeChild(anchor);
@@ -1123,9 +1371,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1123
1371
 
1124
1372
  exports["default"] = QuicklookViewer;
1125
1373
  }, {
1126
- "./ar-viewer": 9
1374
+ "./ar-viewer": 10
1127
1375
  }],
1128
- 11: [function (require, module, exports) {
1376
+ 12: [function (require, module, exports) {
1129
1377
  "use strict";
1130
1378
 
1131
1379
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1143,12 +1391,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1143
1391
  var RealityViewer = /*#__PURE__*/function (_ar_viewer_1$default2) {
1144
1392
  _inherits(RealityViewer, _ar_viewer_1$default2);
1145
1393
 
1146
- var _super6 = _createSuper(RealityViewer);
1394
+ var _super7 = _createSuper(RealityViewer);
1147
1395
 
1148
1396
  function RealityViewer() {
1149
1397
  _classCallCheck(this, RealityViewer);
1150
1398
 
1151
- return _super6.call(this);
1399
+ return _super7.call(this);
1152
1400
  }
1153
1401
 
1154
1402
  _createClass(RealityViewer, [{
@@ -1181,9 +1429,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1181
1429
 
1182
1430
  exports["default"] = RealityViewer;
1183
1431
  }, {
1184
- "./ar-viewer": 9
1432
+ "./ar-viewer": 10
1185
1433
  }],
1186
- 12: [function (require, module, exports) {
1434
+ 13: [function (require, module, exports) {
1187
1435
  "use strict";
1188
1436
 
1189
1437
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -1201,19 +1449,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1201
1449
  var SceneViewer = /*#__PURE__*/function (_ar_viewer_1$default3) {
1202
1450
  _inherits(SceneViewer, _ar_viewer_1$default3);
1203
1451
 
1204
- var _super7 = _createSuper(SceneViewer);
1452
+ var _super8 = _createSuper(SceneViewer);
1205
1453
 
1206
1454
  function SceneViewer() {
1207
- var _this12;
1455
+ var _this15;
1208
1456
 
1209
1457
  _classCallCheck(this, SceneViewer);
1210
1458
 
1211
- _this12 = _super7.call(this);
1212
- _this12.araction = null;
1213
- _this12.isVertical = false;
1214
- _this12.titleHTML = "<b>" + document.title;
1215
- _this12.isVertical = false;
1216
- return _this12;
1459
+ _this15 = _super8.call(this);
1460
+ _this15.araction = null;
1461
+ _this15.isVertical = false;
1462
+ _this15.titleHTML = "<b>" + document.title;
1463
+ _this15.isVertical = false;
1464
+ return _this15;
1217
1465
  }
1218
1466
 
1219
1467
  _createClass(SceneViewer, [{
@@ -1270,9 +1518,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1270
1518
 
1271
1519
  exports["default"] = SceneViewer;
1272
1520
  }, {
1273
- "./ar-viewer": 9
1521
+ "./ar-viewer": 10
1274
1522
  }],
1275
- 13: [function (require, module, exports) {
1523
+ 14: [function (require, module, exports) {
1276
1524
  "use strict";
1277
1525
 
1278
1526
  var Messenger = require("./messenger/messenger.js");
@@ -1308,12 +1556,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1308
1556
  version: Version
1309
1557
  };
1310
1558
  }, {
1311
- "./memory/memory.js": 14,
1312
- "./messenger/global-event-handler.js": 21,
1313
- "./messenger/messenger.js": 22,
1314
- "./version": 27
1559
+ "./memory/memory.js": 15,
1560
+ "./messenger/global-event-handler.js": 22,
1561
+ "./messenger/messenger.js": 23,
1562
+ "./version": 28
1315
1563
  }],
1316
- 14: [function (require, module, exports) {
1564
+ 15: [function (require, module, exports) {
1317
1565
  var PermanentMemory = require("./permanent-memory");
1318
1566
 
1319
1567
  var TemporaryMemory = require("./temporary-memory");
@@ -1325,7 +1573,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1325
1573
 
1326
1574
  var Memory = /*#__PURE__*/function () {
1327
1575
  function Memory(messengerInstance) {
1328
- var _this13 = this;
1576
+ var _this16 = this;
1329
1577
 
1330
1578
  _classCallCheck(this, Memory);
1331
1579
 
@@ -1334,11 +1582,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1334
1582
  this._permMemory = new PermanentMemory(messengerInstance);
1335
1583
 
1336
1584
  this._messenger.self.__memory__set_temp_var = function (name, data) {
1337
- _this13._tempMemory[name] = data;
1585
+ _this16._tempMemory[name] = data;
1338
1586
  };
1339
1587
 
1340
1588
  this._messenger.self.__memory__set_perm_var = function (name, data) {
1341
- _this13._permMemory[name] = data;
1589
+ _this16._permMemory[name] = data;
1342
1590
  };
1343
1591
  }
1344
1592
 
@@ -1359,13 +1607,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1359
1607
 
1360
1608
  module.exports = Memory;
1361
1609
  }, {
1362
- "./permanent-memory": 15,
1363
- "./temporary-memory": 16
1610
+ "./permanent-memory": 16,
1611
+ "./temporary-memory": 17
1364
1612
  }],
1365
- 15: [function (require, module, exports) {
1613
+ 16: [function (require, module, exports) {
1366
1614
  var WrappedValue = require("./wrapped-value");
1367
1615
 
1368
- var PermanentMemory = function PermanentMemory(messengerInstance) {
1616
+ var PermanentMemory = /*#__PURE__*/_createClass(function PermanentMemory(messengerInstance) {
1369
1617
  _classCallCheck(this, PermanentMemory);
1370
1618
 
1371
1619
  return new Proxy(this, {
@@ -1456,16 +1704,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1456
1704
  return true;
1457
1705
  }
1458
1706
  });
1459
- };
1707
+ });
1460
1708
 
1461
1709
  module.exports = PermanentMemory;
1462
1710
  }, {
1463
- "./wrapped-value": 17
1711
+ "./wrapped-value": 18
1464
1712
  }],
1465
- 16: [function (require, module, exports) {
1713
+ 17: [function (require, module, exports) {
1466
1714
  var WrappedValue = require("./wrapped-value");
1467
1715
 
1468
- var TemporaryMemory = function TemporaryMemory(messengerInstance) {
1716
+ var TemporaryMemory = /*#__PURE__*/_createClass(function TemporaryMemory(messengerInstance) {
1469
1717
  _classCallCheck(this, TemporaryMemory);
1470
1718
 
1471
1719
  return new Proxy(this, {
@@ -1535,13 +1783,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1535
1783
  return true;
1536
1784
  }
1537
1785
  });
1538
- };
1786
+ });
1539
1787
 
1540
1788
  module.exports = TemporaryMemory;
1541
1789
  }, {
1542
- "./wrapped-value": 17
1790
+ "./wrapped-value": 18
1543
1791
  }],
1544
- 17: [function (require, module, exports) {
1792
+ 18: [function (require, module, exports) {
1545
1793
  /**
1546
1794
  * WrappedValue represents a generic value type with a callback function
1547
1795
  * for when the value has changed
@@ -1659,7 +1907,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1659
1907
 
1660
1908
  module.exports = WrappedValue;
1661
1909
  }, {}],
1662
- 18: [function (require, module, exports) {
1910
+ 19: [function (require, module, exports) {
1663
1911
  /**
1664
1912
  * Broadcaster is used to call functions in multiple contexts at the
1665
1913
  * same time. This can be useful without having to handle complex logic
@@ -1726,10 +1974,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1726
1974
 
1727
1975
  module.exports = Broadcaster;
1728
1976
  }, {}],
1729
- 19: [function (require, module, exports) {
1977
+ 20: [function (require, module, exports) {
1730
1978
  var WrappedFunction = require("./wrapped-local-function");
1731
1979
 
1732
- var CurrentFunctionList = function CurrentFunctionList() {
1980
+ var CurrentFunctionList = /*#__PURE__*/_createClass(function CurrentFunctionList() {
1733
1981
  _classCallCheck(this, CurrentFunctionList);
1734
1982
 
1735
1983
  return new Proxy(this, {
@@ -1785,13 +2033,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1785
2033
  return true;
1786
2034
  }
1787
2035
  });
1788
- };
2036
+ });
1789
2037
 
1790
2038
  module.exports = CurrentFunctionList;
1791
2039
  }, {
1792
- "./wrapped-local-function": 20
2040
+ "./wrapped-local-function": 21
1793
2041
  }],
1794
- 20: [function (require, module, exports) {
2042
+ 21: [function (require, module, exports) {
1795
2043
  var Util = require("../util/util.js");
1796
2044
  /**
1797
2045
  * WrappedLocalFunction represents a container that holds and maintains a specific function
@@ -1836,20 +2084,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1836
2084
  }, {
1837
2085
  key: "exec",
1838
2086
  value: function exec() {
1839
- var _this14 = this;
2087
+ var _this17 = this;
1840
2088
 
1841
2089
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1842
2090
  args[_key3] = arguments[_key3];
1843
2091
  }
1844
2092
 
1845
2093
  return new Promise(function (accept, reject) {
1846
- if (!_this14._value) {
1847
- return reject(new Error("WrappedLocalFunction.exec() function with name " + _this14._funcName + "() is not defined"));
2094
+ if (!_this17._value) {
2095
+ return reject(new Error("WrappedLocalFunction.exec() function with name " + _this17._funcName + "() is not defined"));
1848
2096
  }
1849
2097
 
1850
2098
  try {
1851
2099
  // otherwise execute the function
1852
- var rObject = _this14._execute.apply(_this14, args); // we need to check if the returned object is a Promise, if so, handle it
2100
+ var rObject = _this17._execute.apply(_this17, args); // we need to check if the returned object is a Promise, if so, handle it
1853
2101
  // differently. This can happen if the function wants to execute asyn
1854
2102
 
1855
2103
 
@@ -1901,9 +2149,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1901
2149
 
1902
2150
  module.exports = WrappedLocalFunction;
1903
2151
  }, {
1904
- "../util/util.js": 26
2152
+ "../util/util.js": 27
1905
2153
  }],
1906
- 21: [function (require, module, exports) {
2154
+ 22: [function (require, module, exports) {
1907
2155
  var RemoteInterface = require("./remote-interface.js");
1908
2156
  /**
1909
2157
  * This is a singleton class that handles events on a global basis. Allows
@@ -1913,7 +2161,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1913
2161
 
1914
2162
  var GlobalEventHandler = /*#__PURE__*/function () {
1915
2163
  function GlobalEventHandler() {
1916
- var _this15 = this;
2164
+ var _this18 = this;
1917
2165
 
1918
2166
  _classCallCheck(this, GlobalEventHandler);
1919
2167
 
@@ -1935,10 +2183,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1935
2183
 
1936
2184
  if (jsonData && jsonData.event && jsonData.data) {
1937
2185
  // see if there are any listeners for this
1938
- if (_this15._eventListeners[jsonData.event]) {
2186
+ if (_this18._eventListeners[jsonData.event]) {
1939
2187
  var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
1940
2188
 
1941
- _this15._eventListeners[jsonData.event].forEach(function (callback) {
2189
+ _this18._eventListeners[jsonData.event].forEach(function (callback) {
1942
2190
  try {
1943
2191
  callback(remoteInterface, jsonData.data);
1944
2192
  } catch (e) {
@@ -1995,9 +2243,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1995
2243
 
1996
2244
  module.exports = GlobalEventHandler;
1997
2245
  }, {
1998
- "./remote-interface.js": 23
2246
+ "./remote-interface.js": 24
1999
2247
  }],
2000
- 22: [function (require, module, exports) {
2248
+ 23: [function (require, module, exports) {
2001
2249
  var CurrentFunctionList = require("./current/current-function-list");
2002
2250
 
2003
2251
  var RemoteInterface = require("./remote-interface");
@@ -2134,40 +2382,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2134
2382
  }, {
2135
2383
  key: "_registerListeners",
2136
2384
  value: function _registerListeners() {
2137
- var _this16 = this;
2385
+ var _this19 = this;
2138
2386
 
2139
2387
  GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
2140
2388
  var iframeID = src.id; // check reserved key list
2141
2389
 
2142
2390
  switch (iframeID) {
2143
2391
  case undefined:
2144
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID cannot be undefined");
2392
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID cannot be undefined");
2145
2393
 
2146
2394
  case "self":
2147
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2395
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2148
2396
 
2149
2397
  case "parent":
2150
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2398
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2151
2399
 
2152
2400
  case "id":
2153
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2401
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2154
2402
 
2155
2403
  case "onload":
2156
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2404
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2157
2405
 
2158
2406
  default:
2159
2407
  break;
2160
2408
  } // initialise the child iframe as a messenger pipe
2161
2409
 
2162
2410
 
2163
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2411
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2164
2412
 
2165
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2413
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2166
2414
 
2167
2415
 
2168
- _this16._broadcaster._push(iframeID);
2416
+ _this19._broadcaster._push(iframeID);
2169
2417
 
2170
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2418
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2171
2419
 
2172
2420
  if (callbacks.has(iframeID)) {
2173
2421
  var array = callbacks.get(iframeID);
@@ -2191,33 +2439,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2191
2439
 
2192
2440
  switch (iframeID) {
2193
2441
  case undefined:
2194
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID cannot be undefined");
2442
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID cannot be undefined");
2195
2443
 
2196
2444
  case "self":
2197
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2445
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
2198
2446
 
2199
2447
  case "parent":
2200
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2448
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
2201
2449
 
2202
2450
  case "id":
2203
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2451
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
2204
2452
 
2205
2453
  case "onload":
2206
- throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2454
+ throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
2207
2455
 
2208
2456
  default:
2209
2457
  break;
2210
2458
  } // initialise the child iframe as a messenger pipe
2211
2459
 
2212
2460
 
2213
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2461
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2214
2462
 
2215
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2463
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
2216
2464
 
2217
2465
 
2218
- _this16._broadcaster._push(iframeID);
2466
+ _this19._broadcaster._push(iframeID);
2219
2467
 
2220
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2468
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2221
2469
 
2222
2470
  if (callbacks.has(iframeID)) {
2223
2471
  var array = callbacks.get(iframeID);
@@ -2237,11 +2485,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2237
2485
  });
2238
2486
  GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
2239
2487
  var iframeID = "parent";
2240
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2488
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2241
2489
 
2242
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin));
2490
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin));
2243
2491
 
2244
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2492
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2245
2493
 
2246
2494
  if (callbacks.has(iframeID)) {
2247
2495
  var array = callbacks.get(iframeID);
@@ -2266,11 +2514,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2266
2514
 
2267
2515
  GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
2268
2516
  var iframeID = "parent";
2269
- _this16[iframeID] = new RemoteFunctionList(iframeID);
2517
+ _this19[iframeID] = new RemoteFunctionList(iframeID);
2270
2518
 
2271
- _this16[iframeID].setup(new RemoteInterface(src.source, src.origin));
2519
+ _this19[iframeID].setup(new RemoteInterface(src.source, src.origin));
2272
2520
 
2273
- var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
2521
+ var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
2274
2522
 
2275
2523
  if (callbacks.has(iframeID)) {
2276
2524
  var array = callbacks.get(iframeID);
@@ -2326,14 +2574,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2326
2574
 
2327
2575
  module.exports = Messenger;
2328
2576
  }, {
2329
- "./broadcaster.js": 18,
2330
- "./current/current-function-list": 19,
2331
- "./global-event-handler.js": 21,
2332
- "./remote-interface": 23,
2333
- "./remote/remote-function-list": 24,
2334
- "./util/util.js": 26
2577
+ "./broadcaster.js": 19,
2578
+ "./current/current-function-list": 20,
2579
+ "./global-event-handler.js": 22,
2580
+ "./remote-interface": 24,
2581
+ "./remote/remote-function-list": 25,
2582
+ "./util/util.js": 27
2335
2583
  }],
2336
- 23: [function (require, module, exports) {
2584
+ 24: [function (require, module, exports) {
2337
2585
  /**
2338
2586
  * Provides a single useful interface for performing remote function calls
2339
2587
  */
@@ -2405,7 +2653,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2405
2653
 
2406
2654
  module.exports = RemoteInterface;
2407
2655
  }, {}],
2408
- 24: [function (require, module, exports) {
2656
+ 25: [function (require, module, exports) {
2409
2657
  var WrappedFunction = require("./wrapped-remote-function");
2410
2658
 
2411
2659
  var RemoteFunctionList = /*#__PURE__*/function () {
@@ -2493,9 +2741,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2493
2741
 
2494
2742
  module.exports = RemoteFunctionList;
2495
2743
  }, {
2496
- "./wrapped-remote-function": 25
2744
+ "./wrapped-remote-function": 26
2497
2745
  }],
2498
- 25: [function (require, module, exports) {
2746
+ 26: [function (require, module, exports) {
2499
2747
  var Util = require("../util/util.js");
2500
2748
 
2501
2749
  var GlobalEventHandler = require("../global-event-handler.js");
@@ -2508,7 +2756,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2508
2756
 
2509
2757
  var WrappedRemoteFunction = /*#__PURE__*/function () {
2510
2758
  function WrappedRemoteFunction(funcName, remoteInterface) {
2511
- var _this17 = this;
2759
+ var _this20 = this;
2512
2760
 
2513
2761
  _classCallCheck(this, WrappedRemoteFunction);
2514
2762
 
@@ -2519,19 +2767,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2519
2767
  GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
2520
2768
  var instanceID = data.instance_id; // the function name must match
2521
2769
 
2522
- if (data.function_name !== _this17._funcName) {
2770
+ if (data.function_name !== _this20._funcName) {
2523
2771
  return;
2524
2772
  } // the instance ID must be found, otherwise this is a rogue execution
2525
2773
  // that can be ignored (should not happen)
2526
2774
 
2527
2775
 
2528
- if (!_this17._callInstances[instanceID]) {
2776
+ if (!_this20._callInstances[instanceID]) {
2529
2777
  return;
2530
2778
  }
2531
2779
 
2532
- var promise = _this17._callInstances[instanceID]; // remove the old instance
2780
+ var promise = _this20._callInstances[instanceID]; // remove the old instance
2533
2781
 
2534
- delete _this17._callInstances[instanceID]; // perform the promise callbacks
2782
+ delete _this20._callInstances[instanceID]; // perform the promise callbacks
2535
2783
 
2536
2784
  if (data.function_status === "success") {
2537
2785
  promise.accept(data.function_args);
@@ -2548,7 +2796,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2548
2796
  _createClass(WrappedRemoteFunction, [{
2549
2797
  key: "exec",
2550
2798
  value: function exec() {
2551
- var _this18 = this;
2799
+ var _this21 = this;
2552
2800
 
2553
2801
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2554
2802
  args[_key4] = arguments[_key4];
@@ -2568,14 +2816,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2568
2816
 
2569
2817
  return new Promise(function (accept, reject) {
2570
2818
  // save this promise to be executed later
2571
- _this18._callInstances[instanceID] = {
2819
+ _this21._callInstances[instanceID] = {
2572
2820
  accept: accept,
2573
2821
  reject: reject
2574
2822
  }; // execute this event in another context
2575
2823
 
2576
- _this18._remoteInterface.send("__messenger__exec_fnc", {
2824
+ _this21._remoteInterface.send("__messenger__exec_fnc", {
2577
2825
  instance_id: instanceID,
2578
- function_name: _this18._funcName,
2826
+ function_name: _this21._funcName,
2579
2827
  function_args: args
2580
2828
  });
2581
2829
  });
@@ -2587,10 +2835,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2587
2835
 
2588
2836
  module.exports = WrappedRemoteFunction;
2589
2837
  }, {
2590
- "../global-event-handler.js": 21,
2591
- "../util/util.js": 26
2838
+ "../global-event-handler.js": 22,
2839
+ "../util/util.js": 27
2592
2840
  }],
2593
- 26: [function (require, module, exports) {
2841
+ 27: [function (require, module, exports) {
2594
2842
  var Util = /*#__PURE__*/function () {
2595
2843
  function Util() {
2596
2844
  _classCallCheck(this, Util);
@@ -2630,10 +2878,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2630
2878
 
2631
2879
  module.exports = Util;
2632
2880
  }, {}],
2633
- 27: [function (require, module, exports) {
2881
+ 28: [function (require, module, exports) {
2634
2882
  module.exports = "1.113.6";
2635
2883
  }, {}],
2636
- 28: [function (require, module, exports) {
2884
+ 29: [function (require, module, exports) {
2637
2885
  "use strict";
2638
2886
 
2639
2887
  Object.defineProperty(exports, "__esModule", {
@@ -2702,9 +2950,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2702
2950
 
2703
2951
  exports.AnalyticsData = AnalyticsData;
2704
2952
  }, {
2705
- "../util/util": 32
2953
+ "../util/util": 33
2706
2954
  }],
2707
- 29: [function (require, module, exports) {
2955
+ 30: [function (require, module, exports) {
2708
2956
  "use strict";
2709
2957
 
2710
2958
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -2724,7 +2972,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2724
2972
 
2725
2973
  var Analytics = /*#__PURE__*/function () {
2726
2974
  function Analytics(applicationID) {
2727
- var _this19 = this;
2975
+ var _this22 = this;
2728
2976
 
2729
2977
  _classCallCheck(this, Analytics);
2730
2978
 
@@ -2741,21 +2989,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2741
2989
 
2742
2990
  this._handlePageHide = function () {
2743
2991
  if (document.visibilityState === "hidden") {
2744
- _this19._pageTime = new Date();
2745
- } else if (_this19._pageTime) {
2992
+ _this22._pageTime = new Date();
2993
+ } else if (_this22._pageTime) {
2746
2994
  var time2 = new Date();
2747
2995
 
2748
- var diff = time2.getTime() - _this19._pageTime.getTime();
2996
+ var diff = time2.getTime() - _this22._pageTime.getTime();
2749
2997
 
2750
- var data = _this19.data;
2998
+ var data = _this22.data;
2751
2999
  data.push("eventAction", "View Time");
2752
3000
  data.push("viewTime", diff);
2753
3001
  data.push("eventLabel", diff);
2754
3002
 
2755
- _this19.write();
3003
+ _this22.write();
2756
3004
 
2757
- _this19._pageTime = null;
2758
- document.removeEventListener("visibilitychange", _this19._handlePageHide, false);
3005
+ _this22._pageTime = null;
3006
+ document.removeEventListener("visibilitychange", _this22._handlePageHide, false);
2759
3007
  }
2760
3008
  };
2761
3009
  }
@@ -2763,7 +3011,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2763
3011
  _createClass(Analytics, [{
2764
3012
  key: "query",
2765
3013
  value: function query() {
2766
- var _this20 = this;
3014
+ var _this23 = this;
2767
3015
 
2768
3016
  var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
2769
3017
 
@@ -2772,11 +3020,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2772
3020
  return reject(new Error("Analytics.query() - provided query was null"));
2773
3021
  }
2774
3022
 
2775
- 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";
3023
+ 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";
2776
3024
  var data = {
2777
3025
  type: "read",
2778
- application_id: _this20._applicationID,
2779
- event: _this20.event,
3026
+ application_id: _this23._applicationID,
3027
+ event: _this23.event,
2780
3028
  data: _query
2781
3029
  };
2782
3030
  basic_http_1["default"].exec("POST", url, data).then(function (result) {
@@ -2787,21 +3035,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2787
3035
  }, {
2788
3036
  key: "write",
2789
3037
  value: function write() {
2790
- var _this21 = this;
3038
+ var _this24 = this;
2791
3039
 
2792
3040
  return new Promise(function (accept, reject) {
2793
- var data = _this21._data;
2794
- 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";
2795
- data.push("applicationId", _this21._applicationID);
3041
+ var data = _this24._data;
3042
+ 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";
3043
+ data.push("applicationId", _this24._applicationID);
2796
3044
  var sendData = {
2797
3045
  type: "write",
2798
- application_id: _this21._applicationID,
2799
- origin: _this21.origin,
2800
- event: _this21.event,
3046
+ application_id: _this24._applicationID,
3047
+ origin: _this24.origin,
3048
+ event: _this24.event,
2801
3049
  data: data.data
2802
3050
  };
2803
3051
 
2804
- if (_this21.isBeacon === false) {
3052
+ if (_this24.isBeacon === false) {
2805
3053
  basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
2806
3054
  accept(result && result.results ? result.results : {});
2807
3055
  })["catch"](reject);
@@ -2829,10 +3077,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2829
3077
 
2830
3078
  exports.Analytics = Analytics;
2831
3079
  }, {
2832
- "../util/basic-http": 31,
2833
- "./analytics-data": 28
3080
+ "../util/basic-http": 32,
3081
+ "./analytics-data": 29
2834
3082
  }],
2835
- 30: [function (require, module, exports) {
3083
+ 31: [function (require, module, exports) {
2836
3084
  "use strict";
2837
3085
 
2838
3086
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
@@ -2894,10 +3142,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2894
3142
 
2895
3143
  console.log("using @plattar/plattar-analytics v" + version_1["default"]);
2896
3144
  }, {
2897
- "./analytics/analytics": 29,
2898
- "./version": 33
3145
+ "./analytics/analytics": 30,
3146
+ "./version": 34
2899
3147
  }],
2900
- 31: [function (require, module, exports) {
3148
+ 32: [function (require, module, exports) {
2901
3149
  "use strict";
2902
3150
 
2903
3151
  Object.defineProperty(exports, "__esModule", {
@@ -2983,7 +3231,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2983
3231
 
2984
3232
  exports["default"] = BasicHTTP;
2985
3233
  }, {}],
2986
- 32: [function (require, module, exports) {
3234
+ 33: [function (require, module, exports) {
2987
3235
  "use strict";
2988
3236
 
2989
3237
  Object.defineProperty(exports, "__esModule", {
@@ -3022,7 +3270,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3022
3270
 
3023
3271
  exports.Util = Util;
3024
3272
  }, {}],
3025
- 33: [function (require, module, exports) {
3273
+ 34: [function (require, module, exports) {
3026
3274
  "use strict";
3027
3275
 
3028
3276
  Object.defineProperty(exports, "__esModule", {
@@ -3030,7 +3278,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3030
3278
  });
3031
3279
  exports["default"] = "1.117.2";
3032
3280
  }, {}],
3033
- 34: [function (require, module, exports) {
3281
+ 35: [function (require, module, exports) {
3034
3282
  "use strict";
3035
3283
 
3036
3284
  var Server = require("./server/plattar-server.js");
@@ -3233,67 +3481,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3233
3481
  version: Version
3234
3482
  };
3235
3483
  }, {
3236
- "./server/plattar-server.js": 36,
3237
- "./types/application.js": 37,
3238
- "./types/content-pipeline/brief.js": 38,
3239
- "./types/content-pipeline/comment-brief.js": 39,
3240
- "./types/content-pipeline/comment-quote.js": 40,
3241
- "./types/content-pipeline/comment-solution.js": 41,
3242
- "./types/content-pipeline/folder.js": 42,
3243
- "./types/content-pipeline/pipeline-user.js": 43,
3244
- "./types/content-pipeline/quote.js": 44,
3245
- "./types/content-pipeline/rating.js": 45,
3246
- "./types/content-pipeline/solution.js": 46,
3247
- "./types/file/file-audio.js": 47,
3248
- "./types/file/file-base.js": 48,
3249
- "./types/file/file-image.js": 49,
3250
- "./types/file/file-model.js": 50,
3251
- "./types/file/file-script.js": 51,
3252
- "./types/file/file-video.js": 52,
3253
- "./types/misc/application-build.js": 56,
3254
- "./types/misc/asset-library.js": 57,
3255
- "./types/misc/async-job.js": 58,
3256
- "./types/misc/script-event.js": 59,
3257
- "./types/misc/tag.js": 60,
3258
- "./types/page/card-base.js": 61,
3259
- "./types/page/card-button.js": 62,
3260
- "./types/page/card-html.js": 63,
3261
- "./types/page/card-iframe.js": 64,
3262
- "./types/page/card-image.js": 65,
3263
- "./types/page/card-map.js": 66,
3264
- "./types/page/card-paragraph.js": 67,
3265
- "./types/page/card-row.js": 68,
3266
- "./types/page/card-slider.js": 69,
3267
- "./types/page/card-title.js": 70,
3268
- "./types/page/card-video.js": 71,
3269
- "./types/page/card-youtube.js": 72,
3270
- "./types/page/page.js": 73,
3271
- "./types/product/product-annotation.js": 74,
3272
- "./types/product/product-base.js": 75,
3273
- "./types/product/product-variation.js": 76,
3274
- "./types/product/product.js": 77,
3275
- "./types/scene/scene-annotation.js": 78,
3276
- "./types/scene/scene-audio.js": 79,
3277
- "./types/scene/scene-base.js": 80,
3278
- "./types/scene/scene-button.js": 81,
3279
- "./types/scene/scene-camera.js": 82,
3280
- "./types/scene/scene-carousel.js": 83,
3281
- "./types/scene/scene-image.js": 84,
3282
- "./types/scene/scene-model.js": 85,
3283
- "./types/scene/scene-panorama.js": 86,
3284
- "./types/scene/scene-poller.js": 87,
3285
- "./types/scene/scene-product.js": 88,
3286
- "./types/scene/scene-script.js": 89,
3287
- "./types/scene/scene-shadow.js": 90,
3288
- "./types/scene/scene-video.js": 91,
3289
- "./types/scene/scene-volumetric.js": 92,
3290
- "./types/scene/scene-youtube.js": 93,
3291
- "./types/scene/scene.js": 94,
3292
- "./types/trigger/trigger-image.js": 95,
3293
- "./util/plattar-util.js": 96,
3294
- "./version": 97
3484
+ "./server/plattar-server.js": 37,
3485
+ "./types/application.js": 38,
3486
+ "./types/content-pipeline/brief.js": 39,
3487
+ "./types/content-pipeline/comment-brief.js": 40,
3488
+ "./types/content-pipeline/comment-quote.js": 41,
3489
+ "./types/content-pipeline/comment-solution.js": 42,
3490
+ "./types/content-pipeline/folder.js": 43,
3491
+ "./types/content-pipeline/pipeline-user.js": 44,
3492
+ "./types/content-pipeline/quote.js": 45,
3493
+ "./types/content-pipeline/rating.js": 46,
3494
+ "./types/content-pipeline/solution.js": 47,
3495
+ "./types/file/file-audio.js": 48,
3496
+ "./types/file/file-base.js": 49,
3497
+ "./types/file/file-image.js": 50,
3498
+ "./types/file/file-model.js": 51,
3499
+ "./types/file/file-script.js": 52,
3500
+ "./types/file/file-video.js": 53,
3501
+ "./types/misc/application-build.js": 57,
3502
+ "./types/misc/asset-library.js": 58,
3503
+ "./types/misc/async-job.js": 59,
3504
+ "./types/misc/script-event.js": 60,
3505
+ "./types/misc/tag.js": 61,
3506
+ "./types/page/card-base.js": 62,
3507
+ "./types/page/card-button.js": 63,
3508
+ "./types/page/card-html.js": 64,
3509
+ "./types/page/card-iframe.js": 65,
3510
+ "./types/page/card-image.js": 66,
3511
+ "./types/page/card-map.js": 67,
3512
+ "./types/page/card-paragraph.js": 68,
3513
+ "./types/page/card-row.js": 69,
3514
+ "./types/page/card-slider.js": 70,
3515
+ "./types/page/card-title.js": 71,
3516
+ "./types/page/card-video.js": 72,
3517
+ "./types/page/card-youtube.js": 73,
3518
+ "./types/page/page.js": 74,
3519
+ "./types/product/product-annotation.js": 75,
3520
+ "./types/product/product-base.js": 76,
3521
+ "./types/product/product-variation.js": 77,
3522
+ "./types/product/product.js": 78,
3523
+ "./types/scene/scene-annotation.js": 79,
3524
+ "./types/scene/scene-audio.js": 80,
3525
+ "./types/scene/scene-base.js": 81,
3526
+ "./types/scene/scene-button.js": 82,
3527
+ "./types/scene/scene-camera.js": 83,
3528
+ "./types/scene/scene-carousel.js": 84,
3529
+ "./types/scene/scene-image.js": 85,
3530
+ "./types/scene/scene-model.js": 86,
3531
+ "./types/scene/scene-panorama.js": 87,
3532
+ "./types/scene/scene-poller.js": 88,
3533
+ "./types/scene/scene-product.js": 89,
3534
+ "./types/scene/scene-script.js": 90,
3535
+ "./types/scene/scene-shadow.js": 91,
3536
+ "./types/scene/scene-video.js": 92,
3537
+ "./types/scene/scene-volumetric.js": 93,
3538
+ "./types/scene/scene-youtube.js": 94,
3539
+ "./types/scene/scene.js": 95,
3540
+ "./types/trigger/trigger-image.js": 96,
3541
+ "./util/plattar-util.js": 97,
3542
+ "./version": 98
3295
3543
  }],
3296
- 35: [function (require, module, exports) {
3544
+ 36: [function (require, module, exports) {
3297
3545
  var fetch = require("node-fetch");
3298
3546
 
3299
3547
  var PlattarQuery = /*#__PURE__*/function () {
@@ -3352,11 +3600,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3352
3600
  }, {
3353
3601
  key: "_get",
3354
3602
  value: function _get(opt) {
3355
- var _this22 = this;
3603
+ var _this25 = this;
3356
3604
 
3357
3605
  return new Promise(function (resolve, reject) {
3358
- var target = _this22.target;
3359
- var server = _this22.server; // we cannot perform a GET request without an ID
3606
+ var target = _this25.target;
3607
+ var server = _this25.server; // we cannot perform a GET request without an ID
3360
3608
 
3361
3609
  if (!target.id) {
3362
3610
  reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
@@ -3381,16 +3629,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3381
3629
  var origin = server.originLocation.api_read;
3382
3630
  var auth = server.authToken;
3383
3631
  var headers = {
3384
- 'cookie': 'laravel_session=' + _this22.getCookie('laravel_session')
3632
+ 'cookie': 'laravel_session=' + _this25.getCookie('laravel_session')
3385
3633
  };
3386
3634
  Object.assign(headers, auth);
3387
3635
  var reqopts = {
3388
3636
  method: "GET",
3389
3637
  headers: headers
3390
3638
  };
3391
- var includeQuery = _this22._IncludeQuery;
3639
+ var includeQuery = _this25._IncludeQuery;
3392
3640
 
3393
- var params = _this22._ParamFor("get");
3641
+ var params = _this25._ParamFor("get");
3394
3642
 
3395
3643
  var endpoint = origin + target.type() + "/" + target.id;
3396
3644
 
@@ -3431,11 +3679,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3431
3679
  }, {
3432
3680
  key: "_update",
3433
3681
  value: function _update() {
3434
- var _this23 = this;
3682
+ var _this26 = this;
3435
3683
 
3436
3684
  return new Promise(function (resolve, reject) {
3437
- var target = _this23.target;
3438
- var server = _this23.server; // we cannot perform a GET request without an ID
3685
+ var target = _this26.target;
3686
+ var server = _this26.server; // we cannot perform a GET request without an ID
3439
3687
 
3440
3688
  if (!target.id) {
3441
3689
  reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
@@ -3448,7 +3696,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3448
3696
  var headers = {
3449
3697
  'Accept': 'application/json',
3450
3698
  'Content-Type': 'application/json',
3451
- 'cookie': 'laravel_session=' + _this23.getCookie('laravel_session')
3699
+ 'cookie': 'laravel_session=' + _this26.getCookie('laravel_session')
3452
3700
  };
3453
3701
  Object.assign(headers, auth);
3454
3702
  var reqopts = {
@@ -3463,7 +3711,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3463
3711
  })
3464
3712
  };
3465
3713
 
3466
- var params = _this23._ParamFor("update");
3714
+ var params = _this26._ParamFor("update");
3467
3715
 
3468
3716
  var endpoint = origin + target.type() + "/" + target.id;
3469
3717
 
@@ -3505,18 +3753,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3505
3753
  }, {
3506
3754
  key: "_create",
3507
3755
  value: function _create() {
3508
- var _this24 = this;
3756
+ var _this27 = this;
3509
3757
 
3510
3758
  return new Promise(function (resolve, reject) {
3511
- var target = _this24.target;
3512
- var server = _this24.server; // otherwise, proceed with the fetching op
3759
+ var target = _this27.target;
3760
+ var server = _this27.server; // otherwise, proceed with the fetching op
3513
3761
 
3514
3762
  var origin = server.originLocation.api_write;
3515
3763
  var auth = server.authToken;
3516
3764
  var headers = {
3517
3765
  'Accept': 'application/json',
3518
3766
  'Content-Type': 'application/json',
3519
- 'cookie': 'laravel_session=' + _this24.getCookie('laravel_session')
3767
+ 'cookie': 'laravel_session=' + _this27.getCookie('laravel_session')
3520
3768
  };
3521
3769
  Object.assign(headers, auth);
3522
3770
  var reqopts = {
@@ -3530,7 +3778,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3530
3778
  })
3531
3779
  };
3532
3780
 
3533
- var params = _this24._ParamFor("create");
3781
+ var params = _this27._ParamFor("create");
3534
3782
 
3535
3783
  var endpoint = origin + target.type();
3536
3784
 
@@ -3574,11 +3822,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3574
3822
  }, {
3575
3823
  key: "_delete",
3576
3824
  value: function _delete() {
3577
- var _this25 = this;
3825
+ var _this28 = this;
3578
3826
 
3579
3827
  return new Promise(function (resolve, reject) {
3580
- var target = _this25.target;
3581
- var server = _this25.server; // we cannot perform a GET request without an ID
3828
+ var target = _this28.target;
3829
+ var server = _this28.server; // we cannot perform a GET request without an ID
3582
3830
 
3583
3831
  if (!target.id) {
3584
3832
  reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
@@ -3591,7 +3839,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3591
3839
  var headers = {
3592
3840
  'Accept': 'application/json',
3593
3841
  'Content-Type': 'application/json',
3594
- 'cookie': 'laravel_session=' + _this25.getCookie('laravel_session')
3842
+ 'cookie': 'laravel_session=' + _this28.getCookie('laravel_session')
3595
3843
  };
3596
3844
  Object.assign(headers, auth);
3597
3845
  var reqopts = {
@@ -3606,7 +3854,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3606
3854
  })
3607
3855
  };
3608
3856
 
3609
- var params = _this25._ParamFor("delete");
3857
+ var params = _this28._ParamFor("delete");
3610
3858
 
3611
3859
  var endpoint = origin + target.type() + "/" + target.id;
3612
3860
 
@@ -3669,7 +3917,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3669
3917
  }, {
3670
3918
  key: "_include",
3671
3919
  value: function _include(args) {
3672
- var _this26 = this;
3920
+ var _this29 = this;
3673
3921
 
3674
3922
  if (!args || args.length <= 0) {
3675
3923
  return this;
@@ -3682,21 +3930,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3682
3930
  if (Array.isArray(obj)) {
3683
3931
  obj.forEach(function (strObject) {
3684
3932
  if (typeof strObject === "string" || strObject instanceof String) {
3685
- _this26._getIncludeQuery.push(strObject);
3933
+ _this29._getIncludeQuery.push(strObject);
3686
3934
  } else {
3687
- throw new Error("PlattarQuery." + _this26.target.type() + ".include(...args) - argument of Array must only include Strings");
3935
+ throw new Error("PlattarQuery." + _this29.target.type() + ".include(...args) - argument of Array must only include Strings");
3688
3936
  }
3689
3937
  });
3690
3938
  } else if (PlattarUtil.isPlattarObject(obj)) {
3691
3939
  var type = obj.type();
3692
3940
 
3693
3941
  if (Array.isArray(type)) {
3694
- _this26._include(type);
3942
+ _this29._include(type);
3695
3943
  } else {
3696
- _this26._getIncludeQuery.push(type);
3944
+ _this29._getIncludeQuery.push(type);
3697
3945
  }
3698
3946
  } else {
3699
- throw new Error("PlattarQuery." + _this26.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
3947
+ throw new Error("PlattarQuery." + _this29.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
3700
3948
  }
3701
3949
  });
3702
3950
  return this;
@@ -3777,10 +4025,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3777
4025
 
3778
4026
  module.exports = PlattarQuery;
3779
4027
  }, {
3780
- "../util/plattar-util.js": 96,
3781
- "node-fetch": 116
4028
+ "../util/plattar-util.js": 97,
4029
+ "node-fetch": 117
3782
4030
  }],
3783
- 36: [function (require, module, exports) {
4031
+ 37: [function (require, module, exports) {
3784
4032
  (function (process) {
3785
4033
  (function () {
3786
4034
  var fetch = require("node-fetch");
@@ -3836,13 +4084,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3836
4084
  }, {
3837
4085
  key: "auth",
3838
4086
  value: function auth(token, opt) {
3839
- var _this27 = this;
4087
+ var _this30 = this;
3840
4088
 
3841
4089
  var copt = opt || {
3842
4090
  validate: false
3843
4091
  };
3844
4092
  return new Promise(function (resolve, reject) {
3845
- var server = _this27.originLocation.api_write;
4093
+ var server = _this30.originLocation.api_write;
3846
4094
 
3847
4095
  if (!server) {
3848
4096
  reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
@@ -3855,10 +4103,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3855
4103
  }
3856
4104
 
3857
4105
  if (!copt.validate) {
3858
- _this27._authToken = {
4106
+ _this30._authToken = {
3859
4107
  "plattar-auth-token": token
3860
4108
  };
3861
- resolve(_this27);
4109
+ resolve(_this30);
3862
4110
  return;
3863
4111
  }
3864
4112
 
@@ -3871,10 +4119,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3871
4119
  };
3872
4120
  fetch(endpoint, options).then(function (res) {
3873
4121
  if (res.ok) {
3874
- _this27._authToken = {
4122
+ _this30._authToken = {
3875
4123
  "plattar-auth-token": token
3876
4124
  };
3877
- resolve(_this27);
4125
+ resolve(_this30);
3878
4126
  } else {
3879
4127
  reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
3880
4128
  }
@@ -3884,7 +4132,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3884
4132
  }, {
3885
4133
  key: "origin",
3886
4134
  value: function origin(server, opt) {
3887
- var _this28 = this;
4135
+ var _this31 = this;
3888
4136
 
3889
4137
  var copt = opt || {
3890
4138
  validate: false
@@ -3896,8 +4144,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3896
4144
  }
3897
4145
 
3898
4146
  if (!copt.validate) {
3899
- _this28._serverLocation = server;
3900
- resolve(_this28);
4147
+ _this31._serverLocation = server;
4148
+ resolve(_this31);
3901
4149
  return;
3902
4150
  }
3903
4151
 
@@ -3907,8 +4155,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3907
4155
  };
3908
4156
  fetch(endpoint, options).then(function (res) {
3909
4157
  if (res.ok) {
3910
- _this28._serverLocation = server;
3911
- resolve(_this28);
4158
+ _this31._serverLocation = server;
4159
+ resolve(_this31);
3912
4160
  } else {
3913
4161
  reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
3914
4162
  }
@@ -3934,7 +4182,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3934
4182
  api_read: "https://staging.plattar.space/api/v2/",
3935
4183
  api_write: "https://cms.plattar.space/api/v2/",
3936
4184
  cdn: "https://cdn-staging.plattar.space/",
3937
- cdn_image: "http://plattar-staging.s3-website-ap-southeast-2.amazonaws.com/",
4185
+ cdn_image: "https://images.plattar.space/",
3938
4186
  analytics: "https://c.plattar.space/api/v2/analytics",
3939
4187
  type: "staging"
3940
4188
  };
@@ -3948,7 +4196,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3948
4196
  api_read: "https://app.plattar.com/api/v2/",
3949
4197
  api_write: "https://cms.plattar.com/api/v2/",
3950
4198
  cdn: "https://cdn.plattar.com/",
3951
- cdn_image: "http://plattar-production.s3-website-ap-southeast-2.amazonaws.com/",
4199
+ cdn_image: "https://images.plattar.com/",
3952
4200
  analytics: "https://c.plattar.space/api/v2/analytics",
3953
4201
  type: "production"
3954
4202
  };
@@ -3964,7 +4212,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
3964
4212
  api_read: "https://localhost/api/v2/",
3965
4213
  api_write: "https://localhost/api/v2/",
3966
4214
  cdn: "https://cdn-dev.plattar.space/",
3967
- cdn_image: "http://plattar-dev.s3-website-ap-southeast-2.amazonaws.com/",
4215
+ cdn_image: "https://images-dev.plattar.space/'",
3968
4216
  analytics: "https://localhost:3000/api/v2/analytics/",
3969
4217
  type: "dev"
3970
4218
  };
@@ -4002,21 +4250,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4002
4250
  }).call(this);
4003
4251
  }).call(this, require('_process'));
4004
4252
  }, {
4005
- "_process": 117,
4006
- "node-fetch": 116
4253
+ "_process": 118,
4254
+ "node-fetch": 117
4007
4255
  }],
4008
- 37: [function (require, module, exports) {
4256
+ 38: [function (require, module, exports) {
4009
4257
  var PlattarBase = require("./interfaces/plattar-base.js");
4010
4258
 
4011
4259
  var Application = /*#__PURE__*/function (_PlattarBase) {
4012
4260
  _inherits(Application, _PlattarBase);
4013
4261
 
4014
- var _super8 = _createSuper(Application);
4262
+ var _super9 = _createSuper(Application);
4015
4263
 
4016
4264
  function Application() {
4017
4265
  _classCallCheck(this, Application);
4018
4266
 
4019
- return _super8.apply(this, arguments);
4267
+ return _super9.apply(this, arguments);
4020
4268
  }
4021
4269
 
4022
4270
  _createClass(Application, null, [{
@@ -4031,20 +4279,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4031
4279
 
4032
4280
  module.exports = Application;
4033
4281
  }, {
4034
- "./interfaces/plattar-base.js": 53
4282
+ "./interfaces/plattar-base.js": 54
4035
4283
  }],
4036
- 38: [function (require, module, exports) {
4284
+ 39: [function (require, module, exports) {
4037
4285
  var PlattarBase = require("../interfaces/plattar-base");
4038
4286
 
4039
4287
  var Brief = /*#__PURE__*/function (_PlattarBase2) {
4040
4288
  _inherits(Brief, _PlattarBase2);
4041
4289
 
4042
- var _super9 = _createSuper(Brief);
4290
+ var _super10 = _createSuper(Brief);
4043
4291
 
4044
4292
  function Brief() {
4045
4293
  _classCallCheck(this, Brief);
4046
4294
 
4047
- return _super9.apply(this, arguments);
4295
+ return _super10.apply(this, arguments);
4048
4296
  }
4049
4297
 
4050
4298
  _createClass(Brief, null, [{
@@ -4059,20 +4307,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4059
4307
 
4060
4308
  module.exports = Brief;
4061
4309
  }, {
4062
- "../interfaces/plattar-base": 53
4310
+ "../interfaces/plattar-base": 54
4063
4311
  }],
4064
- 39: [function (require, module, exports) {
4312
+ 40: [function (require, module, exports) {
4065
4313
  var PlattarBase = require("../interfaces/plattar-base");
4066
4314
 
4067
4315
  var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
4068
4316
  _inherits(CommentBrief, _PlattarBase3);
4069
4317
 
4070
- var _super10 = _createSuper(CommentBrief);
4318
+ var _super11 = _createSuper(CommentBrief);
4071
4319
 
4072
4320
  function CommentBrief() {
4073
4321
  _classCallCheck(this, CommentBrief);
4074
4322
 
4075
- return _super10.apply(this, arguments);
4323
+ return _super11.apply(this, arguments);
4076
4324
  }
4077
4325
 
4078
4326
  _createClass(CommentBrief, null, [{
@@ -4087,20 +4335,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4087
4335
 
4088
4336
  module.exports = CommentBrief;
4089
4337
  }, {
4090
- "../interfaces/plattar-base": 53
4338
+ "../interfaces/plattar-base": 54
4091
4339
  }],
4092
- 40: [function (require, module, exports) {
4340
+ 41: [function (require, module, exports) {
4093
4341
  var PlattarBase = require("../interfaces/plattar-base");
4094
4342
 
4095
4343
  var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
4096
4344
  _inherits(CommentQuote, _PlattarBase4);
4097
4345
 
4098
- var _super11 = _createSuper(CommentQuote);
4346
+ var _super12 = _createSuper(CommentQuote);
4099
4347
 
4100
4348
  function CommentQuote() {
4101
4349
  _classCallCheck(this, CommentQuote);
4102
4350
 
4103
- return _super11.apply(this, arguments);
4351
+ return _super12.apply(this, arguments);
4104
4352
  }
4105
4353
 
4106
4354
  _createClass(CommentQuote, null, [{
@@ -4115,20 +4363,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4115
4363
 
4116
4364
  module.exports = CommentQuote;
4117
4365
  }, {
4118
- "../interfaces/plattar-base": 53
4366
+ "../interfaces/plattar-base": 54
4119
4367
  }],
4120
- 41: [function (require, module, exports) {
4368
+ 42: [function (require, module, exports) {
4121
4369
  var PlattarBase = require("../interfaces/plattar-base");
4122
4370
 
4123
4371
  var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
4124
4372
  _inherits(CommentSolution, _PlattarBase5);
4125
4373
 
4126
- var _super12 = _createSuper(CommentSolution);
4374
+ var _super13 = _createSuper(CommentSolution);
4127
4375
 
4128
4376
  function CommentSolution() {
4129
4377
  _classCallCheck(this, CommentSolution);
4130
4378
 
4131
- return _super12.apply(this, arguments);
4379
+ return _super13.apply(this, arguments);
4132
4380
  }
4133
4381
 
4134
4382
  _createClass(CommentSolution, null, [{
@@ -4143,20 +4391,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4143
4391
 
4144
4392
  module.exports = CommentSolution;
4145
4393
  }, {
4146
- "../interfaces/plattar-base": 53
4394
+ "../interfaces/plattar-base": 54
4147
4395
  }],
4148
- 42: [function (require, module, exports) {
4396
+ 43: [function (require, module, exports) {
4149
4397
  var PlattarBase = require("../interfaces/plattar-base");
4150
4398
 
4151
4399
  var Folder = /*#__PURE__*/function (_PlattarBase6) {
4152
4400
  _inherits(Folder, _PlattarBase6);
4153
4401
 
4154
- var _super13 = _createSuper(Folder);
4402
+ var _super14 = _createSuper(Folder);
4155
4403
 
4156
4404
  function Folder() {
4157
4405
  _classCallCheck(this, Folder);
4158
4406
 
4159
- return _super13.apply(this, arguments);
4407
+ return _super14.apply(this, arguments);
4160
4408
  }
4161
4409
 
4162
4410
  _createClass(Folder, null, [{
@@ -4171,20 +4419,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4171
4419
 
4172
4420
  module.exports = Folder;
4173
4421
  }, {
4174
- "../interfaces/plattar-base": 53
4422
+ "../interfaces/plattar-base": 54
4175
4423
  }],
4176
- 43: [function (require, module, exports) {
4424
+ 44: [function (require, module, exports) {
4177
4425
  var PlattarBase = require("../interfaces/plattar-base");
4178
4426
 
4179
4427
  var PipelineUser = /*#__PURE__*/function (_PlattarBase7) {
4180
4428
  _inherits(PipelineUser, _PlattarBase7);
4181
4429
 
4182
- var _super14 = _createSuper(PipelineUser);
4430
+ var _super15 = _createSuper(PipelineUser);
4183
4431
 
4184
4432
  function PipelineUser() {
4185
4433
  _classCallCheck(this, PipelineUser);
4186
4434
 
4187
- return _super14.apply(this, arguments);
4435
+ return _super15.apply(this, arguments);
4188
4436
  }
4189
4437
 
4190
4438
  _createClass(PipelineUser, null, [{
@@ -4199,20 +4447,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4199
4447
 
4200
4448
  module.exports = PipelineUser;
4201
4449
  }, {
4202
- "../interfaces/plattar-base": 53
4450
+ "../interfaces/plattar-base": 54
4203
4451
  }],
4204
- 44: [function (require, module, exports) {
4452
+ 45: [function (require, module, exports) {
4205
4453
  var PlattarBase = require("../interfaces/plattar-base");
4206
4454
 
4207
4455
  var Quote = /*#__PURE__*/function (_PlattarBase8) {
4208
4456
  _inherits(Quote, _PlattarBase8);
4209
4457
 
4210
- var _super15 = _createSuper(Quote);
4458
+ var _super16 = _createSuper(Quote);
4211
4459
 
4212
4460
  function Quote() {
4213
4461
  _classCallCheck(this, Quote);
4214
4462
 
4215
- return _super15.apply(this, arguments);
4463
+ return _super16.apply(this, arguments);
4216
4464
  }
4217
4465
 
4218
4466
  _createClass(Quote, null, [{
@@ -4227,20 +4475,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4227
4475
 
4228
4476
  module.exports = Quote;
4229
4477
  }, {
4230
- "../interfaces/plattar-base": 53
4478
+ "../interfaces/plattar-base": 54
4231
4479
  }],
4232
- 45: [function (require, module, exports) {
4480
+ 46: [function (require, module, exports) {
4233
4481
  var PlattarBase = require("../interfaces/plattar-base");
4234
4482
 
4235
4483
  var Rating = /*#__PURE__*/function (_PlattarBase9) {
4236
4484
  _inherits(Rating, _PlattarBase9);
4237
4485
 
4238
- var _super16 = _createSuper(Rating);
4486
+ var _super17 = _createSuper(Rating);
4239
4487
 
4240
4488
  function Rating() {
4241
4489
  _classCallCheck(this, Rating);
4242
4490
 
4243
- return _super16.apply(this, arguments);
4491
+ return _super17.apply(this, arguments);
4244
4492
  }
4245
4493
 
4246
4494
  _createClass(Rating, null, [{
@@ -4255,20 +4503,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4255
4503
 
4256
4504
  module.exports = Rating;
4257
4505
  }, {
4258
- "../interfaces/plattar-base": 53
4506
+ "../interfaces/plattar-base": 54
4259
4507
  }],
4260
- 46: [function (require, module, exports) {
4508
+ 47: [function (require, module, exports) {
4261
4509
  var PlattarBase = require("../interfaces/plattar-base");
4262
4510
 
4263
4511
  var Solution = /*#__PURE__*/function (_PlattarBase10) {
4264
4512
  _inherits(Solution, _PlattarBase10);
4265
4513
 
4266
- var _super17 = _createSuper(Solution);
4514
+ var _super18 = _createSuper(Solution);
4267
4515
 
4268
4516
  function Solution() {
4269
4517
  _classCallCheck(this, Solution);
4270
4518
 
4271
- return _super17.apply(this, arguments);
4519
+ return _super18.apply(this, arguments);
4272
4520
  }
4273
4521
 
4274
4522
  _createClass(Solution, null, [{
@@ -4283,20 +4531,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4283
4531
 
4284
4532
  module.exports = Solution;
4285
4533
  }, {
4286
- "../interfaces/plattar-base": 53
4534
+ "../interfaces/plattar-base": 54
4287
4535
  }],
4288
- 47: [function (require, module, exports) {
4536
+ 48: [function (require, module, exports) {
4289
4537
  var FileBase = require("./file-base.js");
4290
4538
 
4291
4539
  var FileAudio = /*#__PURE__*/function (_FileBase) {
4292
4540
  _inherits(FileAudio, _FileBase);
4293
4541
 
4294
- var _super18 = _createSuper(FileAudio);
4542
+ var _super19 = _createSuper(FileAudio);
4295
4543
 
4296
4544
  function FileAudio() {
4297
4545
  _classCallCheck(this, FileAudio);
4298
4546
 
4299
- return _super18.apply(this, arguments);
4547
+ return _super19.apply(this, arguments);
4300
4548
  }
4301
4549
 
4302
4550
  _createClass(FileAudio, null, [{
@@ -4311,9 +4559,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4311
4559
 
4312
4560
  module.exports = FileAudio;
4313
4561
  }, {
4314
- "./file-base.js": 48
4562
+ "./file-base.js": 49
4315
4563
  }],
4316
- 48: [function (require, module, exports) {
4564
+ 49: [function (require, module, exports) {
4317
4565
  var PlattarBase = require("../interfaces/plattar-base.js");
4318
4566
 
4319
4567
  var Server = require("../../server/plattar-server.js");
@@ -4321,20 +4569,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4321
4569
  var FileBase = /*#__PURE__*/function (_PlattarBase11) {
4322
4570
  _inherits(FileBase, _PlattarBase11);
4323
4571
 
4324
- var _super19 = _createSuper(FileBase);
4572
+ var _super20 = _createSuper(FileBase);
4325
4573
 
4326
4574
  function FileBase(id, server) {
4327
- var _this29;
4575
+ var _this32;
4328
4576
 
4329
4577
  _classCallCheck(this, FileBase);
4330
4578
 
4331
- _this29 = _super19.call(this, id, server || Server["default"]());
4579
+ _this32 = _super20.call(this, id, server || Server["default"]());
4332
4580
 
4333
- if (_this29.constructor === FileBase) {
4581
+ if (_this32.constructor === FileBase) {
4334
4582
  throw new Error("FileBase is abstract and cannot be created");
4335
4583
  }
4336
4584
 
4337
- return _this29;
4585
+ return _this32;
4338
4586
  }
4339
4587
 
4340
4588
  _createClass(FileBase, [{
@@ -4399,25 +4647,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4399
4647
 
4400
4648
  module.exports = FileBase;
4401
4649
  }, {
4402
- "../../server/plattar-server.js": 36,
4403
- "../interfaces/plattar-base.js": 53,
4404
- "./file-audio.js": 47,
4405
- "./file-image.js": 49,
4406
- "./file-model.js": 50,
4407
- "./file-video.js": 52
4650
+ "../../server/plattar-server.js": 37,
4651
+ "../interfaces/plattar-base.js": 54,
4652
+ "./file-audio.js": 48,
4653
+ "./file-image.js": 50,
4654
+ "./file-model.js": 51,
4655
+ "./file-video.js": 53
4408
4656
  }],
4409
- 49: [function (require, module, exports) {
4657
+ 50: [function (require, module, exports) {
4410
4658
  var FileBase = require("./file-base.js");
4411
4659
 
4412
4660
  var FileImage = /*#__PURE__*/function (_FileBase2) {
4413
4661
  _inherits(FileImage, _FileBase2);
4414
4662
 
4415
- var _super20 = _createSuper(FileImage);
4663
+ var _super21 = _createSuper(FileImage);
4416
4664
 
4417
4665
  function FileImage() {
4418
4666
  _classCallCheck(this, FileImage);
4419
4667
 
4420
- return _super20.apply(this, arguments);
4668
+ return _super21.apply(this, arguments);
4421
4669
  }
4422
4670
 
4423
4671
  _createClass(FileImage, null, [{
@@ -4432,20 +4680,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4432
4680
 
4433
4681
  module.exports = FileImage;
4434
4682
  }, {
4435
- "./file-base.js": 48
4683
+ "./file-base.js": 49
4436
4684
  }],
4437
- 50: [function (require, module, exports) {
4685
+ 51: [function (require, module, exports) {
4438
4686
  var FileBase = require("./file-base.js");
4439
4687
 
4440
4688
  var FileModel = /*#__PURE__*/function (_FileBase3) {
4441
4689
  _inherits(FileModel, _FileBase3);
4442
4690
 
4443
- var _super21 = _createSuper(FileModel);
4691
+ var _super22 = _createSuper(FileModel);
4444
4692
 
4445
4693
  function FileModel() {
4446
4694
  _classCallCheck(this, FileModel);
4447
4695
 
4448
- return _super21.apply(this, arguments);
4696
+ return _super22.apply(this, arguments);
4449
4697
  }
4450
4698
 
4451
4699
  _createClass(FileModel, null, [{
@@ -4460,20 +4708,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4460
4708
 
4461
4709
  module.exports = FileModel;
4462
4710
  }, {
4463
- "./file-base.js": 48
4711
+ "./file-base.js": 49
4464
4712
  }],
4465
- 51: [function (require, module, exports) {
4713
+ 52: [function (require, module, exports) {
4466
4714
  var FileBase = require("./file-base.js");
4467
4715
 
4468
4716
  var FileScript = /*#__PURE__*/function (_FileBase4) {
4469
4717
  _inherits(FileScript, _FileBase4);
4470
4718
 
4471
- var _super22 = _createSuper(FileScript);
4719
+ var _super23 = _createSuper(FileScript);
4472
4720
 
4473
4721
  function FileScript() {
4474
4722
  _classCallCheck(this, FileScript);
4475
4723
 
4476
- return _super22.apply(this, arguments);
4724
+ return _super23.apply(this, arguments);
4477
4725
  }
4478
4726
 
4479
4727
  _createClass(FileScript, null, [{
@@ -4488,20 +4736,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4488
4736
 
4489
4737
  module.exports = FileScript;
4490
4738
  }, {
4491
- "./file-base.js": 48
4739
+ "./file-base.js": 49
4492
4740
  }],
4493
- 52: [function (require, module, exports) {
4741
+ 53: [function (require, module, exports) {
4494
4742
  var FileBase = require("./file-base.js");
4495
4743
 
4496
4744
  var FileVideo = /*#__PURE__*/function (_FileBase5) {
4497
4745
  _inherits(FileVideo, _FileBase5);
4498
4746
 
4499
- var _super23 = _createSuper(FileVideo);
4747
+ var _super24 = _createSuper(FileVideo);
4500
4748
 
4501
4749
  function FileVideo() {
4502
4750
  _classCallCheck(this, FileVideo);
4503
4751
 
4504
- return _super23.apply(this, arguments);
4752
+ return _super24.apply(this, arguments);
4505
4753
  }
4506
4754
 
4507
4755
  _createClass(FileVideo, null, [{
@@ -4516,9 +4764,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4516
4764
 
4517
4765
  module.exports = FileVideo;
4518
4766
  }, {
4519
- "./file-base.js": 48
4767
+ "./file-base.js": 49
4520
4768
  }],
4521
- 53: [function (require, module, exports) {
4769
+ 54: [function (require, module, exports) {
4522
4770
  var PlattarObject = require("./plattar-object.js");
4523
4771
 
4524
4772
  var Server = require("../../server/plattar-server.js");
@@ -4526,31 +4774,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4526
4774
  var PlattarBase = /*#__PURE__*/function (_PlattarObject) {
4527
4775
  _inherits(PlattarBase, _PlattarObject);
4528
4776
 
4529
- var _super24 = _createSuper(PlattarBase);
4777
+ var _super25 = _createSuper(PlattarBase);
4530
4778
 
4531
4779
  function PlattarBase(id, server) {
4532
- var _this30;
4780
+ var _this33;
4533
4781
 
4534
4782
  _classCallCheck(this, PlattarBase);
4535
4783
 
4536
- _this30 = _super24.call(this, id, server || Server["default"]());
4784
+ _this33 = _super25.call(this, id, server || Server["default"]());
4537
4785
 
4538
- if (_this30.constructor === PlattarBase) {
4786
+ if (_this33.constructor === PlattarBase) {
4539
4787
  throw new Error("PlattarBase is abstract and cannot be created");
4540
4788
  }
4541
4789
 
4542
- return _this30;
4790
+ return _this33;
4543
4791
  }
4544
4792
 
4545
- return PlattarBase;
4793
+ return _createClass(PlattarBase);
4546
4794
  }(PlattarObject);
4547
4795
 
4548
4796
  module.exports = PlattarBase;
4549
4797
  }, {
4550
- "../../server/plattar-server.js": 36,
4551
- "./plattar-object.js": 55
4798
+ "../../server/plattar-server.js": 37,
4799
+ "./plattar-object.js": 56
4552
4800
  }],
4553
- 54: [function (require, module, exports) {
4801
+ 55: [function (require, module, exports) {
4554
4802
  /**
4555
4803
  * Handles the list of relationships for the provided object
4556
4804
  */
@@ -4611,7 +4859,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4611
4859
  }, {
4612
4860
  key: "filter",
4613
4861
  value: function filter(obj, id) {
4614
- var _this31 = this;
4862
+ var _this34 = this;
4615
4863
 
4616
4864
  if (!obj) {
4617
4865
  return [];
@@ -4629,7 +4877,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4629
4877
  if (Array.isArray(type)) {
4630
4878
  var compiledList = [];
4631
4879
  type.forEach(function (inObject) {
4632
- var retArray = _this31.filter(inObject, id);
4880
+ var retArray = _this34.filter(inObject, id);
4633
4881
 
4634
4882
  if (retArray.length > 0) {
4635
4883
  compiledList = compiledList.concat(retArray);
@@ -4686,9 +4934,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4686
4934
 
4687
4935
  module.exports = PlattarObjectRelations;
4688
4936
  }, {
4689
- "../../util/plattar-util.js": 96
4937
+ "../../util/plattar-util.js": 97
4690
4938
  }],
4691
- 55: [function (require, module, exports) {
4939
+ 56: [function (require, module, exports) {
4692
4940
  var PlattarQuery = require("../../server/plattar-query.js");
4693
4941
 
4694
4942
  var PlattarObjectRelations = require("./plattar-object-relations.js");
@@ -4832,7 +5080,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4832
5080
  }, {
4833
5081
  key: "include",
4834
5082
  value: function include() {
4835
- var _this32 = this;
5083
+ var _this35 = this;
4836
5084
 
4837
5085
  for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
4838
5086
  args[_key6] = arguments[_key6];
@@ -4848,15 +5096,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4848
5096
  if (Array.isArray(obj)) {
4849
5097
  obj.forEach(function (strObject) {
4850
5098
  if (typeof strObject === "string" || strObject instanceof String) {
4851
- includes.push("".concat(_this32.type(), ".").concat(strObject));
5099
+ includes.push("".concat(_this35.type(), ".").concat(strObject));
4852
5100
  } else {
4853
- throw new Error("PlattarObject." + _this32.type() + ".include(...args) - argument of Array must only include Strings");
5101
+ throw new Error("PlattarObject." + _this35.type() + ".include(...args) - argument of Array must only include Strings");
4854
5102
  }
4855
5103
  });
4856
5104
  } else if (obj.prototype instanceof PlattarObject) {
4857
- includes.push("".concat(_this32.type(), ".").concat(obj.type()));
5105
+ includes.push("".concat(_this35.type(), ".").concat(obj.type()));
4858
5106
  } else {
4859
- throw new Error("PlattarObject." + _this32.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
5107
+ throw new Error("PlattarObject." + _this35.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
4860
5108
  }
4861
5109
  });
4862
5110
  return includes;
@@ -4868,21 +5116,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4868
5116
 
4869
5117
  module.exports = PlattarObject;
4870
5118
  }, {
4871
- "../../server/plattar-query.js": 35,
4872
- "./plattar-object-relations.js": 54
5119
+ "../../server/plattar-query.js": 36,
5120
+ "./plattar-object-relations.js": 55
4873
5121
  }],
4874
- 56: [function (require, module, exports) {
5122
+ 57: [function (require, module, exports) {
4875
5123
  var PlattarBase = require("../interfaces/plattar-base.js");
4876
5124
 
4877
5125
  var ApplicationBuild = /*#__PURE__*/function (_PlattarBase12) {
4878
5126
  _inherits(ApplicationBuild, _PlattarBase12);
4879
5127
 
4880
- var _super25 = _createSuper(ApplicationBuild);
5128
+ var _super26 = _createSuper(ApplicationBuild);
4881
5129
 
4882
5130
  function ApplicationBuild() {
4883
5131
  _classCallCheck(this, ApplicationBuild);
4884
5132
 
4885
- return _super25.apply(this, arguments);
5133
+ return _super26.apply(this, arguments);
4886
5134
  }
4887
5135
 
4888
5136
  _createClass(ApplicationBuild, null, [{
@@ -4897,20 +5145,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4897
5145
 
4898
5146
  module.exports = ApplicationBuild;
4899
5147
  }, {
4900
- "../interfaces/plattar-base.js": 53
5148
+ "../interfaces/plattar-base.js": 54
4901
5149
  }],
4902
- 57: [function (require, module, exports) {
5150
+ 58: [function (require, module, exports) {
4903
5151
  var PlattarBase = require("../interfaces/plattar-base.js");
4904
5152
 
4905
5153
  var AssetLibrary = /*#__PURE__*/function (_PlattarBase13) {
4906
5154
  _inherits(AssetLibrary, _PlattarBase13);
4907
5155
 
4908
- var _super26 = _createSuper(AssetLibrary);
5156
+ var _super27 = _createSuper(AssetLibrary);
4909
5157
 
4910
5158
  function AssetLibrary() {
4911
5159
  _classCallCheck(this, AssetLibrary);
4912
5160
 
4913
- return _super26.apply(this, arguments);
5161
+ return _super27.apply(this, arguments);
4914
5162
  }
4915
5163
 
4916
5164
  _createClass(AssetLibrary, null, [{
@@ -4925,20 +5173,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4925
5173
 
4926
5174
  module.exports = AssetLibrary;
4927
5175
  }, {
4928
- "../interfaces/plattar-base.js": 53
5176
+ "../interfaces/plattar-base.js": 54
4929
5177
  }],
4930
- 58: [function (require, module, exports) {
5178
+ 59: [function (require, module, exports) {
4931
5179
  var PlattarBase = require("../interfaces/plattar-base.js");
4932
5180
 
4933
5181
  var AsyncJob = /*#__PURE__*/function (_PlattarBase14) {
4934
5182
  _inherits(AsyncJob, _PlattarBase14);
4935
5183
 
4936
- var _super27 = _createSuper(AsyncJob);
5184
+ var _super28 = _createSuper(AsyncJob);
4937
5185
 
4938
5186
  function AsyncJob() {
4939
5187
  _classCallCheck(this, AsyncJob);
4940
5188
 
4941
- return _super27.apply(this, arguments);
5189
+ return _super28.apply(this, arguments);
4942
5190
  }
4943
5191
 
4944
5192
  _createClass(AsyncJob, [{
@@ -4958,20 +5206,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4958
5206
 
4959
5207
  module.exports = AsyncJob;
4960
5208
  }, {
4961
- "../interfaces/plattar-base.js": 53
5209
+ "../interfaces/plattar-base.js": 54
4962
5210
  }],
4963
- 59: [function (require, module, exports) {
5211
+ 60: [function (require, module, exports) {
4964
5212
  var PlattarBase = require("../interfaces/plattar-base.js");
4965
5213
 
4966
5214
  var ScriptEvent = /*#__PURE__*/function (_PlattarBase15) {
4967
5215
  _inherits(ScriptEvent, _PlattarBase15);
4968
5216
 
4969
- var _super28 = _createSuper(ScriptEvent);
5217
+ var _super29 = _createSuper(ScriptEvent);
4970
5218
 
4971
5219
  function ScriptEvent() {
4972
5220
  _classCallCheck(this, ScriptEvent);
4973
5221
 
4974
- return _super28.apply(this, arguments);
5222
+ return _super29.apply(this, arguments);
4975
5223
  }
4976
5224
 
4977
5225
  _createClass(ScriptEvent, null, [{
@@ -4986,20 +5234,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4986
5234
 
4987
5235
  module.exports = ScriptEvent;
4988
5236
  }, {
4989
- "../interfaces/plattar-base.js": 53
5237
+ "../interfaces/plattar-base.js": 54
4990
5238
  }],
4991
- 60: [function (require, module, exports) {
5239
+ 61: [function (require, module, exports) {
4992
5240
  var PlattarBase = require("../interfaces/plattar-base.js");
4993
5241
 
4994
5242
  var Tag = /*#__PURE__*/function (_PlattarBase16) {
4995
5243
  _inherits(Tag, _PlattarBase16);
4996
5244
 
4997
- var _super29 = _createSuper(Tag);
5245
+ var _super30 = _createSuper(Tag);
4998
5246
 
4999
5247
  function Tag() {
5000
5248
  _classCallCheck(this, Tag);
5001
5249
 
5002
- return _super29.apply(this, arguments);
5250
+ return _super30.apply(this, arguments);
5003
5251
  }
5004
5252
 
5005
5253
  _createClass(Tag, null, [{
@@ -5014,9 +5262,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5014
5262
 
5015
5263
  module.exports = Tag;
5016
5264
  }, {
5017
- "../interfaces/plattar-base.js": 53
5265
+ "../interfaces/plattar-base.js": 54
5018
5266
  }],
5019
- 61: [function (require, module, exports) {
5267
+ 62: [function (require, module, exports) {
5020
5268
  var PlattarBase = require("../interfaces/plattar-base.js");
5021
5269
 
5022
5270
  var Server = require("../../server/plattar-server.js");
@@ -5024,20 +5272,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5024
5272
  var CardBase = /*#__PURE__*/function (_PlattarBase17) {
5025
5273
  _inherits(CardBase, _PlattarBase17);
5026
5274
 
5027
- var _super30 = _createSuper(CardBase);
5275
+ var _super31 = _createSuper(CardBase);
5028
5276
 
5029
5277
  function CardBase(id, server) {
5030
- var _this33;
5278
+ var _this36;
5031
5279
 
5032
5280
  _classCallCheck(this, CardBase);
5033
5281
 
5034
- _this33 = _super30.call(this, id, server || Server["default"]());
5282
+ _this36 = _super31.call(this, id, server || Server["default"]());
5035
5283
 
5036
- if (_this33.constructor === CardBase) {
5284
+ if (_this36.constructor === CardBase) {
5037
5285
  throw new Error("CardBase is abstract and cannot be created");
5038
5286
  }
5039
5287
 
5040
- return _this33;
5288
+ return _this36;
5041
5289
  }
5042
5290
 
5043
5291
  _createClass(CardBase, null, [{
@@ -5074,32 +5322,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5074
5322
 
5075
5323
  module.exports = CardBase;
5076
5324
  }, {
5077
- "../../server/plattar-server.js": 36,
5078
- "../interfaces/plattar-base.js": 53,
5079
- "./card-button.js": 62,
5080
- "./card-html.js": 63,
5081
- "./card-iframe.js": 64,
5082
- "./card-image.js": 65,
5083
- "./card-map.js": 66,
5084
- "./card-paragraph.js": 67,
5085
- "./card-row.js": 68,
5086
- "./card-slider.js": 69,
5087
- "./card-title.js": 70,
5088
- "./card-video.js": 71,
5089
- "./card-youtube.js": 72
5325
+ "../../server/plattar-server.js": 37,
5326
+ "../interfaces/plattar-base.js": 54,
5327
+ "./card-button.js": 63,
5328
+ "./card-html.js": 64,
5329
+ "./card-iframe.js": 65,
5330
+ "./card-image.js": 66,
5331
+ "./card-map.js": 67,
5332
+ "./card-paragraph.js": 68,
5333
+ "./card-row.js": 69,
5334
+ "./card-slider.js": 70,
5335
+ "./card-title.js": 71,
5336
+ "./card-video.js": 72,
5337
+ "./card-youtube.js": 73
5090
5338
  }],
5091
- 62: [function (require, module, exports) {
5339
+ 63: [function (require, module, exports) {
5092
5340
  var CardBase = require("./card-base.js");
5093
5341
 
5094
5342
  var CardButton = /*#__PURE__*/function (_CardBase) {
5095
5343
  _inherits(CardButton, _CardBase);
5096
5344
 
5097
- var _super31 = _createSuper(CardButton);
5345
+ var _super32 = _createSuper(CardButton);
5098
5346
 
5099
5347
  function CardButton() {
5100
5348
  _classCallCheck(this, CardButton);
5101
5349
 
5102
- return _super31.apply(this, arguments);
5350
+ return _super32.apply(this, arguments);
5103
5351
  }
5104
5352
 
5105
5353
  _createClass(CardButton, null, [{
@@ -5114,20 +5362,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5114
5362
 
5115
5363
  module.exports = CardButton;
5116
5364
  }, {
5117
- "./card-base.js": 61
5365
+ "./card-base.js": 62
5118
5366
  }],
5119
- 63: [function (require, module, exports) {
5367
+ 64: [function (require, module, exports) {
5120
5368
  var CardBase = require("./card-base.js");
5121
5369
 
5122
5370
  var CardHTML = /*#__PURE__*/function (_CardBase2) {
5123
5371
  _inherits(CardHTML, _CardBase2);
5124
5372
 
5125
- var _super32 = _createSuper(CardHTML);
5373
+ var _super33 = _createSuper(CardHTML);
5126
5374
 
5127
5375
  function CardHTML() {
5128
5376
  _classCallCheck(this, CardHTML);
5129
5377
 
5130
- return _super32.apply(this, arguments);
5378
+ return _super33.apply(this, arguments);
5131
5379
  }
5132
5380
 
5133
5381
  _createClass(CardHTML, null, [{
@@ -5142,20 +5390,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5142
5390
 
5143
5391
  module.exports = CardHTML;
5144
5392
  }, {
5145
- "./card-base.js": 61
5393
+ "./card-base.js": 62
5146
5394
  }],
5147
- 64: [function (require, module, exports) {
5395
+ 65: [function (require, module, exports) {
5148
5396
  var CardBase = require("./card-base.js");
5149
5397
 
5150
5398
  var CardIFrame = /*#__PURE__*/function (_CardBase3) {
5151
5399
  _inherits(CardIFrame, _CardBase3);
5152
5400
 
5153
- var _super33 = _createSuper(CardIFrame);
5401
+ var _super34 = _createSuper(CardIFrame);
5154
5402
 
5155
5403
  function CardIFrame() {
5156
5404
  _classCallCheck(this, CardIFrame);
5157
5405
 
5158
- return _super33.apply(this, arguments);
5406
+ return _super34.apply(this, arguments);
5159
5407
  }
5160
5408
 
5161
5409
  _createClass(CardIFrame, null, [{
@@ -5170,20 +5418,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5170
5418
 
5171
5419
  module.exports = CardIFrame;
5172
5420
  }, {
5173
- "./card-base.js": 61
5421
+ "./card-base.js": 62
5174
5422
  }],
5175
- 65: [function (require, module, exports) {
5423
+ 66: [function (require, module, exports) {
5176
5424
  var CardBase = require("./card-base.js");
5177
5425
 
5178
5426
  var CardImage = /*#__PURE__*/function (_CardBase4) {
5179
5427
  _inherits(CardImage, _CardBase4);
5180
5428
 
5181
- var _super34 = _createSuper(CardImage);
5429
+ var _super35 = _createSuper(CardImage);
5182
5430
 
5183
5431
  function CardImage() {
5184
5432
  _classCallCheck(this, CardImage);
5185
5433
 
5186
- return _super34.apply(this, arguments);
5434
+ return _super35.apply(this, arguments);
5187
5435
  }
5188
5436
 
5189
5437
  _createClass(CardImage, null, [{
@@ -5198,20 +5446,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5198
5446
 
5199
5447
  module.exports = CardImage;
5200
5448
  }, {
5201
- "./card-base.js": 61
5449
+ "./card-base.js": 62
5202
5450
  }],
5203
- 66: [function (require, module, exports) {
5451
+ 67: [function (require, module, exports) {
5204
5452
  var CardBase = require("./card-base.js");
5205
5453
 
5206
5454
  var CardMap = /*#__PURE__*/function (_CardBase5) {
5207
5455
  _inherits(CardMap, _CardBase5);
5208
5456
 
5209
- var _super35 = _createSuper(CardMap);
5457
+ var _super36 = _createSuper(CardMap);
5210
5458
 
5211
5459
  function CardMap() {
5212
5460
  _classCallCheck(this, CardMap);
5213
5461
 
5214
- return _super35.apply(this, arguments);
5462
+ return _super36.apply(this, arguments);
5215
5463
  }
5216
5464
 
5217
5465
  _createClass(CardMap, null, [{
@@ -5226,20 +5474,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5226
5474
 
5227
5475
  module.exports = CardMap;
5228
5476
  }, {
5229
- "./card-base.js": 61
5477
+ "./card-base.js": 62
5230
5478
  }],
5231
- 67: [function (require, module, exports) {
5479
+ 68: [function (require, module, exports) {
5232
5480
  var CardBase = require("./card-base.js");
5233
5481
 
5234
5482
  var CardParagraph = /*#__PURE__*/function (_CardBase6) {
5235
5483
  _inherits(CardParagraph, _CardBase6);
5236
5484
 
5237
- var _super36 = _createSuper(CardParagraph);
5485
+ var _super37 = _createSuper(CardParagraph);
5238
5486
 
5239
5487
  function CardParagraph() {
5240
5488
  _classCallCheck(this, CardParagraph);
5241
5489
 
5242
- return _super36.apply(this, arguments);
5490
+ return _super37.apply(this, arguments);
5243
5491
  }
5244
5492
 
5245
5493
  _createClass(CardParagraph, null, [{
@@ -5254,20 +5502,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5254
5502
 
5255
5503
  module.exports = CardParagraph;
5256
5504
  }, {
5257
- "./card-base.js": 61
5505
+ "./card-base.js": 62
5258
5506
  }],
5259
- 68: [function (require, module, exports) {
5507
+ 69: [function (require, module, exports) {
5260
5508
  var CardBase = require("./card-base.js");
5261
5509
 
5262
5510
  var CardRow = /*#__PURE__*/function (_CardBase7) {
5263
5511
  _inherits(CardRow, _CardBase7);
5264
5512
 
5265
- var _super37 = _createSuper(CardRow);
5513
+ var _super38 = _createSuper(CardRow);
5266
5514
 
5267
5515
  function CardRow() {
5268
5516
  _classCallCheck(this, CardRow);
5269
5517
 
5270
- return _super37.apply(this, arguments);
5518
+ return _super38.apply(this, arguments);
5271
5519
  }
5272
5520
 
5273
5521
  _createClass(CardRow, null, [{
@@ -5282,20 +5530,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5282
5530
 
5283
5531
  module.exports = CardRow;
5284
5532
  }, {
5285
- "./card-base.js": 61
5533
+ "./card-base.js": 62
5286
5534
  }],
5287
- 69: [function (require, module, exports) {
5535
+ 70: [function (require, module, exports) {
5288
5536
  var CardBase = require("./card-base.js");
5289
5537
 
5290
5538
  var CardSlider = /*#__PURE__*/function (_CardBase8) {
5291
5539
  _inherits(CardSlider, _CardBase8);
5292
5540
 
5293
- var _super38 = _createSuper(CardSlider);
5541
+ var _super39 = _createSuper(CardSlider);
5294
5542
 
5295
5543
  function CardSlider() {
5296
5544
  _classCallCheck(this, CardSlider);
5297
5545
 
5298
- return _super38.apply(this, arguments);
5546
+ return _super39.apply(this, arguments);
5299
5547
  }
5300
5548
 
5301
5549
  _createClass(CardSlider, null, [{
@@ -5310,20 +5558,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5310
5558
 
5311
5559
  module.exports = CardSlider;
5312
5560
  }, {
5313
- "./card-base.js": 61
5561
+ "./card-base.js": 62
5314
5562
  }],
5315
- 70: [function (require, module, exports) {
5563
+ 71: [function (require, module, exports) {
5316
5564
  var CardBase = require("./card-base.js");
5317
5565
 
5318
5566
  var CardTitle = /*#__PURE__*/function (_CardBase9) {
5319
5567
  _inherits(CardTitle, _CardBase9);
5320
5568
 
5321
- var _super39 = _createSuper(CardTitle);
5569
+ var _super40 = _createSuper(CardTitle);
5322
5570
 
5323
5571
  function CardTitle() {
5324
5572
  _classCallCheck(this, CardTitle);
5325
5573
 
5326
- return _super39.apply(this, arguments);
5574
+ return _super40.apply(this, arguments);
5327
5575
  }
5328
5576
 
5329
5577
  _createClass(CardTitle, null, [{
@@ -5338,20 +5586,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5338
5586
 
5339
5587
  module.exports = CardTitle;
5340
5588
  }, {
5341
- "./card-base.js": 61
5589
+ "./card-base.js": 62
5342
5590
  }],
5343
- 71: [function (require, module, exports) {
5591
+ 72: [function (require, module, exports) {
5344
5592
  var CardBase = require("./card-base.js");
5345
5593
 
5346
5594
  var CardVideo = /*#__PURE__*/function (_CardBase10) {
5347
5595
  _inherits(CardVideo, _CardBase10);
5348
5596
 
5349
- var _super40 = _createSuper(CardVideo);
5597
+ var _super41 = _createSuper(CardVideo);
5350
5598
 
5351
5599
  function CardVideo() {
5352
5600
  _classCallCheck(this, CardVideo);
5353
5601
 
5354
- return _super40.apply(this, arguments);
5602
+ return _super41.apply(this, arguments);
5355
5603
  }
5356
5604
 
5357
5605
  _createClass(CardVideo, null, [{
@@ -5366,20 +5614,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5366
5614
 
5367
5615
  module.exports = CardVideo;
5368
5616
  }, {
5369
- "./card-base.js": 61
5617
+ "./card-base.js": 62
5370
5618
  }],
5371
- 72: [function (require, module, exports) {
5619
+ 73: [function (require, module, exports) {
5372
5620
  var CardBase = require("./card-base.js");
5373
5621
 
5374
5622
  var CardYoutube = /*#__PURE__*/function (_CardBase11) {
5375
5623
  _inherits(CardYoutube, _CardBase11);
5376
5624
 
5377
- var _super41 = _createSuper(CardYoutube);
5625
+ var _super42 = _createSuper(CardYoutube);
5378
5626
 
5379
5627
  function CardYoutube() {
5380
5628
  _classCallCheck(this, CardYoutube);
5381
5629
 
5382
- return _super41.apply(this, arguments);
5630
+ return _super42.apply(this, arguments);
5383
5631
  }
5384
5632
 
5385
5633
  _createClass(CardYoutube, null, [{
@@ -5394,20 +5642,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5394
5642
 
5395
5643
  module.exports = CardYoutube;
5396
5644
  }, {
5397
- "./card-base.js": 61
5645
+ "./card-base.js": 62
5398
5646
  }],
5399
- 73: [function (require, module, exports) {
5647
+ 74: [function (require, module, exports) {
5400
5648
  var PlattarBase = require("../interfaces/plattar-base.js");
5401
5649
 
5402
5650
  var Page = /*#__PURE__*/function (_PlattarBase18) {
5403
5651
  _inherits(Page, _PlattarBase18);
5404
5652
 
5405
- var _super42 = _createSuper(Page);
5653
+ var _super43 = _createSuper(Page);
5406
5654
 
5407
5655
  function Page() {
5408
5656
  _classCallCheck(this, Page);
5409
5657
 
5410
- return _super42.apply(this, arguments);
5658
+ return _super43.apply(this, arguments);
5411
5659
  }
5412
5660
 
5413
5661
  _createClass(Page, null, [{
@@ -5422,20 +5670,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5422
5670
 
5423
5671
  module.exports = Page;
5424
5672
  }, {
5425
- "../interfaces/plattar-base.js": 53
5673
+ "../interfaces/plattar-base.js": 54
5426
5674
  }],
5427
- 74: [function (require, module, exports) {
5675
+ 75: [function (require, module, exports) {
5428
5676
  var ProductBase = require("./product-base.js");
5429
5677
 
5430
5678
  var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
5431
5679
  _inherits(ProductAnnotation, _ProductBase);
5432
5680
 
5433
- var _super43 = _createSuper(ProductAnnotation);
5681
+ var _super44 = _createSuper(ProductAnnotation);
5434
5682
 
5435
5683
  function ProductAnnotation() {
5436
5684
  _classCallCheck(this, ProductAnnotation);
5437
5685
 
5438
- return _super43.apply(this, arguments);
5686
+ return _super44.apply(this, arguments);
5439
5687
  }
5440
5688
 
5441
5689
  _createClass(ProductAnnotation, null, [{
@@ -5450,9 +5698,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5450
5698
 
5451
5699
  module.exports = ProductAnnotation;
5452
5700
  }, {
5453
- "./product-base.js": 75
5701
+ "./product-base.js": 76
5454
5702
  }],
5455
- 75: [function (require, module, exports) {
5703
+ 76: [function (require, module, exports) {
5456
5704
  var PlattarBase = require("../interfaces/plattar-base.js");
5457
5705
 
5458
5706
  var Server = require("../../server/plattar-server.js");
@@ -5460,20 +5708,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5460
5708
  var ProductBase = /*#__PURE__*/function (_PlattarBase19) {
5461
5709
  _inherits(ProductBase, _PlattarBase19);
5462
5710
 
5463
- var _super44 = _createSuper(ProductBase);
5711
+ var _super45 = _createSuper(ProductBase);
5464
5712
 
5465
5713
  function ProductBase(id, server) {
5466
- var _this34;
5714
+ var _this37;
5467
5715
 
5468
5716
  _classCallCheck(this, ProductBase);
5469
5717
 
5470
- _this34 = _super44.call(this, id, server || Server["default"]());
5718
+ _this37 = _super45.call(this, id, server || Server["default"]());
5471
5719
 
5472
- if (_this34.constructor === ProductBase) {
5720
+ if (_this37.constructor === ProductBase) {
5473
5721
  throw new Error("ProductBase is abstract and cannot be created");
5474
5722
  }
5475
5723
 
5476
- return _this34;
5724
+ return _this37;
5477
5725
  }
5478
5726
 
5479
5727
  _createClass(ProductBase, null, [{
@@ -5492,23 +5740,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5492
5740
 
5493
5741
  module.exports = ProductBase;
5494
5742
  }, {
5495
- "../../server/plattar-server.js": 36,
5496
- "../interfaces/plattar-base.js": 53,
5497
- "./product-annotation.js": 74,
5498
- "./product-variation.js": 76
5743
+ "../../server/plattar-server.js": 37,
5744
+ "../interfaces/plattar-base.js": 54,
5745
+ "./product-annotation.js": 75,
5746
+ "./product-variation.js": 77
5499
5747
  }],
5500
- 76: [function (require, module, exports) {
5748
+ 77: [function (require, module, exports) {
5501
5749
  var ProductBase = require("./product-base.js");
5502
5750
 
5503
5751
  var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
5504
5752
  _inherits(ProductVariation, _ProductBase2);
5505
5753
 
5506
- var _super45 = _createSuper(ProductVariation);
5754
+ var _super46 = _createSuper(ProductVariation);
5507
5755
 
5508
5756
  function ProductVariation() {
5509
5757
  _classCallCheck(this, ProductVariation);
5510
5758
 
5511
- return _super45.apply(this, arguments);
5759
+ return _super46.apply(this, arguments);
5512
5760
  }
5513
5761
 
5514
5762
  _createClass(ProductVariation, null, [{
@@ -5523,20 +5771,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5523
5771
 
5524
5772
  module.exports = ProductVariation;
5525
5773
  }, {
5526
- "./product-base.js": 75
5774
+ "./product-base.js": 76
5527
5775
  }],
5528
- 77: [function (require, module, exports) {
5776
+ 78: [function (require, module, exports) {
5529
5777
  var PlattarBase = require("../interfaces/plattar-base.js");
5530
5778
 
5531
5779
  var Product = /*#__PURE__*/function (_PlattarBase20) {
5532
5780
  _inherits(Product, _PlattarBase20);
5533
5781
 
5534
- var _super46 = _createSuper(Product);
5782
+ var _super47 = _createSuper(Product);
5535
5783
 
5536
5784
  function Product() {
5537
5785
  _classCallCheck(this, Product);
5538
5786
 
5539
- return _super46.apply(this, arguments);
5787
+ return _super47.apply(this, arguments);
5540
5788
  }
5541
5789
 
5542
5790
  _createClass(Product, null, [{
@@ -5551,20 +5799,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5551
5799
 
5552
5800
  module.exports = Product;
5553
5801
  }, {
5554
- "../interfaces/plattar-base.js": 53
5802
+ "../interfaces/plattar-base.js": 54
5555
5803
  }],
5556
- 78: [function (require, module, exports) {
5804
+ 79: [function (require, module, exports) {
5557
5805
  var SceneBase = require("./scene-base.js");
5558
5806
 
5559
5807
  var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
5560
5808
  _inherits(SceneAnnotation, _SceneBase);
5561
5809
 
5562
- var _super47 = _createSuper(SceneAnnotation);
5810
+ var _super48 = _createSuper(SceneAnnotation);
5563
5811
 
5564
5812
  function SceneAnnotation() {
5565
5813
  _classCallCheck(this, SceneAnnotation);
5566
5814
 
5567
- return _super47.apply(this, arguments);
5815
+ return _super48.apply(this, arguments);
5568
5816
  }
5569
5817
 
5570
5818
  _createClass(SceneAnnotation, null, [{
@@ -5579,20 +5827,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5579
5827
 
5580
5828
  module.exports = SceneAnnotation;
5581
5829
  }, {
5582
- "./scene-base.js": 80
5830
+ "./scene-base.js": 81
5583
5831
  }],
5584
- 79: [function (require, module, exports) {
5832
+ 80: [function (require, module, exports) {
5585
5833
  var SceneBase = require("./scene-base.js");
5586
5834
 
5587
5835
  var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
5588
5836
  _inherits(SceneAudio, _SceneBase2);
5589
5837
 
5590
- var _super48 = _createSuper(SceneAudio);
5838
+ var _super49 = _createSuper(SceneAudio);
5591
5839
 
5592
5840
  function SceneAudio() {
5593
5841
  _classCallCheck(this, SceneAudio);
5594
5842
 
5595
- return _super48.apply(this, arguments);
5843
+ return _super49.apply(this, arguments);
5596
5844
  }
5597
5845
 
5598
5846
  _createClass(SceneAudio, null, [{
@@ -5607,9 +5855,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5607
5855
 
5608
5856
  module.exports = SceneAudio;
5609
5857
  }, {
5610
- "./scene-base.js": 80
5858
+ "./scene-base.js": 81
5611
5859
  }],
5612
- 80: [function (require, module, exports) {
5860
+ 81: [function (require, module, exports) {
5613
5861
  var PlattarBase = require("../interfaces/plattar-base.js");
5614
5862
 
5615
5863
  var Server = require("../../server/plattar-server.js");
@@ -5617,20 +5865,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5617
5865
  var SceneBase = /*#__PURE__*/function (_PlattarBase21) {
5618
5866
  _inherits(SceneBase, _PlattarBase21);
5619
5867
 
5620
- var _super49 = _createSuper(SceneBase);
5868
+ var _super50 = _createSuper(SceneBase);
5621
5869
 
5622
5870
  function SceneBase(id, server) {
5623
- var _this35;
5871
+ var _this38;
5624
5872
 
5625
5873
  _classCallCheck(this, SceneBase);
5626
5874
 
5627
- _this35 = _super49.call(this, id, server || Server["default"]());
5875
+ _this38 = _super50.call(this, id, server || Server["default"]());
5628
5876
 
5629
- if (_this35.constructor === SceneBase) {
5877
+ if (_this38.constructor === SceneBase) {
5630
5878
  throw new Error("SceneBase is abstract and cannot be created");
5631
5879
  }
5632
5880
 
5633
- return _this35;
5881
+ return _this38;
5634
5882
  }
5635
5883
 
5636
5884
  _createClass(SceneBase, null, [{
@@ -5673,35 +5921,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5673
5921
 
5674
5922
  module.exports = SceneBase;
5675
5923
  }, {
5676
- "../../server/plattar-server.js": 36,
5677
- "../interfaces/plattar-base.js": 53,
5678
- "./scene-annotation.js": 78,
5679
- "./scene-audio.js": 79,
5680
- "./scene-button.js": 81,
5681
- "./scene-camera.js": 82,
5682
- "./scene-carousel.js": 83,
5683
- "./scene-image.js": 84,
5684
- "./scene-model.js": 85,
5685
- "./scene-panorama.js": 86,
5686
- "./scene-poller.js": 87,
5687
- "./scene-product.js": 88,
5688
- "./scene-shadow.js": 90,
5689
- "./scene-video.js": 91,
5690
- "./scene-volumetric.js": 92,
5691
- "./scene-youtube.js": 93
5924
+ "../../server/plattar-server.js": 37,
5925
+ "../interfaces/plattar-base.js": 54,
5926
+ "./scene-annotation.js": 79,
5927
+ "./scene-audio.js": 80,
5928
+ "./scene-button.js": 82,
5929
+ "./scene-camera.js": 83,
5930
+ "./scene-carousel.js": 84,
5931
+ "./scene-image.js": 85,
5932
+ "./scene-model.js": 86,
5933
+ "./scene-panorama.js": 87,
5934
+ "./scene-poller.js": 88,
5935
+ "./scene-product.js": 89,
5936
+ "./scene-shadow.js": 91,
5937
+ "./scene-video.js": 92,
5938
+ "./scene-volumetric.js": 93,
5939
+ "./scene-youtube.js": 94
5692
5940
  }],
5693
- 81: [function (require, module, exports) {
5941
+ 82: [function (require, module, exports) {
5694
5942
  var SceneBase = require("./scene-base.js");
5695
5943
 
5696
5944
  var SceneButton = /*#__PURE__*/function (_SceneBase3) {
5697
5945
  _inherits(SceneButton, _SceneBase3);
5698
5946
 
5699
- var _super50 = _createSuper(SceneButton);
5947
+ var _super51 = _createSuper(SceneButton);
5700
5948
 
5701
5949
  function SceneButton() {
5702
5950
  _classCallCheck(this, SceneButton);
5703
5951
 
5704
- return _super50.apply(this, arguments);
5952
+ return _super51.apply(this, arguments);
5705
5953
  }
5706
5954
 
5707
5955
  _createClass(SceneButton, null, [{
@@ -5716,20 +5964,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5716
5964
 
5717
5965
  module.exports = SceneButton;
5718
5966
  }, {
5719
- "./scene-base.js": 80
5967
+ "./scene-base.js": 81
5720
5968
  }],
5721
- 82: [function (require, module, exports) {
5969
+ 83: [function (require, module, exports) {
5722
5970
  var SceneBase = require("./scene-base.js");
5723
5971
 
5724
5972
  var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
5725
5973
  _inherits(SceneCamera, _SceneBase4);
5726
5974
 
5727
- var _super51 = _createSuper(SceneCamera);
5975
+ var _super52 = _createSuper(SceneCamera);
5728
5976
 
5729
5977
  function SceneCamera() {
5730
5978
  _classCallCheck(this, SceneCamera);
5731
5979
 
5732
- return _super51.apply(this, arguments);
5980
+ return _super52.apply(this, arguments);
5733
5981
  }
5734
5982
 
5735
5983
  _createClass(SceneCamera, null, [{
@@ -5744,20 +5992,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5744
5992
 
5745
5993
  module.exports = SceneCamera;
5746
5994
  }, {
5747
- "./scene-base.js": 80
5995
+ "./scene-base.js": 81
5748
5996
  }],
5749
- 83: [function (require, module, exports) {
5997
+ 84: [function (require, module, exports) {
5750
5998
  var SceneBase = require("./scene-base.js");
5751
5999
 
5752
6000
  var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
5753
6001
  _inherits(SceneCarousel, _SceneBase5);
5754
6002
 
5755
- var _super52 = _createSuper(SceneCarousel);
6003
+ var _super53 = _createSuper(SceneCarousel);
5756
6004
 
5757
6005
  function SceneCarousel() {
5758
6006
  _classCallCheck(this, SceneCarousel);
5759
6007
 
5760
- return _super52.apply(this, arguments);
6008
+ return _super53.apply(this, arguments);
5761
6009
  }
5762
6010
 
5763
6011
  _createClass(SceneCarousel, null, [{
@@ -5772,20 +6020,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5772
6020
 
5773
6021
  module.exports = SceneCarousel;
5774
6022
  }, {
5775
- "./scene-base.js": 80
6023
+ "./scene-base.js": 81
5776
6024
  }],
5777
- 84: [function (require, module, exports) {
6025
+ 85: [function (require, module, exports) {
5778
6026
  var SceneBase = require("./scene-base.js");
5779
6027
 
5780
6028
  var SceneImage = /*#__PURE__*/function (_SceneBase6) {
5781
6029
  _inherits(SceneImage, _SceneBase6);
5782
6030
 
5783
- var _super53 = _createSuper(SceneImage);
6031
+ var _super54 = _createSuper(SceneImage);
5784
6032
 
5785
6033
  function SceneImage() {
5786
6034
  _classCallCheck(this, SceneImage);
5787
6035
 
5788
- return _super53.apply(this, arguments);
6036
+ return _super54.apply(this, arguments);
5789
6037
  }
5790
6038
 
5791
6039
  _createClass(SceneImage, null, [{
@@ -5800,20 +6048,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5800
6048
 
5801
6049
  module.exports = SceneImage;
5802
6050
  }, {
5803
- "./scene-base.js": 80
6051
+ "./scene-base.js": 81
5804
6052
  }],
5805
- 85: [function (require, module, exports) {
6053
+ 86: [function (require, module, exports) {
5806
6054
  var SceneBase = require("./scene-base.js");
5807
6055
 
5808
6056
  var SceneModel = /*#__PURE__*/function (_SceneBase7) {
5809
6057
  _inherits(SceneModel, _SceneBase7);
5810
6058
 
5811
- var _super54 = _createSuper(SceneModel);
6059
+ var _super55 = _createSuper(SceneModel);
5812
6060
 
5813
6061
  function SceneModel() {
5814
6062
  _classCallCheck(this, SceneModel);
5815
6063
 
5816
- return _super54.apply(this, arguments);
6064
+ return _super55.apply(this, arguments);
5817
6065
  }
5818
6066
 
5819
6067
  _createClass(SceneModel, null, [{
@@ -5828,20 +6076,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5828
6076
 
5829
6077
  module.exports = SceneModel;
5830
6078
  }, {
5831
- "./scene-base.js": 80
6079
+ "./scene-base.js": 81
5832
6080
  }],
5833
- 86: [function (require, module, exports) {
6081
+ 87: [function (require, module, exports) {
5834
6082
  var SceneBase = require("./scene-base.js");
5835
6083
 
5836
6084
  var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
5837
6085
  _inherits(ScenePanorama, _SceneBase8);
5838
6086
 
5839
- var _super55 = _createSuper(ScenePanorama);
6087
+ var _super56 = _createSuper(ScenePanorama);
5840
6088
 
5841
6089
  function ScenePanorama() {
5842
6090
  _classCallCheck(this, ScenePanorama);
5843
6091
 
5844
- return _super55.apply(this, arguments);
6092
+ return _super56.apply(this, arguments);
5845
6093
  }
5846
6094
 
5847
6095
  _createClass(ScenePanorama, null, [{
@@ -5856,20 +6104,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5856
6104
 
5857
6105
  module.exports = ScenePanorama;
5858
6106
  }, {
5859
- "./scene-base.js": 80
6107
+ "./scene-base.js": 81
5860
6108
  }],
5861
- 87: [function (require, module, exports) {
6109
+ 88: [function (require, module, exports) {
5862
6110
  var SceneBase = require("./scene-base.js");
5863
6111
 
5864
6112
  var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
5865
6113
  _inherits(ScenePoller, _SceneBase9);
5866
6114
 
5867
- var _super56 = _createSuper(ScenePoller);
6115
+ var _super57 = _createSuper(ScenePoller);
5868
6116
 
5869
6117
  function ScenePoller() {
5870
6118
  _classCallCheck(this, ScenePoller);
5871
6119
 
5872
- return _super56.apply(this, arguments);
6120
+ return _super57.apply(this, arguments);
5873
6121
  }
5874
6122
 
5875
6123
  _createClass(ScenePoller, null, [{
@@ -5884,20 +6132,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5884
6132
 
5885
6133
  module.exports = ScenePoller;
5886
6134
  }, {
5887
- "./scene-base.js": 80
6135
+ "./scene-base.js": 81
5888
6136
  }],
5889
- 88: [function (require, module, exports) {
6137
+ 89: [function (require, module, exports) {
5890
6138
  var SceneBase = require("./scene-base.js");
5891
6139
 
5892
6140
  var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
5893
6141
  _inherits(SceneProduct, _SceneBase10);
5894
6142
 
5895
- var _super57 = _createSuper(SceneProduct);
6143
+ var _super58 = _createSuper(SceneProduct);
5896
6144
 
5897
6145
  function SceneProduct() {
5898
6146
  _classCallCheck(this, SceneProduct);
5899
6147
 
5900
- return _super57.apply(this, arguments);
6148
+ return _super58.apply(this, arguments);
5901
6149
  }
5902
6150
 
5903
6151
  _createClass(SceneProduct, null, [{
@@ -5912,20 +6160,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5912
6160
 
5913
6161
  module.exports = SceneProduct;
5914
6162
  }, {
5915
- "./scene-base.js": 80
6163
+ "./scene-base.js": 81
5916
6164
  }],
5917
- 89: [function (require, module, exports) {
6165
+ 90: [function (require, module, exports) {
5918
6166
  var SceneBase = require("./scene-base.js");
5919
6167
 
5920
6168
  var SceneScript = /*#__PURE__*/function (_SceneBase11) {
5921
6169
  _inherits(SceneScript, _SceneBase11);
5922
6170
 
5923
- var _super58 = _createSuper(SceneScript);
6171
+ var _super59 = _createSuper(SceneScript);
5924
6172
 
5925
6173
  function SceneScript() {
5926
6174
  _classCallCheck(this, SceneScript);
5927
6175
 
5928
- return _super58.apply(this, arguments);
6176
+ return _super59.apply(this, arguments);
5929
6177
  }
5930
6178
 
5931
6179
  _createClass(SceneScript, null, [{
@@ -5940,20 +6188,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5940
6188
 
5941
6189
  module.exports = SceneScript;
5942
6190
  }, {
5943
- "./scene-base.js": 80
6191
+ "./scene-base.js": 81
5944
6192
  }],
5945
- 90: [function (require, module, exports) {
6193
+ 91: [function (require, module, exports) {
5946
6194
  var SceneBase = require("./scene-base.js");
5947
6195
 
5948
6196
  var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
5949
6197
  _inherits(SceneShadow, _SceneBase12);
5950
6198
 
5951
- var _super59 = _createSuper(SceneShadow);
6199
+ var _super60 = _createSuper(SceneShadow);
5952
6200
 
5953
6201
  function SceneShadow() {
5954
6202
  _classCallCheck(this, SceneShadow);
5955
6203
 
5956
- return _super59.apply(this, arguments);
6204
+ return _super60.apply(this, arguments);
5957
6205
  }
5958
6206
 
5959
6207
  _createClass(SceneShadow, null, [{
@@ -5968,20 +6216,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5968
6216
 
5969
6217
  module.exports = SceneShadow;
5970
6218
  }, {
5971
- "./scene-base.js": 80
6219
+ "./scene-base.js": 81
5972
6220
  }],
5973
- 91: [function (require, module, exports) {
6221
+ 92: [function (require, module, exports) {
5974
6222
  var SceneBase = require("./scene-base.js");
5975
6223
 
5976
6224
  var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
5977
6225
  _inherits(SceneVideo, _SceneBase13);
5978
6226
 
5979
- var _super60 = _createSuper(SceneVideo);
6227
+ var _super61 = _createSuper(SceneVideo);
5980
6228
 
5981
6229
  function SceneVideo() {
5982
6230
  _classCallCheck(this, SceneVideo);
5983
6231
 
5984
- return _super60.apply(this, arguments);
6232
+ return _super61.apply(this, arguments);
5985
6233
  }
5986
6234
 
5987
6235
  _createClass(SceneVideo, null, [{
@@ -5996,20 +6244,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5996
6244
 
5997
6245
  module.exports = SceneVideo;
5998
6246
  }, {
5999
- "./scene-base.js": 80
6247
+ "./scene-base.js": 81
6000
6248
  }],
6001
- 92: [function (require, module, exports) {
6249
+ 93: [function (require, module, exports) {
6002
6250
  var SceneBase = require("./scene-base.js");
6003
6251
 
6004
6252
  var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
6005
6253
  _inherits(SceneVolumetric, _SceneBase14);
6006
6254
 
6007
- var _super61 = _createSuper(SceneVolumetric);
6255
+ var _super62 = _createSuper(SceneVolumetric);
6008
6256
 
6009
6257
  function SceneVolumetric() {
6010
6258
  _classCallCheck(this, SceneVolumetric);
6011
6259
 
6012
- return _super61.apply(this, arguments);
6260
+ return _super62.apply(this, arguments);
6013
6261
  }
6014
6262
 
6015
6263
  _createClass(SceneVolumetric, null, [{
@@ -6024,20 +6272,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6024
6272
 
6025
6273
  module.exports = SceneVolumetric;
6026
6274
  }, {
6027
- "./scene-base.js": 80
6275
+ "./scene-base.js": 81
6028
6276
  }],
6029
- 93: [function (require, module, exports) {
6277
+ 94: [function (require, module, exports) {
6030
6278
  var SceneBase = require("./scene-base.js");
6031
6279
 
6032
6280
  var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
6033
6281
  _inherits(SceneYoutube, _SceneBase15);
6034
6282
 
6035
- var _super62 = _createSuper(SceneYoutube);
6283
+ var _super63 = _createSuper(SceneYoutube);
6036
6284
 
6037
6285
  function SceneYoutube() {
6038
6286
  _classCallCheck(this, SceneYoutube);
6039
6287
 
6040
- return _super62.apply(this, arguments);
6288
+ return _super63.apply(this, arguments);
6041
6289
  }
6042
6290
 
6043
6291
  _createClass(SceneYoutube, null, [{
@@ -6052,20 +6300,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6052
6300
 
6053
6301
  module.exports = SceneYoutube;
6054
6302
  }, {
6055
- "./scene-base.js": 80
6303
+ "./scene-base.js": 81
6056
6304
  }],
6057
- 94: [function (require, module, exports) {
6305
+ 95: [function (require, module, exports) {
6058
6306
  var PlattarBase = require("../interfaces/plattar-base.js");
6059
6307
 
6060
6308
  var Scene = /*#__PURE__*/function (_PlattarBase22) {
6061
6309
  _inherits(Scene, _PlattarBase22);
6062
6310
 
6063
- var _super63 = _createSuper(Scene);
6311
+ var _super64 = _createSuper(Scene);
6064
6312
 
6065
6313
  function Scene() {
6066
6314
  _classCallCheck(this, Scene);
6067
6315
 
6068
- return _super63.apply(this, arguments);
6316
+ return _super64.apply(this, arguments);
6069
6317
  }
6070
6318
 
6071
6319
  _createClass(Scene, null, [{
@@ -6080,20 +6328,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6080
6328
 
6081
6329
  module.exports = Scene;
6082
6330
  }, {
6083
- "../interfaces/plattar-base.js": 53
6331
+ "../interfaces/plattar-base.js": 54
6084
6332
  }],
6085
- 95: [function (require, module, exports) {
6333
+ 96: [function (require, module, exports) {
6086
6334
  var PlattarBase = require("../interfaces/plattar-base.js");
6087
6335
 
6088
6336
  var TriggerImage = /*#__PURE__*/function (_PlattarBase23) {
6089
6337
  _inherits(TriggerImage, _PlattarBase23);
6090
6338
 
6091
- var _super64 = _createSuper(TriggerImage);
6339
+ var _super65 = _createSuper(TriggerImage);
6092
6340
 
6093
6341
  function TriggerImage() {
6094
6342
  _classCallCheck(this, TriggerImage);
6095
6343
 
6096
- return _super64.apply(this, arguments);
6344
+ return _super65.apply(this, arguments);
6097
6345
  }
6098
6346
 
6099
6347
  _createClass(TriggerImage, null, [{
@@ -6108,9 +6356,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6108
6356
 
6109
6357
  module.exports = TriggerImage;
6110
6358
  }, {
6111
- "../interfaces/plattar-base.js": 53
6359
+ "../interfaces/plattar-base.js": 54
6112
6360
  }],
6113
- 96: [function (require, module, exports) {
6361
+ 97: [function (require, module, exports) {
6114
6362
  var Application = require("../types/application.js"); // import Scene types and its children
6115
6363
 
6116
6364
 
@@ -6222,9 +6470,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6222
6470
 
6223
6471
  var AssetLibrary = require("../types/misc/asset-library");
6224
6472
 
6225
- var PlattarUtil = function PlattarUtil() {
6473
+ var PlattarUtil = /*#__PURE__*/_createClass(function PlattarUtil() {
6226
6474
  _classCallCheck(this, PlattarUtil);
6227
- };
6475
+ });
6228
6476
  /**
6229
6477
  * Checks if the provided Object is a Plattar Object
6230
6478
  *
@@ -6497,83 +6745,98 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6497
6745
 
6498
6746
  module.exports = PlattarUtil;
6499
6747
  }, {
6500
- "../types/application.js": 37,
6501
- "../types/content-pipeline/brief.js": 38,
6502
- "../types/content-pipeline/comment-brief.js": 39,
6503
- "../types/content-pipeline/comment-quote.js": 40,
6504
- "../types/content-pipeline/comment-solution.js": 41,
6505
- "../types/content-pipeline/folder.js": 42,
6506
- "../types/content-pipeline/pipeline-user.js": 43,
6507
- "../types/content-pipeline/quote.js": 44,
6508
- "../types/content-pipeline/rating.js": 45,
6509
- "../types/content-pipeline/solution.js": 46,
6510
- "../types/file/file-audio.js": 47,
6511
- "../types/file/file-image.js": 49,
6512
- "../types/file/file-model.js": 50,
6513
- "../types/file/file-script.js": 51,
6514
- "../types/file/file-video.js": 52,
6515
- "../types/interfaces/plattar-object.js": 55,
6516
- "../types/misc/application-build.js": 56,
6517
- "../types/misc/asset-library": 57,
6518
- "../types/misc/async-job.js": 58,
6519
- "../types/misc/script-event.js": 59,
6520
- "../types/misc/tag.js": 60,
6521
- "../types/page/card-button.js": 62,
6522
- "../types/page/card-html.js": 63,
6523
- "../types/page/card-iframe.js": 64,
6524
- "../types/page/card-image.js": 65,
6525
- "../types/page/card-map.js": 66,
6526
- "../types/page/card-paragraph.js": 67,
6527
- "../types/page/card-row.js": 68,
6528
- "../types/page/card-slider.js": 69,
6529
- "../types/page/card-title.js": 70,
6530
- "../types/page/card-video.js": 71,
6531
- "../types/page/card-youtube.js": 72,
6532
- "../types/page/page.js": 73,
6533
- "../types/product/product-annotation.js": 74,
6534
- "../types/product/product-variation.js": 76,
6535
- "../types/product/product.js": 77,
6536
- "../types/scene/scene-annotation.js": 78,
6537
- "../types/scene/scene-audio.js": 79,
6538
- "../types/scene/scene-button.js": 81,
6539
- "../types/scene/scene-camera.js": 82,
6540
- "../types/scene/scene-carousel.js": 83,
6541
- "../types/scene/scene-image.js": 84,
6542
- "../types/scene/scene-model.js": 85,
6543
- "../types/scene/scene-panorama.js": 86,
6544
- "../types/scene/scene-poller.js": 87,
6545
- "../types/scene/scene-product.js": 88,
6546
- "../types/scene/scene-script.js": 89,
6547
- "../types/scene/scene-shadow.js": 90,
6548
- "../types/scene/scene-video.js": 91,
6549
- "../types/scene/scene-volumetric.js": 92,
6550
- "../types/scene/scene-youtube.js": 93,
6551
- "../types/scene/scene.js": 94,
6552
- "../types/trigger/trigger-image.js": 95
6748
+ "../types/application.js": 38,
6749
+ "../types/content-pipeline/brief.js": 39,
6750
+ "../types/content-pipeline/comment-brief.js": 40,
6751
+ "../types/content-pipeline/comment-quote.js": 41,
6752
+ "../types/content-pipeline/comment-solution.js": 42,
6753
+ "../types/content-pipeline/folder.js": 43,
6754
+ "../types/content-pipeline/pipeline-user.js": 44,
6755
+ "../types/content-pipeline/quote.js": 45,
6756
+ "../types/content-pipeline/rating.js": 46,
6757
+ "../types/content-pipeline/solution.js": 47,
6758
+ "../types/file/file-audio.js": 48,
6759
+ "../types/file/file-image.js": 50,
6760
+ "../types/file/file-model.js": 51,
6761
+ "../types/file/file-script.js": 52,
6762
+ "../types/file/file-video.js": 53,
6763
+ "../types/interfaces/plattar-object.js": 56,
6764
+ "../types/misc/application-build.js": 57,
6765
+ "../types/misc/asset-library": 58,
6766
+ "../types/misc/async-job.js": 59,
6767
+ "../types/misc/script-event.js": 60,
6768
+ "../types/misc/tag.js": 61,
6769
+ "../types/page/card-button.js": 63,
6770
+ "../types/page/card-html.js": 64,
6771
+ "../types/page/card-iframe.js": 65,
6772
+ "../types/page/card-image.js": 66,
6773
+ "../types/page/card-map.js": 67,
6774
+ "../types/page/card-paragraph.js": 68,
6775
+ "../types/page/card-row.js": 69,
6776
+ "../types/page/card-slider.js": 70,
6777
+ "../types/page/card-title.js": 71,
6778
+ "../types/page/card-video.js": 72,
6779
+ "../types/page/card-youtube.js": 73,
6780
+ "../types/page/page.js": 74,
6781
+ "../types/product/product-annotation.js": 75,
6782
+ "../types/product/product-variation.js": 77,
6783
+ "../types/product/product.js": 78,
6784
+ "../types/scene/scene-annotation.js": 79,
6785
+ "../types/scene/scene-audio.js": 80,
6786
+ "../types/scene/scene-button.js": 82,
6787
+ "../types/scene/scene-camera.js": 83,
6788
+ "../types/scene/scene-carousel.js": 84,
6789
+ "../types/scene/scene-image.js": 85,
6790
+ "../types/scene/scene-model.js": 86,
6791
+ "../types/scene/scene-panorama.js": 87,
6792
+ "../types/scene/scene-poller.js": 88,
6793
+ "../types/scene/scene-product.js": 89,
6794
+ "../types/scene/scene-script.js": 90,
6795
+ "../types/scene/scene-shadow.js": 91,
6796
+ "../types/scene/scene-video.js": 92,
6797
+ "../types/scene/scene-volumetric.js": 93,
6798
+ "../types/scene/scene-youtube.js": 94,
6799
+ "../types/scene/scene.js": 95,
6800
+ "../types/trigger/trigger-image.js": 96
6553
6801
  }],
6554
- 97: [function (require, module, exports) {
6555
- module.exports = "1.118.1";
6556
- }, {}],
6557
6802
  98: [function (require, module, exports) {
6803
+ module.exports = "1.120.1";
6804
+ }, {}],
6805
+ 99: [function (require, module, exports) {
6558
6806
  var QRCodeStyling = require("qr-code-styling");
6559
6807
 
6560
6808
  var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
6561
6809
  _inherits(BaseElement, _HTMLElement2);
6562
6810
 
6563
- var _super65 = _createSuper(BaseElement);
6811
+ var _super66 = _createSuper(BaseElement);
6564
6812
 
6565
6813
  function BaseElement() {
6566
6814
  _classCallCheck(this, BaseElement);
6567
6815
 
6568
- return _super65.call(this);
6816
+ return _super66.call(this);
6569
6817
  }
6570
6818
 
6571
6819
  _createClass(BaseElement, [{
6572
6820
  key: "connectedCallback",
6573
6821
  value: function connectedCallback() {
6822
+ var _this39 = this;
6823
+
6574
6824
  if (this.hasAttribute("url")) {
6575
6825
  this.renderQRCode();
6576
6826
  }
6827
+
6828
+ var observer = new MutationObserver(function (mutations) {
6829
+ mutations.forEach(function (mutation) {
6830
+ if (mutation.type === "attributes") {
6831
+ if (_this39.hasAttribute("url")) {
6832
+ _this39.renderQRCode();
6833
+ }
6834
+ }
6835
+ });
6836
+ });
6837
+ observer.observe(this, {
6838
+ attributes: true
6839
+ });
6577
6840
  }
6578
6841
  }, {
6579
6842
  key: "download",
@@ -6593,7 +6856,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6593
6856
  var url = this.hasAttribute("url") ? this.getAttribute("url") : undefined;
6594
6857
 
6595
6858
  if (!url) {
6596
- throw new Error("BaseElement.renderQRCode() - required attribute \"url\" is missing or invalid");
6859
+ console.warn("PlattarQR.renderQRCode() - required attribute \"url\" is missing or invalid, QR Code will not render");
6860
+ return;
6597
6861
  }
6598
6862
 
6599
6863
  var width = this.hasAttribute("width") ? parseInt(this.getAttribute("width")) : 512;
@@ -6671,10 +6935,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6671
6935
  color2: "#ffffff",
6672
6936
  rotation: "0"
6673
6937
  }
6674
- }
6938
+ },
6939
+ width: 1024,
6940
+ height: 1024,
6941
+ type: "canvas"
6675
6942
  };
6676
- this._options.width = 2048;
6677
- this._options.height = 2048;
6678
6943
  this._options.data = url;
6679
6944
  this._options.margin = margin;
6680
6945
  this._options.image = image; // set the colors
@@ -6700,24 +6965,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6700
6965
 
6701
6966
  if (!qrCode) {
6702
6967
  var div = document.createElement("div");
6703
- div.style.width = width + "px";
6704
- div.style.height = height + "px";
6705
6968
  shadow.appendChild(div);
6969
+ this._divContainer = div;
6706
6970
  this._qrCode = new QRCodeStyling(this._options);
6707
6971
 
6708
6972
  this._qrCode.append(div);
6709
6973
 
6710
- var canvas = this._qrCode._canvas;
6711
-
6712
- if (canvas) {
6713
- canvas.style.width = "100%";
6714
- canvas.style.height = "100%";
6715
- }
6974
+ this._UpdateCanvas(width, height);
6716
6975
 
6717
6976
  return;
6718
6977
  }
6719
6978
 
6720
6979
  this._qrCode.update(this._options);
6980
+
6981
+ this._UpdateCanvas(width, height);
6982
+ }
6983
+ }, {
6984
+ key: "_UpdateCanvas",
6985
+ value: function _UpdateCanvas(width, height) {
6986
+ if (!this._qrCode) {
6987
+ return;
6988
+ }
6989
+
6990
+ var canvas = this._qrCode._canvas;
6991
+
6992
+ if (canvas) {
6993
+ canvas.style.width = "100%";
6994
+ canvas.style.height = "100%";
6995
+ }
6996
+
6997
+ if (this._divContainer) {
6998
+ var div = this._divContainer;
6999
+ div.style.width = width + "px";
7000
+ div.style.height = height + "px";
7001
+ }
6721
7002
  }
6722
7003
  }]);
6723
7004
 
@@ -6726,30 +7007,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6726
7007
 
6727
7008
  module.exports = BaseElement;
6728
7009
  }, {
6729
- "qr-code-styling": 118
7010
+ "qr-code-styling": 119
6730
7011
  }],
6731
- 99: [function (require, module, exports) {
7012
+ 100: [function (require, module, exports) {
6732
7013
  var BaseElement = require("./base/base-element.js");
6733
7014
 
6734
7015
  var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
6735
7016
  _inherits(QRCodeElement, _BaseElement);
6736
7017
 
6737
- var _super66 = _createSuper(QRCodeElement);
7018
+ var _super67 = _createSuper(QRCodeElement);
6738
7019
 
6739
7020
  function QRCodeElement() {
6740
7021
  _classCallCheck(this, QRCodeElement);
6741
7022
 
6742
- return _super66.call(this);
7023
+ return _super67.call(this);
6743
7024
  }
6744
7025
 
6745
- return QRCodeElement;
7026
+ return _createClass(QRCodeElement);
6746
7027
  }(BaseElement);
6747
7028
 
6748
7029
  module.exports = QRCodeElement;
6749
7030
  }, {
6750
- "./base/base-element.js": 98
7031
+ "./base/base-element.js": 99
6751
7032
  }],
6752
- 100: [function (require, module, exports) {
7033
+ 101: [function (require, module, exports) {
6753
7034
  "use strict";
6754
7035
 
6755
7036
  var QRCodeElement = require("./elements/qrcode-element.js");
@@ -6762,24 +7043,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6762
7043
  version: Version
6763
7044
  };
6764
7045
  }, {
6765
- "./elements/qrcode-element.js": 99,
6766
- "./version": 101
7046
+ "./elements/qrcode-element.js": 100,
7047
+ "./version": 102
6767
7048
  }],
6768
- 101: [function (require, module, exports) {
6769
- module.exports = "1.119.1";
6770
- }, {}],
6771
7049
  102: [function (require, module, exports) {
7050
+ module.exports = "1.120.3";
7051
+ }, {}],
7052
+ 103: [function (require, module, exports) {
6772
7053
  var ElementController = require("../controllers/element-controller");
6773
7054
 
6774
7055
  var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
6775
7056
  _inherits(BaseElement, _HTMLElement3);
6776
7057
 
6777
- var _super67 = _createSuper(BaseElement);
7058
+ var _super68 = _createSuper(BaseElement);
6778
7059
 
6779
7060
  function BaseElement() {
6780
7061
  _classCallCheck(this, BaseElement);
6781
7062
 
6782
- return _super67.call(this);
7063
+ return _super68.call(this);
6783
7064
  }
6784
7065
 
6785
7066
  _createClass(BaseElement, [{
@@ -6879,19 +7160,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6879
7160
  }, {
6880
7161
  key: "allMappedAttributes",
6881
7162
  get: function get() {
6882
- var _this36 = this;
7163
+ var _this40 = this;
6883
7164
 
6884
7165
  var map = new Map();
6885
7166
  var coreAttr = this.coreAttributes;
6886
7167
  var optAttr = this.optionalAttributes;
6887
7168
  coreAttr.forEach(function (ele) {
6888
- if (_this36.hasAttribute(ele.key)) {
6889
- map.set(ele.map, _this36.getAttribute(ele.key));
7169
+ if (_this40.hasAttribute(ele.key)) {
7170
+ map.set(ele.map, _this40.getAttribute(ele.key));
6890
7171
  }
6891
7172
  });
6892
7173
  optAttr.forEach(function (ele) {
6893
- if (_this36.hasAttribute(ele.key)) {
6894
- map.set(ele.map, _this36.getAttribute(ele.key));
7174
+ if (_this40.hasAttribute(ele.key)) {
7175
+ map.set(ele.map, _this40.getAttribute(ele.key));
6895
7176
  }
6896
7177
  });
6897
7178
  return map;
@@ -6912,7 +7193,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6912
7193
  key = _step7$value[0],
6913
7194
  value = _step7$value[1];
6914
7195
 
6915
- queryStr = first ? "?" + key + "=" + value : "&" + key + "=" + value;
7196
+ queryStr += first ? "?" + key + "=" + value : "&" + key + "=" + value;
6916
7197
  first = false;
6917
7198
  }
6918
7199
  } catch (err) {
@@ -6935,9 +7216,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6935
7216
 
6936
7217
  module.exports = BaseElement;
6937
7218
  }, {
6938
- "../controllers/element-controller": 103
7219
+ "../controllers/element-controller": 104
6939
7220
  }],
6940
- 103: [function (require, module, exports) {
7221
+ 104: [function (require, module, exports) {
6941
7222
  var Util = require("../../util/util.js");
6942
7223
 
6943
7224
  var _require = require("@plattar/context-messenger"),
@@ -6947,7 +7228,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6947
7228
 
6948
7229
  var ElementController = /*#__PURE__*/function () {
6949
7230
  function ElementController(element) {
6950
- var _this37 = this;
7231
+ var _this41 = this;
6951
7232
 
6952
7233
  _classCallCheck(this, ElementController);
6953
7234
 
@@ -6963,7 +7244,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6963
7244
 
6964
7245
  if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
6965
7246
  if (element.hasAllCoreAttributes) {
6966
- _this37._load();
7247
+ _this41._load();
6967
7248
  }
6968
7249
  }
6969
7250
  }
@@ -7054,16 +7335,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7054
7335
 
7055
7336
  module.exports = ElementController;
7056
7337
  }, {
7057
- "../../util/util.js": 114,
7058
- "./iframe-controller.js": 104,
7059
- "@plattar/context-messenger": 13
7338
+ "../../util/util.js": 115,
7339
+ "./iframe-controller.js": 105,
7340
+ "@plattar/context-messenger": 14
7060
7341
  }],
7061
- 104: [function (require, module, exports) {
7342
+ 105: [function (require, module, exports) {
7062
7343
  var Util = require("../../util/util.js");
7063
7344
 
7064
7345
  var IFrameController = /*#__PURE__*/function () {
7065
7346
  function IFrameController(element, src, id) {
7066
- var _this38 = this;
7347
+ var _this42 = this;
7067
7348
 
7068
7349
  var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
7069
7350
 
@@ -7075,7 +7356,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7075
7356
  if (!element.hasAttribute("sameorigin")) {
7076
7357
  this._iframe.onload = function () {
7077
7358
  if (onelemload) {
7078
- onelemload(_this38._iframe);
7359
+ onelemload(_this42._iframe);
7079
7360
  }
7080
7361
  };
7081
7362
  }
@@ -7172,20 +7453,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7172
7453
 
7173
7454
  module.exports = IFrameController;
7174
7455
  }, {
7175
- "../../util/util.js": 114
7456
+ "../../util/util.js": 115
7176
7457
  }],
7177
- 105: [function (require, module, exports) {
7458
+ 106: [function (require, module, exports) {
7178
7459
  var BaseElement = require("./base/base-element.js");
7179
7460
 
7180
7461
  var EditorElement = /*#__PURE__*/function (_BaseElement2) {
7181
7462
  _inherits(EditorElement, _BaseElement2);
7182
7463
 
7183
- var _super68 = _createSuper(EditorElement);
7464
+ var _super69 = _createSuper(EditorElement);
7184
7465
 
7185
7466
  function EditorElement() {
7186
7467
  _classCallCheck(this, EditorElement);
7187
7468
 
7188
- return _super68.call(this);
7469
+ return _super69.call(this);
7189
7470
  }
7190
7471
 
7191
7472
  _createClass(EditorElement, [{
@@ -7205,26 +7486,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7205
7486
 
7206
7487
  module.exports = EditorElement;
7207
7488
  }, {
7208
- "./base/base-element.js": 102
7489
+ "./base/base-element.js": 103
7209
7490
  }],
7210
- 106: [function (require, module, exports) {
7491
+ 107: [function (require, module, exports) {
7211
7492
  var BaseElement = require("./base/base-element.js");
7212
7493
 
7213
7494
  var EWallElement = /*#__PURE__*/function (_BaseElement3) {
7214
7495
  _inherits(EWallElement, _BaseElement3);
7215
7496
 
7216
- var _super69 = _createSuper(EWallElement);
7497
+ var _super70 = _createSuper(EWallElement);
7217
7498
 
7218
7499
  function EWallElement() {
7219
- var _this39;
7500
+ var _this43;
7220
7501
 
7221
7502
  _classCallCheck(this, EWallElement);
7222
7503
 
7223
- _this39 = _super69.call(this);
7504
+ _this43 = _super70.call(this);
7224
7505
  var tag = document.createElement("script");
7225
7506
  tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
7226
7507
  tag.defer = true;
7227
- return _this39;
7508
+ return _this43;
7228
7509
  }
7229
7510
 
7230
7511
  _createClass(EWallElement, [{
@@ -7260,20 +7541,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7260
7541
 
7261
7542
  module.exports = EWallElement;
7262
7543
  }, {
7263
- "./base/base-element.js": 102
7544
+ "./base/base-element.js": 103
7264
7545
  }],
7265
- 107: [function (require, module, exports) {
7546
+ 108: [function (require, module, exports) {
7266
7547
  var BaseElement = require("./base/base-element.js");
7267
7548
 
7268
7549
  var FaceARElement = /*#__PURE__*/function (_BaseElement4) {
7269
7550
  _inherits(FaceARElement, _BaseElement4);
7270
7551
 
7271
- var _super70 = _createSuper(FaceARElement);
7552
+ var _super71 = _createSuper(FaceARElement);
7272
7553
 
7273
7554
  function FaceARElement() {
7274
7555
  _classCallCheck(this, FaceARElement);
7275
7556
 
7276
- return _super70.call(this);
7557
+ return _super71.call(this);
7277
7558
  }
7278
7559
 
7279
7560
  _createClass(FaceARElement, [{
@@ -7286,6 +7567,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7286
7567
  get: function get() {
7287
7568
  return "facear";
7288
7569
  }
7570
+ }, {
7571
+ key: "optionalAttributes",
7572
+ get: function get() {
7573
+ return [{
7574
+ key: "variation-id",
7575
+ map: "variationId"
7576
+ }, {
7577
+ key: "product-id",
7578
+ map: "productId"
7579
+ }];
7580
+ }
7289
7581
  }]);
7290
7582
 
7291
7583
  return FaceARElement;
@@ -7293,20 +7585,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7293
7585
 
7294
7586
  module.exports = FaceARElement;
7295
7587
  }, {
7296
- "./base/base-element.js": 102
7588
+ "./base/base-element.js": 103
7297
7589
  }],
7298
- 108: [function (require, module, exports) {
7590
+ 109: [function (require, module, exports) {
7299
7591
  var BaseElement = require("./base/base-element.js");
7300
7592
 
7301
7593
  var ModelElement = /*#__PURE__*/function (_BaseElement5) {
7302
7594
  _inherits(ModelElement, _BaseElement5);
7303
7595
 
7304
- var _super71 = _createSuper(ModelElement);
7596
+ var _super72 = _createSuper(ModelElement);
7305
7597
 
7306
7598
  function ModelElement() {
7307
7599
  _classCallCheck(this, ModelElement);
7308
7600
 
7309
- return _super71.call(this);
7601
+ return _super72.call(this);
7310
7602
  }
7311
7603
 
7312
7604
  _createClass(ModelElement, [{
@@ -7334,20 +7626,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7334
7626
 
7335
7627
  module.exports = ModelElement;
7336
7628
  }, {
7337
- "./base/base-element.js": 102
7629
+ "./base/base-element.js": 103
7338
7630
  }],
7339
- 109: [function (require, module, exports) {
7631
+ 110: [function (require, module, exports) {
7340
7632
  var BaseElement = require("./base/base-element.js");
7341
7633
 
7342
7634
  var ProductElement = /*#__PURE__*/function (_BaseElement6) {
7343
7635
  _inherits(ProductElement, _BaseElement6);
7344
7636
 
7345
- var _super72 = _createSuper(ProductElement);
7637
+ var _super73 = _createSuper(ProductElement);
7346
7638
 
7347
7639
  function ProductElement() {
7348
7640
  _classCallCheck(this, ProductElement);
7349
7641
 
7350
- return _super72.call(this);
7642
+ return _super73.call(this);
7351
7643
  }
7352
7644
 
7353
7645
  _createClass(ProductElement, [{
@@ -7383,20 +7675,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7383
7675
 
7384
7676
  module.exports = ProductElement;
7385
7677
  }, {
7386
- "./base/base-element.js": 102
7678
+ "./base/base-element.js": 103
7387
7679
  }],
7388
- 110: [function (require, module, exports) {
7680
+ 111: [function (require, module, exports) {
7389
7681
  var BaseElement = require("./base/base-element.js");
7390
7682
 
7391
7683
  var StudioElement = /*#__PURE__*/function (_BaseElement7) {
7392
7684
  _inherits(StudioElement, _BaseElement7);
7393
7685
 
7394
- var _super73 = _createSuper(StudioElement);
7686
+ var _super74 = _createSuper(StudioElement);
7395
7687
 
7396
7688
  function StudioElement() {
7397
7689
  _classCallCheck(this, StudioElement);
7398
7690
 
7399
- return _super73.call(this);
7691
+ return _super74.call(this);
7400
7692
  }
7401
7693
 
7402
7694
  _createClass(StudioElement, [{
@@ -7416,20 +7708,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7416
7708
 
7417
7709
  module.exports = StudioElement;
7418
7710
  }, {
7419
- "./base/base-element.js": 102
7711
+ "./base/base-element.js": 103
7420
7712
  }],
7421
- 111: [function (require, module, exports) {
7713
+ 112: [function (require, module, exports) {
7422
7714
  var BaseElement = require("./base/base-element.js");
7423
7715
 
7424
7716
  var ViewerElement = /*#__PURE__*/function (_BaseElement8) {
7425
7717
  _inherits(ViewerElement, _BaseElement8);
7426
7718
 
7427
- var _super74 = _createSuper(ViewerElement);
7719
+ var _super75 = _createSuper(ViewerElement);
7428
7720
 
7429
7721
  function ViewerElement() {
7430
7722
  _classCallCheck(this, ViewerElement);
7431
7723
 
7432
- return _super74.call(this);
7724
+ return _super75.call(this);
7433
7725
  }
7434
7726
 
7435
7727
  _createClass(ViewerElement, [{
@@ -7442,6 +7734,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7442
7734
  get: function get() {
7443
7735
  return "viewer";
7444
7736
  }
7737
+ }, {
7738
+ key: "optionalAttributes",
7739
+ get: function get() {
7740
+ return [{
7741
+ key: "variation-id",
7742
+ map: "variationId"
7743
+ }, {
7744
+ key: "product-id",
7745
+ map: "productId"
7746
+ }];
7747
+ }
7445
7748
  }]);
7446
7749
 
7447
7750
  return ViewerElement;
@@ -7449,20 +7752,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7449
7752
 
7450
7753
  module.exports = ViewerElement;
7451
7754
  }, {
7452
- "./base/base-element.js": 102
7755
+ "./base/base-element.js": 103
7453
7756
  }],
7454
- 112: [function (require, module, exports) {
7757
+ 113: [function (require, module, exports) {
7455
7758
  var BaseElement = require("./base/base-element.js");
7456
7759
 
7457
7760
  var WebXRElement = /*#__PURE__*/function (_BaseElement9) {
7458
7761
  _inherits(WebXRElement, _BaseElement9);
7459
7762
 
7460
- var _super75 = _createSuper(WebXRElement);
7763
+ var _super76 = _createSuper(WebXRElement);
7461
7764
 
7462
7765
  function WebXRElement() {
7463
7766
  _classCallCheck(this, WebXRElement);
7464
7767
 
7465
- return _super75.call(this);
7768
+ return _super76.call(this);
7466
7769
  }
7467
7770
 
7468
7771
  _createClass(WebXRElement, [{
@@ -7482,9 +7785,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7482
7785
 
7483
7786
  module.exports = WebXRElement;
7484
7787
  }, {
7485
- "./base/base-element.js": 102
7788
+ "./base/base-element.js": 103
7486
7789
  }],
7487
- 113: [function (require, module, exports) {
7790
+ 114: [function (require, module, exports) {
7488
7791
  "use strict";
7489
7792
 
7490
7793
  var WebXRElement = require("./elements/webxr-element.js");
@@ -7505,30 +7808,54 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7505
7808
 
7506
7809
  var Version = require("./version");
7507
7810
 
7508
- customElements.define("plattar-webxr", WebXRElement);
7509
- customElements.define("plattar-viewer", ViewerElement);
7510
- customElements.define("plattar-product", ProductElement);
7511
- customElements.define("plattar-editor", EditorElement);
7512
- customElements.define("plattar-facear", FaceARElement);
7513
- customElements.define("plattar-8wall", EWallElement);
7514
- customElements.define("plattar-studio", StudioElement);
7515
- customElements.define("plattar-model", ModelElement);
7811
+ if (customElements.get("plattar-webxr") === undefined) {
7812
+ customElements.define("plattar-webxr", WebXRElement);
7813
+ }
7814
+
7815
+ if (customElements.get("plattar-viewer") === undefined) {
7816
+ customElements.define("plattar-viewer", ViewerElement);
7817
+ }
7818
+
7819
+ if (customElements.get("plattar-product") === undefined) {
7820
+ customElements.define("plattar-product", ProductElement);
7821
+ }
7822
+
7823
+ if (customElements.get("plattar-editor") === undefined) {
7824
+ customElements.define("plattar-editor", EditorElement);
7825
+ }
7826
+
7827
+ if (customElements.get("plattar-facear") === undefined) {
7828
+ customElements.define("plattar-facear", FaceARElement);
7829
+ }
7830
+
7831
+ if (customElements.get("plattar-8wall") === undefined) {
7832
+ customElements.define("plattar-8wall", EWallElement);
7833
+ }
7834
+
7835
+ if (customElements.get("plattar-studio") === undefined) {
7836
+ customElements.define("plattar-studio", StudioElement);
7837
+ }
7838
+
7839
+ if (customElements.get("plattar-model") === undefined) {
7840
+ customElements.define("plattar-model", ModelElement);
7841
+ }
7842
+
7516
7843
  console.log("using @plattar/plattar-web v" + Version);
7517
7844
  module.exports = {
7518
7845
  version: Version
7519
7846
  };
7520
7847
  }, {
7521
- "./elements/editor-element.js": 105,
7522
- "./elements/ewall-element.js": 106,
7523
- "./elements/facear-element.js": 107,
7524
- "./elements/model-element.js": 108,
7525
- "./elements/product-element.js": 109,
7526
- "./elements/studio-element.js": 110,
7527
- "./elements/viewer-element.js": 111,
7528
- "./elements/webxr-element.js": 112,
7529
- "./version": 115
7848
+ "./elements/editor-element.js": 106,
7849
+ "./elements/ewall-element.js": 107,
7850
+ "./elements/facear-element.js": 108,
7851
+ "./elements/model-element.js": 109,
7852
+ "./elements/product-element.js": 110,
7853
+ "./elements/studio-element.js": 111,
7854
+ "./elements/viewer-element.js": 112,
7855
+ "./elements/webxr-element.js": 113,
7856
+ "./version": 116
7530
7857
  }],
7531
- 114: [function (require, module, exports) {
7858
+ 115: [function (require, module, exports) {
7532
7859
  var Util = /*#__PURE__*/function () {
7533
7860
  function Util() {
7534
7861
  _classCallCheck(this, Util);
@@ -7625,10 +7952,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7625
7952
 
7626
7953
  module.exports = Util;
7627
7954
  }, {}],
7628
- 115: [function (require, module, exports) {
7629
- module.exports = "1.117.1";
7630
- }, {}],
7631
7955
  116: [function (require, module, exports) {
7956
+ module.exports = "1.122.2";
7957
+ }, {}],
7958
+ 117: [function (require, module, exports) {
7632
7959
  (function (global) {
7633
7960
  (function () {
7634
7961
  "use strict"; // ref: https://github.com/tc39/proposal-global
@@ -7665,7 +7992,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7665
7992
  }).call(this);
7666
7993
  }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
7667
7994
  }, {}],
7668
- 117: [function (require, module, exports) {
7995
+ 118: [function (require, module, exports) {
7669
7996
  // shim for using process in browser
7670
7997
  var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
7671
7998
  // don't break things. But we need to wrap it in a try catch in case it is
@@ -7875,7 +8202,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7875
8202
  return 0;
7876
8203
  };
7877
8204
  }, {}],
7878
- 118: [function (require, module, exports) {
8205
+ 119: [function (require, module, exports) {
7879
8206
  !function (t, e) {
7880
8207
  "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();
7881
8208
  }(self, function () {
@@ -10507,6 +10834,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
10507
10834
  }()["default"];
10508
10835
  });
10509
10836
  }, {}]
10510
- }, {}, [6])(6);
10837
+ }, {}, [7])(7);
10511
10838
  });
10512
10839