@vue/compat 3.5.0-rc.1 → 3.5.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.0-rc.1
2
+ * @vue/compat v3.5.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -281,6 +281,14 @@ function isRenderableAttrValue(value) {
281
281
  return type === "string" || type === "number" || type === "boolean";
282
282
  }
283
283
 
284
+ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
285
+ function getEscapedCssVarName(key, doubleEscape) {
286
+ return key.replace(
287
+ cssVarNameEscapeSymbolsRE,
288
+ (s) => `\\${s}`
289
+ );
290
+ }
291
+
284
292
  function looseCompareArrays(a, b) {
285
293
  if (a.length !== b.length) return false;
286
294
  let equal = true;
@@ -1038,7 +1046,7 @@ const arrayInstrumentations = {
1038
1046
  },
1039
1047
  concat(...args) {
1040
1048
  return reactiveReadArray(this).concat(
1041
- ...args.map((x) => reactiveReadArray(x))
1049
+ ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
1042
1050
  );
1043
1051
  },
1044
1052
  entries() {
@@ -1144,7 +1152,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
1144
1152
  const needsWrap = arr !== self && !isShallow(self);
1145
1153
  const methodFn = arr[method];
1146
1154
  if (methodFn !== arrayProto[method]) {
1147
- const result2 = methodFn.apply(arr, args);
1155
+ const result2 = methodFn.apply(self, args);
1148
1156
  return needsWrap ? toReactive(result2) : result2;
1149
1157
  }
1150
1158
  let wrappedFn = fn;
@@ -3906,7 +3914,9 @@ const BaseTransitionImpl = {
3906
3914
  // #11061, ensure enterHooks is fresh after clone
3907
3915
  (hooks) => enterHooks = hooks
3908
3916
  );
3909
- setTransitionHooks(innerChild, enterHooks);
3917
+ if (innerChild.type !== Comment) {
3918
+ setTransitionHooks(innerChild, enterHooks);
3919
+ }
3910
3920
  const oldChild = instance.subTree;
3911
3921
  const oldInnerChild = oldChild && getInnerChild$1(oldChild);
3912
3922
  if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
@@ -4233,10 +4243,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4233
4243
  const oldRef = oldRawRef && oldRawRef.r;
4234
4244
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
4235
4245
  const setupState = owner.setupState;
4246
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
4236
4247
  if (oldRef != null && oldRef !== ref) {
4237
4248
  if (isString(oldRef)) {
4238
4249
  refs[oldRef] = null;
4239
- if (hasOwn(setupState, oldRef)) {
4250
+ if (canSetSetupRef(oldRef)) {
4240
4251
  setupState[oldRef] = null;
4241
4252
  }
4242
4253
  } else if (isRef(oldRef)) {
@@ -4251,14 +4262,14 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4251
4262
  if (_isString || _isRef) {
4252
4263
  const doSet = () => {
4253
4264
  if (rawRef.f) {
4254
- const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
4265
+ const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
4255
4266
  if (isUnmount) {
4256
4267
  isArray(existing) && remove(existing, refValue);
4257
4268
  } else {
4258
4269
  if (!isArray(existing)) {
4259
4270
  if (_isString) {
4260
4271
  refs[ref] = [refValue];
4261
- if (hasOwn(setupState, ref)) {
4272
+ if (canSetSetupRef(ref)) {
4262
4273
  setupState[ref] = refs[ref];
4263
4274
  }
4264
4275
  } else {
@@ -4271,7 +4282,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4271
4282
  }
4272
4283
  } else if (_isString) {
4273
4284
  refs[ref] = value;
4274
- if (hasOwn(setupState, ref)) {
4285
+ if (canSetSetupRef(ref)) {
4275
4286
  setupState[ref] = value;
4276
4287
  }
4277
4288
  } else if (_isRef) {
@@ -4632,8 +4643,7 @@ Server rendered element contains more child nodes than client vdom.`
4632
4643
  const isText = vnode.type === Text;
4633
4644
  if (node) {
4634
4645
  if (isText && !optimized) {
4635
- let next = children[i + 1];
4636
- if (next && (next = normalizeVNode(next)).type === Text) {
4646
+ if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {
4637
4647
  insert(
4638
4648
  createText(
4639
4649
  node.data.slice(vnode.children.length)
@@ -4889,7 +4899,10 @@ function resolveCssVars(instance, vnode, expectedMap) {
4889
4899
  if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
4890
4900
  const cssVars = instance.getCssVars();
4891
4901
  for (const key in cssVars) {
4892
- expectedMap.set(`--${key}`, String(cssVars[key]));
4902
+ expectedMap.set(
4903
+ `--${getEscapedCssVarName(key)}`,
4904
+ String(cssVars[key])
4905
+ );
4893
4906
  }
4894
4907
  }
4895
4908
  if (vnode === root && instance.parent) {
@@ -5357,10 +5370,11 @@ const KeepAliveImpl = {
5357
5370
  };
5358
5371
  }
5359
5372
  };
5360
- {
5361
- KeepAliveImpl.__isBuildIn = true;
5362
- }
5363
- const KeepAlive = KeepAliveImpl;
5373
+ const decorate$2 = (t) => {
5374
+ t.__isBuiltIn = true;
5375
+ return t;
5376
+ };
5377
+ const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl) ;
5364
5378
  function matches(pattern, name) {
5365
5379
  if (isArray(pattern)) {
5366
5380
  return pattern.some((p) => matches(p, name));
@@ -7074,7 +7088,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7074
7088
  return vm;
7075
7089
  }
7076
7090
  }
7077
- Vue.version = `2.6.14-compat:${"3.5.0-rc.1"}`;
7091
+ Vue.version = `2.6.14-compat:${"3.5.1"}`;
7078
7092
  Vue.config = singletonApp.config;
7079
7093
  Vue.use = (plugin, ...options) => {
7080
7094
  if (plugin && isFunction(plugin.install)) {
@@ -12264,7 +12278,7 @@ function isMemoSame(cached, memo) {
12264
12278
  return true;
12265
12279
  }
12266
12280
 
12267
- const version = "3.5.0-rc.1";
12281
+ const version = "3.5.1";
12268
12282
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12269
12283
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12270
12284
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -12375,11 +12389,6 @@ const nodeOps = {
12375
12389
  const TRANSITION$1 = "transition";
12376
12390
  const ANIMATION = "animation";
12377
12391
  const vtcKey = Symbol("_vtc");
12378
- const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
12379
- Transition.displayName = "Transition";
12380
- {
12381
- Transition.__isBuiltIn = true;
12382
- }
12383
12392
  const DOMTransitionPropsValidators = {
12384
12393
  name: String,
12385
12394
  type: String,
@@ -12398,11 +12407,22 @@ const DOMTransitionPropsValidators = {
12398
12407
  leaveActiveClass: String,
12399
12408
  leaveToClass: String
12400
12409
  };
12401
- const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend(
12410
+ const TransitionPropsValidators = /* @__PURE__ */ extend(
12402
12411
  {},
12403
12412
  BaseTransitionPropsValidators,
12404
12413
  DOMTransitionPropsValidators
12405
12414
  );
12415
+ const decorate$1 = (t) => {
12416
+ t.displayName = "Transition";
12417
+ t.props = TransitionPropsValidators;
12418
+ {
12419
+ t.__isBuiltIn = true;
12420
+ }
12421
+ return t;
12422
+ };
12423
+ const Transition = /* @__PURE__ */ decorate$1(
12424
+ (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
12425
+ );
12406
12426
  const callHook = (hook, args = []) => {
12407
12427
  if (isArray(hook)) {
12408
12428
  hook.forEach((h2) => h2(...args));
@@ -12972,7 +12992,11 @@ function patchDOMProp(el, key, value, parentComponent) {
12972
12992
  if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
12973
12993
  !tag.includes("-")) {
12974
12994
  const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
12975
- const newValue = value == null ? "" : String(value);
12995
+ const newValue = value == null ? (
12996
+ // #11647: value should be set as empty string for null and undefined,
12997
+ // but <input type="checkbox"> should be set as 'on'.
12998
+ el.type === "checkbox" ? "on" : ""
12999
+ ) : String(value);
12976
13000
  if (oldValue !== newValue || !("_value" in el)) {
12977
13001
  el.value = newValue;
12978
13002
  }
@@ -13612,7 +13636,14 @@ const positionMap = /* @__PURE__ */ new WeakMap();
13612
13636
  const newPositionMap = /* @__PURE__ */ new WeakMap();
13613
13637
  const moveCbKey = Symbol("_moveCb");
13614
13638
  const enterCbKey = Symbol("_enterCb");
13615
- const TransitionGroupImpl = {
13639
+ const decorate = (t) => {
13640
+ delete t.props.mode;
13641
+ {
13642
+ t.__isBuiltIn = true;
13643
+ }
13644
+ return t;
13645
+ };
13646
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
13616
13647
  name: "TransitionGroup",
13617
13648
  props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
13618
13649
  tag: String,
@@ -13704,12 +13735,7 @@ const TransitionGroupImpl = {
13704
13735
  return createVNode(tag, null, children);
13705
13736
  };
13706
13737
  }
13707
- };
13708
- {
13709
- TransitionGroupImpl.__isBuiltIn = true;
13710
- }
13711
- const removeMode = (props) => delete props.mode;
13712
- /* @__PURE__ */ removeMode(TransitionGroupImpl.props);
13738
+ });
13713
13739
  const TransitionGroup = TransitionGroupImpl;
13714
13740
  function callPendingCbs(c) {
13715
13741
  const el = c.el;
@@ -13858,12 +13884,16 @@ const vModelCheckbox = {
13858
13884
  };
13859
13885
  function setChecked(el, { value, oldValue }, vnode) {
13860
13886
  el._modelValue = value;
13887
+ let checked;
13861
13888
  if (isArray(value)) {
13862
- el.checked = looseIndexOf(value, vnode.props.value) > -1;
13889
+ checked = looseIndexOf(value, vnode.props.value) > -1;
13863
13890
  } else if (isSet(value)) {
13864
- el.checked = value.has(vnode.props.value);
13865
- } else if (value !== oldValue) {
13866
- el.checked = looseEqual(value, getCheckboxValue(el, true));
13891
+ checked = value.has(vnode.props.value);
13892
+ } else {
13893
+ checked = looseEqual(value, getCheckboxValue(el, true));
13894
+ }
13895
+ if (el.checked !== checked) {
13896
+ el.checked = checked;
13867
13897
  }
13868
13898
  }
13869
13899
  const vModelRadio = {
@@ -17226,7 +17256,7 @@ function createStructuralDirectiveTransform(name, fn) {
17226
17256
  };
17227
17257
  }
17228
17258
 
17229
- const PURE_ANNOTATION = `/*#__PURE__*/`;
17259
+ const PURE_ANNOTATION = `/*@__PURE__*/`;
17230
17260
  const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
17231
17261
  function createCodegenContext(ast, {
17232
17262
  mode = "function",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.0-rc.1
2
+ * @vue/compat v3.5.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -284,6 +284,14 @@ var Vue = (function () {
284
284
  return type === "string" || type === "number" || type === "boolean";
285
285
  }
286
286
 
287
+ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
288
+ function getEscapedCssVarName(key, doubleEscape) {
289
+ return key.replace(
290
+ cssVarNameEscapeSymbolsRE,
291
+ (s) => `\\${s}`
292
+ );
293
+ }
294
+
287
295
  function looseCompareArrays(a, b) {
288
296
  if (a.length !== b.length) return false;
289
297
  let equal = true;
@@ -1037,7 +1045,7 @@ var Vue = (function () {
1037
1045
  },
1038
1046
  concat(...args) {
1039
1047
  return reactiveReadArray(this).concat(
1040
- ...args.map((x) => reactiveReadArray(x))
1048
+ ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
1041
1049
  );
1042
1050
  },
1043
1051
  entries() {
@@ -1143,7 +1151,7 @@ var Vue = (function () {
1143
1151
  const needsWrap = arr !== self && !isShallow(self);
1144
1152
  const methodFn = arr[method];
1145
1153
  if (methodFn !== arrayProto[method]) {
1146
- const result2 = methodFn.apply(arr, args);
1154
+ const result2 = methodFn.apply(self, args);
1147
1155
  return needsWrap ? toReactive(result2) : result2;
1148
1156
  }
1149
1157
  let wrappedFn = fn;
@@ -3891,7 +3899,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3891
3899
  // #11061, ensure enterHooks is fresh after clone
3892
3900
  (hooks) => enterHooks = hooks
3893
3901
  );
3894
- setTransitionHooks(innerChild, enterHooks);
3902
+ if (innerChild.type !== Comment) {
3903
+ setTransitionHooks(innerChild, enterHooks);
3904
+ }
3895
3905
  const oldChild = instance.subTree;
3896
3906
  const oldInnerChild = oldChild && getInnerChild$1(oldChild);
3897
3907
  if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
@@ -4217,10 +4227,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4217
4227
  const oldRef = oldRawRef && oldRawRef.r;
4218
4228
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
4219
4229
  const setupState = owner.setupState;
4230
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
4220
4231
  if (oldRef != null && oldRef !== ref) {
4221
4232
  if (isString(oldRef)) {
4222
4233
  refs[oldRef] = null;
4223
- if (hasOwn(setupState, oldRef)) {
4234
+ if (canSetSetupRef(oldRef)) {
4224
4235
  setupState[oldRef] = null;
4225
4236
  }
4226
4237
  } else if (isRef(oldRef)) {
@@ -4235,14 +4246,14 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4235
4246
  if (_isString || _isRef) {
4236
4247
  const doSet = () => {
4237
4248
  if (rawRef.f) {
4238
- const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
4249
+ const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
4239
4250
  if (isUnmount) {
4240
4251
  isArray(existing) && remove(existing, refValue);
4241
4252
  } else {
4242
4253
  if (!isArray(existing)) {
4243
4254
  if (_isString) {
4244
4255
  refs[ref] = [refValue];
4245
- if (hasOwn(setupState, ref)) {
4256
+ if (canSetSetupRef(ref)) {
4246
4257
  setupState[ref] = refs[ref];
4247
4258
  }
4248
4259
  } else {
@@ -4255,7 +4266,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4255
4266
  }
4256
4267
  } else if (_isString) {
4257
4268
  refs[ref] = value;
4258
- if (hasOwn(setupState, ref)) {
4269
+ if (canSetSetupRef(ref)) {
4259
4270
  setupState[ref] = value;
4260
4271
  }
4261
4272
  } else if (_isRef) {
@@ -4605,8 +4616,7 @@ Server rendered element contains more child nodes than client vdom.`
4605
4616
  const isText = vnode.type === Text;
4606
4617
  if (node) {
4607
4618
  if (isText && !optimized) {
4608
- let next = children[i + 1];
4609
- if (next && (next = normalizeVNode(next)).type === Text) {
4619
+ if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {
4610
4620
  insert(
4611
4621
  createText(
4612
4622
  node.data.slice(vnode.children.length)
@@ -4862,7 +4872,10 @@ Server rendered element contains fewer child nodes than client vdom.`
4862
4872
  if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
4863
4873
  const cssVars = instance.getCssVars();
4864
4874
  for (const key in cssVars) {
4865
- expectedMap.set(`--${key}`, String(cssVars[key]));
4875
+ expectedMap.set(
4876
+ `--${getEscapedCssVarName(key)}`,
4877
+ String(cssVars[key])
4878
+ );
4866
4879
  }
4867
4880
  }
4868
4881
  if (vnode === root && instance.parent) {
@@ -5324,10 +5337,11 @@ Server rendered element contains fewer child nodes than client vdom.`
5324
5337
  };
5325
5338
  }
5326
5339
  };
5327
- {
5328
- KeepAliveImpl.__isBuildIn = true;
5329
- }
5330
- const KeepAlive = KeepAliveImpl;
5340
+ const decorate$2 = (t) => {
5341
+ t.__isBuiltIn = true;
5342
+ return t;
5343
+ };
5344
+ const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl) ;
5331
5345
  function matches(pattern, name) {
5332
5346
  if (isArray(pattern)) {
5333
5347
  return pattern.some((p) => matches(p, name));
@@ -7036,7 +7050,7 @@ If this is a native custom element, make sure to exclude it from component resol
7036
7050
  return vm;
7037
7051
  }
7038
7052
  }
7039
- Vue.version = `2.6.14-compat:${"3.5.0-rc.1"}`;
7053
+ Vue.version = `2.6.14-compat:${"3.5.1"}`;
7040
7054
  Vue.config = singletonApp.config;
7041
7055
  Vue.use = (plugin, ...options) => {
7042
7056
  if (plugin && isFunction(plugin.install)) {
@@ -12136,7 +12150,7 @@ Component that was made reactive: `,
12136
12150
  return true;
12137
12151
  }
12138
12152
 
12139
- const version = "3.5.0-rc.1";
12153
+ const version = "3.5.1";
12140
12154
  const warn = warn$1 ;
12141
12155
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12142
12156
  const devtools = devtools$1 ;
@@ -12237,11 +12251,6 @@ Component that was made reactive: `,
12237
12251
  const TRANSITION$1 = "transition";
12238
12252
  const ANIMATION = "animation";
12239
12253
  const vtcKey = Symbol("_vtc");
12240
- const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
12241
- Transition.displayName = "Transition";
12242
- {
12243
- Transition.__isBuiltIn = true;
12244
- }
12245
12254
  const DOMTransitionPropsValidators = {
12246
12255
  name: String,
12247
12256
  type: String,
@@ -12260,11 +12269,22 @@ Component that was made reactive: `,
12260
12269
  leaveActiveClass: String,
12261
12270
  leaveToClass: String
12262
12271
  };
12263
- const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend(
12272
+ const TransitionPropsValidators = /* @__PURE__ */ extend(
12264
12273
  {},
12265
12274
  BaseTransitionPropsValidators,
12266
12275
  DOMTransitionPropsValidators
12267
12276
  );
12277
+ const decorate$1 = (t) => {
12278
+ t.displayName = "Transition";
12279
+ t.props = TransitionPropsValidators;
12280
+ {
12281
+ t.__isBuiltIn = true;
12282
+ }
12283
+ return t;
12284
+ };
12285
+ const Transition = /* @__PURE__ */ decorate$1(
12286
+ (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
12287
+ );
12268
12288
  const callHook = (hook, args = []) => {
12269
12289
  if (isArray(hook)) {
12270
12290
  hook.forEach((h2) => h2(...args));
@@ -12827,7 +12847,11 @@ Component that was made reactive: `,
12827
12847
  if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
12828
12848
  !tag.includes("-")) {
12829
12849
  const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
12830
- const newValue = value == null ? "" : String(value);
12850
+ const newValue = value == null ? (
12851
+ // #11647: value should be set as empty string for null and undefined,
12852
+ // but <input type="checkbox"> should be set as 'on'.
12853
+ el.type === "checkbox" ? "on" : ""
12854
+ ) : String(value);
12831
12855
  if (oldValue !== newValue || !("_value" in el)) {
12832
12856
  el.value = newValue;
12833
12857
  }
@@ -13455,7 +13479,14 @@ Expected function or array of functions, received type ${typeof value}.`
13455
13479
  const newPositionMap = /* @__PURE__ */ new WeakMap();
13456
13480
  const moveCbKey = Symbol("_moveCb");
13457
13481
  const enterCbKey = Symbol("_enterCb");
13458
- const TransitionGroupImpl = {
13482
+ const decorate = (t) => {
13483
+ delete t.props.mode;
13484
+ {
13485
+ t.__isBuiltIn = true;
13486
+ }
13487
+ return t;
13488
+ };
13489
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
13459
13490
  name: "TransitionGroup",
13460
13491
  props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
13461
13492
  tag: String,
@@ -13547,12 +13578,7 @@ Expected function or array of functions, received type ${typeof value}.`
13547
13578
  return createVNode(tag, null, children);
13548
13579
  };
13549
13580
  }
13550
- };
13551
- {
13552
- TransitionGroupImpl.__isBuiltIn = true;
13553
- }
13554
- const removeMode = (props) => delete props.mode;
13555
- /* @__PURE__ */ removeMode(TransitionGroupImpl.props);
13581
+ });
13556
13582
  const TransitionGroup = TransitionGroupImpl;
13557
13583
  function callPendingCbs(c) {
13558
13584
  const el = c.el;
@@ -13701,12 +13727,16 @@ Expected function or array of functions, received type ${typeof value}.`
13701
13727
  };
13702
13728
  function setChecked(el, { value, oldValue }, vnode) {
13703
13729
  el._modelValue = value;
13730
+ let checked;
13704
13731
  if (isArray(value)) {
13705
- el.checked = looseIndexOf(value, vnode.props.value) > -1;
13732
+ checked = looseIndexOf(value, vnode.props.value) > -1;
13706
13733
  } else if (isSet(value)) {
13707
- el.checked = value.has(vnode.props.value);
13708
- } else if (value !== oldValue) {
13709
- el.checked = looseEqual(value, getCheckboxValue(el, true));
13734
+ checked = value.has(vnode.props.value);
13735
+ } else {
13736
+ checked = looseEqual(value, getCheckboxValue(el, true));
13737
+ }
13738
+ if (el.checked !== checked) {
13739
+ el.checked = checked;
13710
13740
  }
13711
13741
  }
13712
13742
  const vModelRadio = {
@@ -17033,7 +17063,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17033
17063
  };
17034
17064
  }
17035
17065
 
17036
- const PURE_ANNOTATION = `/*#__PURE__*/`;
17066
+ const PURE_ANNOTATION = `/*@__PURE__*/`;
17037
17067
  const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
17038
17068
  function createCodegenContext(ast, {
17039
17069
  mode = "function",