@saasquatch/squatch-js 2.8.2-21 → 2.8.2-22

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/dist/squatch.js CHANGED
@@ -1122,12 +1122,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1122
1122
  }
1123
1123
  async load() {
1124
1124
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
1125
- const brandingConfig2 = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1126
- const initialHeight = brandingConfig2 == null ? void 0 : brandingConfig2.loadingHeight;
1127
- (_d = (_c = brandingConfig2 == null ? void 0 : brandingConfig2.color) == null ? void 0 : _c.loadingSkeleton) == null ? void 0 : _d.background;
1128
- (_f = (_e = brandingConfig2 == null ? void 0 : brandingConfig2.color) == null ? void 0 : _e.loadingSkeleton) == null ? void 0 : _f.animationBackground;
1129
- (_g = brandingConfig2 == null ? void 0 : brandingConfig2.border) == null ? void 0 : _g.borderColor;
1130
- const sizes = (_h = brandingConfig2 == null ? void 0 : brandingConfig2.widgetSize) == null ? void 0 : _h.embeddedWidgets;
1125
+ const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1126
+ const initialHeight = brandingConfig == null ? void 0 : brandingConfig.loadingHeight;
1127
+ (_d = (_c = brandingConfig == null ? void 0 : brandingConfig.color) == null ? void 0 : _c.loadingSkeleton) == null ? void 0 : _d.background;
1128
+ (_f = (_e = brandingConfig == null ? void 0 : brandingConfig.color) == null ? void 0 : _e.loadingSkeleton) == null ? void 0 : _f.animationBackground;
1129
+ (_g = brandingConfig == null ? void 0 : brandingConfig.border) == null ? void 0 : _g.borderColor;
1130
+ const sizes = (_h = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _h.embeddedWidgets;
1131
1131
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "";
1132
1132
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "";
1133
1133
  const frame = this._createFrame({
@@ -1164,12 +1164,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1164
1164
  frameDoc.open();
1165
1165
  const domain = this.widgetApi.domain;
1166
1166
  frameDoc.write(`
1167
- ${((_k = brandingConfig2 == null ? void 0 : brandingConfig2.main) == null ? void 0 : _k.brandFont) ? `
1167
+ ${((_k = brandingConfig == null ? void 0 : brandingConfig.main) == null ? void 0 : _k.brandFont) ? `
1168
1168
  <link rel="preconnect" href="https://fast${domain === "https://staging.referralsaasquatch.com" && "-staging"}.ssqt.io">
1169
1169
  <link rel="preconnect" href="https://fonts.gstatic.com">
1170
1170
  <link rel="preconnect" href="https://fonts.googleapis.com">
1171
1171
  <link rel="preload" href="https://fonts.googleapis.com/css2?family=${encodeURIComponent(
1172
- (_l = brandingConfig2 == null ? void 0 : brandingConfig2.main) == null ? void 0 : _l.brandFont
1172
+ (_l = brandingConfig == null ? void 0 : brandingConfig.main) == null ? void 0 : _l.brandFont
1173
1173
  )}" as="style">` : ""}
1174
1174
  <script src="${this.npmCdn}/resize-observer-polyfill@1.5.x"><\/script>
1175
1175
  <style data-styles>
@@ -1281,8 +1281,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1281
1281
  _createPopupDialog() {
1282
1282
  var _a2, _b, _c;
1283
1283
  const dialog = document.createElement("dialog");
1284
- const brandingConfig2 = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1285
- const sizes = (_c = brandingConfig2 == null ? void 0 : brandingConfig2.widgetSize) == null ? void 0 : _c.popupWidgets;
1284
+ const brandingConfig = (_b = (_a2 = this.context.widgetConfig) == null ? void 0 : _a2.values) == null ? void 0 : _b.brandingConfig;
1285
+ const sizes = (_c = brandingConfig == null ? void 0 : brandingConfig.widgetSize) == null ? void 0 : _c.popupWidgets;
1286
1286
  const minWidth = (sizes == null ? void 0 : sizes.minWidth) ? formatWidth(sizes.minWidth) : "auto";
1287
1287
  const maxWidth = (sizes == null ? void 0 : sizes.maxWidth) ? formatWidth(sizes.maxWidth) : "500px";
1288
1288
  dialog.id = this.id;
@@ -2444,7 +2444,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2444
2444
  async connectedCallback() {
2445
2445
  this.loaded = true;
2446
2446
  this.container = this.getAttribute("container");
2447
- brandingConfig == null ? void 0 : brandingConfig.loadingHeight;
2448
2447
  const skeletonHTML = getSkeleton({});
2449
2448
  const skeletonContainer = document.createElement("div");
2450
2449
  skeletonContainer.id = "loading-skeleton";