@plattar/plattar-ar-adapter 1.120.2 → 1.122.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 +1220 -811
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +427 -136
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/ar/raw-ar.d.ts +30 -0
- package/dist/ar/raw-ar.js +110 -0
- package/dist/embed/plattar-embed.d.ts +7 -0
- package/dist/embed/plattar-embed.js +104 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -36,9 +36,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
36
36
|
|
|
37
37
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
38
38
|
|
|
39
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
39
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
40
40
|
|
|
41
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
41
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
42
42
|
|
|
43
43
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
52
52
|
|
|
53
53
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
54
54
|
|
|
55
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
55
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
56
56
|
|
|
57
57
|
(function (f) {
|
|
58
58
|
if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined") {
|
|
@@ -166,9 +166,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
166
166
|
});
|
|
167
167
|
exports.LauncherAR = void 0;
|
|
168
168
|
|
|
169
|
-
var LauncherAR = function LauncherAR() {
|
|
169
|
+
var LauncherAR = /*#__PURE__*/_createClass(function LauncherAR() {
|
|
170
170
|
_classCallCheck(this, LauncherAR);
|
|
171
|
-
};
|
|
171
|
+
});
|
|
172
172
|
|
|
173
173
|
exports.LauncherAR = LauncherAR;
|
|
174
174
|
}, {}],
|
|
@@ -371,13 +371,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
371
371
|
|
|
372
372
|
exports.ModelAR = ModelAR;
|
|
373
373
|
}, {
|
|
374
|
-
"../util/util":
|
|
375
|
-
"../viewers/quicklook-viewer":
|
|
376
|
-
"../viewers/reality-viewer":
|
|
377
|
-
"../viewers/scene-viewer":
|
|
374
|
+
"../util/util": 9,
|
|
375
|
+
"../viewers/quicklook-viewer": 12,
|
|
376
|
+
"../viewers/reality-viewer": 13,
|
|
377
|
+
"../viewers/scene-viewer": 14,
|
|
378
378
|
"./launcher-ar": 2,
|
|
379
|
-
"@plattar/plattar-analytics":
|
|
380
|
-
"@plattar/plattar-api":
|
|
379
|
+
"@plattar/plattar-analytics": 32,
|
|
380
|
+
"@plattar/plattar-api": 36
|
|
381
381
|
}],
|
|
382
382
|
4: [function (require, module, exports) {
|
|
383
383
|
"use strict";
|
|
@@ -631,17 +631,195 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
631
631
|
|
|
632
632
|
exports.ProductAR = ProductAR;
|
|
633
633
|
}, {
|
|
634
|
-
"../util/util":
|
|
635
|
-
"../viewers/quicklook-viewer":
|
|
636
|
-
"../viewers/reality-viewer":
|
|
637
|
-
"../viewers/scene-viewer":
|
|
634
|
+
"../util/util": 9,
|
|
635
|
+
"../viewers/quicklook-viewer": 12,
|
|
636
|
+
"../viewers/reality-viewer": 13,
|
|
637
|
+
"../viewers/scene-viewer": 14,
|
|
638
638
|
"./launcher-ar": 2,
|
|
639
|
-
"@plattar/plattar-analytics":
|
|
640
|
-
"@plattar/plattar-api":
|
|
639
|
+
"@plattar/plattar-analytics": 32,
|
|
640
|
+
"@plattar/plattar-api": 36
|
|
641
641
|
}],
|
|
642
642
|
5: [function (require, module, exports) {
|
|
643
643
|
"use strict";
|
|
644
644
|
|
|
645
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
646
|
+
return mod && mod.__esModule ? mod : {
|
|
647
|
+
"default": mod
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
Object.defineProperty(exports, "__esModule", {
|
|
652
|
+
value: true
|
|
653
|
+
});
|
|
654
|
+
exports.RawAR = void 0;
|
|
655
|
+
|
|
656
|
+
var util_1 = require("../util/util");
|
|
657
|
+
|
|
658
|
+
var quicklook_viewer_1 = __importDefault(require("../viewers/quicklook-viewer"));
|
|
659
|
+
|
|
660
|
+
var reality_viewer_1 = __importDefault(require("../viewers/reality-viewer"));
|
|
661
|
+
|
|
662
|
+
var scene_viewer_1 = __importDefault(require("../viewers/scene-viewer"));
|
|
663
|
+
|
|
664
|
+
var launcher_ar_1 = require("./launcher-ar");
|
|
665
|
+
/**
|
|
666
|
+
* Allows launching AR Experiences provided a single remote 3D Model file
|
|
667
|
+
*/
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
var RawAR = /*#__PURE__*/function (_launcher_ar_1$Launch4) {
|
|
671
|
+
_inherits(RawAR, _launcher_ar_1$Launch4);
|
|
672
|
+
|
|
673
|
+
var _super4 = _createSuper(RawAR);
|
|
674
|
+
|
|
675
|
+
function RawAR() {
|
|
676
|
+
var _this7;
|
|
677
|
+
|
|
678
|
+
var modelLocation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
679
|
+
|
|
680
|
+
_classCallCheck(this, RawAR);
|
|
681
|
+
|
|
682
|
+
_this7 = _super4.call(this);
|
|
683
|
+
|
|
684
|
+
if (!modelLocation) {
|
|
685
|
+
throw new Error("RawAR.constructor(modelLocation) - modelLocation must be defined");
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
var lowerLoc = modelLocation.toLowerCase();
|
|
689
|
+
|
|
690
|
+
if (lowerLoc.endsWith("usdz") || lowerLoc.endsWith("glb") || lowerLoc.endsWith("gltf") || lowerLoc.endsWith("reality")) {
|
|
691
|
+
_this7._modelLocation = modelLocation;
|
|
692
|
+
_this7._ar = null;
|
|
693
|
+
} else {
|
|
694
|
+
throw new Error("RawAR.constructor(modelLocation) - modelLocation must be one of gltf, glb, usdz or reality");
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
return _this7;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
_createClass(RawAR, [{
|
|
701
|
+
key: "modelLocation",
|
|
702
|
+
get: function get() {
|
|
703
|
+
return this._modelLocation;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Initialise the RawAR instance. This returns a Promise that resolves
|
|
707
|
+
* successfully if initialisation is successful, otherwise it will fail.
|
|
708
|
+
*
|
|
709
|
+
* filure can occur for a number of reasons but it generally means that AR
|
|
710
|
+
* cannot be performed.
|
|
711
|
+
*/
|
|
712
|
+
|
|
713
|
+
}, {
|
|
714
|
+
key: "init",
|
|
715
|
+
value: function init() {
|
|
716
|
+
var _this8 = this;
|
|
717
|
+
|
|
718
|
+
return new Promise(function (accept, reject) {
|
|
719
|
+
if (!util_1.Util.canAugment()) {
|
|
720
|
+
return reject(new Error("RawAR.init() - cannot proceed as AR not available in context"));
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
var modelLocation = _this8._modelLocation;
|
|
724
|
+
var lowerLoc = modelLocation.toLowerCase(); // we need to define our AR module here
|
|
725
|
+
// we are in Safari/Quicklook mode here
|
|
726
|
+
|
|
727
|
+
if (util_1.Util.isSafari() || util_1.Util.isChromeOnIOS()) {
|
|
728
|
+
// load the reality experience if dealing with reality file
|
|
729
|
+
if (lowerLoc.endsWith("reality") && util_1.Util.canRealityViewer()) {
|
|
730
|
+
_this8._ar = new reality_viewer_1["default"]();
|
|
731
|
+
_this8._ar.modelUrl = modelLocation;
|
|
732
|
+
return accept(_this8);
|
|
733
|
+
} // load the usdz experience if dealing with usdz file
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
if (lowerLoc.endsWith("usdz") && util_1.Util.canQuicklook()) {
|
|
737
|
+
_this8._ar = new quicklook_viewer_1["default"]();
|
|
738
|
+
_this8._ar.modelUrl = modelLocation;
|
|
739
|
+
return accept(_this8);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
return reject(new Error("RawAR.init() - cannot proceed as model is not a .usdz or .reality file"));
|
|
743
|
+
} // check android
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
if (util_1.Util.canSceneViewer()) {
|
|
747
|
+
if (lowerLoc.endsWith("glb") || lowerLoc.endsWith("gltf")) {
|
|
748
|
+
_this8._ar = new scene_viewer_1["default"]();
|
|
749
|
+
_this8._ar.modelUrl = modelLocation;
|
|
750
|
+
return accept(_this8);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
return reject(new Error("RawAR.init() - cannot proceed as model is not a .glb or .gltf file"));
|
|
754
|
+
} // otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
|
|
755
|
+
// earlier in the process
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
return reject(new Error("RawAR.init() - could not initialise AR correctly, check values"));
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Initialise and launch with a single function call. this is mostly for convenience.
|
|
763
|
+
* Use .init() and .start() separately for fine-grained control
|
|
764
|
+
*/
|
|
765
|
+
|
|
766
|
+
}, {
|
|
767
|
+
key: "launch",
|
|
768
|
+
value: function launch() {
|
|
769
|
+
var _this9 = this;
|
|
770
|
+
|
|
771
|
+
return new Promise(function (accept, reject) {
|
|
772
|
+
_this9.init().then(function (value) {
|
|
773
|
+
value.start();
|
|
774
|
+
return accept();
|
|
775
|
+
})["catch"](reject);
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Launches the internal AR instance using an appropriate version of AR Viewers
|
|
780
|
+
*/
|
|
781
|
+
|
|
782
|
+
}, {
|
|
783
|
+
key: "start",
|
|
784
|
+
value: function start() {
|
|
785
|
+
if (!this._ar) {
|
|
786
|
+
throw new Error("RawAR.start() - cannot proceed as AR instance is null");
|
|
787
|
+
} // this was initialised via the init() function
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
this._ar.start();
|
|
791
|
+
}
|
|
792
|
+
}, {
|
|
793
|
+
key: "canQuicklook",
|
|
794
|
+
value: function canQuicklook() {
|
|
795
|
+
return this._ar && this._ar.nodeType === "Quick Look" ? true : false;
|
|
796
|
+
}
|
|
797
|
+
}, {
|
|
798
|
+
key: "canRealityViewer",
|
|
799
|
+
value: function canRealityViewer() {
|
|
800
|
+
return this._ar && this._ar.nodeType === "Reality Viewer" ? true : false;
|
|
801
|
+
}
|
|
802
|
+
}, {
|
|
803
|
+
key: "canSceneViewer",
|
|
804
|
+
value: function canSceneViewer() {
|
|
805
|
+
return this._ar && this._ar.nodeType === "Scene Viewer" ? true : false;
|
|
806
|
+
}
|
|
807
|
+
}]);
|
|
808
|
+
|
|
809
|
+
return RawAR;
|
|
810
|
+
}(launcher_ar_1.LauncherAR);
|
|
811
|
+
|
|
812
|
+
exports.RawAR = RawAR;
|
|
813
|
+
}, {
|
|
814
|
+
"../util/util": 9,
|
|
815
|
+
"../viewers/quicklook-viewer": 12,
|
|
816
|
+
"../viewers/reality-viewer": 13,
|
|
817
|
+
"../viewers/scene-viewer": 14,
|
|
818
|
+
"./launcher-ar": 2
|
|
819
|
+
}],
|
|
820
|
+
6: [function (require, module, exports) {
|
|
821
|
+
"use strict";
|
|
822
|
+
|
|
645
823
|
Object.defineProperty(exports, "__esModule", {
|
|
646
824
|
value: true
|
|
647
825
|
});
|
|
@@ -653,15 +831,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
653
831
|
*/
|
|
654
832
|
|
|
655
833
|
|
|
656
|
-
var SceneAR = /*#__PURE__*/function (_launcher_ar_1$
|
|
657
|
-
_inherits(SceneAR, _launcher_ar_1$
|
|
834
|
+
var SceneAR = /*#__PURE__*/function (_launcher_ar_1$Launch5) {
|
|
835
|
+
_inherits(SceneAR, _launcher_ar_1$Launch5);
|
|
658
836
|
|
|
659
|
-
var
|
|
837
|
+
var _super5 = _createSuper(SceneAR);
|
|
660
838
|
|
|
661
839
|
function SceneAR() {
|
|
662
840
|
_classCallCheck(this, SceneAR);
|
|
663
841
|
|
|
664
|
-
return
|
|
842
|
+
return _super5.apply(this, arguments);
|
|
665
843
|
}
|
|
666
844
|
|
|
667
845
|
_createClass(SceneAR, [{
|
|
@@ -688,7 +866,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
688
866
|
}, {
|
|
689
867
|
"./launcher-ar": 2
|
|
690
868
|
}],
|
|
691
|
-
|
|
869
|
+
7: [function (require, module, exports) {
|
|
692
870
|
"use strict";
|
|
693
871
|
|
|
694
872
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -698,6 +876,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
698
876
|
var plattar_api_1 = require("@plattar/plattar-api");
|
|
699
877
|
|
|
700
878
|
var product_ar_1 = require("../ar/product-ar");
|
|
879
|
+
/**
|
|
880
|
+
* This tracks the current state of the Embed
|
|
881
|
+
*/
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
var EmbedState;
|
|
885
|
+
|
|
886
|
+
(function (EmbedState) {
|
|
887
|
+
EmbedState[EmbedState["None"] = 0] = "None";
|
|
888
|
+
EmbedState[EmbedState["SceneViewer"] = 1] = "SceneViewer";
|
|
889
|
+
EmbedState[EmbedState["ProductViewer"] = 2] = "ProductViewer";
|
|
890
|
+
EmbedState[EmbedState["ProductAR"] = 3] = "ProductAR";
|
|
891
|
+
EmbedState[EmbedState["QRCode"] = 4] = "QRCode";
|
|
892
|
+
})(EmbedState || (EmbedState = {}));
|
|
701
893
|
/**
|
|
702
894
|
* This is the primary <plattar-embed /> node that allows easy embedding
|
|
703
895
|
* of Plattar related content
|
|
@@ -707,23 +899,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
707
899
|
var PlattarEmbed = /*#__PURE__*/function (_HTMLElement) {
|
|
708
900
|
_inherits(PlattarEmbed, _HTMLElement);
|
|
709
901
|
|
|
710
|
-
var
|
|
902
|
+
var _super6 = _createSuper(PlattarEmbed);
|
|
711
903
|
|
|
712
904
|
function PlattarEmbed() {
|
|
713
|
-
var
|
|
905
|
+
var _this10;
|
|
714
906
|
|
|
715
907
|
_classCallCheck(this, PlattarEmbed);
|
|
716
908
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
909
|
+
_this10 = _super6.call(this); // this is the current state of the embed, none by default
|
|
910
|
+
|
|
911
|
+
_this10._currentState = EmbedState.None;
|
|
912
|
+
_this10._qrCodeOptions = {
|
|
913
|
+
color: "#101721",
|
|
914
|
+
qrType: "default",
|
|
915
|
+
margin: 0
|
|
916
|
+
};
|
|
917
|
+
_this10._sceneID = null;
|
|
918
|
+
_this10._productID = null;
|
|
919
|
+
_this10._variationID = null;
|
|
920
|
+
_this10._isReady = false;
|
|
921
|
+
_this10._width = "500px";
|
|
922
|
+
_this10._height = "500px";
|
|
923
|
+
_this10._server = "production";
|
|
924
|
+
_this10._viewer = null;
|
|
925
|
+
return _this10;
|
|
727
926
|
}
|
|
728
927
|
|
|
729
928
|
_createClass(PlattarEmbed, [{
|
|
@@ -734,8 +933,41 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
734
933
|
}, {
|
|
735
934
|
key: "connectedCallback",
|
|
736
935
|
value: function connectedCallback() {
|
|
737
|
-
var
|
|
936
|
+
var _this11 = this;
|
|
937
|
+
|
|
938
|
+
var observer = new MutationObserver(function (mutations) {
|
|
939
|
+
mutations.forEach(function (mutation) {
|
|
940
|
+
if (mutation.type === "attributes") {
|
|
941
|
+
var sceneID = _this11.hasAttribute("scene-id") ? _this11.getAttribute("scene-id") : null;
|
|
942
|
+
var productID = _this11.hasAttribute("product-id") ? _this11.getAttribute("product-id") : null;
|
|
943
|
+
var variationID = _this11.hasAttribute("variation-id") ? _this11.getAttribute("variation-id") : null;
|
|
944
|
+
var updated = false;
|
|
945
|
+
|
|
946
|
+
if (sceneID !== _this11._sceneID) {
|
|
947
|
+
_this11._sceneID = sceneID;
|
|
948
|
+
updated = true;
|
|
949
|
+
}
|
|
738
950
|
|
|
951
|
+
if (productID !== _this11._productID) {
|
|
952
|
+
_this11._productID = productID;
|
|
953
|
+
updated = true;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
if (variationID !== _this11._variationID) {
|
|
957
|
+
_this11._variationID = variationID;
|
|
958
|
+
updated = true;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
if (updated) {
|
|
962
|
+
// re-render based on internal state
|
|
963
|
+
_this11._OnAttributesUpdated();
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
});
|
|
968
|
+
observer.observe(this, {
|
|
969
|
+
attributes: true
|
|
970
|
+
});
|
|
739
971
|
var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
|
|
740
972
|
plattar_api_1.Server.create(plattar_api_1.Server.match(server || "production"));
|
|
741
973
|
|
|
@@ -769,33 +1001,42 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
769
1001
|
} else if (init === "ar-fallback-qrcode") {
|
|
770
1002
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
771
1003
|
})["catch"](function (_err) {
|
|
772
|
-
|
|
1004
|
+
_this11.startQRCode();
|
|
773
1005
|
});
|
|
774
1006
|
} else if (init === "ar-fallback-viewer") {
|
|
775
1007
|
this.startAR().then(function () {// nothing to do, launched successfully
|
|
776
1008
|
})["catch"](function (_err) {
|
|
777
|
-
|
|
1009
|
+
_this11.startViewer();
|
|
778
1010
|
});
|
|
779
1011
|
}
|
|
780
1012
|
}
|
|
781
1013
|
}, {
|
|
782
1014
|
key: "initAR",
|
|
783
1015
|
value: function initAR() {
|
|
784
|
-
var
|
|
1016
|
+
var _this12 = this;
|
|
785
1017
|
|
|
786
1018
|
return new Promise(function (accept, reject) {
|
|
787
|
-
if (!
|
|
1019
|
+
if (!_this12._isReady) {
|
|
788
1020
|
return reject(new Error("PlattarEmbed.initAR() - cannot execute as page has not loaded yet"));
|
|
789
1021
|
} // if scene is not set but product is, then use ProductAR
|
|
790
1022
|
|
|
791
1023
|
|
|
792
|
-
if (!
|
|
793
|
-
var product = new product_ar_1.ProductAR(
|
|
1024
|
+
if (!_this12._sceneID && _this12._productID) {
|
|
1025
|
+
var product = new product_ar_1.ProductAR(_this12._productID, _this12._variationID);
|
|
794
1026
|
return product.init().then(accept)["catch"](reject);
|
|
1027
|
+
} // If Product is set (under any scenario) then use ProductAR
|
|
1028
|
+
// NOTE: At some point this should check for Scenes when SceneAR
|
|
1029
|
+
// is implemented
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
if (_this12._productID) {
|
|
1033
|
+
var _product = new product_ar_1.ProductAR(_this12._productID, _this12._variationID);
|
|
1034
|
+
|
|
1035
|
+
return _product.init().then(accept)["catch"](reject);
|
|
795
1036
|
} // otherwise, scene was set so use SceneAR
|
|
796
1037
|
|
|
797
1038
|
|
|
798
|
-
if (
|
|
1039
|
+
if (_this12._sceneID) {
|
|
799
1040
|
return reject(new Error("PlattarEmbed.initAR() - scene-id not yet supported"));
|
|
800
1041
|
}
|
|
801
1042
|
|
|
@@ -805,14 +1046,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
805
1046
|
}, {
|
|
806
1047
|
key: "startAR",
|
|
807
1048
|
value: function startAR() {
|
|
808
|
-
var
|
|
1049
|
+
var _this13 = this;
|
|
809
1050
|
|
|
810
1051
|
return new Promise(function (accept, reject) {
|
|
811
|
-
if (!
|
|
1052
|
+
if (!_this13._isReady) {
|
|
812
1053
|
return reject(new Error("PlattarEmbed.startAR() - cannot execute as page has not loaded yet"));
|
|
813
1054
|
}
|
|
814
1055
|
|
|
815
|
-
|
|
1056
|
+
_this13.initAR().then(function (launcher) {
|
|
816
1057
|
launcher.start();
|
|
817
1058
|
accept();
|
|
818
1059
|
})["catch"](reject);
|
|
@@ -821,67 +1062,77 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
821
1062
|
}, {
|
|
822
1063
|
key: "startViewer",
|
|
823
1064
|
value: function startViewer() {
|
|
824
|
-
var
|
|
1065
|
+
var _this14 = this;
|
|
825
1066
|
|
|
826
1067
|
return new Promise(function (accept, reject) {
|
|
827
|
-
if (!
|
|
1068
|
+
if (!_this14._isReady) {
|
|
828
1069
|
return reject(new Error("PlattarEmbed.startViewer() - cannot execute as page has not loaded yet"));
|
|
829
1070
|
}
|
|
830
1071
|
|
|
831
|
-
if (
|
|
832
|
-
|
|
1072
|
+
if (_this14._viewer) {
|
|
1073
|
+
_this14._viewer.remove();
|
|
833
1074
|
|
|
834
|
-
|
|
1075
|
+
_this14._viewer = null;
|
|
835
1076
|
} // if scene is set, we use <plattar-viewer /> node from plattar-web
|
|
836
1077
|
|
|
837
1078
|
|
|
838
|
-
if (
|
|
1079
|
+
if (_this14._sceneID) {
|
|
839
1080
|
var viewer = document.createElement("plattar-viewer");
|
|
840
|
-
viewer.setAttribute("width",
|
|
841
|
-
viewer.setAttribute("height",
|
|
842
|
-
viewer.setAttribute("server",
|
|
843
|
-
viewer.setAttribute("scene-id",
|
|
1081
|
+
viewer.setAttribute("width", _this14._width);
|
|
1082
|
+
viewer.setAttribute("height", _this14._height);
|
|
1083
|
+
viewer.setAttribute("server", _this14._server);
|
|
1084
|
+
viewer.setAttribute("scene-id", _this14._sceneID);
|
|
1085
|
+
|
|
1086
|
+
if (_this14._productID) {
|
|
1087
|
+
viewer.setAttribute("product-id", _this14._productID);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
if (_this14._variationID) {
|
|
1091
|
+
viewer.setAttribute("variation-id", _this14._variationID);
|
|
1092
|
+
}
|
|
844
1093
|
|
|
845
1094
|
viewer.onload = function () {
|
|
846
1095
|
return accept(viewer);
|
|
847
1096
|
};
|
|
848
1097
|
|
|
849
|
-
var shadow =
|
|
1098
|
+
var shadow = _this14.shadowRoot || _this14.attachShadow({
|
|
850
1099
|
mode: 'open'
|
|
851
1100
|
});
|
|
852
1101
|
|
|
853
1102
|
shadow.append(viewer);
|
|
854
|
-
|
|
1103
|
+
_this14._viewer = viewer;
|
|
1104
|
+
_this14._currentState = EmbedState.SceneViewer;
|
|
855
1105
|
return;
|
|
856
1106
|
} // if product is set, we use <plattar-product /> node from plattar-web
|
|
857
1107
|
|
|
858
1108
|
|
|
859
|
-
if (
|
|
1109
|
+
if (_this14._productID) {
|
|
860
1110
|
var _viewer = document.createElement("plattar-product");
|
|
861
1111
|
|
|
862
|
-
_viewer.setAttribute("width",
|
|
1112
|
+
_viewer.setAttribute("width", _this14._width);
|
|
863
1113
|
|
|
864
|
-
_viewer.setAttribute("height",
|
|
1114
|
+
_viewer.setAttribute("height", _this14._height);
|
|
865
1115
|
|
|
866
|
-
_viewer.setAttribute("server",
|
|
1116
|
+
_viewer.setAttribute("server", _this14._server);
|
|
867
1117
|
|
|
868
|
-
_viewer.setAttribute("product-id",
|
|
1118
|
+
_viewer.setAttribute("product-id", _this14._productID);
|
|
869
1119
|
|
|
870
|
-
if (
|
|
871
|
-
_viewer.setAttribute("variation-id",
|
|
1120
|
+
if (_this14._variationID) {
|
|
1121
|
+
_viewer.setAttribute("variation-id", _this14._variationID);
|
|
872
1122
|
}
|
|
873
1123
|
|
|
874
1124
|
_viewer.onload = function () {
|
|
875
1125
|
return accept(_viewer);
|
|
876
1126
|
};
|
|
877
1127
|
|
|
878
|
-
var _shadow =
|
|
1128
|
+
var _shadow = _this14.shadowRoot || _this14.attachShadow({
|
|
879
1129
|
mode: 'open'
|
|
880
1130
|
});
|
|
881
1131
|
|
|
882
1132
|
_shadow.append(_viewer);
|
|
883
1133
|
|
|
884
|
-
|
|
1134
|
+
_this14._viewer = _viewer;
|
|
1135
|
+
_this14._currentState = EmbedState.ProductViewer;
|
|
885
1136
|
return;
|
|
886
1137
|
}
|
|
887
1138
|
|
|
@@ -891,31 +1142,29 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
891
1142
|
}, {
|
|
892
1143
|
key: "startQRCode",
|
|
893
1144
|
value: function startQRCode() {
|
|
894
|
-
var
|
|
1145
|
+
var _this15 = this;
|
|
895
1146
|
|
|
896
1147
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
897
1148
|
return new Promise(function (accept, reject) {
|
|
898
|
-
if (!
|
|
1149
|
+
if (!_this15._isReady) {
|
|
899
1150
|
return reject(new Error("PlattarEmbed.startQRCode() - cannot execute as page has not loaded yet"));
|
|
900
1151
|
}
|
|
901
1152
|
|
|
902
|
-
var opt = options ||
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
margin: 0
|
|
906
|
-
};
|
|
1153
|
+
var opt = options || _this15._qrCodeOptions; // reset instance for later use
|
|
1154
|
+
|
|
1155
|
+
_this15._qrCodeOptions = opt;
|
|
907
1156
|
|
|
908
|
-
if (
|
|
909
|
-
|
|
1157
|
+
if (_this15._viewer) {
|
|
1158
|
+
_this15._viewer.remove();
|
|
910
1159
|
|
|
911
|
-
|
|
1160
|
+
_this15._viewer = null;
|
|
912
1161
|
} // if scene is set, we embed a QR code that takes us to viewer.html
|
|
913
1162
|
|
|
914
1163
|
|
|
915
|
-
if (
|
|
1164
|
+
if (_this15._sceneID) {
|
|
916
1165
|
var viewer = document.createElement("plattar-qrcode");
|
|
917
|
-
viewer.setAttribute("width",
|
|
918
|
-
viewer.setAttribute("height",
|
|
1166
|
+
viewer.setAttribute("width", _this15._width);
|
|
1167
|
+
viewer.setAttribute("height", _this15._height);
|
|
919
1168
|
|
|
920
1169
|
if (opt.color) {
|
|
921
1170
|
viewer.setAttribute("color", opt.color);
|
|
@@ -929,7 +1178,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
929
1178
|
viewer.setAttribute("qr-type", opt.qrType);
|
|
930
1179
|
}
|
|
931
1180
|
|
|
932
|
-
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" +
|
|
1181
|
+
var dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + _this15._sceneID;
|
|
1182
|
+
|
|
1183
|
+
if (_this15._productID) {
|
|
1184
|
+
dst += "&productId=" + _this15._productID;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
if (_this15._variationID) {
|
|
1188
|
+
dst += "&variationId=" + _this15._variationID;
|
|
1189
|
+
}
|
|
933
1190
|
|
|
934
1191
|
viewer.setAttribute("url", dst);
|
|
935
1192
|
|
|
@@ -937,22 +1194,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
937
1194
|
return accept(viewer);
|
|
938
1195
|
};
|
|
939
1196
|
|
|
940
|
-
var shadow =
|
|
1197
|
+
var shadow = _this15.shadowRoot || _this15.attachShadow({
|
|
941
1198
|
mode: 'open'
|
|
942
1199
|
});
|
|
943
1200
|
|
|
944
1201
|
shadow.append(viewer);
|
|
945
|
-
|
|
1202
|
+
_this15._viewer = viewer;
|
|
1203
|
+
_this15._currentState = EmbedState.QRCode;
|
|
946
1204
|
return;
|
|
947
1205
|
} // if product is set, we embed a QR code that takes us to product.html
|
|
948
1206
|
|
|
949
1207
|
|
|
950
|
-
if (
|
|
1208
|
+
if (_this15._productID) {
|
|
951
1209
|
var _viewer2 = document.createElement("plattar-qrcode");
|
|
952
1210
|
|
|
953
|
-
_viewer2.setAttribute("width",
|
|
1211
|
+
_viewer2.setAttribute("width", _this15._width);
|
|
954
1212
|
|
|
955
|
-
_viewer2.setAttribute("height",
|
|
1213
|
+
_viewer2.setAttribute("height", _this15._height);
|
|
956
1214
|
|
|
957
1215
|
if (opt.color) {
|
|
958
1216
|
_viewer2.setAttribute("color", opt.color);
|
|
@@ -966,10 +1224,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
966
1224
|
_viewer2.setAttribute("qr-type", opt.qrType);
|
|
967
1225
|
}
|
|
968
1226
|
|
|
969
|
-
var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" +
|
|
1227
|
+
var _dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + _this15._productID;
|
|
970
1228
|
|
|
971
|
-
if (
|
|
972
|
-
_dst += "&variation_id=" +
|
|
1229
|
+
if (_this15._variationID) {
|
|
1230
|
+
_dst += "&variation_id=" + _this15._variationID;
|
|
973
1231
|
}
|
|
974
1232
|
|
|
975
1233
|
_viewer2.setAttribute("url", _dst);
|
|
@@ -978,19 +1236,60 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
978
1236
|
return accept(_viewer2);
|
|
979
1237
|
};
|
|
980
1238
|
|
|
981
|
-
var _shadow2 =
|
|
1239
|
+
var _shadow2 = _this15.shadowRoot || _this15.attachShadow({
|
|
982
1240
|
mode: 'open'
|
|
983
1241
|
});
|
|
984
1242
|
|
|
985
1243
|
_shadow2.append(_viewer2);
|
|
986
1244
|
|
|
987
|
-
|
|
1245
|
+
_this15._viewer = _viewer2;
|
|
1246
|
+
_this15._currentState = EmbedState.QRCode;
|
|
988
1247
|
return;
|
|
989
1248
|
}
|
|
990
1249
|
|
|
991
1250
|
return reject(new Error("PlattarEmbed.startQRCode() - minimum required attributes not set, use scene-id or product-id as a minimum"));
|
|
992
1251
|
});
|
|
993
1252
|
}
|
|
1253
|
+
/**
|
|
1254
|
+
* This is called by the observer if any of the embed attributes have changed
|
|
1255
|
+
* based on the state of the embed, we update the internal structure accordingly
|
|
1256
|
+
*/
|
|
1257
|
+
|
|
1258
|
+
}, {
|
|
1259
|
+
key: "_OnAttributesUpdated",
|
|
1260
|
+
value: function _OnAttributesUpdated() {
|
|
1261
|
+
// nothing to update in these scenarios
|
|
1262
|
+
if (this._currentState === EmbedState.None || this._currentState === EmbedState.ProductAR) {
|
|
1263
|
+
return;
|
|
1264
|
+
} // re-render the QR Code when attributes have changed
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
if (this._currentState === EmbedState.QRCode) {
|
|
1268
|
+
this.startQRCode(this._qrCodeOptions);
|
|
1269
|
+
return;
|
|
1270
|
+
} // use the messenger function to change variation when attributes have changed
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
if (this._currentState === EmbedState.SceneViewer) {
|
|
1274
|
+
var viewer = this.viewer;
|
|
1275
|
+
|
|
1276
|
+
if (viewer) {
|
|
1277
|
+
viewer.messenger.selectVariation(this._productID, this._variationID);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
return;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
if (this._currentState === EmbedState.ProductViewer) {
|
|
1284
|
+
var _viewer3 = this.viewer;
|
|
1285
|
+
|
|
1286
|
+
if (_viewer3) {
|
|
1287
|
+
_viewer3.messenger.selectVariation(this._variationID);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
return;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
994
1293
|
}]);
|
|
995
1294
|
|
|
996
1295
|
return PlattarEmbed;
|
|
@@ -999,9 +1298,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
999
1298
|
exports["default"] = PlattarEmbed;
|
|
1000
1299
|
}, {
|
|
1001
1300
|
"../ar/product-ar": 4,
|
|
1002
|
-
"@plattar/plattar-api":
|
|
1301
|
+
"@plattar/plattar-api": 36
|
|
1003
1302
|
}],
|
|
1004
|
-
|
|
1303
|
+
8: [function (require, module, exports) {
|
|
1005
1304
|
"use strict";
|
|
1006
1305
|
|
|
1007
1306
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -1047,7 +1346,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1047
1346
|
Object.defineProperty(exports, "__esModule", {
|
|
1048
1347
|
value: true
|
|
1049
1348
|
});
|
|
1050
|
-
exports.Util = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
1349
|
+
exports.Util = exports.RawAR = exports.ModelAR = exports.SceneAR = exports.ProductAR = exports.ConfiguratorAR = exports.version = exports.PlattarQRCode = exports.PlattarWeb = void 0;
|
|
1051
1350
|
exports.PlattarWeb = __importStar(require("@plattar/plattar-web"));
|
|
1052
1351
|
exports.PlattarQRCode = __importStar(require("@plattar/plattar-qrcode"));
|
|
1053
1352
|
exports.version = __importStar(require("./version"));
|
|
@@ -1088,6 +1387,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1088
1387
|
}
|
|
1089
1388
|
});
|
|
1090
1389
|
|
|
1390
|
+
var raw_ar_1 = require("./ar/raw-ar");
|
|
1391
|
+
|
|
1392
|
+
Object.defineProperty(exports, "RawAR", {
|
|
1393
|
+
enumerable: true,
|
|
1394
|
+
get: function get() {
|
|
1395
|
+
return raw_ar_1.RawAR;
|
|
1396
|
+
}
|
|
1397
|
+
});
|
|
1398
|
+
|
|
1091
1399
|
var util_1 = require("./util/util");
|
|
1092
1400
|
|
|
1093
1401
|
Object.defineProperty(exports, "Util", {
|
|
@@ -1102,7 +1410,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1102
1410
|
var version_1 = __importDefault(require("./version"));
|
|
1103
1411
|
|
|
1104
1412
|
if (customElements) {
|
|
1105
|
-
customElements.
|
|
1413
|
+
if (customElements.get("plattar-embed") === undefined) {
|
|
1414
|
+
customElements.define("plattar-embed", plattar_embed_1["default"]);
|
|
1415
|
+
}
|
|
1106
1416
|
}
|
|
1107
1417
|
|
|
1108
1418
|
console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
|
|
@@ -1110,14 +1420,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1110
1420
|
"./ar/configurator-ar": 1,
|
|
1111
1421
|
"./ar/model-ar": 3,
|
|
1112
1422
|
"./ar/product-ar": 4,
|
|
1113
|
-
"./ar/
|
|
1114
|
-
"./
|
|
1115
|
-
"./
|
|
1116
|
-
"./
|
|
1117
|
-
"
|
|
1118
|
-
"@plattar/plattar-
|
|
1423
|
+
"./ar/raw-ar": 5,
|
|
1424
|
+
"./ar/scene-ar": 6,
|
|
1425
|
+
"./embed/plattar-embed": 7,
|
|
1426
|
+
"./util/util": 9,
|
|
1427
|
+
"./version": 10,
|
|
1428
|
+
"@plattar/plattar-qrcode": 102,
|
|
1429
|
+
"@plattar/plattar-web": 116
|
|
1119
1430
|
}],
|
|
1120
|
-
|
|
1431
|
+
9: [function (require, module, exports) {
|
|
1121
1432
|
"use strict";
|
|
1122
1433
|
|
|
1123
1434
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -1241,31 +1552,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1241
1552
|
|
|
1242
1553
|
exports.Util = Util;
|
|
1243
1554
|
}, {}],
|
|
1244
|
-
|
|
1555
|
+
10: [function (require, module, exports) {
|
|
1245
1556
|
"use strict";
|
|
1246
1557
|
|
|
1247
1558
|
Object.defineProperty(exports, "__esModule", {
|
|
1248
1559
|
value: true
|
|
1249
1560
|
});
|
|
1250
|
-
exports["default"] = "1.
|
|
1561
|
+
exports["default"] = "1.122.3";
|
|
1251
1562
|
}, {}],
|
|
1252
|
-
|
|
1563
|
+
11: [function (require, module, exports) {
|
|
1253
1564
|
"use strict";
|
|
1254
1565
|
|
|
1255
1566
|
Object.defineProperty(exports, "__esModule", {
|
|
1256
1567
|
value: true
|
|
1257
1568
|
});
|
|
1258
1569
|
|
|
1259
|
-
var ARViewer = function ARViewer() {
|
|
1570
|
+
var ARViewer = /*#__PURE__*/_createClass(function ARViewer() {
|
|
1260
1571
|
_classCallCheck(this, ARViewer);
|
|
1261
1572
|
|
|
1262
1573
|
this.modelUrl = null;
|
|
1263
1574
|
this.modelUrl = null;
|
|
1264
|
-
};
|
|
1575
|
+
});
|
|
1265
1576
|
|
|
1266
1577
|
exports["default"] = ARViewer;
|
|
1267
1578
|
}, {}],
|
|
1268
|
-
|
|
1579
|
+
12: [function (require, module, exports) {
|
|
1269
1580
|
"use strict";
|
|
1270
1581
|
|
|
1271
1582
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1283,20 +1594,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1283
1594
|
var QuicklookViewer = /*#__PURE__*/function (_ar_viewer_1$default) {
|
|
1284
1595
|
_inherits(QuicklookViewer, _ar_viewer_1$default);
|
|
1285
1596
|
|
|
1286
|
-
var
|
|
1597
|
+
var _super7 = _createSuper(QuicklookViewer);
|
|
1287
1598
|
|
|
1288
1599
|
function QuicklookViewer() {
|
|
1289
|
-
var
|
|
1600
|
+
var _this16;
|
|
1290
1601
|
|
|
1291
1602
|
_classCallCheck(this, QuicklookViewer);
|
|
1292
1603
|
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1604
|
+
_this16 = _super7.call(this);
|
|
1605
|
+
_this16.araction = null;
|
|
1606
|
+
_this16.titleHTML = "&checkoutTitle=" + document.title + "&checkoutSubtitle=" + document.title;
|
|
1296
1607
|
|
|
1297
|
-
|
|
1608
|
+
_this16.arcallback = function () {};
|
|
1298
1609
|
|
|
1299
|
-
return
|
|
1610
|
+
return _this16;
|
|
1300
1611
|
}
|
|
1301
1612
|
|
|
1302
1613
|
_createClass(QuicklookViewer, [{
|
|
@@ -1312,7 +1623,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1312
1623
|
}, {
|
|
1313
1624
|
key: "start",
|
|
1314
1625
|
value: function start() {
|
|
1315
|
-
var
|
|
1626
|
+
var _this17 = this;
|
|
1316
1627
|
|
|
1317
1628
|
if (!this.modelUrl) {
|
|
1318
1629
|
throw new Error("QuicklookViewer.start() - model url not set, use QuicklookViewer.modelUrl");
|
|
@@ -1327,7 +1638,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1327
1638
|
if (araction) {
|
|
1328
1639
|
var handleQuicklook = function handleQuicklook(event) {
|
|
1329
1640
|
if (event.data === "_apple_ar_quicklook_button_tapped") {
|
|
1330
|
-
|
|
1641
|
+
_this17.arcallback();
|
|
1331
1642
|
}
|
|
1332
1643
|
|
|
1333
1644
|
document.body.removeChild(anchor);
|
|
@@ -1353,9 +1664,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1353
1664
|
|
|
1354
1665
|
exports["default"] = QuicklookViewer;
|
|
1355
1666
|
}, {
|
|
1356
|
-
"./ar-viewer":
|
|
1667
|
+
"./ar-viewer": 11
|
|
1357
1668
|
}],
|
|
1358
|
-
|
|
1669
|
+
13: [function (require, module, exports) {
|
|
1359
1670
|
"use strict";
|
|
1360
1671
|
|
|
1361
1672
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1373,12 +1684,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1373
1684
|
var RealityViewer = /*#__PURE__*/function (_ar_viewer_1$default2) {
|
|
1374
1685
|
_inherits(RealityViewer, _ar_viewer_1$default2);
|
|
1375
1686
|
|
|
1376
|
-
var
|
|
1687
|
+
var _super8 = _createSuper(RealityViewer);
|
|
1377
1688
|
|
|
1378
1689
|
function RealityViewer() {
|
|
1379
1690
|
_classCallCheck(this, RealityViewer);
|
|
1380
1691
|
|
|
1381
|
-
return
|
|
1692
|
+
return _super8.call(this);
|
|
1382
1693
|
}
|
|
1383
1694
|
|
|
1384
1695
|
_createClass(RealityViewer, [{
|
|
@@ -1411,9 +1722,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1411
1722
|
|
|
1412
1723
|
exports["default"] = RealityViewer;
|
|
1413
1724
|
}, {
|
|
1414
|
-
"./ar-viewer":
|
|
1725
|
+
"./ar-viewer": 11
|
|
1415
1726
|
}],
|
|
1416
|
-
|
|
1727
|
+
14: [function (require, module, exports) {
|
|
1417
1728
|
"use strict";
|
|
1418
1729
|
|
|
1419
1730
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -1431,19 +1742,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1431
1742
|
var SceneViewer = /*#__PURE__*/function (_ar_viewer_1$default3) {
|
|
1432
1743
|
_inherits(SceneViewer, _ar_viewer_1$default3);
|
|
1433
1744
|
|
|
1434
|
-
var
|
|
1745
|
+
var _super9 = _createSuper(SceneViewer);
|
|
1435
1746
|
|
|
1436
1747
|
function SceneViewer() {
|
|
1437
|
-
var
|
|
1748
|
+
var _this18;
|
|
1438
1749
|
|
|
1439
1750
|
_classCallCheck(this, SceneViewer);
|
|
1440
1751
|
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
return
|
|
1752
|
+
_this18 = _super9.call(this);
|
|
1753
|
+
_this18.araction = null;
|
|
1754
|
+
_this18.isVertical = false;
|
|
1755
|
+
_this18.titleHTML = "<b>" + document.title;
|
|
1756
|
+
_this18.isVertical = false;
|
|
1757
|
+
return _this18;
|
|
1447
1758
|
}
|
|
1448
1759
|
|
|
1449
1760
|
_createClass(SceneViewer, [{
|
|
@@ -1500,9 +1811,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1500
1811
|
|
|
1501
1812
|
exports["default"] = SceneViewer;
|
|
1502
1813
|
}, {
|
|
1503
|
-
"./ar-viewer":
|
|
1814
|
+
"./ar-viewer": 11
|
|
1504
1815
|
}],
|
|
1505
|
-
|
|
1816
|
+
15: [function (require, module, exports) {
|
|
1506
1817
|
"use strict";
|
|
1507
1818
|
|
|
1508
1819
|
var Messenger = require("./messenger/messenger.js");
|
|
@@ -1538,12 +1849,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1538
1849
|
version: Version
|
|
1539
1850
|
};
|
|
1540
1851
|
}, {
|
|
1541
|
-
"./memory/memory.js":
|
|
1542
|
-
"./messenger/global-event-handler.js":
|
|
1543
|
-
"./messenger/messenger.js":
|
|
1544
|
-
"./version":
|
|
1852
|
+
"./memory/memory.js": 16,
|
|
1853
|
+
"./messenger/global-event-handler.js": 23,
|
|
1854
|
+
"./messenger/messenger.js": 24,
|
|
1855
|
+
"./version": 29
|
|
1545
1856
|
}],
|
|
1546
|
-
|
|
1857
|
+
16: [function (require, module, exports) {
|
|
1547
1858
|
var PermanentMemory = require("./permanent-memory");
|
|
1548
1859
|
|
|
1549
1860
|
var TemporaryMemory = require("./temporary-memory");
|
|
@@ -1555,7 +1866,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1555
1866
|
|
|
1556
1867
|
var Memory = /*#__PURE__*/function () {
|
|
1557
1868
|
function Memory(messengerInstance) {
|
|
1558
|
-
var
|
|
1869
|
+
var _this19 = this;
|
|
1559
1870
|
|
|
1560
1871
|
_classCallCheck(this, Memory);
|
|
1561
1872
|
|
|
@@ -1564,11 +1875,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1564
1875
|
this._permMemory = new PermanentMemory(messengerInstance);
|
|
1565
1876
|
|
|
1566
1877
|
this._messenger.self.__memory__set_temp_var = function (name, data) {
|
|
1567
|
-
|
|
1878
|
+
_this19._tempMemory[name] = data;
|
|
1568
1879
|
};
|
|
1569
1880
|
|
|
1570
1881
|
this._messenger.self.__memory__set_perm_var = function (name, data) {
|
|
1571
|
-
|
|
1882
|
+
_this19._permMemory[name] = data;
|
|
1572
1883
|
};
|
|
1573
1884
|
}
|
|
1574
1885
|
|
|
@@ -1589,13 +1900,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1589
1900
|
|
|
1590
1901
|
module.exports = Memory;
|
|
1591
1902
|
}, {
|
|
1592
|
-
"./permanent-memory":
|
|
1593
|
-
"./temporary-memory":
|
|
1903
|
+
"./permanent-memory": 17,
|
|
1904
|
+
"./temporary-memory": 18
|
|
1594
1905
|
}],
|
|
1595
|
-
|
|
1906
|
+
17: [function (require, module, exports) {
|
|
1596
1907
|
var WrappedValue = require("./wrapped-value");
|
|
1597
1908
|
|
|
1598
|
-
var PermanentMemory = function PermanentMemory(messengerInstance) {
|
|
1909
|
+
var PermanentMemory = /*#__PURE__*/_createClass(function PermanentMemory(messengerInstance) {
|
|
1599
1910
|
_classCallCheck(this, PermanentMemory);
|
|
1600
1911
|
|
|
1601
1912
|
return new Proxy(this, {
|
|
@@ -1686,16 +1997,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1686
1997
|
return true;
|
|
1687
1998
|
}
|
|
1688
1999
|
});
|
|
1689
|
-
};
|
|
2000
|
+
});
|
|
1690
2001
|
|
|
1691
2002
|
module.exports = PermanentMemory;
|
|
1692
2003
|
}, {
|
|
1693
|
-
"./wrapped-value":
|
|
2004
|
+
"./wrapped-value": 19
|
|
1694
2005
|
}],
|
|
1695
|
-
|
|
2006
|
+
18: [function (require, module, exports) {
|
|
1696
2007
|
var WrappedValue = require("./wrapped-value");
|
|
1697
2008
|
|
|
1698
|
-
var TemporaryMemory = function TemporaryMemory(messengerInstance) {
|
|
2009
|
+
var TemporaryMemory = /*#__PURE__*/_createClass(function TemporaryMemory(messengerInstance) {
|
|
1699
2010
|
_classCallCheck(this, TemporaryMemory);
|
|
1700
2011
|
|
|
1701
2012
|
return new Proxy(this, {
|
|
@@ -1765,13 +2076,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1765
2076
|
return true;
|
|
1766
2077
|
}
|
|
1767
2078
|
});
|
|
1768
|
-
};
|
|
2079
|
+
});
|
|
1769
2080
|
|
|
1770
2081
|
module.exports = TemporaryMemory;
|
|
1771
2082
|
}, {
|
|
1772
|
-
"./wrapped-value":
|
|
2083
|
+
"./wrapped-value": 19
|
|
1773
2084
|
}],
|
|
1774
|
-
|
|
2085
|
+
19: [function (require, module, exports) {
|
|
1775
2086
|
/**
|
|
1776
2087
|
* WrappedValue represents a generic value type with a callback function
|
|
1777
2088
|
* for when the value has changed
|
|
@@ -1889,7 +2200,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1889
2200
|
|
|
1890
2201
|
module.exports = WrappedValue;
|
|
1891
2202
|
}, {}],
|
|
1892
|
-
|
|
2203
|
+
20: [function (require, module, exports) {
|
|
1893
2204
|
/**
|
|
1894
2205
|
* Broadcaster is used to call functions in multiple contexts at the
|
|
1895
2206
|
* same time. This can be useful without having to handle complex logic
|
|
@@ -1956,10 +2267,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
1956
2267
|
|
|
1957
2268
|
module.exports = Broadcaster;
|
|
1958
2269
|
}, {}],
|
|
1959
|
-
|
|
2270
|
+
21: [function (require, module, exports) {
|
|
1960
2271
|
var WrappedFunction = require("./wrapped-local-function");
|
|
1961
2272
|
|
|
1962
|
-
var CurrentFunctionList = function CurrentFunctionList() {
|
|
2273
|
+
var CurrentFunctionList = /*#__PURE__*/_createClass(function CurrentFunctionList() {
|
|
1963
2274
|
_classCallCheck(this, CurrentFunctionList);
|
|
1964
2275
|
|
|
1965
2276
|
return new Proxy(this, {
|
|
@@ -2015,13 +2326,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2015
2326
|
return true;
|
|
2016
2327
|
}
|
|
2017
2328
|
});
|
|
2018
|
-
};
|
|
2329
|
+
});
|
|
2019
2330
|
|
|
2020
2331
|
module.exports = CurrentFunctionList;
|
|
2021
2332
|
}, {
|
|
2022
|
-
"./wrapped-local-function":
|
|
2333
|
+
"./wrapped-local-function": 22
|
|
2023
2334
|
}],
|
|
2024
|
-
|
|
2335
|
+
22: [function (require, module, exports) {
|
|
2025
2336
|
var Util = require("../util/util.js");
|
|
2026
2337
|
/**
|
|
2027
2338
|
* WrappedLocalFunction represents a container that holds and maintains a specific function
|
|
@@ -2066,20 +2377,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2066
2377
|
}, {
|
|
2067
2378
|
key: "exec",
|
|
2068
2379
|
value: function exec() {
|
|
2069
|
-
var
|
|
2380
|
+
var _this20 = this;
|
|
2070
2381
|
|
|
2071
2382
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
2072
2383
|
args[_key3] = arguments[_key3];
|
|
2073
2384
|
}
|
|
2074
2385
|
|
|
2075
2386
|
return new Promise(function (accept, reject) {
|
|
2076
|
-
if (!
|
|
2077
|
-
return reject(new Error("WrappedLocalFunction.exec() function with name " +
|
|
2387
|
+
if (!_this20._value) {
|
|
2388
|
+
return reject(new Error("WrappedLocalFunction.exec() function with name " + _this20._funcName + "() is not defined"));
|
|
2078
2389
|
}
|
|
2079
2390
|
|
|
2080
2391
|
try {
|
|
2081
2392
|
// otherwise execute the function
|
|
2082
|
-
var rObject =
|
|
2393
|
+
var rObject = _this20._execute.apply(_this20, args); // we need to check if the returned object is a Promise, if so, handle it
|
|
2083
2394
|
// differently. This can happen if the function wants to execute asyn
|
|
2084
2395
|
|
|
2085
2396
|
|
|
@@ -2131,9 +2442,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2131
2442
|
|
|
2132
2443
|
module.exports = WrappedLocalFunction;
|
|
2133
2444
|
}, {
|
|
2134
|
-
"../util/util.js":
|
|
2445
|
+
"../util/util.js": 28
|
|
2135
2446
|
}],
|
|
2136
|
-
|
|
2447
|
+
23: [function (require, module, exports) {
|
|
2137
2448
|
var RemoteInterface = require("./remote-interface.js");
|
|
2138
2449
|
/**
|
|
2139
2450
|
* This is a singleton class that handles events on a global basis. Allows
|
|
@@ -2143,7 +2454,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2143
2454
|
|
|
2144
2455
|
var GlobalEventHandler = /*#__PURE__*/function () {
|
|
2145
2456
|
function GlobalEventHandler() {
|
|
2146
|
-
var
|
|
2457
|
+
var _this21 = this;
|
|
2147
2458
|
|
|
2148
2459
|
_classCallCheck(this, GlobalEventHandler);
|
|
2149
2460
|
|
|
@@ -2165,10 +2476,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2165
2476
|
|
|
2166
2477
|
if (jsonData && jsonData.event && jsonData.data) {
|
|
2167
2478
|
// see if there are any listeners for this
|
|
2168
|
-
if (
|
|
2479
|
+
if (_this21._eventListeners[jsonData.event]) {
|
|
2169
2480
|
var remoteInterface = new RemoteInterface(evt.source, evt.origin); // loop through and call all the event handlers
|
|
2170
2481
|
|
|
2171
|
-
|
|
2482
|
+
_this21._eventListeners[jsonData.event].forEach(function (callback) {
|
|
2172
2483
|
try {
|
|
2173
2484
|
callback(remoteInterface, jsonData.data);
|
|
2174
2485
|
} catch (e) {
|
|
@@ -2225,9 +2536,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2225
2536
|
|
|
2226
2537
|
module.exports = GlobalEventHandler;
|
|
2227
2538
|
}, {
|
|
2228
|
-
"./remote-interface.js":
|
|
2539
|
+
"./remote-interface.js": 25
|
|
2229
2540
|
}],
|
|
2230
|
-
|
|
2541
|
+
24: [function (require, module, exports) {
|
|
2231
2542
|
var CurrentFunctionList = require("./current/current-function-list");
|
|
2232
2543
|
|
|
2233
2544
|
var RemoteInterface = require("./remote-interface");
|
|
@@ -2364,40 +2675,40 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2364
2675
|
}, {
|
|
2365
2676
|
key: "_registerListeners",
|
|
2366
2677
|
value: function _registerListeners() {
|
|
2367
|
-
var
|
|
2678
|
+
var _this22 = this;
|
|
2368
2679
|
|
|
2369
2680
|
GlobalEventHandler.instance().listen("__messenger__child_init", function (src, data) {
|
|
2370
2681
|
var iframeID = src.id; // check reserved key list
|
|
2371
2682
|
|
|
2372
2683
|
switch (iframeID) {
|
|
2373
2684
|
case undefined:
|
|
2374
|
-
throw new Error("Messenger[" +
|
|
2685
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID cannot be undefined");
|
|
2375
2686
|
|
|
2376
2687
|
case "self":
|
|
2377
|
-
throw new Error("Messenger[" +
|
|
2688
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
2378
2689
|
|
|
2379
2690
|
case "parent":
|
|
2380
|
-
throw new Error("Messenger[" +
|
|
2691
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
2381
2692
|
|
|
2382
2693
|
case "id":
|
|
2383
|
-
throw new Error("Messenger[" +
|
|
2694
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
2384
2695
|
|
|
2385
2696
|
case "onload":
|
|
2386
|
-
throw new Error("Messenger[" +
|
|
2697
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
2387
2698
|
|
|
2388
2699
|
default:
|
|
2389
2700
|
break;
|
|
2390
2701
|
} // initialise the child iframe as a messenger pipe
|
|
2391
2702
|
|
|
2392
2703
|
|
|
2393
|
-
|
|
2704
|
+
_this22[iframeID] = new RemoteFunctionList(iframeID);
|
|
2394
2705
|
|
|
2395
|
-
|
|
2706
|
+
_this22[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
2396
2707
|
|
|
2397
2708
|
|
|
2398
|
-
|
|
2709
|
+
_this22._broadcaster._push(iframeID);
|
|
2399
2710
|
|
|
2400
|
-
var callbacks =
|
|
2711
|
+
var callbacks = _this22._callbacks; // we have registered callbacks, begin execution
|
|
2401
2712
|
|
|
2402
2713
|
if (callbacks.has(iframeID)) {
|
|
2403
2714
|
var array = callbacks.get(iframeID);
|
|
@@ -2421,33 +2732,33 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2421
2732
|
|
|
2422
2733
|
switch (iframeID) {
|
|
2423
2734
|
case undefined:
|
|
2424
|
-
throw new Error("Messenger[" +
|
|
2735
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID cannot be undefined");
|
|
2425
2736
|
|
|
2426
2737
|
case "self":
|
|
2427
|
-
throw new Error("Messenger[" +
|
|
2738
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"self\" cannot be used as the keyword is reserved");
|
|
2428
2739
|
|
|
2429
2740
|
case "parent":
|
|
2430
|
-
throw new Error("Messenger[" +
|
|
2741
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"parent\" cannot be used as the keyword is reserved");
|
|
2431
2742
|
|
|
2432
2743
|
case "id":
|
|
2433
|
-
throw new Error("Messenger[" +
|
|
2744
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"id\" cannot be used as the keyword is reserved");
|
|
2434
2745
|
|
|
2435
2746
|
case "onload":
|
|
2436
|
-
throw new Error("Messenger[" +
|
|
2747
|
+
throw new Error("Messenger[" + _this22._id + "].setup() Component ID of \"onload\" cannot be used as the keyword is reserved");
|
|
2437
2748
|
|
|
2438
2749
|
default:
|
|
2439
2750
|
break;
|
|
2440
2751
|
} // initialise the child iframe as a messenger pipe
|
|
2441
2752
|
|
|
2442
2753
|
|
|
2443
|
-
|
|
2754
|
+
_this22[iframeID] = new RemoteFunctionList(iframeID);
|
|
2444
2755
|
|
|
2445
|
-
|
|
2756
|
+
_this22[iframeID].setup(new RemoteInterface(src.source, src.origin)); // add the interface to the broadcaster
|
|
2446
2757
|
|
|
2447
2758
|
|
|
2448
|
-
|
|
2759
|
+
_this22._broadcaster._push(iframeID);
|
|
2449
2760
|
|
|
2450
|
-
var callbacks =
|
|
2761
|
+
var callbacks = _this22._callbacks; // we have registered callbacks, begin execution
|
|
2451
2762
|
|
|
2452
2763
|
if (callbacks.has(iframeID)) {
|
|
2453
2764
|
var array = callbacks.get(iframeID);
|
|
@@ -2467,11 +2778,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2467
2778
|
});
|
|
2468
2779
|
GlobalEventHandler.instance().listen("__messenger__parent_init", function (src, data) {
|
|
2469
2780
|
var iframeID = "parent";
|
|
2470
|
-
|
|
2781
|
+
_this22[iframeID] = new RemoteFunctionList(iframeID);
|
|
2471
2782
|
|
|
2472
|
-
|
|
2783
|
+
_this22[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
2473
2784
|
|
|
2474
|
-
var callbacks =
|
|
2785
|
+
var callbacks = _this22._callbacks; // we have registered callbacks, begin execution
|
|
2475
2786
|
|
|
2476
2787
|
if (callbacks.has(iframeID)) {
|
|
2477
2788
|
var array = callbacks.get(iframeID);
|
|
@@ -2496,11 +2807,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2496
2807
|
|
|
2497
2808
|
GlobalEventHandler.instance().listen("__messenger__parent_init_inv", function (src, data) {
|
|
2498
2809
|
var iframeID = "parent";
|
|
2499
|
-
|
|
2810
|
+
_this22[iframeID] = new RemoteFunctionList(iframeID);
|
|
2500
2811
|
|
|
2501
|
-
|
|
2812
|
+
_this22[iframeID].setup(new RemoteInterface(src.source, src.origin));
|
|
2502
2813
|
|
|
2503
|
-
var callbacks =
|
|
2814
|
+
var callbacks = _this22._callbacks; // we have registered callbacks, begin execution
|
|
2504
2815
|
|
|
2505
2816
|
if (callbacks.has(iframeID)) {
|
|
2506
2817
|
var array = callbacks.get(iframeID);
|
|
@@ -2556,14 +2867,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2556
2867
|
|
|
2557
2868
|
module.exports = Messenger;
|
|
2558
2869
|
}, {
|
|
2559
|
-
"./broadcaster.js":
|
|
2560
|
-
"./current/current-function-list":
|
|
2561
|
-
"./global-event-handler.js":
|
|
2562
|
-
"./remote-interface":
|
|
2563
|
-
"./remote/remote-function-list":
|
|
2564
|
-
"./util/util.js":
|
|
2870
|
+
"./broadcaster.js": 20,
|
|
2871
|
+
"./current/current-function-list": 21,
|
|
2872
|
+
"./global-event-handler.js": 23,
|
|
2873
|
+
"./remote-interface": 25,
|
|
2874
|
+
"./remote/remote-function-list": 26,
|
|
2875
|
+
"./util/util.js": 28
|
|
2565
2876
|
}],
|
|
2566
|
-
|
|
2877
|
+
25: [function (require, module, exports) {
|
|
2567
2878
|
/**
|
|
2568
2879
|
* Provides a single useful interface for performing remote function calls
|
|
2569
2880
|
*/
|
|
@@ -2635,7 +2946,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2635
2946
|
|
|
2636
2947
|
module.exports = RemoteInterface;
|
|
2637
2948
|
}, {}],
|
|
2638
|
-
|
|
2949
|
+
26: [function (require, module, exports) {
|
|
2639
2950
|
var WrappedFunction = require("./wrapped-remote-function");
|
|
2640
2951
|
|
|
2641
2952
|
var RemoteFunctionList = /*#__PURE__*/function () {
|
|
@@ -2723,9 +3034,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2723
3034
|
|
|
2724
3035
|
module.exports = RemoteFunctionList;
|
|
2725
3036
|
}, {
|
|
2726
|
-
"./wrapped-remote-function":
|
|
3037
|
+
"./wrapped-remote-function": 27
|
|
2727
3038
|
}],
|
|
2728
|
-
|
|
3039
|
+
27: [function (require, module, exports) {
|
|
2729
3040
|
var Util = require("../util/util.js");
|
|
2730
3041
|
|
|
2731
3042
|
var GlobalEventHandler = require("../global-event-handler.js");
|
|
@@ -2738,7 +3049,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2738
3049
|
|
|
2739
3050
|
var WrappedRemoteFunction = /*#__PURE__*/function () {
|
|
2740
3051
|
function WrappedRemoteFunction(funcName, remoteInterface) {
|
|
2741
|
-
var
|
|
3052
|
+
var _this23 = this;
|
|
2742
3053
|
|
|
2743
3054
|
_classCallCheck(this, WrappedRemoteFunction);
|
|
2744
3055
|
|
|
@@ -2749,19 +3060,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2749
3060
|
GlobalEventHandler.instance().listen("__messenger__exec_fnc_result", function (src, data) {
|
|
2750
3061
|
var instanceID = data.instance_id; // the function name must match
|
|
2751
3062
|
|
|
2752
|
-
if (data.function_name !==
|
|
3063
|
+
if (data.function_name !== _this23._funcName) {
|
|
2753
3064
|
return;
|
|
2754
3065
|
} // the instance ID must be found, otherwise this is a rogue execution
|
|
2755
3066
|
// that can be ignored (should not happen)
|
|
2756
3067
|
|
|
2757
3068
|
|
|
2758
|
-
if (!
|
|
3069
|
+
if (!_this23._callInstances[instanceID]) {
|
|
2759
3070
|
return;
|
|
2760
3071
|
}
|
|
2761
3072
|
|
|
2762
|
-
var promise =
|
|
3073
|
+
var promise = _this23._callInstances[instanceID]; // remove the old instance
|
|
2763
3074
|
|
|
2764
|
-
delete
|
|
3075
|
+
delete _this23._callInstances[instanceID]; // perform the promise callbacks
|
|
2765
3076
|
|
|
2766
3077
|
if (data.function_status === "success") {
|
|
2767
3078
|
promise.accept(data.function_args);
|
|
@@ -2778,7 +3089,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2778
3089
|
_createClass(WrappedRemoteFunction, [{
|
|
2779
3090
|
key: "exec",
|
|
2780
3091
|
value: function exec() {
|
|
2781
|
-
var
|
|
3092
|
+
var _this24 = this;
|
|
2782
3093
|
|
|
2783
3094
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
2784
3095
|
args[_key4] = arguments[_key4];
|
|
@@ -2798,14 +3109,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2798
3109
|
|
|
2799
3110
|
return new Promise(function (accept, reject) {
|
|
2800
3111
|
// save this promise to be executed later
|
|
2801
|
-
|
|
3112
|
+
_this24._callInstances[instanceID] = {
|
|
2802
3113
|
accept: accept,
|
|
2803
3114
|
reject: reject
|
|
2804
3115
|
}; // execute this event in another context
|
|
2805
3116
|
|
|
2806
|
-
|
|
3117
|
+
_this24._remoteInterface.send("__messenger__exec_fnc", {
|
|
2807
3118
|
instance_id: instanceID,
|
|
2808
|
-
function_name:
|
|
3119
|
+
function_name: _this24._funcName,
|
|
2809
3120
|
function_args: args
|
|
2810
3121
|
});
|
|
2811
3122
|
});
|
|
@@ -2817,10 +3128,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2817
3128
|
|
|
2818
3129
|
module.exports = WrappedRemoteFunction;
|
|
2819
3130
|
}, {
|
|
2820
|
-
"../global-event-handler.js":
|
|
2821
|
-
"../util/util.js":
|
|
3131
|
+
"../global-event-handler.js": 23,
|
|
3132
|
+
"../util/util.js": 28
|
|
2822
3133
|
}],
|
|
2823
|
-
|
|
3134
|
+
28: [function (require, module, exports) {
|
|
2824
3135
|
var Util = /*#__PURE__*/function () {
|
|
2825
3136
|
function Util() {
|
|
2826
3137
|
_classCallCheck(this, Util);
|
|
@@ -2860,10 +3171,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2860
3171
|
|
|
2861
3172
|
module.exports = Util;
|
|
2862
3173
|
}, {}],
|
|
2863
|
-
|
|
3174
|
+
29: [function (require, module, exports) {
|
|
2864
3175
|
module.exports = "1.113.6";
|
|
2865
3176
|
}, {}],
|
|
2866
|
-
|
|
3177
|
+
30: [function (require, module, exports) {
|
|
2867
3178
|
"use strict";
|
|
2868
3179
|
|
|
2869
3180
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2932,9 +3243,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2932
3243
|
|
|
2933
3244
|
exports.AnalyticsData = AnalyticsData;
|
|
2934
3245
|
}, {
|
|
2935
|
-
"../util/util":
|
|
3246
|
+
"../util/util": 34
|
|
2936
3247
|
}],
|
|
2937
|
-
|
|
3248
|
+
31: [function (require, module, exports) {
|
|
2938
3249
|
"use strict";
|
|
2939
3250
|
|
|
2940
3251
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
@@ -2954,7 +3265,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2954
3265
|
|
|
2955
3266
|
var Analytics = /*#__PURE__*/function () {
|
|
2956
3267
|
function Analytics(applicationID) {
|
|
2957
|
-
var
|
|
3268
|
+
var _this25 = this;
|
|
2958
3269
|
|
|
2959
3270
|
_classCallCheck(this, Analytics);
|
|
2960
3271
|
|
|
@@ -2971,21 +3282,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2971
3282
|
|
|
2972
3283
|
this._handlePageHide = function () {
|
|
2973
3284
|
if (document.visibilityState === "hidden") {
|
|
2974
|
-
|
|
2975
|
-
} else if (
|
|
3285
|
+
_this25._pageTime = new Date();
|
|
3286
|
+
} else if (_this25._pageTime) {
|
|
2976
3287
|
var time2 = new Date();
|
|
2977
3288
|
|
|
2978
|
-
var diff = time2.getTime() -
|
|
3289
|
+
var diff = time2.getTime() - _this25._pageTime.getTime();
|
|
2979
3290
|
|
|
2980
|
-
var data =
|
|
3291
|
+
var data = _this25.data;
|
|
2981
3292
|
data.push("eventAction", "View Time");
|
|
2982
3293
|
data.push("viewTime", diff);
|
|
2983
3294
|
data.push("eventLabel", diff);
|
|
2984
3295
|
|
|
2985
|
-
|
|
3296
|
+
_this25.write();
|
|
2986
3297
|
|
|
2987
|
-
|
|
2988
|
-
document.removeEventListener("visibilitychange",
|
|
3298
|
+
_this25._pageTime = null;
|
|
3299
|
+
document.removeEventListener("visibilitychange", _this25._handlePageHide, false);
|
|
2989
3300
|
}
|
|
2990
3301
|
};
|
|
2991
3302
|
}
|
|
@@ -2993,7 +3304,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2993
3304
|
_createClass(Analytics, [{
|
|
2994
3305
|
key: "query",
|
|
2995
3306
|
value: function query() {
|
|
2996
|
-
var
|
|
3307
|
+
var _this26 = this;
|
|
2997
3308
|
|
|
2998
3309
|
var _query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
2999
3310
|
|
|
@@ -3002,11 +3313,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3002
3313
|
return reject(new Error("Analytics.query() - provided query was null"));
|
|
3003
3314
|
}
|
|
3004
3315
|
|
|
3005
|
-
var url =
|
|
3316
|
+
var url = _this26.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
3006
3317
|
var data = {
|
|
3007
3318
|
type: "read",
|
|
3008
|
-
application_id:
|
|
3009
|
-
event:
|
|
3319
|
+
application_id: _this26._applicationID,
|
|
3320
|
+
event: _this26.event,
|
|
3010
3321
|
data: _query
|
|
3011
3322
|
};
|
|
3012
3323
|
basic_http_1["default"].exec("POST", url, data).then(function (result) {
|
|
@@ -3017,21 +3328,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3017
3328
|
}, {
|
|
3018
3329
|
key: "write",
|
|
3019
3330
|
value: function write() {
|
|
3020
|
-
var
|
|
3331
|
+
var _this27 = this;
|
|
3021
3332
|
|
|
3022
3333
|
return new Promise(function (accept, reject) {
|
|
3023
|
-
var data =
|
|
3024
|
-
var url =
|
|
3025
|
-
data.push("applicationId",
|
|
3334
|
+
var data = _this27._data;
|
|
3335
|
+
var url = _this27.origin === "dev" ? "http://localhost:9000/2015-03-31/functions/function/invocations" : "https://oyywgrj9ki.execute-api.ap-southeast-2.amazonaws.com/main/analytics";
|
|
3336
|
+
data.push("applicationId", _this27._applicationID);
|
|
3026
3337
|
var sendData = {
|
|
3027
3338
|
type: "write",
|
|
3028
|
-
application_id:
|
|
3029
|
-
origin:
|
|
3030
|
-
event:
|
|
3339
|
+
application_id: _this27._applicationID,
|
|
3340
|
+
origin: _this27.origin,
|
|
3341
|
+
event: _this27.event,
|
|
3031
3342
|
data: data.data
|
|
3032
3343
|
};
|
|
3033
3344
|
|
|
3034
|
-
if (
|
|
3345
|
+
if (_this27.isBeacon === false) {
|
|
3035
3346
|
basic_http_1["default"].exec("POST", url, sendData).then(function (result) {
|
|
3036
3347
|
accept(result && result.results ? result.results : {});
|
|
3037
3348
|
})["catch"](reject);
|
|
@@ -3059,10 +3370,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3059
3370
|
|
|
3060
3371
|
exports.Analytics = Analytics;
|
|
3061
3372
|
}, {
|
|
3062
|
-
"../util/basic-http":
|
|
3063
|
-
"./analytics-data":
|
|
3373
|
+
"../util/basic-http": 33,
|
|
3374
|
+
"./analytics-data": 30
|
|
3064
3375
|
}],
|
|
3065
|
-
|
|
3376
|
+
32: [function (require, module, exports) {
|
|
3066
3377
|
"use strict";
|
|
3067
3378
|
|
|
3068
3379
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
@@ -3124,10 +3435,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3124
3435
|
|
|
3125
3436
|
console.log("using @plattar/plattar-analytics v" + version_1["default"]);
|
|
3126
3437
|
}, {
|
|
3127
|
-
"./analytics/analytics":
|
|
3128
|
-
"./version":
|
|
3438
|
+
"./analytics/analytics": 31,
|
|
3439
|
+
"./version": 35
|
|
3129
3440
|
}],
|
|
3130
|
-
|
|
3441
|
+
33: [function (require, module, exports) {
|
|
3131
3442
|
"use strict";
|
|
3132
3443
|
|
|
3133
3444
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -3213,7 +3524,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3213
3524
|
|
|
3214
3525
|
exports["default"] = BasicHTTP;
|
|
3215
3526
|
}, {}],
|
|
3216
|
-
|
|
3527
|
+
34: [function (require, module, exports) {
|
|
3217
3528
|
"use strict";
|
|
3218
3529
|
|
|
3219
3530
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -3252,7 +3563,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3252
3563
|
|
|
3253
3564
|
exports.Util = Util;
|
|
3254
3565
|
}, {}],
|
|
3255
|
-
|
|
3566
|
+
35: [function (require, module, exports) {
|
|
3256
3567
|
"use strict";
|
|
3257
3568
|
|
|
3258
3569
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -3260,7 +3571,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3260
3571
|
});
|
|
3261
3572
|
exports["default"] = "1.117.2";
|
|
3262
3573
|
}, {}],
|
|
3263
|
-
|
|
3574
|
+
36: [function (require, module, exports) {
|
|
3264
3575
|
"use strict";
|
|
3265
3576
|
|
|
3266
3577
|
var Server = require("./server/plattar-server.js");
|
|
@@ -3463,67 +3774,67 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3463
3774
|
version: Version
|
|
3464
3775
|
};
|
|
3465
3776
|
}, {
|
|
3466
|
-
"./server/plattar-server.js":
|
|
3467
|
-
"./types/application.js":
|
|
3468
|
-
"./types/content-pipeline/brief.js":
|
|
3469
|
-
"./types/content-pipeline/comment-brief.js":
|
|
3470
|
-
"./types/content-pipeline/comment-quote.js":
|
|
3471
|
-
"./types/content-pipeline/comment-solution.js":
|
|
3472
|
-
"./types/content-pipeline/folder.js":
|
|
3473
|
-
"./types/content-pipeline/pipeline-user.js":
|
|
3474
|
-
"./types/content-pipeline/quote.js":
|
|
3475
|
-
"./types/content-pipeline/rating.js":
|
|
3476
|
-
"./types/content-pipeline/solution.js":
|
|
3477
|
-
"./types/file/file-audio.js":
|
|
3478
|
-
"./types/file/file-base.js":
|
|
3479
|
-
"./types/file/file-image.js":
|
|
3480
|
-
"./types/file/file-model.js":
|
|
3481
|
-
"./types/file/file-script.js":
|
|
3482
|
-
"./types/file/file-video.js":
|
|
3483
|
-
"./types/misc/application-build.js":
|
|
3484
|
-
"./types/misc/asset-library.js":
|
|
3485
|
-
"./types/misc/async-job.js":
|
|
3486
|
-
"./types/misc/script-event.js":
|
|
3487
|
-
"./types/misc/tag.js":
|
|
3488
|
-
"./types/page/card-base.js":
|
|
3489
|
-
"./types/page/card-button.js":
|
|
3490
|
-
"./types/page/card-html.js":
|
|
3491
|
-
"./types/page/card-iframe.js":
|
|
3492
|
-
"./types/page/card-image.js":
|
|
3493
|
-
"./types/page/card-map.js":
|
|
3494
|
-
"./types/page/card-paragraph.js":
|
|
3495
|
-
"./types/page/card-row.js":
|
|
3496
|
-
"./types/page/card-slider.js":
|
|
3497
|
-
"./types/page/card-title.js":
|
|
3498
|
-
"./types/page/card-video.js":
|
|
3499
|
-
"./types/page/card-youtube.js":
|
|
3500
|
-
"./types/page/page.js":
|
|
3501
|
-
"./types/product/product-annotation.js":
|
|
3502
|
-
"./types/product/product-base.js":
|
|
3503
|
-
"./types/product/product-variation.js":
|
|
3504
|
-
"./types/product/product.js":
|
|
3505
|
-
"./types/scene/scene-annotation.js":
|
|
3506
|
-
"./types/scene/scene-audio.js":
|
|
3507
|
-
"./types/scene/scene-base.js":
|
|
3508
|
-
"./types/scene/scene-button.js":
|
|
3509
|
-
"./types/scene/scene-camera.js":
|
|
3510
|
-
"./types/scene/scene-carousel.js":
|
|
3511
|
-
"./types/scene/scene-image.js":
|
|
3512
|
-
"./types/scene/scene-model.js":
|
|
3513
|
-
"./types/scene/scene-panorama.js":
|
|
3514
|
-
"./types/scene/scene-poller.js":
|
|
3515
|
-
"./types/scene/scene-product.js":
|
|
3516
|
-
"./types/scene/scene-script.js":
|
|
3517
|
-
"./types/scene/scene-shadow.js":
|
|
3518
|
-
"./types/scene/scene-video.js":
|
|
3519
|
-
"./types/scene/scene-volumetric.js":
|
|
3520
|
-
"./types/scene/scene-youtube.js":
|
|
3521
|
-
"./types/scene/scene.js":
|
|
3522
|
-
"./types/trigger/trigger-image.js":
|
|
3523
|
-
"./util/plattar-util.js":
|
|
3524
|
-
"./version":
|
|
3777
|
+
"./server/plattar-server.js": 38,
|
|
3778
|
+
"./types/application.js": 39,
|
|
3779
|
+
"./types/content-pipeline/brief.js": 40,
|
|
3780
|
+
"./types/content-pipeline/comment-brief.js": 41,
|
|
3781
|
+
"./types/content-pipeline/comment-quote.js": 42,
|
|
3782
|
+
"./types/content-pipeline/comment-solution.js": 43,
|
|
3783
|
+
"./types/content-pipeline/folder.js": 44,
|
|
3784
|
+
"./types/content-pipeline/pipeline-user.js": 45,
|
|
3785
|
+
"./types/content-pipeline/quote.js": 46,
|
|
3786
|
+
"./types/content-pipeline/rating.js": 47,
|
|
3787
|
+
"./types/content-pipeline/solution.js": 48,
|
|
3788
|
+
"./types/file/file-audio.js": 49,
|
|
3789
|
+
"./types/file/file-base.js": 50,
|
|
3790
|
+
"./types/file/file-image.js": 51,
|
|
3791
|
+
"./types/file/file-model.js": 52,
|
|
3792
|
+
"./types/file/file-script.js": 53,
|
|
3793
|
+
"./types/file/file-video.js": 54,
|
|
3794
|
+
"./types/misc/application-build.js": 58,
|
|
3795
|
+
"./types/misc/asset-library.js": 59,
|
|
3796
|
+
"./types/misc/async-job.js": 60,
|
|
3797
|
+
"./types/misc/script-event.js": 61,
|
|
3798
|
+
"./types/misc/tag.js": 62,
|
|
3799
|
+
"./types/page/card-base.js": 63,
|
|
3800
|
+
"./types/page/card-button.js": 64,
|
|
3801
|
+
"./types/page/card-html.js": 65,
|
|
3802
|
+
"./types/page/card-iframe.js": 66,
|
|
3803
|
+
"./types/page/card-image.js": 67,
|
|
3804
|
+
"./types/page/card-map.js": 68,
|
|
3805
|
+
"./types/page/card-paragraph.js": 69,
|
|
3806
|
+
"./types/page/card-row.js": 70,
|
|
3807
|
+
"./types/page/card-slider.js": 71,
|
|
3808
|
+
"./types/page/card-title.js": 72,
|
|
3809
|
+
"./types/page/card-video.js": 73,
|
|
3810
|
+
"./types/page/card-youtube.js": 74,
|
|
3811
|
+
"./types/page/page.js": 75,
|
|
3812
|
+
"./types/product/product-annotation.js": 76,
|
|
3813
|
+
"./types/product/product-base.js": 77,
|
|
3814
|
+
"./types/product/product-variation.js": 78,
|
|
3815
|
+
"./types/product/product.js": 79,
|
|
3816
|
+
"./types/scene/scene-annotation.js": 80,
|
|
3817
|
+
"./types/scene/scene-audio.js": 81,
|
|
3818
|
+
"./types/scene/scene-base.js": 82,
|
|
3819
|
+
"./types/scene/scene-button.js": 83,
|
|
3820
|
+
"./types/scene/scene-camera.js": 84,
|
|
3821
|
+
"./types/scene/scene-carousel.js": 85,
|
|
3822
|
+
"./types/scene/scene-image.js": 86,
|
|
3823
|
+
"./types/scene/scene-model.js": 87,
|
|
3824
|
+
"./types/scene/scene-panorama.js": 88,
|
|
3825
|
+
"./types/scene/scene-poller.js": 89,
|
|
3826
|
+
"./types/scene/scene-product.js": 90,
|
|
3827
|
+
"./types/scene/scene-script.js": 91,
|
|
3828
|
+
"./types/scene/scene-shadow.js": 92,
|
|
3829
|
+
"./types/scene/scene-video.js": 93,
|
|
3830
|
+
"./types/scene/scene-volumetric.js": 94,
|
|
3831
|
+
"./types/scene/scene-youtube.js": 95,
|
|
3832
|
+
"./types/scene/scene.js": 96,
|
|
3833
|
+
"./types/trigger/trigger-image.js": 97,
|
|
3834
|
+
"./util/plattar-util.js": 98,
|
|
3835
|
+
"./version": 99
|
|
3525
3836
|
}],
|
|
3526
|
-
|
|
3837
|
+
37: [function (require, module, exports) {
|
|
3527
3838
|
var fetch = require("node-fetch");
|
|
3528
3839
|
|
|
3529
3840
|
var PlattarQuery = /*#__PURE__*/function () {
|
|
@@ -3582,11 +3893,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3582
3893
|
}, {
|
|
3583
3894
|
key: "_get",
|
|
3584
3895
|
value: function _get(opt) {
|
|
3585
|
-
var
|
|
3896
|
+
var _this28 = this;
|
|
3586
3897
|
|
|
3587
3898
|
return new Promise(function (resolve, reject) {
|
|
3588
|
-
var target =
|
|
3589
|
-
var server =
|
|
3899
|
+
var target = _this28.target;
|
|
3900
|
+
var server = _this28.server; // we cannot perform a GET request without an ID
|
|
3590
3901
|
|
|
3591
3902
|
if (!target.id) {
|
|
3592
3903
|
reject(new Error("PlattarQuery." + target.type() + ".get() - object id is missing"));
|
|
@@ -3611,16 +3922,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3611
3922
|
var origin = server.originLocation.api_read;
|
|
3612
3923
|
var auth = server.authToken;
|
|
3613
3924
|
var headers = {
|
|
3614
|
-
'cookie': 'laravel_session=' +
|
|
3925
|
+
'cookie': 'laravel_session=' + _this28.getCookie('laravel_session')
|
|
3615
3926
|
};
|
|
3616
3927
|
Object.assign(headers, auth);
|
|
3617
3928
|
var reqopts = {
|
|
3618
3929
|
method: "GET",
|
|
3619
3930
|
headers: headers
|
|
3620
3931
|
};
|
|
3621
|
-
var includeQuery =
|
|
3932
|
+
var includeQuery = _this28._IncludeQuery;
|
|
3622
3933
|
|
|
3623
|
-
var params =
|
|
3934
|
+
var params = _this28._ParamFor("get");
|
|
3624
3935
|
|
|
3625
3936
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3626
3937
|
|
|
@@ -3661,11 +3972,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3661
3972
|
}, {
|
|
3662
3973
|
key: "_update",
|
|
3663
3974
|
value: function _update() {
|
|
3664
|
-
var
|
|
3975
|
+
var _this29 = this;
|
|
3665
3976
|
|
|
3666
3977
|
return new Promise(function (resolve, reject) {
|
|
3667
|
-
var target =
|
|
3668
|
-
var server =
|
|
3978
|
+
var target = _this29.target;
|
|
3979
|
+
var server = _this29.server; // we cannot perform a GET request without an ID
|
|
3669
3980
|
|
|
3670
3981
|
if (!target.id) {
|
|
3671
3982
|
reject(new Error("PlattarQuery." + target.type() + ".update() - object id is missing"));
|
|
@@ -3678,7 +3989,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3678
3989
|
var headers = {
|
|
3679
3990
|
'Accept': 'application/json',
|
|
3680
3991
|
'Content-Type': 'application/json',
|
|
3681
|
-
'cookie': 'laravel_session=' +
|
|
3992
|
+
'cookie': 'laravel_session=' + _this29.getCookie('laravel_session')
|
|
3682
3993
|
};
|
|
3683
3994
|
Object.assign(headers, auth);
|
|
3684
3995
|
var reqopts = {
|
|
@@ -3693,7 +4004,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3693
4004
|
})
|
|
3694
4005
|
};
|
|
3695
4006
|
|
|
3696
|
-
var params =
|
|
4007
|
+
var params = _this29._ParamFor("update");
|
|
3697
4008
|
|
|
3698
4009
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3699
4010
|
|
|
@@ -3735,18 +4046,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3735
4046
|
}, {
|
|
3736
4047
|
key: "_create",
|
|
3737
4048
|
value: function _create() {
|
|
3738
|
-
var
|
|
4049
|
+
var _this30 = this;
|
|
3739
4050
|
|
|
3740
4051
|
return new Promise(function (resolve, reject) {
|
|
3741
|
-
var target =
|
|
3742
|
-
var server =
|
|
4052
|
+
var target = _this30.target;
|
|
4053
|
+
var server = _this30.server; // otherwise, proceed with the fetching op
|
|
3743
4054
|
|
|
3744
4055
|
var origin = server.originLocation.api_write;
|
|
3745
4056
|
var auth = server.authToken;
|
|
3746
4057
|
var headers = {
|
|
3747
4058
|
'Accept': 'application/json',
|
|
3748
4059
|
'Content-Type': 'application/json',
|
|
3749
|
-
'cookie': 'laravel_session=' +
|
|
4060
|
+
'cookie': 'laravel_session=' + _this30.getCookie('laravel_session')
|
|
3750
4061
|
};
|
|
3751
4062
|
Object.assign(headers, auth);
|
|
3752
4063
|
var reqopts = {
|
|
@@ -3760,7 +4071,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3760
4071
|
})
|
|
3761
4072
|
};
|
|
3762
4073
|
|
|
3763
|
-
var params =
|
|
4074
|
+
var params = _this30._ParamFor("create");
|
|
3764
4075
|
|
|
3765
4076
|
var endpoint = origin + target.type();
|
|
3766
4077
|
|
|
@@ -3804,11 +4115,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3804
4115
|
}, {
|
|
3805
4116
|
key: "_delete",
|
|
3806
4117
|
value: function _delete() {
|
|
3807
|
-
var
|
|
4118
|
+
var _this31 = this;
|
|
3808
4119
|
|
|
3809
4120
|
return new Promise(function (resolve, reject) {
|
|
3810
|
-
var target =
|
|
3811
|
-
var server =
|
|
4121
|
+
var target = _this31.target;
|
|
4122
|
+
var server = _this31.server; // we cannot perform a GET request without an ID
|
|
3812
4123
|
|
|
3813
4124
|
if (!target.id) {
|
|
3814
4125
|
reject(new Error("PlattarQuery." + target.type() + ".delete() - object id is missing"));
|
|
@@ -3821,7 +4132,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3821
4132
|
var headers = {
|
|
3822
4133
|
'Accept': 'application/json',
|
|
3823
4134
|
'Content-Type': 'application/json',
|
|
3824
|
-
'cookie': 'laravel_session=' +
|
|
4135
|
+
'cookie': 'laravel_session=' + _this31.getCookie('laravel_session')
|
|
3825
4136
|
};
|
|
3826
4137
|
Object.assign(headers, auth);
|
|
3827
4138
|
var reqopts = {
|
|
@@ -3836,7 +4147,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3836
4147
|
})
|
|
3837
4148
|
};
|
|
3838
4149
|
|
|
3839
|
-
var params =
|
|
4150
|
+
var params = _this31._ParamFor("delete");
|
|
3840
4151
|
|
|
3841
4152
|
var endpoint = origin + target.type() + "/" + target.id;
|
|
3842
4153
|
|
|
@@ -3899,7 +4210,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3899
4210
|
}, {
|
|
3900
4211
|
key: "_include",
|
|
3901
4212
|
value: function _include(args) {
|
|
3902
|
-
var
|
|
4213
|
+
var _this32 = this;
|
|
3903
4214
|
|
|
3904
4215
|
if (!args || args.length <= 0) {
|
|
3905
4216
|
return this;
|
|
@@ -3912,21 +4223,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3912
4223
|
if (Array.isArray(obj)) {
|
|
3913
4224
|
obj.forEach(function (strObject) {
|
|
3914
4225
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
3915
|
-
|
|
4226
|
+
_this32._getIncludeQuery.push(strObject);
|
|
3916
4227
|
} else {
|
|
3917
|
-
throw new Error("PlattarQuery." +
|
|
4228
|
+
throw new Error("PlattarQuery." + _this32.target.type() + ".include(...args) - argument of Array must only include Strings");
|
|
3918
4229
|
}
|
|
3919
4230
|
});
|
|
3920
4231
|
} else if (PlattarUtil.isPlattarObject(obj)) {
|
|
3921
4232
|
var type = obj.type();
|
|
3922
4233
|
|
|
3923
4234
|
if (Array.isArray(type)) {
|
|
3924
|
-
|
|
4235
|
+
_this32._include(type);
|
|
3925
4236
|
} else {
|
|
3926
|
-
|
|
4237
|
+
_this32._getIncludeQuery.push(type);
|
|
3927
4238
|
}
|
|
3928
4239
|
} else {
|
|
3929
|
-
throw new Error("PlattarQuery." +
|
|
4240
|
+
throw new Error("PlattarQuery." + _this32.target.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
3930
4241
|
}
|
|
3931
4242
|
});
|
|
3932
4243
|
return this;
|
|
@@ -4007,10 +4318,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4007
4318
|
|
|
4008
4319
|
module.exports = PlattarQuery;
|
|
4009
4320
|
}, {
|
|
4010
|
-
"../util/plattar-util.js":
|
|
4011
|
-
"node-fetch":
|
|
4321
|
+
"../util/plattar-util.js": 98,
|
|
4322
|
+
"node-fetch": 119
|
|
4012
4323
|
}],
|
|
4013
|
-
|
|
4324
|
+
38: [function (require, module, exports) {
|
|
4014
4325
|
(function (process) {
|
|
4015
4326
|
(function () {
|
|
4016
4327
|
var fetch = require("node-fetch");
|
|
@@ -4066,13 +4377,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4066
4377
|
}, {
|
|
4067
4378
|
key: "auth",
|
|
4068
4379
|
value: function auth(token, opt) {
|
|
4069
|
-
var
|
|
4380
|
+
var _this33 = this;
|
|
4070
4381
|
|
|
4071
4382
|
var copt = opt || {
|
|
4072
4383
|
validate: false
|
|
4073
4384
|
};
|
|
4074
4385
|
return new Promise(function (resolve, reject) {
|
|
4075
|
-
var server =
|
|
4386
|
+
var server = _this33.originLocation.api_write;
|
|
4076
4387
|
|
|
4077
4388
|
if (!server) {
|
|
4078
4389
|
reject(new Error("Plattar.auth(token) - cannot authenticate as server not set via Plattar.origin(server)"));
|
|
@@ -4085,10 +4396,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4085
4396
|
}
|
|
4086
4397
|
|
|
4087
4398
|
if (!copt.validate) {
|
|
4088
|
-
|
|
4399
|
+
_this33._authToken = {
|
|
4089
4400
|
"plattar-auth-token": token
|
|
4090
4401
|
};
|
|
4091
|
-
resolve(
|
|
4402
|
+
resolve(_this33);
|
|
4092
4403
|
return;
|
|
4093
4404
|
}
|
|
4094
4405
|
|
|
@@ -4101,10 +4412,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4101
4412
|
};
|
|
4102
4413
|
fetch(endpoint, options).then(function (res) {
|
|
4103
4414
|
if (res.ok) {
|
|
4104
|
-
|
|
4415
|
+
_this33._authToken = {
|
|
4105
4416
|
"plattar-auth-token": token
|
|
4106
4417
|
};
|
|
4107
|
-
resolve(
|
|
4418
|
+
resolve(_this33);
|
|
4108
4419
|
} else {
|
|
4109
4420
|
reject(new Error("Plattar.auth(token) - failed to validate authentication token at " + endpoint));
|
|
4110
4421
|
}
|
|
@@ -4114,7 +4425,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4114
4425
|
}, {
|
|
4115
4426
|
key: "origin",
|
|
4116
4427
|
value: function origin(server, opt) {
|
|
4117
|
-
var
|
|
4428
|
+
var _this34 = this;
|
|
4118
4429
|
|
|
4119
4430
|
var copt = opt || {
|
|
4120
4431
|
validate: false
|
|
@@ -4126,8 +4437,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4126
4437
|
}
|
|
4127
4438
|
|
|
4128
4439
|
if (!copt.validate) {
|
|
4129
|
-
|
|
4130
|
-
resolve(
|
|
4440
|
+
_this34._serverLocation = server;
|
|
4441
|
+
resolve(_this34);
|
|
4131
4442
|
return;
|
|
4132
4443
|
}
|
|
4133
4444
|
|
|
@@ -4137,8 +4448,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4137
4448
|
};
|
|
4138
4449
|
fetch(endpoint, options).then(function (res) {
|
|
4139
4450
|
if (res.ok) {
|
|
4140
|
-
|
|
4141
|
-
resolve(
|
|
4451
|
+
_this34._serverLocation = server;
|
|
4452
|
+
resolve(_this34);
|
|
4142
4453
|
} else {
|
|
4143
4454
|
reject(new Error("Plattar.origin(server) - failed to ping server at " + endpoint));
|
|
4144
4455
|
}
|
|
@@ -4232,21 +4543,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4232
4543
|
}).call(this);
|
|
4233
4544
|
}).call(this, require('_process'));
|
|
4234
4545
|
}, {
|
|
4235
|
-
"_process":
|
|
4236
|
-
"node-fetch":
|
|
4546
|
+
"_process": 120,
|
|
4547
|
+
"node-fetch": 119
|
|
4237
4548
|
}],
|
|
4238
|
-
|
|
4549
|
+
39: [function (require, module, exports) {
|
|
4239
4550
|
var PlattarBase = require("./interfaces/plattar-base.js");
|
|
4240
4551
|
|
|
4241
4552
|
var Application = /*#__PURE__*/function (_PlattarBase) {
|
|
4242
4553
|
_inherits(Application, _PlattarBase);
|
|
4243
4554
|
|
|
4244
|
-
var
|
|
4555
|
+
var _super10 = _createSuper(Application);
|
|
4245
4556
|
|
|
4246
4557
|
function Application() {
|
|
4247
4558
|
_classCallCheck(this, Application);
|
|
4248
4559
|
|
|
4249
|
-
return
|
|
4560
|
+
return _super10.apply(this, arguments);
|
|
4250
4561
|
}
|
|
4251
4562
|
|
|
4252
4563
|
_createClass(Application, null, [{
|
|
@@ -4261,20 +4572,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4261
4572
|
|
|
4262
4573
|
module.exports = Application;
|
|
4263
4574
|
}, {
|
|
4264
|
-
"./interfaces/plattar-base.js":
|
|
4575
|
+
"./interfaces/plattar-base.js": 55
|
|
4265
4576
|
}],
|
|
4266
|
-
|
|
4577
|
+
40: [function (require, module, exports) {
|
|
4267
4578
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4268
4579
|
|
|
4269
4580
|
var Brief = /*#__PURE__*/function (_PlattarBase2) {
|
|
4270
4581
|
_inherits(Brief, _PlattarBase2);
|
|
4271
4582
|
|
|
4272
|
-
var
|
|
4583
|
+
var _super11 = _createSuper(Brief);
|
|
4273
4584
|
|
|
4274
4585
|
function Brief() {
|
|
4275
4586
|
_classCallCheck(this, Brief);
|
|
4276
4587
|
|
|
4277
|
-
return
|
|
4588
|
+
return _super11.apply(this, arguments);
|
|
4278
4589
|
}
|
|
4279
4590
|
|
|
4280
4591
|
_createClass(Brief, null, [{
|
|
@@ -4289,20 +4600,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4289
4600
|
|
|
4290
4601
|
module.exports = Brief;
|
|
4291
4602
|
}, {
|
|
4292
|
-
"../interfaces/plattar-base":
|
|
4603
|
+
"../interfaces/plattar-base": 55
|
|
4293
4604
|
}],
|
|
4294
|
-
|
|
4605
|
+
41: [function (require, module, exports) {
|
|
4295
4606
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4296
4607
|
|
|
4297
4608
|
var CommentBrief = /*#__PURE__*/function (_PlattarBase3) {
|
|
4298
4609
|
_inherits(CommentBrief, _PlattarBase3);
|
|
4299
4610
|
|
|
4300
|
-
var
|
|
4611
|
+
var _super12 = _createSuper(CommentBrief);
|
|
4301
4612
|
|
|
4302
4613
|
function CommentBrief() {
|
|
4303
4614
|
_classCallCheck(this, CommentBrief);
|
|
4304
4615
|
|
|
4305
|
-
return
|
|
4616
|
+
return _super12.apply(this, arguments);
|
|
4306
4617
|
}
|
|
4307
4618
|
|
|
4308
4619
|
_createClass(CommentBrief, null, [{
|
|
@@ -4317,20 +4628,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4317
4628
|
|
|
4318
4629
|
module.exports = CommentBrief;
|
|
4319
4630
|
}, {
|
|
4320
|
-
"../interfaces/plattar-base":
|
|
4631
|
+
"../interfaces/plattar-base": 55
|
|
4321
4632
|
}],
|
|
4322
|
-
|
|
4633
|
+
42: [function (require, module, exports) {
|
|
4323
4634
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4324
4635
|
|
|
4325
4636
|
var CommentQuote = /*#__PURE__*/function (_PlattarBase4) {
|
|
4326
4637
|
_inherits(CommentQuote, _PlattarBase4);
|
|
4327
4638
|
|
|
4328
|
-
var
|
|
4639
|
+
var _super13 = _createSuper(CommentQuote);
|
|
4329
4640
|
|
|
4330
4641
|
function CommentQuote() {
|
|
4331
4642
|
_classCallCheck(this, CommentQuote);
|
|
4332
4643
|
|
|
4333
|
-
return
|
|
4644
|
+
return _super13.apply(this, arguments);
|
|
4334
4645
|
}
|
|
4335
4646
|
|
|
4336
4647
|
_createClass(CommentQuote, null, [{
|
|
@@ -4345,20 +4656,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4345
4656
|
|
|
4346
4657
|
module.exports = CommentQuote;
|
|
4347
4658
|
}, {
|
|
4348
|
-
"../interfaces/plattar-base":
|
|
4659
|
+
"../interfaces/plattar-base": 55
|
|
4349
4660
|
}],
|
|
4350
|
-
|
|
4661
|
+
43: [function (require, module, exports) {
|
|
4351
4662
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4352
4663
|
|
|
4353
4664
|
var CommentSolution = /*#__PURE__*/function (_PlattarBase5) {
|
|
4354
4665
|
_inherits(CommentSolution, _PlattarBase5);
|
|
4355
4666
|
|
|
4356
|
-
var
|
|
4667
|
+
var _super14 = _createSuper(CommentSolution);
|
|
4357
4668
|
|
|
4358
4669
|
function CommentSolution() {
|
|
4359
4670
|
_classCallCheck(this, CommentSolution);
|
|
4360
4671
|
|
|
4361
|
-
return
|
|
4672
|
+
return _super14.apply(this, arguments);
|
|
4362
4673
|
}
|
|
4363
4674
|
|
|
4364
4675
|
_createClass(CommentSolution, null, [{
|
|
@@ -4373,20 +4684,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4373
4684
|
|
|
4374
4685
|
module.exports = CommentSolution;
|
|
4375
4686
|
}, {
|
|
4376
|
-
"../interfaces/plattar-base":
|
|
4687
|
+
"../interfaces/plattar-base": 55
|
|
4377
4688
|
}],
|
|
4378
|
-
|
|
4689
|
+
44: [function (require, module, exports) {
|
|
4379
4690
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4380
4691
|
|
|
4381
4692
|
var Folder = /*#__PURE__*/function (_PlattarBase6) {
|
|
4382
4693
|
_inherits(Folder, _PlattarBase6);
|
|
4383
4694
|
|
|
4384
|
-
var
|
|
4695
|
+
var _super15 = _createSuper(Folder);
|
|
4385
4696
|
|
|
4386
4697
|
function Folder() {
|
|
4387
4698
|
_classCallCheck(this, Folder);
|
|
4388
4699
|
|
|
4389
|
-
return
|
|
4700
|
+
return _super15.apply(this, arguments);
|
|
4390
4701
|
}
|
|
4391
4702
|
|
|
4392
4703
|
_createClass(Folder, null, [{
|
|
@@ -4401,20 +4712,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4401
4712
|
|
|
4402
4713
|
module.exports = Folder;
|
|
4403
4714
|
}, {
|
|
4404
|
-
"../interfaces/plattar-base":
|
|
4715
|
+
"../interfaces/plattar-base": 55
|
|
4405
4716
|
}],
|
|
4406
|
-
|
|
4717
|
+
45: [function (require, module, exports) {
|
|
4407
4718
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4408
4719
|
|
|
4409
4720
|
var PipelineUser = /*#__PURE__*/function (_PlattarBase7) {
|
|
4410
4721
|
_inherits(PipelineUser, _PlattarBase7);
|
|
4411
4722
|
|
|
4412
|
-
var
|
|
4723
|
+
var _super16 = _createSuper(PipelineUser);
|
|
4413
4724
|
|
|
4414
4725
|
function PipelineUser() {
|
|
4415
4726
|
_classCallCheck(this, PipelineUser);
|
|
4416
4727
|
|
|
4417
|
-
return
|
|
4728
|
+
return _super16.apply(this, arguments);
|
|
4418
4729
|
}
|
|
4419
4730
|
|
|
4420
4731
|
_createClass(PipelineUser, null, [{
|
|
@@ -4429,20 +4740,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4429
4740
|
|
|
4430
4741
|
module.exports = PipelineUser;
|
|
4431
4742
|
}, {
|
|
4432
|
-
"../interfaces/plattar-base":
|
|
4743
|
+
"../interfaces/plattar-base": 55
|
|
4433
4744
|
}],
|
|
4434
|
-
|
|
4745
|
+
46: [function (require, module, exports) {
|
|
4435
4746
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4436
4747
|
|
|
4437
4748
|
var Quote = /*#__PURE__*/function (_PlattarBase8) {
|
|
4438
4749
|
_inherits(Quote, _PlattarBase8);
|
|
4439
4750
|
|
|
4440
|
-
var
|
|
4751
|
+
var _super17 = _createSuper(Quote);
|
|
4441
4752
|
|
|
4442
4753
|
function Quote() {
|
|
4443
4754
|
_classCallCheck(this, Quote);
|
|
4444
4755
|
|
|
4445
|
-
return
|
|
4756
|
+
return _super17.apply(this, arguments);
|
|
4446
4757
|
}
|
|
4447
4758
|
|
|
4448
4759
|
_createClass(Quote, null, [{
|
|
@@ -4457,20 +4768,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4457
4768
|
|
|
4458
4769
|
module.exports = Quote;
|
|
4459
4770
|
}, {
|
|
4460
|
-
"../interfaces/plattar-base":
|
|
4771
|
+
"../interfaces/plattar-base": 55
|
|
4461
4772
|
}],
|
|
4462
|
-
|
|
4773
|
+
47: [function (require, module, exports) {
|
|
4463
4774
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4464
4775
|
|
|
4465
4776
|
var Rating = /*#__PURE__*/function (_PlattarBase9) {
|
|
4466
4777
|
_inherits(Rating, _PlattarBase9);
|
|
4467
4778
|
|
|
4468
|
-
var
|
|
4779
|
+
var _super18 = _createSuper(Rating);
|
|
4469
4780
|
|
|
4470
4781
|
function Rating() {
|
|
4471
4782
|
_classCallCheck(this, Rating);
|
|
4472
4783
|
|
|
4473
|
-
return
|
|
4784
|
+
return _super18.apply(this, arguments);
|
|
4474
4785
|
}
|
|
4475
4786
|
|
|
4476
4787
|
_createClass(Rating, null, [{
|
|
@@ -4485,20 +4796,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4485
4796
|
|
|
4486
4797
|
module.exports = Rating;
|
|
4487
4798
|
}, {
|
|
4488
|
-
"../interfaces/plattar-base":
|
|
4799
|
+
"../interfaces/plattar-base": 55
|
|
4489
4800
|
}],
|
|
4490
|
-
|
|
4801
|
+
48: [function (require, module, exports) {
|
|
4491
4802
|
var PlattarBase = require("../interfaces/plattar-base");
|
|
4492
4803
|
|
|
4493
4804
|
var Solution = /*#__PURE__*/function (_PlattarBase10) {
|
|
4494
4805
|
_inherits(Solution, _PlattarBase10);
|
|
4495
4806
|
|
|
4496
|
-
var
|
|
4807
|
+
var _super19 = _createSuper(Solution);
|
|
4497
4808
|
|
|
4498
4809
|
function Solution() {
|
|
4499
4810
|
_classCallCheck(this, Solution);
|
|
4500
4811
|
|
|
4501
|
-
return
|
|
4812
|
+
return _super19.apply(this, arguments);
|
|
4502
4813
|
}
|
|
4503
4814
|
|
|
4504
4815
|
_createClass(Solution, null, [{
|
|
@@ -4513,20 +4824,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4513
4824
|
|
|
4514
4825
|
module.exports = Solution;
|
|
4515
4826
|
}, {
|
|
4516
|
-
"../interfaces/plattar-base":
|
|
4827
|
+
"../interfaces/plattar-base": 55
|
|
4517
4828
|
}],
|
|
4518
|
-
|
|
4829
|
+
49: [function (require, module, exports) {
|
|
4519
4830
|
var FileBase = require("./file-base.js");
|
|
4520
4831
|
|
|
4521
4832
|
var FileAudio = /*#__PURE__*/function (_FileBase) {
|
|
4522
4833
|
_inherits(FileAudio, _FileBase);
|
|
4523
4834
|
|
|
4524
|
-
var
|
|
4835
|
+
var _super20 = _createSuper(FileAudio);
|
|
4525
4836
|
|
|
4526
4837
|
function FileAudio() {
|
|
4527
4838
|
_classCallCheck(this, FileAudio);
|
|
4528
4839
|
|
|
4529
|
-
return
|
|
4840
|
+
return _super20.apply(this, arguments);
|
|
4530
4841
|
}
|
|
4531
4842
|
|
|
4532
4843
|
_createClass(FileAudio, null, [{
|
|
@@ -4541,9 +4852,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4541
4852
|
|
|
4542
4853
|
module.exports = FileAudio;
|
|
4543
4854
|
}, {
|
|
4544
|
-
"./file-base.js":
|
|
4855
|
+
"./file-base.js": 50
|
|
4545
4856
|
}],
|
|
4546
|
-
|
|
4857
|
+
50: [function (require, module, exports) {
|
|
4547
4858
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
4548
4859
|
|
|
4549
4860
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -4551,20 +4862,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4551
4862
|
var FileBase = /*#__PURE__*/function (_PlattarBase11) {
|
|
4552
4863
|
_inherits(FileBase, _PlattarBase11);
|
|
4553
4864
|
|
|
4554
|
-
var
|
|
4865
|
+
var _super21 = _createSuper(FileBase);
|
|
4555
4866
|
|
|
4556
4867
|
function FileBase(id, server) {
|
|
4557
|
-
var
|
|
4868
|
+
var _this35;
|
|
4558
4869
|
|
|
4559
4870
|
_classCallCheck(this, FileBase);
|
|
4560
4871
|
|
|
4561
|
-
|
|
4872
|
+
_this35 = _super21.call(this, id, server || Server["default"]());
|
|
4562
4873
|
|
|
4563
|
-
if (
|
|
4874
|
+
if (_this35.constructor === FileBase) {
|
|
4564
4875
|
throw new Error("FileBase is abstract and cannot be created");
|
|
4565
4876
|
}
|
|
4566
4877
|
|
|
4567
|
-
return
|
|
4878
|
+
return _this35;
|
|
4568
4879
|
}
|
|
4569
4880
|
|
|
4570
4881
|
_createClass(FileBase, [{
|
|
@@ -4629,25 +4940,25 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4629
4940
|
|
|
4630
4941
|
module.exports = FileBase;
|
|
4631
4942
|
}, {
|
|
4632
|
-
"../../server/plattar-server.js":
|
|
4633
|
-
"../interfaces/plattar-base.js":
|
|
4634
|
-
"./file-audio.js":
|
|
4635
|
-
"./file-image.js":
|
|
4636
|
-
"./file-model.js":
|
|
4637
|
-
"./file-video.js":
|
|
4943
|
+
"../../server/plattar-server.js": 38,
|
|
4944
|
+
"../interfaces/plattar-base.js": 55,
|
|
4945
|
+
"./file-audio.js": 49,
|
|
4946
|
+
"./file-image.js": 51,
|
|
4947
|
+
"./file-model.js": 52,
|
|
4948
|
+
"./file-video.js": 54
|
|
4638
4949
|
}],
|
|
4639
|
-
|
|
4950
|
+
51: [function (require, module, exports) {
|
|
4640
4951
|
var FileBase = require("./file-base.js");
|
|
4641
4952
|
|
|
4642
4953
|
var FileImage = /*#__PURE__*/function (_FileBase2) {
|
|
4643
4954
|
_inherits(FileImage, _FileBase2);
|
|
4644
4955
|
|
|
4645
|
-
var
|
|
4956
|
+
var _super22 = _createSuper(FileImage);
|
|
4646
4957
|
|
|
4647
4958
|
function FileImage() {
|
|
4648
4959
|
_classCallCheck(this, FileImage);
|
|
4649
4960
|
|
|
4650
|
-
return
|
|
4961
|
+
return _super22.apply(this, arguments);
|
|
4651
4962
|
}
|
|
4652
4963
|
|
|
4653
4964
|
_createClass(FileImage, null, [{
|
|
@@ -4662,20 +4973,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4662
4973
|
|
|
4663
4974
|
module.exports = FileImage;
|
|
4664
4975
|
}, {
|
|
4665
|
-
"./file-base.js":
|
|
4976
|
+
"./file-base.js": 50
|
|
4666
4977
|
}],
|
|
4667
|
-
|
|
4978
|
+
52: [function (require, module, exports) {
|
|
4668
4979
|
var FileBase = require("./file-base.js");
|
|
4669
4980
|
|
|
4670
4981
|
var FileModel = /*#__PURE__*/function (_FileBase3) {
|
|
4671
4982
|
_inherits(FileModel, _FileBase3);
|
|
4672
4983
|
|
|
4673
|
-
var
|
|
4984
|
+
var _super23 = _createSuper(FileModel);
|
|
4674
4985
|
|
|
4675
4986
|
function FileModel() {
|
|
4676
4987
|
_classCallCheck(this, FileModel);
|
|
4677
4988
|
|
|
4678
|
-
return
|
|
4989
|
+
return _super23.apply(this, arguments);
|
|
4679
4990
|
}
|
|
4680
4991
|
|
|
4681
4992
|
_createClass(FileModel, null, [{
|
|
@@ -4690,20 +5001,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4690
5001
|
|
|
4691
5002
|
module.exports = FileModel;
|
|
4692
5003
|
}, {
|
|
4693
|
-
"./file-base.js":
|
|
5004
|
+
"./file-base.js": 50
|
|
4694
5005
|
}],
|
|
4695
|
-
|
|
5006
|
+
53: [function (require, module, exports) {
|
|
4696
5007
|
var FileBase = require("./file-base.js");
|
|
4697
5008
|
|
|
4698
5009
|
var FileScript = /*#__PURE__*/function (_FileBase4) {
|
|
4699
5010
|
_inherits(FileScript, _FileBase4);
|
|
4700
5011
|
|
|
4701
|
-
var
|
|
5012
|
+
var _super24 = _createSuper(FileScript);
|
|
4702
5013
|
|
|
4703
5014
|
function FileScript() {
|
|
4704
5015
|
_classCallCheck(this, FileScript);
|
|
4705
5016
|
|
|
4706
|
-
return
|
|
5017
|
+
return _super24.apply(this, arguments);
|
|
4707
5018
|
}
|
|
4708
5019
|
|
|
4709
5020
|
_createClass(FileScript, null, [{
|
|
@@ -4718,20 +5029,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4718
5029
|
|
|
4719
5030
|
module.exports = FileScript;
|
|
4720
5031
|
}, {
|
|
4721
|
-
"./file-base.js":
|
|
5032
|
+
"./file-base.js": 50
|
|
4722
5033
|
}],
|
|
4723
|
-
|
|
5034
|
+
54: [function (require, module, exports) {
|
|
4724
5035
|
var FileBase = require("./file-base.js");
|
|
4725
5036
|
|
|
4726
5037
|
var FileVideo = /*#__PURE__*/function (_FileBase5) {
|
|
4727
5038
|
_inherits(FileVideo, _FileBase5);
|
|
4728
5039
|
|
|
4729
|
-
var
|
|
5040
|
+
var _super25 = _createSuper(FileVideo);
|
|
4730
5041
|
|
|
4731
5042
|
function FileVideo() {
|
|
4732
5043
|
_classCallCheck(this, FileVideo);
|
|
4733
5044
|
|
|
4734
|
-
return
|
|
5045
|
+
return _super25.apply(this, arguments);
|
|
4735
5046
|
}
|
|
4736
5047
|
|
|
4737
5048
|
_createClass(FileVideo, null, [{
|
|
@@ -4746,9 +5057,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4746
5057
|
|
|
4747
5058
|
module.exports = FileVideo;
|
|
4748
5059
|
}, {
|
|
4749
|
-
"./file-base.js":
|
|
5060
|
+
"./file-base.js": 50
|
|
4750
5061
|
}],
|
|
4751
|
-
|
|
5062
|
+
55: [function (require, module, exports) {
|
|
4752
5063
|
var PlattarObject = require("./plattar-object.js");
|
|
4753
5064
|
|
|
4754
5065
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -4756,31 +5067,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4756
5067
|
var PlattarBase = /*#__PURE__*/function (_PlattarObject) {
|
|
4757
5068
|
_inherits(PlattarBase, _PlattarObject);
|
|
4758
5069
|
|
|
4759
|
-
var
|
|
5070
|
+
var _super26 = _createSuper(PlattarBase);
|
|
4760
5071
|
|
|
4761
5072
|
function PlattarBase(id, server) {
|
|
4762
|
-
var
|
|
5073
|
+
var _this36;
|
|
4763
5074
|
|
|
4764
5075
|
_classCallCheck(this, PlattarBase);
|
|
4765
5076
|
|
|
4766
|
-
|
|
5077
|
+
_this36 = _super26.call(this, id, server || Server["default"]());
|
|
4767
5078
|
|
|
4768
|
-
if (
|
|
5079
|
+
if (_this36.constructor === PlattarBase) {
|
|
4769
5080
|
throw new Error("PlattarBase is abstract and cannot be created");
|
|
4770
5081
|
}
|
|
4771
5082
|
|
|
4772
|
-
return
|
|
5083
|
+
return _this36;
|
|
4773
5084
|
}
|
|
4774
5085
|
|
|
4775
|
-
return PlattarBase;
|
|
5086
|
+
return _createClass(PlattarBase);
|
|
4776
5087
|
}(PlattarObject);
|
|
4777
5088
|
|
|
4778
5089
|
module.exports = PlattarBase;
|
|
4779
5090
|
}, {
|
|
4780
|
-
"../../server/plattar-server.js":
|
|
4781
|
-
"./plattar-object.js":
|
|
5091
|
+
"../../server/plattar-server.js": 38,
|
|
5092
|
+
"./plattar-object.js": 57
|
|
4782
5093
|
}],
|
|
4783
|
-
|
|
5094
|
+
56: [function (require, module, exports) {
|
|
4784
5095
|
/**
|
|
4785
5096
|
* Handles the list of relationships for the provided object
|
|
4786
5097
|
*/
|
|
@@ -4841,7 +5152,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4841
5152
|
}, {
|
|
4842
5153
|
key: "filter",
|
|
4843
5154
|
value: function filter(obj, id) {
|
|
4844
|
-
var
|
|
5155
|
+
var _this37 = this;
|
|
4845
5156
|
|
|
4846
5157
|
if (!obj) {
|
|
4847
5158
|
return [];
|
|
@@ -4859,7 +5170,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4859
5170
|
if (Array.isArray(type)) {
|
|
4860
5171
|
var compiledList = [];
|
|
4861
5172
|
type.forEach(function (inObject) {
|
|
4862
|
-
var retArray =
|
|
5173
|
+
var retArray = _this37.filter(inObject, id);
|
|
4863
5174
|
|
|
4864
5175
|
if (retArray.length > 0) {
|
|
4865
5176
|
compiledList = compiledList.concat(retArray);
|
|
@@ -4916,9 +5227,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
4916
5227
|
|
|
4917
5228
|
module.exports = PlattarObjectRelations;
|
|
4918
5229
|
}, {
|
|
4919
|
-
"../../util/plattar-util.js":
|
|
5230
|
+
"../../util/plattar-util.js": 98
|
|
4920
5231
|
}],
|
|
4921
|
-
|
|
5232
|
+
57: [function (require, module, exports) {
|
|
4922
5233
|
var PlattarQuery = require("../../server/plattar-query.js");
|
|
4923
5234
|
|
|
4924
5235
|
var PlattarObjectRelations = require("./plattar-object-relations.js");
|
|
@@ -5062,7 +5373,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5062
5373
|
}, {
|
|
5063
5374
|
key: "include",
|
|
5064
5375
|
value: function include() {
|
|
5065
|
-
var
|
|
5376
|
+
var _this38 = this;
|
|
5066
5377
|
|
|
5067
5378
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
5068
5379
|
args[_key6] = arguments[_key6];
|
|
@@ -5078,15 +5389,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5078
5389
|
if (Array.isArray(obj)) {
|
|
5079
5390
|
obj.forEach(function (strObject) {
|
|
5080
5391
|
if (typeof strObject === "string" || strObject instanceof String) {
|
|
5081
|
-
includes.push("".concat(
|
|
5392
|
+
includes.push("".concat(_this38.type(), ".").concat(strObject));
|
|
5082
5393
|
} else {
|
|
5083
|
-
throw new Error("PlattarObject." +
|
|
5394
|
+
throw new Error("PlattarObject." + _this38.type() + ".include(...args) - argument of Array must only include Strings");
|
|
5084
5395
|
}
|
|
5085
5396
|
});
|
|
5086
5397
|
} else if (obj.prototype instanceof PlattarObject) {
|
|
5087
|
-
includes.push("".concat(
|
|
5398
|
+
includes.push("".concat(_this38.type(), ".").concat(obj.type()));
|
|
5088
5399
|
} else {
|
|
5089
|
-
throw new Error("PlattarObject." +
|
|
5400
|
+
throw new Error("PlattarObject." + _this38.type() + ".include(...args) - argument must be of type PlattarObject or Array but was type=" + _typeof(obj) + " value=" + obj);
|
|
5090
5401
|
}
|
|
5091
5402
|
});
|
|
5092
5403
|
return includes;
|
|
@@ -5098,21 +5409,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5098
5409
|
|
|
5099
5410
|
module.exports = PlattarObject;
|
|
5100
5411
|
}, {
|
|
5101
|
-
"../../server/plattar-query.js":
|
|
5102
|
-
"./plattar-object-relations.js":
|
|
5412
|
+
"../../server/plattar-query.js": 37,
|
|
5413
|
+
"./plattar-object-relations.js": 56
|
|
5103
5414
|
}],
|
|
5104
|
-
|
|
5415
|
+
58: [function (require, module, exports) {
|
|
5105
5416
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5106
5417
|
|
|
5107
5418
|
var ApplicationBuild = /*#__PURE__*/function (_PlattarBase12) {
|
|
5108
5419
|
_inherits(ApplicationBuild, _PlattarBase12);
|
|
5109
5420
|
|
|
5110
|
-
var
|
|
5421
|
+
var _super27 = _createSuper(ApplicationBuild);
|
|
5111
5422
|
|
|
5112
5423
|
function ApplicationBuild() {
|
|
5113
5424
|
_classCallCheck(this, ApplicationBuild);
|
|
5114
5425
|
|
|
5115
|
-
return
|
|
5426
|
+
return _super27.apply(this, arguments);
|
|
5116
5427
|
}
|
|
5117
5428
|
|
|
5118
5429
|
_createClass(ApplicationBuild, null, [{
|
|
@@ -5127,20 +5438,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5127
5438
|
|
|
5128
5439
|
module.exports = ApplicationBuild;
|
|
5129
5440
|
}, {
|
|
5130
|
-
"../interfaces/plattar-base.js":
|
|
5441
|
+
"../interfaces/plattar-base.js": 55
|
|
5131
5442
|
}],
|
|
5132
|
-
|
|
5443
|
+
59: [function (require, module, exports) {
|
|
5133
5444
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5134
5445
|
|
|
5135
5446
|
var AssetLibrary = /*#__PURE__*/function (_PlattarBase13) {
|
|
5136
5447
|
_inherits(AssetLibrary, _PlattarBase13);
|
|
5137
5448
|
|
|
5138
|
-
var
|
|
5449
|
+
var _super28 = _createSuper(AssetLibrary);
|
|
5139
5450
|
|
|
5140
5451
|
function AssetLibrary() {
|
|
5141
5452
|
_classCallCheck(this, AssetLibrary);
|
|
5142
5453
|
|
|
5143
|
-
return
|
|
5454
|
+
return _super28.apply(this, arguments);
|
|
5144
5455
|
}
|
|
5145
5456
|
|
|
5146
5457
|
_createClass(AssetLibrary, null, [{
|
|
@@ -5155,20 +5466,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5155
5466
|
|
|
5156
5467
|
module.exports = AssetLibrary;
|
|
5157
5468
|
}, {
|
|
5158
|
-
"../interfaces/plattar-base.js":
|
|
5469
|
+
"../interfaces/plattar-base.js": 55
|
|
5159
5470
|
}],
|
|
5160
|
-
|
|
5471
|
+
60: [function (require, module, exports) {
|
|
5161
5472
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5162
5473
|
|
|
5163
5474
|
var AsyncJob = /*#__PURE__*/function (_PlattarBase14) {
|
|
5164
5475
|
_inherits(AsyncJob, _PlattarBase14);
|
|
5165
5476
|
|
|
5166
|
-
var
|
|
5477
|
+
var _super29 = _createSuper(AsyncJob);
|
|
5167
5478
|
|
|
5168
5479
|
function AsyncJob() {
|
|
5169
5480
|
_classCallCheck(this, AsyncJob);
|
|
5170
5481
|
|
|
5171
|
-
return
|
|
5482
|
+
return _super29.apply(this, arguments);
|
|
5172
5483
|
}
|
|
5173
5484
|
|
|
5174
5485
|
_createClass(AsyncJob, [{
|
|
@@ -5188,20 +5499,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5188
5499
|
|
|
5189
5500
|
module.exports = AsyncJob;
|
|
5190
5501
|
}, {
|
|
5191
|
-
"../interfaces/plattar-base.js":
|
|
5502
|
+
"../interfaces/plattar-base.js": 55
|
|
5192
5503
|
}],
|
|
5193
|
-
|
|
5504
|
+
61: [function (require, module, exports) {
|
|
5194
5505
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5195
5506
|
|
|
5196
5507
|
var ScriptEvent = /*#__PURE__*/function (_PlattarBase15) {
|
|
5197
5508
|
_inherits(ScriptEvent, _PlattarBase15);
|
|
5198
5509
|
|
|
5199
|
-
var
|
|
5510
|
+
var _super30 = _createSuper(ScriptEvent);
|
|
5200
5511
|
|
|
5201
5512
|
function ScriptEvent() {
|
|
5202
5513
|
_classCallCheck(this, ScriptEvent);
|
|
5203
5514
|
|
|
5204
|
-
return
|
|
5515
|
+
return _super30.apply(this, arguments);
|
|
5205
5516
|
}
|
|
5206
5517
|
|
|
5207
5518
|
_createClass(ScriptEvent, null, [{
|
|
@@ -5216,20 +5527,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5216
5527
|
|
|
5217
5528
|
module.exports = ScriptEvent;
|
|
5218
5529
|
}, {
|
|
5219
|
-
"../interfaces/plattar-base.js":
|
|
5530
|
+
"../interfaces/plattar-base.js": 55
|
|
5220
5531
|
}],
|
|
5221
|
-
|
|
5532
|
+
62: [function (require, module, exports) {
|
|
5222
5533
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5223
5534
|
|
|
5224
5535
|
var Tag = /*#__PURE__*/function (_PlattarBase16) {
|
|
5225
5536
|
_inherits(Tag, _PlattarBase16);
|
|
5226
5537
|
|
|
5227
|
-
var
|
|
5538
|
+
var _super31 = _createSuper(Tag);
|
|
5228
5539
|
|
|
5229
5540
|
function Tag() {
|
|
5230
5541
|
_classCallCheck(this, Tag);
|
|
5231
5542
|
|
|
5232
|
-
return
|
|
5543
|
+
return _super31.apply(this, arguments);
|
|
5233
5544
|
}
|
|
5234
5545
|
|
|
5235
5546
|
_createClass(Tag, null, [{
|
|
@@ -5244,9 +5555,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5244
5555
|
|
|
5245
5556
|
module.exports = Tag;
|
|
5246
5557
|
}, {
|
|
5247
|
-
"../interfaces/plattar-base.js":
|
|
5558
|
+
"../interfaces/plattar-base.js": 55
|
|
5248
5559
|
}],
|
|
5249
|
-
|
|
5560
|
+
63: [function (require, module, exports) {
|
|
5250
5561
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5251
5562
|
|
|
5252
5563
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5254,20 +5565,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5254
5565
|
var CardBase = /*#__PURE__*/function (_PlattarBase17) {
|
|
5255
5566
|
_inherits(CardBase, _PlattarBase17);
|
|
5256
5567
|
|
|
5257
|
-
var
|
|
5568
|
+
var _super32 = _createSuper(CardBase);
|
|
5258
5569
|
|
|
5259
5570
|
function CardBase(id, server) {
|
|
5260
|
-
var
|
|
5571
|
+
var _this39;
|
|
5261
5572
|
|
|
5262
5573
|
_classCallCheck(this, CardBase);
|
|
5263
5574
|
|
|
5264
|
-
|
|
5575
|
+
_this39 = _super32.call(this, id, server || Server["default"]());
|
|
5265
5576
|
|
|
5266
|
-
if (
|
|
5577
|
+
if (_this39.constructor === CardBase) {
|
|
5267
5578
|
throw new Error("CardBase is abstract and cannot be created");
|
|
5268
5579
|
}
|
|
5269
5580
|
|
|
5270
|
-
return
|
|
5581
|
+
return _this39;
|
|
5271
5582
|
}
|
|
5272
5583
|
|
|
5273
5584
|
_createClass(CardBase, null, [{
|
|
@@ -5304,32 +5615,32 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5304
5615
|
|
|
5305
5616
|
module.exports = CardBase;
|
|
5306
5617
|
}, {
|
|
5307
|
-
"../../server/plattar-server.js":
|
|
5308
|
-
"../interfaces/plattar-base.js":
|
|
5309
|
-
"./card-button.js":
|
|
5310
|
-
"./card-html.js":
|
|
5311
|
-
"./card-iframe.js":
|
|
5312
|
-
"./card-image.js":
|
|
5313
|
-
"./card-map.js":
|
|
5314
|
-
"./card-paragraph.js":
|
|
5315
|
-
"./card-row.js":
|
|
5316
|
-
"./card-slider.js":
|
|
5317
|
-
"./card-title.js":
|
|
5318
|
-
"./card-video.js":
|
|
5319
|
-
"./card-youtube.js":
|
|
5618
|
+
"../../server/plattar-server.js": 38,
|
|
5619
|
+
"../interfaces/plattar-base.js": 55,
|
|
5620
|
+
"./card-button.js": 64,
|
|
5621
|
+
"./card-html.js": 65,
|
|
5622
|
+
"./card-iframe.js": 66,
|
|
5623
|
+
"./card-image.js": 67,
|
|
5624
|
+
"./card-map.js": 68,
|
|
5625
|
+
"./card-paragraph.js": 69,
|
|
5626
|
+
"./card-row.js": 70,
|
|
5627
|
+
"./card-slider.js": 71,
|
|
5628
|
+
"./card-title.js": 72,
|
|
5629
|
+
"./card-video.js": 73,
|
|
5630
|
+
"./card-youtube.js": 74
|
|
5320
5631
|
}],
|
|
5321
|
-
|
|
5632
|
+
64: [function (require, module, exports) {
|
|
5322
5633
|
var CardBase = require("./card-base.js");
|
|
5323
5634
|
|
|
5324
5635
|
var CardButton = /*#__PURE__*/function (_CardBase) {
|
|
5325
5636
|
_inherits(CardButton, _CardBase);
|
|
5326
5637
|
|
|
5327
|
-
var
|
|
5638
|
+
var _super33 = _createSuper(CardButton);
|
|
5328
5639
|
|
|
5329
5640
|
function CardButton() {
|
|
5330
5641
|
_classCallCheck(this, CardButton);
|
|
5331
5642
|
|
|
5332
|
-
return
|
|
5643
|
+
return _super33.apply(this, arguments);
|
|
5333
5644
|
}
|
|
5334
5645
|
|
|
5335
5646
|
_createClass(CardButton, null, [{
|
|
@@ -5344,20 +5655,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5344
5655
|
|
|
5345
5656
|
module.exports = CardButton;
|
|
5346
5657
|
}, {
|
|
5347
|
-
"./card-base.js":
|
|
5658
|
+
"./card-base.js": 63
|
|
5348
5659
|
}],
|
|
5349
|
-
|
|
5660
|
+
65: [function (require, module, exports) {
|
|
5350
5661
|
var CardBase = require("./card-base.js");
|
|
5351
5662
|
|
|
5352
5663
|
var CardHTML = /*#__PURE__*/function (_CardBase2) {
|
|
5353
5664
|
_inherits(CardHTML, _CardBase2);
|
|
5354
5665
|
|
|
5355
|
-
var
|
|
5666
|
+
var _super34 = _createSuper(CardHTML);
|
|
5356
5667
|
|
|
5357
5668
|
function CardHTML() {
|
|
5358
5669
|
_classCallCheck(this, CardHTML);
|
|
5359
5670
|
|
|
5360
|
-
return
|
|
5671
|
+
return _super34.apply(this, arguments);
|
|
5361
5672
|
}
|
|
5362
5673
|
|
|
5363
5674
|
_createClass(CardHTML, null, [{
|
|
@@ -5372,20 +5683,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5372
5683
|
|
|
5373
5684
|
module.exports = CardHTML;
|
|
5374
5685
|
}, {
|
|
5375
|
-
"./card-base.js":
|
|
5686
|
+
"./card-base.js": 63
|
|
5376
5687
|
}],
|
|
5377
|
-
|
|
5688
|
+
66: [function (require, module, exports) {
|
|
5378
5689
|
var CardBase = require("./card-base.js");
|
|
5379
5690
|
|
|
5380
5691
|
var CardIFrame = /*#__PURE__*/function (_CardBase3) {
|
|
5381
5692
|
_inherits(CardIFrame, _CardBase3);
|
|
5382
5693
|
|
|
5383
|
-
var
|
|
5694
|
+
var _super35 = _createSuper(CardIFrame);
|
|
5384
5695
|
|
|
5385
5696
|
function CardIFrame() {
|
|
5386
5697
|
_classCallCheck(this, CardIFrame);
|
|
5387
5698
|
|
|
5388
|
-
return
|
|
5699
|
+
return _super35.apply(this, arguments);
|
|
5389
5700
|
}
|
|
5390
5701
|
|
|
5391
5702
|
_createClass(CardIFrame, null, [{
|
|
@@ -5400,20 +5711,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5400
5711
|
|
|
5401
5712
|
module.exports = CardIFrame;
|
|
5402
5713
|
}, {
|
|
5403
|
-
"./card-base.js":
|
|
5714
|
+
"./card-base.js": 63
|
|
5404
5715
|
}],
|
|
5405
|
-
|
|
5716
|
+
67: [function (require, module, exports) {
|
|
5406
5717
|
var CardBase = require("./card-base.js");
|
|
5407
5718
|
|
|
5408
5719
|
var CardImage = /*#__PURE__*/function (_CardBase4) {
|
|
5409
5720
|
_inherits(CardImage, _CardBase4);
|
|
5410
5721
|
|
|
5411
|
-
var
|
|
5722
|
+
var _super36 = _createSuper(CardImage);
|
|
5412
5723
|
|
|
5413
5724
|
function CardImage() {
|
|
5414
5725
|
_classCallCheck(this, CardImage);
|
|
5415
5726
|
|
|
5416
|
-
return
|
|
5727
|
+
return _super36.apply(this, arguments);
|
|
5417
5728
|
}
|
|
5418
5729
|
|
|
5419
5730
|
_createClass(CardImage, null, [{
|
|
@@ -5428,20 +5739,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5428
5739
|
|
|
5429
5740
|
module.exports = CardImage;
|
|
5430
5741
|
}, {
|
|
5431
|
-
"./card-base.js":
|
|
5742
|
+
"./card-base.js": 63
|
|
5432
5743
|
}],
|
|
5433
|
-
|
|
5744
|
+
68: [function (require, module, exports) {
|
|
5434
5745
|
var CardBase = require("./card-base.js");
|
|
5435
5746
|
|
|
5436
5747
|
var CardMap = /*#__PURE__*/function (_CardBase5) {
|
|
5437
5748
|
_inherits(CardMap, _CardBase5);
|
|
5438
5749
|
|
|
5439
|
-
var
|
|
5750
|
+
var _super37 = _createSuper(CardMap);
|
|
5440
5751
|
|
|
5441
5752
|
function CardMap() {
|
|
5442
5753
|
_classCallCheck(this, CardMap);
|
|
5443
5754
|
|
|
5444
|
-
return
|
|
5755
|
+
return _super37.apply(this, arguments);
|
|
5445
5756
|
}
|
|
5446
5757
|
|
|
5447
5758
|
_createClass(CardMap, null, [{
|
|
@@ -5456,20 +5767,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5456
5767
|
|
|
5457
5768
|
module.exports = CardMap;
|
|
5458
5769
|
}, {
|
|
5459
|
-
"./card-base.js":
|
|
5770
|
+
"./card-base.js": 63
|
|
5460
5771
|
}],
|
|
5461
|
-
|
|
5772
|
+
69: [function (require, module, exports) {
|
|
5462
5773
|
var CardBase = require("./card-base.js");
|
|
5463
5774
|
|
|
5464
5775
|
var CardParagraph = /*#__PURE__*/function (_CardBase6) {
|
|
5465
5776
|
_inherits(CardParagraph, _CardBase6);
|
|
5466
5777
|
|
|
5467
|
-
var
|
|
5778
|
+
var _super38 = _createSuper(CardParagraph);
|
|
5468
5779
|
|
|
5469
5780
|
function CardParagraph() {
|
|
5470
5781
|
_classCallCheck(this, CardParagraph);
|
|
5471
5782
|
|
|
5472
|
-
return
|
|
5783
|
+
return _super38.apply(this, arguments);
|
|
5473
5784
|
}
|
|
5474
5785
|
|
|
5475
5786
|
_createClass(CardParagraph, null, [{
|
|
@@ -5484,20 +5795,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5484
5795
|
|
|
5485
5796
|
module.exports = CardParagraph;
|
|
5486
5797
|
}, {
|
|
5487
|
-
"./card-base.js":
|
|
5798
|
+
"./card-base.js": 63
|
|
5488
5799
|
}],
|
|
5489
|
-
|
|
5800
|
+
70: [function (require, module, exports) {
|
|
5490
5801
|
var CardBase = require("./card-base.js");
|
|
5491
5802
|
|
|
5492
5803
|
var CardRow = /*#__PURE__*/function (_CardBase7) {
|
|
5493
5804
|
_inherits(CardRow, _CardBase7);
|
|
5494
5805
|
|
|
5495
|
-
var
|
|
5806
|
+
var _super39 = _createSuper(CardRow);
|
|
5496
5807
|
|
|
5497
5808
|
function CardRow() {
|
|
5498
5809
|
_classCallCheck(this, CardRow);
|
|
5499
5810
|
|
|
5500
|
-
return
|
|
5811
|
+
return _super39.apply(this, arguments);
|
|
5501
5812
|
}
|
|
5502
5813
|
|
|
5503
5814
|
_createClass(CardRow, null, [{
|
|
@@ -5512,20 +5823,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5512
5823
|
|
|
5513
5824
|
module.exports = CardRow;
|
|
5514
5825
|
}, {
|
|
5515
|
-
"./card-base.js":
|
|
5826
|
+
"./card-base.js": 63
|
|
5516
5827
|
}],
|
|
5517
|
-
|
|
5828
|
+
71: [function (require, module, exports) {
|
|
5518
5829
|
var CardBase = require("./card-base.js");
|
|
5519
5830
|
|
|
5520
5831
|
var CardSlider = /*#__PURE__*/function (_CardBase8) {
|
|
5521
5832
|
_inherits(CardSlider, _CardBase8);
|
|
5522
5833
|
|
|
5523
|
-
var
|
|
5834
|
+
var _super40 = _createSuper(CardSlider);
|
|
5524
5835
|
|
|
5525
5836
|
function CardSlider() {
|
|
5526
5837
|
_classCallCheck(this, CardSlider);
|
|
5527
5838
|
|
|
5528
|
-
return
|
|
5839
|
+
return _super40.apply(this, arguments);
|
|
5529
5840
|
}
|
|
5530
5841
|
|
|
5531
5842
|
_createClass(CardSlider, null, [{
|
|
@@ -5540,20 +5851,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5540
5851
|
|
|
5541
5852
|
module.exports = CardSlider;
|
|
5542
5853
|
}, {
|
|
5543
|
-
"./card-base.js":
|
|
5854
|
+
"./card-base.js": 63
|
|
5544
5855
|
}],
|
|
5545
|
-
|
|
5856
|
+
72: [function (require, module, exports) {
|
|
5546
5857
|
var CardBase = require("./card-base.js");
|
|
5547
5858
|
|
|
5548
5859
|
var CardTitle = /*#__PURE__*/function (_CardBase9) {
|
|
5549
5860
|
_inherits(CardTitle, _CardBase9);
|
|
5550
5861
|
|
|
5551
|
-
var
|
|
5862
|
+
var _super41 = _createSuper(CardTitle);
|
|
5552
5863
|
|
|
5553
5864
|
function CardTitle() {
|
|
5554
5865
|
_classCallCheck(this, CardTitle);
|
|
5555
5866
|
|
|
5556
|
-
return
|
|
5867
|
+
return _super41.apply(this, arguments);
|
|
5557
5868
|
}
|
|
5558
5869
|
|
|
5559
5870
|
_createClass(CardTitle, null, [{
|
|
@@ -5568,20 +5879,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5568
5879
|
|
|
5569
5880
|
module.exports = CardTitle;
|
|
5570
5881
|
}, {
|
|
5571
|
-
"./card-base.js":
|
|
5882
|
+
"./card-base.js": 63
|
|
5572
5883
|
}],
|
|
5573
|
-
|
|
5884
|
+
73: [function (require, module, exports) {
|
|
5574
5885
|
var CardBase = require("./card-base.js");
|
|
5575
5886
|
|
|
5576
5887
|
var CardVideo = /*#__PURE__*/function (_CardBase10) {
|
|
5577
5888
|
_inherits(CardVideo, _CardBase10);
|
|
5578
5889
|
|
|
5579
|
-
var
|
|
5890
|
+
var _super42 = _createSuper(CardVideo);
|
|
5580
5891
|
|
|
5581
5892
|
function CardVideo() {
|
|
5582
5893
|
_classCallCheck(this, CardVideo);
|
|
5583
5894
|
|
|
5584
|
-
return
|
|
5895
|
+
return _super42.apply(this, arguments);
|
|
5585
5896
|
}
|
|
5586
5897
|
|
|
5587
5898
|
_createClass(CardVideo, null, [{
|
|
@@ -5596,20 +5907,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5596
5907
|
|
|
5597
5908
|
module.exports = CardVideo;
|
|
5598
5909
|
}, {
|
|
5599
|
-
"./card-base.js":
|
|
5910
|
+
"./card-base.js": 63
|
|
5600
5911
|
}],
|
|
5601
|
-
|
|
5912
|
+
74: [function (require, module, exports) {
|
|
5602
5913
|
var CardBase = require("./card-base.js");
|
|
5603
5914
|
|
|
5604
5915
|
var CardYoutube = /*#__PURE__*/function (_CardBase11) {
|
|
5605
5916
|
_inherits(CardYoutube, _CardBase11);
|
|
5606
5917
|
|
|
5607
|
-
var
|
|
5918
|
+
var _super43 = _createSuper(CardYoutube);
|
|
5608
5919
|
|
|
5609
5920
|
function CardYoutube() {
|
|
5610
5921
|
_classCallCheck(this, CardYoutube);
|
|
5611
5922
|
|
|
5612
|
-
return
|
|
5923
|
+
return _super43.apply(this, arguments);
|
|
5613
5924
|
}
|
|
5614
5925
|
|
|
5615
5926
|
_createClass(CardYoutube, null, [{
|
|
@@ -5624,20 +5935,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5624
5935
|
|
|
5625
5936
|
module.exports = CardYoutube;
|
|
5626
5937
|
}, {
|
|
5627
|
-
"./card-base.js":
|
|
5938
|
+
"./card-base.js": 63
|
|
5628
5939
|
}],
|
|
5629
|
-
|
|
5940
|
+
75: [function (require, module, exports) {
|
|
5630
5941
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5631
5942
|
|
|
5632
5943
|
var Page = /*#__PURE__*/function (_PlattarBase18) {
|
|
5633
5944
|
_inherits(Page, _PlattarBase18);
|
|
5634
5945
|
|
|
5635
|
-
var
|
|
5946
|
+
var _super44 = _createSuper(Page);
|
|
5636
5947
|
|
|
5637
5948
|
function Page() {
|
|
5638
5949
|
_classCallCheck(this, Page);
|
|
5639
5950
|
|
|
5640
|
-
return
|
|
5951
|
+
return _super44.apply(this, arguments);
|
|
5641
5952
|
}
|
|
5642
5953
|
|
|
5643
5954
|
_createClass(Page, null, [{
|
|
@@ -5652,20 +5963,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5652
5963
|
|
|
5653
5964
|
module.exports = Page;
|
|
5654
5965
|
}, {
|
|
5655
|
-
"../interfaces/plattar-base.js":
|
|
5966
|
+
"../interfaces/plattar-base.js": 55
|
|
5656
5967
|
}],
|
|
5657
|
-
|
|
5968
|
+
76: [function (require, module, exports) {
|
|
5658
5969
|
var ProductBase = require("./product-base.js");
|
|
5659
5970
|
|
|
5660
5971
|
var ProductAnnotation = /*#__PURE__*/function (_ProductBase) {
|
|
5661
5972
|
_inherits(ProductAnnotation, _ProductBase);
|
|
5662
5973
|
|
|
5663
|
-
var
|
|
5974
|
+
var _super45 = _createSuper(ProductAnnotation);
|
|
5664
5975
|
|
|
5665
5976
|
function ProductAnnotation() {
|
|
5666
5977
|
_classCallCheck(this, ProductAnnotation);
|
|
5667
5978
|
|
|
5668
|
-
return
|
|
5979
|
+
return _super45.apply(this, arguments);
|
|
5669
5980
|
}
|
|
5670
5981
|
|
|
5671
5982
|
_createClass(ProductAnnotation, null, [{
|
|
@@ -5680,9 +5991,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5680
5991
|
|
|
5681
5992
|
module.exports = ProductAnnotation;
|
|
5682
5993
|
}, {
|
|
5683
|
-
"./product-base.js":
|
|
5994
|
+
"./product-base.js": 77
|
|
5684
5995
|
}],
|
|
5685
|
-
|
|
5996
|
+
77: [function (require, module, exports) {
|
|
5686
5997
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5687
5998
|
|
|
5688
5999
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5690,20 +6001,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5690
6001
|
var ProductBase = /*#__PURE__*/function (_PlattarBase19) {
|
|
5691
6002
|
_inherits(ProductBase, _PlattarBase19);
|
|
5692
6003
|
|
|
5693
|
-
var
|
|
6004
|
+
var _super46 = _createSuper(ProductBase);
|
|
5694
6005
|
|
|
5695
6006
|
function ProductBase(id, server) {
|
|
5696
|
-
var
|
|
6007
|
+
var _this40;
|
|
5697
6008
|
|
|
5698
6009
|
_classCallCheck(this, ProductBase);
|
|
5699
6010
|
|
|
5700
|
-
|
|
6011
|
+
_this40 = _super46.call(this, id, server || Server["default"]());
|
|
5701
6012
|
|
|
5702
|
-
if (
|
|
6013
|
+
if (_this40.constructor === ProductBase) {
|
|
5703
6014
|
throw new Error("ProductBase is abstract and cannot be created");
|
|
5704
6015
|
}
|
|
5705
6016
|
|
|
5706
|
-
return
|
|
6017
|
+
return _this40;
|
|
5707
6018
|
}
|
|
5708
6019
|
|
|
5709
6020
|
_createClass(ProductBase, null, [{
|
|
@@ -5722,23 +6033,23 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5722
6033
|
|
|
5723
6034
|
module.exports = ProductBase;
|
|
5724
6035
|
}, {
|
|
5725
|
-
"../../server/plattar-server.js":
|
|
5726
|
-
"../interfaces/plattar-base.js":
|
|
5727
|
-
"./product-annotation.js":
|
|
5728
|
-
"./product-variation.js":
|
|
6036
|
+
"../../server/plattar-server.js": 38,
|
|
6037
|
+
"../interfaces/plattar-base.js": 55,
|
|
6038
|
+
"./product-annotation.js": 76,
|
|
6039
|
+
"./product-variation.js": 78
|
|
5729
6040
|
}],
|
|
5730
|
-
|
|
6041
|
+
78: [function (require, module, exports) {
|
|
5731
6042
|
var ProductBase = require("./product-base.js");
|
|
5732
6043
|
|
|
5733
6044
|
var ProductVariation = /*#__PURE__*/function (_ProductBase2) {
|
|
5734
6045
|
_inherits(ProductVariation, _ProductBase2);
|
|
5735
6046
|
|
|
5736
|
-
var
|
|
6047
|
+
var _super47 = _createSuper(ProductVariation);
|
|
5737
6048
|
|
|
5738
6049
|
function ProductVariation() {
|
|
5739
6050
|
_classCallCheck(this, ProductVariation);
|
|
5740
6051
|
|
|
5741
|
-
return
|
|
6052
|
+
return _super47.apply(this, arguments);
|
|
5742
6053
|
}
|
|
5743
6054
|
|
|
5744
6055
|
_createClass(ProductVariation, null, [{
|
|
@@ -5753,20 +6064,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5753
6064
|
|
|
5754
6065
|
module.exports = ProductVariation;
|
|
5755
6066
|
}, {
|
|
5756
|
-
"./product-base.js":
|
|
6067
|
+
"./product-base.js": 77
|
|
5757
6068
|
}],
|
|
5758
|
-
|
|
6069
|
+
79: [function (require, module, exports) {
|
|
5759
6070
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5760
6071
|
|
|
5761
6072
|
var Product = /*#__PURE__*/function (_PlattarBase20) {
|
|
5762
6073
|
_inherits(Product, _PlattarBase20);
|
|
5763
6074
|
|
|
5764
|
-
var
|
|
6075
|
+
var _super48 = _createSuper(Product);
|
|
5765
6076
|
|
|
5766
6077
|
function Product() {
|
|
5767
6078
|
_classCallCheck(this, Product);
|
|
5768
6079
|
|
|
5769
|
-
return
|
|
6080
|
+
return _super48.apply(this, arguments);
|
|
5770
6081
|
}
|
|
5771
6082
|
|
|
5772
6083
|
_createClass(Product, null, [{
|
|
@@ -5781,20 +6092,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5781
6092
|
|
|
5782
6093
|
module.exports = Product;
|
|
5783
6094
|
}, {
|
|
5784
|
-
"../interfaces/plattar-base.js":
|
|
6095
|
+
"../interfaces/plattar-base.js": 55
|
|
5785
6096
|
}],
|
|
5786
|
-
|
|
6097
|
+
80: [function (require, module, exports) {
|
|
5787
6098
|
var SceneBase = require("./scene-base.js");
|
|
5788
6099
|
|
|
5789
6100
|
var SceneAnnotation = /*#__PURE__*/function (_SceneBase) {
|
|
5790
6101
|
_inherits(SceneAnnotation, _SceneBase);
|
|
5791
6102
|
|
|
5792
|
-
var
|
|
6103
|
+
var _super49 = _createSuper(SceneAnnotation);
|
|
5793
6104
|
|
|
5794
6105
|
function SceneAnnotation() {
|
|
5795
6106
|
_classCallCheck(this, SceneAnnotation);
|
|
5796
6107
|
|
|
5797
|
-
return
|
|
6108
|
+
return _super49.apply(this, arguments);
|
|
5798
6109
|
}
|
|
5799
6110
|
|
|
5800
6111
|
_createClass(SceneAnnotation, null, [{
|
|
@@ -5809,20 +6120,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5809
6120
|
|
|
5810
6121
|
module.exports = SceneAnnotation;
|
|
5811
6122
|
}, {
|
|
5812
|
-
"./scene-base.js":
|
|
6123
|
+
"./scene-base.js": 82
|
|
5813
6124
|
}],
|
|
5814
|
-
|
|
6125
|
+
81: [function (require, module, exports) {
|
|
5815
6126
|
var SceneBase = require("./scene-base.js");
|
|
5816
6127
|
|
|
5817
6128
|
var SceneAudio = /*#__PURE__*/function (_SceneBase2) {
|
|
5818
6129
|
_inherits(SceneAudio, _SceneBase2);
|
|
5819
6130
|
|
|
5820
|
-
var
|
|
6131
|
+
var _super50 = _createSuper(SceneAudio);
|
|
5821
6132
|
|
|
5822
6133
|
function SceneAudio() {
|
|
5823
6134
|
_classCallCheck(this, SceneAudio);
|
|
5824
6135
|
|
|
5825
|
-
return
|
|
6136
|
+
return _super50.apply(this, arguments);
|
|
5826
6137
|
}
|
|
5827
6138
|
|
|
5828
6139
|
_createClass(SceneAudio, null, [{
|
|
@@ -5837,9 +6148,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5837
6148
|
|
|
5838
6149
|
module.exports = SceneAudio;
|
|
5839
6150
|
}, {
|
|
5840
|
-
"./scene-base.js":
|
|
6151
|
+
"./scene-base.js": 82
|
|
5841
6152
|
}],
|
|
5842
|
-
|
|
6153
|
+
82: [function (require, module, exports) {
|
|
5843
6154
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
5844
6155
|
|
|
5845
6156
|
var Server = require("../../server/plattar-server.js");
|
|
@@ -5847,20 +6158,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5847
6158
|
var SceneBase = /*#__PURE__*/function (_PlattarBase21) {
|
|
5848
6159
|
_inherits(SceneBase, _PlattarBase21);
|
|
5849
6160
|
|
|
5850
|
-
var
|
|
6161
|
+
var _super51 = _createSuper(SceneBase);
|
|
5851
6162
|
|
|
5852
6163
|
function SceneBase(id, server) {
|
|
5853
|
-
var
|
|
6164
|
+
var _this41;
|
|
5854
6165
|
|
|
5855
6166
|
_classCallCheck(this, SceneBase);
|
|
5856
6167
|
|
|
5857
|
-
|
|
6168
|
+
_this41 = _super51.call(this, id, server || Server["default"]());
|
|
5858
6169
|
|
|
5859
|
-
if (
|
|
6170
|
+
if (_this41.constructor === SceneBase) {
|
|
5860
6171
|
throw new Error("SceneBase is abstract and cannot be created");
|
|
5861
6172
|
}
|
|
5862
6173
|
|
|
5863
|
-
return
|
|
6174
|
+
return _this41;
|
|
5864
6175
|
}
|
|
5865
6176
|
|
|
5866
6177
|
_createClass(SceneBase, null, [{
|
|
@@ -5903,35 +6214,35 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5903
6214
|
|
|
5904
6215
|
module.exports = SceneBase;
|
|
5905
6216
|
}, {
|
|
5906
|
-
"../../server/plattar-server.js":
|
|
5907
|
-
"../interfaces/plattar-base.js":
|
|
5908
|
-
"./scene-annotation.js":
|
|
5909
|
-
"./scene-audio.js":
|
|
5910
|
-
"./scene-button.js":
|
|
5911
|
-
"./scene-camera.js":
|
|
5912
|
-
"./scene-carousel.js":
|
|
5913
|
-
"./scene-image.js":
|
|
5914
|
-
"./scene-model.js":
|
|
5915
|
-
"./scene-panorama.js":
|
|
5916
|
-
"./scene-poller.js":
|
|
5917
|
-
"./scene-product.js":
|
|
5918
|
-
"./scene-shadow.js":
|
|
5919
|
-
"./scene-video.js":
|
|
5920
|
-
"./scene-volumetric.js":
|
|
5921
|
-
"./scene-youtube.js":
|
|
6217
|
+
"../../server/plattar-server.js": 38,
|
|
6218
|
+
"../interfaces/plattar-base.js": 55,
|
|
6219
|
+
"./scene-annotation.js": 80,
|
|
6220
|
+
"./scene-audio.js": 81,
|
|
6221
|
+
"./scene-button.js": 83,
|
|
6222
|
+
"./scene-camera.js": 84,
|
|
6223
|
+
"./scene-carousel.js": 85,
|
|
6224
|
+
"./scene-image.js": 86,
|
|
6225
|
+
"./scene-model.js": 87,
|
|
6226
|
+
"./scene-panorama.js": 88,
|
|
6227
|
+
"./scene-poller.js": 89,
|
|
6228
|
+
"./scene-product.js": 90,
|
|
6229
|
+
"./scene-shadow.js": 92,
|
|
6230
|
+
"./scene-video.js": 93,
|
|
6231
|
+
"./scene-volumetric.js": 94,
|
|
6232
|
+
"./scene-youtube.js": 95
|
|
5922
6233
|
}],
|
|
5923
|
-
|
|
6234
|
+
83: [function (require, module, exports) {
|
|
5924
6235
|
var SceneBase = require("./scene-base.js");
|
|
5925
6236
|
|
|
5926
6237
|
var SceneButton = /*#__PURE__*/function (_SceneBase3) {
|
|
5927
6238
|
_inherits(SceneButton, _SceneBase3);
|
|
5928
6239
|
|
|
5929
|
-
var
|
|
6240
|
+
var _super52 = _createSuper(SceneButton);
|
|
5930
6241
|
|
|
5931
6242
|
function SceneButton() {
|
|
5932
6243
|
_classCallCheck(this, SceneButton);
|
|
5933
6244
|
|
|
5934
|
-
return
|
|
6245
|
+
return _super52.apply(this, arguments);
|
|
5935
6246
|
}
|
|
5936
6247
|
|
|
5937
6248
|
_createClass(SceneButton, null, [{
|
|
@@ -5946,20 +6257,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5946
6257
|
|
|
5947
6258
|
module.exports = SceneButton;
|
|
5948
6259
|
}, {
|
|
5949
|
-
"./scene-base.js":
|
|
6260
|
+
"./scene-base.js": 82
|
|
5950
6261
|
}],
|
|
5951
|
-
|
|
6262
|
+
84: [function (require, module, exports) {
|
|
5952
6263
|
var SceneBase = require("./scene-base.js");
|
|
5953
6264
|
|
|
5954
6265
|
var SceneCamera = /*#__PURE__*/function (_SceneBase4) {
|
|
5955
6266
|
_inherits(SceneCamera, _SceneBase4);
|
|
5956
6267
|
|
|
5957
|
-
var
|
|
6268
|
+
var _super53 = _createSuper(SceneCamera);
|
|
5958
6269
|
|
|
5959
6270
|
function SceneCamera() {
|
|
5960
6271
|
_classCallCheck(this, SceneCamera);
|
|
5961
6272
|
|
|
5962
|
-
return
|
|
6273
|
+
return _super53.apply(this, arguments);
|
|
5963
6274
|
}
|
|
5964
6275
|
|
|
5965
6276
|
_createClass(SceneCamera, null, [{
|
|
@@ -5974,20 +6285,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5974
6285
|
|
|
5975
6286
|
module.exports = SceneCamera;
|
|
5976
6287
|
}, {
|
|
5977
|
-
"./scene-base.js":
|
|
6288
|
+
"./scene-base.js": 82
|
|
5978
6289
|
}],
|
|
5979
|
-
|
|
6290
|
+
85: [function (require, module, exports) {
|
|
5980
6291
|
var SceneBase = require("./scene-base.js");
|
|
5981
6292
|
|
|
5982
6293
|
var SceneCarousel = /*#__PURE__*/function (_SceneBase5) {
|
|
5983
6294
|
_inherits(SceneCarousel, _SceneBase5);
|
|
5984
6295
|
|
|
5985
|
-
var
|
|
6296
|
+
var _super54 = _createSuper(SceneCarousel);
|
|
5986
6297
|
|
|
5987
6298
|
function SceneCarousel() {
|
|
5988
6299
|
_classCallCheck(this, SceneCarousel);
|
|
5989
6300
|
|
|
5990
|
-
return
|
|
6301
|
+
return _super54.apply(this, arguments);
|
|
5991
6302
|
}
|
|
5992
6303
|
|
|
5993
6304
|
_createClass(SceneCarousel, null, [{
|
|
@@ -6002,20 +6313,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6002
6313
|
|
|
6003
6314
|
module.exports = SceneCarousel;
|
|
6004
6315
|
}, {
|
|
6005
|
-
"./scene-base.js":
|
|
6316
|
+
"./scene-base.js": 82
|
|
6006
6317
|
}],
|
|
6007
|
-
|
|
6318
|
+
86: [function (require, module, exports) {
|
|
6008
6319
|
var SceneBase = require("./scene-base.js");
|
|
6009
6320
|
|
|
6010
6321
|
var SceneImage = /*#__PURE__*/function (_SceneBase6) {
|
|
6011
6322
|
_inherits(SceneImage, _SceneBase6);
|
|
6012
6323
|
|
|
6013
|
-
var
|
|
6324
|
+
var _super55 = _createSuper(SceneImage);
|
|
6014
6325
|
|
|
6015
6326
|
function SceneImage() {
|
|
6016
6327
|
_classCallCheck(this, SceneImage);
|
|
6017
6328
|
|
|
6018
|
-
return
|
|
6329
|
+
return _super55.apply(this, arguments);
|
|
6019
6330
|
}
|
|
6020
6331
|
|
|
6021
6332
|
_createClass(SceneImage, null, [{
|
|
@@ -6030,20 +6341,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6030
6341
|
|
|
6031
6342
|
module.exports = SceneImage;
|
|
6032
6343
|
}, {
|
|
6033
|
-
"./scene-base.js":
|
|
6344
|
+
"./scene-base.js": 82
|
|
6034
6345
|
}],
|
|
6035
|
-
|
|
6346
|
+
87: [function (require, module, exports) {
|
|
6036
6347
|
var SceneBase = require("./scene-base.js");
|
|
6037
6348
|
|
|
6038
6349
|
var SceneModel = /*#__PURE__*/function (_SceneBase7) {
|
|
6039
6350
|
_inherits(SceneModel, _SceneBase7);
|
|
6040
6351
|
|
|
6041
|
-
var
|
|
6352
|
+
var _super56 = _createSuper(SceneModel);
|
|
6042
6353
|
|
|
6043
6354
|
function SceneModel() {
|
|
6044
6355
|
_classCallCheck(this, SceneModel);
|
|
6045
6356
|
|
|
6046
|
-
return
|
|
6357
|
+
return _super56.apply(this, arguments);
|
|
6047
6358
|
}
|
|
6048
6359
|
|
|
6049
6360
|
_createClass(SceneModel, null, [{
|
|
@@ -6058,20 +6369,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6058
6369
|
|
|
6059
6370
|
module.exports = SceneModel;
|
|
6060
6371
|
}, {
|
|
6061
|
-
"./scene-base.js":
|
|
6372
|
+
"./scene-base.js": 82
|
|
6062
6373
|
}],
|
|
6063
|
-
|
|
6374
|
+
88: [function (require, module, exports) {
|
|
6064
6375
|
var SceneBase = require("./scene-base.js");
|
|
6065
6376
|
|
|
6066
6377
|
var ScenePanorama = /*#__PURE__*/function (_SceneBase8) {
|
|
6067
6378
|
_inherits(ScenePanorama, _SceneBase8);
|
|
6068
6379
|
|
|
6069
|
-
var
|
|
6380
|
+
var _super57 = _createSuper(ScenePanorama);
|
|
6070
6381
|
|
|
6071
6382
|
function ScenePanorama() {
|
|
6072
6383
|
_classCallCheck(this, ScenePanorama);
|
|
6073
6384
|
|
|
6074
|
-
return
|
|
6385
|
+
return _super57.apply(this, arguments);
|
|
6075
6386
|
}
|
|
6076
6387
|
|
|
6077
6388
|
_createClass(ScenePanorama, null, [{
|
|
@@ -6086,20 +6397,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6086
6397
|
|
|
6087
6398
|
module.exports = ScenePanorama;
|
|
6088
6399
|
}, {
|
|
6089
|
-
"./scene-base.js":
|
|
6400
|
+
"./scene-base.js": 82
|
|
6090
6401
|
}],
|
|
6091
|
-
|
|
6402
|
+
89: [function (require, module, exports) {
|
|
6092
6403
|
var SceneBase = require("./scene-base.js");
|
|
6093
6404
|
|
|
6094
6405
|
var ScenePoller = /*#__PURE__*/function (_SceneBase9) {
|
|
6095
6406
|
_inherits(ScenePoller, _SceneBase9);
|
|
6096
6407
|
|
|
6097
|
-
var
|
|
6408
|
+
var _super58 = _createSuper(ScenePoller);
|
|
6098
6409
|
|
|
6099
6410
|
function ScenePoller() {
|
|
6100
6411
|
_classCallCheck(this, ScenePoller);
|
|
6101
6412
|
|
|
6102
|
-
return
|
|
6413
|
+
return _super58.apply(this, arguments);
|
|
6103
6414
|
}
|
|
6104
6415
|
|
|
6105
6416
|
_createClass(ScenePoller, null, [{
|
|
@@ -6114,20 +6425,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6114
6425
|
|
|
6115
6426
|
module.exports = ScenePoller;
|
|
6116
6427
|
}, {
|
|
6117
|
-
"./scene-base.js":
|
|
6428
|
+
"./scene-base.js": 82
|
|
6118
6429
|
}],
|
|
6119
|
-
|
|
6430
|
+
90: [function (require, module, exports) {
|
|
6120
6431
|
var SceneBase = require("./scene-base.js");
|
|
6121
6432
|
|
|
6122
6433
|
var SceneProduct = /*#__PURE__*/function (_SceneBase10) {
|
|
6123
6434
|
_inherits(SceneProduct, _SceneBase10);
|
|
6124
6435
|
|
|
6125
|
-
var
|
|
6436
|
+
var _super59 = _createSuper(SceneProduct);
|
|
6126
6437
|
|
|
6127
6438
|
function SceneProduct() {
|
|
6128
6439
|
_classCallCheck(this, SceneProduct);
|
|
6129
6440
|
|
|
6130
|
-
return
|
|
6441
|
+
return _super59.apply(this, arguments);
|
|
6131
6442
|
}
|
|
6132
6443
|
|
|
6133
6444
|
_createClass(SceneProduct, null, [{
|
|
@@ -6142,20 +6453,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6142
6453
|
|
|
6143
6454
|
module.exports = SceneProduct;
|
|
6144
6455
|
}, {
|
|
6145
|
-
"./scene-base.js":
|
|
6456
|
+
"./scene-base.js": 82
|
|
6146
6457
|
}],
|
|
6147
|
-
|
|
6458
|
+
91: [function (require, module, exports) {
|
|
6148
6459
|
var SceneBase = require("./scene-base.js");
|
|
6149
6460
|
|
|
6150
6461
|
var SceneScript = /*#__PURE__*/function (_SceneBase11) {
|
|
6151
6462
|
_inherits(SceneScript, _SceneBase11);
|
|
6152
6463
|
|
|
6153
|
-
var
|
|
6464
|
+
var _super60 = _createSuper(SceneScript);
|
|
6154
6465
|
|
|
6155
6466
|
function SceneScript() {
|
|
6156
6467
|
_classCallCheck(this, SceneScript);
|
|
6157
6468
|
|
|
6158
|
-
return
|
|
6469
|
+
return _super60.apply(this, arguments);
|
|
6159
6470
|
}
|
|
6160
6471
|
|
|
6161
6472
|
_createClass(SceneScript, null, [{
|
|
@@ -6170,20 +6481,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6170
6481
|
|
|
6171
6482
|
module.exports = SceneScript;
|
|
6172
6483
|
}, {
|
|
6173
|
-
"./scene-base.js":
|
|
6484
|
+
"./scene-base.js": 82
|
|
6174
6485
|
}],
|
|
6175
|
-
|
|
6486
|
+
92: [function (require, module, exports) {
|
|
6176
6487
|
var SceneBase = require("./scene-base.js");
|
|
6177
6488
|
|
|
6178
6489
|
var SceneShadow = /*#__PURE__*/function (_SceneBase12) {
|
|
6179
6490
|
_inherits(SceneShadow, _SceneBase12);
|
|
6180
6491
|
|
|
6181
|
-
var
|
|
6492
|
+
var _super61 = _createSuper(SceneShadow);
|
|
6182
6493
|
|
|
6183
6494
|
function SceneShadow() {
|
|
6184
6495
|
_classCallCheck(this, SceneShadow);
|
|
6185
6496
|
|
|
6186
|
-
return
|
|
6497
|
+
return _super61.apply(this, arguments);
|
|
6187
6498
|
}
|
|
6188
6499
|
|
|
6189
6500
|
_createClass(SceneShadow, null, [{
|
|
@@ -6198,20 +6509,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6198
6509
|
|
|
6199
6510
|
module.exports = SceneShadow;
|
|
6200
6511
|
}, {
|
|
6201
|
-
"./scene-base.js":
|
|
6512
|
+
"./scene-base.js": 82
|
|
6202
6513
|
}],
|
|
6203
|
-
|
|
6514
|
+
93: [function (require, module, exports) {
|
|
6204
6515
|
var SceneBase = require("./scene-base.js");
|
|
6205
6516
|
|
|
6206
6517
|
var SceneVideo = /*#__PURE__*/function (_SceneBase13) {
|
|
6207
6518
|
_inherits(SceneVideo, _SceneBase13);
|
|
6208
6519
|
|
|
6209
|
-
var
|
|
6520
|
+
var _super62 = _createSuper(SceneVideo);
|
|
6210
6521
|
|
|
6211
6522
|
function SceneVideo() {
|
|
6212
6523
|
_classCallCheck(this, SceneVideo);
|
|
6213
6524
|
|
|
6214
|
-
return
|
|
6525
|
+
return _super62.apply(this, arguments);
|
|
6215
6526
|
}
|
|
6216
6527
|
|
|
6217
6528
|
_createClass(SceneVideo, null, [{
|
|
@@ -6226,20 +6537,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6226
6537
|
|
|
6227
6538
|
module.exports = SceneVideo;
|
|
6228
6539
|
}, {
|
|
6229
|
-
"./scene-base.js":
|
|
6540
|
+
"./scene-base.js": 82
|
|
6230
6541
|
}],
|
|
6231
|
-
|
|
6542
|
+
94: [function (require, module, exports) {
|
|
6232
6543
|
var SceneBase = require("./scene-base.js");
|
|
6233
6544
|
|
|
6234
6545
|
var SceneVolumetric = /*#__PURE__*/function (_SceneBase14) {
|
|
6235
6546
|
_inherits(SceneVolumetric, _SceneBase14);
|
|
6236
6547
|
|
|
6237
|
-
var
|
|
6548
|
+
var _super63 = _createSuper(SceneVolumetric);
|
|
6238
6549
|
|
|
6239
6550
|
function SceneVolumetric() {
|
|
6240
6551
|
_classCallCheck(this, SceneVolumetric);
|
|
6241
6552
|
|
|
6242
|
-
return
|
|
6553
|
+
return _super63.apply(this, arguments);
|
|
6243
6554
|
}
|
|
6244
6555
|
|
|
6245
6556
|
_createClass(SceneVolumetric, null, [{
|
|
@@ -6254,20 +6565,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6254
6565
|
|
|
6255
6566
|
module.exports = SceneVolumetric;
|
|
6256
6567
|
}, {
|
|
6257
|
-
"./scene-base.js":
|
|
6568
|
+
"./scene-base.js": 82
|
|
6258
6569
|
}],
|
|
6259
|
-
|
|
6570
|
+
95: [function (require, module, exports) {
|
|
6260
6571
|
var SceneBase = require("./scene-base.js");
|
|
6261
6572
|
|
|
6262
6573
|
var SceneYoutube = /*#__PURE__*/function (_SceneBase15) {
|
|
6263
6574
|
_inherits(SceneYoutube, _SceneBase15);
|
|
6264
6575
|
|
|
6265
|
-
var
|
|
6576
|
+
var _super64 = _createSuper(SceneYoutube);
|
|
6266
6577
|
|
|
6267
6578
|
function SceneYoutube() {
|
|
6268
6579
|
_classCallCheck(this, SceneYoutube);
|
|
6269
6580
|
|
|
6270
|
-
return
|
|
6581
|
+
return _super64.apply(this, arguments);
|
|
6271
6582
|
}
|
|
6272
6583
|
|
|
6273
6584
|
_createClass(SceneYoutube, null, [{
|
|
@@ -6282,20 +6593,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6282
6593
|
|
|
6283
6594
|
module.exports = SceneYoutube;
|
|
6284
6595
|
}, {
|
|
6285
|
-
"./scene-base.js":
|
|
6596
|
+
"./scene-base.js": 82
|
|
6286
6597
|
}],
|
|
6287
|
-
|
|
6598
|
+
96: [function (require, module, exports) {
|
|
6288
6599
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6289
6600
|
|
|
6290
6601
|
var Scene = /*#__PURE__*/function (_PlattarBase22) {
|
|
6291
6602
|
_inherits(Scene, _PlattarBase22);
|
|
6292
6603
|
|
|
6293
|
-
var
|
|
6604
|
+
var _super65 = _createSuper(Scene);
|
|
6294
6605
|
|
|
6295
6606
|
function Scene() {
|
|
6296
6607
|
_classCallCheck(this, Scene);
|
|
6297
6608
|
|
|
6298
|
-
return
|
|
6609
|
+
return _super65.apply(this, arguments);
|
|
6299
6610
|
}
|
|
6300
6611
|
|
|
6301
6612
|
_createClass(Scene, null, [{
|
|
@@ -6310,20 +6621,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6310
6621
|
|
|
6311
6622
|
module.exports = Scene;
|
|
6312
6623
|
}, {
|
|
6313
|
-
"../interfaces/plattar-base.js":
|
|
6624
|
+
"../interfaces/plattar-base.js": 55
|
|
6314
6625
|
}],
|
|
6315
|
-
|
|
6626
|
+
97: [function (require, module, exports) {
|
|
6316
6627
|
var PlattarBase = require("../interfaces/plattar-base.js");
|
|
6317
6628
|
|
|
6318
6629
|
var TriggerImage = /*#__PURE__*/function (_PlattarBase23) {
|
|
6319
6630
|
_inherits(TriggerImage, _PlattarBase23);
|
|
6320
6631
|
|
|
6321
|
-
var
|
|
6632
|
+
var _super66 = _createSuper(TriggerImage);
|
|
6322
6633
|
|
|
6323
6634
|
function TriggerImage() {
|
|
6324
6635
|
_classCallCheck(this, TriggerImage);
|
|
6325
6636
|
|
|
6326
|
-
return
|
|
6637
|
+
return _super66.apply(this, arguments);
|
|
6327
6638
|
}
|
|
6328
6639
|
|
|
6329
6640
|
_createClass(TriggerImage, null, [{
|
|
@@ -6338,9 +6649,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6338
6649
|
|
|
6339
6650
|
module.exports = TriggerImage;
|
|
6340
6651
|
}, {
|
|
6341
|
-
"../interfaces/plattar-base.js":
|
|
6652
|
+
"../interfaces/plattar-base.js": 55
|
|
6342
6653
|
}],
|
|
6343
|
-
|
|
6654
|
+
98: [function (require, module, exports) {
|
|
6344
6655
|
var Application = require("../types/application.js"); // import Scene types and its children
|
|
6345
6656
|
|
|
6346
6657
|
|
|
@@ -6452,9 +6763,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6452
6763
|
|
|
6453
6764
|
var AssetLibrary = require("../types/misc/asset-library");
|
|
6454
6765
|
|
|
6455
|
-
var PlattarUtil = function PlattarUtil() {
|
|
6766
|
+
var PlattarUtil = /*#__PURE__*/_createClass(function PlattarUtil() {
|
|
6456
6767
|
_classCallCheck(this, PlattarUtil);
|
|
6457
|
-
};
|
|
6768
|
+
});
|
|
6458
6769
|
/**
|
|
6459
6770
|
* Checks if the provided Object is a Plattar Object
|
|
6460
6771
|
*
|
|
@@ -6727,81 +7038,81 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6727
7038
|
|
|
6728
7039
|
module.exports = PlattarUtil;
|
|
6729
7040
|
}, {
|
|
6730
|
-
"../types/application.js":
|
|
6731
|
-
"../types/content-pipeline/brief.js":
|
|
6732
|
-
"../types/content-pipeline/comment-brief.js":
|
|
6733
|
-
"../types/content-pipeline/comment-quote.js":
|
|
6734
|
-
"../types/content-pipeline/comment-solution.js":
|
|
6735
|
-
"../types/content-pipeline/folder.js":
|
|
6736
|
-
"../types/content-pipeline/pipeline-user.js":
|
|
6737
|
-
"../types/content-pipeline/quote.js":
|
|
6738
|
-
"../types/content-pipeline/rating.js":
|
|
6739
|
-
"../types/content-pipeline/solution.js":
|
|
6740
|
-
"../types/file/file-audio.js":
|
|
6741
|
-
"../types/file/file-image.js":
|
|
6742
|
-
"../types/file/file-model.js":
|
|
6743
|
-
"../types/file/file-script.js":
|
|
6744
|
-
"../types/file/file-video.js":
|
|
6745
|
-
"../types/interfaces/plattar-object.js":
|
|
6746
|
-
"../types/misc/application-build.js":
|
|
6747
|
-
"../types/misc/asset-library":
|
|
6748
|
-
"../types/misc/async-job.js":
|
|
6749
|
-
"../types/misc/script-event.js":
|
|
6750
|
-
"../types/misc/tag.js":
|
|
6751
|
-
"../types/page/card-button.js":
|
|
6752
|
-
"../types/page/card-html.js":
|
|
6753
|
-
"../types/page/card-iframe.js":
|
|
6754
|
-
"../types/page/card-image.js":
|
|
6755
|
-
"../types/page/card-map.js":
|
|
6756
|
-
"../types/page/card-paragraph.js":
|
|
6757
|
-
"../types/page/card-row.js":
|
|
6758
|
-
"../types/page/card-slider.js":
|
|
6759
|
-
"../types/page/card-title.js":
|
|
6760
|
-
"../types/page/card-video.js":
|
|
6761
|
-
"../types/page/card-youtube.js":
|
|
6762
|
-
"../types/page/page.js":
|
|
6763
|
-
"../types/product/product-annotation.js":
|
|
6764
|
-
"../types/product/product-variation.js":
|
|
6765
|
-
"../types/product/product.js":
|
|
6766
|
-
"../types/scene/scene-annotation.js":
|
|
6767
|
-
"../types/scene/scene-audio.js":
|
|
6768
|
-
"../types/scene/scene-button.js":
|
|
6769
|
-
"../types/scene/scene-camera.js":
|
|
6770
|
-
"../types/scene/scene-carousel.js":
|
|
6771
|
-
"../types/scene/scene-image.js":
|
|
6772
|
-
"../types/scene/scene-model.js":
|
|
6773
|
-
"../types/scene/scene-panorama.js":
|
|
6774
|
-
"../types/scene/scene-poller.js":
|
|
6775
|
-
"../types/scene/scene-product.js":
|
|
6776
|
-
"../types/scene/scene-script.js":
|
|
6777
|
-
"../types/scene/scene-shadow.js":
|
|
6778
|
-
"../types/scene/scene-video.js":
|
|
6779
|
-
"../types/scene/scene-volumetric.js":
|
|
6780
|
-
"../types/scene/scene-youtube.js":
|
|
6781
|
-
"../types/scene/scene.js":
|
|
6782
|
-
"../types/trigger/trigger-image.js":
|
|
7041
|
+
"../types/application.js": 39,
|
|
7042
|
+
"../types/content-pipeline/brief.js": 40,
|
|
7043
|
+
"../types/content-pipeline/comment-brief.js": 41,
|
|
7044
|
+
"../types/content-pipeline/comment-quote.js": 42,
|
|
7045
|
+
"../types/content-pipeline/comment-solution.js": 43,
|
|
7046
|
+
"../types/content-pipeline/folder.js": 44,
|
|
7047
|
+
"../types/content-pipeline/pipeline-user.js": 45,
|
|
7048
|
+
"../types/content-pipeline/quote.js": 46,
|
|
7049
|
+
"../types/content-pipeline/rating.js": 47,
|
|
7050
|
+
"../types/content-pipeline/solution.js": 48,
|
|
7051
|
+
"../types/file/file-audio.js": 49,
|
|
7052
|
+
"../types/file/file-image.js": 51,
|
|
7053
|
+
"../types/file/file-model.js": 52,
|
|
7054
|
+
"../types/file/file-script.js": 53,
|
|
7055
|
+
"../types/file/file-video.js": 54,
|
|
7056
|
+
"../types/interfaces/plattar-object.js": 57,
|
|
7057
|
+
"../types/misc/application-build.js": 58,
|
|
7058
|
+
"../types/misc/asset-library": 59,
|
|
7059
|
+
"../types/misc/async-job.js": 60,
|
|
7060
|
+
"../types/misc/script-event.js": 61,
|
|
7061
|
+
"../types/misc/tag.js": 62,
|
|
7062
|
+
"../types/page/card-button.js": 64,
|
|
7063
|
+
"../types/page/card-html.js": 65,
|
|
7064
|
+
"../types/page/card-iframe.js": 66,
|
|
7065
|
+
"../types/page/card-image.js": 67,
|
|
7066
|
+
"../types/page/card-map.js": 68,
|
|
7067
|
+
"../types/page/card-paragraph.js": 69,
|
|
7068
|
+
"../types/page/card-row.js": 70,
|
|
7069
|
+
"../types/page/card-slider.js": 71,
|
|
7070
|
+
"../types/page/card-title.js": 72,
|
|
7071
|
+
"../types/page/card-video.js": 73,
|
|
7072
|
+
"../types/page/card-youtube.js": 74,
|
|
7073
|
+
"../types/page/page.js": 75,
|
|
7074
|
+
"../types/product/product-annotation.js": 76,
|
|
7075
|
+
"../types/product/product-variation.js": 78,
|
|
7076
|
+
"../types/product/product.js": 79,
|
|
7077
|
+
"../types/scene/scene-annotation.js": 80,
|
|
7078
|
+
"../types/scene/scene-audio.js": 81,
|
|
7079
|
+
"../types/scene/scene-button.js": 83,
|
|
7080
|
+
"../types/scene/scene-camera.js": 84,
|
|
7081
|
+
"../types/scene/scene-carousel.js": 85,
|
|
7082
|
+
"../types/scene/scene-image.js": 86,
|
|
7083
|
+
"../types/scene/scene-model.js": 87,
|
|
7084
|
+
"../types/scene/scene-panorama.js": 88,
|
|
7085
|
+
"../types/scene/scene-poller.js": 89,
|
|
7086
|
+
"../types/scene/scene-product.js": 90,
|
|
7087
|
+
"../types/scene/scene-script.js": 91,
|
|
7088
|
+
"../types/scene/scene-shadow.js": 92,
|
|
7089
|
+
"../types/scene/scene-video.js": 93,
|
|
7090
|
+
"../types/scene/scene-volumetric.js": 94,
|
|
7091
|
+
"../types/scene/scene-youtube.js": 95,
|
|
7092
|
+
"../types/scene/scene.js": 96,
|
|
7093
|
+
"../types/trigger/trigger-image.js": 97
|
|
6783
7094
|
}],
|
|
6784
|
-
|
|
7095
|
+
99: [function (require, module, exports) {
|
|
6785
7096
|
module.exports = "1.120.1";
|
|
6786
7097
|
}, {}],
|
|
6787
|
-
|
|
7098
|
+
100: [function (require, module, exports) {
|
|
6788
7099
|
var QRCodeStyling = require("qr-code-styling");
|
|
6789
7100
|
|
|
6790
7101
|
var BaseElement = /*#__PURE__*/function (_HTMLElement2) {
|
|
6791
7102
|
_inherits(BaseElement, _HTMLElement2);
|
|
6792
7103
|
|
|
6793
|
-
var
|
|
7104
|
+
var _super67 = _createSuper(BaseElement);
|
|
6794
7105
|
|
|
6795
7106
|
function BaseElement() {
|
|
6796
7107
|
_classCallCheck(this, BaseElement);
|
|
6797
7108
|
|
|
6798
|
-
return
|
|
7109
|
+
return _super67.call(this);
|
|
6799
7110
|
}
|
|
6800
7111
|
|
|
6801
7112
|
_createClass(BaseElement, [{
|
|
6802
7113
|
key: "connectedCallback",
|
|
6803
7114
|
value: function connectedCallback() {
|
|
6804
|
-
var
|
|
7115
|
+
var _this42 = this;
|
|
6805
7116
|
|
|
6806
7117
|
if (this.hasAttribute("url")) {
|
|
6807
7118
|
this.renderQRCode();
|
|
@@ -6810,8 +7121,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6810
7121
|
var observer = new MutationObserver(function (mutations) {
|
|
6811
7122
|
mutations.forEach(function (mutation) {
|
|
6812
7123
|
if (mutation.type === "attributes") {
|
|
6813
|
-
if (
|
|
6814
|
-
|
|
7124
|
+
if (_this42.hasAttribute("url")) {
|
|
7125
|
+
_this42.renderQRCode();
|
|
6815
7126
|
}
|
|
6816
7127
|
}
|
|
6817
7128
|
});
|
|
@@ -6989,30 +7300,30 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
6989
7300
|
|
|
6990
7301
|
module.exports = BaseElement;
|
|
6991
7302
|
}, {
|
|
6992
|
-
"qr-code-styling":
|
|
7303
|
+
"qr-code-styling": 121
|
|
6993
7304
|
}],
|
|
6994
|
-
|
|
7305
|
+
101: [function (require, module, exports) {
|
|
6995
7306
|
var BaseElement = require("./base/base-element.js");
|
|
6996
7307
|
|
|
6997
7308
|
var QRCodeElement = /*#__PURE__*/function (_BaseElement) {
|
|
6998
7309
|
_inherits(QRCodeElement, _BaseElement);
|
|
6999
7310
|
|
|
7000
|
-
var
|
|
7311
|
+
var _super68 = _createSuper(QRCodeElement);
|
|
7001
7312
|
|
|
7002
7313
|
function QRCodeElement() {
|
|
7003
7314
|
_classCallCheck(this, QRCodeElement);
|
|
7004
7315
|
|
|
7005
|
-
return
|
|
7316
|
+
return _super68.call(this);
|
|
7006
7317
|
}
|
|
7007
7318
|
|
|
7008
|
-
return QRCodeElement;
|
|
7319
|
+
return _createClass(QRCodeElement);
|
|
7009
7320
|
}(BaseElement);
|
|
7010
7321
|
|
|
7011
7322
|
module.exports = QRCodeElement;
|
|
7012
7323
|
}, {
|
|
7013
|
-
"./base/base-element.js":
|
|
7324
|
+
"./base/base-element.js": 100
|
|
7014
7325
|
}],
|
|
7015
|
-
|
|
7326
|
+
102: [function (require, module, exports) {
|
|
7016
7327
|
"use strict";
|
|
7017
7328
|
|
|
7018
7329
|
var QRCodeElement = require("./elements/qrcode-element.js");
|
|
@@ -7025,24 +7336,24 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7025
7336
|
version: Version
|
|
7026
7337
|
};
|
|
7027
7338
|
}, {
|
|
7028
|
-
"./elements/qrcode-element.js":
|
|
7029
|
-
"./version":
|
|
7339
|
+
"./elements/qrcode-element.js": 101,
|
|
7340
|
+
"./version": 103
|
|
7030
7341
|
}],
|
|
7031
|
-
|
|
7342
|
+
103: [function (require, module, exports) {
|
|
7032
7343
|
module.exports = "1.120.3";
|
|
7033
7344
|
}, {}],
|
|
7034
|
-
|
|
7345
|
+
104: [function (require, module, exports) {
|
|
7035
7346
|
var ElementController = require("../controllers/element-controller");
|
|
7036
7347
|
|
|
7037
7348
|
var BaseElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
7038
7349
|
_inherits(BaseElement, _HTMLElement3);
|
|
7039
7350
|
|
|
7040
|
-
var
|
|
7351
|
+
var _super69 = _createSuper(BaseElement);
|
|
7041
7352
|
|
|
7042
7353
|
function BaseElement() {
|
|
7043
7354
|
_classCallCheck(this, BaseElement);
|
|
7044
7355
|
|
|
7045
|
-
return
|
|
7356
|
+
return _super69.call(this);
|
|
7046
7357
|
}
|
|
7047
7358
|
|
|
7048
7359
|
_createClass(BaseElement, [{
|
|
@@ -7142,19 +7453,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7142
7453
|
}, {
|
|
7143
7454
|
key: "allMappedAttributes",
|
|
7144
7455
|
get: function get() {
|
|
7145
|
-
var
|
|
7456
|
+
var _this43 = this;
|
|
7146
7457
|
|
|
7147
7458
|
var map = new Map();
|
|
7148
7459
|
var coreAttr = this.coreAttributes;
|
|
7149
7460
|
var optAttr = this.optionalAttributes;
|
|
7150
7461
|
coreAttr.forEach(function (ele) {
|
|
7151
|
-
if (
|
|
7152
|
-
map.set(ele.map,
|
|
7462
|
+
if (_this43.hasAttribute(ele.key)) {
|
|
7463
|
+
map.set(ele.map, _this43.getAttribute(ele.key));
|
|
7153
7464
|
}
|
|
7154
7465
|
});
|
|
7155
7466
|
optAttr.forEach(function (ele) {
|
|
7156
|
-
if (
|
|
7157
|
-
map.set(ele.map,
|
|
7467
|
+
if (_this43.hasAttribute(ele.key)) {
|
|
7468
|
+
map.set(ele.map, _this43.getAttribute(ele.key));
|
|
7158
7469
|
}
|
|
7159
7470
|
});
|
|
7160
7471
|
return map;
|
|
@@ -7175,7 +7486,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7175
7486
|
key = _step7$value[0],
|
|
7176
7487
|
value = _step7$value[1];
|
|
7177
7488
|
|
|
7178
|
-
queryStr
|
|
7489
|
+
queryStr += first ? "?" + key + "=" + value : "&" + key + "=" + value;
|
|
7179
7490
|
first = false;
|
|
7180
7491
|
}
|
|
7181
7492
|
} catch (err) {
|
|
@@ -7198,9 +7509,53 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7198
7509
|
|
|
7199
7510
|
module.exports = BaseElement;
|
|
7200
7511
|
}, {
|
|
7201
|
-
"../controllers/element-controller":
|
|
7512
|
+
"../controllers/element-controller": 106
|
|
7202
7513
|
}],
|
|
7203
|
-
|
|
7514
|
+
105: [function (require, module, exports) {
|
|
7515
|
+
var BaseElement = require("./base/base-element.js");
|
|
7516
|
+
|
|
7517
|
+
var ConfiguratorElement = /*#__PURE__*/function (_BaseElement2) {
|
|
7518
|
+
_inherits(ConfiguratorElement, _BaseElement2);
|
|
7519
|
+
|
|
7520
|
+
var _super70 = _createSuper(ConfiguratorElement);
|
|
7521
|
+
|
|
7522
|
+
function ConfiguratorElement() {
|
|
7523
|
+
_classCallCheck(this, ConfiguratorElement);
|
|
7524
|
+
|
|
7525
|
+
return _super70.call(this);
|
|
7526
|
+
}
|
|
7527
|
+
|
|
7528
|
+
_createClass(ConfiguratorElement, [{
|
|
7529
|
+
key: "permissions",
|
|
7530
|
+
get: function get() {
|
|
7531
|
+
return ["autoplay"];
|
|
7532
|
+
}
|
|
7533
|
+
}, {
|
|
7534
|
+
key: "elementType",
|
|
7535
|
+
get: function get() {
|
|
7536
|
+
return "configurator";
|
|
7537
|
+
}
|
|
7538
|
+
}, {
|
|
7539
|
+
key: "optionalAttributes",
|
|
7540
|
+
get: function get() {
|
|
7541
|
+
return [{
|
|
7542
|
+
key: "config-state",
|
|
7543
|
+
map: "config_state"
|
|
7544
|
+
}, {
|
|
7545
|
+
key: "show-ar",
|
|
7546
|
+
map: "show_ar"
|
|
7547
|
+
}];
|
|
7548
|
+
}
|
|
7549
|
+
}]);
|
|
7550
|
+
|
|
7551
|
+
return ConfiguratorElement;
|
|
7552
|
+
}(BaseElement);
|
|
7553
|
+
|
|
7554
|
+
module.exports = ConfiguratorElement;
|
|
7555
|
+
}, {
|
|
7556
|
+
"./base/base-element.js": 104
|
|
7557
|
+
}],
|
|
7558
|
+
106: [function (require, module, exports) {
|
|
7204
7559
|
var Util = require("../../util/util.js");
|
|
7205
7560
|
|
|
7206
7561
|
var _require = require("@plattar/context-messenger"),
|
|
@@ -7210,7 +7565,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7210
7565
|
|
|
7211
7566
|
var ElementController = /*#__PURE__*/function () {
|
|
7212
7567
|
function ElementController(element) {
|
|
7213
|
-
var
|
|
7568
|
+
var _this44 = this;
|
|
7214
7569
|
|
|
7215
7570
|
_classCallCheck(this, ElementController);
|
|
7216
7571
|
|
|
@@ -7226,7 +7581,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7226
7581
|
|
|
7227
7582
|
if (mutation.type === 'attributes' && element.usesCoreAttribute(mutation.attributeName)) {
|
|
7228
7583
|
if (element.hasAllCoreAttributes) {
|
|
7229
|
-
|
|
7584
|
+
_this44._load();
|
|
7230
7585
|
}
|
|
7231
7586
|
}
|
|
7232
7587
|
}
|
|
@@ -7317,16 +7672,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7317
7672
|
|
|
7318
7673
|
module.exports = ElementController;
|
|
7319
7674
|
}, {
|
|
7320
|
-
"../../util/util.js":
|
|
7321
|
-
"./iframe-controller.js":
|
|
7322
|
-
"@plattar/context-messenger":
|
|
7675
|
+
"../../util/util.js": 117,
|
|
7676
|
+
"./iframe-controller.js": 107,
|
|
7677
|
+
"@plattar/context-messenger": 15
|
|
7323
7678
|
}],
|
|
7324
|
-
|
|
7679
|
+
107: [function (require, module, exports) {
|
|
7325
7680
|
var Util = require("../../util/util.js");
|
|
7326
7681
|
|
|
7327
7682
|
var IFrameController = /*#__PURE__*/function () {
|
|
7328
7683
|
function IFrameController(element, src, id) {
|
|
7329
|
-
var
|
|
7684
|
+
var _this45 = this;
|
|
7330
7685
|
|
|
7331
7686
|
var onelemload = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
7332
7687
|
|
|
@@ -7338,7 +7693,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7338
7693
|
if (!element.hasAttribute("sameorigin")) {
|
|
7339
7694
|
this._iframe.onload = function () {
|
|
7340
7695
|
if (onelemload) {
|
|
7341
|
-
onelemload(
|
|
7696
|
+
onelemload(_this45._iframe);
|
|
7342
7697
|
}
|
|
7343
7698
|
};
|
|
7344
7699
|
}
|
|
@@ -7435,20 +7790,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7435
7790
|
|
|
7436
7791
|
module.exports = IFrameController;
|
|
7437
7792
|
}, {
|
|
7438
|
-
"../../util/util.js":
|
|
7793
|
+
"../../util/util.js": 117
|
|
7439
7794
|
}],
|
|
7440
|
-
|
|
7795
|
+
108: [function (require, module, exports) {
|
|
7441
7796
|
var BaseElement = require("./base/base-element.js");
|
|
7442
7797
|
|
|
7443
|
-
var EditorElement = /*#__PURE__*/function (
|
|
7444
|
-
_inherits(EditorElement,
|
|
7798
|
+
var EditorElement = /*#__PURE__*/function (_BaseElement3) {
|
|
7799
|
+
_inherits(EditorElement, _BaseElement3);
|
|
7445
7800
|
|
|
7446
|
-
var
|
|
7801
|
+
var _super71 = _createSuper(EditorElement);
|
|
7447
7802
|
|
|
7448
7803
|
function EditorElement() {
|
|
7449
7804
|
_classCallCheck(this, EditorElement);
|
|
7450
7805
|
|
|
7451
|
-
return
|
|
7806
|
+
return _super71.call(this);
|
|
7452
7807
|
}
|
|
7453
7808
|
|
|
7454
7809
|
_createClass(EditorElement, [{
|
|
@@ -7468,26 +7823,26 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7468
7823
|
|
|
7469
7824
|
module.exports = EditorElement;
|
|
7470
7825
|
}, {
|
|
7471
|
-
"./base/base-element.js":
|
|
7826
|
+
"./base/base-element.js": 104
|
|
7472
7827
|
}],
|
|
7473
|
-
|
|
7828
|
+
109: [function (require, module, exports) {
|
|
7474
7829
|
var BaseElement = require("./base/base-element.js");
|
|
7475
7830
|
|
|
7476
|
-
var EWallElement = /*#__PURE__*/function (
|
|
7477
|
-
_inherits(EWallElement,
|
|
7831
|
+
var EWallElement = /*#__PURE__*/function (_BaseElement4) {
|
|
7832
|
+
_inherits(EWallElement, _BaseElement4);
|
|
7478
7833
|
|
|
7479
|
-
var
|
|
7834
|
+
var _super72 = _createSuper(EWallElement);
|
|
7480
7835
|
|
|
7481
7836
|
function EWallElement() {
|
|
7482
|
-
var
|
|
7837
|
+
var _this46;
|
|
7483
7838
|
|
|
7484
7839
|
_classCallCheck(this, EWallElement);
|
|
7485
7840
|
|
|
7486
|
-
|
|
7841
|
+
_this46 = _super72.call(this);
|
|
7487
7842
|
var tag = document.createElement("script");
|
|
7488
7843
|
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
|
|
7489
7844
|
tag.defer = true;
|
|
7490
|
-
return
|
|
7845
|
+
return _this46;
|
|
7491
7846
|
}
|
|
7492
7847
|
|
|
7493
7848
|
_createClass(EWallElement, [{
|
|
@@ -7523,20 +7878,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7523
7878
|
|
|
7524
7879
|
module.exports = EWallElement;
|
|
7525
7880
|
}, {
|
|
7526
|
-
"./base/base-element.js":
|
|
7881
|
+
"./base/base-element.js": 104
|
|
7527
7882
|
}],
|
|
7528
|
-
|
|
7883
|
+
110: [function (require, module, exports) {
|
|
7529
7884
|
var BaseElement = require("./base/base-element.js");
|
|
7530
7885
|
|
|
7531
|
-
var FaceARElement = /*#__PURE__*/function (
|
|
7532
|
-
_inherits(FaceARElement,
|
|
7886
|
+
var FaceARElement = /*#__PURE__*/function (_BaseElement5) {
|
|
7887
|
+
_inherits(FaceARElement, _BaseElement5);
|
|
7533
7888
|
|
|
7534
|
-
var
|
|
7889
|
+
var _super73 = _createSuper(FaceARElement);
|
|
7535
7890
|
|
|
7536
7891
|
function FaceARElement() {
|
|
7537
7892
|
_classCallCheck(this, FaceARElement);
|
|
7538
7893
|
|
|
7539
|
-
return
|
|
7894
|
+
return _super73.call(this);
|
|
7540
7895
|
}
|
|
7541
7896
|
|
|
7542
7897
|
_createClass(FaceARElement, [{
|
|
@@ -7549,6 +7904,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7549
7904
|
get: function get() {
|
|
7550
7905
|
return "facear";
|
|
7551
7906
|
}
|
|
7907
|
+
}, {
|
|
7908
|
+
key: "optionalAttributes",
|
|
7909
|
+
get: function get() {
|
|
7910
|
+
return [{
|
|
7911
|
+
key: "variation-id",
|
|
7912
|
+
map: "variationId"
|
|
7913
|
+
}, {
|
|
7914
|
+
key: "product-id",
|
|
7915
|
+
map: "productId"
|
|
7916
|
+
}];
|
|
7917
|
+
}
|
|
7552
7918
|
}]);
|
|
7553
7919
|
|
|
7554
7920
|
return FaceARElement;
|
|
@@ -7556,20 +7922,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7556
7922
|
|
|
7557
7923
|
module.exports = FaceARElement;
|
|
7558
7924
|
}, {
|
|
7559
|
-
"./base/base-element.js":
|
|
7925
|
+
"./base/base-element.js": 104
|
|
7560
7926
|
}],
|
|
7561
|
-
|
|
7927
|
+
111: [function (require, module, exports) {
|
|
7562
7928
|
var BaseElement = require("./base/base-element.js");
|
|
7563
7929
|
|
|
7564
|
-
var ModelElement = /*#__PURE__*/function (
|
|
7565
|
-
_inherits(ModelElement,
|
|
7930
|
+
var ModelElement = /*#__PURE__*/function (_BaseElement6) {
|
|
7931
|
+
_inherits(ModelElement, _BaseElement6);
|
|
7566
7932
|
|
|
7567
|
-
var
|
|
7933
|
+
var _super74 = _createSuper(ModelElement);
|
|
7568
7934
|
|
|
7569
7935
|
function ModelElement() {
|
|
7570
7936
|
_classCallCheck(this, ModelElement);
|
|
7571
7937
|
|
|
7572
|
-
return
|
|
7938
|
+
return _super74.call(this);
|
|
7573
7939
|
}
|
|
7574
7940
|
|
|
7575
7941
|
_createClass(ModelElement, [{
|
|
@@ -7597,20 +7963,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7597
7963
|
|
|
7598
7964
|
module.exports = ModelElement;
|
|
7599
7965
|
}, {
|
|
7600
|
-
"./base/base-element.js":
|
|
7966
|
+
"./base/base-element.js": 104
|
|
7601
7967
|
}],
|
|
7602
|
-
|
|
7968
|
+
112: [function (require, module, exports) {
|
|
7603
7969
|
var BaseElement = require("./base/base-element.js");
|
|
7604
7970
|
|
|
7605
|
-
var ProductElement = /*#__PURE__*/function (
|
|
7606
|
-
_inherits(ProductElement,
|
|
7971
|
+
var ProductElement = /*#__PURE__*/function (_BaseElement7) {
|
|
7972
|
+
_inherits(ProductElement, _BaseElement7);
|
|
7607
7973
|
|
|
7608
|
-
var
|
|
7974
|
+
var _super75 = _createSuper(ProductElement);
|
|
7609
7975
|
|
|
7610
7976
|
function ProductElement() {
|
|
7611
7977
|
_classCallCheck(this, ProductElement);
|
|
7612
7978
|
|
|
7613
|
-
return
|
|
7979
|
+
return _super75.call(this);
|
|
7614
7980
|
}
|
|
7615
7981
|
|
|
7616
7982
|
_createClass(ProductElement, [{
|
|
@@ -7646,20 +8012,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7646
8012
|
|
|
7647
8013
|
module.exports = ProductElement;
|
|
7648
8014
|
}, {
|
|
7649
|
-
"./base/base-element.js":
|
|
8015
|
+
"./base/base-element.js": 104
|
|
7650
8016
|
}],
|
|
7651
|
-
|
|
8017
|
+
113: [function (require, module, exports) {
|
|
7652
8018
|
var BaseElement = require("./base/base-element.js");
|
|
7653
8019
|
|
|
7654
|
-
var StudioElement = /*#__PURE__*/function (
|
|
7655
|
-
_inherits(StudioElement,
|
|
8020
|
+
var StudioElement = /*#__PURE__*/function (_BaseElement8) {
|
|
8021
|
+
_inherits(StudioElement, _BaseElement8);
|
|
7656
8022
|
|
|
7657
|
-
var
|
|
8023
|
+
var _super76 = _createSuper(StudioElement);
|
|
7658
8024
|
|
|
7659
8025
|
function StudioElement() {
|
|
7660
8026
|
_classCallCheck(this, StudioElement);
|
|
7661
8027
|
|
|
7662
|
-
return
|
|
8028
|
+
return _super76.call(this);
|
|
7663
8029
|
}
|
|
7664
8030
|
|
|
7665
8031
|
_createClass(StudioElement, [{
|
|
@@ -7679,20 +8045,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7679
8045
|
|
|
7680
8046
|
module.exports = StudioElement;
|
|
7681
8047
|
}, {
|
|
7682
|
-
"./base/base-element.js":
|
|
8048
|
+
"./base/base-element.js": 104
|
|
7683
8049
|
}],
|
|
7684
|
-
|
|
8050
|
+
114: [function (require, module, exports) {
|
|
7685
8051
|
var BaseElement = require("./base/base-element.js");
|
|
7686
8052
|
|
|
7687
|
-
var ViewerElement = /*#__PURE__*/function (
|
|
7688
|
-
_inherits(ViewerElement,
|
|
8053
|
+
var ViewerElement = /*#__PURE__*/function (_BaseElement9) {
|
|
8054
|
+
_inherits(ViewerElement, _BaseElement9);
|
|
7689
8055
|
|
|
7690
|
-
var
|
|
8056
|
+
var _super77 = _createSuper(ViewerElement);
|
|
7691
8057
|
|
|
7692
8058
|
function ViewerElement() {
|
|
7693
8059
|
_classCallCheck(this, ViewerElement);
|
|
7694
8060
|
|
|
7695
|
-
return
|
|
8061
|
+
return _super77.call(this);
|
|
7696
8062
|
}
|
|
7697
8063
|
|
|
7698
8064
|
_createClass(ViewerElement, [{
|
|
@@ -7705,6 +8071,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7705
8071
|
get: function get() {
|
|
7706
8072
|
return "viewer";
|
|
7707
8073
|
}
|
|
8074
|
+
}, {
|
|
8075
|
+
key: "optionalAttributes",
|
|
8076
|
+
get: function get() {
|
|
8077
|
+
return [{
|
|
8078
|
+
key: "variation-id",
|
|
8079
|
+
map: "variationId"
|
|
8080
|
+
}, {
|
|
8081
|
+
key: "product-id",
|
|
8082
|
+
map: "productId"
|
|
8083
|
+
}];
|
|
8084
|
+
}
|
|
7708
8085
|
}]);
|
|
7709
8086
|
|
|
7710
8087
|
return ViewerElement;
|
|
@@ -7712,20 +8089,20 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7712
8089
|
|
|
7713
8090
|
module.exports = ViewerElement;
|
|
7714
8091
|
}, {
|
|
7715
|
-
"./base/base-element.js":
|
|
8092
|
+
"./base/base-element.js": 104
|
|
7716
8093
|
}],
|
|
7717
|
-
|
|
8094
|
+
115: [function (require, module, exports) {
|
|
7718
8095
|
var BaseElement = require("./base/base-element.js");
|
|
7719
8096
|
|
|
7720
|
-
var WebXRElement = /*#__PURE__*/function (
|
|
7721
|
-
_inherits(WebXRElement,
|
|
8097
|
+
var WebXRElement = /*#__PURE__*/function (_BaseElement10) {
|
|
8098
|
+
_inherits(WebXRElement, _BaseElement10);
|
|
7722
8099
|
|
|
7723
|
-
var
|
|
8100
|
+
var _super78 = _createSuper(WebXRElement);
|
|
7724
8101
|
|
|
7725
8102
|
function WebXRElement() {
|
|
7726
8103
|
_classCallCheck(this, WebXRElement);
|
|
7727
8104
|
|
|
7728
|
-
return
|
|
8105
|
+
return _super78.call(this);
|
|
7729
8106
|
}
|
|
7730
8107
|
|
|
7731
8108
|
_createClass(WebXRElement, [{
|
|
@@ -7745,9 +8122,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7745
8122
|
|
|
7746
8123
|
module.exports = WebXRElement;
|
|
7747
8124
|
}, {
|
|
7748
|
-
"./base/base-element.js":
|
|
8125
|
+
"./base/base-element.js": 104
|
|
7749
8126
|
}],
|
|
7750
|
-
|
|
8127
|
+
116: [function (require, module, exports) {
|
|
7751
8128
|
"use strict";
|
|
7752
8129
|
|
|
7753
8130
|
var WebXRElement = require("./elements/webxr-element.js");
|
|
@@ -7766,32 +8143,63 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7766
8143
|
|
|
7767
8144
|
var ModelElement = require("./elements/model-element.js");
|
|
7768
8145
|
|
|
8146
|
+
var ConfiguratorElement = require("./elements/configurator-element.js");
|
|
8147
|
+
|
|
7769
8148
|
var Version = require("./version");
|
|
7770
8149
|
|
|
7771
|
-
customElements.
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
customElements.
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
8150
|
+
if (customElements.get("plattar-webxr") === undefined) {
|
|
8151
|
+
customElements.define("plattar-webxr", WebXRElement);
|
|
8152
|
+
}
|
|
8153
|
+
|
|
8154
|
+
if (customElements.get("plattar-viewer") === undefined) {
|
|
8155
|
+
customElements.define("plattar-viewer", ViewerElement);
|
|
8156
|
+
}
|
|
8157
|
+
|
|
8158
|
+
if (customElements.get("plattar-product") === undefined) {
|
|
8159
|
+
customElements.define("plattar-product", ProductElement);
|
|
8160
|
+
}
|
|
8161
|
+
|
|
8162
|
+
if (customElements.get("plattar-editor") === undefined) {
|
|
8163
|
+
customElements.define("plattar-editor", EditorElement);
|
|
8164
|
+
}
|
|
8165
|
+
|
|
8166
|
+
if (customElements.get("plattar-facear") === undefined) {
|
|
8167
|
+
customElements.define("plattar-facear", FaceARElement);
|
|
8168
|
+
}
|
|
8169
|
+
|
|
8170
|
+
if (customElements.get("plattar-8wall") === undefined) {
|
|
8171
|
+
customElements.define("plattar-8wall", EWallElement);
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8174
|
+
if (customElements.get("plattar-studio") === undefined) {
|
|
8175
|
+
customElements.define("plattar-studio", StudioElement);
|
|
8176
|
+
}
|
|
8177
|
+
|
|
8178
|
+
if (customElements.get("plattar-model") === undefined) {
|
|
8179
|
+
customElements.define("plattar-model", ModelElement);
|
|
8180
|
+
}
|
|
8181
|
+
|
|
8182
|
+
if (customElements.get("plattar-configurator") === undefined) {
|
|
8183
|
+
customElements.define("plattar-configurator", ConfiguratorElement);
|
|
8184
|
+
}
|
|
8185
|
+
|
|
7779
8186
|
console.log("using @plattar/plattar-web v" + Version);
|
|
7780
8187
|
module.exports = {
|
|
7781
8188
|
version: Version
|
|
7782
8189
|
};
|
|
7783
8190
|
}, {
|
|
7784
|
-
"./elements/
|
|
7785
|
-
"./elements/
|
|
7786
|
-
"./elements/
|
|
7787
|
-
"./elements/
|
|
7788
|
-
"./elements/
|
|
7789
|
-
"./elements/
|
|
7790
|
-
"./elements/
|
|
7791
|
-
"./elements/
|
|
7792
|
-
"./
|
|
8191
|
+
"./elements/configurator-element.js": 105,
|
|
8192
|
+
"./elements/editor-element.js": 108,
|
|
8193
|
+
"./elements/ewall-element.js": 109,
|
|
8194
|
+
"./elements/facear-element.js": 110,
|
|
8195
|
+
"./elements/model-element.js": 111,
|
|
8196
|
+
"./elements/product-element.js": 112,
|
|
8197
|
+
"./elements/studio-element.js": 113,
|
|
8198
|
+
"./elements/viewer-element.js": 114,
|
|
8199
|
+
"./elements/webxr-element.js": 115,
|
|
8200
|
+
"./version": 118
|
|
7793
8201
|
}],
|
|
7794
|
-
|
|
8202
|
+
117: [function (require, module, exports) {
|
|
7795
8203
|
var Util = /*#__PURE__*/function () {
|
|
7796
8204
|
function Util() {
|
|
7797
8205
|
_classCallCheck(this, Util);
|
|
@@ -7854,6 +8262,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7854
8262
|
case "studio":
|
|
7855
8263
|
case "product":
|
|
7856
8264
|
case "model":
|
|
8265
|
+
case "configurator":
|
|
7857
8266
|
case "webxr":
|
|
7858
8267
|
return true;
|
|
7859
8268
|
|
|
@@ -7888,10 +8297,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7888
8297
|
|
|
7889
8298
|
module.exports = Util;
|
|
7890
8299
|
}, {}],
|
|
7891
|
-
|
|
7892
|
-
module.exports = "1.
|
|
8300
|
+
118: [function (require, module, exports) {
|
|
8301
|
+
module.exports = "1.122.3";
|
|
7893
8302
|
}, {}],
|
|
7894
|
-
|
|
8303
|
+
119: [function (require, module, exports) {
|
|
7895
8304
|
(function (global) {
|
|
7896
8305
|
(function () {
|
|
7897
8306
|
"use strict"; // ref: https://github.com/tc39/proposal-global
|
|
@@ -7928,7 +8337,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
7928
8337
|
}).call(this);
|
|
7929
8338
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
|
|
7930
8339
|
}, {}],
|
|
7931
|
-
|
|
8340
|
+
120: [function (require, module, exports) {
|
|
7932
8341
|
// shim for using process in browser
|
|
7933
8342
|
var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it
|
|
7934
8343
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
@@ -8138,7 +8547,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8138
8547
|
return 0;
|
|
8139
8548
|
};
|
|
8140
8549
|
}, {}],
|
|
8141
|
-
|
|
8550
|
+
121: [function (require, module, exports) {
|
|
8142
8551
|
!function (t, e) {
|
|
8143
8552
|
"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();
|
|
8144
8553
|
}(self, function () {
|
|
@@ -10770,6 +11179,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
10770
11179
|
}()["default"];
|
|
10771
11180
|
});
|
|
10772
11181
|
}, {}]
|
|
10773
|
-
}, {}, [
|
|
11182
|
+
}, {}, [8])(8);
|
|
10774
11183
|
});
|
|
10775
11184
|
|