{"version":3,"file":"modal.obs.js","sources":["../../../Framework/Controls/modal.obs"],"sourcesContent":["\n\n\n\n"],"names":["internalModalVisible","ref","props","modelValue","container","_document$fullscreenE","document","fullscreenElement","body","validationErrors","internalSubmit","useVModelPassthrough","emit","isShaking","modalBodyElement","modalBodyPaddingElement","legacyOverflowTimer","overflowMutationObserver","MutationObserver","onOverflowMutation","undefined","overflowResizeObserver","ResizeObserver","onOverflowResize","adjustOverflowPadding","value","scrollHeight","clientHeight","existingPadding","parseFloat","window","getComputedStyle","getPropertyValue","_unused","totalPadding","style","paddingBottom","concat","detectLegacyOverflow","setTimeout","onClose","onScrollableClick","clickBackdropToClose","onSubmit","_onSubmit","apply","arguments","_asyncToGenerator","onSave","result","isPromise","onSaveThenAdd","onVisibleValidationChanged","errors","mutations","_iterator","_createForOfIteratorHelper","_step","s","n","done","mutation","addedNodes","forEach","node","Element","observe","removedNodes","unobserve","err","e","f","nextTick","watch","trackModalState","subtree","childList","querySelectorAll","disconnect","clearTimeout","onBeforeUnmount"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuII,IAAA,IAAMA,oBAAoB,GAAGC,GAAG,CAACC,KAAK,CAACC,UAAU,CAAC,CAAA;MAClD,IAAA,IAAMC,SAAS,GAAGH,GAAG,CAAAI,CAAAA,qBAAA,GAACC,QAAQ,CAACC,iBAAiB,MAAA,IAAA,IAAAF,qBAAA,KAAAA,KAAAA,CAAAA,GAAAA,qBAAA,GAAIC,QAAQ,CAACE,IAAI,CAAC,CAAA;MAClE,IAAA,IAAMC,gBAAgB,GAAGR,GAAG,CAAc,EAAE,CAAC,C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