@opentabs-dev/opentabs-plugin-netflix 0.0.74 → 0.0.75

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.
@@ -15108,21 +15108,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15108
15108
  };
15109
15109
  var src_default = new NetflixPlugin();
15110
15110
 
15111
- // dist/_adapter_entry_c6ceb6cb-9c01-4883-b54f-2c303dd7a2d5.ts
15111
+ // dist/_adapter_entry_d950e94a-7080-4d15-be5a-bad0bed45c13.ts
15112
15112
  if (!globalThis.__openTabs) {
15113
15113
  globalThis.__openTabs = {};
15114
15114
  } else {
15115
15115
  const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
15116
15116
  if (desc && !desc.writable) {
15117
- const ot3 = globalThis.__openTabs;
15117
+ const ot2 = globalThis.__openTabs;
15118
15118
  const newAdaptersObj = {};
15119
- if (ot3.adapters) {
15120
- for (const key of Object.keys(ot3.adapters)) {
15121
- const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
15119
+ if (ot2.adapters) {
15120
+ for (const key of Object.keys(ot2.adapters)) {
15121
+ const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
15122
15122
  if (d) Object.defineProperty(newAdaptersObj, key, d);
15123
15123
  }
15124
15124
  }
15125
- globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
15125
+ globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
15126
15126
  }
15127
15127
  }
15128
15128
  if (!globalThis.__openTabs.adapters) {
@@ -15160,16 +15160,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15160
15160
  }
15161
15161
  };
15162
15162
  var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
15163
- var ot2 = globalThis.__openTabs;
15164
- ot2._notifyReadinessChanged = () => {
15165
- try {
15166
- const nonce = globalThis.__openTabs?._readinessNonce;
15167
- if (nonce) {
15168
- window.postMessage({ type: "opentabs:readiness-changed", plugin: "netflix", nonce }, "*");
15169
- }
15170
- } catch {
15171
- }
15172
- };
15173
15163
  var existing = adapters["netflix"];
15174
15164
  if (existing) {
15175
15165
  if (typeof existing.teardown === "function") {
@@ -15181,7 +15171,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15181
15171
  }
15182
15172
  }
15183
15173
  if (!Reflect.deleteProperty(adapters, "netflix")) {
15184
- const ot3 = globalThis.__openTabs;
15174
+ const ot2 = globalThis.__openTabs;
15185
15175
  const newAdapters = {};
15186
15176
  for (const key of Object.keys(adapters)) {
15187
15177
  if (key !== "netflix") {
@@ -15189,7 +15179,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15189
15179
  if (desc) Object.defineProperty(newAdapters, key, desc);
15190
15180
  }
15191
15181
  }
15192
- globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
15182
+ globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
15193
15183
  }
15194
15184
  var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
15195
15185
  for (const tool of src_default.tools) {
@@ -15250,12 +15240,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15250
15240
  }
15251
15241
  }
15252
15242
  };
15253
- const ot3 = globalThis.__openTabs;
15254
- if (!ot3._navigationInterceptor) {
15243
+ const ot2 = globalThis.__openTabs;
15244
+ if (!ot2._navigationInterceptor) {
15255
15245
  const origPushState = history.pushState.bind(history);
15256
15246
  const origReplaceState = history.replaceState.bind(history);
15257
15247
  const callbacks = /* @__PURE__ */ new Map();
15258
- ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
15248
+ ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
15259
15249
  history.pushState = function(...args) {
15260
15250
  origPushState(...args);
15261
15251
  for (const cb of callbacks.values()) {
@@ -15269,7 +15259,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15269
15259
  }
15270
15260
  };
15271
15261
  }
15272
- const interceptor = ot3._navigationInterceptor;
15262
+ const interceptor = ot2._navigationInterceptor;
15273
15263
  interceptor.callbacks.set("netflix", checkUrl);
15274
15264
  window.addEventListener("popstate", checkUrl);
15275
15265
  window.addEventListener("hashchange", checkUrl);
@@ -15324,5 +15314,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15324
15314
  };
15325
15315
  delete src_default.onDeactivate;
15326
15316
  }
15327
- })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["netflix"]){var a=o.adapters["netflix"];a.__adapterHash="dbdb1ac7693f65b1882065e46d8606503b2a30f964fd1b596daec780f5aabc6e";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"netflix",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
15317
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["netflix"]){var a=o.adapters["netflix"];a.__adapterHash="931fe57fff70264a5c17e0d69838b57ff13dc63f6a8c53fbf7bb0cad14595a93";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"netflix",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
15328
15318
  //# sourceMappingURL=adapter.iife.js.map