lido-player 0.0.2-alpha-95 → 0.0.2-alpha-97
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/cjs/{decode-BMS5SH1_.js → decode-BK8Kqw1j.js} +1 -1
- package/dist/cjs/{index-qIQYfLu7.js → index-BijNmpWS.js} +45 -14
- package/dist/cjs/{index-Dl8SlqP-.js → index-BrME-8br.js} +15 -24
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +1139 -1043
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/calculator/lido-calculator.js +3 -2
- package/dist/collection/components/trace/lido-trace.js +10 -4
- package/dist/collection/utils/utils.js +19 -3
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -6
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/{p-JtdpRTRi.js → p-B4Jyt3YL.js} +1 -1
- package/dist/components/{p-BToRx4je.js → p-BQENw2P9.js} +1 -1
- package/dist/components/p-BstMLAyY.js +1 -0
- package/dist/components/{p-A2ykt6D6.js → p-CEvj-zzm.js} +1 -1
- package/dist/components/{p-DWnRy2OX.js → p-DMjuSKpY.js} +1 -1
- package/dist/components/{p-5cqqnSZl.js → p-DU4wfdAe.js} +1 -1
- package/dist/components/p-Jfm941HH.js +1 -0
- package/dist/components/p-sXIVKaYg.js +1 -0
- package/dist/esm/{decode-CVLIpt1B.js → decode-0vpRxCh3.js} +1 -1
- package/dist/esm/{index-CDlKAs0c.js → index-Bf4MY45y.js} +45 -14
- package/dist/esm/{index-C7XdSFIP.js → index-BlRhFuUy.js} +15 -24
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +1139 -1043
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-3ed3bcd7.entry.js +1 -0
- package/dist/lido-player/p-BlRhFuUy.js +2 -0
- package/dist/lido-player/{p-DKptZ4k3.js → p-MsdMCX0_.js} +1 -1
- package/dist/lido-player/p-UqNm08Na.js +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -3
- package/package.json +1 -1
- package/dist/components/p-BVaiv1nz.js +0 -1
- package/dist/components/p-XacgbiAe.js +0 -1
- package/dist/components/p-q6x112RN.js +0 -1
- package/dist/lido-player/p-461d0911.entry.js +0 -1
- package/dist/lido-player/p-C7XdSFIP.js +0 -2
- package/dist/lido-player/p-CXPRo2t-.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-BrME-8br.js');
|
|
4
4
|
|
|
5
5
|
const DragMapKey = 'lidoDragMap';
|
|
6
6
|
const SelectedValuesKey = 'lidoSelectedValues';
|
|
@@ -335,6 +335,7 @@ function enableDraggingWithScaling(element) {
|
|
|
335
335
|
let mutationFlag = false;
|
|
336
336
|
// Fetch the container element
|
|
337
337
|
const container = document.getElementById(LidoContainer);
|
|
338
|
+
const templateId = container.getAttribute("template-id");
|
|
338
339
|
if (!container) {
|
|
339
340
|
console.error(`Container with ID "container" not found.`);
|
|
340
341
|
return;
|
|
@@ -489,11 +490,14 @@ function enableDraggingWithScaling(element) {
|
|
|
489
490
|
const dropObject = buildDragSelectedMapFromDOM();
|
|
490
491
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
491
492
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
492
|
-
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
493
|
+
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal) && container.getAttribute("template-id") !== "blender") {
|
|
493
494
|
if (otherElement) {
|
|
494
495
|
otherElement.style.opacity = "0.3";
|
|
495
496
|
}
|
|
496
497
|
}
|
|
498
|
+
if (otherElement !== mostOverlappedElement) {
|
|
499
|
+
otherElement.style.opacity = "1";
|
|
500
|
+
}
|
|
497
501
|
}
|
|
498
502
|
else {
|
|
499
503
|
if (otherElement) {
|
|
@@ -564,6 +568,13 @@ function enableDraggingWithScaling(element) {
|
|
|
564
568
|
return;
|
|
565
569
|
}
|
|
566
570
|
onElementDropComplete(element, mostOverlappedElement);
|
|
571
|
+
if (templateId === "blender" && element && mostOverlappedElement) {
|
|
572
|
+
const allElements = document.querySelectorAll(`*`);
|
|
573
|
+
allElements.forEach(el => {
|
|
574
|
+
removeHighlight(el);
|
|
575
|
+
});
|
|
576
|
+
mostOverlappedElement.classList.add("highlight-element");
|
|
577
|
+
}
|
|
567
578
|
executeActions("this.updateCountBlender='true'", container);
|
|
568
579
|
if (((_b = element.getAttribute('dropAttr')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === DropMode.Diagonal) {
|
|
569
580
|
if (mostOverlappedElement) {
|
|
@@ -1007,7 +1018,7 @@ function updateDropBorder(element) {
|
|
|
1007
1018
|
}
|
|
1008
1019
|
const dropId = element.id;
|
|
1009
1020
|
const dragSelectedElements = document.querySelectorAll(`[${DropToAttr}="${dropId}"]`);
|
|
1010
|
-
if (dragSelectedElements.length > 0) {
|
|
1021
|
+
if (dragSelectedElements.length > 0 && container.getAttribute("template-id") !== "blender") {
|
|
1011
1022
|
element.classList.add('filled');
|
|
1012
1023
|
element.classList.remove('empty');
|
|
1013
1024
|
element.classList.remove('highlight-element');
|
|
@@ -1089,10 +1100,12 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
1089
1100
|
// Move the drag element to the drop position
|
|
1090
1101
|
selectedDragElement.style.transform = `translate(${translateX}px, ${translateY}px)`;
|
|
1091
1102
|
// Remove highlights after moving the element
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1103
|
+
if (container.getAttribute("template-id") !== "blender") {
|
|
1104
|
+
const allElements = document.querySelectorAll(`*`);
|
|
1105
|
+
allElements.forEach(el => {
|
|
1106
|
+
removeHighlight(el);
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1096
1109
|
// await new Promise(resolve => setTimeout(resolve, 500));
|
|
1097
1110
|
await onElementDropComplete(selectedDragElement, selectedDropElement);
|
|
1098
1111
|
// ensure count update for click-to-drop flow
|
|
@@ -1280,6 +1293,8 @@ function stopHighlightForSpeakingElement(element) {
|
|
|
1280
1293
|
}
|
|
1281
1294
|
function highlightElement() {
|
|
1282
1295
|
const container = document.querySelector(LidoContainer);
|
|
1296
|
+
if (container.getAttribute("template-id") === "blender")
|
|
1297
|
+
return;
|
|
1283
1298
|
if (!container)
|
|
1284
1299
|
return;
|
|
1285
1300
|
const dropElements = buildDropHasDragFromDOM();
|
|
@@ -7267,7 +7282,7 @@ var tanh$2 = Math.tanh || function (x) {
|
|
|
7267
7282
|
function copysign(x, y) {
|
|
7268
7283
|
var signx = true ;
|
|
7269
7284
|
var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;
|
|
7270
|
-
return signx ^ signy ? -
|
|
7285
|
+
return signx ^ signy ? -6.283185307179586 : x;
|
|
7271
7286
|
}
|
|
7272
7287
|
function _toNumberOrThrow(value, onError) {
|
|
7273
7288
|
if (isNumber(value)) {
|
|
@@ -7890,7 +7905,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
|
|
|
7890
7905
|
|
|
7891
7906
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
7892
7907
|
// JavaScript numbers: -324 (5e-324)
|
|
7893
|
-
minE: -
|
|
7908
|
+
minE: -9e15, // -1 to -EXP_LIMIT
|
|
7894
7909
|
|
|
7895
7910
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
7896
7911
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
@@ -12016,10 +12031,10 @@ function config(obj) {
|
|
|
12016
12031
|
ps = [
|
|
12017
12032
|
'precision', 1, MAX_DIGITS,
|
|
12018
12033
|
'rounding', 0, 8,
|
|
12019
|
-
'toExpNeg', -
|
|
12034
|
+
'toExpNeg', -9e15, 0,
|
|
12020
12035
|
'toExpPos', 0, EXP_LIMIT,
|
|
12021
12036
|
'maxE', 0, EXP_LIMIT,
|
|
12022
|
-
'minE', -
|
|
12037
|
+
'minE', -9e15, 0,
|
|
12023
12038
|
'modulo', 0, 9
|
|
12024
12039
|
];
|
|
12025
12040
|
|
|
@@ -73660,14 +73675,30 @@ function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr)
|
|
|
73660
73675
|
targetY = startY + (dropCount * stepY);
|
|
73661
73676
|
}
|
|
73662
73677
|
// ------------ APPLY TRANSFORM SMOOTHLY --------------
|
|
73678
|
+
// reset size first so centering and final placement use the resized bounds
|
|
73679
|
+
dragElement.style.width = "auto";
|
|
73680
|
+
dragElement.style.height = "auto";
|
|
73681
|
+
// ------------ APPLY TRANSFORM SMOOTHLY --------------
|
|
73663
73682
|
const dx = (targetX - dragRect.left) / scale;
|
|
73664
73683
|
const dy = (targetY - dragRect.top) / scale;
|
|
73665
73684
|
dragElement.style.transition = "transform .2s ease-out";
|
|
73666
73685
|
dragElement.style.transform = `translate(${dx}px, ${dy}px)`;
|
|
73686
|
+
const resizedDragRect = dragElement.getBoundingClientRect();
|
|
73687
|
+
const dropCenterX = dropRect.left + dropWidth / 2;
|
|
73688
|
+
const dropCenterY = dropRect.top + dropHeight / 2;
|
|
73689
|
+
const resizedDragCenterX = resizedDragRect.left + resizedDragRect.width / 2;
|
|
73690
|
+
const resizedDragCenterY = resizedDragRect.top + resizedDragRect.height / 2;
|
|
73691
|
+
const centerDx = (dropCenterX - resizedDragCenterX) / scale;
|
|
73692
|
+
const centerDy = (dropCenterY - resizedDragCenterY) / scale;
|
|
73693
|
+
dragElement.style.transition = "none";
|
|
73694
|
+
dragElement.style.transform = `translate(${centerDx}px, ${centerDy}px)`;
|
|
73695
|
+
// Force the browser to apply the centered position before animating to the stack slot.
|
|
73696
|
+
dragElement.getBoundingClientRect();
|
|
73697
|
+
requestAnimationFrame(() => {
|
|
73698
|
+
dragElement.style.transition = "transform .2s ease-out";
|
|
73699
|
+
dragElement.style.transform = `translate(${dx}px, ${dy}px)`;
|
|
73700
|
+
});
|
|
73667
73701
|
dropElement.dataset.dropCount = String(dropCount + 1);
|
|
73668
|
-
// reset size
|
|
73669
|
-
dragElement.style.width = "auto";
|
|
73670
|
-
dragElement.style.height = "auto";
|
|
73671
73702
|
}
|
|
73672
73703
|
const updateCalculatorAnswer = (el) => {
|
|
73673
73704
|
const container = document.getElementById(LidoContainer);
|
|
@@ -25,22 +25,9 @@ const globalScripts = () => {};
|
|
|
25
25
|
const globalStyles = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;pointer-events:none;z-index:9999;background:linear-gradient(\r\n 180deg,\r\n rgba(255, 235, 59, 0.95),\r\n rgba(255, 214, 0, 0.95)\r\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\r\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:left 55ms linear,\r\n top 55ms linear,\r\n width 55ms ease-out,\r\n height 55ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height}";
|
|
26
26
|
|
|
27
27
|
/*
|
|
28
|
-
Stencil Client Platform v4.43.
|
|
28
|
+
Stencil Client Platform v4.43.0 | MIT Licensed | https://stenciljs.com
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
// src/utils/get-prop-descriptor.ts
|
|
33
|
-
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
34
|
-
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
35
|
-
while (obj && obj !== stopAt) {
|
|
36
|
-
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
37
|
-
if (desc && (!getOnly || desc.get)) return desc;
|
|
38
|
-
obj = Object.getPrototypeOf(obj);
|
|
39
|
-
}
|
|
40
|
-
return void 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// src/utils/es2022-rewire-class-members.ts
|
|
44
31
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
45
32
|
var _a;
|
|
46
33
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -48,7 +35,7 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
48
35
|
members.map(([memberName, [memberFlags]]) => {
|
|
49
36
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
50
37
|
const ogValue = instance[memberName];
|
|
51
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName
|
|
38
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
52
39
|
if (ogDescriptor) {
|
|
53
40
|
Object.defineProperty(instance, memberName, {
|
|
54
41
|
get() {
|
|
@@ -61,14 +48,18 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
61
48
|
enumerable: true
|
|
62
49
|
});
|
|
63
50
|
}
|
|
64
|
-
|
|
65
|
-
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
66
|
-
} else if (ogValue !== void 0) {
|
|
67
|
-
instance[memberName] = ogValue;
|
|
68
|
-
}
|
|
51
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
69
52
|
}
|
|
70
53
|
});
|
|
71
54
|
};
|
|
55
|
+
function getPropertyDescriptor(obj, memberName) {
|
|
56
|
+
while (obj) {
|
|
57
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
58
|
+
if (desc == null ? void 0 : desc.get) return desc;
|
|
59
|
+
obj = Object.getPrototypeOf(obj);
|
|
60
|
+
}
|
|
61
|
+
return void 0;
|
|
62
|
+
}
|
|
72
63
|
|
|
73
64
|
// src/client/client-host-ref.ts
|
|
74
65
|
var getHostRef = (ref) => {
|
|
@@ -452,7 +443,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
452
443
|
}
|
|
453
444
|
} else {
|
|
454
445
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
455
|
-
if (existingStyleContainer
|
|
446
|
+
if (existingStyleContainer) {
|
|
456
447
|
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
457
448
|
} else {
|
|
458
449
|
styleContainerNode.prepend(styleElm);
|
|
@@ -730,7 +721,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
730
721
|
return;
|
|
731
722
|
} else {
|
|
732
723
|
const isComplex = isComplexType(newValue);
|
|
733
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
724
|
+
if ((isProp || isComplex && newValue !== null) && true) {
|
|
734
725
|
try {
|
|
735
726
|
if (!elm.tagName.includes("-")) {
|
|
736
727
|
const n = newValue == null ? "" : newValue;
|
|
@@ -1594,7 +1585,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1594
1585
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1595
1586
|
members.map(([memberName, [memberFlags]]) => {
|
|
1596
1587
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1597
|
-
const { get: origGetter, set: origSetter } =
|
|
1588
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1598
1589
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1599
1590
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1600
1591
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1856,7 +1847,7 @@ var connectedCallback = (elm) => {
|
|
|
1856
1847
|
}
|
|
1857
1848
|
if (cmpMeta.$members$) {
|
|
1858
1849
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1859
|
-
if (memberFlags & 31 /* Prop */ && Object.prototype
|
|
1850
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
1860
1851
|
const value = elm[memberName];
|
|
1861
1852
|
delete elm[memberName];
|
|
1862
1853
|
elm[memberName] = value;
|