import{p as c,ar as l,j as u,as as m,r as s}from"./main-Bn3jZxQW.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css               */function g(){const a=c(l),{planManagementIframeUri:t}=a.data.siteConfig;return t?u.jsx(f,{planManagementIframeUri:t}):u.jsx(m,{to:"/",replace:!0})}function f({planManagementIframeUri:a}){const t=s.useRef(null),r=s.useCallback(()=>{const e=t.current;if(!e)return;const n=e.contentWindow?.document.body.parentElement?.scrollHeight;n?e.height=`${n}px`:e.height="500px"},[]),o=s.useMemo(()=>new MutationObserver(e=>{r(),setTimeout(()=>{r()},1e3)}),[r]),i=s.useCallback(e=>{const n=e.contentWindow?.document.body;n&&(r(),o.observe(n,{childList:!0,subtree:!0,attributes:!0}))},[r,o]);return s.useEffect(()=>{const e=t.current;return e&&i(e),()=>o.disconnect()},[o,i]),u.jsx("iframe",{title:"iframe",ref:t,onLoad:e=>i(e.target),src:a,scrolling:"no"})}export{g as component};
//# sourceMappingURL=_account.plan.index-TNNSsItk.js.map
