lwc 2.13.0 → 2.13.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.
Files changed (43) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +155 -145
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +155 -145
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +143 -133
  5. package/dist/engine-dom/iife/es5/engine-dom.js +162 -142
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +144 -124
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +155 -145
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +143 -133
  11. package/dist/engine-dom/umd/es5/engine-dom.js +162 -142
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +144 -124
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +132 -124
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +132 -124
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +693 -693
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +693 -693
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +681 -681
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +686 -686
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +1 -1
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +697 -697
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +693 -693
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +681 -681
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +686 -686
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +1 -1
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +697 -697
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service.min.js +1 -1
  33. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  34. package/dist/wire-service/iife/es5/wire-service.js +5 -5
  35. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  36. package/dist/wire-service/iife/es5/wire-service_debug.js +5 -5
  37. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  38. package/dist/wire-service/umd/es2017/wire-service.min.js +1 -1
  39. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  40. package/dist/wire-service/umd/es5/wire-service.js +5 -5
  41. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  42. package/dist/wire-service/umd/es5/wire-service_debug.js +5 -5
  43. package/package.json +7 -7
@@ -34,7 +34,7 @@ var LWC = (function (exports) {
34
34
  return false;
35
35
  }
36
36
  }
37
- function _construct(Parent, args, Class) {
37
+ function _construct(Parent1, args1, Class1) {
38
38
  if (isNativeReflectConstruct()) {
39
39
  _construct = Reflect.construct;
40
40
  } else {
@@ -52,8 +52,8 @@ var LWC = (function (exports) {
52
52
  return _construct.apply(null, arguments);
53
53
  }
54
54
  function _defineProperties(target, props) {
55
- for(var i1 = 0; i1 < props.length; i1++){
56
- var descriptor = props[i1];
55
+ for(var i2 = 0; i2 < props.length; i2++){
56
+ var descriptor = props[i2];
57
57
  descriptor.enumerable = descriptor.enumerable || false;
58
58
  descriptor.configurable = true;
59
59
  if ("value" in descriptor) descriptor.writable = true;
@@ -78,7 +78,7 @@ var LWC = (function (exports) {
78
78
  }
79
79
  return obj;
80
80
  }
81
- function _get(target, property, receiver) {
81
+ function _get(target1, property1, receiver1) {
82
82
  if (typeof Reflect !== "undefined" && Reflect.get) {
83
83
  _get = Reflect.get;
84
84
  } else {
@@ -92,13 +92,13 @@ var LWC = (function (exports) {
92
92
  return desc.value;
93
93
  };
94
94
  }
95
- return _get(target, property, receiver || target);
95
+ return _get(target1, property1, receiver1 || target1);
96
96
  }
97
- function _getPrototypeOf(o) {
97
+ function _getPrototypeOf(o1) {
98
98
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
99
99
  return o.__proto__ || Object.getPrototypeOf(o);
100
100
  };
101
- return _getPrototypeOf(o);
101
+ return _getPrototypeOf(o1);
102
102
  }
103
103
  function _inherits(subClass, superClass) {
104
104
  if (typeof superClass !== "function" && superClass !== null) {
@@ -126,7 +126,7 @@ var LWC = (function (exports) {
126
126
  function _iterableToArray(iter) {
127
127
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
128
128
  }
129
- function _iterableToArrayLimit(arr, i1) {
129
+ function _iterableToArrayLimit(arr, i3) {
130
130
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
131
131
  if (_i == null) return;
132
132
  var _arr = [];
@@ -136,7 +136,7 @@ var LWC = (function (exports) {
136
136
  try {
137
137
  for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
138
138
  _arr.push(_s.value);
139
- if (i1 && _arr.length === i1) break;
139
+ if (i3 && _arr.length === i3) break;
140
140
  }
141
141
  } catch (err) {
142
142
  _d = true;
@@ -162,15 +162,15 @@ var LWC = (function (exports) {
162
162
  }
163
163
  return _assertThisInitialized(self);
164
164
  }
165
- function _setPrototypeOf(o, p) {
165
+ function _setPrototypeOf(o2, p1) {
166
166
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
167
167
  o.__proto__ = p;
168
168
  return o;
169
169
  };
170
- return _setPrototypeOf(o, p);
170
+ return _setPrototypeOf(o2, p1);
171
171
  }
172
- function _slicedToArray(arr, i1) {
173
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i1) || _unsupportedIterableToArray(arr, i1) || _nonIterableRest();
172
+ function _slicedToArray(arr, i4) {
173
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i4) || _unsupportedIterableToArray(arr, i4) || _nonIterableRest();
174
174
  }
175
175
  function _superPropBase(object, property) {
176
176
  while(!Object.prototype.hasOwnProperty.call(object, property)){
@@ -194,7 +194,7 @@ var LWC = (function (exports) {
194
194
  if (n === "Map" || n === "Set") return Array.from(n);
195
195
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
196
196
  }
197
- function _wrapNativeSuper(Class) {
197
+ function _wrapNativeSuper(Class2) {
198
198
  var _cache = typeof Map === "function" ? new Map() : undefined;
199
199
  _wrapNativeSuper = function _wrapNativeSuper(Class) {
200
200
  if (Class === null || !_isNativeFunction(Class)) return Class;
@@ -218,7 +218,7 @@ var LWC = (function (exports) {
218
218
  });
219
219
  return _setPrototypeOf(Wrapper, Class);
220
220
  };
221
- return _wrapNativeSuper(Class);
221
+ return _wrapNativeSuper(Class2);
222
222
  }
223
223
  function _isNativeReflectConstruct() {
224
224
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
@@ -564,7 +564,7 @@ var LWC = (function (exports) {
564
564
  var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
565
565
  var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
566
566
  var XLINK_NAMESPACE = "http://www.w3.org/1999/xlink";
567
- /** version: 2.13.0 */ /*
567
+ /** version: 2.13.3 */ /*
568
568
  * Copyright (c) 2018, salesforce.com, inc.
569
569
  * All rights reserved.
570
570
  * SPDX-License-Identifier: MIT
@@ -697,7 +697,7 @@ var LWC = (function (exports) {
697
697
  * purposes. It is a no-op when invoked in production mode.
698
698
  */ function setFeatureFlagForTest(name, value) {
699
699
  }
700
- /** version: 2.13.0 */ /* proxy-compat-disable */ /*
700
+ /** version: 2.13.3 */ /* proxy-compat-disable */ /*
701
701
  * Copyright (c) 2018, salesforce.com, inc.
702
702
  * All rights reserved.
703
703
  * SPDX-License-Identifier: MIT
@@ -721,7 +721,7 @@ var LWC = (function (exports) {
721
721
  }
722
722
  function guid() {
723
723
  var s4 = function s4() {
724
- return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
724
+ return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
725
725
  };
726
726
  return s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
727
727
  }
@@ -1126,6 +1126,18 @@ var LWC = (function (exports) {
1126
1126
  function logError(message, vm9) {
1127
1127
  log("error", message, vm9);
1128
1128
  }
1129
+ /*
1130
+ * Copyright (c) 2020, salesforce.com, inc.
1131
+ * All rights reserved.
1132
+ * SPDX-License-Identifier: MIT
1133
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1134
+ */ function resolveCircularModuleDependency(fn) {
1135
+ var module = fn();
1136
+ return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
1137
+ }
1138
+ function isCircularModuleDependency(obj) {
1139
+ return isFunction$1(obj) && hasOwnProperty$1.call(obj, "__circular__");
1140
+ }
1129
1141
  /*
1130
1142
  * Copyright (c) 2018, salesforce.com, inc.
1131
1143
  * All rights reserved.
@@ -2136,53 +2148,7 @@ var LWC = (function (exports) {
2136
2148
  },
2137
2149
  configurable: true
2138
2150
  });
2139
- /*
2140
- * Copyright (c) 2018, salesforce.com, inc.
2141
- * All rights reserved.
2142
- * SPDX-License-Identifier: MIT
2143
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2144
- */ /**
2145
- * @wire decorator to wire fields and methods to a wire adapter in
2146
- * LWC Components. This function implements the internals of this
2147
- * decorator.
2148
- */ function wire(_adapter, _config) {
2149
- throw new Error();
2150
- }
2151
- function internalWireFieldDecorator(key) {
2152
- return {
2153
- get: function get1() {
2154
- var vm = getAssociatedVM(this);
2155
- componentValueObserved(vm, key);
2156
- return vm.cmpFields[key];
2157
- },
2158
- set: function set1(value) {
2159
- var vm = getAssociatedVM(this);
2160
- /**
2161
- * Reactivity for wired fields is provided in wiring.
2162
- * We intentionally add reactivity here since this is just
2163
- * letting the author to do the wrong thing, but it will keep our
2164
- * system to be backward compatible.
2165
- */ if (value !== vm.cmpFields[key]) {
2166
- vm.cmpFields[key] = value;
2167
- componentValueMutated(vm, key);
2168
- }
2169
- },
2170
- enumerable: true,
2171
- configurable: true
2172
- };
2173
- }
2174
- /*
2175
- * Copyright (c) 2018, salesforce.com, inc.
2176
- * All rights reserved.
2177
- * SPDX-License-Identifier: MIT
2178
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2179
- */ function track(target) {
2180
- if (arguments.length === 1) {
2181
- return reactiveMembrane.getProxy(target);
2182
- }
2183
- throw new Error();
2184
- }
2185
- function internalTrackDecorator(key) {
2151
+ function createObservedFieldPropertyDescriptor(key) {
2186
2152
  return {
2187
2153
  get: function get1() {
2188
2154
  var vm = getAssociatedVM(this);
@@ -2191,9 +2157,8 @@ var LWC = (function (exports) {
2191
2157
  },
2192
2158
  set: function set1(newValue) {
2193
2159
  var vm = getAssociatedVM(this);
2194
- var reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2195
- if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2196
- vm.cmpFields[key] = reactiveOrAnyValue;
2160
+ if (newValue !== vm.cmpFields[key]) {
2161
+ vm.cmpFields[key] = newValue;
2197
2162
  componentValueMutated(vm, key);
2198
2163
  }
2199
2164
  },
@@ -2306,7 +2271,18 @@ var LWC = (function (exports) {
2306
2271
  configurable: configurable
2307
2272
  };
2308
2273
  }
2309
- function createObservedFieldPropertyDescriptor(key) {
2274
+ /*
2275
+ * Copyright (c) 2018, salesforce.com, inc.
2276
+ * All rights reserved.
2277
+ * SPDX-License-Identifier: MIT
2278
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2279
+ */ function track(target) {
2280
+ if (arguments.length === 1) {
2281
+ return reactiveMembrane.getProxy(target);
2282
+ }
2283
+ throw new Error();
2284
+ }
2285
+ function internalTrackDecorator(key) {
2310
2286
  return {
2311
2287
  get: function get1() {
2312
2288
  var vm = getAssociatedVM(this);
@@ -2315,8 +2291,44 @@ var LWC = (function (exports) {
2315
2291
  },
2316
2292
  set: function set1(newValue) {
2317
2293
  var vm = getAssociatedVM(this);
2318
- if (newValue !== vm.cmpFields[key]) {
2319
- vm.cmpFields[key] = newValue;
2294
+ var reactiveOrAnyValue = reactiveMembrane.getProxy(newValue);
2295
+ if (reactiveOrAnyValue !== vm.cmpFields[key]) {
2296
+ vm.cmpFields[key] = reactiveOrAnyValue;
2297
+ componentValueMutated(vm, key);
2298
+ }
2299
+ },
2300
+ enumerable: true,
2301
+ configurable: true
2302
+ };
2303
+ }
2304
+ /*
2305
+ * Copyright (c) 2018, salesforce.com, inc.
2306
+ * All rights reserved.
2307
+ * SPDX-License-Identifier: MIT
2308
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2309
+ */ /**
2310
+ * @wire decorator to wire fields and methods to a wire adapter in
2311
+ * LWC Components. This function implements the internals of this
2312
+ * decorator.
2313
+ */ function wire(_adapter, _config) {
2314
+ throw new Error();
2315
+ }
2316
+ function internalWireFieldDecorator(key) {
2317
+ return {
2318
+ get: function get1() {
2319
+ var vm = getAssociatedVM(this);
2320
+ componentValueObserved(vm, key);
2321
+ return vm.cmpFields[key];
2322
+ },
2323
+ set: function set1(value) {
2324
+ var vm = getAssociatedVM(this);
2325
+ /**
2326
+ * Reactivity for wired fields is provided in wiring.
2327
+ * We intentionally add reactivity here since this is just
2328
+ * letting the author to do the wrong thing, but it will keep our
2329
+ * system to be backward compatible.
2330
+ */ if (value !== vm.cmpFields[key]) {
2331
+ vm.cmpFields[key] = value;
2320
2332
  componentValueMutated(vm, key);
2321
2333
  }
2322
2334
  },
@@ -2434,7 +2446,12 @@ var LWC = (function (exports) {
2434
2446
  var meta = signedDecoratorToMetaMap.get(Ctor);
2435
2447
  return isUndefined$1(meta) ? defaultMeta : meta;
2436
2448
  }
2437
- var signedTemplateSet = new Set();
2449
+ /*
2450
+ * Copyright (c) 2018, salesforce.com, inc.
2451
+ * All rights reserved.
2452
+ * SPDX-License-Identifier: MIT
2453
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2454
+ */ var signedTemplateSet = new Set();
2438
2455
  function defaultEmptyTemplate() {
2439
2456
  return [];
2440
2457
  }
@@ -2447,6 +2464,30 @@ var LWC = (function (exports) {
2447
2464
  * will prevent this function from being imported by userland code.
2448
2465
  */ function registerTemplate(tpl) {
2449
2466
  signedTemplateSet.add(tpl);
2467
+ // FIXME[@W-10950976]: the template object should be frozen, and it should not be possible to set
2468
+ // the stylesheets or stylesheetToken(s). For backwards compat, though, we shim stylesheetTokens
2469
+ // on top of stylesheetToken for anyone who is accessing the old internal API.
2470
+ // Details: https://salesforce.quip.com/v1rmAFu2cKAr
2471
+ defineProperty(tpl, "stylesheetTokens", {
2472
+ get: function get1() {
2473
+ var stylesheetToken = this.stylesheetToken;
2474
+ if (isUndefined$1(stylesheetToken)) {
2475
+ return stylesheetToken;
2476
+ }
2477
+ // Shim for the old `stylesheetTokens` property
2478
+ // See https://github.com/salesforce/lwc/pull/2332/files#diff-7901555acef29969adaa6583185b3e9bce475cdc6f23e799a54e0018cb18abaa
2479
+ return {
2480
+ hostAttribute: "".concat(stylesheetToken, "-host"),
2481
+ shadowAttribute: stylesheetToken
2482
+ };
2483
+ },
2484
+ set: function set1(value) {
2485
+ // If the value is null or some other exotic object, you would be broken anyway in the past
2486
+ // because the engine would try to access hostAttribute/shadowAttribute, which would throw an error.
2487
+ // However it may be undefined in newer versions of LWC, so we need to guard against that case.
2488
+ this.stylesheetToken = isUndefined$1(value) ? undefined : value.shadowAttribute;
2489
+ }
2490
+ });
2450
2491
  // chaining this method as a way to wrap existing
2451
2492
  // assignment of templates easily, without too much transformation
2452
2493
  return tpl;
@@ -2610,18 +2651,6 @@ var LWC = (function (exports) {
2610
2651
  var BaseBridgeElement = HTMLBridgeElementFactory(HTMLElementConstructor$1, getOwnPropertyNames$1(HTMLElementOriginalDescriptors), []);
2611
2652
  freeze(BaseBridgeElement);
2612
2653
  seal(BaseBridgeElement.prototype);
2613
- /*
2614
- * Copyright (c) 2020, salesforce.com, inc.
2615
- * All rights reserved.
2616
- * SPDX-License-Identifier: MIT
2617
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
2618
- */ function resolveCircularModuleDependency(fn) {
2619
- var module = fn();
2620
- return (module === null || module === void 0 ? void 0 : module.__esModule) ? module.default : module;
2621
- }
2622
- function isCircularModuleDependency(obj) {
2623
- return isFunction$1(obj) && hasOwnProperty$1.call(obj, "__circular__");
2624
- }
2625
2654
  function setActiveVM(vm) {
2626
2655
  {
2627
2656
  // this method should never leak to prod
@@ -4329,14 +4358,8 @@ var LWC = (function (exports) {
4329
4358
  function removeVM(vm) {
4330
4359
  resetComponentStateWhenRemoved(vm);
4331
4360
  }
4332
- function getNearestShadowAncestor(vm) {
4333
- var ancestor = vm.owner;
4334
- while(!isNull(ancestor) && ancestor.renderMode === 0){
4335
- ancestor = ancestor.owner;
4336
- }
4337
- return ancestor;
4338
- }
4339
4361
  function createVM(elm, ctor, options) {
4362
+ var _a;
4340
4363
  var mode = options.mode, owner = options.owner, tagName = options.tagName;
4341
4364
  var def = getComponentInternalDef(ctor);
4342
4365
  var vm = {
@@ -4358,6 +4381,8 @@ var LWC = (function (exports) {
4358
4381
  oar: create(null),
4359
4382
  cmpTemplate: null,
4360
4383
  renderMode: def.renderMode,
4384
+ shadowMode: computeShadowMode(def, owner),
4385
+ nearestShadowMode: (owner === null || owner === void 0 ? void 0 : owner.shadowRoot) ? owner.shadowMode : (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : null,
4361
4386
  context: {
4362
4387
  stylesheetToken: undefined,
4363
4388
  hasTokenInClass: undefined,
@@ -4370,7 +4395,6 @@ var LWC = (function (exports) {
4370
4395
  },
4371
4396
  // Properties set right after VM creation.
4372
4397
  tro: null,
4373
- shadowMode: null,
4374
4398
  // Properties set by the LightningElement constructor.
4375
4399
  component: null,
4376
4400
  shadowRoot: null,
@@ -4379,7 +4403,6 @@ var LWC = (function (exports) {
4379
4403
  setHook: setHook,
4380
4404
  getHook: getHook
4381
4405
  };
4382
- vm.shadowMode = computeShadowMode(vm);
4383
4406
  vm.tro = getTemplateReactiveObserver(vm);
4384
4407
  invokeComponentConstructor(vm, def.ctor); // Initializing the wire decorator per instance only when really needed
4385
4408
  if (hasWireAdapters(vm)) {
@@ -4387,8 +4410,8 @@ var LWC = (function (exports) {
4387
4410
  }
4388
4411
  return vm;
4389
4412
  }
4390
- function computeShadowMode(vm) {
4391
- var def = vm.def;
4413
+ function computeShadowMode(def, owner) {
4414
+ var _a;
4392
4415
  var shadowMode;
4393
4416
  if (isSyntheticShadowDefined$1) {
4394
4417
  if (def.renderMode === 0) {
@@ -4402,16 +4425,11 @@ var LWC = (function (exports) {
4402
4425
  if (def.shadowSupportMode === "any") {
4403
4426
  shadowMode = 0 /* Native */ ;
4404
4427
  } else {
4405
- var shadowAncestor = getNearestShadowAncestor(vm);
4406
- if (!isNull(shadowAncestor) && shadowAncestor.shadowMode === 0) {
4407
- // Transitive support for native Shadow DOM. A component in native mode
4408
- // transitively opts all of its descendants into native.
4409
- shadowMode = 0 /* Native */ ;
4410
- } else {
4411
- // Synthetic if neither this component nor any of its ancestors are configured
4412
- // to be native.
4413
- shadowMode = 1 /* Synthetic */ ;
4414
- }
4428
+ // Transitive support for native Shadow DOM. A component in native mode
4429
+ // transitively opts all of its descendants into native.
4430
+ // Synthetic if neither this component nor any of its ancestors are configured
4431
+ // to be native.
4432
+ shadowMode = (_a = owner === null || owner === void 0 ? void 0 : owner.nearestShadowMode) !== null && _a !== void 0 ? _a : 1 /* Synthetic */ ;
4415
4433
  }
4416
4434
  } else {
4417
4435
  shadowMode = 1 /* Synthetic */ ;
@@ -5197,7 +5215,27 @@ var LWC = (function (exports) {
5197
5215
  hooksAreSet = true;
5198
5216
  setSanitizeHtmlContentHook(hooks1.sanitizeHtmlContent);
5199
5217
  }
5200
- /* version: 2.13.0 */ /*
5218
+ /*
5219
+ * Copyright (c) 2018, salesforce.com, inc.
5220
+ * All rights reserved.
5221
+ * SPDX-License-Identifier: MIT
5222
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5223
+ */ /**
5224
+ * EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
5225
+ * This API is subject to change or being removed.
5226
+ */ function getComponentConstructor(elm) {
5227
+ var ctor = null;
5228
+ // intentionally checking for undefined due to some funky libraries patching weakmap.get
5229
+ // to throw when undefined.
5230
+ if (!isUndefined$1(elm)) {
5231
+ var vm = getAssociatedVMIfPresent(elm);
5232
+ if (!isUndefined$1(vm)) {
5233
+ ctor = vm.def.ctor;
5234
+ }
5235
+ }
5236
+ return ctor;
5237
+ }
5238
+ /* version: 2.13.3 */ /*
5201
5239
  * Copyright (c) 2018, salesforce.com, inc.
5202
5240
  * All rights reserved.
5203
5241
  * SPDX-License-Identifier: MIT
@@ -5724,24 +5762,6 @@ var LWC = (function (exports) {
5724
5762
  }
5725
5763
  return element;
5726
5764
  }
5727
- /*
5728
- * Copyright (c) 2018, salesforce.com, inc.
5729
- * All rights reserved.
5730
- * SPDX-License-Identifier: MIT
5731
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5732
- */ /**
5733
- * EXPERIMENTAL: This function provides access to the component constructor, given an HTMLElement.
5734
- * This API is subject to change or being removed.
5735
- */ function getComponentConstructor(elm) {
5736
- var ctor = null;
5737
- if (_instanceof(elm, HTMLElement)) {
5738
- var vm = getAssociatedVMIfPresent(elm);
5739
- if (!isUndefined$1(vm)) {
5740
- ctor = vm.def.ctor;
5741
- }
5742
- }
5743
- return ctor;
5744
- }
5745
5765
  /*
5746
5766
  * Copyright (c) 2018, salesforce.com, inc.
5747
5767
  * All rights reserved.