{"version":3,"file":"FinancialAidForm.B2tx6bhG.mjs","names":["useRef","useState","__esmMin","le","init_ssg_sandbox_shims","window","_e","de","p","c","init_jsx_runtime","init_npm_react_18_3_1","ce","addPropertyControls","init_framer_Duogf4LG","ControlType","useIsStaticRenderer","bindTallyLoader","frame","loader","expected","formId","stopped","paused","timer","observer","fallback","cancelTimer","cleanup","onLoad","late","onMessage","onPageHide","onPageShow","checkVisible","onVisibility","ready","arm","r","actual","event","data","entries","entry","FinancialAidForm","isStatic","loaderRef","height","setHeight","iframe","tallyWindow","syncHeight","next","current","load","script","style","TALLY_LOADING_CSS","init_FinancialAidForm"],"sources":["https:/framerusercontent.com/modules/S61X0vBpOloRnPPo8hn4/AXLPVPHrCoTzcEGSXLaM/FinancialAidForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";function bindTallyLoader(frame,loader){if(!frame||!loader)return function(){};var expected;try{expected=new URL(frame.getAttribute(\"data-tally-src\")||frame.getAttribute(\"src\")||\"\");}catch(_){return function(){};}if(expected.origin!==\"https://tally.so\")return function(){};var formId=expected.pathname.split(\"/\").filter(Boolean)[1];if(!formId)return function(){};var stopped=false,paused=false,timer=0;var observer=null;loader.dataset.ewcTallyState=\"loading\";loader.style.display=\"flex\";frame.setAttribute(\"aria-busy\",\"true\");var fallback=loader.querySelector(\".ewc-tally-open\");if(fallback)fallback.href=expected.href;function cancelTimer(){if(timer)window.clearTimeout(timer);timer=0;}function cleanup(){if(stopped)return;stopped=true;cancelTimer();if(observer)observer.disconnect();frame.removeEventListener(\"load\",onLoad);frame.removeEventListener(\"error\",late);window.removeEventListener(\"message\",onMessage);window.removeEventListener(\"pagehide\",onPageHide);window.removeEventListener(\"pageshow\",onPageShow);window.removeEventListener(\"scroll\",checkVisible);window.removeEventListener(\"resize\",checkVisible);document.removeEventListener(\"visibilitychange\",onVisibility);}function ready(){if(stopped)return;loader.dataset.ewcTallyState=\"ready\";loader.style.display=\"none\";frame.setAttribute(\"aria-busy\",\"false\");cleanup();}function late(){if(stopped)return;cancelTimer();loader.dataset.ewcTallyState=\"late\";frame.setAttribute(\"aria-busy\",\"false\");// Keep the real form visible; a delayed FormLoaded/load can still dismiss this notice.\n}function arm(){if(stopped||paused||timer||loader.dataset.ewcTallyState===\"late\"||document.visibilityState===\"hidden\")return;timer=window.setTimeout(late,2e4);}function checkVisible(){if(stopped||paused||document.visibilityState===\"hidden\")return;var r=frame.getBoundingClientRect();if(r.width>0&&r.height>0&&r.bottom>0&&r.top<window.innerHeight)arm();}function onVisibility(){if(document.visibilityState===\"hidden\")cancelTimer();else checkVisible();}function onLoad(){try{var actual=new URL(frame.getAttribute(\"src\")||\"\");if(actual.origin===expected.origin&&actual.pathname===expected.pathname)ready();}catch(_){}}function onMessage(event){if(event.origin!==expected.origin||event.source!==frame.contentWindow)return;var data=event.data;if(typeof data===\"string\"){try{data=JSON.parse(data);}catch(_){return;}}if(data&&data.event===\"Tally.FormLoaded\"&&data.payload&&data.payload.formId===formId)ready();}function onPageHide(event){if(event.persisted){paused=true;cancelTimer();return;}cleanup();loader.style.display=\"none\";frame.setAttribute(\"aria-busy\",\"false\");}function onPageShow(event){if(stopped||!event.persisted)return;paused=false;checkVisible();}frame.addEventListener(\"load\",onLoad);frame.addEventListener(\"error\",late);window.addEventListener(\"message\",onMessage);window.addEventListener(\"pagehide\",onPageHide);window.addEventListener(\"pageshow\",onPageShow);document.addEventListener(\"visibilitychange\",onVisibility);if(typeof IntersectionObserver!==\"undefined\"){observer=new IntersectionObserver(function(entries){if(entries.some(function(entry){return entry.isIntersecting;}))arm();});observer.observe(frame);}else{window.addEventListener(\"scroll\",checkVisible,{passive:true});window.addEventListener(\"resize\",checkVisible);}checkVisible();return function(){cleanup();loader.style.display=\"none\";frame.setAttribute(\"aria-busy\",\"false\");};}const TALLY_LOADING_CSS='@keyframes ewc-tally-spin{to{transform:rotate(360deg)}}\\n.tally-loader .ewc-tally-fallback{display:none;text-align:center;font:14px/1.5 system-ui,sans-serif;color:#082F7B;max-width:260px;}\\n.tally-loader .ewc-tally-open{pointer-events:auto;color:inherit;text-decoration:underline;}\\n.tally-loader .ewc-tally-open:focus-visible{outline:3px solid #082F7B;outline-offset:3px;}\\n.tally-loader[data-ewc-tally-state=\"late\"]>div{display:none!important;}\\n.tally-loader[data-ewc-tally-state=\"late\"] .ewc-tally-fallback{display:block;}\\n.ewc-tally-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}\\n.tally-loader[data-ewc-tally-state=\"late\"] .ewc-tally-sr{display:none;}\\n@media(prefers-reduced-motion:reduce){.tally-loader>div{animation:none!important;}}\\n';/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 360\n */export default function FinancialAidForm({formId=\"lbEKJo\",style}){const isStatic=useIsStaticRenderer();const loaderRef=useRef(null);const frame=useRef(null);const[height,setHeight]=useState(360);useLayoutEffect(()=>{const iframe=frame.current,loader=loaderRef.current;if(isStatic||typeof window===\"undefined\"||!iframe||!loader)return;return bindTallyLoader(iframe,loader);},[formId,isStatic]);useEffect(()=>{if(typeof window===\"undefined\"||!frame.current)return;const tallyWindow=window;const iframe=frame.current;const syncHeight=()=>{const next=Number.parseFloat(iframe.style.height);if(Number.isFinite(next)&&next>0)setHeight(current=>current===next?current:Math.ceil(next));};const observer=new MutationObserver(syncHeight);observer.observe(iframe,{attributes:true,attributeFilter:[\"style\",\"height\"]});const load=()=>{tallyWindow.Tally?.loadEmbeds();syncHeight();};let script;if(tallyWindow.Tally)load();else{script=document.createElement(\"script\");script.src=\"https://tally.so/widgets/embed.js\";script.async=true;script.addEventListener(\"load\",load);document.head.appendChild(script);}return()=>{observer.disconnect();if(script){script.removeEventListener(\"load\",load);script.remove();}};},[formId]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height,minWidth:0},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:TALLY_LOADING_CSS}}),/*#__PURE__*/_jsxs(\"div\",{ref:loaderRef,className:\"tally-loader\",role:\"status\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",style:{position:\"absolute\",inset:0,display:isStatic?\"none\":\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:28,height:28,border:\"3px solid rgba(8,47,123,0.15)\",borderTopColor:\"#082F7B\",borderRadius:\"50%\",animation:\"ewc-tally-spin 0.8s linear infinite\"}}),/*#__PURE__*/_jsx(\"span\",{className:\"ewc-tally-sr\",children:\"Loading form…\"}),/*#__PURE__*/_jsxs(\"span\",{className:\"ewc-tally-fallback\",children:[\"Form is taking longer to load.\",/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"a\",{className:\"ewc-tally-open\",target:\"_blank\",rel:\"noopener noreferrer\",children:\"Open form\"})]})]}),/*#__PURE__*/_jsx(\"iframe\",{ref:frame,\"data-tally-src\":\"https://tally.so/embed/\"+encodeURIComponent(formId)+\"?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1\",width:\"100%\",height:\"360\",frameBorder:\"0\",title:\"Financial aid application\",style:{display:\"block\",width:\"100%\",border:0}},formId)]});}addPropertyControls(FinancialAidForm,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"lbEKJo\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FinancialAidForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"560\",\"framerIntrinsicHeight\":\"360\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata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