mobx-view-model-devtools 0.0.18 → 0.0.20
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/auto.global.js +1044 -1018
- package/index.cjs +2 -2
- package/index.d.ts +9 -4
- package/index.js +1044 -1018
- package/package.json +2 -1
package/auto.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--font-weight-semibold:600;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.static_g5P-G{position:static}.container_ueeVi{width:100%}@media(min-width:40rem){.container_ueeVi{max-width:40rem}}@media(min-width:48rem){.container_ueeVi{max-width:48rem}}@media(min-width:64rem){.container_ueeVi{max-width:64rem}}@media(min-width:80rem){.container_ueeVi{max-width:80rem}}@media(min-width:96rem){.container_ueeVi{max-width:96rem}}.blur_9rZ6A{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.rootContainer_Z8gey *{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px}.vmButton_Xr1Q6{z-index:99;width:calc(var(--spacing)*9);height:calc(var(--spacing)*9);cursor:pointer;border-radius:var(--radius-lg);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));position:fixed}.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]{top:calc(var(--spacing)*3);right:calc(var(--spacing)*3)}:is(.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]).opened_gewqL{top:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=top-left]{top:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=top-left].opened_gewqL{top:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=bottom-left]{bottom:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=bottom-left].opened_gewqL{bottom:calc(var(--spacing)*-10)}.vmButton_Xr1Q6[data-position=bottom-right]{right:calc(var(--spacing)*3);bottom:calc(var(--spacing)*3)}.vmButton_Xr1Q6[data-position=bottom-right].opened_gewqL{bottom:calc(var(--spacing)*-10)}.vmButton_Xr1Q6>img{pointer-events:none;inset:calc(var(--spacing)*0);border-radius:var(--radius-lg);position:absolute}.vmButton_Xr1Q6>div{pointer-events:none;inset:calc(var(--spacing)*0);border-radius:var(--radius-lg);border-style:var(--tw-border-style);border-width:2px;border-color:#00000057;position:absolute}.vmButton_Xr1Q6>span{pointer-events:none;top:calc(var(--spacing)*-1);left:calc(var(--spacing)*-1);border-radius:var(--radius-lg);padding:calc(var(--spacing)*.5);--tw-leading:1;--tw-font-weight:var(--font-weight-semibold);font-size:12px;line-height:1;font-weight:var(--font-weight-semibold);color:#2aff0a;background-color:#005c26cf;display:flex;position:absolute}.vmButton_Xr1Q6.opened_gewqL{pointer-events:none}.vmButton_Xr1Q6:not(.isConnected_tjs3F){--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.closePopupButton_-08HG{width:28px;padding:6px}.baseActions_pkHeO{flex-direction:row;align-items:center;gap:4px;height:16px;margin-left:6px;margin-right:auto;display:flex}.hierarchyButton_h3FD7{border-radius:6px;width:18px;height:18px;padding:2px}.hierarchyButton_h3FD7.active_4JTx5{background:#f0f0f01f}.vmPopup_Q4l4j{z-index:99;border-radius:var(--radius-lg);width:calc(100vw - 34px);max-width:520px;height:calc(100vh - 24px);position:fixed}.vmPopup_Q4l4j[data-position=top-right],.vmPopup_Q4l4j[data-position=undefined]{top:calc(var(--spacing)*3);right:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=top-left]{top:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=bottom-left]{bottom:calc(var(--spacing)*3);left:calc(var(--spacing)*3)}.vmPopup_Q4l4j[data-position=bottom-right]{right:calc(var(--spacing)*3);bottom:calc(var(--spacing)*3)}.vmContent_VAE7p{color:#ccc;background-color:#1e1e1e;flex-direction:column;display:flex;overflow:auto}.vmContent_VAE7p>header{height:calc(var(--spacing)*8);padding-left:calc(var(--spacing)*2);--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);justify-content:space-between;align-items:center;display:flex}.vmContentInput_zbDAW{display:flex;position:relative}.vmContentInput_zbDAW>svg{pointer-events:none;opacity:.7;width:16px;position:absolute;inset:50% 0;transform:translate(6px,-50%)}.vmContentInput_zbDAW>input{text-overflow:ellipsis;background:#343434;border-radius:4px;outline:0;width:100%;padding:3px 26px;font-size:14px}.vmContentInput_zbDAW>button{opacity:.6;width:16px;display:none;position:absolute;top:50%;right:6px;transform:translate(4px,-50%)}.vmContentInput_zbDAW.filled_-3YUt>svg{opacity:.9}.vmContentInput_zbDAW.filled_-3YUt>button{display:block}.vmContentTree_BB36O{padding-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*2);scrollbar-width:thin;scrollbar-color:#81818170 #1e1e1e;flex-direction:column;display:flex;overflow:auto}.vmContentTree_BB36O:hover{scrollbar-color:#818181 #1e1e1e}.line_Xgaua.vmTreeItem_t-7jc{padding-left:calc(0px + (var(--level)*20px));z-index:1;position:sticky;top:-8px}.line_Xgaua.vmTreeItem_t-7jc>header{z-index:1;cursor:pointer;align-items:center;gap:calc(var(--spacing)*1);text-overflow:ellipsis;white-space:nowrap;background-color:#1e1e1e;margin-block:auto;display:flex;overflow:hidden}.line_Xgaua.vmTreeItem_t-7jc>header>label{background:#0f6013;border-radius:4px;padding:0 4px}.line_Xgaua.vmTreeItem_t-7jc>header>span{color:#5ab65e;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.line_Xgaua.vmTreeItem_t-7jc.extrasItem_MI9Fa>header>label{background:#6b6902}.line_Xgaua.vmTreeItem_t-7jc:not([data-fitted=true])>header{opacity:.6}.vmContentFilters_No1QW{background:#1e1e1e;width:100%;padding:0 8px}.propertyMeta_XxYHc{text-overflow:ellipsis;white-space:nowrap;color:#616161;overflow:hidden}.propertyMeta_XxYHc.small_Ipy6s{font-size:10px;line-height:15px}.propertyValue_s9qHJ{text-overflow:ellipsis;white-space:nowrap;color:#616161;overflow:hidden}.propertyValue_s9qHJ:has(+.property-name_2-sJi){margin-right:calc(var(--spacing)*1)}.line_Xgaua{text-overflow:ellipsis;white-space:nowrap;white-space:pre;height:22px;padding-left:calc(28px + (var(--level)*15px));background:#1e1e1e;flex-direction:row;align-items:center;font-size:14px;display:flex;position:relative;overflow:hidden}.line_Xgaua.expandable_2LUhL{cursor:pointer}.property_eoWZv[data-fitted=false]{opacity:.5}.property_eoWZv.instance_B-kEn>.propertyValue_s9qHJ{color:#ba82be}:is(.property_eoWZv.primitive_5yfCy.boolean_TwUVp,.property_eoWZv.primitive_5yfCy.number_AVdzm,.property_eoWZv.primitive_5yfCy.object_kn8wQ,.property_eoWZv.primitive_5yfCy.undefined_SMcns,.property_eoWZv.primitive_5yfCy.bigint_ZrO3O,.property_eoWZv.primitive_5yfCy.symbol_9GN4U)>.propertyValue_s9qHJ{color:#5999cd}.property_eoWZv.primitive_5yfCy.string_m1Kkx>.propertyValue_s9qHJ{color:#af7249}.expandButton_EObqt{color:#a0a0a0;cursor:pointer;width:16px;height:16px;font-weight:700;opacity:1!important}.expandButton_EObqt.expanded_uFpb7{color:#b8b8b8;transform:rotate(90deg)}.expandButton_EObqt.disabled_IDojS{opacity:.35!important}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(".root_Xsw1F{display:contents}.root_Xsw1F *{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px}.vmButton_Xr1Q6{position:fixed;z-index:999999;width:36px;height:36px;cursor:pointer;border-radius:8px;outline:0;transition:all .15s ease-in-out}.vmButton_Xr1Q6[data-position=top-right],.vmButton_Xr1Q6[data-position=undefined]{top:12px;right:12px}.vmButton_Xr1Q6[data-position=top-right].opened_gewqL,.vmButton_Xr1Q6[data-position=undefined].opened_gewqL{top:-40px}.vmButton_Xr1Q6[data-position=top-left]{top:12px;left:12px}.vmButton_Xr1Q6[data-position=top-left].opened_gewqL{top:-40px}.vmButton_Xr1Q6[data-position=bottom-left]{bottom:12px;left:12px}.vmButton_Xr1Q6[data-position=bottom-left].opened_gewqL{bottom:-40px}.vmButton_Xr1Q6[data-position=bottom-right]{bottom:12px;right:12px}.vmButton_Xr1Q6[data-position=bottom-right].opened_gewqL{bottom:-40px}.vmButton_Xr1Q6>img{pointer-events:none;position:absolute;inset:0;border-radius:8px}.vmButton_Xr1Q6>div{transition:all .15s ease-in-out;position:absolute;inset:0;border-radius:8px;border:2px solid #00000057}.vmButton_Xr1Q6>span{left:-4px;top:-4px;pointer-events:none;position:absolute;display:flex;border-radius:8px;background:#005c26cf;padding:2px;font-weight:600;font-size:12px;line-height:12px;color:#2aff0a}.vmButton_Xr1Q6.opened_gewqL{pointer-events:none}.vmButton_Xr1Q6:not(.isConnected_tjs3F){filter:grayscale(1)}.closePopupButton_-08HG{width:28px;padding:6px}.hierarchyButton_h3FD7{width:18px;height:18px;padding:2px;border-radius:6px}.hierarchyButton_h3FD7.active_4JTx5{background:#f0f0f01f}.vmPopup_Q4l4j{position:fixed;z-index:999999;width:520px;border-radius:8px;height:calc(100vh - 24px);width:calc(100vw - 34px);max-width:520px}.vmPopup_Q4l4j[data-position=top-right],.vmPopup_Q4l4j[data-position=undefined]{top:12px;right:12px}.vmPopup_Q4l4j[data-position=top-left]{top:12px;left:12px}.vmPopup_Q4l4j[data-position=bottom-left]{bottom:12px;left:12px}.vmPopup_Q4l4j[data-position=bottom-right]{bottom:12px;right:12px}.treeItemHeader_9gR6Q{display:flex;align-items:center;gap:4px;margin:auto 0;cursor:pointer;background:#1e1e1e;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.treeItemLabel_eiMgP{padding:0 4px;border-radius:4px}.treeItemMetaText_cmfX0{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.treeItem_sRXPA{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:pre;background:#1e1e1e;height:22px;display:flex;flex-direction:row;align-items:center;padding-left:calc(0px + (var(--level) * 20px));position:sticky;top:-8px;z-index:1}.treeItem_sRXPA:not([data-fitted=true])>header{opacity:.6}.vmTreeItem_t-7jc .treeItemLabel_eiMgP{background:#0f6013}.vmTreeItem_t-7jc .treeItemMetaText_cmfX0{color:#5ab65e}.extrasItem_MI9Fa .treeItemLabel_eiMgP{background:#6b6902}.expandButton_EObqt{color:#a0a0a0;opacity:1!important;width:16px;height:16px;font-weight:700;cursor:pointer}.expandButton_EObqt.expanded_uFpb7{color:#b8b8b8;transform:rotate(90deg)}.expandButton_EObqt.disabled_IDojS{opacity:.35!important}.iconToggleButton_R48wm{display:flex;align-items:center;gap:2px;position:relative;height:20px;outline:none}.activePosition_IXsRn{position:absolute;height:16px;width:16px;padding:1px;box-sizing:content-box;background:#515151;border-radius:4px;transition:all 149ms ease;transform:translate(calc(20px * var(--index)))}.option_a5IcR{padding:1px;z-index:1;width:18px;height:18px;display:flex;align-items:center;justify-content:center}.option_a5IcR>svg{width:14px;height:14px}.property_tyrFk{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:pre;background:#1e1e1e;height:22px;display:flex;flex-direction:row;align-items:center;position:relative;color:#616161;padding-left:calc(28px + (var(--level) * 15px))}.property_tyrFk.expandable_ZtNTw{cursor:pointer}.property_tyrFk[data-fitted=false]{opacity:.5}.property_tyrFk.instance_aPKFv{--value-color: rgb(186 130 190)}.property_tyrFk.primitive_mOPtu.boolean_H-c-u,.property_tyrFk.primitive_mOPtu.number_Mk-lR,.property_tyrFk.primitive_mOPtu.object_rbtD2,.property_tyrFk.primitive_mOPtu.undefined_xHzJR,.property_tyrFk.primitive_mOPtu.bigint_vEvWZ,.property_tyrFk.primitive_mOPtu.symbol_izwyn{--value-color: rgb(89, 153, 205)}.primitive_mOPtu.string_qjuUu{--value-color: #af7249}.propertyName_gpj0H{color:#ccc}.propertyMeta_xSfkm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.propertyValue_QT-FH{color:var(--value-color, #616161);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.propertyValue_QT-FH:has(+.propertyName_gpj0H){margin-right:4px}.vmContent_TIK57{color:#ccc;background:#1e1e1e;overflow:auto;display:flex;flex-direction:column}.vmContentHeader_M1JNM{display:flex;justify-content:space-between;align-items:center;height:32px;padding-left:8px;font-weight:600}.vmContentHeaderLogo_FRJDO{width:16px;margin-right:6px}.vmContentHeaderTitle_lYmde{font-size:16px;margin-right:auto}.vmContentControlPanel_CgUN9{padding:0 8px;width:100%;background:#1e1e1e;display:flex;flex-direction:row;gap:4px}.vmContentControlPanelActions_lONbA{display:flex;flex-direction:row;align-items:center}.hiearchyToggleButton_0FTG-{display:flex}.vmContentHeaderBaseActions_qc7CI{display:flex;flex-direction:row;gap:4px;height:16px;align-items:center;margin-left:6px;margin-right:auto}.vmContentInput_29GM1{display:flex;position:relative;flex:1}.vmContentInput_29GM1>svg{position:absolute;width:16px;inset:50% 0;transform:translate(6px,-50%);pointer-events:none;opacity:.7}.vmContentInput_29GM1>input{background:#343434;border-radius:4px;outline:0;width:100%;padding:3px 26px;font-size:14px;text-overflow:ellipsis}.vmContentInput_29GM1>button{position:absolute;right:6px;width:16px;transform:translate(4px,-50%);top:50%;opacity:.6;display:none}.vmContentInput_29GM1.filled_6JZa0>svg{opacity:.9}.vmContentInput_29GM1.filled_6JZa0>button{display:block}.vmContentTree_BETR6{display:flex;flex-direction:column;padding:8px;overflow:auto;scrollbar-width:thin;scrollbar-color:#81818170 #1e1e1e}.vmContentTree_BETR6:hover{scrollbar-color:#818181 #1e1e1e}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
2
|
function getDefaultExportFromCjs(x2) {
|
|
3
3
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4
4
|
}
|
|
@@ -11603,11 +11603,11 @@ function requireReactDom_development() {
|
|
|
11603
11603
|
return false;
|
|
11604
11604
|
}
|
|
11605
11605
|
}
|
|
11606
|
-
function onScheduleRoot(
|
|
11606
|
+
function onScheduleRoot(root22, children) {
|
|
11607
11607
|
{
|
|
11608
11608
|
if (injectedHook && typeof injectedHook.onScheduleFiberRoot === "function") {
|
|
11609
11609
|
try {
|
|
11610
|
-
injectedHook.onScheduleFiberRoot(rendererID,
|
|
11610
|
+
injectedHook.onScheduleFiberRoot(rendererID, root22, children);
|
|
11611
11611
|
} catch (err) {
|
|
11612
11612
|
if (!hasLoggedError) {
|
|
11613
11613
|
hasLoggedError = true;
|
|
@@ -11617,10 +11617,10 @@ function requireReactDom_development() {
|
|
|
11617
11617
|
}
|
|
11618
11618
|
}
|
|
11619
11619
|
}
|
|
11620
|
-
function onCommitRoot(
|
|
11620
|
+
function onCommitRoot(root22, eventPriority) {
|
|
11621
11621
|
if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") {
|
|
11622
11622
|
try {
|
|
11623
|
-
var didError = (
|
|
11623
|
+
var didError = (root22.current.flags & DidCapture) === DidCapture;
|
|
11624
11624
|
if (enableProfilerTimer) {
|
|
11625
11625
|
var schedulerPriority;
|
|
11626
11626
|
switch (eventPriority) {
|
|
@@ -11640,7 +11640,7 @@ function requireReactDom_development() {
|
|
|
11640
11640
|
schedulerPriority = NormalPriority;
|
|
11641
11641
|
break;
|
|
11642
11642
|
}
|
|
11643
|
-
injectedHook.onCommitFiberRoot(rendererID,
|
|
11643
|
+
injectedHook.onCommitFiberRoot(rendererID, root22, schedulerPriority, didError);
|
|
11644
11644
|
}
|
|
11645
11645
|
} catch (err) {
|
|
11646
11646
|
{
|
|
@@ -11652,10 +11652,10 @@ function requireReactDom_development() {
|
|
|
11652
11652
|
}
|
|
11653
11653
|
}
|
|
11654
11654
|
}
|
|
11655
|
-
function onPostCommitRoot(
|
|
11655
|
+
function onPostCommitRoot(root22) {
|
|
11656
11656
|
if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === "function") {
|
|
11657
11657
|
try {
|
|
11658
|
-
injectedHook.onPostCommitFiberRoot(rendererID,
|
|
11658
|
+
injectedHook.onPostCommitFiberRoot(rendererID, root22);
|
|
11659
11659
|
} catch (err) {
|
|
11660
11660
|
{
|
|
11661
11661
|
if (!hasLoggedError) {
|
|
@@ -12154,14 +12154,14 @@ function requireReactDom_development() {
|
|
|
12154
12154
|
return lanes;
|
|
12155
12155
|
}
|
|
12156
12156
|
}
|
|
12157
|
-
function getNextLanes(
|
|
12158
|
-
var pendingLanes =
|
|
12157
|
+
function getNextLanes(root22, wipLanes) {
|
|
12158
|
+
var pendingLanes = root22.pendingLanes;
|
|
12159
12159
|
if (pendingLanes === NoLanes) {
|
|
12160
12160
|
return NoLanes;
|
|
12161
12161
|
}
|
|
12162
12162
|
var nextLanes = NoLanes;
|
|
12163
|
-
var suspendedLanes =
|
|
12164
|
-
var pingedLanes =
|
|
12163
|
+
var suspendedLanes = root22.suspendedLanes;
|
|
12164
|
+
var pingedLanes = root22.pingedLanes;
|
|
12165
12165
|
var nonIdlePendingLanes = pendingLanes & NonIdleLanes;
|
|
12166
12166
|
if (nonIdlePendingLanes !== NoLanes) {
|
|
12167
12167
|
var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;
|
|
@@ -12205,9 +12205,9 @@ function requireReactDom_development() {
|
|
|
12205
12205
|
if ((nextLanes & InputContinuousLane) !== NoLanes) {
|
|
12206
12206
|
nextLanes |= pendingLanes & DefaultLane;
|
|
12207
12207
|
}
|
|
12208
|
-
var entangledLanes =
|
|
12208
|
+
var entangledLanes = root22.entangledLanes;
|
|
12209
12209
|
if (entangledLanes !== NoLanes) {
|
|
12210
|
-
var entanglements =
|
|
12210
|
+
var entanglements = root22.entanglements;
|
|
12211
12211
|
var lanes = nextLanes & entangledLanes;
|
|
12212
12212
|
while (lanes > 0) {
|
|
12213
12213
|
var index2 = pickArbitraryLaneIndex(lanes);
|
|
@@ -12218,8 +12218,8 @@ function requireReactDom_development() {
|
|
|
12218
12218
|
}
|
|
12219
12219
|
return nextLanes;
|
|
12220
12220
|
}
|
|
12221
|
-
function getMostRecentEventTime(
|
|
12222
|
-
var eventTimes =
|
|
12221
|
+
function getMostRecentEventTime(root22, lanes) {
|
|
12222
|
+
var eventTimes = root22.eventTimes;
|
|
12223
12223
|
var mostRecentEventTime = NoTimestamp;
|
|
12224
12224
|
while (lanes > 0) {
|
|
12225
12225
|
var index2 = pickArbitraryLaneIndex(lanes);
|
|
@@ -12276,11 +12276,11 @@ function requireReactDom_development() {
|
|
|
12276
12276
|
return NoTimestamp;
|
|
12277
12277
|
}
|
|
12278
12278
|
}
|
|
12279
|
-
function markStarvedLanesAsExpired(
|
|
12280
|
-
var pendingLanes =
|
|
12281
|
-
var suspendedLanes =
|
|
12282
|
-
var pingedLanes =
|
|
12283
|
-
var expirationTimes =
|
|
12279
|
+
function markStarvedLanesAsExpired(root22, currentTime) {
|
|
12280
|
+
var pendingLanes = root22.pendingLanes;
|
|
12281
|
+
var suspendedLanes = root22.suspendedLanes;
|
|
12282
|
+
var pingedLanes = root22.pingedLanes;
|
|
12283
|
+
var expirationTimes = root22.expirationTimes;
|
|
12284
12284
|
var lanes = pendingLanes;
|
|
12285
12285
|
while (lanes > 0) {
|
|
12286
12286
|
var index2 = pickArbitraryLaneIndex(lanes);
|
|
@@ -12291,16 +12291,16 @@ function requireReactDom_development() {
|
|
|
12291
12291
|
expirationTimes[index2] = computeExpirationTime(lane, currentTime);
|
|
12292
12292
|
}
|
|
12293
12293
|
} else if (expirationTime <= currentTime) {
|
|
12294
|
-
|
|
12294
|
+
root22.expiredLanes |= lane;
|
|
12295
12295
|
}
|
|
12296
12296
|
lanes &= ~lane;
|
|
12297
12297
|
}
|
|
12298
12298
|
}
|
|
12299
|
-
function getHighestPriorityPendingLanes(
|
|
12300
|
-
return getHighestPriorityLanes(
|
|
12299
|
+
function getHighestPriorityPendingLanes(root22) {
|
|
12300
|
+
return getHighestPriorityLanes(root22.pendingLanes);
|
|
12301
12301
|
}
|
|
12302
|
-
function getLanesToRetrySynchronouslyOnError(
|
|
12303
|
-
var everythingButOffscreen =
|
|
12302
|
+
function getLanesToRetrySynchronouslyOnError(root22) {
|
|
12303
|
+
var everythingButOffscreen = root22.pendingLanes & ~OffscreenLane;
|
|
12304
12304
|
if (everythingButOffscreen !== NoLanes) {
|
|
12305
12305
|
return everythingButOffscreen;
|
|
12306
12306
|
}
|
|
@@ -12325,12 +12325,12 @@ function requireReactDom_development() {
|
|
|
12325
12325
|
function includesOnlyTransitions(lanes) {
|
|
12326
12326
|
return (lanes & TransitionLanes) === lanes;
|
|
12327
12327
|
}
|
|
12328
|
-
function includesBlockingLane(
|
|
12328
|
+
function includesBlockingLane(root22, lanes) {
|
|
12329
12329
|
var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane;
|
|
12330
12330
|
return (lanes & SyncDefaultLanes) !== NoLanes;
|
|
12331
12331
|
}
|
|
12332
|
-
function includesExpiredLane(
|
|
12333
|
-
return (lanes &
|
|
12332
|
+
function includesExpiredLane(root22, lanes) {
|
|
12333
|
+
return (lanes & root22.expiredLanes) !== NoLanes;
|
|
12334
12334
|
}
|
|
12335
12335
|
function isTransitionLane(lane) {
|
|
12336
12336
|
return (lane & TransitionLanes) !== NoLanes;
|
|
@@ -12391,20 +12391,20 @@ function requireReactDom_development() {
|
|
|
12391
12391
|
}
|
|
12392
12392
|
return laneMap;
|
|
12393
12393
|
}
|
|
12394
|
-
function markRootUpdated(
|
|
12395
|
-
|
|
12394
|
+
function markRootUpdated(root22, updateLane, eventTime) {
|
|
12395
|
+
root22.pendingLanes |= updateLane;
|
|
12396
12396
|
if (updateLane !== IdleLane) {
|
|
12397
|
-
|
|
12398
|
-
|
|
12397
|
+
root22.suspendedLanes = NoLanes;
|
|
12398
|
+
root22.pingedLanes = NoLanes;
|
|
12399
12399
|
}
|
|
12400
|
-
var eventTimes =
|
|
12400
|
+
var eventTimes = root22.eventTimes;
|
|
12401
12401
|
var index2 = laneToIndex(updateLane);
|
|
12402
12402
|
eventTimes[index2] = eventTime;
|
|
12403
12403
|
}
|
|
12404
|
-
function markRootSuspended(
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
var expirationTimes =
|
|
12404
|
+
function markRootSuspended(root22, suspendedLanes) {
|
|
12405
|
+
root22.suspendedLanes |= suspendedLanes;
|
|
12406
|
+
root22.pingedLanes &= ~suspendedLanes;
|
|
12407
|
+
var expirationTimes = root22.expirationTimes;
|
|
12408
12408
|
var lanes = suspendedLanes;
|
|
12409
12409
|
while (lanes > 0) {
|
|
12410
12410
|
var index2 = pickArbitraryLaneIndex(lanes);
|
|
@@ -12413,20 +12413,20 @@ function requireReactDom_development() {
|
|
|
12413
12413
|
lanes &= ~lane;
|
|
12414
12414
|
}
|
|
12415
12415
|
}
|
|
12416
|
-
function markRootPinged(
|
|
12417
|
-
|
|
12418
|
-
}
|
|
12419
|
-
function markRootFinished(
|
|
12420
|
-
var noLongerPendingLanes =
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
var entanglements =
|
|
12428
|
-
var eventTimes =
|
|
12429
|
-
var expirationTimes =
|
|
12416
|
+
function markRootPinged(root22, pingedLanes, eventTime) {
|
|
12417
|
+
root22.pingedLanes |= root22.suspendedLanes & pingedLanes;
|
|
12418
|
+
}
|
|
12419
|
+
function markRootFinished(root22, remainingLanes) {
|
|
12420
|
+
var noLongerPendingLanes = root22.pendingLanes & ~remainingLanes;
|
|
12421
|
+
root22.pendingLanes = remainingLanes;
|
|
12422
|
+
root22.suspendedLanes = NoLanes;
|
|
12423
|
+
root22.pingedLanes = NoLanes;
|
|
12424
|
+
root22.expiredLanes &= remainingLanes;
|
|
12425
|
+
root22.mutableReadLanes &= remainingLanes;
|
|
12426
|
+
root22.entangledLanes &= remainingLanes;
|
|
12427
|
+
var entanglements = root22.entanglements;
|
|
12428
|
+
var eventTimes = root22.eventTimes;
|
|
12429
|
+
var expirationTimes = root22.expirationTimes;
|
|
12430
12430
|
var lanes = noLongerPendingLanes;
|
|
12431
12431
|
while (lanes > 0) {
|
|
12432
12432
|
var index2 = pickArbitraryLaneIndex(lanes);
|
|
@@ -12437,9 +12437,9 @@ function requireReactDom_development() {
|
|
|
12437
12437
|
lanes &= ~lane;
|
|
12438
12438
|
}
|
|
12439
12439
|
}
|
|
12440
|
-
function markRootEntangled(
|
|
12441
|
-
var rootEntangledLanes =
|
|
12442
|
-
var entanglements =
|
|
12440
|
+
function markRootEntangled(root22, entangledLanes) {
|
|
12441
|
+
var rootEntangledLanes = root22.entangledLanes |= entangledLanes;
|
|
12442
|
+
var entanglements = root22.entanglements;
|
|
12443
12443
|
var lanes = rootEntangledLanes;
|
|
12444
12444
|
while (lanes) {
|
|
12445
12445
|
var index2 = pickArbitraryLaneIndex(lanes);
|
|
@@ -12454,7 +12454,7 @@ function requireReactDom_development() {
|
|
|
12454
12454
|
lanes &= ~lane;
|
|
12455
12455
|
}
|
|
12456
12456
|
}
|
|
12457
|
-
function getBumpedLaneForHydration(
|
|
12457
|
+
function getBumpedLaneForHydration(root22, renderLanes2) {
|
|
12458
12458
|
var renderLane = getHighestPriorityLane(renderLanes2);
|
|
12459
12459
|
var lane;
|
|
12460
12460
|
switch (renderLane) {
|
|
@@ -12494,16 +12494,16 @@ function requireReactDom_development() {
|
|
|
12494
12494
|
lane = NoLane;
|
|
12495
12495
|
break;
|
|
12496
12496
|
}
|
|
12497
|
-
if ((lane & (
|
|
12497
|
+
if ((lane & (root22.suspendedLanes | renderLanes2)) !== NoLane) {
|
|
12498
12498
|
return NoLane;
|
|
12499
12499
|
}
|
|
12500
12500
|
return lane;
|
|
12501
12501
|
}
|
|
12502
|
-
function addFiberToLanesMap(
|
|
12502
|
+
function addFiberToLanesMap(root22, fiber, lanes) {
|
|
12503
12503
|
if (!isDevToolsPresent) {
|
|
12504
12504
|
return;
|
|
12505
12505
|
}
|
|
12506
|
-
var pendingUpdatersLaneMap =
|
|
12506
|
+
var pendingUpdatersLaneMap = root22.pendingUpdatersLaneMap;
|
|
12507
12507
|
while (lanes > 0) {
|
|
12508
12508
|
var index2 = laneToIndex(lanes);
|
|
12509
12509
|
var lane = 1 << index2;
|
|
@@ -12512,12 +12512,12 @@ function requireReactDom_development() {
|
|
|
12512
12512
|
lanes &= ~lane;
|
|
12513
12513
|
}
|
|
12514
12514
|
}
|
|
12515
|
-
function movePendingFibersToMemoized(
|
|
12515
|
+
function movePendingFibersToMemoized(root22, lanes) {
|
|
12516
12516
|
if (!isDevToolsPresent) {
|
|
12517
12517
|
return;
|
|
12518
12518
|
}
|
|
12519
|
-
var pendingUpdatersLaneMap =
|
|
12520
|
-
var memoizedUpdaters =
|
|
12519
|
+
var pendingUpdatersLaneMap = root22.pendingUpdatersLaneMap;
|
|
12520
|
+
var memoizedUpdaters = root22.memoizedUpdaters;
|
|
12521
12521
|
while (lanes > 0) {
|
|
12522
12522
|
var index2 = laneToIndex(lanes);
|
|
12523
12523
|
var lane = 1 << index2;
|
|
@@ -12534,7 +12534,7 @@ function requireReactDom_development() {
|
|
|
12534
12534
|
lanes &= ~lane;
|
|
12535
12535
|
}
|
|
12536
12536
|
}
|
|
12537
|
-
function getTransitionsForLanes(
|
|
12537
|
+
function getTransitionsForLanes(root22, lanes) {
|
|
12538
12538
|
{
|
|
12539
12539
|
return null;
|
|
12540
12540
|
}
|
|
@@ -12581,8 +12581,8 @@ function requireReactDom_development() {
|
|
|
12581
12581
|
}
|
|
12582
12582
|
return IdleEventPriority;
|
|
12583
12583
|
}
|
|
12584
|
-
function isRootDehydrated(
|
|
12585
|
-
var currentState =
|
|
12584
|
+
function isRootDehydrated(root22) {
|
|
12585
|
+
var currentState = root22.current.memoizedState;
|
|
12586
12586
|
return currentState.isDehydrated;
|
|
12587
12587
|
}
|
|
12588
12588
|
var _attemptSynchronousHydration;
|
|
@@ -12753,8 +12753,8 @@ function requireReactDom_development() {
|
|
|
12753
12753
|
return;
|
|
12754
12754
|
}
|
|
12755
12755
|
} else if (tag === HostRoot) {
|
|
12756
|
-
var
|
|
12757
|
-
if (isRootDehydrated(
|
|
12756
|
+
var root22 = nearestMounted.stateNode;
|
|
12757
|
+
if (isRootDehydrated(root22)) {
|
|
12758
12758
|
queuedTarget.blockedOn = getContainerFromFiber(nearestMounted);
|
|
12759
12759
|
return;
|
|
12760
12760
|
}
|
|
@@ -12904,25 +12904,25 @@ function requireReactDom_development() {
|
|
|
12904
12904
|
}
|
|
12905
12905
|
return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
|
|
12906
12906
|
}
|
|
12907
|
-
function dispatchDiscreteEvent(domEventName, eventSystemFlags,
|
|
12907
|
+
function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
|
|
12908
12908
|
var previousPriority = getCurrentUpdatePriority();
|
|
12909
12909
|
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
12910
12910
|
ReactCurrentBatchConfig.transition = null;
|
|
12911
12911
|
try {
|
|
12912
12912
|
setCurrentUpdatePriority(DiscreteEventPriority);
|
|
12913
|
-
dispatchEvent(domEventName, eventSystemFlags,
|
|
12913
|
+
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
|
12914
12914
|
} finally {
|
|
12915
12915
|
setCurrentUpdatePriority(previousPriority);
|
|
12916
12916
|
ReactCurrentBatchConfig.transition = prevTransition;
|
|
12917
12917
|
}
|
|
12918
12918
|
}
|
|
12919
|
-
function dispatchContinuousEvent(domEventName, eventSystemFlags,
|
|
12919
|
+
function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) {
|
|
12920
12920
|
var previousPriority = getCurrentUpdatePriority();
|
|
12921
12921
|
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
12922
12922
|
ReactCurrentBatchConfig.transition = null;
|
|
12923
12923
|
try {
|
|
12924
12924
|
setCurrentUpdatePriority(ContinuousEventPriority);
|
|
12925
|
-
dispatchEvent(domEventName, eventSystemFlags,
|
|
12925
|
+
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
|
|
12926
12926
|
} finally {
|
|
12927
12927
|
setCurrentUpdatePriority(previousPriority);
|
|
12928
12928
|
ReactCurrentBatchConfig.transition = prevTransition;
|
|
@@ -12988,8 +12988,8 @@ function requireReactDom_development() {
|
|
|
12988
12988
|
}
|
|
12989
12989
|
targetInst = null;
|
|
12990
12990
|
} else if (tag === HostRoot) {
|
|
12991
|
-
var
|
|
12992
|
-
if (isRootDehydrated(
|
|
12991
|
+
var root22 = nearestMounted.stateNode;
|
|
12992
|
+
if (isRootDehydrated(root22)) {
|
|
12993
12993
|
return getContainerFromFiber(nearestMounted);
|
|
12994
12994
|
}
|
|
12995
12995
|
targetInst = null;
|
|
@@ -13125,16 +13125,16 @@ function requireReactDom_development() {
|
|
|
13125
13125
|
});
|
|
13126
13126
|
return listener;
|
|
13127
13127
|
}
|
|
13128
|
-
var
|
|
13128
|
+
var root2 = null;
|
|
13129
13129
|
var startText = null;
|
|
13130
13130
|
var fallbackText = null;
|
|
13131
13131
|
function initialize(nativeEventTarget) {
|
|
13132
|
-
|
|
13132
|
+
root2 = nativeEventTarget;
|
|
13133
13133
|
startText = getText();
|
|
13134
13134
|
return true;
|
|
13135
13135
|
}
|
|
13136
13136
|
function reset() {
|
|
13137
|
-
|
|
13137
|
+
root2 = null;
|
|
13138
13138
|
startText = null;
|
|
13139
13139
|
fallbackText = null;
|
|
13140
13140
|
}
|
|
@@ -13164,10 +13164,10 @@ function requireReactDom_development() {
|
|
|
13164
13164
|
return fallbackText;
|
|
13165
13165
|
}
|
|
13166
13166
|
function getText() {
|
|
13167
|
-
if ("value" in
|
|
13168
|
-
return
|
|
13167
|
+
if ("value" in root2) {
|
|
13168
|
+
return root2.value;
|
|
13169
13169
|
}
|
|
13170
|
-
return
|
|
13170
|
+
return root2.textContent;
|
|
13171
13171
|
}
|
|
13172
13172
|
function getEventCharCode(nativeEvent) {
|
|
13173
13173
|
var charCode;
|
|
@@ -13997,8 +13997,8 @@ function requireReactDom_development() {
|
|
|
13997
13997
|
node = node.parentNode;
|
|
13998
13998
|
}
|
|
13999
13999
|
}
|
|
14000
|
-
function getNodeForCharacterOffset(
|
|
14001
|
-
var node = getLeafNode(
|
|
14000
|
+
function getNodeForCharacterOffset(root22, offset) {
|
|
14001
|
+
var node = getLeafNode(root22);
|
|
14002
14002
|
var nodeStart = 0;
|
|
14003
14003
|
var nodeEnd = 0;
|
|
14004
14004
|
while (node) {
|
|
@@ -14638,8 +14638,8 @@ function requireReactDom_development() {
|
|
|
14638
14638
|
}
|
|
14639
14639
|
var nodeTag = node.tag;
|
|
14640
14640
|
if (nodeTag === HostRoot || nodeTag === HostPortal) {
|
|
14641
|
-
var
|
|
14642
|
-
if (isMatchingRootContainer(
|
|
14641
|
+
var container = node.stateNode.containerInfo;
|
|
14642
|
+
if (isMatchingRootContainer(container, targetContainerNode)) {
|
|
14643
14643
|
break;
|
|
14644
14644
|
}
|
|
14645
14645
|
if (nodeTag === HostPortal) {
|
|
@@ -14655,8 +14655,8 @@ function requireReactDom_development() {
|
|
|
14655
14655
|
grandNode = grandNode.return;
|
|
14656
14656
|
}
|
|
14657
14657
|
}
|
|
14658
|
-
while (
|
|
14659
|
-
var parentNode = getClosestInstanceFromNode(
|
|
14658
|
+
while (container !== null) {
|
|
14659
|
+
var parentNode = getClosestInstanceFromNode(container);
|
|
14660
14660
|
if (parentNode === null) {
|
|
14661
14661
|
return;
|
|
14662
14662
|
}
|
|
@@ -14665,7 +14665,7 @@ function requireReactDom_development() {
|
|
|
14665
14665
|
node = ancestorInst = parentNode;
|
|
14666
14666
|
continue mainLoop;
|
|
14667
14667
|
}
|
|
14668
|
-
|
|
14668
|
+
container = container.parentNode;
|
|
14669
14669
|
}
|
|
14670
14670
|
}
|
|
14671
14671
|
node = node.return;
|
|
@@ -15790,14 +15790,14 @@ function requireReactDom_development() {
|
|
|
15790
15790
|
case DOCUMENT_NODE:
|
|
15791
15791
|
case DOCUMENT_FRAGMENT_NODE: {
|
|
15792
15792
|
type = nodeType === DOCUMENT_NODE ? "#document" : "#fragment";
|
|
15793
|
-
var
|
|
15794
|
-
namespace =
|
|
15793
|
+
var root22 = rootContainerInstance.documentElement;
|
|
15794
|
+
namespace = root22 ? root22.namespaceURI : getChildNamespace(null, "");
|
|
15795
15795
|
break;
|
|
15796
15796
|
}
|
|
15797
15797
|
default: {
|
|
15798
|
-
var
|
|
15799
|
-
var ownNamespace =
|
|
15800
|
-
type =
|
|
15798
|
+
var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
|
|
15799
|
+
var ownNamespace = container.namespaceURI || null;
|
|
15800
|
+
type = container.tagName;
|
|
15801
15801
|
namespace = getChildNamespace(ownNamespace, type);
|
|
15802
15802
|
break;
|
|
15803
15803
|
}
|
|
@@ -15945,16 +15945,16 @@ function requireReactDom_development() {
|
|
|
15945
15945
|
function appendChild(parentInstance, child) {
|
|
15946
15946
|
parentInstance.appendChild(child);
|
|
15947
15947
|
}
|
|
15948
|
-
function appendChildToContainer(
|
|
15948
|
+
function appendChildToContainer(container, child) {
|
|
15949
15949
|
var parentNode;
|
|
15950
|
-
if (
|
|
15951
|
-
parentNode =
|
|
15952
|
-
parentNode.insertBefore(child,
|
|
15950
|
+
if (container.nodeType === COMMENT_NODE) {
|
|
15951
|
+
parentNode = container.parentNode;
|
|
15952
|
+
parentNode.insertBefore(child, container);
|
|
15953
15953
|
} else {
|
|
15954
|
-
parentNode =
|
|
15954
|
+
parentNode = container;
|
|
15955
15955
|
parentNode.appendChild(child);
|
|
15956
15956
|
}
|
|
15957
|
-
var reactRootContainer =
|
|
15957
|
+
var reactRootContainer = container._reactRootContainer;
|
|
15958
15958
|
if ((reactRootContainer === null || reactRootContainer === void 0) && parentNode.onclick === null) {
|
|
15959
15959
|
trapClickOnNonInteractiveElement(parentNode);
|
|
15960
15960
|
}
|
|
@@ -15962,21 +15962,21 @@ function requireReactDom_development() {
|
|
|
15962
15962
|
function insertBefore(parentInstance, child, beforeChild) {
|
|
15963
15963
|
parentInstance.insertBefore(child, beforeChild);
|
|
15964
15964
|
}
|
|
15965
|
-
function insertInContainerBefore(
|
|
15966
|
-
if (
|
|
15967
|
-
|
|
15965
|
+
function insertInContainerBefore(container, child, beforeChild) {
|
|
15966
|
+
if (container.nodeType === COMMENT_NODE) {
|
|
15967
|
+
container.parentNode.insertBefore(child, beforeChild);
|
|
15968
15968
|
} else {
|
|
15969
|
-
|
|
15969
|
+
container.insertBefore(child, beforeChild);
|
|
15970
15970
|
}
|
|
15971
15971
|
}
|
|
15972
15972
|
function removeChild(parentInstance, child) {
|
|
15973
15973
|
parentInstance.removeChild(child);
|
|
15974
15974
|
}
|
|
15975
|
-
function removeChildFromContainer(
|
|
15976
|
-
if (
|
|
15977
|
-
|
|
15975
|
+
function removeChildFromContainer(container, child) {
|
|
15976
|
+
if (container.nodeType === COMMENT_NODE) {
|
|
15977
|
+
container.parentNode.removeChild(child);
|
|
15978
15978
|
} else {
|
|
15979
|
-
|
|
15979
|
+
container.removeChild(child);
|
|
15980
15980
|
}
|
|
15981
15981
|
}
|
|
15982
15982
|
function clearSuspenseBoundary(parentInstance, suspenseInstance) {
|
|
@@ -16003,13 +16003,13 @@ function requireReactDom_development() {
|
|
|
16003
16003
|
} while (node);
|
|
16004
16004
|
retryIfBlockedOn(suspenseInstance);
|
|
16005
16005
|
}
|
|
16006
|
-
function clearSuspenseBoundaryFromContainer(
|
|
16007
|
-
if (
|
|
16008
|
-
clearSuspenseBoundary(
|
|
16009
|
-
} else if (
|
|
16010
|
-
clearSuspenseBoundary(
|
|
16006
|
+
function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
|
|
16007
|
+
if (container.nodeType === COMMENT_NODE) {
|
|
16008
|
+
clearSuspenseBoundary(container.parentNode, suspenseInstance);
|
|
16009
|
+
} else if (container.nodeType === ELEMENT_NODE) {
|
|
16010
|
+
clearSuspenseBoundary(container, suspenseInstance);
|
|
16011
16011
|
}
|
|
16012
|
-
retryIfBlockedOn(
|
|
16012
|
+
retryIfBlockedOn(container);
|
|
16013
16013
|
}
|
|
16014
16014
|
function hideInstance(instance2) {
|
|
16015
16015
|
instance2 = instance2;
|
|
@@ -16032,12 +16032,12 @@ function requireReactDom_development() {
|
|
|
16032
16032
|
function unhideTextInstance(textInstance, text2) {
|
|
16033
16033
|
textInstance.nodeValue = text2;
|
|
16034
16034
|
}
|
|
16035
|
-
function clearContainer(
|
|
16036
|
-
if (
|
|
16037
|
-
|
|
16038
|
-
} else if (
|
|
16039
|
-
if (
|
|
16040
|
-
|
|
16035
|
+
function clearContainer(container) {
|
|
16036
|
+
if (container.nodeType === ELEMENT_NODE) {
|
|
16037
|
+
container.textContent = "";
|
|
16038
|
+
} else if (container.nodeType === DOCUMENT_NODE) {
|
|
16039
|
+
if (container.documentElement) {
|
|
16040
|
+
container.removeChild(container.documentElement);
|
|
16041
16041
|
}
|
|
16042
16042
|
}
|
|
16043
16043
|
}
|
|
@@ -16175,8 +16175,8 @@ function requireReactDom_development() {
|
|
|
16175
16175
|
}
|
|
16176
16176
|
return null;
|
|
16177
16177
|
}
|
|
16178
|
-
function commitHydratedContainer(
|
|
16179
|
-
retryIfBlockedOn(
|
|
16178
|
+
function commitHydratedContainer(container) {
|
|
16179
|
+
retryIfBlockedOn(container);
|
|
16180
16180
|
}
|
|
16181
16181
|
function commitHydratedSuspenseInstance(suspenseInstance) {
|
|
16182
16182
|
retryIfBlockedOn(suspenseInstance);
|
|
@@ -18417,8 +18417,8 @@ function requireReactDom_development() {
|
|
|
18417
18417
|
parent = parent.return;
|
|
18418
18418
|
}
|
|
18419
18419
|
if (node.tag === HostRoot) {
|
|
18420
|
-
var
|
|
18421
|
-
return
|
|
18420
|
+
var root22 = node.stateNode;
|
|
18421
|
+
return root22;
|
|
18422
18422
|
} else {
|
|
18423
18423
|
return null;
|
|
18424
18424
|
}
|
|
@@ -18499,7 +18499,7 @@ function requireReactDom_development() {
|
|
|
18499
18499
|
return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane);
|
|
18500
18500
|
}
|
|
18501
18501
|
}
|
|
18502
|
-
function entangleTransitions(
|
|
18502
|
+
function entangleTransitions(root22, fiber, lane) {
|
|
18503
18503
|
var updateQueue = fiber.updateQueue;
|
|
18504
18504
|
if (updateQueue === null) {
|
|
18505
18505
|
return;
|
|
@@ -18507,10 +18507,10 @@ function requireReactDom_development() {
|
|
|
18507
18507
|
var sharedQueue = updateQueue.shared;
|
|
18508
18508
|
if (isTransitionLane(lane)) {
|
|
18509
18509
|
var queueLanes = sharedQueue.lanes;
|
|
18510
|
-
queueLanes = intersectLanes(queueLanes,
|
|
18510
|
+
queueLanes = intersectLanes(queueLanes, root22.pendingLanes);
|
|
18511
18511
|
var newQueueLanes = mergeLanes(queueLanes, lane);
|
|
18512
18512
|
sharedQueue.lanes = newQueueLanes;
|
|
18513
|
-
markRootEntangled(
|
|
18513
|
+
markRootEntangled(root22, newQueueLanes);
|
|
18514
18514
|
}
|
|
18515
18515
|
}
|
|
18516
18516
|
function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
|
|
@@ -18936,13 +18936,13 @@ function requireReactDom_development() {
|
|
|
18936
18936
|
}
|
|
18937
18937
|
workInProgressSources.length = 0;
|
|
18938
18938
|
}
|
|
18939
|
-
function registerMutableSourceForHydration(
|
|
18939
|
+
function registerMutableSourceForHydration(root22, mutableSource) {
|
|
18940
18940
|
var getVersion = mutableSource._getVersion;
|
|
18941
18941
|
var version = getVersion(mutableSource._source);
|
|
18942
|
-
if (
|
|
18943
|
-
|
|
18942
|
+
if (root22.mutableSourceEagerHydrationData == null) {
|
|
18943
|
+
root22.mutableSourceEagerHydrationData = [mutableSource, version];
|
|
18944
18944
|
} else {
|
|
18945
|
-
|
|
18945
|
+
root22.mutableSourceEagerHydrationData.push(mutableSource, version);
|
|
18946
18946
|
}
|
|
18947
18947
|
}
|
|
18948
18948
|
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
@@ -19411,11 +19411,11 @@ function requireReactDom_development() {
|
|
|
19411
19411
|
}
|
|
19412
19412
|
}
|
|
19413
19413
|
}
|
|
19414
|
-
var
|
|
19415
|
-
if (
|
|
19414
|
+
var root22 = getWorkInProgressRoot();
|
|
19415
|
+
if (root22 === null) {
|
|
19416
19416
|
throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
|
|
19417
19417
|
}
|
|
19418
|
-
if (!includesBlockingLane(
|
|
19418
|
+
if (!includesBlockingLane(root22, renderLanes)) {
|
|
19419
19419
|
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
19420
19420
|
}
|
|
19421
19421
|
}
|
|
@@ -19456,11 +19456,11 @@ function requireReactDom_development() {
|
|
|
19456
19456
|
workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
|
|
19457
19457
|
fiber.flags |= Passive;
|
|
19458
19458
|
pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null);
|
|
19459
|
-
var
|
|
19460
|
-
if (
|
|
19459
|
+
var root22 = getWorkInProgressRoot();
|
|
19460
|
+
if (root22 === null) {
|
|
19461
19461
|
throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
|
|
19462
19462
|
}
|
|
19463
|
-
if (!includesBlockingLane(
|
|
19463
|
+
if (!includesBlockingLane(root22, renderLanes)) {
|
|
19464
19464
|
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
19465
19465
|
}
|
|
19466
19466
|
}
|
|
@@ -19512,9 +19512,9 @@ function requireReactDom_development() {
|
|
|
19512
19512
|
}
|
|
19513
19513
|
}
|
|
19514
19514
|
function forceStoreRerender(fiber) {
|
|
19515
|
-
var
|
|
19516
|
-
if (
|
|
19517
|
-
scheduleUpdateOnFiber(
|
|
19515
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
19516
|
+
if (root22 !== null) {
|
|
19517
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
19518
19518
|
}
|
|
19519
19519
|
}
|
|
19520
19520
|
function mountState(initialState) {
|
|
@@ -19823,8 +19823,8 @@ function requireReactDom_development() {
|
|
|
19823
19823
|
}
|
|
19824
19824
|
function mountId() {
|
|
19825
19825
|
var hook = mountWorkInProgressHook();
|
|
19826
|
-
var
|
|
19827
|
-
var identifierPrefix =
|
|
19826
|
+
var root22 = getWorkInProgressRoot();
|
|
19827
|
+
var identifierPrefix = root22.identifierPrefix;
|
|
19828
19828
|
var id;
|
|
19829
19829
|
if (getIsHydrating()) {
|
|
19830
19830
|
var treeId = getTreeId();
|
|
@@ -19863,11 +19863,11 @@ function requireReactDom_development() {
|
|
|
19863
19863
|
if (isRenderPhaseUpdate(fiber)) {
|
|
19864
19864
|
enqueueRenderPhaseUpdate(queue, update);
|
|
19865
19865
|
} else {
|
|
19866
|
-
var
|
|
19867
|
-
if (
|
|
19866
|
+
var root22 = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
|
|
19867
|
+
if (root22 !== null) {
|
|
19868
19868
|
var eventTime = requestEventTime();
|
|
19869
|
-
scheduleUpdateOnFiber(
|
|
19870
|
-
entangleTransitionUpdate(
|
|
19869
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
19870
|
+
entangleTransitionUpdate(root22, queue, lane);
|
|
19871
19871
|
}
|
|
19872
19872
|
}
|
|
19873
19873
|
markUpdateInDevTools(fiber, lane);
|
|
@@ -19915,11 +19915,11 @@ function requireReactDom_development() {
|
|
|
19915
19915
|
}
|
|
19916
19916
|
}
|
|
19917
19917
|
}
|
|
19918
|
-
var
|
|
19919
|
-
if (
|
|
19918
|
+
var root22 = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
|
|
19919
|
+
if (root22 !== null) {
|
|
19920
19920
|
var eventTime = requestEventTime();
|
|
19921
|
-
scheduleUpdateOnFiber(
|
|
19922
|
-
entangleTransitionUpdate(
|
|
19921
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
19922
|
+
entangleTransitionUpdate(root22, queue, lane);
|
|
19923
19923
|
}
|
|
19924
19924
|
}
|
|
19925
19925
|
markUpdateInDevTools(fiber, lane);
|
|
@@ -19939,13 +19939,13 @@ function requireReactDom_development() {
|
|
|
19939
19939
|
}
|
|
19940
19940
|
queue.pending = update;
|
|
19941
19941
|
}
|
|
19942
|
-
function entangleTransitionUpdate(
|
|
19942
|
+
function entangleTransitionUpdate(root22, queue, lane) {
|
|
19943
19943
|
if (isTransitionLane(lane)) {
|
|
19944
19944
|
var queueLanes = queue.lanes;
|
|
19945
|
-
queueLanes = intersectLanes(queueLanes,
|
|
19945
|
+
queueLanes = intersectLanes(queueLanes, root22.pendingLanes);
|
|
19946
19946
|
var newQueueLanes = mergeLanes(queueLanes, lane);
|
|
19947
19947
|
queue.lanes = newQueueLanes;
|
|
19948
|
-
markRootEntangled(
|
|
19948
|
+
markRootEntangled(root22, newQueueLanes);
|
|
19949
19949
|
}
|
|
19950
19950
|
}
|
|
19951
19951
|
function markUpdateInDevTools(fiber, lane, action2) {
|
|
@@ -20833,8 +20833,8 @@ function requireReactDom_development() {
|
|
|
20833
20833
|
while (parentFiber !== null) {
|
|
20834
20834
|
switch (parentFiber.tag) {
|
|
20835
20835
|
case HostRoot:
|
|
20836
|
-
var
|
|
20837
|
-
|
|
20836
|
+
var root22 = parentFiber.stateNode;
|
|
20837
|
+
root22.effectDuration += elapsedTime;
|
|
20838
20838
|
return;
|
|
20839
20839
|
case Profiler:
|
|
20840
20840
|
var parentStateNode = parentFiber.stateNode;
|
|
@@ -20853,9 +20853,9 @@ function requireReactDom_development() {
|
|
|
20853
20853
|
while (parentFiber !== null) {
|
|
20854
20854
|
switch (parentFiber.tag) {
|
|
20855
20855
|
case HostRoot:
|
|
20856
|
-
var
|
|
20857
|
-
if (
|
|
20858
|
-
|
|
20856
|
+
var root22 = parentFiber.stateNode;
|
|
20857
|
+
if (root22 !== null) {
|
|
20858
|
+
root22.passiveEffectDuration += elapsedTime;
|
|
20859
20859
|
}
|
|
20860
20860
|
return;
|
|
20861
20861
|
case Profiler:
|
|
@@ -20980,10 +20980,10 @@ function requireReactDom_development() {
|
|
|
20980
20980
|
}
|
|
20981
20981
|
update.callback = callback;
|
|
20982
20982
|
}
|
|
20983
|
-
var
|
|
20984
|
-
if (
|
|
20985
|
-
scheduleUpdateOnFiber(
|
|
20986
|
-
entangleTransitions(
|
|
20983
|
+
var root22 = enqueueUpdate(fiber, update, lane);
|
|
20984
|
+
if (root22 !== null) {
|
|
20985
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
20986
|
+
entangleTransitions(root22, fiber, lane);
|
|
20987
20987
|
}
|
|
20988
20988
|
{
|
|
20989
20989
|
markStateUpdateScheduled(fiber, lane);
|
|
@@ -21002,10 +21002,10 @@ function requireReactDom_development() {
|
|
|
21002
21002
|
}
|
|
21003
21003
|
update.callback = callback;
|
|
21004
21004
|
}
|
|
21005
|
-
var
|
|
21006
|
-
if (
|
|
21007
|
-
scheduleUpdateOnFiber(
|
|
21008
|
-
entangleTransitions(
|
|
21005
|
+
var root22 = enqueueUpdate(fiber, update, lane);
|
|
21006
|
+
if (root22 !== null) {
|
|
21007
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
21008
|
+
entangleTransitions(root22, fiber, lane);
|
|
21009
21009
|
}
|
|
21010
21010
|
{
|
|
21011
21011
|
markStateUpdateScheduled(fiber, lane);
|
|
@@ -21023,10 +21023,10 @@ function requireReactDom_development() {
|
|
|
21023
21023
|
}
|
|
21024
21024
|
update.callback = callback;
|
|
21025
21025
|
}
|
|
21026
|
-
var
|
|
21027
|
-
if (
|
|
21028
|
-
scheduleUpdateOnFiber(
|
|
21029
|
-
entangleTransitions(
|
|
21026
|
+
var root22 = enqueueUpdate(fiber, update, lane);
|
|
21027
|
+
if (root22 !== null) {
|
|
21028
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
21029
|
+
entangleTransitions(root22, fiber, lane);
|
|
21030
21030
|
}
|
|
21031
21031
|
{
|
|
21032
21032
|
markForceUpdateScheduled(fiber, lane);
|
|
@@ -21611,11 +21611,11 @@ function requireReactDom_development() {
|
|
|
21611
21611
|
}
|
|
21612
21612
|
return update;
|
|
21613
21613
|
}
|
|
21614
|
-
function attachPingListener(
|
|
21615
|
-
var pingCache =
|
|
21614
|
+
function attachPingListener(root22, wakeable, lanes) {
|
|
21615
|
+
var pingCache = root22.pingCache;
|
|
21616
21616
|
var threadIDs;
|
|
21617
21617
|
if (pingCache === null) {
|
|
21618
|
-
pingCache =
|
|
21618
|
+
pingCache = root22.pingCache = new PossiblyWeakMap$1();
|
|
21619
21619
|
threadIDs = /* @__PURE__ */ new Set();
|
|
21620
21620
|
pingCache.set(wakeable, threadIDs);
|
|
21621
21621
|
} else {
|
|
@@ -21627,16 +21627,16 @@ function requireReactDom_development() {
|
|
|
21627
21627
|
}
|
|
21628
21628
|
if (!threadIDs.has(lanes)) {
|
|
21629
21629
|
threadIDs.add(lanes);
|
|
21630
|
-
var ping = pingSuspendedRoot.bind(null,
|
|
21630
|
+
var ping = pingSuspendedRoot.bind(null, root22, wakeable, lanes);
|
|
21631
21631
|
{
|
|
21632
21632
|
if (isDevToolsPresent) {
|
|
21633
|
-
restorePendingUpdaters(
|
|
21633
|
+
restorePendingUpdaters(root22, lanes);
|
|
21634
21634
|
}
|
|
21635
21635
|
}
|
|
21636
21636
|
wakeable.then(ping, ping);
|
|
21637
21637
|
}
|
|
21638
21638
|
}
|
|
21639
|
-
function attachRetryListener(suspenseBoundary,
|
|
21639
|
+
function attachRetryListener(suspenseBoundary, root22, wakeable, lanes) {
|
|
21640
21640
|
var wakeables = suspenseBoundary.updateQueue;
|
|
21641
21641
|
if (wakeables === null) {
|
|
21642
21642
|
var updateQueue = /* @__PURE__ */ new Set();
|
|
@@ -21670,7 +21670,7 @@ function requireReactDom_development() {
|
|
|
21670
21670
|
} while (node !== null);
|
|
21671
21671
|
return null;
|
|
21672
21672
|
}
|
|
21673
|
-
function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber,
|
|
21673
|
+
function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root22, rootRenderLanes) {
|
|
21674
21674
|
if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) {
|
|
21675
21675
|
if (suspenseBoundary === returnFiber) {
|
|
21676
21676
|
suspenseBoundary.flags |= ShouldCapture;
|
|
@@ -21696,11 +21696,11 @@ function requireReactDom_development() {
|
|
|
21696
21696
|
suspenseBoundary.lanes = rootRenderLanes;
|
|
21697
21697
|
return suspenseBoundary;
|
|
21698
21698
|
}
|
|
21699
|
-
function throwException(
|
|
21699
|
+
function throwException(root22, returnFiber, sourceFiber, value, rootRenderLanes) {
|
|
21700
21700
|
sourceFiber.flags |= Incomplete;
|
|
21701
21701
|
{
|
|
21702
21702
|
if (isDevToolsPresent) {
|
|
21703
|
-
restorePendingUpdaters(
|
|
21703
|
+
restorePendingUpdaters(root22, rootRenderLanes);
|
|
21704
21704
|
}
|
|
21705
21705
|
}
|
|
21706
21706
|
if (value !== null && typeof value === "object" && typeof value.then === "function") {
|
|
@@ -21714,15 +21714,15 @@ function requireReactDom_development() {
|
|
|
21714
21714
|
var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);
|
|
21715
21715
|
if (suspenseBoundary !== null) {
|
|
21716
21716
|
suspenseBoundary.flags &= ~ForceClientRender;
|
|
21717
|
-
markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber,
|
|
21717
|
+
markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root22, rootRenderLanes);
|
|
21718
21718
|
if (suspenseBoundary.mode & ConcurrentMode) {
|
|
21719
|
-
attachPingListener(
|
|
21719
|
+
attachPingListener(root22, wakeable, rootRenderLanes);
|
|
21720
21720
|
}
|
|
21721
|
-
attachRetryListener(suspenseBoundary,
|
|
21721
|
+
attachRetryListener(suspenseBoundary, root22, wakeable);
|
|
21722
21722
|
return;
|
|
21723
21723
|
} else {
|
|
21724
21724
|
if (!includesSyncLane(rootRenderLanes)) {
|
|
21725
|
-
attachPingListener(
|
|
21725
|
+
attachPingListener(root22, wakeable, rootRenderLanes);
|
|
21726
21726
|
renderDidSuspendDelayIfPossible();
|
|
21727
21727
|
return;
|
|
21728
21728
|
}
|
|
@@ -21737,7 +21737,7 @@ function requireReactDom_development() {
|
|
|
21737
21737
|
if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) {
|
|
21738
21738
|
_suspenseBoundary.flags |= ForceClientRender;
|
|
21739
21739
|
}
|
|
21740
|
-
markSuspenseBoundaryShouldCapture(_suspenseBoundary, returnFiber, sourceFiber,
|
|
21740
|
+
markSuspenseBoundaryShouldCapture(_suspenseBoundary, returnFiber, sourceFiber, root22, rootRenderLanes);
|
|
21741
21741
|
queueHydrationError(createCapturedValueAtFiber(value, sourceFiber));
|
|
21742
21742
|
return;
|
|
21743
21743
|
}
|
|
@@ -22240,13 +22240,13 @@ function requireReactDom_development() {
|
|
|
22240
22240
|
return workInProgress2.child;
|
|
22241
22241
|
}
|
|
22242
22242
|
function pushHostRootContext(workInProgress2) {
|
|
22243
|
-
var
|
|
22244
|
-
if (
|
|
22245
|
-
pushTopLevelContextObject(workInProgress2,
|
|
22246
|
-
} else if (
|
|
22247
|
-
pushTopLevelContextObject(workInProgress2,
|
|
22243
|
+
var root22 = workInProgress2.stateNode;
|
|
22244
|
+
if (root22.pendingContext) {
|
|
22245
|
+
pushTopLevelContextObject(workInProgress2, root22.pendingContext, root22.pendingContext !== root22.context);
|
|
22246
|
+
} else if (root22.context) {
|
|
22247
|
+
pushTopLevelContextObject(workInProgress2, root22.context, false);
|
|
22248
22248
|
}
|
|
22249
|
-
pushHostContainer(workInProgress2,
|
|
22249
|
+
pushHostContainer(workInProgress2, root22.containerInfo);
|
|
22250
22250
|
}
|
|
22251
22251
|
function updateHostRoot(current2, workInProgress2, renderLanes2) {
|
|
22252
22252
|
pushHostRootContext(workInProgress2);
|
|
@@ -22847,14 +22847,14 @@ function requireReactDom_development() {
|
|
|
22847
22847
|
}
|
|
22848
22848
|
var hasContextChanged2 = includesSomeLane(renderLanes2, current2.childLanes);
|
|
22849
22849
|
if (didReceiveUpdate || hasContextChanged2) {
|
|
22850
|
-
var
|
|
22851
|
-
if (
|
|
22852
|
-
var attemptHydrationAtLane = getBumpedLaneForHydration(
|
|
22850
|
+
var root22 = getWorkInProgressRoot();
|
|
22851
|
+
if (root22 !== null) {
|
|
22852
|
+
var attemptHydrationAtLane = getBumpedLaneForHydration(root22, renderLanes2);
|
|
22853
22853
|
if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) {
|
|
22854
22854
|
suspenseState.retryLane = attemptHydrationAtLane;
|
|
22855
22855
|
var eventTime = NoTimestamp;
|
|
22856
22856
|
enqueueConcurrentRenderForLane(current2, attemptHydrationAtLane);
|
|
22857
|
-
scheduleUpdateOnFiber(
|
|
22857
|
+
scheduleUpdateOnFiber(root22, current2, attemptHydrationAtLane, eventTime);
|
|
22858
22858
|
}
|
|
22859
22859
|
}
|
|
22860
22860
|
renderDidSuspendDelayIfPossible();
|
|
@@ -24267,8 +24267,8 @@ function requireReactDom_development() {
|
|
|
24267
24267
|
}
|
|
24268
24268
|
}
|
|
24269
24269
|
var shouldFireAfterActiveInstanceBlur = false;
|
|
24270
|
-
function commitBeforeMutationEffects(
|
|
24271
|
-
prepareForCommit(
|
|
24270
|
+
function commitBeforeMutationEffects(root22, firstChild) {
|
|
24271
|
+
prepareForCommit(root22.containerInfo);
|
|
24272
24272
|
nextEffect = firstChild;
|
|
24273
24273
|
commitBeforeMutationEffects_begin();
|
|
24274
24274
|
var shouldFire = shouldFireAfterActiveInstanceBlur;
|
|
@@ -24346,8 +24346,8 @@ function requireReactDom_development() {
|
|
|
24346
24346
|
}
|
|
24347
24347
|
case HostRoot: {
|
|
24348
24348
|
{
|
|
24349
|
-
var
|
|
24350
|
-
clearContainer(
|
|
24349
|
+
var root22 = finishedWork.stateNode;
|
|
24350
|
+
clearContainer(root22.containerInfo);
|
|
24351
24351
|
}
|
|
24352
24352
|
break;
|
|
24353
24353
|
}
|
|
@@ -24487,8 +24487,8 @@ function requireReactDom_development() {
|
|
|
24487
24487
|
outer: while (parentFiber !== null) {
|
|
24488
24488
|
switch (parentFiber.tag) {
|
|
24489
24489
|
case HostRoot:
|
|
24490
|
-
var
|
|
24491
|
-
|
|
24490
|
+
var root22 = parentFiber.stateNode;
|
|
24491
|
+
root22.passiveEffectDuration += passiveEffectDuration;
|
|
24492
24492
|
break outer;
|
|
24493
24493
|
case Profiler:
|
|
24494
24494
|
var parentStateNode = parentFiber.stateNode;
|
|
@@ -24646,8 +24646,8 @@ function requireReactDom_development() {
|
|
|
24646
24646
|
outer: while (parentFiber !== null) {
|
|
24647
24647
|
switch (parentFiber.tag) {
|
|
24648
24648
|
case HostRoot:
|
|
24649
|
-
var
|
|
24650
|
-
|
|
24649
|
+
var root22 = parentFiber.stateNode;
|
|
24650
|
+
root22.effectDuration += effectDuration;
|
|
24651
24651
|
break outer;
|
|
24652
24652
|
case Profiler:
|
|
24653
24653
|
var parentStateNode = parentFiber.stateNode;
|
|
@@ -24963,7 +24963,7 @@ function requireReactDom_development() {
|
|
|
24963
24963
|
}
|
|
24964
24964
|
var hostParent = null;
|
|
24965
24965
|
var hostParentIsContainer = false;
|
|
24966
|
-
function commitDeletionEffects(
|
|
24966
|
+
function commitDeletionEffects(root22, returnFiber, deletedFiber) {
|
|
24967
24967
|
{
|
|
24968
24968
|
var parent = returnFiber;
|
|
24969
24969
|
findParent: while (parent !== null) {
|
|
@@ -24989,7 +24989,7 @@ function requireReactDom_development() {
|
|
|
24989
24989
|
if (hostParent === null) {
|
|
24990
24990
|
throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
|
|
24991
24991
|
}
|
|
24992
|
-
commitDeletionEffectsOnFiber(
|
|
24992
|
+
commitDeletionEffectsOnFiber(root22, returnFiber, deletedFiber);
|
|
24993
24993
|
hostParent = null;
|
|
24994
24994
|
hostParentIsContainer = false;
|
|
24995
24995
|
}
|
|
@@ -25172,22 +25172,22 @@ function requireReactDom_development() {
|
|
|
25172
25172
|
});
|
|
25173
25173
|
}
|
|
25174
25174
|
}
|
|
25175
|
-
function commitMutationEffects(
|
|
25175
|
+
function commitMutationEffects(root22, finishedWork, committedLanes) {
|
|
25176
25176
|
inProgressLanes = committedLanes;
|
|
25177
|
-
inProgressRoot =
|
|
25177
|
+
inProgressRoot = root22;
|
|
25178
25178
|
setCurrentFiber(finishedWork);
|
|
25179
|
-
commitMutationEffectsOnFiber(finishedWork,
|
|
25179
|
+
commitMutationEffectsOnFiber(finishedWork, root22);
|
|
25180
25180
|
setCurrentFiber(finishedWork);
|
|
25181
25181
|
inProgressLanes = null;
|
|
25182
25182
|
inProgressRoot = null;
|
|
25183
25183
|
}
|
|
25184
|
-
function recursivelyTraverseMutationEffects(
|
|
25184
|
+
function recursivelyTraverseMutationEffects(root22, parentFiber, lanes) {
|
|
25185
25185
|
var deletions = parentFiber.deletions;
|
|
25186
25186
|
if (deletions !== null) {
|
|
25187
25187
|
for (var i = 0; i < deletions.length; i++) {
|
|
25188
25188
|
var childToDelete = deletions[i];
|
|
25189
25189
|
try {
|
|
25190
|
-
commitDeletionEffects(
|
|
25190
|
+
commitDeletionEffects(root22, parentFiber, childToDelete);
|
|
25191
25191
|
} catch (error2) {
|
|
25192
25192
|
captureCommitPhaseError(childToDelete, parentFiber, error2);
|
|
25193
25193
|
}
|
|
@@ -25198,13 +25198,13 @@ function requireReactDom_development() {
|
|
|
25198
25198
|
var child = parentFiber.child;
|
|
25199
25199
|
while (child !== null) {
|
|
25200
25200
|
setCurrentFiber(child);
|
|
25201
|
-
commitMutationEffectsOnFiber(child,
|
|
25201
|
+
commitMutationEffectsOnFiber(child, root22);
|
|
25202
25202
|
child = child.sibling;
|
|
25203
25203
|
}
|
|
25204
25204
|
}
|
|
25205
25205
|
setCurrentFiber(prevDebugFiber);
|
|
25206
25206
|
}
|
|
25207
|
-
function commitMutationEffectsOnFiber(finishedWork,
|
|
25207
|
+
function commitMutationEffectsOnFiber(finishedWork, root22, lanes) {
|
|
25208
25208
|
var current2 = finishedWork.alternate;
|
|
25209
25209
|
var flags = finishedWork.flags;
|
|
25210
25210
|
switch (finishedWork.tag) {
|
|
@@ -25212,7 +25212,7 @@ function requireReactDom_development() {
|
|
|
25212
25212
|
case ForwardRef:
|
|
25213
25213
|
case MemoComponent:
|
|
25214
25214
|
case SimpleMemoComponent: {
|
|
25215
|
-
recursivelyTraverseMutationEffects(
|
|
25215
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25216
25216
|
commitReconciliationEffects(finishedWork);
|
|
25217
25217
|
if (flags & Update) {
|
|
25218
25218
|
try {
|
|
@@ -25240,7 +25240,7 @@ function requireReactDom_development() {
|
|
|
25240
25240
|
return;
|
|
25241
25241
|
}
|
|
25242
25242
|
case ClassComponent: {
|
|
25243
|
-
recursivelyTraverseMutationEffects(
|
|
25243
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25244
25244
|
commitReconciliationEffects(finishedWork);
|
|
25245
25245
|
if (flags & Ref) {
|
|
25246
25246
|
if (current2 !== null) {
|
|
@@ -25250,7 +25250,7 @@ function requireReactDom_development() {
|
|
|
25250
25250
|
return;
|
|
25251
25251
|
}
|
|
25252
25252
|
case HostComponent: {
|
|
25253
|
-
recursivelyTraverseMutationEffects(
|
|
25253
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25254
25254
|
commitReconciliationEffects(finishedWork);
|
|
25255
25255
|
if (flags & Ref) {
|
|
25256
25256
|
if (current2 !== null) {
|
|
@@ -25287,7 +25287,7 @@ function requireReactDom_development() {
|
|
|
25287
25287
|
return;
|
|
25288
25288
|
}
|
|
25289
25289
|
case HostText: {
|
|
25290
|
-
recursivelyTraverseMutationEffects(
|
|
25290
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25291
25291
|
commitReconciliationEffects(finishedWork);
|
|
25292
25292
|
if (flags & Update) {
|
|
25293
25293
|
{
|
|
@@ -25307,7 +25307,7 @@ function requireReactDom_development() {
|
|
|
25307
25307
|
return;
|
|
25308
25308
|
}
|
|
25309
25309
|
case HostRoot: {
|
|
25310
|
-
recursivelyTraverseMutationEffects(
|
|
25310
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25311
25311
|
commitReconciliationEffects(finishedWork);
|
|
25312
25312
|
if (flags & Update) {
|
|
25313
25313
|
{
|
|
@@ -25315,7 +25315,7 @@ function requireReactDom_development() {
|
|
|
25315
25315
|
var prevRootState = current2.memoizedState;
|
|
25316
25316
|
if (prevRootState.isDehydrated) {
|
|
25317
25317
|
try {
|
|
25318
|
-
commitHydratedContainer(
|
|
25318
|
+
commitHydratedContainer(root22.containerInfo);
|
|
25319
25319
|
} catch (error2) {
|
|
25320
25320
|
captureCommitPhaseError(finishedWork, finishedWork.return, error2);
|
|
25321
25321
|
}
|
|
@@ -25326,12 +25326,12 @@ function requireReactDom_development() {
|
|
|
25326
25326
|
return;
|
|
25327
25327
|
}
|
|
25328
25328
|
case HostPortal: {
|
|
25329
|
-
recursivelyTraverseMutationEffects(
|
|
25329
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25330
25330
|
commitReconciliationEffects(finishedWork);
|
|
25331
25331
|
return;
|
|
25332
25332
|
}
|
|
25333
25333
|
case SuspenseComponent: {
|
|
25334
|
-
recursivelyTraverseMutationEffects(
|
|
25334
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25335
25335
|
commitReconciliationEffects(finishedWork);
|
|
25336
25336
|
var offscreenFiber = finishedWork.child;
|
|
25337
25337
|
if (offscreenFiber.flags & Visibility) {
|
|
@@ -25364,10 +25364,10 @@ function requireReactDom_development() {
|
|
|
25364
25364
|
) {
|
|
25365
25365
|
var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
|
|
25366
25366
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || _wasHidden;
|
|
25367
|
-
recursivelyTraverseMutationEffects(
|
|
25367
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25368
25368
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
|
|
25369
25369
|
} else {
|
|
25370
|
-
recursivelyTraverseMutationEffects(
|
|
25370
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25371
25371
|
}
|
|
25372
25372
|
commitReconciliationEffects(finishedWork);
|
|
25373
25373
|
if (flags & Visibility) {
|
|
@@ -25398,7 +25398,7 @@ function requireReactDom_development() {
|
|
|
25398
25398
|
return;
|
|
25399
25399
|
}
|
|
25400
25400
|
case SuspenseListComponent: {
|
|
25401
|
-
recursivelyTraverseMutationEffects(
|
|
25401
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25402
25402
|
commitReconciliationEffects(finishedWork);
|
|
25403
25403
|
if (flags & Update) {
|
|
25404
25404
|
attachSuspenseRetryListeners(finishedWork);
|
|
@@ -25409,7 +25409,7 @@ function requireReactDom_development() {
|
|
|
25409
25409
|
return;
|
|
25410
25410
|
}
|
|
25411
25411
|
default: {
|
|
25412
|
-
recursivelyTraverseMutationEffects(
|
|
25412
|
+
recursivelyTraverseMutationEffects(root22, finishedWork);
|
|
25413
25413
|
commitReconciliationEffects(finishedWork);
|
|
25414
25414
|
return;
|
|
25415
25415
|
}
|
|
@@ -25429,15 +25429,15 @@ function requireReactDom_development() {
|
|
|
25429
25429
|
finishedWork.flags &= ~Hydrating;
|
|
25430
25430
|
}
|
|
25431
25431
|
}
|
|
25432
|
-
function commitLayoutEffects(finishedWork,
|
|
25432
|
+
function commitLayoutEffects(finishedWork, root22, committedLanes) {
|
|
25433
25433
|
inProgressLanes = committedLanes;
|
|
25434
|
-
inProgressRoot =
|
|
25434
|
+
inProgressRoot = root22;
|
|
25435
25435
|
nextEffect = finishedWork;
|
|
25436
|
-
commitLayoutEffects_begin(finishedWork,
|
|
25436
|
+
commitLayoutEffects_begin(finishedWork, root22, committedLanes);
|
|
25437
25437
|
inProgressLanes = null;
|
|
25438
25438
|
inProgressRoot = null;
|
|
25439
25439
|
}
|
|
25440
|
-
function commitLayoutEffects_begin(subtreeRoot,
|
|
25440
|
+
function commitLayoutEffects_begin(subtreeRoot, root22, committedLanes) {
|
|
25441
25441
|
var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode;
|
|
25442
25442
|
while (nextEffect !== null) {
|
|
25443
25443
|
var fiber = nextEffect;
|
|
@@ -25446,7 +25446,7 @@ function requireReactDom_development() {
|
|
|
25446
25446
|
var isHidden = fiber.memoizedState !== null;
|
|
25447
25447
|
var newOffscreenSubtreeIsHidden = isHidden || offscreenSubtreeIsHidden;
|
|
25448
25448
|
if (newOffscreenSubtreeIsHidden) {
|
|
25449
|
-
commitLayoutMountEffects_complete(subtreeRoot,
|
|
25449
|
+
commitLayoutMountEffects_complete(subtreeRoot, root22, committedLanes);
|
|
25450
25450
|
continue;
|
|
25451
25451
|
} else {
|
|
25452
25452
|
var current2 = fiber.alternate;
|
|
@@ -25466,7 +25466,7 @@ function requireReactDom_development() {
|
|
|
25466
25466
|
commitLayoutEffects_begin(
|
|
25467
25467
|
child,
|
|
25468
25468
|
// New root; bubble back up to here and stop.
|
|
25469
|
-
|
|
25469
|
+
root22,
|
|
25470
25470
|
committedLanes
|
|
25471
25471
|
);
|
|
25472
25472
|
child = child.sibling;
|
|
@@ -25474,7 +25474,7 @@ function requireReactDom_development() {
|
|
|
25474
25474
|
nextEffect = fiber;
|
|
25475
25475
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
|
|
25476
25476
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
|
|
25477
|
-
commitLayoutMountEffects_complete(subtreeRoot,
|
|
25477
|
+
commitLayoutMountEffects_complete(subtreeRoot, root22, committedLanes);
|
|
25478
25478
|
continue;
|
|
25479
25479
|
}
|
|
25480
25480
|
}
|
|
@@ -25482,18 +25482,18 @@ function requireReactDom_development() {
|
|
|
25482
25482
|
firstChild.return = fiber;
|
|
25483
25483
|
nextEffect = firstChild;
|
|
25484
25484
|
} else {
|
|
25485
|
-
commitLayoutMountEffects_complete(subtreeRoot,
|
|
25485
|
+
commitLayoutMountEffects_complete(subtreeRoot, root22, committedLanes);
|
|
25486
25486
|
}
|
|
25487
25487
|
}
|
|
25488
25488
|
}
|
|
25489
|
-
function commitLayoutMountEffects_complete(subtreeRoot,
|
|
25489
|
+
function commitLayoutMountEffects_complete(subtreeRoot, root22, committedLanes) {
|
|
25490
25490
|
while (nextEffect !== null) {
|
|
25491
25491
|
var fiber = nextEffect;
|
|
25492
25492
|
if ((fiber.flags & LayoutMask) !== NoFlags) {
|
|
25493
25493
|
var current2 = fiber.alternate;
|
|
25494
25494
|
setCurrentFiber(fiber);
|
|
25495
25495
|
try {
|
|
25496
|
-
commitLayoutEffectOnFiber(
|
|
25496
|
+
commitLayoutEffectOnFiber(root22, current2, fiber, committedLanes);
|
|
25497
25497
|
} catch (error2) {
|
|
25498
25498
|
captureCommitPhaseError(fiber, fiber.return, error2);
|
|
25499
25499
|
}
|
|
@@ -25620,11 +25620,11 @@ function requireReactDom_development() {
|
|
|
25620
25620
|
nextEffect = fiber.return;
|
|
25621
25621
|
}
|
|
25622
25622
|
}
|
|
25623
|
-
function commitPassiveMountEffects(
|
|
25623
|
+
function commitPassiveMountEffects(root22, finishedWork, committedLanes, committedTransitions) {
|
|
25624
25624
|
nextEffect = finishedWork;
|
|
25625
|
-
commitPassiveMountEffects_begin(finishedWork,
|
|
25625
|
+
commitPassiveMountEffects_begin(finishedWork, root22, committedLanes, committedTransitions);
|
|
25626
25626
|
}
|
|
25627
|
-
function commitPassiveMountEffects_begin(subtreeRoot,
|
|
25627
|
+
function commitPassiveMountEffects_begin(subtreeRoot, root22, committedLanes, committedTransitions) {
|
|
25628
25628
|
while (nextEffect !== null) {
|
|
25629
25629
|
var fiber = nextEffect;
|
|
25630
25630
|
var firstChild = fiber.child;
|
|
@@ -25632,17 +25632,17 @@ function requireReactDom_development() {
|
|
|
25632
25632
|
firstChild.return = fiber;
|
|
25633
25633
|
nextEffect = firstChild;
|
|
25634
25634
|
} else {
|
|
25635
|
-
commitPassiveMountEffects_complete(subtreeRoot,
|
|
25635
|
+
commitPassiveMountEffects_complete(subtreeRoot, root22, committedLanes, committedTransitions);
|
|
25636
25636
|
}
|
|
25637
25637
|
}
|
|
25638
25638
|
}
|
|
25639
|
-
function commitPassiveMountEffects_complete(subtreeRoot,
|
|
25639
|
+
function commitPassiveMountEffects_complete(subtreeRoot, root22, committedLanes, committedTransitions) {
|
|
25640
25640
|
while (nextEffect !== null) {
|
|
25641
25641
|
var fiber = nextEffect;
|
|
25642
25642
|
if ((fiber.flags & Passive) !== NoFlags) {
|
|
25643
25643
|
setCurrentFiber(fiber);
|
|
25644
25644
|
try {
|
|
25645
|
-
commitPassiveMountOnFiber(
|
|
25645
|
+
commitPassiveMountOnFiber(root22, fiber, committedLanes, committedTransitions);
|
|
25646
25646
|
} catch (error2) {
|
|
25647
25647
|
captureCommitPhaseError(fiber, fiber.return, error2);
|
|
25648
25648
|
}
|
|
@@ -26039,7 +26039,7 @@ function requireReactDom_development() {
|
|
|
26039
26039
|
}
|
|
26040
26040
|
return claimNextRetryLane();
|
|
26041
26041
|
}
|
|
26042
|
-
function scheduleUpdateOnFiber(
|
|
26042
|
+
function scheduleUpdateOnFiber(root22, fiber, lane, eventTime) {
|
|
26043
26043
|
checkForNestedUpdates();
|
|
26044
26044
|
{
|
|
26045
26045
|
if (isRunningInsertionEffect) {
|
|
@@ -26051,25 +26051,25 @@ function requireReactDom_development() {
|
|
|
26051
26051
|
didScheduleUpdateDuringPassiveEffects = true;
|
|
26052
26052
|
}
|
|
26053
26053
|
}
|
|
26054
|
-
markRootUpdated(
|
|
26055
|
-
if ((executionContext & RenderContext) !== NoLanes &&
|
|
26054
|
+
markRootUpdated(root22, lane, eventTime);
|
|
26055
|
+
if ((executionContext & RenderContext) !== NoLanes && root22 === workInProgressRoot) {
|
|
26056
26056
|
warnAboutRenderPhaseUpdatesInDEV(fiber);
|
|
26057
26057
|
} else {
|
|
26058
26058
|
{
|
|
26059
26059
|
if (isDevToolsPresent) {
|
|
26060
|
-
addFiberToLanesMap(
|
|
26060
|
+
addFiberToLanesMap(root22, fiber, lane);
|
|
26061
26061
|
}
|
|
26062
26062
|
}
|
|
26063
26063
|
warnIfUpdatesNotWrappedWithActDEV(fiber);
|
|
26064
|
-
if (
|
|
26064
|
+
if (root22 === workInProgressRoot) {
|
|
26065
26065
|
if ((executionContext & RenderContext) === NoContext) {
|
|
26066
26066
|
workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane);
|
|
26067
26067
|
}
|
|
26068
26068
|
if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
|
|
26069
|
-
markRootSuspended$1(
|
|
26069
|
+
markRootSuspended$1(root22, workInProgressRootRenderLanes);
|
|
26070
26070
|
}
|
|
26071
26071
|
}
|
|
26072
|
-
ensureRootIsScheduled(
|
|
26072
|
+
ensureRootIsScheduled(root22, eventTime);
|
|
26073
26073
|
if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
|
|
26074
26074
|
!ReactCurrentActQueue$1.isBatchingLegacy) {
|
|
26075
26075
|
resetRenderTimer();
|
|
@@ -26077,11 +26077,11 @@ function requireReactDom_development() {
|
|
|
26077
26077
|
}
|
|
26078
26078
|
}
|
|
26079
26079
|
}
|
|
26080
|
-
function scheduleInitialHydrationOnRoot(
|
|
26081
|
-
var current2 =
|
|
26080
|
+
function scheduleInitialHydrationOnRoot(root22, lane, eventTime) {
|
|
26081
|
+
var current2 = root22.current;
|
|
26082
26082
|
current2.lanes = lane;
|
|
26083
|
-
markRootUpdated(
|
|
26084
|
-
ensureRootIsScheduled(
|
|
26083
|
+
markRootUpdated(root22, lane, eventTime);
|
|
26084
|
+
ensureRootIsScheduled(root22, eventTime);
|
|
26085
26085
|
}
|
|
26086
26086
|
function isUnsafeClassRenderPhaseUpdate(fiber) {
|
|
26087
26087
|
return (
|
|
@@ -26090,20 +26090,20 @@ function requireReactDom_development() {
|
|
|
26090
26090
|
(executionContext & RenderContext) !== NoContext
|
|
26091
26091
|
);
|
|
26092
26092
|
}
|
|
26093
|
-
function ensureRootIsScheduled(
|
|
26094
|
-
var existingCallbackNode =
|
|
26095
|
-
markStarvedLanesAsExpired(
|
|
26096
|
-
var nextLanes = getNextLanes(
|
|
26093
|
+
function ensureRootIsScheduled(root22, currentTime) {
|
|
26094
|
+
var existingCallbackNode = root22.callbackNode;
|
|
26095
|
+
markStarvedLanesAsExpired(root22, currentTime);
|
|
26096
|
+
var nextLanes = getNextLanes(root22, root22 === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
|
|
26097
26097
|
if (nextLanes === NoLanes) {
|
|
26098
26098
|
if (existingCallbackNode !== null) {
|
|
26099
26099
|
cancelCallback$1(existingCallbackNode);
|
|
26100
26100
|
}
|
|
26101
|
-
|
|
26102
|
-
|
|
26101
|
+
root22.callbackNode = null;
|
|
26102
|
+
root22.callbackPriority = NoLane;
|
|
26103
26103
|
return;
|
|
26104
26104
|
}
|
|
26105
26105
|
var newCallbackPriority = getHighestPriorityLane(nextLanes);
|
|
26106
|
-
var existingCallbackPriority =
|
|
26106
|
+
var existingCallbackPriority = root22.callbackPriority;
|
|
26107
26107
|
if (existingCallbackPriority === newCallbackPriority && // Special case related to `act`. If the currently scheduled task is a
|
|
26108
26108
|
// Scheduler task, rather than an `act` task, cancel it and re-scheduled
|
|
26109
26109
|
// on the `act` queue.
|
|
@@ -26120,13 +26120,13 @@ function requireReactDom_development() {
|
|
|
26120
26120
|
}
|
|
26121
26121
|
var newCallbackNode;
|
|
26122
26122
|
if (newCallbackPriority === SyncLane) {
|
|
26123
|
-
if (
|
|
26123
|
+
if (root22.tag === LegacyRoot) {
|
|
26124
26124
|
if (ReactCurrentActQueue$1.isBatchingLegacy !== null) {
|
|
26125
26125
|
ReactCurrentActQueue$1.didScheduleLegacyUpdate = true;
|
|
26126
26126
|
}
|
|
26127
|
-
scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null,
|
|
26127
|
+
scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root22));
|
|
26128
26128
|
} else {
|
|
26129
|
-
scheduleSyncCallback(performSyncWorkOnRoot.bind(null,
|
|
26129
|
+
scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root22));
|
|
26130
26130
|
}
|
|
26131
26131
|
{
|
|
26132
26132
|
if (ReactCurrentActQueue$1.current !== null) {
|
|
@@ -26159,12 +26159,12 @@ function requireReactDom_development() {
|
|
|
26159
26159
|
schedulerPriorityLevel = NormalPriority;
|
|
26160
26160
|
break;
|
|
26161
26161
|
}
|
|
26162
|
-
newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null,
|
|
26162
|
+
newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root22));
|
|
26163
26163
|
}
|
|
26164
|
-
|
|
26165
|
-
|
|
26164
|
+
root22.callbackPriority = newCallbackPriority;
|
|
26165
|
+
root22.callbackNode = newCallbackNode;
|
|
26166
26166
|
}
|
|
26167
|
-
function performConcurrentWorkOnRoot(
|
|
26167
|
+
function performConcurrentWorkOnRoot(root22, didTimeout) {
|
|
26168
26168
|
{
|
|
26169
26169
|
resetNestedUpdateFlag();
|
|
26170
26170
|
}
|
|
@@ -26173,77 +26173,77 @@ function requireReactDom_development() {
|
|
|
26173
26173
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
|
|
26174
26174
|
throw new Error("Should not already be working.");
|
|
26175
26175
|
}
|
|
26176
|
-
var originalCallbackNode =
|
|
26176
|
+
var originalCallbackNode = root22.callbackNode;
|
|
26177
26177
|
var didFlushPassiveEffects = flushPassiveEffects();
|
|
26178
26178
|
if (didFlushPassiveEffects) {
|
|
26179
|
-
if (
|
|
26179
|
+
if (root22.callbackNode !== originalCallbackNode) {
|
|
26180
26180
|
return null;
|
|
26181
26181
|
}
|
|
26182
26182
|
}
|
|
26183
|
-
var lanes = getNextLanes(
|
|
26183
|
+
var lanes = getNextLanes(root22, root22 === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
|
|
26184
26184
|
if (lanes === NoLanes) {
|
|
26185
26185
|
return null;
|
|
26186
26186
|
}
|
|
26187
|
-
var shouldTimeSlice = !includesBlockingLane(
|
|
26188
|
-
var exitStatus = shouldTimeSlice ? renderRootConcurrent(
|
|
26187
|
+
var shouldTimeSlice = !includesBlockingLane(root22, lanes) && !includesExpiredLane(root22, lanes) && !didTimeout;
|
|
26188
|
+
var exitStatus = shouldTimeSlice ? renderRootConcurrent(root22, lanes) : renderRootSync(root22, lanes);
|
|
26189
26189
|
if (exitStatus !== RootInProgress) {
|
|
26190
26190
|
if (exitStatus === RootErrored) {
|
|
26191
|
-
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(
|
|
26191
|
+
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root22);
|
|
26192
26192
|
if (errorRetryLanes !== NoLanes) {
|
|
26193
26193
|
lanes = errorRetryLanes;
|
|
26194
|
-
exitStatus = recoverFromConcurrentError(
|
|
26194
|
+
exitStatus = recoverFromConcurrentError(root22, errorRetryLanes);
|
|
26195
26195
|
}
|
|
26196
26196
|
}
|
|
26197
26197
|
if (exitStatus === RootFatalErrored) {
|
|
26198
26198
|
var fatalError = workInProgressRootFatalError;
|
|
26199
|
-
prepareFreshStack(
|
|
26200
|
-
markRootSuspended$1(
|
|
26201
|
-
ensureRootIsScheduled(
|
|
26199
|
+
prepareFreshStack(root22, NoLanes);
|
|
26200
|
+
markRootSuspended$1(root22, lanes);
|
|
26201
|
+
ensureRootIsScheduled(root22, now());
|
|
26202
26202
|
throw fatalError;
|
|
26203
26203
|
}
|
|
26204
26204
|
if (exitStatus === RootDidNotComplete) {
|
|
26205
|
-
markRootSuspended$1(
|
|
26205
|
+
markRootSuspended$1(root22, lanes);
|
|
26206
26206
|
} else {
|
|
26207
|
-
var renderWasConcurrent = !includesBlockingLane(
|
|
26208
|
-
var finishedWork =
|
|
26207
|
+
var renderWasConcurrent = !includesBlockingLane(root22, lanes);
|
|
26208
|
+
var finishedWork = root22.current.alternate;
|
|
26209
26209
|
if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) {
|
|
26210
|
-
exitStatus = renderRootSync(
|
|
26210
|
+
exitStatus = renderRootSync(root22, lanes);
|
|
26211
26211
|
if (exitStatus === RootErrored) {
|
|
26212
|
-
var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(
|
|
26212
|
+
var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root22);
|
|
26213
26213
|
if (_errorRetryLanes !== NoLanes) {
|
|
26214
26214
|
lanes = _errorRetryLanes;
|
|
26215
|
-
exitStatus = recoverFromConcurrentError(
|
|
26215
|
+
exitStatus = recoverFromConcurrentError(root22, _errorRetryLanes);
|
|
26216
26216
|
}
|
|
26217
26217
|
}
|
|
26218
26218
|
if (exitStatus === RootFatalErrored) {
|
|
26219
26219
|
var _fatalError = workInProgressRootFatalError;
|
|
26220
|
-
prepareFreshStack(
|
|
26221
|
-
markRootSuspended$1(
|
|
26222
|
-
ensureRootIsScheduled(
|
|
26220
|
+
prepareFreshStack(root22, NoLanes);
|
|
26221
|
+
markRootSuspended$1(root22, lanes);
|
|
26222
|
+
ensureRootIsScheduled(root22, now());
|
|
26223
26223
|
throw _fatalError;
|
|
26224
26224
|
}
|
|
26225
26225
|
}
|
|
26226
|
-
|
|
26227
|
-
|
|
26228
|
-
finishConcurrentRender(
|
|
26226
|
+
root22.finishedWork = finishedWork;
|
|
26227
|
+
root22.finishedLanes = lanes;
|
|
26228
|
+
finishConcurrentRender(root22, exitStatus, lanes);
|
|
26229
26229
|
}
|
|
26230
26230
|
}
|
|
26231
|
-
ensureRootIsScheduled(
|
|
26232
|
-
if (
|
|
26233
|
-
return performConcurrentWorkOnRoot.bind(null,
|
|
26231
|
+
ensureRootIsScheduled(root22, now());
|
|
26232
|
+
if (root22.callbackNode === originalCallbackNode) {
|
|
26233
|
+
return performConcurrentWorkOnRoot.bind(null, root22);
|
|
26234
26234
|
}
|
|
26235
26235
|
return null;
|
|
26236
26236
|
}
|
|
26237
|
-
function recoverFromConcurrentError(
|
|
26237
|
+
function recoverFromConcurrentError(root22, errorRetryLanes) {
|
|
26238
26238
|
var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;
|
|
26239
|
-
if (isRootDehydrated(
|
|
26240
|
-
var rootWorkInProgress = prepareFreshStack(
|
|
26239
|
+
if (isRootDehydrated(root22)) {
|
|
26240
|
+
var rootWorkInProgress = prepareFreshStack(root22, errorRetryLanes);
|
|
26241
26241
|
rootWorkInProgress.flags |= ForceClientRender;
|
|
26242
26242
|
{
|
|
26243
|
-
errorHydratingContainer(
|
|
26243
|
+
errorHydratingContainer(root22.containerInfo);
|
|
26244
26244
|
}
|
|
26245
26245
|
}
|
|
26246
|
-
var exitStatus = renderRootSync(
|
|
26246
|
+
var exitStatus = renderRootSync(root22, errorRetryLanes);
|
|
26247
26247
|
if (exitStatus !== RootErrored) {
|
|
26248
26248
|
var errorsFromSecondAttempt = workInProgressRootRecoverableErrors;
|
|
26249
26249
|
workInProgressRootRecoverableErrors = errorsFromFirstAttempt;
|
|
@@ -26260,7 +26260,7 @@ function requireReactDom_development() {
|
|
|
26260
26260
|
workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors2);
|
|
26261
26261
|
}
|
|
26262
26262
|
}
|
|
26263
|
-
function finishConcurrentRender(
|
|
26263
|
+
function finishConcurrentRender(root22, exitStatus, lanes) {
|
|
26264
26264
|
switch (exitStatus) {
|
|
26265
26265
|
case RootInProgress:
|
|
26266
26266
|
case RootFatalErrored: {
|
|
@@ -26270,52 +26270,52 @@ function requireReactDom_development() {
|
|
|
26270
26270
|
// statement, but eslint doesn't know about invariant, so it complains
|
|
26271
26271
|
// if I do. eslint-disable-next-line no-fallthrough
|
|
26272
26272
|
case RootErrored: {
|
|
26273
|
-
commitRoot(
|
|
26273
|
+
commitRoot(root22, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
26274
26274
|
break;
|
|
26275
26275
|
}
|
|
26276
26276
|
case RootSuspended: {
|
|
26277
|
-
markRootSuspended$1(
|
|
26277
|
+
markRootSuspended$1(root22, lanes);
|
|
26278
26278
|
if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
|
|
26279
26279
|
!shouldForceFlushFallbacksInDEV()) {
|
|
26280
26280
|
var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now();
|
|
26281
26281
|
if (msUntilTimeout > 10) {
|
|
26282
|
-
var nextLanes = getNextLanes(
|
|
26282
|
+
var nextLanes = getNextLanes(root22, NoLanes);
|
|
26283
26283
|
if (nextLanes !== NoLanes) {
|
|
26284
26284
|
break;
|
|
26285
26285
|
}
|
|
26286
|
-
var suspendedLanes =
|
|
26286
|
+
var suspendedLanes = root22.suspendedLanes;
|
|
26287
26287
|
if (!isSubsetOfLanes(suspendedLanes, lanes)) {
|
|
26288
26288
|
requestEventTime();
|
|
26289
|
-
markRootPinged(
|
|
26289
|
+
markRootPinged(root22, suspendedLanes);
|
|
26290
26290
|
break;
|
|
26291
26291
|
}
|
|
26292
|
-
|
|
26292
|
+
root22.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root22, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout);
|
|
26293
26293
|
break;
|
|
26294
26294
|
}
|
|
26295
26295
|
}
|
|
26296
|
-
commitRoot(
|
|
26296
|
+
commitRoot(root22, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
26297
26297
|
break;
|
|
26298
26298
|
}
|
|
26299
26299
|
case RootSuspendedWithDelay: {
|
|
26300
|
-
markRootSuspended$1(
|
|
26300
|
+
markRootSuspended$1(root22, lanes);
|
|
26301
26301
|
if (includesOnlyTransitions(lanes)) {
|
|
26302
26302
|
break;
|
|
26303
26303
|
}
|
|
26304
26304
|
if (!shouldForceFlushFallbacksInDEV()) {
|
|
26305
|
-
var mostRecentEventTime = getMostRecentEventTime(
|
|
26305
|
+
var mostRecentEventTime = getMostRecentEventTime(root22, lanes);
|
|
26306
26306
|
var eventTimeMs = mostRecentEventTime;
|
|
26307
26307
|
var timeElapsedMs = now() - eventTimeMs;
|
|
26308
26308
|
var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs;
|
|
26309
26309
|
if (_msUntilTimeout > 10) {
|
|
26310
|
-
|
|
26310
|
+
root22.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root22, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout);
|
|
26311
26311
|
break;
|
|
26312
26312
|
}
|
|
26313
26313
|
}
|
|
26314
|
-
commitRoot(
|
|
26314
|
+
commitRoot(root22, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
26315
26315
|
break;
|
|
26316
26316
|
}
|
|
26317
26317
|
case RootCompleted: {
|
|
26318
|
-
commitRoot(
|
|
26318
|
+
commitRoot(root22, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
26319
26319
|
break;
|
|
26320
26320
|
}
|
|
26321
26321
|
default: {
|
|
@@ -26366,12 +26366,12 @@ function requireReactDom_development() {
|
|
|
26366
26366
|
}
|
|
26367
26367
|
return true;
|
|
26368
26368
|
}
|
|
26369
|
-
function markRootSuspended$1(
|
|
26369
|
+
function markRootSuspended$1(root22, suspendedLanes) {
|
|
26370
26370
|
suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);
|
|
26371
26371
|
suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes);
|
|
26372
|
-
markRootSuspended(
|
|
26372
|
+
markRootSuspended(root22, suspendedLanes);
|
|
26373
26373
|
}
|
|
26374
|
-
function performSyncWorkOnRoot(
|
|
26374
|
+
function performSyncWorkOnRoot(root22) {
|
|
26375
26375
|
{
|
|
26376
26376
|
syncNestedUpdateFlag();
|
|
26377
26377
|
}
|
|
@@ -26379,40 +26379,40 @@ function requireReactDom_development() {
|
|
|
26379
26379
|
throw new Error("Should not already be working.");
|
|
26380
26380
|
}
|
|
26381
26381
|
flushPassiveEffects();
|
|
26382
|
-
var lanes = getNextLanes(
|
|
26382
|
+
var lanes = getNextLanes(root22, NoLanes);
|
|
26383
26383
|
if (!includesSomeLane(lanes, SyncLane)) {
|
|
26384
|
-
ensureRootIsScheduled(
|
|
26384
|
+
ensureRootIsScheduled(root22, now());
|
|
26385
26385
|
return null;
|
|
26386
26386
|
}
|
|
26387
|
-
var exitStatus = renderRootSync(
|
|
26388
|
-
if (
|
|
26389
|
-
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(
|
|
26387
|
+
var exitStatus = renderRootSync(root22, lanes);
|
|
26388
|
+
if (root22.tag !== LegacyRoot && exitStatus === RootErrored) {
|
|
26389
|
+
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root22);
|
|
26390
26390
|
if (errorRetryLanes !== NoLanes) {
|
|
26391
26391
|
lanes = errorRetryLanes;
|
|
26392
|
-
exitStatus = recoverFromConcurrentError(
|
|
26392
|
+
exitStatus = recoverFromConcurrentError(root22, errorRetryLanes);
|
|
26393
26393
|
}
|
|
26394
26394
|
}
|
|
26395
26395
|
if (exitStatus === RootFatalErrored) {
|
|
26396
26396
|
var fatalError = workInProgressRootFatalError;
|
|
26397
|
-
prepareFreshStack(
|
|
26398
|
-
markRootSuspended$1(
|
|
26399
|
-
ensureRootIsScheduled(
|
|
26397
|
+
prepareFreshStack(root22, NoLanes);
|
|
26398
|
+
markRootSuspended$1(root22, lanes);
|
|
26399
|
+
ensureRootIsScheduled(root22, now());
|
|
26400
26400
|
throw fatalError;
|
|
26401
26401
|
}
|
|
26402
26402
|
if (exitStatus === RootDidNotComplete) {
|
|
26403
26403
|
throw new Error("Root did not complete. This is a bug in React.");
|
|
26404
26404
|
}
|
|
26405
|
-
var finishedWork =
|
|
26406
|
-
|
|
26407
|
-
|
|
26408
|
-
commitRoot(
|
|
26409
|
-
ensureRootIsScheduled(
|
|
26405
|
+
var finishedWork = root22.current.alternate;
|
|
26406
|
+
root22.finishedWork = finishedWork;
|
|
26407
|
+
root22.finishedLanes = lanes;
|
|
26408
|
+
commitRoot(root22, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
26409
|
+
ensureRootIsScheduled(root22, now());
|
|
26410
26410
|
return null;
|
|
26411
26411
|
}
|
|
26412
|
-
function flushRoot(
|
|
26412
|
+
function flushRoot(root22, lanes) {
|
|
26413
26413
|
if (lanes !== NoLanes) {
|
|
26414
|
-
markRootEntangled(
|
|
26415
|
-
ensureRootIsScheduled(
|
|
26414
|
+
markRootEntangled(root22, mergeLanes(lanes, SyncLane));
|
|
26415
|
+
ensureRootIsScheduled(root22, now());
|
|
26416
26416
|
if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
|
|
26417
26417
|
resetRenderTimer();
|
|
26418
26418
|
flushSyncCallbacks();
|
|
@@ -26484,12 +26484,12 @@ function requireReactDom_development() {
|
|
|
26484
26484
|
subtreeRenderLanes = subtreeRenderLanesCursor.current;
|
|
26485
26485
|
pop2(subtreeRenderLanesCursor, fiber);
|
|
26486
26486
|
}
|
|
26487
|
-
function prepareFreshStack(
|
|
26488
|
-
|
|
26489
|
-
|
|
26490
|
-
var timeoutHandle =
|
|
26487
|
+
function prepareFreshStack(root22, lanes) {
|
|
26488
|
+
root22.finishedWork = null;
|
|
26489
|
+
root22.finishedLanes = NoLanes;
|
|
26490
|
+
var timeoutHandle = root22.timeoutHandle;
|
|
26491
26491
|
if (timeoutHandle !== noTimeout) {
|
|
26492
|
-
|
|
26492
|
+
root22.timeoutHandle = noTimeout;
|
|
26493
26493
|
cancelTimeout(timeoutHandle);
|
|
26494
26494
|
}
|
|
26495
26495
|
if (workInProgress !== null) {
|
|
@@ -26500,8 +26500,8 @@ function requireReactDom_development() {
|
|
|
26500
26500
|
interruptedWork = interruptedWork.return;
|
|
26501
26501
|
}
|
|
26502
26502
|
}
|
|
26503
|
-
workInProgressRoot =
|
|
26504
|
-
var rootWorkInProgress = createWorkInProgress(
|
|
26503
|
+
workInProgressRoot = root22;
|
|
26504
|
+
var rootWorkInProgress = createWorkInProgress(root22.current, null);
|
|
26505
26505
|
workInProgress = rootWorkInProgress;
|
|
26506
26506
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
26507
26507
|
workInProgressRootExitStatus = RootInProgress;
|
|
@@ -26517,7 +26517,7 @@ function requireReactDom_development() {
|
|
|
26517
26517
|
}
|
|
26518
26518
|
return rootWorkInProgress;
|
|
26519
26519
|
}
|
|
26520
|
-
function handleError(
|
|
26520
|
+
function handleError(root22, thrownValue) {
|
|
26521
26521
|
do {
|
|
26522
26522
|
var erroredWork = workInProgress;
|
|
26523
26523
|
try {
|
|
@@ -26543,7 +26543,7 @@ function requireReactDom_development() {
|
|
|
26543
26543
|
markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes);
|
|
26544
26544
|
}
|
|
26545
26545
|
}
|
|
26546
|
-
throwException(
|
|
26546
|
+
throwException(root22, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);
|
|
26547
26547
|
completeUnitOfWork(erroredWork);
|
|
26548
26548
|
} catch (yetAnotherThrownValue) {
|
|
26549
26549
|
thrownValue = yetAnotherThrownValue;
|
|
@@ -26602,23 +26602,23 @@ function requireReactDom_development() {
|
|
|
26602
26602
|
function renderHasNotSuspendedYet() {
|
|
26603
26603
|
return workInProgressRootExitStatus === RootInProgress;
|
|
26604
26604
|
}
|
|
26605
|
-
function renderRootSync(
|
|
26605
|
+
function renderRootSync(root22, lanes) {
|
|
26606
26606
|
var prevExecutionContext = executionContext;
|
|
26607
26607
|
executionContext |= RenderContext;
|
|
26608
26608
|
var prevDispatcher = pushDispatcher();
|
|
26609
|
-
if (workInProgressRoot !==
|
|
26609
|
+
if (workInProgressRoot !== root22 || workInProgressRootRenderLanes !== lanes) {
|
|
26610
26610
|
{
|
|
26611
26611
|
if (isDevToolsPresent) {
|
|
26612
|
-
var memoizedUpdaters =
|
|
26612
|
+
var memoizedUpdaters = root22.memoizedUpdaters;
|
|
26613
26613
|
if (memoizedUpdaters.size > 0) {
|
|
26614
|
-
restorePendingUpdaters(
|
|
26614
|
+
restorePendingUpdaters(root22, workInProgressRootRenderLanes);
|
|
26615
26615
|
memoizedUpdaters.clear();
|
|
26616
26616
|
}
|
|
26617
|
-
movePendingFibersToMemoized(
|
|
26617
|
+
movePendingFibersToMemoized(root22, lanes);
|
|
26618
26618
|
}
|
|
26619
26619
|
}
|
|
26620
26620
|
workInProgressTransitions = getTransitionsForLanes();
|
|
26621
|
-
prepareFreshStack(
|
|
26621
|
+
prepareFreshStack(root22, lanes);
|
|
26622
26622
|
}
|
|
26623
26623
|
{
|
|
26624
26624
|
markRenderStarted(lanes);
|
|
@@ -26628,7 +26628,7 @@ function requireReactDom_development() {
|
|
|
26628
26628
|
workLoopSync();
|
|
26629
26629
|
break;
|
|
26630
26630
|
} catch (thrownValue) {
|
|
26631
|
-
handleError(
|
|
26631
|
+
handleError(root22, thrownValue);
|
|
26632
26632
|
}
|
|
26633
26633
|
} while (true);
|
|
26634
26634
|
resetContextDependencies();
|
|
@@ -26649,24 +26649,24 @@ function requireReactDom_development() {
|
|
|
26649
26649
|
performUnitOfWork(workInProgress);
|
|
26650
26650
|
}
|
|
26651
26651
|
}
|
|
26652
|
-
function renderRootConcurrent(
|
|
26652
|
+
function renderRootConcurrent(root22, lanes) {
|
|
26653
26653
|
var prevExecutionContext = executionContext;
|
|
26654
26654
|
executionContext |= RenderContext;
|
|
26655
26655
|
var prevDispatcher = pushDispatcher();
|
|
26656
|
-
if (workInProgressRoot !==
|
|
26656
|
+
if (workInProgressRoot !== root22 || workInProgressRootRenderLanes !== lanes) {
|
|
26657
26657
|
{
|
|
26658
26658
|
if (isDevToolsPresent) {
|
|
26659
|
-
var memoizedUpdaters =
|
|
26659
|
+
var memoizedUpdaters = root22.memoizedUpdaters;
|
|
26660
26660
|
if (memoizedUpdaters.size > 0) {
|
|
26661
|
-
restorePendingUpdaters(
|
|
26661
|
+
restorePendingUpdaters(root22, workInProgressRootRenderLanes);
|
|
26662
26662
|
memoizedUpdaters.clear();
|
|
26663
26663
|
}
|
|
26664
|
-
movePendingFibersToMemoized(
|
|
26664
|
+
movePendingFibersToMemoized(root22, lanes);
|
|
26665
26665
|
}
|
|
26666
26666
|
}
|
|
26667
26667
|
workInProgressTransitions = getTransitionsForLanes();
|
|
26668
26668
|
resetRenderTimer();
|
|
26669
|
-
prepareFreshStack(
|
|
26669
|
+
prepareFreshStack(root22, lanes);
|
|
26670
26670
|
}
|
|
26671
26671
|
{
|
|
26672
26672
|
markRenderStarted(lanes);
|
|
@@ -26676,7 +26676,7 @@ function requireReactDom_development() {
|
|
|
26676
26676
|
workLoopConcurrent();
|
|
26677
26677
|
break;
|
|
26678
26678
|
} catch (thrownValue) {
|
|
26679
|
-
handleError(
|
|
26679
|
+
handleError(root22, thrownValue);
|
|
26680
26680
|
}
|
|
26681
26681
|
} while (true);
|
|
26682
26682
|
resetContextDependencies();
|
|
@@ -26780,20 +26780,20 @@ function requireReactDom_development() {
|
|
|
26780
26780
|
workInProgressRootExitStatus = RootCompleted;
|
|
26781
26781
|
}
|
|
26782
26782
|
}
|
|
26783
|
-
function commitRoot(
|
|
26783
|
+
function commitRoot(root22, recoverableErrors, transitions) {
|
|
26784
26784
|
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
|
26785
26785
|
var prevTransition = ReactCurrentBatchConfig$3.transition;
|
|
26786
26786
|
try {
|
|
26787
26787
|
ReactCurrentBatchConfig$3.transition = null;
|
|
26788
26788
|
setCurrentUpdatePriority(DiscreteEventPriority);
|
|
26789
|
-
commitRootImpl(
|
|
26789
|
+
commitRootImpl(root22, recoverableErrors, transitions, previousUpdateLanePriority);
|
|
26790
26790
|
} finally {
|
|
26791
26791
|
ReactCurrentBatchConfig$3.transition = prevTransition;
|
|
26792
26792
|
setCurrentUpdatePriority(previousUpdateLanePriority);
|
|
26793
26793
|
}
|
|
26794
26794
|
return null;
|
|
26795
26795
|
}
|
|
26796
|
-
function commitRootImpl(
|
|
26796
|
+
function commitRootImpl(root22, recoverableErrors, transitions, renderPriorityLevel) {
|
|
26797
26797
|
do {
|
|
26798
26798
|
flushPassiveEffects();
|
|
26799
26799
|
} while (rootWithPendingPassiveEffects !== null);
|
|
@@ -26801,8 +26801,8 @@ function requireReactDom_development() {
|
|
|
26801
26801
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
|
|
26802
26802
|
throw new Error("Should not already be working.");
|
|
26803
26803
|
}
|
|
26804
|
-
var finishedWork =
|
|
26805
|
-
var lanes =
|
|
26804
|
+
var finishedWork = root22.finishedWork;
|
|
26805
|
+
var lanes = root22.finishedLanes;
|
|
26806
26806
|
{
|
|
26807
26807
|
markCommitStarted(lanes);
|
|
26808
26808
|
}
|
|
@@ -26818,16 +26818,16 @@ function requireReactDom_development() {
|
|
|
26818
26818
|
}
|
|
26819
26819
|
}
|
|
26820
26820
|
}
|
|
26821
|
-
|
|
26822
|
-
|
|
26823
|
-
if (finishedWork ===
|
|
26821
|
+
root22.finishedWork = null;
|
|
26822
|
+
root22.finishedLanes = NoLanes;
|
|
26823
|
+
if (finishedWork === root22.current) {
|
|
26824
26824
|
throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
|
|
26825
26825
|
}
|
|
26826
|
-
|
|
26827
|
-
|
|
26826
|
+
root22.callbackNode = null;
|
|
26827
|
+
root22.callbackPriority = NoLane;
|
|
26828
26828
|
var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
|
|
26829
|
-
markRootFinished(
|
|
26830
|
-
if (
|
|
26829
|
+
markRootFinished(root22, remainingLanes);
|
|
26830
|
+
if (root22 === workInProgressRoot) {
|
|
26831
26831
|
workInProgressRoot = null;
|
|
26832
26832
|
workInProgress = null;
|
|
26833
26833
|
workInProgressRootRenderLanes = NoLanes;
|
|
@@ -26852,17 +26852,17 @@ function requireReactDom_development() {
|
|
|
26852
26852
|
var prevExecutionContext = executionContext;
|
|
26853
26853
|
executionContext |= CommitContext;
|
|
26854
26854
|
ReactCurrentOwner$2.current = null;
|
|
26855
|
-
commitBeforeMutationEffects(
|
|
26855
|
+
commitBeforeMutationEffects(root22, finishedWork);
|
|
26856
26856
|
{
|
|
26857
26857
|
recordCommitTime();
|
|
26858
26858
|
}
|
|
26859
|
-
commitMutationEffects(
|
|
26860
|
-
resetAfterCommit(
|
|
26861
|
-
|
|
26859
|
+
commitMutationEffects(root22, finishedWork, lanes);
|
|
26860
|
+
resetAfterCommit(root22.containerInfo);
|
|
26861
|
+
root22.current = finishedWork;
|
|
26862
26862
|
{
|
|
26863
26863
|
markLayoutEffectsStarted(lanes);
|
|
26864
26864
|
}
|
|
26865
|
-
commitLayoutEffects(finishedWork,
|
|
26865
|
+
commitLayoutEffects(finishedWork, root22, lanes);
|
|
26866
26866
|
{
|
|
26867
26867
|
markLayoutEffectsStopped();
|
|
26868
26868
|
}
|
|
@@ -26871,7 +26871,7 @@ function requireReactDom_development() {
|
|
|
26871
26871
|
setCurrentUpdatePriority(previousPriority);
|
|
26872
26872
|
ReactCurrentBatchConfig$3.transition = prevTransition;
|
|
26873
26873
|
} else {
|
|
26874
|
-
|
|
26874
|
+
root22.current = finishedWork;
|
|
26875
26875
|
{
|
|
26876
26876
|
recordCommitTime();
|
|
26877
26877
|
}
|
|
@@ -26879,7 +26879,7 @@ function requireReactDom_development() {
|
|
|
26879
26879
|
var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
|
|
26880
26880
|
if (rootDoesHavePassiveEffects) {
|
|
26881
26881
|
rootDoesHavePassiveEffects = false;
|
|
26882
|
-
rootWithPendingPassiveEffects =
|
|
26882
|
+
rootWithPendingPassiveEffects = root22;
|
|
26883
26883
|
pendingPassiveEffectsLanes = lanes;
|
|
26884
26884
|
} else {
|
|
26885
26885
|
{
|
|
@@ -26887,27 +26887,27 @@ function requireReactDom_development() {
|
|
|
26887
26887
|
rootWithPassiveNestedUpdates = null;
|
|
26888
26888
|
}
|
|
26889
26889
|
}
|
|
26890
|
-
remainingLanes =
|
|
26890
|
+
remainingLanes = root22.pendingLanes;
|
|
26891
26891
|
if (remainingLanes === NoLanes) {
|
|
26892
26892
|
legacyErrorBoundariesThatAlreadyFailed = null;
|
|
26893
26893
|
}
|
|
26894
26894
|
{
|
|
26895
26895
|
if (!rootDidHavePassiveEffects) {
|
|
26896
|
-
commitDoubleInvokeEffectsInDEV(
|
|
26896
|
+
commitDoubleInvokeEffectsInDEV(root22.current, false);
|
|
26897
26897
|
}
|
|
26898
26898
|
}
|
|
26899
26899
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
26900
26900
|
{
|
|
26901
26901
|
if (isDevToolsPresent) {
|
|
26902
|
-
|
|
26902
|
+
root22.memoizedUpdaters.clear();
|
|
26903
26903
|
}
|
|
26904
26904
|
}
|
|
26905
26905
|
{
|
|
26906
26906
|
onCommitRoot$1();
|
|
26907
26907
|
}
|
|
26908
|
-
ensureRootIsScheduled(
|
|
26908
|
+
ensureRootIsScheduled(root22, now());
|
|
26909
26909
|
if (recoverableErrors !== null) {
|
|
26910
|
-
var onRecoverableError =
|
|
26910
|
+
var onRecoverableError = root22.onRecoverableError;
|
|
26911
26911
|
for (var i = 0; i < recoverableErrors.length; i++) {
|
|
26912
26912
|
var recoverableError = recoverableErrors[i];
|
|
26913
26913
|
var componentStack = recoverableError.stack;
|
|
@@ -26924,19 +26924,19 @@ function requireReactDom_development() {
|
|
|
26924
26924
|
firstUncaughtError = null;
|
|
26925
26925
|
throw error$1;
|
|
26926
26926
|
}
|
|
26927
|
-
if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) &&
|
|
26927
|
+
if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root22.tag !== LegacyRoot) {
|
|
26928
26928
|
flushPassiveEffects();
|
|
26929
26929
|
}
|
|
26930
|
-
remainingLanes =
|
|
26930
|
+
remainingLanes = root22.pendingLanes;
|
|
26931
26931
|
if (includesSomeLane(remainingLanes, SyncLane)) {
|
|
26932
26932
|
{
|
|
26933
26933
|
markNestedUpdateScheduled();
|
|
26934
26934
|
}
|
|
26935
|
-
if (
|
|
26935
|
+
if (root22 === rootWithNestedUpdates) {
|
|
26936
26936
|
nestedUpdateCount++;
|
|
26937
26937
|
} else {
|
|
26938
26938
|
nestedUpdateCount = 0;
|
|
26939
|
-
rootWithNestedUpdates =
|
|
26939
|
+
rootWithNestedUpdates = root22;
|
|
26940
26940
|
}
|
|
26941
26941
|
} else {
|
|
26942
26942
|
nestedUpdateCount = 0;
|
|
@@ -26982,7 +26982,7 @@ function requireReactDom_development() {
|
|
|
26982
26982
|
}
|
|
26983
26983
|
var transitions = pendingPassiveTransitions;
|
|
26984
26984
|
pendingPassiveTransitions = null;
|
|
26985
|
-
var
|
|
26985
|
+
var root22 = rootWithPendingPassiveEffects;
|
|
26986
26986
|
var lanes = pendingPassiveEffectsLanes;
|
|
26987
26987
|
rootWithPendingPassiveEffects = null;
|
|
26988
26988
|
pendingPassiveEffectsLanes = NoLanes;
|
|
@@ -26998,31 +26998,31 @@ function requireReactDom_development() {
|
|
|
26998
26998
|
}
|
|
26999
26999
|
var prevExecutionContext = executionContext;
|
|
27000
27000
|
executionContext |= CommitContext;
|
|
27001
|
-
commitPassiveUnmountEffects(
|
|
27002
|
-
commitPassiveMountEffects(
|
|
27001
|
+
commitPassiveUnmountEffects(root22.current);
|
|
27002
|
+
commitPassiveMountEffects(root22, root22.current, lanes, transitions);
|
|
27003
27003
|
{
|
|
27004
27004
|
var profilerEffects = pendingPassiveProfilerEffects;
|
|
27005
27005
|
pendingPassiveProfilerEffects = [];
|
|
27006
27006
|
for (var i = 0; i < profilerEffects.length; i++) {
|
|
27007
27007
|
var _fiber = profilerEffects[i];
|
|
27008
|
-
commitPassiveEffectDurations(
|
|
27008
|
+
commitPassiveEffectDurations(root22, _fiber);
|
|
27009
27009
|
}
|
|
27010
27010
|
}
|
|
27011
27011
|
{
|
|
27012
27012
|
markPassiveEffectsStopped();
|
|
27013
27013
|
}
|
|
27014
27014
|
{
|
|
27015
|
-
commitDoubleInvokeEffectsInDEV(
|
|
27015
|
+
commitDoubleInvokeEffectsInDEV(root22.current, true);
|
|
27016
27016
|
}
|
|
27017
27017
|
executionContext = prevExecutionContext;
|
|
27018
27018
|
flushSyncCallbacks();
|
|
27019
27019
|
{
|
|
27020
27020
|
if (didScheduleUpdateDuringPassiveEffects) {
|
|
27021
|
-
if (
|
|
27021
|
+
if (root22 === rootWithPassiveNestedUpdates) {
|
|
27022
27022
|
nestedPassiveUpdateCount++;
|
|
27023
27023
|
} else {
|
|
27024
27024
|
nestedPassiveUpdateCount = 0;
|
|
27025
|
-
rootWithPassiveNestedUpdates =
|
|
27025
|
+
rootWithPassiveNestedUpdates = root22;
|
|
27026
27026
|
}
|
|
27027
27027
|
} else {
|
|
27028
27028
|
nestedPassiveUpdateCount = 0;
|
|
@@ -27030,9 +27030,9 @@ function requireReactDom_development() {
|
|
|
27030
27030
|
isFlushingPassiveEffects = false;
|
|
27031
27031
|
didScheduleUpdateDuringPassiveEffects = false;
|
|
27032
27032
|
}
|
|
27033
|
-
onPostCommitRoot(
|
|
27033
|
+
onPostCommitRoot(root22);
|
|
27034
27034
|
{
|
|
27035
|
-
var stateNode =
|
|
27035
|
+
var stateNode = root22.current.stateNode;
|
|
27036
27036
|
stateNode.effectDuration = 0;
|
|
27037
27037
|
stateNode.passiveEffectDuration = 0;
|
|
27038
27038
|
}
|
|
@@ -27058,11 +27058,11 @@ function requireReactDom_development() {
|
|
|
27058
27058
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error2) {
|
|
27059
27059
|
var errorInfo = createCapturedValueAtFiber(error2, sourceFiber);
|
|
27060
27060
|
var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
|
|
27061
|
-
var
|
|
27061
|
+
var root22 = enqueueUpdate(rootFiber, update, SyncLane);
|
|
27062
27062
|
var eventTime = requestEventTime();
|
|
27063
|
-
if (
|
|
27064
|
-
markRootUpdated(
|
|
27065
|
-
ensureRootIsScheduled(
|
|
27063
|
+
if (root22 !== null) {
|
|
27064
|
+
markRootUpdated(root22, SyncLane, eventTime);
|
|
27065
|
+
ensureRootIsScheduled(root22, eventTime);
|
|
27066
27066
|
}
|
|
27067
27067
|
}
|
|
27068
27068
|
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
|
|
@@ -27088,11 +27088,11 @@ function requireReactDom_development() {
|
|
|
27088
27088
|
if (typeof ctor.getDerivedStateFromError === "function" || typeof instance2.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance2)) {
|
|
27089
27089
|
var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber);
|
|
27090
27090
|
var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
|
|
27091
|
-
var
|
|
27091
|
+
var root22 = enqueueUpdate(fiber, update, SyncLane);
|
|
27092
27092
|
var eventTime = requestEventTime();
|
|
27093
|
-
if (
|
|
27094
|
-
markRootUpdated(
|
|
27095
|
-
ensureRootIsScheduled(
|
|
27093
|
+
if (root22 !== null) {
|
|
27094
|
+
markRootUpdated(root22, SyncLane, eventTime);
|
|
27095
|
+
ensureRootIsScheduled(root22, eventTime);
|
|
27096
27096
|
}
|
|
27097
27097
|
return;
|
|
27098
27098
|
}
|
|
@@ -27103,32 +27103,32 @@ function requireReactDom_development() {
|
|
|
27103
27103
|
error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", error$1);
|
|
27104
27104
|
}
|
|
27105
27105
|
}
|
|
27106
|
-
function pingSuspendedRoot(
|
|
27107
|
-
var pingCache =
|
|
27106
|
+
function pingSuspendedRoot(root22, wakeable, pingedLanes) {
|
|
27107
|
+
var pingCache = root22.pingCache;
|
|
27108
27108
|
if (pingCache !== null) {
|
|
27109
27109
|
pingCache.delete(wakeable);
|
|
27110
27110
|
}
|
|
27111
27111
|
var eventTime = requestEventTime();
|
|
27112
|
-
markRootPinged(
|
|
27113
|
-
warnIfSuspenseResolutionNotWrappedWithActDEV(
|
|
27114
|
-
if (workInProgressRoot ===
|
|
27112
|
+
markRootPinged(root22, pingedLanes);
|
|
27113
|
+
warnIfSuspenseResolutionNotWrappedWithActDEV(root22);
|
|
27114
|
+
if (workInProgressRoot === root22 && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
|
|
27115
27115
|
if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
|
|
27116
|
-
prepareFreshStack(
|
|
27116
|
+
prepareFreshStack(root22, NoLanes);
|
|
27117
27117
|
} else {
|
|
27118
27118
|
workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
|
|
27119
27119
|
}
|
|
27120
27120
|
}
|
|
27121
|
-
ensureRootIsScheduled(
|
|
27121
|
+
ensureRootIsScheduled(root22, eventTime);
|
|
27122
27122
|
}
|
|
27123
27123
|
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
|
27124
27124
|
if (retryLane === NoLane) {
|
|
27125
27125
|
retryLane = requestRetryLane(boundaryFiber);
|
|
27126
27126
|
}
|
|
27127
27127
|
var eventTime = requestEventTime();
|
|
27128
|
-
var
|
|
27129
|
-
if (
|
|
27130
|
-
markRootUpdated(
|
|
27131
|
-
ensureRootIsScheduled(
|
|
27128
|
+
var root22 = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
|
27129
|
+
if (root22 !== null) {
|
|
27130
|
+
markRootUpdated(root22, retryLane, eventTime);
|
|
27131
|
+
ensureRootIsScheduled(root22, eventTime);
|
|
27132
27132
|
}
|
|
27133
27133
|
}
|
|
27134
27134
|
function retryDehydratedSuspenseBoundary(boundaryFiber) {
|
|
@@ -27317,12 +27317,12 @@ function requireReactDom_development() {
|
|
|
27317
27317
|
}
|
|
27318
27318
|
}
|
|
27319
27319
|
}
|
|
27320
|
-
function restorePendingUpdaters(
|
|
27320
|
+
function restorePendingUpdaters(root22, lanes) {
|
|
27321
27321
|
{
|
|
27322
27322
|
if (isDevToolsPresent) {
|
|
27323
|
-
var memoizedUpdaters =
|
|
27323
|
+
var memoizedUpdaters = root22.memoizedUpdaters;
|
|
27324
27324
|
memoizedUpdaters.forEach(function(schedulingFiber) {
|
|
27325
|
-
addFiberToLanesMap(
|
|
27325
|
+
addFiberToLanesMap(root22, schedulingFiber, lanes);
|
|
27326
27326
|
});
|
|
27327
27327
|
}
|
|
27328
27328
|
}
|
|
@@ -27380,9 +27380,9 @@ function requireReactDom_development() {
|
|
|
27380
27380
|
}
|
|
27381
27381
|
}
|
|
27382
27382
|
}
|
|
27383
|
-
function warnIfSuspenseResolutionNotWrappedWithActDEV(
|
|
27383
|
+
function warnIfSuspenseResolutionNotWrappedWithActDEV(root22) {
|
|
27384
27384
|
{
|
|
27385
|
-
if (
|
|
27385
|
+
if (root22.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) {
|
|
27386
27386
|
error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act");
|
|
27387
27387
|
}
|
|
27388
27388
|
}
|
|
@@ -27506,7 +27506,7 @@ function requireReactDom_development() {
|
|
|
27506
27506
|
failedBoundaries.add(fiber);
|
|
27507
27507
|
}
|
|
27508
27508
|
}
|
|
27509
|
-
var scheduleRefresh = function(
|
|
27509
|
+
var scheduleRefresh = function(root22, update) {
|
|
27510
27510
|
{
|
|
27511
27511
|
if (resolveFamily === null) {
|
|
27512
27512
|
return;
|
|
@@ -27514,18 +27514,18 @@ function requireReactDom_development() {
|
|
|
27514
27514
|
var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies;
|
|
27515
27515
|
flushPassiveEffects();
|
|
27516
27516
|
flushSync(function() {
|
|
27517
|
-
scheduleFibersWithFamiliesRecursively(
|
|
27517
|
+
scheduleFibersWithFamiliesRecursively(root22.current, updatedFamilies, staleFamilies);
|
|
27518
27518
|
});
|
|
27519
27519
|
}
|
|
27520
27520
|
};
|
|
27521
|
-
var scheduleRoot = function(
|
|
27521
|
+
var scheduleRoot = function(root22, element) {
|
|
27522
27522
|
{
|
|
27523
|
-
if (
|
|
27523
|
+
if (root22.context !== emptyContextObject) {
|
|
27524
27524
|
return;
|
|
27525
27525
|
}
|
|
27526
27526
|
flushPassiveEffects();
|
|
27527
27527
|
flushSync(function() {
|
|
27528
|
-
updateContainer(element,
|
|
27528
|
+
updateContainer(element, root22, null, null);
|
|
27529
27529
|
});
|
|
27530
27530
|
}
|
|
27531
27531
|
};
|
|
@@ -27584,13 +27584,13 @@ function requireReactDom_development() {
|
|
|
27584
27584
|
}
|
|
27585
27585
|
}
|
|
27586
27586
|
}
|
|
27587
|
-
var findHostInstancesForRefresh = function(
|
|
27587
|
+
var findHostInstancesForRefresh = function(root22, families) {
|
|
27588
27588
|
{
|
|
27589
27589
|
var hostInstances = /* @__PURE__ */ new Set();
|
|
27590
27590
|
var types = new Set(families.map(function(family) {
|
|
27591
27591
|
return family.current;
|
|
27592
27592
|
}));
|
|
27593
|
-
findHostInstancesForMatchingFibersRecursively(
|
|
27593
|
+
findHostInstancesForMatchingFibersRecursively(root22.current, types, hostInstances);
|
|
27594
27594
|
return hostInstances;
|
|
27595
27595
|
}
|
|
27596
27596
|
};
|
|
@@ -28143,10 +28143,10 @@ function requireReactDom_development() {
|
|
|
28143
28143
|
}
|
|
28144
28144
|
}
|
|
28145
28145
|
function createFiberRoot(containerInfo, tag, hydrate2, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {
|
|
28146
|
-
var
|
|
28146
|
+
var root22 = new FiberRootNode(containerInfo, tag, hydrate2, identifierPrefix, onRecoverableError);
|
|
28147
28147
|
var uninitializedFiber = createHostRootFiber(tag, isStrictMode);
|
|
28148
|
-
|
|
28149
|
-
uninitializedFiber.stateNode =
|
|
28148
|
+
root22.current = uninitializedFiber;
|
|
28149
|
+
uninitializedFiber.stateNode = root22;
|
|
28150
28150
|
{
|
|
28151
28151
|
var _initialState = {
|
|
28152
28152
|
element: initialChildren,
|
|
@@ -28159,7 +28159,7 @@ function requireReactDom_development() {
|
|
|
28159
28159
|
uninitializedFiber.memoizedState = _initialState;
|
|
28160
28160
|
}
|
|
28161
28161
|
initializeUpdateQueue(uninitializedFiber);
|
|
28162
|
-
return
|
|
28162
|
+
return root22;
|
|
28163
28163
|
}
|
|
28164
28164
|
var ReactVersion = "18.3.1";
|
|
28165
28165
|
function createPortal(children, containerInfo, implementation) {
|
|
@@ -28242,32 +28242,32 @@ function requireReactDom_development() {
|
|
|
28242
28242
|
}
|
|
28243
28243
|
function createHydrationContainer(initialChildren, callback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {
|
|
28244
28244
|
var hydrate2 = true;
|
|
28245
|
-
var
|
|
28246
|
-
|
|
28247
|
-
var current2 =
|
|
28245
|
+
var root22 = createFiberRoot(containerInfo, tag, hydrate2, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
|
|
28246
|
+
root22.context = getContextForSubtree(null);
|
|
28247
|
+
var current2 = root22.current;
|
|
28248
28248
|
var eventTime = requestEventTime();
|
|
28249
28249
|
var lane = requestUpdateLane(current2);
|
|
28250
28250
|
var update = createUpdate(eventTime, lane);
|
|
28251
28251
|
update.callback = callback !== void 0 && callback !== null ? callback : null;
|
|
28252
28252
|
enqueueUpdate(current2, update, lane);
|
|
28253
|
-
scheduleInitialHydrationOnRoot(
|
|
28254
|
-
return
|
|
28253
|
+
scheduleInitialHydrationOnRoot(root22, lane, eventTime);
|
|
28254
|
+
return root22;
|
|
28255
28255
|
}
|
|
28256
|
-
function updateContainer(element,
|
|
28256
|
+
function updateContainer(element, container, parentComponent, callback) {
|
|
28257
28257
|
{
|
|
28258
|
-
onScheduleRoot(
|
|
28258
|
+
onScheduleRoot(container, element);
|
|
28259
28259
|
}
|
|
28260
|
-
var current$1 =
|
|
28260
|
+
var current$1 = container.current;
|
|
28261
28261
|
var eventTime = requestEventTime();
|
|
28262
28262
|
var lane = requestUpdateLane(current$1);
|
|
28263
28263
|
{
|
|
28264
28264
|
markRenderScheduled(lane);
|
|
28265
28265
|
}
|
|
28266
28266
|
var context = getContextForSubtree(parentComponent);
|
|
28267
|
-
if (
|
|
28268
|
-
|
|
28267
|
+
if (container.context === null) {
|
|
28268
|
+
container.context = context;
|
|
28269
28269
|
} else {
|
|
28270
|
-
|
|
28270
|
+
container.pendingContext = context;
|
|
28271
28271
|
}
|
|
28272
28272
|
{
|
|
28273
28273
|
if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
|
|
@@ -28288,15 +28288,15 @@ function requireReactDom_development() {
|
|
|
28288
28288
|
}
|
|
28289
28289
|
update.callback = callback;
|
|
28290
28290
|
}
|
|
28291
|
-
var
|
|
28292
|
-
if (
|
|
28293
|
-
scheduleUpdateOnFiber(
|
|
28294
|
-
entangleTransitions(
|
|
28291
|
+
var root22 = enqueueUpdate(current$1, update, lane);
|
|
28292
|
+
if (root22 !== null) {
|
|
28293
|
+
scheduleUpdateOnFiber(root22, current$1, lane, eventTime);
|
|
28294
|
+
entangleTransitions(root22, current$1, lane);
|
|
28295
28295
|
}
|
|
28296
28296
|
return lane;
|
|
28297
28297
|
}
|
|
28298
|
-
function getPublicRootInstance(
|
|
28299
|
-
var containerFiber =
|
|
28298
|
+
function getPublicRootInstance(container) {
|
|
28299
|
+
var containerFiber = container.current;
|
|
28300
28300
|
if (!containerFiber.child) {
|
|
28301
28301
|
return null;
|
|
28302
28302
|
}
|
|
@@ -28310,10 +28310,10 @@ function requireReactDom_development() {
|
|
|
28310
28310
|
function attemptSynchronousHydration$1(fiber) {
|
|
28311
28311
|
switch (fiber.tag) {
|
|
28312
28312
|
case HostRoot: {
|
|
28313
|
-
var
|
|
28314
|
-
if (isRootDehydrated(
|
|
28315
|
-
var lanes = getHighestPriorityPendingLanes(
|
|
28316
|
-
flushRoot(
|
|
28313
|
+
var root22 = fiber.stateNode;
|
|
28314
|
+
if (isRootDehydrated(root22)) {
|
|
28315
|
+
var lanes = getHighestPriorityPendingLanes(root22);
|
|
28316
|
+
flushRoot(root22, lanes);
|
|
28317
28317
|
}
|
|
28318
28318
|
break;
|
|
28319
28319
|
}
|
|
@@ -28349,10 +28349,10 @@ function requireReactDom_development() {
|
|
|
28349
28349
|
return;
|
|
28350
28350
|
}
|
|
28351
28351
|
var lane = SelectiveHydrationLane;
|
|
28352
|
-
var
|
|
28353
|
-
if (
|
|
28352
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, lane);
|
|
28353
|
+
if (root22 !== null) {
|
|
28354
28354
|
var eventTime = requestEventTime();
|
|
28355
|
-
scheduleUpdateOnFiber(
|
|
28355
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
28356
28356
|
}
|
|
28357
28357
|
markRetryLaneIfNotHydrated(fiber, lane);
|
|
28358
28358
|
}
|
|
@@ -28361,10 +28361,10 @@ function requireReactDom_development() {
|
|
|
28361
28361
|
return;
|
|
28362
28362
|
}
|
|
28363
28363
|
var lane = requestUpdateLane(fiber);
|
|
28364
|
-
var
|
|
28365
|
-
if (
|
|
28364
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, lane);
|
|
28365
|
+
if (root22 !== null) {
|
|
28366
28366
|
var eventTime = requestEventTime();
|
|
28367
|
-
scheduleUpdateOnFiber(
|
|
28367
|
+
scheduleUpdateOnFiber(root22, fiber, lane, eventTime);
|
|
28368
28368
|
}
|
|
28369
28369
|
markRetryLaneIfNotHydrated(fiber, lane);
|
|
28370
28370
|
}
|
|
@@ -28477,9 +28477,9 @@ function requireReactDom_development() {
|
|
|
28477
28477
|
hook.memoizedState = newState;
|
|
28478
28478
|
hook.baseState = newState;
|
|
28479
28479
|
fiber.memoizedProps = assign2({}, fiber.memoizedProps);
|
|
28480
|
-
var
|
|
28481
|
-
if (
|
|
28482
|
-
scheduleUpdateOnFiber(
|
|
28480
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28481
|
+
if (root22 !== null) {
|
|
28482
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28483
28483
|
}
|
|
28484
28484
|
}
|
|
28485
28485
|
};
|
|
@@ -28490,9 +28490,9 @@ function requireReactDom_development() {
|
|
|
28490
28490
|
hook.memoizedState = newState;
|
|
28491
28491
|
hook.baseState = newState;
|
|
28492
28492
|
fiber.memoizedProps = assign2({}, fiber.memoizedProps);
|
|
28493
|
-
var
|
|
28494
|
-
if (
|
|
28495
|
-
scheduleUpdateOnFiber(
|
|
28493
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28494
|
+
if (root22 !== null) {
|
|
28495
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28496
28496
|
}
|
|
28497
28497
|
}
|
|
28498
28498
|
};
|
|
@@ -28503,9 +28503,9 @@ function requireReactDom_development() {
|
|
|
28503
28503
|
hook.memoizedState = newState;
|
|
28504
28504
|
hook.baseState = newState;
|
|
28505
28505
|
fiber.memoizedProps = assign2({}, fiber.memoizedProps);
|
|
28506
|
-
var
|
|
28507
|
-
if (
|
|
28508
|
-
scheduleUpdateOnFiber(
|
|
28506
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28507
|
+
if (root22 !== null) {
|
|
28508
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28509
28509
|
}
|
|
28510
28510
|
}
|
|
28511
28511
|
};
|
|
@@ -28514,9 +28514,9 @@ function requireReactDom_development() {
|
|
|
28514
28514
|
if (fiber.alternate) {
|
|
28515
28515
|
fiber.alternate.pendingProps = fiber.pendingProps;
|
|
28516
28516
|
}
|
|
28517
|
-
var
|
|
28518
|
-
if (
|
|
28519
|
-
scheduleUpdateOnFiber(
|
|
28517
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28518
|
+
if (root22 !== null) {
|
|
28519
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28520
28520
|
}
|
|
28521
28521
|
};
|
|
28522
28522
|
overridePropsDeletePath = function(fiber, path) {
|
|
@@ -28524,9 +28524,9 @@ function requireReactDom_development() {
|
|
|
28524
28524
|
if (fiber.alternate) {
|
|
28525
28525
|
fiber.alternate.pendingProps = fiber.pendingProps;
|
|
28526
28526
|
}
|
|
28527
|
-
var
|
|
28528
|
-
if (
|
|
28529
|
-
scheduleUpdateOnFiber(
|
|
28527
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28528
|
+
if (root22 !== null) {
|
|
28529
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28530
28530
|
}
|
|
28531
28531
|
};
|
|
28532
28532
|
overridePropsRenamePath = function(fiber, oldPath, newPath) {
|
|
@@ -28534,15 +28534,15 @@ function requireReactDom_development() {
|
|
|
28534
28534
|
if (fiber.alternate) {
|
|
28535
28535
|
fiber.alternate.pendingProps = fiber.pendingProps;
|
|
28536
28536
|
}
|
|
28537
|
-
var
|
|
28538
|
-
if (
|
|
28539
|
-
scheduleUpdateOnFiber(
|
|
28537
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28538
|
+
if (root22 !== null) {
|
|
28539
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28540
28540
|
}
|
|
28541
28541
|
};
|
|
28542
28542
|
scheduleUpdate = function(fiber) {
|
|
28543
|
-
var
|
|
28544
|
-
if (
|
|
28545
|
-
scheduleUpdateOnFiber(
|
|
28543
|
+
var root22 = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
28544
|
+
if (root22 !== null) {
|
|
28545
|
+
scheduleUpdateOnFiber(root22, fiber, SyncLane, NoTimestamp);
|
|
28546
28546
|
}
|
|
28547
28547
|
};
|
|
28548
28548
|
setErrorHandler = function(newShouldErrorImpl) {
|
|
@@ -28608,8 +28608,8 @@ function requireReactDom_development() {
|
|
|
28608
28608
|
this._internalRoot = internalRoot;
|
|
28609
28609
|
}
|
|
28610
28610
|
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) {
|
|
28611
|
-
var
|
|
28612
|
-
if (
|
|
28611
|
+
var root22 = this._internalRoot;
|
|
28612
|
+
if (root22 === null) {
|
|
28613
28613
|
throw new Error("Cannot update an unmounted root.");
|
|
28614
28614
|
}
|
|
28615
28615
|
{
|
|
@@ -28620,17 +28620,17 @@ function requireReactDom_development() {
|
|
|
28620
28620
|
} else if (typeof arguments[1] !== "undefined") {
|
|
28621
28621
|
error("You passed a second argument to root.render(...) but it only accepts one argument.");
|
|
28622
28622
|
}
|
|
28623
|
-
var
|
|
28624
|
-
if (
|
|
28625
|
-
var hostInstance = findHostInstanceWithNoPortals(
|
|
28623
|
+
var container = root22.containerInfo;
|
|
28624
|
+
if (container.nodeType !== COMMENT_NODE) {
|
|
28625
|
+
var hostInstance = findHostInstanceWithNoPortals(root22.current);
|
|
28626
28626
|
if (hostInstance) {
|
|
28627
|
-
if (hostInstance.parentNode !==
|
|
28627
|
+
if (hostInstance.parentNode !== container) {
|
|
28628
28628
|
error("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.");
|
|
28629
28629
|
}
|
|
28630
28630
|
}
|
|
28631
28631
|
}
|
|
28632
28632
|
}
|
|
28633
|
-
updateContainer(children,
|
|
28633
|
+
updateContainer(children, root22, null, null);
|
|
28634
28634
|
};
|
|
28635
28635
|
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() {
|
|
28636
28636
|
{
|
|
@@ -28638,26 +28638,26 @@ function requireReactDom_development() {
|
|
|
28638
28638
|
error("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");
|
|
28639
28639
|
}
|
|
28640
28640
|
}
|
|
28641
|
-
var
|
|
28642
|
-
if (
|
|
28641
|
+
var root22 = this._internalRoot;
|
|
28642
|
+
if (root22 !== null) {
|
|
28643
28643
|
this._internalRoot = null;
|
|
28644
|
-
var
|
|
28644
|
+
var container = root22.containerInfo;
|
|
28645
28645
|
{
|
|
28646
28646
|
if (isAlreadyRendering()) {
|
|
28647
28647
|
error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.");
|
|
28648
28648
|
}
|
|
28649
28649
|
}
|
|
28650
28650
|
flushSync(function() {
|
|
28651
|
-
updateContainer(null,
|
|
28651
|
+
updateContainer(null, root22, null, null);
|
|
28652
28652
|
});
|
|
28653
|
-
unmarkContainerAsRoot(
|
|
28653
|
+
unmarkContainerAsRoot(container);
|
|
28654
28654
|
}
|
|
28655
28655
|
};
|
|
28656
|
-
function createRoot(
|
|
28657
|
-
if (!isValidContainer(
|
|
28656
|
+
function createRoot(container, options2) {
|
|
28657
|
+
if (!isValidContainer(container)) {
|
|
28658
28658
|
throw new Error("createRoot(...): Target container is not a DOM element.");
|
|
28659
28659
|
}
|
|
28660
|
-
warnIfReactDOMContainerInDEV(
|
|
28660
|
+
warnIfReactDOMContainerInDEV(container);
|
|
28661
28661
|
var isStrictMode = false;
|
|
28662
28662
|
var concurrentUpdatesByDefaultOverride = false;
|
|
28663
28663
|
var identifierPrefix = "";
|
|
@@ -28685,11 +28685,11 @@ function requireReactDom_development() {
|
|
|
28685
28685
|
options2.transitionCallbacks;
|
|
28686
28686
|
}
|
|
28687
28687
|
}
|
|
28688
|
-
var
|
|
28689
|
-
markContainerAsRoot(
|
|
28690
|
-
var rootContainerElement =
|
|
28688
|
+
var root22 = createContainer(container, ConcurrentRoot, null, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
|
|
28689
|
+
markContainerAsRoot(root22.current, container);
|
|
28690
|
+
var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
|
|
28691
28691
|
listenToAllSupportedEvents(rootContainerElement);
|
|
28692
|
-
return new ReactDOMRoot(
|
|
28692
|
+
return new ReactDOMRoot(root22);
|
|
28693
28693
|
}
|
|
28694
28694
|
function ReactDOMHydrationRoot(internalRoot) {
|
|
28695
28695
|
this._internalRoot = internalRoot;
|
|
@@ -28700,11 +28700,11 @@ function requireReactDom_development() {
|
|
|
28700
28700
|
}
|
|
28701
28701
|
}
|
|
28702
28702
|
ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration;
|
|
28703
|
-
function hydrateRoot(
|
|
28704
|
-
if (!isValidContainer(
|
|
28703
|
+
function hydrateRoot(container, initialChildren, options2) {
|
|
28704
|
+
if (!isValidContainer(container)) {
|
|
28705
28705
|
throw new Error("hydrateRoot(...): Target container is not a DOM element.");
|
|
28706
28706
|
}
|
|
28707
|
-
warnIfReactDOMContainerInDEV(
|
|
28707
|
+
warnIfReactDOMContainerInDEV(container);
|
|
28708
28708
|
{
|
|
28709
28709
|
if (initialChildren === void 0) {
|
|
28710
28710
|
error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");
|
|
@@ -28727,16 +28727,16 @@ function requireReactDom_development() {
|
|
|
28727
28727
|
onRecoverableError = options2.onRecoverableError;
|
|
28728
28728
|
}
|
|
28729
28729
|
}
|
|
28730
|
-
var
|
|
28731
|
-
markContainerAsRoot(
|
|
28732
|
-
listenToAllSupportedEvents(
|
|
28730
|
+
var root22 = createHydrationContainer(initialChildren, null, container, ConcurrentRoot, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
|
|
28731
|
+
markContainerAsRoot(root22.current, container);
|
|
28732
|
+
listenToAllSupportedEvents(container);
|
|
28733
28733
|
if (mutableSources) {
|
|
28734
28734
|
for (var i = 0; i < mutableSources.length; i++) {
|
|
28735
28735
|
var mutableSource = mutableSources[i];
|
|
28736
|
-
registerMutableSourceForHydration(
|
|
28736
|
+
registerMutableSourceForHydration(root22, mutableSource);
|
|
28737
28737
|
}
|
|
28738
28738
|
}
|
|
28739
|
-
return new ReactDOMHydrationRoot(
|
|
28739
|
+
return new ReactDOMHydrationRoot(root22);
|
|
28740
28740
|
}
|
|
28741
28741
|
function isValidContainer(node) {
|
|
28742
28742
|
return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || false));
|
|
@@ -28744,13 +28744,13 @@ function requireReactDom_development() {
|
|
|
28744
28744
|
function isValidContainerLegacy(node) {
|
|
28745
28745
|
return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === " react-mount-point-unstable "));
|
|
28746
28746
|
}
|
|
28747
|
-
function warnIfReactDOMContainerInDEV(
|
|
28747
|
+
function warnIfReactDOMContainerInDEV(container) {
|
|
28748
28748
|
{
|
|
28749
|
-
if (
|
|
28749
|
+
if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === "BODY") {
|
|
28750
28750
|
error("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app.");
|
|
28751
28751
|
}
|
|
28752
|
-
if (isContainerMarkedAsRoot(
|
|
28753
|
-
if (
|
|
28752
|
+
if (isContainerMarkedAsRoot(container)) {
|
|
28753
|
+
if (container._reactRootContainer) {
|
|
28754
28754
|
error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");
|
|
28755
28755
|
} else {
|
|
28756
28756
|
error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.");
|
|
@@ -28761,51 +28761,51 @@ function requireReactDom_development() {
|
|
|
28761
28761
|
var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
|
|
28762
28762
|
var topLevelUpdateWarnings;
|
|
28763
28763
|
{
|
|
28764
|
-
topLevelUpdateWarnings = function(
|
|
28765
|
-
if (
|
|
28766
|
-
var hostInstance = findHostInstanceWithNoPortals(
|
|
28764
|
+
topLevelUpdateWarnings = function(container) {
|
|
28765
|
+
if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
|
|
28766
|
+
var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer.current);
|
|
28767
28767
|
if (hostInstance) {
|
|
28768
|
-
if (hostInstance.parentNode !==
|
|
28768
|
+
if (hostInstance.parentNode !== container) {
|
|
28769
28769
|
error("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.");
|
|
28770
28770
|
}
|
|
28771
28771
|
}
|
|
28772
28772
|
}
|
|
28773
|
-
var isRootRenderedBySomeReact = !!
|
|
28774
|
-
var rootEl = getReactRootElementInContainer(
|
|
28773
|
+
var isRootRenderedBySomeReact = !!container._reactRootContainer;
|
|
28774
|
+
var rootEl = getReactRootElementInContainer(container);
|
|
28775
28775
|
var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));
|
|
28776
28776
|
if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
|
|
28777
28777
|
error("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.");
|
|
28778
28778
|
}
|
|
28779
|
-
if (
|
|
28779
|
+
if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === "BODY") {
|
|
28780
28780
|
error("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.");
|
|
28781
28781
|
}
|
|
28782
28782
|
};
|
|
28783
28783
|
}
|
|
28784
|
-
function getReactRootElementInContainer(
|
|
28785
|
-
if (!
|
|
28784
|
+
function getReactRootElementInContainer(container) {
|
|
28785
|
+
if (!container) {
|
|
28786
28786
|
return null;
|
|
28787
28787
|
}
|
|
28788
|
-
if (
|
|
28789
|
-
return
|
|
28788
|
+
if (container.nodeType === DOCUMENT_NODE) {
|
|
28789
|
+
return container.documentElement;
|
|
28790
28790
|
} else {
|
|
28791
|
-
return
|
|
28791
|
+
return container.firstChild;
|
|
28792
28792
|
}
|
|
28793
28793
|
}
|
|
28794
28794
|
function noopOnRecoverableError() {
|
|
28795
28795
|
}
|
|
28796
|
-
function legacyCreateRootFromDOMContainer(
|
|
28796
|
+
function legacyCreateRootFromDOMContainer(container, initialChildren, parentComponent, callback, isHydrationContainer) {
|
|
28797
28797
|
if (isHydrationContainer) {
|
|
28798
28798
|
if (typeof callback === "function") {
|
|
28799
28799
|
var originalCallback = callback;
|
|
28800
28800
|
callback = function() {
|
|
28801
|
-
var instance2 = getPublicRootInstance(
|
|
28801
|
+
var instance2 = getPublicRootInstance(root22);
|
|
28802
28802
|
originalCallback.call(instance2);
|
|
28803
28803
|
};
|
|
28804
28804
|
}
|
|
28805
|
-
var
|
|
28805
|
+
var root22 = createHydrationContainer(
|
|
28806
28806
|
initialChildren,
|
|
28807
28807
|
callback,
|
|
28808
|
-
|
|
28808
|
+
container,
|
|
28809
28809
|
LegacyRoot,
|
|
28810
28810
|
null,
|
|
28811
28811
|
// hydrationCallbacks
|
|
@@ -28817,16 +28817,16 @@ function requireReactDom_development() {
|
|
|
28817
28817
|
// identifierPrefix
|
|
28818
28818
|
noopOnRecoverableError
|
|
28819
28819
|
);
|
|
28820
|
-
|
|
28821
|
-
markContainerAsRoot(
|
|
28822
|
-
var rootContainerElement =
|
|
28820
|
+
container._reactRootContainer = root22;
|
|
28821
|
+
markContainerAsRoot(root22.current, container);
|
|
28822
|
+
var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
|
|
28823
28823
|
listenToAllSupportedEvents(rootContainerElement);
|
|
28824
28824
|
flushSync();
|
|
28825
|
-
return
|
|
28825
|
+
return root22;
|
|
28826
28826
|
} else {
|
|
28827
28827
|
var rootSibling;
|
|
28828
|
-
while (rootSibling =
|
|
28829
|
-
|
|
28828
|
+
while (rootSibling = container.lastChild) {
|
|
28829
|
+
container.removeChild(rootSibling);
|
|
28830
28830
|
}
|
|
28831
28831
|
if (typeof callback === "function") {
|
|
28832
28832
|
var _originalCallback = callback;
|
|
@@ -28836,7 +28836,7 @@ function requireReactDom_development() {
|
|
|
28836
28836
|
};
|
|
28837
28837
|
}
|
|
28838
28838
|
var _root = createContainer(
|
|
28839
|
-
|
|
28839
|
+
container,
|
|
28840
28840
|
LegacyRoot,
|
|
28841
28841
|
null,
|
|
28842
28842
|
// hydrationCallbacks
|
|
@@ -28848,9 +28848,9 @@ function requireReactDom_development() {
|
|
|
28848
28848
|
// identifierPrefix
|
|
28849
28849
|
noopOnRecoverableError
|
|
28850
28850
|
);
|
|
28851
|
-
|
|
28852
|
-
markContainerAsRoot(_root.current,
|
|
28853
|
-
var _rootContainerElement =
|
|
28851
|
+
container._reactRootContainer = _root;
|
|
28852
|
+
markContainerAsRoot(_root.current, container);
|
|
28853
|
+
var _rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
|
|
28854
28854
|
listenToAllSupportedEvents(_rootContainerElement);
|
|
28855
28855
|
flushSync(function() {
|
|
28856
28856
|
updateContainer(initialChildren, _root, parentComponent, callback);
|
|
@@ -28865,27 +28865,27 @@ function requireReactDom_development() {
|
|
|
28865
28865
|
}
|
|
28866
28866
|
}
|
|
28867
28867
|
}
|
|
28868
|
-
function legacyRenderSubtreeIntoContainer(parentComponent, children,
|
|
28868
|
+
function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
|
|
28869
28869
|
{
|
|
28870
|
-
topLevelUpdateWarnings(
|
|
28870
|
+
topLevelUpdateWarnings(container);
|
|
28871
28871
|
warnOnInvalidCallback$1(callback === void 0 ? null : callback, "render");
|
|
28872
28872
|
}
|
|
28873
|
-
var maybeRoot =
|
|
28874
|
-
var
|
|
28873
|
+
var maybeRoot = container._reactRootContainer;
|
|
28874
|
+
var root22;
|
|
28875
28875
|
if (!maybeRoot) {
|
|
28876
|
-
|
|
28876
|
+
root22 = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);
|
|
28877
28877
|
} else {
|
|
28878
|
-
|
|
28878
|
+
root22 = maybeRoot;
|
|
28879
28879
|
if (typeof callback === "function") {
|
|
28880
28880
|
var originalCallback = callback;
|
|
28881
28881
|
callback = function() {
|
|
28882
|
-
var instance2 = getPublicRootInstance(
|
|
28882
|
+
var instance2 = getPublicRootInstance(root22);
|
|
28883
28883
|
originalCallback.call(instance2);
|
|
28884
28884
|
};
|
|
28885
28885
|
}
|
|
28886
|
-
updateContainer(children,
|
|
28886
|
+
updateContainer(children, root22, parentComponent, callback);
|
|
28887
28887
|
}
|
|
28888
|
-
return getPublicRootInstance(
|
|
28888
|
+
return getPublicRootInstance(root22);
|
|
28889
28889
|
}
|
|
28890
28890
|
var didWarnAboutFindDOMNode = false;
|
|
28891
28891
|
function findDOMNode(componentOrElement) {
|
|
@@ -28913,35 +28913,35 @@ function requireReactDom_development() {
|
|
|
28913
28913
|
return findHostInstanceWithWarning(componentOrElement, "findDOMNode");
|
|
28914
28914
|
}
|
|
28915
28915
|
}
|
|
28916
|
-
function hydrate(element,
|
|
28916
|
+
function hydrate(element, container, callback) {
|
|
28917
28917
|
{
|
|
28918
28918
|
error("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot");
|
|
28919
28919
|
}
|
|
28920
|
-
if (!isValidContainerLegacy(
|
|
28920
|
+
if (!isValidContainerLegacy(container)) {
|
|
28921
28921
|
throw new Error("Target container is not a DOM element.");
|
|
28922
28922
|
}
|
|
28923
28923
|
{
|
|
28924
|
-
var isModernRoot = isContainerMarkedAsRoot(
|
|
28924
|
+
var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === void 0;
|
|
28925
28925
|
if (isModernRoot) {
|
|
28926
28926
|
error("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?");
|
|
28927
28927
|
}
|
|
28928
28928
|
}
|
|
28929
|
-
return legacyRenderSubtreeIntoContainer(null, element,
|
|
28929
|
+
return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
|
|
28930
28930
|
}
|
|
28931
|
-
function render(element,
|
|
28931
|
+
function render(element, container, callback) {
|
|
28932
28932
|
{
|
|
28933
28933
|
error("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot");
|
|
28934
28934
|
}
|
|
28935
|
-
if (!isValidContainerLegacy(
|
|
28935
|
+
if (!isValidContainerLegacy(container)) {
|
|
28936
28936
|
throw new Error("Target container is not a DOM element.");
|
|
28937
28937
|
}
|
|
28938
28938
|
{
|
|
28939
|
-
var isModernRoot = isContainerMarkedAsRoot(
|
|
28939
|
+
var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === void 0;
|
|
28940
28940
|
if (isModernRoot) {
|
|
28941
28941
|
error("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?");
|
|
28942
28942
|
}
|
|
28943
28943
|
}
|
|
28944
|
-
return legacyRenderSubtreeIntoContainer(null, element,
|
|
28944
|
+
return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
|
|
28945
28945
|
}
|
|
28946
28946
|
function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
|
|
28947
28947
|
{
|
|
@@ -28956,42 +28956,42 @@ function requireReactDom_development() {
|
|
|
28956
28956
|
return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
|
|
28957
28957
|
}
|
|
28958
28958
|
var didWarnAboutUnmountComponentAtNode = false;
|
|
28959
|
-
function unmountComponentAtNode(
|
|
28959
|
+
function unmountComponentAtNode(container) {
|
|
28960
28960
|
{
|
|
28961
28961
|
if (!didWarnAboutUnmountComponentAtNode) {
|
|
28962
28962
|
didWarnAboutUnmountComponentAtNode = true;
|
|
28963
28963
|
error("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot");
|
|
28964
28964
|
}
|
|
28965
28965
|
}
|
|
28966
|
-
if (!isValidContainerLegacy(
|
|
28966
|
+
if (!isValidContainerLegacy(container)) {
|
|
28967
28967
|
throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");
|
|
28968
28968
|
}
|
|
28969
28969
|
{
|
|
28970
|
-
var isModernRoot = isContainerMarkedAsRoot(
|
|
28970
|
+
var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === void 0;
|
|
28971
28971
|
if (isModernRoot) {
|
|
28972
28972
|
error("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?");
|
|
28973
28973
|
}
|
|
28974
28974
|
}
|
|
28975
|
-
if (
|
|
28975
|
+
if (container._reactRootContainer) {
|
|
28976
28976
|
{
|
|
28977
|
-
var rootEl = getReactRootElementInContainer(
|
|
28977
|
+
var rootEl = getReactRootElementInContainer(container);
|
|
28978
28978
|
var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);
|
|
28979
28979
|
if (renderedByDifferentReact) {
|
|
28980
28980
|
error("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.");
|
|
28981
28981
|
}
|
|
28982
28982
|
}
|
|
28983
28983
|
flushSync(function() {
|
|
28984
|
-
legacyRenderSubtreeIntoContainer(null, null,
|
|
28985
|
-
|
|
28986
|
-
unmarkContainerAsRoot(
|
|
28984
|
+
legacyRenderSubtreeIntoContainer(null, null, container, false, function() {
|
|
28985
|
+
container._reactRootContainer = null;
|
|
28986
|
+
unmarkContainerAsRoot(container);
|
|
28987
28987
|
});
|
|
28988
28988
|
});
|
|
28989
28989
|
return true;
|
|
28990
28990
|
} else {
|
|
28991
28991
|
{
|
|
28992
|
-
var _rootEl = getReactRootElementInContainer(
|
|
28992
|
+
var _rootEl = getReactRootElementInContainer(container);
|
|
28993
28993
|
var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl));
|
|
28994
|
-
var isContainerReactRoot =
|
|
28994
|
+
var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainerLegacy(container.parentNode) && !!container.parentNode._reactRootContainer;
|
|
28995
28995
|
if (hasNonRootReactChild) {
|
|
28996
28996
|
error("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s", isContainerReactRoot ? "You may have accidentally passed in a React root node instead of its container." : "Instead, have the parent component update its state and rerender in order to remove this component.");
|
|
28997
28997
|
}
|
|
@@ -29013,12 +29013,12 @@ function requireReactDom_development() {
|
|
|
29013
29013
|
}
|
|
29014
29014
|
setRestoreImplementation(restoreControlledState$3);
|
|
29015
29015
|
setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);
|
|
29016
|
-
function createPortal$1(children,
|
|
29016
|
+
function createPortal$1(children, container) {
|
|
29017
29017
|
var key = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
29018
|
-
if (!isValidContainer(
|
|
29018
|
+
if (!isValidContainer(container)) {
|
|
29019
29019
|
throw new Error("Target container is not a DOM element.");
|
|
29020
29020
|
}
|
|
29021
|
-
return createPortal(children,
|
|
29021
|
+
return createPortal(children, container, null, key);
|
|
29022
29022
|
}
|
|
29023
29023
|
function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
|
|
29024
29024
|
return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
|
|
@@ -29029,21 +29029,21 @@ function requireReactDom_development() {
|
|
|
29029
29029
|
// This is an array for better minification.
|
|
29030
29030
|
Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]
|
|
29031
29031
|
};
|
|
29032
|
-
function createRoot$1(
|
|
29032
|
+
function createRoot$1(container, options2) {
|
|
29033
29033
|
{
|
|
29034
29034
|
if (!Internals.usingClientEntryPoint && true) {
|
|
29035
29035
|
error('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');
|
|
29036
29036
|
}
|
|
29037
29037
|
}
|
|
29038
|
-
return createRoot(
|
|
29038
|
+
return createRoot(container, options2);
|
|
29039
29039
|
}
|
|
29040
|
-
function hydrateRoot$1(
|
|
29040
|
+
function hydrateRoot$1(container, initialChildren, options2) {
|
|
29041
29041
|
{
|
|
29042
29042
|
if (!Internals.usingClientEntryPoint && true) {
|
|
29043
29043
|
error('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');
|
|
29044
29044
|
}
|
|
29045
29045
|
}
|
|
29046
|
-
return hydrateRoot(
|
|
29046
|
+
return hydrateRoot(container, initialChildren, options2);
|
|
29047
29047
|
}
|
|
29048
29048
|
function flushSync$1(fn) {
|
|
29049
29049
|
{
|
|
@@ -29764,7 +29764,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
29764
29764
|
};
|
|
29765
29765
|
function createDOMPurify() {
|
|
29766
29766
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
29767
|
-
const DOMPurify = (
|
|
29767
|
+
const DOMPurify = (root2) => createDOMPurify(root2);
|
|
29768
29768
|
DOMPurify.version = "3.3.0";
|
|
29769
29769
|
DOMPurify.removed = [];
|
|
29770
29770
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
@@ -30167,10 +30167,10 @@ function createDOMPurify() {
|
|
|
30167
30167
|
}
|
|
30168
30168
|
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
30169
30169
|
};
|
|
30170
|
-
const _createNodeIterator = function _createNodeIterator2(
|
|
30170
|
+
const _createNodeIterator = function _createNodeIterator2(root2) {
|
|
30171
30171
|
return createNodeIterator.call(
|
|
30172
|
-
|
|
30173
|
-
|
|
30172
|
+
root2.ownerDocument || root2,
|
|
30173
|
+
root2,
|
|
30174
30174
|
// eslint-disable-next-line no-bitwise
|
|
30175
30175
|
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
|
|
30176
30176
|
null
|
|
@@ -31321,10 +31321,14 @@ class ExtrasItemRenderVM extends ViewModelImpl {
|
|
|
31321
31321
|
class DevtoolsClientVM extends ViewModelImpl {
|
|
31322
31322
|
devtools = this.payload.devtools;
|
|
31323
31323
|
handleToggleOpen = () => {
|
|
31324
|
-
this.devtools.isPopupOpened
|
|
31324
|
+
if (this.devtools.isPopupOpened) {
|
|
31325
|
+
this.devtools.hidePopup();
|
|
31326
|
+
} else {
|
|
31327
|
+
this.devtools.showPopup();
|
|
31328
|
+
}
|
|
31325
31329
|
};
|
|
31326
31330
|
handleClosePopupClick = () => {
|
|
31327
|
-
this.devtools.
|
|
31331
|
+
this.devtools.hidePopup();
|
|
31328
31332
|
};
|
|
31329
31333
|
willMount() {
|
|
31330
31334
|
makeObservable(this, {
|
|
@@ -35330,79 +35334,34 @@ const getDefaultConfig = () => {
|
|
|
35330
35334
|
};
|
|
35331
35335
|
const twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
35332
35336
|
const cx = (...args) => twMerge(clsx(...args));
|
|
35333
|
-
const
|
|
35334
|
-
const blur = "blur_9rZ6A";
|
|
35335
|
-
const rootContainer = "rootContainer_Z8gey";
|
|
35337
|
+
const root = "root_Xsw1F";
|
|
35336
35338
|
const vmButton = "vmButton_Xr1Q6";
|
|
35337
35339
|
const opened = "opened_gewqL";
|
|
35338
35340
|
const isConnected = "isConnected_tjs3F";
|
|
35339
35341
|
const closePopupButton = "closePopupButton_-08HG";
|
|
35340
|
-
const baseActions = "baseActions_pkHeO";
|
|
35341
|
-
const hierarchyButton = "hierarchyButton_h3FD7";
|
|
35342
|
-
const active = "active_4JTx5";
|
|
35343
35342
|
const vmPopup = "vmPopup_Q4l4j";
|
|
35344
|
-
const
|
|
35345
|
-
const
|
|
35346
|
-
const
|
|
35347
|
-
const
|
|
35348
|
-
const line = "line_Xgaua";
|
|
35343
|
+
const treeItemHeader = "treeItemHeader_9gR6Q";
|
|
35344
|
+
const treeItemLabel = "treeItemLabel_eiMgP";
|
|
35345
|
+
const treeItemMetaText = "treeItemMetaText_cmfX0";
|
|
35346
|
+
const treeItem = "treeItem_sRXPA";
|
|
35349
35347
|
const vmTreeItem = "vmTreeItem_t-7jc";
|
|
35350
35348
|
const extrasItem = "extrasItem_MI9Fa";
|
|
35351
|
-
const vmContentFilters = "vmContentFilters_No1QW";
|
|
35352
|
-
const propertyMeta = "propertyMeta_XxYHc";
|
|
35353
|
-
const small = "small_Ipy6s";
|
|
35354
|
-
const propertyValue = "propertyValue_s9qHJ";
|
|
35355
|
-
const propertyName = "property-name_2-sJi";
|
|
35356
|
-
const expandable = "expandable_2LUhL";
|
|
35357
|
-
const property = "property_eoWZv";
|
|
35358
|
-
const instance = "instance_B-kEn";
|
|
35359
|
-
const primitive = "primitive_5yfCy";
|
|
35360
|
-
const boolean = "boolean_TwUVp";
|
|
35361
|
-
const number = "number_AVdzm";
|
|
35362
|
-
const object2 = "object_kn8wQ";
|
|
35363
|
-
const bigint = "bigint_ZrO3O";
|
|
35364
|
-
const symbol = "symbol_9GN4U";
|
|
35365
|
-
const string = "string_m1Kkx";
|
|
35366
35349
|
const expandButton = "expandButton_EObqt";
|
|
35367
35350
|
const expanded = "expanded_uFpb7";
|
|
35368
35351
|
const disabled = "disabled_IDojS";
|
|
35369
|
-
const css = {
|
|
35370
|
-
|
|
35371
|
-
container,
|
|
35372
|
-
blur,
|
|
35373
|
-
rootContainer,
|
|
35352
|
+
const css$3 = {
|
|
35353
|
+
root,
|
|
35374
35354
|
vmButton,
|
|
35375
35355
|
opened,
|
|
35376
35356
|
isConnected,
|
|
35377
35357
|
closePopupButton,
|
|
35378
|
-
baseActions,
|
|
35379
|
-
hierarchyButton,
|
|
35380
|
-
active,
|
|
35381
35358
|
vmPopup,
|
|
35382
|
-
|
|
35383
|
-
|
|
35384
|
-
|
|
35385
|
-
|
|
35386
|
-
line,
|
|
35359
|
+
treeItemHeader,
|
|
35360
|
+
treeItemLabel,
|
|
35361
|
+
treeItemMetaText,
|
|
35362
|
+
treeItem,
|
|
35387
35363
|
vmTreeItem,
|
|
35388
35364
|
extrasItem,
|
|
35389
|
-
vmContentFilters,
|
|
35390
|
-
propertyMeta,
|
|
35391
|
-
small,
|
|
35392
|
-
propertyValue,
|
|
35393
|
-
"property-name": "property-name_2-sJi",
|
|
35394
|
-
propertyName,
|
|
35395
|
-
expandable,
|
|
35396
|
-
property,
|
|
35397
|
-
instance,
|
|
35398
|
-
primitive,
|
|
35399
|
-
boolean,
|
|
35400
|
-
number,
|
|
35401
|
-
object: object2,
|
|
35402
|
-
"undefined": "undefined_SMcns",
|
|
35403
|
-
bigint,
|
|
35404
|
-
symbol,
|
|
35405
|
-
string,
|
|
35406
35365
|
expandButton,
|
|
35407
35366
|
expanded,
|
|
35408
35367
|
disabled
|
|
@@ -35413,10 +35372,10 @@ const VmDevtoolsButton = observer(() => {
|
|
|
35413
35372
|
"button",
|
|
35414
35373
|
{
|
|
35415
35374
|
className: cx(
|
|
35416
|
-
css.vmButton,
|
|
35375
|
+
css$3.vmButton,
|
|
35417
35376
|
{
|
|
35418
|
-
[css.opened]: model.devtools.isPopupOpened,
|
|
35419
|
-
[css.isConnected]: model.devtools.isActive
|
|
35377
|
+
[css$3.opened]: model.devtools.isPopupOpened,
|
|
35378
|
+
[css$3.isConnected]: model.devtools.isActive
|
|
35420
35379
|
},
|
|
35421
35380
|
model.devtools.config.buttonClassName
|
|
35422
35381
|
),
|
|
@@ -35450,6 +35409,31 @@ const VmDevtoolsButton = observer(() => {
|
|
|
35450
35409
|
void 0
|
|
35451
35410
|
);
|
|
35452
35411
|
});
|
|
35412
|
+
const ChevronRight = (props) => reactExports.createElement(
|
|
35413
|
+
"svg",
|
|
35414
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16" }, props),
|
|
35415
|
+
reactExports.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0", clipRule: "evenodd" })
|
|
35416
|
+
);
|
|
35417
|
+
const FolderTree = (props) => reactExports.createElement(
|
|
35418
|
+
"svg",
|
|
35419
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16" }, props),
|
|
35420
|
+
reactExports.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.5 13.5v-3A.5.5 0 0 1 8 10h.672a.5.5 0 0 1 .353.146l.414.415.44.439H13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5M6 13H4.5a3 3 0 0 1-3-3V1.25a.75.75 0 0 1 1.5 0V2a1.5 1.5 0 0 0 1.5 1.5H6v-1a2 2 0 0 1 2-2h.672a2 2 0 0 1 1.414.586l.414.414H13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5H4.5A3 3 0 0 1 3 4.599V10a1.5 1.5 0 0 0 1.5 1.5H6v-1a2 2 0 0 1 2-2h.672a2 2 0 0 1 1.414.586l.414.414H13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm1.5-8.75V5.5A.5.5 0 0 0 8 6h5a.5.5 0 0 0 .5-.5v-2A.5.5 0 0 0 13 3H9.879l-.44-.44-.414-.414A.5.5 0 0 0 8.672 2H8a.5.5 0 0 0-.5.5z", clipRule: "evenodd" })
|
|
35421
|
+
);
|
|
35422
|
+
const ListUl = (props) => reactExports.createElement(
|
|
35423
|
+
"svg",
|
|
35424
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16" }, props),
|
|
35425
|
+
reactExports.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5", clipRule: "evenodd" })
|
|
35426
|
+
);
|
|
35427
|
+
const Magnifier = (props) => reactExports.createElement(
|
|
35428
|
+
"svg",
|
|
35429
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16" }, props),
|
|
35430
|
+
reactExports.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M11.5 7a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0m-.82 4.74a6 6 0 1 1 1.06-1.06l2.79 2.79a.75.75 0 1 1-1.06 1.06z", clipRule: "evenodd" })
|
|
35431
|
+
);
|
|
35432
|
+
const Xmark = (props) => reactExports.createElement(
|
|
35433
|
+
"svg",
|
|
35434
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 16 16" }, props),
|
|
35435
|
+
reactExports.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
35436
|
+
);
|
|
35453
35437
|
const a = null, { min: u, max: h, abs: p, floor: v } = Math, g = (e, t, o) => u(o, h(t, e)), m = (e) => [...e].sort(((e2, t) => e2 - t)), _14 = "function" == typeof queueMicrotask ? queueMicrotask : (e) => {
|
|
35454
35438
|
Promise.resolve().then(e);
|
|
35455
35439
|
}, S = () => {
|
|
@@ -35784,48 +35768,77 @@ const a = null, { min: u, max: h, abs: p, floor: v } = Math, g = (e, t, o) => u(
|
|
|
35784
35768
|
let w2 = jsxRuntimeExports.jsx(te, { ref: m2, scrollRef: S2 ? _15 : void 0, data: o, bufferSize: r2, itemSize: i, shift: s, horizontal: l, keepMounted: c, cache: d, ssrCount: a2, item: u2, onScroll: h2, onScrollEnd: p2, children: t });
|
|
35785
35769
|
return S2 && (w2 = jsxRuntimeExports.jsx("div", { style: { display: "flex", flexDirection: "column", justifyContent: "flex-end", minHeight: "100%", overflow: "clip" }, children: w2 })), jsxRuntimeExports.jsx("div", { ref: _15, ...g2, style: { display: l ? "inline-block" : "block", [l ? "overflowX" : "overflowY"]: "auto", contain: "strict", width: "100%", height: "100%", ...v2 }, children: w2 });
|
|
35786
35770
|
}));
|
|
35787
|
-
const
|
|
35788
|
-
|
|
35789
|
-
|
|
35790
|
-
|
|
35791
|
-
|
|
35792
|
-
|
|
35793
|
-
|
|
35794
|
-
|
|
35795
|
-
|
|
35796
|
-
|
|
35797
|
-
|
|
35798
|
-
|
|
35799
|
-
|
|
35800
|
-
|
|
35801
|
-
|
|
35802
|
-
|
|
35803
|
-
|
|
35804
|
-
|
|
35805
|
-
|
|
35806
|
-
|
|
35807
|
-
|
|
35808
|
-
|
|
35809
|
-
|
|
35810
|
-
|
|
35811
|
-
|
|
35812
|
-
|
|
35813
|
-
|
|
35814
|
-
|
|
35815
|
-
|
|
35816
|
-
|
|
35817
|
-
|
|
35818
|
-
|
|
35819
|
-
|
|
35820
|
-
|
|
35821
|
-
|
|
35822
|
-
|
|
35823
|
-
|
|
35824
|
-
|
|
35825
|
-
|
|
35826
|
-
|
|
35827
|
-
|
|
35828
|
-
},
|
|
35771
|
+
const iconToggleButton = "iconToggleButton_R48wm";
|
|
35772
|
+
const activePosition = "activePosition_IXsRn";
|
|
35773
|
+
const option = "option_a5IcR";
|
|
35774
|
+
const css$2 = {
|
|
35775
|
+
iconToggleButton,
|
|
35776
|
+
activePosition,
|
|
35777
|
+
option
|
|
35778
|
+
};
|
|
35779
|
+
const IconToggleButton = ({
|
|
35780
|
+
value,
|
|
35781
|
+
options,
|
|
35782
|
+
className,
|
|
35783
|
+
onUpdate
|
|
35784
|
+
}) => {
|
|
35785
|
+
const optionNodes = [];
|
|
35786
|
+
let activeIndex;
|
|
35787
|
+
options.forEach((option2, i) => {
|
|
35788
|
+
const { icon: Icon, value: optionValue } = option2;
|
|
35789
|
+
const isActive = value === optionValue;
|
|
35790
|
+
if (isActive) {
|
|
35791
|
+
activeIndex = i;
|
|
35792
|
+
}
|
|
35793
|
+
optionNodes.push(
|
|
35794
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { className: css$2.option, children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(Icon, {}, void 0, false, {
|
|
35795
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/shared/icon-toggle-button/index.tsx",
|
|
35796
|
+
lineNumber: 30,
|
|
35797
|
+
columnNumber: 9
|
|
35798
|
+
}, void 0) }, i, false, {
|
|
35799
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/shared/icon-toggle-button/index.tsx",
|
|
35800
|
+
lineNumber: 29,
|
|
35801
|
+
columnNumber: 7
|
|
35802
|
+
}, void 0)
|
|
35803
|
+
);
|
|
35804
|
+
});
|
|
35805
|
+
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
35806
|
+
"button",
|
|
35807
|
+
{
|
|
35808
|
+
className: cx(css$2.iconToggleButton, className),
|
|
35809
|
+
onClick: () => {
|
|
35810
|
+
const nextOption = activeIndex !== void 0 && options[activeIndex + 1] || options[0];
|
|
35811
|
+
onUpdate(nextOption.value);
|
|
35812
|
+
},
|
|
35813
|
+
children: [
|
|
35814
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
35815
|
+
"div",
|
|
35816
|
+
{
|
|
35817
|
+
className: css$2.activePosition,
|
|
35818
|
+
style: { "--index": activeIndex }
|
|
35819
|
+
},
|
|
35820
|
+
void 0,
|
|
35821
|
+
false,
|
|
35822
|
+
{
|
|
35823
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/shared/icon-toggle-button/index.tsx",
|
|
35824
|
+
lineNumber: 44,
|
|
35825
|
+
columnNumber: 7
|
|
35826
|
+
},
|
|
35827
|
+
void 0
|
|
35828
|
+
),
|
|
35829
|
+
optionNodes
|
|
35830
|
+
]
|
|
35831
|
+
},
|
|
35832
|
+
void 0,
|
|
35833
|
+
true,
|
|
35834
|
+
{
|
|
35835
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/shared/icon-toggle-button/index.tsx",
|
|
35836
|
+
lineNumber: 36,
|
|
35837
|
+
columnNumber: 5
|
|
35838
|
+
},
|
|
35839
|
+
void 0
|
|
35840
|
+
);
|
|
35841
|
+
};
|
|
35829
35842
|
const ignoredKeys = /* @__PURE__ */ new Set(["constructor"]);
|
|
35830
35843
|
const ignoredPrototypes = /* @__PURE__ */ new Set([
|
|
35831
35844
|
globalThis.Object.prototype,
|
|
@@ -35879,27 +35892,6 @@ function getAllKeys(instance2) {
|
|
|
35879
35892
|
}
|
|
35880
35893
|
return Array.from(keysSet);
|
|
35881
35894
|
}
|
|
35882
|
-
const ChevronRight = () => /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
35883
|
-
"path",
|
|
35884
|
-
{
|
|
35885
|
-
fill: "currentColor",
|
|
35886
|
-
fillRule: "evenodd",
|
|
35887
|
-
d: "M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",
|
|
35888
|
-
clipRule: "evenodd"
|
|
35889
|
-
},
|
|
35890
|
-
void 0,
|
|
35891
|
-
false,
|
|
35892
|
-
{
|
|
35893
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/icons/chevron-right.tsx",
|
|
35894
|
-
lineNumber: 3,
|
|
35895
|
-
columnNumber: 5
|
|
35896
|
-
},
|
|
35897
|
-
void 0
|
|
35898
|
-
) }, void 0, false, {
|
|
35899
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/icons/chevron-right.tsx",
|
|
35900
|
-
lineNumber: 2,
|
|
35901
|
-
columnNumber: 3
|
|
35902
|
-
}, void 0);
|
|
35903
35895
|
const ExpandButton = ({
|
|
35904
35896
|
expandable: expandable2,
|
|
35905
35897
|
expanded: expanded2,
|
|
@@ -35911,10 +35903,10 @@ const ExpandButton = ({
|
|
|
35911
35903
|
"span",
|
|
35912
35904
|
{
|
|
35913
35905
|
onClick,
|
|
35914
|
-
className: cx(css.expandButton, {
|
|
35915
|
-
[css.expandable]: expandable2,
|
|
35916
|
-
[css.expanded]: expanded2,
|
|
35917
|
-
[css.disabled]: disabled2
|
|
35906
|
+
className: cx(css$3.expandButton, {
|
|
35907
|
+
[css$3.expandable]: expandable2,
|
|
35908
|
+
[css$3.expanded]: expanded2,
|
|
35909
|
+
[css$3.disabled]: disabled2
|
|
35918
35910
|
}),
|
|
35919
35911
|
children: (expandable2 || showIconAnyway) && /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(ChevronRight, {}, void 0, false, {
|
|
35920
35912
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/expand-button.tsx",
|
|
@@ -35932,6 +35924,35 @@ const ExpandButton = ({
|
|
|
35932
35924
|
void 0
|
|
35933
35925
|
);
|
|
35934
35926
|
};
|
|
35927
|
+
const property = "property_tyrFk";
|
|
35928
|
+
const expandable = "expandable_ZtNTw";
|
|
35929
|
+
const instance = "instance_aPKFv";
|
|
35930
|
+
const primitive = "primitive_mOPtu";
|
|
35931
|
+
const boolean = "boolean_H-c-u";
|
|
35932
|
+
const number = "number_Mk-lR";
|
|
35933
|
+
const object2 = "object_rbtD2";
|
|
35934
|
+
const bigint = "bigint_vEvWZ";
|
|
35935
|
+
const symbol = "symbol_izwyn";
|
|
35936
|
+
const string = "string_qjuUu";
|
|
35937
|
+
const propertyName = "propertyName_gpj0H";
|
|
35938
|
+
const propertyMeta = "propertyMeta_xSfkm";
|
|
35939
|
+
const propertyValue = "propertyValue_QT-FH";
|
|
35940
|
+
const css$1 = {
|
|
35941
|
+
property,
|
|
35942
|
+
expandable,
|
|
35943
|
+
instance,
|
|
35944
|
+
primitive,
|
|
35945
|
+
boolean,
|
|
35946
|
+
number,
|
|
35947
|
+
object: object2,
|
|
35948
|
+
"undefined": "undefined_xHzJR",
|
|
35949
|
+
bigint,
|
|
35950
|
+
symbol,
|
|
35951
|
+
string,
|
|
35952
|
+
propertyName,
|
|
35953
|
+
propertyMeta,
|
|
35954
|
+
propertyValue
|
|
35955
|
+
};
|
|
35935
35956
|
const ArrayProperty = observer((props) => {
|
|
35936
35957
|
const { name: property2, value, model, extraRight } = props;
|
|
35937
35958
|
const isExpanded = model.isPathExpanded(props.path);
|
|
@@ -35941,9 +35962,9 @@ const ArrayProperty = observer((props) => {
|
|
|
35941
35962
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
35942
35963
|
"div",
|
|
35943
35964
|
{
|
|
35944
|
-
className: cx(css.
|
|
35945
|
-
[css.expandable]: isExpandable,
|
|
35946
|
-
[css.expanded]: isExpanded
|
|
35965
|
+
className: cx(css$1.property, css$1.array, {
|
|
35966
|
+
[css$1.expandable]: isExpandable,
|
|
35967
|
+
[css$1.expanded]: isExpanded
|
|
35947
35968
|
}),
|
|
35948
35969
|
style: { "--level": props.level, "--order": props.order },
|
|
35949
35970
|
onClick: () => model.handleExpandPropertyClick(props.path),
|
|
@@ -35951,23 +35972,19 @@ const ArrayProperty = observer((props) => {
|
|
|
35951
35972
|
"data-depth": String().padEnd(props.level, "-"),
|
|
35952
35973
|
children: [
|
|
35953
35974
|
property2 === void 0 ? null : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
|
|
35954
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyName, children: property2 }, void 0, false, {
|
|
35955
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
35975
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyName, children: property2 }, void 0, false, {
|
|
35976
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
35956
35977
|
lineNumber: 30,
|
|
35957
35978
|
columnNumber: 13
|
|
35958
35979
|
}, void 0),
|
|
35959
|
-
|
|
35960
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/array.tsx",
|
|
35961
|
-
lineNumber: 31,
|
|
35962
|
-
columnNumber: 13
|
|
35963
|
-
}, void 0)
|
|
35980
|
+
": "
|
|
35964
35981
|
] }, void 0, true, {
|
|
35965
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
35982
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
35966
35983
|
lineNumber: 29,
|
|
35967
35984
|
columnNumber: 11
|
|
35968
35985
|
}, void 0),
|
|
35969
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyValue, children: isExpanded ? "[" : isExpandable ? "[...]" : `[]` }, void 0, false, {
|
|
35970
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
35986
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyValue, children: isExpanded ? "[" : isExpandable ? "[...]" : `[]` }, void 0, false, {
|
|
35987
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
35971
35988
|
lineNumber: 34,
|
|
35972
35989
|
columnNumber: 9
|
|
35973
35990
|
}, void 0),
|
|
@@ -35977,7 +35994,7 @@ const ArrayProperty = observer((props) => {
|
|
|
35977
35994
|
void 0,
|
|
35978
35995
|
true,
|
|
35979
35996
|
{
|
|
35980
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
35997
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
35981
35998
|
lineNumber: 16,
|
|
35982
35999
|
columnNumber: 7
|
|
35983
36000
|
},
|
|
@@ -35994,46 +36011,38 @@ const ArrayProperty = observer((props) => {
|
|
|
35994
36011
|
key,
|
|
35995
36012
|
path: `${props.path}.${key}`,
|
|
35996
36013
|
level: props.level + 1,
|
|
35997
|
-
extraRight:
|
|
35998
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/array.tsx",
|
|
35999
|
-
lineNumber: 50,
|
|
36000
|
-
columnNumber: 27
|
|
36001
|
-
}, void 0)
|
|
36014
|
+
extraRight: ","
|
|
36002
36015
|
}
|
|
36003
36016
|
)),
|
|
36004
36017
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36005
36018
|
"div",
|
|
36006
36019
|
{
|
|
36007
|
-
className:
|
|
36020
|
+
className: css$1.property,
|
|
36008
36021
|
style: {
|
|
36009
36022
|
"--level": props.level,
|
|
36010
36023
|
"--order": keys.length
|
|
36011
36024
|
},
|
|
36012
36025
|
children: [
|
|
36013
|
-
|
|
36014
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/array.tsx",
|
|
36015
|
-
lineNumber: 62,
|
|
36016
|
-
columnNumber: 13
|
|
36017
|
-
}, void 0),
|
|
36026
|
+
`]`,
|
|
36018
36027
|
extraRight
|
|
36019
36028
|
]
|
|
36020
36029
|
},
|
|
36021
36030
|
void 0,
|
|
36022
36031
|
true,
|
|
36023
36032
|
{
|
|
36024
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36033
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
36025
36034
|
lineNumber: 53,
|
|
36026
36035
|
columnNumber: 11
|
|
36027
36036
|
},
|
|
36028
36037
|
void 0
|
|
36029
36038
|
)
|
|
36030
36039
|
] }, void 0, true, {
|
|
36031
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36040
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
36032
36041
|
lineNumber: 40,
|
|
36033
36042
|
columnNumber: 9
|
|
36034
36043
|
}, void 0)
|
|
36035
36044
|
] }, void 0, true, {
|
|
36036
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36045
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/array.tsx",
|
|
36037
36046
|
lineNumber: 15,
|
|
36038
36047
|
columnNumber: 5
|
|
36039
36048
|
}, void 0);
|
|
@@ -36047,29 +36056,25 @@ const FunctionProperty = observer((props) => {
|
|
|
36047
36056
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36048
36057
|
"div",
|
|
36049
36058
|
{
|
|
36050
|
-
className: cx(css.
|
|
36059
|
+
className: cx(css$1.property, css$1.function),
|
|
36051
36060
|
title: String(value),
|
|
36052
36061
|
style: { "--level": props.level, "--order": props.order },
|
|
36053
36062
|
"data-fitted": props.isFitted,
|
|
36054
36063
|
"data-depth": String().padEnd(props.level, "-"),
|
|
36055
36064
|
children: [
|
|
36056
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyName, children: property2 }, void 0, false, {
|
|
36057
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36065
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyName, children: property2 }, void 0, false, {
|
|
36066
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/function.tsx",
|
|
36058
36067
|
lineNumber: 25,
|
|
36059
36068
|
columnNumber: 7
|
|
36060
36069
|
}, void 0),
|
|
36061
|
-
|
|
36062
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/function.tsx",
|
|
36063
|
-
lineNumber: 26,
|
|
36064
|
-
columnNumber: 7
|
|
36065
|
-
}, void 0),
|
|
36070
|
+
`(${argLabels.join(", ")})`,
|
|
36066
36071
|
extraRight
|
|
36067
36072
|
]
|
|
36068
36073
|
},
|
|
36069
36074
|
void 0,
|
|
36070
36075
|
true,
|
|
36071
36076
|
{
|
|
36072
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36077
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/function.tsx",
|
|
36073
36078
|
lineNumber: 16,
|
|
36074
36079
|
columnNumber: 5
|
|
36075
36080
|
},
|
|
@@ -36086,8 +36091,8 @@ const InstanceProperty = observer((props) => {
|
|
|
36086
36091
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36087
36092
|
"div",
|
|
36088
36093
|
{
|
|
36089
|
-
className: cx(css.
|
|
36090
|
-
[css.expanded]: isExpanded
|
|
36094
|
+
className: cx(css$1.property, css$1.instance, css$1.expandable, {
|
|
36095
|
+
[css$1.expanded]: isExpanded
|
|
36091
36096
|
}),
|
|
36092
36097
|
style: { "--level": props.level, "--order": props.order },
|
|
36093
36098
|
onClick: () => model.handleExpandPropertyClick(props.path),
|
|
@@ -36095,31 +36100,27 @@ const InstanceProperty = observer((props) => {
|
|
|
36095
36100
|
"data-depth": String().padEnd(props.level, "-"),
|
|
36096
36101
|
children: [
|
|
36097
36102
|
name === void 0 ? null : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
|
|
36098
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyName, children: name }, void 0, false, {
|
|
36099
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36103
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyName, children: name }, void 0, false, {
|
|
36104
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36100
36105
|
lineNumber: 32,
|
|
36101
36106
|
columnNumber: 13
|
|
36102
36107
|
}, void 0),
|
|
36103
|
-
|
|
36104
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/instance.tsx",
|
|
36105
|
-
lineNumber: 33,
|
|
36106
|
-
columnNumber: 13
|
|
36107
|
-
}, void 0)
|
|
36108
|
+
": "
|
|
36108
36109
|
] }, void 0, true, {
|
|
36109
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36110
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36110
36111
|
lineNumber: 31,
|
|
36111
36112
|
columnNumber: 11
|
|
36112
36113
|
}, void 0),
|
|
36113
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyValue, children: `${className}` }, void 0, false, {
|
|
36114
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36114
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyValue, children: `${className}` }, void 0, false, {
|
|
36115
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36115
36116
|
lineNumber: 36,
|
|
36116
36117
|
columnNumber: 9
|
|
36117
36118
|
}, void 0),
|
|
36118
|
-
isExpanded && /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36119
|
+
isExpanded && /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
|
|
36119
36120
|
" ",
|
|
36120
36121
|
`{`
|
|
36121
36122
|
] }, void 0, true, {
|
|
36122
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36123
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36123
36124
|
lineNumber: 37,
|
|
36124
36125
|
columnNumber: 24
|
|
36125
36126
|
}, void 0),
|
|
@@ -36129,7 +36130,7 @@ const InstanceProperty = observer((props) => {
|
|
|
36129
36130
|
void 0,
|
|
36130
36131
|
true,
|
|
36131
36132
|
{
|
|
36132
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36133
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36133
36134
|
lineNumber: 19,
|
|
36134
36135
|
columnNumber: 7
|
|
36135
36136
|
},
|
|
@@ -36146,46 +36147,38 @@ const InstanceProperty = observer((props) => {
|
|
|
36146
36147
|
key,
|
|
36147
36148
|
path: `${props.path}.${key}`,
|
|
36148
36149
|
level: props.level + 1,
|
|
36149
|
-
extraRight:
|
|
36150
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/instance.tsx",
|
|
36151
|
-
lineNumber: 51,
|
|
36152
|
-
columnNumber: 27
|
|
36153
|
-
}, void 0)
|
|
36150
|
+
extraRight: `,`
|
|
36154
36151
|
}
|
|
36155
36152
|
)),
|
|
36156
36153
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36157
36154
|
"div",
|
|
36158
36155
|
{
|
|
36159
|
-
className: cx(css.
|
|
36156
|
+
className: cx(css$1.property, css$1.instance),
|
|
36160
36157
|
style: {
|
|
36161
36158
|
"--level": props.level,
|
|
36162
36159
|
"--order": keys.length
|
|
36163
36160
|
},
|
|
36164
36161
|
children: [
|
|
36165
|
-
|
|
36166
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/instance.tsx",
|
|
36167
|
-
lineNumber: 63,
|
|
36168
|
-
columnNumber: 13
|
|
36169
|
-
}, void 0),
|
|
36162
|
+
`}`,
|
|
36170
36163
|
extraRight
|
|
36171
36164
|
]
|
|
36172
36165
|
},
|
|
36173
36166
|
void 0,
|
|
36174
36167
|
true,
|
|
36175
36168
|
{
|
|
36176
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36169
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36177
36170
|
lineNumber: 54,
|
|
36178
36171
|
columnNumber: 11
|
|
36179
36172
|
},
|
|
36180
36173
|
void 0
|
|
36181
36174
|
)
|
|
36182
36175
|
] }, void 0, true, {
|
|
36183
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36176
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36184
36177
|
lineNumber: 41,
|
|
36185
36178
|
columnNumber: 9
|
|
36186
36179
|
}, void 0)
|
|
36187
36180
|
] }, void 0, true, {
|
|
36188
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36181
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/instance.tsx",
|
|
36189
36182
|
lineNumber: 18,
|
|
36190
36183
|
columnNumber: 5
|
|
36191
36184
|
}, void 0);
|
|
@@ -36199,9 +36192,9 @@ const ObjectProperty = observer((props) => {
|
|
|
36199
36192
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36200
36193
|
"div",
|
|
36201
36194
|
{
|
|
36202
|
-
className: cx(css.
|
|
36203
|
-
[css.expandable]: isExpandable,
|
|
36204
|
-
[css.expanded]: isExpanded
|
|
36195
|
+
className: cx(css$1.property, css$1.object, {
|
|
36196
|
+
[css$1.expandable]: isExpandable,
|
|
36197
|
+
[css$1.expanded]: isExpanded
|
|
36205
36198
|
}),
|
|
36206
36199
|
style: { "--level": props.level, "--order": props.order },
|
|
36207
36200
|
onClick: () => model.handleExpandPropertyClick(props.path),
|
|
@@ -36209,23 +36202,19 @@ const ObjectProperty = observer((props) => {
|
|
|
36209
36202
|
"data-depth": String().padEnd(props.level, "-"),
|
|
36210
36203
|
children: [
|
|
36211
36204
|
name === void 0 ? null : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
|
|
36212
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyName, children: name }, void 0, false, {
|
|
36213
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36205
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyName, children: name }, void 0, false, {
|
|
36206
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36214
36207
|
lineNumber: 31,
|
|
36215
36208
|
columnNumber: 13
|
|
36216
36209
|
}, void 0),
|
|
36217
|
-
|
|
36218
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/object.tsx",
|
|
36219
|
-
lineNumber: 32,
|
|
36220
|
-
columnNumber: 13
|
|
36221
|
-
}, void 0)
|
|
36210
|
+
": "
|
|
36222
36211
|
] }, void 0, true, {
|
|
36223
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36212
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36224
36213
|
lineNumber: 30,
|
|
36225
36214
|
columnNumber: 11
|
|
36226
36215
|
}, void 0),
|
|
36227
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyValue, children: isExpanded ? "{" : isExpandable ? "{...}" : `{}` }, void 0, false, {
|
|
36228
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36216
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyValue, children: isExpanded ? "{" : isExpandable ? "{...}" : `{}` }, void 0, false, {
|
|
36217
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36229
36218
|
lineNumber: 35,
|
|
36230
36219
|
columnNumber: 9
|
|
36231
36220
|
}, void 0),
|
|
@@ -36235,7 +36224,7 @@ const ObjectProperty = observer((props) => {
|
|
|
36235
36224
|
void 0,
|
|
36236
36225
|
true,
|
|
36237
36226
|
{
|
|
36238
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36227
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36239
36228
|
lineNumber: 17,
|
|
36240
36229
|
columnNumber: 7
|
|
36241
36230
|
},
|
|
@@ -36252,46 +36241,38 @@ const ObjectProperty = observer((props) => {
|
|
|
36252
36241
|
key,
|
|
36253
36242
|
path: `${props.path}.${key}`,
|
|
36254
36243
|
level: props.level + 1,
|
|
36255
|
-
extraRight:
|
|
36256
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/object.tsx",
|
|
36257
|
-
lineNumber: 51,
|
|
36258
|
-
columnNumber: 27
|
|
36259
|
-
}, void 0)
|
|
36244
|
+
extraRight: ","
|
|
36260
36245
|
}
|
|
36261
36246
|
)),
|
|
36262
36247
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36263
36248
|
"div",
|
|
36264
36249
|
{
|
|
36265
|
-
className:
|
|
36250
|
+
className: css$1.property,
|
|
36266
36251
|
style: {
|
|
36267
36252
|
"--level": props.level,
|
|
36268
36253
|
"--order": keys.length
|
|
36269
36254
|
},
|
|
36270
36255
|
children: [
|
|
36271
|
-
|
|
36272
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/object.tsx",
|
|
36273
|
-
lineNumber: 63,
|
|
36274
|
-
columnNumber: 13
|
|
36275
|
-
}, void 0),
|
|
36256
|
+
`}`,
|
|
36276
36257
|
extraRight
|
|
36277
36258
|
]
|
|
36278
36259
|
},
|
|
36279
36260
|
void 0,
|
|
36280
36261
|
true,
|
|
36281
36262
|
{
|
|
36282
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36263
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36283
36264
|
lineNumber: 54,
|
|
36284
36265
|
columnNumber: 11
|
|
36285
36266
|
},
|
|
36286
36267
|
void 0
|
|
36287
36268
|
)
|
|
36288
36269
|
] }, void 0, true, {
|
|
36289
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36270
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36290
36271
|
lineNumber: 41,
|
|
36291
36272
|
columnNumber: 9
|
|
36292
36273
|
}, void 0)
|
|
36293
36274
|
] }, void 0, true, {
|
|
36294
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36275
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/object.tsx",
|
|
36295
36276
|
lineNumber: 16,
|
|
36296
36277
|
columnNumber: 5
|
|
36297
36278
|
}, void 0);
|
|
@@ -36302,30 +36283,26 @@ const PrimitiveProperty = observer((props) => {
|
|
|
36302
36283
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36303
36284
|
"div",
|
|
36304
36285
|
{
|
|
36305
|
-
className: cx(css.
|
|
36286
|
+
className: cx(css$1.property, css$1.primitive, css$1[primitiveType]),
|
|
36306
36287
|
style: { "--level": props.level, "--order": props.order },
|
|
36307
36288
|
"data-fitted": props.isFitted,
|
|
36308
36289
|
title: String(value),
|
|
36309
36290
|
"data-depth": String().padEnd(props.level, "-"),
|
|
36310
36291
|
children: [
|
|
36311
36292
|
name === void 0 ? null : /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
|
|
36312
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyName, children: name }, void 0, false, {
|
|
36313
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36293
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyName, children: name }, void 0, false, {
|
|
36294
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/primitive.tsx",
|
|
36314
36295
|
lineNumber: 23,
|
|
36315
36296
|
columnNumber: 11
|
|
36316
36297
|
}, void 0),
|
|
36317
|
-
|
|
36318
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/property/primitive.tsx",
|
|
36319
|
-
lineNumber: 24,
|
|
36320
|
-
columnNumber: 11
|
|
36321
|
-
}, void 0)
|
|
36298
|
+
": "
|
|
36322
36299
|
] }, void 0, true, {
|
|
36323
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36300
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/primitive.tsx",
|
|
36324
36301
|
lineNumber: 22,
|
|
36325
36302
|
columnNumber: 9
|
|
36326
36303
|
}, void 0),
|
|
36327
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.propertyValue, children: primitiveType === "symbol" ? `Symbol(${Symbol.keyFor(value) || ""})` : primitiveType === "string" ? `"${value}"` : `${value}` }, void 0, false, {
|
|
36328
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36304
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$1.propertyValue, children: primitiveType === "symbol" ? `Symbol(${Symbol.keyFor(value) || ""})` : primitiveType === "string" ? `"${value}"` : `${value}` }, void 0, false, {
|
|
36305
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/primitive.tsx",
|
|
36329
36306
|
lineNumber: 27,
|
|
36330
36307
|
columnNumber: 7
|
|
36331
36308
|
}, void 0),
|
|
@@ -36335,7 +36312,7 @@ const PrimitiveProperty = observer((props) => {
|
|
|
36335
36312
|
void 0,
|
|
36336
36313
|
true,
|
|
36337
36314
|
{
|
|
36338
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36315
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/primitive.tsx",
|
|
36339
36316
|
lineNumber: 12,
|
|
36340
36317
|
columnNumber: 5
|
|
36341
36318
|
},
|
|
@@ -36352,38 +36329,38 @@ const Property = observer((rootProps) => {
|
|
|
36352
36329
|
};
|
|
36353
36330
|
if (Array.isArray(value)) {
|
|
36354
36331
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(ArrayProperty, { ...props }, void 0, false, {
|
|
36355
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36332
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/index.tsx",
|
|
36356
36333
|
lineNumber: 36,
|
|
36357
36334
|
columnNumber: 12
|
|
36358
36335
|
}, void 0);
|
|
36359
36336
|
}
|
|
36360
36337
|
if (_exports.isObject(value) && value.constructor?.name && value.constructor.name !== "Object") {
|
|
36361
36338
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(InstanceProperty, { ...props }, void 0, false, {
|
|
36362
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36339
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/index.tsx",
|
|
36363
36340
|
lineNumber: 44,
|
|
36364
36341
|
columnNumber: 12
|
|
36365
36342
|
}, void 0);
|
|
36366
36343
|
} else if (_exports.isFunction(value)) {
|
|
36367
36344
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(FunctionProperty, { ...props }, void 0, false, {
|
|
36368
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36345
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/index.tsx",
|
|
36369
36346
|
lineNumber: 46,
|
|
36370
36347
|
columnNumber: 12
|
|
36371
36348
|
}, void 0);
|
|
36372
36349
|
} else if (_exports.isObject(value)) {
|
|
36373
36350
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(ObjectProperty, { ...props }, void 0, false, {
|
|
36374
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36351
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/index.tsx",
|
|
36375
36352
|
lineNumber: 48,
|
|
36376
36353
|
columnNumber: 12
|
|
36377
36354
|
}, void 0);
|
|
36378
36355
|
} else if (valueType.startsWith("[object ") && value && typeof value === "object" && "constructor" in value) {
|
|
36379
36356
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(InstanceProperty, { ...props }, void 0, false, {
|
|
36380
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36357
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/index.tsx",
|
|
36381
36358
|
lineNumber: 55,
|
|
36382
36359
|
columnNumber: 12
|
|
36383
36360
|
}, void 0);
|
|
36384
36361
|
} else {
|
|
36385
36362
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(PrimitiveProperty, { ...props }, void 0, false, {
|
|
36386
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/
|
|
36363
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/property/index.tsx",
|
|
36387
36364
|
lineNumber: 57,
|
|
36388
36365
|
columnNumber: 12
|
|
36389
36366
|
}, void 0);
|
|
@@ -36399,30 +36376,19 @@ const ExtrasItemRender = withViewModel(
|
|
|
36399
36376
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36400
36377
|
"div",
|
|
36401
36378
|
{
|
|
36402
|
-
className: cx(css.
|
|
36379
|
+
className: cx(css$3.treeItem, css$3.vmTreeItem, css$3.extrasItem),
|
|
36403
36380
|
"data-fitted": "true",
|
|
36404
36381
|
"data-depth": String().padEnd(depth, "-"),
|
|
36405
36382
|
style: { "--level": depth },
|
|
36406
|
-
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("header", { children: [
|
|
36407
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36408
|
-
|
|
36409
|
-
|
|
36410
|
-
|
|
36411
|
-
|
|
36412
|
-
|
|
36413
|
-
},
|
|
36414
|
-
void 0,
|
|
36415
|
-
false,
|
|
36416
|
-
{
|
|
36417
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/extras-item-render/index.tsx",
|
|
36418
|
-
lineNumber: 28,
|
|
36419
|
-
columnNumber: 13
|
|
36420
|
-
},
|
|
36421
|
-
void 0
|
|
36422
|
-
),
|
|
36423
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("label", { children: "Extras" }, void 0, false, {
|
|
36383
|
+
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("header", { className: css$3.treeItemHeader, children: [
|
|
36384
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(ExpandButton, { showIconAnyway: true, expanded: true }, void 0, false, {
|
|
36385
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/extras-item-render/index.tsx",
|
|
36386
|
+
lineNumber: 28,
|
|
36387
|
+
columnNumber: 13
|
|
36388
|
+
}, void 0),
|
|
36389
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("label", { className: css$3.treeItemLabel, children: "Extras" }, void 0, false, {
|
|
36424
36390
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/extras-item-render/index.tsx",
|
|
36425
|
-
lineNumber:
|
|
36391
|
+
lineNumber: 29,
|
|
36426
36392
|
columnNumber: 13
|
|
36427
36393
|
}, void 0)
|
|
36428
36394
|
] }, void 0, true, {
|
|
@@ -36458,7 +36424,7 @@ const ExtrasItemRender = withViewModel(
|
|
|
36458
36424
|
false,
|
|
36459
36425
|
{
|
|
36460
36426
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/extras-item-render/index.tsx",
|
|
36461
|
-
lineNumber:
|
|
36427
|
+
lineNumber: 33,
|
|
36462
36428
|
columnNumber: 11
|
|
36463
36429
|
},
|
|
36464
36430
|
void 0
|
|
@@ -36470,6 +36436,26 @@ const ExtrasItemRender = withViewModel(
|
|
|
36470
36436
|
}, void 0);
|
|
36471
36437
|
}
|
|
36472
36438
|
);
|
|
36439
|
+
const vmContent = "vmContent_TIK57";
|
|
36440
|
+
const vmContentHeader = "vmContentHeader_M1JNM";
|
|
36441
|
+
const vmContentHeaderLogo = "vmContentHeaderLogo_FRJDO";
|
|
36442
|
+
const vmContentHeaderTitle = "vmContentHeaderTitle_lYmde";
|
|
36443
|
+
const vmContentControlPanel = "vmContentControlPanel_CgUN9";
|
|
36444
|
+
const vmContentControlPanelActions = "vmContentControlPanelActions_lONbA";
|
|
36445
|
+
const vmContentInput = "vmContentInput_29GM1";
|
|
36446
|
+
const filled = "filled_6JZa0";
|
|
36447
|
+
const vmContentTree = "vmContentTree_BETR6";
|
|
36448
|
+
const css = {
|
|
36449
|
+
vmContent,
|
|
36450
|
+
vmContentHeader,
|
|
36451
|
+
vmContentHeaderLogo,
|
|
36452
|
+
vmContentHeaderTitle,
|
|
36453
|
+
vmContentControlPanel,
|
|
36454
|
+
vmContentControlPanelActions,
|
|
36455
|
+
vmContentInput,
|
|
36456
|
+
filled,
|
|
36457
|
+
vmContentTree
|
|
36458
|
+
};
|
|
36473
36459
|
const VmTreeItemRender = withViewModel(
|
|
36474
36460
|
VmTreeItemRenderVM,
|
|
36475
36461
|
({ model }) => {
|
|
@@ -36479,54 +36465,63 @@ const VmTreeItemRender = withViewModel(
|
|
|
36479
36465
|
type: "vm",
|
|
36480
36466
|
item: vmItem
|
|
36481
36467
|
});
|
|
36482
|
-
const depth = model.devtools.isHierarchyMode ? vmItem.depth : 0;
|
|
36483
36468
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
|
|
36484
36469
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36485
36470
|
"div",
|
|
36486
36471
|
{
|
|
36487
|
-
className: cx(css.
|
|
36472
|
+
className: cx(css$3.treeItem, css$3.vmTreeItem),
|
|
36488
36473
|
"data-fitted": itemSearchResult.isFittedByName || itemSearchResult.isFittedById,
|
|
36489
|
-
"data-depth": String().padEnd(depth, "-"),
|
|
36490
|
-
style: { "--level": depth },
|
|
36491
|
-
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36492
|
-
|
|
36493
|
-
|
|
36494
|
-
|
|
36495
|
-
|
|
36496
|
-
|
|
36497
|
-
|
|
36498
|
-
|
|
36499
|
-
|
|
36500
|
-
|
|
36501
|
-
|
|
36502
|
-
|
|
36503
|
-
|
|
36504
|
-
|
|
36505
|
-
|
|
36506
|
-
|
|
36507
|
-
|
|
36508
|
-
|
|
36509
|
-
|
|
36510
|
-
|
|
36511
|
-
|
|
36512
|
-
|
|
36513
|
-
|
|
36514
|
-
|
|
36474
|
+
"data-depth": String().padEnd(vmItem.depth, "-"),
|
|
36475
|
+
style: { "--level": vmItem.depth },
|
|
36476
|
+
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36477
|
+
"header",
|
|
36478
|
+
{
|
|
36479
|
+
className: css$3.treeItemHeader,
|
|
36480
|
+
onClick: () => model.handleVmItemHeaderClick(vmItem),
|
|
36481
|
+
children: [
|
|
36482
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36483
|
+
ExpandButton,
|
|
36484
|
+
{
|
|
36485
|
+
showIconAnyway: model.devtools.presentationMode === "tree",
|
|
36486
|
+
expandable: model.devtools.isExpandable(vmItem),
|
|
36487
|
+
expanded: isExpanded
|
|
36488
|
+
},
|
|
36489
|
+
void 0,
|
|
36490
|
+
false,
|
|
36491
|
+
{
|
|
36492
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36493
|
+
lineNumber: 34,
|
|
36494
|
+
columnNumber: 13
|
|
36495
|
+
},
|
|
36496
|
+
void 0
|
|
36497
|
+
),
|
|
36498
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("label", { className: css$3.treeItemLabel, title: vmItem.displayName, children: vmItem.displayName }, void 0, false, {
|
|
36499
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36500
|
+
lineNumber: 39,
|
|
36501
|
+
columnNumber: 13
|
|
36502
|
+
}, void 0),
|
|
36503
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css$3.treeItemMetaText, title: vmItem.vm.id, children: vmItem.vm.id }, void 0, false, {
|
|
36504
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36505
|
+
lineNumber: 42,
|
|
36506
|
+
columnNumber: 13
|
|
36507
|
+
}, void 0)
|
|
36508
|
+
]
|
|
36509
|
+
},
|
|
36510
|
+
void 0,
|
|
36511
|
+
true,
|
|
36512
|
+
{
|
|
36515
36513
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36516
|
-
lineNumber:
|
|
36517
|
-
columnNumber:
|
|
36518
|
-
},
|
|
36519
|
-
|
|
36520
|
-
|
|
36521
|
-
lineNumber: 32,
|
|
36522
|
-
columnNumber: 11
|
|
36523
|
-
}, void 0)
|
|
36514
|
+
lineNumber: 30,
|
|
36515
|
+
columnNumber: 11
|
|
36516
|
+
},
|
|
36517
|
+
void 0
|
|
36518
|
+
)
|
|
36524
36519
|
},
|
|
36525
36520
|
void 0,
|
|
36526
36521
|
false,
|
|
36527
36522
|
{
|
|
36528
36523
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36529
|
-
lineNumber:
|
|
36524
|
+
lineNumber: 22,
|
|
36530
36525
|
columnNumber: 9
|
|
36531
36526
|
},
|
|
36532
36527
|
void 0
|
|
@@ -36542,19 +36537,15 @@ const VmTreeItemRender = withViewModel(
|
|
|
36542
36537
|
{ type: "vm", item: vmItem },
|
|
36543
36538
|
property2
|
|
36544
36539
|
),
|
|
36545
|
-
extraRight: order !== arr.length - 1 &&
|
|
36546
|
-
|
|
36547
|
-
lineNumber: 56,
|
|
36548
|
-
columnNumber: 17
|
|
36549
|
-
}, void 0),
|
|
36550
|
-
level: depth,
|
|
36540
|
+
extraRight: order !== arr.length - 1 && `,`,
|
|
36541
|
+
level: vmItem.depth,
|
|
36551
36542
|
path: property2
|
|
36552
36543
|
},
|
|
36553
36544
|
property2,
|
|
36554
36545
|
false,
|
|
36555
36546
|
{
|
|
36556
36547
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36557
|
-
lineNumber:
|
|
36548
|
+
lineNumber: 48,
|
|
36558
36549
|
columnNumber: 11
|
|
36559
36550
|
},
|
|
36560
36551
|
void 0
|
|
@@ -36575,7 +36566,7 @@ const VmTreeItemRender = withViewModel(
|
|
|
36575
36566
|
))
|
|
36576
36567
|
] }, void 0, true, {
|
|
36577
36568
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/vm-tree-item-render/index.tsx",
|
|
36578
|
-
lineNumber:
|
|
36569
|
+
lineNumber: 21,
|
|
36579
36570
|
columnNumber: 7
|
|
36580
36571
|
}, void 0);
|
|
36581
36572
|
}
|
|
@@ -36588,64 +36579,25 @@ const VmDevtoolsContent = observer(
|
|
|
36588
36579
|
}) => {
|
|
36589
36580
|
const model = useViewModel();
|
|
36590
36581
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { ...props, className: cx(css.vmContent, className), children: [
|
|
36591
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("header", { children: [
|
|
36592
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36593
|
-
|
|
36594
|
-
lineNumber: 27,
|
|
36595
|
-
columnNumber: 11
|
|
36596
|
-
}, void 0),
|
|
36597
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { className: css.baseActions, children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36598
|
-
"button",
|
|
36582
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("header", { className: css.vmContentHeader, children: [
|
|
36583
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36584
|
+
"img",
|
|
36599
36585
|
{
|
|
36600
|
-
className:
|
|
36601
|
-
|
|
36602
|
-
}),
|
|
36603
|
-
onClick: model.devtools.toggleHierarchyMode,
|
|
36604
|
-
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36605
|
-
"svg",
|
|
36606
|
-
{
|
|
36607
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
36608
|
-
fill: "none",
|
|
36609
|
-
viewBox: "0 0 16 16",
|
|
36610
|
-
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36611
|
-
"path",
|
|
36612
|
-
{
|
|
36613
|
-
fill: "currentColor",
|
|
36614
|
-
"fill-rule": "evenodd",
|
|
36615
|
-
d: "M12.25 2.5h-8.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75m0 4.5H5v3.13c0 .69.56 1.25 1.25 1.25H7v-.13A2.25 2.25 0 0 1 9.25 9h3a2.25 2.25 0 0 1 2.25 2.25v1.5A2.25 2.25 0 0 1 12.25 15h-3a2.25 2.25 0 0 1-2.246-2.12H6.25a2.75 2.75 0 0 1-2.75-2.75V6.986a2.25 2.25 0 0 1-2-2.236v-1.5A2.25 2.25 0 0 1 3.75 1h8.5a2.25 2.25 0 0 1 2.25 2.25v1.5A2.25 2.25 0 0 1 12.25 7m-3 3.5h3a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1-.75-.75v-1.5a.75.75 0 0 1 .75-.75",
|
|
36616
|
-
"clip-rule": "evenodd"
|
|
36617
|
-
},
|
|
36618
|
-
void 0,
|
|
36619
|
-
false,
|
|
36620
|
-
{
|
|
36621
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36622
|
-
lineNumber: 40,
|
|
36623
|
-
columnNumber: 17
|
|
36624
|
-
},
|
|
36625
|
-
void 0
|
|
36626
|
-
)
|
|
36627
|
-
},
|
|
36628
|
-
void 0,
|
|
36629
|
-
false,
|
|
36630
|
-
{
|
|
36631
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36632
|
-
lineNumber: 35,
|
|
36633
|
-
columnNumber: 15
|
|
36634
|
-
},
|
|
36635
|
-
void 0
|
|
36636
|
-
)
|
|
36586
|
+
className: css.vmContentHeaderLogo,
|
|
36587
|
+
src: model.devtools.logoUrl
|
|
36637
36588
|
},
|
|
36638
36589
|
void 0,
|
|
36639
36590
|
false,
|
|
36640
36591
|
{
|
|
36641
36592
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36642
|
-
lineNumber:
|
|
36643
|
-
columnNumber:
|
|
36593
|
+
lineNumber: 27,
|
|
36594
|
+
columnNumber: 11
|
|
36644
36595
|
},
|
|
36645
36596
|
void 0
|
|
36646
|
-
)
|
|
36597
|
+
),
|
|
36598
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("span", { className: css.vmContentHeaderTitle, children: "mobx-view-model devtools" }, void 0, false, {
|
|
36647
36599
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36648
|
-
lineNumber:
|
|
36600
|
+
lineNumber: 31,
|
|
36649
36601
|
columnNumber: 11
|
|
36650
36602
|
}, void 0),
|
|
36651
36603
|
headerContent
|
|
@@ -36654,54 +36606,85 @@ const VmDevtoolsContent = observer(
|
|
|
36654
36606
|
lineNumber: 26,
|
|
36655
36607
|
columnNumber: 9
|
|
36656
36608
|
}, void 0),
|
|
36657
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { className: css.
|
|
36658
|
-
"div",
|
|
36659
|
-
|
|
36660
|
-
|
|
36661
|
-
|
|
36662
|
-
|
|
36663
|
-
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36664
|
-
lineNumber: 55,
|
|
36665
|
-
columnNumber: 13
|
|
36666
|
-
}, void 0),
|
|
36667
|
-
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36668
|
-
"input",
|
|
36609
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { className: css.vmContentControlPanel, children: [
|
|
36610
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("div", { className: css.vmContentControlPanelActions, children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36611
|
+
IconToggleButton,
|
|
36612
|
+
{
|
|
36613
|
+
onUpdate: model.devtools.handleChangePresentationMode,
|
|
36614
|
+
options: [
|
|
36669
36615
|
{
|
|
36670
|
-
|
|
36671
|
-
|
|
36672
|
-
placeholder: "search by property path or ViewModel name"
|
|
36616
|
+
value: "tree",
|
|
36617
|
+
icon: FolderTree
|
|
36673
36618
|
},
|
|
36674
|
-
void 0,
|
|
36675
|
-
false,
|
|
36676
36619
|
{
|
|
36620
|
+
value: "list",
|
|
36621
|
+
icon: ListUl
|
|
36622
|
+
}
|
|
36623
|
+
],
|
|
36624
|
+
value: model.devtools.presentationMode
|
|
36625
|
+
},
|
|
36626
|
+
void 0,
|
|
36627
|
+
false,
|
|
36628
|
+
{
|
|
36629
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36630
|
+
lineNumber: 38,
|
|
36631
|
+
columnNumber: 13
|
|
36632
|
+
},
|
|
36633
|
+
void 0
|
|
36634
|
+
) }, void 0, false, {
|
|
36635
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36636
|
+
lineNumber: 37,
|
|
36637
|
+
columnNumber: 11
|
|
36638
|
+
}, void 0),
|
|
36639
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36640
|
+
"div",
|
|
36641
|
+
{
|
|
36642
|
+
className: `${css.vmContentInput} ${model.devtools.searchEngine.isActive && css.filled}`,
|
|
36643
|
+
children: [
|
|
36644
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(Magnifier, {}, void 0, false, {
|
|
36677
36645
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36678
36646
|
lineNumber: 56,
|
|
36679
36647
|
columnNumber: 13
|
|
36680
|
-
},
|
|
36681
|
-
|
|
36682
|
-
|
|
36683
|
-
|
|
36684
|
-
|
|
36685
|
-
|
|
36686
|
-
|
|
36687
|
-
|
|
36688
|
-
|
|
36689
|
-
|
|
36690
|
-
|
|
36691
|
-
|
|
36692
|
-
|
|
36693
|
-
|
|
36694
|
-
|
|
36695
|
-
|
|
36696
|
-
|
|
36697
|
-
|
|
36698
|
-
|
|
36699
|
-
|
|
36700
|
-
|
|
36701
|
-
|
|
36702
|
-
|
|
36648
|
+
}, void 0),
|
|
36649
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36650
|
+
"input",
|
|
36651
|
+
{
|
|
36652
|
+
ref: model.devtools.searchEngine.searchInputRef,
|
|
36653
|
+
autoFocus: true,
|
|
36654
|
+
placeholder: "search by property path or ViewModel name"
|
|
36655
|
+
},
|
|
36656
|
+
void 0,
|
|
36657
|
+
false,
|
|
36658
|
+
{
|
|
36659
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36660
|
+
lineNumber: 57,
|
|
36661
|
+
columnNumber: 13
|
|
36662
|
+
},
|
|
36663
|
+
void 0
|
|
36664
|
+
),
|
|
36665
|
+
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV("button", { onClick: model.devtools.searchEngine.resetSearch, children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(Xmark, {}, void 0, false, {
|
|
36666
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36667
|
+
lineNumber: 63,
|
|
36668
|
+
columnNumber: 15
|
|
36669
|
+
}, void 0) }, void 0, false, {
|
|
36670
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36671
|
+
lineNumber: 62,
|
|
36672
|
+
columnNumber: 13
|
|
36673
|
+
}, void 0)
|
|
36674
|
+
]
|
|
36675
|
+
},
|
|
36676
|
+
void 0,
|
|
36677
|
+
true,
|
|
36678
|
+
{
|
|
36679
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36680
|
+
lineNumber: 53,
|
|
36681
|
+
columnNumber: 11
|
|
36682
|
+
},
|
|
36683
|
+
void 0
|
|
36684
|
+
)
|
|
36685
|
+
] }, void 0, true, {
|
|
36703
36686
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36704
|
-
lineNumber:
|
|
36687
|
+
lineNumber: 36,
|
|
36705
36688
|
columnNumber: 9
|
|
36706
36689
|
}, void 0),
|
|
36707
36690
|
/* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
@@ -36720,7 +36703,7 @@ const VmDevtoolsContent = observer(
|
|
|
36720
36703
|
false,
|
|
36721
36704
|
{
|
|
36722
36705
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36723
|
-
lineNumber:
|
|
36706
|
+
lineNumber: 73,
|
|
36724
36707
|
columnNumber: 13
|
|
36725
36708
|
},
|
|
36726
36709
|
void 0
|
|
@@ -36737,7 +36720,7 @@ const VmDevtoolsContent = observer(
|
|
|
36737
36720
|
false,
|
|
36738
36721
|
{
|
|
36739
36722
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36740
|
-
lineNumber:
|
|
36723
|
+
lineNumber: 79,
|
|
36741
36724
|
columnNumber: 13
|
|
36742
36725
|
},
|
|
36743
36726
|
void 0
|
|
@@ -36748,7 +36731,7 @@ const VmDevtoolsContent = observer(
|
|
|
36748
36731
|
true,
|
|
36749
36732
|
{
|
|
36750
36733
|
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-content/index.tsx",
|
|
36751
|
-
lineNumber:
|
|
36734
|
+
lineNumber: 67,
|
|
36752
36735
|
columnNumber: 9
|
|
36753
36736
|
},
|
|
36754
36737
|
void 0
|
|
@@ -36765,17 +36748,28 @@ const VmDevtoolsPopup = observer(() => {
|
|
|
36765
36748
|
return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36766
36749
|
VmDevtoolsContent,
|
|
36767
36750
|
{
|
|
36768
|
-
className: css.vmPopup,
|
|
36751
|
+
className: css$3.vmPopup,
|
|
36769
36752
|
"data-position": `${model.devtools.config.position}`,
|
|
36770
|
-
headerContent: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36771
|
-
|
|
36772
|
-
|
|
36773
|
-
|
|
36774
|
-
|
|
36775
|
-
|
|
36776
|
-
|
|
36777
|
-
|
|
36778
|
-
|
|
36753
|
+
headerContent: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(
|
|
36754
|
+
"button",
|
|
36755
|
+
{
|
|
36756
|
+
className: css$3.closePopupButton,
|
|
36757
|
+
onClick: model.handleClosePopupClick,
|
|
36758
|
+
children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(Xmark, {}, void 0, false, {
|
|
36759
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-popup/index.tsx",
|
|
36760
|
+
lineNumber: 20,
|
|
36761
|
+
columnNumber: 11
|
|
36762
|
+
}, void 0)
|
|
36763
|
+
},
|
|
36764
|
+
void 0,
|
|
36765
|
+
false,
|
|
36766
|
+
{
|
|
36767
|
+
fileName: "/home/js2me/projects/open-source/mobx-view-model-devtools/src/ui/devtools-popup/index.tsx",
|
|
36768
|
+
lineNumber: 16,
|
|
36769
|
+
columnNumber: 9
|
|
36770
|
+
},
|
|
36771
|
+
void 0
|
|
36772
|
+
)
|
|
36779
36773
|
},
|
|
36780
36774
|
void 0,
|
|
36781
36775
|
false,
|
|
@@ -36947,25 +36941,29 @@ class KeyboardHandler2 extends KeyboardHandler$1 {
|
|
|
36947
36941
|
{
|
|
36948
36942
|
shortcuts: ["Ctrl+F12"],
|
|
36949
36943
|
action: () => {
|
|
36950
|
-
devtools.isPopupOpened
|
|
36944
|
+
if (devtools.isPopupOpened) {
|
|
36945
|
+
devtools.hidePopup();
|
|
36946
|
+
} else {
|
|
36947
|
+
devtools.showPopup();
|
|
36948
|
+
}
|
|
36951
36949
|
}
|
|
36952
36950
|
},
|
|
36953
36951
|
{
|
|
36954
36952
|
shortcuts: ["Escape"],
|
|
36955
36953
|
action: () => {
|
|
36956
|
-
devtools.
|
|
36954
|
+
devtools.hidePopup();
|
|
36957
36955
|
}
|
|
36958
36956
|
},
|
|
36959
36957
|
{
|
|
36960
36958
|
shortcuts: ["Ctrl+ArrowLeft"],
|
|
36961
36959
|
action: () => {
|
|
36962
|
-
devtools.
|
|
36960
|
+
devtools.collapseAllVms();
|
|
36963
36961
|
}
|
|
36964
36962
|
},
|
|
36965
36963
|
{
|
|
36966
36964
|
shortcuts: ["Ctrl+ArrowRight"],
|
|
36967
36965
|
action: () => {
|
|
36968
|
-
devtools.
|
|
36966
|
+
devtools.expandAllVMs();
|
|
36969
36967
|
}
|
|
36970
36968
|
},
|
|
36971
36969
|
{
|
|
@@ -37222,12 +37220,11 @@ class ViewModelDevtools {
|
|
|
37222
37220
|
this.config = config;
|
|
37223
37221
|
this.isPopupOpened = !!this.config.defaultIsOpened;
|
|
37224
37222
|
this.displayType = "popup";
|
|
37225
|
-
this.extras = this.config.extras;
|
|
37226
37223
|
this.vmStore = new ViewModelStoreImpl();
|
|
37227
|
-
this.
|
|
37228
|
-
this.
|
|
37229
|
-
this.
|
|
37230
|
-
this.
|
|
37224
|
+
this.setExtras(this.config.extras);
|
|
37225
|
+
this.setStore(this.config.viewModels);
|
|
37226
|
+
this.expandedVmsMap = observable.map();
|
|
37227
|
+
this.presentationMode = "tree";
|
|
37231
37228
|
this.expandedVmItemsPaths = observable.set();
|
|
37232
37229
|
this.logoUrl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAACTFBMVEUvEQFCGQIuEQFAGALpZhjoZhlgJANAGALrZhiAMAR1KwNKHAJXIAM4FQFsKgWUNgL09PYvEQCgPARoJwNRHgL////U0dCoSRGSPgzFTQljKwl5MggjDQHm5ORWsU2JNATWWBC4SQxsMQysQAX6+vra2NbMUQtRJQxWLgu/SAXf3t62tLOyr6zCbTecSxmyQQLIxcDAvbqbmZaVeWeKc2WgRBB/OhCMOQu4QwPt7e/DuLCYz5NoOB2tqqdsaGVhW1NagUJtTjtkYCe8XyaRRRiHRRTi29XKyMfr0cG2p5yag3JfVElMR0GfcjBVMx/KWRnoYxXdXhRzQBB0OA3n6OrOzM2npKPLq5frs5TUpo2umounkHp3cm6mgWqBbGB8aVZzYVBXnktWT0eYY0BYZzOGazGmWi3IYid1QSOxTxZYSBQ6IBFFJA6lPAP/8uvR2s3qybbSwLW8q6G3nYigm4B8fHvxonW9kXWSjGhrgl5vZlpZqk+ZdE5cjE16fkzuh0q9eUetcUKAWEBpdj90bjg/PDfteDRZdTGwaS6sYCljVCl2TCflbCJZYSKlVSJfRh/dZB2OWR1nRhFfNRHO48zo1crjwamuv5SfqpSXtpGro4bEm4SMhoGFu3yQlHqFf3l5tHKtjHCFe2ageWLSimBnYFuue1hYlk1uikCCYT5XijqRWjdNPTLRcS5VVCC7WB3WYBtsTRYmHBNYPxLA3bzwv6LVsZ+4tJyQxYqHqHvVlnJzn2uegF39l1t1oEiKjzyAdjpeRDShaClCLR/JXT/FAAAABnRSTlP7uLgrtivDuZKUAAAElElEQVQ4yyWURXsbMRRFpyRF0vCM2a6ZmWPXYWqwTVKGMDRNUmZmZmZmZub+scrp3bzN+e65q8dMmQwBwqwKnLZTNrsVDW/Y8P3AgRJPKcK8ykHIMZOmMJMgAYAlimCwGQRsHdHpayOv2tsN4wJmIZTMEiSTGMgRQoCC/B5ZAYIu/fylIthsBlkAHCeZKaNChuE4yKkA2w2IAKtdhyNpWY76ZUwkFZkIUFmeNTPU6vUadSMOOg2htNWURRhRkwQBr9OlHXQNYTipbVHZ6tX5JiPGKgsgUBQWUgckMDX/woIFC+uwzEhcWz43J6ANVgEC+dpIrcJyEp8+MeR4k4hpz696PyTIdBMZ+jAv0RBqGXPUZkw1YT0AEtCFw/3NiVgiVbWMR5hCJnnZs5uB+PoeB4pk9OFaoM9adTVDXeXzGm7+9fI8AIwEsiwBV12BYIWZmCL6DIBGozGt8+6vCLmbOp8e0vF0uMKzrH7hnHii3GyGpgjiOcLr9QDubwlaFj3d9oD6GcIqQM1enVO25FobqD1x2IQIp/KAjPUtabCs7e/fHR7hGQAUDqKN4rz9fb/XrJrf76gzcuqexsY91xJaS2Pq7oNdNVaGZ4kElaWituXNaF50b3p8uoN451m02y6VaS1rkksXbwybGMJBSMBSSy5YPtqUs6zbse816HHn8jsuB91zGpNNi2/vyjAsYGmSWm080VblFj9WV589eylnSR7ZnHDnGrvvbNq2K8JgwALCJhtCFVsKjnwgftLnexsKxE4uHyiPB9ZV79s3uHuYwbSKA3e1oeYWn3GxO17lW34kblnke7F5SVCb8lUf6aibxSgYEAhS2mDfs1GuKqa98WLghltb5Tv+dX1obtdY5YBD384gpAIWbmkI9TR7Ve+awMrNe1eK1Hbw1voQbTr46PSrEsaOAVak+7F8d/OYz5sMiJc/uzQXB45Xfpo719L0tvrn85ISxmYFkFe7YmXdPaNecHSueO6cRrzV++TJDFF0rVt+pvVYEbIDs0RS2rKKLW2s0bgoJ7o077ZunT59hkajuXKm82XJBKRAs5R0l/VVnOWNxscB0eW63jt9AnJd6ch6JiCnwkJzyhJqqSjwDkdHXnSt3P7wPyQuNgkTkB1jOryrPth8v+Do7Oz8Vl+/6eD2CZ1LXKsXxtsp5EQAQph0B8vLl2FTpq7u6NEzxysfFiHRchsjq392CQN4IJkLa93xJd0Zkykbqct0vK6urOwtNlmWYgVFKQQh6yvsnl8fu0OLsD4dOXF6cO/eyu2910WNuGDnvfApqlPUwoYFq2bWr97D026driZ8uHVw8NeORz8uipoVK1wrdhZ1oHDvy8KF8zfqMUZpnW54uKbm8KFDf1pbWy+cn0lThFSWEG/WaOQF2SrbnbJ9Fo3H4xnJoKzDaNJTG90kQcIKCAAcLaVxGuz0B/k9HpssOJ0I20uKEGOGHCsIPAAoGnU6x52lfkPU7zfMNsjRUsFqmIAmmzmJIISBCpAgO6OCMC7T47H5BdqP2ikzlb5DxswBjAAhvFX2+2UrRgIyHDtwzGMoFexFZto/HbAJBdFwHOYAAAAASUVORK5CYII=";
|
|
37233
37230
|
this.inputRef = createFocusableRef();
|
|
@@ -37237,18 +37234,21 @@ class ViewModelDevtools {
|
|
|
37237
37234
|
this.searchEngine = new SearchEngine();
|
|
37238
37235
|
makeObservable(this, {
|
|
37239
37236
|
isPopupOpened: observable.ref,
|
|
37240
|
-
isAllVmsExpandedByDefault: observable,
|
|
37241
37237
|
projectVmStore: observable.ref,
|
|
37242
|
-
|
|
37238
|
+
presentationMode: observable.ref,
|
|
37243
37239
|
extras: observable.ref,
|
|
37244
37240
|
setStore: action,
|
|
37245
37241
|
setExtras: action,
|
|
37246
|
-
|
|
37242
|
+
showPopup: action,
|
|
37243
|
+
hidePopup: action,
|
|
37244
|
+
handleChangePresentationMode: action,
|
|
37247
37245
|
handleExpandVmPropertyClick: action,
|
|
37246
|
+
expandAllVMs: action,
|
|
37247
|
+
collapseAllVms: action,
|
|
37248
37248
|
handleExpandExtraPropertyClick: action,
|
|
37249
37249
|
allVms: computed.struct,
|
|
37250
37250
|
isActive: computed,
|
|
37251
|
-
|
|
37251
|
+
vmsData: computed.struct,
|
|
37252
37252
|
rootVms: computed.struct
|
|
37253
37253
|
});
|
|
37254
37254
|
this.render();
|
|
@@ -37258,15 +37258,14 @@ class ViewModelDevtools {
|
|
|
37258
37258
|
vmStore;
|
|
37259
37259
|
projectVmStore;
|
|
37260
37260
|
extras;
|
|
37261
|
-
isAllVmsExpandedByDefault;
|
|
37262
37261
|
expandedVmItemsPaths;
|
|
37263
37262
|
logoUrl;
|
|
37264
37263
|
inputRef;
|
|
37265
37264
|
scrollContentRef;
|
|
37266
37265
|
keyboardHandler;
|
|
37267
37266
|
searchEngine;
|
|
37268
|
-
|
|
37269
|
-
|
|
37267
|
+
presentationMode;
|
|
37268
|
+
expandedVmsMap;
|
|
37270
37269
|
scrollListRef;
|
|
37271
37270
|
autoscrollTimeout;
|
|
37272
37271
|
get allVms() {
|
|
@@ -37282,20 +37281,19 @@ class ViewModelDevtools {
|
|
|
37282
37281
|
return !vmParams || vmParams.parentViewModel == null;
|
|
37283
37282
|
});
|
|
37284
37283
|
}
|
|
37285
|
-
get
|
|
37286
|
-
const
|
|
37287
|
-
const
|
|
37288
|
-
const createTreeItem = (vm,
|
|
37289
|
-
const
|
|
37290
|
-
|
|
37291
|
-
);
|
|
37284
|
+
get vmsData() {
|
|
37285
|
+
const flatten = [];
|
|
37286
|
+
const tree = [];
|
|
37287
|
+
const createTreeItem = (vm, inputDepth) => {
|
|
37288
|
+
const depth = this.presentationMode === "list" ? 0 : inputDepth;
|
|
37289
|
+
const alreadyExistVmTreeItem = flatten.find((it) => it.vm === vm);
|
|
37292
37290
|
if (alreadyExistVmTreeItem) {
|
|
37293
37291
|
return alreadyExistVmTreeItem;
|
|
37294
37292
|
}
|
|
37295
37293
|
const vmParams = this.getVmParams(vm);
|
|
37296
37294
|
const parentVm = vmParams?.parentViewModel || null;
|
|
37297
37295
|
const displayName = vm.constructor.name;
|
|
37298
|
-
const
|
|
37296
|
+
const treeItem2 = {
|
|
37299
37297
|
parent: parentVm ? createTreeItem(parentVm, depth - 1) : null,
|
|
37300
37298
|
vm,
|
|
37301
37299
|
displayName,
|
|
@@ -37308,21 +37306,34 @@ class ViewModelDevtools {
|
|
|
37308
37306
|
id: (vm.id || "").toLowerCase().trim()
|
|
37309
37307
|
}
|
|
37310
37308
|
};
|
|
37311
|
-
|
|
37309
|
+
untracked(() => {
|
|
37310
|
+
if (!this.expandedVmsMap.has(treeItem2.key)) {
|
|
37311
|
+
runInAction(() => {
|
|
37312
|
+
this.expandedVmsMap.set(treeItem2.key, true);
|
|
37313
|
+
});
|
|
37314
|
+
}
|
|
37315
|
+
});
|
|
37316
|
+
flatten.push(treeItem2);
|
|
37312
37317
|
const collectedChildren = this.allVms.filter((maybeChildVm) => {
|
|
37313
37318
|
const params = this.getVmParams(maybeChildVm);
|
|
37314
37319
|
return params?.parentViewModel && params.parentViewModel === vm;
|
|
37315
37320
|
}).map((childVm) => createTreeItem(childVm, depth + 1)).filter((it) => Boolean(it));
|
|
37316
|
-
|
|
37317
|
-
return
|
|
37321
|
+
treeItem2.children.push(...collectedChildren);
|
|
37322
|
+
return treeItem2;
|
|
37318
37323
|
};
|
|
37319
37324
|
this.rootVms.forEach((vm) => {
|
|
37320
37325
|
const item = createTreeItem(vm, 0);
|
|
37321
37326
|
if (item) {
|
|
37322
|
-
|
|
37327
|
+
tree.push(item);
|
|
37323
37328
|
}
|
|
37324
37329
|
});
|
|
37325
|
-
return
|
|
37330
|
+
return {
|
|
37331
|
+
flatten,
|
|
37332
|
+
tree
|
|
37333
|
+
};
|
|
37334
|
+
}
|
|
37335
|
+
get vmTree() {
|
|
37336
|
+
return this.vmsData.tree;
|
|
37326
37337
|
}
|
|
37327
37338
|
get isActive() {
|
|
37328
37339
|
return !!this.projectVmStore || Object.keys(this.extras || {}).length > 0;
|
|
@@ -37331,7 +37342,7 @@ class ViewModelDevtools {
|
|
|
37331
37342
|
return this.config.containerId ?? "view-model-devtools";
|
|
37332
37343
|
}
|
|
37333
37344
|
isExpanded(vmItem) {
|
|
37334
|
-
return this.
|
|
37345
|
+
return this.expandedVmsMap.get(vmItem.key) || this.searchEngine.isActive;
|
|
37335
37346
|
}
|
|
37336
37347
|
checkIsVmPathExpanded(vmItem, path) {
|
|
37337
37348
|
const searchResult = this.searchEngine.getSearchResult({
|
|
@@ -37372,11 +37383,10 @@ class ViewModelDevtools {
|
|
|
37372
37383
|
}
|
|
37373
37384
|
}
|
|
37374
37385
|
handleVmItemHeaderClick(vmItem) {
|
|
37375
|
-
|
|
37376
|
-
|
|
37377
|
-
|
|
37378
|
-
|
|
37379
|
-
}
|
|
37386
|
+
this.expandedVmsMap.set(vmItem.key, !this.isExpanded(vmItem));
|
|
37387
|
+
}
|
|
37388
|
+
isExpandable(vmItem) {
|
|
37389
|
+
return vmItem.children.length > 0 && this.presentationMode !== "list";
|
|
37380
37390
|
}
|
|
37381
37391
|
getVmParams(vm) {
|
|
37382
37392
|
if ("vmParams" in vm) {
|
|
@@ -37390,9 +37400,26 @@ class ViewModelDevtools {
|
|
|
37390
37400
|
setExtras(extras) {
|
|
37391
37401
|
this.extras = extras;
|
|
37392
37402
|
}
|
|
37393
|
-
|
|
37394
|
-
this.
|
|
37403
|
+
handleChangePresentationMode = (mode) => {
|
|
37404
|
+
this.presentationMode = mode === "list" ? "list" : "tree";
|
|
37405
|
+
this.expandedVmItemsPaths.clear();
|
|
37406
|
+
this.expandedVmsMap.clear();
|
|
37395
37407
|
};
|
|
37408
|
+
expandAllVMs() {
|
|
37409
|
+
this.expandedVmsMap.replace(
|
|
37410
|
+
this.vmsData.flatten.map((it) => [it.key, true])
|
|
37411
|
+
);
|
|
37412
|
+
}
|
|
37413
|
+
collapseAllVms() {
|
|
37414
|
+
this.expandedVmsMap.clear();
|
|
37415
|
+
}
|
|
37416
|
+
showPopup() {
|
|
37417
|
+
this.isPopupOpened = true;
|
|
37418
|
+
this.expandAllVMs();
|
|
37419
|
+
}
|
|
37420
|
+
hidePopup() {
|
|
37421
|
+
this.isPopupOpened = false;
|
|
37422
|
+
}
|
|
37396
37423
|
init() {
|
|
37397
37424
|
reaction(
|
|
37398
37425
|
() => this.searchEngine.formattedSearchText,
|
|
@@ -37430,25 +37457,24 @@ class ViewModelDevtools {
|
|
|
37430
37457
|
);
|
|
37431
37458
|
}
|
|
37432
37459
|
render() {
|
|
37433
|
-
let
|
|
37460
|
+
let container = document.querySelector(
|
|
37434
37461
|
`#${this.containerId}`
|
|
37435
37462
|
);
|
|
37436
|
-
if (!
|
|
37437
|
-
|
|
37438
|
-
|
|
37439
|
-
|
|
37440
|
-
container2.id = this.containerId;
|
|
37463
|
+
if (!container) {
|
|
37464
|
+
container = document.createElement("div");
|
|
37465
|
+
container.className = css$3.root;
|
|
37466
|
+
container.id = this.containerId;
|
|
37441
37467
|
if (document.body) {
|
|
37442
|
-
document.body.appendChild(
|
|
37468
|
+
document.body.appendChild(container);
|
|
37443
37469
|
} else {
|
|
37444
37470
|
document.addEventListener("DOMContentLoaded", () => {
|
|
37445
|
-
document.body.appendChild(
|
|
37471
|
+
document.body.appendChild(container);
|
|
37446
37472
|
});
|
|
37447
37473
|
}
|
|
37448
37474
|
this.init();
|
|
37449
37475
|
}
|
|
37450
|
-
const
|
|
37451
|
-
|
|
37476
|
+
const root2 = clientExports.createRoot(container);
|
|
37477
|
+
root2.render(reactExports.createElement(DevtoolsClient, { payload: { devtools: this } }));
|
|
37452
37478
|
}
|
|
37453
37479
|
static _instance = null;
|
|
37454
37480
|
static define(config) {
|