@plattar/plattar-ar-adapter 1.115.2 → 1.116.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es2015/plattar-ar-adapter.js +1059 -814
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +399 -245
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/ar/product-ar.d.ts +1 -1
- package/dist/ar/product-ar.js +29 -21
- package/dist/util/util.d.ts +0 -1
- package/dist/util/util.js +0 -15
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/dist/analytics/analytics.d.ts +0 -10
- package/dist/analytics/analytics.js +0 -92
- package/dist/util/basic-http.d.ts +0 -6
- package/dist/util/basic-http.js +0 -38
|
@@ -32,6 +32,12 @@ function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _c
|
|
|
32
32
|
|
|
33
33
|
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
34
34
|
|
|
35
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36
|
+
|
|
37
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
38
|
+
|
|
39
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
40
|
+
|
|
35
41
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
36
42
|
|
|
37
43
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -46,12 +52,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
46
52
|
|
|
47
53
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
48
54
|
|
|
49
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
50
|
-
|
|
51
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
52
|
-
|
|
53
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
54
|
-
|
|
55
55
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
56
56
|
|
|
57
57
|
(function (f) {
|
|
@@ -112,141 +112,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
112
112
|
1: [function (require, module, exports) {
|
|
113
113
|
"use strict";
|
|
114
114
|
|
|
115
|
-
Object.defineProperty(exports, "__esModule", {
|
|
116
|
-
value: true
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
var util_1 = require("../util/util");
|
|
120
|
-
|
|
121
|
-
var plattar_api_1 = require("@plattar/plattar-api");
|
|
122
|
-
|
|
123
|
-
var Analytics = /*#__PURE__*/function () {
|
|
124
|
-
function Analytics() {
|
|
125
|
-
_classCallCheck(this, Analytics);
|
|
126
|
-
|
|
127
|
-
this._map = new Map();
|
|
128
|
-
this.push("source", "embed");
|
|
129
|
-
this.push("pageTitle", document.title);
|
|
130
|
-
this.push("pageURL", location.href);
|
|
131
|
-
this.push("referrer", document.referrer);
|
|
132
|
-
this.push("user_id", this.getUserID());
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
_createClass(Analytics, [{
|
|
136
|
-
key: "track",
|
|
137
|
-
value: function track() {
|
|
138
|
-
var dataSet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
139
|
-
|
|
140
|
-
this._send("track", dataSet);
|
|
141
|
-
}
|
|
142
|
-
}, {
|
|
143
|
-
key: "pageview",
|
|
144
|
-
value: function pageview() {
|
|
145
|
-
var dataSet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
146
|
-
|
|
147
|
-
this._send("pageview", dataSet);
|
|
148
|
-
}
|
|
149
|
-
}, {
|
|
150
|
-
key: "_send",
|
|
151
|
-
value: function _send(event) {
|
|
152
|
-
var dataSet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
153
|
-
var url = plattar_api_1.Server.location().analytics;
|
|
154
|
-
var data = dataSet || {};
|
|
155
|
-
var dims = Object.fromEntries(this._map);
|
|
156
|
-
var cData = Object.assign(data, dims);
|
|
157
|
-
var analytic = {
|
|
158
|
-
event: event,
|
|
159
|
-
origin: plattar_api_1.Server.location().type,
|
|
160
|
-
application_id: cData.applicationId,
|
|
161
|
-
data: cData
|
|
162
|
-
}; // NOTE - Consider switching this to navigator.sendBeacon which is designed
|
|
163
|
-
// for sending analytics data even when page is unloaded
|
|
164
|
-
// see https://stackoverflow.com/questions/40523469/navigator-sendbeacon-to-pass-header-information
|
|
165
|
-
// see https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API
|
|
166
|
-
|
|
167
|
-
try {
|
|
168
|
-
var xmlhttp = new XMLHttpRequest();
|
|
169
|
-
xmlhttp.open("POST", url);
|
|
170
|
-
xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
171
|
-
xmlhttp.send(JSON.stringify(analytic));
|
|
172
|
-
} catch (err) {
|
|
173
|
-
console.error("Analytics.send(" + event + ") - Error during POST - " + err);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}, {
|
|
177
|
-
key: "push",
|
|
178
|
-
value: function push(key, value) {
|
|
179
|
-
this._map.set(key, value);
|
|
180
|
-
}
|
|
181
|
-
}, {
|
|
182
|
-
key: "getUserID",
|
|
183
|
-
value: function getUserID() {
|
|
184
|
-
var key = "plattar_user_id";
|
|
185
|
-
var userID = null;
|
|
186
|
-
|
|
187
|
-
try {
|
|
188
|
-
userID = localStorage.getItem(key);
|
|
189
|
-
} catch (err) {
|
|
190
|
-
userID = util_1.Util.generateUUID(); // try storing if just generated
|
|
191
|
-
|
|
192
|
-
try {
|
|
193
|
-
localStorage.setItem(key, userID);
|
|
194
|
-
} catch (_err) {
|
|
195
|
-
/* silent */
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
if (!userID) {
|
|
200
|
-
userID = util_1.Util.generateUUID(); // try storing if just generated
|
|
201
|
-
|
|
202
|
-
try {
|
|
203
|
-
localStorage.setItem(key, userID);
|
|
204
|
-
} catch (_err) {
|
|
205
|
-
/*silent */
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
return userID;
|
|
210
|
-
}
|
|
211
|
-
}, {
|
|
212
|
-
key: "startRecordEngagement",
|
|
213
|
-
value: function startRecordEngagement() {
|
|
214
|
-
var _this = this;
|
|
215
|
-
|
|
216
|
-
var time;
|
|
217
|
-
|
|
218
|
-
var handlePageHide = function handlePageHide() {
|
|
219
|
-
if (document.visibilityState === "hidden") {
|
|
220
|
-
time = new Date();
|
|
221
|
-
} else {
|
|
222
|
-
var time2 = new Date();
|
|
223
|
-
var diff = time2.getTime() - time.getTime();
|
|
224
|
-
|
|
225
|
-
_this.track({
|
|
226
|
-
eventAction: "View Time",
|
|
227
|
-
viewTime: diff,
|
|
228
|
-
eventLabel: diff
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
document.removeEventListener("visibilitychange", handlePageHide, false);
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
document.addEventListener("visibilitychange", handlePageHide, false);
|
|
236
|
-
}
|
|
237
|
-
}]);
|
|
238
|
-
|
|
239
|
-
return Analytics;
|
|
240
|
-
}();
|
|
241
|
-
|
|
242
|
-
exports["default"] = Analytics;
|
|
243
|
-
}, {
|
|
244
|
-
"../util/util": 8,
|
|
245
|
-
"@plattar/plattar-api": 29
|
|
246
|
-
}],
|
|
247
|
-
2: [function (require, module, exports) {
|
|
248
|
-
"use strict";
|
|
249
|
-
|
|
250
115
|
Object.defineProperty(exports, "__esModule", {
|
|
251
116
|
value: true
|
|
252
117
|
});
|
|
@@ -291,9 +156,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
291
156
|
|
|
292
157
|
exports.ConfiguratorAR = ConfiguratorAR;
|
|
293
158
|
}, {
|
|
294
|
-
"./launcher-ar":
|
|
159
|
+
"./launcher-ar": 2
|
|
295
160
|
}],
|
|
296
|
-
|
|
161
|
+
2: [function (require, module, exports) {
|
|
297
162
|
"use strict";
|
|
298
163
|
|
|
299
164
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -307,7 +172,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
307
172
|
|
|
308
173
|
exports.LauncherAR = LauncherAR;
|
|
309
174
|
}, {}],
|
|
310
|
-
|
|
175
|
+
3: [function (require, module, exports) {
|
|
311
176
|
"use strict";
|
|
312
177
|
|
|
313
178
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -323,7 +188,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
323
188
|
|
|
324
189
|
var plattar_api_1 = require("@plattar/plattar-api");
|
|
325
190
|
|
|
326
|
-
var
|
|
191
|
+
var plattar_analytics_1 = require("@plattar/plattar-analytics");
|
|
327
192
|
|
|
328
193
|
var util_1 = require("../util/util");
|
|
329
194
|
|
|
@@ -345,24 +210,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
345
210
|
var _super2 = _createSuper(ProductAR);
|
|
346
211
|
|
|
347
212
|
function ProductAR() {
|
|
348
|
-
var
|
|
213
|
+
var _this;
|
|
349
214
|
|
|
350
215
|
var productID = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
351
216
|
var variationID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
352
217
|
|
|
353
218
|
_classCallCheck(this, ProductAR);
|
|
354
219
|
|
|
355
|
-
|
|
220
|
+
_this = _super2.call(this); // analytics instance
|
|
221
|
+
|
|
222
|
+
_this._analytics = null;
|
|
356
223
|
|
|
357
224
|
if (!productID) {
|
|
358
225
|
throw new Error("ProductAR.constructor(productID, variationID) - productID must be defined");
|
|
359
226
|
}
|
|
360
227
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
return _this2;
|
|
228
|
+
_this._productID = productID;
|
|
229
|
+
_this._variationID = variationID ? variationID : "default";
|
|
230
|
+
_this._ar = null;
|
|
231
|
+
return _this;
|
|
366
232
|
}
|
|
367
233
|
|
|
368
234
|
_createClass(ProductAR, [{
|
|
@@ -378,28 +244,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
378
244
|
}, {
|
|
379
245
|
key: "_setupAnalytics",
|
|
380
246
|
value: function _setupAnalytics(product, variation) {
|
|
381
|
-
var analytics =
|
|
247
|
+
var analytics = null;
|
|
382
248
|
var scene = product.relationships.find(plattar_api_1.Scene); // setup scene stuff (if any)
|
|
383
249
|
|
|
384
250
|
if (scene) {
|
|
385
|
-
analytics.
|
|
386
|
-
analytics.
|
|
251
|
+
analytics = new plattar_analytics_1.Analytics(scene.attributes.application_id);
|
|
252
|
+
analytics.origin = plattar_api_1.Server.location().type;
|
|
253
|
+
this._analytics = analytics;
|
|
254
|
+
analytics.data.push("sceneId", scene.id);
|
|
255
|
+
analytics.data.push("sceneTitle", scene.attributes.title);
|
|
387
256
|
var application = scene.relationships.find(plattar_api_1.Project); // setup application stuff (if any)
|
|
388
257
|
|
|
389
258
|
if (application) {
|
|
390
|
-
analytics.push("applicationId", application.id);
|
|
391
|
-
analytics.push("applicationTitle", application.attributes.title);
|
|
259
|
+
analytics.data.push("applicationId", application.id);
|
|
260
|
+
analytics.data.push("applicationTitle", application.attributes.title);
|
|
392
261
|
}
|
|
393
|
-
}
|
|
394
|
-
|
|
262
|
+
}
|
|
395
263
|
|
|
396
|
-
analytics
|
|
397
|
-
|
|
398
|
-
|
|
264
|
+
if (analytics) {
|
|
265
|
+
// set product stuff
|
|
266
|
+
analytics.data.push("productId", product.id);
|
|
267
|
+
analytics.data.push("productTitle", product.attributes.title);
|
|
268
|
+
analytics.data.push("productSKU", product.attributes.sku); // set variation stuff
|
|
399
269
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
270
|
+
analytics.data.push("variationId", variation.id);
|
|
271
|
+
analytics.data.push("variationTitle", variation.attributes.title);
|
|
272
|
+
analytics.data.push("variationSKU", variation.attributes.sku);
|
|
273
|
+
}
|
|
403
274
|
}
|
|
404
275
|
/**
|
|
405
276
|
* Initialise the ProductAR instance. This returns a Promise that resolves
|
|
@@ -412,21 +283,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
412
283
|
}, {
|
|
413
284
|
key: "init",
|
|
414
285
|
value: function init() {
|
|
415
|
-
var
|
|
286
|
+
var _this2 = this;
|
|
416
287
|
|
|
417
288
|
return new Promise(function (accept, reject) {
|
|
418
289
|
if (!util_1.Util.canAugment()) {
|
|
419
290
|
return reject(new Error("ProductAR.init() - cannot proceed as AR not available in context"));
|
|
420
291
|
}
|
|
421
292
|
|
|
422
|
-
var product = new plattar_api_1.Product(
|
|
293
|
+
var product = new plattar_api_1.Product(_this2.productID);
|
|
423
294
|
product.include(plattar_api_1.ProductVariation);
|
|
424
295
|
product.include(plattar_api_1.ProductVariation.include(plattar_api_1.FileModel));
|
|
425
296
|
product.include(plattar_api_1.Scene);
|
|
426
297
|
product.include(plattar_api_1.Scene.include(plattar_api_1.Project));
|
|
427
298
|
product.get().then(function (product) {
|
|
428
299
|
// find the required variation from our product
|
|
429
|
-
var variationID =
|
|
300
|
+
var variationID = _this2.variationID ? _this2.variationID === "default" ? product.attributes.product_variation_id : _this2.variationID : product.attributes.product_variation_id;
|
|
430
301
|
|
|
431
302
|
if (!variationID) {
|
|
432
303
|
return reject(new Error("ProductAR.init() - cannot proceed as variation was not defined correctly"));
|
|
@@ -454,7 +325,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
454
325
|
return reject(new Error("ProductAR.init() - cannot proceed as ModelFile for selected variation is corrupt"));
|
|
455
326
|
}
|
|
456
327
|
|
|
457
|
-
|
|
328
|
+
_this2._setupAnalytics(product, variation); // we need to define our AR module here
|
|
458
329
|
// we are in Safari/Quicklook mode here
|
|
459
330
|
|
|
460
331
|
|
|
@@ -462,16 +333,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
462
333
|
// model needs to have either USDZ or REALITY files defined
|
|
463
334
|
// we load REALITY stuff first if available
|
|
464
335
|
if (model.attributes.reality_filename && util_1.Util.canRealityViewer()) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return accept(
|
|
336
|
+
_this2._ar = new reality_viewer_1["default"]();
|
|
337
|
+
_this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.reality_filename;
|
|
338
|
+
return accept(_this2);
|
|
468
339
|
} // otherwise, load the USDZ stuff second if available
|
|
469
340
|
|
|
470
341
|
|
|
471
342
|
if (model.attributes.usdz_filename && util_1.Util.canQuicklook()) {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
return accept(
|
|
343
|
+
_this2._ar = new quicklook_viewer_1["default"]();
|
|
344
|
+
_this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.usdz_filename;
|
|
345
|
+
return accept(_this2);
|
|
475
346
|
}
|
|
476
347
|
|
|
477
348
|
return reject(new Error("ProductAR.init() - cannot proceed as ModelFile does not have a defined .usdz or .reality file"));
|
|
@@ -479,9 +350,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
479
350
|
|
|
480
351
|
|
|
481
352
|
if (util_1.Util.canSceneViewer()) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
return accept(
|
|
353
|
+
_this2._ar = new scene_viewer_1["default"]();
|
|
354
|
+
_this2._ar.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.original_filename;
|
|
355
|
+
return accept(_this2);
|
|
485
356
|
} // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
|
|
486
357
|
// earlier in the process
|
|
487
358
|
|
|
@@ -498,10 +369,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
498
369
|
}, {
|
|
499
370
|
key: "launch",
|
|
500
371
|
value: function launch() {
|
|
501
|
-
var
|
|
372
|
+
var _this3 = this;
|
|
502
373
|
|
|
503
374
|
return new Promise(function (accept, reject) {
|
|
504
|
-
|
|
375
|
+
_this3.init().then(function (value) {
|
|
505
376
|
value.start();
|
|
506
377
|
return accept();
|
|
507
378
|
})["catch"](reject);
|
|
@@ -516,18 +387,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
516
387
|
value: function start() {
|
|
517
388
|
if (!this._ar) {
|
|
518
389
|
throw new Error("ProductAR.start() - cannot proceed as AR instance is null");
|
|
519
|
-
}
|
|
390
|
+
}
|
|
520
391
|
|
|
392
|
+
var analytics = this._analytics;
|
|
521
393
|
|
|
522
|
-
|
|
394
|
+
if (analytics) {
|
|
395
|
+
analytics.data.push("device", this._ar.device);
|
|
396
|
+
analytics.data.push("eventCategory", this._ar.nodeType);
|
|
397
|
+
analytics.data.push("eventAction", "Start Augment");
|
|
398
|
+
analytics.write();
|
|
399
|
+
analytics.startRecordEngagement();
|
|
400
|
+
} // this was initialised via the init() function
|
|
523
401
|
|
|
524
|
-
this._analytics.track({
|
|
525
|
-
device: this._ar.device,
|
|
526
|
-
eventCategory: this._ar.nodeType,
|
|
527
|
-
eventAction: "Start Augment"
|
|
528
|
-
});
|
|
529
402
|
|
|
530
|
-
this.
|
|
403
|
+
this._ar.start();
|
|
531
404
|
}
|
|
532
405
|
}]);
|
|
533
406
|
|
|
@@ -536,15 +409,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
536
409
|
|
|
537
410
|
exports.ProductAR = ProductAR;
|
|
538
411
|
}, {
|
|
539
|
-
"../
|
|
540
|
-
"../
|
|
541
|
-
"../viewers/
|
|
542
|
-
"../viewers/
|
|
543
|
-
"
|
|
544
|
-
"
|
|
545
|
-
"@plattar/plattar-api":
|
|
412
|
+
"../util/util": 7,
|
|
413
|
+
"../viewers/quicklook-viewer": 10,
|
|
414
|
+
"../viewers/reality-viewer": 11,
|
|
415
|
+
"../viewers/scene-viewer": 12,
|
|
416
|
+
"./launcher-ar": 2,
|
|
417
|
+
"@plattar/plattar-analytics": 30,
|
|
418
|
+
"@plattar/plattar-api": 34
|
|
546
419
|
}],
|
|
547
|
-
|
|
420
|
+
4: [function (require, module, exports) {
|
|
548
421
|
"use strict";
|
|
549
422
|
|
|
550
423
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -591,9 +464,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
591
464
|
|
|
592
465
|
exports.SceneAR = SceneAR;
|
|
593
466
|
}, {
|
|
594
|
-
"./launcher-ar":
|
|
467
|
+
"./launcher-ar": 2
|
|
595
468
|
}],
|
|
596
|
-
|
|
469
|
+
5: [function (require, module, exports) {
|
|
597
470
|
"use strict";
|
|
598
471
|
|
|
599
472
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -615,20 +488,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
615
488
|
var _super4 = _createSuper(PlattarEmbed);
|
|
616
489
|
|
|
617
490
|
function PlattarEmbed() {
|
|
618
|
-
var
|
|
491
|
+
var _this4;
|
|
619
492
|
|
|
620
493
|
_classCallCheck(this, PlattarEmbed);
|
|
621
494
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
return
|
|
495
|
+
_this4 = _super4.call(this);
|
|
496
|
+
_this4._sceneID = null;
|
|
497
|
+
_this4._productID = null;
|
|
498
|
+
_this4._variationID = null;
|
|
499
|
+
_this4._isReady = false;
|
|
500
|
+
_this4._width = "500px";
|
|
501
|
+
_this4._height = "500px";
|
|
502
|
+
_this4._server = "production";
|
|
503
|
+
_this4._viewer = null;
|
|
504
|
+
return _this4;
|
|
632
505
|
}
|
|
633
506
|
|
|
634
507
|
_createClass(PlattarEmbed, [{
|
|
@@ -639,7 +512,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
639
512
|
}, {
|
|
640
513
|
key: "connectedCallback",
|
|
641
514
|
value: function connectedCallback() {
|
|
642
|
-
var
|
|
515
|
+
var _this5 = this;
|
|
643
516
|
|
|
644
517
|
var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
|
|
645
518
|
plattar_api_1.Server.create(plattar_api_1.Server.match(server || "production"));
|
|
@@ -674,33 +547,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
674
547
|
} else if (init === "ar-fallback-qrcode") {
|
|
675
548
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
676
549
|
})["catch"](function (_err) {
|
|
677
|
-
|
|
550
|
+
_this5.startQRCode();
|
|
678
551
|
});
|
|
679
552
|
} else if (init === "ar-fallback-viewer") {
|
|
680
553
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
681
554
|
})["catch"](function (_err) {
|
|
682
|
-
|
|
555
|
+
_this5.startViewer();
|
|
683
556
|
});
|
|
684
557
|
}
|
|
685
558
|
}
|
|
686
559
|
}, {
|
|
687
560
|
key: "initAR",
|
|
688
561
|
value: function initAR() {
|
|
689
|
-
var
|
|
562
|
+
var _this6 = this;
|
|
690
563
|
|
|
691
564
|
return new Promise(function (accept, reject) {
|
|
692
|
-
if (!
|
|
565
|
+
if (!_this6._isReady) {
|
|
693
566
|
return reject(new Error("PlattarEmbed.initAR() - cannot execute as page has not loaded yet"));
|
|
694
567
|
} // if scene is not set but product is, then use ProductAR
|
|
695
568
|
|
|
696
569
|
|
|
697
|
-
if (!
|
|
698
|
-
var product = new product_ar_1.ProductAR(
|
|
570
|
+
if (!_this6._sceneID && _this6._productID) {
|
|
571
|
+
var product = new product_ar_1.ProductAR(_this6._productID, _this6._variationID);
|
|
699
572
|
return product.init().then(accept)["catch"](reject);
|
|
700
573
|
} // otherwise, scene was set so use SceneAR
|
|
701
574
|
|
|
702
575
|
|
|
703
|
-
if (
|
|
576
|
+
if (_this6._sceneID) {
|
|
704
577
|
return reject(new Error("PlattarEmbed.initAR() - scene-id not yet supported"));
|
|
705
578
|
}
|
|
706
579
|
|
|
@@ -710,14 +583,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
710
583
|
}, {
|
|
711
584
|
key: "startAR",
|
|
712
585
|
value: function startAR() {
|
|
713
|
-
var
|
|
586
|
+
var _this7 = this;
|
|
714
587
|
|
|
715
588
|
return new Promise(function (accept, reject) {
|
|
716
|
-
if (!
|
|
589
|
+
if (!_this7._isReady) {
|
|
717
590
|
return reject(new Error("PlattarEmbed.startAR() - cannot execute as page has not loaded yet"));
|
|
718
591
|
}
|
|
719
592
|
|
|
720
|
-
|
|
593
|
+
_this7.initAR().then(function (launcher) {
|
|
721
594
|
launcher.start();
|
|
722
595
|
accept();
|
|
723
596
|
})["catch"](reject);
|
|
@@ -726,67 +599,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
726
599
|
}, {
|
|
727
600
|
key: "startViewer",
|
|
728
601
|
value: function startViewer() {
|
|
729
|
-
var
|
|
602
|
+
var _this8 = this;
|
|
730
603
|
|
|
731
604
|
return new Promise(function (accept, reject) {
|
|
732
|
-
if (!
|
|
605
|
+
if (!_this8._isReady) {
|
|
733
606
|
return reject(new Error("PlattarEmbed.startViewer() - cannot execute as page has not loaded yet"));
|
|
734
607
|
}
|
|
735
608
|
|
|
736
|
-
if (
|
|
737
|
-
|
|
609
|
+
if (_this8._viewer) {
|
|
610
|
+
_this8._viewer.remove();
|
|
738
611
|
|
|
739
|
-
|
|
612
|
+
_this8._viewer = null;
|
|
740
613
|
} // if scene is set, we use <plattar-viewer /> node from plattar-web
|
|
741
614
|
|
|
742
615
|
|
|
743
|
-
if (
|
|
616
|
+
if (_this8._sceneID) {
|
|
744
617
|
var viewer = document.createElement("plattar-viewer");
|
|
745
|
-
viewer.setAttribute("width",
|
|
746
|
-
viewer.setAttribute("height",
|
|
747
|
-
viewer.setAttribute("server",
|
|
748
|
-
viewer.setAttribute("scene-id",
|
|
618
|
+
viewer.setAttribute("width", _this8._width);
|
|
619
|
+
viewer.setAttribute("height", _this8._height);
|
|
620
|
+
viewer.setAttribute("server", _this8._server);
|
|
621
|
+
viewer.setAttribute("scene-id", _this8._sceneID);
|
|
749
622
|
|
|
750
623
|
viewer.onload = function () {
|
|
751
624
|
return accept(viewer);
|
|
752
625
|
};
|
|
753
626
|
|
|
754
|
-
var shadow =
|
|
627
|
+
var shadow = _this8.shadowRoot || _this8.attachShadow({
|
|
755
628
|
mode: 'open'
|
|
756
629
|
});
|
|
757
630
|
|
|
758
631
|
shadow.append(viewer);
|
|
759
|
-
|
|
632
|
+
_this8._viewer = viewer;
|
|
760
633
|
return;
|
|
761
634
|
} // if product is set, we use <plattar-product /> node from plattar-web
|
|
762
635
|
|
|
763
636
|
|
|
764
|
-
if (
|
|
637
|
+
if (_this8._productID) {
|
|
765
638
|
var _viewer = document.createElement("plattar-product");
|
|
766
639
|
|
|
767
|
-
_viewer.setAttribute("width",
|
|
640
|
+
_viewer.setAttribute("width", _this8._width);
|
|
768
641
|
|
|
769
|
-
_viewer.setAttribute("height",
|
|
642
|
+
_viewer.setAttribute("height", _this8._height);
|
|
770
643
|
|
|
771
|
-
_viewer.setAttribute("server",
|
|
644
|
+
_viewer.setAttribute("server", _this8._server);
|
|
772
645
|
|
|
773
|
-
_viewer.setAttribute("product-id",
|
|
646
|
+
_viewer.setAttribute("product-id", _this8._productID);
|
|
774
647
|
|
|
775
|
-
if (
|
|
776
|
-
_viewer.setAttribute("variation-id",
|
|
648
|
+
if (_this8._variationID) {
|
|
649
|
+
_viewer.setAttribute("variation-id", _this8._variationID);
|
|
777
650
|
}
|
|
778
651
|
|
|
779
652
|
_viewer.onload = function () {
|
|
780
653
|
return accept(_viewer);
|
|
781
654
|
};
|
|
782
655
|
|
|
783
|
-
var _shadow =
|
|
656
|
+
var _shadow = _this8.shadowRoot || _this8.attachShadow({
|
|
784
657
|
mode: 'open'
|
|
785
658
|
});
|
|
786
659
|
|
|
787
660
|
_shadow.append(_viewer);
|
|
788
661
|
|
|
789
|
-
|
|
662
|
+
_this8._viewer = _viewer;
|
|
790
663
|
return;
|
|
791
664
|
}
|
|
792
665
|
|
|
@@ -796,11 +669,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
796
669
|
}, {
|
|
797
670
|
key: "startQRCode",
|
|
798
671
|
value: function startQRCode() {
|
|
799
|
-
var
|
|
672
|
+
var _this9 = this;
|
|
800
673
|
|
|
801
674
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
802
675
|
return new Promise(function (accept, reject) {
|
|
803
|
-
if (!
|
|
676
|
+
if (!_this9._isReady) {
|
|
804
677
|
return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as page has not loaded yet"));
|
|
805
678
|
}
|
|
806
679
|
|
|
@@ -809,17 +682,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
809
682
|
margin: 0
|
|
810
683
|
};
|
|
811
684
|
|
|
812
|
-
if (
|
|
813
|
-
|
|
685
|
+
if (_this9._viewer) {
|
|
686
|
+
_this9._viewer.remove();
|
|
814
687
|
|
|
815
|
-
|
|
688
|
+
_this9._viewer = null;
|
|
816
689
|
} // if scene is set, we embed a QR code that takes us to viewer.html
|
|
817
690
|
|
|
818
691
|
|
|
819
|
-
if (
|
|
692
|
+
if (_this9._sceneID) {
|
|
820
693
|
var viewer = document.createElement("plattar-qrcode");
|
|
821
|
-
viewer.setAttribute("width",
|
|
822
|
-
viewer.setAttribute("height",
|
|
694
|
+
viewer.setAttribute("width", _this9._width);
|
|
695
|
+
viewer.setAttribute("height", _this9._height);
|
|
823
696
|
|
|
824
697
|
if (opt.color) {
|
|
825
698
|
viewer.setAttribute("color", opt.color);
|
|
@@ -829,7 +702,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
829
702
|
viewer.setAttribute("margin", "" + opt.margin);
|
|
830
703
|
}
|
|
831
704
|
|
|
832
|
-
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" +
|
|
705
|
+
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this9._sceneID;
|
|
833
706
|
|
|
834
707
|
viewer.setAttribute("url", dst);
|
|
835
708
|
|
|
@@ -837,22 +710,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
837
710
|
return accept(viewer);
|
|
838
711
|
};
|
|
839
712
|
|
|
840
|
-
var shadow =
|
|
713
|
+
var shadow = _this9.shadowRoot || _this9.attachShadow({
|
|
841
714
|
mode: 'open'
|
|
842
715
|
});
|
|
843
716
|
|
|
844
717
|
shadow.append(viewer);
|
|
845
|
-
|
|
718
|
+
_this9._viewer = viewer;
|
|
846
719
|
return;
|
|
847
720
|
} // if product is set, we embed a QR code that takes us to product.html
|
|
848
721
|
|
|
849
722
|
|
|
850
|
-
if (
|
|
723
|
+
if (_this9._productID) {
|
|
851
724
|
var _viewer2 = document.createElement("plattar-qrcode");
|
|
852
725
|
|
|
853
|
-
_viewer2.setAttribute("width",
|
|
726
|
+
_viewer2.setAttribute("width", _this9._width);
|
|
854
727
|
|
|
855
|
-
_viewer2.setAttribute("height",
|
|
728
|
+
_viewer2.setAttribute("height", _this9._height);
|
|
856
729
|
|
|
857
730
|
if (opt.color) {
|
|
858
731
|
_viewer2.setAttribute("color", opt.color);
|
|
@@ -862,10 +735,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
862
735
|
_viewer2.setAttribute("margin", "" + opt.margin);
|
|
863
736
|
}
|
|
864
737
|
|
|
865
|
-
var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" +
|
|
738
|
+
var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this9._productID;
|
|
866
739
|
|
|
867
|
-
if (
|
|
868
|
-
_dst += "&variation_id=" +
|
|
740
|
+
if (_this9._variationID) {
|
|
741
|
+
_dst += "&variation_id=" + _this9._variationID;
|
|
869
742
|
}
|
|
870
743
|
|
|
871
744
|
_viewer2.setAttribute("url", _dst);
|
|
@@ -874,13 +747,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
874
747
|
return accept(_viewer2);
|
|
875
748
|
};
|
|
876
749
|
|
|
877
|
-
var _shadow2 =
|
|
750
|
+
var _shadow2 = _this9.shadowRoot || _this9.attachShadow({
|
|
878
751
|
mode: 'open'
|
|
879
752
|
});
|
|
880
753
|
|
|
881
754
|
_shadow2.append(_viewer2);
|
|
882
755
|
|
|
883
|
-
|
|
756
|
+
_this9._viewer = _viewer2;
|
|
884
757
|
return;
|
|
885
758
|
}
|
|
886
759
|
|
|
@@ -894,10 +767,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
894
767
|
|
|
895
768
|
exports["default"] = PlattarEmbed;
|
|
896
769
|
}, {
|
|
897
|
-
"../ar/product-ar":
|
|
898
|
-
"@plattar/plattar-api":
|
|
770
|
+
"../ar/product-ar": 3,
|
|
771
|
+
"@plattar/plattar-api": 34
|
|
899
772
|
}],
|
|
900
|
-
|
|
773
|
+
6: [function (require, module, exports) {
|
|
901
774
|
"use strict";
|
|
902
775
|
|
|
903
776
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -994,32 +867,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
994
867
|
|
|
995
868
|
console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
|
|
996
869
|
}, {
|
|
997
|
-
"./ar/configurator-ar":
|
|
998
|
-
"./ar/product-ar":
|
|
999
|
-
"./ar/scene-ar":
|
|
1000
|
-
"./embed/plattar-embed":
|
|
1001
|
-
"./util/util":
|
|
1002
|
-
"./version":
|
|
1003
|
-
"@plattar/plattar-qrcode":
|
|
1004
|
-
"@plattar/plattar-web":
|
|
870
|
+
"./ar/configurator-ar": 1,
|
|
871
|
+
"./ar/product-ar": 3,
|
|
872
|
+
"./ar/scene-ar": 4,
|
|
873
|
+
"./embed/plattar-embed": 5,
|
|
874
|
+
"./util/util": 7,
|
|
875
|
+
"./version": 8,
|
|
876
|
+
"@plattar/plattar-qrcode": 99,
|
|
877
|
+
"@plattar/plattar-web": 111
|
|
1005
878
|
}],
|
|
1006
|
-
|
|
879
|
+
7: [function (require, module, exports) {
|
|
1007
880
|
"use strict";
|
|
1008
881
|
|
|
1009
882
|
Object.defineProperty(exports, "__esModule", {
|
|
1010
883
|
value: true
|
|
1011
884
|
});
|
|
1012
885
|
exports.Util = void 0;
|
|
1013
|
-
var _lut = [];
|
|
1014
|
-
|
|
1015
|
-
for (var i = 0; i < 256; i++) {
|
|
1016
|
-
_lut[i] = (i < 16 ? '0' : '') + i.toString(16);
|
|
1017
|
-
}
|
|
1018
886
|
/**
|
|
1019
887
|
* Static Utility Functions
|
|
1020
888
|
*/
|
|
1021
889
|
|
|
1022
|
-
|
|
1023
890
|
var Util = /*#__PURE__*/function () {
|
|
1024
891
|
function Util() {
|
|
1025
892
|
_classCallCheck(this, Util);
|
|
@@ -1081,16 +948,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1081
948
|
|
|
1082
949
|
return false;
|
|
1083
950
|
}
|
|
1084
|
-
}, {
|
|
1085
|
-
key: "generateUUID",
|
|
1086
|
-
value: function generateUUID() {
|
|
1087
|
-
var d0 = Math.random() * 0xffffffff | 0;
|
|
1088
|
-
var d1 = Math.random() * 0xffffffff | 0;
|
|
1089
|
-
var d2 = Math.random() * 0xffffffff | 0;
|
|
1090
|
-
var d3 = Math.random() * 0xffffffff | 0;
|
|
1091
|
-
var uuid = _lut[d0 & 0xff] + _lut[d0 >> 8 & 0xff] + _lut[d0 >> 16 & 0xff] + _lut[d0 >> 24 & 0xff] + '-' + _lut[d1 & 0xff] + _lut[d1 >> 8 & 0xff] + '-' + _lut[d1 >> 16 & 0x0f | 0x40] + _lut[d1 >> 24 & 0xff] + '-' + _lut[d2 & 0x3f | 0x80] + _lut[d2 >> 8 & 0xff] + '-' + _lut[d2 >> 16 & 0xff] + _lut[d2 >> 24 & 0xff] + _lut[d3 & 0xff] + _lut[d3 >> 8 & 0xff] + _lut[d3 >> 16 & 0xff] + _lut[d3 >> 24 & 0xff];
|
|
1092
|
-
return uuid.toLowerCase();
|
|
1093
|
-
}
|
|
1094
951
|
}, {
|
|
1095
952
|
key: "getIOSVersion",
|
|
1096
953
|
value: function getIOSVersion() {
|
|
@@ -1130,15 +987,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1130
987
|
|
|
1131
988
|
exports.Util = Util;
|
|
1132
989
|
}, {}],
|
|
1133
|
-
|
|
990
|
+
8: [function (require, module, exports) {
|
|
1134
991
|
"use strict";
|
|
1135
992
|
|
|
1136
993
|
Object.defineProperty(exports, "__esModule", {
|
|
1137
994
|
value: true
|
|
1138
995
|
});
|
|
1139
|
-
exports["default"] = "1.
|
|
996
|
+
exports["default"] = "1.116.1";
|
|
1140
997
|
}, {}],
|
|
1141
|
-
|
|
998
|
+
9: [function (require, module, exports) {
|
|
1142
999
|
"use strict";
|
|
1143
1000
|
|
|
1144
1001
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1154,7 +1011,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1154
1011
|
|
|
1155
1012
|
exports["default"] = ARViewer;
|
|
1156
1013
|
}, {}],
|
|
1157
|
-
|
|
1014
|
+
10: [function (require, module, exports) {
|
|
1158
1015
|
"use strict";
|
|
1159
1016
|
|
|
1160
1017
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1175,17 +1032,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1175
1032
|
var _super5 = _createSuper(QuicklookViewer);
|
|
1176
1033
|
|
|
1177
1034
|
function QuicklookViewer() {
|
|
1178
|
-
var
|
|
1035
|
+
var _this10;
|
|
1179
1036
|
|
|
1180
1037
|
_classCallCheck(this, QuicklookViewer);
|
|
1181
1038
|
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1039
|
+
_this10 = _super5.call(this);
|
|
1040
|
+
_this10.araction = null;
|
|
1041
|
+
_this10.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
|
|
1185
1042
|
|
|
1186
|
-
|
|
1043
|
+
_this10.arcallback = function () {};
|
|
1187
1044
|
|
|
1188
|
-
return
|
|
1045
|
+
return _this10;
|
|
1189
1046
|
}
|
|
1190
1047
|
|
|
1191
1048
|
_createClass(QuicklookViewer, [{
|
|
@@ -1201,7 +1058,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1201
1058
|
}, {
|
|
1202
1059
|
key: "start",
|
|
1203
1060
|
value: function start() {
|
|
1204
|
-
var
|
|
1061
|
+
var _this11 = this;
|
|
1205
1062
|
|
|
1206
1063
|
if (!this.modelUrl) {
|
|
1207
1064
|
throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
|
|
@@ -1216,7 +1073,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1216
1073
|
if (araction) {
|
|
1217
1074
|
var handleQuicklook = function handleQuicklook(event) {
|
|
1218
1075
|
if (event.data === "_apple_ar_quicklook_button_tapped") {
|
|
1219
|
-
|
|
1076
|
+
_this11.arcallback();
|
|
1220
1077
|
}
|
|
1221
1078
|
|
|
1222
1079
|
document.body.removeChild(anchor);
|
|
@@ -1242,9 +1099,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1242
1099
|
|
|
1243
1100
|
exports["default"] = QuicklookViewer;
|
|
1244
1101
|
}, {
|
|
1245
|
-
"./ar-viewer":
|
|
1102
|
+
"./ar-viewer": 9
|
|
1246
1103
|
}],
|
|
1247
|
-
|
|
1104
|
+
11: [function (require, module, exports) {
|
|
1248
1105
|
"use strict";
|
|
1249
1106
|
|
|
1250
1107
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1300,9 +1157,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1300
1157
|
|
|
1301
1158
|
exports["default"] = RealityViewer;
|
|
1302
1159
|
}, {
|
|
1303
|
-
"./ar-viewer":
|
|
1160
|
+
"./ar-viewer": 9
|
|
1304
1161
|
}],
|
|
1305
|
-
|
|
1162
|
+
12: [function (require, module, exports) {
|
|
1306
1163
|
"use strict";
|
|
1307
1164
|
|
|
1308
1165
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1323,16 +1180,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1323
1180
|
var _super7 = _createSuper(SceneViewer);
|
|
1324
1181
|
|
|
1325
1182
|
function SceneViewer() {
|
|
1326
|
-
var
|
|
1183
|
+
var _this12;
|
|
1327
1184
|
|
|
1328
1185
|
_classCallCheck(this, SceneViewer);
|
|
1329
1186
|
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
return
|
|
1187
|
+
_this12 = _super7.call(this);
|
|
1188
|
+
_this12.araction = null;
|
|
1189
|
+
_this12.isVertical = false;
|
|
1190
|
+
_this12.titleHTML = "<b>" + document.title;
|
|
1191
|
+
_this12.isVertical = false;
|
|
1192
|
+
return _this12;
|
|
1336
1193
|
}
|
|
1337
1194
|
|
|
1338
1195
|
_createClass(SceneViewer, [{
|
|
@@ -1389,9 +1246,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1389
1246
|
|
|
1390
1247
|
exports["default"] = SceneViewer;
|
|
1391
1248
|
}, {
|
|
1392
|
-
"./ar-viewer":
|
|
1249
|
+
"./ar-viewer": 9
|
|
1393
1250
|
}],
|
|
1394
|
-
|
|
1251
|
+
13: [function (require, module, exports) {
|
|
1395
1252
|
"use strict";
|
|
1396
1253
|
|
|
1397
1254
|
var Messenger = require("./messenger/messenger.js");
|
|
@@ -1427,12 +1284,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1427
1284
|
version: Version
|
|
1428
1285
|
};
|
|
1429
1286
|
}, {
|
|
1430
|
-
"./memory/memory.js":
|
|
1431
|
-
"./messenger/global-event-handler.js":
|
|
1432
|
-
"./messenger/messenger.js":
|
|
1433
|
-
"./version":
|
|
1287
|
+
"./memory/memory.js": 14,
|
|
1288
|
+
"./messenger/global-event-handler.js": 21,
|
|
1289
|
+
"./messenger/messenger.js": 22,
|
|
1290
|
+
"./version": 27
|
|
1434
1291
|
}],
|
|
1435
|
-
|
|
1292
|
+
14: [function (require, module, exports) {
|
|
1436
1293
|
var PermanentMemory = require("./permanent-memory");
|
|
1437
1294
|
|
|
1438
1295
|
var TemporaryMemory = require("./temporary-memory");
|
|
@@ -1444,7 +1301,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1444
1301
|
|
|
1445
1302
|
var Memory = /*#__PURE__*/function () {
|
|
1446
1303
|
function Memory(messengerInstance) {
|
|
1447
|
-
var
|
|
1304
|
+
var _this13 = this;
|
|
1448
1305
|
|
|
1449
1306
|
_classCallCheck(this, Memory);
|
|
1450
1307
|
|
|
@@ -1453,11 +1310,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1453
1310
|
this._permMemory = new PermanentMemory(messengerInstance);
|
|
1454
1311
|
|
|
1455
1312
|
this._messenger.self.__memory__set_temp_var = function (name, data) {
|
|
1456
|
-
|
|
1313
|
+
_this13._tempMemory[name] = data;
|
|
1457
1314
|
};
|
|
1458
1315
|
|
|
1459
1316
|
this._messenger.self.__memory__set_perm_var = function (name, data) {
|
|
1460
|
-
|
|
1317
|
+
_this13._permMemory[name] = data;
|
|
1461
1318
|
};
|
|
1462
1319
|
}
|
|
1463
1320
|
|
|
@@ -1478,10 +1335,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1478
1335
|
|
|
1479
1336
|
module.exports = Memory;
|
|
1480
1337
|
}, {
|
|
1481
|
-
"./permanent-memory":
|
|
1482
|
-
"./temporary-memory":
|
|
1338
|
+
"./permanent-memory": 15,
|
|
1339
|
+
"./temporary-memory": 16
|
|
1483
1340
|
}],
|
|
1484
|
-
|
|
1341
|
+
15: [function (require, module, exports) {
|
|
1485
1342
|
var WrappedValue = require("./wrapped-value");
|
|
1486
1343
|
|
|
1487
1344
|
var PermanentMemory = function PermanentMemory(messengerInstance) {
|
|
@@ -1579,9 +1436,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1579
1436
|
|
|
1580
1437
|
module.exports = PermanentMemory;
|
|
1581
1438
|
}, {
|
|
1582
|
-
"./wrapped-value":
|
|
1439
|
+
"./wrapped-value": 17
|
|
1583
1440
|
}],
|
|
1584
|
-
|
|
1441
|
+
16: [function (require, module, exports) {
|
|
1585
1442
|
var WrappedValue = require("./wrapped-value");
|
|
1586
1443
|
|
|
1587
1444
|
var TemporaryMemory = function TemporaryMemory(messengerInstance) {
|
|
@@ -1658,9 +1515,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1658
1515
|
|
|
1659
1516
|
module.exports = TemporaryMemory;
|
|
1660
1517
|
}, {
|
|
1661
|
-
"./wrapped-value":
|
|
1518
|
+
"./wrapped-value": 17
|
|
1662
1519
|
}],
|
|
1663
|
-
|
|
1520
|
+
17: [function (require, module, exports) {
|
|
1664
1521
|
/**
|
|
1665
1522
|
* WrappedValue represents a generic value type with a callback function
|
|
1666
1523
|
* for when the value has changed
|
|
@@ -1778,7 +1635,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1778
1635
|
|
|
1779
1636
|
module.exports = WrappedValue;
|
|
1780
1637
|
}, {}],
|
|
1781
|
-
|
|
1638
|
+
18: [function (require, module, exports) {
|
|
1782
1639
|
/**
|
|
1783
1640
|
* Broadcaster is used to call functions in multiple contexts at the
|
|
1784
1641
|
* same time. This can be useful without having to handle complex logic
|
|
@@ -1845,7 +1702,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1845
1702
|
|
|
1846
1703
|
module.exports = Broadcaster;
|
|
1847
1704
|
}, {}],
|
|
1848
|
-
|
|
1705
|
+
19: [function (require, module, exports) {
|
|
1849
1706
|
var WrappedFunction = require("./wrapped-local-function");
|
|
1850
1707
|
|
|
1851
1708
|
var CurrentFunctionList = function CurrentFunctionList() {
|
|
@@ -1908,9 +1765,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1908
1765
|
|
|
1909
1766
|
module.exports = CurrentFunctionList;
|
|
1910
1767
|
}, {
|
|
1911
|
-
"./wrapped-local-function":
|
|
1768
|
+
"./wrapped-local-function": 20
|
|
1912
1769
|
}],
|
|
1913
|
-
|
|
1770
|
+
20: [function (require, module, exports) {
|
|
1914
1771
|
var Util = require("../util/util.js");
|
|
1915
1772
|
/**
|
|
1916
1773
|
* WrappedLocalFunction represents a container that holds and maintains a specific function
|
|
@@ -1955,20 +1812,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1955
1812
|
}, {
|
|
1956
1813
|
key: "exec",
|
|
1957
1814
|
value: function exec() {
|
|
1958
|
-
var
|
|
1815
|
+
var _this14 = this;
|
|
1959
1816
|
|
|
1960
1817
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
1961
1818
|
args[_key3] = arguments[_key3];
|
|
1962
1819
|
}
|
|
1963
1820
|
|
|
1964
1821
|
return new Promise(function (accept, reject) {
|
|
1965
|
-
if (!
|
|
1966
|
-
return reject(new Error("WrappedLocalFunction.exec() function with name " +
|
|
1822
|
+
if (!_this14._value) {
|
|
1823
|
+
return reject(new Error("WrappedLocalFunction.exec() function with name " + _this14._funcName + "() is not defined"));
|
|
1967
1824
|
}
|
|
1968
1825
|
|
|
1969
1826
|
try {
|
|
1970
1827
|
// otherwise execute the function
|
|
1971
|
-
var rObject =
|
|
1828
|
+
var rObject = _this14._execute.apply(_this14, args); // we need to check if the returned object is a Promise, if so, handle it
|
|
1972
1829
|
// differently. This can happen if the function wants to execute asyn
|
|
1973
1830
|
|
|
1974
1831
|
|
|
@@ -2020,9 +1877,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2020
1877
|
|
|
2021
1878
|
module.exports = WrappedLocalFunction;
|
|
2022
1879
|
}, {
|
|
2023
|
-
"../util/util.js":
|
|
1880
|
+
"../util/util.js": 26
|
|
2024
1881
|
}],
|
|
2025
|
-
|
|
1882
|
+
21: [function (require, module, exports) {
|
|
2026
1883
|
var RemoteInterface = require("./remote-interface.js");
|
|
2027
1884
|
/**
|
|
2028
1885
|
* This is a singleton class that handles events on a global basis. Allows
|
|
@@ -2032,7 +1889,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2032
1889
|
|
|
2033
1890
|
var GlobalEventHandler = /*#__PURE__*/function () {
|
|
2034
1891
|
function GlobalEventHandler() {
|
|
2035
|
-
var
|
|
1892
|
+
var _this15 = this;
|
|
2036
1893
|
|
|
2037
1894
|
_classCallCheck(this, GlobalEventHandler);
|
|
2038
1895
|
|
|
@@ -2054,10 +1911,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2054
1911
|
|
|
2055
1912
|
if (jsonData && jsonData.event && jsonData.data) {
|
|
2056
1913
|
// see if there are any listeners for this
|
|
2057
|
-
if (
|
|
1914
|
+
if (_this15._eventListeners[jsonData.event]) {
|
|
2058
1915
|
var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
|
|
2059
1916
|
|
|
2060
|
-
|
|
1917
|
+
_this15._eventListeners[jsonData.event].forEach(function (callback) {
|
|
2061
1918
|
try {
|
|
2062
1919
|
callback(remoteInterface, jsonData.data);
|
|
2063
1920
|
} catch (e) {
|
|
@@ -2114,9 +1971,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2114
1971
|
|
|
2115
1972
|
module.exports = GlobalEventHandler;
|
|
2116
1973
|
}, {
|
|
2117
|
-
"./remote-interface.js":
|
|
1974
|
+
"./remote-interface.js": 23
|
|
2118
1975
|
}],
|
|
2119
|
-
|
|
1976
|
+
22: [function (require, module, exports) {
|
|
2120
1977
|
var CurrentFunctionList = require("./current/current-function-list");
|
|
2121
1978
|
|
|
2122
1979
|
var RemoteInterface = require("./remote-interface");
|
|
@@ -2253,40 +2110,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2253
2110
|
}, {
|
|
2254
2111
|
key: "_registerListeners",
|
|
2255
2112
|
value: function _registerListeners() {
|
|
2256
|
-
var
|
|
2113
|
+
var _this16 = this;
|
|
2257
2114
|
|
|
2258
2115
|
GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
|
|
2259
2116
|
var iframeID = src.id; // check reserved key list
|
|
2260
2117
|
|
|
2261
2118
|
switch (iframeID) {
|
|
2262
2119
|
case undefined:
|
|
2263
|
-
throw new Error("Messenger[" +
|
|
2120
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID cannot be undefined");
|
|
2264
2121
|
|
|
2265
2122
|
case "self":
|
|
2266
|
-
throw new Error("Messenger[" +
|
|
2123
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
2267
2124
|
|
|
2268
2125
|
case "parent":
|
|
2269
|
-
throw new Error("Messenger[" +
|
|
2126
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
2270
2127
|
|
|
2271
2128
|
case "id":
|
|
2272
|
-
throw new Error("Messenger[" +
|
|
2129
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
2273
2130
|
|
|
2274
2131
|
case "onload":
|
|
2275
|
-
throw new Error("Messenger[" +
|
|
2132
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
2276
2133
|
|
|
2277
2134
|
default:
|
|
2278
2135
|
break;
|
|
2279
2136
|
} // initialise the child iframe as a messenger pipe
|
|
2280
2137
|
|
|
2281
2138
|
|
|
2282
|
-
|
|
2139
|
+
_this16[iframeID] = new RemoteFunctionList(iframeID);
|
|
2283
2140
|
|
|
2284
|
-
|
|
2141
|
+
_this16[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
2285
2142
|
|
|
2286
2143
|
|
|
2287
|
-
|
|
2144
|
+
_this16._broadcaster._push(iframeID);
|
|
2288
2145
|
|
|
2289
|
-
var callbacks =
|
|
2146
|
+
var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
|
|
2290
2147
|
|
|
2291
2148
|
if (callbacks.has(iframeID)) {
|
|
2292
2149
|
var array = callbacks.get(iframeID);
|
|
@@ -2310,33 +2167,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2310
2167
|
|
|
2311
2168
|
switch (iframeID) {
|
|
2312
2169
|
case undefined:
|
|
2313
|
-
throw new Error("Messenger[" +
|
|
2170
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID cannot be undefined");
|
|
2314
2171
|
|
|
2315
2172
|
case "self":
|
|
2316
|
-
throw new Error("Messenger[" +
|
|
2173
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
2317
2174
|
|
|
2318
2175
|
case "parent":
|
|
2319
|
-
throw new Error("Messenger[" +
|
|
2176
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
2320
2177
|
|
|
2321
2178
|
case "id":
|
|
2322
|
-
throw new Error("Messenger[" +
|
|
2179
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
2323
2180
|
|
|
2324
2181
|
case "onload":
|
|
2325
|
-
throw new Error("Messenger[" +
|
|
2182
|
+
throw new Error("Messenger[" + _this16._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
2326
2183
|
|
|
2327
2184
|
default:
|
|
2328
2185
|
break;
|
|
2329
2186
|
} // initialise the child iframe as a messenger pipe
|
|
2330
2187
|
|
|
2331
2188
|
|
|
2332
|
-
|
|
2189
|
+
_this16[iframeID] = new RemoteFunctionList(iframeID);
|
|
2333
2190
|
|
|
2334
|
-
|
|
2191
|
+
_this16[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
2335
2192
|
|
|
2336
2193
|
|
|
2337
|
-
|
|
2194
|
+
_this16._broadcaster._push(iframeID);
|
|
2338
2195
|
|
|
2339
|
-
var callbacks =
|
|
2196
|
+
var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
|
|
2340
2197
|
|
|
2341
2198
|
if (callbacks.has(iframeID)) {
|
|
2342
2199
|
var array = callbacks.get(iframeID);
|
|
@@ -2356,11 +2213,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2356
2213
|
});
|
|
2357
2214
|
GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
|
|
2358
2215
|
var iframeID = "parent";
|
|
2359
|
-
|
|
2216
|
+
_this16[iframeID] = new RemoteFunctionList(iframeID);
|
|
2360
2217
|
|
|
2361
|
-
|
|
2218
|
+
_this16[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
2362
2219
|
|
|
2363
|
-
var callbacks =
|
|
2220
|
+
var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
|
|
2364
2221
|
|
|
2365
2222
|
if (callbacks.has(iframeID)) {
|
|
2366
2223
|
var array = callbacks.get(iframeID);
|
|
@@ -2385,11 +2242,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2385
2242
|
|
|
2386
2243
|
GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
|
|
2387
2244
|
var iframeID = "parent";
|
|
2388
|
-
|
|
2245
|
+
_this16[iframeID] = new RemoteFunctionList(iframeID);
|
|
2389
2246
|
|
|
2390
|
-
|
|
2247
|
+
_this16[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
2391
2248
|
|
|
2392
|
-
var callbacks =
|
|
2249
|
+
var callbacks = _this16._callbacks; // we have registered callbacks, begin execution
|
|
2393
2250
|
|
|
2394
2251
|
if (callbacks.has(iframeID)) {
|
|
2395
2252
|
var array = callbacks.get(iframeID);
|
|
@@ -2445,14 +2302,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2445
2302
|
|
|
2446
2303
|
module.exports = Messenger;
|
|
2447
2304
|
}, {
|
|
2448
|
-
"./broadcaster.js":
|
|
2449
|
-
"./current/current-function-list":
|
|
2450
|
-
"./global-event-handler.js":
|
|
2451
|
-
"./remote-interface":
|
|
2452
|
-
"./remote/remote-function-list":
|
|
2453
|
-
"./util/util.js":
|
|
2305
|
+
"./broadcaster.js": 18,
|
|
2306
|
+
"./current/current-function-list": 19,
|
|
2307
|
+
"./global-event-handler.js": 21,
|
|
2308
|
+
"./remote-interface": 23,
|
|
2309
|
+
"./remote/remote-function-list": 24,
|
|
2310
|
+
"./util/util.js": 26
|
|
2454
2311
|
}],
|
|
2455
|
-
|
|
2312
|
+
23: [function (require, module, exports) {
|
|
2456
2313
|
/**
|
|
2457
2314
|
* Provides a single useful interface for performing remote function calls
|
|
2458
2315
|
*/
|
|
@@ -2524,7 +2381,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2524
2381
|
|
|
2525
2382
|
module.exports = RemoteInterface;
|
|
2526
2383
|
}, {}],
|
|
2527
|
-
|
|
2384
|
+
24: [function (require, module, exports) {
|
|
2528
2385
|
var WrappedFunction = require("./wrapped-remote-function");
|
|
2529
2386
|
|
|
2530
2387
|
var RemoteFunctionList = /*#__PURE__*/function () {
|
|
@@ -2612,9 +2469,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2612
2469
|
|
|
2613
2470
|
module.exports = RemoteFunctionList;
|
|
2614
2471
|
}, {
|
|
2615
|
-
"./wrapped-remote-function":
|
|
2472
|
+
"./wrapped-remote-function": 25
|
|
2616
2473
|
}],
|
|
2617
|
-
|
|
2474
|
+
25: [function (require, module, exports) {
|
|
2618
2475
|
var Util = require("../util/util.js");
|
|
2619
2476
|
|
|
2620
2477
|
var GlobalEventHandler = require("../global-event-handler.js");
|
|
@@ -2627,7 +2484,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2627
2484
|
|
|
2628
2485
|
var WrappedRemoteFunction = /*#__PURE__*/function () {
|
|
2629
2486
|
function WrappedRemoteFunction(funcName, remoteInterface) {
|
|
2630
|
-
var
|
|
2487
|
+
var _this17 = this;
|
|
2631
2488
|
|
|
2632
2489
|
_classCallCheck(this, WrappedRemoteFunction);
|
|
2633
2490
|
|
|
@@ -2638,19 +2495,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2638
2495
|
GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
|
|
2639
2496
|
var instanceID = data.instance_id; // the function name must match
|
|
2640
2497
|
|
|
2641
|
-
if (data.function_name !==
|
|
2498
|
+
if (data.function_name !== _this17._funcName) {
|
|
2642
2499
|
return;
|
|
2643
2500
|
} // the instance ID must be found, otherwise this is a rogue execution
|
|
2644
2501
|
// that can be ignored (should not happen)
|
|
2645
2502
|
|
|
2646
2503
|
|
|
2647
|
-
if (!
|
|
2504
|
+
if (!_this17._callInstances[instanceID]) {
|
|
2648
2505
|
return;
|
|
2649
2506
|
}
|
|
2650
2507
|
|
|
2651
|
-
var promise =
|
|
2508
|
+
var promise = _this17._callInstances[instanceID]; // remove the old instance
|
|
2652
2509
|
|
|
2653
|
-
delete
|
|
2510
|
+
delete _this17._callInstances[instanceID]; // perform the promise callbacks
|
|
2654
2511
|
|
|
2655
2512
|
if (data.function_status === "success") {
|
|
2656
2513
|
promise.accept(data.function_args);
|
|
@@ -2667,7 +2524,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2667
2524
|
_createClass(WrappedRemoteFunction, [{
|
|
2668
2525
|
key: "exec",
|
|
2669
2526
|
value: function exec() {
|
|
2670
|
-
var
|
|
2527
|
+
var _this18 = this;
|
|
2671
2528
|
|
|
2672
2529
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
2673
2530
|
args[_key4] = arguments[_key4];
|
|
@@ -2687,72 +2544,431 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2687
2544
|
|
|
2688
2545
|
return new Promise(function (accept, reject) {
|
|
2689
2546
|
// save this promise to be executed later
|
|
2690
|
-
|
|
2547
|
+
_this18._callInstances[instanceID] = {
|
|
2691
2548
|
accept: accept,
|
|
2692
2549
|
reject: reject
|
|
2693
2550
|
}; // execute this event in another context
|
|
2694
2551
|
|
|
2695
|
-
|
|
2552
|
+
_this18._remoteInterface.send("__messenger__exec_fnc", {
|
|
2696
2553
|
instance_id: instanceID,
|
|
2697
|
-
function_name:
|
|
2554
|
+
function_name: _this18._funcName,
|
|
2698
2555
|
function_args: args
|
|
2699
2556
|
});
|
|
2700
2557
|
});
|
|
2701
2558
|
}
|
|
2702
2559
|
}]);
|
|
2703
2560
|
|
|
2704
|
-
return WrappedRemoteFunction;
|
|
2561
|
+
return WrappedRemoteFunction;
|
|
2562
|
+
}();
|
|
2563
|
+
|
|
2564
|
+
module.exports = WrappedRemoteFunction;
|
|
2565
|
+
}, {
|
|
2566
|
+
"../global-event-handler.js": 21,
|
|
2567
|
+
"../util/util.js": 26
|
|
2568
|
+
}],
|
|
2569
|
+
26: [function (require, module, exports) {
|
|
2570
|
+
var Util = /*#__PURE__*/function () {
|
|
2571
|
+
function Util() {
|
|
2572
|
+
_classCallCheck(this, Util);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
_createClass(Util, null, [{
|
|
2576
|
+
key: "id",
|
|
2577
|
+
value:
|
|
2578
|
+
/**
|
|
2579
|
+
* generate a quick, random ID thats useful for message digests and class checks
|
|
2580
|
+
*/
|
|
2581
|
+
function id() {
|
|
2582
|
+
return Math.abs(Math.floor(Math.random() * 10000000000000));
|
|
2583
|
+
}
|
|
2584
|
+
/**
|
|
2585
|
+
* checks if the provided object is a type of Promise object
|
|
2586
|
+
*/
|
|
2587
|
+
|
|
2588
|
+
}, {
|
|
2589
|
+
key: "isPromise",
|
|
2590
|
+
value: function isPromise(obj) {
|
|
2591
|
+
return !!obj && (_typeof(obj) === "object" || typeof obj === "function") && typeof obj.then === "function";
|
|
2592
|
+
}
|
|
2593
|
+
/**
|
|
2594
|
+
* checks if the provided object is a type of Error object
|
|
2595
|
+
*/
|
|
2596
|
+
|
|
2597
|
+
}, {
|
|
2598
|
+
key: "isError",
|
|
2599
|
+
value: function isError(e) {
|
|
2600
|
+
return e && e.stack && e.message && typeof e.stack === "string" && typeof e.message === "string";
|
|
2601
|
+
}
|
|
2602
|
+
}]);
|
|
2603
|
+
|
|
2604
|
+
return Util;
|
|
2605
|
+
}();
|
|
2606
|
+
|
|
2607
|
+
module.exports = Util;
|
|
2608
|
+
}, {}],
|
|
2609
|
+
27: [function (require, module, exports) {
|
|
2610
|
+
module.exports = "1.113.6";
|
|
2611
|
+
}, {}],
|
|
2612
|
+
28: [function (require, module, exports) {
|
|
2613
|
+
"use strict";
|
|
2614
|
+
|
|
2615
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2616
|
+
value: true
|
|
2617
|
+
});
|
|
2618
|
+
exports.AnalyticsData = void 0;
|
|
2619
|
+
|
|
2620
|
+
var util_1 = require("../util/util");
|
|
2621
|
+
|
|
2622
|
+
var AnalyticsData = /*#__PURE__*/function () {
|
|
2623
|
+
function AnalyticsData() {
|
|
2624
|
+
_classCallCheck(this, AnalyticsData);
|
|
2625
|
+
|
|
2626
|
+
this._map = new Map();
|
|
2627
|
+
this.push("source", "embed");
|
|
2628
|
+
this.push("pageTitle", document.title);
|
|
2629
|
+
this.push("pageURL", location.href);
|
|
2630
|
+
this.push("referrer", document.referrer);
|
|
2631
|
+
this.push("user_id", AnalyticsData._GetUserID());
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
_createClass(AnalyticsData, [{
|
|
2635
|
+
key: "push",
|
|
2636
|
+
value: function push(key, value) {
|
|
2637
|
+
this._map.set(key, value);
|
|
2638
|
+
}
|
|
2639
|
+
}, {
|
|
2640
|
+
key: "data",
|
|
2641
|
+
get: function get() {
|
|
2642
|
+
return Object.fromEntries(this._map);
|
|
2643
|
+
}
|
|
2644
|
+
}], [{
|
|
2645
|
+
key: "_GetUserID",
|
|
2646
|
+
value: function _GetUserID() {
|
|
2647
|
+
var key = "plattar_user_id";
|
|
2648
|
+
var userID = null;
|
|
2649
|
+
|
|
2650
|
+
try {
|
|
2651
|
+
userID = localStorage.getItem(key);
|
|
2652
|
+
} catch (err) {
|
|
2653
|
+
userID = util_1.Util.generateUUID(); // try storing if just generated
|
|
2654
|
+
|
|
2655
|
+
try {
|
|
2656
|
+
localStorage.setItem(key, userID);
|
|
2657
|
+
} catch (_err) {
|
|
2658
|
+
/* silent */
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
if (!userID) {
|
|
2663
|
+
userID = util_1.Util.generateUUID(); // try storing if just generated
|
|
2664
|
+
|
|
2665
|
+
try {
|
|
2666
|
+
localStorage.setItem(key, userID);
|
|
2667
|
+
} catch (_err) {
|
|
2668
|
+
/*silent */
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
return userID;
|
|
2673
|
+
}
|
|
2674
|
+
}]);
|
|
2675
|
+
|
|
2676
|
+
return AnalyticsData;
|
|
2677
|
+
}();
|
|
2678
|
+
|
|
2679
|
+
exports.AnalyticsData = AnalyticsData;
|
|
2680
|
+
}, {
|
|
2681
|
+
"../util/util": 32
|
|
2682
|
+
}],
|
|
2683
|
+
29: [function (require, module, exports) {
|
|
2684
|
+
"use strict";
|
|
2685
|
+
|
|
2686
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
2687
|
+
return mod && mod.__esModule ? mod : {
|
|
2688
|
+
"default": mod
|
|
2689
|
+
};
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2693
|
+
value: true
|
|
2694
|
+
});
|
|
2695
|
+
exports.Analytics = void 0;
|
|
2696
|
+
|
|
2697
|
+
var basic_http_1 = __importDefault(require("../util/basic-http"));
|
|
2698
|
+
|
|
2699
|
+
var analytics_data_1 = require("./analytics-data");
|
|
2700
|
+
|
|
2701
|
+
var Analytics = /*#__PURE__*/function () {
|
|
2702
|
+
function Analytics(applicationID) {
|
|
2703
|
+
var _this19 = this;
|
|
2704
|
+
|
|
2705
|
+
_classCallCheck(this, Analytics);
|
|
2706
|
+
|
|
2707
|
+
this._pageTime = null;
|
|
2708
|
+
this.origin = "production";
|
|
2709
|
+
this.event = "track";
|
|
2710
|
+
this._applicationID = applicationID;
|
|
2711
|
+
this._data = new analytics_data_1.AnalyticsData();
|
|
2712
|
+
|
|
2713
|
+
this._handlePageHide = function () {
|
|
2714
|
+
if (document.visibilityState === "hidden") {
|
|
2715
|
+
_this19._pageTime = new Date();
|
|
2716
|
+
} else if (_this19._pageTime) {
|
|
2717
|
+
var time2 = new Date();
|
|
2718
|
+
|
|
2719
|
+
var diff = time2.getTime() - _this19._pageTime.getTime();
|
|
2720
|
+
|
|
2721
|
+
var data = _this19.data;
|
|
2722
|
+
data.push("eventAction", "View Time");
|
|
2723
|
+
data.push("viewTime", diff);
|
|
2724
|
+
data.push("eventLabel", diff);
|
|
2725
|
+
|
|
2726
|
+
_this19.write();
|
|
2727
|
+
|
|
2728
|
+
_this19._pageTime = null;
|
|
2729
|
+
document.removeEventListener("visibilitychange", _this19._handlePageHide, false);
|
|
2730
|
+
}
|
|
2731
|
+
};
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
_createClass(Analytics, [{
|
|
2735
|
+
key: "query",
|
|
2736
|
+
value: function query() {
|
|
2737
|
+
var _this20 = this;
|
|
2738
|
+
|
|
2739
|
+
var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2740
|
+
|
|
2741
|
+
return new Promise(function (accept, reject) {
|
|
2742
|
+
if (!_query) {
|
|
2743
|
+
return reject(new Error("Analytics.query() - provided query was null"));
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
var url = _this20.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
2747
|
+
var data = {
|
|
2748
|
+
type: "read",
|
|
2749
|
+
application_id: _this20._applicationID,
|
|
2750
|
+
event: _this20.event,
|
|
2751
|
+
data: _query
|
|
2752
|
+
};
|
|
2753
|
+
basic_http_1["default"].exec("POST", url, data).then(function (result) {
|
|
2754
|
+
accept(result && result.results ? result.results : {});
|
|
2755
|
+
})["catch"](reject);
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
}, {
|
|
2759
|
+
key: "write",
|
|
2760
|
+
value: function write() {
|
|
2761
|
+
var _this21 = this;
|
|
2762
|
+
|
|
2763
|
+
return new Promise(function (accept, reject) {
|
|
2764
|
+
var data = _this21._data;
|
|
2765
|
+
var url = _this21.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
2766
|
+
data.push("applicationId", _this21._applicationID);
|
|
2767
|
+
var sendData = {
|
|
2768
|
+
type: "write",
|
|
2769
|
+
application_id: _this21._applicationID,
|
|
2770
|
+
origin: _this21.origin,
|
|
2771
|
+
event: _this21.event,
|
|
2772
|
+
data: data.data
|
|
2773
|
+
};
|
|
2774
|
+
basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
|
|
2775
|
+
accept(result && result.results ? result.results : {});
|
|
2776
|
+
})["catch"](reject);
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
}, {
|
|
2780
|
+
key: "startRecordEngagement",
|
|
2781
|
+
value: function startRecordEngagement() {
|
|
2782
|
+
document.addEventListener("visibilitychange", this._handlePageHide, false);
|
|
2783
|
+
}
|
|
2784
|
+
}, {
|
|
2785
|
+
key: "data",
|
|
2786
|
+
get: function get() {
|
|
2787
|
+
return this._data;
|
|
2788
|
+
}
|
|
2789
|
+
}]);
|
|
2790
|
+
|
|
2791
|
+
return Analytics;
|
|
2792
|
+
}();
|
|
2793
|
+
|
|
2794
|
+
exports.Analytics = Analytics;
|
|
2795
|
+
}, {
|
|
2796
|
+
"../util/basic-http": 31,
|
|
2797
|
+
"./analytics-data": 28
|
|
2798
|
+
}],
|
|
2799
|
+
30: [function (require, module, exports) {
|
|
2800
|
+
"use strict";
|
|
2801
|
+
|
|
2802
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
2803
|
+
if (k2 === undefined) k2 = k;
|
|
2804
|
+
Object.defineProperty(o, k2, {
|
|
2805
|
+
enumerable: true,
|
|
2806
|
+
get: function get() {
|
|
2807
|
+
return m[k];
|
|
2808
|
+
}
|
|
2809
|
+
});
|
|
2810
|
+
} : function (o, m, k, k2) {
|
|
2811
|
+
if (k2 === undefined) k2 = k;
|
|
2812
|
+
o[k2] = m[k];
|
|
2813
|
+
});
|
|
2814
|
+
|
|
2815
|
+
var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
|
|
2816
|
+
Object.defineProperty(o, "default", {
|
|
2817
|
+
enumerable: true,
|
|
2818
|
+
value: v
|
|
2819
|
+
});
|
|
2820
|
+
} : function (o, v) {
|
|
2821
|
+
o["default"] = v;
|
|
2822
|
+
});
|
|
2823
|
+
|
|
2824
|
+
var __importStar = this && this.__importStar || function (mod) {
|
|
2825
|
+
if (mod && mod.__esModule) return mod;
|
|
2826
|
+
var result = {};
|
|
2827
|
+
if (mod != null) for (var k in mod) {
|
|
2828
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
__setModuleDefault(result, mod);
|
|
2832
|
+
|
|
2833
|
+
return result;
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
2837
|
+
return mod && mod.__esModule ? mod : {
|
|
2838
|
+
"default": mod
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
|
|
2842
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2843
|
+
value: true
|
|
2844
|
+
});
|
|
2845
|
+
exports.Analytics = exports.version = void 0;
|
|
2846
|
+
exports.version = __importStar(require("./version"));
|
|
2847
|
+
|
|
2848
|
+
var analytics_1 = require("./analytics/analytics");
|
|
2849
|
+
|
|
2850
|
+
Object.defineProperty(exports, "Analytics", {
|
|
2851
|
+
enumerable: true,
|
|
2852
|
+
get: function get() {
|
|
2853
|
+
return analytics_1.Analytics;
|
|
2854
|
+
}
|
|
2855
|
+
});
|
|
2856
|
+
|
|
2857
|
+
var version_1 = __importDefault(require("./version"));
|
|
2858
|
+
|
|
2859
|
+
console.log("using @plattar/plattar-analytics v" + version_1["default"]);
|
|
2860
|
+
}, {
|
|
2861
|
+
"./analytics/analytics": 29,
|
|
2862
|
+
"./version": 33
|
|
2863
|
+
}],
|
|
2864
|
+
31: [function (require, module, exports) {
|
|
2865
|
+
"use strict";
|
|
2866
|
+
|
|
2867
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2868
|
+
value: true
|
|
2869
|
+
});
|
|
2870
|
+
/**
|
|
2871
|
+
* Simple HTTP interaction module
|
|
2872
|
+
*/
|
|
2873
|
+
|
|
2874
|
+
var BasicHTTP = /*#__PURE__*/function () {
|
|
2875
|
+
function BasicHTTP() {
|
|
2876
|
+
_classCallCheck(this, BasicHTTP);
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
_createClass(BasicHTTP, null, [{
|
|
2880
|
+
key: "exec",
|
|
2881
|
+
value: function exec(protocol, path) {
|
|
2882
|
+
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
2883
|
+
return new Promise(function (accept, reject) {
|
|
2884
|
+
try {
|
|
2885
|
+
var http = new XMLHttpRequest();
|
|
2886
|
+
http.open(protocol, path, true);
|
|
2887
|
+
http.setRequestHeader("Content-Type", "application/json");
|
|
2888
|
+
http.setRequestHeader("Accept", "application/json");
|
|
2889
|
+
|
|
2890
|
+
http.onload = function (e) {
|
|
2891
|
+
if (http.status === 200) {
|
|
2892
|
+
if (http.response) {
|
|
2893
|
+
try {
|
|
2894
|
+
var resp = JSON.parse(http.response);
|
|
2895
|
+
return accept(resp);
|
|
2896
|
+
} catch (_err) {
|
|
2897
|
+
/* silent */
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
return accept({});
|
|
2902
|
+
} else {
|
|
2903
|
+
return reject(e);
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
http.onerror = function (e) {
|
|
2908
|
+
return reject(e);
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2911
|
+
http.send(data ? JSON.stringify(data) : null);
|
|
2912
|
+
} catch (e) {
|
|
2913
|
+
return reject(e);
|
|
2914
|
+
}
|
|
2915
|
+
});
|
|
2916
|
+
}
|
|
2917
|
+
}]);
|
|
2918
|
+
|
|
2919
|
+
return BasicHTTP;
|
|
2705
2920
|
}();
|
|
2706
2921
|
|
|
2707
|
-
|
|
2708
|
-
}, {
|
|
2709
|
-
|
|
2710
|
-
"
|
|
2711
|
-
|
|
2712
|
-
|
|
2922
|
+
exports["default"] = BasicHTTP;
|
|
2923
|
+
}, {}],
|
|
2924
|
+
32: [function (require, module, exports) {
|
|
2925
|
+
"use strict";
|
|
2926
|
+
|
|
2927
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2928
|
+
value: true
|
|
2929
|
+
});
|
|
2930
|
+
exports.Util = void 0;
|
|
2931
|
+
var _lut = [];
|
|
2932
|
+
|
|
2933
|
+
for (var i = 0; i < 256; i++) {
|
|
2934
|
+
_lut[i] = (i < 16 ? '0' : '') + i.toString(16);
|
|
2935
|
+
}
|
|
2936
|
+
/**
|
|
2937
|
+
* Static Utility Functions
|
|
2938
|
+
*/
|
|
2939
|
+
|
|
2940
|
+
|
|
2713
2941
|
var Util = /*#__PURE__*/function () {
|
|
2714
2942
|
function Util() {
|
|
2715
2943
|
_classCallCheck(this, Util);
|
|
2716
2944
|
}
|
|
2717
2945
|
|
|
2718
2946
|
_createClass(Util, null, [{
|
|
2719
|
-
key: "
|
|
2720
|
-
value:
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
/**
|
|
2728
|
-
* checks if the provided object is a type of Promise object
|
|
2729
|
-
*/
|
|
2730
|
-
|
|
2731
|
-
}, {
|
|
2732
|
-
key: "isPromise",
|
|
2733
|
-
value: function isPromise(obj) {
|
|
2734
|
-
return !!obj && (_typeof(obj) === "object" || typeof obj === "function") && typeof obj.then === "function";
|
|
2735
|
-
}
|
|
2736
|
-
/**
|
|
2737
|
-
* checks if the provided object is a type of Error object
|
|
2738
|
-
*/
|
|
2739
|
-
|
|
2740
|
-
}, {
|
|
2741
|
-
key: "isError",
|
|
2742
|
-
value: function isError(e) {
|
|
2743
|
-
return e && e.stack && e.message && typeof e.stack === "string" && typeof e.message === "string";
|
|
2947
|
+
key: "generateUUID",
|
|
2948
|
+
value: function generateUUID() {
|
|
2949
|
+
var d0 = Math.random() * 0xffffffff | 0;
|
|
2950
|
+
var d1 = Math.random() * 0xffffffff | 0;
|
|
2951
|
+
var d2 = Math.random() * 0xffffffff | 0;
|
|
2952
|
+
var d3 = Math.random() * 0xffffffff | 0;
|
|
2953
|
+
var uuid = _lut[d0 & 0xff] + _lut[d0 >> 8 & 0xff] + _lut[d0 >> 16 & 0xff] + _lut[d0 >> 24 & 0xff] + '-' + _lut[d1 & 0xff] + _lut[d1 >> 8 & 0xff] + '-' + _lut[d1 >> 16 & 0x0f | 0x40] + _lut[d1 >> 24 & 0xff] + '-' + _lut[d2 & 0x3f | 0x80] + _lut[d2 >> 8 & 0xff] + '-' + _lut[d2 >> 16 & 0xff] + _lut[d2 >> 24 & 0xff] + _lut[d3 & 0xff] + _lut[d3 >> 8 & 0xff] + _lut[d3 >> 16 & 0xff] + _lut[d3 >> 24 & 0xff];
|
|
2954
|
+
return uuid.toLowerCase();
|
|
2744
2955
|
}
|
|
2745
2956
|
}]);
|
|
2746
2957
|
|
|
2747
2958
|
return Util;
|
|
2748
2959
|
}();
|
|
2749
2960
|
|
|
2750
|
-
|
|
2961
|
+
exports.Util = Util;
|
|
2751
2962
|
}, {}],
|
|
2752
|
-
|
|
2753
|
-
|
|
2963
|
+
33: [function (require, module, exports) {
|
|
2964
|
+
"use strict";
|
|
2965
|
+
|
|
2966
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2967
|
+
value: true
|
|
2968
|
+
});
|
|
2969
|
+
exports["default"] = "1.116.2";
|
|
2754
2970
|
}, {}],
|
|
2755
|
-
|
|
2971
|
+
34: [function (require, module, exports) {
|
|
2756
2972
|
"use strict";
|
|
2757
2973
|
|
|
2758
2974
|
var Server = require("./server/plattar-server.js");
|
|
@@ -2952,66 +3168,66 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2952
3168
|
version: Version
|
|
2953
3169
|
};
|
|
2954
3170
|
}, {
|
|
2955
|
-
"./server/plattar-server.js":
|
|
2956
|
-
"./types/application.js":
|
|
2957
|
-
"./types/content-pipeline/brief.js":
|
|
2958
|
-
"./types/content-pipeline/comment-brief.js":
|
|
2959
|
-
"./types/content-pipeline/comment-quote.js":
|
|
2960
|
-
"./types/content-pipeline/comment-solution.js":
|
|
2961
|
-
"./types/content-pipeline/pipeline-user.js":
|
|
2962
|
-
"./types/content-pipeline/quote.js":
|
|
2963
|
-
"./types/content-pipeline/rating.js":
|
|
2964
|
-
"./types/content-pipeline/solution.js":
|
|
2965
|
-
"./types/file/file-audio.js":
|
|
2966
|
-
"./types/file/file-base.js":
|
|
2967
|
-
"./types/file/file-image.js":
|
|
2968
|
-
"./types/file/file-model.js":
|
|
2969
|
-
"./types/file/file-script.js":
|
|
2970
|
-
"./types/file/file-video.js":
|
|
2971
|
-
"./types/misc/application-build.js":
|
|
2972
|
-
"./types/misc/asset-library.js":
|
|
2973
|
-
"./types/misc/async-job.js":
|
|
2974
|
-
"./types/misc/script-event.js":
|
|
2975
|
-
"./types/misc/tag.js":
|
|
2976
|
-
"./types/page/card-base.js":
|
|
2977
|
-
"./types/page/card-button.js":
|
|
2978
|
-
"./types/page/card-html.js":
|
|
2979
|
-
"./types/page/card-iframe.js":
|
|
2980
|
-
"./types/page/card-image.js":
|
|
2981
|
-
"./types/page/card-map.js":
|
|
2982
|
-
"./types/page/card-paragraph.js":
|
|
2983
|
-
"./types/page/card-row.js":
|
|
2984
|
-
"./types/page/card-slider.js":
|
|
2985
|
-
"./types/page/card-title.js":
|
|
2986
|
-
"./types/page/card-video.js":
|
|
2987
|
-
"./types/page/card-youtube.js":
|
|
2988
|
-
"./types/page/page.js":
|
|
2989
|
-
"./types/product/product-annotation.js":
|
|
2990
|
-
"./types/product/product-base.js":
|
|
2991
|
-
"./types/product/product-variation.js":
|
|
2992
|
-
"./types/product/product.js":
|
|
2993
|
-
"./types/scene/scene-annotation.js":
|
|
2994
|
-
"./types/scene/scene-audio.js":
|
|
2995
|
-
"./types/scene/scene-base.js":
|
|
2996
|
-
"./types/scene/scene-button.js":
|
|
2997
|
-
"./types/scene/scene-camera.js":
|
|
2998
|
-
"./types/scene/scene-carousel.js":
|
|
2999
|
-
"./types/scene/scene-image.js":
|
|
3000
|
-
"./types/scene/scene-model.js":
|
|
3001
|
-
"./types/scene/scene-panorama.js":
|
|
3002
|
-
"./types/scene/scene-poller.js":
|
|
3003
|
-
"./types/scene/scene-product.js":
|
|
3004
|
-
"./types/scene/scene-script.js":
|
|
3005
|
-
"./types/scene/scene-shadow.js":
|
|
3006
|
-
"./types/scene/scene-video.js":
|
|
3007
|
-
"./types/scene/scene-volumetric.js":
|
|
3008
|
-
"./types/scene/scene-youtube.js":
|
|
3009
|
-
"./types/scene/scene.js":
|
|
3010
|
-
"./types/trigger/trigger-image.js":
|
|
3011
|
-
"./util/plattar-util.js":
|
|
3012
|
-
"./version":
|
|
3171
|
+
"./server/plattar-server.js": 36,
|
|
3172
|
+
"./types/application.js": 37,
|
|
3173
|
+
"./types/content-pipeline/brief.js": 38,
|
|
3174
|
+
"./types/content-pipeline/comment-brief.js": 39,
|
|
3175
|
+
"./types/content-pipeline/comment-quote.js": 40,
|
|
3176
|
+
"./types/content-pipeline/comment-solution.js": 41,
|
|
3177
|
+
"./types/content-pipeline/pipeline-user.js": 42,
|
|
3178
|
+
"./types/content-pipeline/quote.js": 43,
|
|
3179
|
+
"./types/content-pipeline/rating.js": 44,
|
|
3180
|
+
"./types/content-pipeline/solution.js": 45,
|
|
3181
|
+
"./types/file/file-audio.js": 46,
|
|
3182
|
+
"./types/file/file-base.js": 47,
|
|
3183
|
+
"./types/file/file-image.js": 48,
|
|
3184
|
+
"./types/file/file-model.js": 49,
|
|
3185
|
+
"./types/file/file-script.js": 50,
|
|
3186
|
+
"./types/file/file-video.js": 51,
|
|
3187
|
+
"./types/misc/application-build.js": 55,
|
|
3188
|
+
"./types/misc/asset-library.js": 56,
|
|
3189
|
+
"./types/misc/async-job.js": 57,
|
|
3190
|
+
"./types/misc/script-event.js": 58,
|
|
3191
|
+
"./types/misc/tag.js": 59,
|
|
3192
|
+
"./types/page/card-base.js": 60,
|
|
3193
|
+
"./types/page/card-button.js": 61,
|
|
3194
|
+
"./types/page/card-html.js": 62,
|
|
3195
|
+
"./types/page/card-iframe.js": 63,
|
|
3196
|
+
"./types/page/card-image.js": 64,
|
|
3197
|
+
"./types/page/card-map.js": 65,
|
|
3198
|
+
"./types/page/card-paragraph.js": 66,
|
|
3199
|
+
"./types/page/card-row.js": 67,
|
|
3200
|
+
"./types/page/card-slider.js": 68,
|
|
3201
|
+
"./types/page/card-title.js": 69,
|
|
3202
|
+
"./types/page/card-video.js": 70,
|
|
3203
|
+
"./types/page/card-youtube.js": 71,
|
|
3204
|
+
"./types/page/page.js": 72,
|
|
3205
|
+
"./types/product/product-annotation.js": 73,
|
|
3206
|
+
"./types/product/product-base.js": 74,
|
|
3207
|
+
"./types/product/product-variation.js": 75,
|
|
3208
|
+
"./types/product/product.js": 76,
|
|
3209
|
+
"./types/scene/scene-annotation.js": 77,
|
|
3210
|
+
"./types/scene/scene-audio.js": 78,
|
|
3211
|
+
"./types/scene/scene-base.js": 79,
|
|
3212
|
+
"./types/scene/scene-button.js": 80,
|
|
3213
|
+
"./types/scene/scene-camera.js": 81,
|
|
3214
|
+
"./types/scene/scene-carousel.js": 82,
|
|
3215
|
+
"./types/scene/scene-image.js": 83,
|
|
3216
|
+
"./types/scene/scene-model.js": 84,
|
|
3217
|
+
"./types/scene/scene-panorama.js": 85,
|
|
3218
|
+
"./types/scene/scene-poller.js": 86,
|
|
3219
|
+
"./types/scene/scene-product.js": 87,
|
|
3220
|
+
"./types/scene/scene-script.js": 88,
|
|
3221
|
+
"./types/scene/scene-shadow.js": 89,
|
|
3222
|
+
"./types/scene/scene-video.js": 90,
|
|
3223
|
+
"./types/scene/scene-volumetric.js": 91,
|
|
3224
|
+
"./types/scene/scene-youtube.js": 92,
|
|
3225
|
+
"./types/scene/scene.js": 93,
|
|
3226
|
+
"./types/trigger/trigger-image.js": 94,
|
|
3227
|
+
"./util/plattar-util.js": 95,
|
|
3228
|
+
"./version": 96
|
|
3013
3229
|
}],
|
|
3014
|
-
|
|
3230
|
+
35: [function (require, module, exports) {
|
|
3015
3231
|
var fetch = require("node-fetch");
|
|
3016
3232
|
|
|
3017
3233
|
var PlattarQuery = /*#__PURE__*/function () {
|
|
@@ -3042,14 +3258,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3042
3258
|
get: function get() {
|
|
3043
3259
|
return this._server;
|
|
3044
3260
|
}
|
|
3261
|
+
}, {
|
|
3262
|
+
key: "getCookie",
|
|
3263
|
+
value: function getCookie(cname) {
|
|
3264
|
+
var name = cname + "=";
|
|
3265
|
+
var decodedCookie = decodeURIComponent(document.cookie);
|
|
3266
|
+
var ca = decodedCookie.split(';');
|
|
3267
|
+
|
|
3268
|
+
for (var i = 0; i < ca.length; i++) {
|
|
3269
|
+
var c = ca[i];
|
|
3270
|
+
|
|
3271
|
+
while (c.charAt(0) == ' ') {
|
|
3272
|
+
c = c.substring(1);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
if (c.indexOf(name) == 0) {
|
|
3276
|
+
return c.substring(name.length, c.length);
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
return "";
|
|
3281
|
+
}
|
|
3045
3282
|
}, {
|
|
3046
3283
|
key: "_get",
|
|
3047
3284
|
value: function _get(opt) {
|
|
3048
|
-
var
|
|
3285
|
+
var _this22 = this;
|
|
3049
3286
|
|
|
3050
3287
|
return new Promise(function (resolve, reject) {
|
|
3051
|
-
var target =
|
|
3052
|
-
var server =
|
|
3288
|
+
var target = _this22.target;
|
|
3289
|
+
var server = _this22.server; // we cannot perform a GET request without an ID
|
|
3053
3290
|
|
|
3054
3291
|
if (!target.id) {
|
|
3055
3292
|
reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
|
|
@@ -3073,13 +3310,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3073
3310
|
|
|
3074
3311
|
var origin = server.originLocation.api_read;
|
|
3075
3312
|
var auth = server.authToken;
|
|
3313
|
+
var headers = {
|
|
3314
|
+
'cookie': 'laravel_session=' + _this22.getCookie('laravel_session')
|
|
3315
|
+
};
|
|
3316
|
+
Object.assign(headers, auth);
|
|
3076
3317
|
var reqopts = {
|
|
3077
3318
|
method: "GET",
|
|
3078
|
-
headers:
|
|
3319
|
+
headers: headers
|
|
3079
3320
|
};
|
|
3080
|
-
var includeQuery =
|
|
3321
|
+
var includeQuery = _this22._IncludeQuery;
|
|
3081
3322
|
|
|
3082
|
-
var params =
|
|
3323
|
+
var params = _this22._ParamFor("get");
|
|
3083
3324
|
|
|
3084
3325
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3085
3326
|
|
|
@@ -3120,11 +3361,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3120
3361
|
}, {
|
|
3121
3362
|
key: "_update",
|
|
3122
3363
|
value: function _update() {
|
|
3123
|
-
var
|
|
3364
|
+
var _this23 = this;
|
|
3124
3365
|
|
|
3125
3366
|
return new Promise(function (resolve, reject) {
|
|
3126
|
-
var target =
|
|
3127
|
-
var server =
|
|
3367
|
+
var target = _this23.target;
|
|
3368
|
+
var server = _this23.server; // we cannot perform a GET request without an ID
|
|
3128
3369
|
|
|
3129
3370
|
if (!target.id) {
|
|
3130
3371
|
reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
|
|
@@ -3136,7 +3377,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3136
3377
|
var auth = server.authToken;
|
|
3137
3378
|
var headers = {
|
|
3138
3379
|
'Accept': 'application/json',
|
|
3139
|
-
'Content-Type': 'application/json'
|
|
3380
|
+
'Content-Type': 'application/json',
|
|
3381
|
+
'cookie': 'laravel_session=' + _this23.getCookie('laravel_session')
|
|
3140
3382
|
};
|
|
3141
3383
|
Object.assign(headers, auth);
|
|
3142
3384
|
var reqopts = {
|
|
@@ -3151,7 +3393,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3151
3393
|
})
|
|
3152
3394
|
};
|
|
3153
3395
|
|
|
3154
|
-
var params =
|
|
3396
|
+
var params = _this23._ParamFor("update");
|
|
3155
3397
|
|
|
3156
3398
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3157
3399
|
|
|
@@ -3193,17 +3435,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3193
3435
|
}, {
|
|
3194
3436
|
key: "_create",
|
|
3195
3437
|
value: function _create() {
|
|
3196
|
-
var
|
|
3438
|
+
var _this24 = this;
|
|
3197
3439
|
|
|
3198
3440
|
return new Promise(function (resolve, reject) {
|
|
3199
|
-
var target =
|
|
3200
|
-
var server =
|
|
3441
|
+
var target = _this24.target;
|
|
3442
|
+
var server = _this24.server; // otherwise, proceed with the fetching op
|
|
3201
3443
|
|
|
3202
3444
|
var origin = server.originLocation.api_write;
|
|
3203
3445
|
var auth = server.authToken;
|
|
3204
3446
|
var headers = {
|
|
3205
3447
|
'Accept': 'application/json',
|
|
3206
|
-
'Content-Type': 'application/json'
|
|
3448
|
+
'Content-Type': 'application/json',
|
|
3449
|
+
'cookie': 'laravel_session=' + _this24.getCookie('laravel_session')
|
|
3207
3450
|
};
|
|
3208
3451
|
Object.assign(headers, auth);
|
|
3209
3452
|
var reqopts = {
|
|
@@ -3217,7 +3460,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3217
3460
|
})
|
|
3218
3461
|
};
|
|
3219
3462
|
|
|
3220
|
-
var params =
|
|
3463
|
+
var params = _this24._ParamFor("create");
|
|
3221
3464
|
|
|
3222
3465
|
var endpoint = origin + target.type();
|
|
3223
3466
|
|
|
@@ -3244,6 +3487,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3244
3487
|
reject(json);
|
|
3245
3488
|
} else {
|
|
3246
3489
|
if (json.data) {
|
|
3490
|
+
target._id = json.data.id;
|
|
3491
|
+
|
|
3247
3492
|
var PlattarUtil = require("../util/plattar-util.js");
|
|
3248
3493
|
|
|
3249
3494
|
PlattarUtil.reconstruct(target, json, {
|
|
@@ -3259,10 +3504,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3259
3504
|
}, {
|
|
3260
3505
|
key: "_delete",
|
|
3261
3506
|
value: function _delete() {
|
|
3262
|
-
var
|
|
3507
|
+
var _this25 = this;
|
|
3263
3508
|
|
|
3264
3509
|
return new Promise(function (resolve, reject) {
|
|
3265
|
-
reject(new Error("PlattarQuery." +
|
|
3510
|
+
reject(new Error("PlattarQuery." + _this25.target.type() + ".delete(" + _this25.target.id + ") - not implemented"));
|
|
3266
3511
|
});
|
|
3267
3512
|
}
|
|
3268
3513
|
/**
|
|
@@ -3287,7 +3532,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3287
3532
|
}, {
|
|
3288
3533
|
key: "_include",
|
|
3289
3534
|
value: function _include(args) {
|
|
3290
|
-
var
|
|
3535
|
+
var _this26 = this;
|
|
3291
3536
|
|
|
3292
3537
|
if (!args || args.length <= 0) {
|
|
3293
3538
|
return this;
|
|
@@ -3300,21 +3545,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3300
3545
|
if (Array.isArray(obj)) {
|
|
3301
3546
|
obj.forEach(function (strObject) {
|
|
3302
3547
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
3303
|
-
|
|
3548
|
+
_this26._getIncludeQuery.push(strObject);
|
|
3304
3549
|
} else {
|
|
3305
|
-
throw new Error("PlattarQuery." +
|
|
3550
|
+
throw new Error("PlattarQuery." + _this26.target.type() + ".include(...args) - argument of Array must only include Strings");
|
|
3306
3551
|
}
|
|
3307
3552
|
});
|
|
3308
3553
|
} else if (PlattarUtil.isPlattarObject(obj)) {
|
|
3309
3554
|
var type = obj.type();
|
|
3310
3555
|
|
|
3311
3556
|
if (Array.isArray(type)) {
|
|
3312
|
-
|
|
3557
|
+
_this26._include(type);
|
|
3313
3558
|
} else {
|
|
3314
|
-
|
|
3559
|
+
_this26._getIncludeQuery.push(type);
|
|
3315
3560
|
}
|
|
3316
3561
|
} else {
|
|
3317
|
-
throw new Error("PlattarQuery." +
|
|
3562
|
+
throw new Error("PlattarQuery." + _this26.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
3318
3563
|
}
|
|
3319
3564
|
});
|
|
3320
3565
|
return this;
|
|
@@ -3395,10 +3640,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3395
3640
|
|
|
3396
3641
|
module.exports = PlattarQuery;
|
|
3397
3642
|
}, {
|
|
3398
|
-
"../util/plattar-util.js":
|
|
3399
|
-
"node-fetch":
|
|
3643
|
+
"../util/plattar-util.js": 95,
|
|
3644
|
+
"node-fetch": 114
|
|
3400
3645
|
}],
|
|
3401
|
-
|
|
3646
|
+
36: [function (require, module, exports) {
|
|
3402
3647
|
(function (process) {
|
|
3403
3648
|
(function () {
|
|
3404
3649
|
var fetch = require("node-fetch");
|
|
@@ -3454,13 +3699,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3454
3699
|
}, {
|
|
3455
3700
|
key: "auth",
|
|
3456
3701
|
value: function auth(token, opt) {
|
|
3457
|
-
var
|
|
3702
|
+
var _this27 = this;
|
|
3458
3703
|
|
|
3459
3704
|
var copt = opt || {
|
|
3460
3705
|
validate: false
|
|
3461
3706
|
};
|
|
3462
3707
|
return new Promise(function (resolve, reject) {
|
|
3463
|
-
var server =
|
|
3708
|
+
var server = _this27.originLocation.api_write;
|
|
3464
3709
|
|
|
3465
3710
|
if (!server) {
|
|
3466
3711
|
reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
|
|
@@ -3473,10 +3718,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3473
3718
|
}
|
|
3474
3719
|
|
|
3475
3720
|
if (!copt.validate) {
|
|
3476
|
-
|
|
3721
|
+
_this27._authToken = {
|
|
3477
3722
|
"plattar-auth-token": token
|
|
3478
3723
|
};
|
|
3479
|
-
resolve(
|
|
3724
|
+
resolve(_this27);
|
|
3480
3725
|
return;
|
|
3481
3726
|
}
|
|
3482
3727
|
|
|
@@ -3489,10 +3734,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3489
3734
|
};
|
|
3490
3735
|
fetch(endpoint, options).then(function (res) {
|
|
3491
3736
|
if (res.ok) {
|
|
3492
|
-
|
|
3737
|
+
_this27._authToken = {
|
|
3493
3738
|
"plattar-auth-token": token
|
|
3494
3739
|
};
|
|
3495
|
-
resolve(
|
|
3740
|
+
resolve(_this27);
|
|
3496
3741
|
} else {
|
|
3497
3742
|
reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
|
|
3498
3743
|
}
|
|
@@ -3502,7 +3747,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3502
3747
|
}, {
|
|
3503
3748
|
key: "origin",
|
|
3504
3749
|
value: function origin(server, opt) {
|
|
3505
|
-
var
|
|
3750
|
+
var _this28 = this;
|
|
3506
3751
|
|
|
3507
3752
|
var copt = opt || {
|
|
3508
3753
|
validate: false
|
|
@@ -3514,8 +3759,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3514
3759
|
}
|
|
3515
3760
|
|
|
3516
3761
|
if (!copt.validate) {
|
|
3517
|
-
|
|
3518
|
-
resolve(
|
|
3762
|
+
_this28._serverLocation = server;
|
|
3763
|
+
resolve(_this28);
|
|
3519
3764
|
return;
|
|
3520
3765
|
}
|
|
3521
3766
|
|
|
@@ -3525,8 +3770,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3525
3770
|
};
|
|
3526
3771
|
fetch(endpoint, options).then(function (res) {
|
|
3527
3772
|
if (res.ok) {
|
|
3528
|
-
|
|
3529
|
-
resolve(
|
|
3773
|
+
_this28._serverLocation = server;
|
|
3774
|
+
resolve(_this28);
|
|
3530
3775
|
} else {
|
|
3531
3776
|
reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
|
|
3532
3777
|
}
|
|
@@ -3620,10 +3865,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3620
3865
|
}).call(this);
|
|
3621
3866
|
}).call(this, require('_process'));
|
|
3622
3867
|
}, {
|
|
3623
|
-
"_process":
|
|
3624
|
-
"node-fetch":
|
|
3868
|
+
"_process": 115,
|
|
3869
|
+
"node-fetch": 114
|
|
3625
3870
|
}],
|
|
3626
|
-
|
|
3871
|
+
37: [function (require, module, exports) {
|
|
3627
3872
|
var PlattarBase = require("./interfaces/plattar-base.js");
|
|
3628
3873
|
|
|
3629
3874
|
var Application = /*#__PURE__*/function (_PlattarBase) {
|
|
@@ -3649,9 +3894,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3649
3894
|
|
|
3650
3895
|
module.exports = Application;
|
|
3651
3896
|
}, {
|
|
3652
|
-
"./interfaces/plattar-base.js":
|
|
3897
|
+
"./interfaces/plattar-base.js": 52
|
|
3653
3898
|
}],
|
|
3654
|
-
|
|
3899
|
+
38: [function (require, module, exports) {
|
|
3655
3900
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3656
3901
|
|
|
3657
3902
|
var Brief = /*#__PURE__*/function (_PlattarBase2) {
|
|
@@ -3677,9 +3922,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3677
3922
|
|
|
3678
3923
|
module.exports = Brief;
|
|
3679
3924
|
}, {
|
|
3680
|
-
"../interfaces/plattar-base":
|
|
3925
|
+
"../interfaces/plattar-base": 52
|
|
3681
3926
|
}],
|
|
3682
|
-
|
|
3927
|
+
39: [function (require, module, exports) {
|
|
3683
3928
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3684
3929
|
|
|
3685
3930
|
var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
|
|
@@ -3705,9 +3950,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3705
3950
|
|
|
3706
3951
|
module.exports = CommentBrief;
|
|
3707
3952
|
}, {
|
|
3708
|
-
"../interfaces/plattar-base":
|
|
3953
|
+
"../interfaces/plattar-base": 52
|
|
3709
3954
|
}],
|
|
3710
|
-
|
|
3955
|
+
40: [function (require, module, exports) {
|
|
3711
3956
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3712
3957
|
|
|
3713
3958
|
var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
|
|
@@ -3733,9 +3978,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3733
3978
|
|
|
3734
3979
|
module.exports = CommentQuote;
|
|
3735
3980
|
}, {
|
|
3736
|
-
"../interfaces/plattar-base":
|
|
3981
|
+
"../interfaces/plattar-base": 52
|
|
3737
3982
|
}],
|
|
3738
|
-
|
|
3983
|
+
41: [function (require, module, exports) {
|
|
3739
3984
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3740
3985
|
|
|
3741
3986
|
var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
|
|
@@ -3761,9 +4006,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3761
4006
|
|
|
3762
4007
|
module.exports = CommentSolution;
|
|
3763
4008
|
}, {
|
|
3764
|
-
"../interfaces/plattar-base":
|
|
4009
|
+
"../interfaces/plattar-base": 52
|
|
3765
4010
|
}],
|
|
3766
|
-
|
|
4011
|
+
42: [function (require, module, exports) {
|
|
3767
4012
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3768
4013
|
|
|
3769
4014
|
var PipelineUser = /*#__PURE__*/function (_PlattarBase6) {
|
|
@@ -3789,9 +4034,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3789
4034
|
|
|
3790
4035
|
module.exports = PipelineUser;
|
|
3791
4036
|
}, {
|
|
3792
|
-
"../interfaces/plattar-base":
|
|
4037
|
+
"../interfaces/plattar-base": 52
|
|
3793
4038
|
}],
|
|
3794
|
-
|
|
4039
|
+
43: [function (require, module, exports) {
|
|
3795
4040
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3796
4041
|
|
|
3797
4042
|
var Quote = /*#__PURE__*/function (_PlattarBase7) {
|
|
@@ -3817,9 +4062,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3817
4062
|
|
|
3818
4063
|
module.exports = Quote;
|
|
3819
4064
|
}, {
|
|
3820
|
-
"../interfaces/plattar-base":
|
|
4065
|
+
"../interfaces/plattar-base": 52
|
|
3821
4066
|
}],
|
|
3822
|
-
|
|
4067
|
+
44: [function (require, module, exports) {
|
|
3823
4068
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3824
4069
|
|
|
3825
4070
|
var Rating = /*#__PURE__*/function (_PlattarBase8) {
|
|
@@ -3845,9 +4090,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3845
4090
|
|
|
3846
4091
|
module.exports = Rating;
|
|
3847
4092
|
}, {
|
|
3848
|
-
"../interfaces/plattar-base":
|
|
4093
|
+
"../interfaces/plattar-base": 52
|
|
3849
4094
|
}],
|
|
3850
|
-
|
|
4095
|
+
45: [function (require, module, exports) {
|
|
3851
4096
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
3852
4097
|
|
|
3853
4098
|
var Solution = /*#__PURE__*/function (_PlattarBase9) {
|
|
@@ -3873,9 +4118,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3873
4118
|
|
|
3874
4119
|
module.exports = Solution;
|
|
3875
4120
|
}, {
|
|
3876
|
-
"../interfaces/plattar-base":
|
|
4121
|
+
"../interfaces/plattar-base": 52
|
|
3877
4122
|
}],
|
|
3878
|
-
|
|
4123
|
+
46: [function (require, module, exports) {
|
|
3879
4124
|
var FileBase = require("./file-base.js");
|
|
3880
4125
|
|
|
3881
4126
|
var FileAudio = /*#__PURE__*/function (_FileBase) {
|
|
@@ -3901,9 +4146,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3901
4146
|
|
|
3902
4147
|
module.exports = FileAudio;
|
|
3903
4148
|
}, {
|
|
3904
|
-
"./file-base.js":
|
|
4149
|
+
"./file-base.js": 47
|
|
3905
4150
|
}],
|
|
3906
|
-
|
|
4151
|
+
47: [function (require, module, exports) {
|
|
3907
4152
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
3908
4153
|
|
|
3909
4154
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -3914,17 +4159,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3914
4159
|
var _super18 = _createSuper(FileBase);
|
|
3915
4160
|
|
|
3916
4161
|
function FileBase(id, server) {
|
|
3917
|
-
var
|
|
4162
|
+
var _this29;
|
|
3918
4163
|
|
|
3919
4164
|
_classCallCheck(this, FileBase);
|
|
3920
4165
|
|
|
3921
|
-
|
|
4166
|
+
_this29 = _super18.call(this, id, server || Server["default"]());
|
|
3922
4167
|
|
|
3923
|
-
if (
|
|
4168
|
+
if (_this29.constructor === FileBase) {
|
|
3924
4169
|
throw new Error("FileBase is abstract and cannot be created");
|
|
3925
4170
|
}
|
|
3926
4171
|
|
|
3927
|
-
return
|
|
4172
|
+
return _this29;
|
|
3928
4173
|
}
|
|
3929
4174
|
|
|
3930
4175
|
_createClass(FileBase, [{
|
|
@@ -3989,14 +4234,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3989
4234
|
|
|
3990
4235
|
module.exports = FileBase;
|
|
3991
4236
|
}, {
|
|
3992
|
-
"../../server/plattar-server.js":
|
|
3993
|
-
"../interfaces/plattar-base.js":
|
|
3994
|
-
"./file-audio.js":
|
|
3995
|
-
"./file-image.js":
|
|
3996
|
-
"./file-model.js":
|
|
3997
|
-
"./file-video.js":
|
|
4237
|
+
"../../server/plattar-server.js": 36,
|
|
4238
|
+
"../interfaces/plattar-base.js": 52,
|
|
4239
|
+
"./file-audio.js": 46,
|
|
4240
|
+
"./file-image.js": 48,
|
|
4241
|
+
"./file-model.js": 49,
|
|
4242
|
+
"./file-video.js": 51
|
|
3998
4243
|
}],
|
|
3999
|
-
|
|
4244
|
+
48: [function (require, module, exports) {
|
|
4000
4245
|
var FileBase = require("./file-base.js");
|
|
4001
4246
|
|
|
4002
4247
|
var FileImage = /*#__PURE__*/function (_FileBase2) {
|
|
@@ -4022,9 +4267,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4022
4267
|
|
|
4023
4268
|
module.exports = FileImage;
|
|
4024
4269
|
}, {
|
|
4025
|
-
"./file-base.js":
|
|
4270
|
+
"./file-base.js": 47
|
|
4026
4271
|
}],
|
|
4027
|
-
|
|
4272
|
+
49: [function (require, module, exports) {
|
|
4028
4273
|
var FileBase = require("./file-base.js");
|
|
4029
4274
|
|
|
4030
4275
|
var FileModel = /*#__PURE__*/function (_FileBase3) {
|
|
@@ -4050,9 +4295,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4050
4295
|
|
|
4051
4296
|
module.exports = FileModel;
|
|
4052
4297
|
}, {
|
|
4053
|
-
"./file-base.js":
|
|
4298
|
+
"./file-base.js": 47
|
|
4054
4299
|
}],
|
|
4055
|
-
|
|
4300
|
+
50: [function (require, module, exports) {
|
|
4056
4301
|
var FileBase = require("./file-base.js");
|
|
4057
4302
|
|
|
4058
4303
|
var FileScript = /*#__PURE__*/function (_FileBase4) {
|
|
@@ -4078,9 +4323,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4078
4323
|
|
|
4079
4324
|
module.exports = FileScript;
|
|
4080
4325
|
}, {
|
|
4081
|
-
"./file-base.js":
|
|
4326
|
+
"./file-base.js": 47
|
|
4082
4327
|
}],
|
|
4083
|
-
|
|
4328
|
+
51: [function (require, module, exports) {
|
|
4084
4329
|
var FileBase = require("./file-base.js");
|
|
4085
4330
|
|
|
4086
4331
|
var FileVideo = /*#__PURE__*/function (_FileBase5) {
|
|
@@ -4106,9 +4351,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4106
4351
|
|
|
4107
4352
|
module.exports = FileVideo;
|
|
4108
4353
|
}, {
|
|
4109
|
-
"./file-base.js":
|
|
4354
|
+
"./file-base.js": 47
|
|
4110
4355
|
}],
|
|
4111
|
-
|
|
4356
|
+
52: [function (require, module, exports) {
|
|
4112
4357
|
var PlattarObject = require("./plattar-object.js");
|
|
4113
4358
|
|
|
4114
4359
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -4119,17 +4364,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4119
4364
|
var _super23 = _createSuper(PlattarBase);
|
|
4120
4365
|
|
|
4121
4366
|
function PlattarBase(id, server) {
|
|
4122
|
-
var
|
|
4367
|
+
var _this30;
|
|
4123
4368
|
|
|
4124
4369
|
_classCallCheck(this, PlattarBase);
|
|
4125
4370
|
|
|
4126
|
-
|
|
4371
|
+
_this30 = _super23.call(this, id, server || Server["default"]());
|
|
4127
4372
|
|
|
4128
|
-
if (
|
|
4373
|
+
if (_this30.constructor === PlattarBase) {
|
|
4129
4374
|
throw new Error("PlattarBase is abstract and cannot be created");
|
|
4130
4375
|
}
|
|
4131
4376
|
|
|
4132
|
-
return
|
|
4377
|
+
return _this30;
|
|
4133
4378
|
}
|
|
4134
4379
|
|
|
4135
4380
|
return PlattarBase;
|
|
@@ -4137,10 +4382,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4137
4382
|
|
|
4138
4383
|
module.exports = PlattarBase;
|
|
4139
4384
|
}, {
|
|
4140
|
-
"../../server/plattar-server.js":
|
|
4141
|
-
"./plattar-object.js":
|
|
4385
|
+
"../../server/plattar-server.js": 36,
|
|
4386
|
+
"./plattar-object.js": 54
|
|
4142
4387
|
}],
|
|
4143
|
-
|
|
4388
|
+
53: [function (require, module, exports) {
|
|
4144
4389
|
/**
|
|
4145
4390
|
* Handles the list of relationships for the provided object
|
|
4146
4391
|
*/
|
|
@@ -4201,7 +4446,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4201
4446
|
}, {
|
|
4202
4447
|
key: "filter",
|
|
4203
4448
|
value: function filter(obj, id) {
|
|
4204
|
-
var
|
|
4449
|
+
var _this31 = this;
|
|
4205
4450
|
|
|
4206
4451
|
if (!obj) {
|
|
4207
4452
|
return [];
|
|
@@ -4219,7 +4464,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4219
4464
|
if (Array.isArray(type)) {
|
|
4220
4465
|
var compiledList = [];
|
|
4221
4466
|
type.forEach(function (inObject) {
|
|
4222
|
-
var retArray =
|
|
4467
|
+
var retArray = _this31.filter(inObject, id);
|
|
4223
4468
|
|
|
4224
4469
|
if (retArray.length > 0) {
|
|
4225
4470
|
compiledList = compiledList.concat(retArray);
|
|
@@ -4276,9 +4521,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4276
4521
|
|
|
4277
4522
|
module.exports = PlattarObjectRelations;
|
|
4278
4523
|
}, {
|
|
4279
|
-
"../../util/plattar-util.js":
|
|
4524
|
+
"../../util/plattar-util.js": 95
|
|
4280
4525
|
}],
|
|
4281
|
-
|
|
4526
|
+
54: [function (require, module, exports) {
|
|
4282
4527
|
var PlattarQuery = require("../../server/plattar-query.js");
|
|
4283
4528
|
|
|
4284
4529
|
var PlattarObjectRelations = require("./plattar-object-relations.js");
|
|
@@ -4422,7 +4667,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4422
4667
|
}, {
|
|
4423
4668
|
key: "include",
|
|
4424
4669
|
value: function include() {
|
|
4425
|
-
var
|
|
4670
|
+
var _this32 = this;
|
|
4426
4671
|
|
|
4427
4672
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
4428
4673
|
args[_key6] = arguments[_key6];
|
|
@@ -4438,15 +4683,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4438
4683
|
if (Array.isArray(obj)) {
|
|
4439
4684
|
obj.forEach(function (strObject) {
|
|
4440
4685
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
4441
|
-
includes.push("".concat(
|
|
4686
|
+
includes.push("".concat(_this32.type(), ".").concat(strObject));
|
|
4442
4687
|
} else {
|
|
4443
|
-
throw new Error("PlattarObject." +
|
|
4688
|
+
throw new Error("PlattarObject." + _this32.type() + ".include(...args) - argument of Array must only include Strings");
|
|
4444
4689
|
}
|
|
4445
4690
|
});
|
|
4446
4691
|
} else if (obj.prototype instanceof PlattarObject) {
|
|
4447
|
-
includes.push("".concat(
|
|
4692
|
+
includes.push("".concat(_this32.type(), ".").concat(obj.type()));
|
|
4448
4693
|
} else {
|
|
4449
|
-
throw new Error("PlattarObject." +
|
|
4694
|
+
throw new Error("PlattarObject." + _this32.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
4450
4695
|
}
|
|
4451
4696
|
});
|
|
4452
4697
|
return includes;
|
|
@@ -4458,10 +4703,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4458
4703
|
|
|
4459
4704
|
module.exports = PlattarObject;
|
|
4460
4705
|
}, {
|
|
4461
|
-
"../../server/plattar-query.js":
|
|
4462
|
-
"./plattar-object-relations.js":
|
|
4706
|
+
"../../server/plattar-query.js": 35,
|
|
4707
|
+
"./plattar-object-relations.js": 53
|
|
4463
4708
|
}],
|
|
4464
|
-
|
|
4709
|
+
55: [function (require, module, exports) {
|
|
4465
4710
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4466
4711
|
|
|
4467
4712
|
var ApplicationBuild = /*#__PURE__*/function (_PlattarBase11) {
|
|
@@ -4487,9 +4732,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4487
4732
|
|
|
4488
4733
|
module.exports = ApplicationBuild;
|
|
4489
4734
|
}, {
|
|
4490
|
-
"../interfaces/plattar-base.js":
|
|
4735
|
+
"../interfaces/plattar-base.js": 52
|
|
4491
4736
|
}],
|
|
4492
|
-
|
|
4737
|
+
56: [function (require, module, exports) {
|
|
4493
4738
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4494
4739
|
|
|
4495
4740
|
var AssetLibrary = /*#__PURE__*/function (_PlattarBase12) {
|
|
@@ -4515,9 +4760,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4515
4760
|
|
|
4516
4761
|
module.exports = AssetLibrary;
|
|
4517
4762
|
}, {
|
|
4518
|
-
"../interfaces/plattar-base.js":
|
|
4763
|
+
"../interfaces/plattar-base.js": 52
|
|
4519
4764
|
}],
|
|
4520
|
-
|
|
4765
|
+
57: [function (require, module, exports) {
|
|
4521
4766
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4522
4767
|
|
|
4523
4768
|
var AsyncJob = /*#__PURE__*/function (_PlattarBase13) {
|
|
@@ -4548,9 +4793,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4548
4793
|
|
|
4549
4794
|
module.exports = AsyncJob;
|
|
4550
4795
|
}, {
|
|
4551
|
-
"../interfaces/plattar-base.js":
|
|
4796
|
+
"../interfaces/plattar-base.js": 52
|
|
4552
4797
|
}],
|
|
4553
|
-
|
|
4798
|
+
58: [function (require, module, exports) {
|
|
4554
4799
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4555
4800
|
|
|
4556
4801
|
var ScriptEvent = /*#__PURE__*/function (_PlattarBase14) {
|
|
@@ -4576,9 +4821,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4576
4821
|
|
|
4577
4822
|
module.exports = ScriptEvent;
|
|
4578
4823
|
}, {
|
|
4579
|
-
"../interfaces/plattar-base.js":
|
|
4824
|
+
"../interfaces/plattar-base.js": 52
|
|
4580
4825
|
}],
|
|
4581
|
-
|
|
4826
|
+
59: [function (require, module, exports) {
|
|
4582
4827
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4583
4828
|
|
|
4584
4829
|
var Tag = /*#__PURE__*/function (_PlattarBase15) {
|
|
@@ -4604,9 +4849,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4604
4849
|
|
|
4605
4850
|
module.exports = Tag;
|
|
4606
4851
|
}, {
|
|
4607
|
-
"../interfaces/plattar-base.js":
|
|
4852
|
+
"../interfaces/plattar-base.js": 52
|
|
4608
4853
|
}],
|
|
4609
|
-
|
|
4854
|
+
60: [function (require, module, exports) {
|
|
4610
4855
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4611
4856
|
|
|
4612
4857
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -4617,17 +4862,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4617
4862
|
var _super29 = _createSuper(CardBase);
|
|
4618
4863
|
|
|
4619
4864
|
function CardBase(id, server) {
|
|
4620
|
-
var
|
|
4865
|
+
var _this33;
|
|
4621
4866
|
|
|
4622
4867
|
_classCallCheck(this, CardBase);
|
|
4623
4868
|
|
|
4624
|
-
|
|
4869
|
+
_this33 = _super29.call(this, id, server || Server["default"]());
|
|
4625
4870
|
|
|
4626
|
-
if (
|
|
4871
|
+
if (_this33.constructor === CardBase) {
|
|
4627
4872
|
throw new Error("CardBase is abstract and cannot be created");
|
|
4628
4873
|
}
|
|
4629
4874
|
|
|
4630
|
-
return
|
|
4875
|
+
return _this33;
|
|
4631
4876
|
}
|
|
4632
4877
|
|
|
4633
4878
|
_createClass(CardBase, null, [{
|
|
@@ -4664,21 +4909,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4664
4909
|
|
|
4665
4910
|
module.exports = CardBase;
|
|
4666
4911
|
}, {
|
|
4667
|
-
"../../server/plattar-server.js":
|
|
4668
|
-
"../interfaces/plattar-base.js":
|
|
4669
|
-
"./card-button.js":
|
|
4670
|
-
"./card-html.js":
|
|
4671
|
-
"./card-iframe.js":
|
|
4672
|
-
"./card-image.js":
|
|
4673
|
-
"./card-map.js":
|
|
4674
|
-
"./card-paragraph.js":
|
|
4675
|
-
"./card-row.js":
|
|
4676
|
-
"./card-slider.js":
|
|
4677
|
-
"./card-title.js":
|
|
4678
|
-
"./card-video.js":
|
|
4679
|
-
"./card-youtube.js":
|
|
4912
|
+
"../../server/plattar-server.js": 36,
|
|
4913
|
+
"../interfaces/plattar-base.js": 52,
|
|
4914
|
+
"./card-button.js": 61,
|
|
4915
|
+
"./card-html.js": 62,
|
|
4916
|
+
"./card-iframe.js": 63,
|
|
4917
|
+
"./card-image.js": 64,
|
|
4918
|
+
"./card-map.js": 65,
|
|
4919
|
+
"./card-paragraph.js": 66,
|
|
4920
|
+
"./card-row.js": 67,
|
|
4921
|
+
"./card-slider.js": 68,
|
|
4922
|
+
"./card-title.js": 69,
|
|
4923
|
+
"./card-video.js": 70,
|
|
4924
|
+
"./card-youtube.js": 71
|
|
4680
4925
|
}],
|
|
4681
|
-
|
|
4926
|
+
61: [function (require, module, exports) {
|
|
4682
4927
|
var CardBase = require("./card-base.js");
|
|
4683
4928
|
|
|
4684
4929
|
var CardButton = /*#__PURE__*/function (_CardBase) {
|
|
@@ -4704,9 +4949,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4704
4949
|
|
|
4705
4950
|
module.exports = CardButton;
|
|
4706
4951
|
}, {
|
|
4707
|
-
"./card-base.js":
|
|
4952
|
+
"./card-base.js": 60
|
|
4708
4953
|
}],
|
|
4709
|
-
|
|
4954
|
+
62: [function (require, module, exports) {
|
|
4710
4955
|
var CardBase = require("./card-base.js");
|
|
4711
4956
|
|
|
4712
4957
|
var CardHTML = /*#__PURE__*/function (_CardBase2) {
|
|
@@ -4732,9 +4977,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4732
4977
|
|
|
4733
4978
|
module.exports = CardHTML;
|
|
4734
4979
|
}, {
|
|
4735
|
-
"./card-base.js":
|
|
4980
|
+
"./card-base.js": 60
|
|
4736
4981
|
}],
|
|
4737
|
-
|
|
4982
|
+
63: [function (require, module, exports) {
|
|
4738
4983
|
var CardBase = require("./card-base.js");
|
|
4739
4984
|
|
|
4740
4985
|
var CardIFrame = /*#__PURE__*/function (_CardBase3) {
|
|
@@ -4760,9 +5005,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4760
5005
|
|
|
4761
5006
|
module.exports = CardIFrame;
|
|
4762
5007
|
}, {
|
|
4763
|
-
"./card-base.js":
|
|
5008
|
+
"./card-base.js": 60
|
|
4764
5009
|
}],
|
|
4765
|
-
|
|
5010
|
+
64: [function (require, module, exports) {
|
|
4766
5011
|
var CardBase = require("./card-base.js");
|
|
4767
5012
|
|
|
4768
5013
|
var CardImage = /*#__PURE__*/function (_CardBase4) {
|
|
@@ -4788,9 +5033,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4788
5033
|
|
|
4789
5034
|
module.exports = CardImage;
|
|
4790
5035
|
}, {
|
|
4791
|
-
"./card-base.js":
|
|
5036
|
+
"./card-base.js": 60
|
|
4792
5037
|
}],
|
|
4793
|
-
|
|
5038
|
+
65: [function (require, module, exports) {
|
|
4794
5039
|
var CardBase = require("./card-base.js");
|
|
4795
5040
|
|
|
4796
5041
|
var CardMap = /*#__PURE__*/function (_CardBase5) {
|
|
@@ -4816,9 +5061,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4816
5061
|
|
|
4817
5062
|
module.exports = CardMap;
|
|
4818
5063
|
}, {
|
|
4819
|
-
"./card-base.js":
|
|
5064
|
+
"./card-base.js": 60
|
|
4820
5065
|
}],
|
|
4821
|
-
|
|
5066
|
+
66: [function (require, module, exports) {
|
|
4822
5067
|
var CardBase = require("./card-base.js");
|
|
4823
5068
|
|
|
4824
5069
|
var CardParagraph = /*#__PURE__*/function (_CardBase6) {
|
|
@@ -4844,9 +5089,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4844
5089
|
|
|
4845
5090
|
module.exports = CardParagraph;
|
|
4846
5091
|
}, {
|
|
4847
|
-
"./card-base.js":
|
|
5092
|
+
"./card-base.js": 60
|
|
4848
5093
|
}],
|
|
4849
|
-
|
|
5094
|
+
67: [function (require, module, exports) {
|
|
4850
5095
|
var CardBase = require("./card-base.js");
|
|
4851
5096
|
|
|
4852
5097
|
var CardRow = /*#__PURE__*/function (_CardBase7) {
|
|
@@ -4872,9 +5117,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4872
5117
|
|
|
4873
5118
|
module.exports = CardRow;
|
|
4874
5119
|
}, {
|
|
4875
|
-
"./card-base.js":
|
|
5120
|
+
"./card-base.js": 60
|
|
4876
5121
|
}],
|
|
4877
|
-
|
|
5122
|
+
68: [function (require, module, exports) {
|
|
4878
5123
|
var CardBase = require("./card-base.js");
|
|
4879
5124
|
|
|
4880
5125
|
var CardSlider = /*#__PURE__*/function (_CardBase8) {
|
|
@@ -4900,9 +5145,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4900
5145
|
|
|
4901
5146
|
module.exports = CardSlider;
|
|
4902
5147
|
}, {
|
|
4903
|
-
"./card-base.js":
|
|
5148
|
+
"./card-base.js": 60
|
|
4904
5149
|
}],
|
|
4905
|
-
|
|
5150
|
+
69: [function (require, module, exports) {
|
|
4906
5151
|
var CardBase = require("./card-base.js");
|
|
4907
5152
|
|
|
4908
5153
|
var CardTitle = /*#__PURE__*/function (_CardBase9) {
|
|
@@ -4928,9 +5173,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4928
5173
|
|
|
4929
5174
|
module.exports = CardTitle;
|
|
4930
5175
|
}, {
|
|
4931
|
-
"./card-base.js":
|
|
5176
|
+
"./card-base.js": 60
|
|
4932
5177
|
}],
|
|
4933
|
-
|
|
5178
|
+
70: [function (require, module, exports) {
|
|
4934
5179
|
var CardBase = require("./card-base.js");
|
|
4935
5180
|
|
|
4936
5181
|
var CardVideo = /*#__PURE__*/function (_CardBase10) {
|
|
@@ -4956,9 +5201,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4956
5201
|
|
|
4957
5202
|
module.exports = CardVideo;
|
|
4958
5203
|
}, {
|
|
4959
|
-
"./card-base.js":
|
|
5204
|
+
"./card-base.js": 60
|
|
4960
5205
|
}],
|
|
4961
|
-
|
|
5206
|
+
71: [function (require, module, exports) {
|
|
4962
5207
|
var CardBase = require("./card-base.js");
|
|
4963
5208
|
|
|
4964
5209
|
var CardYoutube = /*#__PURE__*/function (_CardBase11) {
|
|
@@ -4984,9 +5229,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4984
5229
|
|
|
4985
5230
|
module.exports = CardYoutube;
|
|
4986
5231
|
}, {
|
|
4987
|
-
"./card-base.js":
|
|
5232
|
+
"./card-base.js": 60
|
|
4988
5233
|
}],
|
|
4989
|
-
|
|
5234
|
+
72: [function (require, module, exports) {
|
|
4990
5235
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4991
5236
|
|
|
4992
5237
|
var Page = /*#__PURE__*/function (_PlattarBase17) {
|
|
@@ -5012,9 +5257,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5012
5257
|
|
|
5013
5258
|
module.exports = Page;
|
|
5014
5259
|
}, {
|
|
5015
|
-
"../interfaces/plattar-base.js":
|
|
5260
|
+
"../interfaces/plattar-base.js": 52
|
|
5016
5261
|
}],
|
|
5017
|
-
|
|
5262
|
+
73: [function (require, module, exports) {
|
|
5018
5263
|
var ProductBase = require("./product-base.js");
|
|
5019
5264
|
|
|
5020
5265
|
var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
|
|
@@ -5040,9 +5285,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5040
5285
|
|
|
5041
5286
|
module.exports = ProductAnnotation;
|
|
5042
5287
|
}, {
|
|
5043
|
-
"./product-base.js":
|
|
5288
|
+
"./product-base.js": 74
|
|
5044
5289
|
}],
|
|
5045
|
-
|
|
5290
|
+
74: [function (require, module, exports) {
|
|
5046
5291
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5047
5292
|
|
|
5048
5293
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5053,17 +5298,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5053
5298
|
var _super43 = _createSuper(ProductBase);
|
|
5054
5299
|
|
|
5055
5300
|
function ProductBase(id, server) {
|
|
5056
|
-
var
|
|
5301
|
+
var _this34;
|
|
5057
5302
|
|
|
5058
5303
|
_classCallCheck(this, ProductBase);
|
|
5059
5304
|
|
|
5060
|
-
|
|
5305
|
+
_this34 = _super43.call(this, id, server || Server["default"]());
|
|
5061
5306
|
|
|
5062
|
-
if (
|
|
5307
|
+
if (_this34.constructor === ProductBase) {
|
|
5063
5308
|
throw new Error("ProductBase is abstract and cannot be created");
|
|
5064
5309
|
}
|
|
5065
5310
|
|
|
5066
|
-
return
|
|
5311
|
+
return _this34;
|
|
5067
5312
|
}
|
|
5068
5313
|
|
|
5069
5314
|
_createClass(ProductBase, null, [{
|
|
@@ -5082,12 +5327,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5082
5327
|
|
|
5083
5328
|
module.exports = ProductBase;
|
|
5084
5329
|
}, {
|
|
5085
|
-
"../../server/plattar-server.js":
|
|
5086
|
-
"../interfaces/plattar-base.js":
|
|
5087
|
-
"./product-annotation.js":
|
|
5088
|
-
"./product-variation.js":
|
|
5330
|
+
"../../server/plattar-server.js": 36,
|
|
5331
|
+
"../interfaces/plattar-base.js": 52,
|
|
5332
|
+
"./product-annotation.js": 73,
|
|
5333
|
+
"./product-variation.js": 75
|
|
5089
5334
|
}],
|
|
5090
|
-
|
|
5335
|
+
75: [function (require, module, exports) {
|
|
5091
5336
|
var ProductBase = require("./product-base.js");
|
|
5092
5337
|
|
|
5093
5338
|
var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
|
|
@@ -5113,9 +5358,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5113
5358
|
|
|
5114
5359
|
module.exports = ProductVariation;
|
|
5115
5360
|
}, {
|
|
5116
|
-
"./product-base.js":
|
|
5361
|
+
"./product-base.js": 74
|
|
5117
5362
|
}],
|
|
5118
|
-
|
|
5363
|
+
76: [function (require, module, exports) {
|
|
5119
5364
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5120
5365
|
|
|
5121
5366
|
var Product = /*#__PURE__*/function (_PlattarBase19) {
|
|
@@ -5141,9 +5386,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5141
5386
|
|
|
5142
5387
|
module.exports = Product;
|
|
5143
5388
|
}, {
|
|
5144
|
-
"../interfaces/plattar-base.js":
|
|
5389
|
+
"../interfaces/plattar-base.js": 52
|
|
5145
5390
|
}],
|
|
5146
|
-
|
|
5391
|
+
77: [function (require, module, exports) {
|
|
5147
5392
|
var SceneBase = require("./scene-base.js");
|
|
5148
5393
|
|
|
5149
5394
|
var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
|
|
@@ -5169,9 +5414,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5169
5414
|
|
|
5170
5415
|
module.exports = SceneAnnotation;
|
|
5171
5416
|
}, {
|
|
5172
|
-
"./scene-base.js":
|
|
5417
|
+
"./scene-base.js": 79
|
|
5173
5418
|
}],
|
|
5174
|
-
|
|
5419
|
+
78: [function (require, module, exports) {
|
|
5175
5420
|
var SceneBase = require("./scene-base.js");
|
|
5176
5421
|
|
|
5177
5422
|
var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
|
|
@@ -5197,9 +5442,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5197
5442
|
|
|
5198
5443
|
module.exports = SceneAudio;
|
|
5199
5444
|
}, {
|
|
5200
|
-
"./scene-base.js":
|
|
5445
|
+
"./scene-base.js": 79
|
|
5201
5446
|
}],
|
|
5202
|
-
|
|
5447
|
+
79: [function (require, module, exports) {
|
|
5203
5448
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5204
5449
|
|
|
5205
5450
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5210,17 +5455,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5210
5455
|
var _super48 = _createSuper(SceneBase);
|
|
5211
5456
|
|
|
5212
5457
|
function SceneBase(id, server) {
|
|
5213
|
-
var
|
|
5458
|
+
var _this35;
|
|
5214
5459
|
|
|
5215
5460
|
_classCallCheck(this, SceneBase);
|
|
5216
5461
|
|
|
5217
|
-
|
|
5462
|
+
_this35 = _super48.call(this, id, server || Server["default"]());
|
|
5218
5463
|
|
|
5219
|
-
if (
|
|
5464
|
+
if (_this35.constructor === SceneBase) {
|
|
5220
5465
|
throw new Error("SceneBase is abstract and cannot be created");
|
|
5221
5466
|
}
|
|
5222
5467
|
|
|
5223
|
-
return
|
|
5468
|
+
return _this35;
|
|
5224
5469
|
}
|
|
5225
5470
|
|
|
5226
5471
|
_createClass(SceneBase, null, [{
|
|
@@ -5263,24 +5508,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5263
5508
|
|
|
5264
5509
|
module.exports = SceneBase;
|
|
5265
5510
|
}, {
|
|
5266
|
-
"../../server/plattar-server.js":
|
|
5267
|
-
"../interfaces/plattar-base.js":
|
|
5268
|
-
"./scene-annotation.js":
|
|
5269
|
-
"./scene-audio.js":
|
|
5270
|
-
"./scene-button.js":
|
|
5271
|
-
"./scene-camera.js":
|
|
5272
|
-
"./scene-carousel.js":
|
|
5273
|
-
"./scene-image.js":
|
|
5274
|
-
"./scene-model.js":
|
|
5275
|
-
"./scene-panorama.js":
|
|
5276
|
-
"./scene-poller.js":
|
|
5277
|
-
"./scene-product.js":
|
|
5278
|
-
"./scene-shadow.js":
|
|
5279
|
-
"./scene-video.js":
|
|
5280
|
-
"./scene-volumetric.js":
|
|
5281
|
-
"./scene-youtube.js":
|
|
5511
|
+
"../../server/plattar-server.js": 36,
|
|
5512
|
+
"../interfaces/plattar-base.js": 52,
|
|
5513
|
+
"./scene-annotation.js": 77,
|
|
5514
|
+
"./scene-audio.js": 78,
|
|
5515
|
+
"./scene-button.js": 80,
|
|
5516
|
+
"./scene-camera.js": 81,
|
|
5517
|
+
"./scene-carousel.js": 82,
|
|
5518
|
+
"./scene-image.js": 83,
|
|
5519
|
+
"./scene-model.js": 84,
|
|
5520
|
+
"./scene-panorama.js": 85,
|
|
5521
|
+
"./scene-poller.js": 86,
|
|
5522
|
+
"./scene-product.js": 87,
|
|
5523
|
+
"./scene-shadow.js": 89,
|
|
5524
|
+
"./scene-video.js": 90,
|
|
5525
|
+
"./scene-volumetric.js": 91,
|
|
5526
|
+
"./scene-youtube.js": 92
|
|
5282
5527
|
}],
|
|
5283
|
-
|
|
5528
|
+
80: [function (require, module, exports) {
|
|
5284
5529
|
var SceneBase = require("./scene-base.js");
|
|
5285
5530
|
|
|
5286
5531
|
var SceneButton = /*#__PURE__*/function (_SceneBase3) {
|
|
@@ -5306,9 +5551,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5306
5551
|
|
|
5307
5552
|
module.exports = SceneButton;
|
|
5308
5553
|
}, {
|
|
5309
|
-
"./scene-base.js":
|
|
5554
|
+
"./scene-base.js": 79
|
|
5310
5555
|
}],
|
|
5311
|
-
|
|
5556
|
+
81: [function (require, module, exports) {
|
|
5312
5557
|
var SceneBase = require("./scene-base.js");
|
|
5313
5558
|
|
|
5314
5559
|
var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
|
|
@@ -5334,9 +5579,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5334
5579
|
|
|
5335
5580
|
module.exports = SceneCamera;
|
|
5336
5581
|
}, {
|
|
5337
|
-
"./scene-base.js":
|
|
5582
|
+
"./scene-base.js": 79
|
|
5338
5583
|
}],
|
|
5339
|
-
|
|
5584
|
+
82: [function (require, module, exports) {
|
|
5340
5585
|
var SceneBase = require("./scene-base.js");
|
|
5341
5586
|
|
|
5342
5587
|
var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
|
|
@@ -5362,9 +5607,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5362
5607
|
|
|
5363
5608
|
module.exports = SceneCarousel;
|
|
5364
5609
|
}, {
|
|
5365
|
-
"./scene-base.js":
|
|
5610
|
+
"./scene-base.js": 79
|
|
5366
5611
|
}],
|
|
5367
|
-
|
|
5612
|
+
83: [function (require, module, exports) {
|
|
5368
5613
|
var SceneBase = require("./scene-base.js");
|
|
5369
5614
|
|
|
5370
5615
|
var SceneImage = /*#__PURE__*/function (_SceneBase6) {
|
|
@@ -5390,9 +5635,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5390
5635
|
|
|
5391
5636
|
module.exports = SceneImage;
|
|
5392
5637
|
}, {
|
|
5393
|
-
"./scene-base.js":
|
|
5638
|
+
"./scene-base.js": 79
|
|
5394
5639
|
}],
|
|
5395
|
-
|
|
5640
|
+
84: [function (require, module, exports) {
|
|
5396
5641
|
var SceneBase = require("./scene-base.js");
|
|
5397
5642
|
|
|
5398
5643
|
var SceneModel = /*#__PURE__*/function (_SceneBase7) {
|
|
@@ -5418,9 +5663,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5418
5663
|
|
|
5419
5664
|
module.exports = SceneModel;
|
|
5420
5665
|
}, {
|
|
5421
|
-
"./scene-base.js":
|
|
5666
|
+
"./scene-base.js": 79
|
|
5422
5667
|
}],
|
|
5423
|
-
|
|
5668
|
+
85: [function (require, module, exports) {
|
|
5424
5669
|
var SceneBase = require("./scene-base.js");
|
|
5425
5670
|
|
|
5426
5671
|
var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
|
|
@@ -5446,9 +5691,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5446
5691
|
|
|
5447
5692
|
module.exports = ScenePanorama;
|
|
5448
5693
|
}, {
|
|
5449
|
-
"./scene-base.js":
|
|
5694
|
+
"./scene-base.js": 79
|
|
5450
5695
|
}],
|
|
5451
|
-
|
|
5696
|
+
86: [function (require, module, exports) {
|
|
5452
5697
|
var SceneBase = require("./scene-base.js");
|
|
5453
5698
|
|
|
5454
5699
|
var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
|
|
@@ -5474,9 +5719,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5474
5719
|
|
|
5475
5720
|
module.exports = ScenePoller;
|
|
5476
5721
|
}, {
|
|
5477
|
-
"./scene-base.js":
|
|
5722
|
+
"./scene-base.js": 79
|
|
5478
5723
|
}],
|
|
5479
|
-
|
|
5724
|
+
87: [function (require, module, exports) {
|
|
5480
5725
|
var SceneBase = require("./scene-base.js");
|
|
5481
5726
|
|
|
5482
5727
|
var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
|
|
@@ -5502,9 +5747,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5502
5747
|
|
|
5503
5748
|
module.exports = SceneProduct;
|
|
5504
5749
|
}, {
|
|
5505
|
-
"./scene-base.js":
|
|
5750
|
+
"./scene-base.js": 79
|
|
5506
5751
|
}],
|
|
5507
|
-
|
|
5752
|
+
88: [function (require, module, exports) {
|
|
5508
5753
|
var SceneBase = require("./scene-base.js");
|
|
5509
5754
|
|
|
5510
5755
|
var SceneScript = /*#__PURE__*/function (_SceneBase11) {
|
|
@@ -5530,9 +5775,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5530
5775
|
|
|
5531
5776
|
module.exports = SceneScript;
|
|
5532
5777
|
}, {
|
|
5533
|
-
"./scene-base.js":
|
|
5778
|
+
"./scene-base.js": 79
|
|
5534
5779
|
}],
|
|
5535
|
-
|
|
5780
|
+
89: [function (require, module, exports) {
|
|
5536
5781
|
var SceneBase = require("./scene-base.js");
|
|
5537
5782
|
|
|
5538
5783
|
var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
|
|
@@ -5558,9 +5803,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5558
5803
|
|
|
5559
5804
|
module.exports = SceneShadow;
|
|
5560
5805
|
}, {
|
|
5561
|
-
"./scene-base.js":
|
|
5806
|
+
"./scene-base.js": 79
|
|
5562
5807
|
}],
|
|
5563
|
-
|
|
5808
|
+
90: [function (require, module, exports) {
|
|
5564
5809
|
var SceneBase = require("./scene-base.js");
|
|
5565
5810
|
|
|
5566
5811
|
var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
|
|
@@ -5586,9 +5831,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5586
5831
|
|
|
5587
5832
|
module.exports = SceneVideo;
|
|
5588
5833
|
}, {
|
|
5589
|
-
"./scene-base.js":
|
|
5834
|
+
"./scene-base.js": 79
|
|
5590
5835
|
}],
|
|
5591
|
-
|
|
5836
|
+
91: [function (require, module, exports) {
|
|
5592
5837
|
var SceneBase = require("./scene-base.js");
|
|
5593
5838
|
|
|
5594
5839
|
var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
|
|
@@ -5614,9 +5859,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5614
5859
|
|
|
5615
5860
|
module.exports = SceneVolumetric;
|
|
5616
5861
|
}, {
|
|
5617
|
-
"./scene-base.js":
|
|
5862
|
+
"./scene-base.js": 79
|
|
5618
5863
|
}],
|
|
5619
|
-
|
|
5864
|
+
92: [function (require, module, exports) {
|
|
5620
5865
|
var SceneBase = require("./scene-base.js");
|
|
5621
5866
|
|
|
5622
5867
|
var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
|
|
@@ -5642,9 +5887,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5642
5887
|
|
|
5643
5888
|
module.exports = SceneYoutube;
|
|
5644
5889
|
}, {
|
|
5645
|
-
"./scene-base.js":
|
|
5890
|
+
"./scene-base.js": 79
|
|
5646
5891
|
}],
|
|
5647
|
-
|
|
5892
|
+
93: [function (require, module, exports) {
|
|
5648
5893
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5649
5894
|
|
|
5650
5895
|
var Scene = /*#__PURE__*/function (_PlattarBase21) {
|
|
@@ -5670,9 +5915,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5670
5915
|
|
|
5671
5916
|
module.exports = Scene;
|
|
5672
5917
|
}, {
|
|
5673
|
-
"../interfaces/plattar-base.js":
|
|
5918
|
+
"../interfaces/plattar-base.js": 52
|
|
5674
5919
|
}],
|
|
5675
|
-
|
|
5920
|
+
94: [function (require, module, exports) {
|
|
5676
5921
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5677
5922
|
|
|
5678
5923
|
var TriggerImage = /*#__PURE__*/function (_PlattarBase22) {
|
|
@@ -5698,9 +5943,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5698
5943
|
|
|
5699
5944
|
module.exports = TriggerImage;
|
|
5700
5945
|
}, {
|
|
5701
|
-
"../interfaces/plattar-base.js":
|
|
5946
|
+
"../interfaces/plattar-base.js": 52
|
|
5702
5947
|
}],
|
|
5703
|
-
|
|
5948
|
+
95: [function (require, module, exports) {
|
|
5704
5949
|
var Application = require("../types/application.js"); // import Scene types and its children
|
|
5705
5950
|
|
|
5706
5951
|
|
|
@@ -6082,63 +6327,63 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6082
6327
|
|
|
6083
6328
|
module.exports = PlattarUtil;
|
|
6084
6329
|
}, {
|
|
6085
|
-
"../types/application.js":
|
|
6086
|
-
"../types/content-pipeline/brief.js":
|
|
6087
|
-
"../types/content-pipeline/comment-brief.js":
|
|
6088
|
-
"../types/content-pipeline/comment-quote.js":
|
|
6089
|
-
"../types/content-pipeline/comment-solution.js":
|
|
6090
|
-
"../types/content-pipeline/pipeline-user.js":
|
|
6091
|
-
"../types/content-pipeline/quote.js":
|
|
6092
|
-
"../types/content-pipeline/rating.js":
|
|
6093
|
-
"../types/content-pipeline/solution.js":
|
|
6094
|
-
"../types/file/file-audio.js":
|
|
6095
|
-
"../types/file/file-image.js":
|
|
6096
|
-
"../types/file/file-model.js":
|
|
6097
|
-
"../types/file/file-script.js":
|
|
6098
|
-
"../types/file/file-video.js":
|
|
6099
|
-
"../types/interfaces/plattar-object.js":
|
|
6100
|
-
"../types/misc/application-build.js":
|
|
6101
|
-
"../types/misc/asset-library":
|
|
6102
|
-
"../types/misc/async-job.js":
|
|
6103
|
-
"../types/misc/script-event.js":
|
|
6104
|
-
"../types/misc/tag.js":
|
|
6105
|
-
"../types/page/card-button.js":
|
|
6106
|
-
"../types/page/card-html.js":
|
|
6107
|
-
"../types/page/card-iframe.js":
|
|
6108
|
-
"../types/page/card-image.js":
|
|
6109
|
-
"../types/page/card-map.js":
|
|
6110
|
-
"../types/page/card-paragraph.js":
|
|
6111
|
-
"../types/page/card-row.js":
|
|
6112
|
-
"../types/page/card-slider.js":
|
|
6113
|
-
"../types/page/card-title.js":
|
|
6114
|
-
"../types/page/card-video.js":
|
|
6115
|
-
"../types/page/card-youtube.js":
|
|
6116
|
-
"../types/page/page.js":
|
|
6117
|
-
"../types/product/product-annotation.js":
|
|
6118
|
-
"../types/product/product-variation.js":
|
|
6119
|
-
"../types/product/product.js":
|
|
6120
|
-
"../types/scene/scene-annotation.js":
|
|
6121
|
-
"../types/scene/scene-audio.js":
|
|
6122
|
-
"../types/scene/scene-button.js":
|
|
6123
|
-
"../types/scene/scene-camera.js":
|
|
6124
|
-
"../types/scene/scene-carousel.js":
|
|
6125
|
-
"../types/scene/scene-image.js":
|
|
6126
|
-
"../types/scene/scene-model.js":
|
|
6127
|
-
"../types/scene/scene-panorama.js":
|
|
6128
|
-
"../types/scene/scene-poller.js":
|
|
6129
|
-
"../types/scene/scene-product.js":
|
|
6130
|
-
"../types/scene/scene-script.js":
|
|
6131
|
-
"../types/scene/scene-shadow.js":
|
|
6132
|
-
"../types/scene/scene-video.js":
|
|
6133
|
-
"../types/scene/scene-volumetric.js":
|
|
6134
|
-
"../types/scene/scene-youtube.js":
|
|
6135
|
-
"../types/scene/scene.js":
|
|
6136
|
-
"../types/trigger/trigger-image.js":
|
|
6330
|
+
"../types/application.js": 37,
|
|
6331
|
+
"../types/content-pipeline/brief.js": 38,
|
|
6332
|
+
"../types/content-pipeline/comment-brief.js": 39,
|
|
6333
|
+
"../types/content-pipeline/comment-quote.js": 40,
|
|
6334
|
+
"../types/content-pipeline/comment-solution.js": 41,
|
|
6335
|
+
"../types/content-pipeline/pipeline-user.js": 42,
|
|
6336
|
+
"../types/content-pipeline/quote.js": 43,
|
|
6337
|
+
"../types/content-pipeline/rating.js": 44,
|
|
6338
|
+
"../types/content-pipeline/solution.js": 45,
|
|
6339
|
+
"../types/file/file-audio.js": 46,
|
|
6340
|
+
"../types/file/file-image.js": 48,
|
|
6341
|
+
"../types/file/file-model.js": 49,
|
|
6342
|
+
"../types/file/file-script.js": 50,
|
|
6343
|
+
"../types/file/file-video.js": 51,
|
|
6344
|
+
"../types/interfaces/plattar-object.js": 54,
|
|
6345
|
+
"../types/misc/application-build.js": 55,
|
|
6346
|
+
"../types/misc/asset-library": 56,
|
|
6347
|
+
"../types/misc/async-job.js": 57,
|
|
6348
|
+
"../types/misc/script-event.js": 58,
|
|
6349
|
+
"../types/misc/tag.js": 59,
|
|
6350
|
+
"../types/page/card-button.js": 61,
|
|
6351
|
+
"../types/page/card-html.js": 62,
|
|
6352
|
+
"../types/page/card-iframe.js": 63,
|
|
6353
|
+
"../types/page/card-image.js": 64,
|
|
6354
|
+
"../types/page/card-map.js": 65,
|
|
6355
|
+
"../types/page/card-paragraph.js": 66,
|
|
6356
|
+
"../types/page/card-row.js": 67,
|
|
6357
|
+
"../types/page/card-slider.js": 68,
|
|
6358
|
+
"../types/page/card-title.js": 69,
|
|
6359
|
+
"../types/page/card-video.js": 70,
|
|
6360
|
+
"../types/page/card-youtube.js": 71,
|
|
6361
|
+
"../types/page/page.js": 72,
|
|
6362
|
+
"../types/product/product-annotation.js": 73,
|
|
6363
|
+
"../types/product/product-variation.js": 75,
|
|
6364
|
+
"../types/product/product.js": 76,
|
|
6365
|
+
"../types/scene/scene-annotation.js": 77,
|
|
6366
|
+
"../types/scene/scene-audio.js": 78,
|
|
6367
|
+
"../types/scene/scene-button.js": 80,
|
|
6368
|
+
"../types/scene/scene-camera.js": 81,
|
|
6369
|
+
"../types/scene/scene-carousel.js": 82,
|
|
6370
|
+
"../types/scene/scene-image.js": 83,
|
|
6371
|
+
"../types/scene/scene-model.js": 84,
|
|
6372
|
+
"../types/scene/scene-panorama.js": 85,
|
|
6373
|
+
"../types/scene/scene-poller.js": 86,
|
|
6374
|
+
"../types/scene/scene-product.js": 87,
|
|
6375
|
+
"../types/scene/scene-script.js": 88,
|
|
6376
|
+
"../types/scene/scene-shadow.js": 89,
|
|
6377
|
+
"../types/scene/scene-video.js": 90,
|
|
6378
|
+
"../types/scene/scene-volumetric.js": 91,
|
|
6379
|
+
"../types/scene/scene-youtube.js": 92,
|
|
6380
|
+
"../types/scene/scene.js": 93,
|
|
6381
|
+
"../types/trigger/trigger-image.js": 94
|
|
6137
6382
|
}],
|
|
6138
|
-
|
|
6139
|
-
module.exports = "1.
|
|
6383
|
+
96: [function (require, module, exports) {
|
|
6384
|
+
module.exports = "1.115.2";
|
|
6140
6385
|
}, {}],
|
|
6141
|
-
|
|
6386
|
+
97: [function (require, module, exports) {
|
|
6142
6387
|
var QRCodeStyling = require("qr-code-styling");
|
|
6143
6388
|
|
|
6144
6389
|
var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
|
|
@@ -6287,9 +6532,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6287
6532
|
|
|
6288
6533
|
module.exports = BaseElement;
|
|
6289
6534
|
}, {
|
|
6290
|
-
"qr-code-styling":
|
|
6535
|
+
"qr-code-styling": 116
|
|
6291
6536
|
}],
|
|
6292
|
-
|
|
6537
|
+
98: [function (require, module, exports) {
|
|
6293
6538
|
var BaseElement = require("./base/base-element.js");
|
|
6294
6539
|
|
|
6295
6540
|
var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
|
|
@@ -6308,9 +6553,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6308
6553
|
|
|
6309
6554
|
module.exports = QRCodeElement;
|
|
6310
6555
|
}, {
|
|
6311
|
-
"./base/base-element.js":
|
|
6556
|
+
"./base/base-element.js": 97
|
|
6312
6557
|
}],
|
|
6313
|
-
|
|
6558
|
+
99: [function (require, module, exports) {
|
|
6314
6559
|
"use strict";
|
|
6315
6560
|
|
|
6316
6561
|
var QRCodeElement = require("./elements/qrcode-element.js");
|
|
@@ -6323,13 +6568,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6323
6568
|
version: Version
|
|
6324
6569
|
};
|
|
6325
6570
|
}, {
|
|
6326
|
-
"./elements/qrcode-element.js":
|
|
6327
|
-
"./version":
|
|
6571
|
+
"./elements/qrcode-element.js": 98,
|
|
6572
|
+
"./version": 100
|
|
6328
6573
|
}],
|
|
6329
|
-
|
|
6574
|
+
100: [function (require, module, exports) {
|
|
6330
6575
|
module.exports = "1.114.1";
|
|
6331
6576
|
}, {}],
|
|
6332
|
-
|
|
6577
|
+
101: [function (require, module, exports) {
|
|
6333
6578
|
var ElementController = require("../controllers/element-controller");
|
|
6334
6579
|
|
|
6335
6580
|
var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
@@ -6440,19 +6685,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6440
6685
|
}, {
|
|
6441
6686
|
key: "allMappedAttributes",
|
|
6442
6687
|
get: function get() {
|
|
6443
|
-
var
|
|
6688
|
+
var _this36 = this;
|
|
6444
6689
|
|
|
6445
6690
|
var map = new Map();
|
|
6446
6691
|
var coreAttr = this.coreAttributes;
|
|
6447
6692
|
var optAttr = this.optionalAttributes;
|
|
6448
6693
|
coreAttr.forEach(function (ele) {
|
|
6449
|
-
if (
|
|
6450
|
-
map.set(ele.map,
|
|
6694
|
+
if (_this36.hasAttribute(ele.key)) {
|
|
6695
|
+
map.set(ele.map, _this36.getAttribute(ele.key));
|
|
6451
6696
|
}
|
|
6452
6697
|
});
|
|
6453
6698
|
optAttr.forEach(function (ele) {
|
|
6454
|
-
if (
|
|
6455
|
-
map.set(ele.map,
|
|
6699
|
+
if (_this36.hasAttribute(ele.key)) {
|
|
6700
|
+
map.set(ele.map, _this36.getAttribute(ele.key));
|
|
6456
6701
|
}
|
|
6457
6702
|
});
|
|
6458
6703
|
return map;
|
|
@@ -6496,9 +6741,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6496
6741
|
|
|
6497
6742
|
module.exports = BaseElement;
|
|
6498
6743
|
}, {
|
|
6499
|
-
"../controllers/element-controller":
|
|
6744
|
+
"../controllers/element-controller": 102
|
|
6500
6745
|
}],
|
|
6501
|
-
|
|
6746
|
+
102: [function (require, module, exports) {
|
|
6502
6747
|
var Util = require("../../util/util.js");
|
|
6503
6748
|
|
|
6504
6749
|
var _require = require("@plattar/context-messenger"),
|
|
@@ -6508,7 +6753,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6508
6753
|
|
|
6509
6754
|
var ElementController = /*#__PURE__*/function () {
|
|
6510
6755
|
function ElementController(element) {
|
|
6511
|
-
var
|
|
6756
|
+
var _this37 = this;
|
|
6512
6757
|
|
|
6513
6758
|
_classCallCheck(this, ElementController);
|
|
6514
6759
|
|
|
@@ -6524,7 +6769,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6524
6769
|
|
|
6525
6770
|
if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
|
|
6526
6771
|
if (element.hasAllCoreAttributes) {
|
|
6527
|
-
|
|
6772
|
+
_this37._load();
|
|
6528
6773
|
}
|
|
6529
6774
|
}
|
|
6530
6775
|
}
|
|
@@ -6615,16 +6860,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6615
6860
|
|
|
6616
6861
|
module.exports = ElementController;
|
|
6617
6862
|
}, {
|
|
6618
|
-
"../../util/util.js":
|
|
6619
|
-
"./iframe-controller.js":
|
|
6620
|
-
"@plattar/context-messenger":
|
|
6863
|
+
"../../util/util.js": 112,
|
|
6864
|
+
"./iframe-controller.js": 103,
|
|
6865
|
+
"@plattar/context-messenger": 13
|
|
6621
6866
|
}],
|
|
6622
|
-
|
|
6867
|
+
103: [function (require, module, exports) {
|
|
6623
6868
|
var Util = require("../../util/util.js");
|
|
6624
6869
|
|
|
6625
6870
|
var IFrameController = /*#__PURE__*/function () {
|
|
6626
6871
|
function IFrameController(element, src, id) {
|
|
6627
|
-
var
|
|
6872
|
+
var _this38 = this;
|
|
6628
6873
|
|
|
6629
6874
|
var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
6630
6875
|
|
|
@@ -6636,7 +6881,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6636
6881
|
if (!element.hasAttribute("sameorigin")) {
|
|
6637
6882
|
this._iframe.onload = function () {
|
|
6638
6883
|
if (onelemload) {
|
|
6639
|
-
onelemload(
|
|
6884
|
+
onelemload(_this38._iframe);
|
|
6640
6885
|
}
|
|
6641
6886
|
};
|
|
6642
6887
|
}
|
|
@@ -6733,9 +6978,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6733
6978
|
|
|
6734
6979
|
module.exports = IFrameController;
|
|
6735
6980
|
}, {
|
|
6736
|
-
"../../util/util.js":
|
|
6981
|
+
"../../util/util.js": 112
|
|
6737
6982
|
}],
|
|
6738
|
-
|
|
6983
|
+
104: [function (require, module, exports) {
|
|
6739
6984
|
var BaseElement = require("./base/base-element.js");
|
|
6740
6985
|
|
|
6741
6986
|
var EditorElement = /*#__PURE__*/function (_BaseElement2) {
|
|
@@ -6766,9 +7011,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6766
7011
|
|
|
6767
7012
|
module.exports = EditorElement;
|
|
6768
7013
|
}, {
|
|
6769
|
-
"./base/base-element.js":
|
|
7014
|
+
"./base/base-element.js": 101
|
|
6770
7015
|
}],
|
|
6771
|
-
|
|
7016
|
+
105: [function (require, module, exports) {
|
|
6772
7017
|
var BaseElement = require("./base/base-element.js");
|
|
6773
7018
|
|
|
6774
7019
|
var EWallElement = /*#__PURE__*/function (_BaseElement3) {
|
|
@@ -6777,15 +7022,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6777
7022
|
var _super68 = _createSuper(EWallElement);
|
|
6778
7023
|
|
|
6779
7024
|
function EWallElement() {
|
|
6780
|
-
var
|
|
7025
|
+
var _this39;
|
|
6781
7026
|
|
|
6782
7027
|
_classCallCheck(this, EWallElement);
|
|
6783
7028
|
|
|
6784
|
-
|
|
7029
|
+
_this39 = _super68.call(this);
|
|
6785
7030
|
var tag = document.createElement("script");
|
|
6786
7031
|
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
|
|
6787
7032
|
tag.defer = true;
|
|
6788
|
-
return
|
|
7033
|
+
return _this39;
|
|
6789
7034
|
}
|
|
6790
7035
|
|
|
6791
7036
|
_createClass(EWallElement, [{
|
|
@@ -6821,9 +7066,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6821
7066
|
|
|
6822
7067
|
module.exports = EWallElement;
|
|
6823
7068
|
}, {
|
|
6824
|
-
"./base/base-element.js":
|
|
7069
|
+
"./base/base-element.js": 101
|
|
6825
7070
|
}],
|
|
6826
|
-
|
|
7071
|
+
106: [function (require, module, exports) {
|
|
6827
7072
|
var BaseElement = require("./base/base-element.js");
|
|
6828
7073
|
|
|
6829
7074
|
var FaceARElement = /*#__PURE__*/function (_BaseElement4) {
|
|
@@ -6854,9 +7099,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6854
7099
|
|
|
6855
7100
|
module.exports = FaceARElement;
|
|
6856
7101
|
}, {
|
|
6857
|
-
"./base/base-element.js":
|
|
7102
|
+
"./base/base-element.js": 101
|
|
6858
7103
|
}],
|
|
6859
|
-
|
|
7104
|
+
107: [function (require, module, exports) {
|
|
6860
7105
|
var BaseElement = require("./base/base-element.js");
|
|
6861
7106
|
|
|
6862
7107
|
var ProductElement = /*#__PURE__*/function (_BaseElement5) {
|
|
@@ -6903,9 +7148,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6903
7148
|
|
|
6904
7149
|
module.exports = ProductElement;
|
|
6905
7150
|
}, {
|
|
6906
|
-
"./base/base-element.js":
|
|
7151
|
+
"./base/base-element.js": 101
|
|
6907
7152
|
}],
|
|
6908
|
-
|
|
7153
|
+
108: [function (require, module, exports) {
|
|
6909
7154
|
var BaseElement = require("./base/base-element.js");
|
|
6910
7155
|
|
|
6911
7156
|
var StudioElement = /*#__PURE__*/function (_BaseElement6) {
|
|
@@ -6936,9 +7181,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6936
7181
|
|
|
6937
7182
|
module.exports = StudioElement;
|
|
6938
7183
|
}, {
|
|
6939
|
-
"./base/base-element.js":
|
|
7184
|
+
"./base/base-element.js": 101
|
|
6940
7185
|
}],
|
|
6941
|
-
|
|
7186
|
+
109: [function (require, module, exports) {
|
|
6942
7187
|
var BaseElement = require("./base/base-element.js");
|
|
6943
7188
|
|
|
6944
7189
|
var ViewerElement = /*#__PURE__*/function (_BaseElement7) {
|
|
@@ -6969,9 +7214,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6969
7214
|
|
|
6970
7215
|
module.exports = ViewerElement;
|
|
6971
7216
|
}, {
|
|
6972
|
-
"./base/base-element.js":
|
|
7217
|
+
"./base/base-element.js": 101
|
|
6973
7218
|
}],
|
|
6974
|
-
|
|
7219
|
+
110: [function (require, module, exports) {
|
|
6975
7220
|
var BaseElement = require("./base/base-element.js");
|
|
6976
7221
|
|
|
6977
7222
|
var WebXRElement = /*#__PURE__*/function (_BaseElement8) {
|
|
@@ -7002,9 +7247,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7002
7247
|
|
|
7003
7248
|
module.exports = WebXRElement;
|
|
7004
7249
|
}, {
|
|
7005
|
-
"./base/base-element.js":
|
|
7250
|
+
"./base/base-element.js": 101
|
|
7006
7251
|
}],
|
|
7007
|
-
|
|
7252
|
+
111: [function (require, module, exports) {
|
|
7008
7253
|
"use strict";
|
|
7009
7254
|
|
|
7010
7255
|
var WebXRElement = require("./elements/webxr-element.js");
|
|
@@ -7035,16 +7280,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7035
7280
|
version: Version
|
|
7036
7281
|
};
|
|
7037
7282
|
}, {
|
|
7038
|
-
"./elements/editor-element.js":
|
|
7039
|
-
"./elements/ewall-element.js":
|
|
7040
|
-
"./elements/facear-element.js":
|
|
7041
|
-
"./elements/product-element.js":
|
|
7042
|
-
"./elements/studio-element.js":
|
|
7043
|
-
"./elements/viewer-element.js":
|
|
7044
|
-
"./elements/webxr-element.js":
|
|
7045
|
-
"./version":
|
|
7283
|
+
"./elements/editor-element.js": 104,
|
|
7284
|
+
"./elements/ewall-element.js": 105,
|
|
7285
|
+
"./elements/facear-element.js": 106,
|
|
7286
|
+
"./elements/product-element.js": 107,
|
|
7287
|
+
"./elements/studio-element.js": 108,
|
|
7288
|
+
"./elements/viewer-element.js": 109,
|
|
7289
|
+
"./elements/webxr-element.js": 110,
|
|
7290
|
+
"./version": 113
|
|
7046
7291
|
}],
|
|
7047
|
-
|
|
7292
|
+
112: [function (require, module, exports) {
|
|
7048
7293
|
var Util = /*#__PURE__*/function () {
|
|
7049
7294
|
function Util() {
|
|
7050
7295
|
_classCallCheck(this, Util);
|
|
@@ -7140,10 +7385,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7140
7385
|
|
|
7141
7386
|
module.exports = Util;
|
|
7142
7387
|
}, {}],
|
|
7143
|
-
|
|
7388
|
+
113: [function (require, module, exports) {
|
|
7144
7389
|
module.exports = "1.113.10";
|
|
7145
7390
|
}, {}],
|
|
7146
|
-
|
|
7391
|
+
114: [function (require, module, exports) {
|
|
7147
7392
|
(function (global) {
|
|
7148
7393
|
(function () {
|
|
7149
7394
|
"use strict"; // ref: https://github.com/tc39/proposal-global
|
|
@@ -7180,7 +7425,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7180
7425
|
}).call(this);
|
|
7181
7426
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
7182
7427
|
}, {}],
|
|
7183
|
-
|
|
7428
|
+
115: [function (require, module, exports) {
|
|
7184
7429
|
// shim for using process in browser
|
|
7185
7430
|
var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
|
|
7186
7431
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
@@ -7390,7 +7635,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7390
7635
|
return 0;
|
|
7391
7636
|
};
|
|
7392
7637
|
}, {}],
|
|
7393
|
-
|
|
7638
|
+
116: [function (require, module, exports) {
|
|
7394
7639
|
!function (t, e) {
|
|
7395
7640
|
"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();
|
|
7396
7641
|
}(self, function () {
|
|
@@ -10813,6 +11058,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
10813
11058
|
}()["default"];
|
|
10814
11059
|
});
|
|
10815
11060
|
}, {}]
|
|
10816
|
-
}, {}, [
|
|
11061
|
+
}, {}, [6])(6);
|
|
10817
11062
|
});
|
|
10818
11063
|
|