@plattar/plattar-ar-adapter 1.130.2 → 1.132.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -172,7 +172,7 @@ const launcher_ar_1 = require("./launcher-ar");
172
172
  * Performs AR functionality related to Plattar Products and Variation types
173
173
  */
174
174
  class ProductAR extends launcher_ar_1.LauncherAR {
175
- constructor(productID = null, variationID = null) {
175
+ constructor(productID = null, variationID = null, variationSKU = null) {
176
176
  super();
177
177
  // analytics instance
178
178
  this._analytics = null;
@@ -180,7 +180,8 @@ class ProductAR extends launcher_ar_1.LauncherAR {
180
180
  throw new Error("ProductAR.constructor(productID, variationID) - productID must be defined");
181
181
  }
182
182
  this._productID = productID;
183
- this._variationID = variationID ? variationID : "default";
183
+ this._variationSKU = variationSKU;
184
+ this._variationID = variationID ? variationID : (variationSKU ? null : "default");
184
185
  this._ar = null;
185
186
  }
186
187
  get productID() {
@@ -189,6 +190,9 @@ class ProductAR extends launcher_ar_1.LauncherAR {
189
190
  get variationID() {
190
191
  return this._variationID;
191
192
  }
193
+ get variationSKU() {
194
+ return this._variationSKU;
195
+ }
192
196
  _SetupAnalytics(product, variation) {
193
197
  let analytics = null;
194
198
  const scene = product.relationships.find(plattar_api_1.Scene);
@@ -237,14 +241,27 @@ class ProductAR extends launcher_ar_1.LauncherAR {
237
241
  product.include(plattar_api_1.Scene.include(plattar_api_1.Project));
238
242
  product.get().then((product) => {
239
243
  // find the required variation from our product
240
- const variationID = this.variationID ? (this.variationID === "default" ? product.attributes.product_variation_id : this.variationID) : product.attributes.product_variation_id;
241
- if (!variationID) {
242
- return reject(new Error("ProductAR.init() - cannot proceed as variation was not defined correctly"));
244
+ const variationID = this.variationID ? (this.variationID === "default" ? product.attributes.product_variation_id : this.variationID) : null;
245
+ const variationSKU = this.variationSKU;
246
+ if (!variationID && !variationSKU) {
247
+ return reject(new Error("ProductAR.init() - cannot proceed as variation-id or variation-sku was not set correctly"));
248
+ }
249
+ let variation = undefined;
250
+ if (variationID) {
251
+ variation = product.relationships.find(plattar_api_1.ProductVariation, variationID);
252
+ }
253
+ // if no variation was found with variationID - try searching variation sku
254
+ if (!variation && variationSKU) {
255
+ const variations = product.relationships.filter(plattar_api_1.ProductVariation);
256
+ if (variations) {
257
+ variation = variations.find((element) => {
258
+ return element.attributes.sku === variationSKU;
259
+ });
260
+ }
243
261
  }
244
- const variation = product.relationships.find(plattar_api_1.ProductVariation, variationID);
245
262
  // make sure our variation is actually available before moving forward
246
263
  if (!variation) {
247
- return reject(new Error("ProductAR.init() - cannot proceed as variation with id " + variationID + " cannot be found"));
264
+ return reject(new Error("ProductAR.init() - cannot proceed as variation with id " + variationID + " or sku " + variationSKU + " cannot be found"));
248
265
  }
249
266
  // otherwise both the product and variation are available
250
267
  // we need to figure out if we can actually do AR though
@@ -611,8 +628,8 @@ const util_1 = require("../util/util");
611
628
  * SceneProducts are much more convenient to grab from the Plattar CMS
612
629
  */
613
630
  class SceneProductAR extends product_ar_1.ProductAR {
614
- constructor(sceneProductID = null, variationID = null) {
615
- super(sceneProductID, variationID);
631
+ constructor(sceneProductID = null, variationID = null, variationSKU = null) {
632
+ super(sceneProductID, variationID, variationSKU);
616
633
  // this is evaluated in the init() function
617
634
  this._attachedProductID = null;
618
635
  if (!sceneProductID) {
@@ -682,7 +699,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
682
699
  this.removeRenderer();
683
700
  const sceneID = this.getAttribute("scene-id");
684
701
  if (sceneID) {
685
- const opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
702
+ const opt = options || this._GetDefaultQROptions();
686
703
  const viewer = document.createElement("plattar-qrcode");
687
704
  // required attributes with defaults for plattar-viewer node
688
705
  const width = this.getAttribute("width") || "500px";
@@ -698,10 +715,15 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
698
715
  if (opt.qrType) {
699
716
  viewer.setAttribute("qr-type", opt.qrType);
700
717
  }
718
+ viewer.setAttribute("shorten", (opt.shorten && (opt.shorten === true || opt.shorten === "true")) ? "true" : "false");
701
719
  let dst = plattar_api_1.Server.location().base + "renderer/configurator.html?scene_id=" + sceneID;
702
720
  // optional attributes
703
721
  const configState = this.getAttribute("config-state");
704
722
  const showAR = this.getAttribute("show-ar");
723
+ const showUI = this.getAttribute("show-ui");
724
+ if (showUI && showUI === "true") {
725
+ dst = plattar_api_1.Server.location().base + "configurator/dist/index.html?scene_id=" + sceneID;
726
+ }
705
727
  if (configState) {
706
728
  dst += "&config_state=" + configState;
707
729
  }
@@ -739,12 +761,16 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
739
761
  // optional attributes
740
762
  const configState = this.getAttribute("config-state");
741
763
  const showAR = this.getAttribute("show-ar");
764
+ const showUI = this.getAttribute("show-ui");
742
765
  if (configState) {
743
766
  viewer.setAttribute("config-state", configState);
744
767
  }
745
768
  if (showAR) {
746
769
  viewer.setAttribute("show-ar", showAR);
747
770
  }
771
+ if (showUI) {
772
+ viewer.setAttribute("show-ui", showUI);
773
+ }
748
774
  viewer.onload = () => {
749
775
  return accept(viewer);
750
776
  };
@@ -897,10 +923,11 @@ class PlattarController {
897
923
  /**
898
924
  * Default QR Code rendering options
899
925
  */
900
- static get DEFAULT_QR_OPTIONS() {
926
+ _GetDefaultQROptions() {
901
927
  return {
902
- color: "#101721",
903
- qrType: "default",
928
+ color: this.getAttribute("qr-color") || "#101721",
929
+ qrType: this.getAttribute("qr-style") || "default",
930
+ shorten: this.getAttribute("qr-shorten") || false,
904
931
  margin: 0
905
932
  };
906
933
  }
@@ -940,7 +967,7 @@ class PlattarController {
940
967
  return new Promise((accept, reject) => {
941
968
  // remove the old renderer instance if any
942
969
  this.removeRenderer();
943
- const opt = options || PlattarController.DEFAULT_QR_OPTIONS;
970
+ const opt = options || this._GetDefaultQROptions();
944
971
  const viewer = document.createElement("plattar-qrcode");
945
972
  // required attributes with defaults for plattar-viewer node
946
973
  const width = this.getAttribute("width") || "500px";
@@ -956,6 +983,7 @@ class PlattarController {
956
983
  if (opt.qrType) {
957
984
  viewer.setAttribute("qr-type", opt.qrType);
958
985
  }
986
+ viewer.setAttribute("shorten", (opt.shorten && (opt.shorten === true || opt.shorten === "true")) ? "true" : "false");
959
987
  const qrOptions = btoa(JSON.stringify(opt));
960
988
  let dst = plattar_api_1.Server.location().base + "renderer/launcher.html?qr_options=" + qrOptions;
961
989
  const sceneID = this.getAttribute("scene-id");
@@ -964,6 +992,7 @@ class PlattarController {
964
992
  const productID = this.getAttribute("product-id");
965
993
  const sceneProductID = this.getAttribute("scene-product-id");
966
994
  const variationID = this.getAttribute("variation-id");
995
+ const variationSKU = this.getAttribute("variation-sku");
967
996
  const arMode = this.getAttribute("ar-mode");
968
997
  if (configState) {
969
998
  dst += "&config_state=" + configState;
@@ -980,6 +1009,9 @@ class PlattarController {
980
1009
  if (variationID) {
981
1010
  dst += "&variation_id=" + variationID;
982
1011
  }
1012
+ if (variationSKU) {
1013
+ dst += "&variation_sku=" + variationSKU;
1014
+ }
983
1015
  if (arMode) {
984
1016
  dst += "&ar_mode=" + arMode;
985
1017
  }
@@ -1061,7 +1093,7 @@ class ProductController extends plattar_controller_1.PlattarController {
1061
1093
  this.removeRenderer();
1062
1094
  const productID = this.getAttribute("product-id");
1063
1095
  if (productID) {
1064
- const opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
1096
+ const opt = options || this._GetDefaultQROptions();
1065
1097
  const viewer = document.createElement("plattar-qrcode");
1066
1098
  // required attributes with defaults for plattar-viewer node
1067
1099
  const width = this.getAttribute("width") || "500px";
@@ -1077,12 +1109,17 @@ class ProductController extends plattar_controller_1.PlattarController {
1077
1109
  if (opt.qrType) {
1078
1110
  viewer.setAttribute("qr-type", opt.qrType);
1079
1111
  }
1112
+ viewer.setAttribute("shorten", (opt.shorten && (opt.shorten === true || opt.shorten === "true")) ? "true" : "false");
1080
1113
  // optional attributes
1081
1114
  const variationID = this.getAttribute("variation-id");
1115
+ const variationSKU = this.getAttribute("variation-sku");
1082
1116
  const showAR = this.getAttribute("show-ar");
1083
1117
  let dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + productID;
1084
1118
  if (variationID) {
1085
- dst += "&variation_id=" + variationID;
1119
+ dst += "&variationId=" + variationID;
1120
+ }
1121
+ if (variationSKU) {
1122
+ dst += "&variationSku=" + variationSKU;
1086
1123
  }
1087
1124
  if (showAR) {
1088
1125
  dst += "&show_ar=" + showAR;
@@ -1117,10 +1154,14 @@ class ProductController extends plattar_controller_1.PlattarController {
1117
1154
  viewer.setAttribute("product-id", productID);
1118
1155
  // optional attributes
1119
1156
  const variationID = this.getAttribute("variation-id");
1157
+ const variationSKU = this.getAttribute("variation-sku");
1120
1158
  const showAR = this.getAttribute("show-ar");
1121
1159
  if (variationID) {
1122
1160
  viewer.setAttribute("variation-id", variationID);
1123
1161
  }
1162
+ if (variationSKU) {
1163
+ viewer.setAttribute("variation-sku", variationSKU);
1164
+ }
1124
1165
  if (showAR) {
1125
1166
  viewer.setAttribute("show-ar", showAR);
1126
1167
  }
@@ -1143,7 +1184,8 @@ class ProductController extends plattar_controller_1.PlattarController {
1143
1184
  const productID = this.getAttribute("product-id");
1144
1185
  if (productID) {
1145
1186
  const variationID = this.getAttribute("variation-id");
1146
- const product = new product_ar_1.ProductAR(productID, variationID);
1187
+ const variationSKU = this.getAttribute("variation-sku");
1188
+ const product = new product_ar_1.ProductAR(productID, variationID, variationSKU);
1147
1189
  return product.init().then(accept).catch(reject);
1148
1190
  }
1149
1191
  return reject(new Error("ProductController.initAR() - minimum required attributes not set, use product-id as a minimum"));
@@ -1171,6 +1213,7 @@ const plattar_api_1 = require("@plattar/plattar-api");
1171
1213
  const product_ar_1 = require("../../ar/product-ar");
1172
1214
  const scene_ar_1 = require("../../ar/scene-ar");
1173
1215
  const scene_product_ar_1 = require("../../ar/scene-product-ar");
1216
+ const configurator_state_1 = require("../../util/configurator-state");
1174
1217
  const util_1 = require("../../util/util");
1175
1218
  const plattar_controller_1 = require("./plattar-controller");
1176
1219
  /**
@@ -1206,7 +1249,7 @@ class ViewerController extends plattar_controller_1.PlattarController {
1206
1249
  this.removeRenderer();
1207
1250
  const sceneID = this.getAttribute("scene-id");
1208
1251
  if (sceneID) {
1209
- const opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
1252
+ const opt = options || this._GetDefaultQROptions();
1210
1253
  const viewer = document.createElement("plattar-qrcode");
1211
1254
  // required attributes with defaults for plattar-viewer node
1212
1255
  const width = this.getAttribute("width") || "500px";
@@ -1222,10 +1265,12 @@ class ViewerController extends plattar_controller_1.PlattarController {
1222
1265
  if (opt.qrType) {
1223
1266
  viewer.setAttribute("qr-type", opt.qrType);
1224
1267
  }
1268
+ viewer.setAttribute("shorten", (opt.shorten && (opt.shorten === true || opt.shorten === "true")) ? "true" : "false");
1225
1269
  let dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + sceneID;
1226
1270
  // optional attributes
1227
1271
  const productID = (this.getAttribute("product-id") || this.getAttribute("scene-product-id"));
1228
1272
  const variationID = this.getAttribute("variation-id");
1273
+ const variationSKU = this.getAttribute("variation-sku");
1229
1274
  const showAR = this.getAttribute("show-ar");
1230
1275
  if (productID) {
1231
1276
  dst += "&productId=" + productID;
@@ -1233,6 +1278,9 @@ class ViewerController extends plattar_controller_1.PlattarController {
1233
1278
  if (variationID) {
1234
1279
  dst += "&variationId=" + variationID;
1235
1280
  }
1281
+ if (variationSKU) {
1282
+ dst += "&variationSku=" + variationSKU;
1283
+ }
1236
1284
  if (showAR) {
1237
1285
  dst += "&show_ar=" + showAR;
1238
1286
  }
@@ -1267,6 +1315,7 @@ class ViewerController extends plattar_controller_1.PlattarController {
1267
1315
  // optional attributes
1268
1316
  const productID = (this.getAttribute("product-id") || this.getAttribute("scene-product-id"));
1269
1317
  const variationID = this.getAttribute("variation-id");
1318
+ const variationSKU = this.getAttribute("variation-sku");
1270
1319
  const showAR = this.getAttribute("show-ar");
1271
1320
  if (productID) {
1272
1321
  viewer.setAttribute("product-id", productID);
@@ -1274,6 +1323,9 @@ class ViewerController extends plattar_controller_1.PlattarController {
1274
1323
  if (variationID) {
1275
1324
  viewer.setAttribute("variation-id", variationID);
1276
1325
  }
1326
+ if (variationSKU) {
1327
+ viewer.setAttribute("variation-sku", variationSKU);
1328
+ }
1277
1329
  if (showAR) {
1278
1330
  viewer.setAttribute("show-ar", showAR);
1279
1331
  }
@@ -1297,22 +1349,39 @@ class ViewerController extends plattar_controller_1.PlattarController {
1297
1349
  // use product-id if available
1298
1350
  if (productID) {
1299
1351
  const variationID = this.getAttribute("variation-id");
1300
- const product = new product_ar_1.ProductAR(productID, variationID);
1352
+ const variationSKU = this.getAttribute("variation-sku");
1353
+ const product = new product_ar_1.ProductAR(productID, variationID, variationSKU);
1301
1354
  return product.init().then(accept).catch(reject);
1302
1355
  }
1303
1356
  const sceneProductID = this.getAttribute("scene-product-id");
1304
1357
  // use scene-product-id if available
1305
1358
  if (sceneProductID) {
1306
1359
  const variationID = this.getAttribute("variation-id");
1307
- const product = new scene_product_ar_1.SceneProductAR(sceneProductID, variationID);
1360
+ const variationSKU = this.getAttribute("variation-sku");
1361
+ const product = new scene_product_ar_1.SceneProductAR(sceneProductID, variationID, variationSKU);
1308
1362
  return product.init().then(accept).catch(reject);
1309
1363
  }
1310
1364
  const sceneID = this.getAttribute("scene-id");
1311
1365
  // fallback to using default SceneAR implementation
1312
1366
  if (sceneID) {
1313
- const sceneAR = new scene_ar_1.SceneAR(sceneID);
1314
- sceneAR.init().then(accept).catch(reject);
1315
- return;
1367
+ // special case - check if scene only has a single product, if so
1368
+ // we need to use provided variation-id or variation-sku to override
1369
+ const variationID = this.getAttribute("variation-id");
1370
+ const variationSKU = this.getAttribute("variation-sku");
1371
+ // just do scene-ar if variation ID and variation SKU is not set
1372
+ if (!variationID && !variationSKU) {
1373
+ const sceneAR = new scene_ar_1.SceneAR(sceneID);
1374
+ return sceneAR.init().then(accept).catch(reject);
1375
+ }
1376
+ // otherwise decode scene
1377
+ return configurator_state_1.ConfiguratorState.decodeScene(sceneID).then((state) => {
1378
+ const firstProduct = state.first();
1379
+ if (state.length > 1 || !firstProduct) {
1380
+ return reject(new Error("ViewerController.initAR() - single product required to override variation-id or variation-sku"));
1381
+ }
1382
+ const product = new scene_product_ar_1.SceneProductAR(firstProduct.scene_product_id, variationID, variationSKU);
1383
+ return product.init().then(accept).catch(reject);
1384
+ }).catch(reject);
1316
1385
  }
1317
1386
  return reject(new Error("ViewerController.initAR() - minimum required attributes not set, use scene-id as a minimum"));
1318
1387
  });
@@ -1331,7 +1400,7 @@ class ViewerController extends plattar_controller_1.PlattarController {
1331
1400
  }
1332
1401
  exports.ViewerController = ViewerController;
1333
1402
 
1334
- },{"../../ar/product-ar":3,"../../ar/scene-ar":5,"../../ar/scene-product-ar":6,"../../util/util":15,"./plattar-controller":8,"@plattar/plattar-api":42}],11:[function(require,module,exports){
1403
+ },{"../../ar/product-ar":3,"../../ar/scene-ar":5,"../../ar/scene-product-ar":6,"../../util/configurator-state":14,"../../util/util":15,"./plattar-controller":8,"@plattar/plattar-api":42}],11:[function(require,module,exports){
1335
1404
  "use strict";
1336
1405
  Object.defineProperty(exports, "__esModule", { value: true });
1337
1406
  exports.VTOController = void 0;
@@ -1362,7 +1431,7 @@ class VTOController extends plattar_controller_1.PlattarController {
1362
1431
  this.removeRenderer();
1363
1432
  const sceneID = this.getAttribute("scene-id");
1364
1433
  if (sceneID) {
1365
- const opt = options || plattar_controller_1.PlattarController.DEFAULT_QR_OPTIONS;
1434
+ const opt = options || this._GetDefaultQROptions();
1366
1435
  const viewer = document.createElement("plattar-qrcode");
1367
1436
  // required attributes with defaults for plattar-viewer node
1368
1437
  const width = this.getAttribute("width") || "500px";
@@ -1378,6 +1447,7 @@ class VTOController extends plattar_controller_1.PlattarController {
1378
1447
  if (opt.qrType) {
1379
1448
  viewer.setAttribute("qr-type", opt.qrType);
1380
1449
  }
1450
+ viewer.setAttribute("shorten", (opt.shorten && (opt.shorten === true || opt.shorten === "true")) ? "true" : "false");
1381
1451
  let dst = plattar_api_1.Server.location().base + "renderer/facear.html?scene_id=" + sceneID;
1382
1452
  // optional attributes
1383
1453
  const configState = this.getAttribute("config-state");
@@ -2078,7 +2148,7 @@ exports.Util = Util;
2078
2148
  },{}],16:[function(require,module,exports){
2079
2149
  "use strict";
2080
2150
  Object.defineProperty(exports, "__esModule", { value: true });
2081
- exports.default = "1.130.2";
2151
+ exports.default = "1.132.1";
2082
2152
 
2083
2153
  },{}],17:[function(require,module,exports){
2084
2154
  "use strict";
@@ -6251,6 +6321,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6251
6321
  exports.default = "1.120.1";
6252
6322
 
6253
6323
  },{}],115:[function(require,module,exports){
6324
+ const Util = require("../../util/util");
6254
6325
  const ElementController = require("../controllers/element-controller");
6255
6326
 
6256
6327
  class BaseElement extends HTMLElement {
@@ -6388,10 +6459,14 @@ class BaseElement extends HTMLElement {
6388
6459
  get elementType() {
6389
6460
  return "none";
6390
6461
  }
6462
+
6463
+ get elementLocation() {
6464
+ return Util.getElementLocation(this.elementType);
6465
+ }
6391
6466
  }
6392
6467
 
6393
6468
  module.exports = BaseElement;
6394
- },{"../controllers/element-controller":117}],116:[function(require,module,exports){
6469
+ },{"../../util/util":128,"../controllers/element-controller":117}],116:[function(require,module,exports){
6395
6470
  const BaseElement = require("./base/base-element.js");
6396
6471
 
6397
6472
  class ConfiguratorElement extends BaseElement {
@@ -6407,6 +6482,16 @@ class ConfiguratorElement extends BaseElement {
6407
6482
  return "configurator";
6408
6483
  }
6409
6484
 
6485
+ get elementLocation() {
6486
+ if (this.hasAttribute("show-ui")) {
6487
+ const state = this.getAttribute("show-ui");
6488
+
6489
+ return state === "true" ? "configurator/dist/index.html" : super.elementLocation;
6490
+ }
6491
+
6492
+ return super.elementLocation;
6493
+ }
6494
+
6410
6495
  get optionalAttributes() {
6411
6496
  return [{
6412
6497
  key: "config-state",
@@ -6464,7 +6549,7 @@ class ElementController {
6464
6549
  throw new Error("ElementController - attribute \"server\" must be one of \"production\", \"staging\" or \"dev\"");
6465
6550
  }
6466
6551
 
6467
- const embedLocation = Util.getElementLocation(element.elementType);
6552
+ const embedLocation = element.elementLocation;
6468
6553
 
6469
6554
  if (embedLocation === undefined) {
6470
6555
  throw new Error("ElementController - element named \"" + elementType + "\" is invalid");
@@ -6554,15 +6639,7 @@ class IFrameController {
6554
6639
  if (element.hasAttribute("fullscreen")) {
6555
6640
  const style = document.createElement('style');
6556
6641
 
6557
- style.textContent = `
6558
- ._PlattarFullScreen {
6559
- width: 100%;
6560
- height: 100%;
6561
- position: absolute;
6562
- top: 0;
6563
- left: 0;
6564
- }
6565
- `;
6642
+ style.textContent = `._PlattarFullScreen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }`;
6566
6643
 
6567
6644
  this._iframe.className = "_PlattarFullScreen";
6568
6645
 
@@ -6701,6 +6778,9 @@ class FaceARElement extends BaseElement {
6701
6778
  return [{
6702
6779
  key: "variation-id",
6703
6780
  map: "variationId"
6781
+ }, {
6782
+ key: "variation-sku",
6783
+ map: "variationSku"
6704
6784
  }, {
6705
6785
  key: "product-id",
6706
6786
  map: "productId"
@@ -6767,6 +6847,9 @@ class ProductElement extends BaseElement {
6767
6847
  return [{
6768
6848
  key: "variation-id",
6769
6849
  map: "variation_id"
6850
+ }, {
6851
+ key: "variation-sku",
6852
+ map: "variationSku"
6770
6853
  }, {
6771
6854
  key: "show-ar",
6772
6855
  map: "show_ar"
@@ -6813,6 +6896,9 @@ class ViewerElement extends BaseElement {
6813
6896
  return [{
6814
6897
  key: "variation-id",
6815
6898
  map: "variationId"
6899
+ }, {
6900
+ key: "variation-sku",
6901
+ map: "variationSku"
6816
6902
  }, {
6817
6903
  key: "product-id",
6818
6904
  map: "productId"
@@ -6900,9 +6986,9 @@ module.exports = {
6900
6986
  class Util {
6901
6987
  static getServerLocation(server) {
6902
6988
  switch (server) {
6903
- case "production": return "https://app.plattar.com/renderer/";
6904
- case "staging": return "https://staging.plattar.space/renderer/";
6905
- case "dev": return "https://localhost/renderer/";
6989
+ case "production": return "https://app.plattar.com/";
6990
+ case "staging": return "https://staging.plattar.space/";
6991
+ case "dev": return "https://localhost/";
6906
6992
  default: return undefined;
6907
6993
  }
6908
6994
  }
@@ -6911,25 +6997,7 @@ class Util {
6911
6997
  const isValid = Util.isValidType(etype);
6912
6998
 
6913
6999
  if (isValid) {
6914
- return etype + ".html";
6915
- }
6916
-
6917
- return undefined;
6918
- }
6919
-
6920
- static getElementBundleLocation(etype, server) {
6921
- const location = Util.getServerLocation(server);
6922
-
6923
- if (!location) {
6924
- return undefined;
6925
- }
6926
-
6927
- const isValid = Util.isValidType(etype);
6928
-
6929
- if (isValid) {
6930
- const isMinified = location === "dev" ? false : true;
6931
-
6932
- return isMinified ? (etype + "-bundle.min.js") : (etype + "-bundle.js");
7000
+ return "renderer/" + etype + ".html";
6933
7001
  }
6934
7002
 
6935
7003
  return undefined;
@@ -6972,7 +7040,7 @@ class Util {
6972
7040
 
6973
7041
  module.exports = Util;
6974
7042
  },{}],129:[function(require,module,exports){
6975
- module.exports = "1.129.1";
7043
+ module.exports = "1.131.1";
6976
7044
 
6977
7045
  },{}],130:[function(require,module,exports){
6978
7046
  (function (global){(function (){