@plattar/plattar-ar-adapter 1.123.8 → 1.130.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 +557 -362
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +174 -34
- package/build/es2019/plattar-ar-adapter.min.js +2 -2
- package/dist/ar/launcher-ar.d.ts +8 -0
- package/dist/ar/launcher-ar.js +11 -1
- package/dist/ar/model-ar.js +4 -2
- package/dist/ar/product-ar.js +11 -2
- package/dist/ar/raw-ar.js +4 -2
- package/dist/ar/scene-ar.js +7 -2
- package/dist/embed/controllers/configurator-controller.d.ts +1 -4
- package/dist/embed/controllers/configurator-controller.js +1 -4
- package/dist/embed/controllers/plattar-controller.d.ts +20 -5
- package/dist/embed/controllers/plattar-controller.js +84 -0
- package/dist/embed/controllers/product-controller.d.ts +1 -4
- package/dist/embed/controllers/product-controller.js +9 -4
- package/dist/embed/controllers/viewer-controller.d.ts +1 -4
- package/dist/embed/controllers/viewer-controller.js +9 -4
- package/dist/embed/controllers/vto-controller.d.ts +1 -4
- package/dist/embed/controllers/vto-controller.js +1 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -8
|
@@ -120,6 +120,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
120
120
|
var LauncherAR = /*#__PURE__*/function () {
|
|
121
121
|
function LauncherAR() {
|
|
122
122
|
_classCallCheck(this, LauncherAR);
|
|
123
|
+
|
|
124
|
+
this._opt = {
|
|
125
|
+
anchor: "horizontal_vertical"
|
|
126
|
+
};
|
|
123
127
|
}
|
|
124
128
|
/**
|
|
125
129
|
* Initialise and launch with a single function call. this is mostly for convenience.
|
|
@@ -139,6 +143,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
139
143
|
})["catch"](reject);
|
|
140
144
|
});
|
|
141
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* AR Options used for launching AR
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
}, {
|
|
151
|
+
key: "options",
|
|
152
|
+
get: function get() {
|
|
153
|
+
return this._opt;
|
|
154
|
+
}
|
|
142
155
|
}]);
|
|
143
156
|
|
|
144
157
|
return LauncherAR;
|
|
@@ -272,8 +285,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
272
285
|
|
|
273
286
|
|
|
274
287
|
if (util_1.Util.canSceneViewer()) {
|
|
275
|
-
|
|
276
|
-
|
|
288
|
+
var arviewer = new scene_viewer_1["default"]();
|
|
289
|
+
arviewer.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.original_filename;
|
|
290
|
+
arviewer.isVertical = _this3.options.anchor === "vertical" ? true : false;
|
|
291
|
+
_this3._ar = arviewer;
|
|
277
292
|
return accept(_this3);
|
|
278
293
|
} // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
|
|
279
294
|
// earlier in the process
|
|
@@ -516,8 +531,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
516
531
|
|
|
517
532
|
|
|
518
533
|
if (util_1.Util.canSceneViewer()) {
|
|
519
|
-
|
|
520
|
-
|
|
534
|
+
var arviewer = new scene_viewer_1["default"]();
|
|
535
|
+
arviewer.modelUrl = plattar_api_1.Server.location().cdn + model.attributes.path + model.attributes.original_filename;
|
|
536
|
+
arviewer.isVertical = _this5.options.anchor === "vertical" ? true : false;
|
|
537
|
+
var scene = product.relationships.find(plattar_api_1.Scene);
|
|
538
|
+
|
|
539
|
+
if (scene) {
|
|
540
|
+
var sceneOpt = scene.attributes.custom_json || {};
|
|
541
|
+
|
|
542
|
+
if (sceneOpt.anchor === "vertical") {
|
|
543
|
+
arviewer.isVertical = true;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
_this5._ar = arviewer;
|
|
521
548
|
return accept(_this5);
|
|
522
549
|
} // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
|
|
523
550
|
// earlier in the process
|
|
@@ -687,8 +714,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
687
714
|
|
|
688
715
|
if (util_1.Util.canSceneViewer()) {
|
|
689
716
|
if (lowerLoc.endsWith("glb") || lowerLoc.endsWith("gltf")) {
|
|
690
|
-
|
|
691
|
-
|
|
717
|
+
var arviewer = new scene_viewer_1["default"]();
|
|
718
|
+
arviewer.modelUrl = modelLocation;
|
|
719
|
+
arviewer.isVertical = _this7.options.anchor === "vertical" ? true : false;
|
|
720
|
+
_this7._ar = arviewer;
|
|
692
721
|
return accept(_this7);
|
|
693
722
|
}
|
|
694
723
|
|
|
@@ -916,8 +945,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
916
945
|
|
|
917
946
|
if (util_1.Util.canSceneViewer()) {
|
|
918
947
|
return _this9._ComposeScene(scene, "glb").then(function (modelUrl) {
|
|
919
|
-
|
|
920
|
-
|
|
948
|
+
var arviewer = new scene_viewer_1["default"]();
|
|
949
|
+
arviewer.modelUrl = modelUrl;
|
|
950
|
+
arviewer.isVertical = _this9.options.anchor === "vertical" ? true : false;
|
|
951
|
+
|
|
952
|
+
if (sceneOpt.anchor === "vertical") {
|
|
953
|
+
arviewer.isVertical = true;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
_this9._ar = arviewer;
|
|
921
957
|
return accept(_this9);
|
|
922
958
|
})["catch"](reject);
|
|
923
959
|
} // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
|
|
@@ -1106,15 +1142,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1106
1142
|
var _super6 = _createSuper(ConfiguratorController);
|
|
1107
1143
|
|
|
1108
1144
|
function ConfiguratorController(parent) {
|
|
1109
|
-
var _this12;
|
|
1110
|
-
|
|
1111
1145
|
_classCallCheck(this, ConfiguratorController);
|
|
1112
1146
|
|
|
1113
|
-
|
|
1114
|
-
_this12._state = plattar_controller_1.ControllerState.None;
|
|
1115
|
-
_this12._element = null;
|
|
1116
|
-
_this12._prevQROpt = null;
|
|
1117
|
-
return _this12;
|
|
1147
|
+
return _super6.call(this, parent);
|
|
1118
1148
|
}
|
|
1119
1149
|
|
|
1120
1150
|
_createClass(ConfiguratorController, [{
|
|
@@ -1128,22 +1158,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1128
1158
|
}
|
|
1129
1159
|
}
|
|
1130
1160
|
}, {
|
|
1131
|
-
key: "
|
|
1132
|
-
value: function
|
|
1133
|
-
var
|
|
1161
|
+
key: "startViewerQRCode",
|
|
1162
|
+
value: function startViewerQRCode(options) {
|
|
1163
|
+
var _this12 = this;
|
|
1134
1164
|
|
|
1135
1165
|
return new Promise(function (accept, reject) {
|
|
1136
1166
|
// remove the old renderer instance if any
|
|
1137
|
-
|
|
1167
|
+
_this12.removeRenderer();
|
|
1138
1168
|
|
|
1139
|
-
var sceneID =
|
|
1169
|
+
var sceneID = _this12.getAttribute("scene-id");
|
|
1140
1170
|
|
|
1141
1171
|
if (sceneID) {
|
|
1142
1172
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1143
1173
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1144
1174
|
|
|
1145
|
-
var width =
|
|
1146
|
-
var height =
|
|
1175
|
+
var width = _this12.getAttribute("width") || "500px";
|
|
1176
|
+
var height = _this12.getAttribute("height") || "500px";
|
|
1147
1177
|
viewer.setAttribute("width", width);
|
|
1148
1178
|
viewer.setAttribute("height", height);
|
|
1149
1179
|
|
|
@@ -1161,9 +1191,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1161
1191
|
|
|
1162
1192
|
var dst = plattar_api_1.Server.location().base + "renderer/configurator.html?scene_id=" + sceneID; // optional attributes
|
|
1163
1193
|
|
|
1164
|
-
var configState =
|
|
1194
|
+
var configState = _this12.getAttribute("config-state");
|
|
1165
1195
|
|
|
1166
|
-
var showAR =
|
|
1196
|
+
var showAR = _this12.getAttribute("show-ar");
|
|
1167
1197
|
|
|
1168
1198
|
if (configState) {
|
|
1169
1199
|
dst += "&config_state=" + configState;
|
|
@@ -1179,11 +1209,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1179
1209
|
return accept(viewer);
|
|
1180
1210
|
};
|
|
1181
1211
|
|
|
1182
|
-
|
|
1212
|
+
_this12.append(viewer);
|
|
1183
1213
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1214
|
+
_this12._element = viewer;
|
|
1215
|
+
_this12._state = plattar_controller_1.ControllerState.QRCode;
|
|
1216
|
+
_this12._prevQROpt = opt;
|
|
1187
1217
|
return;
|
|
1188
1218
|
}
|
|
1189
1219
|
|
|
@@ -1193,28 +1223,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1193
1223
|
}, {
|
|
1194
1224
|
key: "startRenderer",
|
|
1195
1225
|
value: function startRenderer() {
|
|
1196
|
-
var
|
|
1226
|
+
var _this13 = this;
|
|
1197
1227
|
|
|
1198
1228
|
return new Promise(function (accept, reject) {
|
|
1199
1229
|
// remove the old renderer instance if any
|
|
1200
|
-
|
|
1230
|
+
_this13.removeRenderer();
|
|
1201
1231
|
|
|
1202
|
-
var sceneID =
|
|
1232
|
+
var sceneID = _this13.getAttribute("scene-id");
|
|
1203
1233
|
|
|
1204
1234
|
if (sceneID) {
|
|
1205
1235
|
// required attributes with defaults for plattar-configurator node
|
|
1206
|
-
var width =
|
|
1207
|
-
var height =
|
|
1208
|
-
var server =
|
|
1236
|
+
var width = _this13.getAttribute("width") || "500px";
|
|
1237
|
+
var height = _this13.getAttribute("height") || "500px";
|
|
1238
|
+
var server = _this13.getAttribute("server") || "production";
|
|
1209
1239
|
var viewer = document.createElement("plattar-configurator");
|
|
1210
1240
|
viewer.setAttribute("width", width);
|
|
1211
1241
|
viewer.setAttribute("height", height);
|
|
1212
1242
|
viewer.setAttribute("server", server);
|
|
1213
1243
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1214
1244
|
|
|
1215
|
-
var configState =
|
|
1245
|
+
var configState = _this13.getAttribute("config-state");
|
|
1216
1246
|
|
|
1217
|
-
var showAR =
|
|
1247
|
+
var showAR = _this13.getAttribute("show-ar");
|
|
1218
1248
|
|
|
1219
1249
|
if (configState) {
|
|
1220
1250
|
viewer.setAttribute("config-state", configState);
|
|
@@ -1228,10 +1258,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1228
1258
|
return accept(viewer);
|
|
1229
1259
|
};
|
|
1230
1260
|
|
|
1231
|
-
|
|
1261
|
+
_this13.append(viewer);
|
|
1232
1262
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1263
|
+
_this13._element = viewer;
|
|
1264
|
+
_this13._state = plattar_controller_1.ControllerState.Renderer;
|
|
1235
1265
|
return;
|
|
1236
1266
|
}
|
|
1237
1267
|
|
|
@@ -1241,24 +1271,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1241
1271
|
}, {
|
|
1242
1272
|
key: "initAR",
|
|
1243
1273
|
value: function initAR() {
|
|
1244
|
-
var
|
|
1274
|
+
var _this14 = this;
|
|
1245
1275
|
|
|
1246
1276
|
return new Promise(function (accept, reject) {
|
|
1247
1277
|
if (!util_1.Util.canAugment()) {
|
|
1248
1278
|
return reject(new Error("ConfiguratorController.initAR() - cannot proceed as AR not available in context"));
|
|
1249
1279
|
}
|
|
1250
1280
|
|
|
1251
|
-
var arMode =
|
|
1281
|
+
var arMode = _this14.getAttribute("ar-mode") || "generated";
|
|
1252
1282
|
|
|
1253
1283
|
switch (arMode.toLowerCase()) {
|
|
1254
1284
|
case "inherited":
|
|
1255
|
-
|
|
1285
|
+
_this14._InitARInherited(accept, reject);
|
|
1256
1286
|
|
|
1257
1287
|
return;
|
|
1258
1288
|
|
|
1259
1289
|
case "generated":
|
|
1260
1290
|
default:
|
|
1261
|
-
|
|
1291
|
+
_this14._InitARGenerated(accept, reject);
|
|
1262
1292
|
|
|
1263
1293
|
}
|
|
1264
1294
|
});
|
|
@@ -1414,6 +1444,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1414
1444
|
value: true
|
|
1415
1445
|
});
|
|
1416
1446
|
exports.PlattarController = exports.ControllerState = void 0;
|
|
1447
|
+
|
|
1448
|
+
var plattar_api_1 = require("@plattar/plattar-api");
|
|
1449
|
+
|
|
1417
1450
|
var ControllerState;
|
|
1418
1451
|
|
|
1419
1452
|
(function (ControllerState) {
|
|
@@ -1430,6 +1463,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1430
1463
|
function PlattarController(parent) {
|
|
1431
1464
|
_classCallCheck(this, PlattarController);
|
|
1432
1465
|
|
|
1466
|
+
this._state = ControllerState.None;
|
|
1467
|
+
this._element = null;
|
|
1468
|
+
this._prevQROpt = null;
|
|
1433
1469
|
this._parent = parent;
|
|
1434
1470
|
}
|
|
1435
1471
|
/**
|
|
@@ -1444,15 +1480,128 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1444
1480
|
* Initialise and start AR mode if available
|
|
1445
1481
|
*/
|
|
1446
1482
|
function startAR() {
|
|
1447
|
-
var
|
|
1483
|
+
var _this15 = this;
|
|
1448
1484
|
|
|
1449
1485
|
return new Promise(function (accept, reject) {
|
|
1450
|
-
|
|
1486
|
+
_this15.initAR().then(function (launcher) {
|
|
1451
1487
|
launcher.start();
|
|
1452
1488
|
accept();
|
|
1453
1489
|
})["catch"](reject);
|
|
1454
1490
|
});
|
|
1455
1491
|
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Decide which QR Code to render according to the qr-type attribute
|
|
1494
|
+
* @param options
|
|
1495
|
+
* @returns
|
|
1496
|
+
*/
|
|
1497
|
+
|
|
1498
|
+
}, {
|
|
1499
|
+
key: "startQRCode",
|
|
1500
|
+
value: function startQRCode(options) {
|
|
1501
|
+
var qrType = this.getAttribute("qr-type") || "viewer";
|
|
1502
|
+
|
|
1503
|
+
switch (qrType.toLowerCase()) {
|
|
1504
|
+
case "ar":
|
|
1505
|
+
return this.startARQRCode(options);
|
|
1506
|
+
|
|
1507
|
+
case "viewer":
|
|
1508
|
+
default:
|
|
1509
|
+
return this.startViewerQRCode(options);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* Displays a QR Code that sends the user direct to AR
|
|
1514
|
+
* @param options
|
|
1515
|
+
* @returns
|
|
1516
|
+
*/
|
|
1517
|
+
|
|
1518
|
+
}, {
|
|
1519
|
+
key: "startARQRCode",
|
|
1520
|
+
value: function startARQRCode(options) {
|
|
1521
|
+
var _this16 = this;
|
|
1522
|
+
|
|
1523
|
+
return new Promise(function (accept, reject) {
|
|
1524
|
+
// remove the old renderer instance if any
|
|
1525
|
+
_this16.removeRenderer();
|
|
1526
|
+
|
|
1527
|
+
var opt = options || PlattarController.DEFAULT_QR_OPTIONS;
|
|
1528
|
+
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1529
|
+
|
|
1530
|
+
var width = _this16.getAttribute("width") || "500px";
|
|
1531
|
+
var height = _this16.getAttribute("height") || "500px";
|
|
1532
|
+
viewer.setAttribute("width", width);
|
|
1533
|
+
viewer.setAttribute("height", height);
|
|
1534
|
+
|
|
1535
|
+
if (opt.color) {
|
|
1536
|
+
viewer.setAttribute("color", opt.color);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
if (opt.margin) {
|
|
1540
|
+
viewer.setAttribute("margin", "" + opt.margin);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
if (opt.qrType) {
|
|
1544
|
+
viewer.setAttribute("qr-type", opt.qrType);
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
var qrOptions = btoa(JSON.stringify(opt));
|
|
1548
|
+
var dst = plattar_api_1.Server.location().base + "renderer/launcher.html?qr_options=" + qrOptions;
|
|
1549
|
+
|
|
1550
|
+
var sceneID = _this16.getAttribute("scene-id");
|
|
1551
|
+
|
|
1552
|
+
var configState = _this16.getAttribute("config-state");
|
|
1553
|
+
|
|
1554
|
+
var embedType = _this16.getAttribute("embed-type");
|
|
1555
|
+
|
|
1556
|
+
var productID = _this16.getAttribute("product-id");
|
|
1557
|
+
|
|
1558
|
+
var sceneProductID = _this16.getAttribute("scene-product-id");
|
|
1559
|
+
|
|
1560
|
+
var variationID = _this16.getAttribute("variation-id");
|
|
1561
|
+
|
|
1562
|
+
var arMode = _this16.getAttribute("ar-mode");
|
|
1563
|
+
|
|
1564
|
+
if (configState) {
|
|
1565
|
+
dst += "&config_state=" + configState;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
if (embedType) {
|
|
1569
|
+
dst += "&embed_type=" + embedType;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
if (productID) {
|
|
1573
|
+
dst += "&product_id=" + productID;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
if (sceneProductID) {
|
|
1577
|
+
dst += "&scene_product_id=" + sceneProductID;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
if (variationID) {
|
|
1581
|
+
dst += "&variation_id=" + variationID;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
if (arMode) {
|
|
1585
|
+
dst += "&ar_mode=" + arMode;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
if (sceneID) {
|
|
1589
|
+
dst += "&scene_id=" + sceneID;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
viewer.setAttribute("url", opt.url || dst);
|
|
1593
|
+
|
|
1594
|
+
viewer.onload = function () {
|
|
1595
|
+
return accept(viewer);
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
_this16._element = viewer;
|
|
1599
|
+
_this16._state = ControllerState.QRCode;
|
|
1600
|
+
_this16._prevQROpt = opt;
|
|
1601
|
+
|
|
1602
|
+
_this16.append(viewer);
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1456
1605
|
/**
|
|
1457
1606
|
* Returns the Parent Instance
|
|
1458
1607
|
*/
|
|
@@ -1501,7 +1650,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1501
1650
|
}();
|
|
1502
1651
|
|
|
1503
1652
|
exports.PlattarController = PlattarController;
|
|
1504
|
-
}, {
|
|
1653
|
+
}, {
|
|
1654
|
+
"@plattar/plattar-api": 42
|
|
1655
|
+
}],
|
|
1505
1656
|
9: [function (require, module, exports) {
|
|
1506
1657
|
"use strict";
|
|
1507
1658
|
|
|
@@ -1528,15 +1679,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1528
1679
|
var _super7 = _createSuper(ProductController);
|
|
1529
1680
|
|
|
1530
1681
|
function ProductController(parent) {
|
|
1531
|
-
var _this17;
|
|
1532
|
-
|
|
1533
1682
|
_classCallCheck(this, ProductController);
|
|
1534
1683
|
|
|
1535
|
-
|
|
1536
|
-
_this17._state = plattar_controller_1.ControllerState.None;
|
|
1537
|
-
_this17._element = null;
|
|
1538
|
-
_this17._prevQROpt = null;
|
|
1539
|
-
return _this17;
|
|
1684
|
+
return _super7.call(this, parent);
|
|
1540
1685
|
}
|
|
1541
1686
|
|
|
1542
1687
|
_createClass(ProductController, [{
|
|
@@ -1565,22 +1710,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1565
1710
|
}
|
|
1566
1711
|
}
|
|
1567
1712
|
}, {
|
|
1568
|
-
key: "
|
|
1569
|
-
value: function
|
|
1570
|
-
var
|
|
1713
|
+
key: "startViewerQRCode",
|
|
1714
|
+
value: function startViewerQRCode(options) {
|
|
1715
|
+
var _this17 = this;
|
|
1571
1716
|
|
|
1572
1717
|
return new Promise(function (accept, reject) {
|
|
1573
1718
|
// remove the old renderer instance if any
|
|
1574
|
-
|
|
1719
|
+
_this17.removeRenderer();
|
|
1575
1720
|
|
|
1576
|
-
var productID =
|
|
1721
|
+
var productID = _this17.getAttribute("product-id");
|
|
1577
1722
|
|
|
1578
1723
|
if (productID) {
|
|
1579
1724
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1580
1725
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1581
1726
|
|
|
1582
|
-
var width =
|
|
1583
|
-
var height =
|
|
1727
|
+
var width = _this17.getAttribute("width") || "500px";
|
|
1728
|
+
var height = _this17.getAttribute("height") || "500px";
|
|
1584
1729
|
viewer.setAttribute("width", width);
|
|
1585
1730
|
viewer.setAttribute("height", height);
|
|
1586
1731
|
|
|
@@ -1597,7 +1742,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1597
1742
|
} // optional attributes
|
|
1598
1743
|
|
|
1599
1744
|
|
|
1600
|
-
var variationID =
|
|
1745
|
+
var variationID = _this17.getAttribute("variation-id");
|
|
1746
|
+
|
|
1747
|
+
var showAR = _this17.getAttribute("show-ar");
|
|
1601
1748
|
|
|
1602
1749
|
var dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + productID;
|
|
1603
1750
|
|
|
@@ -1605,17 +1752,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1605
1752
|
dst += "&variation_id=" + variationID;
|
|
1606
1753
|
}
|
|
1607
1754
|
|
|
1755
|
+
if (showAR) {
|
|
1756
|
+
dst += "&show_ar=" + showAR;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1608
1759
|
viewer.setAttribute("url", opt.url || dst);
|
|
1609
1760
|
|
|
1610
1761
|
viewer.onload = function () {
|
|
1611
1762
|
return accept(viewer);
|
|
1612
1763
|
};
|
|
1613
1764
|
|
|
1614
|
-
|
|
1765
|
+
_this17.append(viewer);
|
|
1615
1766
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1767
|
+
_this17._element = viewer;
|
|
1768
|
+
_this17._state = plattar_controller_1.ControllerState.QRCode;
|
|
1769
|
+
_this17._prevQROpt = opt;
|
|
1619
1770
|
return;
|
|
1620
1771
|
}
|
|
1621
1772
|
|
|
@@ -1625,39 +1776,45 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1625
1776
|
}, {
|
|
1626
1777
|
key: "startRenderer",
|
|
1627
1778
|
value: function startRenderer() {
|
|
1628
|
-
var
|
|
1779
|
+
var _this18 = this;
|
|
1629
1780
|
|
|
1630
1781
|
return new Promise(function (accept, reject) {
|
|
1631
1782
|
// remove the old renderer instance if any
|
|
1632
|
-
|
|
1783
|
+
_this18.removeRenderer();
|
|
1633
1784
|
|
|
1634
|
-
var productID =
|
|
1785
|
+
var productID = _this18.getAttribute("product-id");
|
|
1635
1786
|
|
|
1636
1787
|
if (productID) {
|
|
1637
1788
|
// required attributes with defaults for plattar-product node
|
|
1638
|
-
var width =
|
|
1639
|
-
var height =
|
|
1640
|
-
var server =
|
|
1789
|
+
var width = _this18.getAttribute("width") || "500px";
|
|
1790
|
+
var height = _this18.getAttribute("height") || "500px";
|
|
1791
|
+
var server = _this18.getAttribute("server") || "production";
|
|
1641
1792
|
var viewer = document.createElement("plattar-product");
|
|
1642
1793
|
viewer.setAttribute("width", width);
|
|
1643
1794
|
viewer.setAttribute("height", height);
|
|
1644
1795
|
viewer.setAttribute("server", server);
|
|
1645
1796
|
viewer.setAttribute("product-id", productID); // optional attributes
|
|
1646
1797
|
|
|
1647
|
-
var variationID =
|
|
1798
|
+
var variationID = _this18.getAttribute("variation-id");
|
|
1799
|
+
|
|
1800
|
+
var showAR = _this18.getAttribute("show-ar");
|
|
1648
1801
|
|
|
1649
1802
|
if (variationID) {
|
|
1650
1803
|
viewer.setAttribute("variation-id", variationID);
|
|
1651
1804
|
}
|
|
1652
1805
|
|
|
1806
|
+
if (showAR) {
|
|
1807
|
+
viewer.setAttribute("show-ar", showAR);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1653
1810
|
viewer.onload = function () {
|
|
1654
1811
|
return accept(viewer);
|
|
1655
1812
|
};
|
|
1656
1813
|
|
|
1657
|
-
|
|
1814
|
+
_this18.append(viewer);
|
|
1658
1815
|
|
|
1659
|
-
|
|
1660
|
-
|
|
1816
|
+
_this18._element = viewer;
|
|
1817
|
+
_this18._state = plattar_controller_1.ControllerState.Renderer;
|
|
1661
1818
|
return;
|
|
1662
1819
|
}
|
|
1663
1820
|
|
|
@@ -1667,17 +1824,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1667
1824
|
}, {
|
|
1668
1825
|
key: "initAR",
|
|
1669
1826
|
value: function initAR() {
|
|
1670
|
-
var
|
|
1827
|
+
var _this19 = this;
|
|
1671
1828
|
|
|
1672
1829
|
return new Promise(function (accept, reject) {
|
|
1673
1830
|
if (!util_1.Util.canAugment()) {
|
|
1674
1831
|
return reject(new Error("ProductController.initAR() - cannot proceed as AR not available in context"));
|
|
1675
1832
|
}
|
|
1676
1833
|
|
|
1677
|
-
var productID =
|
|
1834
|
+
var productID = _this19.getAttribute("product-id");
|
|
1678
1835
|
|
|
1679
1836
|
if (productID) {
|
|
1680
|
-
var variationID =
|
|
1837
|
+
var variationID = _this19.getAttribute("variation-id");
|
|
1681
1838
|
|
|
1682
1839
|
var product = new product_ar_1.ProductAR(productID, variationID);
|
|
1683
1840
|
return product.init().then(accept)["catch"](reject);
|
|
@@ -1745,15 +1902,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1745
1902
|
var _super8 = _createSuper(ViewerController);
|
|
1746
1903
|
|
|
1747
1904
|
function ViewerController(parent) {
|
|
1748
|
-
var _this21;
|
|
1749
|
-
|
|
1750
1905
|
_classCallCheck(this, ViewerController);
|
|
1751
1906
|
|
|
1752
|
-
|
|
1753
|
-
_this21._state = plattar_controller_1.ControllerState.None;
|
|
1754
|
-
_this21._element = null;
|
|
1755
|
-
_this21._prevQROpt = null;
|
|
1756
|
-
return _this21;
|
|
1907
|
+
return _super8.call(this, parent);
|
|
1757
1908
|
}
|
|
1758
1909
|
|
|
1759
1910
|
_createClass(ViewerController, [{
|
|
@@ -1783,22 +1934,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1783
1934
|
}
|
|
1784
1935
|
}
|
|
1785
1936
|
}, {
|
|
1786
|
-
key: "
|
|
1787
|
-
value: function
|
|
1788
|
-
var
|
|
1937
|
+
key: "startViewerQRCode",
|
|
1938
|
+
value: function startViewerQRCode(options) {
|
|
1939
|
+
var _this20 = this;
|
|
1789
1940
|
|
|
1790
1941
|
return new Promise(function (accept, reject) {
|
|
1791
1942
|
// remove the old renderer instance if any
|
|
1792
|
-
|
|
1943
|
+
_this20.removeRenderer();
|
|
1793
1944
|
|
|
1794
|
-
var sceneID =
|
|
1945
|
+
var sceneID = _this20.getAttribute("scene-id");
|
|
1795
1946
|
|
|
1796
1947
|
if (sceneID) {
|
|
1797
1948
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1798
1949
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1799
1950
|
|
|
1800
|
-
var width =
|
|
1801
|
-
var height =
|
|
1951
|
+
var width = _this20.getAttribute("width") || "500px";
|
|
1952
|
+
var height = _this20.getAttribute("height") || "500px";
|
|
1802
1953
|
viewer.setAttribute("width", width);
|
|
1803
1954
|
viewer.setAttribute("height", height);
|
|
1804
1955
|
|
|
@@ -1816,9 +1967,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1816
1967
|
|
|
1817
1968
|
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + sceneID; // optional attributes
|
|
1818
1969
|
|
|
1819
|
-
var productID =
|
|
1970
|
+
var productID = _this20.getAttribute("product-id") || _this20.getAttribute("scene-product-id");
|
|
1820
1971
|
|
|
1821
|
-
var variationID =
|
|
1972
|
+
var variationID = _this20.getAttribute("variation-id");
|
|
1973
|
+
|
|
1974
|
+
var showAR = _this20.getAttribute("show-ar");
|
|
1822
1975
|
|
|
1823
1976
|
if (productID) {
|
|
1824
1977
|
dst += "&productId=" + productID;
|
|
@@ -1828,17 +1981,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1828
1981
|
dst += "&variationId=" + variationID;
|
|
1829
1982
|
}
|
|
1830
1983
|
|
|
1984
|
+
if (showAR) {
|
|
1985
|
+
dst += "&show_ar=" + showAR;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1831
1988
|
viewer.setAttribute("url", opt.url || dst);
|
|
1832
1989
|
|
|
1833
1990
|
viewer.onload = function () {
|
|
1834
1991
|
return accept(viewer);
|
|
1835
1992
|
};
|
|
1836
1993
|
|
|
1837
|
-
|
|
1994
|
+
_this20.append(viewer);
|
|
1838
1995
|
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1996
|
+
_this20._element = viewer;
|
|
1997
|
+
_this20._state = plattar_controller_1.ControllerState.QRCode;
|
|
1998
|
+
_this20._prevQROpt = opt;
|
|
1842
1999
|
return;
|
|
1843
2000
|
}
|
|
1844
2001
|
|
|
@@ -1848,28 +2005,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1848
2005
|
}, {
|
|
1849
2006
|
key: "startRenderer",
|
|
1850
2007
|
value: function startRenderer() {
|
|
1851
|
-
var
|
|
2008
|
+
var _this21 = this;
|
|
1852
2009
|
|
|
1853
2010
|
return new Promise(function (accept, reject) {
|
|
1854
2011
|
// remove the old renderer instance if any
|
|
1855
|
-
|
|
2012
|
+
_this21.removeRenderer();
|
|
1856
2013
|
|
|
1857
|
-
var sceneID =
|
|
2014
|
+
var sceneID = _this21.getAttribute("scene-id");
|
|
1858
2015
|
|
|
1859
2016
|
if (sceneID) {
|
|
1860
2017
|
// required attributes with defaults for plattar-viewer node
|
|
1861
|
-
var width =
|
|
1862
|
-
var height =
|
|
1863
|
-
var server =
|
|
2018
|
+
var width = _this21.getAttribute("width") || "500px";
|
|
2019
|
+
var height = _this21.getAttribute("height") || "500px";
|
|
2020
|
+
var server = _this21.getAttribute("server") || "production";
|
|
1864
2021
|
var viewer = document.createElement("plattar-viewer");
|
|
1865
2022
|
viewer.setAttribute("width", width);
|
|
1866
2023
|
viewer.setAttribute("height", height);
|
|
1867
2024
|
viewer.setAttribute("server", server);
|
|
1868
2025
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1869
2026
|
|
|
1870
|
-
var productID =
|
|
2027
|
+
var productID = _this21.getAttribute("product-id") || _this21.getAttribute("scene-product-id");
|
|
2028
|
+
|
|
2029
|
+
var variationID = _this21.getAttribute("variation-id");
|
|
1871
2030
|
|
|
1872
|
-
var
|
|
2031
|
+
var showAR = _this21.getAttribute("show-ar");
|
|
1873
2032
|
|
|
1874
2033
|
if (productID) {
|
|
1875
2034
|
viewer.setAttribute("product-id", productID);
|
|
@@ -1879,14 +2038,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1879
2038
|
viewer.setAttribute("variation-id", variationID);
|
|
1880
2039
|
}
|
|
1881
2040
|
|
|
2041
|
+
if (showAR) {
|
|
2042
|
+
viewer.setAttribute("show-ar", showAR);
|
|
2043
|
+
}
|
|
2044
|
+
|
|
1882
2045
|
viewer.onload = function () {
|
|
1883
2046
|
return accept(viewer);
|
|
1884
2047
|
};
|
|
1885
2048
|
|
|
1886
|
-
|
|
2049
|
+
_this21.append(viewer);
|
|
1887
2050
|
|
|
1888
|
-
|
|
1889
|
-
|
|
2051
|
+
_this21._element = viewer;
|
|
2052
|
+
_this21._state = plattar_controller_1.ControllerState.Renderer;
|
|
1890
2053
|
return;
|
|
1891
2054
|
}
|
|
1892
2055
|
|
|
@@ -1896,35 +2059,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1896
2059
|
}, {
|
|
1897
2060
|
key: "initAR",
|
|
1898
2061
|
value: function initAR() {
|
|
1899
|
-
var
|
|
2062
|
+
var _this22 = this;
|
|
1900
2063
|
|
|
1901
2064
|
return new Promise(function (accept, reject) {
|
|
1902
2065
|
if (!util_1.Util.canAugment()) {
|
|
1903
2066
|
return reject(new Error("ViewerController.initAR() - cannot proceed as AR not available in context"));
|
|
1904
2067
|
}
|
|
1905
2068
|
|
|
1906
|
-
var productID =
|
|
2069
|
+
var productID = _this22.getAttribute("product-id"); // use product-id if available
|
|
1907
2070
|
|
|
1908
2071
|
|
|
1909
2072
|
if (productID) {
|
|
1910
|
-
var variationID =
|
|
2073
|
+
var variationID = _this22.getAttribute("variation-id");
|
|
1911
2074
|
|
|
1912
2075
|
var product = new product_ar_1.ProductAR(productID, variationID);
|
|
1913
2076
|
return product.init().then(accept)["catch"](reject);
|
|
1914
2077
|
}
|
|
1915
2078
|
|
|
1916
|
-
var sceneProductID =
|
|
2079
|
+
var sceneProductID = _this22.getAttribute("scene-product-id"); // use scene-product-id if available
|
|
1917
2080
|
|
|
1918
2081
|
|
|
1919
2082
|
if (sceneProductID) {
|
|
1920
|
-
var _variationID =
|
|
2083
|
+
var _variationID = _this22.getAttribute("variation-id");
|
|
1921
2084
|
|
|
1922
2085
|
var _product = new scene_product_ar_1.SceneProductAR(sceneProductID, _variationID);
|
|
1923
2086
|
|
|
1924
2087
|
return _product.init().then(accept)["catch"](reject);
|
|
1925
2088
|
}
|
|
1926
2089
|
|
|
1927
|
-
var sceneID =
|
|
2090
|
+
var sceneID = _this22.getAttribute("scene-id"); // use the first default product-variation id if available
|
|
1928
2091
|
|
|
1929
2092
|
|
|
1930
2093
|
if (sceneID) {
|
|
@@ -2004,15 +2167,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2004
2167
|
var _super9 = _createSuper(VTOController);
|
|
2005
2168
|
|
|
2006
2169
|
function VTOController(parent) {
|
|
2007
|
-
var _this25;
|
|
2008
|
-
|
|
2009
2170
|
_classCallCheck(this, VTOController);
|
|
2010
2171
|
|
|
2011
|
-
|
|
2012
|
-
_this25._state = plattar_controller_1.ControllerState.None;
|
|
2013
|
-
_this25._element = null;
|
|
2014
|
-
_this25._prevQROpt = null;
|
|
2015
|
-
return _this25;
|
|
2172
|
+
return _super9.call(this, parent);
|
|
2016
2173
|
}
|
|
2017
2174
|
|
|
2018
2175
|
_createClass(VTOController, [{
|
|
@@ -2026,22 +2183,22 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2026
2183
|
}
|
|
2027
2184
|
}
|
|
2028
2185
|
}, {
|
|
2029
|
-
key: "
|
|
2030
|
-
value: function
|
|
2031
|
-
var
|
|
2186
|
+
key: "startViewerQRCode",
|
|
2187
|
+
value: function startViewerQRCode(options) {
|
|
2188
|
+
var _this23 = this;
|
|
2032
2189
|
|
|
2033
2190
|
return new Promise(function (accept, reject) {
|
|
2034
2191
|
// remove the old renderer instance if any
|
|
2035
|
-
|
|
2192
|
+
_this23.removeRenderer();
|
|
2036
2193
|
|
|
2037
|
-
var sceneID =
|
|
2194
|
+
var sceneID = _this23.getAttribute("scene-id");
|
|
2038
2195
|
|
|
2039
2196
|
if (sceneID) {
|
|
2040
2197
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
2041
2198
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
2042
2199
|
|
|
2043
|
-
var width =
|
|
2044
|
-
var height =
|
|
2200
|
+
var width = _this23.getAttribute("width") || "500px";
|
|
2201
|
+
var height = _this23.getAttribute("height") || "500px";
|
|
2045
2202
|
viewer.setAttribute("width", width);
|
|
2046
2203
|
viewer.setAttribute("height", height);
|
|
2047
2204
|
|
|
@@ -2059,9 +2216,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2059
2216
|
|
|
2060
2217
|
var dst = plattar_api_1.Server.location().base + "renderer/facear.html?scene_id=" + sceneID; // optional attributes
|
|
2061
2218
|
|
|
2062
|
-
var configState =
|
|
2219
|
+
var configState = _this23.getAttribute("config-state");
|
|
2063
2220
|
|
|
2064
|
-
var showAR =
|
|
2221
|
+
var showAR = _this23.getAttribute("show-ar");
|
|
2065
2222
|
|
|
2066
2223
|
if (configState) {
|
|
2067
2224
|
dst += "&config_state=" + configState;
|
|
@@ -2077,11 +2234,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2077
2234
|
return accept(viewer);
|
|
2078
2235
|
};
|
|
2079
2236
|
|
|
2080
|
-
|
|
2237
|
+
_this23.append(viewer);
|
|
2081
2238
|
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2239
|
+
_this23._element = viewer;
|
|
2240
|
+
_this23._state = plattar_controller_1.ControllerState.QRCode;
|
|
2241
|
+
_this23._prevQROpt = opt;
|
|
2085
2242
|
return;
|
|
2086
2243
|
}
|
|
2087
2244
|
|
|
@@ -2091,28 +2248,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2091
2248
|
}, {
|
|
2092
2249
|
key: "startRenderer",
|
|
2093
2250
|
value: function startRenderer() {
|
|
2094
|
-
var
|
|
2251
|
+
var _this24 = this;
|
|
2095
2252
|
|
|
2096
2253
|
return new Promise(function (accept, reject) {
|
|
2097
2254
|
// remove the old renderer instance if any
|
|
2098
|
-
|
|
2255
|
+
_this24.removeRenderer();
|
|
2099
2256
|
|
|
2100
|
-
var sceneID =
|
|
2257
|
+
var sceneID = _this24.getAttribute("scene-id");
|
|
2101
2258
|
|
|
2102
2259
|
if (sceneID) {
|
|
2103
2260
|
// required attributes with defaults for plattar-facear node
|
|
2104
|
-
var width =
|
|
2105
|
-
var height =
|
|
2106
|
-
var server =
|
|
2261
|
+
var width = _this24.getAttribute("width") || "500px";
|
|
2262
|
+
var height = _this24.getAttribute("height") || "500px";
|
|
2263
|
+
var server = _this24.getAttribute("server") || "production";
|
|
2107
2264
|
var viewer = document.createElement("plattar-facear");
|
|
2108
2265
|
viewer.setAttribute("width", width);
|
|
2109
2266
|
viewer.setAttribute("height", height);
|
|
2110
2267
|
viewer.setAttribute("server", server);
|
|
2111
2268
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
2112
2269
|
|
|
2113
|
-
var configState =
|
|
2270
|
+
var configState = _this24.getAttribute("config-state");
|
|
2114
2271
|
|
|
2115
|
-
var showAR =
|
|
2272
|
+
var showAR = _this24.getAttribute("show-ar");
|
|
2116
2273
|
|
|
2117
2274
|
if (configState) {
|
|
2118
2275
|
viewer.setAttribute("config-state", configState);
|
|
@@ -2126,10 +2283,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2126
2283
|
return accept(viewer);
|
|
2127
2284
|
};
|
|
2128
2285
|
|
|
2129
|
-
|
|
2286
|
+
_this24.append(viewer);
|
|
2130
2287
|
|
|
2131
|
-
|
|
2132
|
-
|
|
2288
|
+
_this24._element = viewer;
|
|
2289
|
+
_this24._state = plattar_controller_1.ControllerState.Renderer;
|
|
2133
2290
|
return;
|
|
2134
2291
|
}
|
|
2135
2292
|
|
|
@@ -2139,7 +2296,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2139
2296
|
}, {
|
|
2140
2297
|
key: "initAR",
|
|
2141
2298
|
value: function initAR() {
|
|
2142
|
-
var
|
|
2299
|
+
var _this25 = this;
|
|
2143
2300
|
|
|
2144
2301
|
return new Promise(function (accept, reject) {
|
|
2145
2302
|
if (!util_1.Util.canAugment()) {
|
|
@@ -2150,17 +2307,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2150
2307
|
return reject(new Error("VTOController.initAR() - cannot proceed as VTO AR only available on IOS Mobile devices"));
|
|
2151
2308
|
}
|
|
2152
2309
|
|
|
2153
|
-
var arMode =
|
|
2310
|
+
var arMode = _this25.getAttribute("ar-mode") || "generated";
|
|
2154
2311
|
|
|
2155
2312
|
switch (arMode.toLowerCase()) {
|
|
2156
2313
|
case "inherited":
|
|
2157
|
-
|
|
2314
|
+
_this25._InitARInherited(accept, reject);
|
|
2158
2315
|
|
|
2159
2316
|
return;
|
|
2160
2317
|
|
|
2161
2318
|
case "generated":
|
|
2162
2319
|
default:
|
|
2163
|
-
|
|
2320
|
+
_this25._InitARGenerated(accept, reject);
|
|
2164
2321
|
|
|
2165
2322
|
}
|
|
2166
2323
|
});
|
|
@@ -2335,15 +2492,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2335
2492
|
var _super10 = _createSuper(PlattarEmbed);
|
|
2336
2493
|
|
|
2337
2494
|
function PlattarEmbed() {
|
|
2338
|
-
var
|
|
2495
|
+
var _this26;
|
|
2339
2496
|
|
|
2340
2497
|
_classCallCheck(this, PlattarEmbed);
|
|
2341
2498
|
|
|
2342
|
-
|
|
2499
|
+
_this26 = _super10.call(this); // this is the current embed type, viewer by default
|
|
2343
2500
|
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
return
|
|
2501
|
+
_this26._currentType = EmbedType.Viewer;
|
|
2502
|
+
_this26._controller = null;
|
|
2503
|
+
return _this26;
|
|
2347
2504
|
}
|
|
2348
2505
|
|
|
2349
2506
|
_createClass(PlattarEmbed, [{
|
|
@@ -2354,7 +2511,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2354
2511
|
}, {
|
|
2355
2512
|
key: "connectedCallback",
|
|
2356
2513
|
value: function connectedCallback() {
|
|
2357
|
-
var
|
|
2514
|
+
var _this27 = this;
|
|
2358
2515
|
|
|
2359
2516
|
var embedType = this.hasAttribute("embed-type") ? this.getAttribute("embed-type") : "viewer";
|
|
2360
2517
|
|
|
@@ -2380,7 +2537,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2380
2537
|
var observer = new MutationObserver(function (mutations) {
|
|
2381
2538
|
mutations.forEach(function (mutation) {
|
|
2382
2539
|
if (mutation.type === "attributes") {
|
|
2383
|
-
|
|
2540
|
+
_this27._OnAttributesUpdated();
|
|
2384
2541
|
}
|
|
2385
2542
|
});
|
|
2386
2543
|
});
|
|
@@ -2416,66 +2573,66 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2416
2573
|
} else if (init === "ar-fallback-qrcode") {
|
|
2417
2574
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
2418
2575
|
})["catch"](function (_err) {
|
|
2419
|
-
|
|
2576
|
+
_this27.startQRCode();
|
|
2420
2577
|
});
|
|
2421
2578
|
} else if (init === "ar-fallback-viewer") {
|
|
2422
2579
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
2423
2580
|
})["catch"](function (_err) {
|
|
2424
|
-
|
|
2581
|
+
_this27.startViewer();
|
|
2425
2582
|
});
|
|
2426
2583
|
}
|
|
2427
2584
|
}
|
|
2428
2585
|
}, {
|
|
2429
2586
|
key: "initAR",
|
|
2430
2587
|
value: function initAR() {
|
|
2431
|
-
var
|
|
2588
|
+
var _this28 = this;
|
|
2432
2589
|
|
|
2433
2590
|
return new Promise(function (accept, reject) {
|
|
2434
|
-
if (!
|
|
2591
|
+
if (!_this28._controller) {
|
|
2435
2592
|
return reject(new Error("PlattarEmbed.initAR() - cannot execute as controller has not loaded yet"));
|
|
2436
2593
|
}
|
|
2437
2594
|
|
|
2438
|
-
return
|
|
2595
|
+
return _this28._controller.initAR().then(accept)["catch"](reject);
|
|
2439
2596
|
});
|
|
2440
2597
|
}
|
|
2441
2598
|
}, {
|
|
2442
2599
|
key: "startAR",
|
|
2443
2600
|
value: function startAR() {
|
|
2444
|
-
var
|
|
2601
|
+
var _this29 = this;
|
|
2445
2602
|
|
|
2446
2603
|
return new Promise(function (accept, reject) {
|
|
2447
|
-
if (!
|
|
2604
|
+
if (!_this29._controller) {
|
|
2448
2605
|
return reject(new Error("PlattarEmbed.startAR() - cannot execute as controller has not loaded yet"));
|
|
2449
2606
|
}
|
|
2450
2607
|
|
|
2451
|
-
return
|
|
2608
|
+
return _this29._controller.startAR().then(accept)["catch"](reject);
|
|
2452
2609
|
});
|
|
2453
2610
|
}
|
|
2454
2611
|
}, {
|
|
2455
2612
|
key: "startViewer",
|
|
2456
2613
|
value: function startViewer() {
|
|
2457
|
-
var
|
|
2614
|
+
var _this30 = this;
|
|
2458
2615
|
|
|
2459
2616
|
return new Promise(function (accept, reject) {
|
|
2460
|
-
if (!
|
|
2617
|
+
if (!_this30._controller) {
|
|
2461
2618
|
return reject(new Error("PlattarEmbed.startViewer() - cannot execute as controller has not loaded yet"));
|
|
2462
2619
|
}
|
|
2463
2620
|
|
|
2464
|
-
return
|
|
2621
|
+
return _this30._controller.startRenderer().then(accept)["catch"](reject);
|
|
2465
2622
|
});
|
|
2466
2623
|
}
|
|
2467
2624
|
}, {
|
|
2468
2625
|
key: "startQRCode",
|
|
2469
2626
|
value: function startQRCode() {
|
|
2470
|
-
var
|
|
2627
|
+
var _this31 = this;
|
|
2471
2628
|
|
|
2472
2629
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2473
2630
|
return new Promise(function (accept, reject) {
|
|
2474
|
-
if (!
|
|
2631
|
+
if (!_this31._controller) {
|
|
2475
2632
|
return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as controller has not loaded yet"));
|
|
2476
2633
|
}
|
|
2477
2634
|
|
|
2478
|
-
return
|
|
2635
|
+
return _this31._controller.startQRCode(options).then(accept)["catch"](reject);
|
|
2479
2636
|
});
|
|
2480
2637
|
}
|
|
2481
2638
|
/**
|
|
@@ -2523,12 +2680,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2523
2680
|
|
|
2524
2681
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
2525
2682
|
if (k2 === undefined) k2 = k;
|
|
2526
|
-
Object.
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2683
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2684
|
+
|
|
2685
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2686
|
+
desc = {
|
|
2687
|
+
enumerable: true,
|
|
2688
|
+
get: function get() {
|
|
2689
|
+
return m[k];
|
|
2690
|
+
}
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
Object.defineProperty(o, k2, desc);
|
|
2532
2695
|
} : function (o, m, k, k2) {
|
|
2533
2696
|
if (k2 === undefined) k2 = k;
|
|
2534
2697
|
o[k2] = m[k];
|
|
@@ -2564,11 +2727,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2564
2727
|
Object.defineProperty(exports, "__esModule", {
|
|
2565
2728
|
value: true
|
|
2566
2729
|
});
|
|
2567
|
-
exports.ConfiguratorState = exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.SceneProductAR = exports.ProductAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
2730
|
+
exports.ConfiguratorState = exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.SceneProductAR = exports.ProductAR = exports.LauncherAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
2568
2731
|
exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
|
|
2569
2732
|
exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
|
|
2570
2733
|
exports.version = __importStar(require("./version"));
|
|
2571
2734
|
|
|
2735
|
+
var launcher_ar_1 = require("./ar/launcher-ar");
|
|
2736
|
+
|
|
2737
|
+
Object.defineProperty(exports, "LauncherAR", {
|
|
2738
|
+
enumerable: true,
|
|
2739
|
+
get: function get() {
|
|
2740
|
+
return launcher_ar_1.LauncherAR;
|
|
2741
|
+
}
|
|
2742
|
+
});
|
|
2743
|
+
|
|
2572
2744
|
var product_ar_1 = require("./ar/product-ar");
|
|
2573
2745
|
|
|
2574
2746
|
Object.defineProperty(exports, "ProductAR", {
|
|
@@ -2644,6 +2816,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2644
2816
|
|
|
2645
2817
|
console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
|
|
2646
2818
|
}, {
|
|
2819
|
+
"./ar/launcher-ar": 1,
|
|
2647
2820
|
"./ar/model-ar": 2,
|
|
2648
2821
|
"./ar/product-ar": 3,
|
|
2649
2822
|
"./ar/raw-ar": 4,
|
|
@@ -3078,7 +3251,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3078
3251
|
Object.defineProperty(exports, "__esModule", {
|
|
3079
3252
|
value: true
|
|
3080
3253
|
});
|
|
3081
|
-
exports["default"] = "1.
|
|
3254
|
+
exports["default"] = "1.130.1";
|
|
3082
3255
|
}, {}],
|
|
3083
3256
|
17: [function (require, module, exports) {
|
|
3084
3257
|
"use strict";
|
|
@@ -3117,17 +3290,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3117
3290
|
var _super11 = _createSuper(QuicklookViewer);
|
|
3118
3291
|
|
|
3119
3292
|
function QuicklookViewer() {
|
|
3120
|
-
var
|
|
3293
|
+
var _this32;
|
|
3121
3294
|
|
|
3122
3295
|
_classCallCheck(this, QuicklookViewer);
|
|
3123
3296
|
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3297
|
+
_this32 = _super11.call(this);
|
|
3298
|
+
_this32.araction = null;
|
|
3299
|
+
_this32.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
|
|
3127
3300
|
|
|
3128
|
-
|
|
3301
|
+
_this32.arcallback = function () {};
|
|
3129
3302
|
|
|
3130
|
-
return
|
|
3303
|
+
return _this32;
|
|
3131
3304
|
}
|
|
3132
3305
|
|
|
3133
3306
|
_createClass(QuicklookViewer, [{
|
|
@@ -3143,7 +3316,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3143
3316
|
}, {
|
|
3144
3317
|
key: "start",
|
|
3145
3318
|
value: function start() {
|
|
3146
|
-
var
|
|
3319
|
+
var _this33 = this;
|
|
3147
3320
|
|
|
3148
3321
|
if (!this.modelUrl) {
|
|
3149
3322
|
throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
|
|
@@ -3158,7 +3331,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3158
3331
|
if (araction) {
|
|
3159
3332
|
var handleQuicklook = function handleQuicklook(event) {
|
|
3160
3333
|
if (event.data === "_apple_ar_quicklook_button_tapped") {
|
|
3161
|
-
|
|
3334
|
+
_this33.arcallback();
|
|
3162
3335
|
}
|
|
3163
3336
|
|
|
3164
3337
|
document.body.removeChild(anchor);
|
|
@@ -3265,16 +3438,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3265
3438
|
var _super13 = _createSuper(SceneViewer);
|
|
3266
3439
|
|
|
3267
3440
|
function SceneViewer() {
|
|
3268
|
-
var
|
|
3441
|
+
var _this34;
|
|
3269
3442
|
|
|
3270
3443
|
_classCallCheck(this, SceneViewer);
|
|
3271
3444
|
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
return
|
|
3445
|
+
_this34 = _super13.call(this);
|
|
3446
|
+
_this34.araction = null;
|
|
3447
|
+
_this34.isVertical = false;
|
|
3448
|
+
_this34.titleHTML = "<b>" + document.title;
|
|
3449
|
+
_this34.isVertical = false;
|
|
3450
|
+
return _this34;
|
|
3278
3451
|
}
|
|
3279
3452
|
|
|
3280
3453
|
_createClass(SceneViewer, [{
|
|
@@ -3386,7 +3559,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3386
3559
|
|
|
3387
3560
|
var Memory = /*#__PURE__*/function () {
|
|
3388
3561
|
function Memory(messengerInstance) {
|
|
3389
|
-
var
|
|
3562
|
+
var _this35 = this;
|
|
3390
3563
|
|
|
3391
3564
|
_classCallCheck(this, Memory);
|
|
3392
3565
|
|
|
@@ -3395,11 +3568,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3395
3568
|
this._permMemory = new PermanentMemory(messengerInstance);
|
|
3396
3569
|
|
|
3397
3570
|
this._messenger.self.__memory__set_temp_var = function (name, data) {
|
|
3398
|
-
|
|
3571
|
+
_this35._tempMemory[name] = data;
|
|
3399
3572
|
};
|
|
3400
3573
|
|
|
3401
3574
|
this._messenger.self.__memory__set_perm_var = function (name, data) {
|
|
3402
|
-
|
|
3575
|
+
_this35._permMemory[name] = data;
|
|
3403
3576
|
};
|
|
3404
3577
|
}
|
|
3405
3578
|
|
|
@@ -3897,20 +4070,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3897
4070
|
}, {
|
|
3898
4071
|
key: "exec",
|
|
3899
4072
|
value: function exec() {
|
|
3900
|
-
var
|
|
4073
|
+
var _this36 = this;
|
|
3901
4074
|
|
|
3902
4075
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
3903
4076
|
args[_key3] = arguments[_key3];
|
|
3904
4077
|
}
|
|
3905
4078
|
|
|
3906
4079
|
return new Promise(function (accept, reject) {
|
|
3907
|
-
if (!
|
|
3908
|
-
return reject(new Error("WrappedLocalFunction.exec() function with name " +
|
|
4080
|
+
if (!_this36._value) {
|
|
4081
|
+
return reject(new Error("WrappedLocalFunction.exec() function with name " + _this36._funcName + "() is not defined"));
|
|
3909
4082
|
}
|
|
3910
4083
|
|
|
3911
4084
|
try {
|
|
3912
4085
|
// otherwise execute the function
|
|
3913
|
-
var rObject =
|
|
4086
|
+
var rObject = _this36._execute.apply(_this36, args); // we need to check if the returned object is a Promise, if so, handle it
|
|
3914
4087
|
// differently. This can happen if the function wants to execute asyn
|
|
3915
4088
|
|
|
3916
4089
|
|
|
@@ -3974,7 +4147,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3974
4147
|
|
|
3975
4148
|
var GlobalEventHandler = /*#__PURE__*/function () {
|
|
3976
4149
|
function GlobalEventHandler() {
|
|
3977
|
-
var
|
|
4150
|
+
var _this37 = this;
|
|
3978
4151
|
|
|
3979
4152
|
_classCallCheck(this, GlobalEventHandler);
|
|
3980
4153
|
|
|
@@ -3996,10 +4169,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3996
4169
|
|
|
3997
4170
|
if (jsonData && jsonData.event && jsonData.data) {
|
|
3998
4171
|
// see if there are any listeners for this
|
|
3999
|
-
if (
|
|
4172
|
+
if (_this37._eventListeners[jsonData.event]) {
|
|
4000
4173
|
var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
|
|
4001
4174
|
|
|
4002
|
-
|
|
4175
|
+
_this37._eventListeners[jsonData.event].forEach(function (callback) {
|
|
4003
4176
|
try {
|
|
4004
4177
|
callback(remoteInterface, jsonData.data);
|
|
4005
4178
|
} catch (e) {
|
|
@@ -4195,40 +4368,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4195
4368
|
}, {
|
|
4196
4369
|
key: "_registerListeners",
|
|
4197
4370
|
value: function _registerListeners() {
|
|
4198
|
-
var
|
|
4371
|
+
var _this38 = this;
|
|
4199
4372
|
|
|
4200
4373
|
GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
|
|
4201
4374
|
var iframeID = src.id; // check reserved key list
|
|
4202
4375
|
|
|
4203
4376
|
switch (iframeID) {
|
|
4204
4377
|
case undefined:
|
|
4205
|
-
throw new Error("Messenger[" +
|
|
4378
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID cannot be undefined");
|
|
4206
4379
|
|
|
4207
4380
|
case "self":
|
|
4208
|
-
throw new Error("Messenger[" +
|
|
4381
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
4209
4382
|
|
|
4210
4383
|
case "parent":
|
|
4211
|
-
throw new Error("Messenger[" +
|
|
4384
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
4212
4385
|
|
|
4213
4386
|
case "id":
|
|
4214
|
-
throw new Error("Messenger[" +
|
|
4387
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
4215
4388
|
|
|
4216
4389
|
case "onload":
|
|
4217
|
-
throw new Error("Messenger[" +
|
|
4390
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
4218
4391
|
|
|
4219
4392
|
default:
|
|
4220
4393
|
break;
|
|
4221
4394
|
} // initialise the child iframe as a messenger pipe
|
|
4222
4395
|
|
|
4223
4396
|
|
|
4224
|
-
|
|
4397
|
+
_this38[iframeID] = new RemoteFunctionList(iframeID);
|
|
4225
4398
|
|
|
4226
|
-
|
|
4399
|
+
_this38[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
4227
4400
|
|
|
4228
4401
|
|
|
4229
|
-
|
|
4402
|
+
_this38._broadcaster._push(iframeID);
|
|
4230
4403
|
|
|
4231
|
-
var callbacks =
|
|
4404
|
+
var callbacks = _this38._callbacks; // we have registered callbacks, begin execution
|
|
4232
4405
|
|
|
4233
4406
|
if (callbacks.has(iframeID)) {
|
|
4234
4407
|
var array = callbacks.get(iframeID);
|
|
@@ -4252,33 +4425,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4252
4425
|
|
|
4253
4426
|
switch (iframeID) {
|
|
4254
4427
|
case undefined:
|
|
4255
|
-
throw new Error("Messenger[" +
|
|
4428
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID cannot be undefined");
|
|
4256
4429
|
|
|
4257
4430
|
case "self":
|
|
4258
|
-
throw new Error("Messenger[" +
|
|
4431
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
4259
4432
|
|
|
4260
4433
|
case "parent":
|
|
4261
|
-
throw new Error("Messenger[" +
|
|
4434
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
4262
4435
|
|
|
4263
4436
|
case "id":
|
|
4264
|
-
throw new Error("Messenger[" +
|
|
4437
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
4265
4438
|
|
|
4266
4439
|
case "onload":
|
|
4267
|
-
throw new Error("Messenger[" +
|
|
4440
|
+
throw new Error("Messenger[" + _this38._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
4268
4441
|
|
|
4269
4442
|
default:
|
|
4270
4443
|
break;
|
|
4271
4444
|
} // initialise the child iframe as a messenger pipe
|
|
4272
4445
|
|
|
4273
4446
|
|
|
4274
|
-
|
|
4447
|
+
_this38[iframeID] = new RemoteFunctionList(iframeID);
|
|
4275
4448
|
|
|
4276
|
-
|
|
4449
|
+
_this38[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
4277
4450
|
|
|
4278
4451
|
|
|
4279
|
-
|
|
4452
|
+
_this38._broadcaster._push(iframeID);
|
|
4280
4453
|
|
|
4281
|
-
var callbacks =
|
|
4454
|
+
var callbacks = _this38._callbacks; // we have registered callbacks, begin execution
|
|
4282
4455
|
|
|
4283
4456
|
if (callbacks.has(iframeID)) {
|
|
4284
4457
|
var array = callbacks.get(iframeID);
|
|
@@ -4298,11 +4471,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4298
4471
|
});
|
|
4299
4472
|
GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
|
|
4300
4473
|
var iframeID = "parent";
|
|
4301
|
-
|
|
4474
|
+
_this38[iframeID] = new RemoteFunctionList(iframeID);
|
|
4302
4475
|
|
|
4303
|
-
|
|
4476
|
+
_this38[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
4304
4477
|
|
|
4305
|
-
var callbacks =
|
|
4478
|
+
var callbacks = _this38._callbacks; // we have registered callbacks, begin execution
|
|
4306
4479
|
|
|
4307
4480
|
if (callbacks.has(iframeID)) {
|
|
4308
4481
|
var array = callbacks.get(iframeID);
|
|
@@ -4327,11 +4500,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4327
4500
|
|
|
4328
4501
|
GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
|
|
4329
4502
|
var iframeID = "parent";
|
|
4330
|
-
|
|
4503
|
+
_this38[iframeID] = new RemoteFunctionList(iframeID);
|
|
4331
4504
|
|
|
4332
|
-
|
|
4505
|
+
_this38[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
4333
4506
|
|
|
4334
|
-
var callbacks =
|
|
4507
|
+
var callbacks = _this38._callbacks; // we have registered callbacks, begin execution
|
|
4335
4508
|
|
|
4336
4509
|
if (callbacks.has(iframeID)) {
|
|
4337
4510
|
var array = callbacks.get(iframeID);
|
|
@@ -4569,7 +4742,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4569
4742
|
|
|
4570
4743
|
var WrappedRemoteFunction = /*#__PURE__*/function () {
|
|
4571
4744
|
function WrappedRemoteFunction(funcName, remoteInterface) {
|
|
4572
|
-
var
|
|
4745
|
+
var _this39 = this;
|
|
4573
4746
|
|
|
4574
4747
|
_classCallCheck(this, WrappedRemoteFunction);
|
|
4575
4748
|
|
|
@@ -4580,19 +4753,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4580
4753
|
GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
|
|
4581
4754
|
var instanceID = data.instance_id; // the function name must match
|
|
4582
4755
|
|
|
4583
|
-
if (data.function_name !==
|
|
4756
|
+
if (data.function_name !== _this39._funcName) {
|
|
4584
4757
|
return;
|
|
4585
4758
|
} // the instance ID must be found, otherwise this is a rogue execution
|
|
4586
4759
|
// that can be ignored (should not happen)
|
|
4587
4760
|
|
|
4588
4761
|
|
|
4589
|
-
if (!
|
|
4762
|
+
if (!_this39._callInstances[instanceID]) {
|
|
4590
4763
|
return;
|
|
4591
4764
|
}
|
|
4592
4765
|
|
|
4593
|
-
var promise =
|
|
4766
|
+
var promise = _this39._callInstances[instanceID]; // remove the old instance
|
|
4594
4767
|
|
|
4595
|
-
delete
|
|
4768
|
+
delete _this39._callInstances[instanceID]; // perform the promise callbacks
|
|
4596
4769
|
|
|
4597
4770
|
if (data.function_status === "success") {
|
|
4598
4771
|
promise.accept(data.function_args);
|
|
@@ -4609,7 +4782,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4609
4782
|
_createClass(WrappedRemoteFunction, [{
|
|
4610
4783
|
key: "exec",
|
|
4611
4784
|
value: function exec() {
|
|
4612
|
-
var
|
|
4785
|
+
var _this40 = this;
|
|
4613
4786
|
|
|
4614
4787
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
4615
4788
|
args[_key4] = arguments[_key4];
|
|
@@ -4629,14 +4802,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4629
4802
|
|
|
4630
4803
|
return new Promise(function (accept, reject) {
|
|
4631
4804
|
// save this promise to be executed later
|
|
4632
|
-
|
|
4805
|
+
_this40._callInstances[instanceID] = {
|
|
4633
4806
|
accept: accept,
|
|
4634
4807
|
reject: reject
|
|
4635
4808
|
}; // execute this event in another context
|
|
4636
4809
|
|
|
4637
|
-
|
|
4810
|
+
_this40._remoteInterface.send("__messenger__exec_fnc", {
|
|
4638
4811
|
instance_id: instanceID,
|
|
4639
|
-
function_name:
|
|
4812
|
+
function_name: _this40._funcName,
|
|
4640
4813
|
function_args: args
|
|
4641
4814
|
});
|
|
4642
4815
|
});
|
|
@@ -4785,7 +4958,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4785
4958
|
|
|
4786
4959
|
var Analytics = /*#__PURE__*/function () {
|
|
4787
4960
|
function Analytics(applicationID) {
|
|
4788
|
-
var
|
|
4961
|
+
var _this41 = this;
|
|
4789
4962
|
|
|
4790
4963
|
_classCallCheck(this, Analytics);
|
|
4791
4964
|
|
|
@@ -4802,21 +4975,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4802
4975
|
|
|
4803
4976
|
this._handlePageHide = function () {
|
|
4804
4977
|
if (document.visibilityState === "hidden") {
|
|
4805
|
-
|
|
4806
|
-
} else if (
|
|
4978
|
+
_this41._pageTime = new Date();
|
|
4979
|
+
} else if (_this41._pageTime) {
|
|
4807
4980
|
var time2 = new Date();
|
|
4808
4981
|
|
|
4809
|
-
var diff = time2.getTime() -
|
|
4982
|
+
var diff = time2.getTime() - _this41._pageTime.getTime();
|
|
4810
4983
|
|
|
4811
|
-
var data =
|
|
4984
|
+
var data = _this41.data;
|
|
4812
4985
|
data.push("eventAction", "View Time");
|
|
4813
4986
|
data.push("viewTime", diff);
|
|
4814
4987
|
data.push("eventLabel", diff);
|
|
4815
4988
|
|
|
4816
|
-
|
|
4989
|
+
_this41.write();
|
|
4817
4990
|
|
|
4818
|
-
|
|
4819
|
-
document.removeEventListener("visibilitychange",
|
|
4991
|
+
_this41._pageTime = null;
|
|
4992
|
+
document.removeEventListener("visibilitychange", _this41._handlePageHide, false);
|
|
4820
4993
|
}
|
|
4821
4994
|
};
|
|
4822
4995
|
}
|
|
@@ -4824,7 +4997,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4824
4997
|
_createClass(Analytics, [{
|
|
4825
4998
|
key: "query",
|
|
4826
4999
|
value: function query() {
|
|
4827
|
-
var
|
|
5000
|
+
var _this42 = this;
|
|
4828
5001
|
|
|
4829
5002
|
var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
4830
5003
|
|
|
@@ -4833,11 +5006,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4833
5006
|
return reject(new Error("Analytics.query() - provided query was null"));
|
|
4834
5007
|
}
|
|
4835
5008
|
|
|
4836
|
-
var url =
|
|
5009
|
+
var url = _this42.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
4837
5010
|
var data = {
|
|
4838
5011
|
type: "read",
|
|
4839
|
-
application_id:
|
|
4840
|
-
event:
|
|
5012
|
+
application_id: _this42._applicationID,
|
|
5013
|
+
event: _this42.event,
|
|
4841
5014
|
data: _query
|
|
4842
5015
|
};
|
|
4843
5016
|
basic_http_1["default"].exec("POST", url, data).then(function (result) {
|
|
@@ -4848,21 +5021,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4848
5021
|
}, {
|
|
4849
5022
|
key: "write",
|
|
4850
5023
|
value: function write() {
|
|
4851
|
-
var
|
|
5024
|
+
var _this43 = this;
|
|
4852
5025
|
|
|
4853
5026
|
return new Promise(function (accept, reject) {
|
|
4854
|
-
var data =
|
|
4855
|
-
var url =
|
|
4856
|
-
data.push("applicationId",
|
|
5027
|
+
var data = _this43._data;
|
|
5028
|
+
var url = _this43.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
5029
|
+
data.push("applicationId", _this43._applicationID);
|
|
4857
5030
|
var sendData = {
|
|
4858
5031
|
type: "write",
|
|
4859
|
-
application_id:
|
|
4860
|
-
origin:
|
|
4861
|
-
event:
|
|
5032
|
+
application_id: _this43._applicationID,
|
|
5033
|
+
origin: _this43.origin,
|
|
5034
|
+
event: _this43.event,
|
|
4862
5035
|
data: data.data
|
|
4863
5036
|
};
|
|
4864
5037
|
|
|
4865
|
-
if (
|
|
5038
|
+
if (_this43.isBeacon === false) {
|
|
4866
5039
|
basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
|
|
4867
5040
|
accept(result && result.results ? result.results : {});
|
|
4868
5041
|
})["catch"](reject);
|
|
@@ -4898,12 +5071,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4898
5071
|
|
|
4899
5072
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4900
5073
|
if (k2 === undefined) k2 = k;
|
|
4901
|
-
Object.
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
5074
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5075
|
+
|
|
5076
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5077
|
+
desc = {
|
|
5078
|
+
enumerable: true,
|
|
5079
|
+
get: function get() {
|
|
5080
|
+
return m[k];
|
|
5081
|
+
}
|
|
5082
|
+
};
|
|
5083
|
+
}
|
|
5084
|
+
|
|
5085
|
+
Object.defineProperty(o, k2, desc);
|
|
4907
5086
|
} : function (o, m, k, k2) {
|
|
4908
5087
|
if (k2 === undefined) k2 = k;
|
|
4909
5088
|
o[k2] = m[k];
|
|
@@ -5089,7 +5268,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5089
5268
|
Object.defineProperty(exports, "__esModule", {
|
|
5090
5269
|
value: true
|
|
5091
5270
|
});
|
|
5092
|
-
exports["default"] = "1.
|
|
5271
|
+
exports["default"] = "1.124.1";
|
|
5093
5272
|
}, {}],
|
|
5094
5273
|
42: [function (require, module, exports) {
|
|
5095
5274
|
"use strict";
|
|
@@ -5413,11 +5592,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5413
5592
|
}, {
|
|
5414
5593
|
key: "_get",
|
|
5415
5594
|
value: function _get(opt) {
|
|
5416
|
-
var
|
|
5595
|
+
var _this44 = this;
|
|
5417
5596
|
|
|
5418
5597
|
return new Promise(function (resolve, reject) {
|
|
5419
|
-
var target =
|
|
5420
|
-
var server =
|
|
5598
|
+
var target = _this44.target;
|
|
5599
|
+
var server = _this44.server; // we cannot perform a GET request without an ID
|
|
5421
5600
|
|
|
5422
5601
|
if (!target.id) {
|
|
5423
5602
|
reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
|
|
@@ -5442,16 +5621,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5442
5621
|
var origin = server.originLocation.api_read;
|
|
5443
5622
|
var auth = server.authToken;
|
|
5444
5623
|
var headers = {
|
|
5445
|
-
'cookie': 'laravel_session=' +
|
|
5624
|
+
'cookie': 'laravel_session=' + _this44.getCookie('laravel_session')
|
|
5446
5625
|
};
|
|
5447
5626
|
Object.assign(headers, auth);
|
|
5448
5627
|
var reqopts = {
|
|
5449
5628
|
method: "GET",
|
|
5450
5629
|
headers: headers
|
|
5451
5630
|
};
|
|
5452
|
-
var includeQuery =
|
|
5631
|
+
var includeQuery = _this44._IncludeQuery;
|
|
5453
5632
|
|
|
5454
|
-
var params =
|
|
5633
|
+
var params = _this44._ParamFor("get");
|
|
5455
5634
|
|
|
5456
5635
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
5457
5636
|
|
|
@@ -5492,11 +5671,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5492
5671
|
}, {
|
|
5493
5672
|
key: "_update",
|
|
5494
5673
|
value: function _update() {
|
|
5495
|
-
var
|
|
5674
|
+
var _this45 = this;
|
|
5496
5675
|
|
|
5497
5676
|
return new Promise(function (resolve, reject) {
|
|
5498
|
-
var target =
|
|
5499
|
-
var server =
|
|
5677
|
+
var target = _this45.target;
|
|
5678
|
+
var server = _this45.server; // we cannot perform a GET request without an ID
|
|
5500
5679
|
|
|
5501
5680
|
if (!target.id) {
|
|
5502
5681
|
reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
|
|
@@ -5509,7 +5688,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5509
5688
|
var headers = {
|
|
5510
5689
|
'Accept': 'application/json',
|
|
5511
5690
|
'Content-Type': 'application/json',
|
|
5512
|
-
'cookie': 'laravel_session=' +
|
|
5691
|
+
'cookie': 'laravel_session=' + _this45.getCookie('laravel_session')
|
|
5513
5692
|
};
|
|
5514
5693
|
Object.assign(headers, auth);
|
|
5515
5694
|
var reqopts = {
|
|
@@ -5524,7 +5703,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5524
5703
|
})
|
|
5525
5704
|
};
|
|
5526
5705
|
|
|
5527
|
-
var params =
|
|
5706
|
+
var params = _this45._ParamFor("update");
|
|
5528
5707
|
|
|
5529
5708
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
5530
5709
|
|
|
@@ -5566,18 +5745,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5566
5745
|
}, {
|
|
5567
5746
|
key: "_create",
|
|
5568
5747
|
value: function _create() {
|
|
5569
|
-
var
|
|
5748
|
+
var _this46 = this;
|
|
5570
5749
|
|
|
5571
5750
|
return new Promise(function (resolve, reject) {
|
|
5572
|
-
var target =
|
|
5573
|
-
var server =
|
|
5751
|
+
var target = _this46.target;
|
|
5752
|
+
var server = _this46.server; // otherwise, proceed with the fetching op
|
|
5574
5753
|
|
|
5575
5754
|
var origin = server.originLocation.api_write;
|
|
5576
5755
|
var auth = server.authToken;
|
|
5577
5756
|
var headers = {
|
|
5578
5757
|
'Accept': 'application/json',
|
|
5579
5758
|
'Content-Type': 'application/json',
|
|
5580
|
-
'cookie': 'laravel_session=' +
|
|
5759
|
+
'cookie': 'laravel_session=' + _this46.getCookie('laravel_session')
|
|
5581
5760
|
};
|
|
5582
5761
|
Object.assign(headers, auth);
|
|
5583
5762
|
var reqopts = {
|
|
@@ -5591,7 +5770,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5591
5770
|
})
|
|
5592
5771
|
};
|
|
5593
5772
|
|
|
5594
|
-
var params =
|
|
5773
|
+
var params = _this46._ParamFor("create");
|
|
5595
5774
|
|
|
5596
5775
|
var endpoint = origin + target.type();
|
|
5597
5776
|
|
|
@@ -5635,11 +5814,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5635
5814
|
}, {
|
|
5636
5815
|
key: "_delete",
|
|
5637
5816
|
value: function _delete() {
|
|
5638
|
-
var
|
|
5817
|
+
var _this47 = this;
|
|
5639
5818
|
|
|
5640
5819
|
return new Promise(function (resolve, reject) {
|
|
5641
|
-
var target =
|
|
5642
|
-
var server =
|
|
5820
|
+
var target = _this47.target;
|
|
5821
|
+
var server = _this47.server; // we cannot perform a GET request without an ID
|
|
5643
5822
|
|
|
5644
5823
|
if (!target.id) {
|
|
5645
5824
|
reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
|
|
@@ -5652,7 +5831,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5652
5831
|
var headers = {
|
|
5653
5832
|
'Accept': 'application/json',
|
|
5654
5833
|
'Content-Type': 'application/json',
|
|
5655
|
-
'cookie': 'laravel_session=' +
|
|
5834
|
+
'cookie': 'laravel_session=' + _this47.getCookie('laravel_session')
|
|
5656
5835
|
};
|
|
5657
5836
|
Object.assign(headers, auth);
|
|
5658
5837
|
var reqopts = {
|
|
@@ -5667,7 +5846,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5667
5846
|
})
|
|
5668
5847
|
};
|
|
5669
5848
|
|
|
5670
|
-
var params =
|
|
5849
|
+
var params = _this47._ParamFor("delete");
|
|
5671
5850
|
|
|
5672
5851
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
5673
5852
|
|
|
@@ -5730,7 +5909,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5730
5909
|
}, {
|
|
5731
5910
|
key: "_include",
|
|
5732
5911
|
value: function _include(args) {
|
|
5733
|
-
var
|
|
5912
|
+
var _this48 = this;
|
|
5734
5913
|
|
|
5735
5914
|
if (!args || args.length <= 0) {
|
|
5736
5915
|
return this;
|
|
@@ -5743,21 +5922,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5743
5922
|
if (Array.isArray(obj)) {
|
|
5744
5923
|
obj.forEach(function (strObject) {
|
|
5745
5924
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
5746
|
-
|
|
5925
|
+
_this48._getIncludeQuery.push(strObject);
|
|
5747
5926
|
} else {
|
|
5748
|
-
throw new Error("PlattarQuery." +
|
|
5927
|
+
throw new Error("PlattarQuery." + _this48.target.type() + ".include(...args) - argument of Array must only include Strings");
|
|
5749
5928
|
}
|
|
5750
5929
|
});
|
|
5751
5930
|
} else if (PlattarUtil.isPlattarObject(obj)) {
|
|
5752
5931
|
var type = obj.type();
|
|
5753
5932
|
|
|
5754
5933
|
if (Array.isArray(type)) {
|
|
5755
|
-
|
|
5934
|
+
_this48._include(type);
|
|
5756
5935
|
} else {
|
|
5757
|
-
|
|
5936
|
+
_this48._getIncludeQuery.push(type);
|
|
5758
5937
|
}
|
|
5759
5938
|
} else {
|
|
5760
|
-
throw new Error("PlattarQuery." +
|
|
5939
|
+
throw new Error("PlattarQuery." + _this48.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
5761
5940
|
}
|
|
5762
5941
|
});
|
|
5763
5942
|
return this;
|
|
@@ -5897,13 +6076,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5897
6076
|
}, {
|
|
5898
6077
|
key: "auth",
|
|
5899
6078
|
value: function auth(token, opt) {
|
|
5900
|
-
var
|
|
6079
|
+
var _this49 = this;
|
|
5901
6080
|
|
|
5902
6081
|
var copt = opt || {
|
|
5903
6082
|
validate: false
|
|
5904
6083
|
};
|
|
5905
6084
|
return new Promise(function (resolve, reject) {
|
|
5906
|
-
var server =
|
|
6085
|
+
var server = _this49.originLocation.api_write;
|
|
5907
6086
|
|
|
5908
6087
|
if (!server) {
|
|
5909
6088
|
reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
|
|
@@ -5916,10 +6095,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5916
6095
|
}
|
|
5917
6096
|
|
|
5918
6097
|
if (!copt.validate) {
|
|
5919
|
-
|
|
6098
|
+
_this49._authToken = {
|
|
5920
6099
|
"plattar-auth-token": token
|
|
5921
6100
|
};
|
|
5922
|
-
resolve(
|
|
6101
|
+
resolve(_this49);
|
|
5923
6102
|
return;
|
|
5924
6103
|
}
|
|
5925
6104
|
|
|
@@ -5932,10 +6111,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5932
6111
|
};
|
|
5933
6112
|
fetch(endpoint, options).then(function (res) {
|
|
5934
6113
|
if (res.ok) {
|
|
5935
|
-
|
|
6114
|
+
_this49._authToken = {
|
|
5936
6115
|
"plattar-auth-token": token
|
|
5937
6116
|
};
|
|
5938
|
-
resolve(
|
|
6117
|
+
resolve(_this49);
|
|
5939
6118
|
} else {
|
|
5940
6119
|
reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
|
|
5941
6120
|
}
|
|
@@ -5945,7 +6124,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5945
6124
|
}, {
|
|
5946
6125
|
key: "origin",
|
|
5947
6126
|
value: function origin(server, opt) {
|
|
5948
|
-
var
|
|
6127
|
+
var _this50 = this;
|
|
5949
6128
|
|
|
5950
6129
|
var copt = opt || {
|
|
5951
6130
|
validate: false
|
|
@@ -5957,8 +6136,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5957
6136
|
}
|
|
5958
6137
|
|
|
5959
6138
|
if (!copt.validate) {
|
|
5960
|
-
|
|
5961
|
-
resolve(
|
|
6139
|
+
_this50._serverLocation = server;
|
|
6140
|
+
resolve(_this50);
|
|
5962
6141
|
return;
|
|
5963
6142
|
}
|
|
5964
6143
|
|
|
@@ -5968,8 +6147,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5968
6147
|
};
|
|
5969
6148
|
fetch(endpoint, options).then(function (res) {
|
|
5970
6149
|
if (res.ok) {
|
|
5971
|
-
|
|
5972
|
-
resolve(
|
|
6150
|
+
_this50._serverLocation = server;
|
|
6151
|
+
resolve(_this50);
|
|
5973
6152
|
} else {
|
|
5974
6153
|
reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
|
|
5975
6154
|
}
|
|
@@ -6385,17 +6564,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6385
6564
|
var _super25 = _createSuper(FileBase);
|
|
6386
6565
|
|
|
6387
6566
|
function FileBase(id, server) {
|
|
6388
|
-
var
|
|
6567
|
+
var _this51;
|
|
6389
6568
|
|
|
6390
6569
|
_classCallCheck(this, FileBase);
|
|
6391
6570
|
|
|
6392
|
-
|
|
6571
|
+
_this51 = _super25.call(this, id, server || Server["default"]());
|
|
6393
6572
|
|
|
6394
|
-
if (
|
|
6573
|
+
if (_this51.constructor === FileBase) {
|
|
6395
6574
|
throw new Error("FileBase is abstract and cannot be created");
|
|
6396
6575
|
}
|
|
6397
6576
|
|
|
6398
|
-
return
|
|
6577
|
+
return _this51;
|
|
6399
6578
|
}
|
|
6400
6579
|
|
|
6401
6580
|
_createClass(FileBase, [{
|
|
@@ -6590,17 +6769,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6590
6769
|
var _super30 = _createSuper(PlattarBase);
|
|
6591
6770
|
|
|
6592
6771
|
function PlattarBase(id, server) {
|
|
6593
|
-
var
|
|
6772
|
+
var _this52;
|
|
6594
6773
|
|
|
6595
6774
|
_classCallCheck(this, PlattarBase);
|
|
6596
6775
|
|
|
6597
|
-
|
|
6776
|
+
_this52 = _super30.call(this, id, server || Server["default"]());
|
|
6598
6777
|
|
|
6599
|
-
if (
|
|
6778
|
+
if (_this52.constructor === PlattarBase) {
|
|
6600
6779
|
throw new Error("PlattarBase is abstract and cannot be created");
|
|
6601
6780
|
}
|
|
6602
6781
|
|
|
6603
|
-
return
|
|
6782
|
+
return _this52;
|
|
6604
6783
|
}
|
|
6605
6784
|
|
|
6606
6785
|
return _createClass(PlattarBase);
|
|
@@ -6672,7 +6851,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6672
6851
|
}, {
|
|
6673
6852
|
key: "filter",
|
|
6674
6853
|
value: function filter(obj, id) {
|
|
6675
|
-
var
|
|
6854
|
+
var _this53 = this;
|
|
6676
6855
|
|
|
6677
6856
|
if (!obj) {
|
|
6678
6857
|
return [];
|
|
@@ -6690,7 +6869,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6690
6869
|
if (Array.isArray(type)) {
|
|
6691
6870
|
var compiledList = [];
|
|
6692
6871
|
type.forEach(function (inObject) {
|
|
6693
|
-
var retArray =
|
|
6872
|
+
var retArray = _this53.filter(inObject, id);
|
|
6694
6873
|
|
|
6695
6874
|
if (retArray.length > 0) {
|
|
6696
6875
|
compiledList = compiledList.concat(retArray);
|
|
@@ -6893,7 +7072,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6893
7072
|
}, {
|
|
6894
7073
|
key: "include",
|
|
6895
7074
|
value: function include() {
|
|
6896
|
-
var
|
|
7075
|
+
var _this54 = this;
|
|
6897
7076
|
|
|
6898
7077
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
6899
7078
|
args[_key6] = arguments[_key6];
|
|
@@ -6909,15 +7088,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6909
7088
|
if (Array.isArray(obj)) {
|
|
6910
7089
|
obj.forEach(function (strObject) {
|
|
6911
7090
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
6912
|
-
includes.push("".concat(
|
|
7091
|
+
includes.push("".concat(_this54.type(), ".").concat(strObject));
|
|
6913
7092
|
} else {
|
|
6914
|
-
throw new Error("PlattarObject." +
|
|
7093
|
+
throw new Error("PlattarObject." + _this54.type() + ".include(...args) - argument of Array must only include Strings");
|
|
6915
7094
|
}
|
|
6916
7095
|
});
|
|
6917
7096
|
} else if (obj.prototype instanceof PlattarObject) {
|
|
6918
|
-
includes.push("".concat(
|
|
7097
|
+
includes.push("".concat(_this54.type(), ".").concat(obj.type()));
|
|
6919
7098
|
} else {
|
|
6920
|
-
throw new Error("PlattarObject." +
|
|
7099
|
+
throw new Error("PlattarObject." + _this54.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
6921
7100
|
}
|
|
6922
7101
|
});
|
|
6923
7102
|
return includes;
|
|
@@ -7088,17 +7267,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7088
7267
|
var _super36 = _createSuper(CardBase);
|
|
7089
7268
|
|
|
7090
7269
|
function CardBase(id, server) {
|
|
7091
|
-
var
|
|
7270
|
+
var _this55;
|
|
7092
7271
|
|
|
7093
7272
|
_classCallCheck(this, CardBase);
|
|
7094
7273
|
|
|
7095
|
-
|
|
7274
|
+
_this55 = _super36.call(this, id, server || Server["default"]());
|
|
7096
7275
|
|
|
7097
|
-
if (
|
|
7276
|
+
if (_this55.constructor === CardBase) {
|
|
7098
7277
|
throw new Error("CardBase is abstract and cannot be created");
|
|
7099
7278
|
}
|
|
7100
7279
|
|
|
7101
|
-
return
|
|
7280
|
+
return _this55;
|
|
7102
7281
|
}
|
|
7103
7282
|
|
|
7104
7283
|
_createClass(CardBase, null, [{
|
|
@@ -7524,17 +7703,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7524
7703
|
var _super50 = _createSuper(ProductBase);
|
|
7525
7704
|
|
|
7526
7705
|
function ProductBase(id, server) {
|
|
7527
|
-
var
|
|
7706
|
+
var _this56;
|
|
7528
7707
|
|
|
7529
7708
|
_classCallCheck(this, ProductBase);
|
|
7530
7709
|
|
|
7531
|
-
|
|
7710
|
+
_this56 = _super50.call(this, id, server || Server["default"]());
|
|
7532
7711
|
|
|
7533
|
-
if (
|
|
7712
|
+
if (_this56.constructor === ProductBase) {
|
|
7534
7713
|
throw new Error("ProductBase is abstract and cannot be created");
|
|
7535
7714
|
}
|
|
7536
7715
|
|
|
7537
|
-
return
|
|
7716
|
+
return _this56;
|
|
7538
7717
|
}
|
|
7539
7718
|
|
|
7540
7719
|
_createClass(ProductBase, null, [{
|
|
@@ -7681,17 +7860,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7681
7860
|
var _super55 = _createSuper(SceneBase);
|
|
7682
7861
|
|
|
7683
7862
|
function SceneBase(id, server) {
|
|
7684
|
-
var
|
|
7863
|
+
var _this57;
|
|
7685
7864
|
|
|
7686
7865
|
_classCallCheck(this, SceneBase);
|
|
7687
7866
|
|
|
7688
|
-
|
|
7867
|
+
_this57 = _super55.call(this, id, server || Server["default"]());
|
|
7689
7868
|
|
|
7690
|
-
if (
|
|
7869
|
+
if (_this57.constructor === SceneBase) {
|
|
7691
7870
|
throw new Error("SceneBase is abstract and cannot be created");
|
|
7692
7871
|
}
|
|
7693
7872
|
|
|
7694
|
-
return
|
|
7873
|
+
return _this57;
|
|
7695
7874
|
}
|
|
7696
7875
|
|
|
7697
7876
|
_createClass(SceneBase, null, [{
|
|
@@ -8632,7 +8811,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8632
8811
|
_createClass(BaseElement, [{
|
|
8633
8812
|
key: "connectedCallback",
|
|
8634
8813
|
value: function connectedCallback() {
|
|
8635
|
-
var
|
|
8814
|
+
var _this58 = this;
|
|
8636
8815
|
|
|
8637
8816
|
if (this.hasAttribute("url")) {
|
|
8638
8817
|
this.renderQRCode();
|
|
@@ -8641,8 +8820,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8641
8820
|
var observer = new MutationObserver(function (mutations) {
|
|
8642
8821
|
mutations.forEach(function (mutation) {
|
|
8643
8822
|
if (mutation.type === "attributes") {
|
|
8644
|
-
if (
|
|
8645
|
-
|
|
8823
|
+
if (_this58.hasAttribute("url")) {
|
|
8824
|
+
_this58.renderQRCode();
|
|
8646
8825
|
}
|
|
8647
8826
|
}
|
|
8648
8827
|
});
|
|
@@ -8666,7 +8845,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8666
8845
|
}, {
|
|
8667
8846
|
key: "renderQRCode",
|
|
8668
8847
|
value: function renderQRCode() {
|
|
8669
|
-
var
|
|
8848
|
+
var _this59 = this;
|
|
8670
8849
|
|
|
8671
8850
|
var url = this.hasAttribute("url") ? this.getAttribute("url") : undefined;
|
|
8672
8851
|
|
|
@@ -8776,11 +8955,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8776
8955
|
|
|
8777
8956
|
if (shortenURL && shortenURL.toLowerCase() === "true") {
|
|
8778
8957
|
this._ShortenURL(url).then(function (newURL) {
|
|
8779
|
-
|
|
8958
|
+
_this59._GenerateQRCode(newURL, width, height);
|
|
8780
8959
|
})["catch"](function (_err) {
|
|
8781
8960
|
console.warn(_err); // ignore error and just generate normal QR Code
|
|
8782
8961
|
|
|
8783
|
-
|
|
8962
|
+
_this59._GenerateQRCode(url, width, height);
|
|
8784
8963
|
});
|
|
8785
8964
|
} else {
|
|
8786
8965
|
this._GenerateQRCode(url, width, height);
|
|
@@ -8840,10 +9019,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8840
9019
|
}, {
|
|
8841
9020
|
key: "_ShortenURL",
|
|
8842
9021
|
value: function _ShortenURL(url) {
|
|
8843
|
-
var
|
|
9022
|
+
var _this60 = this;
|
|
8844
9023
|
|
|
8845
9024
|
return new Promise(function (accept, reject) {
|
|
8846
|
-
if (!
|
|
9025
|
+
if (!_this60._IsFetchAPISupported()) {
|
|
8847
9026
|
return reject(new Error("PlattarQR._ShortenURL() - fetch api not supported, cannot proceed"));
|
|
8848
9027
|
}
|
|
8849
9028
|
|
|
@@ -9071,11 +9250,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9071
9250
|
}, {
|
|
9072
9251
|
key: "get",
|
|
9073
9252
|
value: function get() {
|
|
9074
|
-
var
|
|
9253
|
+
var _this61 = this;
|
|
9075
9254
|
|
|
9076
9255
|
return new Promise(function (accept, reject) {
|
|
9077
|
-
|
|
9078
|
-
remote_request_1.RemoteRequest.request(
|
|
9256
|
+
_this61._CalculateHash().then(function () {
|
|
9257
|
+
remote_request_1.RemoteRequest.request(_this61._GetPayload(), _this61.retry < 0 ? 0 : _this61.retry).then(accept)["catch"](reject);
|
|
9079
9258
|
})["catch"](function (_err) {
|
|
9080
9259
|
reject(new Error("Configurator.get() - one of the objects does not exist in Plattar API"));
|
|
9081
9260
|
});
|
|
@@ -9084,14 +9263,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9084
9263
|
}, {
|
|
9085
9264
|
key: "_CalculateHash",
|
|
9086
9265
|
value: function _CalculateHash() {
|
|
9087
|
-
var
|
|
9266
|
+
var _this62 = this;
|
|
9088
9267
|
|
|
9089
9268
|
return new Promise(function (accept, reject) {
|
|
9090
9269
|
var promises = [];
|
|
9091
9270
|
var oldOrigin = plattar_api_1.Server["default"]().originLocation.type;
|
|
9092
|
-
plattar_api_1.Server.create(plattar_api_1.Server.match(
|
|
9271
|
+
plattar_api_1.Server.create(plattar_api_1.Server.match(_this62.server));
|
|
9093
9272
|
|
|
9094
|
-
|
|
9273
|
+
_this62._maps.forEach(function (map) {
|
|
9095
9274
|
if (map.productvariation) {
|
|
9096
9275
|
promises.push(new plattar_api_1.ProductVariation(map.productvariation).get());
|
|
9097
9276
|
}
|
|
@@ -9111,7 +9290,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9111
9290
|
|
|
9112
9291
|
Promise.all(promises).then(function (values) {
|
|
9113
9292
|
values.forEach(function (value) {
|
|
9114
|
-
|
|
9293
|
+
_this62._attrHash.push(value.attributes);
|
|
9115
9294
|
}); // reset server back
|
|
9116
9295
|
|
|
9117
9296
|
plattar_api_1.Server.create(plattar_api_1.Server.match(oldOrigin));
|
|
@@ -9213,14 +9392,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9213
9392
|
}, {
|
|
9214
9393
|
key: "get",
|
|
9215
9394
|
value: function get() {
|
|
9216
|
-
var
|
|
9395
|
+
var _this63 = this;
|
|
9217
9396
|
|
|
9218
9397
|
return new Promise(function (accept, reject) {
|
|
9219
|
-
if (!
|
|
9398
|
+
if (!_this63._model) {
|
|
9220
9399
|
return reject(new Error("ModelConverter.get() - required .model attribute was not set"));
|
|
9221
9400
|
}
|
|
9222
9401
|
|
|
9223
|
-
remote_request_1.RemoteRequest.request(
|
|
9402
|
+
remote_request_1.RemoteRequest.request(_this63._Payload, _this63.retry < 0 ? 0 : _this63.retry).then(accept)["catch"](reject);
|
|
9224
9403
|
});
|
|
9225
9404
|
}
|
|
9226
9405
|
}, {
|
|
@@ -9469,6 +9648,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9469
9648
|
get: function get() {
|
|
9470
9649
|
return this._controller ? this._controller.context : undefined;
|
|
9471
9650
|
}
|
|
9651
|
+
}, {
|
|
9652
|
+
key: "parent",
|
|
9653
|
+
get: function get() {
|
|
9654
|
+
return this._controller ? this._controller.parent : undefined;
|
|
9655
|
+
}
|
|
9472
9656
|
}, {
|
|
9473
9657
|
key: "element",
|
|
9474
9658
|
get: function get() {
|
|
@@ -9541,19 +9725,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9541
9725
|
}, {
|
|
9542
9726
|
key: "allMappedAttributes",
|
|
9543
9727
|
get: function get() {
|
|
9544
|
-
var
|
|
9728
|
+
var _this64 = this;
|
|
9545
9729
|
|
|
9546
9730
|
var map = new Map();
|
|
9547
9731
|
var coreAttr = this.coreAttributes;
|
|
9548
9732
|
var optAttr = this.optionalAttributes;
|
|
9549
9733
|
coreAttr.forEach(function (ele) {
|
|
9550
|
-
if (
|
|
9551
|
-
map.set(ele.map,
|
|
9734
|
+
if (_this64.hasAttribute(ele.key)) {
|
|
9735
|
+
map.set(ele.map, _this64.getAttribute(ele.key));
|
|
9552
9736
|
}
|
|
9553
9737
|
});
|
|
9554
9738
|
optAttr.forEach(function (ele) {
|
|
9555
|
-
if (
|
|
9556
|
-
map.set(ele.map,
|
|
9739
|
+
if (_this64.hasAttribute(ele.key)) {
|
|
9740
|
+
map.set(ele.map, _this64.getAttribute(ele.key));
|
|
9557
9741
|
}
|
|
9558
9742
|
});
|
|
9559
9743
|
return map;
|
|
@@ -9653,7 +9837,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9653
9837
|
|
|
9654
9838
|
var ElementController = /*#__PURE__*/function () {
|
|
9655
9839
|
function ElementController(element) {
|
|
9656
|
-
var
|
|
9840
|
+
var _this65 = this;
|
|
9657
9841
|
|
|
9658
9842
|
_classCallCheck(this, ElementController);
|
|
9659
9843
|
|
|
@@ -9669,7 +9853,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9669
9853
|
|
|
9670
9854
|
if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
|
|
9671
9855
|
if (element.hasAllCoreAttributes) {
|
|
9672
|
-
|
|
9856
|
+
_this65._load();
|
|
9673
9857
|
}
|
|
9674
9858
|
}
|
|
9675
9859
|
}
|
|
@@ -9748,6 +9932,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9748
9932
|
get: function get() {
|
|
9749
9933
|
return messenger.self;
|
|
9750
9934
|
}
|
|
9935
|
+
}, {
|
|
9936
|
+
key: "parent",
|
|
9937
|
+
get: function get() {
|
|
9938
|
+
return messenger.parent;
|
|
9939
|
+
}
|
|
9751
9940
|
}, {
|
|
9752
9941
|
key: "controller",
|
|
9753
9942
|
get: function get() {
|
|
@@ -9769,7 +9958,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9769
9958
|
|
|
9770
9959
|
var IFrameController = /*#__PURE__*/function () {
|
|
9771
9960
|
function IFrameController(element, src, id) {
|
|
9772
|
-
var
|
|
9961
|
+
var _this66 = this;
|
|
9773
9962
|
|
|
9774
9963
|
var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
9775
9964
|
|
|
@@ -9781,7 +9970,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9781
9970
|
if (!element.hasAttribute("sameorigin")) {
|
|
9782
9971
|
this._iframe.onload = function () {
|
|
9783
9972
|
if (onelemload) {
|
|
9784
|
-
onelemload(
|
|
9973
|
+
onelemload(_this66._iframe);
|
|
9785
9974
|
}
|
|
9786
9975
|
};
|
|
9787
9976
|
}
|
|
@@ -9922,15 +10111,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9922
10111
|
var _super76 = _createSuper(EWallElement);
|
|
9923
10112
|
|
|
9924
10113
|
function EWallElement() {
|
|
9925
|
-
var
|
|
10114
|
+
var _this67;
|
|
9926
10115
|
|
|
9927
10116
|
_classCallCheck(this, EWallElement);
|
|
9928
10117
|
|
|
9929
|
-
|
|
10118
|
+
_this67 = _super76.call(this);
|
|
9930
10119
|
var tag = document.createElement("script");
|
|
9931
10120
|
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
|
|
9932
10121
|
tag.defer = true;
|
|
9933
|
-
return
|
|
10122
|
+
return _this67;
|
|
9934
10123
|
}
|
|
9935
10124
|
|
|
9936
10125
|
_createClass(EWallElement, [{
|
|
@@ -9947,7 +10136,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9947
10136
|
}
|
|
9948
10137
|
};
|
|
9949
10138
|
|
|
9950
|
-
window.addEventListener(
|
|
10139
|
+
window.addEventListener("load", onLoad, false);
|
|
9951
10140
|
}
|
|
9952
10141
|
}, {
|
|
9953
10142
|
key: "permissions",
|
|
@@ -10097,6 +10286,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10097
10286
|
return [{
|
|
10098
10287
|
key: "variation-id",
|
|
10099
10288
|
map: "variation_id"
|
|
10289
|
+
}, {
|
|
10290
|
+
key: "show-ar",
|
|
10291
|
+
map: "show_ar"
|
|
10100
10292
|
}];
|
|
10101
10293
|
}
|
|
10102
10294
|
}]);
|
|
@@ -10174,6 +10366,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10174
10366
|
}, {
|
|
10175
10367
|
key: "product-id",
|
|
10176
10368
|
map: "productId"
|
|
10369
|
+
}, {
|
|
10370
|
+
key: "show-ar",
|
|
10371
|
+
map: "show_ar"
|
|
10177
10372
|
}];
|
|
10178
10373
|
}
|
|
10179
10374
|
}]);
|
|
@@ -10392,7 +10587,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10392
10587
|
module.exports = Util;
|
|
10393
10588
|
}, {}],
|
|
10394
10589
|
129: [function (require, module, exports) {
|
|
10395
|
-
module.exports = "1.
|
|
10590
|
+
module.exports = "1.129.1";
|
|
10396
10591
|
}, {}],
|
|
10397
10592
|
130: [function (require, module, exports) {
|
|
10398
10593
|
(function (global) {
|