@plattar/plattar-ar-adapter 1.123.2 → 1.123.3
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 +1244 -848
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +427 -154
- package/build/es2019/plattar-ar-adapter.min.js +9 -1
- package/dist/embed/controllers/configurator-controller.d.ts +0 -1
- package/dist/embed/controllers/configurator-controller.js +0 -8
- package/dist/embed/controllers/plattar-controller.d.ts +1 -1
- package/dist/embed/controllers/plattar-controller.js +11 -0
- package/dist/embed/controllers/product-controller.d.ts +0 -1
- package/dist/embed/controllers/product-controller.js +0 -8
- package/dist/embed/controllers/viewer-controller.d.ts +0 -1
- package/dist/embed/controllers/viewer-controller.js +0 -8
- package/dist/embed/controllers/vto-controller.d.ts +17 -0
- package/dist/embed/controllers/vto-controller.js +169 -0
- package/dist/embed/plattar-embed.d.ts +6 -0
- package/dist/embed/plattar-embed.js +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/util/configurator-state.d.ts +26 -0
- package/dist/util/configurator-state.js +92 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -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": 14,
|
|
333
|
+
"../viewers/quicklook-viewer": 17,
|
|
334
|
+
"../viewers/reality-viewer": 18,
|
|
335
|
+
"../viewers/scene-viewer": 19,
|
|
336
336
|
"./launcher-ar": 1,
|
|
337
|
-
"@plattar/plattar-analytics":
|
|
338
|
-
"@plattar/plattar-api":
|
|
337
|
+
"@plattar/plattar-analytics": 37,
|
|
338
|
+
"@plattar/plattar-api": 41
|
|
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": 14,
|
|
577
|
+
"../viewers/quicklook-viewer": 17,
|
|
578
|
+
"../viewers/reality-viewer": 18,
|
|
579
|
+
"../viewers/scene-viewer": 19,
|
|
580
580
|
"./launcher-ar": 1,
|
|
581
|
-
"@plattar/plattar-analytics":
|
|
582
|
-
"@plattar/plattar-api":
|
|
581
|
+
"@plattar/plattar-analytics": 37,
|
|
582
|
+
"@plattar/plattar-api": 41
|
|
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": 14,
|
|
740
|
+
"../viewers/quicklook-viewer": 17,
|
|
741
|
+
"../viewers/reality-viewer": 18,
|
|
742
|
+
"../viewers/scene-viewer": 19,
|
|
743
743
|
"./launcher-ar": 1
|
|
744
744
|
}],
|
|
745
745
|
5: [function (require, module, exports) {
|
|
@@ -970,14 +970,14 @@ 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": 14,
|
|
974
|
+
"../viewers/quicklook-viewer": 17,
|
|
975
|
+
"../viewers/reality-viewer": 18,
|
|
976
|
+
"../viewers/scene-viewer": 19,
|
|
977
977
|
"./launcher-ar": 1,
|
|
978
|
-
"@plattar/plattar-analytics":
|
|
979
|
-
"@plattar/plattar-api":
|
|
980
|
-
"@plattar/plattar-services":
|
|
978
|
+
"@plattar/plattar-analytics": 37,
|
|
979
|
+
"@plattar/plattar-api": 41,
|
|
980
|
+
"@plattar/plattar-services": 112
|
|
981
981
|
}],
|
|
982
982
|
6: [function (require, module, exports) {
|
|
983
983
|
"use strict";
|
|
@@ -1139,22 +1139,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1139
1139
|
return reject(new Error("ConfiguratorController.startRenderer() - minimum required attributes not set, use scene-id as a minimum"));
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
|
-
}, {
|
|
1143
|
-
key: "startAR",
|
|
1144
|
-
value: function startAR() {
|
|
1145
|
-
var _this13 = this;
|
|
1146
|
-
|
|
1147
|
-
return new Promise(function (accept, reject) {
|
|
1148
|
-
_this13.initAR().then(function (launcher) {
|
|
1149
|
-
launcher.start();
|
|
1150
|
-
accept();
|
|
1151
|
-
})["catch"](reject);
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
1142
|
}, {
|
|
1155
1143
|
key: "initAR",
|
|
1156
1144
|
value: function initAR() {
|
|
1157
|
-
var
|
|
1145
|
+
var _this13 = this;
|
|
1158
1146
|
|
|
1159
1147
|
return new Promise(function (accept, reject) {
|
|
1160
1148
|
if (!util_1.Util.canAugment()) {
|
|
@@ -1163,9 +1151,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1163
1151
|
// we can use the real-time configurator state to launch the AR view
|
|
1164
1152
|
|
|
1165
1153
|
|
|
1166
|
-
var viewer =
|
|
1154
|
+
var viewer = _this13.element;
|
|
1167
1155
|
|
|
1168
|
-
var sceneID =
|
|
1156
|
+
var sceneID = _this13.getAttribute("scene-id");
|
|
1169
1157
|
|
|
1170
1158
|
if (viewer && sceneID) {
|
|
1171
1159
|
var output = "glb";
|
|
@@ -1180,7 +1168,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1180
1168
|
})["catch"](reject);
|
|
1181
1169
|
}
|
|
1182
1170
|
|
|
1183
|
-
var configState =
|
|
1171
|
+
var configState = _this13.getAttribute("config-state"); // otherwise scene ID is available to the viewer is not launched
|
|
1184
1172
|
// we can use the static configuration state to launch the AR view
|
|
1185
1173
|
|
|
1186
1174
|
|
|
@@ -1208,7 +1196,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1208
1196
|
configurator.output = "glb";
|
|
1209
1197
|
}
|
|
1210
1198
|
|
|
1211
|
-
var server =
|
|
1199
|
+
var server = _this13.getAttribute("server") || "production";
|
|
1212
1200
|
configurator.server = server;
|
|
1213
1201
|
return configurator.get().then(function (result) {
|
|
1214
1202
|
var rawAR = new raw_ar_1.RawAR(result.filename);
|
|
@@ -1253,10 +1241,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1253
1241
|
exports.ConfiguratorController = ConfiguratorController;
|
|
1254
1242
|
}, {
|
|
1255
1243
|
"../../ar/raw-ar": 4,
|
|
1256
|
-
"../../util/util":
|
|
1244
|
+
"../../util/util": 14,
|
|
1257
1245
|
"./plattar-controller": 7,
|
|
1258
|
-
"@plattar/plattar-api":
|
|
1259
|
-
"@plattar/plattar-services":
|
|
1246
|
+
"@plattar/plattar-api": 41,
|
|
1247
|
+
"@plattar/plattar-services": 112
|
|
1260
1248
|
}],
|
|
1261
1249
|
7: [function (require, module, exports) {
|
|
1262
1250
|
"use strict";
|
|
@@ -1289,12 +1277,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1289
1277
|
|
|
1290
1278
|
|
|
1291
1279
|
_createClass(PlattarController, [{
|
|
1292
|
-
key: "
|
|
1293
|
-
|
|
1280
|
+
key: "startAR",
|
|
1281
|
+
value:
|
|
1282
|
+
/**
|
|
1283
|
+
* Initialise and start AR mode if available
|
|
1284
|
+
*/
|
|
1285
|
+
function startAR() {
|
|
1286
|
+
var _this14 = this;
|
|
1287
|
+
|
|
1288
|
+
return new Promise(function (accept, reject) {
|
|
1289
|
+
_this14.initAR().then(function (launcher) {
|
|
1290
|
+
launcher.start();
|
|
1291
|
+
accept();
|
|
1292
|
+
})["catch"](reject);
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1294
1295
|
/**
|
|
1295
1296
|
* Returns the Parent Instance
|
|
1296
1297
|
*/
|
|
1297
|
-
|
|
1298
|
+
|
|
1299
|
+
}, {
|
|
1300
|
+
key: "parent",
|
|
1301
|
+
get: function get() {
|
|
1298
1302
|
return this._parent;
|
|
1299
1303
|
}
|
|
1300
1304
|
/**
|
|
@@ -1496,32 +1500,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1496
1500
|
return reject(new Error("ProductController.startRenderer() - minimum required attributes not set, use scene-id as a minimum"));
|
|
1497
1501
|
});
|
|
1498
1502
|
}
|
|
1499
|
-
}, {
|
|
1500
|
-
key: "startAR",
|
|
1501
|
-
value: function startAR() {
|
|
1502
|
-
var _this18 = this;
|
|
1503
|
-
|
|
1504
|
-
return new Promise(function (accept, reject) {
|
|
1505
|
-
_this18.initAR().then(function (launcher) {
|
|
1506
|
-
launcher.start();
|
|
1507
|
-
accept();
|
|
1508
|
-
})["catch"](reject);
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
1503
|
}, {
|
|
1512
1504
|
key: "initAR",
|
|
1513
1505
|
value: function initAR() {
|
|
1514
|
-
var
|
|
1506
|
+
var _this18 = this;
|
|
1515
1507
|
|
|
1516
1508
|
return new Promise(function (accept, reject) {
|
|
1517
1509
|
if (!util_1.Util.canAugment()) {
|
|
1518
1510
|
return reject(new Error("ProductController.initAR() - cannot proceed as AR not available in context"));
|
|
1519
1511
|
}
|
|
1520
1512
|
|
|
1521
|
-
var productID =
|
|
1513
|
+
var productID = _this18.getAttribute("product-id");
|
|
1522
1514
|
|
|
1523
1515
|
if (productID) {
|
|
1524
|
-
var variationID =
|
|
1516
|
+
var variationID = _this18.getAttribute("variation-id");
|
|
1525
1517
|
|
|
1526
1518
|
var product = new product_ar_1.ProductAR(productID, variationID);
|
|
1527
1519
|
return product.init().then(accept)["catch"](reject);
|
|
@@ -1555,9 +1547,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1555
1547
|
exports.ProductController = ProductController;
|
|
1556
1548
|
}, {
|
|
1557
1549
|
"../../ar/product-ar": 3,
|
|
1558
|
-
"../../util/util":
|
|
1550
|
+
"../../util/util": 14,
|
|
1559
1551
|
"./plattar-controller": 7,
|
|
1560
|
-
"@plattar/plattar-api":
|
|
1552
|
+
"@plattar/plattar-api": 41
|
|
1561
1553
|
}],
|
|
1562
1554
|
9: [function (require, module, exports) {
|
|
1563
1555
|
"use strict";
|
|
@@ -1585,15 +1577,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1585
1577
|
var _super7 = _createSuper(ViewerController);
|
|
1586
1578
|
|
|
1587
1579
|
function ViewerController(parent) {
|
|
1588
|
-
var
|
|
1580
|
+
var _this19;
|
|
1589
1581
|
|
|
1590
1582
|
_classCallCheck(this, ViewerController);
|
|
1591
1583
|
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
return
|
|
1584
|
+
_this19 = _super7.call(this, parent);
|
|
1585
|
+
_this19._state = plattar_controller_1.ControllerState.None;
|
|
1586
|
+
_this19._element = null;
|
|
1587
|
+
_this19._prevQROpt = null;
|
|
1588
|
+
return _this19;
|
|
1597
1589
|
}
|
|
1598
1590
|
|
|
1599
1591
|
_createClass(ViewerController, [{
|
|
@@ -1622,20 +1614,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1622
1614
|
}, {
|
|
1623
1615
|
key: "startQRCode",
|
|
1624
1616
|
value: function startQRCode(options) {
|
|
1625
|
-
var
|
|
1617
|
+
var _this20 = this;
|
|
1626
1618
|
|
|
1627
1619
|
return new Promise(function (accept, reject) {
|
|
1628
1620
|
// remove the old renderer instance if any
|
|
1629
|
-
|
|
1621
|
+
_this20.removeRenderer();
|
|
1630
1622
|
|
|
1631
|
-
var sceneID =
|
|
1623
|
+
var sceneID = _this20.getAttribute("scene-id");
|
|
1632
1624
|
|
|
1633
1625
|
if (sceneID) {
|
|
1634
1626
|
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1635
1627
|
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1636
1628
|
|
|
1637
|
-
var width =
|
|
1638
|
-
var height =
|
|
1629
|
+
var width = _this20.getAttribute("width") || "500px";
|
|
1630
|
+
var height = _this20.getAttribute("height") || "500px";
|
|
1639
1631
|
viewer.setAttribute("width", width);
|
|
1640
1632
|
viewer.setAttribute("height", height);
|
|
1641
1633
|
|
|
@@ -1653,9 +1645,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1653
1645
|
|
|
1654
1646
|
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + sceneID; // optional attributes
|
|
1655
1647
|
|
|
1656
|
-
var productID =
|
|
1648
|
+
var productID = _this20.getAttribute("product-id");
|
|
1657
1649
|
|
|
1658
|
-
var variationID =
|
|
1650
|
+
var variationID = _this20.getAttribute("variation-id");
|
|
1659
1651
|
|
|
1660
1652
|
if (productID) {
|
|
1661
1653
|
dst += "&productId=" + productID;
|
|
@@ -1671,11 +1663,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1671
1663
|
return accept(viewer);
|
|
1672
1664
|
};
|
|
1673
1665
|
|
|
1674
|
-
|
|
1666
|
+
_this20.append(viewer);
|
|
1675
1667
|
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1668
|
+
_this20._element = viewer;
|
|
1669
|
+
_this20._state = plattar_controller_1.ControllerState.QRCode;
|
|
1670
|
+
_this20._prevQROpt = opt;
|
|
1679
1671
|
return;
|
|
1680
1672
|
}
|
|
1681
1673
|
|
|
@@ -1685,28 +1677,28 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1685
1677
|
}, {
|
|
1686
1678
|
key: "startRenderer",
|
|
1687
1679
|
value: function startRenderer() {
|
|
1688
|
-
var
|
|
1680
|
+
var _this21 = this;
|
|
1689
1681
|
|
|
1690
1682
|
return new Promise(function (accept, reject) {
|
|
1691
1683
|
// remove the old renderer instance if any
|
|
1692
|
-
|
|
1684
|
+
_this21.removeRenderer();
|
|
1693
1685
|
|
|
1694
|
-
var sceneID =
|
|
1686
|
+
var sceneID = _this21.getAttribute("scene-id");
|
|
1695
1687
|
|
|
1696
1688
|
if (sceneID) {
|
|
1697
1689
|
// required attributes with defaults for plattar-viewer node
|
|
1698
|
-
var width =
|
|
1699
|
-
var height =
|
|
1700
|
-
var server =
|
|
1690
|
+
var width = _this21.getAttribute("width") || "500px";
|
|
1691
|
+
var height = _this21.getAttribute("height") || "500px";
|
|
1692
|
+
var server = _this21.getAttribute("server") || "production";
|
|
1701
1693
|
var viewer = document.createElement("plattar-viewer");
|
|
1702
1694
|
viewer.setAttribute("width", width);
|
|
1703
1695
|
viewer.setAttribute("height", height);
|
|
1704
1696
|
viewer.setAttribute("server", server);
|
|
1705
1697
|
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1706
1698
|
|
|
1707
|
-
var productID =
|
|
1699
|
+
var productID = _this21.getAttribute("product-id");
|
|
1708
1700
|
|
|
1709
|
-
var variationID =
|
|
1701
|
+
var variationID = _this21.getAttribute("variation-id");
|
|
1710
1702
|
|
|
1711
1703
|
if (productID) {
|
|
1712
1704
|
viewer.setAttribute("product-id", productID);
|
|
@@ -1720,48 +1712,36 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1720
1712
|
return accept(viewer);
|
|
1721
1713
|
};
|
|
1722
1714
|
|
|
1723
|
-
|
|
1715
|
+
_this21.append(viewer);
|
|
1724
1716
|
|
|
1725
|
-
|
|
1726
|
-
|
|
1717
|
+
_this21._element = viewer;
|
|
1718
|
+
_this21._state = plattar_controller_1.ControllerState.Renderer;
|
|
1727
1719
|
return;
|
|
1728
1720
|
}
|
|
1729
1721
|
|
|
1730
1722
|
return reject(new Error("ViewerController.startRenderer() - minimum required attributes not set, use scene-id as a minimum"));
|
|
1731
1723
|
});
|
|
1732
1724
|
}
|
|
1733
|
-
}, {
|
|
1734
|
-
key: "startAR",
|
|
1735
|
-
value: function startAR() {
|
|
1736
|
-
var _this23 = this;
|
|
1737
|
-
|
|
1738
|
-
return new Promise(function (accept, reject) {
|
|
1739
|
-
_this23.initAR().then(function (launcher) {
|
|
1740
|
-
launcher.start();
|
|
1741
|
-
accept();
|
|
1742
|
-
})["catch"](reject);
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
1725
|
}, {
|
|
1746
1726
|
key: "initAR",
|
|
1747
1727
|
value: function initAR() {
|
|
1748
|
-
var
|
|
1728
|
+
var _this22 = this;
|
|
1749
1729
|
|
|
1750
1730
|
return new Promise(function (accept, reject) {
|
|
1751
1731
|
if (!util_1.Util.canAugment()) {
|
|
1752
1732
|
return reject(new Error("ViewerController.initAR() - cannot proceed as AR not available in context"));
|
|
1753
1733
|
}
|
|
1754
1734
|
|
|
1755
|
-
var productID =
|
|
1735
|
+
var productID = _this22.getAttribute("product-id");
|
|
1756
1736
|
|
|
1757
1737
|
if (productID) {
|
|
1758
|
-
var variationID =
|
|
1738
|
+
var variationID = _this22.getAttribute("variation-id");
|
|
1759
1739
|
|
|
1760
1740
|
var product = new product_ar_1.ProductAR(productID, variationID);
|
|
1761
1741
|
return product.init().then(accept)["catch"](reject);
|
|
1762
1742
|
}
|
|
1763
1743
|
|
|
1764
|
-
var sceneID =
|
|
1744
|
+
var sceneID = _this22.getAttribute("scene-id"); // otherwise, scene was set so use SceneAR
|
|
1765
1745
|
|
|
1766
1746
|
|
|
1767
1747
|
if (sceneID) {
|
|
@@ -1796,13 +1776,269 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1796
1776
|
exports.ViewerController = ViewerController;
|
|
1797
1777
|
}, {
|
|
1798
1778
|
"../../ar/product-ar": 3,
|
|
1799
|
-
"../../util/util":
|
|
1779
|
+
"../../util/util": 14,
|
|
1800
1780
|
"./plattar-controller": 7,
|
|
1801
|
-
"@plattar/plattar-api":
|
|
1781
|
+
"@plattar/plattar-api": 41
|
|
1802
1782
|
}],
|
|
1803
1783
|
10: [function (require, module, exports) {
|
|
1804
1784
|
"use strict";
|
|
1805
1785
|
|
|
1786
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1787
|
+
value: true
|
|
1788
|
+
});
|
|
1789
|
+
exports.VTOController = void 0;
|
|
1790
|
+
|
|
1791
|
+
var plattar_api_1 = require("@plattar/plattar-api");
|
|
1792
|
+
|
|
1793
|
+
var plattar_services_1 = require("@plattar/plattar-services");
|
|
1794
|
+
|
|
1795
|
+
var __1 = require("../..");
|
|
1796
|
+
|
|
1797
|
+
var raw_ar_1 = require("../../ar/raw-ar");
|
|
1798
|
+
|
|
1799
|
+
var util_1 = require("../../util/util");
|
|
1800
|
+
|
|
1801
|
+
var plattar_controller_1 = require("./plattar-controller");
|
|
1802
|
+
/**
|
|
1803
|
+
* Manages an instance of the <plattar-configurator> HTML Element
|
|
1804
|
+
*/
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
var VTOController = /*#__PURE__*/function (_plattar_controller_4) {
|
|
1808
|
+
_inherits(VTOController, _plattar_controller_4);
|
|
1809
|
+
|
|
1810
|
+
var _super8 = _createSuper(VTOController);
|
|
1811
|
+
|
|
1812
|
+
function VTOController(parent) {
|
|
1813
|
+
var _this23;
|
|
1814
|
+
|
|
1815
|
+
_classCallCheck(this, VTOController);
|
|
1816
|
+
|
|
1817
|
+
_this23 = _super8.call(this, parent);
|
|
1818
|
+
_this23._state = plattar_controller_1.ControllerState.None;
|
|
1819
|
+
_this23._element = null;
|
|
1820
|
+
_this23._prevQROpt = null;
|
|
1821
|
+
return _this23;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
_createClass(VTOController, [{
|
|
1825
|
+
key: "onAttributesUpdated",
|
|
1826
|
+
value: function onAttributesUpdated() {
|
|
1827
|
+
var state = this._state; // re-render the QR Code when attributes have changed
|
|
1828
|
+
|
|
1829
|
+
if (state === plattar_controller_1.ControllerState.QRCode) {
|
|
1830
|
+
this.startQRCode(this._prevQROpt);
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
}, {
|
|
1835
|
+
key: "startQRCode",
|
|
1836
|
+
value: function startQRCode(options) {
|
|
1837
|
+
var _this24 = this;
|
|
1838
|
+
|
|
1839
|
+
return new Promise(function (accept, reject) {
|
|
1840
|
+
// remove the old renderer instance if any
|
|
1841
|
+
_this24.removeRenderer();
|
|
1842
|
+
|
|
1843
|
+
var sceneID = _this24.getAttribute("scene-id");
|
|
1844
|
+
|
|
1845
|
+
if (sceneID) {
|
|
1846
|
+
var opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
|
|
1847
|
+
var viewer = document.createElement("plattar-qrcode"); // required attributes with defaults for plattar-viewer node
|
|
1848
|
+
|
|
1849
|
+
var width = _this24.getAttribute("width") || "500px";
|
|
1850
|
+
var height = _this24.getAttribute("height") || "500px";
|
|
1851
|
+
viewer.setAttribute("width", width);
|
|
1852
|
+
viewer.setAttribute("height", height);
|
|
1853
|
+
|
|
1854
|
+
if (opt.color) {
|
|
1855
|
+
viewer.setAttribute("color", opt.color);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
if (opt.margin) {
|
|
1859
|
+
viewer.setAttribute("margin", "" + opt.margin);
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
if (opt.qrType) {
|
|
1863
|
+
viewer.setAttribute("qr-type", opt.qrType);
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
var dst = plattar_api_1.Server.location().base + "renderer/facear.html?scene_id=" + sceneID; // optional attributes
|
|
1867
|
+
|
|
1868
|
+
var configState = _this24.getAttribute("config-state");
|
|
1869
|
+
|
|
1870
|
+
var showAR = _this24.getAttribute("show-ar");
|
|
1871
|
+
|
|
1872
|
+
if (configState) {
|
|
1873
|
+
dst += "&config_state=" + configState;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
if (showAR) {
|
|
1877
|
+
dst += "&show_ar=" + showAR;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
viewer.setAttribute("url", opt.url || dst);
|
|
1881
|
+
|
|
1882
|
+
viewer.onload = function () {
|
|
1883
|
+
return accept(viewer);
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
_this24.append(viewer);
|
|
1887
|
+
|
|
1888
|
+
_this24._element = viewer;
|
|
1889
|
+
_this24._state = plattar_controller_1.ControllerState.QRCode;
|
|
1890
|
+
_this24._prevQROpt = opt;
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
return reject(new Error("VTOController.startQRCode() - minimum required attributes not set, use scene-id as a minimum"));
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
}, {
|
|
1898
|
+
key: "startRenderer",
|
|
1899
|
+
value: function startRenderer() {
|
|
1900
|
+
var _this25 = this;
|
|
1901
|
+
|
|
1902
|
+
return new Promise(function (accept, reject) {
|
|
1903
|
+
// remove the old renderer instance if any
|
|
1904
|
+
_this25.removeRenderer();
|
|
1905
|
+
|
|
1906
|
+
var sceneID = _this25.getAttribute("scene-id");
|
|
1907
|
+
|
|
1908
|
+
if (sceneID) {
|
|
1909
|
+
// required attributes with defaults for plattar-facear node
|
|
1910
|
+
var width = _this25.getAttribute("width") || "500px";
|
|
1911
|
+
var height = _this25.getAttribute("height") || "500px";
|
|
1912
|
+
var server = _this25.getAttribute("server") || "production";
|
|
1913
|
+
var viewer = document.createElement("plattar-facear");
|
|
1914
|
+
viewer.setAttribute("width", width);
|
|
1915
|
+
viewer.setAttribute("height", height);
|
|
1916
|
+
viewer.setAttribute("server", server);
|
|
1917
|
+
viewer.setAttribute("scene-id", sceneID); // optional attributes
|
|
1918
|
+
|
|
1919
|
+
var configState = _this25.getAttribute("config-state");
|
|
1920
|
+
|
|
1921
|
+
var showAR = _this25.getAttribute("show-ar");
|
|
1922
|
+
|
|
1923
|
+
if (configState) {
|
|
1924
|
+
viewer.setAttribute("config-state", configState);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
if (showAR) {
|
|
1928
|
+
viewer.setAttribute("show-ar", showAR);
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
viewer.onload = function () {
|
|
1932
|
+
return accept(viewer);
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
_this25.append(viewer);
|
|
1936
|
+
|
|
1937
|
+
_this25._element = viewer;
|
|
1938
|
+
_this25._state = plattar_controller_1.ControllerState.Renderer;
|
|
1939
|
+
return;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
return reject(new Error("VTOController.startRenderer() - minimum required attributes not set, use scene-id as a minimum"));
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
}, {
|
|
1946
|
+
key: "initAR",
|
|
1947
|
+
value: function initAR() {
|
|
1948
|
+
var _this26 = this;
|
|
1949
|
+
|
|
1950
|
+
return new Promise(function (accept, reject) {
|
|
1951
|
+
if (!util_1.Util.canAugment()) {
|
|
1952
|
+
return reject(new Error("VTOController.initAR() - cannot proceed as VTO AR not available in context"));
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
if (!(util_1.Util.isSafari() || util_1.Util.isChromeOnIOS())) {
|
|
1956
|
+
return reject(new Error("VTOController.initAR() - cannot proceed as VTO AR only available on IOS Mobile devices"));
|
|
1957
|
+
} // if scene ID is available and the state is a configurator viewer
|
|
1958
|
+
// we can use the real-time configurator state to launch the AR view
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
var viewer = _this26.element;
|
|
1962
|
+
|
|
1963
|
+
var sceneID = _this26.getAttribute("scene-id");
|
|
1964
|
+
|
|
1965
|
+
if (viewer && sceneID) {
|
|
1966
|
+
return viewer.messenger.getARFile("vto").then(function (result) {
|
|
1967
|
+
var rawAR = new raw_ar_1.RawAR(result.filename);
|
|
1968
|
+
return rawAR.init().then(accept)["catch"](reject);
|
|
1969
|
+
})["catch"](reject);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
var configState = _this26.getAttribute("config-state"); // otherwise scene ID is available to the viewer is not launched
|
|
1973
|
+
// we can use the static configuration state to launch the AR view
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
if (sceneID && configState) {
|
|
1977
|
+
var state = __1.ConfiguratorState.decode(configState);
|
|
1978
|
+
|
|
1979
|
+
if (state.length > 0) {
|
|
1980
|
+
var server = _this26.getAttribute("server") || "production";
|
|
1981
|
+
var configurator = new plattar_services_1.Configurator();
|
|
1982
|
+
configurator.server = server;
|
|
1983
|
+
configurator.output = "vto";
|
|
1984
|
+
state.forEach(function (productState) {
|
|
1985
|
+
if (productState.meta_data.augment === true) {
|
|
1986
|
+
configurator.addSceneProduct(productState.scene_product_id, productState.product_variation_id);
|
|
1987
|
+
}
|
|
1988
|
+
});
|
|
1989
|
+
return configurator.get().then(function (result) {
|
|
1990
|
+
var rawAR = new raw_ar_1.RawAR(result.filename);
|
|
1991
|
+
rawAR.init().then(accept)["catch"](reject);
|
|
1992
|
+
})["catch"](reject);
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
return reject(new Error("VTOController.initAR() - invalid config-state does not have any product states"));
|
|
1996
|
+
} // otherwise no config-state or viewer is active
|
|
1997
|
+
// fallback to using default SceneAR implementation
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
if (sceneID) {
|
|
2001
|
+
var sceneAR = new __1.SceneAR(sceneID);
|
|
2002
|
+
return sceneAR.init().then(accept)["catch"](reject);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
return reject(new Error("VTOController.initAR() - minimum required attributes not set, use scene-id as a minimum"));
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
}, {
|
|
2009
|
+
key: "removeRenderer",
|
|
2010
|
+
value: function removeRenderer() {
|
|
2011
|
+
if (this._element) {
|
|
2012
|
+
this._element.remove();
|
|
2013
|
+
|
|
2014
|
+
this._element = null;
|
|
2015
|
+
return true;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
return false;
|
|
2019
|
+
}
|
|
2020
|
+
}, {
|
|
2021
|
+
key: "element",
|
|
2022
|
+
get: function get() {
|
|
2023
|
+
return this._element;
|
|
2024
|
+
}
|
|
2025
|
+
}]);
|
|
2026
|
+
|
|
2027
|
+
return VTOController;
|
|
2028
|
+
}(plattar_controller_1.PlattarController);
|
|
2029
|
+
|
|
2030
|
+
exports.VTOController = VTOController;
|
|
2031
|
+
}, {
|
|
2032
|
+
"../..": 12,
|
|
2033
|
+
"../../ar/raw-ar": 4,
|
|
2034
|
+
"../../util/util": 14,
|
|
2035
|
+
"./plattar-controller": 7,
|
|
2036
|
+
"@plattar/plattar-api": 41,
|
|
2037
|
+
"@plattar/plattar-services": 112
|
|
2038
|
+
}],
|
|
2039
|
+
11: [function (require, module, exports) {
|
|
2040
|
+
"use strict";
|
|
2041
|
+
|
|
1806
2042
|
Object.defineProperty(exports, "__esModule", {
|
|
1807
2043
|
value: true
|
|
1808
2044
|
});
|
|
@@ -1814,6 +2050,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1814
2050
|
var viewer_controller_1 = require("./controllers/viewer-controller");
|
|
1815
2051
|
|
|
1816
2052
|
var configurator_controller_1 = require("./controllers/configurator-controller");
|
|
2053
|
+
|
|
2054
|
+
var vto_controller_1 = require("./controllers/vto-controller");
|
|
1817
2055
|
/**
|
|
1818
2056
|
* This tracks the current embed type
|
|
1819
2057
|
*/
|
|
@@ -1824,6 +2062,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1824
2062
|
(function (EmbedType) {
|
|
1825
2063
|
EmbedType[EmbedType["Viewer"] = 0] = "Viewer";
|
|
1826
2064
|
EmbedType[EmbedType["Configurator"] = 1] = "Configurator";
|
|
2065
|
+
EmbedType[EmbedType["VTO"] = 2] = "VTO";
|
|
1827
2066
|
})(EmbedType || (EmbedType = {}));
|
|
1828
2067
|
/**
|
|
1829
2068
|
* This is the primary <plattar-embed /> node that allows easy embedding
|
|
@@ -1834,18 +2073,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1834
2073
|
var PlattarEmbed = /*#__PURE__*/function (_HTMLElement) {
|
|
1835
2074
|
_inherits(PlattarEmbed, _HTMLElement);
|
|
1836
2075
|
|
|
1837
|
-
var
|
|
2076
|
+
var _super9 = _createSuper(PlattarEmbed);
|
|
1838
2077
|
|
|
1839
2078
|
function PlattarEmbed() {
|
|
1840
|
-
var
|
|
2079
|
+
var _this27;
|
|
1841
2080
|
|
|
1842
2081
|
_classCallCheck(this, PlattarEmbed);
|
|
1843
2082
|
|
|
1844
|
-
|
|
2083
|
+
_this27 = _super9.call(this); // this is the current embed type, viewer by default
|
|
1845
2084
|
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
return
|
|
2085
|
+
_this27._currentType = EmbedType.Viewer;
|
|
2086
|
+
_this27._controller = null;
|
|
2087
|
+
return _this27;
|
|
1849
2088
|
}
|
|
1850
2089
|
|
|
1851
2090
|
_createClass(PlattarEmbed, [{
|
|
@@ -1856,7 +2095,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1856
2095
|
}, {
|
|
1857
2096
|
key: "connectedCallback",
|
|
1858
2097
|
value: function connectedCallback() {
|
|
1859
|
-
var
|
|
2098
|
+
var _this28 = this;
|
|
1860
2099
|
|
|
1861
2100
|
var embedType = this.hasAttribute("embed-type") ? this.getAttribute("embed-type") : "viewer";
|
|
1862
2101
|
|
|
@@ -1866,6 +2105,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1866
2105
|
this._currentType = EmbedType.Viewer;
|
|
1867
2106
|
break;
|
|
1868
2107
|
|
|
2108
|
+
case "vto":
|
|
2109
|
+
this._currentType = EmbedType.VTO;
|
|
2110
|
+
break;
|
|
2111
|
+
|
|
1869
2112
|
case "configurator":
|
|
1870
2113
|
this._currentType = EmbedType.Configurator;
|
|
1871
2114
|
break;
|
|
@@ -1878,7 +2121,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1878
2121
|
var observer = new MutationObserver(function (mutations) {
|
|
1879
2122
|
mutations.forEach(function (mutation) {
|
|
1880
2123
|
if (mutation.type === "attributes") {
|
|
1881
|
-
|
|
2124
|
+
_this28._OnAttributesUpdated();
|
|
1882
2125
|
}
|
|
1883
2126
|
});
|
|
1884
2127
|
});
|
|
@@ -1899,6 +2142,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1899
2142
|
}
|
|
1900
2143
|
} else if (this._currentType === EmbedType.Configurator) {
|
|
1901
2144
|
this._controller = new configurator_controller_1.ConfiguratorController(this);
|
|
2145
|
+
} else if (this._currentType === EmbedType.VTO) {
|
|
2146
|
+
this._controller = new vto_controller_1.VTOController(this);
|
|
1902
2147
|
}
|
|
1903
2148
|
|
|
1904
2149
|
var init = this.hasAttribute("init") ? this.getAttribute("init") : null;
|
|
@@ -1912,68 +2157,83 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1912
2157
|
} else if (init === "ar-fallback-qrcode") {
|
|
1913
2158
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
1914
2159
|
})["catch"](function (_err) {
|
|
1915
|
-
|
|
2160
|
+
_this28.startQRCode();
|
|
1916
2161
|
});
|
|
1917
2162
|
} else if (init === "ar-fallback-viewer") {
|
|
1918
2163
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
1919
2164
|
})["catch"](function (_err) {
|
|
1920
|
-
|
|
2165
|
+
_this28.startViewer();
|
|
1921
2166
|
});
|
|
1922
2167
|
}
|
|
1923
2168
|
}
|
|
1924
2169
|
}, {
|
|
1925
2170
|
key: "initAR",
|
|
1926
2171
|
value: function initAR() {
|
|
1927
|
-
var
|
|
2172
|
+
var _this29 = this;
|
|
1928
2173
|
|
|
1929
2174
|
return new Promise(function (accept, reject) {
|
|
1930
|
-
if (!
|
|
2175
|
+
if (!_this29._controller) {
|
|
1931
2176
|
return reject(new Error("PlattarEmbed.initAR() - cannot execute as controller has not loaded yet"));
|
|
1932
2177
|
}
|
|
1933
2178
|
|
|
1934
|
-
return
|
|
2179
|
+
return _this29._controller.initAR().then(accept)["catch"](reject);
|
|
1935
2180
|
});
|
|
1936
2181
|
}
|
|
1937
2182
|
}, {
|
|
1938
2183
|
key: "startAR",
|
|
1939
2184
|
value: function startAR() {
|
|
1940
|
-
var
|
|
2185
|
+
var _this30 = this;
|
|
1941
2186
|
|
|
1942
2187
|
return new Promise(function (accept, reject) {
|
|
1943
|
-
if (!
|
|
2188
|
+
if (!_this30._controller) {
|
|
1944
2189
|
return reject(new Error("PlattarEmbed.startAR() - cannot execute as controller has not loaded yet"));
|
|
1945
2190
|
}
|
|
1946
2191
|
|
|
1947
|
-
return
|
|
2192
|
+
return _this30._controller.startAR().then(accept)["catch"](reject);
|
|
1948
2193
|
});
|
|
1949
2194
|
}
|
|
1950
2195
|
}, {
|
|
1951
2196
|
key: "startViewer",
|
|
1952
2197
|
value: function startViewer() {
|
|
1953
|
-
var
|
|
2198
|
+
var _this31 = this;
|
|
1954
2199
|
|
|
1955
2200
|
return new Promise(function (accept, reject) {
|
|
1956
|
-
if (!
|
|
2201
|
+
if (!_this31._controller) {
|
|
1957
2202
|
return reject(new Error("PlattarEmbed.startViewer() - cannot execute as controller has not loaded yet"));
|
|
1958
2203
|
}
|
|
1959
2204
|
|
|
1960
|
-
return
|
|
2205
|
+
return _this31._controller.startRenderer().then(accept)["catch"](reject);
|
|
1961
2206
|
});
|
|
1962
2207
|
}
|
|
1963
2208
|
}, {
|
|
1964
2209
|
key: "startQRCode",
|
|
1965
2210
|
value: function startQRCode() {
|
|
1966
|
-
var
|
|
2211
|
+
var _this32 = this;
|
|
1967
2212
|
|
|
1968
2213
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1969
2214
|
return new Promise(function (accept, reject) {
|
|
1970
|
-
if (!
|
|
2215
|
+
if (!_this32._controller) {
|
|
1971
2216
|
return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as controller has not loaded yet"));
|
|
1972
2217
|
}
|
|
1973
2218
|
|
|
1974
|
-
return
|
|
2219
|
+
return _this32._controller.startQRCode(options).then(accept)["catch"](reject);
|
|
1975
2220
|
});
|
|
1976
2221
|
}
|
|
2222
|
+
/**
|
|
2223
|
+
* This will remove the currently active Renderer
|
|
2224
|
+
*
|
|
2225
|
+
* @returns - true if removed successfully, false otherwise
|
|
2226
|
+
*/
|
|
2227
|
+
|
|
2228
|
+
}, {
|
|
2229
|
+
key: "removeRenderer",
|
|
2230
|
+
value: function removeRenderer() {
|
|
2231
|
+
if (!this._controller) {
|
|
2232
|
+
return false;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
return this._controller.removeRenderer();
|
|
2236
|
+
}
|
|
1977
2237
|
/**
|
|
1978
2238
|
* This is called by the observer if any of the embed attributes have changed
|
|
1979
2239
|
* based on the state of the embed, we update the internal structure accordingly
|
|
@@ -1996,9 +2256,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
1996
2256
|
"./controllers/configurator-controller": 6,
|
|
1997
2257
|
"./controllers/product-controller": 8,
|
|
1998
2258
|
"./controllers/viewer-controller": 9,
|
|
1999
|
-
"
|
|
2259
|
+
"./controllers/vto-controller": 10,
|
|
2260
|
+
"@plattar/plattar-api": 41
|
|
2000
2261
|
}],
|
|
2001
|
-
|
|
2262
|
+
12: [function (require, module, exports) {
|
|
2002
2263
|
"use strict";
|
|
2003
2264
|
|
|
2004
2265
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -2044,7 +2305,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2044
2305
|
Object.defineProperty(exports, "__esModule", {
|
|
2045
2306
|
value: true
|
|
2046
2307
|
});
|
|
2047
|
-
exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
2308
|
+
exports.ConfiguratorState = exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
2048
2309
|
exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
|
|
2049
2310
|
exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
|
|
2050
2311
|
exports.version = __importStar(require("./version"));
|
|
@@ -2094,6 +2355,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2094
2355
|
}
|
|
2095
2356
|
});
|
|
2096
2357
|
|
|
2358
|
+
var configurator_state_1 = require("./util/configurator-state");
|
|
2359
|
+
|
|
2360
|
+
Object.defineProperty(exports, "ConfiguratorState", {
|
|
2361
|
+
enumerable: true,
|
|
2362
|
+
get: function get() {
|
|
2363
|
+
return configurator_state_1.ConfiguratorState;
|
|
2364
|
+
}
|
|
2365
|
+
});
|
|
2366
|
+
|
|
2097
2367
|
var plattar_embed_1 = __importDefault(require("./embed/plattar-embed"));
|
|
2098
2368
|
|
|
2099
2369
|
var version_1 = __importDefault(require("./version"));
|
|
@@ -2110,13 +2380,139 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2110
2380
|
"./ar/product-ar": 3,
|
|
2111
2381
|
"./ar/raw-ar": 4,
|
|
2112
2382
|
"./ar/scene-ar": 5,
|
|
2113
|
-
"./embed/plattar-embed":
|
|
2114
|
-
"./util/
|
|
2115
|
-
"./
|
|
2116
|
-
"
|
|
2117
|
-
"@plattar/plattar-
|
|
2383
|
+
"./embed/plattar-embed": 11,
|
|
2384
|
+
"./util/configurator-state": 13,
|
|
2385
|
+
"./util/util": 14,
|
|
2386
|
+
"./version": 15,
|
|
2387
|
+
"@plattar/plattar-qrcode": 107,
|
|
2388
|
+
"@plattar/plattar-web": 126
|
|
2118
2389
|
}],
|
|
2119
|
-
|
|
2390
|
+
13: [function (require, module, exports) {
|
|
2391
|
+
"use strict";
|
|
2392
|
+
|
|
2393
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2394
|
+
value: true
|
|
2395
|
+
});
|
|
2396
|
+
exports.ConfiguratorState = void 0;
|
|
2397
|
+
|
|
2398
|
+
var ConfiguratorState = /*#__PURE__*/function () {
|
|
2399
|
+
function ConfiguratorState() {
|
|
2400
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2401
|
+
|
|
2402
|
+
_classCallCheck(this, ConfiguratorState);
|
|
2403
|
+
|
|
2404
|
+
var defaultState = {
|
|
2405
|
+
meta: {
|
|
2406
|
+
scene_product_index: 0,
|
|
2407
|
+
product_variation_index: 1,
|
|
2408
|
+
meta_index: 2
|
|
2409
|
+
},
|
|
2410
|
+
states: []
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
if (state) {
|
|
2414
|
+
try {
|
|
2415
|
+
var decodedb64State = atob(state);
|
|
2416
|
+
var parsedState = JSON.parse(decodedb64State); // set the meta data
|
|
2417
|
+
|
|
2418
|
+
if (parsedState.meta) {
|
|
2419
|
+
defaultState.meta.scene_product_index = parsedState.meta.scene_product_index || 0;
|
|
2420
|
+
defaultState.meta.product_variation_index = parsedState.meta.product_variation_index || 1;
|
|
2421
|
+
defaultState.meta.meta_index = parsedState.meta.meta_index || 2;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
defaultState.states = parsedState.states || [];
|
|
2425
|
+
} catch (err) {
|
|
2426
|
+
console.error("ConfiguratorState.constructor() - there was an error parsing configurator state");
|
|
2427
|
+
console.error(err);
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
this._state = defaultState;
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Adds a new Scene Product/Variation combo with meta-data into the Configurator State
|
|
2435
|
+
*
|
|
2436
|
+
* @param sceneProductID - The Scene Product ID to be used (as defined in Plattar CMS)
|
|
2437
|
+
* @param productVariationID - The Product Variation ID to be used (as defined in Plattar CMS)
|
|
2438
|
+
* @param metaData - Arbitrary meta-data that can be used against certain operaions
|
|
2439
|
+
*/
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
_createClass(ConfiguratorState, [{
|
|
2443
|
+
key: "addSceneProduct",
|
|
2444
|
+
value: function addSceneProduct(sceneProductID, productVariationID) {
|
|
2445
|
+
var metaData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
2446
|
+
|
|
2447
|
+
if (sceneProductID && productVariationID) {
|
|
2448
|
+
var states = this._state.states;
|
|
2449
|
+
var meta = this._state.meta;
|
|
2450
|
+
var newData = [];
|
|
2451
|
+
newData.splice(meta.scene_product_index, 0, sceneProductID);
|
|
2452
|
+
newData.splice(meta.product_variation_index, 0, productVariationID);
|
|
2453
|
+
|
|
2454
|
+
if (metaData) {
|
|
2455
|
+
newData.splice(meta.meta_index, 0, metaData);
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
states.push(newData);
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
/**
|
|
2462
|
+
* Iterate over the internal state data
|
|
2463
|
+
*/
|
|
2464
|
+
|
|
2465
|
+
}, {
|
|
2466
|
+
key: "forEach",
|
|
2467
|
+
value: function forEach(callback) {
|
|
2468
|
+
var states = this._state.states;
|
|
2469
|
+
var meta = this._state.meta;
|
|
2470
|
+
|
|
2471
|
+
if (states.length > 0) {
|
|
2472
|
+
states.forEach(function (productState) {
|
|
2473
|
+
if (productState.length === 2) {
|
|
2474
|
+
callback({
|
|
2475
|
+
scene_product_id: productState[meta.scene_product_index],
|
|
2476
|
+
product_variation_id: productState[meta.product_variation_index],
|
|
2477
|
+
meta_data: {
|
|
2478
|
+
augment: true
|
|
2479
|
+
}
|
|
2480
|
+
});
|
|
2481
|
+
} else if (productState.length === 3) {
|
|
2482
|
+
callback({
|
|
2483
|
+
scene_product_id: productState[meta.scene_product_index],
|
|
2484
|
+
product_variation_id: productState[meta.product_variation_index],
|
|
2485
|
+
meta_data: {
|
|
2486
|
+
augment: productState[meta.meta_index].augment || true
|
|
2487
|
+
}
|
|
2488
|
+
});
|
|
2489
|
+
}
|
|
2490
|
+
});
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
}, {
|
|
2494
|
+
key: "length",
|
|
2495
|
+
get: function get() {
|
|
2496
|
+
return this._state.states.length;
|
|
2497
|
+
}
|
|
2498
|
+
}, {
|
|
2499
|
+
key: "encode",
|
|
2500
|
+
value: function encode() {
|
|
2501
|
+
return btoa(JSON.stringify(this._state));
|
|
2502
|
+
}
|
|
2503
|
+
}], [{
|
|
2504
|
+
key: "decode",
|
|
2505
|
+
value: function decode(state) {
|
|
2506
|
+
return new ConfiguratorState(state);
|
|
2507
|
+
}
|
|
2508
|
+
}]);
|
|
2509
|
+
|
|
2510
|
+
return ConfiguratorState;
|
|
2511
|
+
}();
|
|
2512
|
+
|
|
2513
|
+
exports.ConfiguratorState = ConfiguratorState;
|
|
2514
|
+
}, {}],
|
|
2515
|
+
14: [function (require, module, exports) {
|
|
2120
2516
|
"use strict";
|
|
2121
2517
|
|
|
2122
2518
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2240,15 +2636,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2240
2636
|
|
|
2241
2637
|
exports.Util = Util;
|
|
2242
2638
|
}, {}],
|
|
2243
|
-
|
|
2639
|
+
15: [function (require, module, exports) {
|
|
2244
2640
|
"use strict";
|
|
2245
2641
|
|
|
2246
2642
|
Object.defineProperty(exports, "__esModule", {
|
|
2247
2643
|
value: true
|
|
2248
2644
|
});
|
|
2249
|
-
exports["default"] = "1.123.
|
|
2645
|
+
exports["default"] = "1.123.3";
|
|
2250
2646
|
}, {}],
|
|
2251
|
-
|
|
2647
|
+
16: [function (require, module, exports) {
|
|
2252
2648
|
"use strict";
|
|
2253
2649
|
|
|
2254
2650
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2264,7 +2660,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2264
2660
|
|
|
2265
2661
|
exports["default"] = ARViewer;
|
|
2266
2662
|
}, {}],
|
|
2267
|
-
|
|
2663
|
+
17: [function (require, module, exports) {
|
|
2268
2664
|
"use strict";
|
|
2269
2665
|
|
|
2270
2666
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2282,20 +2678,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2282
2678
|
var QuicklookViewer = /*#__PURE__*/function (_ar_viewer_1$default) {
|
|
2283
2679
|
_inherits(QuicklookViewer, _ar_viewer_1$default);
|
|
2284
2680
|
|
|
2285
|
-
var
|
|
2681
|
+
var _super10 = _createSuper(QuicklookViewer);
|
|
2286
2682
|
|
|
2287
2683
|
function QuicklookViewer() {
|
|
2288
|
-
var
|
|
2684
|
+
var _this33;
|
|
2289
2685
|
|
|
2290
2686
|
_classCallCheck(this, QuicklookViewer);
|
|
2291
2687
|
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2688
|
+
_this33 = _super10.call(this);
|
|
2689
|
+
_this33.araction = null;
|
|
2690
|
+
_this33.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
|
|
2295
2691
|
|
|
2296
|
-
|
|
2692
|
+
_this33.arcallback = function () {};
|
|
2297
2693
|
|
|
2298
|
-
return
|
|
2694
|
+
return _this33;
|
|
2299
2695
|
}
|
|
2300
2696
|
|
|
2301
2697
|
_createClass(QuicklookViewer, [{
|
|
@@ -2311,7 +2707,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2311
2707
|
}, {
|
|
2312
2708
|
key: "start",
|
|
2313
2709
|
value: function start() {
|
|
2314
|
-
var
|
|
2710
|
+
var _this34 = this;
|
|
2315
2711
|
|
|
2316
2712
|
if (!this.modelUrl) {
|
|
2317
2713
|
throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
|
|
@@ -2326,7 +2722,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2326
2722
|
if (araction) {
|
|
2327
2723
|
var handleQuicklook = function handleQuicklook(event) {
|
|
2328
2724
|
if (event.data === "_apple_ar_quicklook_button_tapped") {
|
|
2329
|
-
|
|
2725
|
+
_this34.arcallback();
|
|
2330
2726
|
}
|
|
2331
2727
|
|
|
2332
2728
|
document.body.removeChild(anchor);
|
|
@@ -2352,9 +2748,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2352
2748
|
|
|
2353
2749
|
exports["default"] = QuicklookViewer;
|
|
2354
2750
|
}, {
|
|
2355
|
-
"./ar-viewer":
|
|
2751
|
+
"./ar-viewer": 16
|
|
2356
2752
|
}],
|
|
2357
|
-
|
|
2753
|
+
18: [function (require, module, exports) {
|
|
2358
2754
|
"use strict";
|
|
2359
2755
|
|
|
2360
2756
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2372,12 +2768,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2372
2768
|
var RealityViewer = /*#__PURE__*/function (_ar_viewer_1$default2) {
|
|
2373
2769
|
_inherits(RealityViewer, _ar_viewer_1$default2);
|
|
2374
2770
|
|
|
2375
|
-
var
|
|
2771
|
+
var _super11 = _createSuper(RealityViewer);
|
|
2376
2772
|
|
|
2377
2773
|
function RealityViewer() {
|
|
2378
2774
|
_classCallCheck(this, RealityViewer);
|
|
2379
2775
|
|
|
2380
|
-
return
|
|
2776
|
+
return _super11.call(this);
|
|
2381
2777
|
}
|
|
2382
2778
|
|
|
2383
2779
|
_createClass(RealityViewer, [{
|
|
@@ -2410,9 +2806,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2410
2806
|
|
|
2411
2807
|
exports["default"] = RealityViewer;
|
|
2412
2808
|
}, {
|
|
2413
|
-
"./ar-viewer":
|
|
2809
|
+
"./ar-viewer": 16
|
|
2414
2810
|
}],
|
|
2415
|
-
|
|
2811
|
+
19: [function (require, module, exports) {
|
|
2416
2812
|
"use strict";
|
|
2417
2813
|
|
|
2418
2814
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2430,19 +2826,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2430
2826
|
var SceneViewer = /*#__PURE__*/function (_ar_viewer_1$default3) {
|
|
2431
2827
|
_inherits(SceneViewer, _ar_viewer_1$default3);
|
|
2432
2828
|
|
|
2433
|
-
var
|
|
2829
|
+
var _super12 = _createSuper(SceneViewer);
|
|
2434
2830
|
|
|
2435
2831
|
function SceneViewer() {
|
|
2436
|
-
var
|
|
2832
|
+
var _this35;
|
|
2437
2833
|
|
|
2438
2834
|
_classCallCheck(this, SceneViewer);
|
|
2439
2835
|
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
return
|
|
2836
|
+
_this35 = _super12.call(this);
|
|
2837
|
+
_this35.araction = null;
|
|
2838
|
+
_this35.isVertical = false;
|
|
2839
|
+
_this35.titleHTML = "<b>" + document.title;
|
|
2840
|
+
_this35.isVertical = false;
|
|
2841
|
+
return _this35;
|
|
2446
2842
|
}
|
|
2447
2843
|
|
|
2448
2844
|
_createClass(SceneViewer, [{
|
|
@@ -2499,9 +2895,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2499
2895
|
|
|
2500
2896
|
exports["default"] = SceneViewer;
|
|
2501
2897
|
}, {
|
|
2502
|
-
"./ar-viewer":
|
|
2898
|
+
"./ar-viewer": 16
|
|
2503
2899
|
}],
|
|
2504
|
-
|
|
2900
|
+
20: [function (require, module, exports) {
|
|
2505
2901
|
"use strict";
|
|
2506
2902
|
|
|
2507
2903
|
var Messenger = require("./messenger/messenger.js");
|
|
@@ -2537,12 +2933,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2537
2933
|
version: Version
|
|
2538
2934
|
};
|
|
2539
2935
|
}, {
|
|
2540
|
-
"./memory/memory.js":
|
|
2541
|
-
"./messenger/global-event-handler.js":
|
|
2542
|
-
"./messenger/messenger.js":
|
|
2543
|
-
"./version":
|
|
2936
|
+
"./memory/memory.js": 21,
|
|
2937
|
+
"./messenger/global-event-handler.js": 28,
|
|
2938
|
+
"./messenger/messenger.js": 29,
|
|
2939
|
+
"./version": 34
|
|
2544
2940
|
}],
|
|
2545
|
-
|
|
2941
|
+
21: [function (require, module, exports) {
|
|
2546
2942
|
var PermanentMemory = require("./permanent-memory");
|
|
2547
2943
|
|
|
2548
2944
|
var TemporaryMemory = require("./temporary-memory");
|
|
@@ -2554,7 +2950,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2554
2950
|
|
|
2555
2951
|
var Memory = /*#__PURE__*/function () {
|
|
2556
2952
|
function Memory(messengerInstance) {
|
|
2557
|
-
var
|
|
2953
|
+
var _this36 = this;
|
|
2558
2954
|
|
|
2559
2955
|
_classCallCheck(this, Memory);
|
|
2560
2956
|
|
|
@@ -2563,11 +2959,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2563
2959
|
this._permMemory = new PermanentMemory(messengerInstance);
|
|
2564
2960
|
|
|
2565
2961
|
this._messenger.self.__memory__set_temp_var = function (name, data) {
|
|
2566
|
-
|
|
2962
|
+
_this36._tempMemory[name] = data;
|
|
2567
2963
|
};
|
|
2568
2964
|
|
|
2569
2965
|
this._messenger.self.__memory__set_perm_var = function (name, data) {
|
|
2570
|
-
|
|
2966
|
+
_this36._permMemory[name] = data;
|
|
2571
2967
|
};
|
|
2572
2968
|
}
|
|
2573
2969
|
|
|
@@ -2588,10 +2984,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2588
2984
|
|
|
2589
2985
|
module.exports = Memory;
|
|
2590
2986
|
}, {
|
|
2591
|
-
"./permanent-memory":
|
|
2592
|
-
"./temporary-memory":
|
|
2987
|
+
"./permanent-memory": 22,
|
|
2988
|
+
"./temporary-memory": 23
|
|
2593
2989
|
}],
|
|
2594
|
-
|
|
2990
|
+
22: [function (require, module, exports) {
|
|
2595
2991
|
var WrappedValue = require("./wrapped-value");
|
|
2596
2992
|
|
|
2597
2993
|
var PermanentMemory = /*#__PURE__*/_createClass(function PermanentMemory(messengerInstance) {
|
|
@@ -2689,9 +3085,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2689
3085
|
|
|
2690
3086
|
module.exports = PermanentMemory;
|
|
2691
3087
|
}, {
|
|
2692
|
-
"./wrapped-value":
|
|
3088
|
+
"./wrapped-value": 24
|
|
2693
3089
|
}],
|
|
2694
|
-
|
|
3090
|
+
23: [function (require, module, exports) {
|
|
2695
3091
|
var WrappedValue = require("./wrapped-value");
|
|
2696
3092
|
|
|
2697
3093
|
var TemporaryMemory = /*#__PURE__*/_createClass(function TemporaryMemory(messengerInstance) {
|
|
@@ -2768,9 +3164,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2768
3164
|
|
|
2769
3165
|
module.exports = TemporaryMemory;
|
|
2770
3166
|
}, {
|
|
2771
|
-
"./wrapped-value":
|
|
3167
|
+
"./wrapped-value": 24
|
|
2772
3168
|
}],
|
|
2773
|
-
|
|
3169
|
+
24: [function (require, module, exports) {
|
|
2774
3170
|
/**
|
|
2775
3171
|
* WrappedValue represents a generic value type with a callback function
|
|
2776
3172
|
* for when the value has changed
|
|
@@ -2888,7 +3284,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2888
3284
|
|
|
2889
3285
|
module.exports = WrappedValue;
|
|
2890
3286
|
}, {}],
|
|
2891
|
-
|
|
3287
|
+
25: [function (require, module, exports) {
|
|
2892
3288
|
/**
|
|
2893
3289
|
* Broadcaster is used to call functions in multiple contexts at the
|
|
2894
3290
|
* same time. This can be useful without having to handle complex logic
|
|
@@ -2955,7 +3351,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2955
3351
|
|
|
2956
3352
|
module.exports = Broadcaster;
|
|
2957
3353
|
}, {}],
|
|
2958
|
-
|
|
3354
|
+
26: [function (require, module, exports) {
|
|
2959
3355
|
var WrappedFunction = require("./wrapped-local-function");
|
|
2960
3356
|
|
|
2961
3357
|
var CurrentFunctionList = /*#__PURE__*/_createClass(function CurrentFunctionList() {
|
|
@@ -3018,9 +3414,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3018
3414
|
|
|
3019
3415
|
module.exports = CurrentFunctionList;
|
|
3020
3416
|
}, {
|
|
3021
|
-
"./wrapped-local-function":
|
|
3417
|
+
"./wrapped-local-function": 27
|
|
3022
3418
|
}],
|
|
3023
|
-
|
|
3419
|
+
27: [function (require, module, exports) {
|
|
3024
3420
|
var Util = require("../util/util.js");
|
|
3025
3421
|
/**
|
|
3026
3422
|
* WrappedLocalFunction represents a container that holds and maintains a specific function
|
|
@@ -3065,20 +3461,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3065
3461
|
}, {
|
|
3066
3462
|
key: "exec",
|
|
3067
3463
|
value: function exec() {
|
|
3068
|
-
var
|
|
3464
|
+
var _this37 = this;
|
|
3069
3465
|
|
|
3070
3466
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
3071
3467
|
args[_key3] = arguments[_key3];
|
|
3072
3468
|
}
|
|
3073
3469
|
|
|
3074
3470
|
return new Promise(function (accept, reject) {
|
|
3075
|
-
if (!
|
|
3076
|
-
return reject(new Error("WrappedLocalFunction.exec() function with name " +
|
|
3471
|
+
if (!_this37._value) {
|
|
3472
|
+
return reject(new Error("WrappedLocalFunction.exec() function with name " + _this37._funcName + "() is not defined"));
|
|
3077
3473
|
}
|
|
3078
3474
|
|
|
3079
3475
|
try {
|
|
3080
3476
|
// otherwise execute the function
|
|
3081
|
-
var rObject =
|
|
3477
|
+
var rObject = _this37._execute.apply(_this37, args); // we need to check if the returned object is a Promise, if so, handle it
|
|
3082
3478
|
// differently. This can happen if the function wants to execute asyn
|
|
3083
3479
|
|
|
3084
3480
|
|
|
@@ -3130,9 +3526,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3130
3526
|
|
|
3131
3527
|
module.exports = WrappedLocalFunction;
|
|
3132
3528
|
}, {
|
|
3133
|
-
"../util/util.js":
|
|
3529
|
+
"../util/util.js": 33
|
|
3134
3530
|
}],
|
|
3135
|
-
|
|
3531
|
+
28: [function (require, module, exports) {
|
|
3136
3532
|
var RemoteInterface = require("./remote-interface.js");
|
|
3137
3533
|
/**
|
|
3138
3534
|
* This is a singleton class that handles events on a global basis. Allows
|
|
@@ -3142,7 +3538,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3142
3538
|
|
|
3143
3539
|
var GlobalEventHandler = /*#__PURE__*/function () {
|
|
3144
3540
|
function GlobalEventHandler() {
|
|
3145
|
-
var
|
|
3541
|
+
var _this38 = this;
|
|
3146
3542
|
|
|
3147
3543
|
_classCallCheck(this, GlobalEventHandler);
|
|
3148
3544
|
|
|
@@ -3164,10 +3560,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3164
3560
|
|
|
3165
3561
|
if (jsonData && jsonData.event && jsonData.data) {
|
|
3166
3562
|
// see if there are any listeners for this
|
|
3167
|
-
if (
|
|
3563
|
+
if (_this38._eventListeners[jsonData.event]) {
|
|
3168
3564
|
var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
|
|
3169
3565
|
|
|
3170
|
-
|
|
3566
|
+
_this38._eventListeners[jsonData.event].forEach(function (callback) {
|
|
3171
3567
|
try {
|
|
3172
3568
|
callback(remoteInterface, jsonData.data);
|
|
3173
3569
|
} catch (e) {
|
|
@@ -3224,9 +3620,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3224
3620
|
|
|
3225
3621
|
module.exports = GlobalEventHandler;
|
|
3226
3622
|
}, {
|
|
3227
|
-
"./remote-interface.js":
|
|
3623
|
+
"./remote-interface.js": 30
|
|
3228
3624
|
}],
|
|
3229
|
-
|
|
3625
|
+
29: [function (require, module, exports) {
|
|
3230
3626
|
var CurrentFunctionList = require("./current/current-function-list");
|
|
3231
3627
|
|
|
3232
3628
|
var RemoteInterface = require("./remote-interface");
|
|
@@ -3363,40 +3759,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3363
3759
|
}, {
|
|
3364
3760
|
key: "_registerListeners",
|
|
3365
3761
|
value: function _registerListeners() {
|
|
3366
|
-
var
|
|
3762
|
+
var _this39 = this;
|
|
3367
3763
|
|
|
3368
3764
|
GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
|
|
3369
3765
|
var iframeID = src.id; // check reserved key list
|
|
3370
3766
|
|
|
3371
3767
|
switch (iframeID) {
|
|
3372
3768
|
case undefined:
|
|
3373
|
-
throw new Error("Messenger[" +
|
|
3769
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID cannot be undefined");
|
|
3374
3770
|
|
|
3375
3771
|
case "self":
|
|
3376
|
-
throw new Error("Messenger[" +
|
|
3772
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
3377
3773
|
|
|
3378
3774
|
case "parent":
|
|
3379
|
-
throw new Error("Messenger[" +
|
|
3775
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
3380
3776
|
|
|
3381
3777
|
case "id":
|
|
3382
|
-
throw new Error("Messenger[" +
|
|
3778
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
3383
3779
|
|
|
3384
3780
|
case "onload":
|
|
3385
|
-
throw new Error("Messenger[" +
|
|
3781
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
3386
3782
|
|
|
3387
3783
|
default:
|
|
3388
3784
|
break;
|
|
3389
3785
|
} // initialise the child iframe as a messenger pipe
|
|
3390
3786
|
|
|
3391
3787
|
|
|
3392
|
-
|
|
3788
|
+
_this39[iframeID] = new RemoteFunctionList(iframeID);
|
|
3393
3789
|
|
|
3394
|
-
|
|
3790
|
+
_this39[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
3395
3791
|
|
|
3396
3792
|
|
|
3397
|
-
|
|
3793
|
+
_this39._broadcaster._push(iframeID);
|
|
3398
3794
|
|
|
3399
|
-
var callbacks =
|
|
3795
|
+
var callbacks = _this39._callbacks; // we have registered callbacks, begin execution
|
|
3400
3796
|
|
|
3401
3797
|
if (callbacks.has(iframeID)) {
|
|
3402
3798
|
var array = callbacks.get(iframeID);
|
|
@@ -3420,33 +3816,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3420
3816
|
|
|
3421
3817
|
switch (iframeID) {
|
|
3422
3818
|
case undefined:
|
|
3423
|
-
throw new Error("Messenger[" +
|
|
3819
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID cannot be undefined");
|
|
3424
3820
|
|
|
3425
3821
|
case "self":
|
|
3426
|
-
throw new Error("Messenger[" +
|
|
3822
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
3427
3823
|
|
|
3428
3824
|
case "parent":
|
|
3429
|
-
throw new Error("Messenger[" +
|
|
3825
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
3430
3826
|
|
|
3431
3827
|
case "id":
|
|
3432
|
-
throw new Error("Messenger[" +
|
|
3828
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
3433
3829
|
|
|
3434
3830
|
case "onload":
|
|
3435
|
-
throw new Error("Messenger[" +
|
|
3831
|
+
throw new Error("Messenger[" + _this39._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
3436
3832
|
|
|
3437
3833
|
default:
|
|
3438
3834
|
break;
|
|
3439
3835
|
} // initialise the child iframe as a messenger pipe
|
|
3440
3836
|
|
|
3441
3837
|
|
|
3442
|
-
|
|
3838
|
+
_this39[iframeID] = new RemoteFunctionList(iframeID);
|
|
3443
3839
|
|
|
3444
|
-
|
|
3840
|
+
_this39[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
3445
3841
|
|
|
3446
3842
|
|
|
3447
|
-
|
|
3843
|
+
_this39._broadcaster._push(iframeID);
|
|
3448
3844
|
|
|
3449
|
-
var callbacks =
|
|
3845
|
+
var callbacks = _this39._callbacks; // we have registered callbacks, begin execution
|
|
3450
3846
|
|
|
3451
3847
|
if (callbacks.has(iframeID)) {
|
|
3452
3848
|
var array = callbacks.get(iframeID);
|
|
@@ -3466,11 +3862,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3466
3862
|
});
|
|
3467
3863
|
GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
|
|
3468
3864
|
var iframeID = "parent";
|
|
3469
|
-
|
|
3865
|
+
_this39[iframeID] = new RemoteFunctionList(iframeID);
|
|
3470
3866
|
|
|
3471
|
-
|
|
3867
|
+
_this39[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
3472
3868
|
|
|
3473
|
-
var callbacks =
|
|
3869
|
+
var callbacks = _this39._callbacks; // we have registered callbacks, begin execution
|
|
3474
3870
|
|
|
3475
3871
|
if (callbacks.has(iframeID)) {
|
|
3476
3872
|
var array = callbacks.get(iframeID);
|
|
@@ -3495,11 +3891,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3495
3891
|
|
|
3496
3892
|
GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
|
|
3497
3893
|
var iframeID = "parent";
|
|
3498
|
-
|
|
3894
|
+
_this39[iframeID] = new RemoteFunctionList(iframeID);
|
|
3499
3895
|
|
|
3500
|
-
|
|
3896
|
+
_this39[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
3501
3897
|
|
|
3502
|
-
var callbacks =
|
|
3898
|
+
var callbacks = _this39._callbacks; // we have registered callbacks, begin execution
|
|
3503
3899
|
|
|
3504
3900
|
if (callbacks.has(iframeID)) {
|
|
3505
3901
|
var array = callbacks.get(iframeID);
|
|
@@ -3555,14 +3951,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3555
3951
|
|
|
3556
3952
|
module.exports = Messenger;
|
|
3557
3953
|
}, {
|
|
3558
|
-
"./broadcaster.js":
|
|
3559
|
-
"./current/current-function-list":
|
|
3560
|
-
"./global-event-handler.js":
|
|
3561
|
-
"./remote-interface":
|
|
3562
|
-
"./remote/remote-function-list":
|
|
3563
|
-
"./util/util.js":
|
|
3954
|
+
"./broadcaster.js": 25,
|
|
3955
|
+
"./current/current-function-list": 26,
|
|
3956
|
+
"./global-event-handler.js": 28,
|
|
3957
|
+
"./remote-interface": 30,
|
|
3958
|
+
"./remote/remote-function-list": 31,
|
|
3959
|
+
"./util/util.js": 33
|
|
3564
3960
|
}],
|
|
3565
|
-
|
|
3961
|
+
30: [function (require, module, exports) {
|
|
3566
3962
|
/**
|
|
3567
3963
|
* Provides a single useful interface for performing remote function calls
|
|
3568
3964
|
*/
|
|
@@ -3634,7 +4030,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3634
4030
|
|
|
3635
4031
|
module.exports = RemoteInterface;
|
|
3636
4032
|
}, {}],
|
|
3637
|
-
|
|
4033
|
+
31: [function (require, module, exports) {
|
|
3638
4034
|
var WrappedFunction = require("./wrapped-remote-function");
|
|
3639
4035
|
|
|
3640
4036
|
var RemoteFunctionList = /*#__PURE__*/function () {
|
|
@@ -3722,9 +4118,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3722
4118
|
|
|
3723
4119
|
module.exports = RemoteFunctionList;
|
|
3724
4120
|
}, {
|
|
3725
|
-
"./wrapped-remote-function":
|
|
4121
|
+
"./wrapped-remote-function": 32
|
|
3726
4122
|
}],
|
|
3727
|
-
|
|
4123
|
+
32: [function (require, module, exports) {
|
|
3728
4124
|
var Util = require("../util/util.js");
|
|
3729
4125
|
|
|
3730
4126
|
var GlobalEventHandler = require("../global-event-handler.js");
|
|
@@ -3737,7 +4133,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3737
4133
|
|
|
3738
4134
|
var WrappedRemoteFunction = /*#__PURE__*/function () {
|
|
3739
4135
|
function WrappedRemoteFunction(funcName, remoteInterface) {
|
|
3740
|
-
var
|
|
4136
|
+
var _this40 = this;
|
|
3741
4137
|
|
|
3742
4138
|
_classCallCheck(this, WrappedRemoteFunction);
|
|
3743
4139
|
|
|
@@ -3748,19 +4144,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3748
4144
|
GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
|
|
3749
4145
|
var instanceID = data.instance_id; // the function name must match
|
|
3750
4146
|
|
|
3751
|
-
if (data.function_name !==
|
|
4147
|
+
if (data.function_name !== _this40._funcName) {
|
|
3752
4148
|
return;
|
|
3753
4149
|
} // the instance ID must be found, otherwise this is a rogue execution
|
|
3754
4150
|
// that can be ignored (should not happen)
|
|
3755
4151
|
|
|
3756
4152
|
|
|
3757
|
-
if (!
|
|
4153
|
+
if (!_this40._callInstances[instanceID]) {
|
|
3758
4154
|
return;
|
|
3759
4155
|
}
|
|
3760
4156
|
|
|
3761
|
-
var promise =
|
|
4157
|
+
var promise = _this40._callInstances[instanceID]; // remove the old instance
|
|
3762
4158
|
|
|
3763
|
-
delete
|
|
4159
|
+
delete _this40._callInstances[instanceID]; // perform the promise callbacks
|
|
3764
4160
|
|
|
3765
4161
|
if (data.function_status === "success") {
|
|
3766
4162
|
promise.accept(data.function_args);
|
|
@@ -3777,7 +4173,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3777
4173
|
_createClass(WrappedRemoteFunction, [{
|
|
3778
4174
|
key: "exec",
|
|
3779
4175
|
value: function exec() {
|
|
3780
|
-
var
|
|
4176
|
+
var _this41 = this;
|
|
3781
4177
|
|
|
3782
4178
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
3783
4179
|
args[_key4] = arguments[_key4];
|
|
@@ -3797,14 +4193,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3797
4193
|
|
|
3798
4194
|
return new Promise(function (accept, reject) {
|
|
3799
4195
|
// save this promise to be executed later
|
|
3800
|
-
|
|
4196
|
+
_this41._callInstances[instanceID] = {
|
|
3801
4197
|
accept: accept,
|
|
3802
4198
|
reject: reject
|
|
3803
4199
|
}; // execute this event in another context
|
|
3804
4200
|
|
|
3805
|
-
|
|
4201
|
+
_this41._remoteInterface.send("__messenger__exec_fnc", {
|
|
3806
4202
|
instance_id: instanceID,
|
|
3807
|
-
function_name:
|
|
4203
|
+
function_name: _this41._funcName,
|
|
3808
4204
|
function_args: args
|
|
3809
4205
|
});
|
|
3810
4206
|
});
|
|
@@ -3816,10 +4212,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3816
4212
|
|
|
3817
4213
|
module.exports = WrappedRemoteFunction;
|
|
3818
4214
|
}, {
|
|
3819
|
-
"../global-event-handler.js":
|
|
3820
|
-
"../util/util.js":
|
|
4215
|
+
"../global-event-handler.js": 28,
|
|
4216
|
+
"../util/util.js": 33
|
|
3821
4217
|
}],
|
|
3822
|
-
|
|
4218
|
+
33: [function (require, module, exports) {
|
|
3823
4219
|
var Util = /*#__PURE__*/function () {
|
|
3824
4220
|
function Util() {
|
|
3825
4221
|
_classCallCheck(this, Util);
|
|
@@ -3859,10 +4255,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3859
4255
|
|
|
3860
4256
|
module.exports = Util;
|
|
3861
4257
|
}, {}],
|
|
3862
|
-
|
|
4258
|
+
34: [function (require, module, exports) {
|
|
3863
4259
|
module.exports = "1.113.6";
|
|
3864
4260
|
}, {}],
|
|
3865
|
-
|
|
4261
|
+
35: [function (require, module, exports) {
|
|
3866
4262
|
"use strict";
|
|
3867
4263
|
|
|
3868
4264
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -3931,9 +4327,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3931
4327
|
|
|
3932
4328
|
exports.AnalyticsData = AnalyticsData;
|
|
3933
4329
|
}, {
|
|
3934
|
-
"../util/util":
|
|
4330
|
+
"../util/util": 39
|
|
3935
4331
|
}],
|
|
3936
|
-
|
|
4332
|
+
36: [function (require, module, exports) {
|
|
3937
4333
|
"use strict";
|
|
3938
4334
|
|
|
3939
4335
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -3953,7 +4349,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3953
4349
|
|
|
3954
4350
|
var Analytics = /*#__PURE__*/function () {
|
|
3955
4351
|
function Analytics(applicationID) {
|
|
3956
|
-
var
|
|
4352
|
+
var _this42 = this;
|
|
3957
4353
|
|
|
3958
4354
|
_classCallCheck(this, Analytics);
|
|
3959
4355
|
|
|
@@ -3970,21 +4366,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3970
4366
|
|
|
3971
4367
|
this._handlePageHide = function () {
|
|
3972
4368
|
if (document.visibilityState === "hidden") {
|
|
3973
|
-
|
|
3974
|
-
} else if (
|
|
4369
|
+
_this42._pageTime = new Date();
|
|
4370
|
+
} else if (_this42._pageTime) {
|
|
3975
4371
|
var time2 = new Date();
|
|
3976
4372
|
|
|
3977
|
-
var diff = time2.getTime() -
|
|
4373
|
+
var diff = time2.getTime() - _this42._pageTime.getTime();
|
|
3978
4374
|
|
|
3979
|
-
var data =
|
|
4375
|
+
var data = _this42.data;
|
|
3980
4376
|
data.push("eventAction", "View Time");
|
|
3981
4377
|
data.push("viewTime", diff);
|
|
3982
4378
|
data.push("eventLabel", diff);
|
|
3983
4379
|
|
|
3984
|
-
|
|
4380
|
+
_this42.write();
|
|
3985
4381
|
|
|
3986
|
-
|
|
3987
|
-
document.removeEventListener("visibilitychange",
|
|
4382
|
+
_this42._pageTime = null;
|
|
4383
|
+
document.removeEventListener("visibilitychange", _this42._handlePageHide, false);
|
|
3988
4384
|
}
|
|
3989
4385
|
};
|
|
3990
4386
|
}
|
|
@@ -3992,7 +4388,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3992
4388
|
_createClass(Analytics, [{
|
|
3993
4389
|
key: "query",
|
|
3994
4390
|
value: function query() {
|
|
3995
|
-
var
|
|
4391
|
+
var _this43 = this;
|
|
3996
4392
|
|
|
3997
4393
|
var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
3998
4394
|
|
|
@@ -4001,11 +4397,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4001
4397
|
return reject(new Error("Analytics.query() - provided query was null"));
|
|
4002
4398
|
}
|
|
4003
4399
|
|
|
4004
|
-
var url =
|
|
4400
|
+
var url = _this43.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
4005
4401
|
var data = {
|
|
4006
4402
|
type: "read",
|
|
4007
|
-
application_id:
|
|
4008
|
-
event:
|
|
4403
|
+
application_id: _this43._applicationID,
|
|
4404
|
+
event: _this43.event,
|
|
4009
4405
|
data: _query
|
|
4010
4406
|
};
|
|
4011
4407
|
basic_http_1["default"].exec("POST", url, data).then(function (result) {
|
|
@@ -4016,21 +4412,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4016
4412
|
}, {
|
|
4017
4413
|
key: "write",
|
|
4018
4414
|
value: function write() {
|
|
4019
|
-
var
|
|
4415
|
+
var _this44 = this;
|
|
4020
4416
|
|
|
4021
4417
|
return new Promise(function (accept, reject) {
|
|
4022
|
-
var data =
|
|
4023
|
-
var url =
|
|
4024
|
-
data.push("applicationId",
|
|
4418
|
+
var data = _this44._data;
|
|
4419
|
+
var url = _this44.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
4420
|
+
data.push("applicationId", _this44._applicationID);
|
|
4025
4421
|
var sendData = {
|
|
4026
4422
|
type: "write",
|
|
4027
|
-
application_id:
|
|
4028
|
-
origin:
|
|
4029
|
-
event:
|
|
4423
|
+
application_id: _this44._applicationID,
|
|
4424
|
+
origin: _this44.origin,
|
|
4425
|
+
event: _this44.event,
|
|
4030
4426
|
data: data.data
|
|
4031
4427
|
};
|
|
4032
4428
|
|
|
4033
|
-
if (
|
|
4429
|
+
if (_this44.isBeacon === false) {
|
|
4034
4430
|
basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
|
|
4035
4431
|
accept(result && result.results ? result.results : {});
|
|
4036
4432
|
})["catch"](reject);
|
|
@@ -4058,10 +4454,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4058
4454
|
|
|
4059
4455
|
exports.Analytics = Analytics;
|
|
4060
4456
|
}, {
|
|
4061
|
-
"../util/basic-http":
|
|
4062
|
-
"./analytics-data":
|
|
4457
|
+
"../util/basic-http": 38,
|
|
4458
|
+
"./analytics-data": 35
|
|
4063
4459
|
}],
|
|
4064
|
-
|
|
4460
|
+
37: [function (require, module, exports) {
|
|
4065
4461
|
"use strict";
|
|
4066
4462
|
|
|
4067
4463
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -4123,10 +4519,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4123
4519
|
|
|
4124
4520
|
console.log("using @plattar/plattar-analytics v" + version_1["default"]);
|
|
4125
4521
|
}, {
|
|
4126
|
-
"./analytics/analytics":
|
|
4127
|
-
"./version":
|
|
4522
|
+
"./analytics/analytics": 36,
|
|
4523
|
+
"./version": 40
|
|
4128
4524
|
}],
|
|
4129
|
-
|
|
4525
|
+
38: [function (require, module, exports) {
|
|
4130
4526
|
"use strict";
|
|
4131
4527
|
|
|
4132
4528
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4212,7 +4608,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4212
4608
|
|
|
4213
4609
|
exports["default"] = BasicHTTP;
|
|
4214
4610
|
}, {}],
|
|
4215
|
-
|
|
4611
|
+
39: [function (require, module, exports) {
|
|
4216
4612
|
"use strict";
|
|
4217
4613
|
|
|
4218
4614
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4251,7 +4647,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4251
4647
|
|
|
4252
4648
|
exports.Util = Util;
|
|
4253
4649
|
}, {}],
|
|
4254
|
-
|
|
4650
|
+
40: [function (require, module, exports) {
|
|
4255
4651
|
"use strict";
|
|
4256
4652
|
|
|
4257
4653
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -4259,7 +4655,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4259
4655
|
});
|
|
4260
4656
|
exports["default"] = "1.117.2";
|
|
4261
4657
|
}, {}],
|
|
4262
|
-
|
|
4658
|
+
41: [function (require, module, exports) {
|
|
4263
4659
|
"use strict";
|
|
4264
4660
|
|
|
4265
4661
|
var Server = require("./server/plattar-server.js");
|
|
@@ -4462,67 +4858,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4462
4858
|
version: Version
|
|
4463
4859
|
};
|
|
4464
4860
|
}, {
|
|
4465
|
-
"./server/plattar-server.js":
|
|
4466
|
-
"./types/application.js":
|
|
4467
|
-
"./types/content-pipeline/brief.js":
|
|
4468
|
-
"./types/content-pipeline/comment-brief.js":
|
|
4469
|
-
"./types/content-pipeline/comment-quote.js":
|
|
4470
|
-
"./types/content-pipeline/comment-solution.js":
|
|
4471
|
-
"./types/content-pipeline/folder.js":
|
|
4472
|
-
"./types/content-pipeline/pipeline-user.js":
|
|
4473
|
-
"./types/content-pipeline/quote.js":
|
|
4474
|
-
"./types/content-pipeline/rating.js":
|
|
4475
|
-
"./types/content-pipeline/solution.js":
|
|
4476
|
-
"./types/file/file-audio.js":
|
|
4477
|
-
"./types/file/file-base.js":
|
|
4478
|
-
"./types/file/file-image.js":
|
|
4479
|
-
"./types/file/file-model.js":
|
|
4480
|
-
"./types/file/file-script.js":
|
|
4481
|
-
"./types/file/file-video.js":
|
|
4482
|
-
"./types/misc/application-build.js":
|
|
4483
|
-
"./types/misc/asset-library.js":
|
|
4484
|
-
"./types/misc/async-job.js":
|
|
4485
|
-
"./types/misc/script-event.js":
|
|
4486
|
-
"./types/misc/tag.js":
|
|
4487
|
-
"./types/page/card-base.js":
|
|
4488
|
-
"./types/page/card-button.js":
|
|
4489
|
-
"./types/page/card-html.js":
|
|
4490
|
-
"./types/page/card-iframe.js":
|
|
4491
|
-
"./types/page/card-image.js":
|
|
4492
|
-
"./types/page/card-map.js":
|
|
4493
|
-
"./types/page/card-paragraph.js":
|
|
4494
|
-
"./types/page/card-row.js":
|
|
4495
|
-
"./types/page/card-slider.js":
|
|
4496
|
-
"./types/page/card-title.js":
|
|
4497
|
-
"./types/page/card-video.js":
|
|
4498
|
-
"./types/page/card-youtube.js":
|
|
4499
|
-
"./types/page/page.js":
|
|
4500
|
-
"./types/product/product-annotation.js":
|
|
4501
|
-
"./types/product/product-base.js":
|
|
4502
|
-
"./types/product/product-variation.js":
|
|
4503
|
-
"./types/product/product.js":
|
|
4504
|
-
"./types/scene/scene-annotation.js":
|
|
4505
|
-
"./types/scene/scene-audio.js":
|
|
4506
|
-
"./types/scene/scene-base.js":
|
|
4507
|
-
"./types/scene/scene-button.js":
|
|
4508
|
-
"./types/scene/scene-camera.js":
|
|
4509
|
-
"./types/scene/scene-carousel.js":
|
|
4510
|
-
"./types/scene/scene-image.js":
|
|
4511
|
-
"./types/scene/scene-model.js":
|
|
4512
|
-
"./types/scene/scene-panorama.js":
|
|
4513
|
-
"./types/scene/scene-poller.js":
|
|
4514
|
-
"./types/scene/scene-product.js":
|
|
4515
|
-
"./types/scene/scene-script.js":
|
|
4516
|
-
"./types/scene/scene-shadow.js":
|
|
4517
|
-
"./types/scene/scene-video.js":
|
|
4518
|
-
"./types/scene/scene-volumetric.js":
|
|
4519
|
-
"./types/scene/scene-youtube.js":
|
|
4520
|
-
"./types/scene/scene.js":
|
|
4521
|
-
"./types/trigger/trigger-image.js":
|
|
4522
|
-
"./util/plattar-util.js":
|
|
4523
|
-
"./version":
|
|
4861
|
+
"./server/plattar-server.js": 43,
|
|
4862
|
+
"./types/application.js": 44,
|
|
4863
|
+
"./types/content-pipeline/brief.js": 45,
|
|
4864
|
+
"./types/content-pipeline/comment-brief.js": 46,
|
|
4865
|
+
"./types/content-pipeline/comment-quote.js": 47,
|
|
4866
|
+
"./types/content-pipeline/comment-solution.js": 48,
|
|
4867
|
+
"./types/content-pipeline/folder.js": 49,
|
|
4868
|
+
"./types/content-pipeline/pipeline-user.js": 50,
|
|
4869
|
+
"./types/content-pipeline/quote.js": 51,
|
|
4870
|
+
"./types/content-pipeline/rating.js": 52,
|
|
4871
|
+
"./types/content-pipeline/solution.js": 53,
|
|
4872
|
+
"./types/file/file-audio.js": 54,
|
|
4873
|
+
"./types/file/file-base.js": 55,
|
|
4874
|
+
"./types/file/file-image.js": 56,
|
|
4875
|
+
"./types/file/file-model.js": 57,
|
|
4876
|
+
"./types/file/file-script.js": 58,
|
|
4877
|
+
"./types/file/file-video.js": 59,
|
|
4878
|
+
"./types/misc/application-build.js": 63,
|
|
4879
|
+
"./types/misc/asset-library.js": 64,
|
|
4880
|
+
"./types/misc/async-job.js": 65,
|
|
4881
|
+
"./types/misc/script-event.js": 66,
|
|
4882
|
+
"./types/misc/tag.js": 67,
|
|
4883
|
+
"./types/page/card-base.js": 68,
|
|
4884
|
+
"./types/page/card-button.js": 69,
|
|
4885
|
+
"./types/page/card-html.js": 70,
|
|
4886
|
+
"./types/page/card-iframe.js": 71,
|
|
4887
|
+
"./types/page/card-image.js": 72,
|
|
4888
|
+
"./types/page/card-map.js": 73,
|
|
4889
|
+
"./types/page/card-paragraph.js": 74,
|
|
4890
|
+
"./types/page/card-row.js": 75,
|
|
4891
|
+
"./types/page/card-slider.js": 76,
|
|
4892
|
+
"./types/page/card-title.js": 77,
|
|
4893
|
+
"./types/page/card-video.js": 78,
|
|
4894
|
+
"./types/page/card-youtube.js": 79,
|
|
4895
|
+
"./types/page/page.js": 80,
|
|
4896
|
+
"./types/product/product-annotation.js": 81,
|
|
4897
|
+
"./types/product/product-base.js": 82,
|
|
4898
|
+
"./types/product/product-variation.js": 83,
|
|
4899
|
+
"./types/product/product.js": 84,
|
|
4900
|
+
"./types/scene/scene-annotation.js": 85,
|
|
4901
|
+
"./types/scene/scene-audio.js": 86,
|
|
4902
|
+
"./types/scene/scene-base.js": 87,
|
|
4903
|
+
"./types/scene/scene-button.js": 88,
|
|
4904
|
+
"./types/scene/scene-camera.js": 89,
|
|
4905
|
+
"./types/scene/scene-carousel.js": 90,
|
|
4906
|
+
"./types/scene/scene-image.js": 91,
|
|
4907
|
+
"./types/scene/scene-model.js": 92,
|
|
4908
|
+
"./types/scene/scene-panorama.js": 93,
|
|
4909
|
+
"./types/scene/scene-poller.js": 94,
|
|
4910
|
+
"./types/scene/scene-product.js": 95,
|
|
4911
|
+
"./types/scene/scene-script.js": 96,
|
|
4912
|
+
"./types/scene/scene-shadow.js": 97,
|
|
4913
|
+
"./types/scene/scene-video.js": 98,
|
|
4914
|
+
"./types/scene/scene-volumetric.js": 99,
|
|
4915
|
+
"./types/scene/scene-youtube.js": 100,
|
|
4916
|
+
"./types/scene/scene.js": 101,
|
|
4917
|
+
"./types/trigger/trigger-image.js": 102,
|
|
4918
|
+
"./util/plattar-util.js": 103,
|
|
4919
|
+
"./version": 104
|
|
4524
4920
|
}],
|
|
4525
|
-
|
|
4921
|
+
42: [function (require, module, exports) {
|
|
4526
4922
|
var fetch = require("node-fetch");
|
|
4527
4923
|
|
|
4528
4924
|
var PlattarQuery = /*#__PURE__*/function () {
|
|
@@ -4581,11 +4977,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4581
4977
|
}, {
|
|
4582
4978
|
key: "_get",
|
|
4583
4979
|
value: function _get(opt) {
|
|
4584
|
-
var
|
|
4980
|
+
var _this45 = this;
|
|
4585
4981
|
|
|
4586
4982
|
return new Promise(function (resolve, reject) {
|
|
4587
|
-
var target =
|
|
4588
|
-
var server =
|
|
4983
|
+
var target = _this45.target;
|
|
4984
|
+
var server = _this45.server; // we cannot perform a GET request without an ID
|
|
4589
4985
|
|
|
4590
4986
|
if (!target.id) {
|
|
4591
4987
|
reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
|
|
@@ -4610,16 +5006,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4610
5006
|
var origin = server.originLocation.api_read;
|
|
4611
5007
|
var auth = server.authToken;
|
|
4612
5008
|
var headers = {
|
|
4613
|
-
'cookie': 'laravel_session=' +
|
|
5009
|
+
'cookie': 'laravel_session=' + _this45.getCookie('laravel_session')
|
|
4614
5010
|
};
|
|
4615
5011
|
Object.assign(headers, auth);
|
|
4616
5012
|
var reqopts = {
|
|
4617
5013
|
method: "GET",
|
|
4618
5014
|
headers: headers
|
|
4619
5015
|
};
|
|
4620
|
-
var includeQuery =
|
|
5016
|
+
var includeQuery = _this45._IncludeQuery;
|
|
4621
5017
|
|
|
4622
|
-
var params =
|
|
5018
|
+
var params = _this45._ParamFor("get");
|
|
4623
5019
|
|
|
4624
5020
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
4625
5021
|
|
|
@@ -4660,11 +5056,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4660
5056
|
}, {
|
|
4661
5057
|
key: "_update",
|
|
4662
5058
|
value: function _update() {
|
|
4663
|
-
var
|
|
5059
|
+
var _this46 = this;
|
|
4664
5060
|
|
|
4665
5061
|
return new Promise(function (resolve, reject) {
|
|
4666
|
-
var target =
|
|
4667
|
-
var server =
|
|
5062
|
+
var target = _this46.target;
|
|
5063
|
+
var server = _this46.server; // we cannot perform a GET request without an ID
|
|
4668
5064
|
|
|
4669
5065
|
if (!target.id) {
|
|
4670
5066
|
reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
|
|
@@ -4677,7 +5073,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4677
5073
|
var headers = {
|
|
4678
5074
|
'Accept': 'application/json',
|
|
4679
5075
|
'Content-Type': 'application/json',
|
|
4680
|
-
'cookie': 'laravel_session=' +
|
|
5076
|
+
'cookie': 'laravel_session=' + _this46.getCookie('laravel_session')
|
|
4681
5077
|
};
|
|
4682
5078
|
Object.assign(headers, auth);
|
|
4683
5079
|
var reqopts = {
|
|
@@ -4692,7 +5088,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4692
5088
|
})
|
|
4693
5089
|
};
|
|
4694
5090
|
|
|
4695
|
-
var params =
|
|
5091
|
+
var params = _this46._ParamFor("update");
|
|
4696
5092
|
|
|
4697
5093
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
4698
5094
|
|
|
@@ -4734,18 +5130,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4734
5130
|
}, {
|
|
4735
5131
|
key: "_create",
|
|
4736
5132
|
value: function _create() {
|
|
4737
|
-
var
|
|
5133
|
+
var _this47 = this;
|
|
4738
5134
|
|
|
4739
5135
|
return new Promise(function (resolve, reject) {
|
|
4740
|
-
var target =
|
|
4741
|
-
var server =
|
|
5136
|
+
var target = _this47.target;
|
|
5137
|
+
var server = _this47.server; // otherwise, proceed with the fetching op
|
|
4742
5138
|
|
|
4743
5139
|
var origin = server.originLocation.api_write;
|
|
4744
5140
|
var auth = server.authToken;
|
|
4745
5141
|
var headers = {
|
|
4746
5142
|
'Accept': 'application/json',
|
|
4747
5143
|
'Content-Type': 'application/json',
|
|
4748
|
-
'cookie': 'laravel_session=' +
|
|
5144
|
+
'cookie': 'laravel_session=' + _this47.getCookie('laravel_session')
|
|
4749
5145
|
};
|
|
4750
5146
|
Object.assign(headers, auth);
|
|
4751
5147
|
var reqopts = {
|
|
@@ -4759,7 +5155,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4759
5155
|
})
|
|
4760
5156
|
};
|
|
4761
5157
|
|
|
4762
|
-
var params =
|
|
5158
|
+
var params = _this47._ParamFor("create");
|
|
4763
5159
|
|
|
4764
5160
|
var endpoint = origin + target.type();
|
|
4765
5161
|
|
|
@@ -4803,11 +5199,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4803
5199
|
}, {
|
|
4804
5200
|
key: "_delete",
|
|
4805
5201
|
value: function _delete() {
|
|
4806
|
-
var
|
|
5202
|
+
var _this48 = this;
|
|
4807
5203
|
|
|
4808
5204
|
return new Promise(function (resolve, reject) {
|
|
4809
|
-
var target =
|
|
4810
|
-
var server =
|
|
5205
|
+
var target = _this48.target;
|
|
5206
|
+
var server = _this48.server; // we cannot perform a GET request without an ID
|
|
4811
5207
|
|
|
4812
5208
|
if (!target.id) {
|
|
4813
5209
|
reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
|
|
@@ -4820,7 +5216,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4820
5216
|
var headers = {
|
|
4821
5217
|
'Accept': 'application/json',
|
|
4822
5218
|
'Content-Type': 'application/json',
|
|
4823
|
-
'cookie': 'laravel_session=' +
|
|
5219
|
+
'cookie': 'laravel_session=' + _this48.getCookie('laravel_session')
|
|
4824
5220
|
};
|
|
4825
5221
|
Object.assign(headers, auth);
|
|
4826
5222
|
var reqopts = {
|
|
@@ -4835,7 +5231,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4835
5231
|
})
|
|
4836
5232
|
};
|
|
4837
5233
|
|
|
4838
|
-
var params =
|
|
5234
|
+
var params = _this48._ParamFor("delete");
|
|
4839
5235
|
|
|
4840
5236
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
4841
5237
|
|
|
@@ -4898,7 +5294,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4898
5294
|
}, {
|
|
4899
5295
|
key: "_include",
|
|
4900
5296
|
value: function _include(args) {
|
|
4901
|
-
var
|
|
5297
|
+
var _this49 = this;
|
|
4902
5298
|
|
|
4903
5299
|
if (!args || args.length <= 0) {
|
|
4904
5300
|
return this;
|
|
@@ -4911,21 +5307,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4911
5307
|
if (Array.isArray(obj)) {
|
|
4912
5308
|
obj.forEach(function (strObject) {
|
|
4913
5309
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
4914
|
-
|
|
5310
|
+
_this49._getIncludeQuery.push(strObject);
|
|
4915
5311
|
} else {
|
|
4916
|
-
throw new Error("PlattarQuery." +
|
|
5312
|
+
throw new Error("PlattarQuery." + _this49.target.type() + ".include(...args) - argument of Array must only include Strings");
|
|
4917
5313
|
}
|
|
4918
5314
|
});
|
|
4919
5315
|
} else if (PlattarUtil.isPlattarObject(obj)) {
|
|
4920
5316
|
var type = obj.type();
|
|
4921
5317
|
|
|
4922
5318
|
if (Array.isArray(type)) {
|
|
4923
|
-
|
|
5319
|
+
_this49._include(type);
|
|
4924
5320
|
} else {
|
|
4925
|
-
|
|
5321
|
+
_this49._getIncludeQuery.push(type);
|
|
4926
5322
|
}
|
|
4927
5323
|
} else {
|
|
4928
|
-
throw new Error("PlattarQuery." +
|
|
5324
|
+
throw new Error("PlattarQuery." + _this49.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
4929
5325
|
}
|
|
4930
5326
|
});
|
|
4931
5327
|
return this;
|
|
@@ -5006,10 +5402,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5006
5402
|
|
|
5007
5403
|
module.exports = PlattarQuery;
|
|
5008
5404
|
}, {
|
|
5009
|
-
"../util/plattar-util.js":
|
|
5010
|
-
"node-fetch":
|
|
5405
|
+
"../util/plattar-util.js": 103,
|
|
5406
|
+
"node-fetch": 129
|
|
5011
5407
|
}],
|
|
5012
|
-
|
|
5408
|
+
43: [function (require, module, exports) {
|
|
5013
5409
|
(function (process) {
|
|
5014
5410
|
(function () {
|
|
5015
5411
|
var fetch = require("node-fetch");
|
|
@@ -5065,13 +5461,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5065
5461
|
}, {
|
|
5066
5462
|
key: "auth",
|
|
5067
5463
|
value: function auth(token, opt) {
|
|
5068
|
-
var
|
|
5464
|
+
var _this50 = this;
|
|
5069
5465
|
|
|
5070
5466
|
var copt = opt || {
|
|
5071
5467
|
validate: false
|
|
5072
5468
|
};
|
|
5073
5469
|
return new Promise(function (resolve, reject) {
|
|
5074
|
-
var server =
|
|
5470
|
+
var server = _this50.originLocation.api_write;
|
|
5075
5471
|
|
|
5076
5472
|
if (!server) {
|
|
5077
5473
|
reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
|
|
@@ -5084,10 +5480,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5084
5480
|
}
|
|
5085
5481
|
|
|
5086
5482
|
if (!copt.validate) {
|
|
5087
|
-
|
|
5483
|
+
_this50._authToken = {
|
|
5088
5484
|
"plattar-auth-token": token
|
|
5089
5485
|
};
|
|
5090
|
-
resolve(
|
|
5486
|
+
resolve(_this50);
|
|
5091
5487
|
return;
|
|
5092
5488
|
}
|
|
5093
5489
|
|
|
@@ -5100,10 +5496,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5100
5496
|
};
|
|
5101
5497
|
fetch(endpoint, options).then(function (res) {
|
|
5102
5498
|
if (res.ok) {
|
|
5103
|
-
|
|
5499
|
+
_this50._authToken = {
|
|
5104
5500
|
"plattar-auth-token": token
|
|
5105
5501
|
};
|
|
5106
|
-
resolve(
|
|
5502
|
+
resolve(_this50);
|
|
5107
5503
|
} else {
|
|
5108
5504
|
reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
|
|
5109
5505
|
}
|
|
@@ -5113,7 +5509,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5113
5509
|
}, {
|
|
5114
5510
|
key: "origin",
|
|
5115
5511
|
value: function origin(server, opt) {
|
|
5116
|
-
var
|
|
5512
|
+
var _this51 = this;
|
|
5117
5513
|
|
|
5118
5514
|
var copt = opt || {
|
|
5119
5515
|
validate: false
|
|
@@ -5125,8 +5521,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5125
5521
|
}
|
|
5126
5522
|
|
|
5127
5523
|
if (!copt.validate) {
|
|
5128
|
-
|
|
5129
|
-
resolve(
|
|
5524
|
+
_this51._serverLocation = server;
|
|
5525
|
+
resolve(_this51);
|
|
5130
5526
|
return;
|
|
5131
5527
|
}
|
|
5132
5528
|
|
|
@@ -5136,8 +5532,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5136
5532
|
};
|
|
5137
5533
|
fetch(endpoint, options).then(function (res) {
|
|
5138
5534
|
if (res.ok) {
|
|
5139
|
-
|
|
5140
|
-
resolve(
|
|
5535
|
+
_this51._serverLocation = server;
|
|
5536
|
+
resolve(_this51);
|
|
5141
5537
|
} else {
|
|
5142
5538
|
reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
|
|
5143
5539
|
}
|
|
@@ -5231,21 +5627,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5231
5627
|
}).call(this);
|
|
5232
5628
|
}).call(this, require('_process'));
|
|
5233
5629
|
}, {
|
|
5234
|
-
"_process":
|
|
5235
|
-
"node-fetch":
|
|
5630
|
+
"_process": 131,
|
|
5631
|
+
"node-fetch": 129
|
|
5236
5632
|
}],
|
|
5237
|
-
|
|
5633
|
+
44: [function (require, module, exports) {
|
|
5238
5634
|
var PlattarBase = require("./interfaces/plattar-base.js");
|
|
5239
5635
|
|
|
5240
5636
|
var Application = /*#__PURE__*/function (_PlattarBase) {
|
|
5241
5637
|
_inherits(Application, _PlattarBase);
|
|
5242
5638
|
|
|
5243
|
-
var
|
|
5639
|
+
var _super13 = _createSuper(Application);
|
|
5244
5640
|
|
|
5245
5641
|
function Application() {
|
|
5246
5642
|
_classCallCheck(this, Application);
|
|
5247
5643
|
|
|
5248
|
-
return
|
|
5644
|
+
return _super13.apply(this, arguments);
|
|
5249
5645
|
}
|
|
5250
5646
|
|
|
5251
5647
|
_createClass(Application, null, [{
|
|
@@ -5260,20 +5656,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5260
5656
|
|
|
5261
5657
|
module.exports = Application;
|
|
5262
5658
|
}, {
|
|
5263
|
-
"./interfaces/plattar-base.js":
|
|
5659
|
+
"./interfaces/plattar-base.js": 60
|
|
5264
5660
|
}],
|
|
5265
|
-
|
|
5661
|
+
45: [function (require, module, exports) {
|
|
5266
5662
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5267
5663
|
|
|
5268
5664
|
var Brief = /*#__PURE__*/function (_PlattarBase2) {
|
|
5269
5665
|
_inherits(Brief, _PlattarBase2);
|
|
5270
5666
|
|
|
5271
|
-
var
|
|
5667
|
+
var _super14 = _createSuper(Brief);
|
|
5272
5668
|
|
|
5273
5669
|
function Brief() {
|
|
5274
5670
|
_classCallCheck(this, Brief);
|
|
5275
5671
|
|
|
5276
|
-
return
|
|
5672
|
+
return _super14.apply(this, arguments);
|
|
5277
5673
|
}
|
|
5278
5674
|
|
|
5279
5675
|
_createClass(Brief, null, [{
|
|
@@ -5288,20 +5684,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5288
5684
|
|
|
5289
5685
|
module.exports = Brief;
|
|
5290
5686
|
}, {
|
|
5291
|
-
"../interfaces/plattar-base":
|
|
5687
|
+
"../interfaces/plattar-base": 60
|
|
5292
5688
|
}],
|
|
5293
|
-
|
|
5689
|
+
46: [function (require, module, exports) {
|
|
5294
5690
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5295
5691
|
|
|
5296
5692
|
var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
|
|
5297
5693
|
_inherits(CommentBrief, _PlattarBase3);
|
|
5298
5694
|
|
|
5299
|
-
var
|
|
5695
|
+
var _super15 = _createSuper(CommentBrief);
|
|
5300
5696
|
|
|
5301
5697
|
function CommentBrief() {
|
|
5302
5698
|
_classCallCheck(this, CommentBrief);
|
|
5303
5699
|
|
|
5304
|
-
return
|
|
5700
|
+
return _super15.apply(this, arguments);
|
|
5305
5701
|
}
|
|
5306
5702
|
|
|
5307
5703
|
_createClass(CommentBrief, null, [{
|
|
@@ -5316,20 +5712,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5316
5712
|
|
|
5317
5713
|
module.exports = CommentBrief;
|
|
5318
5714
|
}, {
|
|
5319
|
-
"../interfaces/plattar-base":
|
|
5715
|
+
"../interfaces/plattar-base": 60
|
|
5320
5716
|
}],
|
|
5321
|
-
|
|
5717
|
+
47: [function (require, module, exports) {
|
|
5322
5718
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5323
5719
|
|
|
5324
5720
|
var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
|
|
5325
5721
|
_inherits(CommentQuote, _PlattarBase4);
|
|
5326
5722
|
|
|
5327
|
-
var
|
|
5723
|
+
var _super16 = _createSuper(CommentQuote);
|
|
5328
5724
|
|
|
5329
5725
|
function CommentQuote() {
|
|
5330
5726
|
_classCallCheck(this, CommentQuote);
|
|
5331
5727
|
|
|
5332
|
-
return
|
|
5728
|
+
return _super16.apply(this, arguments);
|
|
5333
5729
|
}
|
|
5334
5730
|
|
|
5335
5731
|
_createClass(CommentQuote, null, [{
|
|
@@ -5344,20 +5740,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5344
5740
|
|
|
5345
5741
|
module.exports = CommentQuote;
|
|
5346
5742
|
}, {
|
|
5347
|
-
"../interfaces/plattar-base":
|
|
5743
|
+
"../interfaces/plattar-base": 60
|
|
5348
5744
|
}],
|
|
5349
|
-
|
|
5745
|
+
48: [function (require, module, exports) {
|
|
5350
5746
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5351
5747
|
|
|
5352
5748
|
var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
|
|
5353
5749
|
_inherits(CommentSolution, _PlattarBase5);
|
|
5354
5750
|
|
|
5355
|
-
var
|
|
5751
|
+
var _super17 = _createSuper(CommentSolution);
|
|
5356
5752
|
|
|
5357
5753
|
function CommentSolution() {
|
|
5358
5754
|
_classCallCheck(this, CommentSolution);
|
|
5359
5755
|
|
|
5360
|
-
return
|
|
5756
|
+
return _super17.apply(this, arguments);
|
|
5361
5757
|
}
|
|
5362
5758
|
|
|
5363
5759
|
_createClass(CommentSolution, null, [{
|
|
@@ -5372,20 +5768,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5372
5768
|
|
|
5373
5769
|
module.exports = CommentSolution;
|
|
5374
5770
|
}, {
|
|
5375
|
-
"../interfaces/plattar-base":
|
|
5771
|
+
"../interfaces/plattar-base": 60
|
|
5376
5772
|
}],
|
|
5377
|
-
|
|
5773
|
+
49: [function (require, module, exports) {
|
|
5378
5774
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5379
5775
|
|
|
5380
5776
|
var Folder = /*#__PURE__*/function (_PlattarBase6) {
|
|
5381
5777
|
_inherits(Folder, _PlattarBase6);
|
|
5382
5778
|
|
|
5383
|
-
var
|
|
5779
|
+
var _super18 = _createSuper(Folder);
|
|
5384
5780
|
|
|
5385
5781
|
function Folder() {
|
|
5386
5782
|
_classCallCheck(this, Folder);
|
|
5387
5783
|
|
|
5388
|
-
return
|
|
5784
|
+
return _super18.apply(this, arguments);
|
|
5389
5785
|
}
|
|
5390
5786
|
|
|
5391
5787
|
_createClass(Folder, null, [{
|
|
@@ -5400,20 +5796,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5400
5796
|
|
|
5401
5797
|
module.exports = Folder;
|
|
5402
5798
|
}, {
|
|
5403
|
-
"../interfaces/plattar-base":
|
|
5799
|
+
"../interfaces/plattar-base": 60
|
|
5404
5800
|
}],
|
|
5405
|
-
|
|
5801
|
+
50: [function (require, module, exports) {
|
|
5406
5802
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5407
5803
|
|
|
5408
5804
|
var PipelineUser = /*#__PURE__*/function (_PlattarBase7) {
|
|
5409
5805
|
_inherits(PipelineUser, _PlattarBase7);
|
|
5410
5806
|
|
|
5411
|
-
var
|
|
5807
|
+
var _super19 = _createSuper(PipelineUser);
|
|
5412
5808
|
|
|
5413
5809
|
function PipelineUser() {
|
|
5414
5810
|
_classCallCheck(this, PipelineUser);
|
|
5415
5811
|
|
|
5416
|
-
return
|
|
5812
|
+
return _super19.apply(this, arguments);
|
|
5417
5813
|
}
|
|
5418
5814
|
|
|
5419
5815
|
_createClass(PipelineUser, null, [{
|
|
@@ -5428,20 +5824,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5428
5824
|
|
|
5429
5825
|
module.exports = PipelineUser;
|
|
5430
5826
|
}, {
|
|
5431
|
-
"../interfaces/plattar-base":
|
|
5827
|
+
"../interfaces/plattar-base": 60
|
|
5432
5828
|
}],
|
|
5433
|
-
|
|
5829
|
+
51: [function (require, module, exports) {
|
|
5434
5830
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5435
5831
|
|
|
5436
5832
|
var Quote = /*#__PURE__*/function (_PlattarBase8) {
|
|
5437
5833
|
_inherits(Quote, _PlattarBase8);
|
|
5438
5834
|
|
|
5439
|
-
var
|
|
5835
|
+
var _super20 = _createSuper(Quote);
|
|
5440
5836
|
|
|
5441
5837
|
function Quote() {
|
|
5442
5838
|
_classCallCheck(this, Quote);
|
|
5443
5839
|
|
|
5444
|
-
return
|
|
5840
|
+
return _super20.apply(this, arguments);
|
|
5445
5841
|
}
|
|
5446
5842
|
|
|
5447
5843
|
_createClass(Quote, null, [{
|
|
@@ -5456,20 +5852,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5456
5852
|
|
|
5457
5853
|
module.exports = Quote;
|
|
5458
5854
|
}, {
|
|
5459
|
-
"../interfaces/plattar-base":
|
|
5855
|
+
"../interfaces/plattar-base": 60
|
|
5460
5856
|
}],
|
|
5461
|
-
|
|
5857
|
+
52: [function (require, module, exports) {
|
|
5462
5858
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5463
5859
|
|
|
5464
5860
|
var Rating = /*#__PURE__*/function (_PlattarBase9) {
|
|
5465
5861
|
_inherits(Rating, _PlattarBase9);
|
|
5466
5862
|
|
|
5467
|
-
var
|
|
5863
|
+
var _super21 = _createSuper(Rating);
|
|
5468
5864
|
|
|
5469
5865
|
function Rating() {
|
|
5470
5866
|
_classCallCheck(this, Rating);
|
|
5471
5867
|
|
|
5472
|
-
return
|
|
5868
|
+
return _super21.apply(this, arguments);
|
|
5473
5869
|
}
|
|
5474
5870
|
|
|
5475
5871
|
_createClass(Rating, null, [{
|
|
@@ -5484,20 +5880,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5484
5880
|
|
|
5485
5881
|
module.exports = Rating;
|
|
5486
5882
|
}, {
|
|
5487
|
-
"../interfaces/plattar-base":
|
|
5883
|
+
"../interfaces/plattar-base": 60
|
|
5488
5884
|
}],
|
|
5489
|
-
|
|
5885
|
+
53: [function (require, module, exports) {
|
|
5490
5886
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
5491
5887
|
|
|
5492
5888
|
var Solution = /*#__PURE__*/function (_PlattarBase10) {
|
|
5493
5889
|
_inherits(Solution, _PlattarBase10);
|
|
5494
5890
|
|
|
5495
|
-
var
|
|
5891
|
+
var _super22 = _createSuper(Solution);
|
|
5496
5892
|
|
|
5497
5893
|
function Solution() {
|
|
5498
5894
|
_classCallCheck(this, Solution);
|
|
5499
5895
|
|
|
5500
|
-
return
|
|
5896
|
+
return _super22.apply(this, arguments);
|
|
5501
5897
|
}
|
|
5502
5898
|
|
|
5503
5899
|
_createClass(Solution, null, [{
|
|
@@ -5512,20 +5908,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5512
5908
|
|
|
5513
5909
|
module.exports = Solution;
|
|
5514
5910
|
}, {
|
|
5515
|
-
"../interfaces/plattar-base":
|
|
5911
|
+
"../interfaces/plattar-base": 60
|
|
5516
5912
|
}],
|
|
5517
|
-
|
|
5913
|
+
54: [function (require, module, exports) {
|
|
5518
5914
|
var FileBase = require("./file-base.js");
|
|
5519
5915
|
|
|
5520
5916
|
var FileAudio = /*#__PURE__*/function (_FileBase) {
|
|
5521
5917
|
_inherits(FileAudio, _FileBase);
|
|
5522
5918
|
|
|
5523
|
-
var
|
|
5919
|
+
var _super23 = _createSuper(FileAudio);
|
|
5524
5920
|
|
|
5525
5921
|
function FileAudio() {
|
|
5526
5922
|
_classCallCheck(this, FileAudio);
|
|
5527
5923
|
|
|
5528
|
-
return
|
|
5924
|
+
return _super23.apply(this, arguments);
|
|
5529
5925
|
}
|
|
5530
5926
|
|
|
5531
5927
|
_createClass(FileAudio, null, [{
|
|
@@ -5540,9 +5936,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5540
5936
|
|
|
5541
5937
|
module.exports = FileAudio;
|
|
5542
5938
|
}, {
|
|
5543
|
-
"./file-base.js":
|
|
5939
|
+
"./file-base.js": 55
|
|
5544
5940
|
}],
|
|
5545
|
-
|
|
5941
|
+
55: [function (require, module, exports) {
|
|
5546
5942
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5547
5943
|
|
|
5548
5944
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5550,20 +5946,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5550
5946
|
var FileBase = /*#__PURE__*/function (_PlattarBase11) {
|
|
5551
5947
|
_inherits(FileBase, _PlattarBase11);
|
|
5552
5948
|
|
|
5553
|
-
var
|
|
5949
|
+
var _super24 = _createSuper(FileBase);
|
|
5554
5950
|
|
|
5555
5951
|
function FileBase(id, server) {
|
|
5556
|
-
var
|
|
5952
|
+
var _this52;
|
|
5557
5953
|
|
|
5558
5954
|
_classCallCheck(this, FileBase);
|
|
5559
5955
|
|
|
5560
|
-
|
|
5956
|
+
_this52 = _super24.call(this, id, server || Server["default"]());
|
|
5561
5957
|
|
|
5562
|
-
if (
|
|
5958
|
+
if (_this52.constructor === FileBase) {
|
|
5563
5959
|
throw new Error("FileBase is abstract and cannot be created");
|
|
5564
5960
|
}
|
|
5565
5961
|
|
|
5566
|
-
return
|
|
5962
|
+
return _this52;
|
|
5567
5963
|
}
|
|
5568
5964
|
|
|
5569
5965
|
_createClass(FileBase, [{
|
|
@@ -5628,25 +6024,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5628
6024
|
|
|
5629
6025
|
module.exports = FileBase;
|
|
5630
6026
|
}, {
|
|
5631
|
-
"../../server/plattar-server.js":
|
|
5632
|
-
"../interfaces/plattar-base.js":
|
|
5633
|
-
"./file-audio.js":
|
|
5634
|
-
"./file-image.js":
|
|
5635
|
-
"./file-model.js":
|
|
5636
|
-
"./file-video.js":
|
|
6027
|
+
"../../server/plattar-server.js": 43,
|
|
6028
|
+
"../interfaces/plattar-base.js": 60,
|
|
6029
|
+
"./file-audio.js": 54,
|
|
6030
|
+
"./file-image.js": 56,
|
|
6031
|
+
"./file-model.js": 57,
|
|
6032
|
+
"./file-video.js": 59
|
|
5637
6033
|
}],
|
|
5638
|
-
|
|
6034
|
+
56: [function (require, module, exports) {
|
|
5639
6035
|
var FileBase = require("./file-base.js");
|
|
5640
6036
|
|
|
5641
6037
|
var FileImage = /*#__PURE__*/function (_FileBase2) {
|
|
5642
6038
|
_inherits(FileImage, _FileBase2);
|
|
5643
6039
|
|
|
5644
|
-
var
|
|
6040
|
+
var _super25 = _createSuper(FileImage);
|
|
5645
6041
|
|
|
5646
6042
|
function FileImage() {
|
|
5647
6043
|
_classCallCheck(this, FileImage);
|
|
5648
6044
|
|
|
5649
|
-
return
|
|
6045
|
+
return _super25.apply(this, arguments);
|
|
5650
6046
|
}
|
|
5651
6047
|
|
|
5652
6048
|
_createClass(FileImage, null, [{
|
|
@@ -5661,20 +6057,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5661
6057
|
|
|
5662
6058
|
module.exports = FileImage;
|
|
5663
6059
|
}, {
|
|
5664
|
-
"./file-base.js":
|
|
6060
|
+
"./file-base.js": 55
|
|
5665
6061
|
}],
|
|
5666
|
-
|
|
6062
|
+
57: [function (require, module, exports) {
|
|
5667
6063
|
var FileBase = require("./file-base.js");
|
|
5668
6064
|
|
|
5669
6065
|
var FileModel = /*#__PURE__*/function (_FileBase3) {
|
|
5670
6066
|
_inherits(FileModel, _FileBase3);
|
|
5671
6067
|
|
|
5672
|
-
var
|
|
6068
|
+
var _super26 = _createSuper(FileModel);
|
|
5673
6069
|
|
|
5674
6070
|
function FileModel() {
|
|
5675
6071
|
_classCallCheck(this, FileModel);
|
|
5676
6072
|
|
|
5677
|
-
return
|
|
6073
|
+
return _super26.apply(this, arguments);
|
|
5678
6074
|
}
|
|
5679
6075
|
|
|
5680
6076
|
_createClass(FileModel, null, [{
|
|
@@ -5689,20 +6085,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5689
6085
|
|
|
5690
6086
|
module.exports = FileModel;
|
|
5691
6087
|
}, {
|
|
5692
|
-
"./file-base.js":
|
|
6088
|
+
"./file-base.js": 55
|
|
5693
6089
|
}],
|
|
5694
|
-
|
|
6090
|
+
58: [function (require, module, exports) {
|
|
5695
6091
|
var FileBase = require("./file-base.js");
|
|
5696
6092
|
|
|
5697
6093
|
var FileScript = /*#__PURE__*/function (_FileBase4) {
|
|
5698
6094
|
_inherits(FileScript, _FileBase4);
|
|
5699
6095
|
|
|
5700
|
-
var
|
|
6096
|
+
var _super27 = _createSuper(FileScript);
|
|
5701
6097
|
|
|
5702
6098
|
function FileScript() {
|
|
5703
6099
|
_classCallCheck(this, FileScript);
|
|
5704
6100
|
|
|
5705
|
-
return
|
|
6101
|
+
return _super27.apply(this, arguments);
|
|
5706
6102
|
}
|
|
5707
6103
|
|
|
5708
6104
|
_createClass(FileScript, null, [{
|
|
@@ -5717,20 +6113,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5717
6113
|
|
|
5718
6114
|
module.exports = FileScript;
|
|
5719
6115
|
}, {
|
|
5720
|
-
"./file-base.js":
|
|
6116
|
+
"./file-base.js": 55
|
|
5721
6117
|
}],
|
|
5722
|
-
|
|
6118
|
+
59: [function (require, module, exports) {
|
|
5723
6119
|
var FileBase = require("./file-base.js");
|
|
5724
6120
|
|
|
5725
6121
|
var FileVideo = /*#__PURE__*/function (_FileBase5) {
|
|
5726
6122
|
_inherits(FileVideo, _FileBase5);
|
|
5727
6123
|
|
|
5728
|
-
var
|
|
6124
|
+
var _super28 = _createSuper(FileVideo);
|
|
5729
6125
|
|
|
5730
6126
|
function FileVideo() {
|
|
5731
6127
|
_classCallCheck(this, FileVideo);
|
|
5732
6128
|
|
|
5733
|
-
return
|
|
6129
|
+
return _super28.apply(this, arguments);
|
|
5734
6130
|
}
|
|
5735
6131
|
|
|
5736
6132
|
_createClass(FileVideo, null, [{
|
|
@@ -5745,9 +6141,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5745
6141
|
|
|
5746
6142
|
module.exports = FileVideo;
|
|
5747
6143
|
}, {
|
|
5748
|
-
"./file-base.js":
|
|
6144
|
+
"./file-base.js": 55
|
|
5749
6145
|
}],
|
|
5750
|
-
|
|
6146
|
+
60: [function (require, module, exports) {
|
|
5751
6147
|
var PlattarObject = require("./plattar-object.js");
|
|
5752
6148
|
|
|
5753
6149
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5755,20 +6151,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5755
6151
|
var PlattarBase = /*#__PURE__*/function (_PlattarObject) {
|
|
5756
6152
|
_inherits(PlattarBase, _PlattarObject);
|
|
5757
6153
|
|
|
5758
|
-
var
|
|
6154
|
+
var _super29 = _createSuper(PlattarBase);
|
|
5759
6155
|
|
|
5760
6156
|
function PlattarBase(id, server) {
|
|
5761
|
-
var
|
|
6157
|
+
var _this53;
|
|
5762
6158
|
|
|
5763
6159
|
_classCallCheck(this, PlattarBase);
|
|
5764
6160
|
|
|
5765
|
-
|
|
6161
|
+
_this53 = _super29.call(this, id, server || Server["default"]());
|
|
5766
6162
|
|
|
5767
|
-
if (
|
|
6163
|
+
if (_this53.constructor === PlattarBase) {
|
|
5768
6164
|
throw new Error("PlattarBase is abstract and cannot be created");
|
|
5769
6165
|
}
|
|
5770
6166
|
|
|
5771
|
-
return
|
|
6167
|
+
return _this53;
|
|
5772
6168
|
}
|
|
5773
6169
|
|
|
5774
6170
|
return _createClass(PlattarBase);
|
|
@@ -5776,10 +6172,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5776
6172
|
|
|
5777
6173
|
module.exports = PlattarBase;
|
|
5778
6174
|
}, {
|
|
5779
|
-
"../../server/plattar-server.js":
|
|
5780
|
-
"./plattar-object.js":
|
|
6175
|
+
"../../server/plattar-server.js": 43,
|
|
6176
|
+
"./plattar-object.js": 62
|
|
5781
6177
|
}],
|
|
5782
|
-
|
|
6178
|
+
61: [function (require, module, exports) {
|
|
5783
6179
|
/**
|
|
5784
6180
|
* Handles the list of relationships for the provided object
|
|
5785
6181
|
*/
|
|
@@ -5840,7 +6236,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5840
6236
|
}, {
|
|
5841
6237
|
key: "filter",
|
|
5842
6238
|
value: function filter(obj, id) {
|
|
5843
|
-
var
|
|
6239
|
+
var _this54 = this;
|
|
5844
6240
|
|
|
5845
6241
|
if (!obj) {
|
|
5846
6242
|
return [];
|
|
@@ -5858,7 +6254,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5858
6254
|
if (Array.isArray(type)) {
|
|
5859
6255
|
var compiledList = [];
|
|
5860
6256
|
type.forEach(function (inObject) {
|
|
5861
|
-
var retArray =
|
|
6257
|
+
var retArray = _this54.filter(inObject, id);
|
|
5862
6258
|
|
|
5863
6259
|
if (retArray.length > 0) {
|
|
5864
6260
|
compiledList = compiledList.concat(retArray);
|
|
@@ -5915,9 +6311,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5915
6311
|
|
|
5916
6312
|
module.exports = PlattarObjectRelations;
|
|
5917
6313
|
}, {
|
|
5918
|
-
"../../util/plattar-util.js":
|
|
6314
|
+
"../../util/plattar-util.js": 103
|
|
5919
6315
|
}],
|
|
5920
|
-
|
|
6316
|
+
62: [function (require, module, exports) {
|
|
5921
6317
|
var PlattarQuery = require("../../server/plattar-query.js");
|
|
5922
6318
|
|
|
5923
6319
|
var PlattarObjectRelations = require("./plattar-object-relations.js");
|
|
@@ -6061,7 +6457,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6061
6457
|
}, {
|
|
6062
6458
|
key: "include",
|
|
6063
6459
|
value: function include() {
|
|
6064
|
-
var
|
|
6460
|
+
var _this55 = this;
|
|
6065
6461
|
|
|
6066
6462
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
6067
6463
|
args[_key6] = arguments[_key6];
|
|
@@ -6077,15 +6473,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6077
6473
|
if (Array.isArray(obj)) {
|
|
6078
6474
|
obj.forEach(function (strObject) {
|
|
6079
6475
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
6080
|
-
includes.push("".concat(
|
|
6476
|
+
includes.push("".concat(_this55.type(), ".").concat(strObject));
|
|
6081
6477
|
} else {
|
|
6082
|
-
throw new Error("PlattarObject." +
|
|
6478
|
+
throw new Error("PlattarObject." + _this55.type() + ".include(...args) - argument of Array must only include Strings");
|
|
6083
6479
|
}
|
|
6084
6480
|
});
|
|
6085
6481
|
} else if (obj.prototype instanceof PlattarObject) {
|
|
6086
|
-
includes.push("".concat(
|
|
6482
|
+
includes.push("".concat(_this55.type(), ".").concat(obj.type()));
|
|
6087
6483
|
} else {
|
|
6088
|
-
throw new Error("PlattarObject." +
|
|
6484
|
+
throw new Error("PlattarObject." + _this55.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
6089
6485
|
}
|
|
6090
6486
|
});
|
|
6091
6487
|
return includes;
|
|
@@ -6097,21 +6493,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6097
6493
|
|
|
6098
6494
|
module.exports = PlattarObject;
|
|
6099
6495
|
}, {
|
|
6100
|
-
"../../server/plattar-query.js":
|
|
6101
|
-
"./plattar-object-relations.js":
|
|
6496
|
+
"../../server/plattar-query.js": 42,
|
|
6497
|
+
"./plattar-object-relations.js": 61
|
|
6102
6498
|
}],
|
|
6103
|
-
|
|
6499
|
+
63: [function (require, module, exports) {
|
|
6104
6500
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6105
6501
|
|
|
6106
6502
|
var ApplicationBuild = /*#__PURE__*/function (_PlattarBase12) {
|
|
6107
6503
|
_inherits(ApplicationBuild, _PlattarBase12);
|
|
6108
6504
|
|
|
6109
|
-
var
|
|
6505
|
+
var _super30 = _createSuper(ApplicationBuild);
|
|
6110
6506
|
|
|
6111
6507
|
function ApplicationBuild() {
|
|
6112
6508
|
_classCallCheck(this, ApplicationBuild);
|
|
6113
6509
|
|
|
6114
|
-
return
|
|
6510
|
+
return _super30.apply(this, arguments);
|
|
6115
6511
|
}
|
|
6116
6512
|
|
|
6117
6513
|
_createClass(ApplicationBuild, null, [{
|
|
@@ -6126,20 +6522,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6126
6522
|
|
|
6127
6523
|
module.exports = ApplicationBuild;
|
|
6128
6524
|
}, {
|
|
6129
|
-
"../interfaces/plattar-base.js":
|
|
6525
|
+
"../interfaces/plattar-base.js": 60
|
|
6130
6526
|
}],
|
|
6131
|
-
|
|
6527
|
+
64: [function (require, module, exports) {
|
|
6132
6528
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6133
6529
|
|
|
6134
6530
|
var AssetLibrary = /*#__PURE__*/function (_PlattarBase13) {
|
|
6135
6531
|
_inherits(AssetLibrary, _PlattarBase13);
|
|
6136
6532
|
|
|
6137
|
-
var
|
|
6533
|
+
var _super31 = _createSuper(AssetLibrary);
|
|
6138
6534
|
|
|
6139
6535
|
function AssetLibrary() {
|
|
6140
6536
|
_classCallCheck(this, AssetLibrary);
|
|
6141
6537
|
|
|
6142
|
-
return
|
|
6538
|
+
return _super31.apply(this, arguments);
|
|
6143
6539
|
}
|
|
6144
6540
|
|
|
6145
6541
|
_createClass(AssetLibrary, null, [{
|
|
@@ -6154,20 +6550,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6154
6550
|
|
|
6155
6551
|
module.exports = AssetLibrary;
|
|
6156
6552
|
}, {
|
|
6157
|
-
"../interfaces/plattar-base.js":
|
|
6553
|
+
"../interfaces/plattar-base.js": 60
|
|
6158
6554
|
}],
|
|
6159
|
-
|
|
6555
|
+
65: [function (require, module, exports) {
|
|
6160
6556
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6161
6557
|
|
|
6162
6558
|
var AsyncJob = /*#__PURE__*/function (_PlattarBase14) {
|
|
6163
6559
|
_inherits(AsyncJob, _PlattarBase14);
|
|
6164
6560
|
|
|
6165
|
-
var
|
|
6561
|
+
var _super32 = _createSuper(AsyncJob);
|
|
6166
6562
|
|
|
6167
6563
|
function AsyncJob() {
|
|
6168
6564
|
_classCallCheck(this, AsyncJob);
|
|
6169
6565
|
|
|
6170
|
-
return
|
|
6566
|
+
return _super32.apply(this, arguments);
|
|
6171
6567
|
}
|
|
6172
6568
|
|
|
6173
6569
|
_createClass(AsyncJob, [{
|
|
@@ -6187,20 +6583,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6187
6583
|
|
|
6188
6584
|
module.exports = AsyncJob;
|
|
6189
6585
|
}, {
|
|
6190
|
-
"../interfaces/plattar-base.js":
|
|
6586
|
+
"../interfaces/plattar-base.js": 60
|
|
6191
6587
|
}],
|
|
6192
|
-
|
|
6588
|
+
66: [function (require, module, exports) {
|
|
6193
6589
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6194
6590
|
|
|
6195
6591
|
var ScriptEvent = /*#__PURE__*/function (_PlattarBase15) {
|
|
6196
6592
|
_inherits(ScriptEvent, _PlattarBase15);
|
|
6197
6593
|
|
|
6198
|
-
var
|
|
6594
|
+
var _super33 = _createSuper(ScriptEvent);
|
|
6199
6595
|
|
|
6200
6596
|
function ScriptEvent() {
|
|
6201
6597
|
_classCallCheck(this, ScriptEvent);
|
|
6202
6598
|
|
|
6203
|
-
return
|
|
6599
|
+
return _super33.apply(this, arguments);
|
|
6204
6600
|
}
|
|
6205
6601
|
|
|
6206
6602
|
_createClass(ScriptEvent, null, [{
|
|
@@ -6215,20 +6611,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6215
6611
|
|
|
6216
6612
|
module.exports = ScriptEvent;
|
|
6217
6613
|
}, {
|
|
6218
|
-
"../interfaces/plattar-base.js":
|
|
6614
|
+
"../interfaces/plattar-base.js": 60
|
|
6219
6615
|
}],
|
|
6220
|
-
|
|
6616
|
+
67: [function (require, module, exports) {
|
|
6221
6617
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6222
6618
|
|
|
6223
6619
|
var Tag = /*#__PURE__*/function (_PlattarBase16) {
|
|
6224
6620
|
_inherits(Tag, _PlattarBase16);
|
|
6225
6621
|
|
|
6226
|
-
var
|
|
6622
|
+
var _super34 = _createSuper(Tag);
|
|
6227
6623
|
|
|
6228
6624
|
function Tag() {
|
|
6229
6625
|
_classCallCheck(this, Tag);
|
|
6230
6626
|
|
|
6231
|
-
return
|
|
6627
|
+
return _super34.apply(this, arguments);
|
|
6232
6628
|
}
|
|
6233
6629
|
|
|
6234
6630
|
_createClass(Tag, null, [{
|
|
@@ -6243,9 +6639,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6243
6639
|
|
|
6244
6640
|
module.exports = Tag;
|
|
6245
6641
|
}, {
|
|
6246
|
-
"../interfaces/plattar-base.js":
|
|
6642
|
+
"../interfaces/plattar-base.js": 60
|
|
6247
6643
|
}],
|
|
6248
|
-
|
|
6644
|
+
68: [function (require, module, exports) {
|
|
6249
6645
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6250
6646
|
|
|
6251
6647
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -6253,20 +6649,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6253
6649
|
var CardBase = /*#__PURE__*/function (_PlattarBase17) {
|
|
6254
6650
|
_inherits(CardBase, _PlattarBase17);
|
|
6255
6651
|
|
|
6256
|
-
var
|
|
6652
|
+
var _super35 = _createSuper(CardBase);
|
|
6257
6653
|
|
|
6258
6654
|
function CardBase(id, server) {
|
|
6259
|
-
var
|
|
6655
|
+
var _this56;
|
|
6260
6656
|
|
|
6261
6657
|
_classCallCheck(this, CardBase);
|
|
6262
6658
|
|
|
6263
|
-
|
|
6659
|
+
_this56 = _super35.call(this, id, server || Server["default"]());
|
|
6264
6660
|
|
|
6265
|
-
if (
|
|
6661
|
+
if (_this56.constructor === CardBase) {
|
|
6266
6662
|
throw new Error("CardBase is abstract and cannot be created");
|
|
6267
6663
|
}
|
|
6268
6664
|
|
|
6269
|
-
return
|
|
6665
|
+
return _this56;
|
|
6270
6666
|
}
|
|
6271
6667
|
|
|
6272
6668
|
_createClass(CardBase, null, [{
|
|
@@ -6303,32 +6699,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6303
6699
|
|
|
6304
6700
|
module.exports = CardBase;
|
|
6305
6701
|
}, {
|
|
6306
|
-
"../../server/plattar-server.js":
|
|
6307
|
-
"../interfaces/plattar-base.js":
|
|
6308
|
-
"./card-button.js":
|
|
6309
|
-
"./card-html.js":
|
|
6310
|
-
"./card-iframe.js":
|
|
6311
|
-
"./card-image.js":
|
|
6312
|
-
"./card-map.js":
|
|
6313
|
-
"./card-paragraph.js":
|
|
6314
|
-
"./card-row.js":
|
|
6315
|
-
"./card-slider.js":
|
|
6316
|
-
"./card-title.js":
|
|
6317
|
-
"./card-video.js":
|
|
6318
|
-
"./card-youtube.js":
|
|
6702
|
+
"../../server/plattar-server.js": 43,
|
|
6703
|
+
"../interfaces/plattar-base.js": 60,
|
|
6704
|
+
"./card-button.js": 69,
|
|
6705
|
+
"./card-html.js": 70,
|
|
6706
|
+
"./card-iframe.js": 71,
|
|
6707
|
+
"./card-image.js": 72,
|
|
6708
|
+
"./card-map.js": 73,
|
|
6709
|
+
"./card-paragraph.js": 74,
|
|
6710
|
+
"./card-row.js": 75,
|
|
6711
|
+
"./card-slider.js": 76,
|
|
6712
|
+
"./card-title.js": 77,
|
|
6713
|
+
"./card-video.js": 78,
|
|
6714
|
+
"./card-youtube.js": 79
|
|
6319
6715
|
}],
|
|
6320
|
-
|
|
6716
|
+
69: [function (require, module, exports) {
|
|
6321
6717
|
var CardBase = require("./card-base.js");
|
|
6322
6718
|
|
|
6323
6719
|
var CardButton = /*#__PURE__*/function (_CardBase) {
|
|
6324
6720
|
_inherits(CardButton, _CardBase);
|
|
6325
6721
|
|
|
6326
|
-
var
|
|
6722
|
+
var _super36 = _createSuper(CardButton);
|
|
6327
6723
|
|
|
6328
6724
|
function CardButton() {
|
|
6329
6725
|
_classCallCheck(this, CardButton);
|
|
6330
6726
|
|
|
6331
|
-
return
|
|
6727
|
+
return _super36.apply(this, arguments);
|
|
6332
6728
|
}
|
|
6333
6729
|
|
|
6334
6730
|
_createClass(CardButton, null, [{
|
|
@@ -6343,20 +6739,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6343
6739
|
|
|
6344
6740
|
module.exports = CardButton;
|
|
6345
6741
|
}, {
|
|
6346
|
-
"./card-base.js":
|
|
6742
|
+
"./card-base.js": 68
|
|
6347
6743
|
}],
|
|
6348
|
-
|
|
6744
|
+
70: [function (require, module, exports) {
|
|
6349
6745
|
var CardBase = require("./card-base.js");
|
|
6350
6746
|
|
|
6351
6747
|
var CardHTML = /*#__PURE__*/function (_CardBase2) {
|
|
6352
6748
|
_inherits(CardHTML, _CardBase2);
|
|
6353
6749
|
|
|
6354
|
-
var
|
|
6750
|
+
var _super37 = _createSuper(CardHTML);
|
|
6355
6751
|
|
|
6356
6752
|
function CardHTML() {
|
|
6357
6753
|
_classCallCheck(this, CardHTML);
|
|
6358
6754
|
|
|
6359
|
-
return
|
|
6755
|
+
return _super37.apply(this, arguments);
|
|
6360
6756
|
}
|
|
6361
6757
|
|
|
6362
6758
|
_createClass(CardHTML, null, [{
|
|
@@ -6371,20 +6767,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6371
6767
|
|
|
6372
6768
|
module.exports = CardHTML;
|
|
6373
6769
|
}, {
|
|
6374
|
-
"./card-base.js":
|
|
6770
|
+
"./card-base.js": 68
|
|
6375
6771
|
}],
|
|
6376
|
-
|
|
6772
|
+
71: [function (require, module, exports) {
|
|
6377
6773
|
var CardBase = require("./card-base.js");
|
|
6378
6774
|
|
|
6379
6775
|
var CardIFrame = /*#__PURE__*/function (_CardBase3) {
|
|
6380
6776
|
_inherits(CardIFrame, _CardBase3);
|
|
6381
6777
|
|
|
6382
|
-
var
|
|
6778
|
+
var _super38 = _createSuper(CardIFrame);
|
|
6383
6779
|
|
|
6384
6780
|
function CardIFrame() {
|
|
6385
6781
|
_classCallCheck(this, CardIFrame);
|
|
6386
6782
|
|
|
6387
|
-
return
|
|
6783
|
+
return _super38.apply(this, arguments);
|
|
6388
6784
|
}
|
|
6389
6785
|
|
|
6390
6786
|
_createClass(CardIFrame, null, [{
|
|
@@ -6399,20 +6795,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6399
6795
|
|
|
6400
6796
|
module.exports = CardIFrame;
|
|
6401
6797
|
}, {
|
|
6402
|
-
"./card-base.js":
|
|
6798
|
+
"./card-base.js": 68
|
|
6403
6799
|
}],
|
|
6404
|
-
|
|
6800
|
+
72: [function (require, module, exports) {
|
|
6405
6801
|
var CardBase = require("./card-base.js");
|
|
6406
6802
|
|
|
6407
6803
|
var CardImage = /*#__PURE__*/function (_CardBase4) {
|
|
6408
6804
|
_inherits(CardImage, _CardBase4);
|
|
6409
6805
|
|
|
6410
|
-
var
|
|
6806
|
+
var _super39 = _createSuper(CardImage);
|
|
6411
6807
|
|
|
6412
6808
|
function CardImage() {
|
|
6413
6809
|
_classCallCheck(this, CardImage);
|
|
6414
6810
|
|
|
6415
|
-
return
|
|
6811
|
+
return _super39.apply(this, arguments);
|
|
6416
6812
|
}
|
|
6417
6813
|
|
|
6418
6814
|
_createClass(CardImage, null, [{
|
|
@@ -6427,20 +6823,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6427
6823
|
|
|
6428
6824
|
module.exports = CardImage;
|
|
6429
6825
|
}, {
|
|
6430
|
-
"./card-base.js":
|
|
6826
|
+
"./card-base.js": 68
|
|
6431
6827
|
}],
|
|
6432
|
-
|
|
6828
|
+
73: [function (require, module, exports) {
|
|
6433
6829
|
var CardBase = require("./card-base.js");
|
|
6434
6830
|
|
|
6435
6831
|
var CardMap = /*#__PURE__*/function (_CardBase5) {
|
|
6436
6832
|
_inherits(CardMap, _CardBase5);
|
|
6437
6833
|
|
|
6438
|
-
var
|
|
6834
|
+
var _super40 = _createSuper(CardMap);
|
|
6439
6835
|
|
|
6440
6836
|
function CardMap() {
|
|
6441
6837
|
_classCallCheck(this, CardMap);
|
|
6442
6838
|
|
|
6443
|
-
return
|
|
6839
|
+
return _super40.apply(this, arguments);
|
|
6444
6840
|
}
|
|
6445
6841
|
|
|
6446
6842
|
_createClass(CardMap, null, [{
|
|
@@ -6455,20 +6851,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6455
6851
|
|
|
6456
6852
|
module.exports = CardMap;
|
|
6457
6853
|
}, {
|
|
6458
|
-
"./card-base.js":
|
|
6854
|
+
"./card-base.js": 68
|
|
6459
6855
|
}],
|
|
6460
|
-
|
|
6856
|
+
74: [function (require, module, exports) {
|
|
6461
6857
|
var CardBase = require("./card-base.js");
|
|
6462
6858
|
|
|
6463
6859
|
var CardParagraph = /*#__PURE__*/function (_CardBase6) {
|
|
6464
6860
|
_inherits(CardParagraph, _CardBase6);
|
|
6465
6861
|
|
|
6466
|
-
var
|
|
6862
|
+
var _super41 = _createSuper(CardParagraph);
|
|
6467
6863
|
|
|
6468
6864
|
function CardParagraph() {
|
|
6469
6865
|
_classCallCheck(this, CardParagraph);
|
|
6470
6866
|
|
|
6471
|
-
return
|
|
6867
|
+
return _super41.apply(this, arguments);
|
|
6472
6868
|
}
|
|
6473
6869
|
|
|
6474
6870
|
_createClass(CardParagraph, null, [{
|
|
@@ -6483,20 +6879,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6483
6879
|
|
|
6484
6880
|
module.exports = CardParagraph;
|
|
6485
6881
|
}, {
|
|
6486
|
-
"./card-base.js":
|
|
6882
|
+
"./card-base.js": 68
|
|
6487
6883
|
}],
|
|
6488
|
-
|
|
6884
|
+
75: [function (require, module, exports) {
|
|
6489
6885
|
var CardBase = require("./card-base.js");
|
|
6490
6886
|
|
|
6491
6887
|
var CardRow = /*#__PURE__*/function (_CardBase7) {
|
|
6492
6888
|
_inherits(CardRow, _CardBase7);
|
|
6493
6889
|
|
|
6494
|
-
var
|
|
6890
|
+
var _super42 = _createSuper(CardRow);
|
|
6495
6891
|
|
|
6496
6892
|
function CardRow() {
|
|
6497
6893
|
_classCallCheck(this, CardRow);
|
|
6498
6894
|
|
|
6499
|
-
return
|
|
6895
|
+
return _super42.apply(this, arguments);
|
|
6500
6896
|
}
|
|
6501
6897
|
|
|
6502
6898
|
_createClass(CardRow, null, [{
|
|
@@ -6511,20 +6907,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6511
6907
|
|
|
6512
6908
|
module.exports = CardRow;
|
|
6513
6909
|
}, {
|
|
6514
|
-
"./card-base.js":
|
|
6910
|
+
"./card-base.js": 68
|
|
6515
6911
|
}],
|
|
6516
|
-
|
|
6912
|
+
76: [function (require, module, exports) {
|
|
6517
6913
|
var CardBase = require("./card-base.js");
|
|
6518
6914
|
|
|
6519
6915
|
var CardSlider = /*#__PURE__*/function (_CardBase8) {
|
|
6520
6916
|
_inherits(CardSlider, _CardBase8);
|
|
6521
6917
|
|
|
6522
|
-
var
|
|
6918
|
+
var _super43 = _createSuper(CardSlider);
|
|
6523
6919
|
|
|
6524
6920
|
function CardSlider() {
|
|
6525
6921
|
_classCallCheck(this, CardSlider);
|
|
6526
6922
|
|
|
6527
|
-
return
|
|
6923
|
+
return _super43.apply(this, arguments);
|
|
6528
6924
|
}
|
|
6529
6925
|
|
|
6530
6926
|
_createClass(CardSlider, null, [{
|
|
@@ -6539,20 +6935,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6539
6935
|
|
|
6540
6936
|
module.exports = CardSlider;
|
|
6541
6937
|
}, {
|
|
6542
|
-
"./card-base.js":
|
|
6938
|
+
"./card-base.js": 68
|
|
6543
6939
|
}],
|
|
6544
|
-
|
|
6940
|
+
77: [function (require, module, exports) {
|
|
6545
6941
|
var CardBase = require("./card-base.js");
|
|
6546
6942
|
|
|
6547
6943
|
var CardTitle = /*#__PURE__*/function (_CardBase9) {
|
|
6548
6944
|
_inherits(CardTitle, _CardBase9);
|
|
6549
6945
|
|
|
6550
|
-
var
|
|
6946
|
+
var _super44 = _createSuper(CardTitle);
|
|
6551
6947
|
|
|
6552
6948
|
function CardTitle() {
|
|
6553
6949
|
_classCallCheck(this, CardTitle);
|
|
6554
6950
|
|
|
6555
|
-
return
|
|
6951
|
+
return _super44.apply(this, arguments);
|
|
6556
6952
|
}
|
|
6557
6953
|
|
|
6558
6954
|
_createClass(CardTitle, null, [{
|
|
@@ -6567,20 +6963,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6567
6963
|
|
|
6568
6964
|
module.exports = CardTitle;
|
|
6569
6965
|
}, {
|
|
6570
|
-
"./card-base.js":
|
|
6966
|
+
"./card-base.js": 68
|
|
6571
6967
|
}],
|
|
6572
|
-
|
|
6968
|
+
78: [function (require, module, exports) {
|
|
6573
6969
|
var CardBase = require("./card-base.js");
|
|
6574
6970
|
|
|
6575
6971
|
var CardVideo = /*#__PURE__*/function (_CardBase10) {
|
|
6576
6972
|
_inherits(CardVideo, _CardBase10);
|
|
6577
6973
|
|
|
6578
|
-
var
|
|
6974
|
+
var _super45 = _createSuper(CardVideo);
|
|
6579
6975
|
|
|
6580
6976
|
function CardVideo() {
|
|
6581
6977
|
_classCallCheck(this, CardVideo);
|
|
6582
6978
|
|
|
6583
|
-
return
|
|
6979
|
+
return _super45.apply(this, arguments);
|
|
6584
6980
|
}
|
|
6585
6981
|
|
|
6586
6982
|
_createClass(CardVideo, null, [{
|
|
@@ -6595,20 +6991,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6595
6991
|
|
|
6596
6992
|
module.exports = CardVideo;
|
|
6597
6993
|
}, {
|
|
6598
|
-
"./card-base.js":
|
|
6994
|
+
"./card-base.js": 68
|
|
6599
6995
|
}],
|
|
6600
|
-
|
|
6996
|
+
79: [function (require, module, exports) {
|
|
6601
6997
|
var CardBase = require("./card-base.js");
|
|
6602
6998
|
|
|
6603
6999
|
var CardYoutube = /*#__PURE__*/function (_CardBase11) {
|
|
6604
7000
|
_inherits(CardYoutube, _CardBase11);
|
|
6605
7001
|
|
|
6606
|
-
var
|
|
7002
|
+
var _super46 = _createSuper(CardYoutube);
|
|
6607
7003
|
|
|
6608
7004
|
function CardYoutube() {
|
|
6609
7005
|
_classCallCheck(this, CardYoutube);
|
|
6610
7006
|
|
|
6611
|
-
return
|
|
7007
|
+
return _super46.apply(this, arguments);
|
|
6612
7008
|
}
|
|
6613
7009
|
|
|
6614
7010
|
_createClass(CardYoutube, null, [{
|
|
@@ -6623,20 +7019,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6623
7019
|
|
|
6624
7020
|
module.exports = CardYoutube;
|
|
6625
7021
|
}, {
|
|
6626
|
-
"./card-base.js":
|
|
7022
|
+
"./card-base.js": 68
|
|
6627
7023
|
}],
|
|
6628
|
-
|
|
7024
|
+
80: [function (require, module, exports) {
|
|
6629
7025
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6630
7026
|
|
|
6631
7027
|
var Page = /*#__PURE__*/function (_PlattarBase18) {
|
|
6632
7028
|
_inherits(Page, _PlattarBase18);
|
|
6633
7029
|
|
|
6634
|
-
var
|
|
7030
|
+
var _super47 = _createSuper(Page);
|
|
6635
7031
|
|
|
6636
7032
|
function Page() {
|
|
6637
7033
|
_classCallCheck(this, Page);
|
|
6638
7034
|
|
|
6639
|
-
return
|
|
7035
|
+
return _super47.apply(this, arguments);
|
|
6640
7036
|
}
|
|
6641
7037
|
|
|
6642
7038
|
_createClass(Page, null, [{
|
|
@@ -6651,20 +7047,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6651
7047
|
|
|
6652
7048
|
module.exports = Page;
|
|
6653
7049
|
}, {
|
|
6654
|
-
"../interfaces/plattar-base.js":
|
|
7050
|
+
"../interfaces/plattar-base.js": 60
|
|
6655
7051
|
}],
|
|
6656
|
-
|
|
7052
|
+
81: [function (require, module, exports) {
|
|
6657
7053
|
var ProductBase = require("./product-base.js");
|
|
6658
7054
|
|
|
6659
7055
|
var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
|
|
6660
7056
|
_inherits(ProductAnnotation, _ProductBase);
|
|
6661
7057
|
|
|
6662
|
-
var
|
|
7058
|
+
var _super48 = _createSuper(ProductAnnotation);
|
|
6663
7059
|
|
|
6664
7060
|
function ProductAnnotation() {
|
|
6665
7061
|
_classCallCheck(this, ProductAnnotation);
|
|
6666
7062
|
|
|
6667
|
-
return
|
|
7063
|
+
return _super48.apply(this, arguments);
|
|
6668
7064
|
}
|
|
6669
7065
|
|
|
6670
7066
|
_createClass(ProductAnnotation, null, [{
|
|
@@ -6679,9 +7075,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6679
7075
|
|
|
6680
7076
|
module.exports = ProductAnnotation;
|
|
6681
7077
|
}, {
|
|
6682
|
-
"./product-base.js":
|
|
7078
|
+
"./product-base.js": 82
|
|
6683
7079
|
}],
|
|
6684
|
-
|
|
7080
|
+
82: [function (require, module, exports) {
|
|
6685
7081
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6686
7082
|
|
|
6687
7083
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -6689,20 +7085,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6689
7085
|
var ProductBase = /*#__PURE__*/function (_PlattarBase19) {
|
|
6690
7086
|
_inherits(ProductBase, _PlattarBase19);
|
|
6691
7087
|
|
|
6692
|
-
var
|
|
7088
|
+
var _super49 = _createSuper(ProductBase);
|
|
6693
7089
|
|
|
6694
7090
|
function ProductBase(id, server) {
|
|
6695
|
-
var
|
|
7091
|
+
var _this57;
|
|
6696
7092
|
|
|
6697
7093
|
_classCallCheck(this, ProductBase);
|
|
6698
7094
|
|
|
6699
|
-
|
|
7095
|
+
_this57 = _super49.call(this, id, server || Server["default"]());
|
|
6700
7096
|
|
|
6701
|
-
if (
|
|
7097
|
+
if (_this57.constructor === ProductBase) {
|
|
6702
7098
|
throw new Error("ProductBase is abstract and cannot be created");
|
|
6703
7099
|
}
|
|
6704
7100
|
|
|
6705
|
-
return
|
|
7101
|
+
return _this57;
|
|
6706
7102
|
}
|
|
6707
7103
|
|
|
6708
7104
|
_createClass(ProductBase, null, [{
|
|
@@ -6721,23 +7117,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6721
7117
|
|
|
6722
7118
|
module.exports = ProductBase;
|
|
6723
7119
|
}, {
|
|
6724
|
-
"../../server/plattar-server.js":
|
|
6725
|
-
"../interfaces/plattar-base.js":
|
|
6726
|
-
"./product-annotation.js":
|
|
6727
|
-
"./product-variation.js":
|
|
7120
|
+
"../../server/plattar-server.js": 43,
|
|
7121
|
+
"../interfaces/plattar-base.js": 60,
|
|
7122
|
+
"./product-annotation.js": 81,
|
|
7123
|
+
"./product-variation.js": 83
|
|
6728
7124
|
}],
|
|
6729
|
-
|
|
7125
|
+
83: [function (require, module, exports) {
|
|
6730
7126
|
var ProductBase = require("./product-base.js");
|
|
6731
7127
|
|
|
6732
7128
|
var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
|
|
6733
7129
|
_inherits(ProductVariation, _ProductBase2);
|
|
6734
7130
|
|
|
6735
|
-
var
|
|
7131
|
+
var _super50 = _createSuper(ProductVariation);
|
|
6736
7132
|
|
|
6737
7133
|
function ProductVariation() {
|
|
6738
7134
|
_classCallCheck(this, ProductVariation);
|
|
6739
7135
|
|
|
6740
|
-
return
|
|
7136
|
+
return _super50.apply(this, arguments);
|
|
6741
7137
|
}
|
|
6742
7138
|
|
|
6743
7139
|
_createClass(ProductVariation, null, [{
|
|
@@ -6752,20 +7148,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6752
7148
|
|
|
6753
7149
|
module.exports = ProductVariation;
|
|
6754
7150
|
}, {
|
|
6755
|
-
"./product-base.js":
|
|
7151
|
+
"./product-base.js": 82
|
|
6756
7152
|
}],
|
|
6757
|
-
|
|
7153
|
+
84: [function (require, module, exports) {
|
|
6758
7154
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6759
7155
|
|
|
6760
7156
|
var Product = /*#__PURE__*/function (_PlattarBase20) {
|
|
6761
7157
|
_inherits(Product, _PlattarBase20);
|
|
6762
7158
|
|
|
6763
|
-
var
|
|
7159
|
+
var _super51 = _createSuper(Product);
|
|
6764
7160
|
|
|
6765
7161
|
function Product() {
|
|
6766
7162
|
_classCallCheck(this, Product);
|
|
6767
7163
|
|
|
6768
|
-
return
|
|
7164
|
+
return _super51.apply(this, arguments);
|
|
6769
7165
|
}
|
|
6770
7166
|
|
|
6771
7167
|
_createClass(Product, null, [{
|
|
@@ -6780,20 +7176,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6780
7176
|
|
|
6781
7177
|
module.exports = Product;
|
|
6782
7178
|
}, {
|
|
6783
|
-
"../interfaces/plattar-base.js":
|
|
7179
|
+
"../interfaces/plattar-base.js": 60
|
|
6784
7180
|
}],
|
|
6785
|
-
|
|
7181
|
+
85: [function (require, module, exports) {
|
|
6786
7182
|
var SceneBase = require("./scene-base.js");
|
|
6787
7183
|
|
|
6788
7184
|
var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
|
|
6789
7185
|
_inherits(SceneAnnotation, _SceneBase);
|
|
6790
7186
|
|
|
6791
|
-
var
|
|
7187
|
+
var _super52 = _createSuper(SceneAnnotation);
|
|
6792
7188
|
|
|
6793
7189
|
function SceneAnnotation() {
|
|
6794
7190
|
_classCallCheck(this, SceneAnnotation);
|
|
6795
7191
|
|
|
6796
|
-
return
|
|
7192
|
+
return _super52.apply(this, arguments);
|
|
6797
7193
|
}
|
|
6798
7194
|
|
|
6799
7195
|
_createClass(SceneAnnotation, null, [{
|
|
@@ -6808,20 +7204,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6808
7204
|
|
|
6809
7205
|
module.exports = SceneAnnotation;
|
|
6810
7206
|
}, {
|
|
6811
|
-
"./scene-base.js":
|
|
7207
|
+
"./scene-base.js": 87
|
|
6812
7208
|
}],
|
|
6813
|
-
|
|
7209
|
+
86: [function (require, module, exports) {
|
|
6814
7210
|
var SceneBase = require("./scene-base.js");
|
|
6815
7211
|
|
|
6816
7212
|
var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
|
|
6817
7213
|
_inherits(SceneAudio, _SceneBase2);
|
|
6818
7214
|
|
|
6819
|
-
var
|
|
7215
|
+
var _super53 = _createSuper(SceneAudio);
|
|
6820
7216
|
|
|
6821
7217
|
function SceneAudio() {
|
|
6822
7218
|
_classCallCheck(this, SceneAudio);
|
|
6823
7219
|
|
|
6824
|
-
return
|
|
7220
|
+
return _super53.apply(this, arguments);
|
|
6825
7221
|
}
|
|
6826
7222
|
|
|
6827
7223
|
_createClass(SceneAudio, null, [{
|
|
@@ -6836,9 +7232,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6836
7232
|
|
|
6837
7233
|
module.exports = SceneAudio;
|
|
6838
7234
|
}, {
|
|
6839
|
-
"./scene-base.js":
|
|
7235
|
+
"./scene-base.js": 87
|
|
6840
7236
|
}],
|
|
6841
|
-
|
|
7237
|
+
87: [function (require, module, exports) {
|
|
6842
7238
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6843
7239
|
|
|
6844
7240
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -6846,20 +7242,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6846
7242
|
var SceneBase = /*#__PURE__*/function (_PlattarBase21) {
|
|
6847
7243
|
_inherits(SceneBase, _PlattarBase21);
|
|
6848
7244
|
|
|
6849
|
-
var
|
|
7245
|
+
var _super54 = _createSuper(SceneBase);
|
|
6850
7246
|
|
|
6851
7247
|
function SceneBase(id, server) {
|
|
6852
|
-
var
|
|
7248
|
+
var _this58;
|
|
6853
7249
|
|
|
6854
7250
|
_classCallCheck(this, SceneBase);
|
|
6855
7251
|
|
|
6856
|
-
|
|
7252
|
+
_this58 = _super54.call(this, id, server || Server["default"]());
|
|
6857
7253
|
|
|
6858
|
-
if (
|
|
7254
|
+
if (_this58.constructor === SceneBase) {
|
|
6859
7255
|
throw new Error("SceneBase is abstract and cannot be created");
|
|
6860
7256
|
}
|
|
6861
7257
|
|
|
6862
|
-
return
|
|
7258
|
+
return _this58;
|
|
6863
7259
|
}
|
|
6864
7260
|
|
|
6865
7261
|
_createClass(SceneBase, null, [{
|
|
@@ -6902,35 +7298,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6902
7298
|
|
|
6903
7299
|
module.exports = SceneBase;
|
|
6904
7300
|
}, {
|
|
6905
|
-
"../../server/plattar-server.js":
|
|
6906
|
-
"../interfaces/plattar-base.js":
|
|
6907
|
-
"./scene-annotation.js":
|
|
6908
|
-
"./scene-audio.js":
|
|
6909
|
-
"./scene-button.js":
|
|
6910
|
-
"./scene-camera.js":
|
|
6911
|
-
"./scene-carousel.js":
|
|
6912
|
-
"./scene-image.js":
|
|
6913
|
-
"./scene-model.js":
|
|
6914
|
-
"./scene-panorama.js":
|
|
6915
|
-
"./scene-poller.js":
|
|
6916
|
-
"./scene-product.js":
|
|
6917
|
-
"./scene-shadow.js":
|
|
6918
|
-
"./scene-video.js":
|
|
6919
|
-
"./scene-volumetric.js":
|
|
6920
|
-
"./scene-youtube.js":
|
|
7301
|
+
"../../server/plattar-server.js": 43,
|
|
7302
|
+
"../interfaces/plattar-base.js": 60,
|
|
7303
|
+
"./scene-annotation.js": 85,
|
|
7304
|
+
"./scene-audio.js": 86,
|
|
7305
|
+
"./scene-button.js": 88,
|
|
7306
|
+
"./scene-camera.js": 89,
|
|
7307
|
+
"./scene-carousel.js": 90,
|
|
7308
|
+
"./scene-image.js": 91,
|
|
7309
|
+
"./scene-model.js": 92,
|
|
7310
|
+
"./scene-panorama.js": 93,
|
|
7311
|
+
"./scene-poller.js": 94,
|
|
7312
|
+
"./scene-product.js": 95,
|
|
7313
|
+
"./scene-shadow.js": 97,
|
|
7314
|
+
"./scene-video.js": 98,
|
|
7315
|
+
"./scene-volumetric.js": 99,
|
|
7316
|
+
"./scene-youtube.js": 100
|
|
6921
7317
|
}],
|
|
6922
|
-
|
|
7318
|
+
88: [function (require, module, exports) {
|
|
6923
7319
|
var SceneBase = require("./scene-base.js");
|
|
6924
7320
|
|
|
6925
7321
|
var SceneButton = /*#__PURE__*/function (_SceneBase3) {
|
|
6926
7322
|
_inherits(SceneButton, _SceneBase3);
|
|
6927
7323
|
|
|
6928
|
-
var
|
|
7324
|
+
var _super55 = _createSuper(SceneButton);
|
|
6929
7325
|
|
|
6930
7326
|
function SceneButton() {
|
|
6931
7327
|
_classCallCheck(this, SceneButton);
|
|
6932
7328
|
|
|
6933
|
-
return
|
|
7329
|
+
return _super55.apply(this, arguments);
|
|
6934
7330
|
}
|
|
6935
7331
|
|
|
6936
7332
|
_createClass(SceneButton, null, [{
|
|
@@ -6945,20 +7341,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6945
7341
|
|
|
6946
7342
|
module.exports = SceneButton;
|
|
6947
7343
|
}, {
|
|
6948
|
-
"./scene-base.js":
|
|
7344
|
+
"./scene-base.js": 87
|
|
6949
7345
|
}],
|
|
6950
|
-
|
|
7346
|
+
89: [function (require, module, exports) {
|
|
6951
7347
|
var SceneBase = require("./scene-base.js");
|
|
6952
7348
|
|
|
6953
7349
|
var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
|
|
6954
7350
|
_inherits(SceneCamera, _SceneBase4);
|
|
6955
7351
|
|
|
6956
|
-
var
|
|
7352
|
+
var _super56 = _createSuper(SceneCamera);
|
|
6957
7353
|
|
|
6958
7354
|
function SceneCamera() {
|
|
6959
7355
|
_classCallCheck(this, SceneCamera);
|
|
6960
7356
|
|
|
6961
|
-
return
|
|
7357
|
+
return _super56.apply(this, arguments);
|
|
6962
7358
|
}
|
|
6963
7359
|
|
|
6964
7360
|
_createClass(SceneCamera, null, [{
|
|
@@ -6973,20 +7369,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
6973
7369
|
|
|
6974
7370
|
module.exports = SceneCamera;
|
|
6975
7371
|
}, {
|
|
6976
|
-
"./scene-base.js":
|
|
7372
|
+
"./scene-base.js": 87
|
|
6977
7373
|
}],
|
|
6978
|
-
|
|
7374
|
+
90: [function (require, module, exports) {
|
|
6979
7375
|
var SceneBase = require("./scene-base.js");
|
|
6980
7376
|
|
|
6981
7377
|
var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
|
|
6982
7378
|
_inherits(SceneCarousel, _SceneBase5);
|
|
6983
7379
|
|
|
6984
|
-
var
|
|
7380
|
+
var _super57 = _createSuper(SceneCarousel);
|
|
6985
7381
|
|
|
6986
7382
|
function SceneCarousel() {
|
|
6987
7383
|
_classCallCheck(this, SceneCarousel);
|
|
6988
7384
|
|
|
6989
|
-
return
|
|
7385
|
+
return _super57.apply(this, arguments);
|
|
6990
7386
|
}
|
|
6991
7387
|
|
|
6992
7388
|
_createClass(SceneCarousel, null, [{
|
|
@@ -7001,20 +7397,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7001
7397
|
|
|
7002
7398
|
module.exports = SceneCarousel;
|
|
7003
7399
|
}, {
|
|
7004
|
-
"./scene-base.js":
|
|
7400
|
+
"./scene-base.js": 87
|
|
7005
7401
|
}],
|
|
7006
|
-
|
|
7402
|
+
91: [function (require, module, exports) {
|
|
7007
7403
|
var SceneBase = require("./scene-base.js");
|
|
7008
7404
|
|
|
7009
7405
|
var SceneImage = /*#__PURE__*/function (_SceneBase6) {
|
|
7010
7406
|
_inherits(SceneImage, _SceneBase6);
|
|
7011
7407
|
|
|
7012
|
-
var
|
|
7408
|
+
var _super58 = _createSuper(SceneImage);
|
|
7013
7409
|
|
|
7014
7410
|
function SceneImage() {
|
|
7015
7411
|
_classCallCheck(this, SceneImage);
|
|
7016
7412
|
|
|
7017
|
-
return
|
|
7413
|
+
return _super58.apply(this, arguments);
|
|
7018
7414
|
}
|
|
7019
7415
|
|
|
7020
7416
|
_createClass(SceneImage, null, [{
|
|
@@ -7029,20 +7425,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7029
7425
|
|
|
7030
7426
|
module.exports = SceneImage;
|
|
7031
7427
|
}, {
|
|
7032
|
-
"./scene-base.js":
|
|
7428
|
+
"./scene-base.js": 87
|
|
7033
7429
|
}],
|
|
7034
|
-
|
|
7430
|
+
92: [function (require, module, exports) {
|
|
7035
7431
|
var SceneBase = require("./scene-base.js");
|
|
7036
7432
|
|
|
7037
7433
|
var SceneModel = /*#__PURE__*/function (_SceneBase7) {
|
|
7038
7434
|
_inherits(SceneModel, _SceneBase7);
|
|
7039
7435
|
|
|
7040
|
-
var
|
|
7436
|
+
var _super59 = _createSuper(SceneModel);
|
|
7041
7437
|
|
|
7042
7438
|
function SceneModel() {
|
|
7043
7439
|
_classCallCheck(this, SceneModel);
|
|
7044
7440
|
|
|
7045
|
-
return
|
|
7441
|
+
return _super59.apply(this, arguments);
|
|
7046
7442
|
}
|
|
7047
7443
|
|
|
7048
7444
|
_createClass(SceneModel, null, [{
|
|
@@ -7057,20 +7453,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7057
7453
|
|
|
7058
7454
|
module.exports = SceneModel;
|
|
7059
7455
|
}, {
|
|
7060
|
-
"./scene-base.js":
|
|
7456
|
+
"./scene-base.js": 87
|
|
7061
7457
|
}],
|
|
7062
|
-
|
|
7458
|
+
93: [function (require, module, exports) {
|
|
7063
7459
|
var SceneBase = require("./scene-base.js");
|
|
7064
7460
|
|
|
7065
7461
|
var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
|
|
7066
7462
|
_inherits(ScenePanorama, _SceneBase8);
|
|
7067
7463
|
|
|
7068
|
-
var
|
|
7464
|
+
var _super60 = _createSuper(ScenePanorama);
|
|
7069
7465
|
|
|
7070
7466
|
function ScenePanorama() {
|
|
7071
7467
|
_classCallCheck(this, ScenePanorama);
|
|
7072
7468
|
|
|
7073
|
-
return
|
|
7469
|
+
return _super60.apply(this, arguments);
|
|
7074
7470
|
}
|
|
7075
7471
|
|
|
7076
7472
|
_createClass(ScenePanorama, null, [{
|
|
@@ -7085,20 +7481,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7085
7481
|
|
|
7086
7482
|
module.exports = ScenePanorama;
|
|
7087
7483
|
}, {
|
|
7088
|
-
"./scene-base.js":
|
|
7484
|
+
"./scene-base.js": 87
|
|
7089
7485
|
}],
|
|
7090
|
-
|
|
7486
|
+
94: [function (require, module, exports) {
|
|
7091
7487
|
var SceneBase = require("./scene-base.js");
|
|
7092
7488
|
|
|
7093
7489
|
var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
|
|
7094
7490
|
_inherits(ScenePoller, _SceneBase9);
|
|
7095
7491
|
|
|
7096
|
-
var
|
|
7492
|
+
var _super61 = _createSuper(ScenePoller);
|
|
7097
7493
|
|
|
7098
7494
|
function ScenePoller() {
|
|
7099
7495
|
_classCallCheck(this, ScenePoller);
|
|
7100
7496
|
|
|
7101
|
-
return
|
|
7497
|
+
return _super61.apply(this, arguments);
|
|
7102
7498
|
}
|
|
7103
7499
|
|
|
7104
7500
|
_createClass(ScenePoller, null, [{
|
|
@@ -7113,20 +7509,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7113
7509
|
|
|
7114
7510
|
module.exports = ScenePoller;
|
|
7115
7511
|
}, {
|
|
7116
|
-
"./scene-base.js":
|
|
7512
|
+
"./scene-base.js": 87
|
|
7117
7513
|
}],
|
|
7118
|
-
|
|
7514
|
+
95: [function (require, module, exports) {
|
|
7119
7515
|
var SceneBase = require("./scene-base.js");
|
|
7120
7516
|
|
|
7121
7517
|
var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
|
|
7122
7518
|
_inherits(SceneProduct, _SceneBase10);
|
|
7123
7519
|
|
|
7124
|
-
var
|
|
7520
|
+
var _super62 = _createSuper(SceneProduct);
|
|
7125
7521
|
|
|
7126
7522
|
function SceneProduct() {
|
|
7127
7523
|
_classCallCheck(this, SceneProduct);
|
|
7128
7524
|
|
|
7129
|
-
return
|
|
7525
|
+
return _super62.apply(this, arguments);
|
|
7130
7526
|
}
|
|
7131
7527
|
|
|
7132
7528
|
_createClass(SceneProduct, null, [{
|
|
@@ -7141,20 +7537,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7141
7537
|
|
|
7142
7538
|
module.exports = SceneProduct;
|
|
7143
7539
|
}, {
|
|
7144
|
-
"./scene-base.js":
|
|
7540
|
+
"./scene-base.js": 87
|
|
7145
7541
|
}],
|
|
7146
|
-
|
|
7542
|
+
96: [function (require, module, exports) {
|
|
7147
7543
|
var SceneBase = require("./scene-base.js");
|
|
7148
7544
|
|
|
7149
7545
|
var SceneScript = /*#__PURE__*/function (_SceneBase11) {
|
|
7150
7546
|
_inherits(SceneScript, _SceneBase11);
|
|
7151
7547
|
|
|
7152
|
-
var
|
|
7548
|
+
var _super63 = _createSuper(SceneScript);
|
|
7153
7549
|
|
|
7154
7550
|
function SceneScript() {
|
|
7155
7551
|
_classCallCheck(this, SceneScript);
|
|
7156
7552
|
|
|
7157
|
-
return
|
|
7553
|
+
return _super63.apply(this, arguments);
|
|
7158
7554
|
}
|
|
7159
7555
|
|
|
7160
7556
|
_createClass(SceneScript, null, [{
|
|
@@ -7169,20 +7565,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7169
7565
|
|
|
7170
7566
|
module.exports = SceneScript;
|
|
7171
7567
|
}, {
|
|
7172
|
-
"./scene-base.js":
|
|
7568
|
+
"./scene-base.js": 87
|
|
7173
7569
|
}],
|
|
7174
|
-
|
|
7570
|
+
97: [function (require, module, exports) {
|
|
7175
7571
|
var SceneBase = require("./scene-base.js");
|
|
7176
7572
|
|
|
7177
7573
|
var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
|
|
7178
7574
|
_inherits(SceneShadow, _SceneBase12);
|
|
7179
7575
|
|
|
7180
|
-
var
|
|
7576
|
+
var _super64 = _createSuper(SceneShadow);
|
|
7181
7577
|
|
|
7182
7578
|
function SceneShadow() {
|
|
7183
7579
|
_classCallCheck(this, SceneShadow);
|
|
7184
7580
|
|
|
7185
|
-
return
|
|
7581
|
+
return _super64.apply(this, arguments);
|
|
7186
7582
|
}
|
|
7187
7583
|
|
|
7188
7584
|
_createClass(SceneShadow, null, [{
|
|
@@ -7197,20 +7593,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7197
7593
|
|
|
7198
7594
|
module.exports = SceneShadow;
|
|
7199
7595
|
}, {
|
|
7200
|
-
"./scene-base.js":
|
|
7596
|
+
"./scene-base.js": 87
|
|
7201
7597
|
}],
|
|
7202
|
-
|
|
7598
|
+
98: [function (require, module, exports) {
|
|
7203
7599
|
var SceneBase = require("./scene-base.js");
|
|
7204
7600
|
|
|
7205
7601
|
var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
|
|
7206
7602
|
_inherits(SceneVideo, _SceneBase13);
|
|
7207
7603
|
|
|
7208
|
-
var
|
|
7604
|
+
var _super65 = _createSuper(SceneVideo);
|
|
7209
7605
|
|
|
7210
7606
|
function SceneVideo() {
|
|
7211
7607
|
_classCallCheck(this, SceneVideo);
|
|
7212
7608
|
|
|
7213
|
-
return
|
|
7609
|
+
return _super65.apply(this, arguments);
|
|
7214
7610
|
}
|
|
7215
7611
|
|
|
7216
7612
|
_createClass(SceneVideo, null, [{
|
|
@@ -7225,20 +7621,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7225
7621
|
|
|
7226
7622
|
module.exports = SceneVideo;
|
|
7227
7623
|
}, {
|
|
7228
|
-
"./scene-base.js":
|
|
7624
|
+
"./scene-base.js": 87
|
|
7229
7625
|
}],
|
|
7230
|
-
|
|
7626
|
+
99: [function (require, module, exports) {
|
|
7231
7627
|
var SceneBase = require("./scene-base.js");
|
|
7232
7628
|
|
|
7233
7629
|
var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
|
|
7234
7630
|
_inherits(SceneVolumetric, _SceneBase14);
|
|
7235
7631
|
|
|
7236
|
-
var
|
|
7632
|
+
var _super66 = _createSuper(SceneVolumetric);
|
|
7237
7633
|
|
|
7238
7634
|
function SceneVolumetric() {
|
|
7239
7635
|
_classCallCheck(this, SceneVolumetric);
|
|
7240
7636
|
|
|
7241
|
-
return
|
|
7637
|
+
return _super66.apply(this, arguments);
|
|
7242
7638
|
}
|
|
7243
7639
|
|
|
7244
7640
|
_createClass(SceneVolumetric, null, [{
|
|
@@ -7253,20 +7649,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7253
7649
|
|
|
7254
7650
|
module.exports = SceneVolumetric;
|
|
7255
7651
|
}, {
|
|
7256
|
-
"./scene-base.js":
|
|
7652
|
+
"./scene-base.js": 87
|
|
7257
7653
|
}],
|
|
7258
|
-
|
|
7654
|
+
100: [function (require, module, exports) {
|
|
7259
7655
|
var SceneBase = require("./scene-base.js");
|
|
7260
7656
|
|
|
7261
7657
|
var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
|
|
7262
7658
|
_inherits(SceneYoutube, _SceneBase15);
|
|
7263
7659
|
|
|
7264
|
-
var
|
|
7660
|
+
var _super67 = _createSuper(SceneYoutube);
|
|
7265
7661
|
|
|
7266
7662
|
function SceneYoutube() {
|
|
7267
7663
|
_classCallCheck(this, SceneYoutube);
|
|
7268
7664
|
|
|
7269
|
-
return
|
|
7665
|
+
return _super67.apply(this, arguments);
|
|
7270
7666
|
}
|
|
7271
7667
|
|
|
7272
7668
|
_createClass(SceneYoutube, null, [{
|
|
@@ -7281,20 +7677,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7281
7677
|
|
|
7282
7678
|
module.exports = SceneYoutube;
|
|
7283
7679
|
}, {
|
|
7284
|
-
"./scene-base.js":
|
|
7680
|
+
"./scene-base.js": 87
|
|
7285
7681
|
}],
|
|
7286
|
-
|
|
7682
|
+
101: [function (require, module, exports) {
|
|
7287
7683
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7288
7684
|
|
|
7289
7685
|
var Scene = /*#__PURE__*/function (_PlattarBase22) {
|
|
7290
7686
|
_inherits(Scene, _PlattarBase22);
|
|
7291
7687
|
|
|
7292
|
-
var
|
|
7688
|
+
var _super68 = _createSuper(Scene);
|
|
7293
7689
|
|
|
7294
7690
|
function Scene() {
|
|
7295
7691
|
_classCallCheck(this, Scene);
|
|
7296
7692
|
|
|
7297
|
-
return
|
|
7693
|
+
return _super68.apply(this, arguments);
|
|
7298
7694
|
}
|
|
7299
7695
|
|
|
7300
7696
|
_createClass(Scene, null, [{
|
|
@@ -7309,20 +7705,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7309
7705
|
|
|
7310
7706
|
module.exports = Scene;
|
|
7311
7707
|
}, {
|
|
7312
|
-
"../interfaces/plattar-base.js":
|
|
7708
|
+
"../interfaces/plattar-base.js": 60
|
|
7313
7709
|
}],
|
|
7314
|
-
|
|
7710
|
+
102: [function (require, module, exports) {
|
|
7315
7711
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
7316
7712
|
|
|
7317
7713
|
var TriggerImage = /*#__PURE__*/function (_PlattarBase23) {
|
|
7318
7714
|
_inherits(TriggerImage, _PlattarBase23);
|
|
7319
7715
|
|
|
7320
|
-
var
|
|
7716
|
+
var _super69 = _createSuper(TriggerImage);
|
|
7321
7717
|
|
|
7322
7718
|
function TriggerImage() {
|
|
7323
7719
|
_classCallCheck(this, TriggerImage);
|
|
7324
7720
|
|
|
7325
|
-
return
|
|
7721
|
+
return _super69.apply(this, arguments);
|
|
7326
7722
|
}
|
|
7327
7723
|
|
|
7328
7724
|
_createClass(TriggerImage, null, [{
|
|
@@ -7337,9 +7733,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7337
7733
|
|
|
7338
7734
|
module.exports = TriggerImage;
|
|
7339
7735
|
}, {
|
|
7340
|
-
"../interfaces/plattar-base.js":
|
|
7736
|
+
"../interfaces/plattar-base.js": 60
|
|
7341
7737
|
}],
|
|
7342
|
-
|
|
7738
|
+
103: [function (require, module, exports) {
|
|
7343
7739
|
var Application = require("../types/application.js"); // import Scene types and its children
|
|
7344
7740
|
|
|
7345
7741
|
|
|
@@ -7726,81 +8122,81 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7726
8122
|
|
|
7727
8123
|
module.exports = PlattarUtil;
|
|
7728
8124
|
}, {
|
|
7729
|
-
"../types/application.js":
|
|
7730
|
-
"../types/content-pipeline/brief.js":
|
|
7731
|
-
"../types/content-pipeline/comment-brief.js":
|
|
7732
|
-
"../types/content-pipeline/comment-quote.js":
|
|
7733
|
-
"../types/content-pipeline/comment-solution.js":
|
|
7734
|
-
"../types/content-pipeline/folder.js":
|
|
7735
|
-
"../types/content-pipeline/pipeline-user.js":
|
|
7736
|
-
"../types/content-pipeline/quote.js":
|
|
7737
|
-
"../types/content-pipeline/rating.js":
|
|
7738
|
-
"../types/content-pipeline/solution.js":
|
|
7739
|
-
"../types/file/file-audio.js":
|
|
7740
|
-
"../types/file/file-image.js":
|
|
7741
|
-
"../types/file/file-model.js":
|
|
7742
|
-
"../types/file/file-script.js":
|
|
7743
|
-
"../types/file/file-video.js":
|
|
7744
|
-
"../types/interfaces/plattar-object.js":
|
|
7745
|
-
"../types/misc/application-build.js":
|
|
7746
|
-
"../types/misc/asset-library":
|
|
7747
|
-
"../types/misc/async-job.js":
|
|
7748
|
-
"../types/misc/script-event.js":
|
|
7749
|
-
"../types/misc/tag.js":
|
|
7750
|
-
"../types/page/card-button.js":
|
|
7751
|
-
"../types/page/card-html.js":
|
|
7752
|
-
"../types/page/card-iframe.js":
|
|
7753
|
-
"../types/page/card-image.js":
|
|
7754
|
-
"../types/page/card-map.js":
|
|
7755
|
-
"../types/page/card-paragraph.js":
|
|
7756
|
-
"../types/page/card-row.js":
|
|
7757
|
-
"../types/page/card-slider.js":
|
|
7758
|
-
"../types/page/card-title.js":
|
|
7759
|
-
"../types/page/card-video.js":
|
|
7760
|
-
"../types/page/card-youtube.js":
|
|
7761
|
-
"../types/page/page.js":
|
|
7762
|
-
"../types/product/product-annotation.js":
|
|
7763
|
-
"../types/product/product-variation.js":
|
|
7764
|
-
"../types/product/product.js":
|
|
7765
|
-
"../types/scene/scene-annotation.js":
|
|
7766
|
-
"../types/scene/scene-audio.js":
|
|
7767
|
-
"../types/scene/scene-button.js":
|
|
7768
|
-
"../types/scene/scene-camera.js":
|
|
7769
|
-
"../types/scene/scene-carousel.js":
|
|
7770
|
-
"../types/scene/scene-image.js":
|
|
7771
|
-
"../types/scene/scene-model.js":
|
|
7772
|
-
"../types/scene/scene-panorama.js":
|
|
7773
|
-
"../types/scene/scene-poller.js":
|
|
7774
|
-
"../types/scene/scene-product.js":
|
|
7775
|
-
"../types/scene/scene-script.js":
|
|
7776
|
-
"../types/scene/scene-shadow.js":
|
|
7777
|
-
"../types/scene/scene-video.js":
|
|
7778
|
-
"../types/scene/scene-volumetric.js":
|
|
7779
|
-
"../types/scene/scene-youtube.js":
|
|
7780
|
-
"../types/scene/scene.js":
|
|
7781
|
-
"../types/trigger/trigger-image.js":
|
|
8125
|
+
"../types/application.js": 44,
|
|
8126
|
+
"../types/content-pipeline/brief.js": 45,
|
|
8127
|
+
"../types/content-pipeline/comment-brief.js": 46,
|
|
8128
|
+
"../types/content-pipeline/comment-quote.js": 47,
|
|
8129
|
+
"../types/content-pipeline/comment-solution.js": 48,
|
|
8130
|
+
"../types/content-pipeline/folder.js": 49,
|
|
8131
|
+
"../types/content-pipeline/pipeline-user.js": 50,
|
|
8132
|
+
"../types/content-pipeline/quote.js": 51,
|
|
8133
|
+
"../types/content-pipeline/rating.js": 52,
|
|
8134
|
+
"../types/content-pipeline/solution.js": 53,
|
|
8135
|
+
"../types/file/file-audio.js": 54,
|
|
8136
|
+
"../types/file/file-image.js": 56,
|
|
8137
|
+
"../types/file/file-model.js": 57,
|
|
8138
|
+
"../types/file/file-script.js": 58,
|
|
8139
|
+
"../types/file/file-video.js": 59,
|
|
8140
|
+
"../types/interfaces/plattar-object.js": 62,
|
|
8141
|
+
"../types/misc/application-build.js": 63,
|
|
8142
|
+
"../types/misc/asset-library": 64,
|
|
8143
|
+
"../types/misc/async-job.js": 65,
|
|
8144
|
+
"../types/misc/script-event.js": 66,
|
|
8145
|
+
"../types/misc/tag.js": 67,
|
|
8146
|
+
"../types/page/card-button.js": 69,
|
|
8147
|
+
"../types/page/card-html.js": 70,
|
|
8148
|
+
"../types/page/card-iframe.js": 71,
|
|
8149
|
+
"../types/page/card-image.js": 72,
|
|
8150
|
+
"../types/page/card-map.js": 73,
|
|
8151
|
+
"../types/page/card-paragraph.js": 74,
|
|
8152
|
+
"../types/page/card-row.js": 75,
|
|
8153
|
+
"../types/page/card-slider.js": 76,
|
|
8154
|
+
"../types/page/card-title.js": 77,
|
|
8155
|
+
"../types/page/card-video.js": 78,
|
|
8156
|
+
"../types/page/card-youtube.js": 79,
|
|
8157
|
+
"../types/page/page.js": 80,
|
|
8158
|
+
"../types/product/product-annotation.js": 81,
|
|
8159
|
+
"../types/product/product-variation.js": 83,
|
|
8160
|
+
"../types/product/product.js": 84,
|
|
8161
|
+
"../types/scene/scene-annotation.js": 85,
|
|
8162
|
+
"../types/scene/scene-audio.js": 86,
|
|
8163
|
+
"../types/scene/scene-button.js": 88,
|
|
8164
|
+
"../types/scene/scene-camera.js": 89,
|
|
8165
|
+
"../types/scene/scene-carousel.js": 90,
|
|
8166
|
+
"../types/scene/scene-image.js": 91,
|
|
8167
|
+
"../types/scene/scene-model.js": 92,
|
|
8168
|
+
"../types/scene/scene-panorama.js": 93,
|
|
8169
|
+
"../types/scene/scene-poller.js": 94,
|
|
8170
|
+
"../types/scene/scene-product.js": 95,
|
|
8171
|
+
"../types/scene/scene-script.js": 96,
|
|
8172
|
+
"../types/scene/scene-shadow.js": 97,
|
|
8173
|
+
"../types/scene/scene-video.js": 98,
|
|
8174
|
+
"../types/scene/scene-volumetric.js": 99,
|
|
8175
|
+
"../types/scene/scene-youtube.js": 100,
|
|
8176
|
+
"../types/scene/scene.js": 101,
|
|
8177
|
+
"../types/trigger/trigger-image.js": 102
|
|
7782
8178
|
}],
|
|
7783
|
-
|
|
8179
|
+
104: [function (require, module, exports) {
|
|
7784
8180
|
module.exports = "1.120.1";
|
|
7785
8181
|
}, {}],
|
|
7786
|
-
|
|
8182
|
+
105: [function (require, module, exports) {
|
|
7787
8183
|
var QRCodeStyling = require("qr-code-styling");
|
|
7788
8184
|
|
|
7789
8185
|
var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
|
|
7790
8186
|
_inherits(BaseElement, _HTMLElement2);
|
|
7791
8187
|
|
|
7792
|
-
var
|
|
8188
|
+
var _super70 = _createSuper(BaseElement);
|
|
7793
8189
|
|
|
7794
8190
|
function BaseElement() {
|
|
7795
8191
|
_classCallCheck(this, BaseElement);
|
|
7796
8192
|
|
|
7797
|
-
return
|
|
8193
|
+
return _super70.call(this);
|
|
7798
8194
|
}
|
|
7799
8195
|
|
|
7800
8196
|
_createClass(BaseElement, [{
|
|
7801
8197
|
key: "connectedCallback",
|
|
7802
8198
|
value: function connectedCallback() {
|
|
7803
|
-
var
|
|
8199
|
+
var _this59 = this;
|
|
7804
8200
|
|
|
7805
8201
|
if (this.hasAttribute("url")) {
|
|
7806
8202
|
this.renderQRCode();
|
|
@@ -7809,8 +8205,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7809
8205
|
var observer = new MutationObserver(function (mutations) {
|
|
7810
8206
|
mutations.forEach(function (mutation) {
|
|
7811
8207
|
if (mutation.type === "attributes") {
|
|
7812
|
-
if (
|
|
7813
|
-
|
|
8208
|
+
if (_this59.hasAttribute("url")) {
|
|
8209
|
+
_this59.renderQRCode();
|
|
7814
8210
|
}
|
|
7815
8211
|
}
|
|
7816
8212
|
});
|
|
@@ -7834,7 +8230,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7834
8230
|
}, {
|
|
7835
8231
|
key: "renderQRCode",
|
|
7836
8232
|
value: function renderQRCode() {
|
|
7837
|
-
var
|
|
8233
|
+
var _this60 = this;
|
|
7838
8234
|
|
|
7839
8235
|
var url = this.hasAttribute("url") ? this.getAttribute("url") : undefined;
|
|
7840
8236
|
|
|
@@ -7944,11 +8340,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
7944
8340
|
|
|
7945
8341
|
if (shortenURL && shortenURL.toLowerCase() === "true") {
|
|
7946
8342
|
this._ShortenURL(url).then(function (newURL) {
|
|
7947
|
-
|
|
8343
|
+
_this60._GenerateQRCode(newURL, width, height);
|
|
7948
8344
|
})["catch"](function (_err) {
|
|
7949
8345
|
console.warn(_err); // ignore error and just generate normal QR Code
|
|
7950
8346
|
|
|
7951
|
-
|
|
8347
|
+
_this60._GenerateQRCode(url, width, height);
|
|
7952
8348
|
});
|
|
7953
8349
|
} else {
|
|
7954
8350
|
this._GenerateQRCode(url, width, height);
|
|
@@ -8008,10 +8404,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8008
8404
|
}, {
|
|
8009
8405
|
key: "_ShortenURL",
|
|
8010
8406
|
value: function _ShortenURL(url) {
|
|
8011
|
-
var
|
|
8407
|
+
var _this61 = this;
|
|
8012
8408
|
|
|
8013
8409
|
return new Promise(function (accept, reject) {
|
|
8014
|
-
if (!
|
|
8410
|
+
if (!_this61._IsFetchAPISupported()) {
|
|
8015
8411
|
return reject(new Error("PlattarQR._ShortenURL() - fetch api not supported, cannot proceed"));
|
|
8016
8412
|
}
|
|
8017
8413
|
|
|
@@ -8041,20 +8437,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8041
8437
|
|
|
8042
8438
|
module.exports = BaseElement;
|
|
8043
8439
|
}, {
|
|
8044
|
-
"qr-code-styling":
|
|
8440
|
+
"qr-code-styling": 132
|
|
8045
8441
|
}],
|
|
8046
|
-
|
|
8442
|
+
106: [function (require, module, exports) {
|
|
8047
8443
|
var BaseElement = require("./base/base-element.js");
|
|
8048
8444
|
|
|
8049
8445
|
var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
|
|
8050
8446
|
_inherits(QRCodeElement, _BaseElement);
|
|
8051
8447
|
|
|
8052
|
-
var
|
|
8448
|
+
var _super71 = _createSuper(QRCodeElement);
|
|
8053
8449
|
|
|
8054
8450
|
function QRCodeElement() {
|
|
8055
8451
|
_classCallCheck(this, QRCodeElement);
|
|
8056
8452
|
|
|
8057
|
-
return
|
|
8453
|
+
return _super71.call(this);
|
|
8058
8454
|
}
|
|
8059
8455
|
|
|
8060
8456
|
return _createClass(QRCodeElement);
|
|
@@ -8062,9 +8458,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8062
8458
|
|
|
8063
8459
|
module.exports = QRCodeElement;
|
|
8064
8460
|
}, {
|
|
8065
|
-
"./base/base-element.js":
|
|
8461
|
+
"./base/base-element.js": 105
|
|
8066
8462
|
}],
|
|
8067
|
-
|
|
8463
|
+
107: [function (require, module, exports) {
|
|
8068
8464
|
"use strict";
|
|
8069
8465
|
|
|
8070
8466
|
var QRCodeElement = require("./elements/qrcode-element.js");
|
|
@@ -8082,13 +8478,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8082
8478
|
version: Version
|
|
8083
8479
|
};
|
|
8084
8480
|
}, {
|
|
8085
|
-
"./elements/qrcode-element.js":
|
|
8086
|
-
"./version":
|
|
8481
|
+
"./elements/qrcode-element.js": 106,
|
|
8482
|
+
"./version": 108
|
|
8087
8483
|
}],
|
|
8088
|
-
|
|
8484
|
+
108: [function (require, module, exports) {
|
|
8089
8485
|
module.exports = "1.122.1";
|
|
8090
8486
|
}, {}],
|
|
8091
|
-
|
|
8487
|
+
109: [function (require, module, exports) {
|
|
8092
8488
|
"use strict";
|
|
8093
8489
|
|
|
8094
8490
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -8239,11 +8635,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8239
8635
|
}, {
|
|
8240
8636
|
key: "get",
|
|
8241
8637
|
value: function get() {
|
|
8242
|
-
var
|
|
8638
|
+
var _this62 = this;
|
|
8243
8639
|
|
|
8244
8640
|
return new Promise(function (accept, reject) {
|
|
8245
|
-
|
|
8246
|
-
remote_request_1.RemoteRequest.request(
|
|
8641
|
+
_this62._CalculateHash().then(function () {
|
|
8642
|
+
remote_request_1.RemoteRequest.request(_this62._GetPayload(), _this62.retry < 0 ? 0 : _this62.retry).then(accept)["catch"](reject);
|
|
8247
8643
|
})["catch"](function (_err) {
|
|
8248
8644
|
reject(new Error("Configurator.get() - one of the objects does not exist in Plattar API"));
|
|
8249
8645
|
});
|
|
@@ -8252,14 +8648,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8252
8648
|
}, {
|
|
8253
8649
|
key: "_CalculateHash",
|
|
8254
8650
|
value: function _CalculateHash() {
|
|
8255
|
-
var
|
|
8651
|
+
var _this63 = this;
|
|
8256
8652
|
|
|
8257
8653
|
return new Promise(function (accept, reject) {
|
|
8258
8654
|
var promises = [];
|
|
8259
8655
|
var oldOrigin = plattar_api_1.Server["default"]().originLocation.type;
|
|
8260
|
-
plattar_api_1.Server.create(plattar_api_1.Server.match(
|
|
8656
|
+
plattar_api_1.Server.create(plattar_api_1.Server.match(_this63.server));
|
|
8261
8657
|
|
|
8262
|
-
|
|
8658
|
+
_this63._maps.forEach(function (map) {
|
|
8263
8659
|
if (map.productvariation) {
|
|
8264
8660
|
promises.push(new plattar_api_1.ProductVariation(map.productvariation).get());
|
|
8265
8661
|
}
|
|
@@ -8279,7 +8675,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8279
8675
|
|
|
8280
8676
|
Promise.all(promises).then(function (values) {
|
|
8281
8677
|
values.forEach(function (value) {
|
|
8282
|
-
|
|
8678
|
+
_this63._attrHash.push(value.attributes);
|
|
8283
8679
|
}); // reset server back
|
|
8284
8680
|
|
|
8285
8681
|
plattar_api_1.Server.create(plattar_api_1.Server.match(oldOrigin));
|
|
@@ -8322,11 +8718,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8322
8718
|
|
|
8323
8719
|
exports.Configurator = Configurator;
|
|
8324
8720
|
}, {
|
|
8325
|
-
"./remote-request":
|
|
8326
|
-
"@plattar/plattar-api":
|
|
8327
|
-
"object-hash":
|
|
8721
|
+
"./remote-request": 111,
|
|
8722
|
+
"@plattar/plattar-api": 41,
|
|
8723
|
+
"object-hash": 130
|
|
8328
8724
|
}],
|
|
8329
|
-
|
|
8725
|
+
110: [function (require, module, exports) {
|
|
8330
8726
|
"use strict";
|
|
8331
8727
|
|
|
8332
8728
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -8381,14 +8777,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8381
8777
|
}, {
|
|
8382
8778
|
key: "get",
|
|
8383
8779
|
value: function get() {
|
|
8384
|
-
var
|
|
8780
|
+
var _this64 = this;
|
|
8385
8781
|
|
|
8386
8782
|
return new Promise(function (accept, reject) {
|
|
8387
|
-
if (!
|
|
8783
|
+
if (!_this64._model) {
|
|
8388
8784
|
return reject(new Error("ModelConverter.get() - required .model attribute was not set"));
|
|
8389
8785
|
}
|
|
8390
8786
|
|
|
8391
|
-
remote_request_1.RemoteRequest.request(
|
|
8787
|
+
remote_request_1.RemoteRequest.request(_this64._Payload, _this64.retry < 0 ? 0 : _this64.retry).then(accept)["catch"](reject);
|
|
8392
8788
|
});
|
|
8393
8789
|
}
|
|
8394
8790
|
}, {
|
|
@@ -8421,11 +8817,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8421
8817
|
|
|
8422
8818
|
exports.ModelConverter = ModelConverter;
|
|
8423
8819
|
}, {
|
|
8424
|
-
"./remote-request":
|
|
8425
|
-
"@plattar/plattar-api":
|
|
8426
|
-
"object-hash":
|
|
8820
|
+
"./remote-request": 111,
|
|
8821
|
+
"@plattar/plattar-api": 41,
|
|
8822
|
+
"object-hash": 130
|
|
8427
8823
|
}],
|
|
8428
|
-
|
|
8824
|
+
111: [function (require, module, exports) {
|
|
8429
8825
|
"use strict";
|
|
8430
8826
|
|
|
8431
8827
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -8513,9 +8909,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8513
8909
|
|
|
8514
8910
|
exports.RemoteRequest = RemoteRequest;
|
|
8515
8911
|
}, {
|
|
8516
|
-
"node-fetch":
|
|
8912
|
+
"node-fetch": 129
|
|
8517
8913
|
}],
|
|
8518
|
-
|
|
8914
|
+
112: [function (require, module, exports) {
|
|
8519
8915
|
"use strict";
|
|
8520
8916
|
|
|
8521
8917
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -8586,11 +8982,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8586
8982
|
|
|
8587
8983
|
console.log("using @plattar/plattar-services v" + version_1["default"]);
|
|
8588
8984
|
}, {
|
|
8589
|
-
"./core/configurator":
|
|
8590
|
-
"./core/model-converter":
|
|
8591
|
-
"./version":
|
|
8985
|
+
"./core/configurator": 109,
|
|
8986
|
+
"./core/model-converter": 110,
|
|
8987
|
+
"./version": 113
|
|
8592
8988
|
}],
|
|
8593
|
-
|
|
8989
|
+
113: [function (require, module, exports) {
|
|
8594
8990
|
"use strict";
|
|
8595
8991
|
|
|
8596
8992
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -8598,18 +8994,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8598
8994
|
});
|
|
8599
8995
|
exports["default"] = "1.120.1";
|
|
8600
8996
|
}, {}],
|
|
8601
|
-
|
|
8997
|
+
114: [function (require, module, exports) {
|
|
8602
8998
|
var ElementController = require("../controllers/element-controller");
|
|
8603
8999
|
|
|
8604
9000
|
var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
8605
9001
|
_inherits(BaseElement, _HTMLElement3);
|
|
8606
9002
|
|
|
8607
|
-
var
|
|
9003
|
+
var _super72 = _createSuper(BaseElement);
|
|
8608
9004
|
|
|
8609
9005
|
function BaseElement() {
|
|
8610
9006
|
_classCallCheck(this, BaseElement);
|
|
8611
9007
|
|
|
8612
|
-
return
|
|
9008
|
+
return _super72.call(this);
|
|
8613
9009
|
}
|
|
8614
9010
|
|
|
8615
9011
|
_createClass(BaseElement, [{
|
|
@@ -8709,19 +9105,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8709
9105
|
}, {
|
|
8710
9106
|
key: "allMappedAttributes",
|
|
8711
9107
|
get: function get() {
|
|
8712
|
-
var
|
|
9108
|
+
var _this65 = this;
|
|
8713
9109
|
|
|
8714
9110
|
var map = new Map();
|
|
8715
9111
|
var coreAttr = this.coreAttributes;
|
|
8716
9112
|
var optAttr = this.optionalAttributes;
|
|
8717
9113
|
coreAttr.forEach(function (ele) {
|
|
8718
|
-
if (
|
|
8719
|
-
map.set(ele.map,
|
|
9114
|
+
if (_this65.hasAttribute(ele.key)) {
|
|
9115
|
+
map.set(ele.map, _this65.getAttribute(ele.key));
|
|
8720
9116
|
}
|
|
8721
9117
|
});
|
|
8722
9118
|
optAttr.forEach(function (ele) {
|
|
8723
|
-
if (
|
|
8724
|
-
map.set(ele.map,
|
|
9119
|
+
if (_this65.hasAttribute(ele.key)) {
|
|
9120
|
+
map.set(ele.map, _this65.getAttribute(ele.key));
|
|
8725
9121
|
}
|
|
8726
9122
|
});
|
|
8727
9123
|
return map;
|
|
@@ -8765,20 +9161,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8765
9161
|
|
|
8766
9162
|
module.exports = BaseElement;
|
|
8767
9163
|
}, {
|
|
8768
|
-
"../controllers/element-controller":
|
|
9164
|
+
"../controllers/element-controller": 116
|
|
8769
9165
|
}],
|
|
8770
|
-
|
|
9166
|
+
115: [function (require, module, exports) {
|
|
8771
9167
|
var BaseElement = require("./base/base-element.js");
|
|
8772
9168
|
|
|
8773
9169
|
var ConfiguratorElement = /*#__PURE__*/function (_BaseElement2) {
|
|
8774
9170
|
_inherits(ConfiguratorElement, _BaseElement2);
|
|
8775
9171
|
|
|
8776
|
-
var
|
|
9172
|
+
var _super73 = _createSuper(ConfiguratorElement);
|
|
8777
9173
|
|
|
8778
9174
|
function ConfiguratorElement() {
|
|
8779
9175
|
_classCallCheck(this, ConfiguratorElement);
|
|
8780
9176
|
|
|
8781
|
-
return
|
|
9177
|
+
return _super73.call(this);
|
|
8782
9178
|
}
|
|
8783
9179
|
|
|
8784
9180
|
_createClass(ConfiguratorElement, [{
|
|
@@ -8809,9 +9205,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8809
9205
|
|
|
8810
9206
|
module.exports = ConfiguratorElement;
|
|
8811
9207
|
}, {
|
|
8812
|
-
"./base/base-element.js":
|
|
9208
|
+
"./base/base-element.js": 114
|
|
8813
9209
|
}],
|
|
8814
|
-
|
|
9210
|
+
116: [function (require, module, exports) {
|
|
8815
9211
|
var Util = require("../../util/util.js");
|
|
8816
9212
|
|
|
8817
9213
|
var _require = require("@plattar/context-messenger"),
|
|
@@ -8821,7 +9217,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8821
9217
|
|
|
8822
9218
|
var ElementController = /*#__PURE__*/function () {
|
|
8823
9219
|
function ElementController(element) {
|
|
8824
|
-
var
|
|
9220
|
+
var _this66 = this;
|
|
8825
9221
|
|
|
8826
9222
|
_classCallCheck(this, ElementController);
|
|
8827
9223
|
|
|
@@ -8837,7 +9233,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8837
9233
|
|
|
8838
9234
|
if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
|
|
8839
9235
|
if (element.hasAllCoreAttributes) {
|
|
8840
|
-
|
|
9236
|
+
_this66._load();
|
|
8841
9237
|
}
|
|
8842
9238
|
}
|
|
8843
9239
|
}
|
|
@@ -8928,16 +9324,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8928
9324
|
|
|
8929
9325
|
module.exports = ElementController;
|
|
8930
9326
|
}, {
|
|
8931
|
-
"../../util/util.js":
|
|
8932
|
-
"./iframe-controller.js":
|
|
8933
|
-
"@plattar/context-messenger":
|
|
9327
|
+
"../../util/util.js": 127,
|
|
9328
|
+
"./iframe-controller.js": 117,
|
|
9329
|
+
"@plattar/context-messenger": 20
|
|
8934
9330
|
}],
|
|
8935
|
-
|
|
9331
|
+
117: [function (require, module, exports) {
|
|
8936
9332
|
var Util = require("../../util/util.js");
|
|
8937
9333
|
|
|
8938
9334
|
var IFrameController = /*#__PURE__*/function () {
|
|
8939
9335
|
function IFrameController(element, src, id) {
|
|
8940
|
-
var
|
|
9336
|
+
var _this67 = this;
|
|
8941
9337
|
|
|
8942
9338
|
var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
8943
9339
|
|
|
@@ -8949,7 +9345,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
8949
9345
|
if (!element.hasAttribute("sameorigin")) {
|
|
8950
9346
|
this._iframe.onload = function () {
|
|
8951
9347
|
if (onelemload) {
|
|
8952
|
-
onelemload(
|
|
9348
|
+
onelemload(_this67._iframe);
|
|
8953
9349
|
}
|
|
8954
9350
|
};
|
|
8955
9351
|
}
|
|
@@ -9046,20 +9442,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9046
9442
|
|
|
9047
9443
|
module.exports = IFrameController;
|
|
9048
9444
|
}, {
|
|
9049
|
-
"../../util/util.js":
|
|
9445
|
+
"../../util/util.js": 127
|
|
9050
9446
|
}],
|
|
9051
|
-
|
|
9447
|
+
118: [function (require, module, exports) {
|
|
9052
9448
|
var BaseElement = require("./base/base-element.js");
|
|
9053
9449
|
|
|
9054
9450
|
var EditorElement = /*#__PURE__*/function (_BaseElement3) {
|
|
9055
9451
|
_inherits(EditorElement, _BaseElement3);
|
|
9056
9452
|
|
|
9057
|
-
var
|
|
9453
|
+
var _super74 = _createSuper(EditorElement);
|
|
9058
9454
|
|
|
9059
9455
|
function EditorElement() {
|
|
9060
9456
|
_classCallCheck(this, EditorElement);
|
|
9061
9457
|
|
|
9062
|
-
return
|
|
9458
|
+
return _super74.call(this);
|
|
9063
9459
|
}
|
|
9064
9460
|
|
|
9065
9461
|
_createClass(EditorElement, [{
|
|
@@ -9079,26 +9475,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9079
9475
|
|
|
9080
9476
|
module.exports = EditorElement;
|
|
9081
9477
|
}, {
|
|
9082
|
-
"./base/base-element.js":
|
|
9478
|
+
"./base/base-element.js": 114
|
|
9083
9479
|
}],
|
|
9084
|
-
|
|
9480
|
+
119: [function (require, module, exports) {
|
|
9085
9481
|
var BaseElement = require("./base/base-element.js");
|
|
9086
9482
|
|
|
9087
9483
|
var EWallElement = /*#__PURE__*/function (_BaseElement4) {
|
|
9088
9484
|
_inherits(EWallElement, _BaseElement4);
|
|
9089
9485
|
|
|
9090
|
-
var
|
|
9486
|
+
var _super75 = _createSuper(EWallElement);
|
|
9091
9487
|
|
|
9092
9488
|
function EWallElement() {
|
|
9093
|
-
var
|
|
9489
|
+
var _this68;
|
|
9094
9490
|
|
|
9095
9491
|
_classCallCheck(this, EWallElement);
|
|
9096
9492
|
|
|
9097
|
-
|
|
9493
|
+
_this68 = _super75.call(this);
|
|
9098
9494
|
var tag = document.createElement("script");
|
|
9099
9495
|
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
|
|
9100
9496
|
tag.defer = true;
|
|
9101
|
-
return
|
|
9497
|
+
return _this68;
|
|
9102
9498
|
}
|
|
9103
9499
|
|
|
9104
9500
|
_createClass(EWallElement, [{
|
|
@@ -9134,20 +9530,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9134
9530
|
|
|
9135
9531
|
module.exports = EWallElement;
|
|
9136
9532
|
}, {
|
|
9137
|
-
"./base/base-element.js":
|
|
9533
|
+
"./base/base-element.js": 114
|
|
9138
9534
|
}],
|
|
9139
|
-
|
|
9535
|
+
120: [function (require, module, exports) {
|
|
9140
9536
|
var BaseElement = require("./base/base-element.js");
|
|
9141
9537
|
|
|
9142
9538
|
var FaceARElement = /*#__PURE__*/function (_BaseElement5) {
|
|
9143
9539
|
_inherits(FaceARElement, _BaseElement5);
|
|
9144
9540
|
|
|
9145
|
-
var
|
|
9541
|
+
var _super76 = _createSuper(FaceARElement);
|
|
9146
9542
|
|
|
9147
9543
|
function FaceARElement() {
|
|
9148
9544
|
_classCallCheck(this, FaceARElement);
|
|
9149
9545
|
|
|
9150
|
-
return
|
|
9546
|
+
return _super76.call(this);
|
|
9151
9547
|
}
|
|
9152
9548
|
|
|
9153
9549
|
_createClass(FaceARElement, [{
|
|
@@ -9178,20 +9574,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9178
9574
|
|
|
9179
9575
|
module.exports = FaceARElement;
|
|
9180
9576
|
}, {
|
|
9181
|
-
"./base/base-element.js":
|
|
9577
|
+
"./base/base-element.js": 114
|
|
9182
9578
|
}],
|
|
9183
|
-
|
|
9579
|
+
121: [function (require, module, exports) {
|
|
9184
9580
|
var BaseElement = require("./base/base-element.js");
|
|
9185
9581
|
|
|
9186
9582
|
var ModelElement = /*#__PURE__*/function (_BaseElement6) {
|
|
9187
9583
|
_inherits(ModelElement, _BaseElement6);
|
|
9188
9584
|
|
|
9189
|
-
var
|
|
9585
|
+
var _super77 = _createSuper(ModelElement);
|
|
9190
9586
|
|
|
9191
9587
|
function ModelElement() {
|
|
9192
9588
|
_classCallCheck(this, ModelElement);
|
|
9193
9589
|
|
|
9194
|
-
return
|
|
9590
|
+
return _super77.call(this);
|
|
9195
9591
|
}
|
|
9196
9592
|
|
|
9197
9593
|
_createClass(ModelElement, [{
|
|
@@ -9219,20 +9615,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9219
9615
|
|
|
9220
9616
|
module.exports = ModelElement;
|
|
9221
9617
|
}, {
|
|
9222
|
-
"./base/base-element.js":
|
|
9618
|
+
"./base/base-element.js": 114
|
|
9223
9619
|
}],
|
|
9224
|
-
|
|
9620
|
+
122: [function (require, module, exports) {
|
|
9225
9621
|
var BaseElement = require("./base/base-element.js");
|
|
9226
9622
|
|
|
9227
9623
|
var ProductElement = /*#__PURE__*/function (_BaseElement7) {
|
|
9228
9624
|
_inherits(ProductElement, _BaseElement7);
|
|
9229
9625
|
|
|
9230
|
-
var
|
|
9626
|
+
var _super78 = _createSuper(ProductElement);
|
|
9231
9627
|
|
|
9232
9628
|
function ProductElement() {
|
|
9233
9629
|
_classCallCheck(this, ProductElement);
|
|
9234
9630
|
|
|
9235
|
-
return
|
|
9631
|
+
return _super78.call(this);
|
|
9236
9632
|
}
|
|
9237
9633
|
|
|
9238
9634
|
_createClass(ProductElement, [{
|
|
@@ -9268,20 +9664,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9268
9664
|
|
|
9269
9665
|
module.exports = ProductElement;
|
|
9270
9666
|
}, {
|
|
9271
|
-
"./base/base-element.js":
|
|
9667
|
+
"./base/base-element.js": 114
|
|
9272
9668
|
}],
|
|
9273
|
-
|
|
9669
|
+
123: [function (require, module, exports) {
|
|
9274
9670
|
var BaseElement = require("./base/base-element.js");
|
|
9275
9671
|
|
|
9276
9672
|
var StudioElement = /*#__PURE__*/function (_BaseElement8) {
|
|
9277
9673
|
_inherits(StudioElement, _BaseElement8);
|
|
9278
9674
|
|
|
9279
|
-
var
|
|
9675
|
+
var _super79 = _createSuper(StudioElement);
|
|
9280
9676
|
|
|
9281
9677
|
function StudioElement() {
|
|
9282
9678
|
_classCallCheck(this, StudioElement);
|
|
9283
9679
|
|
|
9284
|
-
return
|
|
9680
|
+
return _super79.call(this);
|
|
9285
9681
|
}
|
|
9286
9682
|
|
|
9287
9683
|
_createClass(StudioElement, [{
|
|
@@ -9301,20 +9697,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9301
9697
|
|
|
9302
9698
|
module.exports = StudioElement;
|
|
9303
9699
|
}, {
|
|
9304
|
-
"./base/base-element.js":
|
|
9700
|
+
"./base/base-element.js": 114
|
|
9305
9701
|
}],
|
|
9306
|
-
|
|
9702
|
+
124: [function (require, module, exports) {
|
|
9307
9703
|
var BaseElement = require("./base/base-element.js");
|
|
9308
9704
|
|
|
9309
9705
|
var ViewerElement = /*#__PURE__*/function (_BaseElement9) {
|
|
9310
9706
|
_inherits(ViewerElement, _BaseElement9);
|
|
9311
9707
|
|
|
9312
|
-
var
|
|
9708
|
+
var _super80 = _createSuper(ViewerElement);
|
|
9313
9709
|
|
|
9314
9710
|
function ViewerElement() {
|
|
9315
9711
|
_classCallCheck(this, ViewerElement);
|
|
9316
9712
|
|
|
9317
|
-
return
|
|
9713
|
+
return _super80.call(this);
|
|
9318
9714
|
}
|
|
9319
9715
|
|
|
9320
9716
|
_createClass(ViewerElement, [{
|
|
@@ -9345,20 +9741,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9345
9741
|
|
|
9346
9742
|
module.exports = ViewerElement;
|
|
9347
9743
|
}, {
|
|
9348
|
-
"./base/base-element.js":
|
|
9744
|
+
"./base/base-element.js": 114
|
|
9349
9745
|
}],
|
|
9350
|
-
|
|
9746
|
+
125: [function (require, module, exports) {
|
|
9351
9747
|
var BaseElement = require("./base/base-element.js");
|
|
9352
9748
|
|
|
9353
9749
|
var WebXRElement = /*#__PURE__*/function (_BaseElement10) {
|
|
9354
9750
|
_inherits(WebXRElement, _BaseElement10);
|
|
9355
9751
|
|
|
9356
|
-
var
|
|
9752
|
+
var _super81 = _createSuper(WebXRElement);
|
|
9357
9753
|
|
|
9358
9754
|
function WebXRElement() {
|
|
9359
9755
|
_classCallCheck(this, WebXRElement);
|
|
9360
9756
|
|
|
9361
|
-
return
|
|
9757
|
+
return _super81.call(this);
|
|
9362
9758
|
}
|
|
9363
9759
|
|
|
9364
9760
|
_createClass(WebXRElement, [{
|
|
@@ -9378,9 +9774,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9378
9774
|
|
|
9379
9775
|
module.exports = WebXRElement;
|
|
9380
9776
|
}, {
|
|
9381
|
-
"./base/base-element.js":
|
|
9777
|
+
"./base/base-element.js": 114
|
|
9382
9778
|
}],
|
|
9383
|
-
|
|
9779
|
+
126: [function (require, module, exports) {
|
|
9384
9780
|
"use strict";
|
|
9385
9781
|
|
|
9386
9782
|
var WebXRElement = require("./elements/webxr-element.js");
|
|
@@ -9444,18 +9840,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9444
9840
|
version: Version
|
|
9445
9841
|
};
|
|
9446
9842
|
}, {
|
|
9447
|
-
"./elements/configurator-element.js":
|
|
9448
|
-
"./elements/editor-element.js":
|
|
9449
|
-
"./elements/ewall-element.js":
|
|
9450
|
-
"./elements/facear-element.js":
|
|
9451
|
-
"./elements/model-element.js":
|
|
9452
|
-
"./elements/product-element.js":
|
|
9453
|
-
"./elements/studio-element.js":
|
|
9454
|
-
"./elements/viewer-element.js":
|
|
9455
|
-
"./elements/webxr-element.js":
|
|
9456
|
-
"./version":
|
|
9843
|
+
"./elements/configurator-element.js": 115,
|
|
9844
|
+
"./elements/editor-element.js": 118,
|
|
9845
|
+
"./elements/ewall-element.js": 119,
|
|
9846
|
+
"./elements/facear-element.js": 120,
|
|
9847
|
+
"./elements/model-element.js": 121,
|
|
9848
|
+
"./elements/product-element.js": 122,
|
|
9849
|
+
"./elements/studio-element.js": 123,
|
|
9850
|
+
"./elements/viewer-element.js": 124,
|
|
9851
|
+
"./elements/webxr-element.js": 125,
|
|
9852
|
+
"./version": 128
|
|
9457
9853
|
}],
|
|
9458
|
-
|
|
9854
|
+
127: [function (require, module, exports) {
|
|
9459
9855
|
var Util = /*#__PURE__*/function () {
|
|
9460
9856
|
function Util() {
|
|
9461
9857
|
_classCallCheck(this, Util);
|
|
@@ -9553,10 +9949,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9553
9949
|
|
|
9554
9950
|
module.exports = Util;
|
|
9555
9951
|
}, {}],
|
|
9556
|
-
|
|
9952
|
+
128: [function (require, module, exports) {
|
|
9557
9953
|
module.exports = "1.122.3";
|
|
9558
9954
|
}, {}],
|
|
9559
|
-
|
|
9955
|
+
129: [function (require, module, exports) {
|
|
9560
9956
|
(function (global) {
|
|
9561
9957
|
(function () {
|
|
9562
9958
|
"use strict"; // ref: https://github.com/tc39/proposal-global
|
|
@@ -9593,7 +9989,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
9593
9989
|
}).call(this);
|
|
9594
9990
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
9595
9991
|
}, {}],
|
|
9596
|
-
|
|
9992
|
+
130: [function (require, module, exports) {
|
|
9597
9993
|
(function (global) {
|
|
9598
9994
|
(function () {
|
|
9599
9995
|
!function (e) {
|
|
@@ -10865,7 +11261,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
10865
11261
|
}).call(this);
|
|
10866
11262
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
10867
11263
|
}, {}],
|
|
10868
|
-
|
|
11264
|
+
131: [function (require, module, exports) {
|
|
10869
11265
|
// shim for using process in browser
|
|
10870
11266
|
var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
|
|
10871
11267
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
@@ -11075,7 +11471,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
11075
11471
|
return 0;
|
|
11076
11472
|
};
|
|
11077
11473
|
}, {}],
|
|
11078
|
-
|
|
11474
|
+
132: [function (require, module, exports) {
|
|
11079
11475
|
!function (t, e) {
|
|
11080
11476
|
"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();
|
|
11081
11477
|
}(self, function () {
|
|
@@ -13707,6 +14103,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
13707
14103
|
}()["default"];
|
|
13708
14104
|
});
|
|
13709
14105
|
}, {}]
|
|
13710
|
-
}, {}, [
|
|
14106
|
+
}, {}, [12])(12);
|
|
13711
14107
|
});
|
|
13712
14108
|
|