{"version":3,"file":"HTMLPlayground.CNhHznfk.mjs","names":["React.useRef","React.useState","React.useMemo","React.useCallback","__esmMin","pe","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","_e","c","init_jsx_runtime","ce","de","init_framer_Bf4_tcb2","addPropertyControls","ControlType","hashString","hash","i","value","injectBridgeIntoHtml","bridgeScript","messageId","HEIGHT_MESSAGE","HEIGHT_REQUEST","HASH_MESSAGE","WHEEL_MESSAGE","JUMP_MESSAGE","sourceHtml","injectTopNavigationBase","baseTag","updateHeaderLogo","logoCss","replaced","innerHtml","match","attrs","beforeHref","afterHref","classPattern","next","HTMLPlayground","props","iframeRef","measuredHeight","setMeasuredHeight","html","title","shouldAutoSize","autoHeight","allowScripts","fitContentRoot","requestHeight","receivedHeight","onMessage","iframe","event","payload","incoming","bounded","maxHeight","prev","retries","delay","retry","onWheelMessage","data","offset","factor","dx","dy","postHashToIframe","listener","srcDoc","source","withNavigation","openLinksInParent","sandbox","flags","resolvedHeight","height","style","init_HTMLPlayground"],"sources":["https:/framerusercontent.com/modules/QUCs0ospeaYaC8x95aId/klKjfr33Go08mPLBvoot/HTMLPlayground.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import*as React from\"react\";const HEIGHT_MESSAGE=\"HTML_PLAYGROUND_HEIGHT\";const HEIGHT_REQUEST=\"HTML_PLAYGROUND_HEIGHT_REQUEST\";const HASH_MESSAGE=\"HTML_PLAYGROUND_HASH\";const WHEEL_MESSAGE=\"HTML_PLAYGROUND_WHEEL\";const JUMP_MESSAGE=\"HTML_PLAYGROUND_JUMP\";function hashString(value){let hash=0;for(let i=0;i<value.length;i++){hash=(hash<<5)-hash+value.charCodeAt(i);hash|=0;}return String(Math.abs(hash));}function injectBridgeIntoHtml(sourceHtml,messageId){// This script executes inside the sandboxed iframe, not the Framer page.\nconst bridgeScript=`<script>(function(){\n      var ID=${JSON.stringify(messageId)};\n      var HEIGHT=${JSON.stringify(HEIGHT_MESSAGE)};\n      var HEIGHT_REQUEST=${JSON.stringify(HEIGHT_REQUEST)};\n      var HASH=${JSON.stringify(HASH_MESSAGE)};\n      var WHEEL=${JSON.stringify(WHEEL_MESSAGE)};\n      var JUMP=${JSON.stringify(JUMP_MESSAGE)};\n      var lastHeight=-1, raf=0, forceReport=false, observer, contentRoot;\n      // The embedded document must never become a second wheel-scroll container.\n      function disableDocumentScrolling(){\n        var d=document.documentElement,b=document.body;\n        if(!d||!b)return;\n        d.style.setProperty('overflow-y','hidden','important');\n        d.style.setProperty('overflow-x','hidden','important');\n        b.style.setProperty('overflow-y','hidden','important');\n        b.style.setProperty('overflow-x','hidden','important');\n        d.style.setProperty('scrollbar-width','none','important');\n        b.style.setProperty('scrollbar-width','none','important');\n      }\n      function measure(){\n        if(!document.body||!document.documentElement)return 0;\n        if(contentRoot)return Math.ceil(contentRoot.getBoundingClientRect().bottom+window.scrollY);\n        var b=document.body,d=document.documentElement;\n        // Scroll height can temporarily report only the iframe viewport.\n        // Also measure the actual bottom edge of visible layout content.\n        var h=Math.max(b.scrollHeight,b.offsetHeight,d.scrollHeight,d.offsetHeight);\n        var children=b.children;\n        for(var i=0;i<children.length;i++){\n          var el=children[i];\n          var rect=el.getBoundingClientRect();\n          var cs=getComputedStyle(el);\n          if(cs.position==='fixed'||cs.display==='none')continue;\n          h=Math.max(h,rect.bottom+window.scrollY+parseFloat(cs.marginBottom||0));\n        }\n        return Math.ceil(h);\n      }\n      function notify(){\n        raf=0;\n        var h=measure();\n        var force=forceReport;\n        forceReport=false;\n        if(h>0 && (force||Math.abs(h-lastHeight)>=1)){\n          lastHeight=h;\n          parent.postMessage({type:HEIGHT,id:ID,height:h},'*');\n        }\n      }\n      function schedule(){\n        if(!raf)raf=requestAnimationFrame(notify);\n      }\n      function decodeHash(raw){\n        var s=String(raw||'').replace(/^#/,'');\n        try{return decodeURIComponent(s)}catch(e){return s}\n      }\n      function findTarget(hash){\n        var id=decodeHash(hash);\n        if(!id)return null;\n        return document.getElementById(id)||document.getElementsByName(id)[0]||null;\n      }\n      function onParentMessage(e){\n        var d=e.data;\n        if(e.source!==parent||!d||d.id!==ID)return;\n        if(d.type===HEIGHT_REQUEST){\n          forceReport=true;\n          schedule();\n          return;\n        }\n        if(d.type!==HASH)return;\n        var target=findTarget(d.hash);\n        if(target){\n          // Scroll the real page, not the internal iframe viewport.\n          var y=target.getBoundingClientRect().top+window.scrollY;\n          parent.postMessage({type:JUMP,id:ID,offset:y},'*');\n          schedule();\n        }\n      }\n      // An iframe is a separate scrolling document. If it has no internal\n      // scroll room, wheel input must be passed to the Framer parent.\n      function canScrollLocally(target,dy,dx){\n        var el=target && target.nodeType===1 ? target : target && target.parentElement;\n        while(el&&el!==document.body&&el!==document.documentElement){\n          var cs=getComputedStyle(el);\n          var sy=cs.overflowY, sx=cs.overflowX;\n          if((sy==='auto'||sy==='scroll')&&el.scrollHeight>el.clientHeight+1){\n            if((dy<0&&el.scrollTop>0)||(dy>0&&el.scrollTop+el.clientHeight<el.scrollHeight-1))return true;\n          }\n          if((sx==='auto'||sx==='scroll')&&el.scrollWidth>el.clientWidth+1){\n            if((dx<0&&el.scrollLeft>0)||(dx>0&&el.scrollLeft+el.clientWidth<el.scrollWidth-1))return true;\n          }\n          el=el.parentElement;\n        }\n        return false;\n      }\n      function onWheel(e){\n        if(e.defaultPrevented||e.ctrlKey||e.metaKey)return;\n        if(!e.deltaY&&!e.deltaX)return;\n        if(canScrollLocally(e.target,e.deltaY,e.deltaX))return;\n        e.preventDefault();\n        parent.postMessage({type:WHEEL,id:ID,deltaX:e.deltaX,deltaY:e.deltaY,deltaMode:e.deltaMode},'*');\n      }\n      function setup(){\n        contentRoot=document.querySelector(\"[data-html-playground-content-root]\");\n        schedule();\n        disableDocumentScrolling();\n        window.addEventListener('wheel',onWheel,{passive:false,capture:true});\n        if(typeof ResizeObserver!=='undefined'){\n          observer=new ResizeObserver(schedule);\n          if(contentRoot){\n            observer.observe(contentRoot);\n          }else{\n            observer.observe(document.body);\n            observer.observe(document.documentElement);\n          }\n        }\n        // Images, fonts and late-running scripts can alter document height.\n        window.addEventListener('load',schedule);\n        window.addEventListener('resize',schedule);\n        // Some embedded scripts reassign body overflow during initialization.\n        setTimeout(disableDocumentScrolling,100);\n        setTimeout(disableDocumentScrolling,600);\n        window.addEventListener('message',onParentMessage);\n        if(document.fonts&&document.fonts.ready){document.fonts.ready.then(schedule).catch(function(){})}\n        document.addEventListener('load',schedule,true);\n        setTimeout(schedule,100);\n        setTimeout(schedule,600);\n        setTimeout(schedule,1800);\n      }\n      if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',setup,{once:true});\n      else setup();\n    })();</script>`;if(/<\\/body\\s*>/i.test(sourceHtml))return sourceHtml.replace(/<\\/body\\s*>/i,`${bridgeScript}</body>`);if(/<\\/html\\s*>/i.test(sourceHtml))return sourceHtml.replace(/<\\/html\\s*>/i,`${bridgeScript}</html>`);if(/<html[\\s>]/i.test(sourceHtml)||/<!doctype/i.test(sourceHtml))return`${sourceHtml}${bridgeScript}`;return`<!doctype html><html><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"></head><body>${sourceHtml}${bridgeScript}</body></html>`;}function injectTopNavigationBase(sourceHtml){if(/<base\\b/i.test(sourceHtml))return sourceHtml;const baseTag='<base target=\"_top\">';if(/<head[^>]*>/i.test(sourceHtml))return sourceHtml.replace(/<head([^>]*)>/i,`<head$1>${baseTag}`);if(/<html[^>]*>/i.test(sourceHtml))return sourceHtml.replace(/<html([^>]*)>/i,`<html$1><head>${baseTag}</head>`);return sourceHtml// Bare fragments have no head; avoid malformed markup.\n;}function updateHeaderLogo(sourceHtml){const logoCss=`<style id=\"team-edda-logo-style\">.team-edda-logo{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;text-decoration:none;}.team-edda-logo__mark{width:9px;height:9px;background:#D9AAA6;display:inline-block;flex:0 0 auto;}.team-edda-logo__label{font-family:\"Inter\",monospace;font-weight:500;font-size:15px;letter-spacing:0.04em;line-height:1;color:#F3F0EA;display:inline-block;}</style>`;const logoInner='<span class=\"team-edda-logo__mark\" aria-hidden=\"true\"></span><span class=\"team-edda-logo__label\">TEAM EDDA</span>';const anchorPattern=/<a\\b([^>]*\\bhref\\s*=\\s*['\"])#top(['\"][^>]*)>([\\s\\S]*?)<\\/a>/i;const replaced=sourceHtml.replace(anchorPattern,(match,beforeHref,afterHref,innerHtml)=>{if(!/<img\\b/i.test(innerHtml))return match;const attrs=`${beforeHref}#top${afterHref}`;const classPattern=/\\bclass\\s*=\\s*(['\"])(.*?)\\1/i;const cls=attrs.match(classPattern)?.[2]||\"\";const next=`${cls} team-edda-logo`.trim();const attributes=classPattern.test(attrs)?attrs.replace(classPattern,`class=\"${next}\"`):`${attrs} class=\"team-edda-logo\"`;return`<a${attributes}>${logoInner}</a>`;});if(replaced===sourceHtml||/id\\s*=\\s*[\"']team-edda-logo-style[\"']/i.test(replaced))return replaced;return/<\\/head>/i.test(replaced)?replaced.replace(/<\\/head>/i,`${logoCss}</head>`):`${logoCss}${replaced}`;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 900\n */export default function HTMLPlayground(props){const{style,html=\"<div style='padding:16px'>Paste your HTML here.</div>\",height=6e3,allowScripts=true,autoHeight=true,maxHeight=0,title=\"HTML Playground preview\",openLinksInParent=true}=props;const iframeRef=React.useRef(null);const[measuredHeight,setMeasuredHeight]=React.useState(900);React.useEffect(()=>setMeasuredHeight(900),[html,title]);const messageId=React.useMemo(()=>hashString(`${title}:${html}`),[title,html]);const shouldAutoSize=autoHeight&&allowScripts;const fitContentRoot=html.includes(\"data-html-playground-content-root\");const requestHeight=React.useCallback(()=>{iframeRef.current?.contentWindow?.postMessage({type:HEIGHT_REQUEST,id:messageId},\"*\");},[messageId]);React.useEffect(()=>{if(!shouldAutoSize||typeof window===\"undefined\")return;let receivedHeight=false;const onMessage=event=>{const iframe=iframeRef.current;if(!iframe||event.source!==iframe.contentWindow)return;const payload=event.data;if(!payload||payload.type!==HEIGHT_MESSAGE||payload.id!==messageId)return;const incoming=Number(payload.height);if(!Number.isFinite(incoming)||incoming<1)return;receivedHeight=true;const bounded=Math.ceil(maxHeight>0?Math.min(incoming,maxHeight):incoming);// Marked roots report intrinsic content height independently of the iframe.\nsetMeasuredHeight(prev=>fitContentRoot?bounded:Math.max(prev,bounded));};window.addEventListener(\"message\",onMessage);// The iframe can finish before hydration or still be loading when this effect runs.\nrequestHeight();const retries=[250,1e3,3e3].map(delay=>window.setTimeout(()=>{if(!receivedHeight)requestHeight();},delay));return()=>{retries.forEach(retry=>window.clearTimeout(retry));window.removeEventListener(\"message\",onMessage);};},[messageId,maxHeight,shouldAutoSize,fitContentRoot,requestHeight]);// Forward mouse wheel movement from inside the sandboxed iframe to the\n// real page. Validate the sender so unrelated embeds cannot scroll us.\nReact.useEffect(()=>{if(typeof window===\"undefined\"||!allowScripts)return;const onWheelMessage=event=>{if(event.source!==iframeRef.current?.contentWindow)return;const data=event.data;if(!data||data.id!==messageId)return;if(data.type===JUMP_MESSAGE){const offset=Number(data.offset);if(Number.isFinite(offset)){const iframe=iframeRef.current;if(iframe)window.scrollTo({top:iframe.getBoundingClientRect().top+window.scrollY+offset,behavior:\"smooth\"});}return;}if(data.type!==WHEEL_MESSAGE)return;const factor=data.deltaMode===1?16:data.deltaMode===2?window.innerHeight:1;const dx=Number(data.deltaX)*factor;const dy=Number(data.deltaY)*factor;if(!Number.isFinite(dx)||!Number.isFinite(dy))return;window.scrollBy({left:dx,top:dy,behavior:\"auto\"});};window.addEventListener(\"message\",onWheelMessage);return()=>window.removeEventListener(\"message\",onWheelMessage);},[allowScripts,messageId]);const postHashToIframe=React.useCallback(hash=>{if(typeof window===\"undefined\")return;iframeRef.current?.contentWindow?.postMessage({type:HASH_MESSAGE,id:messageId,hash:hash??window.location.hash},\"*\");},[messageId]);React.useEffect(()=>{if(!allowScripts||typeof window===\"undefined\")return;const listener=()=>postHashToIframe(window.location.hash);window.addEventListener(\"hashchange\",listener);return()=>window.removeEventListener(\"hashchange\",listener);},[allowScripts,postHashToIframe]);const srcDoc=React.useMemo(()=>{const source=updateHeaderLogo(html);const withNavigation=openLinksInParent?injectTopNavigationBase(source):source;return allowScripts?injectBridgeIntoHtml(withNavigation,messageId):withNavigation;},[html,openLinksInParent,allowScripts,messageId]);const sandbox=React.useMemo(()=>{const flags=[\"allow-forms\",\"allow-popups\",\"allow-modals\"];if(allowScripts)flags.push(\"allow-scripts\");if(openLinksInParent)flags.push(\"allow-top-navigation-by-user-activation\");return flags.join(\" \");},[allowScripts,openLinksInParent]);const resolvedHeight=shouldAutoSize?measuredHeight:height;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:`${Math.max(1,resolvedHeight)}px`,minWidth:0,overflow:\"visible\"},children:/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,title:title,srcDoc:srcDoc,sandbox:sandbox,scrolling:\"no\",onLoad:()=>{if(shouldAutoSize)requestHeight();if(allowScripts)postHashToIframe();},style:{display:\"block\",width:\"100%\",height:\"100%\",border:0,background:\"transparent\",overflow:\"hidden\"}},messageId)});}addPropertyControls(HTMLPlayground,{html:{type:ControlType.String,title:\"HTML\",defaultValue:\"<!doctype html><html><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'></head><body><div style='padding:16px'>Paste your HTML here.</div></body></html>\",displayTextArea:true,placeholder:\"<html>...</html> or fragment\"},height:{type:ControlType.Number,title:\"Height\",description:\"Used when Auto Height is off.\",defaultValue:6e3,min:120,max:3e4,unit:\"px\",step:10},autoHeight:{type:ControlType.Boolean,title:\"Auto Height\",description:\"Resize the Framer component to iframe content.\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},maxHeight:{type:ControlType.Number,title:\"Max Height\",description:\"0 = no maximum; avoids nested iframe scrolling.\",defaultValue:0,min:0,max:5e4,unit:\"px\",step:100},allowScripts:{type:ControlType.Boolean,title:\"Scripts\",defaultValue:true,enabledTitle:\"Allowed\",disabledTitle:\"Blocked\"},openLinksInParent:{type:ControlType.Boolean,title:\"Links Navigate Site\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"HTML Playground preview\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HTMLPlayground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"900\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HTMLPlayground.map"],"mappings":"A,oNAA+V,SAASkB,EAAW,EAAM,CAAC,IAAIC,EAAK,EAAE,IAAI,IAAIC,EAAE,EAAEA,EAAEC,EAAM,OAAO,IAAK,GAAMF,GAAM,GAAGA,EAAKE,EAAM,WAAWD,CAAC,EAAE,GAAM,EAAG,OAAO,OAAO,KAAK,IAAID,CAAI,CAAC,CAAE,CAAC,SAASG,EAAqB,EAAW,EAAU,CACxiB,IAAMC,EAAa;eACJ,KAAK,UAAUC,CAAS,EAAE;mBACtB,KAAK,UAAUC,CAAc,EAAE;2BACvB,KAAK,UAAUC,CAAc,EAAE;iBACzC,KAAK,UAAUC,CAAY,EAAE;kBAC5B,KAAK,UAAUC,CAAa,EAAE;iBAC/B,KAAK,UAAUC,CAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0HwR,MAA/S,eAAe,KAAKC,CAAU,EAASA,EAAW,QAAQ,eAAe,GAAGP,EAAa,QAAQ,EAAK,eAAe,KAAKO,CAAU,EAASA,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