| 5023 | } |
| 5024 | }; |
| 5025 | const patchProps = (el, oldProps, newProps, parentComponent, namespace) => { |
| 5026 | if (oldProps !== newProps) { |
| 5027 | if (oldProps !== EMPTY_OBJ) { |
| 5028 | for (const key in oldProps) { |
| 5029 | if (!isReservedProp(key) && !(key in newProps)) { |
| 5030 | hostPatchProp( |
| 5031 | el, |
| 5032 | key, |
| 5033 | oldProps[key], |
| 5034 | null, |
| 5035 | namespace, |
| 5036 | parentComponent |
| 5037 | ); |
| 5038 | } |
| 5039 | } |
| 5040 | } |
| 5041 | for (const key in newProps) { |
| 5042 | if (isReservedProp(key)) continue; |
| 5043 | const next = newProps[key]; |
| 5044 | const prev = oldProps[key]; |
| 5045 | if (next !== prev && key !== "value") { |
| 5046 | hostPatchProp(el, key, prev, next, namespace, parentComponent); |
| 5047 | } |
| 5048 | } |
| 5049 | if ("value" in newProps) { |
| 5050 | hostPatchProp(el, "value", oldProps.value, newProps.value, namespace); |
| 5051 | } |
| 5052 | } |
| 5053 | }; |
| 5054 | const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { |
| 5055 | const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); |
| 5056 | const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); |