@spiffcommerce/core 34.3.0-beta.93adb5e0-6f1f-5a2c-82a3-b3d6fdd913aa → 34.3.0-beta.fcce1a2a-9b47-5742-9feb-5ff24c4e9d73

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/index.mjs CHANGED
@@ -3909,14 +3909,16 @@ const _t = new Mr(), On = C`
3909
3909
  class Or {
3910
3910
  constructor() {
3911
3911
  this.getDefaultVariant = (t, e) => {
3912
+ console.log(`log: getting default variant for option ${t.id} (${t.name}) with override ${e}`);
3912
3913
  const a = t.variants;
3913
3914
  if (a) {
3914
3915
  if (a.length === 1)
3915
3916
  return a[0];
3916
3917
  if (e) {
3917
- const i = a.find((r) => r.id === e);
3918
+ const i = a.find((r) => (console.log(`log: comparing variant ${r.id} (${r.name}) to override ${e}`), r.id === e));
3918
3919
  if (i)
3919
- return i;
3920
+ return console.log("log: found override"), i;
3921
+ console.log("log: did not find override");
3920
3922
  }
3921
3923
  if (t.defaultVariant !== void 0)
3922
3924
  return a.find((i) => i.id === t.defaultVariant?.id);
@@ -16163,7 +16165,7 @@ class Ud {
16163
16165
  } catch (a) {
16164
16166
  throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
16165
16167
  }
16166
- }, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.3.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16168
+ }, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.3.0-beta.1e05cef1-118d-5927-a0b1-6b2ca9f97366"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16167
16169
  }
16168
16170
  configure(t) {
16169
16171
  pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);