@plattar/plattar-ar-adapter 1.120.1 → 1.120.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es2015/plattar-ar-adapter.js +1001 -784
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +254 -118
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/ar/model-ar.d.ts +32 -0
- package/dist/ar/model-ar.js +132 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -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$
|
|
208
|
-
_inherits(ProductAR, _launcher_ar_1$
|
|
414
|
+
var ProductAR = /*#__PURE__*/function (_launcher_ar_1$Launch3) {
|
|
415
|
+
_inherits(ProductAR, _launcher_ar_1$Launch3);
|
|
209
416
|
|
|
210
|
-
var
|
|
417
|
+
var _super3 = _createSuper(ProductAR);
|
|
211
418
|
|
|
212
419
|
function ProductAR() {
|
|
213
|
-
var
|
|
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
|
-
|
|
427
|
+
_this4 = _super3.call(this); // analytics instance
|
|
221
428
|
|
|
222
|
-
|
|
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
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return
|
|
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
|
|
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(
|
|
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 =
|
|
507
|
+
var variationID = _this5.variationID ? _this5.variationID === "default" ? product.attributes.product_variation_id : _this5.variationID : product.attributes.product_variation_id;
|
|
301
508
|
|
|
302
509
|
if (!variationID) {
|
|
303
510
|
return reject(new Error("ProductAR.init() - cannot proceed as variation was not defined correctly"));
|
|
@@ -325,7 +532,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
325
532
|
return reject(new Error("ProductAR.init() - cannot proceed as ModelFile for selected variation is corrupt"));
|
|
326
533
|
}
|
|
327
534
|
|
|
328
|
-
|
|
535
|
+
_this5._setupAnalytics(product, variation); // we need to define our AR module here
|
|
329
536
|
// we are in Safari/Quicklook mode here
|
|
330
537
|
|
|
331
538
|
|
|
@@ -333,16 +540,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
333
540
|
// model needs to have either USDZ or REALITY files defined
|
|
334
541
|
// we load REALITY stuff first if available
|
|
335
542
|
if (model.attributes.reality_filename && util_1.Util.canRealityViewer()) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
return accept(
|
|
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
|
-
|
|
344
|
-
|
|
345
|
-
return accept(
|
|
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
|
-
|
|
354
|
-
|
|
355
|
-
return accept(
|
|
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
|
|
579
|
+
var _this6 = this;
|
|
373
580
|
|
|
374
581
|
return new Promise(function (accept, reject) {
|
|
375
|
-
|
|
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":
|
|
428
|
-
"../viewers/quicklook-viewer":
|
|
429
|
-
"../viewers/reality-viewer":
|
|
430
|
-
"../viewers/scene-viewer":
|
|
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":
|
|
433
|
-
"@plattar/plattar-api":
|
|
639
|
+
"@plattar/plattar-analytics": 31,
|
|
640
|
+
"@plattar/plattar-api": 35
|
|
434
641
|
}],
|
|
435
|
-
|
|
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$
|
|
450
|
-
_inherits(SceneAR, _launcher_ar_1$
|
|
656
|
+
var SceneAR = /*#__PURE__*/function (_launcher_ar_1$Launch4) {
|
|
657
|
+
_inherits(SceneAR, _launcher_ar_1$Launch4);
|
|
451
658
|
|
|
452
|
-
var
|
|
659
|
+
var _super4 = _createSuper(SceneAR);
|
|
453
660
|
|
|
454
661
|
function SceneAR() {
|
|
455
662
|
_classCallCheck(this, SceneAR);
|
|
456
663
|
|
|
457
|
-
return
|
|
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
|
-
|
|
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
|
|
710
|
+
var _super5 = _createSuper(PlattarEmbed);
|
|
504
711
|
|
|
505
712
|
function PlattarEmbed() {
|
|
506
|
-
var
|
|
713
|
+
var _this7;
|
|
507
714
|
|
|
508
715
|
_classCallCheck(this, PlattarEmbed);
|
|
509
716
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
return
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
777
|
+
_this8.startViewer();
|
|
571
778
|
});
|
|
572
779
|
}
|
|
573
780
|
}
|
|
574
781
|
}, {
|
|
575
782
|
key: "initAR",
|
|
576
783
|
value: function initAR() {
|
|
577
|
-
var
|
|
784
|
+
var _this9 = this;
|
|
578
785
|
|
|
579
786
|
return new Promise(function (accept, reject) {
|
|
580
|
-
if (!
|
|
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 (!
|
|
586
|
-
var product = new product_ar_1.ProductAR(
|
|
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 (
|
|
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
|
|
808
|
+
var _this10 = this;
|
|
602
809
|
|
|
603
810
|
return new Promise(function (accept, reject) {
|
|
604
|
-
if (!
|
|
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
|
-
|
|
815
|
+
_this10.initAR().then(function (launcher) {
|
|
609
816
|
launcher.start();
|
|
610
817
|
accept();
|
|
611
818
|
})["catch"](reject);
|
|
@@ -614,67 +821,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
614
821
|
}, {
|
|
615
822
|
key: "startViewer",
|
|
616
823
|
value: function startViewer() {
|
|
617
|
-
var
|
|
824
|
+
var _this11 = this;
|
|
618
825
|
|
|
619
826
|
return new Promise(function (accept, reject) {
|
|
620
|
-
if (!
|
|
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 (
|
|
625
|
-
|
|
831
|
+
if (_this11._viewer) {
|
|
832
|
+
_this11._viewer.remove();
|
|
626
833
|
|
|
627
|
-
|
|
834
|
+
_this11._viewer = null;
|
|
628
835
|
} // if scene is set, we use <plattar-viewer /> node from plattar-web
|
|
629
836
|
|
|
630
837
|
|
|
631
|
-
if (
|
|
838
|
+
if (_this11._sceneID) {
|
|
632
839
|
var viewer = document.createElement("plattar-viewer");
|
|
633
|
-
viewer.setAttribute("width",
|
|
634
|
-
viewer.setAttribute("height",
|
|
635
|
-
viewer.setAttribute("server",
|
|
636
|
-
viewer.setAttribute("scene-id",
|
|
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);
|
|
637
844
|
|
|
638
845
|
viewer.onload = function () {
|
|
639
846
|
return accept(viewer);
|
|
640
847
|
};
|
|
641
848
|
|
|
642
|
-
var shadow =
|
|
849
|
+
var shadow = _this11.shadowRoot || _this11.attachShadow({
|
|
643
850
|
mode: 'open'
|
|
644
851
|
});
|
|
645
852
|
|
|
646
853
|
shadow.append(viewer);
|
|
647
|
-
|
|
854
|
+
_this11._viewer = viewer;
|
|
648
855
|
return;
|
|
649
856
|
} // if product is set, we use <plattar-product /> node from plattar-web
|
|
650
857
|
|
|
651
858
|
|
|
652
|
-
if (
|
|
859
|
+
if (_this11._productID) {
|
|
653
860
|
var _viewer = document.createElement("plattar-product");
|
|
654
861
|
|
|
655
|
-
_viewer.setAttribute("width",
|
|
862
|
+
_viewer.setAttribute("width", _this11._width);
|
|
656
863
|
|
|
657
|
-
_viewer.setAttribute("height",
|
|
864
|
+
_viewer.setAttribute("height", _this11._height);
|
|
658
865
|
|
|
659
|
-
_viewer.setAttribute("server",
|
|
866
|
+
_viewer.setAttribute("server", _this11._server);
|
|
660
867
|
|
|
661
|
-
_viewer.setAttribute("product-id",
|
|
868
|
+
_viewer.setAttribute("product-id", _this11._productID);
|
|
662
869
|
|
|
663
|
-
if (
|
|
664
|
-
_viewer.setAttribute("variation-id",
|
|
870
|
+
if (_this11._variationID) {
|
|
871
|
+
_viewer.setAttribute("variation-id", _this11._variationID);
|
|
665
872
|
}
|
|
666
873
|
|
|
667
874
|
_viewer.onload = function () {
|
|
668
875
|
return accept(_viewer);
|
|
669
876
|
};
|
|
670
877
|
|
|
671
|
-
var _shadow =
|
|
878
|
+
var _shadow = _this11.shadowRoot || _this11.attachShadow({
|
|
672
879
|
mode: 'open'
|
|
673
880
|
});
|
|
674
881
|
|
|
675
882
|
_shadow.append(_viewer);
|
|
676
883
|
|
|
677
|
-
|
|
884
|
+
_this11._viewer = _viewer;
|
|
678
885
|
return;
|
|
679
886
|
}
|
|
680
887
|
|
|
@@ -684,11 +891,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
684
891
|
}, {
|
|
685
892
|
key: "startQRCode",
|
|
686
893
|
value: function startQRCode() {
|
|
687
|
-
var
|
|
894
|
+
var _this12 = this;
|
|
688
895
|
|
|
689
896
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
690
897
|
return new Promise(function (accept, reject) {
|
|
691
|
-
if (!
|
|
898
|
+
if (!_this12._isReady) {
|
|
692
899
|
return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as page has not loaded yet"));
|
|
693
900
|
}
|
|
694
901
|
|
|
@@ -698,17 +905,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
698
905
|
margin: 0
|
|
699
906
|
};
|
|
700
907
|
|
|
701
|
-
if (
|
|
702
|
-
|
|
908
|
+
if (_this12._viewer) {
|
|
909
|
+
_this12._viewer.remove();
|
|
703
910
|
|
|
704
|
-
|
|
911
|
+
_this12._viewer = null;
|
|
705
912
|
} // if scene is set, we embed a QR code that takes us to viewer.html
|
|
706
913
|
|
|
707
914
|
|
|
708
|
-
if (
|
|
915
|
+
if (_this12._sceneID) {
|
|
709
916
|
var viewer = document.createElement("plattar-qrcode");
|
|
710
|
-
viewer.setAttribute("width",
|
|
711
|
-
viewer.setAttribute("height",
|
|
917
|
+
viewer.setAttribute("width", _this12._width);
|
|
918
|
+
viewer.setAttribute("height", _this12._height);
|
|
712
919
|
|
|
713
920
|
if (opt.color) {
|
|
714
921
|
viewer.setAttribute("color", opt.color);
|
|
@@ -722,7 +929,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
722
929
|
viewer.setAttribute("qr-type", opt.qrType);
|
|
723
930
|
}
|
|
724
931
|
|
|
725
|
-
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" +
|
|
932
|
+
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this12._sceneID;
|
|
726
933
|
|
|
727
934
|
viewer.setAttribute("url", dst);
|
|
728
935
|
|
|
@@ -730,22 +937,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
730
937
|
return accept(viewer);
|
|
731
938
|
};
|
|
732
939
|
|
|
733
|
-
var shadow =
|
|
940
|
+
var shadow = _this12.shadowRoot || _this12.attachShadow({
|
|
734
941
|
mode: 'open'
|
|
735
942
|
});
|
|
736
943
|
|
|
737
944
|
shadow.append(viewer);
|
|
738
|
-
|
|
945
|
+
_this12._viewer = viewer;
|
|
739
946
|
return;
|
|
740
947
|
} // if product is set, we embed a QR code that takes us to product.html
|
|
741
948
|
|
|
742
949
|
|
|
743
|
-
if (
|
|
950
|
+
if (_this12._productID) {
|
|
744
951
|
var _viewer2 = document.createElement("plattar-qrcode");
|
|
745
952
|
|
|
746
|
-
_viewer2.setAttribute("width",
|
|
953
|
+
_viewer2.setAttribute("width", _this12._width);
|
|
747
954
|
|
|
748
|
-
_viewer2.setAttribute("height",
|
|
955
|
+
_viewer2.setAttribute("height", _this12._height);
|
|
749
956
|
|
|
750
957
|
if (opt.color) {
|
|
751
958
|
_viewer2.setAttribute("color", opt.color);
|
|
@@ -759,10 +966,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
759
966
|
_viewer2.setAttribute("qr-type", opt.qrType);
|
|
760
967
|
}
|
|
761
968
|
|
|
762
|
-
var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" +
|
|
969
|
+
var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this12._productID;
|
|
763
970
|
|
|
764
|
-
if (
|
|
765
|
-
_dst += "&variation_id=" +
|
|
971
|
+
if (_this12._variationID) {
|
|
972
|
+
_dst += "&variation_id=" + _this12._variationID;
|
|
766
973
|
}
|
|
767
974
|
|
|
768
975
|
_viewer2.setAttribute("url", _dst);
|
|
@@ -771,13 +978,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
771
978
|
return accept(_viewer2);
|
|
772
979
|
};
|
|
773
980
|
|
|
774
|
-
var _shadow2 =
|
|
981
|
+
var _shadow2 = _this12.shadowRoot || _this12.attachShadow({
|
|
775
982
|
mode: 'open'
|
|
776
983
|
});
|
|
777
984
|
|
|
778
985
|
_shadow2.append(_viewer2);
|
|
779
986
|
|
|
780
|
-
|
|
987
|
+
_this12._viewer = _viewer2;
|
|
781
988
|
return;
|
|
782
989
|
}
|
|
783
990
|
|
|
@@ -791,10 +998,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
791
998
|
|
|
792
999
|
exports["default"] = PlattarEmbed;
|
|
793
1000
|
}, {
|
|
794
|
-
"../ar/product-ar":
|
|
795
|
-
"@plattar/plattar-api":
|
|
1001
|
+
"../ar/product-ar": 4,
|
|
1002
|
+
"@plattar/plattar-api": 35
|
|
796
1003
|
}],
|
|
797
|
-
|
|
1004
|
+
7: [function (require, module, exports) {
|
|
798
1005
|
"use strict";
|
|
799
1006
|
|
|
800
1007
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -840,7 +1047,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
840
1047
|
Object.defineProperty(exports, "__esModule", {
|
|
841
1048
|
value: true
|
|
842
1049
|
});
|
|
843
|
-
exports.Util = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
1050
|
+
exports.Util = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
844
1051
|
exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
|
|
845
1052
|
exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
|
|
846
1053
|
exports.version = __importStar(require("./version"));
|
|
@@ -872,6 +1079,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
872
1079
|
}
|
|
873
1080
|
});
|
|
874
1081
|
|
|
1082
|
+
var model_ar_1 = require("./ar/model-ar");
|
|
1083
|
+
|
|
1084
|
+
Object.defineProperty(exports, "ModelAR", {
|
|
1085
|
+
enumerable: true,
|
|
1086
|
+
get: function get() {
|
|
1087
|
+
return model_ar_1.ModelAR;
|
|
1088
|
+
}
|
|
1089
|
+
});
|
|
1090
|
+
|
|
875
1091
|
var util_1 = require("./util/util");
|
|
876
1092
|
|
|
877
1093
|
Object.defineProperty(exports, "Util", {
|
|
@@ -892,15 +1108,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
892
1108
|
console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
|
|
893
1109
|
}, {
|
|
894
1110
|
"./ar/configurator-ar": 1,
|
|
895
|
-
"./ar/
|
|
896
|
-
"./ar/
|
|
897
|
-
"./
|
|
898
|
-
"./
|
|
899
|
-
"./
|
|
900
|
-
"
|
|
901
|
-
"@plattar/plattar-
|
|
1111
|
+
"./ar/model-ar": 3,
|
|
1112
|
+
"./ar/product-ar": 4,
|
|
1113
|
+
"./ar/scene-ar": 5,
|
|
1114
|
+
"./embed/plattar-embed": 6,
|
|
1115
|
+
"./util/util": 8,
|
|
1116
|
+
"./version": 9,
|
|
1117
|
+
"@plattar/plattar-qrcode": 101,
|
|
1118
|
+
"@plattar/plattar-web": 114
|
|
902
1119
|
}],
|
|
903
|
-
|
|
1120
|
+
8: [function (require, module, exports) {
|
|
904
1121
|
"use strict";
|
|
905
1122
|
|
|
906
1123
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1024,15 +1241,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1024
1241
|
|
|
1025
1242
|
exports.Util = Util;
|
|
1026
1243
|
}, {}],
|
|
1027
|
-
|
|
1244
|
+
9: [function (require, module, exports) {
|
|
1028
1245
|
"use strict";
|
|
1029
1246
|
|
|
1030
1247
|
Object.defineProperty(exports, "__esModule", {
|
|
1031
1248
|
value: true
|
|
1032
1249
|
});
|
|
1033
|
-
exports["default"] = "1.120.
|
|
1250
|
+
exports["default"] = "1.120.2";
|
|
1034
1251
|
}, {}],
|
|
1035
|
-
|
|
1252
|
+
10: [function (require, module, exports) {
|
|
1036
1253
|
"use strict";
|
|
1037
1254
|
|
|
1038
1255
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1048,7 +1265,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1048
1265
|
|
|
1049
1266
|
exports["default"] = ARViewer;
|
|
1050
1267
|
}, {}],
|
|
1051
|
-
|
|
1268
|
+
11: [function (require, module, exports) {
|
|
1052
1269
|
"use strict";
|
|
1053
1270
|
|
|
1054
1271
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1066,20 +1283,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1066
1283
|
var QuicklookViewer = /*#__PURE__*/function (_ar_viewer_1$default) {
|
|
1067
1284
|
_inherits(QuicklookViewer, _ar_viewer_1$default);
|
|
1068
1285
|
|
|
1069
|
-
var
|
|
1286
|
+
var _super6 = _createSuper(QuicklookViewer);
|
|
1070
1287
|
|
|
1071
1288
|
function QuicklookViewer() {
|
|
1072
|
-
var
|
|
1289
|
+
var _this13;
|
|
1073
1290
|
|
|
1074
1291
|
_classCallCheck(this, QuicklookViewer);
|
|
1075
1292
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1293
|
+
_this13 = _super6.call(this);
|
|
1294
|
+
_this13.araction = null;
|
|
1295
|
+
_this13.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
|
|
1079
1296
|
|
|
1080
|
-
|
|
1297
|
+
_this13.arcallback = function () {};
|
|
1081
1298
|
|
|
1082
|
-
return
|
|
1299
|
+
return _this13;
|
|
1083
1300
|
}
|
|
1084
1301
|
|
|
1085
1302
|
_createClass(QuicklookViewer, [{
|
|
@@ -1095,7 +1312,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1095
1312
|
}, {
|
|
1096
1313
|
key: "start",
|
|
1097
1314
|
value: function start() {
|
|
1098
|
-
var
|
|
1315
|
+
var _this14 = this;
|
|
1099
1316
|
|
|
1100
1317
|
if (!this.modelUrl) {
|
|
1101
1318
|
throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
|
|
@@ -1110,7 +1327,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1110
1327
|
if (araction) {
|
|
1111
1328
|
var handleQuicklook = function handleQuicklook(event) {
|
|
1112
1329
|
if (event.data === "_apple_ar_quicklook_button_tapped") {
|
|
1113
|
-
|
|
1330
|
+
_this14.arcallback();
|
|
1114
1331
|
}
|
|
1115
1332
|
|
|
1116
1333
|
document.body.removeChild(anchor);
|
|
@@ -1136,9 +1353,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1136
1353
|
|
|
1137
1354
|
exports["default"] = QuicklookViewer;
|
|
1138
1355
|
}, {
|
|
1139
|
-
"./ar-viewer":
|
|
1356
|
+
"./ar-viewer": 10
|
|
1140
1357
|
}],
|
|
1141
|
-
|
|
1358
|
+
12: [function (require, module, exports) {
|
|
1142
1359
|
"use strict";
|
|
1143
1360
|
|
|
1144
1361
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1156,12 +1373,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1156
1373
|
var RealityViewer = /*#__PURE__*/function (_ar_viewer_1$default2) {
|
|
1157
1374
|
_inherits(RealityViewer, _ar_viewer_1$default2);
|
|
1158
1375
|
|
|
1159
|
-
var
|
|
1376
|
+
var _super7 = _createSuper(RealityViewer);
|
|
1160
1377
|
|
|
1161
1378
|
function RealityViewer() {
|
|
1162
1379
|
_classCallCheck(this, RealityViewer);
|
|
1163
1380
|
|
|
1164
|
-
return
|
|
1381
|
+
return _super7.call(this);
|
|
1165
1382
|
}
|
|
1166
1383
|
|
|
1167
1384
|
_createClass(RealityViewer, [{
|
|
@@ -1194,9 +1411,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1194
1411
|
|
|
1195
1412
|
exports["default"] = RealityViewer;
|
|
1196
1413
|
}, {
|
|
1197
|
-
"./ar-viewer":
|
|
1414
|
+
"./ar-viewer": 10
|
|
1198
1415
|
}],
|
|
1199
|
-
|
|
1416
|
+
13: [function (require, module, exports) {
|
|
1200
1417
|
"use strict";
|
|
1201
1418
|
|
|
1202
1419
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1214,19 +1431,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1214
1431
|
var SceneViewer = /*#__PURE__*/function (_ar_viewer_1$default3) {
|
|
1215
1432
|
_inherits(SceneViewer, _ar_viewer_1$default3);
|
|
1216
1433
|
|
|
1217
|
-
var
|
|
1434
|
+
var _super8 = _createSuper(SceneViewer);
|
|
1218
1435
|
|
|
1219
1436
|
function SceneViewer() {
|
|
1220
|
-
var
|
|
1437
|
+
var _this15;
|
|
1221
1438
|
|
|
1222
1439
|
_classCallCheck(this, SceneViewer);
|
|
1223
1440
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
return
|
|
1441
|
+
_this15 = _super8.call(this);
|
|
1442
|
+
_this15.araction = null;
|
|
1443
|
+
_this15.isVertical = false;
|
|
1444
|
+
_this15.titleHTML = "<b>" + document.title;
|
|
1445
|
+
_this15.isVertical = false;
|
|
1446
|
+
return _this15;
|
|
1230
1447
|
}
|
|
1231
1448
|
|
|
1232
1449
|
_createClass(SceneViewer, [{
|
|
@@ -1283,9 +1500,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1283
1500
|
|
|
1284
1501
|
exports["default"] = SceneViewer;
|
|
1285
1502
|
}, {
|
|
1286
|
-
"./ar-viewer":
|
|
1503
|
+
"./ar-viewer": 10
|
|
1287
1504
|
}],
|
|
1288
|
-
|
|
1505
|
+
14: [function (require, module, exports) {
|
|
1289
1506
|
"use strict";
|
|
1290
1507
|
|
|
1291
1508
|
var Messenger = require("./messenger/messenger.js");
|
|
@@ -1321,12 +1538,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1321
1538
|
version: Version
|
|
1322
1539
|
};
|
|
1323
1540
|
}, {
|
|
1324
|
-
"./memory/memory.js":
|
|
1325
|
-
"./messenger/global-event-handler.js":
|
|
1326
|
-
"./messenger/messenger.js":
|
|
1327
|
-
"./version":
|
|
1541
|
+
"./memory/memory.js": 15,
|
|
1542
|
+
"./messenger/global-event-handler.js": 22,
|
|
1543
|
+
"./messenger/messenger.js": 23,
|
|
1544
|
+
"./version": 28
|
|
1328
1545
|
}],
|
|
1329
|
-
|
|
1546
|
+
15: [function (require, module, exports) {
|
|
1330
1547
|
var PermanentMemory = require("./permanent-memory");
|
|
1331
1548
|
|
|
1332
1549
|
var TemporaryMemory = require("./temporary-memory");
|
|
@@ -1338,7 +1555,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1338
1555
|
|
|
1339
1556
|
var Memory = /*#__PURE__*/function () {
|
|
1340
1557
|
function Memory(messengerInstance) {
|
|
1341
|
-
var
|
|
1558
|
+
var _this16 = this;
|
|
1342
1559
|
|
|
1343
1560
|
_classCallCheck(this, Memory);
|
|
1344
1561
|
|
|
@@ -1347,11 +1564,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1347
1564
|
this._permMemory = new PermanentMemory(messengerInstance);
|
|
1348
1565
|
|
|
1349
1566
|
this._messenger.self.__memory__set_temp_var = function (name, data) {
|
|
1350
|
-
|
|
1567
|
+
_this16._tempMemory[name] = data;
|
|
1351
1568
|
};
|
|
1352
1569
|
|
|
1353
1570
|
this._messenger.self.__memory__set_perm_var = function (name, data) {
|
|
1354
|
-
|
|
1571
|
+
_this16._permMemory[name] = data;
|
|
1355
1572
|
};
|
|
1356
1573
|
}
|
|
1357
1574
|
|
|
@@ -1372,10 +1589,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1372
1589
|
|
|
1373
1590
|
module.exports = Memory;
|
|
1374
1591
|
}, {
|
|
1375
|
-
"./permanent-memory":
|
|
1376
|
-
"./temporary-memory":
|
|
1592
|
+
"./permanent-memory": 16,
|
|
1593
|
+
"./temporary-memory": 17
|
|
1377
1594
|
}],
|
|
1378
|
-
|
|
1595
|
+
16: [function (require, module, exports) {
|
|
1379
1596
|
var WrappedValue = require("./wrapped-value");
|
|
1380
1597
|
|
|
1381
1598
|
var PermanentMemory = function PermanentMemory(messengerInstance) {
|
|
@@ -1473,9 +1690,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1473
1690
|
|
|
1474
1691
|
module.exports = PermanentMemory;
|
|
1475
1692
|
}, {
|
|
1476
|
-
"./wrapped-value":
|
|
1693
|
+
"./wrapped-value": 18
|
|
1477
1694
|
}],
|
|
1478
|
-
|
|
1695
|
+
17: [function (require, module, exports) {
|
|
1479
1696
|
var WrappedValue = require("./wrapped-value");
|
|
1480
1697
|
|
|
1481
1698
|
var TemporaryMemory = function TemporaryMemory(messengerInstance) {
|
|
@@ -1552,9 +1769,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1552
1769
|
|
|
1553
1770
|
module.exports = TemporaryMemory;
|
|
1554
1771
|
}, {
|
|
1555
|
-
"./wrapped-value":
|
|
1772
|
+
"./wrapped-value": 18
|
|
1556
1773
|
}],
|
|
1557
|
-
|
|
1774
|
+
18: [function (require, module, exports) {
|
|
1558
1775
|
/**
|
|
1559
1776
|
* WrappedValue represents a generic value type with a callback function
|
|
1560
1777
|
* for when the value has changed
|
|
@@ -1672,7 +1889,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1672
1889
|
|
|
1673
1890
|
module.exports = WrappedValue;
|
|
1674
1891
|
}, {}],
|
|
1675
|
-
|
|
1892
|
+
19: [function (require, module, exports) {
|
|
1676
1893
|
/**
|
|
1677
1894
|
* Broadcaster is used to call functions in multiple contexts at the
|
|
1678
1895
|
* same time. This can be useful without having to handle complex logic
|
|
@@ -1739,7 +1956,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1739
1956
|
|
|
1740
1957
|
module.exports = Broadcaster;
|
|
1741
1958
|
}, {}],
|
|
1742
|
-
|
|
1959
|
+
20: [function (require, module, exports) {
|
|
1743
1960
|
var WrappedFunction = require("./wrapped-local-function");
|
|
1744
1961
|
|
|
1745
1962
|
var CurrentFunctionList = function CurrentFunctionList() {
|
|
@@ -1802,9 +2019,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1802
2019
|
|
|
1803
2020
|
module.exports = CurrentFunctionList;
|
|
1804
2021
|
}, {
|
|
1805
|
-
"./wrapped-local-function":
|
|
2022
|
+
"./wrapped-local-function": 21
|
|
1806
2023
|
}],
|
|
1807
|
-
|
|
2024
|
+
21: [function (require, module, exports) {
|
|
1808
2025
|
var Util = require("../util/util.js");
|
|
1809
2026
|
/**
|
|
1810
2027
|
* WrappedLocalFunction represents a container that holds and maintains a specific function
|
|
@@ -1849,20 +2066,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1849
2066
|
}, {
|
|
1850
2067
|
key: "exec",
|
|
1851
2068
|
value: function exec() {
|
|
1852
|
-
var
|
|
2069
|
+
var _this17 = this;
|
|
1853
2070
|
|
|
1854
2071
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
1855
2072
|
args[_key3] = arguments[_key3];
|
|
1856
2073
|
}
|
|
1857
2074
|
|
|
1858
2075
|
return new Promise(function (accept, reject) {
|
|
1859
|
-
if (!
|
|
1860
|
-
return reject(new Error("WrappedLocalFunction.exec() function with name " +
|
|
2076
|
+
if (!_this17._value) {
|
|
2077
|
+
return reject(new Error("WrappedLocalFunction.exec() function with name " + _this17._funcName + "() is not defined"));
|
|
1861
2078
|
}
|
|
1862
2079
|
|
|
1863
2080
|
try {
|
|
1864
2081
|
// otherwise execute the function
|
|
1865
|
-
var rObject =
|
|
2082
|
+
var rObject = _this17._execute.apply(_this17, args); // we need to check if the returned object is a Promise, if so, handle it
|
|
1866
2083
|
// differently. This can happen if the function wants to execute asyn
|
|
1867
2084
|
|
|
1868
2085
|
|
|
@@ -1914,9 +2131,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1914
2131
|
|
|
1915
2132
|
module.exports = WrappedLocalFunction;
|
|
1916
2133
|
}, {
|
|
1917
|
-
"../util/util.js":
|
|
2134
|
+
"../util/util.js": 27
|
|
1918
2135
|
}],
|
|
1919
|
-
|
|
2136
|
+
22: [function (require, module, exports) {
|
|
1920
2137
|
var RemoteInterface = require("./remote-interface.js");
|
|
1921
2138
|
/**
|
|
1922
2139
|
* This is a singleton class that handles events on a global basis. Allows
|
|
@@ -1926,7 +2143,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1926
2143
|
|
|
1927
2144
|
var GlobalEventHandler = /*#__PURE__*/function () {
|
|
1928
2145
|
function GlobalEventHandler() {
|
|
1929
|
-
var
|
|
2146
|
+
var _this18 = this;
|
|
1930
2147
|
|
|
1931
2148
|
_classCallCheck(this, GlobalEventHandler);
|
|
1932
2149
|
|
|
@@ -1948,10 +2165,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1948
2165
|
|
|
1949
2166
|
if (jsonData && jsonData.event && jsonData.data) {
|
|
1950
2167
|
// see if there are any listeners for this
|
|
1951
|
-
if (
|
|
2168
|
+
if (_this18._eventListeners[jsonData.event]) {
|
|
1952
2169
|
var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
|
|
1953
2170
|
|
|
1954
|
-
|
|
2171
|
+
_this18._eventListeners[jsonData.event].forEach(function (callback) {
|
|
1955
2172
|
try {
|
|
1956
2173
|
callback(remoteInterface, jsonData.data);
|
|
1957
2174
|
} catch (e) {
|
|
@@ -2008,9 +2225,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2008
2225
|
|
|
2009
2226
|
module.exports = GlobalEventHandler;
|
|
2010
2227
|
}, {
|
|
2011
|
-
"./remote-interface.js":
|
|
2228
|
+
"./remote-interface.js": 24
|
|
2012
2229
|
}],
|
|
2013
|
-
|
|
2230
|
+
23: [function (require, module, exports) {
|
|
2014
2231
|
var CurrentFunctionList = require("./current/current-function-list");
|
|
2015
2232
|
|
|
2016
2233
|
var RemoteInterface = require("./remote-interface");
|
|
@@ -2147,40 +2364,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2147
2364
|
}, {
|
|
2148
2365
|
key: "_registerListeners",
|
|
2149
2366
|
value: function _registerListeners() {
|
|
2150
|
-
var
|
|
2367
|
+
var _this19 = this;
|
|
2151
2368
|
|
|
2152
2369
|
GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
|
|
2153
2370
|
var iframeID = src.id; // check reserved key list
|
|
2154
2371
|
|
|
2155
2372
|
switch (iframeID) {
|
|
2156
2373
|
case undefined:
|
|
2157
|
-
throw new Error("Messenger[" +
|
|
2374
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID cannot be undefined");
|
|
2158
2375
|
|
|
2159
2376
|
case "self":
|
|
2160
|
-
throw new Error("Messenger[" +
|
|
2377
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
2161
2378
|
|
|
2162
2379
|
case "parent":
|
|
2163
|
-
throw new Error("Messenger[" +
|
|
2380
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
2164
2381
|
|
|
2165
2382
|
case "id":
|
|
2166
|
-
throw new Error("Messenger[" +
|
|
2383
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
2167
2384
|
|
|
2168
2385
|
case "onload":
|
|
2169
|
-
throw new Error("Messenger[" +
|
|
2386
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
2170
2387
|
|
|
2171
2388
|
default:
|
|
2172
2389
|
break;
|
|
2173
2390
|
} // initialise the child iframe as a messenger pipe
|
|
2174
2391
|
|
|
2175
2392
|
|
|
2176
|
-
|
|
2393
|
+
_this19[iframeID] = new RemoteFunctionList(iframeID);
|
|
2177
2394
|
|
|
2178
|
-
|
|
2395
|
+
_this19[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
2179
2396
|
|
|
2180
2397
|
|
|
2181
|
-
|
|
2398
|
+
_this19._broadcaster._push(iframeID);
|
|
2182
2399
|
|
|
2183
|
-
var callbacks =
|
|
2400
|
+
var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
|
|
2184
2401
|
|
|
2185
2402
|
if (callbacks.has(iframeID)) {
|
|
2186
2403
|
var array = callbacks.get(iframeID);
|
|
@@ -2204,33 +2421,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2204
2421
|
|
|
2205
2422
|
switch (iframeID) {
|
|
2206
2423
|
case undefined:
|
|
2207
|
-
throw new Error("Messenger[" +
|
|
2424
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID cannot be undefined");
|
|
2208
2425
|
|
|
2209
2426
|
case "self":
|
|
2210
|
-
throw new Error("Messenger[" +
|
|
2427
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
2211
2428
|
|
|
2212
2429
|
case "parent":
|
|
2213
|
-
throw new Error("Messenger[" +
|
|
2430
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
2214
2431
|
|
|
2215
2432
|
case "id":
|
|
2216
|
-
throw new Error("Messenger[" +
|
|
2433
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
2217
2434
|
|
|
2218
2435
|
case "onload":
|
|
2219
|
-
throw new Error("Messenger[" +
|
|
2436
|
+
throw new Error("Messenger[" + _this19._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
2220
2437
|
|
|
2221
2438
|
default:
|
|
2222
2439
|
break;
|
|
2223
2440
|
} // initialise the child iframe as a messenger pipe
|
|
2224
2441
|
|
|
2225
2442
|
|
|
2226
|
-
|
|
2443
|
+
_this19[iframeID] = new RemoteFunctionList(iframeID);
|
|
2227
2444
|
|
|
2228
|
-
|
|
2445
|
+
_this19[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
2229
2446
|
|
|
2230
2447
|
|
|
2231
|
-
|
|
2448
|
+
_this19._broadcaster._push(iframeID);
|
|
2232
2449
|
|
|
2233
|
-
var callbacks =
|
|
2450
|
+
var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
|
|
2234
2451
|
|
|
2235
2452
|
if (callbacks.has(iframeID)) {
|
|
2236
2453
|
var array = callbacks.get(iframeID);
|
|
@@ -2250,11 +2467,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2250
2467
|
});
|
|
2251
2468
|
GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
|
|
2252
2469
|
var iframeID = "parent";
|
|
2253
|
-
|
|
2470
|
+
_this19[iframeID] = new RemoteFunctionList(iframeID);
|
|
2254
2471
|
|
|
2255
|
-
|
|
2472
|
+
_this19[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
2256
2473
|
|
|
2257
|
-
var callbacks =
|
|
2474
|
+
var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
|
|
2258
2475
|
|
|
2259
2476
|
if (callbacks.has(iframeID)) {
|
|
2260
2477
|
var array = callbacks.get(iframeID);
|
|
@@ -2279,11 +2496,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2279
2496
|
|
|
2280
2497
|
GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
|
|
2281
2498
|
var iframeID = "parent";
|
|
2282
|
-
|
|
2499
|
+
_this19[iframeID] = new RemoteFunctionList(iframeID);
|
|
2283
2500
|
|
|
2284
|
-
|
|
2501
|
+
_this19[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
2285
2502
|
|
|
2286
|
-
var callbacks =
|
|
2503
|
+
var callbacks = _this19._callbacks; // we have registered callbacks, begin execution
|
|
2287
2504
|
|
|
2288
2505
|
if (callbacks.has(iframeID)) {
|
|
2289
2506
|
var array = callbacks.get(iframeID);
|
|
@@ -2339,14 +2556,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2339
2556
|
|
|
2340
2557
|
module.exports = Messenger;
|
|
2341
2558
|
}, {
|
|
2342
|
-
"./broadcaster.js":
|
|
2343
|
-
"./current/current-function-list":
|
|
2344
|
-
"./global-event-handler.js":
|
|
2345
|
-
"./remote-interface":
|
|
2346
|
-
"./remote/remote-function-list":
|
|
2347
|
-
"./util/util.js":
|
|
2559
|
+
"./broadcaster.js": 19,
|
|
2560
|
+
"./current/current-function-list": 20,
|
|
2561
|
+
"./global-event-handler.js": 22,
|
|
2562
|
+
"./remote-interface": 24,
|
|
2563
|
+
"./remote/remote-function-list": 25,
|
|
2564
|
+
"./util/util.js": 27
|
|
2348
2565
|
}],
|
|
2349
|
-
|
|
2566
|
+
24: [function (require, module, exports) {
|
|
2350
2567
|
/**
|
|
2351
2568
|
* Provides a single useful interface for performing remote function calls
|
|
2352
2569
|
*/
|
|
@@ -2418,7 +2635,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2418
2635
|
|
|
2419
2636
|
module.exports = RemoteInterface;
|
|
2420
2637
|
}, {}],
|
|
2421
|
-
|
|
2638
|
+
25: [function (require, module, exports) {
|
|
2422
2639
|
var WrappedFunction = require("./wrapped-remote-function");
|
|
2423
2640
|
|
|
2424
2641
|
var RemoteFunctionList = /*#__PURE__*/function () {
|
|
@@ -2506,9 +2723,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2506
2723
|
|
|
2507
2724
|
module.exports = RemoteFunctionList;
|
|
2508
2725
|
}, {
|
|
2509
|
-
"./wrapped-remote-function":
|
|
2726
|
+
"./wrapped-remote-function": 26
|
|
2510
2727
|
}],
|
|
2511
|
-
|
|
2728
|
+
26: [function (require, module, exports) {
|
|
2512
2729
|
var Util = require("../util/util.js");
|
|
2513
2730
|
|
|
2514
2731
|
var GlobalEventHandler = require("../global-event-handler.js");
|
|
@@ -2521,7 +2738,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2521
2738
|
|
|
2522
2739
|
var WrappedRemoteFunction = /*#__PURE__*/function () {
|
|
2523
2740
|
function WrappedRemoteFunction(funcName, remoteInterface) {
|
|
2524
|
-
var
|
|
2741
|
+
var _this20 = this;
|
|
2525
2742
|
|
|
2526
2743
|
_classCallCheck(this, WrappedRemoteFunction);
|
|
2527
2744
|
|
|
@@ -2532,19 +2749,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2532
2749
|
GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
|
|
2533
2750
|
var instanceID = data.instance_id; // the function name must match
|
|
2534
2751
|
|
|
2535
|
-
if (data.function_name !==
|
|
2752
|
+
if (data.function_name !== _this20._funcName) {
|
|
2536
2753
|
return;
|
|
2537
2754
|
} // the instance ID must be found, otherwise this is a rogue execution
|
|
2538
2755
|
// that can be ignored (should not happen)
|
|
2539
2756
|
|
|
2540
2757
|
|
|
2541
|
-
if (!
|
|
2758
|
+
if (!_this20._callInstances[instanceID]) {
|
|
2542
2759
|
return;
|
|
2543
2760
|
}
|
|
2544
2761
|
|
|
2545
|
-
var promise =
|
|
2762
|
+
var promise = _this20._callInstances[instanceID]; // remove the old instance
|
|
2546
2763
|
|
|
2547
|
-
delete
|
|
2764
|
+
delete _this20._callInstances[instanceID]; // perform the promise callbacks
|
|
2548
2765
|
|
|
2549
2766
|
if (data.function_status === "success") {
|
|
2550
2767
|
promise.accept(data.function_args);
|
|
@@ -2561,7 +2778,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2561
2778
|
_createClass(WrappedRemoteFunction, [{
|
|
2562
2779
|
key: "exec",
|
|
2563
2780
|
value: function exec() {
|
|
2564
|
-
var
|
|
2781
|
+
var _this21 = this;
|
|
2565
2782
|
|
|
2566
2783
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
2567
2784
|
args[_key4] = arguments[_key4];
|
|
@@ -2581,14 +2798,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2581
2798
|
|
|
2582
2799
|
return new Promise(function (accept, reject) {
|
|
2583
2800
|
// save this promise to be executed later
|
|
2584
|
-
|
|
2801
|
+
_this21._callInstances[instanceID] = {
|
|
2585
2802
|
accept: accept,
|
|
2586
2803
|
reject: reject
|
|
2587
2804
|
}; // execute this event in another context
|
|
2588
2805
|
|
|
2589
|
-
|
|
2806
|
+
_this21._remoteInterface.send("__messenger__exec_fnc", {
|
|
2590
2807
|
instance_id: instanceID,
|
|
2591
|
-
function_name:
|
|
2808
|
+
function_name: _this21._funcName,
|
|
2592
2809
|
function_args: args
|
|
2593
2810
|
});
|
|
2594
2811
|
});
|
|
@@ -2600,10 +2817,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2600
2817
|
|
|
2601
2818
|
module.exports = WrappedRemoteFunction;
|
|
2602
2819
|
}, {
|
|
2603
|
-
"../global-event-handler.js":
|
|
2604
|
-
"../util/util.js":
|
|
2820
|
+
"../global-event-handler.js": 22,
|
|
2821
|
+
"../util/util.js": 27
|
|
2605
2822
|
}],
|
|
2606
|
-
|
|
2823
|
+
27: [function (require, module, exports) {
|
|
2607
2824
|
var Util = /*#__PURE__*/function () {
|
|
2608
2825
|
function Util() {
|
|
2609
2826
|
_classCallCheck(this, Util);
|
|
@@ -2643,10 +2860,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2643
2860
|
|
|
2644
2861
|
module.exports = Util;
|
|
2645
2862
|
}, {}],
|
|
2646
|
-
|
|
2863
|
+
28: [function (require, module, exports) {
|
|
2647
2864
|
module.exports = "1.113.6";
|
|
2648
2865
|
}, {}],
|
|
2649
|
-
|
|
2866
|
+
29: [function (require, module, exports) {
|
|
2650
2867
|
"use strict";
|
|
2651
2868
|
|
|
2652
2869
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2715,9 +2932,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2715
2932
|
|
|
2716
2933
|
exports.AnalyticsData = AnalyticsData;
|
|
2717
2934
|
}, {
|
|
2718
|
-
"../util/util":
|
|
2935
|
+
"../util/util": 33
|
|
2719
2936
|
}],
|
|
2720
|
-
|
|
2937
|
+
30: [function (require, module, exports) {
|
|
2721
2938
|
"use strict";
|
|
2722
2939
|
|
|
2723
2940
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2737,7 +2954,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2737
2954
|
|
|
2738
2955
|
var Analytics = /*#__PURE__*/function () {
|
|
2739
2956
|
function Analytics(applicationID) {
|
|
2740
|
-
var
|
|
2957
|
+
var _this22 = this;
|
|
2741
2958
|
|
|
2742
2959
|
_classCallCheck(this, Analytics);
|
|
2743
2960
|
|
|
@@ -2754,21 +2971,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2754
2971
|
|
|
2755
2972
|
this._handlePageHide = function () {
|
|
2756
2973
|
if (document.visibilityState === "hidden") {
|
|
2757
|
-
|
|
2758
|
-
} else if (
|
|
2974
|
+
_this22._pageTime = new Date();
|
|
2975
|
+
} else if (_this22._pageTime) {
|
|
2759
2976
|
var time2 = new Date();
|
|
2760
2977
|
|
|
2761
|
-
var diff = time2.getTime() -
|
|
2978
|
+
var diff = time2.getTime() - _this22._pageTime.getTime();
|
|
2762
2979
|
|
|
2763
|
-
var data =
|
|
2980
|
+
var data = _this22.data;
|
|
2764
2981
|
data.push("eventAction", "View Time");
|
|
2765
2982
|
data.push("viewTime", diff);
|
|
2766
2983
|
data.push("eventLabel", diff);
|
|
2767
2984
|
|
|
2768
|
-
|
|
2985
|
+
_this22.write();
|
|
2769
2986
|
|
|
2770
|
-
|
|
2771
|
-
document.removeEventListener("visibilitychange",
|
|
2987
|
+
_this22._pageTime = null;
|
|
2988
|
+
document.removeEventListener("visibilitychange", _this22._handlePageHide, false);
|
|
2772
2989
|
}
|
|
2773
2990
|
};
|
|
2774
2991
|
}
|
|
@@ -2776,7 +2993,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2776
2993
|
_createClass(Analytics, [{
|
|
2777
2994
|
key: "query",
|
|
2778
2995
|
value: function query() {
|
|
2779
|
-
var
|
|
2996
|
+
var _this23 = this;
|
|
2780
2997
|
|
|
2781
2998
|
var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2782
2999
|
|
|
@@ -2785,11 +3002,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2785
3002
|
return reject(new Error("Analytics.query() - provided query was null"));
|
|
2786
3003
|
}
|
|
2787
3004
|
|
|
2788
|
-
var url =
|
|
3005
|
+
var url = _this23.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
2789
3006
|
var data = {
|
|
2790
3007
|
type: "read",
|
|
2791
|
-
application_id:
|
|
2792
|
-
event:
|
|
3008
|
+
application_id: _this23._applicationID,
|
|
3009
|
+
event: _this23.event,
|
|
2793
3010
|
data: _query
|
|
2794
3011
|
};
|
|
2795
3012
|
basic_http_1["default"].exec("POST", url, data).then(function (result) {
|
|
@@ -2800,21 +3017,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2800
3017
|
}, {
|
|
2801
3018
|
key: "write",
|
|
2802
3019
|
value: function write() {
|
|
2803
|
-
var
|
|
3020
|
+
var _this24 = this;
|
|
2804
3021
|
|
|
2805
3022
|
return new Promise(function (accept, reject) {
|
|
2806
|
-
var data =
|
|
2807
|
-
var url =
|
|
2808
|
-
data.push("applicationId",
|
|
3023
|
+
var data = _this24._data;
|
|
3024
|
+
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";
|
|
3025
|
+
data.push("applicationId", _this24._applicationID);
|
|
2809
3026
|
var sendData = {
|
|
2810
3027
|
type: "write",
|
|
2811
|
-
application_id:
|
|
2812
|
-
origin:
|
|
2813
|
-
event:
|
|
3028
|
+
application_id: _this24._applicationID,
|
|
3029
|
+
origin: _this24.origin,
|
|
3030
|
+
event: _this24.event,
|
|
2814
3031
|
data: data.data
|
|
2815
3032
|
};
|
|
2816
3033
|
|
|
2817
|
-
if (
|
|
3034
|
+
if (_this24.isBeacon === false) {
|
|
2818
3035
|
basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
|
|
2819
3036
|
accept(result && result.results ? result.results : {});
|
|
2820
3037
|
})["catch"](reject);
|
|
@@ -2842,10 +3059,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2842
3059
|
|
|
2843
3060
|
exports.Analytics = Analytics;
|
|
2844
3061
|
}, {
|
|
2845
|
-
"../util/basic-http":
|
|
2846
|
-
"./analytics-data":
|
|
3062
|
+
"../util/basic-http": 32,
|
|
3063
|
+
"./analytics-data": 29
|
|
2847
3064
|
}],
|
|
2848
|
-
|
|
3065
|
+
31: [function (require, module, exports) {
|
|
2849
3066
|
"use strict";
|
|
2850
3067
|
|
|
2851
3068
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -2907,10 +3124,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2907
3124
|
|
|
2908
3125
|
console.log("using @plattar/plattar-analytics v" + version_1["default"]);
|
|
2909
3126
|
}, {
|
|
2910
|
-
"./analytics/analytics":
|
|
2911
|
-
"./version":
|
|
3127
|
+
"./analytics/analytics": 30,
|
|
3128
|
+
"./version": 34
|
|
2912
3129
|
}],
|
|
2913
|
-
|
|
3130
|
+
32: [function (require, module, exports) {
|
|
2914
3131
|
"use strict";
|
|
2915
3132
|
|
|
2916
3133
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2996,7 +3213,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2996
3213
|
|
|
2997
3214
|
exports["default"] = BasicHTTP;
|
|
2998
3215
|
}, {}],
|
|
2999
|
-
|
|
3216
|
+
33: [function (require, module, exports) {
|
|
3000
3217
|
"use strict";
|
|
3001
3218
|
|
|
3002
3219
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -3035,7 +3252,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3035
3252
|
|
|
3036
3253
|
exports.Util = Util;
|
|
3037
3254
|
}, {}],
|
|
3038
|
-
|
|
3255
|
+
34: [function (require, module, exports) {
|
|
3039
3256
|
"use strict";
|
|
3040
3257
|
|
|
3041
3258
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -3043,7 +3260,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3043
3260
|
});
|
|
3044
3261
|
exports["default"] = "1.117.2";
|
|
3045
3262
|
}, {}],
|
|
3046
|
-
|
|
3263
|
+
35: [function (require, module, exports) {
|
|
3047
3264
|
"use strict";
|
|
3048
3265
|
|
|
3049
3266
|
var Server = require("./server/plattar-server.js");
|
|
@@ -3246,67 +3463,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3246
3463
|
version: Version
|
|
3247
3464
|
};
|
|
3248
3465
|
}, {
|
|
3249
|
-
"./server/plattar-server.js":
|
|
3250
|
-
"./types/application.js":
|
|
3251
|
-
"./types/content-pipeline/brief.js":
|
|
3252
|
-
"./types/content-pipeline/comment-brief.js":
|
|
3253
|
-
"./types/content-pipeline/comment-quote.js":
|
|
3254
|
-
"./types/content-pipeline/comment-solution.js":
|
|
3255
|
-
"./types/content-pipeline/folder.js":
|
|
3256
|
-
"./types/content-pipeline/pipeline-user.js":
|
|
3257
|
-
"./types/content-pipeline/quote.js":
|
|
3258
|
-
"./types/content-pipeline/rating.js":
|
|
3259
|
-
"./types/content-pipeline/solution.js":
|
|
3260
|
-
"./types/file/file-audio.js":
|
|
3261
|
-
"./types/file/file-base.js":
|
|
3262
|
-
"./types/file/file-image.js":
|
|
3263
|
-
"./types/file/file-model.js":
|
|
3264
|
-
"./types/file/file-script.js":
|
|
3265
|
-
"./types/file/file-video.js":
|
|
3266
|
-
"./types/misc/application-build.js":
|
|
3267
|
-
"./types/misc/asset-library.js":
|
|
3268
|
-
"./types/misc/async-job.js":
|
|
3269
|
-
"./types/misc/script-event.js":
|
|
3270
|
-
"./types/misc/tag.js":
|
|
3271
|
-
"./types/page/card-base.js":
|
|
3272
|
-
"./types/page/card-button.js":
|
|
3273
|
-
"./types/page/card-html.js":
|
|
3274
|
-
"./types/page/card-iframe.js":
|
|
3275
|
-
"./types/page/card-image.js":
|
|
3276
|
-
"./types/page/card-map.js":
|
|
3277
|
-
"./types/page/card-paragraph.js":
|
|
3278
|
-
"./types/page/card-row.js":
|
|
3279
|
-
"./types/page/card-slider.js":
|
|
3280
|
-
"./types/page/card-title.js":
|
|
3281
|
-
"./types/page/card-video.js":
|
|
3282
|
-
"./types/page/card-youtube.js":
|
|
3283
|
-
"./types/page/page.js":
|
|
3284
|
-
"./types/product/product-annotation.js":
|
|
3285
|
-
"./types/product/product-base.js":
|
|
3286
|
-
"./types/product/product-variation.js":
|
|
3287
|
-
"./types/product/product.js":
|
|
3288
|
-
"./types/scene/scene-annotation.js":
|
|
3289
|
-
"./types/scene/scene-audio.js":
|
|
3290
|
-
"./types/scene/scene-base.js":
|
|
3291
|
-
"./types/scene/scene-button.js":
|
|
3292
|
-
"./types/scene/scene-camera.js":
|
|
3293
|
-
"./types/scene/scene-carousel.js":
|
|
3294
|
-
"./types/scene/scene-image.js":
|
|
3295
|
-
"./types/scene/scene-model.js":
|
|
3296
|
-
"./types/scene/scene-panorama.js":
|
|
3297
|
-
"./types/scene/scene-poller.js":
|
|
3298
|
-
"./types/scene/scene-product.js":
|
|
3299
|
-
"./types/scene/scene-script.js":
|
|
3300
|
-
"./types/scene/scene-shadow.js":
|
|
3301
|
-
"./types/scene/scene-video.js":
|
|
3302
|
-
"./types/scene/scene-volumetric.js":
|
|
3303
|
-
"./types/scene/scene-youtube.js":
|
|
3304
|
-
"./types/scene/scene.js":
|
|
3305
|
-
"./types/trigger/trigger-image.js":
|
|
3306
|
-
"./util/plattar-util.js":
|
|
3307
|
-
"./version":
|
|
3466
|
+
"./server/plattar-server.js": 37,
|
|
3467
|
+
"./types/application.js": 38,
|
|
3468
|
+
"./types/content-pipeline/brief.js": 39,
|
|
3469
|
+
"./types/content-pipeline/comment-brief.js": 40,
|
|
3470
|
+
"./types/content-pipeline/comment-quote.js": 41,
|
|
3471
|
+
"./types/content-pipeline/comment-solution.js": 42,
|
|
3472
|
+
"./types/content-pipeline/folder.js": 43,
|
|
3473
|
+
"./types/content-pipeline/pipeline-user.js": 44,
|
|
3474
|
+
"./types/content-pipeline/quote.js": 45,
|
|
3475
|
+
"./types/content-pipeline/rating.js": 46,
|
|
3476
|
+
"./types/content-pipeline/solution.js": 47,
|
|
3477
|
+
"./types/file/file-audio.js": 48,
|
|
3478
|
+
"./types/file/file-base.js": 49,
|
|
3479
|
+
"./types/file/file-image.js": 50,
|
|
3480
|
+
"./types/file/file-model.js": 51,
|
|
3481
|
+
"./types/file/file-script.js": 52,
|
|
3482
|
+
"./types/file/file-video.js": 53,
|
|
3483
|
+
"./types/misc/application-build.js": 57,
|
|
3484
|
+
"./types/misc/asset-library.js": 58,
|
|
3485
|
+
"./types/misc/async-job.js": 59,
|
|
3486
|
+
"./types/misc/script-event.js": 60,
|
|
3487
|
+
"./types/misc/tag.js": 61,
|
|
3488
|
+
"./types/page/card-base.js": 62,
|
|
3489
|
+
"./types/page/card-button.js": 63,
|
|
3490
|
+
"./types/page/card-html.js": 64,
|
|
3491
|
+
"./types/page/card-iframe.js": 65,
|
|
3492
|
+
"./types/page/card-image.js": 66,
|
|
3493
|
+
"./types/page/card-map.js": 67,
|
|
3494
|
+
"./types/page/card-paragraph.js": 68,
|
|
3495
|
+
"./types/page/card-row.js": 69,
|
|
3496
|
+
"./types/page/card-slider.js": 70,
|
|
3497
|
+
"./types/page/card-title.js": 71,
|
|
3498
|
+
"./types/page/card-video.js": 72,
|
|
3499
|
+
"./types/page/card-youtube.js": 73,
|
|
3500
|
+
"./types/page/page.js": 74,
|
|
3501
|
+
"./types/product/product-annotation.js": 75,
|
|
3502
|
+
"./types/product/product-base.js": 76,
|
|
3503
|
+
"./types/product/product-variation.js": 77,
|
|
3504
|
+
"./types/product/product.js": 78,
|
|
3505
|
+
"./types/scene/scene-annotation.js": 79,
|
|
3506
|
+
"./types/scene/scene-audio.js": 80,
|
|
3507
|
+
"./types/scene/scene-base.js": 81,
|
|
3508
|
+
"./types/scene/scene-button.js": 82,
|
|
3509
|
+
"./types/scene/scene-camera.js": 83,
|
|
3510
|
+
"./types/scene/scene-carousel.js": 84,
|
|
3511
|
+
"./types/scene/scene-image.js": 85,
|
|
3512
|
+
"./types/scene/scene-model.js": 86,
|
|
3513
|
+
"./types/scene/scene-panorama.js": 87,
|
|
3514
|
+
"./types/scene/scene-poller.js": 88,
|
|
3515
|
+
"./types/scene/scene-product.js": 89,
|
|
3516
|
+
"./types/scene/scene-script.js": 90,
|
|
3517
|
+
"./types/scene/scene-shadow.js": 91,
|
|
3518
|
+
"./types/scene/scene-video.js": 92,
|
|
3519
|
+
"./types/scene/scene-volumetric.js": 93,
|
|
3520
|
+
"./types/scene/scene-youtube.js": 94,
|
|
3521
|
+
"./types/scene/scene.js": 95,
|
|
3522
|
+
"./types/trigger/trigger-image.js": 96,
|
|
3523
|
+
"./util/plattar-util.js": 97,
|
|
3524
|
+
"./version": 98
|
|
3308
3525
|
}],
|
|
3309
|
-
|
|
3526
|
+
36: [function (require, module, exports) {
|
|
3310
3527
|
var fetch = require("node-fetch");
|
|
3311
3528
|
|
|
3312
3529
|
var PlattarQuery = /*#__PURE__*/function () {
|
|
@@ -3365,11 +3582,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3365
3582
|
}, {
|
|
3366
3583
|
key: "_get",
|
|
3367
3584
|
value: function _get(opt) {
|
|
3368
|
-
var
|
|
3585
|
+
var _this25 = this;
|
|
3369
3586
|
|
|
3370
3587
|
return new Promise(function (resolve, reject) {
|
|
3371
|
-
var target =
|
|
3372
|
-
var server =
|
|
3588
|
+
var target = _this25.target;
|
|
3589
|
+
var server = _this25.server; // we cannot perform a GET request without an ID
|
|
3373
3590
|
|
|
3374
3591
|
if (!target.id) {
|
|
3375
3592
|
reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
|
|
@@ -3394,16 +3611,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3394
3611
|
var origin = server.originLocation.api_read;
|
|
3395
3612
|
var auth = server.authToken;
|
|
3396
3613
|
var headers = {
|
|
3397
|
-
'cookie': 'laravel_session=' +
|
|
3614
|
+
'cookie': 'laravel_session=' + _this25.getCookie('laravel_session')
|
|
3398
3615
|
};
|
|
3399
3616
|
Object.assign(headers, auth);
|
|
3400
3617
|
var reqopts = {
|
|
3401
3618
|
method: "GET",
|
|
3402
3619
|
headers: headers
|
|
3403
3620
|
};
|
|
3404
|
-
var includeQuery =
|
|
3621
|
+
var includeQuery = _this25._IncludeQuery;
|
|
3405
3622
|
|
|
3406
|
-
var params =
|
|
3623
|
+
var params = _this25._ParamFor("get");
|
|
3407
3624
|
|
|
3408
3625
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3409
3626
|
|
|
@@ -3444,11 +3661,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3444
3661
|
}, {
|
|
3445
3662
|
key: "_update",
|
|
3446
3663
|
value: function _update() {
|
|
3447
|
-
var
|
|
3664
|
+
var _this26 = this;
|
|
3448
3665
|
|
|
3449
3666
|
return new Promise(function (resolve, reject) {
|
|
3450
|
-
var target =
|
|
3451
|
-
var server =
|
|
3667
|
+
var target = _this26.target;
|
|
3668
|
+
var server = _this26.server; // we cannot perform a GET request without an ID
|
|
3452
3669
|
|
|
3453
3670
|
if (!target.id) {
|
|
3454
3671
|
reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
|
|
@@ -3461,7 +3678,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3461
3678
|
var headers = {
|
|
3462
3679
|
'Accept': 'application/json',
|
|
3463
3680
|
'Content-Type': 'application/json',
|
|
3464
|
-
'cookie': 'laravel_session=' +
|
|
3681
|
+
'cookie': 'laravel_session=' + _this26.getCookie('laravel_session')
|
|
3465
3682
|
};
|
|
3466
3683
|
Object.assign(headers, auth);
|
|
3467
3684
|
var reqopts = {
|
|
@@ -3476,7 +3693,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3476
3693
|
})
|
|
3477
3694
|
};
|
|
3478
3695
|
|
|
3479
|
-
var params =
|
|
3696
|
+
var params = _this26._ParamFor("update");
|
|
3480
3697
|
|
|
3481
3698
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3482
3699
|
|
|
@@ -3518,18 +3735,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3518
3735
|
}, {
|
|
3519
3736
|
key: "_create",
|
|
3520
3737
|
value: function _create() {
|
|
3521
|
-
var
|
|
3738
|
+
var _this27 = this;
|
|
3522
3739
|
|
|
3523
3740
|
return new Promise(function (resolve, reject) {
|
|
3524
|
-
var target =
|
|
3525
|
-
var server =
|
|
3741
|
+
var target = _this27.target;
|
|
3742
|
+
var server = _this27.server; // otherwise, proceed with the fetching op
|
|
3526
3743
|
|
|
3527
3744
|
var origin = server.originLocation.api_write;
|
|
3528
3745
|
var auth = server.authToken;
|
|
3529
3746
|
var headers = {
|
|
3530
3747
|
'Accept': 'application/json',
|
|
3531
3748
|
'Content-Type': 'application/json',
|
|
3532
|
-
'cookie': 'laravel_session=' +
|
|
3749
|
+
'cookie': 'laravel_session=' + _this27.getCookie('laravel_session')
|
|
3533
3750
|
};
|
|
3534
3751
|
Object.assign(headers, auth);
|
|
3535
3752
|
var reqopts = {
|
|
@@ -3543,7 +3760,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3543
3760
|
})
|
|
3544
3761
|
};
|
|
3545
3762
|
|
|
3546
|
-
var params =
|
|
3763
|
+
var params = _this27._ParamFor("create");
|
|
3547
3764
|
|
|
3548
3765
|
var endpoint = origin + target.type();
|
|
3549
3766
|
|
|
@@ -3587,11 +3804,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3587
3804
|
}, {
|
|
3588
3805
|
key: "_delete",
|
|
3589
3806
|
value: function _delete() {
|
|
3590
|
-
var
|
|
3807
|
+
var _this28 = this;
|
|
3591
3808
|
|
|
3592
3809
|
return new Promise(function (resolve, reject) {
|
|
3593
|
-
var target =
|
|
3594
|
-
var server =
|
|
3810
|
+
var target = _this28.target;
|
|
3811
|
+
var server = _this28.server; // we cannot perform a GET request without an ID
|
|
3595
3812
|
|
|
3596
3813
|
if (!target.id) {
|
|
3597
3814
|
reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
|
|
@@ -3604,7 +3821,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3604
3821
|
var headers = {
|
|
3605
3822
|
'Accept': 'application/json',
|
|
3606
3823
|
'Content-Type': 'application/json',
|
|
3607
|
-
'cookie': 'laravel_session=' +
|
|
3824
|
+
'cookie': 'laravel_session=' + _this28.getCookie('laravel_session')
|
|
3608
3825
|
};
|
|
3609
3826
|
Object.assign(headers, auth);
|
|
3610
3827
|
var reqopts = {
|
|
@@ -3619,7 +3836,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3619
3836
|
})
|
|
3620
3837
|
};
|
|
3621
3838
|
|
|
3622
|
-
var params =
|
|
3839
|
+
var params = _this28._ParamFor("delete");
|
|
3623
3840
|
|
|
3624
3841
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3625
3842
|
|
|
@@ -3682,7 +3899,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3682
3899
|
}, {
|
|
3683
3900
|
key: "_include",
|
|
3684
3901
|
value: function _include(args) {
|
|
3685
|
-
var
|
|
3902
|
+
var _this29 = this;
|
|
3686
3903
|
|
|
3687
3904
|
if (!args || args.length <= 0) {
|
|
3688
3905
|
return this;
|
|
@@ -3695,21 +3912,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3695
3912
|
if (Array.isArray(obj)) {
|
|
3696
3913
|
obj.forEach(function (strObject) {
|
|
3697
3914
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
3698
|
-
|
|
3915
|
+
_this29._getIncludeQuery.push(strObject);
|
|
3699
3916
|
} else {
|
|
3700
|
-
throw new Error("PlattarQuery." +
|
|
3917
|
+
throw new Error("PlattarQuery." + _this29.target.type() + ".include(...args) - argument of Array must only include Strings");
|
|
3701
3918
|
}
|
|
3702
3919
|
});
|
|
3703
3920
|
} else if (PlattarUtil.isPlattarObject(obj)) {
|
|
3704
3921
|
var type = obj.type();
|
|
3705
3922
|
|
|
3706
3923
|
if (Array.isArray(type)) {
|
|
3707
|
-
|
|
3924
|
+
_this29._include(type);
|
|
3708
3925
|
} else {
|
|
3709
|
-
|
|
3926
|
+
_this29._getIncludeQuery.push(type);
|
|
3710
3927
|
}
|
|
3711
3928
|
} else {
|
|
3712
|
-
throw new Error("PlattarQuery." +
|
|
3929
|
+
throw new Error("PlattarQuery." + _this29.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
3713
3930
|
}
|
|
3714
3931
|
});
|
|
3715
3932
|
return this;
|
|
@@ -3790,10 +4007,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3790
4007
|
|
|
3791
4008
|
module.exports = PlattarQuery;
|
|
3792
4009
|
}, {
|
|
3793
|
-
"../util/plattar-util.js":
|
|
3794
|
-
"node-fetch":
|
|
4010
|
+
"../util/plattar-util.js": 97,
|
|
4011
|
+
"node-fetch": 117
|
|
3795
4012
|
}],
|
|
3796
|
-
|
|
4013
|
+
37: [function (require, module, exports) {
|
|
3797
4014
|
(function (process) {
|
|
3798
4015
|
(function () {
|
|
3799
4016
|
var fetch = require("node-fetch");
|
|
@@ -3849,13 +4066,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3849
4066
|
}, {
|
|
3850
4067
|
key: "auth",
|
|
3851
4068
|
value: function auth(token, opt) {
|
|
3852
|
-
var
|
|
4069
|
+
var _this30 = this;
|
|
3853
4070
|
|
|
3854
4071
|
var copt = opt || {
|
|
3855
4072
|
validate: false
|
|
3856
4073
|
};
|
|
3857
4074
|
return new Promise(function (resolve, reject) {
|
|
3858
|
-
var server =
|
|
4075
|
+
var server = _this30.originLocation.api_write;
|
|
3859
4076
|
|
|
3860
4077
|
if (!server) {
|
|
3861
4078
|
reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
|
|
@@ -3868,10 +4085,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3868
4085
|
}
|
|
3869
4086
|
|
|
3870
4087
|
if (!copt.validate) {
|
|
3871
|
-
|
|
4088
|
+
_this30._authToken = {
|
|
3872
4089
|
"plattar-auth-token": token
|
|
3873
4090
|
};
|
|
3874
|
-
resolve(
|
|
4091
|
+
resolve(_this30);
|
|
3875
4092
|
return;
|
|
3876
4093
|
}
|
|
3877
4094
|
|
|
@@ -3884,10 +4101,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3884
4101
|
};
|
|
3885
4102
|
fetch(endpoint, options).then(function (res) {
|
|
3886
4103
|
if (res.ok) {
|
|
3887
|
-
|
|
4104
|
+
_this30._authToken = {
|
|
3888
4105
|
"plattar-auth-token": token
|
|
3889
4106
|
};
|
|
3890
|
-
resolve(
|
|
4107
|
+
resolve(_this30);
|
|
3891
4108
|
} else {
|
|
3892
4109
|
reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
|
|
3893
4110
|
}
|
|
@@ -3897,7 +4114,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3897
4114
|
}, {
|
|
3898
4115
|
key: "origin",
|
|
3899
4116
|
value: function origin(server, opt) {
|
|
3900
|
-
var
|
|
4117
|
+
var _this31 = this;
|
|
3901
4118
|
|
|
3902
4119
|
var copt = opt || {
|
|
3903
4120
|
validate: false
|
|
@@ -3909,8 +4126,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3909
4126
|
}
|
|
3910
4127
|
|
|
3911
4128
|
if (!copt.validate) {
|
|
3912
|
-
|
|
3913
|
-
resolve(
|
|
4129
|
+
_this31._serverLocation = server;
|
|
4130
|
+
resolve(_this31);
|
|
3914
4131
|
return;
|
|
3915
4132
|
}
|
|
3916
4133
|
|
|
@@ -3920,8 +4137,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3920
4137
|
};
|
|
3921
4138
|
fetch(endpoint, options).then(function (res) {
|
|
3922
4139
|
if (res.ok) {
|
|
3923
|
-
|
|
3924
|
-
resolve(
|
|
4140
|
+
_this31._serverLocation = server;
|
|
4141
|
+
resolve(_this31);
|
|
3925
4142
|
} else {
|
|
3926
4143
|
reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
|
|
3927
4144
|
}
|
|
@@ -4015,21 +4232,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4015
4232
|
}).call(this);
|
|
4016
4233
|
}).call(this, require('_process'));
|
|
4017
4234
|
}, {
|
|
4018
|
-
"_process":
|
|
4019
|
-
"node-fetch":
|
|
4235
|
+
"_process": 118,
|
|
4236
|
+
"node-fetch": 117
|
|
4020
4237
|
}],
|
|
4021
|
-
|
|
4238
|
+
38: [function (require, module, exports) {
|
|
4022
4239
|
var PlattarBase = require("./interfaces/plattar-base.js");
|
|
4023
4240
|
|
|
4024
4241
|
var Application = /*#__PURE__*/function (_PlattarBase) {
|
|
4025
4242
|
_inherits(Application, _PlattarBase);
|
|
4026
4243
|
|
|
4027
|
-
var
|
|
4244
|
+
var _super9 = _createSuper(Application);
|
|
4028
4245
|
|
|
4029
4246
|
function Application() {
|
|
4030
4247
|
_classCallCheck(this, Application);
|
|
4031
4248
|
|
|
4032
|
-
return
|
|
4249
|
+
return _super9.apply(this, arguments);
|
|
4033
4250
|
}
|
|
4034
4251
|
|
|
4035
4252
|
_createClass(Application, null, [{
|
|
@@ -4044,20 +4261,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4044
4261
|
|
|
4045
4262
|
module.exports = Application;
|
|
4046
4263
|
}, {
|
|
4047
|
-
"./interfaces/plattar-base.js":
|
|
4264
|
+
"./interfaces/plattar-base.js": 54
|
|
4048
4265
|
}],
|
|
4049
|
-
|
|
4266
|
+
39: [function (require, module, exports) {
|
|
4050
4267
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4051
4268
|
|
|
4052
4269
|
var Brief = /*#__PURE__*/function (_PlattarBase2) {
|
|
4053
4270
|
_inherits(Brief, _PlattarBase2);
|
|
4054
4271
|
|
|
4055
|
-
var
|
|
4272
|
+
var _super10 = _createSuper(Brief);
|
|
4056
4273
|
|
|
4057
4274
|
function Brief() {
|
|
4058
4275
|
_classCallCheck(this, Brief);
|
|
4059
4276
|
|
|
4060
|
-
return
|
|
4277
|
+
return _super10.apply(this, arguments);
|
|
4061
4278
|
}
|
|
4062
4279
|
|
|
4063
4280
|
_createClass(Brief, null, [{
|
|
@@ -4072,20 +4289,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4072
4289
|
|
|
4073
4290
|
module.exports = Brief;
|
|
4074
4291
|
}, {
|
|
4075
|
-
"../interfaces/plattar-base":
|
|
4292
|
+
"../interfaces/plattar-base": 54
|
|
4076
4293
|
}],
|
|
4077
|
-
|
|
4294
|
+
40: [function (require, module, exports) {
|
|
4078
4295
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4079
4296
|
|
|
4080
4297
|
var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
|
|
4081
4298
|
_inherits(CommentBrief, _PlattarBase3);
|
|
4082
4299
|
|
|
4083
|
-
var
|
|
4300
|
+
var _super11 = _createSuper(CommentBrief);
|
|
4084
4301
|
|
|
4085
4302
|
function CommentBrief() {
|
|
4086
4303
|
_classCallCheck(this, CommentBrief);
|
|
4087
4304
|
|
|
4088
|
-
return
|
|
4305
|
+
return _super11.apply(this, arguments);
|
|
4089
4306
|
}
|
|
4090
4307
|
|
|
4091
4308
|
_createClass(CommentBrief, null, [{
|
|
@@ -4100,20 +4317,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4100
4317
|
|
|
4101
4318
|
module.exports = CommentBrief;
|
|
4102
4319
|
}, {
|
|
4103
|
-
"../interfaces/plattar-base":
|
|
4320
|
+
"../interfaces/plattar-base": 54
|
|
4104
4321
|
}],
|
|
4105
|
-
|
|
4322
|
+
41: [function (require, module, exports) {
|
|
4106
4323
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4107
4324
|
|
|
4108
4325
|
var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
|
|
4109
4326
|
_inherits(CommentQuote, _PlattarBase4);
|
|
4110
4327
|
|
|
4111
|
-
var
|
|
4328
|
+
var _super12 = _createSuper(CommentQuote);
|
|
4112
4329
|
|
|
4113
4330
|
function CommentQuote() {
|
|
4114
4331
|
_classCallCheck(this, CommentQuote);
|
|
4115
4332
|
|
|
4116
|
-
return
|
|
4333
|
+
return _super12.apply(this, arguments);
|
|
4117
4334
|
}
|
|
4118
4335
|
|
|
4119
4336
|
_createClass(CommentQuote, null, [{
|
|
@@ -4128,20 +4345,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4128
4345
|
|
|
4129
4346
|
module.exports = CommentQuote;
|
|
4130
4347
|
}, {
|
|
4131
|
-
"../interfaces/plattar-base":
|
|
4348
|
+
"../interfaces/plattar-base": 54
|
|
4132
4349
|
}],
|
|
4133
|
-
|
|
4350
|
+
42: [function (require, module, exports) {
|
|
4134
4351
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4135
4352
|
|
|
4136
4353
|
var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
|
|
4137
4354
|
_inherits(CommentSolution, _PlattarBase5);
|
|
4138
4355
|
|
|
4139
|
-
var
|
|
4356
|
+
var _super13 = _createSuper(CommentSolution);
|
|
4140
4357
|
|
|
4141
4358
|
function CommentSolution() {
|
|
4142
4359
|
_classCallCheck(this, CommentSolution);
|
|
4143
4360
|
|
|
4144
|
-
return
|
|
4361
|
+
return _super13.apply(this, arguments);
|
|
4145
4362
|
}
|
|
4146
4363
|
|
|
4147
4364
|
_createClass(CommentSolution, null, [{
|
|
@@ -4156,20 +4373,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4156
4373
|
|
|
4157
4374
|
module.exports = CommentSolution;
|
|
4158
4375
|
}, {
|
|
4159
|
-
"../interfaces/plattar-base":
|
|
4376
|
+
"../interfaces/plattar-base": 54
|
|
4160
4377
|
}],
|
|
4161
|
-
|
|
4378
|
+
43: [function (require, module, exports) {
|
|
4162
4379
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4163
4380
|
|
|
4164
4381
|
var Folder = /*#__PURE__*/function (_PlattarBase6) {
|
|
4165
4382
|
_inherits(Folder, _PlattarBase6);
|
|
4166
4383
|
|
|
4167
|
-
var
|
|
4384
|
+
var _super14 = _createSuper(Folder);
|
|
4168
4385
|
|
|
4169
4386
|
function Folder() {
|
|
4170
4387
|
_classCallCheck(this, Folder);
|
|
4171
4388
|
|
|
4172
|
-
return
|
|
4389
|
+
return _super14.apply(this, arguments);
|
|
4173
4390
|
}
|
|
4174
4391
|
|
|
4175
4392
|
_createClass(Folder, null, [{
|
|
@@ -4184,20 +4401,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4184
4401
|
|
|
4185
4402
|
module.exports = Folder;
|
|
4186
4403
|
}, {
|
|
4187
|
-
"../interfaces/plattar-base":
|
|
4404
|
+
"../interfaces/plattar-base": 54
|
|
4188
4405
|
}],
|
|
4189
|
-
|
|
4406
|
+
44: [function (require, module, exports) {
|
|
4190
4407
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4191
4408
|
|
|
4192
4409
|
var PipelineUser = /*#__PURE__*/function (_PlattarBase7) {
|
|
4193
4410
|
_inherits(PipelineUser, _PlattarBase7);
|
|
4194
4411
|
|
|
4195
|
-
var
|
|
4412
|
+
var _super15 = _createSuper(PipelineUser);
|
|
4196
4413
|
|
|
4197
4414
|
function PipelineUser() {
|
|
4198
4415
|
_classCallCheck(this, PipelineUser);
|
|
4199
4416
|
|
|
4200
|
-
return
|
|
4417
|
+
return _super15.apply(this, arguments);
|
|
4201
4418
|
}
|
|
4202
4419
|
|
|
4203
4420
|
_createClass(PipelineUser, null, [{
|
|
@@ -4212,20 +4429,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4212
4429
|
|
|
4213
4430
|
module.exports = PipelineUser;
|
|
4214
4431
|
}, {
|
|
4215
|
-
"../interfaces/plattar-base":
|
|
4432
|
+
"../interfaces/plattar-base": 54
|
|
4216
4433
|
}],
|
|
4217
|
-
|
|
4434
|
+
45: [function (require, module, exports) {
|
|
4218
4435
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4219
4436
|
|
|
4220
4437
|
var Quote = /*#__PURE__*/function (_PlattarBase8) {
|
|
4221
4438
|
_inherits(Quote, _PlattarBase8);
|
|
4222
4439
|
|
|
4223
|
-
var
|
|
4440
|
+
var _super16 = _createSuper(Quote);
|
|
4224
4441
|
|
|
4225
4442
|
function Quote() {
|
|
4226
4443
|
_classCallCheck(this, Quote);
|
|
4227
4444
|
|
|
4228
|
-
return
|
|
4445
|
+
return _super16.apply(this, arguments);
|
|
4229
4446
|
}
|
|
4230
4447
|
|
|
4231
4448
|
_createClass(Quote, null, [{
|
|
@@ -4240,20 +4457,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4240
4457
|
|
|
4241
4458
|
module.exports = Quote;
|
|
4242
4459
|
}, {
|
|
4243
|
-
"../interfaces/plattar-base":
|
|
4460
|
+
"../interfaces/plattar-base": 54
|
|
4244
4461
|
}],
|
|
4245
|
-
|
|
4462
|
+
46: [function (require, module, exports) {
|
|
4246
4463
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4247
4464
|
|
|
4248
4465
|
var Rating = /*#__PURE__*/function (_PlattarBase9) {
|
|
4249
4466
|
_inherits(Rating, _PlattarBase9);
|
|
4250
4467
|
|
|
4251
|
-
var
|
|
4468
|
+
var _super17 = _createSuper(Rating);
|
|
4252
4469
|
|
|
4253
4470
|
function Rating() {
|
|
4254
4471
|
_classCallCheck(this, Rating);
|
|
4255
4472
|
|
|
4256
|
-
return
|
|
4473
|
+
return _super17.apply(this, arguments);
|
|
4257
4474
|
}
|
|
4258
4475
|
|
|
4259
4476
|
_createClass(Rating, null, [{
|
|
@@ -4268,20 +4485,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4268
4485
|
|
|
4269
4486
|
module.exports = Rating;
|
|
4270
4487
|
}, {
|
|
4271
|
-
"../interfaces/plattar-base":
|
|
4488
|
+
"../interfaces/plattar-base": 54
|
|
4272
4489
|
}],
|
|
4273
|
-
|
|
4490
|
+
47: [function (require, module, exports) {
|
|
4274
4491
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4275
4492
|
|
|
4276
4493
|
var Solution = /*#__PURE__*/function (_PlattarBase10) {
|
|
4277
4494
|
_inherits(Solution, _PlattarBase10);
|
|
4278
4495
|
|
|
4279
|
-
var
|
|
4496
|
+
var _super18 = _createSuper(Solution);
|
|
4280
4497
|
|
|
4281
4498
|
function Solution() {
|
|
4282
4499
|
_classCallCheck(this, Solution);
|
|
4283
4500
|
|
|
4284
|
-
return
|
|
4501
|
+
return _super18.apply(this, arguments);
|
|
4285
4502
|
}
|
|
4286
4503
|
|
|
4287
4504
|
_createClass(Solution, null, [{
|
|
@@ -4296,20 +4513,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4296
4513
|
|
|
4297
4514
|
module.exports = Solution;
|
|
4298
4515
|
}, {
|
|
4299
|
-
"../interfaces/plattar-base":
|
|
4516
|
+
"../interfaces/plattar-base": 54
|
|
4300
4517
|
}],
|
|
4301
|
-
|
|
4518
|
+
48: [function (require, module, exports) {
|
|
4302
4519
|
var FileBase = require("./file-base.js");
|
|
4303
4520
|
|
|
4304
4521
|
var FileAudio = /*#__PURE__*/function (_FileBase) {
|
|
4305
4522
|
_inherits(FileAudio, _FileBase);
|
|
4306
4523
|
|
|
4307
|
-
var
|
|
4524
|
+
var _super19 = _createSuper(FileAudio);
|
|
4308
4525
|
|
|
4309
4526
|
function FileAudio() {
|
|
4310
4527
|
_classCallCheck(this, FileAudio);
|
|
4311
4528
|
|
|
4312
|
-
return
|
|
4529
|
+
return _super19.apply(this, arguments);
|
|
4313
4530
|
}
|
|
4314
4531
|
|
|
4315
4532
|
_createClass(FileAudio, null, [{
|
|
@@ -4324,9 +4541,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4324
4541
|
|
|
4325
4542
|
module.exports = FileAudio;
|
|
4326
4543
|
}, {
|
|
4327
|
-
"./file-base.js":
|
|
4544
|
+
"./file-base.js": 49
|
|
4328
4545
|
}],
|
|
4329
|
-
|
|
4546
|
+
49: [function (require, module, exports) {
|
|
4330
4547
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4331
4548
|
|
|
4332
4549
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -4334,20 +4551,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4334
4551
|
var FileBase = /*#__PURE__*/function (_PlattarBase11) {
|
|
4335
4552
|
_inherits(FileBase, _PlattarBase11);
|
|
4336
4553
|
|
|
4337
|
-
var
|
|
4554
|
+
var _super20 = _createSuper(FileBase);
|
|
4338
4555
|
|
|
4339
4556
|
function FileBase(id, server) {
|
|
4340
|
-
var
|
|
4557
|
+
var _this32;
|
|
4341
4558
|
|
|
4342
4559
|
_classCallCheck(this, FileBase);
|
|
4343
4560
|
|
|
4344
|
-
|
|
4561
|
+
_this32 = _super20.call(this, id, server || Server["default"]());
|
|
4345
4562
|
|
|
4346
|
-
if (
|
|
4563
|
+
if (_this32.constructor === FileBase) {
|
|
4347
4564
|
throw new Error("FileBase is abstract and cannot be created");
|
|
4348
4565
|
}
|
|
4349
4566
|
|
|
4350
|
-
return
|
|
4567
|
+
return _this32;
|
|
4351
4568
|
}
|
|
4352
4569
|
|
|
4353
4570
|
_createClass(FileBase, [{
|
|
@@ -4412,25 +4629,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4412
4629
|
|
|
4413
4630
|
module.exports = FileBase;
|
|
4414
4631
|
}, {
|
|
4415
|
-
"../../server/plattar-server.js":
|
|
4416
|
-
"../interfaces/plattar-base.js":
|
|
4417
|
-
"./file-audio.js":
|
|
4418
|
-
"./file-image.js":
|
|
4419
|
-
"./file-model.js":
|
|
4420
|
-
"./file-video.js":
|
|
4632
|
+
"../../server/plattar-server.js": 37,
|
|
4633
|
+
"../interfaces/plattar-base.js": 54,
|
|
4634
|
+
"./file-audio.js": 48,
|
|
4635
|
+
"./file-image.js": 50,
|
|
4636
|
+
"./file-model.js": 51,
|
|
4637
|
+
"./file-video.js": 53
|
|
4421
4638
|
}],
|
|
4422
|
-
|
|
4639
|
+
50: [function (require, module, exports) {
|
|
4423
4640
|
var FileBase = require("./file-base.js");
|
|
4424
4641
|
|
|
4425
4642
|
var FileImage = /*#__PURE__*/function (_FileBase2) {
|
|
4426
4643
|
_inherits(FileImage, _FileBase2);
|
|
4427
4644
|
|
|
4428
|
-
var
|
|
4645
|
+
var _super21 = _createSuper(FileImage);
|
|
4429
4646
|
|
|
4430
4647
|
function FileImage() {
|
|
4431
4648
|
_classCallCheck(this, FileImage);
|
|
4432
4649
|
|
|
4433
|
-
return
|
|
4650
|
+
return _super21.apply(this, arguments);
|
|
4434
4651
|
}
|
|
4435
4652
|
|
|
4436
4653
|
_createClass(FileImage, null, [{
|
|
@@ -4445,20 +4662,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4445
4662
|
|
|
4446
4663
|
module.exports = FileImage;
|
|
4447
4664
|
}, {
|
|
4448
|
-
"./file-base.js":
|
|
4665
|
+
"./file-base.js": 49
|
|
4449
4666
|
}],
|
|
4450
|
-
|
|
4667
|
+
51: [function (require, module, exports) {
|
|
4451
4668
|
var FileBase = require("./file-base.js");
|
|
4452
4669
|
|
|
4453
4670
|
var FileModel = /*#__PURE__*/function (_FileBase3) {
|
|
4454
4671
|
_inherits(FileModel, _FileBase3);
|
|
4455
4672
|
|
|
4456
|
-
var
|
|
4673
|
+
var _super22 = _createSuper(FileModel);
|
|
4457
4674
|
|
|
4458
4675
|
function FileModel() {
|
|
4459
4676
|
_classCallCheck(this, FileModel);
|
|
4460
4677
|
|
|
4461
|
-
return
|
|
4678
|
+
return _super22.apply(this, arguments);
|
|
4462
4679
|
}
|
|
4463
4680
|
|
|
4464
4681
|
_createClass(FileModel, null, [{
|
|
@@ -4473,20 +4690,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4473
4690
|
|
|
4474
4691
|
module.exports = FileModel;
|
|
4475
4692
|
}, {
|
|
4476
|
-
"./file-base.js":
|
|
4693
|
+
"./file-base.js": 49
|
|
4477
4694
|
}],
|
|
4478
|
-
|
|
4695
|
+
52: [function (require, module, exports) {
|
|
4479
4696
|
var FileBase = require("./file-base.js");
|
|
4480
4697
|
|
|
4481
4698
|
var FileScript = /*#__PURE__*/function (_FileBase4) {
|
|
4482
4699
|
_inherits(FileScript, _FileBase4);
|
|
4483
4700
|
|
|
4484
|
-
var
|
|
4701
|
+
var _super23 = _createSuper(FileScript);
|
|
4485
4702
|
|
|
4486
4703
|
function FileScript() {
|
|
4487
4704
|
_classCallCheck(this, FileScript);
|
|
4488
4705
|
|
|
4489
|
-
return
|
|
4706
|
+
return _super23.apply(this, arguments);
|
|
4490
4707
|
}
|
|
4491
4708
|
|
|
4492
4709
|
_createClass(FileScript, null, [{
|
|
@@ -4501,20 +4718,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4501
4718
|
|
|
4502
4719
|
module.exports = FileScript;
|
|
4503
4720
|
}, {
|
|
4504
|
-
"./file-base.js":
|
|
4721
|
+
"./file-base.js": 49
|
|
4505
4722
|
}],
|
|
4506
|
-
|
|
4723
|
+
53: [function (require, module, exports) {
|
|
4507
4724
|
var FileBase = require("./file-base.js");
|
|
4508
4725
|
|
|
4509
4726
|
var FileVideo = /*#__PURE__*/function (_FileBase5) {
|
|
4510
4727
|
_inherits(FileVideo, _FileBase5);
|
|
4511
4728
|
|
|
4512
|
-
var
|
|
4729
|
+
var _super24 = _createSuper(FileVideo);
|
|
4513
4730
|
|
|
4514
4731
|
function FileVideo() {
|
|
4515
4732
|
_classCallCheck(this, FileVideo);
|
|
4516
4733
|
|
|
4517
|
-
return
|
|
4734
|
+
return _super24.apply(this, arguments);
|
|
4518
4735
|
}
|
|
4519
4736
|
|
|
4520
4737
|
_createClass(FileVideo, null, [{
|
|
@@ -4529,9 +4746,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4529
4746
|
|
|
4530
4747
|
module.exports = FileVideo;
|
|
4531
4748
|
}, {
|
|
4532
|
-
"./file-base.js":
|
|
4749
|
+
"./file-base.js": 49
|
|
4533
4750
|
}],
|
|
4534
|
-
|
|
4751
|
+
54: [function (require, module, exports) {
|
|
4535
4752
|
var PlattarObject = require("./plattar-object.js");
|
|
4536
4753
|
|
|
4537
4754
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -4539,20 +4756,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4539
4756
|
var PlattarBase = /*#__PURE__*/function (_PlattarObject) {
|
|
4540
4757
|
_inherits(PlattarBase, _PlattarObject);
|
|
4541
4758
|
|
|
4542
|
-
var
|
|
4759
|
+
var _super25 = _createSuper(PlattarBase);
|
|
4543
4760
|
|
|
4544
4761
|
function PlattarBase(id, server) {
|
|
4545
|
-
var
|
|
4762
|
+
var _this33;
|
|
4546
4763
|
|
|
4547
4764
|
_classCallCheck(this, PlattarBase);
|
|
4548
4765
|
|
|
4549
|
-
|
|
4766
|
+
_this33 = _super25.call(this, id, server || Server["default"]());
|
|
4550
4767
|
|
|
4551
|
-
if (
|
|
4768
|
+
if (_this33.constructor === PlattarBase) {
|
|
4552
4769
|
throw new Error("PlattarBase is abstract and cannot be created");
|
|
4553
4770
|
}
|
|
4554
4771
|
|
|
4555
|
-
return
|
|
4772
|
+
return _this33;
|
|
4556
4773
|
}
|
|
4557
4774
|
|
|
4558
4775
|
return PlattarBase;
|
|
@@ -4560,10 +4777,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4560
4777
|
|
|
4561
4778
|
module.exports = PlattarBase;
|
|
4562
4779
|
}, {
|
|
4563
|
-
"../../server/plattar-server.js":
|
|
4564
|
-
"./plattar-object.js":
|
|
4780
|
+
"../../server/plattar-server.js": 37,
|
|
4781
|
+
"./plattar-object.js": 56
|
|
4565
4782
|
}],
|
|
4566
|
-
|
|
4783
|
+
55: [function (require, module, exports) {
|
|
4567
4784
|
/**
|
|
4568
4785
|
* Handles the list of relationships for the provided object
|
|
4569
4786
|
*/
|
|
@@ -4624,7 +4841,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4624
4841
|
}, {
|
|
4625
4842
|
key: "filter",
|
|
4626
4843
|
value: function filter(obj, id) {
|
|
4627
|
-
var
|
|
4844
|
+
var _this34 = this;
|
|
4628
4845
|
|
|
4629
4846
|
if (!obj) {
|
|
4630
4847
|
return [];
|
|
@@ -4642,7 +4859,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4642
4859
|
if (Array.isArray(type)) {
|
|
4643
4860
|
var compiledList = [];
|
|
4644
4861
|
type.forEach(function (inObject) {
|
|
4645
|
-
var retArray =
|
|
4862
|
+
var retArray = _this34.filter(inObject, id);
|
|
4646
4863
|
|
|
4647
4864
|
if (retArray.length > 0) {
|
|
4648
4865
|
compiledList = compiledList.concat(retArray);
|
|
@@ -4699,9 +4916,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4699
4916
|
|
|
4700
4917
|
module.exports = PlattarObjectRelations;
|
|
4701
4918
|
}, {
|
|
4702
|
-
"../../util/plattar-util.js":
|
|
4919
|
+
"../../util/plattar-util.js": 97
|
|
4703
4920
|
}],
|
|
4704
|
-
|
|
4921
|
+
56: [function (require, module, exports) {
|
|
4705
4922
|
var PlattarQuery = require("../../server/plattar-query.js");
|
|
4706
4923
|
|
|
4707
4924
|
var PlattarObjectRelations = require("./plattar-object-relations.js");
|
|
@@ -4845,7 +5062,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4845
5062
|
}, {
|
|
4846
5063
|
key: "include",
|
|
4847
5064
|
value: function include() {
|
|
4848
|
-
var
|
|
5065
|
+
var _this35 = this;
|
|
4849
5066
|
|
|
4850
5067
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
4851
5068
|
args[_key6] = arguments[_key6];
|
|
@@ -4861,15 +5078,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4861
5078
|
if (Array.isArray(obj)) {
|
|
4862
5079
|
obj.forEach(function (strObject) {
|
|
4863
5080
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
4864
|
-
includes.push("".concat(
|
|
5081
|
+
includes.push("".concat(_this35.type(), ".").concat(strObject));
|
|
4865
5082
|
} else {
|
|
4866
|
-
throw new Error("PlattarObject." +
|
|
5083
|
+
throw new Error("PlattarObject." + _this35.type() + ".include(...args) - argument of Array must only include Strings");
|
|
4867
5084
|
}
|
|
4868
5085
|
});
|
|
4869
5086
|
} else if (obj.prototype instanceof PlattarObject) {
|
|
4870
|
-
includes.push("".concat(
|
|
5087
|
+
includes.push("".concat(_this35.type(), ".").concat(obj.type()));
|
|
4871
5088
|
} else {
|
|
4872
|
-
throw new Error("PlattarObject." +
|
|
5089
|
+
throw new Error("PlattarObject." + _this35.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
4873
5090
|
}
|
|
4874
5091
|
});
|
|
4875
5092
|
return includes;
|
|
@@ -4881,21 +5098,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4881
5098
|
|
|
4882
5099
|
module.exports = PlattarObject;
|
|
4883
5100
|
}, {
|
|
4884
|
-
"../../server/plattar-query.js":
|
|
4885
|
-
"./plattar-object-relations.js":
|
|
5101
|
+
"../../server/plattar-query.js": 36,
|
|
5102
|
+
"./plattar-object-relations.js": 55
|
|
4886
5103
|
}],
|
|
4887
|
-
|
|
5104
|
+
57: [function (require, module, exports) {
|
|
4888
5105
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4889
5106
|
|
|
4890
5107
|
var ApplicationBuild = /*#__PURE__*/function (_PlattarBase12) {
|
|
4891
5108
|
_inherits(ApplicationBuild, _PlattarBase12);
|
|
4892
5109
|
|
|
4893
|
-
var
|
|
5110
|
+
var _super26 = _createSuper(ApplicationBuild);
|
|
4894
5111
|
|
|
4895
5112
|
function ApplicationBuild() {
|
|
4896
5113
|
_classCallCheck(this, ApplicationBuild);
|
|
4897
5114
|
|
|
4898
|
-
return
|
|
5115
|
+
return _super26.apply(this, arguments);
|
|
4899
5116
|
}
|
|
4900
5117
|
|
|
4901
5118
|
_createClass(ApplicationBuild, null, [{
|
|
@@ -4910,20 +5127,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4910
5127
|
|
|
4911
5128
|
module.exports = ApplicationBuild;
|
|
4912
5129
|
}, {
|
|
4913
|
-
"../interfaces/plattar-base.js":
|
|
5130
|
+
"../interfaces/plattar-base.js": 54
|
|
4914
5131
|
}],
|
|
4915
|
-
|
|
5132
|
+
58: [function (require, module, exports) {
|
|
4916
5133
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4917
5134
|
|
|
4918
5135
|
var AssetLibrary = /*#__PURE__*/function (_PlattarBase13) {
|
|
4919
5136
|
_inherits(AssetLibrary, _PlattarBase13);
|
|
4920
5137
|
|
|
4921
|
-
var
|
|
5138
|
+
var _super27 = _createSuper(AssetLibrary);
|
|
4922
5139
|
|
|
4923
5140
|
function AssetLibrary() {
|
|
4924
5141
|
_classCallCheck(this, AssetLibrary);
|
|
4925
5142
|
|
|
4926
|
-
return
|
|
5143
|
+
return _super27.apply(this, arguments);
|
|
4927
5144
|
}
|
|
4928
5145
|
|
|
4929
5146
|
_createClass(AssetLibrary, null, [{
|
|
@@ -4938,20 +5155,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4938
5155
|
|
|
4939
5156
|
module.exports = AssetLibrary;
|
|
4940
5157
|
}, {
|
|
4941
|
-
"../interfaces/plattar-base.js":
|
|
5158
|
+
"../interfaces/plattar-base.js": 54
|
|
4942
5159
|
}],
|
|
4943
|
-
|
|
5160
|
+
59: [function (require, module, exports) {
|
|
4944
5161
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4945
5162
|
|
|
4946
5163
|
var AsyncJob = /*#__PURE__*/function (_PlattarBase14) {
|
|
4947
5164
|
_inherits(AsyncJob, _PlattarBase14);
|
|
4948
5165
|
|
|
4949
|
-
var
|
|
5166
|
+
var _super28 = _createSuper(AsyncJob);
|
|
4950
5167
|
|
|
4951
5168
|
function AsyncJob() {
|
|
4952
5169
|
_classCallCheck(this, AsyncJob);
|
|
4953
5170
|
|
|
4954
|
-
return
|
|
5171
|
+
return _super28.apply(this, arguments);
|
|
4955
5172
|
}
|
|
4956
5173
|
|
|
4957
5174
|
_createClass(AsyncJob, [{
|
|
@@ -4971,20 +5188,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4971
5188
|
|
|
4972
5189
|
module.exports = AsyncJob;
|
|
4973
5190
|
}, {
|
|
4974
|
-
"../interfaces/plattar-base.js":
|
|
5191
|
+
"../interfaces/plattar-base.js": 54
|
|
4975
5192
|
}],
|
|
4976
|
-
|
|
5193
|
+
60: [function (require, module, exports) {
|
|
4977
5194
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4978
5195
|
|
|
4979
5196
|
var ScriptEvent = /*#__PURE__*/function (_PlattarBase15) {
|
|
4980
5197
|
_inherits(ScriptEvent, _PlattarBase15);
|
|
4981
5198
|
|
|
4982
|
-
var
|
|
5199
|
+
var _super29 = _createSuper(ScriptEvent);
|
|
4983
5200
|
|
|
4984
5201
|
function ScriptEvent() {
|
|
4985
5202
|
_classCallCheck(this, ScriptEvent);
|
|
4986
5203
|
|
|
4987
|
-
return
|
|
5204
|
+
return _super29.apply(this, arguments);
|
|
4988
5205
|
}
|
|
4989
5206
|
|
|
4990
5207
|
_createClass(ScriptEvent, null, [{
|
|
@@ -4999,20 +5216,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4999
5216
|
|
|
5000
5217
|
module.exports = ScriptEvent;
|
|
5001
5218
|
}, {
|
|
5002
|
-
"../interfaces/plattar-base.js":
|
|
5219
|
+
"../interfaces/plattar-base.js": 54
|
|
5003
5220
|
}],
|
|
5004
|
-
|
|
5221
|
+
61: [function (require, module, exports) {
|
|
5005
5222
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5006
5223
|
|
|
5007
5224
|
var Tag = /*#__PURE__*/function (_PlattarBase16) {
|
|
5008
5225
|
_inherits(Tag, _PlattarBase16);
|
|
5009
5226
|
|
|
5010
|
-
var
|
|
5227
|
+
var _super30 = _createSuper(Tag);
|
|
5011
5228
|
|
|
5012
5229
|
function Tag() {
|
|
5013
5230
|
_classCallCheck(this, Tag);
|
|
5014
5231
|
|
|
5015
|
-
return
|
|
5232
|
+
return _super30.apply(this, arguments);
|
|
5016
5233
|
}
|
|
5017
5234
|
|
|
5018
5235
|
_createClass(Tag, null, [{
|
|
@@ -5027,9 +5244,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5027
5244
|
|
|
5028
5245
|
module.exports = Tag;
|
|
5029
5246
|
}, {
|
|
5030
|
-
"../interfaces/plattar-base.js":
|
|
5247
|
+
"../interfaces/plattar-base.js": 54
|
|
5031
5248
|
}],
|
|
5032
|
-
|
|
5249
|
+
62: [function (require, module, exports) {
|
|
5033
5250
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5034
5251
|
|
|
5035
5252
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5037,20 +5254,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5037
5254
|
var CardBase = /*#__PURE__*/function (_PlattarBase17) {
|
|
5038
5255
|
_inherits(CardBase, _PlattarBase17);
|
|
5039
5256
|
|
|
5040
|
-
var
|
|
5257
|
+
var _super31 = _createSuper(CardBase);
|
|
5041
5258
|
|
|
5042
5259
|
function CardBase(id, server) {
|
|
5043
|
-
var
|
|
5260
|
+
var _this36;
|
|
5044
5261
|
|
|
5045
5262
|
_classCallCheck(this, CardBase);
|
|
5046
5263
|
|
|
5047
|
-
|
|
5264
|
+
_this36 = _super31.call(this, id, server || Server["default"]());
|
|
5048
5265
|
|
|
5049
|
-
if (
|
|
5266
|
+
if (_this36.constructor === CardBase) {
|
|
5050
5267
|
throw new Error("CardBase is abstract and cannot be created");
|
|
5051
5268
|
}
|
|
5052
5269
|
|
|
5053
|
-
return
|
|
5270
|
+
return _this36;
|
|
5054
5271
|
}
|
|
5055
5272
|
|
|
5056
5273
|
_createClass(CardBase, null, [{
|
|
@@ -5087,32 +5304,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5087
5304
|
|
|
5088
5305
|
module.exports = CardBase;
|
|
5089
5306
|
}, {
|
|
5090
|
-
"../../server/plattar-server.js":
|
|
5091
|
-
"../interfaces/plattar-base.js":
|
|
5092
|
-
"./card-button.js":
|
|
5093
|
-
"./card-html.js":
|
|
5094
|
-
"./card-iframe.js":
|
|
5095
|
-
"./card-image.js":
|
|
5096
|
-
"./card-map.js":
|
|
5097
|
-
"./card-paragraph.js":
|
|
5098
|
-
"./card-row.js":
|
|
5099
|
-
"./card-slider.js":
|
|
5100
|
-
"./card-title.js":
|
|
5101
|
-
"./card-video.js":
|
|
5102
|
-
"./card-youtube.js":
|
|
5307
|
+
"../../server/plattar-server.js": 37,
|
|
5308
|
+
"../interfaces/plattar-base.js": 54,
|
|
5309
|
+
"./card-button.js": 63,
|
|
5310
|
+
"./card-html.js": 64,
|
|
5311
|
+
"./card-iframe.js": 65,
|
|
5312
|
+
"./card-image.js": 66,
|
|
5313
|
+
"./card-map.js": 67,
|
|
5314
|
+
"./card-paragraph.js": 68,
|
|
5315
|
+
"./card-row.js": 69,
|
|
5316
|
+
"./card-slider.js": 70,
|
|
5317
|
+
"./card-title.js": 71,
|
|
5318
|
+
"./card-video.js": 72,
|
|
5319
|
+
"./card-youtube.js": 73
|
|
5103
5320
|
}],
|
|
5104
|
-
|
|
5321
|
+
63: [function (require, module, exports) {
|
|
5105
5322
|
var CardBase = require("./card-base.js");
|
|
5106
5323
|
|
|
5107
5324
|
var CardButton = /*#__PURE__*/function (_CardBase) {
|
|
5108
5325
|
_inherits(CardButton, _CardBase);
|
|
5109
5326
|
|
|
5110
|
-
var
|
|
5327
|
+
var _super32 = _createSuper(CardButton);
|
|
5111
5328
|
|
|
5112
5329
|
function CardButton() {
|
|
5113
5330
|
_classCallCheck(this, CardButton);
|
|
5114
5331
|
|
|
5115
|
-
return
|
|
5332
|
+
return _super32.apply(this, arguments);
|
|
5116
5333
|
}
|
|
5117
5334
|
|
|
5118
5335
|
_createClass(CardButton, null, [{
|
|
@@ -5127,20 +5344,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5127
5344
|
|
|
5128
5345
|
module.exports = CardButton;
|
|
5129
5346
|
}, {
|
|
5130
|
-
"./card-base.js":
|
|
5347
|
+
"./card-base.js": 62
|
|
5131
5348
|
}],
|
|
5132
|
-
|
|
5349
|
+
64: [function (require, module, exports) {
|
|
5133
5350
|
var CardBase = require("./card-base.js");
|
|
5134
5351
|
|
|
5135
5352
|
var CardHTML = /*#__PURE__*/function (_CardBase2) {
|
|
5136
5353
|
_inherits(CardHTML, _CardBase2);
|
|
5137
5354
|
|
|
5138
|
-
var
|
|
5355
|
+
var _super33 = _createSuper(CardHTML);
|
|
5139
5356
|
|
|
5140
5357
|
function CardHTML() {
|
|
5141
5358
|
_classCallCheck(this, CardHTML);
|
|
5142
5359
|
|
|
5143
|
-
return
|
|
5360
|
+
return _super33.apply(this, arguments);
|
|
5144
5361
|
}
|
|
5145
5362
|
|
|
5146
5363
|
_createClass(CardHTML, null, [{
|
|
@@ -5155,20 +5372,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5155
5372
|
|
|
5156
5373
|
module.exports = CardHTML;
|
|
5157
5374
|
}, {
|
|
5158
|
-
"./card-base.js":
|
|
5375
|
+
"./card-base.js": 62
|
|
5159
5376
|
}],
|
|
5160
|
-
|
|
5377
|
+
65: [function (require, module, exports) {
|
|
5161
5378
|
var CardBase = require("./card-base.js");
|
|
5162
5379
|
|
|
5163
5380
|
var CardIFrame = /*#__PURE__*/function (_CardBase3) {
|
|
5164
5381
|
_inherits(CardIFrame, _CardBase3);
|
|
5165
5382
|
|
|
5166
|
-
var
|
|
5383
|
+
var _super34 = _createSuper(CardIFrame);
|
|
5167
5384
|
|
|
5168
5385
|
function CardIFrame() {
|
|
5169
5386
|
_classCallCheck(this, CardIFrame);
|
|
5170
5387
|
|
|
5171
|
-
return
|
|
5388
|
+
return _super34.apply(this, arguments);
|
|
5172
5389
|
}
|
|
5173
5390
|
|
|
5174
5391
|
_createClass(CardIFrame, null, [{
|
|
@@ -5183,20 +5400,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5183
5400
|
|
|
5184
5401
|
module.exports = CardIFrame;
|
|
5185
5402
|
}, {
|
|
5186
|
-
"./card-base.js":
|
|
5403
|
+
"./card-base.js": 62
|
|
5187
5404
|
}],
|
|
5188
|
-
|
|
5405
|
+
66: [function (require, module, exports) {
|
|
5189
5406
|
var CardBase = require("./card-base.js");
|
|
5190
5407
|
|
|
5191
5408
|
var CardImage = /*#__PURE__*/function (_CardBase4) {
|
|
5192
5409
|
_inherits(CardImage, _CardBase4);
|
|
5193
5410
|
|
|
5194
|
-
var
|
|
5411
|
+
var _super35 = _createSuper(CardImage);
|
|
5195
5412
|
|
|
5196
5413
|
function CardImage() {
|
|
5197
5414
|
_classCallCheck(this, CardImage);
|
|
5198
5415
|
|
|
5199
|
-
return
|
|
5416
|
+
return _super35.apply(this, arguments);
|
|
5200
5417
|
}
|
|
5201
5418
|
|
|
5202
5419
|
_createClass(CardImage, null, [{
|
|
@@ -5211,20 +5428,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5211
5428
|
|
|
5212
5429
|
module.exports = CardImage;
|
|
5213
5430
|
}, {
|
|
5214
|
-
"./card-base.js":
|
|
5431
|
+
"./card-base.js": 62
|
|
5215
5432
|
}],
|
|
5216
|
-
|
|
5433
|
+
67: [function (require, module, exports) {
|
|
5217
5434
|
var CardBase = require("./card-base.js");
|
|
5218
5435
|
|
|
5219
5436
|
var CardMap = /*#__PURE__*/function (_CardBase5) {
|
|
5220
5437
|
_inherits(CardMap, _CardBase5);
|
|
5221
5438
|
|
|
5222
|
-
var
|
|
5439
|
+
var _super36 = _createSuper(CardMap);
|
|
5223
5440
|
|
|
5224
5441
|
function CardMap() {
|
|
5225
5442
|
_classCallCheck(this, CardMap);
|
|
5226
5443
|
|
|
5227
|
-
return
|
|
5444
|
+
return _super36.apply(this, arguments);
|
|
5228
5445
|
}
|
|
5229
5446
|
|
|
5230
5447
|
_createClass(CardMap, null, [{
|
|
@@ -5239,20 +5456,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5239
5456
|
|
|
5240
5457
|
module.exports = CardMap;
|
|
5241
5458
|
}, {
|
|
5242
|
-
"./card-base.js":
|
|
5459
|
+
"./card-base.js": 62
|
|
5243
5460
|
}],
|
|
5244
|
-
|
|
5461
|
+
68: [function (require, module, exports) {
|
|
5245
5462
|
var CardBase = require("./card-base.js");
|
|
5246
5463
|
|
|
5247
5464
|
var CardParagraph = /*#__PURE__*/function (_CardBase6) {
|
|
5248
5465
|
_inherits(CardParagraph, _CardBase6);
|
|
5249
5466
|
|
|
5250
|
-
var
|
|
5467
|
+
var _super37 = _createSuper(CardParagraph);
|
|
5251
5468
|
|
|
5252
5469
|
function CardParagraph() {
|
|
5253
5470
|
_classCallCheck(this, CardParagraph);
|
|
5254
5471
|
|
|
5255
|
-
return
|
|
5472
|
+
return _super37.apply(this, arguments);
|
|
5256
5473
|
}
|
|
5257
5474
|
|
|
5258
5475
|
_createClass(CardParagraph, null, [{
|
|
@@ -5267,20 +5484,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5267
5484
|
|
|
5268
5485
|
module.exports = CardParagraph;
|
|
5269
5486
|
}, {
|
|
5270
|
-
"./card-base.js":
|
|
5487
|
+
"./card-base.js": 62
|
|
5271
5488
|
}],
|
|
5272
|
-
|
|
5489
|
+
69: [function (require, module, exports) {
|
|
5273
5490
|
var CardBase = require("./card-base.js");
|
|
5274
5491
|
|
|
5275
5492
|
var CardRow = /*#__PURE__*/function (_CardBase7) {
|
|
5276
5493
|
_inherits(CardRow, _CardBase7);
|
|
5277
5494
|
|
|
5278
|
-
var
|
|
5495
|
+
var _super38 = _createSuper(CardRow);
|
|
5279
5496
|
|
|
5280
5497
|
function CardRow() {
|
|
5281
5498
|
_classCallCheck(this, CardRow);
|
|
5282
5499
|
|
|
5283
|
-
return
|
|
5500
|
+
return _super38.apply(this, arguments);
|
|
5284
5501
|
}
|
|
5285
5502
|
|
|
5286
5503
|
_createClass(CardRow, null, [{
|
|
@@ -5295,20 +5512,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5295
5512
|
|
|
5296
5513
|
module.exports = CardRow;
|
|
5297
5514
|
}, {
|
|
5298
|
-
"./card-base.js":
|
|
5515
|
+
"./card-base.js": 62
|
|
5299
5516
|
}],
|
|
5300
|
-
|
|
5517
|
+
70: [function (require, module, exports) {
|
|
5301
5518
|
var CardBase = require("./card-base.js");
|
|
5302
5519
|
|
|
5303
5520
|
var CardSlider = /*#__PURE__*/function (_CardBase8) {
|
|
5304
5521
|
_inherits(CardSlider, _CardBase8);
|
|
5305
5522
|
|
|
5306
|
-
var
|
|
5523
|
+
var _super39 = _createSuper(CardSlider);
|
|
5307
5524
|
|
|
5308
5525
|
function CardSlider() {
|
|
5309
5526
|
_classCallCheck(this, CardSlider);
|
|
5310
5527
|
|
|
5311
|
-
return
|
|
5528
|
+
return _super39.apply(this, arguments);
|
|
5312
5529
|
}
|
|
5313
5530
|
|
|
5314
5531
|
_createClass(CardSlider, null, [{
|
|
@@ -5323,20 +5540,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5323
5540
|
|
|
5324
5541
|
module.exports = CardSlider;
|
|
5325
5542
|
}, {
|
|
5326
|
-
"./card-base.js":
|
|
5543
|
+
"./card-base.js": 62
|
|
5327
5544
|
}],
|
|
5328
|
-
|
|
5545
|
+
71: [function (require, module, exports) {
|
|
5329
5546
|
var CardBase = require("./card-base.js");
|
|
5330
5547
|
|
|
5331
5548
|
var CardTitle = /*#__PURE__*/function (_CardBase9) {
|
|
5332
5549
|
_inherits(CardTitle, _CardBase9);
|
|
5333
5550
|
|
|
5334
|
-
var
|
|
5551
|
+
var _super40 = _createSuper(CardTitle);
|
|
5335
5552
|
|
|
5336
5553
|
function CardTitle() {
|
|
5337
5554
|
_classCallCheck(this, CardTitle);
|
|
5338
5555
|
|
|
5339
|
-
return
|
|
5556
|
+
return _super40.apply(this, arguments);
|
|
5340
5557
|
}
|
|
5341
5558
|
|
|
5342
5559
|
_createClass(CardTitle, null, [{
|
|
@@ -5351,20 +5568,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5351
5568
|
|
|
5352
5569
|
module.exports = CardTitle;
|
|
5353
5570
|
}, {
|
|
5354
|
-
"./card-base.js":
|
|
5571
|
+
"./card-base.js": 62
|
|
5355
5572
|
}],
|
|
5356
|
-
|
|
5573
|
+
72: [function (require, module, exports) {
|
|
5357
5574
|
var CardBase = require("./card-base.js");
|
|
5358
5575
|
|
|
5359
5576
|
var CardVideo = /*#__PURE__*/function (_CardBase10) {
|
|
5360
5577
|
_inherits(CardVideo, _CardBase10);
|
|
5361
5578
|
|
|
5362
|
-
var
|
|
5579
|
+
var _super41 = _createSuper(CardVideo);
|
|
5363
5580
|
|
|
5364
5581
|
function CardVideo() {
|
|
5365
5582
|
_classCallCheck(this, CardVideo);
|
|
5366
5583
|
|
|
5367
|
-
return
|
|
5584
|
+
return _super41.apply(this, arguments);
|
|
5368
5585
|
}
|
|
5369
5586
|
|
|
5370
5587
|
_createClass(CardVideo, null, [{
|
|
@@ -5379,20 +5596,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5379
5596
|
|
|
5380
5597
|
module.exports = CardVideo;
|
|
5381
5598
|
}, {
|
|
5382
|
-
"./card-base.js":
|
|
5599
|
+
"./card-base.js": 62
|
|
5383
5600
|
}],
|
|
5384
|
-
|
|
5601
|
+
73: [function (require, module, exports) {
|
|
5385
5602
|
var CardBase = require("./card-base.js");
|
|
5386
5603
|
|
|
5387
5604
|
var CardYoutube = /*#__PURE__*/function (_CardBase11) {
|
|
5388
5605
|
_inherits(CardYoutube, _CardBase11);
|
|
5389
5606
|
|
|
5390
|
-
var
|
|
5607
|
+
var _super42 = _createSuper(CardYoutube);
|
|
5391
5608
|
|
|
5392
5609
|
function CardYoutube() {
|
|
5393
5610
|
_classCallCheck(this, CardYoutube);
|
|
5394
5611
|
|
|
5395
|
-
return
|
|
5612
|
+
return _super42.apply(this, arguments);
|
|
5396
5613
|
}
|
|
5397
5614
|
|
|
5398
5615
|
_createClass(CardYoutube, null, [{
|
|
@@ -5407,20 +5624,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5407
5624
|
|
|
5408
5625
|
module.exports = CardYoutube;
|
|
5409
5626
|
}, {
|
|
5410
|
-
"./card-base.js":
|
|
5627
|
+
"./card-base.js": 62
|
|
5411
5628
|
}],
|
|
5412
|
-
|
|
5629
|
+
74: [function (require, module, exports) {
|
|
5413
5630
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5414
5631
|
|
|
5415
5632
|
var Page = /*#__PURE__*/function (_PlattarBase18) {
|
|
5416
5633
|
_inherits(Page, _PlattarBase18);
|
|
5417
5634
|
|
|
5418
|
-
var
|
|
5635
|
+
var _super43 = _createSuper(Page);
|
|
5419
5636
|
|
|
5420
5637
|
function Page() {
|
|
5421
5638
|
_classCallCheck(this, Page);
|
|
5422
5639
|
|
|
5423
|
-
return
|
|
5640
|
+
return _super43.apply(this, arguments);
|
|
5424
5641
|
}
|
|
5425
5642
|
|
|
5426
5643
|
_createClass(Page, null, [{
|
|
@@ -5435,20 +5652,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5435
5652
|
|
|
5436
5653
|
module.exports = Page;
|
|
5437
5654
|
}, {
|
|
5438
|
-
"../interfaces/plattar-base.js":
|
|
5655
|
+
"../interfaces/plattar-base.js": 54
|
|
5439
5656
|
}],
|
|
5440
|
-
|
|
5657
|
+
75: [function (require, module, exports) {
|
|
5441
5658
|
var ProductBase = require("./product-base.js");
|
|
5442
5659
|
|
|
5443
5660
|
var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
|
|
5444
5661
|
_inherits(ProductAnnotation, _ProductBase);
|
|
5445
5662
|
|
|
5446
|
-
var
|
|
5663
|
+
var _super44 = _createSuper(ProductAnnotation);
|
|
5447
5664
|
|
|
5448
5665
|
function ProductAnnotation() {
|
|
5449
5666
|
_classCallCheck(this, ProductAnnotation);
|
|
5450
5667
|
|
|
5451
|
-
return
|
|
5668
|
+
return _super44.apply(this, arguments);
|
|
5452
5669
|
}
|
|
5453
5670
|
|
|
5454
5671
|
_createClass(ProductAnnotation, null, [{
|
|
@@ -5463,9 +5680,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5463
5680
|
|
|
5464
5681
|
module.exports = ProductAnnotation;
|
|
5465
5682
|
}, {
|
|
5466
|
-
"./product-base.js":
|
|
5683
|
+
"./product-base.js": 76
|
|
5467
5684
|
}],
|
|
5468
|
-
|
|
5685
|
+
76: [function (require, module, exports) {
|
|
5469
5686
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5470
5687
|
|
|
5471
5688
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5473,20 +5690,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5473
5690
|
var ProductBase = /*#__PURE__*/function (_PlattarBase19) {
|
|
5474
5691
|
_inherits(ProductBase, _PlattarBase19);
|
|
5475
5692
|
|
|
5476
|
-
var
|
|
5693
|
+
var _super45 = _createSuper(ProductBase);
|
|
5477
5694
|
|
|
5478
5695
|
function ProductBase(id, server) {
|
|
5479
|
-
var
|
|
5696
|
+
var _this37;
|
|
5480
5697
|
|
|
5481
5698
|
_classCallCheck(this, ProductBase);
|
|
5482
5699
|
|
|
5483
|
-
|
|
5700
|
+
_this37 = _super45.call(this, id, server || Server["default"]());
|
|
5484
5701
|
|
|
5485
|
-
if (
|
|
5702
|
+
if (_this37.constructor === ProductBase) {
|
|
5486
5703
|
throw new Error("ProductBase is abstract and cannot be created");
|
|
5487
5704
|
}
|
|
5488
5705
|
|
|
5489
|
-
return
|
|
5706
|
+
return _this37;
|
|
5490
5707
|
}
|
|
5491
5708
|
|
|
5492
5709
|
_createClass(ProductBase, null, [{
|
|
@@ -5505,23 +5722,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5505
5722
|
|
|
5506
5723
|
module.exports = ProductBase;
|
|
5507
5724
|
}, {
|
|
5508
|
-
"../../server/plattar-server.js":
|
|
5509
|
-
"../interfaces/plattar-base.js":
|
|
5510
|
-
"./product-annotation.js":
|
|
5511
|
-
"./product-variation.js":
|
|
5725
|
+
"../../server/plattar-server.js": 37,
|
|
5726
|
+
"../interfaces/plattar-base.js": 54,
|
|
5727
|
+
"./product-annotation.js": 75,
|
|
5728
|
+
"./product-variation.js": 77
|
|
5512
5729
|
}],
|
|
5513
|
-
|
|
5730
|
+
77: [function (require, module, exports) {
|
|
5514
5731
|
var ProductBase = require("./product-base.js");
|
|
5515
5732
|
|
|
5516
5733
|
var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
|
|
5517
5734
|
_inherits(ProductVariation, _ProductBase2);
|
|
5518
5735
|
|
|
5519
|
-
var
|
|
5736
|
+
var _super46 = _createSuper(ProductVariation);
|
|
5520
5737
|
|
|
5521
5738
|
function ProductVariation() {
|
|
5522
5739
|
_classCallCheck(this, ProductVariation);
|
|
5523
5740
|
|
|
5524
|
-
return
|
|
5741
|
+
return _super46.apply(this, arguments);
|
|
5525
5742
|
}
|
|
5526
5743
|
|
|
5527
5744
|
_createClass(ProductVariation, null, [{
|
|
@@ -5536,20 +5753,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5536
5753
|
|
|
5537
5754
|
module.exports = ProductVariation;
|
|
5538
5755
|
}, {
|
|
5539
|
-
"./product-base.js":
|
|
5756
|
+
"./product-base.js": 76
|
|
5540
5757
|
}],
|
|
5541
|
-
|
|
5758
|
+
78: [function (require, module, exports) {
|
|
5542
5759
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5543
5760
|
|
|
5544
5761
|
var Product = /*#__PURE__*/function (_PlattarBase20) {
|
|
5545
5762
|
_inherits(Product, _PlattarBase20);
|
|
5546
5763
|
|
|
5547
|
-
var
|
|
5764
|
+
var _super47 = _createSuper(Product);
|
|
5548
5765
|
|
|
5549
5766
|
function Product() {
|
|
5550
5767
|
_classCallCheck(this, Product);
|
|
5551
5768
|
|
|
5552
|
-
return
|
|
5769
|
+
return _super47.apply(this, arguments);
|
|
5553
5770
|
}
|
|
5554
5771
|
|
|
5555
5772
|
_createClass(Product, null, [{
|
|
@@ -5564,20 +5781,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5564
5781
|
|
|
5565
5782
|
module.exports = Product;
|
|
5566
5783
|
}, {
|
|
5567
|
-
"../interfaces/plattar-base.js":
|
|
5784
|
+
"../interfaces/plattar-base.js": 54
|
|
5568
5785
|
}],
|
|
5569
|
-
|
|
5786
|
+
79: [function (require, module, exports) {
|
|
5570
5787
|
var SceneBase = require("./scene-base.js");
|
|
5571
5788
|
|
|
5572
5789
|
var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
|
|
5573
5790
|
_inherits(SceneAnnotation, _SceneBase);
|
|
5574
5791
|
|
|
5575
|
-
var
|
|
5792
|
+
var _super48 = _createSuper(SceneAnnotation);
|
|
5576
5793
|
|
|
5577
5794
|
function SceneAnnotation() {
|
|
5578
5795
|
_classCallCheck(this, SceneAnnotation);
|
|
5579
5796
|
|
|
5580
|
-
return
|
|
5797
|
+
return _super48.apply(this, arguments);
|
|
5581
5798
|
}
|
|
5582
5799
|
|
|
5583
5800
|
_createClass(SceneAnnotation, null, [{
|
|
@@ -5592,20 +5809,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5592
5809
|
|
|
5593
5810
|
module.exports = SceneAnnotation;
|
|
5594
5811
|
}, {
|
|
5595
|
-
"./scene-base.js":
|
|
5812
|
+
"./scene-base.js": 81
|
|
5596
5813
|
}],
|
|
5597
|
-
|
|
5814
|
+
80: [function (require, module, exports) {
|
|
5598
5815
|
var SceneBase = require("./scene-base.js");
|
|
5599
5816
|
|
|
5600
5817
|
var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
|
|
5601
5818
|
_inherits(SceneAudio, _SceneBase2);
|
|
5602
5819
|
|
|
5603
|
-
var
|
|
5820
|
+
var _super49 = _createSuper(SceneAudio);
|
|
5604
5821
|
|
|
5605
5822
|
function SceneAudio() {
|
|
5606
5823
|
_classCallCheck(this, SceneAudio);
|
|
5607
5824
|
|
|
5608
|
-
return
|
|
5825
|
+
return _super49.apply(this, arguments);
|
|
5609
5826
|
}
|
|
5610
5827
|
|
|
5611
5828
|
_createClass(SceneAudio, null, [{
|
|
@@ -5620,9 +5837,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5620
5837
|
|
|
5621
5838
|
module.exports = SceneAudio;
|
|
5622
5839
|
}, {
|
|
5623
|
-
"./scene-base.js":
|
|
5840
|
+
"./scene-base.js": 81
|
|
5624
5841
|
}],
|
|
5625
|
-
|
|
5842
|
+
81: [function (require, module, exports) {
|
|
5626
5843
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5627
5844
|
|
|
5628
5845
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5630,20 +5847,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5630
5847
|
var SceneBase = /*#__PURE__*/function (_PlattarBase21) {
|
|
5631
5848
|
_inherits(SceneBase, _PlattarBase21);
|
|
5632
5849
|
|
|
5633
|
-
var
|
|
5850
|
+
var _super50 = _createSuper(SceneBase);
|
|
5634
5851
|
|
|
5635
5852
|
function SceneBase(id, server) {
|
|
5636
|
-
var
|
|
5853
|
+
var _this38;
|
|
5637
5854
|
|
|
5638
5855
|
_classCallCheck(this, SceneBase);
|
|
5639
5856
|
|
|
5640
|
-
|
|
5857
|
+
_this38 = _super50.call(this, id, server || Server["default"]());
|
|
5641
5858
|
|
|
5642
|
-
if (
|
|
5859
|
+
if (_this38.constructor === SceneBase) {
|
|
5643
5860
|
throw new Error("SceneBase is abstract and cannot be created");
|
|
5644
5861
|
}
|
|
5645
5862
|
|
|
5646
|
-
return
|
|
5863
|
+
return _this38;
|
|
5647
5864
|
}
|
|
5648
5865
|
|
|
5649
5866
|
_createClass(SceneBase, null, [{
|
|
@@ -5686,35 +5903,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5686
5903
|
|
|
5687
5904
|
module.exports = SceneBase;
|
|
5688
5905
|
}, {
|
|
5689
|
-
"../../server/plattar-server.js":
|
|
5690
|
-
"../interfaces/plattar-base.js":
|
|
5691
|
-
"./scene-annotation.js":
|
|
5692
|
-
"./scene-audio.js":
|
|
5693
|
-
"./scene-button.js":
|
|
5694
|
-
"./scene-camera.js":
|
|
5695
|
-
"./scene-carousel.js":
|
|
5696
|
-
"./scene-image.js":
|
|
5697
|
-
"./scene-model.js":
|
|
5698
|
-
"./scene-panorama.js":
|
|
5699
|
-
"./scene-poller.js":
|
|
5700
|
-
"./scene-product.js":
|
|
5701
|
-
"./scene-shadow.js":
|
|
5702
|
-
"./scene-video.js":
|
|
5703
|
-
"./scene-volumetric.js":
|
|
5704
|
-
"./scene-youtube.js":
|
|
5906
|
+
"../../server/plattar-server.js": 37,
|
|
5907
|
+
"../interfaces/plattar-base.js": 54,
|
|
5908
|
+
"./scene-annotation.js": 79,
|
|
5909
|
+
"./scene-audio.js": 80,
|
|
5910
|
+
"./scene-button.js": 82,
|
|
5911
|
+
"./scene-camera.js": 83,
|
|
5912
|
+
"./scene-carousel.js": 84,
|
|
5913
|
+
"./scene-image.js": 85,
|
|
5914
|
+
"./scene-model.js": 86,
|
|
5915
|
+
"./scene-panorama.js": 87,
|
|
5916
|
+
"./scene-poller.js": 88,
|
|
5917
|
+
"./scene-product.js": 89,
|
|
5918
|
+
"./scene-shadow.js": 91,
|
|
5919
|
+
"./scene-video.js": 92,
|
|
5920
|
+
"./scene-volumetric.js": 93,
|
|
5921
|
+
"./scene-youtube.js": 94
|
|
5705
5922
|
}],
|
|
5706
|
-
|
|
5923
|
+
82: [function (require, module, exports) {
|
|
5707
5924
|
var SceneBase = require("./scene-base.js");
|
|
5708
5925
|
|
|
5709
5926
|
var SceneButton = /*#__PURE__*/function (_SceneBase3) {
|
|
5710
5927
|
_inherits(SceneButton, _SceneBase3);
|
|
5711
5928
|
|
|
5712
|
-
var
|
|
5929
|
+
var _super51 = _createSuper(SceneButton);
|
|
5713
5930
|
|
|
5714
5931
|
function SceneButton() {
|
|
5715
5932
|
_classCallCheck(this, SceneButton);
|
|
5716
5933
|
|
|
5717
|
-
return
|
|
5934
|
+
return _super51.apply(this, arguments);
|
|
5718
5935
|
}
|
|
5719
5936
|
|
|
5720
5937
|
_createClass(SceneButton, null, [{
|
|
@@ -5729,20 +5946,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5729
5946
|
|
|
5730
5947
|
module.exports = SceneButton;
|
|
5731
5948
|
}, {
|
|
5732
|
-
"./scene-base.js":
|
|
5949
|
+
"./scene-base.js": 81
|
|
5733
5950
|
}],
|
|
5734
|
-
|
|
5951
|
+
83: [function (require, module, exports) {
|
|
5735
5952
|
var SceneBase = require("./scene-base.js");
|
|
5736
5953
|
|
|
5737
5954
|
var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
|
|
5738
5955
|
_inherits(SceneCamera, _SceneBase4);
|
|
5739
5956
|
|
|
5740
|
-
var
|
|
5957
|
+
var _super52 = _createSuper(SceneCamera);
|
|
5741
5958
|
|
|
5742
5959
|
function SceneCamera() {
|
|
5743
5960
|
_classCallCheck(this, SceneCamera);
|
|
5744
5961
|
|
|
5745
|
-
return
|
|
5962
|
+
return _super52.apply(this, arguments);
|
|
5746
5963
|
}
|
|
5747
5964
|
|
|
5748
5965
|
_createClass(SceneCamera, null, [{
|
|
@@ -5757,20 +5974,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5757
5974
|
|
|
5758
5975
|
module.exports = SceneCamera;
|
|
5759
5976
|
}, {
|
|
5760
|
-
"./scene-base.js":
|
|
5977
|
+
"./scene-base.js": 81
|
|
5761
5978
|
}],
|
|
5762
|
-
|
|
5979
|
+
84: [function (require, module, exports) {
|
|
5763
5980
|
var SceneBase = require("./scene-base.js");
|
|
5764
5981
|
|
|
5765
5982
|
var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
|
|
5766
5983
|
_inherits(SceneCarousel, _SceneBase5);
|
|
5767
5984
|
|
|
5768
|
-
var
|
|
5985
|
+
var _super53 = _createSuper(SceneCarousel);
|
|
5769
5986
|
|
|
5770
5987
|
function SceneCarousel() {
|
|
5771
5988
|
_classCallCheck(this, SceneCarousel);
|
|
5772
5989
|
|
|
5773
|
-
return
|
|
5990
|
+
return _super53.apply(this, arguments);
|
|
5774
5991
|
}
|
|
5775
5992
|
|
|
5776
5993
|
_createClass(SceneCarousel, null, [{
|
|
@@ -5785,20 +6002,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5785
6002
|
|
|
5786
6003
|
module.exports = SceneCarousel;
|
|
5787
6004
|
}, {
|
|
5788
|
-
"./scene-base.js":
|
|
6005
|
+
"./scene-base.js": 81
|
|
5789
6006
|
}],
|
|
5790
|
-
|
|
6007
|
+
85: [function (require, module, exports) {
|
|
5791
6008
|
var SceneBase = require("./scene-base.js");
|
|
5792
6009
|
|
|
5793
6010
|
var SceneImage = /*#__PURE__*/function (_SceneBase6) {
|
|
5794
6011
|
_inherits(SceneImage, _SceneBase6);
|
|
5795
6012
|
|
|
5796
|
-
var
|
|
6013
|
+
var _super54 = _createSuper(SceneImage);
|
|
5797
6014
|
|
|
5798
6015
|
function SceneImage() {
|
|
5799
6016
|
_classCallCheck(this, SceneImage);
|
|
5800
6017
|
|
|
5801
|
-
return
|
|
6018
|
+
return _super54.apply(this, arguments);
|
|
5802
6019
|
}
|
|
5803
6020
|
|
|
5804
6021
|
_createClass(SceneImage, null, [{
|
|
@@ -5813,20 +6030,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5813
6030
|
|
|
5814
6031
|
module.exports = SceneImage;
|
|
5815
6032
|
}, {
|
|
5816
|
-
"./scene-base.js":
|
|
6033
|
+
"./scene-base.js": 81
|
|
5817
6034
|
}],
|
|
5818
|
-
|
|
6035
|
+
86: [function (require, module, exports) {
|
|
5819
6036
|
var SceneBase = require("./scene-base.js");
|
|
5820
6037
|
|
|
5821
6038
|
var SceneModel = /*#__PURE__*/function (_SceneBase7) {
|
|
5822
6039
|
_inherits(SceneModel, _SceneBase7);
|
|
5823
6040
|
|
|
5824
|
-
var
|
|
6041
|
+
var _super55 = _createSuper(SceneModel);
|
|
5825
6042
|
|
|
5826
6043
|
function SceneModel() {
|
|
5827
6044
|
_classCallCheck(this, SceneModel);
|
|
5828
6045
|
|
|
5829
|
-
return
|
|
6046
|
+
return _super55.apply(this, arguments);
|
|
5830
6047
|
}
|
|
5831
6048
|
|
|
5832
6049
|
_createClass(SceneModel, null, [{
|
|
@@ -5841,20 +6058,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5841
6058
|
|
|
5842
6059
|
module.exports = SceneModel;
|
|
5843
6060
|
}, {
|
|
5844
|
-
"./scene-base.js":
|
|
6061
|
+
"./scene-base.js": 81
|
|
5845
6062
|
}],
|
|
5846
|
-
|
|
6063
|
+
87: [function (require, module, exports) {
|
|
5847
6064
|
var SceneBase = require("./scene-base.js");
|
|
5848
6065
|
|
|
5849
6066
|
var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
|
|
5850
6067
|
_inherits(ScenePanorama, _SceneBase8);
|
|
5851
6068
|
|
|
5852
|
-
var
|
|
6069
|
+
var _super56 = _createSuper(ScenePanorama);
|
|
5853
6070
|
|
|
5854
6071
|
function ScenePanorama() {
|
|
5855
6072
|
_classCallCheck(this, ScenePanorama);
|
|
5856
6073
|
|
|
5857
|
-
return
|
|
6074
|
+
return _super56.apply(this, arguments);
|
|
5858
6075
|
}
|
|
5859
6076
|
|
|
5860
6077
|
_createClass(ScenePanorama, null, [{
|
|
@@ -5869,20 +6086,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5869
6086
|
|
|
5870
6087
|
module.exports = ScenePanorama;
|
|
5871
6088
|
}, {
|
|
5872
|
-
"./scene-base.js":
|
|
6089
|
+
"./scene-base.js": 81
|
|
5873
6090
|
}],
|
|
5874
|
-
|
|
6091
|
+
88: [function (require, module, exports) {
|
|
5875
6092
|
var SceneBase = require("./scene-base.js");
|
|
5876
6093
|
|
|
5877
6094
|
var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
|
|
5878
6095
|
_inherits(ScenePoller, _SceneBase9);
|
|
5879
6096
|
|
|
5880
|
-
var
|
|
6097
|
+
var _super57 = _createSuper(ScenePoller);
|
|
5881
6098
|
|
|
5882
6099
|
function ScenePoller() {
|
|
5883
6100
|
_classCallCheck(this, ScenePoller);
|
|
5884
6101
|
|
|
5885
|
-
return
|
|
6102
|
+
return _super57.apply(this, arguments);
|
|
5886
6103
|
}
|
|
5887
6104
|
|
|
5888
6105
|
_createClass(ScenePoller, null, [{
|
|
@@ -5897,20 +6114,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5897
6114
|
|
|
5898
6115
|
module.exports = ScenePoller;
|
|
5899
6116
|
}, {
|
|
5900
|
-
"./scene-base.js":
|
|
6117
|
+
"./scene-base.js": 81
|
|
5901
6118
|
}],
|
|
5902
|
-
|
|
6119
|
+
89: [function (require, module, exports) {
|
|
5903
6120
|
var SceneBase = require("./scene-base.js");
|
|
5904
6121
|
|
|
5905
6122
|
var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
|
|
5906
6123
|
_inherits(SceneProduct, _SceneBase10);
|
|
5907
6124
|
|
|
5908
|
-
var
|
|
6125
|
+
var _super58 = _createSuper(SceneProduct);
|
|
5909
6126
|
|
|
5910
6127
|
function SceneProduct() {
|
|
5911
6128
|
_classCallCheck(this, SceneProduct);
|
|
5912
6129
|
|
|
5913
|
-
return
|
|
6130
|
+
return _super58.apply(this, arguments);
|
|
5914
6131
|
}
|
|
5915
6132
|
|
|
5916
6133
|
_createClass(SceneProduct, null, [{
|
|
@@ -5925,20 +6142,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5925
6142
|
|
|
5926
6143
|
module.exports = SceneProduct;
|
|
5927
6144
|
}, {
|
|
5928
|
-
"./scene-base.js":
|
|
6145
|
+
"./scene-base.js": 81
|
|
5929
6146
|
}],
|
|
5930
|
-
|
|
6147
|
+
90: [function (require, module, exports) {
|
|
5931
6148
|
var SceneBase = require("./scene-base.js");
|
|
5932
6149
|
|
|
5933
6150
|
var SceneScript = /*#__PURE__*/function (_SceneBase11) {
|
|
5934
6151
|
_inherits(SceneScript, _SceneBase11);
|
|
5935
6152
|
|
|
5936
|
-
var
|
|
6153
|
+
var _super59 = _createSuper(SceneScript);
|
|
5937
6154
|
|
|
5938
6155
|
function SceneScript() {
|
|
5939
6156
|
_classCallCheck(this, SceneScript);
|
|
5940
6157
|
|
|
5941
|
-
return
|
|
6158
|
+
return _super59.apply(this, arguments);
|
|
5942
6159
|
}
|
|
5943
6160
|
|
|
5944
6161
|
_createClass(SceneScript, null, [{
|
|
@@ -5953,20 +6170,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5953
6170
|
|
|
5954
6171
|
module.exports = SceneScript;
|
|
5955
6172
|
}, {
|
|
5956
|
-
"./scene-base.js":
|
|
6173
|
+
"./scene-base.js": 81
|
|
5957
6174
|
}],
|
|
5958
|
-
|
|
6175
|
+
91: [function (require, module, exports) {
|
|
5959
6176
|
var SceneBase = require("./scene-base.js");
|
|
5960
6177
|
|
|
5961
6178
|
var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
|
|
5962
6179
|
_inherits(SceneShadow, _SceneBase12);
|
|
5963
6180
|
|
|
5964
|
-
var
|
|
6181
|
+
var _super60 = _createSuper(SceneShadow);
|
|
5965
6182
|
|
|
5966
6183
|
function SceneShadow() {
|
|
5967
6184
|
_classCallCheck(this, SceneShadow);
|
|
5968
6185
|
|
|
5969
|
-
return
|
|
6186
|
+
return _super60.apply(this, arguments);
|
|
5970
6187
|
}
|
|
5971
6188
|
|
|
5972
6189
|
_createClass(SceneShadow, null, [{
|
|
@@ -5981,20 +6198,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5981
6198
|
|
|
5982
6199
|
module.exports = SceneShadow;
|
|
5983
6200
|
}, {
|
|
5984
|
-
"./scene-base.js":
|
|
6201
|
+
"./scene-base.js": 81
|
|
5985
6202
|
}],
|
|
5986
|
-
|
|
6203
|
+
92: [function (require, module, exports) {
|
|
5987
6204
|
var SceneBase = require("./scene-base.js");
|
|
5988
6205
|
|
|
5989
6206
|
var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
|
|
5990
6207
|
_inherits(SceneVideo, _SceneBase13);
|
|
5991
6208
|
|
|
5992
|
-
var
|
|
6209
|
+
var _super61 = _createSuper(SceneVideo);
|
|
5993
6210
|
|
|
5994
6211
|
function SceneVideo() {
|
|
5995
6212
|
_classCallCheck(this, SceneVideo);
|
|
5996
6213
|
|
|
5997
|
-
return
|
|
6214
|
+
return _super61.apply(this, arguments);
|
|
5998
6215
|
}
|
|
5999
6216
|
|
|
6000
6217
|
_createClass(SceneVideo, null, [{
|
|
@@ -6009,20 +6226,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6009
6226
|
|
|
6010
6227
|
module.exports = SceneVideo;
|
|
6011
6228
|
}, {
|
|
6012
|
-
"./scene-base.js":
|
|
6229
|
+
"./scene-base.js": 81
|
|
6013
6230
|
}],
|
|
6014
|
-
|
|
6231
|
+
93: [function (require, module, exports) {
|
|
6015
6232
|
var SceneBase = require("./scene-base.js");
|
|
6016
6233
|
|
|
6017
6234
|
var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
|
|
6018
6235
|
_inherits(SceneVolumetric, _SceneBase14);
|
|
6019
6236
|
|
|
6020
|
-
var
|
|
6237
|
+
var _super62 = _createSuper(SceneVolumetric);
|
|
6021
6238
|
|
|
6022
6239
|
function SceneVolumetric() {
|
|
6023
6240
|
_classCallCheck(this, SceneVolumetric);
|
|
6024
6241
|
|
|
6025
|
-
return
|
|
6242
|
+
return _super62.apply(this, arguments);
|
|
6026
6243
|
}
|
|
6027
6244
|
|
|
6028
6245
|
_createClass(SceneVolumetric, null, [{
|
|
@@ -6037,20 +6254,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6037
6254
|
|
|
6038
6255
|
module.exports = SceneVolumetric;
|
|
6039
6256
|
}, {
|
|
6040
|
-
"./scene-base.js":
|
|
6257
|
+
"./scene-base.js": 81
|
|
6041
6258
|
}],
|
|
6042
|
-
|
|
6259
|
+
94: [function (require, module, exports) {
|
|
6043
6260
|
var SceneBase = require("./scene-base.js");
|
|
6044
6261
|
|
|
6045
6262
|
var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
|
|
6046
6263
|
_inherits(SceneYoutube, _SceneBase15);
|
|
6047
6264
|
|
|
6048
|
-
var
|
|
6265
|
+
var _super63 = _createSuper(SceneYoutube);
|
|
6049
6266
|
|
|
6050
6267
|
function SceneYoutube() {
|
|
6051
6268
|
_classCallCheck(this, SceneYoutube);
|
|
6052
6269
|
|
|
6053
|
-
return
|
|
6270
|
+
return _super63.apply(this, arguments);
|
|
6054
6271
|
}
|
|
6055
6272
|
|
|
6056
6273
|
_createClass(SceneYoutube, null, [{
|
|
@@ -6065,20 +6282,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6065
6282
|
|
|
6066
6283
|
module.exports = SceneYoutube;
|
|
6067
6284
|
}, {
|
|
6068
|
-
"./scene-base.js":
|
|
6285
|
+
"./scene-base.js": 81
|
|
6069
6286
|
}],
|
|
6070
|
-
|
|
6287
|
+
95: [function (require, module, exports) {
|
|
6071
6288
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6072
6289
|
|
|
6073
6290
|
var Scene = /*#__PURE__*/function (_PlattarBase22) {
|
|
6074
6291
|
_inherits(Scene, _PlattarBase22);
|
|
6075
6292
|
|
|
6076
|
-
var
|
|
6293
|
+
var _super64 = _createSuper(Scene);
|
|
6077
6294
|
|
|
6078
6295
|
function Scene() {
|
|
6079
6296
|
_classCallCheck(this, Scene);
|
|
6080
6297
|
|
|
6081
|
-
return
|
|
6298
|
+
return _super64.apply(this, arguments);
|
|
6082
6299
|
}
|
|
6083
6300
|
|
|
6084
6301
|
_createClass(Scene, null, [{
|
|
@@ -6093,20 +6310,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6093
6310
|
|
|
6094
6311
|
module.exports = Scene;
|
|
6095
6312
|
}, {
|
|
6096
|
-
"../interfaces/plattar-base.js":
|
|
6313
|
+
"../interfaces/plattar-base.js": 54
|
|
6097
6314
|
}],
|
|
6098
|
-
|
|
6315
|
+
96: [function (require, module, exports) {
|
|
6099
6316
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6100
6317
|
|
|
6101
6318
|
var TriggerImage = /*#__PURE__*/function (_PlattarBase23) {
|
|
6102
6319
|
_inherits(TriggerImage, _PlattarBase23);
|
|
6103
6320
|
|
|
6104
|
-
var
|
|
6321
|
+
var _super65 = _createSuper(TriggerImage);
|
|
6105
6322
|
|
|
6106
6323
|
function TriggerImage() {
|
|
6107
6324
|
_classCallCheck(this, TriggerImage);
|
|
6108
6325
|
|
|
6109
|
-
return
|
|
6326
|
+
return _super65.apply(this, arguments);
|
|
6110
6327
|
}
|
|
6111
6328
|
|
|
6112
6329
|
_createClass(TriggerImage, null, [{
|
|
@@ -6121,9 +6338,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6121
6338
|
|
|
6122
6339
|
module.exports = TriggerImage;
|
|
6123
6340
|
}, {
|
|
6124
|
-
"../interfaces/plattar-base.js":
|
|
6341
|
+
"../interfaces/plattar-base.js": 54
|
|
6125
6342
|
}],
|
|
6126
|
-
|
|
6343
|
+
97: [function (require, module, exports) {
|
|
6127
6344
|
var Application = require("../types/application.js"); // import Scene types and its children
|
|
6128
6345
|
|
|
6129
6346
|
|
|
@@ -6510,81 +6727,81 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6510
6727
|
|
|
6511
6728
|
module.exports = PlattarUtil;
|
|
6512
6729
|
}, {
|
|
6513
|
-
"../types/application.js":
|
|
6514
|
-
"../types/content-pipeline/brief.js":
|
|
6515
|
-
"../types/content-pipeline/comment-brief.js":
|
|
6516
|
-
"../types/content-pipeline/comment-quote.js":
|
|
6517
|
-
"../types/content-pipeline/comment-solution.js":
|
|
6518
|
-
"../types/content-pipeline/folder.js":
|
|
6519
|
-
"../types/content-pipeline/pipeline-user.js":
|
|
6520
|
-
"../types/content-pipeline/quote.js":
|
|
6521
|
-
"../types/content-pipeline/rating.js":
|
|
6522
|
-
"../types/content-pipeline/solution.js":
|
|
6523
|
-
"../types/file/file-audio.js":
|
|
6524
|
-
"../types/file/file-image.js":
|
|
6525
|
-
"../types/file/file-model.js":
|
|
6526
|
-
"../types/file/file-script.js":
|
|
6527
|
-
"../types/file/file-video.js":
|
|
6528
|
-
"../types/interfaces/plattar-object.js":
|
|
6529
|
-
"../types/misc/application-build.js":
|
|
6530
|
-
"../types/misc/asset-library":
|
|
6531
|
-
"../types/misc/async-job.js":
|
|
6532
|
-
"../types/misc/script-event.js":
|
|
6533
|
-
"../types/misc/tag.js":
|
|
6534
|
-
"../types/page/card-button.js":
|
|
6535
|
-
"../types/page/card-html.js":
|
|
6536
|
-
"../types/page/card-iframe.js":
|
|
6537
|
-
"../types/page/card-image.js":
|
|
6538
|
-
"../types/page/card-map.js":
|
|
6539
|
-
"../types/page/card-paragraph.js":
|
|
6540
|
-
"../types/page/card-row.js":
|
|
6541
|
-
"../types/page/card-slider.js":
|
|
6542
|
-
"../types/page/card-title.js":
|
|
6543
|
-
"../types/page/card-video.js":
|
|
6544
|
-
"../types/page/card-youtube.js":
|
|
6545
|
-
"../types/page/page.js":
|
|
6546
|
-
"../types/product/product-annotation.js":
|
|
6547
|
-
"../types/product/product-variation.js":
|
|
6548
|
-
"../types/product/product.js":
|
|
6549
|
-
"../types/scene/scene-annotation.js":
|
|
6550
|
-
"../types/scene/scene-audio.js":
|
|
6551
|
-
"../types/scene/scene-button.js":
|
|
6552
|
-
"../types/scene/scene-camera.js":
|
|
6553
|
-
"../types/scene/scene-carousel.js":
|
|
6554
|
-
"../types/scene/scene-image.js":
|
|
6555
|
-
"../types/scene/scene-model.js":
|
|
6556
|
-
"../types/scene/scene-panorama.js":
|
|
6557
|
-
"../types/scene/scene-poller.js":
|
|
6558
|
-
"../types/scene/scene-product.js":
|
|
6559
|
-
"../types/scene/scene-script.js":
|
|
6560
|
-
"../types/scene/scene-shadow.js":
|
|
6561
|
-
"../types/scene/scene-video.js":
|
|
6562
|
-
"../types/scene/scene-volumetric.js":
|
|
6563
|
-
"../types/scene/scene-youtube.js":
|
|
6564
|
-
"../types/scene/scene.js":
|
|
6565
|
-
"../types/trigger/trigger-image.js":
|
|
6730
|
+
"../types/application.js": 38,
|
|
6731
|
+
"../types/content-pipeline/brief.js": 39,
|
|
6732
|
+
"../types/content-pipeline/comment-brief.js": 40,
|
|
6733
|
+
"../types/content-pipeline/comment-quote.js": 41,
|
|
6734
|
+
"../types/content-pipeline/comment-solution.js": 42,
|
|
6735
|
+
"../types/content-pipeline/folder.js": 43,
|
|
6736
|
+
"../types/content-pipeline/pipeline-user.js": 44,
|
|
6737
|
+
"../types/content-pipeline/quote.js": 45,
|
|
6738
|
+
"../types/content-pipeline/rating.js": 46,
|
|
6739
|
+
"../types/content-pipeline/solution.js": 47,
|
|
6740
|
+
"../types/file/file-audio.js": 48,
|
|
6741
|
+
"../types/file/file-image.js": 50,
|
|
6742
|
+
"../types/file/file-model.js": 51,
|
|
6743
|
+
"../types/file/file-script.js": 52,
|
|
6744
|
+
"../types/file/file-video.js": 53,
|
|
6745
|
+
"../types/interfaces/plattar-object.js": 56,
|
|
6746
|
+
"../types/misc/application-build.js": 57,
|
|
6747
|
+
"../types/misc/asset-library": 58,
|
|
6748
|
+
"../types/misc/async-job.js": 59,
|
|
6749
|
+
"../types/misc/script-event.js": 60,
|
|
6750
|
+
"../types/misc/tag.js": 61,
|
|
6751
|
+
"../types/page/card-button.js": 63,
|
|
6752
|
+
"../types/page/card-html.js": 64,
|
|
6753
|
+
"../types/page/card-iframe.js": 65,
|
|
6754
|
+
"../types/page/card-image.js": 66,
|
|
6755
|
+
"../types/page/card-map.js": 67,
|
|
6756
|
+
"../types/page/card-paragraph.js": 68,
|
|
6757
|
+
"../types/page/card-row.js": 69,
|
|
6758
|
+
"../types/page/card-slider.js": 70,
|
|
6759
|
+
"../types/page/card-title.js": 71,
|
|
6760
|
+
"../types/page/card-video.js": 72,
|
|
6761
|
+
"../types/page/card-youtube.js": 73,
|
|
6762
|
+
"../types/page/page.js": 74,
|
|
6763
|
+
"../types/product/product-annotation.js": 75,
|
|
6764
|
+
"../types/product/product-variation.js": 77,
|
|
6765
|
+
"../types/product/product.js": 78,
|
|
6766
|
+
"../types/scene/scene-annotation.js": 79,
|
|
6767
|
+
"../types/scene/scene-audio.js": 80,
|
|
6768
|
+
"../types/scene/scene-button.js": 82,
|
|
6769
|
+
"../types/scene/scene-camera.js": 83,
|
|
6770
|
+
"../types/scene/scene-carousel.js": 84,
|
|
6771
|
+
"../types/scene/scene-image.js": 85,
|
|
6772
|
+
"../types/scene/scene-model.js": 86,
|
|
6773
|
+
"../types/scene/scene-panorama.js": 87,
|
|
6774
|
+
"../types/scene/scene-poller.js": 88,
|
|
6775
|
+
"../types/scene/scene-product.js": 89,
|
|
6776
|
+
"../types/scene/scene-script.js": 90,
|
|
6777
|
+
"../types/scene/scene-shadow.js": 91,
|
|
6778
|
+
"../types/scene/scene-video.js": 92,
|
|
6779
|
+
"../types/scene/scene-volumetric.js": 93,
|
|
6780
|
+
"../types/scene/scene-youtube.js": 94,
|
|
6781
|
+
"../types/scene/scene.js": 95,
|
|
6782
|
+
"../types/trigger/trigger-image.js": 96
|
|
6566
6783
|
}],
|
|
6567
|
-
|
|
6784
|
+
98: [function (require, module, exports) {
|
|
6568
6785
|
module.exports = "1.120.1";
|
|
6569
6786
|
}, {}],
|
|
6570
|
-
|
|
6787
|
+
99: [function (require, module, exports) {
|
|
6571
6788
|
var QRCodeStyling = require("qr-code-styling");
|
|
6572
6789
|
|
|
6573
6790
|
var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
|
|
6574
6791
|
_inherits(BaseElement, _HTMLElement2);
|
|
6575
6792
|
|
|
6576
|
-
var
|
|
6793
|
+
var _super66 = _createSuper(BaseElement);
|
|
6577
6794
|
|
|
6578
6795
|
function BaseElement() {
|
|
6579
6796
|
_classCallCheck(this, BaseElement);
|
|
6580
6797
|
|
|
6581
|
-
return
|
|
6798
|
+
return _super66.call(this);
|
|
6582
6799
|
}
|
|
6583
6800
|
|
|
6584
6801
|
_createClass(BaseElement, [{
|
|
6585
6802
|
key: "connectedCallback",
|
|
6586
6803
|
value: function connectedCallback() {
|
|
6587
|
-
var
|
|
6804
|
+
var _this39 = this;
|
|
6588
6805
|
|
|
6589
6806
|
if (this.hasAttribute("url")) {
|
|
6590
6807
|
this.renderQRCode();
|
|
@@ -6593,8 +6810,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6593
6810
|
var observer = new MutationObserver(function (mutations) {
|
|
6594
6811
|
mutations.forEach(function (mutation) {
|
|
6595
6812
|
if (mutation.type === "attributes") {
|
|
6596
|
-
if (
|
|
6597
|
-
|
|
6813
|
+
if (_this39.hasAttribute("url")) {
|
|
6814
|
+
_this39.renderQRCode();
|
|
6598
6815
|
}
|
|
6599
6816
|
}
|
|
6600
6817
|
});
|
|
@@ -6772,20 +6989,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6772
6989
|
|
|
6773
6990
|
module.exports = BaseElement;
|
|
6774
6991
|
}, {
|
|
6775
|
-
"qr-code-styling":
|
|
6992
|
+
"qr-code-styling": 119
|
|
6776
6993
|
}],
|
|
6777
|
-
|
|
6994
|
+
100: [function (require, module, exports) {
|
|
6778
6995
|
var BaseElement = require("./base/base-element.js");
|
|
6779
6996
|
|
|
6780
6997
|
var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
|
|
6781
6998
|
_inherits(QRCodeElement, _BaseElement);
|
|
6782
6999
|
|
|
6783
|
-
var
|
|
7000
|
+
var _super67 = _createSuper(QRCodeElement);
|
|
6784
7001
|
|
|
6785
7002
|
function QRCodeElement() {
|
|
6786
7003
|
_classCallCheck(this, QRCodeElement);
|
|
6787
7004
|
|
|
6788
|
-
return
|
|
7005
|
+
return _super67.call(this);
|
|
6789
7006
|
}
|
|
6790
7007
|
|
|
6791
7008
|
return QRCodeElement;
|
|
@@ -6793,9 +7010,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6793
7010
|
|
|
6794
7011
|
module.exports = QRCodeElement;
|
|
6795
7012
|
}, {
|
|
6796
|
-
"./base/base-element.js":
|
|
7013
|
+
"./base/base-element.js": 99
|
|
6797
7014
|
}],
|
|
6798
|
-
|
|
7015
|
+
101: [function (require, module, exports) {
|
|
6799
7016
|
"use strict";
|
|
6800
7017
|
|
|
6801
7018
|
var QRCodeElement = require("./elements/qrcode-element.js");
|
|
@@ -6808,24 +7025,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6808
7025
|
version: Version
|
|
6809
7026
|
};
|
|
6810
7027
|
}, {
|
|
6811
|
-
"./elements/qrcode-element.js":
|
|
6812
|
-
"./version":
|
|
7028
|
+
"./elements/qrcode-element.js": 100,
|
|
7029
|
+
"./version": 102
|
|
6813
7030
|
}],
|
|
6814
|
-
|
|
7031
|
+
102: [function (require, module, exports) {
|
|
6815
7032
|
module.exports = "1.120.3";
|
|
6816
7033
|
}, {}],
|
|
6817
|
-
|
|
7034
|
+
103: [function (require, module, exports) {
|
|
6818
7035
|
var ElementController = require("../controllers/element-controller");
|
|
6819
7036
|
|
|
6820
7037
|
var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
6821
7038
|
_inherits(BaseElement, _HTMLElement3);
|
|
6822
7039
|
|
|
6823
|
-
var
|
|
7040
|
+
var _super68 = _createSuper(BaseElement);
|
|
6824
7041
|
|
|
6825
7042
|
function BaseElement() {
|
|
6826
7043
|
_classCallCheck(this, BaseElement);
|
|
6827
7044
|
|
|
6828
|
-
return
|
|
7045
|
+
return _super68.call(this);
|
|
6829
7046
|
}
|
|
6830
7047
|
|
|
6831
7048
|
_createClass(BaseElement, [{
|
|
@@ -6925,19 +7142,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6925
7142
|
}, {
|
|
6926
7143
|
key: "allMappedAttributes",
|
|
6927
7144
|
get: function get() {
|
|
6928
|
-
var
|
|
7145
|
+
var _this40 = this;
|
|
6929
7146
|
|
|
6930
7147
|
var map = new Map();
|
|
6931
7148
|
var coreAttr = this.coreAttributes;
|
|
6932
7149
|
var optAttr = this.optionalAttributes;
|
|
6933
7150
|
coreAttr.forEach(function (ele) {
|
|
6934
|
-
if (
|
|
6935
|
-
map.set(ele.map,
|
|
7151
|
+
if (_this40.hasAttribute(ele.key)) {
|
|
7152
|
+
map.set(ele.map, _this40.getAttribute(ele.key));
|
|
6936
7153
|
}
|
|
6937
7154
|
});
|
|
6938
7155
|
optAttr.forEach(function (ele) {
|
|
6939
|
-
if (
|
|
6940
|
-
map.set(ele.map,
|
|
7156
|
+
if (_this40.hasAttribute(ele.key)) {
|
|
7157
|
+
map.set(ele.map, _this40.getAttribute(ele.key));
|
|
6941
7158
|
}
|
|
6942
7159
|
});
|
|
6943
7160
|
return map;
|
|
@@ -6981,9 +7198,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6981
7198
|
|
|
6982
7199
|
module.exports = BaseElement;
|
|
6983
7200
|
}, {
|
|
6984
|
-
"../controllers/element-controller":
|
|
7201
|
+
"../controllers/element-controller": 104
|
|
6985
7202
|
}],
|
|
6986
|
-
|
|
7203
|
+
104: [function (require, module, exports) {
|
|
6987
7204
|
var Util = require("../../util/util.js");
|
|
6988
7205
|
|
|
6989
7206
|
var _require = require("@plattar/context-messenger"),
|
|
@@ -6993,7 +7210,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6993
7210
|
|
|
6994
7211
|
var ElementController = /*#__PURE__*/function () {
|
|
6995
7212
|
function ElementController(element) {
|
|
6996
|
-
var
|
|
7213
|
+
var _this41 = this;
|
|
6997
7214
|
|
|
6998
7215
|
_classCallCheck(this, ElementController);
|
|
6999
7216
|
|
|
@@ -7009,7 +7226,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7009
7226
|
|
|
7010
7227
|
if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
|
|
7011
7228
|
if (element.hasAllCoreAttributes) {
|
|
7012
|
-
|
|
7229
|
+
_this41._load();
|
|
7013
7230
|
}
|
|
7014
7231
|
}
|
|
7015
7232
|
}
|
|
@@ -7100,16 +7317,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7100
7317
|
|
|
7101
7318
|
module.exports = ElementController;
|
|
7102
7319
|
}, {
|
|
7103
|
-
"../../util/util.js":
|
|
7104
|
-
"./iframe-controller.js":
|
|
7105
|
-
"@plattar/context-messenger":
|
|
7320
|
+
"../../util/util.js": 115,
|
|
7321
|
+
"./iframe-controller.js": 105,
|
|
7322
|
+
"@plattar/context-messenger": 14
|
|
7106
7323
|
}],
|
|
7107
|
-
|
|
7324
|
+
105: [function (require, module, exports) {
|
|
7108
7325
|
var Util = require("../../util/util.js");
|
|
7109
7326
|
|
|
7110
7327
|
var IFrameController = /*#__PURE__*/function () {
|
|
7111
7328
|
function IFrameController(element, src, id) {
|
|
7112
|
-
var
|
|
7329
|
+
var _this42 = this;
|
|
7113
7330
|
|
|
7114
7331
|
var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
7115
7332
|
|
|
@@ -7121,7 +7338,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7121
7338
|
if (!element.hasAttribute("sameorigin")) {
|
|
7122
7339
|
this._iframe.onload = function () {
|
|
7123
7340
|
if (onelemload) {
|
|
7124
|
-
onelemload(
|
|
7341
|
+
onelemload(_this42._iframe);
|
|
7125
7342
|
}
|
|
7126
7343
|
};
|
|
7127
7344
|
}
|
|
@@ -7218,20 +7435,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7218
7435
|
|
|
7219
7436
|
module.exports = IFrameController;
|
|
7220
7437
|
}, {
|
|
7221
|
-
"../../util/util.js":
|
|
7438
|
+
"../../util/util.js": 115
|
|
7222
7439
|
}],
|
|
7223
|
-
|
|
7440
|
+
106: [function (require, module, exports) {
|
|
7224
7441
|
var BaseElement = require("./base/base-element.js");
|
|
7225
7442
|
|
|
7226
7443
|
var EditorElement = /*#__PURE__*/function (_BaseElement2) {
|
|
7227
7444
|
_inherits(EditorElement, _BaseElement2);
|
|
7228
7445
|
|
|
7229
|
-
var
|
|
7446
|
+
var _super69 = _createSuper(EditorElement);
|
|
7230
7447
|
|
|
7231
7448
|
function EditorElement() {
|
|
7232
7449
|
_classCallCheck(this, EditorElement);
|
|
7233
7450
|
|
|
7234
|
-
return
|
|
7451
|
+
return _super69.call(this);
|
|
7235
7452
|
}
|
|
7236
7453
|
|
|
7237
7454
|
_createClass(EditorElement, [{
|
|
@@ -7251,26 +7468,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7251
7468
|
|
|
7252
7469
|
module.exports = EditorElement;
|
|
7253
7470
|
}, {
|
|
7254
|
-
"./base/base-element.js":
|
|
7471
|
+
"./base/base-element.js": 103
|
|
7255
7472
|
}],
|
|
7256
|
-
|
|
7473
|
+
107: [function (require, module, exports) {
|
|
7257
7474
|
var BaseElement = require("./base/base-element.js");
|
|
7258
7475
|
|
|
7259
7476
|
var EWallElement = /*#__PURE__*/function (_BaseElement3) {
|
|
7260
7477
|
_inherits(EWallElement, _BaseElement3);
|
|
7261
7478
|
|
|
7262
|
-
var
|
|
7479
|
+
var _super70 = _createSuper(EWallElement);
|
|
7263
7480
|
|
|
7264
7481
|
function EWallElement() {
|
|
7265
|
-
var
|
|
7482
|
+
var _this43;
|
|
7266
7483
|
|
|
7267
7484
|
_classCallCheck(this, EWallElement);
|
|
7268
7485
|
|
|
7269
|
-
|
|
7486
|
+
_this43 = _super70.call(this);
|
|
7270
7487
|
var tag = document.createElement("script");
|
|
7271
7488
|
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
|
|
7272
7489
|
tag.defer = true;
|
|
7273
|
-
return
|
|
7490
|
+
return _this43;
|
|
7274
7491
|
}
|
|
7275
7492
|
|
|
7276
7493
|
_createClass(EWallElement, [{
|
|
@@ -7306,20 +7523,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7306
7523
|
|
|
7307
7524
|
module.exports = EWallElement;
|
|
7308
7525
|
}, {
|
|
7309
|
-
"./base/base-element.js":
|
|
7526
|
+
"./base/base-element.js": 103
|
|
7310
7527
|
}],
|
|
7311
|
-
|
|
7528
|
+
108: [function (require, module, exports) {
|
|
7312
7529
|
var BaseElement = require("./base/base-element.js");
|
|
7313
7530
|
|
|
7314
7531
|
var FaceARElement = /*#__PURE__*/function (_BaseElement4) {
|
|
7315
7532
|
_inherits(FaceARElement, _BaseElement4);
|
|
7316
7533
|
|
|
7317
|
-
var
|
|
7534
|
+
var _super71 = _createSuper(FaceARElement);
|
|
7318
7535
|
|
|
7319
7536
|
function FaceARElement() {
|
|
7320
7537
|
_classCallCheck(this, FaceARElement);
|
|
7321
7538
|
|
|
7322
|
-
return
|
|
7539
|
+
return _super71.call(this);
|
|
7323
7540
|
}
|
|
7324
7541
|
|
|
7325
7542
|
_createClass(FaceARElement, [{
|
|
@@ -7339,20 +7556,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7339
7556
|
|
|
7340
7557
|
module.exports = FaceARElement;
|
|
7341
7558
|
}, {
|
|
7342
|
-
"./base/base-element.js":
|
|
7559
|
+
"./base/base-element.js": 103
|
|
7343
7560
|
}],
|
|
7344
|
-
|
|
7561
|
+
109: [function (require, module, exports) {
|
|
7345
7562
|
var BaseElement = require("./base/base-element.js");
|
|
7346
7563
|
|
|
7347
7564
|
var ModelElement = /*#__PURE__*/function (_BaseElement5) {
|
|
7348
7565
|
_inherits(ModelElement, _BaseElement5);
|
|
7349
7566
|
|
|
7350
|
-
var
|
|
7567
|
+
var _super72 = _createSuper(ModelElement);
|
|
7351
7568
|
|
|
7352
7569
|
function ModelElement() {
|
|
7353
7570
|
_classCallCheck(this, ModelElement);
|
|
7354
7571
|
|
|
7355
|
-
return
|
|
7572
|
+
return _super72.call(this);
|
|
7356
7573
|
}
|
|
7357
7574
|
|
|
7358
7575
|
_createClass(ModelElement, [{
|
|
@@ -7380,20 +7597,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7380
7597
|
|
|
7381
7598
|
module.exports = ModelElement;
|
|
7382
7599
|
}, {
|
|
7383
|
-
"./base/base-element.js":
|
|
7600
|
+
"./base/base-element.js": 103
|
|
7384
7601
|
}],
|
|
7385
|
-
|
|
7602
|
+
110: [function (require, module, exports) {
|
|
7386
7603
|
var BaseElement = require("./base/base-element.js");
|
|
7387
7604
|
|
|
7388
7605
|
var ProductElement = /*#__PURE__*/function (_BaseElement6) {
|
|
7389
7606
|
_inherits(ProductElement, _BaseElement6);
|
|
7390
7607
|
|
|
7391
|
-
var
|
|
7608
|
+
var _super73 = _createSuper(ProductElement);
|
|
7392
7609
|
|
|
7393
7610
|
function ProductElement() {
|
|
7394
7611
|
_classCallCheck(this, ProductElement);
|
|
7395
7612
|
|
|
7396
|
-
return
|
|
7613
|
+
return _super73.call(this);
|
|
7397
7614
|
}
|
|
7398
7615
|
|
|
7399
7616
|
_createClass(ProductElement, [{
|
|
@@ -7429,20 +7646,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7429
7646
|
|
|
7430
7647
|
module.exports = ProductElement;
|
|
7431
7648
|
}, {
|
|
7432
|
-
"./base/base-element.js":
|
|
7649
|
+
"./base/base-element.js": 103
|
|
7433
7650
|
}],
|
|
7434
|
-
|
|
7651
|
+
111: [function (require, module, exports) {
|
|
7435
7652
|
var BaseElement = require("./base/base-element.js");
|
|
7436
7653
|
|
|
7437
7654
|
var StudioElement = /*#__PURE__*/function (_BaseElement7) {
|
|
7438
7655
|
_inherits(StudioElement, _BaseElement7);
|
|
7439
7656
|
|
|
7440
|
-
var
|
|
7657
|
+
var _super74 = _createSuper(StudioElement);
|
|
7441
7658
|
|
|
7442
7659
|
function StudioElement() {
|
|
7443
7660
|
_classCallCheck(this, StudioElement);
|
|
7444
7661
|
|
|
7445
|
-
return
|
|
7662
|
+
return _super74.call(this);
|
|
7446
7663
|
}
|
|
7447
7664
|
|
|
7448
7665
|
_createClass(StudioElement, [{
|
|
@@ -7462,20 +7679,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7462
7679
|
|
|
7463
7680
|
module.exports = StudioElement;
|
|
7464
7681
|
}, {
|
|
7465
|
-
"./base/base-element.js":
|
|
7682
|
+
"./base/base-element.js": 103
|
|
7466
7683
|
}],
|
|
7467
|
-
|
|
7684
|
+
112: [function (require, module, exports) {
|
|
7468
7685
|
var BaseElement = require("./base/base-element.js");
|
|
7469
7686
|
|
|
7470
7687
|
var ViewerElement = /*#__PURE__*/function (_BaseElement8) {
|
|
7471
7688
|
_inherits(ViewerElement, _BaseElement8);
|
|
7472
7689
|
|
|
7473
|
-
var
|
|
7690
|
+
var _super75 = _createSuper(ViewerElement);
|
|
7474
7691
|
|
|
7475
7692
|
function ViewerElement() {
|
|
7476
7693
|
_classCallCheck(this, ViewerElement);
|
|
7477
7694
|
|
|
7478
|
-
return
|
|
7695
|
+
return _super75.call(this);
|
|
7479
7696
|
}
|
|
7480
7697
|
|
|
7481
7698
|
_createClass(ViewerElement, [{
|
|
@@ -7495,20 +7712,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7495
7712
|
|
|
7496
7713
|
module.exports = ViewerElement;
|
|
7497
7714
|
}, {
|
|
7498
|
-
"./base/base-element.js":
|
|
7715
|
+
"./base/base-element.js": 103
|
|
7499
7716
|
}],
|
|
7500
|
-
|
|
7717
|
+
113: [function (require, module, exports) {
|
|
7501
7718
|
var BaseElement = require("./base/base-element.js");
|
|
7502
7719
|
|
|
7503
7720
|
var WebXRElement = /*#__PURE__*/function (_BaseElement9) {
|
|
7504
7721
|
_inherits(WebXRElement, _BaseElement9);
|
|
7505
7722
|
|
|
7506
|
-
var
|
|
7723
|
+
var _super76 = _createSuper(WebXRElement);
|
|
7507
7724
|
|
|
7508
7725
|
function WebXRElement() {
|
|
7509
7726
|
_classCallCheck(this, WebXRElement);
|
|
7510
7727
|
|
|
7511
|
-
return
|
|
7728
|
+
return _super76.call(this);
|
|
7512
7729
|
}
|
|
7513
7730
|
|
|
7514
7731
|
_createClass(WebXRElement, [{
|
|
@@ -7528,9 +7745,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7528
7745
|
|
|
7529
7746
|
module.exports = WebXRElement;
|
|
7530
7747
|
}, {
|
|
7531
|
-
"./base/base-element.js":
|
|
7748
|
+
"./base/base-element.js": 103
|
|
7532
7749
|
}],
|
|
7533
|
-
|
|
7750
|
+
114: [function (require, module, exports) {
|
|
7534
7751
|
"use strict";
|
|
7535
7752
|
|
|
7536
7753
|
var WebXRElement = require("./elements/webxr-element.js");
|
|
@@ -7564,17 +7781,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7564
7781
|
version: Version
|
|
7565
7782
|
};
|
|
7566
7783
|
}, {
|
|
7567
|
-
"./elements/editor-element.js":
|
|
7568
|
-
"./elements/ewall-element.js":
|
|
7569
|
-
"./elements/facear-element.js":
|
|
7570
|
-
"./elements/model-element.js":
|
|
7571
|
-
"./elements/product-element.js":
|
|
7572
|
-
"./elements/studio-element.js":
|
|
7573
|
-
"./elements/viewer-element.js":
|
|
7574
|
-
"./elements/webxr-element.js":
|
|
7575
|
-
"./version":
|
|
7784
|
+
"./elements/editor-element.js": 106,
|
|
7785
|
+
"./elements/ewall-element.js": 107,
|
|
7786
|
+
"./elements/facear-element.js": 108,
|
|
7787
|
+
"./elements/model-element.js": 109,
|
|
7788
|
+
"./elements/product-element.js": 110,
|
|
7789
|
+
"./elements/studio-element.js": 111,
|
|
7790
|
+
"./elements/viewer-element.js": 112,
|
|
7791
|
+
"./elements/webxr-element.js": 113,
|
|
7792
|
+
"./version": 116
|
|
7576
7793
|
}],
|
|
7577
|
-
|
|
7794
|
+
115: [function (require, module, exports) {
|
|
7578
7795
|
var Util = /*#__PURE__*/function () {
|
|
7579
7796
|
function Util() {
|
|
7580
7797
|
_classCallCheck(this, Util);
|
|
@@ -7671,10 +7888,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7671
7888
|
|
|
7672
7889
|
module.exports = Util;
|
|
7673
7890
|
}, {}],
|
|
7674
|
-
|
|
7891
|
+
116: [function (require, module, exports) {
|
|
7675
7892
|
module.exports = "1.117.1";
|
|
7676
7893
|
}, {}],
|
|
7677
|
-
|
|
7894
|
+
117: [function (require, module, exports) {
|
|
7678
7895
|
(function (global) {
|
|
7679
7896
|
(function () {
|
|
7680
7897
|
"use strict"; // ref: https://github.com/tc39/proposal-global
|
|
@@ -7711,7 +7928,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7711
7928
|
}).call(this);
|
|
7712
7929
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
7713
7930
|
}, {}],
|
|
7714
|
-
|
|
7931
|
+
118: [function (require, module, exports) {
|
|
7715
7932
|
// shim for using process in browser
|
|
7716
7933
|
var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
|
|
7717
7934
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
@@ -7921,7 +8138,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7921
8138
|
return 0;
|
|
7922
8139
|
};
|
|
7923
8140
|
}, {}],
|
|
7924
|
-
|
|
8141
|
+
119: [function (require, module, exports) {
|
|
7925
8142
|
!function (t, e) {
|
|
7926
8143
|
"object" == _typeof(exports) && "object" == _typeof(module) ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == _typeof(exports) ? exports.QRCodeStyling = e() : t.QRCodeStyling = e();
|
|
7927
8144
|
}(self, function () {
|
|
@@ -10553,6 +10770,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
10553
10770
|
}()["default"];
|
|
10554
10771
|
});
|
|
10555
10772
|
}, {}]
|
|
10556
|
-
}, {}, [
|
|
10773
|
+
}, {}, [7])(7);
|
|
10557
10774
|
});
|
|
10558
10775
|
|