@plattar/plattar-ar-adapter 1.123.5 → 1.123.6
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 +1047 -929
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +199 -138
- package/build/es2019/plattar-ar-adapter.min.js +2 -2
- package/dist/ar/scene-product-ar.d.ts +14 -0
- package/dist/ar/scene-product-ar.js +48 -0
- package/dist/embed/controllers/viewer-controller.js +14 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
|
|
4
|
-
|
|
5
|
-
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
6
|
-
|
|
7
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
4
|
|
|
9
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -32,6 +28,10 @@ function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _c
|
|
|
32
28
|
|
|
33
29
|
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
34
30
|
|
|
31
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
32
|
+
|
|
33
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
34
|
+
|
|
35
35
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
36
36
|
|
|
37
37
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -329,13 +329,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
329
329
|
|
|
330
330
|
exports.ModelAR = ModelAR;
|
|
331
331
|
}, {
|
|
332
|
-
"../util/util":
|
|
333
|
-
"../viewers/quicklook-viewer":
|
|
334
|
-
"../viewers/reality-viewer":
|
|
335
|
-
"../viewers/scene-viewer":
|
|
332
|
+
"../util/util": 15,
|
|
333
|
+
"../viewers/quicklook-viewer": 18,
|
|
334
|
+
"../viewers/reality-viewer": 19,
|
|
335
|
+
"../viewers/scene-viewer": 20,
|
|
336
336
|
"./launcher-ar": 1,
|
|
337
|
-
"@plattar/plattar-analytics":
|
|
338
|
-
"@plattar/plattar-api":
|
|
337
|
+
"@plattar/plattar-analytics": 38,
|
|
338
|
+
"@plattar/plattar-api": 42
|
|
339
339
|
}],
|
|
340
340
|
3: [function (require, module, exports) {
|
|
341
341
|
"use strict";
|
|
@@ -573,13 +573,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
573
573
|
|
|
574
574
|
exports.ProductAR = ProductAR;
|
|
575
575
|
}, {
|
|
576
|
-
"../util/util":
|
|
577
|
-
"../viewers/quicklook-viewer":
|
|
578
|
-
"../viewers/reality-viewer":
|
|
579
|
-
"../viewers/scene-viewer":
|
|
576
|
+
"../util/util": 15,
|
|
577
|
+
"../viewers/quicklook-viewer": 18,
|
|
578
|
+
"../viewers/reality-viewer": 19,
|
|
579
|
+
"../viewers/scene-viewer": 20,
|
|
580
580
|
"./launcher-ar": 1,
|
|
581
|
-
"@plattar/plattar-analytics":
|
|
582
|
-
"@plattar/plattar-api":
|
|
581
|
+
"@plattar/plattar-analytics": 38,
|
|
582
|
+
"@plattar/plattar-api": 42
|
|
583
583
|
}],
|
|
584
584
|
4: [function (require, module, exports) {
|
|
585
585
|
"use strict";
|
|
@@ -736,10 +736,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
736
736
|
|
|
737
737
|
exports.RawAR = RawAR;
|
|
738
738
|
}, {
|
|
739
|
-
"../util/util":
|
|
740
|
-
"../viewers/quicklook-viewer":
|
|
741
|
-
"../viewers/reality-viewer":
|
|
742
|
-
"../viewers/scene-viewer":
|
|
739
|
+
"../util/util": 15,
|
|
740
|
+
"../viewers/quicklook-viewer": 18,
|
|
741
|
+
"../viewers/reality-viewer": 19,
|
|
742
|
+
"../viewers/scene-viewer": 20,
|
|
743
743
|
"./launcher-ar": 1
|
|
744
744
|
}],
|
|
745
745
|
5: [function (require, module, exports) {
|
|
@@ -970,18 +970,111 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
970
970
|
|
|
971
971
|
exports.SceneAR = SceneAR;
|
|
972
972
|
}, {
|
|
973
|
-
"../util/util":
|
|
974
|
-
"../viewers/quicklook-viewer":
|
|
975
|
-
"../viewers/reality-viewer":
|
|
976
|
-
"../viewers/scene-viewer":
|
|
973
|
+
"../util/util": 15,
|
|
974
|
+
"../viewers/quicklook-viewer": 18,
|
|
975
|
+
"../viewers/reality-viewer": 19,
|
|
976
|
+
"../viewers/scene-viewer": 20,
|
|
977
977
|
"./launcher-ar": 1,
|
|
978
|
-
"@plattar/plattar-analytics":
|
|
979
|
-
"@plattar/plattar-api":
|
|
980
|
-
"@plattar/plattar-services":
|
|
978
|
+
"@plattar/plattar-analytics": 38,
|
|
979
|
+
"@plattar/plattar-api": 42,
|
|
980
|
+
"@plattar/plattar-services": 113
|
|
981
981
|
}],
|
|
982
982
|
6: [function (require, module, exports) {
|
|
983
983
|
"use strict";
|
|
984
984
|
|
|
985
|
+
Object.defineProperty(exports, "__esModule", {
|
|
986
|
+
value: true
|
|
987
|
+
});
|
|
988
|
+
exports.SceneProductAR = void 0;
|
|
989
|
+
|
|
990
|
+
var product_ar_1 = require("./product-ar");
|
|
991
|
+
|
|
992
|
+
var plattar_api_1 = require("@plattar/plattar-api");
|
|
993
|
+
|
|
994
|
+
var util_1 = require("../util/util");
|
|
995
|
+
/**
|
|
996
|
+
* Allows launching Product AR by providing a SceneProduct ID instead.
|
|
997
|
+
* SceneProducts are much more convenient to grab from the Plattar CMS
|
|
998
|
+
*/
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
var SceneProductAR = /*#__PURE__*/function (_product_ar_1$Product) {
|
|
1002
|
+
_inherits(SceneProductAR, _product_ar_1$Product);
|
|
1003
|
+
|
|
1004
|
+
var _super5 = _createSuper(SceneProductAR);
|
|
1005
|
+
|
|
1006
|
+
function SceneProductAR() {
|
|
1007
|
+
var _this10;
|
|
1008
|
+
|
|
1009
|
+
var sceneProductID = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1010
|
+
var variationID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
1011
|
+
|
|
1012
|
+
_classCallCheck(this, SceneProductAR);
|
|
1013
|
+
|
|
1014
|
+
_this10 = _super5.call(this, sceneProductID, variationID); // this is evaluated in the init() function
|
|
1015
|
+
|
|
1016
|
+
_this10._attachedProductID = null;
|
|
1017
|
+
|
|
1018
|
+
if (!sceneProductID) {
|
|
1019
|
+
throw new Error("SceneProductAR.constructor(sceneProductID, variationID) - sceneProductID must be defined");
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
_this10._sceneProductID = sceneProductID;
|
|
1023
|
+
return _this10;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
_createClass(SceneProductAR, [{
|
|
1027
|
+
key: "sceneProductID",
|
|
1028
|
+
get: function get() {
|
|
1029
|
+
return this._sceneProductID;
|
|
1030
|
+
}
|
|
1031
|
+
}, {
|
|
1032
|
+
key: "productID",
|
|
1033
|
+
get: function get() {
|
|
1034
|
+
if (!this._attachedProductID) {
|
|
1035
|
+
throw new Error("SceneProductAR.productID() - product id was not defined, did you call init()?");
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
return this._attachedProductID;
|
|
1039
|
+
}
|
|
1040
|
+
}, {
|
|
1041
|
+
key: "init",
|
|
1042
|
+
value: function init() {
|
|
1043
|
+
var _this11 = this;
|
|
1044
|
+
|
|
1045
|
+
return new Promise(function (accept, reject) {
|
|
1046
|
+
if (!util_1.Util.canAugment()) {
|
|
1047
|
+
return reject(new Error("SceneProductAR.init() - cannot proceed as AR not available in context"));
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
var sceneProduct = new plattar_api_1.SceneProduct(_this11.sceneProductID);
|
|
1051
|
+
sceneProduct.get().then(function (sceneProduct) {
|
|
1052
|
+
var productID = sceneProduct.attributes.product_id;
|
|
1053
|
+
|
|
1054
|
+
if (!productID) {
|
|
1055
|
+
return reject("SceneProductAR.init() - Scene Product does not have an attached Product instance");
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
_this11._attachedProductID = productID; // execute the standard Product AR functionality
|
|
1059
|
+
|
|
1060
|
+
return _get(_getPrototypeOf(SceneProductAR.prototype), "init", _this11).call(_this11).then(accept)["catch"](reject);
|
|
1061
|
+
})["catch"](reject);
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
}]);
|
|
1065
|
+
|
|
1066
|
+
return SceneProductAR;
|
|
1067
|
+
}(product_ar_1.ProductAR);
|
|
1068
|
+
|
|
1069
|
+
exports.SceneProductAR = SceneProductAR;
|
|
1070
|
+
}, {
|
|
1071
|
+
"../util/util": 15,
|
|
1072
|
+
"./product-ar": 3,
|
|
1073
|
+
"@plattar/plattar-api": 42
|
|
1074
|
+
}],
|
|
1075
|
+
7: [function (require, module, exports) {
|
|
1076
|
+
"use strict";
|
|
1077
|
+
|
|
985
1078
|
Object.defineProperty(exports, "__esModule", {
|
|
986
1079
|
value: true
|
|
987
1080
|
});
|
|
@@ -1004,18 +1097,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1004
1097
|
var ConfiguratorController = /*#__PURE__*/function (_plattar_controller_) {
|
|
1005
1098
|
_inherits(ConfiguratorController, _plattar_controller_);
|
|
1006
1099
|
|
|
1007
|
-
var
|
|
1100
|
+
var _super6 = _createSuper(ConfiguratorController);
|
|
1008
1101
|
|
|
1009
1102
|
function ConfiguratorController(parent) {
|
|
1010
|
-
var
|
|
1103
|
+
var _this12;
|
|
1011
1104
|
|
|
1012
1105
|
_classCallCheck(this, ConfiguratorController);
|
|
1013
1106
|
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
return
|
|
1107
|
+
_this12 = _super6.call(this, parent);
|
|
1108
|
+
_this12._state = plattar_controller_1.ControllerState.None;
|
|
1109
|
+
_this12._element = null;
|
|
1110
|
+
_this12._prevQROpt = null;
|
|
1111
|
+
return _this12;
|
|
1019
1112
|
}
|
|
1020
1113
|
|
|
1021
1114
|
_createClass(ConfiguratorController, [{
|
|
@@ -1031,20 +1124,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1031
1124
|
}, {
|
|
1032
1125
|
key: "startQRCode",
|
|
1033
1126
|
value: function startQRCode(options) {
|
|
1034
|
-
var
|
|
1127
|
+
var _this13 = this;
|
|
1035
1128
|
|
|
1036
1129
|
return new Promise(function (accept, reject) {
|
|
1037
1130
|
// remove the old renderer instance if any
|
|
1038
|
-
|
|
1131
|
+
_this13.removeRenderer();
|
|
1039
1132
|
|
|
1040
|
-
var sceneID =
|
|
1133
|
+
var sceneID = _this13.getAttribute("scene-id");
|
|
1041
1134
|
|
|
1042
1135
|
if (sceneID) {
|
|
1043
1136
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1044
1137
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1045
1138
|
|
|
1046
|
-
var width =
|
|
1047
|
-
var height =
|
|
1139
|
+
var width = _this13.getAttribute("width") || "500px";
|
|
1140
|
+
var height = _this13.getAttribute("height") || "500px";
|
|
1048
1141
|
viewer.setAttribute("width", width);
|
|
1049
1142
|
viewer.setAttribute("height", height);
|
|
1050
1143
|
|
|
@@ -1062,9 +1155,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1062
1155
|
|
|
1063
1156
|
var dst = plattar_api_1.Server.location().base + "renderer/configurator.html?scene_id=" + sceneID; // optional attributes
|
|
1064
1157
|
|
|
1065
|
-
var configState =
|
|
1158
|
+
var configState = _this13.getAttribute("config-state");
|
|
1066
1159
|
|
|
1067
|
-
var showAR =
|
|
1160
|
+
var showAR = _this13.getAttribute("show-ar");
|
|
1068
1161
|
|
|
1069
1162
|
if (configState) {
|
|
1070
1163
|
dst += "&config_state=" + configState;
|
|
@@ -1080,11 +1173,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1080
1173
|
return accept(viewer);
|
|
1081
1174
|
};
|
|
1082
1175
|
|
|
1083
|
-
|
|
1176
|
+
_this13.append(viewer);
|
|
1084
1177
|
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1178
|
+
_this13._element = viewer;
|
|
1179
|
+
_this13._state = plattar_controller_1.ControllerState.QRCode;
|
|
1180
|
+
_this13._prevQROpt = opt;
|
|
1088
1181
|
return;
|
|
1089
1182
|
}
|
|
1090
1183
|
|
|
@@ -1094,28 +1187,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1094
1187
|
}, {
|
|
1095
1188
|
key: "startRenderer",
|
|
1096
1189
|
value: function startRenderer() {
|
|
1097
|
-
var
|
|
1190
|
+
var _this14 = this;
|
|
1098
1191
|
|
|
1099
1192
|
return new Promise(function (accept, reject) {
|
|
1100
1193
|
// remove the old renderer instance if any
|
|
1101
|
-
|
|
1194
|
+
_this14.removeRenderer();
|
|
1102
1195
|
|
|
1103
|
-
var sceneID =
|
|
1196
|
+
var sceneID = _this14.getAttribute("scene-id");
|
|
1104
1197
|
|
|
1105
1198
|
if (sceneID) {
|
|
1106
1199
|
// required attributes with defaults for plattar-configurator node
|
|
1107
|
-
var width =
|
|
1108
|
-
var height =
|
|
1109
|
-
var server =
|
|
1200
|
+
var width = _this14.getAttribute("width") || "500px";
|
|
1201
|
+
var height = _this14.getAttribute("height") || "500px";
|
|
1202
|
+
var server = _this14.getAttribute("server") || "production";
|
|
1110
1203
|
var viewer = document.createElement("plattar-configurator");
|
|
1111
1204
|
viewer.setAttribute("width", width);
|
|
1112
1205
|
viewer.setAttribute("height", height);
|
|
1113
1206
|
viewer.setAttribute("server", server);
|
|
1114
1207
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1115
1208
|
|
|
1116
|
-
var configState =
|
|
1209
|
+
var configState = _this14.getAttribute("config-state");
|
|
1117
1210
|
|
|
1118
|
-
var showAR =
|
|
1211
|
+
var showAR = _this14.getAttribute("show-ar");
|
|
1119
1212
|
|
|
1120
1213
|
if (configState) {
|
|
1121
1214
|
viewer.setAttribute("config-state", configState);
|
|
@@ -1129,10 +1222,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1129
1222
|
return accept(viewer);
|
|
1130
1223
|
};
|
|
1131
1224
|
|
|
1132
|
-
|
|
1225
|
+
_this14.append(viewer);
|
|
1133
1226
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1227
|
+
_this14._element = viewer;
|
|
1228
|
+
_this14._state = plattar_controller_1.ControllerState.Renderer;
|
|
1136
1229
|
return;
|
|
1137
1230
|
}
|
|
1138
1231
|
|
|
@@ -1142,7 +1235,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1142
1235
|
}, {
|
|
1143
1236
|
key: "initAR",
|
|
1144
1237
|
value: function initAR() {
|
|
1145
|
-
var
|
|
1238
|
+
var _this15 = this;
|
|
1146
1239
|
|
|
1147
1240
|
return new Promise(function (accept, reject) {
|
|
1148
1241
|
if (!util_1.Util.canAugment()) {
|
|
@@ -1151,9 +1244,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1151
1244
|
// we can use the real-time configurator state to launch the AR view
|
|
1152
1245
|
|
|
1153
1246
|
|
|
1154
|
-
var viewer =
|
|
1247
|
+
var viewer = _this15.element;
|
|
1155
1248
|
|
|
1156
|
-
var sceneID =
|
|
1249
|
+
var sceneID = _this15.getAttribute("scene-id");
|
|
1157
1250
|
|
|
1158
1251
|
if (viewer && sceneID) {
|
|
1159
1252
|
var output = "glb";
|
|
@@ -1168,7 +1261,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1168
1261
|
})["catch"](reject);
|
|
1169
1262
|
}
|
|
1170
1263
|
|
|
1171
|
-
var configState =
|
|
1264
|
+
var configState = _this15.getAttribute("config-state"); // otherwise scene ID is available to the viewer is not launched
|
|
1172
1265
|
// we can use the static configuration state to launch the AR view
|
|
1173
1266
|
|
|
1174
1267
|
|
|
@@ -1196,7 +1289,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1196
1289
|
configurator.output = "glb";
|
|
1197
1290
|
}
|
|
1198
1291
|
|
|
1199
|
-
var server =
|
|
1292
|
+
var server = _this15.getAttribute("server") || "production";
|
|
1200
1293
|
configurator.server = server;
|
|
1201
1294
|
return configurator.get().then(function (result) {
|
|
1202
1295
|
var rawAR = new raw_ar_1.RawAR(result.filename);
|
|
@@ -1241,12 +1334,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1241
1334
|
exports.ConfiguratorController = ConfiguratorController;
|
|
1242
1335
|
}, {
|
|
1243
1336
|
"../../ar/raw-ar": 4,
|
|
1244
|
-
"../../util/util":
|
|
1245
|
-
"./plattar-controller":
|
|
1246
|
-
"@plattar/plattar-api":
|
|
1247
|
-
"@plattar/plattar-services":
|
|
1337
|
+
"../../util/util": 15,
|
|
1338
|
+
"./plattar-controller": 8,
|
|
1339
|
+
"@plattar/plattar-api": 42,
|
|
1340
|
+
"@plattar/plattar-services": 113
|
|
1248
1341
|
}],
|
|
1249
|
-
|
|
1342
|
+
8: [function (require, module, exports) {
|
|
1250
1343
|
"use strict";
|
|
1251
1344
|
|
|
1252
1345
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1283,10 +1376,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1283
1376
|
* Initialise and start AR mode if available
|
|
1284
1377
|
*/
|
|
1285
1378
|
function startAR() {
|
|
1286
|
-
var
|
|
1379
|
+
var _this16 = this;
|
|
1287
1380
|
|
|
1288
1381
|
return new Promise(function (accept, reject) {
|
|
1289
|
-
|
|
1382
|
+
_this16.initAR().then(function (launcher) {
|
|
1290
1383
|
launcher.start();
|
|
1291
1384
|
accept();
|
|
1292
1385
|
})["catch"](reject);
|
|
@@ -1341,7 +1434,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1341
1434
|
|
|
1342
1435
|
exports.PlattarController = PlattarController;
|
|
1343
1436
|
}, {}],
|
|
1344
|
-
|
|
1437
|
+
9: [function (require, module, exports) {
|
|
1345
1438
|
"use strict";
|
|
1346
1439
|
|
|
1347
1440
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1364,18 +1457,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1364
1457
|
var ProductController = /*#__PURE__*/function (_plattar_controller_2) {
|
|
1365
1458
|
_inherits(ProductController, _plattar_controller_2);
|
|
1366
1459
|
|
|
1367
|
-
var
|
|
1460
|
+
var _super7 = _createSuper(ProductController);
|
|
1368
1461
|
|
|
1369
1462
|
function ProductController(parent) {
|
|
1370
|
-
var
|
|
1463
|
+
var _this17;
|
|
1371
1464
|
|
|
1372
1465
|
_classCallCheck(this, ProductController);
|
|
1373
1466
|
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
return
|
|
1467
|
+
_this17 = _super7.call(this, parent);
|
|
1468
|
+
_this17._state = plattar_controller_1.ControllerState.None;
|
|
1469
|
+
_this17._element = null;
|
|
1470
|
+
_this17._prevQROpt = null;
|
|
1471
|
+
return _this17;
|
|
1379
1472
|
}
|
|
1380
1473
|
|
|
1381
1474
|
_createClass(ProductController, [{
|
|
@@ -1406,20 +1499,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1406
1499
|
}, {
|
|
1407
1500
|
key: "startQRCode",
|
|
1408
1501
|
value: function startQRCode(options) {
|
|
1409
|
-
var
|
|
1502
|
+
var _this18 = this;
|
|
1410
1503
|
|
|
1411
1504
|
return new Promise(function (accept, reject) {
|
|
1412
1505
|
// remove the old renderer instance if any
|
|
1413
|
-
|
|
1506
|
+
_this18.removeRenderer();
|
|
1414
1507
|
|
|
1415
|
-
var productID =
|
|
1508
|
+
var productID = _this18.getAttribute("product-id");
|
|
1416
1509
|
|
|
1417
1510
|
if (productID) {
|
|
1418
1511
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1419
1512
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1420
1513
|
|
|
1421
|
-
var width =
|
|
1422
|
-
var height =
|
|
1514
|
+
var width = _this18.getAttribute("width") || "500px";
|
|
1515
|
+
var height = _this18.getAttribute("height") || "500px";
|
|
1423
1516
|
viewer.setAttribute("width", width);
|
|
1424
1517
|
viewer.setAttribute("height", height);
|
|
1425
1518
|
|
|
@@ -1436,7 +1529,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1436
1529
|
} // optional attributes
|
|
1437
1530
|
|
|
1438
1531
|
|
|
1439
|
-
var variationID =
|
|
1532
|
+
var variationID = _this18.getAttribute("variation-id");
|
|
1440
1533
|
|
|
1441
1534
|
var dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + productID;
|
|
1442
1535
|
|
|
@@ -1450,11 +1543,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1450
1543
|
return accept(viewer);
|
|
1451
1544
|
};
|
|
1452
1545
|
|
|
1453
|
-
|
|
1546
|
+
_this18.append(viewer);
|
|
1454
1547
|
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1548
|
+
_this18._element = viewer;
|
|
1549
|
+
_this18._state = plattar_controller_1.ControllerState.QRCode;
|
|
1550
|
+
_this18._prevQROpt = opt;
|
|
1458
1551
|
return;
|
|
1459
1552
|
}
|
|
1460
1553
|
|
|
@@ -1464,26 +1557,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1464
1557
|
}, {
|
|
1465
1558
|
key: "startRenderer",
|
|
1466
1559
|
value: function startRenderer() {
|
|
1467
|
-
var
|
|
1560
|
+
var _this19 = this;
|
|
1468
1561
|
|
|
1469
1562
|
return new Promise(function (accept, reject) {
|
|
1470
1563
|
// remove the old renderer instance if any
|
|
1471
|
-
|
|
1564
|
+
_this19.removeRenderer();
|
|
1472
1565
|
|
|
1473
|
-
var productID =
|
|
1566
|
+
var productID = _this19.getAttribute("product-id");
|
|
1474
1567
|
|
|
1475
1568
|
if (productID) {
|
|
1476
1569
|
// required attributes with defaults for plattar-product node
|
|
1477
|
-
var width =
|
|
1478
|
-
var height =
|
|
1479
|
-
var server =
|
|
1570
|
+
var width = _this19.getAttribute("width") || "500px";
|
|
1571
|
+
var height = _this19.getAttribute("height") || "500px";
|
|
1572
|
+
var server = _this19.getAttribute("server") || "production";
|
|
1480
1573
|
var viewer = document.createElement("plattar-product");
|
|
1481
1574
|
viewer.setAttribute("width", width);
|
|
1482
1575
|
viewer.setAttribute("height", height);
|
|
1483
1576
|
viewer.setAttribute("server", server);
|
|
1484
1577
|
viewer.setAttribute("product-id", productID); // optional attributes
|
|
1485
1578
|
|
|
1486
|
-
var variationID =
|
|
1579
|
+
var variationID = _this19.getAttribute("variation-id");
|
|
1487
1580
|
|
|
1488
1581
|
if (variationID) {
|
|
1489
1582
|
viewer.setAttribute("variation-id", variationID);
|
|
@@ -1493,10 +1586,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1493
1586
|
return accept(viewer);
|
|
1494
1587
|
};
|
|
1495
1588
|
|
|
1496
|
-
|
|
1589
|
+
_this19.append(viewer);
|
|
1497
1590
|
|
|
1498
|
-
|
|
1499
|
-
|
|
1591
|
+
_this19._element = viewer;
|
|
1592
|
+
_this19._state = plattar_controller_1.ControllerState.Renderer;
|
|
1500
1593
|
return;
|
|
1501
1594
|
}
|
|
1502
1595
|
|
|
@@ -1506,17 +1599,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1506
1599
|
}, {
|
|
1507
1600
|
key: "initAR",
|
|
1508
1601
|
value: function initAR() {
|
|
1509
|
-
var
|
|
1602
|
+
var _this20 = this;
|
|
1510
1603
|
|
|
1511
1604
|
return new Promise(function (accept, reject) {
|
|
1512
1605
|
if (!util_1.Util.canAugment()) {
|
|
1513
1606
|
return reject(new Error("ProductController.initAR() - cannot proceed as AR not available in context"));
|
|
1514
1607
|
}
|
|
1515
1608
|
|
|
1516
|
-
var productID =
|
|
1609
|
+
var productID = _this20.getAttribute("product-id");
|
|
1517
1610
|
|
|
1518
1611
|
if (productID) {
|
|
1519
|
-
var variationID =
|
|
1612
|
+
var variationID = _this20.getAttribute("variation-id");
|
|
1520
1613
|
|
|
1521
1614
|
var product = new product_ar_1.ProductAR(productID, variationID);
|
|
1522
1615
|
return product.init().then(accept)["catch"](reject);
|
|
@@ -1550,11 +1643,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1550
1643
|
exports.ProductController = ProductController;
|
|
1551
1644
|
}, {
|
|
1552
1645
|
"../../ar/product-ar": 3,
|
|
1553
|
-
"../../util/util":
|
|
1554
|
-
"./plattar-controller":
|
|
1555
|
-
"@plattar/plattar-api":
|
|
1646
|
+
"../../util/util": 15,
|
|
1647
|
+
"./plattar-controller": 8,
|
|
1648
|
+
"@plattar/plattar-api": 42
|
|
1556
1649
|
}],
|
|
1557
|
-
|
|
1650
|
+
10: [function (require, module, exports) {
|
|
1558
1651
|
"use strict";
|
|
1559
1652
|
|
|
1560
1653
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1566,6 +1659,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1566
1659
|
|
|
1567
1660
|
var product_ar_1 = require("../../ar/product-ar");
|
|
1568
1661
|
|
|
1662
|
+
var scene_product_ar_1 = require("../../ar/scene-product-ar");
|
|
1663
|
+
|
|
1569
1664
|
var util_1 = require("../../util/util");
|
|
1570
1665
|
|
|
1571
1666
|
var plattar_controller_1 = require("./plattar-controller");
|
|
@@ -1577,18 +1672,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1577
1672
|
var ViewerController = /*#__PURE__*/function (_plattar_controller_3) {
|
|
1578
1673
|
_inherits(ViewerController, _plattar_controller_3);
|
|
1579
1674
|
|
|
1580
|
-
var
|
|
1675
|
+
var _super8 = _createSuper(ViewerController);
|
|
1581
1676
|
|
|
1582
1677
|
function ViewerController(parent) {
|
|
1583
|
-
var
|
|
1678
|
+
var _this21;
|
|
1584
1679
|
|
|
1585
1680
|
_classCallCheck(this, ViewerController);
|
|
1586
1681
|
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
return
|
|
1682
|
+
_this21 = _super8.call(this, parent);
|
|
1683
|
+
_this21._state = plattar_controller_1.ControllerState.None;
|
|
1684
|
+
_this21._element = null;
|
|
1685
|
+
_this21._prevQROpt = null;
|
|
1686
|
+
return _this21;
|
|
1592
1687
|
}
|
|
1593
1688
|
|
|
1594
1689
|
_createClass(ViewerController, [{
|
|
@@ -1606,7 +1701,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1606
1701
|
var viewer = this._element;
|
|
1607
1702
|
|
|
1608
1703
|
if (viewer) {
|
|
1609
|
-
var productID = this.getAttribute("product-id");
|
|
1704
|
+
var productID = this.getAttribute("product-id") || this.getAttribute("scene-product-id");
|
|
1610
1705
|
var variationID = this.getAttribute("variation-id");
|
|
1611
1706
|
|
|
1612
1707
|
if (productID && variationID && viewer.messenger) {
|
|
@@ -1620,20 +1715,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1620
1715
|
}, {
|
|
1621
1716
|
key: "startQRCode",
|
|
1622
1717
|
value: function startQRCode(options) {
|
|
1623
|
-
var
|
|
1718
|
+
var _this22 = this;
|
|
1624
1719
|
|
|
1625
1720
|
return new Promise(function (accept, reject) {
|
|
1626
1721
|
// remove the old renderer instance if any
|
|
1627
|
-
|
|
1722
|
+
_this22.removeRenderer();
|
|
1628
1723
|
|
|
1629
|
-
var sceneID =
|
|
1724
|
+
var sceneID = _this22.getAttribute("scene-id");
|
|
1630
1725
|
|
|
1631
1726
|
if (sceneID) {
|
|
1632
1727
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1633
1728
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1634
1729
|
|
|
1635
|
-
var width =
|
|
1636
|
-
var height =
|
|
1730
|
+
var width = _this22.getAttribute("width") || "500px";
|
|
1731
|
+
var height = _this22.getAttribute("height") || "500px";
|
|
1637
1732
|
viewer.setAttribute("width", width);
|
|
1638
1733
|
viewer.setAttribute("height", height);
|
|
1639
1734
|
|
|
@@ -1651,9 +1746,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1651
1746
|
|
|
1652
1747
|
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + sceneID; // optional attributes
|
|
1653
1748
|
|
|
1654
|
-
var productID =
|
|
1749
|
+
var productID = _this22.getAttribute("product-id") || _this22.getAttribute("scene-product-id");
|
|
1655
1750
|
|
|
1656
|
-
var variationID =
|
|
1751
|
+
var variationID = _this22.getAttribute("variation-id");
|
|
1657
1752
|
|
|
1658
1753
|
if (productID) {
|
|
1659
1754
|
dst += "&productId=" + productID;
|
|
@@ -1669,11 +1764,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1669
1764
|
return accept(viewer);
|
|
1670
1765
|
};
|
|
1671
1766
|
|
|
1672
|
-
|
|
1767
|
+
_this22.append(viewer);
|
|
1673
1768
|
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1769
|
+
_this22._element = viewer;
|
|
1770
|
+
_this22._state = plattar_controller_1.ControllerState.QRCode;
|
|
1771
|
+
_this22._prevQROpt = opt;
|
|
1677
1772
|
return;
|
|
1678
1773
|
}
|
|
1679
1774
|
|
|
@@ -1683,28 +1778,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1683
1778
|
}, {
|
|
1684
1779
|
key: "startRenderer",
|
|
1685
1780
|
value: function startRenderer() {
|
|
1686
|
-
var
|
|
1781
|
+
var _this23 = this;
|
|
1687
1782
|
|
|
1688
1783
|
return new Promise(function (accept, reject) {
|
|
1689
1784
|
// remove the old renderer instance if any
|
|
1690
|
-
|
|
1785
|
+
_this23.removeRenderer();
|
|
1691
1786
|
|
|
1692
|
-
var sceneID =
|
|
1787
|
+
var sceneID = _this23.getAttribute("scene-id");
|
|
1693
1788
|
|
|
1694
1789
|
if (sceneID) {
|
|
1695
1790
|
// required attributes with defaults for plattar-viewer node
|
|
1696
|
-
var width =
|
|
1697
|
-
var height =
|
|
1698
|
-
var server =
|
|
1791
|
+
var width = _this23.getAttribute("width") || "500px";
|
|
1792
|
+
var height = _this23.getAttribute("height") || "500px";
|
|
1793
|
+
var server = _this23.getAttribute("server") || "production";
|
|
1699
1794
|
var viewer = document.createElement("plattar-viewer");
|
|
1700
1795
|
viewer.setAttribute("width", width);
|
|
1701
1796
|
viewer.setAttribute("height", height);
|
|
1702
1797
|
viewer.setAttribute("server", server);
|
|
1703
1798
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1704
1799
|
|
|
1705
|
-
var productID =
|
|
1800
|
+
var productID = _this23.getAttribute("product-id") || _this23.getAttribute("scene-product-id");
|
|
1706
1801
|
|
|
1707
|
-
var variationID =
|
|
1802
|
+
var variationID = _this23.getAttribute("variation-id");
|
|
1708
1803
|
|
|
1709
1804
|
if (productID) {
|
|
1710
1805
|
viewer.setAttribute("product-id", productID);
|
|
@@ -1718,10 +1813,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1718
1813
|
return accept(viewer);
|
|
1719
1814
|
};
|
|
1720
1815
|
|
|
1721
|
-
|
|
1816
|
+
_this23.append(viewer);
|
|
1722
1817
|
|
|
1723
|
-
|
|
1724
|
-
|
|
1818
|
+
_this23._element = viewer;
|
|
1819
|
+
_this23._state = plattar_controller_1.ControllerState.Renderer;
|
|
1725
1820
|
return;
|
|
1726
1821
|
}
|
|
1727
1822
|
|
|
@@ -1731,30 +1826,42 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1731
1826
|
}, {
|
|
1732
1827
|
key: "initAR",
|
|
1733
1828
|
value: function initAR() {
|
|
1734
|
-
var
|
|
1829
|
+
var _this24 = this;
|
|
1735
1830
|
|
|
1736
1831
|
return new Promise(function (accept, reject) {
|
|
1737
1832
|
if (!util_1.Util.canAugment()) {
|
|
1738
1833
|
return reject(new Error("ViewerController.initAR() - cannot proceed as AR not available in context"));
|
|
1739
1834
|
}
|
|
1740
1835
|
|
|
1741
|
-
var productID =
|
|
1836
|
+
var productID = _this24.getAttribute("product-id"); // use product-id if available
|
|
1837
|
+
|
|
1742
1838
|
|
|
1743
1839
|
if (productID) {
|
|
1744
|
-
var variationID =
|
|
1840
|
+
var variationID = _this24.getAttribute("variation-id");
|
|
1745
1841
|
|
|
1746
1842
|
var product = new product_ar_1.ProductAR(productID, variationID);
|
|
1747
1843
|
return product.init().then(accept)["catch"](reject);
|
|
1748
1844
|
}
|
|
1749
1845
|
|
|
1750
|
-
var
|
|
1846
|
+
var sceneProductID = _this24.getAttribute("scene-product-id"); // use scene-product-id if available
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
if (sceneProductID) {
|
|
1850
|
+
var _variationID = _this24.getAttribute("variation-id");
|
|
1851
|
+
|
|
1852
|
+
var _product = new scene_product_ar_1.SceneProductAR(sceneProductID, _variationID);
|
|
1853
|
+
|
|
1854
|
+
return _product.init().then(accept)["catch"](reject);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
var sceneID = _this24.getAttribute("scene-id"); // otherwise, scene was set so use SceneAR
|
|
1751
1858
|
|
|
1752
1859
|
|
|
1753
1860
|
if (sceneID) {
|
|
1754
|
-
return reject(new Error("ViewerController.initAR() - AR mode for scene-id not yet supported, use product-id"));
|
|
1861
|
+
return reject(new Error("ViewerController.initAR() - AR mode for scene-id not yet supported, use product-id or scene-product-id"));
|
|
1755
1862
|
}
|
|
1756
1863
|
|
|
1757
|
-
return reject(new Error("ViewerController.initAR() - minimum required attributes not set, use
|
|
1864
|
+
return reject(new Error("ViewerController.initAR() - minimum required attributes not set, use product-id or scene-product-id as a minimum"));
|
|
1758
1865
|
});
|
|
1759
1866
|
}
|
|
1760
1867
|
}, {
|
|
@@ -1782,11 +1889,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1782
1889
|
exports.ViewerController = ViewerController;
|
|
1783
1890
|
}, {
|
|
1784
1891
|
"../../ar/product-ar": 3,
|
|
1785
|
-
"../../
|
|
1786
|
-
"
|
|
1787
|
-
"
|
|
1892
|
+
"../../ar/scene-product-ar": 6,
|
|
1893
|
+
"../../util/util": 15,
|
|
1894
|
+
"./plattar-controller": 8,
|
|
1895
|
+
"@plattar/plattar-api": 42
|
|
1788
1896
|
}],
|
|
1789
|
-
|
|
1897
|
+
11: [function (require, module, exports) {
|
|
1790
1898
|
"use strict";
|
|
1791
1899
|
|
|
1792
1900
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1813,18 +1921,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1813
1921
|
var VTOController = /*#__PURE__*/function (_plattar_controller_4) {
|
|
1814
1922
|
_inherits(VTOController, _plattar_controller_4);
|
|
1815
1923
|
|
|
1816
|
-
var
|
|
1924
|
+
var _super9 = _createSuper(VTOController);
|
|
1817
1925
|
|
|
1818
1926
|
function VTOController(parent) {
|
|
1819
|
-
var
|
|
1927
|
+
var _this25;
|
|
1820
1928
|
|
|
1821
1929
|
_classCallCheck(this, VTOController);
|
|
1822
1930
|
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
return
|
|
1931
|
+
_this25 = _super9.call(this, parent);
|
|
1932
|
+
_this25._state = plattar_controller_1.ControllerState.None;
|
|
1933
|
+
_this25._element = null;
|
|
1934
|
+
_this25._prevQROpt = null;
|
|
1935
|
+
return _this25;
|
|
1828
1936
|
}
|
|
1829
1937
|
|
|
1830
1938
|
_createClass(VTOController, [{
|
|
@@ -1840,20 +1948,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1840
1948
|
}, {
|
|
1841
1949
|
key: "startQRCode",
|
|
1842
1950
|
value: function startQRCode(options) {
|
|
1843
|
-
var
|
|
1951
|
+
var _this26 = this;
|
|
1844
1952
|
|
|
1845
1953
|
return new Promise(function (accept, reject) {
|
|
1846
1954
|
// remove the old renderer instance if any
|
|
1847
|
-
|
|
1955
|
+
_this26.removeRenderer();
|
|
1848
1956
|
|
|
1849
|
-
var sceneID =
|
|
1957
|
+
var sceneID = _this26.getAttribute("scene-id");
|
|
1850
1958
|
|
|
1851
1959
|
if (sceneID) {
|
|
1852
1960
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1853
1961
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1854
1962
|
|
|
1855
|
-
var width =
|
|
1856
|
-
var height =
|
|
1963
|
+
var width = _this26.getAttribute("width") || "500px";
|
|
1964
|
+
var height = _this26.getAttribute("height") || "500px";
|
|
1857
1965
|
viewer.setAttribute("width", width);
|
|
1858
1966
|
viewer.setAttribute("height", height);
|
|
1859
1967
|
|
|
@@ -1871,9 +1979,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1871
1979
|
|
|
1872
1980
|
var dst = plattar_api_1.Server.location().base + "renderer/facear.html?scene_id=" + sceneID; // optional attributes
|
|
1873
1981
|
|
|
1874
|
-
var configState =
|
|
1982
|
+
var configState = _this26.getAttribute("config-state");
|
|
1875
1983
|
|
|
1876
|
-
var showAR =
|
|
1984
|
+
var showAR = _this26.getAttribute("show-ar");
|
|
1877
1985
|
|
|
1878
1986
|
if (configState) {
|
|
1879
1987
|
dst += "&config_state=" + configState;
|
|
@@ -1889,11 +1997,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1889
1997
|
return accept(viewer);
|
|
1890
1998
|
};
|
|
1891
1999
|
|
|
1892
|
-
|
|
2000
|
+
_this26.append(viewer);
|
|
1893
2001
|
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
2002
|
+
_this26._element = viewer;
|
|
2003
|
+
_this26._state = plattar_controller_1.ControllerState.QRCode;
|
|
2004
|
+
_this26._prevQROpt = opt;
|
|
1897
2005
|
return;
|
|
1898
2006
|
}
|
|
1899
2007
|
|
|
@@ -1903,28 +2011,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1903
2011
|
}, {
|
|
1904
2012
|
key: "startRenderer",
|
|
1905
2013
|
value: function startRenderer() {
|
|
1906
|
-
var
|
|
2014
|
+
var _this27 = this;
|
|
1907
2015
|
|
|
1908
2016
|
return new Promise(function (accept, reject) {
|
|
1909
2017
|
// remove the old renderer instance if any
|
|
1910
|
-
|
|
2018
|
+
_this27.removeRenderer();
|
|
1911
2019
|
|
|
1912
|
-
var sceneID =
|
|
2020
|
+
var sceneID = _this27.getAttribute("scene-id");
|
|
1913
2021
|
|
|
1914
2022
|
if (sceneID) {
|
|
1915
2023
|
// required attributes with defaults for plattar-facear node
|
|
1916
|
-
var width =
|
|
1917
|
-
var height =
|
|
1918
|
-
var server =
|
|
2024
|
+
var width = _this27.getAttribute("width") || "500px";
|
|
2025
|
+
var height = _this27.getAttribute("height") || "500px";
|
|
2026
|
+
var server = _this27.getAttribute("server") || "production";
|
|
1919
2027
|
var viewer = document.createElement("plattar-facear");
|
|
1920
2028
|
viewer.setAttribute("width", width);
|
|
1921
2029
|
viewer.setAttribute("height", height);
|
|
1922
2030
|
viewer.setAttribute("server", server);
|
|
1923
2031
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1924
2032
|
|
|
1925
|
-
var configState =
|
|
2033
|
+
var configState = _this27.getAttribute("config-state");
|
|
1926
2034
|
|
|
1927
|
-
var showAR =
|
|
2035
|
+
var showAR = _this27.getAttribute("show-ar");
|
|
1928
2036
|
|
|
1929
2037
|
if (configState) {
|
|
1930
2038
|
viewer.setAttribute("config-state", configState);
|
|
@@ -1938,10 +2046,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1938
2046
|
return accept(viewer);
|
|
1939
2047
|
};
|
|
1940
2048
|
|
|
1941
|
-
|
|
2049
|
+
_this27.append(viewer);
|
|
1942
2050
|
|
|
1943
|
-
|
|
1944
|
-
|
|
2051
|
+
_this27._element = viewer;
|
|
2052
|
+
_this27._state = plattar_controller_1.ControllerState.Renderer;
|
|
1945
2053
|
return;
|
|
1946
2054
|
}
|
|
1947
2055
|
|
|
@@ -1951,7 +2059,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1951
2059
|
}, {
|
|
1952
2060
|
key: "initAR",
|
|
1953
2061
|
value: function initAR() {
|
|
1954
|
-
var
|
|
2062
|
+
var _this28 = this;
|
|
1955
2063
|
|
|
1956
2064
|
return new Promise(function (accept, reject) {
|
|
1957
2065
|
if (!util_1.Util.canAugment()) {
|
|
@@ -1964,9 +2072,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1964
2072
|
// we can use the real-time configurator state to launch the AR view
|
|
1965
2073
|
|
|
1966
2074
|
|
|
1967
|
-
var viewer =
|
|
2075
|
+
var viewer = _this28.element;
|
|
1968
2076
|
|
|
1969
|
-
var sceneID =
|
|
2077
|
+
var sceneID = _this28.getAttribute("scene-id");
|
|
1970
2078
|
|
|
1971
2079
|
if (viewer && sceneID) {
|
|
1972
2080
|
return viewer.messenger.getARFile("vto").then(function (result) {
|
|
@@ -1975,7 +2083,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1975
2083
|
})["catch"](reject);
|
|
1976
2084
|
}
|
|
1977
2085
|
|
|
1978
|
-
var configState =
|
|
2086
|
+
var configState = _this28.getAttribute("config-state"); // otherwise scene ID is available to the viewer is not launched
|
|
1979
2087
|
// we can use the static configuration state to launch the AR view
|
|
1980
2088
|
|
|
1981
2089
|
|
|
@@ -1983,7 +2091,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1983
2091
|
var state = __1.ConfiguratorState.decode(configState);
|
|
1984
2092
|
|
|
1985
2093
|
if (state.length > 0) {
|
|
1986
|
-
var server =
|
|
2094
|
+
var server = _this28.getAttribute("server") || "production";
|
|
1987
2095
|
var configurator = new plattar_services_1.Configurator();
|
|
1988
2096
|
configurator.server = server;
|
|
1989
2097
|
configurator.output = "vto";
|
|
@@ -2035,14 +2143,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2035
2143
|
|
|
2036
2144
|
exports.VTOController = VTOController;
|
|
2037
2145
|
}, {
|
|
2038
|
-
"../..":
|
|
2146
|
+
"../..": 13,
|
|
2039
2147
|
"../../ar/raw-ar": 4,
|
|
2040
|
-
"../../util/util":
|
|
2041
|
-
"./plattar-controller":
|
|
2042
|
-
"@plattar/plattar-api":
|
|
2043
|
-
"@plattar/plattar-services":
|
|
2148
|
+
"../../util/util": 15,
|
|
2149
|
+
"./plattar-controller": 8,
|
|
2150
|
+
"@plattar/plattar-api": 42,
|
|
2151
|
+
"@plattar/plattar-services": 113
|
|
2044
2152
|
}],
|
|
2045
|
-
|
|
2153
|
+
12: [function (require, module, exports) {
|
|
2046
2154
|
"use strict";
|
|
2047
2155
|
|
|
2048
2156
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2079,18 +2187,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2079
2187
|
var PlattarEmbed = /*#__PURE__*/function (_HTMLElement) {
|
|
2080
2188
|
_inherits(PlattarEmbed, _HTMLElement);
|
|
2081
2189
|
|
|
2082
|
-
var
|
|
2190
|
+
var _super10 = _createSuper(PlattarEmbed);
|
|
2083
2191
|
|
|
2084
2192
|
function PlattarEmbed() {
|
|
2085
|
-
var
|
|
2193
|
+
var _this29;
|
|
2086
2194
|
|
|
2087
2195
|
_classCallCheck(this, PlattarEmbed);
|
|
2088
2196
|
|
|
2089
|
-
|
|
2197
|
+
_this29 = _super10.call(this); // this is the current embed type, viewer by default
|
|
2090
2198
|
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
return
|
|
2199
|
+
_this29._currentType = EmbedType.Viewer;
|
|
2200
|
+
_this29._controller = null;
|
|
2201
|
+
return _this29;
|
|
2094
2202
|
}
|
|
2095
2203
|
|
|
2096
2204
|
_createClass(PlattarEmbed, [{
|
|
@@ -2101,7 +2209,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2101
2209
|
}, {
|
|
2102
2210
|
key: "connectedCallback",
|
|
2103
2211
|
value: function connectedCallback() {
|
|
2104
|
-
var
|
|
2212
|
+
var _this30 = this;
|
|
2105
2213
|
|
|
2106
2214
|
var embedType = this.hasAttribute("embed-type") ? this.getAttribute("embed-type") : "viewer";
|
|
2107
2215
|
|
|
@@ -2127,7 +2235,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2127
2235
|
var observer = new MutationObserver(function (mutations) {
|
|
2128
2236
|
mutations.forEach(function (mutation) {
|
|
2129
2237
|
if (mutation.type === "attributes") {
|
|
2130
|
-
|
|
2238
|
+
_this30._OnAttributesUpdated();
|
|
2131
2239
|
}
|
|
2132
2240
|
});
|
|
2133
2241
|
});
|
|
@@ -2163,66 +2271,66 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2163
2271
|
} else if (init === "ar-fallback-qrcode") {
|
|
2164
2272
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
2165
2273
|
})["catch"](function (_err) {
|
|
2166
|
-
|
|
2274
|
+
_this30.startQRCode();
|
|
2167
2275
|
});
|
|
2168
2276
|
} else if (init === "ar-fallback-viewer") {
|
|
2169
2277
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
2170
2278
|
})["catch"](function (_err) {
|
|
2171
|
-
|
|
2279
|
+
_this30.startViewer();
|
|
2172
2280
|
});
|
|
2173
2281
|
}
|
|
2174
2282
|
}
|
|
2175
2283
|
}, {
|
|
2176
2284
|
key: "initAR",
|
|
2177
2285
|
value: function initAR() {
|
|
2178
|
-
var
|
|
2286
|
+
var _this31 = this;
|
|
2179
2287
|
|
|
2180
2288
|
return new Promise(function (accept, reject) {
|
|
2181
|
-
if (!
|
|
2289
|
+
if (!_this31._controller) {
|
|
2182
2290
|
return reject(new Error("PlattarEmbed.initAR() - cannot execute as controller has not loaded yet"));
|
|
2183
2291
|
}
|
|
2184
2292
|
|
|
2185
|
-
return
|
|
2293
|
+
return _this31._controller.initAR().then(accept)["catch"](reject);
|
|
2186
2294
|
});
|
|
2187
2295
|
}
|
|
2188
2296
|
}, {
|
|
2189
2297
|
key: "startAR",
|
|
2190
2298
|
value: function startAR() {
|
|
2191
|
-
var
|
|
2299
|
+
var _this32 = this;
|
|
2192
2300
|
|
|
2193
2301
|
return new Promise(function (accept, reject) {
|
|
2194
|
-
if (!
|
|
2302
|
+
if (!_this32._controller) {
|
|
2195
2303
|
return reject(new Error("PlattarEmbed.startAR() - cannot execute as controller has not loaded yet"));
|
|
2196
2304
|
}
|
|
2197
2305
|
|
|
2198
|
-
return
|
|
2306
|
+
return _this32._controller.startAR().then(accept)["catch"](reject);
|
|
2199
2307
|
});
|
|
2200
2308
|
}
|
|
2201
2309
|
}, {
|
|
2202
2310
|
key: "startViewer",
|
|
2203
2311
|
value: function startViewer() {
|
|
2204
|
-
var
|
|
2312
|
+
var _this33 = this;
|
|
2205
2313
|
|
|
2206
2314
|
return new Promise(function (accept, reject) {
|
|
2207
|
-
if (!
|
|
2315
|
+
if (!_this33._controller) {
|
|
2208
2316
|
return reject(new Error("PlattarEmbed.startViewer() - cannot execute as controller has not loaded yet"));
|
|
2209
2317
|
}
|
|
2210
2318
|
|
|
2211
|
-
return
|
|
2319
|
+
return _this33._controller.startRenderer().then(accept)["catch"](reject);
|
|
2212
2320
|
});
|
|
2213
2321
|
}
|
|
2214
2322
|
}, {
|
|
2215
2323
|
key: "startQRCode",
|
|
2216
2324
|
value: function startQRCode() {
|
|
2217
|
-
var
|
|
2325
|
+
var _this34 = this;
|
|
2218
2326
|
|
|
2219
2327
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2220
2328
|
return new Promise(function (accept, reject) {
|
|
2221
|
-
if (!
|
|
2329
|
+
if (!_this34._controller) {
|
|
2222
2330
|
return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as controller has not loaded yet"));
|
|
2223
2331
|
}
|
|
2224
2332
|
|
|
2225
|
-
return
|
|
2333
|
+
return _this34._controller.startQRCode(options).then(accept)["catch"](reject);
|
|
2226
2334
|
});
|
|
2227
2335
|
}
|
|
2228
2336
|
/**
|
|
@@ -2259,13 +2367,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2259
2367
|
|
|
2260
2368
|
exports["default"] = PlattarEmbed;
|
|
2261
2369
|
}, {
|
|
2262
|
-
"./controllers/configurator-controller":
|
|
2263
|
-
"./controllers/product-controller":
|
|
2264
|
-
"./controllers/viewer-controller":
|
|
2265
|
-
"./controllers/vto-controller":
|
|
2266
|
-
"@plattar/plattar-api":
|
|
2370
|
+
"./controllers/configurator-controller": 7,
|
|
2371
|
+
"./controllers/product-controller": 9,
|
|
2372
|
+
"./controllers/viewer-controller": 10,
|
|
2373
|
+
"./controllers/vto-controller": 11,
|
|
2374
|
+
"@plattar/plattar-api": 42
|
|
2267
2375
|
}],
|
|
2268
|
-
|
|
2376
|
+
13: [function (require, module, exports) {
|
|
2269
2377
|
"use strict";
|
|
2270
2378
|
|
|
2271
2379
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -2311,7 +2419,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2311
2419
|
Object.defineProperty(exports, "__esModule", {
|
|
2312
2420
|
value: true
|
|
2313
2421
|
});
|
|
2314
|
-
exports.ConfiguratorState = exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
2422
|
+
exports.ConfiguratorState = exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.SceneProductAR = exports.ProductAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
2315
2423
|
exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
|
|
2316
2424
|
exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
|
|
2317
2425
|
exports.version = __importStar(require("./version"));
|
|
@@ -2325,6 +2433,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2325
2433
|
}
|
|
2326
2434
|
});
|
|
2327
2435
|
|
|
2436
|
+
var scene_product_ar_1 = require("./ar/scene-product-ar");
|
|
2437
|
+
|
|
2438
|
+
Object.defineProperty(exports, "SceneProductAR", {
|
|
2439
|
+
enumerable: true,
|
|
2440
|
+
get: function get() {
|
|
2441
|
+
return scene_product_ar_1.SceneProductAR;
|
|
2442
|
+
}
|
|
2443
|
+
});
|
|
2444
|
+
|
|
2328
2445
|
var scene_ar_1 = require("./ar/scene-ar");
|
|
2329
2446
|
|
|
2330
2447
|
Object.defineProperty(exports, "SceneAR", {
|
|
@@ -2386,14 +2503,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2386
2503
|
"./ar/product-ar": 3,
|
|
2387
2504
|
"./ar/raw-ar": 4,
|
|
2388
2505
|
"./ar/scene-ar": 5,
|
|
2389
|
-
"./
|
|
2390
|
-
"./
|
|
2391
|
-
"./util/
|
|
2392
|
-
"./
|
|
2393
|
-
"
|
|
2394
|
-
"@plattar/plattar-
|
|
2506
|
+
"./ar/scene-product-ar": 6,
|
|
2507
|
+
"./embed/plattar-embed": 12,
|
|
2508
|
+
"./util/configurator-state": 14,
|
|
2509
|
+
"./util/util": 15,
|
|
2510
|
+
"./version": 16,
|
|
2511
|
+
"@plattar/plattar-qrcode": 108,
|
|
2512
|
+
"@plattar/plattar-web": 127
|
|
2395
2513
|
}],
|
|
2396
|
-
|
|
2514
|
+
14: [function (require, module, exports) {
|
|
2397
2515
|
"use strict";
|
|
2398
2516
|
|
|
2399
2517
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2518,7 +2636,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2518
2636
|
|
|
2519
2637
|
exports.ConfiguratorState = ConfiguratorState;
|
|
2520
2638
|
}, {}],
|
|
2521
|
-
|
|
2639
|
+
15: [function (require, module, exports) {
|
|
2522
2640
|
"use strict";
|
|
2523
2641
|
|
|
2524
2642
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2642,15 +2760,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2642
2760
|
|
|
2643
2761
|
exports.Util = Util;
|
|
2644
2762
|
}, {}],
|
|
2645
|
-
|
|
2763
|
+
16: [function (require, module, exports) {
|
|
2646
2764
|
"use strict";
|
|
2647
2765
|
|
|
2648
2766
|
Object.defineProperty(exports, "__esModule", {
|
|
2649
2767
|
value: true
|
|
2650
2768
|
});
|
|
2651
|
-
exports["default"] = "1.123.
|
|
2769
|
+
exports["default"] = "1.123.6";
|
|
2652
2770
|
}, {}],
|
|
2653
|
-
|
|
2771
|
+
17: [function (require, module, exports) {
|
|
2654
2772
|
"use strict";
|
|
2655
2773
|
|
|
2656
2774
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2666,7 +2784,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2666
2784
|
|
|
2667
2785
|
exports["default"] = ARViewer;
|
|
2668
2786
|
}, {}],
|
|
2669
|
-
|
|
2787
|
+
18: [function (require, module, exports) {
|
|
2670
2788
|
"use strict";
|
|
2671
2789
|
|
|
2672
2790
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2684,20 +2802,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2684
2802
|
var QuicklookViewer = /*#__PURE__*/function (_ar_viewer_1$default) {
|
|
2685
2803
|
_inherits(QuicklookViewer, _ar_viewer_1$default);
|
|
2686
2804
|
|
|
2687
|
-
var
|
|
2805
|
+
var _super11 = _createSuper(QuicklookViewer);
|
|
2688
2806
|
|
|
2689
2807
|
function QuicklookViewer() {
|
|
2690
|
-
var
|
|
2808
|
+
var _this35;
|
|
2691
2809
|
|
|
2692
2810
|
_classCallCheck(this, QuicklookViewer);
|
|
2693
2811
|
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2812
|
+
_this35 = _super11.call(this);
|
|
2813
|
+
_this35.araction = null;
|
|
2814
|
+
_this35.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
|
|
2697
2815
|
|
|
2698
|
-
|
|
2816
|
+
_this35.arcallback = function () {};
|
|
2699
2817
|
|
|
2700
|
-
return
|
|
2818
|
+
return _this35;
|
|
2701
2819
|
}
|
|
2702
2820
|
|
|
2703
2821
|
_createClass(QuicklookViewer, [{
|
|
@@ -2713,7 +2831,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2713
2831
|
}, {
|
|
2714
2832
|
key: "start",
|
|
2715
2833
|
value: function start() {
|
|
2716
|
-
var
|
|
2834
|
+
var _this36 = this;
|
|
2717
2835
|
|
|
2718
2836
|
if (!this.modelUrl) {
|
|
2719
2837
|
throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
|
|
@@ -2728,7 +2846,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2728
2846
|
if (araction) {
|
|
2729
2847
|
var handleQuicklook = function handleQuicklook(event) {
|
|
2730
2848
|
if (event.data === "_apple_ar_quicklook_button_tapped") {
|
|
2731
|
-
|
|
2849
|
+
_this36.arcallback();
|
|
2732
2850
|
}
|
|
2733
2851
|
|
|
2734
2852
|
document.body.removeChild(anchor);
|
|
@@ -2754,9 +2872,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2754
2872
|
|
|
2755
2873
|
exports["default"] = QuicklookViewer;
|
|
2756
2874
|
}, {
|
|
2757
|
-
"./ar-viewer":
|
|
2875
|
+
"./ar-viewer": 17
|
|
2758
2876
|
}],
|
|
2759
|
-
|
|
2877
|
+
19: [function (require, module, exports) {
|
|
2760
2878
|
"use strict";
|
|
2761
2879
|
|
|
2762
2880
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2774,12 +2892,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2774
2892
|
var RealityViewer = /*#__PURE__*/function (_ar_viewer_1$default2) {
|
|
2775
2893
|
_inherits(RealityViewer, _ar_viewer_1$default2);
|
|
2776
2894
|
|
|
2777
|
-
var
|
|
2895
|
+
var _super12 = _createSuper(RealityViewer);
|
|
2778
2896
|
|
|
2779
2897
|
function RealityViewer() {
|
|
2780
2898
|
_classCallCheck(this, RealityViewer);
|
|
2781
2899
|
|
|
2782
|
-
return
|
|
2900
|
+
return _super12.call(this);
|
|
2783
2901
|
}
|
|
2784
2902
|
|
|
2785
2903
|
_createClass(RealityViewer, [{
|
|
@@ -2812,9 +2930,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2812
2930
|
|
|
2813
2931
|
exports["default"] = RealityViewer;
|
|
2814
2932
|
}, {
|
|
2815
|
-
"./ar-viewer":
|
|
2933
|
+
"./ar-viewer": 17
|
|
2816
2934
|
}],
|
|
2817
|
-
|
|
2935
|
+
20: [function (require, module, exports) {
|
|
2818
2936
|
"use strict";
|
|
2819
2937
|
|
|
2820
2938
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2832,19 +2950,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2832
2950
|
var SceneViewer = /*#__PURE__*/function (_ar_viewer_1$default3) {
|
|
2833
2951
|
_inherits(SceneViewer, _ar_viewer_1$default3);
|
|
2834
2952
|
|
|
2835
|
-
var
|
|
2953
|
+
var _super13 = _createSuper(SceneViewer);
|
|
2836
2954
|
|
|
2837
2955
|
function SceneViewer() {
|
|
2838
|
-
var
|
|
2956
|
+
var _this37;
|
|
2839
2957
|
|
|
2840
2958
|
_classCallCheck(this, SceneViewer);
|
|
2841
2959
|
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
return
|
|
2960
|
+
_this37 = _super13.call(this);
|
|
2961
|
+
_this37.araction = null;
|
|
2962
|
+
_this37.isVertical = false;
|
|
2963
|
+
_this37.titleHTML = "<b>" + document.title;
|
|
2964
|
+
_this37.isVertical = false;
|
|
2965
|
+
return _this37;
|
|
2848
2966
|
}
|
|
2849
2967
|
|
|
2850
2968
|
_createClass(SceneViewer, [{
|
|
@@ -2901,9 +3019,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2901
3019
|
|
|
2902
3020
|
exports["default"] = SceneViewer;
|
|
2903
3021
|
}, {
|
|
2904
|
-
"./ar-viewer":
|
|
3022
|
+
"./ar-viewer": 17
|
|
2905
3023
|
}],
|
|
2906
|
-
|
|
3024
|
+
21: [function (require, module, exports) {
|
|
2907
3025
|
"use strict";
|
|
2908
3026
|
|
|
2909
3027
|
var Messenger = require("./messenger/messenger.js");
|
|
@@ -2939,12 +3057,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2939
3057
|
version: Version
|
|
2940
3058
|
};
|
|
2941
3059
|
}, {
|
|
2942
|
-
"./memory/memory.js":
|
|
2943
|
-
"./messenger/global-event-handler.js":
|
|
2944
|
-
"./messenger/messenger.js":
|
|
2945
|
-
"./version":
|
|
3060
|
+
"./memory/memory.js": 22,
|
|
3061
|
+
"./messenger/global-event-handler.js": 29,
|
|
3062
|
+
"./messenger/messenger.js": 30,
|
|
3063
|
+
"./version": 35
|
|
2946
3064
|
}],
|
|
2947
|
-
|
|
3065
|
+
22: [function (require, module, exports) {
|
|
2948
3066
|
var PermanentMemory = require("./permanent-memory");
|
|
2949
3067
|
|
|
2950
3068
|
var TemporaryMemory = require("./temporary-memory");
|
|
@@ -2956,7 +3074,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2956
3074
|
|
|
2957
3075
|
var Memory = /*#__PURE__*/function () {
|
|
2958
3076
|
function Memory(messengerInstance) {
|
|
2959
|
-
var
|
|
3077
|
+
var _this38 = this;
|
|
2960
3078
|
|
|
2961
3079
|
_classCallCheck(this, Memory);
|
|
2962
3080
|
|
|
@@ -2965,11 +3083,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2965
3083
|
this._permMemory = new PermanentMemory(messengerInstance);
|
|
2966
3084
|
|
|
2967
3085
|
this._messenger.self.__memory__set_temp_var = function (name, data) {
|
|
2968
|
-
|
|
3086
|
+
_this38._tempMemory[name] = data;
|
|
2969
3087
|
};
|
|
2970
3088
|
|
|
2971
3089
|
this._messenger.self.__memory__set_perm_var = function (name, data) {
|
|
2972
|
-
|
|
3090
|
+
_this38._permMemory[name] = data;
|
|
2973
3091
|
};
|
|
2974
3092
|
}
|
|
2975
3093
|
|
|
@@ -2990,10 +3108,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2990
3108
|
|
|
2991
3109
|
module.exports = Memory;
|
|
2992
3110
|
}, {
|
|
2993
|
-
"./permanent-memory":
|
|
2994
|
-
"./temporary-memory":
|
|
3111
|
+
"./permanent-memory": 23,
|
|
3112
|
+
"./temporary-memory": 24
|
|
2995
3113
|
}],
|
|
2996
|
-
|
|
3114
|
+
23: [function (require, module, exports) {
|
|
2997
3115
|
var WrappedValue = require("./wrapped-value");
|
|
2998
3116
|
|
|
2999
3117
|
var PermanentMemory = /*#__PURE__*/_createClass(function PermanentMemory(messengerInstance) {
|
|
@@ -3091,9 +3209,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3091
3209
|
|
|
3092
3210
|
module.exports = PermanentMemory;
|
|
3093
3211
|
}, {
|
|
3094
|
-
"./wrapped-value":
|
|
3212
|
+
"./wrapped-value": 25
|
|
3095
3213
|
}],
|
|
3096
|
-
|
|
3214
|
+
24: [function (require, module, exports) {
|
|
3097
3215
|
var WrappedValue = require("./wrapped-value");
|
|
3098
3216
|
|
|
3099
3217
|
var TemporaryMemory = /*#__PURE__*/_createClass(function TemporaryMemory(messengerInstance) {
|
|
@@ -3170,9 +3288,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3170
3288
|
|
|
3171
3289
|
module.exports = TemporaryMemory;
|
|
3172
3290
|
}, {
|
|
3173
|
-
"./wrapped-value":
|
|
3291
|
+
"./wrapped-value": 25
|
|
3174
3292
|
}],
|
|
3175
|
-
|
|
3293
|
+
25: [function (require, module, exports) {
|
|
3176
3294
|
/**
|
|
3177
3295
|
* WrappedValue represents a generic value type with a callback function
|
|
3178
3296
|
* for when the value has changed
|
|
@@ -3290,7 +3408,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3290
3408
|
|
|
3291
3409
|
module.exports = WrappedValue;
|
|
3292
3410
|
}, {}],
|
|
3293
|
-
|
|
3411
|
+
26: [function (require, module, exports) {
|
|
3294
3412
|
/**
|
|
3295
3413
|
* Broadcaster is used to call functions in multiple contexts at the
|
|
3296
3414
|
* same time. This can be useful without having to handle complex logic
|
|
@@ -3357,7 +3475,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3357
3475
|
|
|
3358
3476
|
module.exports = Broadcaster;
|
|
3359
3477
|
}, {}],
|
|
3360
|
-
|
|
3478
|
+
27: [function (require, module, exports) {
|
|
3361
3479
|
var WrappedFunction = require("./wrapped-local-function");
|
|
3362
3480
|
|
|
3363
3481
|
var CurrentFunctionList = /*#__PURE__*/_createClass(function CurrentFunctionList() {
|
|
@@ -3420,9 +3538,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3420
3538
|
|
|
3421
3539
|
module.exports = CurrentFunctionList;
|
|
3422
3540
|
}, {
|
|
3423
|
-
"./wrapped-local-function":
|
|
3541
|
+
"./wrapped-local-function": 28
|
|
3424
3542
|
}],
|
|
3425
|
-
|
|
3543
|
+
28: [function (require, module, exports) {
|
|
3426
3544
|
var Util = require("../util/util.js");
|
|
3427
3545
|
/**
|
|
3428
3546
|
* WrappedLocalFunction represents a container that holds and maintains a specific function
|
|
@@ -3467,20 +3585,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3467
3585
|
}, {
|
|
3468
3586
|
key: "exec",
|
|
3469
3587
|
value: function exec() {
|
|
3470
|
-
var
|
|
3588
|
+
var _this39 = this;
|
|
3471
3589
|
|
|
3472
3590
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
3473
3591
|
args[_key3] = arguments[_key3];
|
|
3474
3592
|
}
|
|
3475
3593
|
|
|
3476
3594
|
return new Promise(function (accept, reject) {
|
|
3477
|
-
if (!
|
|
3478
|
-
return reject(new Error("WrappedLocalFunction.exec() function with name " +
|
|
3595
|
+
if (!_this39._value) {
|
|
3596
|
+
return reject(new Error("WrappedLocalFunction.exec() function with name " + _this39._funcName + "() is not defined"));
|
|
3479
3597
|
}
|
|
3480
3598
|
|
|
3481
3599
|
try {
|
|
3482
3600
|
// otherwise execute the function
|
|
3483
|
-
var rObject =
|
|
3601
|
+
var rObject = _this39._execute.apply(_this39, args); // we need to check if the returned object is a Promise, if so, handle it
|
|
3484
3602
|
// differently. This can happen if the function wants to execute asyn
|
|
3485
3603
|
|
|
3486
3604
|
|
|
@@ -3532,9 +3650,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3532
3650
|
|
|
3533
3651
|
module.exports = WrappedLocalFunction;
|
|
3534
3652
|
}, {
|
|
3535
|
-
"../util/util.js":
|
|
3653
|
+
"../util/util.js": 34
|
|
3536
3654
|
}],
|
|
3537
|
-
|
|
3655
|
+
29: [function (require, module, exports) {
|
|
3538
3656
|
var RemoteInterface = require("./remote-interface.js");
|
|
3539
3657
|
/**
|
|
3540
3658
|
* This is a singleton class that handles events on a global basis. Allows
|
|
@@ -3544,7 +3662,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3544
3662
|
|
|
3545
3663
|
var GlobalEventHandler = /*#__PURE__*/function () {
|
|
3546
3664
|
function GlobalEventHandler() {
|
|
3547
|
-
var
|
|
3665
|
+
var _this40 = this;
|
|
3548
3666
|
|
|
3549
3667
|
_classCallCheck(this, GlobalEventHandler);
|
|
3550
3668
|
|
|
@@ -3566,10 +3684,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3566
3684
|
|
|
3567
3685
|
if (jsonData && jsonData.event && jsonData.data) {
|
|
3568
3686
|
// see if there are any listeners for this
|
|
3569
|
-
if (
|
|
3687
|
+
if (_this40._eventListeners[jsonData.event]) {
|
|
3570
3688
|
var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
|
|
3571
3689
|
|
|
3572
|
-
|
|
3690
|
+
_this40._eventListeners[jsonData.event].forEach(function (callback) {
|
|
3573
3691
|
try {
|
|
3574
3692
|
callback(remoteInterface, jsonData.data);
|
|
3575
3693
|
} catch (e) {
|
|
@@ -3626,9 +3744,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3626
3744
|
|
|
3627
3745
|
module.exports = GlobalEventHandler;
|
|
3628
3746
|
}, {
|
|
3629
|
-
"./remote-interface.js":
|
|
3747
|
+
"./remote-interface.js": 31
|
|
3630
3748
|
}],
|
|
3631
|
-
|
|
3749
|
+
30: [function (require, module, exports) {
|
|
3632
3750
|
var CurrentFunctionList = require("./current/current-function-list");
|
|
3633
3751
|
|
|
3634
3752
|
var RemoteInterface = require("./remote-interface");
|
|
@@ -3765,40 +3883,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3765
3883
|
}, {
|
|
3766
3884
|
key: "_registerListeners",
|
|
3767
3885
|
value: function _registerListeners() {
|
|
3768
|
-
var
|
|
3886
|
+
var _this41 = this;
|
|
3769
3887
|
|
|
3770
3888
|
GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
|
|
3771
3889
|
var iframeID = src.id; // check reserved key list
|
|
3772
3890
|
|
|
3773
3891
|
switch (iframeID) {
|
|
3774
3892
|
case undefined:
|
|
3775
|
-
throw new Error("Messenger[" +
|
|
3893
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID cannot be undefined");
|
|
3776
3894
|
|
|
3777
3895
|
case "self":
|
|
3778
|
-
throw new Error("Messenger[" +
|
|
3896
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
3779
3897
|
|
|
3780
3898
|
case "parent":
|
|
3781
|
-
throw new Error("Messenger[" +
|
|
3899
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
3782
3900
|
|
|
3783
3901
|
case "id":
|
|
3784
|
-
throw new Error("Messenger[" +
|
|
3902
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
3785
3903
|
|
|
3786
3904
|
case "onload":
|
|
3787
|
-
throw new Error("Messenger[" +
|
|
3905
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
3788
3906
|
|
|
3789
3907
|
default:
|
|
3790
3908
|
break;
|
|
3791
3909
|
} // initialise the child iframe as a messenger pipe
|
|
3792
3910
|
|
|
3793
3911
|
|
|
3794
|
-
|
|
3912
|
+
_this41[iframeID] = new RemoteFunctionList(iframeID);
|
|
3795
3913
|
|
|
3796
|
-
|
|
3914
|
+
_this41[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
3797
3915
|
|
|
3798
3916
|
|
|
3799
|
-
|
|
3917
|
+
_this41._broadcaster._push(iframeID);
|
|
3800
3918
|
|
|
3801
|
-
var callbacks =
|
|
3919
|
+
var callbacks = _this41._callbacks; // we have registered callbacks, begin execution
|
|
3802
3920
|
|
|
3803
3921
|
if (callbacks.has(iframeID)) {
|
|
3804
3922
|
var array = callbacks.get(iframeID);
|
|
@@ -3822,33 +3940,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3822
3940
|
|
|
3823
3941
|
switch (iframeID) {
|
|
3824
3942
|
case undefined:
|
|
3825
|
-
throw new Error("Messenger[" +
|
|
3943
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID cannot be undefined");
|
|
3826
3944
|
|
|
3827
3945
|
case "self":
|
|
3828
|
-
throw new Error("Messenger[" +
|
|
3946
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
3829
3947
|
|
|
3830
3948
|
case "parent":
|
|
3831
|
-
throw new Error("Messenger[" +
|
|
3949
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
3832
3950
|
|
|
3833
3951
|
case "id":
|
|
3834
|
-
throw new Error("Messenger[" +
|
|
3952
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
3835
3953
|
|
|
3836
3954
|
case "onload":
|
|
3837
|
-
throw new Error("Messenger[" +
|
|
3955
|
+
throw new Error("Messenger[" + _this41._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
3838
3956
|
|
|
3839
3957
|
default:
|
|
3840
3958
|
break;
|
|
3841
3959
|
} // initialise the child iframe as a messenger pipe
|
|
3842
3960
|
|
|
3843
3961
|
|
|
3844
|
-
|
|
3962
|
+
_this41[iframeID] = new RemoteFunctionList(iframeID);
|
|
3845
3963
|
|
|
3846
|
-
|
|
3964
|
+
_this41[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
3847
3965
|
|
|
3848
3966
|
|
|
3849
|
-
|
|
3967
|
+
_this41._broadcaster._push(iframeID);
|
|
3850
3968
|
|
|
3851
|
-
var callbacks =
|
|
3969
|
+
var callbacks = _this41._callbacks; // we have registered callbacks, begin execution
|
|
3852
3970
|
|
|
3853
3971
|
if (callbacks.has(iframeID)) {
|
|
3854
3972
|
var array = callbacks.get(iframeID);
|
|
@@ -3868,11 +3986,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3868
3986
|
});
|
|
3869
3987
|
GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
|
|
3870
3988
|
var iframeID = "parent";
|
|
3871
|
-
|
|
3989
|
+
_this41[iframeID] = new RemoteFunctionList(iframeID);
|
|
3872
3990
|
|
|
3873
|
-
|
|
3991
|
+
_this41[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
3874
3992
|
|
|
3875
|
-
var callbacks =
|
|
3993
|
+
var callbacks = _this41._callbacks; // we have registered callbacks, begin execution
|
|
3876
3994
|
|
|
3877
3995
|
if (callbacks.has(iframeID)) {
|
|
3878
3996
|
var array = callbacks.get(iframeID);
|
|
@@ -3897,11 +4015,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3897
4015
|
|
|
3898
4016
|
GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
|
|
3899
4017
|
var iframeID = "parent";
|
|
3900
|
-
|
|
4018
|
+
_this41[iframeID] = new RemoteFunctionList(iframeID);
|
|
3901
4019
|
|
|
3902
|
-
|
|
4020
|
+
_this41[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
3903
4021
|
|
|
3904
|
-
var callbacks =
|
|
4022
|
+
var callbacks = _this41._callbacks; // we have registered callbacks, begin execution
|
|
3905
4023
|
|
|
3906
4024
|
if (callbacks.has(iframeID)) {
|
|
3907
4025
|
var array = callbacks.get(iframeID);
|
|
@@ -3957,14 +4075,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3957
4075
|
|
|
3958
4076
|
module.exports = Messenger;
|
|
3959
4077
|
}, {
|
|
3960
|
-
"./broadcaster.js":
|
|
3961
|
-
"./current/current-function-list":
|
|
3962
|
-
"./global-event-handler.js":
|
|
3963
|
-
"./remote-interface":
|
|
3964
|
-
"./remote/remote-function-list":
|
|
3965
|
-
"./util/util.js":
|
|
4078
|
+
"./broadcaster.js": 26,
|
|
4079
|
+
"./current/current-function-list": 27,
|
|
4080
|
+
"./global-event-handler.js": 29,
|
|
4081
|
+
"./remote-interface": 31,
|
|
4082
|
+
"./remote/remote-function-list": 32,
|
|
4083
|
+
"./util/util.js": 34
|
|
3966
4084
|
}],
|
|
3967
|
-
|
|
4085
|
+
31: [function (require, module, exports) {
|
|
3968
4086
|
/**
|
|
3969
4087
|
* Provides a single useful interface for performing remote function calls
|
|
3970
4088
|
*/
|
|
@@ -4036,7 +4154,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4036
4154
|
|
|
4037
4155
|
module.exports = RemoteInterface;
|
|
4038
4156
|
}, {}],
|
|
4039
|
-
|
|
4157
|
+
32: [function (require, module, exports) {
|
|
4040
4158
|
var WrappedFunction = require("./wrapped-remote-function");
|
|
4041
4159
|
|
|
4042
4160
|
var RemoteFunctionList = /*#__PURE__*/function () {
|
|
@@ -4124,9 +4242,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4124
4242
|
|
|
4125
4243
|
module.exports = RemoteFunctionList;
|
|
4126
4244
|
}, {
|
|
4127
|
-
"./wrapped-remote-function":
|
|
4245
|
+
"./wrapped-remote-function": 33
|
|
4128
4246
|
}],
|
|
4129
|
-
|
|
4247
|
+
33: [function (require, module, exports) {
|
|
4130
4248
|
var Util = require("../util/util.js");
|
|
4131
4249
|
|
|
4132
4250
|
var GlobalEventHandler = require("../global-event-handler.js");
|
|
@@ -4139,7 +4257,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4139
4257
|
|
|
4140
4258
|
var WrappedRemoteFunction = /*#__PURE__*/function () {
|
|
4141
4259
|
function WrappedRemoteFunction(funcName, remoteInterface) {
|
|
4142
|
-
var
|
|
4260
|
+
var _this42 = this;
|
|
4143
4261
|
|
|
4144
4262
|
_classCallCheck(this, WrappedRemoteFunction);
|
|
4145
4263
|
|
|
@@ -4150,19 +4268,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4150
4268
|
GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
|
|
4151
4269
|
var instanceID = data.instance_id; // the function name must match
|
|
4152
4270
|
|
|
4153
|
-
if (data.function_name !==
|
|
4271
|
+
if (data.function_name !== _this42._funcName) {
|
|
4154
4272
|
return;
|
|
4155
4273
|
} // the instance ID must be found, otherwise this is a rogue execution
|
|
4156
4274
|
// that can be ignored (should not happen)
|
|
4157
4275
|
|
|
4158
4276
|
|
|
4159
|
-
if (!
|
|
4277
|
+
if (!_this42._callInstances[instanceID]) {
|
|
4160
4278
|
return;
|
|
4161
4279
|
}
|
|
4162
4280
|
|
|
4163
|
-
var promise =
|
|
4281
|
+
var promise = _this42._callInstances[instanceID]; // remove the old instance
|
|
4164
4282
|
|
|
4165
|
-
delete
|
|
4283
|
+
delete _this42._callInstances[instanceID]; // perform the promise callbacks
|
|
4166
4284
|
|
|
4167
4285
|
if (data.function_status === "success") {
|
|
4168
4286
|
promise.accept(data.function_args);
|
|
@@ -4179,7 +4297,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4179
4297
|
_createClass(WrappedRemoteFunction, [{
|
|
4180
4298
|
key: "exec",
|
|
4181
4299
|
value: function exec() {
|
|
4182
|
-
var
|
|
4300
|
+
var _this43 = this;
|
|
4183
4301
|
|
|
4184
4302
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
4185
4303
|
args[_key4] = arguments[_key4];
|
|
@@ -4199,14 +4317,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4199
4317
|
|
|
4200
4318
|
return new Promise(function (accept, reject) {
|
|
4201
4319
|
// save this promise to be executed later
|
|
4202
|
-
|
|
4320
|
+
_this43._callInstances[instanceID] = {
|
|
4203
4321
|
accept: accept,
|
|
4204
4322
|
reject: reject
|
|
4205
4323
|
}; // execute this event in another context
|
|
4206
4324
|
|
|
4207
|
-
|
|
4325
|
+
_this43._remoteInterface.send("__messenger__exec_fnc", {
|
|
4208
4326
|
instance_id: instanceID,
|
|
4209
|
-
function_name:
|
|
4327
|
+
function_name: _this43._funcName,
|
|
4210
4328
|
function_args: args
|
|
4211
4329
|
});
|
|
4212
4330
|
});
|
|
@@ -4218,10 +4336,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4218
4336
|
|
|
4219
4337
|
module.exports = WrappedRemoteFunction;
|
|
4220
4338
|
}, {
|
|
4221
|
-
"../global-event-handler.js":
|
|
4222
|
-
"../util/util.js":
|
|
4339
|
+
"../global-event-handler.js": 29,
|
|
4340
|
+
"../util/util.js": 34
|
|
4223
4341
|
}],
|
|
4224
|
-
|
|
4342
|
+
34: [function (require, module, exports) {
|
|
4225
4343
|
var Util = /*#__PURE__*/function () {
|
|
4226
4344
|
function Util() {
|
|
4227
4345
|
_classCallCheck(this, Util);
|
|
@@ -4261,10 +4379,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4261
4379
|
|
|
4262
4380
|
module.exports = Util;
|
|
4263
4381
|
}, {}],
|
|
4264
|
-
|
|
4382
|
+
35: [function (require, module, exports) {
|
|
4265
4383
|
module.exports = "1.113.6";
|
|
4266
4384
|
}, {}],
|
|
4267
|
-
|
|
4385
|
+
36: [function (require, module, exports) {
|
|
4268
4386
|
"use strict";
|
|
4269
4387
|
|
|
4270
4388
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4333,9 +4451,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4333
4451
|
|
|
4334
4452
|
exports.AnalyticsData = AnalyticsData;
|
|
4335
4453
|
}, {
|
|
4336
|
-
"../util/util":
|
|
4454
|
+
"../util/util": 40
|
|
4337
4455
|
}],
|
|
4338
|
-
|
|
4456
|
+
37: [function (require, module, exports) {
|
|
4339
4457
|
"use strict";
|
|
4340
4458
|
|
|
4341
4459
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -4355,7 +4473,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4355
4473
|
|
|
4356
4474
|
var Analytics = /*#__PURE__*/function () {
|
|
4357
4475
|
function Analytics(applicationID) {
|
|
4358
|
-
var
|
|
4476
|
+
var _this44 = this;
|
|
4359
4477
|
|
|
4360
4478
|
_classCallCheck(this, Analytics);
|
|
4361
4479
|
|
|
@@ -4372,21 +4490,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4372
4490
|
|
|
4373
4491
|
this._handlePageHide = function () {
|
|
4374
4492
|
if (document.visibilityState === "hidden") {
|
|
4375
|
-
|
|
4376
|
-
} else if (
|
|
4493
|
+
_this44._pageTime = new Date();
|
|
4494
|
+
} else if (_this44._pageTime) {
|
|
4377
4495
|
var time2 = new Date();
|
|
4378
4496
|
|
|
4379
|
-
var diff = time2.getTime() -
|
|
4497
|
+
var diff = time2.getTime() - _this44._pageTime.getTime();
|
|
4380
4498
|
|
|
4381
|
-
var data =
|
|
4499
|
+
var data = _this44.data;
|
|
4382
4500
|
data.push("eventAction", "View Time");
|
|
4383
4501
|
data.push("viewTime", diff);
|
|
4384
4502
|
data.push("eventLabel", diff);
|
|
4385
4503
|
|
|
4386
|
-
|
|
4504
|
+
_this44.write();
|
|
4387
4505
|
|
|
4388
|
-
|
|
4389
|
-
document.removeEventListener("visibilitychange",
|
|
4506
|
+
_this44._pageTime = null;
|
|
4507
|
+
document.removeEventListener("visibilitychange", _this44._handlePageHide, false);
|
|
4390
4508
|
}
|
|
4391
4509
|
};
|
|
4392
4510
|
}
|
|
@@ -4394,7 +4512,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4394
4512
|
_createClass(Analytics, [{
|
|
4395
4513
|
key: "query",
|
|
4396
4514
|
value: function query() {
|
|
4397
|
-
var
|
|
4515
|
+
var _this45 = this;
|
|
4398
4516
|
|
|
4399
4517
|
var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
4400
4518
|
|
|
@@ -4403,11 +4521,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4403
4521
|
return reject(new Error("Analytics.query() - provided query was null"));
|
|
4404
4522
|
}
|
|
4405
4523
|
|
|
4406
|
-
var url =
|
|
4524
|
+
var url = _this45.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
4407
4525
|
var data = {
|
|
4408
4526
|
type: "read",
|
|
4409
|
-
application_id:
|
|
4410
|
-
event:
|
|
4527
|
+
application_id: _this45._applicationID,
|
|
4528
|
+
event: _this45.event,
|
|
4411
4529
|
data: _query
|
|
4412
4530
|
};
|
|
4413
4531
|
basic_http_1["default"].exec("POST", url, data).then(function (result) {
|
|
@@ -4418,21 +4536,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4418
4536
|
}, {
|
|
4419
4537
|
key: "write",
|
|
4420
4538
|
value: function write() {
|
|
4421
|
-
var
|
|
4539
|
+
var _this46 = this;
|
|
4422
4540
|
|
|
4423
4541
|
return new Promise(function (accept, reject) {
|
|
4424
|
-
var data =
|
|
4425
|
-
var url =
|
|
4426
|
-
data.push("applicationId",
|
|
4542
|
+
var data = _this46._data;
|
|
4543
|
+
var url = _this46.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
4544
|
+
data.push("applicationId", _this46._applicationID);
|
|
4427
4545
|
var sendData = {
|
|
4428
4546
|
type: "write",
|
|
4429
|
-
application_id:
|
|
4430
|
-
origin:
|
|
4431
|
-
event:
|
|
4547
|
+
application_id: _this46._applicationID,
|
|
4548
|
+
origin: _this46.origin,
|
|
4549
|
+
event: _this46.event,
|
|
4432
4550
|
data: data.data
|
|
4433
4551
|
};
|
|
4434
4552
|
|
|
4435
|
-
if (
|
|
4553
|
+
if (_this46.isBeacon === false) {
|
|
4436
4554
|
basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
|
|
4437
4555
|
accept(result && result.results ? result.results : {});
|
|
4438
4556
|
})["catch"](reject);
|
|
@@ -4460,10 +4578,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4460
4578
|
|
|
4461
4579
|
exports.Analytics = Analytics;
|
|
4462
4580
|
}, {
|
|
4463
|
-
"../util/basic-http":
|
|
4464
|
-
"./analytics-data":
|
|
4581
|
+
"../util/basic-http": 39,
|
|
4582
|
+
"./analytics-data": 36
|
|
4465
4583
|
}],
|
|
4466
|
-
|
|
4584
|
+
38: [function (require, module, exports) {
|
|
4467
4585
|
"use strict";
|
|
4468
4586
|
|
|
4469
4587
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -4525,10 +4643,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4525
4643
|
|
|
4526
4644
|
console.log("using @plattar/plattar-analytics v" + version_1["default"]);
|
|
4527
4645
|
}, {
|
|
4528
|
-
"./analytics/analytics":
|
|
4529
|
-
"./version":
|
|
4646
|
+
"./analytics/analytics": 37,
|
|
4647
|
+
"./version": 41
|
|
4530
4648
|
}],
|
|
4531
|
-
|
|
4649
|
+
39: [function (require, module, exports) {
|
|
4532
4650
|
"use strict";
|
|
4533
4651
|
|
|
4534
4652
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4614,7 +4732,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4614
4732
|
|
|
4615
4733
|
exports["default"] = BasicHTTP;
|
|
4616
4734
|
}, {}],
|
|
4617
|
-
|
|
4735
|
+
40: [function (require, module, exports) {
|
|
4618
4736
|
"use strict";
|
|
4619
4737
|
|
|
4620
4738
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4653,7 +4771,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4653
4771
|
|
|
4654
4772
|
exports.Util = Util;
|
|
4655
4773
|
}, {}],
|
|
4656
|
-
|
|
4774
|
+
41: [function (require, module, exports) {
|
|
4657
4775
|
"use strict";
|
|
4658
4776
|
|
|
4659
4777
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4661,7 +4779,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4661
4779
|
});
|
|
4662
4780
|
exports["default"] = "1.117.2";
|
|
4663
4781
|
}, {}],
|
|
4664
|
-
|
|
4782
|
+
42: [function (require, module, exports) {
|
|
4665
4783
|
"use strict";
|
|
4666
4784
|
|
|
4667
4785
|
var Server = require("./server/plattar-server.js");
|
|
@@ -4864,67 +4982,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4864
4982
|
version: Version
|
|
4865
4983
|
};
|
|
4866
4984
|
}, {
|
|
4867
|
-
"./server/plattar-server.js":
|
|
4868
|
-
"./types/application.js":
|
|
4869
|
-
"./types/content-pipeline/brief.js":
|
|
4870
|
-
"./types/content-pipeline/comment-brief.js":
|
|
4871
|
-
"./types/content-pipeline/comment-quote.js":
|
|
4872
|
-
"./types/content-pipeline/comment-solution.js":
|
|
4873
|
-
"./types/content-pipeline/folder.js":
|
|
4874
|
-
"./types/content-pipeline/pipeline-user.js":
|
|
4875
|
-
"./types/content-pipeline/quote.js":
|
|
4876
|
-
"./types/content-pipeline/rating.js":
|
|
4877
|
-
"./types/content-pipeline/solution.js":
|
|
4878
|
-
"./types/file/file-audio.js":
|
|
4879
|
-
"./types/file/file-base.js":
|
|
4880
|
-
"./types/file/file-image.js":
|
|
4881
|
-
"./types/file/file-model.js":
|
|
4882
|
-
"./types/file/file-script.js":
|
|
4883
|
-
"./types/file/file-video.js":
|
|
4884
|
-
"./types/misc/application-build.js":
|
|
4885
|
-
"./types/misc/asset-library.js":
|
|
4886
|
-
"./types/misc/async-job.js":
|
|
4887
|
-
"./types/misc/script-event.js":
|
|
4888
|
-
"./types/misc/tag.js":
|
|
4889
|
-
"./types/page/card-base.js":
|
|
4890
|
-
"./types/page/card-button.js":
|
|
4891
|
-
"./types/page/card-html.js":
|
|
4892
|
-
"./types/page/card-iframe.js":
|
|
4893
|
-
"./types/page/card-image.js":
|
|
4894
|
-
"./types/page/card-map.js":
|
|
4895
|
-
"./types/page/card-paragraph.js":
|
|
4896
|
-
"./types/page/card-row.js":
|
|
4897
|
-
"./types/page/card-slider.js":
|
|
4898
|
-
"./types/page/card-title.js":
|
|
4899
|
-
"./types/page/card-video.js":
|
|
4900
|
-
"./types/page/card-youtube.js":
|
|
4901
|
-
"./types/page/page.js":
|
|
4902
|
-
"./types/product/product-annotation.js":
|
|
4903
|
-
"./types/product/product-base.js":
|
|
4904
|
-
"./types/product/product-variation.js":
|
|
4905
|
-
"./types/product/product.js":
|
|
4906
|
-
"./types/scene/scene-annotation.js":
|
|
4907
|
-
"./types/scene/scene-audio.js":
|
|
4908
|
-
"./types/scene/scene-base.js":
|
|
4909
|
-
"./types/scene/scene-button.js":
|
|
4910
|
-
"./types/scene/scene-camera.js":
|
|
4911
|
-
"./types/scene/scene-carousel.js":
|
|
4912
|
-
"./types/scene/scene-image.js":
|
|
4913
|
-
"./types/scene/scene-model.js":
|
|
4914
|
-
"./types/scene/scene-panorama.js":
|
|
4915
|
-
"./types/scene/scene-poller.js":
|
|
4916
|
-
"./types/scene/scene-product.js":
|
|
4917
|
-
"./types/scene/scene-script.js":
|
|
4918
|
-
"./types/scene/scene-shadow.js":
|
|
4919
|
-
"./types/scene/scene-video.js":
|
|
4920
|
-
"./types/scene/scene-volumetric.js":
|
|
4921
|
-
"./types/scene/scene-youtube.js":
|
|
4922
|
-
"./types/scene/scene.js":
|
|
4923
|
-
"./types/trigger/trigger-image.js":
|
|
4924
|
-
"./util/plattar-util.js":
|
|
4925
|
-
"./version":
|
|
4985
|
+
"./server/plattar-server.js": 44,
|
|
4986
|
+
"./types/application.js": 45,
|
|
4987
|
+
"./types/content-pipeline/brief.js": 46,
|
|
4988
|
+
"./types/content-pipeline/comment-brief.js": 47,
|
|
4989
|
+
"./types/content-pipeline/comment-quote.js": 48,
|
|
4990
|
+
"./types/content-pipeline/comment-solution.js": 49,
|
|
4991
|
+
"./types/content-pipeline/folder.js": 50,
|
|
4992
|
+
"./types/content-pipeline/pipeline-user.js": 51,
|
|
4993
|
+
"./types/content-pipeline/quote.js": 52,
|
|
4994
|
+
"./types/content-pipeline/rating.js": 53,
|
|
4995
|
+
"./types/content-pipeline/solution.js": 54,
|
|
4996
|
+
"./types/file/file-audio.js": 55,
|
|
4997
|
+
"./types/file/file-base.js": 56,
|
|
4998
|
+
"./types/file/file-image.js": 57,
|
|
4999
|
+
"./types/file/file-model.js": 58,
|
|
5000
|
+
"./types/file/file-script.js": 59,
|
|
5001
|
+
"./types/file/file-video.js": 60,
|
|
5002
|
+
"./types/misc/application-build.js": 64,
|
|
5003
|
+
"./types/misc/asset-library.js": 65,
|
|
5004
|
+
"./types/misc/async-job.js": 66,
|
|
5005
|
+
"./types/misc/script-event.js": 67,
|
|
5006
|
+
"./types/misc/tag.js": 68,
|
|
5007
|
+
"./types/page/card-base.js": 69,
|
|
5008
|
+
"./types/page/card-button.js": 70,
|
|
5009
|
+
"./types/page/card-html.js": 71,
|
|
5010
|
+
"./types/page/card-iframe.js": 72,
|
|
5011
|
+
"./types/page/card-image.js": 73,
|
|
5012
|
+
"./types/page/card-map.js": 74,
|
|
5013
|
+
"./types/page/card-paragraph.js": 75,
|
|
5014
|
+
"./types/page/card-row.js": 76,
|
|
5015
|
+
"./types/page/card-slider.js": 77,
|
|
5016
|
+
"./types/page/card-title.js": 78,
|
|
5017
|
+
"./types/page/card-video.js": 79,
|
|
5018
|
+
"./types/page/card-youtube.js": 80,
|
|
5019
|
+
"./types/page/page.js": 81,
|
|
5020
|
+
"./types/product/product-annotation.js": 82,
|
|
5021
|
+
"./types/product/product-base.js": 83,
|
|
5022
|
+
"./types/product/product-variation.js": 84,
|
|
5023
|
+
"./types/product/product.js": 85,
|
|
5024
|
+
"./types/scene/scene-annotation.js": 86,
|
|
5025
|
+
"./types/scene/scene-audio.js": 87,
|
|
5026
|
+
"./types/scene/scene-base.js": 88,
|
|
5027
|
+
"./types/scene/scene-button.js": 89,
|
|
5028
|
+
"./types/scene/scene-camera.js": 90,
|
|
5029
|
+
"./types/scene/scene-carousel.js": 91,
|
|
5030
|
+
"./types/scene/scene-image.js": 92,
|
|
5031
|
+
"./types/scene/scene-model.js": 93,
|
|
5032
|
+
"./types/scene/scene-panorama.js": 94,
|
|
5033
|
+
"./types/scene/scene-poller.js": 95,
|
|
5034
|
+
"./types/scene/scene-product.js": 96,
|
|
5035
|
+
"./types/scene/scene-script.js": 97,
|
|
5036
|
+
"./types/scene/scene-shadow.js": 98,
|
|
5037
|
+
"./types/scene/scene-video.js": 99,
|
|
5038
|
+
"./types/scene/scene-volumetric.js": 100,
|
|
5039
|
+
"./types/scene/scene-youtube.js": 101,
|
|
5040
|
+
"./types/scene/scene.js": 102,
|
|
5041
|
+
"./types/trigger/trigger-image.js": 103,
|
|
5042
|
+
"./util/plattar-util.js": 104,
|
|
5043
|
+
"./version": 105
|
|
4926
5044
|
}],
|
|
4927
|
-
|
|
5045
|
+
43: [function (require, module, exports) {
|
|
4928
5046
|
var fetch = require("node-fetch");
|
|
4929
5047
|
|
|
4930
5048
|
var PlattarQuery = /*#__PURE__*/function () {
|
|
@@ -4983,11 +5101,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4983
5101
|
}, {
|
|
4984
5102
|
key: "_get",
|
|
4985
5103
|
value: function _get(opt) {
|
|
4986
|
-
var
|
|
5104
|
+
var _this47 = this;
|
|
4987
5105
|
|
|
4988
5106
|
return new Promise(function (resolve, reject) {
|
|
4989
|
-
var target =
|
|
4990
|
-
var server =
|
|
5107
|
+
var target = _this47.target;
|
|
5108
|
+
var server = _this47.server; // we cannot perform a GET request without an ID
|
|
4991
5109
|
|
|
4992
5110
|
if (!target.id) {
|
|
4993
5111
|
reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
|
|
@@ -5012,16 +5130,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5012
5130
|
var origin = server.originLocation.api_read;
|
|
5013
5131
|
var auth = server.authToken;
|
|
5014
5132
|
var headers = {
|
|
5015
|
-
'cookie': 'laravel_session=' +
|
|
5133
|
+
'cookie': 'laravel_session=' + _this47.getCookie('laravel_session')
|
|
5016
5134
|
};
|
|
5017
5135
|
Object.assign(headers, auth);
|
|
5018
5136
|
var reqopts = {
|
|
5019
5137
|
method: "GET",
|
|
5020
5138
|
headers: headers
|
|
5021
5139
|
};
|
|
5022
|
-
var includeQuery =
|
|
5140
|
+
var includeQuery = _this47._IncludeQuery;
|
|
5023
5141
|
|
|
5024
|
-
var params =
|
|
5142
|
+
var params = _this47._ParamFor("get");
|
|
5025
5143
|
|
|
5026
5144
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
5027
5145
|
|
|
@@ -5062,11 +5180,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5062
5180
|
}, {
|
|
5063
5181
|
key: "_update",
|
|
5064
5182
|
value: function _update() {
|
|
5065
|
-
var
|
|
5183
|
+
var _this48 = this;
|
|
5066
5184
|
|
|
5067
5185
|
return new Promise(function (resolve, reject) {
|
|
5068
|
-
var target =
|
|
5069
|
-
var server =
|
|
5186
|
+
var target = _this48.target;
|
|
5187
|
+
var server = _this48.server; // we cannot perform a GET request without an ID
|
|
5070
5188
|
|
|
5071
5189
|
if (!target.id) {
|
|
5072
5190
|
reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
|
|
@@ -5079,7 +5197,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5079
5197
|
var headers = {
|
|
5080
5198
|
'Accept': 'application/json',
|
|
5081
5199
|
'Content-Type': 'application/json',
|
|
5082
|
-
'cookie': 'laravel_session=' +
|
|
5200
|
+
'cookie': 'laravel_session=' + _this48.getCookie('laravel_session')
|
|
5083
5201
|
};
|
|
5084
5202
|
Object.assign(headers, auth);
|
|
5085
5203
|
var reqopts = {
|
|
@@ -5094,7 +5212,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5094
5212
|
})
|
|
5095
5213
|
};
|
|
5096
5214
|
|
|
5097
|
-
var params =
|
|
5215
|
+
var params = _this48._ParamFor("update");
|
|
5098
5216
|
|
|
5099
5217
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
5100
5218
|
|
|
@@ -5136,18 +5254,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5136
5254
|
}, {
|
|
5137
5255
|
key: "_create",
|
|
5138
5256
|
value: function _create() {
|
|
5139
|
-
var
|
|
5257
|
+
var _this49 = this;
|
|
5140
5258
|
|
|
5141
5259
|
return new Promise(function (resolve, reject) {
|
|
5142
|
-
var target =
|
|
5143
|
-
var server =
|
|
5260
|
+
var target = _this49.target;
|
|
5261
|
+
var server = _this49.server; // otherwise, proceed with the fetching op
|
|
5144
5262
|
|
|
5145
5263
|
var origin = server.originLocation.api_write;
|
|
5146
5264
|
var auth = server.authToken;
|
|
5147
5265
|
var headers = {
|
|
5148
5266
|
'Accept': 'application/json',
|
|
5149
5267
|
'Content-Type': 'application/json',
|
|
5150
|
-
'cookie': 'laravel_session=' +
|
|
5268
|
+
'cookie': 'laravel_session=' + _this49.getCookie('laravel_session')
|
|
5151
5269
|
};
|
|
5152
5270
|
Object.assign(headers, auth);
|
|
5153
5271
|
var reqopts = {
|
|
@@ -5161,7 +5279,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5161
5279
|
})
|
|
5162
5280
|
};
|
|
5163
5281
|
|
|
5164
|
-
var params =
|
|
5282
|
+
var params = _this49._ParamFor("create");
|
|
5165
5283
|
|
|
5166
5284
|
var endpoint = origin + target.type();
|
|
5167
5285
|
|
|
@@ -5205,11 +5323,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5205
5323
|
}, {
|
|
5206
5324
|
key: "_delete",
|
|
5207
5325
|
value: function _delete() {
|
|
5208
|
-
var
|
|
5326
|
+
var _this50 = this;
|
|
5209
5327
|
|
|
5210
5328
|
return new Promise(function (resolve, reject) {
|
|
5211
|
-
var target =
|
|
5212
|
-
var server =
|
|
5329
|
+
var target = _this50.target;
|
|
5330
|
+
var server = _this50.server; // we cannot perform a GET request without an ID
|
|
5213
5331
|
|
|
5214
5332
|
if (!target.id) {
|
|
5215
5333
|
reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
|
|
@@ -5222,7 +5340,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5222
5340
|
var headers = {
|
|
5223
5341
|
'Accept': 'application/json',
|
|
5224
5342
|
'Content-Type': 'application/json',
|
|
5225
|
-
'cookie': 'laravel_session=' +
|
|
5343
|
+
'cookie': 'laravel_session=' + _this50.getCookie('laravel_session')
|
|
5226
5344
|
};
|
|
5227
5345
|
Object.assign(headers, auth);
|
|
5228
5346
|
var reqopts = {
|
|
@@ -5237,7 +5355,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5237
5355
|
})
|
|
5238
5356
|
};
|
|
5239
5357
|
|
|
5240
|
-
var params =
|
|
5358
|
+
var params = _this50._ParamFor("delete");
|
|
5241
5359
|
|
|
5242
5360
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
5243
5361
|
|
|
@@ -5300,7 +5418,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5300
5418
|
}, {
|
|
5301
5419
|
key: "_include",
|
|
5302
5420
|
value: function _include(args) {
|
|
5303
|
-
var
|
|
5421
|
+
var _this51 = this;
|
|
5304
5422
|
|
|
5305
5423
|
if (!args || args.length <= 0) {
|
|
5306
5424
|
return this;
|
|
@@ -5313,21 +5431,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5313
5431
|
if (Array.isArray(obj)) {
|
|
5314
5432
|
obj.forEach(function (strObject) {
|
|
5315
5433
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
5316
|
-
|
|
5434
|
+
_this51._getIncludeQuery.push(strObject);
|
|
5317
5435
|
} else {
|
|
5318
|
-
throw new Error("PlattarQuery." +
|
|
5436
|
+
throw new Error("PlattarQuery." + _this51.target.type() + ".include(...args) - argument of Array must only include Strings");
|
|
5319
5437
|
}
|
|
5320
5438
|
});
|
|
5321
5439
|
} else if (PlattarUtil.isPlattarObject(obj)) {
|
|
5322
5440
|
var type = obj.type();
|
|
5323
5441
|
|
|
5324
5442
|
if (Array.isArray(type)) {
|
|
5325
|
-
|
|
5443
|
+
_this51._include(type);
|
|
5326
5444
|
} else {
|
|
5327
|
-
|
|
5445
|
+
_this51._getIncludeQuery.push(type);
|
|
5328
5446
|
}
|
|
5329
5447
|
} else {
|
|
5330
|
-
throw new Error("PlattarQuery." +
|
|
5448
|
+
throw new Error("PlattarQuery." + _this51.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
5331
5449
|
}
|
|
5332
5450
|
});
|
|
5333
5451
|
return this;
|
|
@@ -5408,10 +5526,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5408
5526
|
|
|
5409
5527
|
module.exports = PlattarQuery;
|
|
5410
5528
|
}, {
|
|
5411
|
-
"../util/plattar-util.js":
|
|
5412
|
-
"node-fetch":
|
|
5529
|
+
"../util/plattar-util.js": 104,
|
|
5530
|
+
"node-fetch": 130
|
|
5413
5531
|
}],
|
|
5414
|
-
|
|
5532
|
+
44: [function (require, module, exports) {
|
|
5415
5533
|
(function (process) {
|
|
5416
5534
|
(function () {
|
|
5417
5535
|
var fetch = require("node-fetch");
|
|
@@ -5467,13 +5585,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5467
5585
|
}, {
|
|
5468
5586
|
key: "auth",
|
|
5469
5587
|
value: function auth(token, opt) {
|
|
5470
|
-
var
|
|
5588
|
+
var _this52 = this;
|
|
5471
5589
|
|
|
5472
5590
|
var copt = opt || {
|
|
5473
5591
|
validate: false
|
|
5474
5592
|
};
|
|
5475
5593
|
return new Promise(function (resolve, reject) {
|
|
5476
|
-
var server =
|
|
5594
|
+
var server = _this52.originLocation.api_write;
|
|
5477
5595
|
|
|
5478
5596
|
if (!server) {
|
|
5479
5597
|
reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
|
|
@@ -5486,10 +5604,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5486
5604
|
}
|
|
5487
5605
|
|
|
5488
5606
|
if (!copt.validate) {
|
|
5489
|
-
|
|
5607
|
+
_this52._authToken = {
|
|
5490
5608
|
"plattar-auth-token": token
|
|
5491
5609
|
};
|
|
5492
|
-
resolve(
|
|
5610
|
+
resolve(_this52);
|
|
5493
5611
|
return;
|
|
5494
5612
|
}
|
|
5495
5613
|
|
|
@@ -5502,10 +5620,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5502
5620
|
};
|
|
5503
5621
|
fetch(endpoint, options).then(function (res) {
|
|
5504
5622
|
if (res.ok) {
|
|
5505
|
-
|
|
5623
|
+
_this52._authToken = {
|
|
5506
5624
|
"plattar-auth-token": token
|
|
5507
5625
|
};
|
|
5508
|
-
resolve(
|
|
5626
|
+
resolve(_this52);
|
|
5509
5627
|
} else {
|
|
5510
5628
|
reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
|
|
5511
5629
|
}
|
|
@@ -5515,7 +5633,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5515
5633
|
}, {
|
|
5516
5634
|
key: "origin",
|
|
5517
5635
|
value: function origin(server, opt) {
|
|
5518
|
-
var
|
|
5636
|
+
var _this53 = this;
|
|
5519
5637
|
|
|
5520
5638
|
var copt = opt || {
|
|
5521
5639
|
validate: false
|
|
@@ -5527,8 +5645,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5527
5645
|
}
|
|
5528
5646
|
|
|
5529
5647
|
if (!copt.validate) {
|
|
5530
|
-
|
|
5531
|
-
resolve(
|
|
5648
|
+
_this53._serverLocation = server;
|
|
5649
|
+
resolve(_this53);
|
|
5532
5650
|
return;
|
|
5533
5651
|
}
|
|
5534
5652
|
|
|
@@ -5538,8 +5656,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5538
5656
|
};
|
|
5539
5657
|
fetch(endpoint, options).then(function (res) {
|
|
5540
5658
|
if (res.ok) {
|
|
5541
|
-
|
|
5542
|
-
resolve(
|
|
5659
|
+
_this53._serverLocation = server;
|
|
5660
|
+
resolve(_this53);
|
|
5543
5661
|
} else {
|
|
5544
5662
|
reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
|
|
5545
5663
|
}
|
|
@@ -5633,21 +5751,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5633
5751
|
}).call(this);
|
|
5634
5752
|
}).call(this, require('_process'));
|
|
5635
5753
|
}, {
|
|
5636
|
-
"_process":
|
|
5637
|
-
"node-fetch":
|
|
5754
|
+
"_process": 132,
|
|
5755
|
+
"node-fetch": 130
|
|
5638
5756
|
}],
|
|
5639
|
-
|
|
5757
|
+
45: [function (require, module, exports) {
|
|
5640
5758
|
var PlattarBase = require("./interfaces/plattar-base.js");
|
|
5641
5759
|
|
|
5642
5760
|
var Application = /*#__PURE__*/function (_PlattarBase) {
|
|
5643
5761
|
_inherits(Application, _PlattarBase);
|
|
5644
5762
|
|
|
5645
|
-
var
|
|
5763
|
+
var _super14 = _createSuper(Application);
|
|
5646
5764
|
|
|
5647
5765
|
function Application() {
|
|
5648
5766
|
_classCallCheck(this, Application);
|
|
5649
5767
|
|
|
5650
|
-
return
|
|
5768
|
+
return _super14.apply(this, arguments);
|
|
5651
5769
|
}
|
|
5652
5770
|
|
|
5653
5771
|
_createClass(Application, null, [{
|
|
@@ -5662,20 +5780,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5662
5780
|
|
|
5663
5781
|
module.exports = Application;
|
|
5664
5782
|
}, {
|
|
5665
|
-
"./interfaces/plattar-base.js":
|
|
5783
|
+
"./interfaces/plattar-base.js": 61
|
|
5666
5784
|
}],
|
|
5667
|
-
|
|
5785
|
+
46: [function (require, module, exports) {
|
|
5668
5786
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5669
5787
|
|
|
5670
5788
|
var Brief = /*#__PURE__*/function (_PlattarBase2) {
|
|
5671
5789
|
_inherits(Brief, _PlattarBase2);
|
|
5672
5790
|
|
|
5673
|
-
var
|
|
5791
|
+
var _super15 = _createSuper(Brief);
|
|
5674
5792
|
|
|
5675
5793
|
function Brief() {
|
|
5676
5794
|
_classCallCheck(this, Brief);
|
|
5677
5795
|
|
|
5678
|
-
return
|
|
5796
|
+
return _super15.apply(this, arguments);
|
|
5679
5797
|
}
|
|
5680
5798
|
|
|
5681
5799
|
_createClass(Brief, null, [{
|
|
@@ -5690,20 +5808,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5690
5808
|
|
|
5691
5809
|
module.exports = Brief;
|
|
5692
5810
|
}, {
|
|
5693
|
-
"../interfaces/plattar-base":
|
|
5811
|
+
"../interfaces/plattar-base": 61
|
|
5694
5812
|
}],
|
|
5695
|
-
|
|
5813
|
+
47: [function (require, module, exports) {
|
|
5696
5814
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5697
5815
|
|
|
5698
5816
|
var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
|
|
5699
5817
|
_inherits(CommentBrief, _PlattarBase3);
|
|
5700
5818
|
|
|
5701
|
-
var
|
|
5819
|
+
var _super16 = _createSuper(CommentBrief);
|
|
5702
5820
|
|
|
5703
5821
|
function CommentBrief() {
|
|
5704
5822
|
_classCallCheck(this, CommentBrief);
|
|
5705
5823
|
|
|
5706
|
-
return
|
|
5824
|
+
return _super16.apply(this, arguments);
|
|
5707
5825
|
}
|
|
5708
5826
|
|
|
5709
5827
|
_createClass(CommentBrief, null, [{
|
|
@@ -5718,20 +5836,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5718
5836
|
|
|
5719
5837
|
module.exports = CommentBrief;
|
|
5720
5838
|
}, {
|
|
5721
|
-
"../interfaces/plattar-base":
|
|
5839
|
+
"../interfaces/plattar-base": 61
|
|
5722
5840
|
}],
|
|
5723
|
-
|
|
5841
|
+
48: [function (require, module, exports) {
|
|
5724
5842
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5725
5843
|
|
|
5726
5844
|
var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
|
|
5727
5845
|
_inherits(CommentQuote, _PlattarBase4);
|
|
5728
5846
|
|
|
5729
|
-
var
|
|
5847
|
+
var _super17 = _createSuper(CommentQuote);
|
|
5730
5848
|
|
|
5731
5849
|
function CommentQuote() {
|
|
5732
5850
|
_classCallCheck(this, CommentQuote);
|
|
5733
5851
|
|
|
5734
|
-
return
|
|
5852
|
+
return _super17.apply(this, arguments);
|
|
5735
5853
|
}
|
|
5736
5854
|
|
|
5737
5855
|
_createClass(CommentQuote, null, [{
|
|
@@ -5746,20 +5864,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5746
5864
|
|
|
5747
5865
|
module.exports = CommentQuote;
|
|
5748
5866
|
}, {
|
|
5749
|
-
"../interfaces/plattar-base":
|
|
5867
|
+
"../interfaces/plattar-base": 61
|
|
5750
5868
|
}],
|
|
5751
|
-
|
|
5869
|
+
49: [function (require, module, exports) {
|
|
5752
5870
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5753
5871
|
|
|
5754
5872
|
var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
|
|
5755
5873
|
_inherits(CommentSolution, _PlattarBase5);
|
|
5756
5874
|
|
|
5757
|
-
var
|
|
5875
|
+
var _super18 = _createSuper(CommentSolution);
|
|
5758
5876
|
|
|
5759
5877
|
function CommentSolution() {
|
|
5760
5878
|
_classCallCheck(this, CommentSolution);
|
|
5761
5879
|
|
|
5762
|
-
return
|
|
5880
|
+
return _super18.apply(this, arguments);
|
|
5763
5881
|
}
|
|
5764
5882
|
|
|
5765
5883
|
_createClass(CommentSolution, null, [{
|
|
@@ -5774,20 +5892,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5774
5892
|
|
|
5775
5893
|
module.exports = CommentSolution;
|
|
5776
5894
|
}, {
|
|
5777
|
-
"../interfaces/plattar-base":
|
|
5895
|
+
"../interfaces/plattar-base": 61
|
|
5778
5896
|
}],
|
|
5779
|
-
|
|
5897
|
+
50: [function (require, module, exports) {
|
|
5780
5898
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5781
5899
|
|
|
5782
5900
|
var Folder = /*#__PURE__*/function (_PlattarBase6) {
|
|
5783
5901
|
_inherits(Folder, _PlattarBase6);
|
|
5784
5902
|
|
|
5785
|
-
var
|
|
5903
|
+
var _super19 = _createSuper(Folder);
|
|
5786
5904
|
|
|
5787
5905
|
function Folder() {
|
|
5788
5906
|
_classCallCheck(this, Folder);
|
|
5789
5907
|
|
|
5790
|
-
return
|
|
5908
|
+
return _super19.apply(this, arguments);
|
|
5791
5909
|
}
|
|
5792
5910
|
|
|
5793
5911
|
_createClass(Folder, null, [{
|
|
@@ -5802,20 +5920,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5802
5920
|
|
|
5803
5921
|
module.exports = Folder;
|
|
5804
5922
|
}, {
|
|
5805
|
-
"../interfaces/plattar-base":
|
|
5923
|
+
"../interfaces/plattar-base": 61
|
|
5806
5924
|
}],
|
|
5807
|
-
|
|
5925
|
+
51: [function (require, module, exports) {
|
|
5808
5926
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5809
5927
|
|
|
5810
5928
|
var PipelineUser = /*#__PURE__*/function (_PlattarBase7) {
|
|
5811
5929
|
_inherits(PipelineUser, _PlattarBase7);
|
|
5812
5930
|
|
|
5813
|
-
var
|
|
5931
|
+
var _super20 = _createSuper(PipelineUser);
|
|
5814
5932
|
|
|
5815
5933
|
function PipelineUser() {
|
|
5816
5934
|
_classCallCheck(this, PipelineUser);
|
|
5817
5935
|
|
|
5818
|
-
return
|
|
5936
|
+
return _super20.apply(this, arguments);
|
|
5819
5937
|
}
|
|
5820
5938
|
|
|
5821
5939
|
_createClass(PipelineUser, null, [{
|
|
@@ -5830,20 +5948,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5830
5948
|
|
|
5831
5949
|
module.exports = PipelineUser;
|
|
5832
5950
|
}, {
|
|
5833
|
-
"../interfaces/plattar-base":
|
|
5951
|
+
"../interfaces/plattar-base": 61
|
|
5834
5952
|
}],
|
|
5835
|
-
|
|
5953
|
+
52: [function (require, module, exports) {
|
|
5836
5954
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5837
5955
|
|
|
5838
5956
|
var Quote = /*#__PURE__*/function (_PlattarBase8) {
|
|
5839
5957
|
_inherits(Quote, _PlattarBase8);
|
|
5840
5958
|
|
|
5841
|
-
var
|
|
5959
|
+
var _super21 = _createSuper(Quote);
|
|
5842
5960
|
|
|
5843
5961
|
function Quote() {
|
|
5844
5962
|
_classCallCheck(this, Quote);
|
|
5845
5963
|
|
|
5846
|
-
return
|
|
5964
|
+
return _super21.apply(this, arguments);
|
|
5847
5965
|
}
|
|
5848
5966
|
|
|
5849
5967
|
_createClass(Quote, null, [{
|
|
@@ -5858,20 +5976,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5858
5976
|
|
|
5859
5977
|
module.exports = Quote;
|
|
5860
5978
|
}, {
|
|
5861
|
-
"../interfaces/plattar-base":
|
|
5979
|
+
"../interfaces/plattar-base": 61
|
|
5862
5980
|
}],
|
|
5863
|
-
|
|
5981
|
+
53: [function (require, module, exports) {
|
|
5864
5982
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5865
5983
|
|
|
5866
5984
|
var Rating = /*#__PURE__*/function (_PlattarBase9) {
|
|
5867
5985
|
_inherits(Rating, _PlattarBase9);
|
|
5868
5986
|
|
|
5869
|
-
var
|
|
5987
|
+
var _super22 = _createSuper(Rating);
|
|
5870
5988
|
|
|
5871
5989
|
function Rating() {
|
|
5872
5990
|
_classCallCheck(this, Rating);
|
|
5873
5991
|
|
|
5874
|
-
return
|
|
5992
|
+
return _super22.apply(this, arguments);
|
|
5875
5993
|
}
|
|
5876
5994
|
|
|
5877
5995
|
_createClass(Rating, null, [{
|
|
@@ -5886,20 +6004,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5886
6004
|
|
|
5887
6005
|
module.exports = Rating;
|
|
5888
6006
|
}, {
|
|
5889
|
-
"../interfaces/plattar-base":
|
|
6007
|
+
"../interfaces/plattar-base": 61
|
|
5890
6008
|
}],
|
|
5891
|
-
|
|
6009
|
+
54: [function (require, module, exports) {
|
|
5892
6010
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5893
6011
|
|
|
5894
6012
|
var Solution = /*#__PURE__*/function (_PlattarBase10) {
|
|
5895
6013
|
_inherits(Solution, _PlattarBase10);
|
|
5896
6014
|
|
|
5897
|
-
var
|
|
6015
|
+
var _super23 = _createSuper(Solution);
|
|
5898
6016
|
|
|
5899
6017
|
function Solution() {
|
|
5900
6018
|
_classCallCheck(this, Solution);
|
|
5901
6019
|
|
|
5902
|
-
return
|
|
6020
|
+
return _super23.apply(this, arguments);
|
|
5903
6021
|
}
|
|
5904
6022
|
|
|
5905
6023
|
_createClass(Solution, null, [{
|
|
@@ -5914,20 +6032,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5914
6032
|
|
|
5915
6033
|
module.exports = Solution;
|
|
5916
6034
|
}, {
|
|
5917
|
-
"../interfaces/plattar-base":
|
|
6035
|
+
"../interfaces/plattar-base": 61
|
|
5918
6036
|
}],
|
|
5919
|
-
|
|
6037
|
+
55: [function (require, module, exports) {
|
|
5920
6038
|
var FileBase = require("./file-base.js");
|
|
5921
6039
|
|
|
5922
6040
|
var FileAudio = /*#__PURE__*/function (_FileBase) {
|
|
5923
6041
|
_inherits(FileAudio, _FileBase);
|
|
5924
6042
|
|
|
5925
|
-
var
|
|
6043
|
+
var _super24 = _createSuper(FileAudio);
|
|
5926
6044
|
|
|
5927
6045
|
function FileAudio() {
|
|
5928
6046
|
_classCallCheck(this, FileAudio);
|
|
5929
6047
|
|
|
5930
|
-
return
|
|
6048
|
+
return _super24.apply(this, arguments);
|
|
5931
6049
|
}
|
|
5932
6050
|
|
|
5933
6051
|
_createClass(FileAudio, null, [{
|
|
@@ -5942,9 +6060,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5942
6060
|
|
|
5943
6061
|
module.exports = FileAudio;
|
|
5944
6062
|
}, {
|
|
5945
|
-
"./file-base.js":
|
|
6063
|
+
"./file-base.js": 56
|
|
5946
6064
|
}],
|
|
5947
|
-
|
|
6065
|
+
56: [function (require, module, exports) {
|
|
5948
6066
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5949
6067
|
|
|
5950
6068
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5952,20 +6070,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5952
6070
|
var FileBase = /*#__PURE__*/function (_PlattarBase11) {
|
|
5953
6071
|
_inherits(FileBase, _PlattarBase11);
|
|
5954
6072
|
|
|
5955
|
-
var
|
|
6073
|
+
var _super25 = _createSuper(FileBase);
|
|
5956
6074
|
|
|
5957
6075
|
function FileBase(id, server) {
|
|
5958
|
-
var
|
|
6076
|
+
var _this54;
|
|
5959
6077
|
|
|
5960
6078
|
_classCallCheck(this, FileBase);
|
|
5961
6079
|
|
|
5962
|
-
|
|
6080
|
+
_this54 = _super25.call(this, id, server || Server["default"]());
|
|
5963
6081
|
|
|
5964
|
-
if (
|
|
6082
|
+
if (_this54.constructor === FileBase) {
|
|
5965
6083
|
throw new Error("FileBase is abstract and cannot be created");
|
|
5966
6084
|
}
|
|
5967
6085
|
|
|
5968
|
-
return
|
|
6086
|
+
return _this54;
|
|
5969
6087
|
}
|
|
5970
6088
|
|
|
5971
6089
|
_createClass(FileBase, [{
|
|
@@ -6030,25 +6148,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6030
6148
|
|
|
6031
6149
|
module.exports = FileBase;
|
|
6032
6150
|
}, {
|
|
6033
|
-
"../../server/plattar-server.js":
|
|
6034
|
-
"../interfaces/plattar-base.js":
|
|
6035
|
-
"./file-audio.js":
|
|
6036
|
-
"./file-image.js":
|
|
6037
|
-
"./file-model.js":
|
|
6038
|
-
"./file-video.js":
|
|
6151
|
+
"../../server/plattar-server.js": 44,
|
|
6152
|
+
"../interfaces/plattar-base.js": 61,
|
|
6153
|
+
"./file-audio.js": 55,
|
|
6154
|
+
"./file-image.js": 57,
|
|
6155
|
+
"./file-model.js": 58,
|
|
6156
|
+
"./file-video.js": 60
|
|
6039
6157
|
}],
|
|
6040
|
-
|
|
6158
|
+
57: [function (require, module, exports) {
|
|
6041
6159
|
var FileBase = require("./file-base.js");
|
|
6042
6160
|
|
|
6043
6161
|
var FileImage = /*#__PURE__*/function (_FileBase2) {
|
|
6044
6162
|
_inherits(FileImage, _FileBase2);
|
|
6045
6163
|
|
|
6046
|
-
var
|
|
6164
|
+
var _super26 = _createSuper(FileImage);
|
|
6047
6165
|
|
|
6048
6166
|
function FileImage() {
|
|
6049
6167
|
_classCallCheck(this, FileImage);
|
|
6050
6168
|
|
|
6051
|
-
return
|
|
6169
|
+
return _super26.apply(this, arguments);
|
|
6052
6170
|
}
|
|
6053
6171
|
|
|
6054
6172
|
_createClass(FileImage, null, [{
|
|
@@ -6063,20 +6181,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6063
6181
|
|
|
6064
6182
|
module.exports = FileImage;
|
|
6065
6183
|
}, {
|
|
6066
|
-
"./file-base.js":
|
|
6184
|
+
"./file-base.js": 56
|
|
6067
6185
|
}],
|
|
6068
|
-
|
|
6186
|
+
58: [function (require, module, exports) {
|
|
6069
6187
|
var FileBase = require("./file-base.js");
|
|
6070
6188
|
|
|
6071
6189
|
var FileModel = /*#__PURE__*/function (_FileBase3) {
|
|
6072
6190
|
_inherits(FileModel, _FileBase3);
|
|
6073
6191
|
|
|
6074
|
-
var
|
|
6192
|
+
var _super27 = _createSuper(FileModel);
|
|
6075
6193
|
|
|
6076
6194
|
function FileModel() {
|
|
6077
6195
|
_classCallCheck(this, FileModel);
|
|
6078
6196
|
|
|
6079
|
-
return
|
|
6197
|
+
return _super27.apply(this, arguments);
|
|
6080
6198
|
}
|
|
6081
6199
|
|
|
6082
6200
|
_createClass(FileModel, null, [{
|
|
@@ -6091,20 +6209,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6091
6209
|
|
|
6092
6210
|
module.exports = FileModel;
|
|
6093
6211
|
}, {
|
|
6094
|
-
"./file-base.js":
|
|
6212
|
+
"./file-base.js": 56
|
|
6095
6213
|
}],
|
|
6096
|
-
|
|
6214
|
+
59: [function (require, module, exports) {
|
|
6097
6215
|
var FileBase = require("./file-base.js");
|
|
6098
6216
|
|
|
6099
6217
|
var FileScript = /*#__PURE__*/function (_FileBase4) {
|
|
6100
6218
|
_inherits(FileScript, _FileBase4);
|
|
6101
6219
|
|
|
6102
|
-
var
|
|
6220
|
+
var _super28 = _createSuper(FileScript);
|
|
6103
6221
|
|
|
6104
6222
|
function FileScript() {
|
|
6105
6223
|
_classCallCheck(this, FileScript);
|
|
6106
6224
|
|
|
6107
|
-
return
|
|
6225
|
+
return _super28.apply(this, arguments);
|
|
6108
6226
|
}
|
|
6109
6227
|
|
|
6110
6228
|
_createClass(FileScript, null, [{
|
|
@@ -6119,20 +6237,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6119
6237
|
|
|
6120
6238
|
module.exports = FileScript;
|
|
6121
6239
|
}, {
|
|
6122
|
-
"./file-base.js":
|
|
6240
|
+
"./file-base.js": 56
|
|
6123
6241
|
}],
|
|
6124
|
-
|
|
6242
|
+
60: [function (require, module, exports) {
|
|
6125
6243
|
var FileBase = require("./file-base.js");
|
|
6126
6244
|
|
|
6127
6245
|
var FileVideo = /*#__PURE__*/function (_FileBase5) {
|
|
6128
6246
|
_inherits(FileVideo, _FileBase5);
|
|
6129
6247
|
|
|
6130
|
-
var
|
|
6248
|
+
var _super29 = _createSuper(FileVideo);
|
|
6131
6249
|
|
|
6132
6250
|
function FileVideo() {
|
|
6133
6251
|
_classCallCheck(this, FileVideo);
|
|
6134
6252
|
|
|
6135
|
-
return
|
|
6253
|
+
return _super29.apply(this, arguments);
|
|
6136
6254
|
}
|
|
6137
6255
|
|
|
6138
6256
|
_createClass(FileVideo, null, [{
|
|
@@ -6147,9 +6265,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6147
6265
|
|
|
6148
6266
|
module.exports = FileVideo;
|
|
6149
6267
|
}, {
|
|
6150
|
-
"./file-base.js":
|
|
6268
|
+
"./file-base.js": 56
|
|
6151
6269
|
}],
|
|
6152
|
-
|
|
6270
|
+
61: [function (require, module, exports) {
|
|
6153
6271
|
var PlattarObject = require("./plattar-object.js");
|
|
6154
6272
|
|
|
6155
6273
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -6157,20 +6275,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6157
6275
|
var PlattarBase = /*#__PURE__*/function (_PlattarObject) {
|
|
6158
6276
|
_inherits(PlattarBase, _PlattarObject);
|
|
6159
6277
|
|
|
6160
|
-
var
|
|
6278
|
+
var _super30 = _createSuper(PlattarBase);
|
|
6161
6279
|
|
|
6162
6280
|
function PlattarBase(id, server) {
|
|
6163
|
-
var
|
|
6281
|
+
var _this55;
|
|
6164
6282
|
|
|
6165
6283
|
_classCallCheck(this, PlattarBase);
|
|
6166
6284
|
|
|
6167
|
-
|
|
6285
|
+
_this55 = _super30.call(this, id, server || Server["default"]());
|
|
6168
6286
|
|
|
6169
|
-
if (
|
|
6287
|
+
if (_this55.constructor === PlattarBase) {
|
|
6170
6288
|
throw new Error("PlattarBase is abstract and cannot be created");
|
|
6171
6289
|
}
|
|
6172
6290
|
|
|
6173
|
-
return
|
|
6291
|
+
return _this55;
|
|
6174
6292
|
}
|
|
6175
6293
|
|
|
6176
6294
|
return _createClass(PlattarBase);
|
|
@@ -6178,10 +6296,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6178
6296
|
|
|
6179
6297
|
module.exports = PlattarBase;
|
|
6180
6298
|
}, {
|
|
6181
|
-
"../../server/plattar-server.js":
|
|
6182
|
-
"./plattar-object.js":
|
|
6299
|
+
"../../server/plattar-server.js": 44,
|
|
6300
|
+
"./plattar-object.js": 63
|
|
6183
6301
|
}],
|
|
6184
|
-
|
|
6302
|
+
62: [function (require, module, exports) {
|
|
6185
6303
|
/**
|
|
6186
6304
|
* Handles the list of relationships for the provided object
|
|
6187
6305
|
*/
|
|
@@ -6242,7 +6360,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6242
6360
|
}, {
|
|
6243
6361
|
key: "filter",
|
|
6244
6362
|
value: function filter(obj, id) {
|
|
6245
|
-
var
|
|
6363
|
+
var _this56 = this;
|
|
6246
6364
|
|
|
6247
6365
|
if (!obj) {
|
|
6248
6366
|
return [];
|
|
@@ -6260,7 +6378,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6260
6378
|
if (Array.isArray(type)) {
|
|
6261
6379
|
var compiledList = [];
|
|
6262
6380
|
type.forEach(function (inObject) {
|
|
6263
|
-
var retArray =
|
|
6381
|
+
var retArray = _this56.filter(inObject, id);
|
|
6264
6382
|
|
|
6265
6383
|
if (retArray.length > 0) {
|
|
6266
6384
|
compiledList = compiledList.concat(retArray);
|
|
@@ -6317,9 +6435,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6317
6435
|
|
|
6318
6436
|
module.exports = PlattarObjectRelations;
|
|
6319
6437
|
}, {
|
|
6320
|
-
"../../util/plattar-util.js":
|
|
6438
|
+
"../../util/plattar-util.js": 104
|
|
6321
6439
|
}],
|
|
6322
|
-
|
|
6440
|
+
63: [function (require, module, exports) {
|
|
6323
6441
|
var PlattarQuery = require("../../server/plattar-query.js");
|
|
6324
6442
|
|
|
6325
6443
|
var PlattarObjectRelations = require("./plattar-object-relations.js");
|
|
@@ -6463,7 +6581,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6463
6581
|
}, {
|
|
6464
6582
|
key: "include",
|
|
6465
6583
|
value: function include() {
|
|
6466
|
-
var
|
|
6584
|
+
var _this57 = this;
|
|
6467
6585
|
|
|
6468
6586
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
6469
6587
|
args[_key6] = arguments[_key6];
|
|
@@ -6479,15 +6597,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6479
6597
|
if (Array.isArray(obj)) {
|
|
6480
6598
|
obj.forEach(function (strObject) {
|
|
6481
6599
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
6482
|
-
includes.push("".concat(
|
|
6600
|
+
includes.push("".concat(_this57.type(), ".").concat(strObject));
|
|
6483
6601
|
} else {
|
|
6484
|
-
throw new Error("PlattarObject." +
|
|
6602
|
+
throw new Error("PlattarObject." + _this57.type() + ".include(...args) - argument of Array must only include Strings");
|
|
6485
6603
|
}
|
|
6486
6604
|
});
|
|
6487
6605
|
} else if (obj.prototype instanceof PlattarObject) {
|
|
6488
|
-
includes.push("".concat(
|
|
6606
|
+
includes.push("".concat(_this57.type(), ".").concat(obj.type()));
|
|
6489
6607
|
} else {
|
|
6490
|
-
throw new Error("PlattarObject." +
|
|
6608
|
+
throw new Error("PlattarObject." + _this57.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
6491
6609
|
}
|
|
6492
6610
|
});
|
|
6493
6611
|
return includes;
|
|
@@ -6499,21 +6617,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6499
6617
|
|
|
6500
6618
|
module.exports = PlattarObject;
|
|
6501
6619
|
}, {
|
|
6502
|
-
"../../server/plattar-query.js":
|
|
6503
|
-
"./plattar-object-relations.js":
|
|
6620
|
+
"../../server/plattar-query.js": 43,
|
|
6621
|
+
"./plattar-object-relations.js": 62
|
|
6504
6622
|
}],
|
|
6505
|
-
|
|
6623
|
+
64: [function (require, module, exports) {
|
|
6506
6624
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6507
6625
|
|
|
6508
6626
|
var ApplicationBuild = /*#__PURE__*/function (_PlattarBase12) {
|
|
6509
6627
|
_inherits(ApplicationBuild, _PlattarBase12);
|
|
6510
6628
|
|
|
6511
|
-
var
|
|
6629
|
+
var _super31 = _createSuper(ApplicationBuild);
|
|
6512
6630
|
|
|
6513
6631
|
function ApplicationBuild() {
|
|
6514
6632
|
_classCallCheck(this, ApplicationBuild);
|
|
6515
6633
|
|
|
6516
|
-
return
|
|
6634
|
+
return _super31.apply(this, arguments);
|
|
6517
6635
|
}
|
|
6518
6636
|
|
|
6519
6637
|
_createClass(ApplicationBuild, null, [{
|
|
@@ -6528,20 +6646,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6528
6646
|
|
|
6529
6647
|
module.exports = ApplicationBuild;
|
|
6530
6648
|
}, {
|
|
6531
|
-
"../interfaces/plattar-base.js":
|
|
6649
|
+
"../interfaces/plattar-base.js": 61
|
|
6532
6650
|
}],
|
|
6533
|
-
|
|
6651
|
+
65: [function (require, module, exports) {
|
|
6534
6652
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6535
6653
|
|
|
6536
6654
|
var AssetLibrary = /*#__PURE__*/function (_PlattarBase13) {
|
|
6537
6655
|
_inherits(AssetLibrary, _PlattarBase13);
|
|
6538
6656
|
|
|
6539
|
-
var
|
|
6657
|
+
var _super32 = _createSuper(AssetLibrary);
|
|
6540
6658
|
|
|
6541
6659
|
function AssetLibrary() {
|
|
6542
6660
|
_classCallCheck(this, AssetLibrary);
|
|
6543
6661
|
|
|
6544
|
-
return
|
|
6662
|
+
return _super32.apply(this, arguments);
|
|
6545
6663
|
}
|
|
6546
6664
|
|
|
6547
6665
|
_createClass(AssetLibrary, null, [{
|
|
@@ -6556,20 +6674,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6556
6674
|
|
|
6557
6675
|
module.exports = AssetLibrary;
|
|
6558
6676
|
}, {
|
|
6559
|
-
"../interfaces/plattar-base.js":
|
|
6677
|
+
"../interfaces/plattar-base.js": 61
|
|
6560
6678
|
}],
|
|
6561
|
-
|
|
6679
|
+
66: [function (require, module, exports) {
|
|
6562
6680
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6563
6681
|
|
|
6564
6682
|
var AsyncJob = /*#__PURE__*/function (_PlattarBase14) {
|
|
6565
6683
|
_inherits(AsyncJob, _PlattarBase14);
|
|
6566
6684
|
|
|
6567
|
-
var
|
|
6685
|
+
var _super33 = _createSuper(AsyncJob);
|
|
6568
6686
|
|
|
6569
6687
|
function AsyncJob() {
|
|
6570
6688
|
_classCallCheck(this, AsyncJob);
|
|
6571
6689
|
|
|
6572
|
-
return
|
|
6690
|
+
return _super33.apply(this, arguments);
|
|
6573
6691
|
}
|
|
6574
6692
|
|
|
6575
6693
|
_createClass(AsyncJob, [{
|
|
@@ -6589,20 +6707,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6589
6707
|
|
|
6590
6708
|
module.exports = AsyncJob;
|
|
6591
6709
|
}, {
|
|
6592
|
-
"../interfaces/plattar-base.js":
|
|
6710
|
+
"../interfaces/plattar-base.js": 61
|
|
6593
6711
|
}],
|
|
6594
|
-
|
|
6712
|
+
67: [function (require, module, exports) {
|
|
6595
6713
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6596
6714
|
|
|
6597
6715
|
var ScriptEvent = /*#__PURE__*/function (_PlattarBase15) {
|
|
6598
6716
|
_inherits(ScriptEvent, _PlattarBase15);
|
|
6599
6717
|
|
|
6600
|
-
var
|
|
6718
|
+
var _super34 = _createSuper(ScriptEvent);
|
|
6601
6719
|
|
|
6602
6720
|
function ScriptEvent() {
|
|
6603
6721
|
_classCallCheck(this, ScriptEvent);
|
|
6604
6722
|
|
|
6605
|
-
return
|
|
6723
|
+
return _super34.apply(this, arguments);
|
|
6606
6724
|
}
|
|
6607
6725
|
|
|
6608
6726
|
_createClass(ScriptEvent, null, [{
|
|
@@ -6617,20 +6735,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6617
6735
|
|
|
6618
6736
|
module.exports = ScriptEvent;
|
|
6619
6737
|
}, {
|
|
6620
|
-
"../interfaces/plattar-base.js":
|
|
6738
|
+
"../interfaces/plattar-base.js": 61
|
|
6621
6739
|
}],
|
|
6622
|
-
|
|
6740
|
+
68: [function (require, module, exports) {
|
|
6623
6741
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6624
6742
|
|
|
6625
6743
|
var Tag = /*#__PURE__*/function (_PlattarBase16) {
|
|
6626
6744
|
_inherits(Tag, _PlattarBase16);
|
|
6627
6745
|
|
|
6628
|
-
var
|
|
6746
|
+
var _super35 = _createSuper(Tag);
|
|
6629
6747
|
|
|
6630
6748
|
function Tag() {
|
|
6631
6749
|
_classCallCheck(this, Tag);
|
|
6632
6750
|
|
|
6633
|
-
return
|
|
6751
|
+
return _super35.apply(this, arguments);
|
|
6634
6752
|
}
|
|
6635
6753
|
|
|
6636
6754
|
_createClass(Tag, null, [{
|
|
@@ -6645,9 +6763,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6645
6763
|
|
|
6646
6764
|
module.exports = Tag;
|
|
6647
6765
|
}, {
|
|
6648
|
-
"../interfaces/plattar-base.js":
|
|
6766
|
+
"../interfaces/plattar-base.js": 61
|
|
6649
6767
|
}],
|
|
6650
|
-
|
|
6768
|
+
69: [function (require, module, exports) {
|
|
6651
6769
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6652
6770
|
|
|
6653
6771
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -6655,20 +6773,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6655
6773
|
var CardBase = /*#__PURE__*/function (_PlattarBase17) {
|
|
6656
6774
|
_inherits(CardBase, _PlattarBase17);
|
|
6657
6775
|
|
|
6658
|
-
var
|
|
6776
|
+
var _super36 = _createSuper(CardBase);
|
|
6659
6777
|
|
|
6660
6778
|
function CardBase(id, server) {
|
|
6661
|
-
var
|
|
6779
|
+
var _this58;
|
|
6662
6780
|
|
|
6663
6781
|
_classCallCheck(this, CardBase);
|
|
6664
6782
|
|
|
6665
|
-
|
|
6783
|
+
_this58 = _super36.call(this, id, server || Server["default"]());
|
|
6666
6784
|
|
|
6667
|
-
if (
|
|
6785
|
+
if (_this58.constructor === CardBase) {
|
|
6668
6786
|
throw new Error("CardBase is abstract and cannot be created");
|
|
6669
6787
|
}
|
|
6670
6788
|
|
|
6671
|
-
return
|
|
6789
|
+
return _this58;
|
|
6672
6790
|
}
|
|
6673
6791
|
|
|
6674
6792
|
_createClass(CardBase, null, [{
|
|
@@ -6705,32 +6823,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6705
6823
|
|
|
6706
6824
|
module.exports = CardBase;
|
|
6707
6825
|
}, {
|
|
6708
|
-
"../../server/plattar-server.js":
|
|
6709
|
-
"../interfaces/plattar-base.js":
|
|
6710
|
-
"./card-button.js":
|
|
6711
|
-
"./card-html.js":
|
|
6712
|
-
"./card-iframe.js":
|
|
6713
|
-
"./card-image.js":
|
|
6714
|
-
"./card-map.js":
|
|
6715
|
-
"./card-paragraph.js":
|
|
6716
|
-
"./card-row.js":
|
|
6717
|
-
"./card-slider.js":
|
|
6718
|
-
"./card-title.js":
|
|
6719
|
-
"./card-video.js":
|
|
6720
|
-
"./card-youtube.js":
|
|
6826
|
+
"../../server/plattar-server.js": 44,
|
|
6827
|
+
"../interfaces/plattar-base.js": 61,
|
|
6828
|
+
"./card-button.js": 70,
|
|
6829
|
+
"./card-html.js": 71,
|
|
6830
|
+
"./card-iframe.js": 72,
|
|
6831
|
+
"./card-image.js": 73,
|
|
6832
|
+
"./card-map.js": 74,
|
|
6833
|
+
"./card-paragraph.js": 75,
|
|
6834
|
+
"./card-row.js": 76,
|
|
6835
|
+
"./card-slider.js": 77,
|
|
6836
|
+
"./card-title.js": 78,
|
|
6837
|
+
"./card-video.js": 79,
|
|
6838
|
+
"./card-youtube.js": 80
|
|
6721
6839
|
}],
|
|
6722
|
-
|
|
6840
|
+
70: [function (require, module, exports) {
|
|
6723
6841
|
var CardBase = require("./card-base.js");
|
|
6724
6842
|
|
|
6725
6843
|
var CardButton = /*#__PURE__*/function (_CardBase) {
|
|
6726
6844
|
_inherits(CardButton, _CardBase);
|
|
6727
6845
|
|
|
6728
|
-
var
|
|
6846
|
+
var _super37 = _createSuper(CardButton);
|
|
6729
6847
|
|
|
6730
6848
|
function CardButton() {
|
|
6731
6849
|
_classCallCheck(this, CardButton);
|
|
6732
6850
|
|
|
6733
|
-
return
|
|
6851
|
+
return _super37.apply(this, arguments);
|
|
6734
6852
|
}
|
|
6735
6853
|
|
|
6736
6854
|
_createClass(CardButton, null, [{
|
|
@@ -6745,20 +6863,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6745
6863
|
|
|
6746
6864
|
module.exports = CardButton;
|
|
6747
6865
|
}, {
|
|
6748
|
-
"./card-base.js":
|
|
6866
|
+
"./card-base.js": 69
|
|
6749
6867
|
}],
|
|
6750
|
-
|
|
6868
|
+
71: [function (require, module, exports) {
|
|
6751
6869
|
var CardBase = require("./card-base.js");
|
|
6752
6870
|
|
|
6753
6871
|
var CardHTML = /*#__PURE__*/function (_CardBase2) {
|
|
6754
6872
|
_inherits(CardHTML, _CardBase2);
|
|
6755
6873
|
|
|
6756
|
-
var
|
|
6874
|
+
var _super38 = _createSuper(CardHTML);
|
|
6757
6875
|
|
|
6758
6876
|
function CardHTML() {
|
|
6759
6877
|
_classCallCheck(this, CardHTML);
|
|
6760
6878
|
|
|
6761
|
-
return
|
|
6879
|
+
return _super38.apply(this, arguments);
|
|
6762
6880
|
}
|
|
6763
6881
|
|
|
6764
6882
|
_createClass(CardHTML, null, [{
|
|
@@ -6773,20 +6891,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6773
6891
|
|
|
6774
6892
|
module.exports = CardHTML;
|
|
6775
6893
|
}, {
|
|
6776
|
-
"./card-base.js":
|
|
6894
|
+
"./card-base.js": 69
|
|
6777
6895
|
}],
|
|
6778
|
-
|
|
6896
|
+
72: [function (require, module, exports) {
|
|
6779
6897
|
var CardBase = require("./card-base.js");
|
|
6780
6898
|
|
|
6781
6899
|
var CardIFrame = /*#__PURE__*/function (_CardBase3) {
|
|
6782
6900
|
_inherits(CardIFrame, _CardBase3);
|
|
6783
6901
|
|
|
6784
|
-
var
|
|
6902
|
+
var _super39 = _createSuper(CardIFrame);
|
|
6785
6903
|
|
|
6786
6904
|
function CardIFrame() {
|
|
6787
6905
|
_classCallCheck(this, CardIFrame);
|
|
6788
6906
|
|
|
6789
|
-
return
|
|
6907
|
+
return _super39.apply(this, arguments);
|
|
6790
6908
|
}
|
|
6791
6909
|
|
|
6792
6910
|
_createClass(CardIFrame, null, [{
|
|
@@ -6801,20 +6919,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6801
6919
|
|
|
6802
6920
|
module.exports = CardIFrame;
|
|
6803
6921
|
}, {
|
|
6804
|
-
"./card-base.js":
|
|
6922
|
+
"./card-base.js": 69
|
|
6805
6923
|
}],
|
|
6806
|
-
|
|
6924
|
+
73: [function (require, module, exports) {
|
|
6807
6925
|
var CardBase = require("./card-base.js");
|
|
6808
6926
|
|
|
6809
6927
|
var CardImage = /*#__PURE__*/function (_CardBase4) {
|
|
6810
6928
|
_inherits(CardImage, _CardBase4);
|
|
6811
6929
|
|
|
6812
|
-
var
|
|
6930
|
+
var _super40 = _createSuper(CardImage);
|
|
6813
6931
|
|
|
6814
6932
|
function CardImage() {
|
|
6815
6933
|
_classCallCheck(this, CardImage);
|
|
6816
6934
|
|
|
6817
|
-
return
|
|
6935
|
+
return _super40.apply(this, arguments);
|
|
6818
6936
|
}
|
|
6819
6937
|
|
|
6820
6938
|
_createClass(CardImage, null, [{
|
|
@@ -6829,20 +6947,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6829
6947
|
|
|
6830
6948
|
module.exports = CardImage;
|
|
6831
6949
|
}, {
|
|
6832
|
-
"./card-base.js":
|
|
6950
|
+
"./card-base.js": 69
|
|
6833
6951
|
}],
|
|
6834
|
-
|
|
6952
|
+
74: [function (require, module, exports) {
|
|
6835
6953
|
var CardBase = require("./card-base.js");
|
|
6836
6954
|
|
|
6837
6955
|
var CardMap = /*#__PURE__*/function (_CardBase5) {
|
|
6838
6956
|
_inherits(CardMap, _CardBase5);
|
|
6839
6957
|
|
|
6840
|
-
var
|
|
6958
|
+
var _super41 = _createSuper(CardMap);
|
|
6841
6959
|
|
|
6842
6960
|
function CardMap() {
|
|
6843
6961
|
_classCallCheck(this, CardMap);
|
|
6844
6962
|
|
|
6845
|
-
return
|
|
6963
|
+
return _super41.apply(this, arguments);
|
|
6846
6964
|
}
|
|
6847
6965
|
|
|
6848
6966
|
_createClass(CardMap, null, [{
|
|
@@ -6857,20 +6975,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6857
6975
|
|
|
6858
6976
|
module.exports = CardMap;
|
|
6859
6977
|
}, {
|
|
6860
|
-
"./card-base.js":
|
|
6978
|
+
"./card-base.js": 69
|
|
6861
6979
|
}],
|
|
6862
|
-
|
|
6980
|
+
75: [function (require, module, exports) {
|
|
6863
6981
|
var CardBase = require("./card-base.js");
|
|
6864
6982
|
|
|
6865
6983
|
var CardParagraph = /*#__PURE__*/function (_CardBase6) {
|
|
6866
6984
|
_inherits(CardParagraph, _CardBase6);
|
|
6867
6985
|
|
|
6868
|
-
var
|
|
6986
|
+
var _super42 = _createSuper(CardParagraph);
|
|
6869
6987
|
|
|
6870
6988
|
function CardParagraph() {
|
|
6871
6989
|
_classCallCheck(this, CardParagraph);
|
|
6872
6990
|
|
|
6873
|
-
return
|
|
6991
|
+
return _super42.apply(this, arguments);
|
|
6874
6992
|
}
|
|
6875
6993
|
|
|
6876
6994
|
_createClass(CardParagraph, null, [{
|
|
@@ -6885,20 +7003,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6885
7003
|
|
|
6886
7004
|
module.exports = CardParagraph;
|
|
6887
7005
|
}, {
|
|
6888
|
-
"./card-base.js":
|
|
7006
|
+
"./card-base.js": 69
|
|
6889
7007
|
}],
|
|
6890
|
-
|
|
7008
|
+
76: [function (require, module, exports) {
|
|
6891
7009
|
var CardBase = require("./card-base.js");
|
|
6892
7010
|
|
|
6893
7011
|
var CardRow = /*#__PURE__*/function (_CardBase7) {
|
|
6894
7012
|
_inherits(CardRow, _CardBase7);
|
|
6895
7013
|
|
|
6896
|
-
var
|
|
7014
|
+
var _super43 = _createSuper(CardRow);
|
|
6897
7015
|
|
|
6898
7016
|
function CardRow() {
|
|
6899
7017
|
_classCallCheck(this, CardRow);
|
|
6900
7018
|
|
|
6901
|
-
return
|
|
7019
|
+
return _super43.apply(this, arguments);
|
|
6902
7020
|
}
|
|
6903
7021
|
|
|
6904
7022
|
_createClass(CardRow, null, [{
|
|
@@ -6913,20 +7031,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6913
7031
|
|
|
6914
7032
|
module.exports = CardRow;
|
|
6915
7033
|
}, {
|
|
6916
|
-
"./card-base.js":
|
|
7034
|
+
"./card-base.js": 69
|
|
6917
7035
|
}],
|
|
6918
|
-
|
|
7036
|
+
77: [function (require, module, exports) {
|
|
6919
7037
|
var CardBase = require("./card-base.js");
|
|
6920
7038
|
|
|
6921
7039
|
var CardSlider = /*#__PURE__*/function (_CardBase8) {
|
|
6922
7040
|
_inherits(CardSlider, _CardBase8);
|
|
6923
7041
|
|
|
6924
|
-
var
|
|
7042
|
+
var _super44 = _createSuper(CardSlider);
|
|
6925
7043
|
|
|
6926
7044
|
function CardSlider() {
|
|
6927
7045
|
_classCallCheck(this, CardSlider);
|
|
6928
7046
|
|
|
6929
|
-
return
|
|
7047
|
+
return _super44.apply(this, arguments);
|
|
6930
7048
|
}
|
|
6931
7049
|
|
|
6932
7050
|
_createClass(CardSlider, null, [{
|
|
@@ -6941,20 +7059,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6941
7059
|
|
|
6942
7060
|
module.exports = CardSlider;
|
|
6943
7061
|
}, {
|
|
6944
|
-
"./card-base.js":
|
|
7062
|
+
"./card-base.js": 69
|
|
6945
7063
|
}],
|
|
6946
|
-
|
|
7064
|
+
78: [function (require, module, exports) {
|
|
6947
7065
|
var CardBase = require("./card-base.js");
|
|
6948
7066
|
|
|
6949
7067
|
var CardTitle = /*#__PURE__*/function (_CardBase9) {
|
|
6950
7068
|
_inherits(CardTitle, _CardBase9);
|
|
6951
7069
|
|
|
6952
|
-
var
|
|
7070
|
+
var _super45 = _createSuper(CardTitle);
|
|
6953
7071
|
|
|
6954
7072
|
function CardTitle() {
|
|
6955
7073
|
_classCallCheck(this, CardTitle);
|
|
6956
7074
|
|
|
6957
|
-
return
|
|
7075
|
+
return _super45.apply(this, arguments);
|
|
6958
7076
|
}
|
|
6959
7077
|
|
|
6960
7078
|
_createClass(CardTitle, null, [{
|
|
@@ -6969,20 +7087,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6969
7087
|
|
|
6970
7088
|
module.exports = CardTitle;
|
|
6971
7089
|
}, {
|
|
6972
|
-
"./card-base.js":
|
|
7090
|
+
"./card-base.js": 69
|
|
6973
7091
|
}],
|
|
6974
|
-
|
|
7092
|
+
79: [function (require, module, exports) {
|
|
6975
7093
|
var CardBase = require("./card-base.js");
|
|
6976
7094
|
|
|
6977
7095
|
var CardVideo = /*#__PURE__*/function (_CardBase10) {
|
|
6978
7096
|
_inherits(CardVideo, _CardBase10);
|
|
6979
7097
|
|
|
6980
|
-
var
|
|
7098
|
+
var _super46 = _createSuper(CardVideo);
|
|
6981
7099
|
|
|
6982
7100
|
function CardVideo() {
|
|
6983
7101
|
_classCallCheck(this, CardVideo);
|
|
6984
7102
|
|
|
6985
|
-
return
|
|
7103
|
+
return _super46.apply(this, arguments);
|
|
6986
7104
|
}
|
|
6987
7105
|
|
|
6988
7106
|
_createClass(CardVideo, null, [{
|
|
@@ -6997,20 +7115,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6997
7115
|
|
|
6998
7116
|
module.exports = CardVideo;
|
|
6999
7117
|
}, {
|
|
7000
|
-
"./card-base.js":
|
|
7118
|
+
"./card-base.js": 69
|
|
7001
7119
|
}],
|
|
7002
|
-
|
|
7120
|
+
80: [function (require, module, exports) {
|
|
7003
7121
|
var CardBase = require("./card-base.js");
|
|
7004
7122
|
|
|
7005
7123
|
var CardYoutube = /*#__PURE__*/function (_CardBase11) {
|
|
7006
7124
|
_inherits(CardYoutube, _CardBase11);
|
|
7007
7125
|
|
|
7008
|
-
var
|
|
7126
|
+
var _super47 = _createSuper(CardYoutube);
|
|
7009
7127
|
|
|
7010
7128
|
function CardYoutube() {
|
|
7011
7129
|
_classCallCheck(this, CardYoutube);
|
|
7012
7130
|
|
|
7013
|
-
return
|
|
7131
|
+
return _super47.apply(this, arguments);
|
|
7014
7132
|
}
|
|
7015
7133
|
|
|
7016
7134
|
_createClass(CardYoutube, null, [{
|
|
@@ -7025,20 +7143,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7025
7143
|
|
|
7026
7144
|
module.exports = CardYoutube;
|
|
7027
7145
|
}, {
|
|
7028
|
-
"./card-base.js":
|
|
7146
|
+
"./card-base.js": 69
|
|
7029
7147
|
}],
|
|
7030
|
-
|
|
7148
|
+
81: [function (require, module, exports) {
|
|
7031
7149
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7032
7150
|
|
|
7033
7151
|
var Page = /*#__PURE__*/function (_PlattarBase18) {
|
|
7034
7152
|
_inherits(Page, _PlattarBase18);
|
|
7035
7153
|
|
|
7036
|
-
var
|
|
7154
|
+
var _super48 = _createSuper(Page);
|
|
7037
7155
|
|
|
7038
7156
|
function Page() {
|
|
7039
7157
|
_classCallCheck(this, Page);
|
|
7040
7158
|
|
|
7041
|
-
return
|
|
7159
|
+
return _super48.apply(this, arguments);
|
|
7042
7160
|
}
|
|
7043
7161
|
|
|
7044
7162
|
_createClass(Page, null, [{
|
|
@@ -7053,20 +7171,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7053
7171
|
|
|
7054
7172
|
module.exports = Page;
|
|
7055
7173
|
}, {
|
|
7056
|
-
"../interfaces/plattar-base.js":
|
|
7174
|
+
"../interfaces/plattar-base.js": 61
|
|
7057
7175
|
}],
|
|
7058
|
-
|
|
7176
|
+
82: [function (require, module, exports) {
|
|
7059
7177
|
var ProductBase = require("./product-base.js");
|
|
7060
7178
|
|
|
7061
7179
|
var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
|
|
7062
7180
|
_inherits(ProductAnnotation, _ProductBase);
|
|
7063
7181
|
|
|
7064
|
-
var
|
|
7182
|
+
var _super49 = _createSuper(ProductAnnotation);
|
|
7065
7183
|
|
|
7066
7184
|
function ProductAnnotation() {
|
|
7067
7185
|
_classCallCheck(this, ProductAnnotation);
|
|
7068
7186
|
|
|
7069
|
-
return
|
|
7187
|
+
return _super49.apply(this, arguments);
|
|
7070
7188
|
}
|
|
7071
7189
|
|
|
7072
7190
|
_createClass(ProductAnnotation, null, [{
|
|
@@ -7081,9 +7199,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7081
7199
|
|
|
7082
7200
|
module.exports = ProductAnnotation;
|
|
7083
7201
|
}, {
|
|
7084
|
-
"./product-base.js":
|
|
7202
|
+
"./product-base.js": 83
|
|
7085
7203
|
}],
|
|
7086
|
-
|
|
7204
|
+
83: [function (require, module, exports) {
|
|
7087
7205
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7088
7206
|
|
|
7089
7207
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -7091,20 +7209,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7091
7209
|
var ProductBase = /*#__PURE__*/function (_PlattarBase19) {
|
|
7092
7210
|
_inherits(ProductBase, _PlattarBase19);
|
|
7093
7211
|
|
|
7094
|
-
var
|
|
7212
|
+
var _super50 = _createSuper(ProductBase);
|
|
7095
7213
|
|
|
7096
7214
|
function ProductBase(id, server) {
|
|
7097
|
-
var
|
|
7215
|
+
var _this59;
|
|
7098
7216
|
|
|
7099
7217
|
_classCallCheck(this, ProductBase);
|
|
7100
7218
|
|
|
7101
|
-
|
|
7219
|
+
_this59 = _super50.call(this, id, server || Server["default"]());
|
|
7102
7220
|
|
|
7103
|
-
if (
|
|
7221
|
+
if (_this59.constructor === ProductBase) {
|
|
7104
7222
|
throw new Error("ProductBase is abstract and cannot be created");
|
|
7105
7223
|
}
|
|
7106
7224
|
|
|
7107
|
-
return
|
|
7225
|
+
return _this59;
|
|
7108
7226
|
}
|
|
7109
7227
|
|
|
7110
7228
|
_createClass(ProductBase, null, [{
|
|
@@ -7123,23 +7241,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7123
7241
|
|
|
7124
7242
|
module.exports = ProductBase;
|
|
7125
7243
|
}, {
|
|
7126
|
-
"../../server/plattar-server.js":
|
|
7127
|
-
"../interfaces/plattar-base.js":
|
|
7128
|
-
"./product-annotation.js":
|
|
7129
|
-
"./product-variation.js":
|
|
7244
|
+
"../../server/plattar-server.js": 44,
|
|
7245
|
+
"../interfaces/plattar-base.js": 61,
|
|
7246
|
+
"./product-annotation.js": 82,
|
|
7247
|
+
"./product-variation.js": 84
|
|
7130
7248
|
}],
|
|
7131
|
-
|
|
7249
|
+
84: [function (require, module, exports) {
|
|
7132
7250
|
var ProductBase = require("./product-base.js");
|
|
7133
7251
|
|
|
7134
7252
|
var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
|
|
7135
7253
|
_inherits(ProductVariation, _ProductBase2);
|
|
7136
7254
|
|
|
7137
|
-
var
|
|
7255
|
+
var _super51 = _createSuper(ProductVariation);
|
|
7138
7256
|
|
|
7139
7257
|
function ProductVariation() {
|
|
7140
7258
|
_classCallCheck(this, ProductVariation);
|
|
7141
7259
|
|
|
7142
|
-
return
|
|
7260
|
+
return _super51.apply(this, arguments);
|
|
7143
7261
|
}
|
|
7144
7262
|
|
|
7145
7263
|
_createClass(ProductVariation, null, [{
|
|
@@ -7154,20 +7272,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7154
7272
|
|
|
7155
7273
|
module.exports = ProductVariation;
|
|
7156
7274
|
}, {
|
|
7157
|
-
"./product-base.js":
|
|
7275
|
+
"./product-base.js": 83
|
|
7158
7276
|
}],
|
|
7159
|
-
|
|
7277
|
+
85: [function (require, module, exports) {
|
|
7160
7278
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7161
7279
|
|
|
7162
7280
|
var Product = /*#__PURE__*/function (_PlattarBase20) {
|
|
7163
7281
|
_inherits(Product, _PlattarBase20);
|
|
7164
7282
|
|
|
7165
|
-
var
|
|
7283
|
+
var _super52 = _createSuper(Product);
|
|
7166
7284
|
|
|
7167
7285
|
function Product() {
|
|
7168
7286
|
_classCallCheck(this, Product);
|
|
7169
7287
|
|
|
7170
|
-
return
|
|
7288
|
+
return _super52.apply(this, arguments);
|
|
7171
7289
|
}
|
|
7172
7290
|
|
|
7173
7291
|
_createClass(Product, null, [{
|
|
@@ -7182,20 +7300,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7182
7300
|
|
|
7183
7301
|
module.exports = Product;
|
|
7184
7302
|
}, {
|
|
7185
|
-
"../interfaces/plattar-base.js":
|
|
7303
|
+
"../interfaces/plattar-base.js": 61
|
|
7186
7304
|
}],
|
|
7187
|
-
|
|
7305
|
+
86: [function (require, module, exports) {
|
|
7188
7306
|
var SceneBase = require("./scene-base.js");
|
|
7189
7307
|
|
|
7190
7308
|
var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
|
|
7191
7309
|
_inherits(SceneAnnotation, _SceneBase);
|
|
7192
7310
|
|
|
7193
|
-
var
|
|
7311
|
+
var _super53 = _createSuper(SceneAnnotation);
|
|
7194
7312
|
|
|
7195
7313
|
function SceneAnnotation() {
|
|
7196
7314
|
_classCallCheck(this, SceneAnnotation);
|
|
7197
7315
|
|
|
7198
|
-
return
|
|
7316
|
+
return _super53.apply(this, arguments);
|
|
7199
7317
|
}
|
|
7200
7318
|
|
|
7201
7319
|
_createClass(SceneAnnotation, null, [{
|
|
@@ -7210,20 +7328,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7210
7328
|
|
|
7211
7329
|
module.exports = SceneAnnotation;
|
|
7212
7330
|
}, {
|
|
7213
|
-
"./scene-base.js":
|
|
7331
|
+
"./scene-base.js": 88
|
|
7214
7332
|
}],
|
|
7215
|
-
|
|
7333
|
+
87: [function (require, module, exports) {
|
|
7216
7334
|
var SceneBase = require("./scene-base.js");
|
|
7217
7335
|
|
|
7218
7336
|
var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
|
|
7219
7337
|
_inherits(SceneAudio, _SceneBase2);
|
|
7220
7338
|
|
|
7221
|
-
var
|
|
7339
|
+
var _super54 = _createSuper(SceneAudio);
|
|
7222
7340
|
|
|
7223
7341
|
function SceneAudio() {
|
|
7224
7342
|
_classCallCheck(this, SceneAudio);
|
|
7225
7343
|
|
|
7226
|
-
return
|
|
7344
|
+
return _super54.apply(this, arguments);
|
|
7227
7345
|
}
|
|
7228
7346
|
|
|
7229
7347
|
_createClass(SceneAudio, null, [{
|
|
@@ -7238,9 +7356,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7238
7356
|
|
|
7239
7357
|
module.exports = SceneAudio;
|
|
7240
7358
|
}, {
|
|
7241
|
-
"./scene-base.js":
|
|
7359
|
+
"./scene-base.js": 88
|
|
7242
7360
|
}],
|
|
7243
|
-
|
|
7361
|
+
88: [function (require, module, exports) {
|
|
7244
7362
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7245
7363
|
|
|
7246
7364
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -7248,20 +7366,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7248
7366
|
var SceneBase = /*#__PURE__*/function (_PlattarBase21) {
|
|
7249
7367
|
_inherits(SceneBase, _PlattarBase21);
|
|
7250
7368
|
|
|
7251
|
-
var
|
|
7369
|
+
var _super55 = _createSuper(SceneBase);
|
|
7252
7370
|
|
|
7253
7371
|
function SceneBase(id, server) {
|
|
7254
|
-
var
|
|
7372
|
+
var _this60;
|
|
7255
7373
|
|
|
7256
7374
|
_classCallCheck(this, SceneBase);
|
|
7257
7375
|
|
|
7258
|
-
|
|
7376
|
+
_this60 = _super55.call(this, id, server || Server["default"]());
|
|
7259
7377
|
|
|
7260
|
-
if (
|
|
7378
|
+
if (_this60.constructor === SceneBase) {
|
|
7261
7379
|
throw new Error("SceneBase is abstract and cannot be created");
|
|
7262
7380
|
}
|
|
7263
7381
|
|
|
7264
|
-
return
|
|
7382
|
+
return _this60;
|
|
7265
7383
|
}
|
|
7266
7384
|
|
|
7267
7385
|
_createClass(SceneBase, null, [{
|
|
@@ -7304,35 +7422,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7304
7422
|
|
|
7305
7423
|
module.exports = SceneBase;
|
|
7306
7424
|
}, {
|
|
7307
|
-
"../../server/plattar-server.js":
|
|
7308
|
-
"../interfaces/plattar-base.js":
|
|
7309
|
-
"./scene-annotation.js":
|
|
7310
|
-
"./scene-audio.js":
|
|
7311
|
-
"./scene-button.js":
|
|
7312
|
-
"./scene-camera.js":
|
|
7313
|
-
"./scene-carousel.js":
|
|
7314
|
-
"./scene-image.js":
|
|
7315
|
-
"./scene-model.js":
|
|
7316
|
-
"./scene-panorama.js":
|
|
7317
|
-
"./scene-poller.js":
|
|
7318
|
-
"./scene-product.js":
|
|
7319
|
-
"./scene-shadow.js":
|
|
7320
|
-
"./scene-video.js":
|
|
7321
|
-
"./scene-volumetric.js":
|
|
7322
|
-
"./scene-youtube.js":
|
|
7425
|
+
"../../server/plattar-server.js": 44,
|
|
7426
|
+
"../interfaces/plattar-base.js": 61,
|
|
7427
|
+
"./scene-annotation.js": 86,
|
|
7428
|
+
"./scene-audio.js": 87,
|
|
7429
|
+
"./scene-button.js": 89,
|
|
7430
|
+
"./scene-camera.js": 90,
|
|
7431
|
+
"./scene-carousel.js": 91,
|
|
7432
|
+
"./scene-image.js": 92,
|
|
7433
|
+
"./scene-model.js": 93,
|
|
7434
|
+
"./scene-panorama.js": 94,
|
|
7435
|
+
"./scene-poller.js": 95,
|
|
7436
|
+
"./scene-product.js": 96,
|
|
7437
|
+
"./scene-shadow.js": 98,
|
|
7438
|
+
"./scene-video.js": 99,
|
|
7439
|
+
"./scene-volumetric.js": 100,
|
|
7440
|
+
"./scene-youtube.js": 101
|
|
7323
7441
|
}],
|
|
7324
|
-
|
|
7442
|
+
89: [function (require, module, exports) {
|
|
7325
7443
|
var SceneBase = require("./scene-base.js");
|
|
7326
7444
|
|
|
7327
7445
|
var SceneButton = /*#__PURE__*/function (_SceneBase3) {
|
|
7328
7446
|
_inherits(SceneButton, _SceneBase3);
|
|
7329
7447
|
|
|
7330
|
-
var
|
|
7448
|
+
var _super56 = _createSuper(SceneButton);
|
|
7331
7449
|
|
|
7332
7450
|
function SceneButton() {
|
|
7333
7451
|
_classCallCheck(this, SceneButton);
|
|
7334
7452
|
|
|
7335
|
-
return
|
|
7453
|
+
return _super56.apply(this, arguments);
|
|
7336
7454
|
}
|
|
7337
7455
|
|
|
7338
7456
|
_createClass(SceneButton, null, [{
|
|
@@ -7347,20 +7465,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7347
7465
|
|
|
7348
7466
|
module.exports = SceneButton;
|
|
7349
7467
|
}, {
|
|
7350
|
-
"./scene-base.js":
|
|
7468
|
+
"./scene-base.js": 88
|
|
7351
7469
|
}],
|
|
7352
|
-
|
|
7470
|
+
90: [function (require, module, exports) {
|
|
7353
7471
|
var SceneBase = require("./scene-base.js");
|
|
7354
7472
|
|
|
7355
7473
|
var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
|
|
7356
7474
|
_inherits(SceneCamera, _SceneBase4);
|
|
7357
7475
|
|
|
7358
|
-
var
|
|
7476
|
+
var _super57 = _createSuper(SceneCamera);
|
|
7359
7477
|
|
|
7360
7478
|
function SceneCamera() {
|
|
7361
7479
|
_classCallCheck(this, SceneCamera);
|
|
7362
7480
|
|
|
7363
|
-
return
|
|
7481
|
+
return _super57.apply(this, arguments);
|
|
7364
7482
|
}
|
|
7365
7483
|
|
|
7366
7484
|
_createClass(SceneCamera, null, [{
|
|
@@ -7375,20 +7493,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7375
7493
|
|
|
7376
7494
|
module.exports = SceneCamera;
|
|
7377
7495
|
}, {
|
|
7378
|
-
"./scene-base.js":
|
|
7496
|
+
"./scene-base.js": 88
|
|
7379
7497
|
}],
|
|
7380
|
-
|
|
7498
|
+
91: [function (require, module, exports) {
|
|
7381
7499
|
var SceneBase = require("./scene-base.js");
|
|
7382
7500
|
|
|
7383
7501
|
var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
|
|
7384
7502
|
_inherits(SceneCarousel, _SceneBase5);
|
|
7385
7503
|
|
|
7386
|
-
var
|
|
7504
|
+
var _super58 = _createSuper(SceneCarousel);
|
|
7387
7505
|
|
|
7388
7506
|
function SceneCarousel() {
|
|
7389
7507
|
_classCallCheck(this, SceneCarousel);
|
|
7390
7508
|
|
|
7391
|
-
return
|
|
7509
|
+
return _super58.apply(this, arguments);
|
|
7392
7510
|
}
|
|
7393
7511
|
|
|
7394
7512
|
_createClass(SceneCarousel, null, [{
|
|
@@ -7403,20 +7521,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7403
7521
|
|
|
7404
7522
|
module.exports = SceneCarousel;
|
|
7405
7523
|
}, {
|
|
7406
|
-
"./scene-base.js":
|
|
7524
|
+
"./scene-base.js": 88
|
|
7407
7525
|
}],
|
|
7408
|
-
|
|
7526
|
+
92: [function (require, module, exports) {
|
|
7409
7527
|
var SceneBase = require("./scene-base.js");
|
|
7410
7528
|
|
|
7411
7529
|
var SceneImage = /*#__PURE__*/function (_SceneBase6) {
|
|
7412
7530
|
_inherits(SceneImage, _SceneBase6);
|
|
7413
7531
|
|
|
7414
|
-
var
|
|
7532
|
+
var _super59 = _createSuper(SceneImage);
|
|
7415
7533
|
|
|
7416
7534
|
function SceneImage() {
|
|
7417
7535
|
_classCallCheck(this, SceneImage);
|
|
7418
7536
|
|
|
7419
|
-
return
|
|
7537
|
+
return _super59.apply(this, arguments);
|
|
7420
7538
|
}
|
|
7421
7539
|
|
|
7422
7540
|
_createClass(SceneImage, null, [{
|
|
@@ -7431,20 +7549,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7431
7549
|
|
|
7432
7550
|
module.exports = SceneImage;
|
|
7433
7551
|
}, {
|
|
7434
|
-
"./scene-base.js":
|
|
7552
|
+
"./scene-base.js": 88
|
|
7435
7553
|
}],
|
|
7436
|
-
|
|
7554
|
+
93: [function (require, module, exports) {
|
|
7437
7555
|
var SceneBase = require("./scene-base.js");
|
|
7438
7556
|
|
|
7439
7557
|
var SceneModel = /*#__PURE__*/function (_SceneBase7) {
|
|
7440
7558
|
_inherits(SceneModel, _SceneBase7);
|
|
7441
7559
|
|
|
7442
|
-
var
|
|
7560
|
+
var _super60 = _createSuper(SceneModel);
|
|
7443
7561
|
|
|
7444
7562
|
function SceneModel() {
|
|
7445
7563
|
_classCallCheck(this, SceneModel);
|
|
7446
7564
|
|
|
7447
|
-
return
|
|
7565
|
+
return _super60.apply(this, arguments);
|
|
7448
7566
|
}
|
|
7449
7567
|
|
|
7450
7568
|
_createClass(SceneModel, null, [{
|
|
@@ -7459,20 +7577,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7459
7577
|
|
|
7460
7578
|
module.exports = SceneModel;
|
|
7461
7579
|
}, {
|
|
7462
|
-
"./scene-base.js":
|
|
7580
|
+
"./scene-base.js": 88
|
|
7463
7581
|
}],
|
|
7464
|
-
|
|
7582
|
+
94: [function (require, module, exports) {
|
|
7465
7583
|
var SceneBase = require("./scene-base.js");
|
|
7466
7584
|
|
|
7467
7585
|
var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
|
|
7468
7586
|
_inherits(ScenePanorama, _SceneBase8);
|
|
7469
7587
|
|
|
7470
|
-
var
|
|
7588
|
+
var _super61 = _createSuper(ScenePanorama);
|
|
7471
7589
|
|
|
7472
7590
|
function ScenePanorama() {
|
|
7473
7591
|
_classCallCheck(this, ScenePanorama);
|
|
7474
7592
|
|
|
7475
|
-
return
|
|
7593
|
+
return _super61.apply(this, arguments);
|
|
7476
7594
|
}
|
|
7477
7595
|
|
|
7478
7596
|
_createClass(ScenePanorama, null, [{
|
|
@@ -7487,20 +7605,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7487
7605
|
|
|
7488
7606
|
module.exports = ScenePanorama;
|
|
7489
7607
|
}, {
|
|
7490
|
-
"./scene-base.js":
|
|
7608
|
+
"./scene-base.js": 88
|
|
7491
7609
|
}],
|
|
7492
|
-
|
|
7610
|
+
95: [function (require, module, exports) {
|
|
7493
7611
|
var SceneBase = require("./scene-base.js");
|
|
7494
7612
|
|
|
7495
7613
|
var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
|
|
7496
7614
|
_inherits(ScenePoller, _SceneBase9);
|
|
7497
7615
|
|
|
7498
|
-
var
|
|
7616
|
+
var _super62 = _createSuper(ScenePoller);
|
|
7499
7617
|
|
|
7500
7618
|
function ScenePoller() {
|
|
7501
7619
|
_classCallCheck(this, ScenePoller);
|
|
7502
7620
|
|
|
7503
|
-
return
|
|
7621
|
+
return _super62.apply(this, arguments);
|
|
7504
7622
|
}
|
|
7505
7623
|
|
|
7506
7624
|
_createClass(ScenePoller, null, [{
|
|
@@ -7515,20 +7633,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7515
7633
|
|
|
7516
7634
|
module.exports = ScenePoller;
|
|
7517
7635
|
}, {
|
|
7518
|
-
"./scene-base.js":
|
|
7636
|
+
"./scene-base.js": 88
|
|
7519
7637
|
}],
|
|
7520
|
-
|
|
7638
|
+
96: [function (require, module, exports) {
|
|
7521
7639
|
var SceneBase = require("./scene-base.js");
|
|
7522
7640
|
|
|
7523
7641
|
var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
|
|
7524
7642
|
_inherits(SceneProduct, _SceneBase10);
|
|
7525
7643
|
|
|
7526
|
-
var
|
|
7644
|
+
var _super63 = _createSuper(SceneProduct);
|
|
7527
7645
|
|
|
7528
7646
|
function SceneProduct() {
|
|
7529
7647
|
_classCallCheck(this, SceneProduct);
|
|
7530
7648
|
|
|
7531
|
-
return
|
|
7649
|
+
return _super63.apply(this, arguments);
|
|
7532
7650
|
}
|
|
7533
7651
|
|
|
7534
7652
|
_createClass(SceneProduct, null, [{
|
|
@@ -7543,20 +7661,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7543
7661
|
|
|
7544
7662
|
module.exports = SceneProduct;
|
|
7545
7663
|
}, {
|
|
7546
|
-
"./scene-base.js":
|
|
7664
|
+
"./scene-base.js": 88
|
|
7547
7665
|
}],
|
|
7548
|
-
|
|
7666
|
+
97: [function (require, module, exports) {
|
|
7549
7667
|
var SceneBase = require("./scene-base.js");
|
|
7550
7668
|
|
|
7551
7669
|
var SceneScript = /*#__PURE__*/function (_SceneBase11) {
|
|
7552
7670
|
_inherits(SceneScript, _SceneBase11);
|
|
7553
7671
|
|
|
7554
|
-
var
|
|
7672
|
+
var _super64 = _createSuper(SceneScript);
|
|
7555
7673
|
|
|
7556
7674
|
function SceneScript() {
|
|
7557
7675
|
_classCallCheck(this, SceneScript);
|
|
7558
7676
|
|
|
7559
|
-
return
|
|
7677
|
+
return _super64.apply(this, arguments);
|
|
7560
7678
|
}
|
|
7561
7679
|
|
|
7562
7680
|
_createClass(SceneScript, null, [{
|
|
@@ -7571,20 +7689,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7571
7689
|
|
|
7572
7690
|
module.exports = SceneScript;
|
|
7573
7691
|
}, {
|
|
7574
|
-
"./scene-base.js":
|
|
7692
|
+
"./scene-base.js": 88
|
|
7575
7693
|
}],
|
|
7576
|
-
|
|
7694
|
+
98: [function (require, module, exports) {
|
|
7577
7695
|
var SceneBase = require("./scene-base.js");
|
|
7578
7696
|
|
|
7579
7697
|
var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
|
|
7580
7698
|
_inherits(SceneShadow, _SceneBase12);
|
|
7581
7699
|
|
|
7582
|
-
var
|
|
7700
|
+
var _super65 = _createSuper(SceneShadow);
|
|
7583
7701
|
|
|
7584
7702
|
function SceneShadow() {
|
|
7585
7703
|
_classCallCheck(this, SceneShadow);
|
|
7586
7704
|
|
|
7587
|
-
return
|
|
7705
|
+
return _super65.apply(this, arguments);
|
|
7588
7706
|
}
|
|
7589
7707
|
|
|
7590
7708
|
_createClass(SceneShadow, null, [{
|
|
@@ -7599,20 +7717,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7599
7717
|
|
|
7600
7718
|
module.exports = SceneShadow;
|
|
7601
7719
|
}, {
|
|
7602
|
-
"./scene-base.js":
|
|
7720
|
+
"./scene-base.js": 88
|
|
7603
7721
|
}],
|
|
7604
|
-
|
|
7722
|
+
99: [function (require, module, exports) {
|
|
7605
7723
|
var SceneBase = require("./scene-base.js");
|
|
7606
7724
|
|
|
7607
7725
|
var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
|
|
7608
7726
|
_inherits(SceneVideo, _SceneBase13);
|
|
7609
7727
|
|
|
7610
|
-
var
|
|
7728
|
+
var _super66 = _createSuper(SceneVideo);
|
|
7611
7729
|
|
|
7612
7730
|
function SceneVideo() {
|
|
7613
7731
|
_classCallCheck(this, SceneVideo);
|
|
7614
7732
|
|
|
7615
|
-
return
|
|
7733
|
+
return _super66.apply(this, arguments);
|
|
7616
7734
|
}
|
|
7617
7735
|
|
|
7618
7736
|
_createClass(SceneVideo, null, [{
|
|
@@ -7627,20 +7745,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7627
7745
|
|
|
7628
7746
|
module.exports = SceneVideo;
|
|
7629
7747
|
}, {
|
|
7630
|
-
"./scene-base.js":
|
|
7748
|
+
"./scene-base.js": 88
|
|
7631
7749
|
}],
|
|
7632
|
-
|
|
7750
|
+
100: [function (require, module, exports) {
|
|
7633
7751
|
var SceneBase = require("./scene-base.js");
|
|
7634
7752
|
|
|
7635
7753
|
var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
|
|
7636
7754
|
_inherits(SceneVolumetric, _SceneBase14);
|
|
7637
7755
|
|
|
7638
|
-
var
|
|
7756
|
+
var _super67 = _createSuper(SceneVolumetric);
|
|
7639
7757
|
|
|
7640
7758
|
function SceneVolumetric() {
|
|
7641
7759
|
_classCallCheck(this, SceneVolumetric);
|
|
7642
7760
|
|
|
7643
|
-
return
|
|
7761
|
+
return _super67.apply(this, arguments);
|
|
7644
7762
|
}
|
|
7645
7763
|
|
|
7646
7764
|
_createClass(SceneVolumetric, null, [{
|
|
@@ -7655,20 +7773,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7655
7773
|
|
|
7656
7774
|
module.exports = SceneVolumetric;
|
|
7657
7775
|
}, {
|
|
7658
|
-
"./scene-base.js":
|
|
7776
|
+
"./scene-base.js": 88
|
|
7659
7777
|
}],
|
|
7660
|
-
|
|
7778
|
+
101: [function (require, module, exports) {
|
|
7661
7779
|
var SceneBase = require("./scene-base.js");
|
|
7662
7780
|
|
|
7663
7781
|
var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
|
|
7664
7782
|
_inherits(SceneYoutube, _SceneBase15);
|
|
7665
7783
|
|
|
7666
|
-
var
|
|
7784
|
+
var _super68 = _createSuper(SceneYoutube);
|
|
7667
7785
|
|
|
7668
7786
|
function SceneYoutube() {
|
|
7669
7787
|
_classCallCheck(this, SceneYoutube);
|
|
7670
7788
|
|
|
7671
|
-
return
|
|
7789
|
+
return _super68.apply(this, arguments);
|
|
7672
7790
|
}
|
|
7673
7791
|
|
|
7674
7792
|
_createClass(SceneYoutube, null, [{
|
|
@@ -7683,20 +7801,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7683
7801
|
|
|
7684
7802
|
module.exports = SceneYoutube;
|
|
7685
7803
|
}, {
|
|
7686
|
-
"./scene-base.js":
|
|
7804
|
+
"./scene-base.js": 88
|
|
7687
7805
|
}],
|
|
7688
|
-
|
|
7806
|
+
102: [function (require, module, exports) {
|
|
7689
7807
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7690
7808
|
|
|
7691
7809
|
var Scene = /*#__PURE__*/function (_PlattarBase22) {
|
|
7692
7810
|
_inherits(Scene, _PlattarBase22);
|
|
7693
7811
|
|
|
7694
|
-
var
|
|
7812
|
+
var _super69 = _createSuper(Scene);
|
|
7695
7813
|
|
|
7696
7814
|
function Scene() {
|
|
7697
7815
|
_classCallCheck(this, Scene);
|
|
7698
7816
|
|
|
7699
|
-
return
|
|
7817
|
+
return _super69.apply(this, arguments);
|
|
7700
7818
|
}
|
|
7701
7819
|
|
|
7702
7820
|
_createClass(Scene, null, [{
|
|
@@ -7711,20 +7829,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7711
7829
|
|
|
7712
7830
|
module.exports = Scene;
|
|
7713
7831
|
}, {
|
|
7714
|
-
"../interfaces/plattar-base.js":
|
|
7832
|
+
"../interfaces/plattar-base.js": 61
|
|
7715
7833
|
}],
|
|
7716
|
-
|
|
7834
|
+
103: [function (require, module, exports) {
|
|
7717
7835
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7718
7836
|
|
|
7719
7837
|
var TriggerImage = /*#__PURE__*/function (_PlattarBase23) {
|
|
7720
7838
|
_inherits(TriggerImage, _PlattarBase23);
|
|
7721
7839
|
|
|
7722
|
-
var
|
|
7840
|
+
var _super70 = _createSuper(TriggerImage);
|
|
7723
7841
|
|
|
7724
7842
|
function TriggerImage() {
|
|
7725
7843
|
_classCallCheck(this, TriggerImage);
|
|
7726
7844
|
|
|
7727
|
-
return
|
|
7845
|
+
return _super70.apply(this, arguments);
|
|
7728
7846
|
}
|
|
7729
7847
|
|
|
7730
7848
|
_createClass(TriggerImage, null, [{
|
|
@@ -7739,9 +7857,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7739
7857
|
|
|
7740
7858
|
module.exports = TriggerImage;
|
|
7741
7859
|
}, {
|
|
7742
|
-
"../interfaces/plattar-base.js":
|
|
7860
|
+
"../interfaces/plattar-base.js": 61
|
|
7743
7861
|
}],
|
|
7744
|
-
|
|
7862
|
+
104: [function (require, module, exports) {
|
|
7745
7863
|
var Application = require("../types/application.js"); // import Scene types and its children
|
|
7746
7864
|
|
|
7747
7865
|
|
|
@@ -8128,81 +8246,81 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8128
8246
|
|
|
8129
8247
|
module.exports = PlattarUtil;
|
|
8130
8248
|
}, {
|
|
8131
|
-
"../types/application.js":
|
|
8132
|
-
"../types/content-pipeline/brief.js":
|
|
8133
|
-
"../types/content-pipeline/comment-brief.js":
|
|
8134
|
-
"../types/content-pipeline/comment-quote.js":
|
|
8135
|
-
"../types/content-pipeline/comment-solution.js":
|
|
8136
|
-
"../types/content-pipeline/folder.js":
|
|
8137
|
-
"../types/content-pipeline/pipeline-user.js":
|
|
8138
|
-
"../types/content-pipeline/quote.js":
|
|
8139
|
-
"../types/content-pipeline/rating.js":
|
|
8140
|
-
"../types/content-pipeline/solution.js":
|
|
8141
|
-
"../types/file/file-audio.js":
|
|
8142
|
-
"../types/file/file-image.js":
|
|
8143
|
-
"../types/file/file-model.js":
|
|
8144
|
-
"../types/file/file-script.js":
|
|
8145
|
-
"../types/file/file-video.js":
|
|
8146
|
-
"../types/interfaces/plattar-object.js":
|
|
8147
|
-
"../types/misc/application-build.js":
|
|
8148
|
-
"../types/misc/asset-library":
|
|
8149
|
-
"../types/misc/async-job.js":
|
|
8150
|
-
"../types/misc/script-event.js":
|
|
8151
|
-
"../types/misc/tag.js":
|
|
8152
|
-
"../types/page/card-button.js":
|
|
8153
|
-
"../types/page/card-html.js":
|
|
8154
|
-
"../types/page/card-iframe.js":
|
|
8155
|
-
"../types/page/card-image.js":
|
|
8156
|
-
"../types/page/card-map.js":
|
|
8157
|
-
"../types/page/card-paragraph.js":
|
|
8158
|
-
"../types/page/card-row.js":
|
|
8159
|
-
"../types/page/card-slider.js":
|
|
8160
|
-
"../types/page/card-title.js":
|
|
8161
|
-
"../types/page/card-video.js":
|
|
8162
|
-
"../types/page/card-youtube.js":
|
|
8163
|
-
"../types/page/page.js":
|
|
8164
|
-
"../types/product/product-annotation.js":
|
|
8165
|
-
"../types/product/product-variation.js":
|
|
8166
|
-
"../types/product/product.js":
|
|
8167
|
-
"../types/scene/scene-annotation.js":
|
|
8168
|
-
"../types/scene/scene-audio.js":
|
|
8169
|
-
"../types/scene/scene-button.js":
|
|
8170
|
-
"../types/scene/scene-camera.js":
|
|
8171
|
-
"../types/scene/scene-carousel.js":
|
|
8172
|
-
"../types/scene/scene-image.js":
|
|
8173
|
-
"../types/scene/scene-model.js":
|
|
8174
|
-
"../types/scene/scene-panorama.js":
|
|
8175
|
-
"../types/scene/scene-poller.js":
|
|
8176
|
-
"../types/scene/scene-product.js":
|
|
8177
|
-
"../types/scene/scene-script.js":
|
|
8178
|
-
"../types/scene/scene-shadow.js":
|
|
8179
|
-
"../types/scene/scene-video.js":
|
|
8180
|
-
"../types/scene/scene-volumetric.js":
|
|
8181
|
-
"../types/scene/scene-youtube.js":
|
|
8182
|
-
"../types/scene/scene.js":
|
|
8183
|
-
"../types/trigger/trigger-image.js":
|
|
8249
|
+
"../types/application.js": 45,
|
|
8250
|
+
"../types/content-pipeline/brief.js": 46,
|
|
8251
|
+
"../types/content-pipeline/comment-brief.js": 47,
|
|
8252
|
+
"../types/content-pipeline/comment-quote.js": 48,
|
|
8253
|
+
"../types/content-pipeline/comment-solution.js": 49,
|
|
8254
|
+
"../types/content-pipeline/folder.js": 50,
|
|
8255
|
+
"../types/content-pipeline/pipeline-user.js": 51,
|
|
8256
|
+
"../types/content-pipeline/quote.js": 52,
|
|
8257
|
+
"../types/content-pipeline/rating.js": 53,
|
|
8258
|
+
"../types/content-pipeline/solution.js": 54,
|
|
8259
|
+
"../types/file/file-audio.js": 55,
|
|
8260
|
+
"../types/file/file-image.js": 57,
|
|
8261
|
+
"../types/file/file-model.js": 58,
|
|
8262
|
+
"../types/file/file-script.js": 59,
|
|
8263
|
+
"../types/file/file-video.js": 60,
|
|
8264
|
+
"../types/interfaces/plattar-object.js": 63,
|
|
8265
|
+
"../types/misc/application-build.js": 64,
|
|
8266
|
+
"../types/misc/asset-library": 65,
|
|
8267
|
+
"../types/misc/async-job.js": 66,
|
|
8268
|
+
"../types/misc/script-event.js": 67,
|
|
8269
|
+
"../types/misc/tag.js": 68,
|
|
8270
|
+
"../types/page/card-button.js": 70,
|
|
8271
|
+
"../types/page/card-html.js": 71,
|
|
8272
|
+
"../types/page/card-iframe.js": 72,
|
|
8273
|
+
"../types/page/card-image.js": 73,
|
|
8274
|
+
"../types/page/card-map.js": 74,
|
|
8275
|
+
"../types/page/card-paragraph.js": 75,
|
|
8276
|
+
"../types/page/card-row.js": 76,
|
|
8277
|
+
"../types/page/card-slider.js": 77,
|
|
8278
|
+
"../types/page/card-title.js": 78,
|
|
8279
|
+
"../types/page/card-video.js": 79,
|
|
8280
|
+
"../types/page/card-youtube.js": 80,
|
|
8281
|
+
"../types/page/page.js": 81,
|
|
8282
|
+
"../types/product/product-annotation.js": 82,
|
|
8283
|
+
"../types/product/product-variation.js": 84,
|
|
8284
|
+
"../types/product/product.js": 85,
|
|
8285
|
+
"../types/scene/scene-annotation.js": 86,
|
|
8286
|
+
"../types/scene/scene-audio.js": 87,
|
|
8287
|
+
"../types/scene/scene-button.js": 89,
|
|
8288
|
+
"../types/scene/scene-camera.js": 90,
|
|
8289
|
+
"../types/scene/scene-carousel.js": 91,
|
|
8290
|
+
"../types/scene/scene-image.js": 92,
|
|
8291
|
+
"../types/scene/scene-model.js": 93,
|
|
8292
|
+
"../types/scene/scene-panorama.js": 94,
|
|
8293
|
+
"../types/scene/scene-poller.js": 95,
|
|
8294
|
+
"../types/scene/scene-product.js": 96,
|
|
8295
|
+
"../types/scene/scene-script.js": 97,
|
|
8296
|
+
"../types/scene/scene-shadow.js": 98,
|
|
8297
|
+
"../types/scene/scene-video.js": 99,
|
|
8298
|
+
"../types/scene/scene-volumetric.js": 100,
|
|
8299
|
+
"../types/scene/scene-youtube.js": 101,
|
|
8300
|
+
"../types/scene/scene.js": 102,
|
|
8301
|
+
"../types/trigger/trigger-image.js": 103
|
|
8184
8302
|
}],
|
|
8185
|
-
|
|
8303
|
+
105: [function (require, module, exports) {
|
|
8186
8304
|
module.exports = "1.120.1";
|
|
8187
8305
|
}, {}],
|
|
8188
|
-
|
|
8306
|
+
106: [function (require, module, exports) {
|
|
8189
8307
|
var QRCodeStyling = require("qr-code-styling");
|
|
8190
8308
|
|
|
8191
8309
|
var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
|
|
8192
8310
|
_inherits(BaseElement, _HTMLElement2);
|
|
8193
8311
|
|
|
8194
|
-
var
|
|
8312
|
+
var _super71 = _createSuper(BaseElement);
|
|
8195
8313
|
|
|
8196
8314
|
function BaseElement() {
|
|
8197
8315
|
_classCallCheck(this, BaseElement);
|
|
8198
8316
|
|
|
8199
|
-
return
|
|
8317
|
+
return _super71.call(this);
|
|
8200
8318
|
}
|
|
8201
8319
|
|
|
8202
8320
|
_createClass(BaseElement, [{
|
|
8203
8321
|
key: "connectedCallback",
|
|
8204
8322
|
value: function connectedCallback() {
|
|
8205
|
-
var
|
|
8323
|
+
var _this61 = this;
|
|
8206
8324
|
|
|
8207
8325
|
if (this.hasAttribute("url")) {
|
|
8208
8326
|
this.renderQRCode();
|
|
@@ -8211,8 +8329,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8211
8329
|
var observer = new MutationObserver(function (mutations) {
|
|
8212
8330
|
mutations.forEach(function (mutation) {
|
|
8213
8331
|
if (mutation.type === "attributes") {
|
|
8214
|
-
if (
|
|
8215
|
-
|
|
8332
|
+
if (_this61.hasAttribute("url")) {
|
|
8333
|
+
_this61.renderQRCode();
|
|
8216
8334
|
}
|
|
8217
8335
|
}
|
|
8218
8336
|
});
|
|
@@ -8236,7 +8354,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8236
8354
|
}, {
|
|
8237
8355
|
key: "renderQRCode",
|
|
8238
8356
|
value: function renderQRCode() {
|
|
8239
|
-
var
|
|
8357
|
+
var _this62 = this;
|
|
8240
8358
|
|
|
8241
8359
|
var url = this.hasAttribute("url") ? this.getAttribute("url") : undefined;
|
|
8242
8360
|
|
|
@@ -8346,11 +8464,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8346
8464
|
|
|
8347
8465
|
if (shortenURL && shortenURL.toLowerCase() === "true") {
|
|
8348
8466
|
this._ShortenURL(url).then(function (newURL) {
|
|
8349
|
-
|
|
8467
|
+
_this62._GenerateQRCode(newURL, width, height);
|
|
8350
8468
|
})["catch"](function (_err) {
|
|
8351
8469
|
console.warn(_err); // ignore error and just generate normal QR Code
|
|
8352
8470
|
|
|
8353
|
-
|
|
8471
|
+
_this62._GenerateQRCode(url, width, height);
|
|
8354
8472
|
});
|
|
8355
8473
|
} else {
|
|
8356
8474
|
this._GenerateQRCode(url, width, height);
|
|
@@ -8410,10 +8528,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8410
8528
|
}, {
|
|
8411
8529
|
key: "_ShortenURL",
|
|
8412
8530
|
value: function _ShortenURL(url) {
|
|
8413
|
-
var
|
|
8531
|
+
var _this63 = this;
|
|
8414
8532
|
|
|
8415
8533
|
return new Promise(function (accept, reject) {
|
|
8416
|
-
if (!
|
|
8534
|
+
if (!_this63._IsFetchAPISupported()) {
|
|
8417
8535
|
return reject(new Error("PlattarQR._ShortenURL() - fetch api not supported, cannot proceed"));
|
|
8418
8536
|
}
|
|
8419
8537
|
|
|
@@ -8443,20 +8561,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8443
8561
|
|
|
8444
8562
|
module.exports = BaseElement;
|
|
8445
8563
|
}, {
|
|
8446
|
-
"qr-code-styling":
|
|
8564
|
+
"qr-code-styling": 133
|
|
8447
8565
|
}],
|
|
8448
|
-
|
|
8566
|
+
107: [function (require, module, exports) {
|
|
8449
8567
|
var BaseElement = require("./base/base-element.js");
|
|
8450
8568
|
|
|
8451
8569
|
var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
|
|
8452
8570
|
_inherits(QRCodeElement, _BaseElement);
|
|
8453
8571
|
|
|
8454
|
-
var
|
|
8572
|
+
var _super72 = _createSuper(QRCodeElement);
|
|
8455
8573
|
|
|
8456
8574
|
function QRCodeElement() {
|
|
8457
8575
|
_classCallCheck(this, QRCodeElement);
|
|
8458
8576
|
|
|
8459
|
-
return
|
|
8577
|
+
return _super72.call(this);
|
|
8460
8578
|
}
|
|
8461
8579
|
|
|
8462
8580
|
return _createClass(QRCodeElement);
|
|
@@ -8464,9 +8582,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8464
8582
|
|
|
8465
8583
|
module.exports = QRCodeElement;
|
|
8466
8584
|
}, {
|
|
8467
|
-
"./base/base-element.js":
|
|
8585
|
+
"./base/base-element.js": 106
|
|
8468
8586
|
}],
|
|
8469
|
-
|
|
8587
|
+
108: [function (require, module, exports) {
|
|
8470
8588
|
"use strict";
|
|
8471
8589
|
|
|
8472
8590
|
var QRCodeElement = require("./elements/qrcode-element.js");
|
|
@@ -8484,13 +8602,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8484
8602
|
version: Version
|
|
8485
8603
|
};
|
|
8486
8604
|
}, {
|
|
8487
|
-
"./elements/qrcode-element.js":
|
|
8488
|
-
"./version":
|
|
8605
|
+
"./elements/qrcode-element.js": 107,
|
|
8606
|
+
"./version": 109
|
|
8489
8607
|
}],
|
|
8490
|
-
|
|
8608
|
+
109: [function (require, module, exports) {
|
|
8491
8609
|
module.exports = "1.122.1";
|
|
8492
8610
|
}, {}],
|
|
8493
|
-
|
|
8611
|
+
110: [function (require, module, exports) {
|
|
8494
8612
|
"use strict";
|
|
8495
8613
|
|
|
8496
8614
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -8641,11 +8759,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8641
8759
|
}, {
|
|
8642
8760
|
key: "get",
|
|
8643
8761
|
value: function get() {
|
|
8644
|
-
var
|
|
8762
|
+
var _this64 = this;
|
|
8645
8763
|
|
|
8646
8764
|
return new Promise(function (accept, reject) {
|
|
8647
|
-
|
|
8648
|
-
remote_request_1.RemoteRequest.request(
|
|
8765
|
+
_this64._CalculateHash().then(function () {
|
|
8766
|
+
remote_request_1.RemoteRequest.request(_this64._GetPayload(), _this64.retry < 0 ? 0 : _this64.retry).then(accept)["catch"](reject);
|
|
8649
8767
|
})["catch"](function (_err) {
|
|
8650
8768
|
reject(new Error("Configurator.get() - one of the objects does not exist in Plattar API"));
|
|
8651
8769
|
});
|
|
@@ -8654,14 +8772,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8654
8772
|
}, {
|
|
8655
8773
|
key: "_CalculateHash",
|
|
8656
8774
|
value: function _CalculateHash() {
|
|
8657
|
-
var
|
|
8775
|
+
var _this65 = this;
|
|
8658
8776
|
|
|
8659
8777
|
return new Promise(function (accept, reject) {
|
|
8660
8778
|
var promises = [];
|
|
8661
8779
|
var oldOrigin = plattar_api_1.Server["default"]().originLocation.type;
|
|
8662
|
-
plattar_api_1.Server.create(plattar_api_1.Server.match(
|
|
8780
|
+
plattar_api_1.Server.create(plattar_api_1.Server.match(_this65.server));
|
|
8663
8781
|
|
|
8664
|
-
|
|
8782
|
+
_this65._maps.forEach(function (map) {
|
|
8665
8783
|
if (map.productvariation) {
|
|
8666
8784
|
promises.push(new plattar_api_1.ProductVariation(map.productvariation).get());
|
|
8667
8785
|
}
|
|
@@ -8681,7 +8799,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8681
8799
|
|
|
8682
8800
|
Promise.all(promises).then(function (values) {
|
|
8683
8801
|
values.forEach(function (value) {
|
|
8684
|
-
|
|
8802
|
+
_this65._attrHash.push(value.attributes);
|
|
8685
8803
|
}); // reset server back
|
|
8686
8804
|
|
|
8687
8805
|
plattar_api_1.Server.create(plattar_api_1.Server.match(oldOrigin));
|
|
@@ -8724,11 +8842,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8724
8842
|
|
|
8725
8843
|
exports.Configurator = Configurator;
|
|
8726
8844
|
}, {
|
|
8727
|
-
"./remote-request":
|
|
8728
|
-
"@plattar/plattar-api":
|
|
8729
|
-
"object-hash":
|
|
8845
|
+
"./remote-request": 112,
|
|
8846
|
+
"@plattar/plattar-api": 42,
|
|
8847
|
+
"object-hash": 131
|
|
8730
8848
|
}],
|
|
8731
|
-
|
|
8849
|
+
111: [function (require, module, exports) {
|
|
8732
8850
|
"use strict";
|
|
8733
8851
|
|
|
8734
8852
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -8783,14 +8901,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8783
8901
|
}, {
|
|
8784
8902
|
key: "get",
|
|
8785
8903
|
value: function get() {
|
|
8786
|
-
var
|
|
8904
|
+
var _this66 = this;
|
|
8787
8905
|
|
|
8788
8906
|
return new Promise(function (accept, reject) {
|
|
8789
|
-
if (!
|
|
8907
|
+
if (!_this66._model) {
|
|
8790
8908
|
return reject(new Error("ModelConverter.get() - required .model attribute was not set"));
|
|
8791
8909
|
}
|
|
8792
8910
|
|
|
8793
|
-
remote_request_1.RemoteRequest.request(
|
|
8911
|
+
remote_request_1.RemoteRequest.request(_this66._Payload, _this66.retry < 0 ? 0 : _this66.retry).then(accept)["catch"](reject);
|
|
8794
8912
|
});
|
|
8795
8913
|
}
|
|
8796
8914
|
}, {
|
|
@@ -8823,11 +8941,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8823
8941
|
|
|
8824
8942
|
exports.ModelConverter = ModelConverter;
|
|
8825
8943
|
}, {
|
|
8826
|
-
"./remote-request":
|
|
8827
|
-
"@plattar/plattar-api":
|
|
8828
|
-
"object-hash":
|
|
8944
|
+
"./remote-request": 112,
|
|
8945
|
+
"@plattar/plattar-api": 42,
|
|
8946
|
+
"object-hash": 131
|
|
8829
8947
|
}],
|
|
8830
|
-
|
|
8948
|
+
112: [function (require, module, exports) {
|
|
8831
8949
|
"use strict";
|
|
8832
8950
|
|
|
8833
8951
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -8915,9 +9033,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8915
9033
|
|
|
8916
9034
|
exports.RemoteRequest = RemoteRequest;
|
|
8917
9035
|
}, {
|
|
8918
|
-
"node-fetch":
|
|
9036
|
+
"node-fetch": 130
|
|
8919
9037
|
}],
|
|
8920
|
-
|
|
9038
|
+
113: [function (require, module, exports) {
|
|
8921
9039
|
"use strict";
|
|
8922
9040
|
|
|
8923
9041
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -8988,11 +9106,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8988
9106
|
|
|
8989
9107
|
console.log("using @plattar/plattar-services v" + version_1["default"]);
|
|
8990
9108
|
}, {
|
|
8991
|
-
"./core/configurator":
|
|
8992
|
-
"./core/model-converter":
|
|
8993
|
-
"./version":
|
|
9109
|
+
"./core/configurator": 110,
|
|
9110
|
+
"./core/model-converter": 111,
|
|
9111
|
+
"./version": 114
|
|
8994
9112
|
}],
|
|
8995
|
-
|
|
9113
|
+
114: [function (require, module, exports) {
|
|
8996
9114
|
"use strict";
|
|
8997
9115
|
|
|
8998
9116
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -9000,18 +9118,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9000
9118
|
});
|
|
9001
9119
|
exports["default"] = "1.120.1";
|
|
9002
9120
|
}, {}],
|
|
9003
|
-
|
|
9121
|
+
115: [function (require, module, exports) {
|
|
9004
9122
|
var ElementController = require("../controllers/element-controller");
|
|
9005
9123
|
|
|
9006
9124
|
var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
9007
9125
|
_inherits(BaseElement, _HTMLElement3);
|
|
9008
9126
|
|
|
9009
|
-
var
|
|
9127
|
+
var _super73 = _createSuper(BaseElement);
|
|
9010
9128
|
|
|
9011
9129
|
function BaseElement() {
|
|
9012
9130
|
_classCallCheck(this, BaseElement);
|
|
9013
9131
|
|
|
9014
|
-
return
|
|
9132
|
+
return _super73.call(this);
|
|
9015
9133
|
}
|
|
9016
9134
|
|
|
9017
9135
|
_createClass(BaseElement, [{
|
|
@@ -9111,19 +9229,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9111
9229
|
}, {
|
|
9112
9230
|
key: "allMappedAttributes",
|
|
9113
9231
|
get: function get() {
|
|
9114
|
-
var
|
|
9232
|
+
var _this67 = this;
|
|
9115
9233
|
|
|
9116
9234
|
var map = new Map();
|
|
9117
9235
|
var coreAttr = this.coreAttributes;
|
|
9118
9236
|
var optAttr = this.optionalAttributes;
|
|
9119
9237
|
coreAttr.forEach(function (ele) {
|
|
9120
|
-
if (
|
|
9121
|
-
map.set(ele.map,
|
|
9238
|
+
if (_this67.hasAttribute(ele.key)) {
|
|
9239
|
+
map.set(ele.map, _this67.getAttribute(ele.key));
|
|
9122
9240
|
}
|
|
9123
9241
|
});
|
|
9124
9242
|
optAttr.forEach(function (ele) {
|
|
9125
|
-
if (
|
|
9126
|
-
map.set(ele.map,
|
|
9243
|
+
if (_this67.hasAttribute(ele.key)) {
|
|
9244
|
+
map.set(ele.map, _this67.getAttribute(ele.key));
|
|
9127
9245
|
}
|
|
9128
9246
|
});
|
|
9129
9247
|
return map;
|
|
@@ -9167,20 +9285,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9167
9285
|
|
|
9168
9286
|
module.exports = BaseElement;
|
|
9169
9287
|
}, {
|
|
9170
|
-
"../controllers/element-controller":
|
|
9288
|
+
"../controllers/element-controller": 117
|
|
9171
9289
|
}],
|
|
9172
|
-
|
|
9290
|
+
116: [function (require, module, exports) {
|
|
9173
9291
|
var BaseElement = require("./base/base-element.js");
|
|
9174
9292
|
|
|
9175
9293
|
var ConfiguratorElement = /*#__PURE__*/function (_BaseElement2) {
|
|
9176
9294
|
_inherits(ConfiguratorElement, _BaseElement2);
|
|
9177
9295
|
|
|
9178
|
-
var
|
|
9296
|
+
var _super74 = _createSuper(ConfiguratorElement);
|
|
9179
9297
|
|
|
9180
9298
|
function ConfiguratorElement() {
|
|
9181
9299
|
_classCallCheck(this, ConfiguratorElement);
|
|
9182
9300
|
|
|
9183
|
-
return
|
|
9301
|
+
return _super74.call(this);
|
|
9184
9302
|
}
|
|
9185
9303
|
|
|
9186
9304
|
_createClass(ConfiguratorElement, [{
|
|
@@ -9211,9 +9329,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9211
9329
|
|
|
9212
9330
|
module.exports = ConfiguratorElement;
|
|
9213
9331
|
}, {
|
|
9214
|
-
"./base/base-element.js":
|
|
9332
|
+
"./base/base-element.js": 115
|
|
9215
9333
|
}],
|
|
9216
|
-
|
|
9334
|
+
117: [function (require, module, exports) {
|
|
9217
9335
|
var Util = require("../../util/util.js");
|
|
9218
9336
|
|
|
9219
9337
|
var _require = require("@plattar/context-messenger"),
|
|
@@ -9223,7 +9341,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9223
9341
|
|
|
9224
9342
|
var ElementController = /*#__PURE__*/function () {
|
|
9225
9343
|
function ElementController(element) {
|
|
9226
|
-
var
|
|
9344
|
+
var _this68 = this;
|
|
9227
9345
|
|
|
9228
9346
|
_classCallCheck(this, ElementController);
|
|
9229
9347
|
|
|
@@ -9239,7 +9357,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9239
9357
|
|
|
9240
9358
|
if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
|
|
9241
9359
|
if (element.hasAllCoreAttributes) {
|
|
9242
|
-
|
|
9360
|
+
_this68._load();
|
|
9243
9361
|
}
|
|
9244
9362
|
}
|
|
9245
9363
|
}
|
|
@@ -9330,16 +9448,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9330
9448
|
|
|
9331
9449
|
module.exports = ElementController;
|
|
9332
9450
|
}, {
|
|
9333
|
-
"../../util/util.js":
|
|
9334
|
-
"./iframe-controller.js":
|
|
9335
|
-
"@plattar/context-messenger":
|
|
9451
|
+
"../../util/util.js": 128,
|
|
9452
|
+
"./iframe-controller.js": 118,
|
|
9453
|
+
"@plattar/context-messenger": 21
|
|
9336
9454
|
}],
|
|
9337
|
-
|
|
9455
|
+
118: [function (require, module, exports) {
|
|
9338
9456
|
var Util = require("../../util/util.js");
|
|
9339
9457
|
|
|
9340
9458
|
var IFrameController = /*#__PURE__*/function () {
|
|
9341
9459
|
function IFrameController(element, src, id) {
|
|
9342
|
-
var
|
|
9460
|
+
var _this69 = this;
|
|
9343
9461
|
|
|
9344
9462
|
var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
9345
9463
|
|
|
@@ -9351,7 +9469,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9351
9469
|
if (!element.hasAttribute("sameorigin")) {
|
|
9352
9470
|
this._iframe.onload = function () {
|
|
9353
9471
|
if (onelemload) {
|
|
9354
|
-
onelemload(
|
|
9472
|
+
onelemload(_this69._iframe);
|
|
9355
9473
|
}
|
|
9356
9474
|
};
|
|
9357
9475
|
}
|
|
@@ -9448,20 +9566,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9448
9566
|
|
|
9449
9567
|
module.exports = IFrameController;
|
|
9450
9568
|
}, {
|
|
9451
|
-
"../../util/util.js":
|
|
9569
|
+
"../../util/util.js": 128
|
|
9452
9570
|
}],
|
|
9453
|
-
|
|
9571
|
+
119: [function (require, module, exports) {
|
|
9454
9572
|
var BaseElement = require("./base/base-element.js");
|
|
9455
9573
|
|
|
9456
9574
|
var EditorElement = /*#__PURE__*/function (_BaseElement3) {
|
|
9457
9575
|
_inherits(EditorElement, _BaseElement3);
|
|
9458
9576
|
|
|
9459
|
-
var
|
|
9577
|
+
var _super75 = _createSuper(EditorElement);
|
|
9460
9578
|
|
|
9461
9579
|
function EditorElement() {
|
|
9462
9580
|
_classCallCheck(this, EditorElement);
|
|
9463
9581
|
|
|
9464
|
-
return
|
|
9582
|
+
return _super75.call(this);
|
|
9465
9583
|
}
|
|
9466
9584
|
|
|
9467
9585
|
_createClass(EditorElement, [{
|
|
@@ -9481,32 +9599,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9481
9599
|
|
|
9482
9600
|
module.exports = EditorElement;
|
|
9483
9601
|
}, {
|
|
9484
|
-
"./base/base-element.js":
|
|
9602
|
+
"./base/base-element.js": 115
|
|
9485
9603
|
}],
|
|
9486
|
-
|
|
9604
|
+
120: [function (require, module, exports) {
|
|
9487
9605
|
var BaseElement = require("./base/base-element.js");
|
|
9488
9606
|
|
|
9489
9607
|
var EWallElement = /*#__PURE__*/function (_BaseElement4) {
|
|
9490
9608
|
_inherits(EWallElement, _BaseElement4);
|
|
9491
9609
|
|
|
9492
|
-
var
|
|
9610
|
+
var _super76 = _createSuper(EWallElement);
|
|
9493
9611
|
|
|
9494
9612
|
function EWallElement() {
|
|
9495
|
-
var
|
|
9613
|
+
var _this70;
|
|
9496
9614
|
|
|
9497
9615
|
_classCallCheck(this, EWallElement);
|
|
9498
9616
|
|
|
9499
|
-
|
|
9617
|
+
_this70 = _super76.call(this);
|
|
9500
9618
|
var tag = document.createElement("script");
|
|
9501
9619
|
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
|
|
9502
9620
|
tag.defer = true;
|
|
9503
|
-
return
|
|
9621
|
+
return _this70;
|
|
9504
9622
|
}
|
|
9505
9623
|
|
|
9506
9624
|
_createClass(EWallElement, [{
|
|
9507
9625
|
key: "connectedCallback",
|
|
9508
9626
|
value: function connectedCallback() {
|
|
9509
|
-
|
|
9627
|
+
_get(_getPrototypeOf(EWallElement.prototype), "connectedCallback", this).call(this); // this is the iframe ID
|
|
9510
9628
|
|
|
9511
9629
|
|
|
9512
9630
|
var id = this.element.controller.id;
|
|
@@ -9536,20 +9654,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9536
9654
|
|
|
9537
9655
|
module.exports = EWallElement;
|
|
9538
9656
|
}, {
|
|
9539
|
-
"./base/base-element.js":
|
|
9657
|
+
"./base/base-element.js": 115
|
|
9540
9658
|
}],
|
|
9541
|
-
|
|
9659
|
+
121: [function (require, module, exports) {
|
|
9542
9660
|
var BaseElement = require("./base/base-element.js");
|
|
9543
9661
|
|
|
9544
9662
|
var FaceARElement = /*#__PURE__*/function (_BaseElement5) {
|
|
9545
9663
|
_inherits(FaceARElement, _BaseElement5);
|
|
9546
9664
|
|
|
9547
|
-
var
|
|
9665
|
+
var _super77 = _createSuper(FaceARElement);
|
|
9548
9666
|
|
|
9549
9667
|
function FaceARElement() {
|
|
9550
9668
|
_classCallCheck(this, FaceARElement);
|
|
9551
9669
|
|
|
9552
|
-
return
|
|
9670
|
+
return _super77.call(this);
|
|
9553
9671
|
}
|
|
9554
9672
|
|
|
9555
9673
|
_createClass(FaceARElement, [{
|
|
@@ -9586,20 +9704,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9586
9704
|
|
|
9587
9705
|
module.exports = FaceARElement;
|
|
9588
9706
|
}, {
|
|
9589
|
-
"./base/base-element.js":
|
|
9707
|
+
"./base/base-element.js": 115
|
|
9590
9708
|
}],
|
|
9591
|
-
|
|
9709
|
+
122: [function (require, module, exports) {
|
|
9592
9710
|
var BaseElement = require("./base/base-element.js");
|
|
9593
9711
|
|
|
9594
9712
|
var ModelElement = /*#__PURE__*/function (_BaseElement6) {
|
|
9595
9713
|
_inherits(ModelElement, _BaseElement6);
|
|
9596
9714
|
|
|
9597
|
-
var
|
|
9715
|
+
var _super78 = _createSuper(ModelElement);
|
|
9598
9716
|
|
|
9599
9717
|
function ModelElement() {
|
|
9600
9718
|
_classCallCheck(this, ModelElement);
|
|
9601
9719
|
|
|
9602
|
-
return
|
|
9720
|
+
return _super78.call(this);
|
|
9603
9721
|
}
|
|
9604
9722
|
|
|
9605
9723
|
_createClass(ModelElement, [{
|
|
@@ -9627,20 +9745,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9627
9745
|
|
|
9628
9746
|
module.exports = ModelElement;
|
|
9629
9747
|
}, {
|
|
9630
|
-
"./base/base-element.js":
|
|
9748
|
+
"./base/base-element.js": 115
|
|
9631
9749
|
}],
|
|
9632
|
-
|
|
9750
|
+
123: [function (require, module, exports) {
|
|
9633
9751
|
var BaseElement = require("./base/base-element.js");
|
|
9634
9752
|
|
|
9635
9753
|
var ProductElement = /*#__PURE__*/function (_BaseElement7) {
|
|
9636
9754
|
_inherits(ProductElement, _BaseElement7);
|
|
9637
9755
|
|
|
9638
|
-
var
|
|
9756
|
+
var _super79 = _createSuper(ProductElement);
|
|
9639
9757
|
|
|
9640
9758
|
function ProductElement() {
|
|
9641
9759
|
_classCallCheck(this, ProductElement);
|
|
9642
9760
|
|
|
9643
|
-
return
|
|
9761
|
+
return _super79.call(this);
|
|
9644
9762
|
}
|
|
9645
9763
|
|
|
9646
9764
|
_createClass(ProductElement, [{
|
|
@@ -9676,20 +9794,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9676
9794
|
|
|
9677
9795
|
module.exports = ProductElement;
|
|
9678
9796
|
}, {
|
|
9679
|
-
"./base/base-element.js":
|
|
9797
|
+
"./base/base-element.js": 115
|
|
9680
9798
|
}],
|
|
9681
|
-
|
|
9799
|
+
124: [function (require, module, exports) {
|
|
9682
9800
|
var BaseElement = require("./base/base-element.js");
|
|
9683
9801
|
|
|
9684
9802
|
var StudioElement = /*#__PURE__*/function (_BaseElement8) {
|
|
9685
9803
|
_inherits(StudioElement, _BaseElement8);
|
|
9686
9804
|
|
|
9687
|
-
var
|
|
9805
|
+
var _super80 = _createSuper(StudioElement);
|
|
9688
9806
|
|
|
9689
9807
|
function StudioElement() {
|
|
9690
9808
|
_classCallCheck(this, StudioElement);
|
|
9691
9809
|
|
|
9692
|
-
return
|
|
9810
|
+
return _super80.call(this);
|
|
9693
9811
|
}
|
|
9694
9812
|
|
|
9695
9813
|
_createClass(StudioElement, [{
|
|
@@ -9709,20 +9827,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9709
9827
|
|
|
9710
9828
|
module.exports = StudioElement;
|
|
9711
9829
|
}, {
|
|
9712
|
-
"./base/base-element.js":
|
|
9830
|
+
"./base/base-element.js": 115
|
|
9713
9831
|
}],
|
|
9714
|
-
|
|
9832
|
+
125: [function (require, module, exports) {
|
|
9715
9833
|
var BaseElement = require("./base/base-element.js");
|
|
9716
9834
|
|
|
9717
9835
|
var ViewerElement = /*#__PURE__*/function (_BaseElement9) {
|
|
9718
9836
|
_inherits(ViewerElement, _BaseElement9);
|
|
9719
9837
|
|
|
9720
|
-
var
|
|
9838
|
+
var _super81 = _createSuper(ViewerElement);
|
|
9721
9839
|
|
|
9722
9840
|
function ViewerElement() {
|
|
9723
9841
|
_classCallCheck(this, ViewerElement);
|
|
9724
9842
|
|
|
9725
|
-
return
|
|
9843
|
+
return _super81.call(this);
|
|
9726
9844
|
}
|
|
9727
9845
|
|
|
9728
9846
|
_createClass(ViewerElement, [{
|
|
@@ -9753,20 +9871,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9753
9871
|
|
|
9754
9872
|
module.exports = ViewerElement;
|
|
9755
9873
|
}, {
|
|
9756
|
-
"./base/base-element.js":
|
|
9874
|
+
"./base/base-element.js": 115
|
|
9757
9875
|
}],
|
|
9758
|
-
|
|
9876
|
+
126: [function (require, module, exports) {
|
|
9759
9877
|
var BaseElement = require("./base/base-element.js");
|
|
9760
9878
|
|
|
9761
9879
|
var WebXRElement = /*#__PURE__*/function (_BaseElement10) {
|
|
9762
9880
|
_inherits(WebXRElement, _BaseElement10);
|
|
9763
9881
|
|
|
9764
|
-
var
|
|
9882
|
+
var _super82 = _createSuper(WebXRElement);
|
|
9765
9883
|
|
|
9766
9884
|
function WebXRElement() {
|
|
9767
9885
|
_classCallCheck(this, WebXRElement);
|
|
9768
9886
|
|
|
9769
|
-
return
|
|
9887
|
+
return _super82.call(this);
|
|
9770
9888
|
}
|
|
9771
9889
|
|
|
9772
9890
|
_createClass(WebXRElement, [{
|
|
@@ -9786,9 +9904,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9786
9904
|
|
|
9787
9905
|
module.exports = WebXRElement;
|
|
9788
9906
|
}, {
|
|
9789
|
-
"./base/base-element.js":
|
|
9907
|
+
"./base/base-element.js": 115
|
|
9790
9908
|
}],
|
|
9791
|
-
|
|
9909
|
+
127: [function (require, module, exports) {
|
|
9792
9910
|
"use strict";
|
|
9793
9911
|
|
|
9794
9912
|
var WebXRElement = require("./elements/webxr-element.js");
|
|
@@ -9852,18 +9970,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9852
9970
|
version: Version
|
|
9853
9971
|
};
|
|
9854
9972
|
}, {
|
|
9855
|
-
"./elements/configurator-element.js":
|
|
9856
|
-
"./elements/editor-element.js":
|
|
9857
|
-
"./elements/ewall-element.js":
|
|
9858
|
-
"./elements/facear-element.js":
|
|
9859
|
-
"./elements/model-element.js":
|
|
9860
|
-
"./elements/product-element.js":
|
|
9861
|
-
"./elements/studio-element.js":
|
|
9862
|
-
"./elements/viewer-element.js":
|
|
9863
|
-
"./elements/webxr-element.js":
|
|
9864
|
-
"./version":
|
|
9973
|
+
"./elements/configurator-element.js": 116,
|
|
9974
|
+
"./elements/editor-element.js": 119,
|
|
9975
|
+
"./elements/ewall-element.js": 120,
|
|
9976
|
+
"./elements/facear-element.js": 121,
|
|
9977
|
+
"./elements/model-element.js": 122,
|
|
9978
|
+
"./elements/product-element.js": 123,
|
|
9979
|
+
"./elements/studio-element.js": 124,
|
|
9980
|
+
"./elements/viewer-element.js": 125,
|
|
9981
|
+
"./elements/webxr-element.js": 126,
|
|
9982
|
+
"./version": 129
|
|
9865
9983
|
}],
|
|
9866
|
-
|
|
9984
|
+
128: [function (require, module, exports) {
|
|
9867
9985
|
var Util = /*#__PURE__*/function () {
|
|
9868
9986
|
function Util() {
|
|
9869
9987
|
_classCallCheck(this, Util);
|
|
@@ -9961,10 +10079,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9961
10079
|
|
|
9962
10080
|
module.exports = Util;
|
|
9963
10081
|
}, {}],
|
|
9964
|
-
|
|
10082
|
+
129: [function (require, module, exports) {
|
|
9965
10083
|
module.exports = "1.123.1";
|
|
9966
10084
|
}, {}],
|
|
9967
|
-
|
|
10085
|
+
130: [function (require, module, exports) {
|
|
9968
10086
|
(function (global) {
|
|
9969
10087
|
(function () {
|
|
9970
10088
|
"use strict"; // ref: https://github.com/tc39/proposal-global
|
|
@@ -10001,7 +10119,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10001
10119
|
}).call(this);
|
|
10002
10120
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
10003
10121
|
}, {}],
|
|
10004
|
-
|
|
10122
|
+
131: [function (require, module, exports) {
|
|
10005
10123
|
(function (global) {
|
|
10006
10124
|
(function () {
|
|
10007
10125
|
!function (e) {
|
|
@@ -11273,7 +11391,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
11273
11391
|
}).call(this);
|
|
11274
11392
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
11275
11393
|
}, {}],
|
|
11276
|
-
|
|
11394
|
+
132: [function (require, module, exports) {
|
|
11277
11395
|
// shim for using process in browser
|
|
11278
11396
|
var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
|
|
11279
11397
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
@@ -11483,7 +11601,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
11483
11601
|
return 0;
|
|
11484
11602
|
};
|
|
11485
11603
|
}, {}],
|
|
11486
|
-
|
|
11604
|
+
133: [function (require, module, exports) {
|
|
11487
11605
|
!function (t, e) {
|
|
11488
11606
|
"object" == _typeof(exports) && "object" == _typeof(module) ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == _typeof(exports) ? exports.QRCodeStyling = e() : t.QRCodeStyling = e();
|
|
11489
11607
|
}(self, function () {
|
|
@@ -14115,6 +14233,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
14115
14233
|
}()["default"];
|
|
14116
14234
|
});
|
|
14117
14235
|
}, {}]
|
|
14118
|
-
}, {}, [
|
|
14236
|
+
}, {}, [13])(13);
|
|
14119
14237
|
});
|
|
14120
14238
|
|