http durum kodu 301, istenen kaynağın kalıcı olarak yeni bir URL'ye taşındığı anlamına gelir. Gelecekteki tüm istekler yeni adresi kullanmalıdır.
Tarayıcı kullanıcıyı otomatik olarak yeni adrese yönlendirecek ve arama motorları dizinlerini güncelleyecektir.
GET / HTTP/1.1 Host: i4.com Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" type="image/png" href="https://heyboss.heeyo.ai/user-assets/i4-main_Xn7uJcYG.png" /> <title>i4.com</title> <meta name="description" content="Create, participate, and track polls and tournament brackets on i4.com. Your voice, your victory!" /> <!-- Open Graph Meta Tags --> <meta property="og:title" content="i4.com - Dynamic Polls & Tournament Brackets" /> <meta property="og:description" content="Create, participate, and track polls and tournament brackets on i4.com. Your voice, your victory!" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://i4.com/" /> <meta property="og:image" content="https://heyboss.heeyo.ai/user-assets/i4-main_Xn7uJcYG.png" /> <!-- Twitter Card Meta Tags --> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="i4.com - Dynamic Polls & Tournament Brackets" /> <meta name="twitter:description" content="Create, participate, and track polls and tournament brackets on i4.com. Your voice, your victory!" /> <meta name="twitter:image" content="https://heyboss.heeyo.ai/user-assets/i4-main_Xn7uJcYG.png" /> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-2D4ZZNSH03"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2D4ZZNSH03'); </script> <script type="module" crossorigin src="./assets/index-CAhkVdca.js"></script> <link rel="stylesheet" crossorigin href="./assets/index-B-NRQGXe.css"> <meta property="og:title" content="i4.com" /> <meta property="og:description" content="Create, participate, and track polls and tournament brackets on i4.com. Your voice, your victory!" /> <meta property="og:image" content="https://cdn.heyboss.tech/f2a39e7b/og-image-6Z481Qt3.png" /> <meta property="og:url" content="https://2828e74a.heyboss.tech/f2a39e7b/" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="i4.com" /> <meta name="twitter:description" content="Create, participate, and track polls and tournament brackets on i4.com. Your voice, your victory!" /> <meta name="twitter:image" content="https://cdn.heyboss.tech/f2a39e7b/og-image-6Z481Qt3.png" /></head> <body> <div id="app"></div> <script id="heyboss-project-id" data-project-id="682d4620cd67d914f2a39e7b"></script> <script> setTimeout(async () => { if (window.supabase) { const { data } = window.supabase.auth.onAuthStateChange(async (event, session) => { if (event === 'SIGNED_IN' && session?.user?.id) { try { await fetch(new URL('/api/supabase/users', 'https://heybossai.com'), { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ email: session.user.email, user_id: session.user.id, project_id: '682d4620cd67d914f2a39e7b', }), }) } catch (error) { console.log('Failed to save supabase user to heyboss', error) } } }); window.addEventListener('beforeunload', () => { data.subscription.unsubscribe() }) } }, 1000) </script> <script>!function(){window.addEventListener("error",function(e){window.parent.postMessage({type:"error",payload:{error:e.error.message}},"*")})}();</script> <script data-editor-version="1.3.0">"use strict";(()=>{var M="rgba(21, 241, 253)",x="rgba(21, 241, 253)",L="rgba(21, 241, 253)",c=`2px dashed ${L}`,d=-1,a="data-heyboss-ignore",S="data-heyboss-resizer",E="data-heyboss-hovered",u="data-heyboss-selected",h="data-heyboss-id",w=["h1","h2","h3","h4","h5","h6","p"],_=["fixed","sticky","relative","absolute"],N=["app","heyboss-resizer-top-center","heyboss-resizer-bottom-center"],T=["img","form","embed","video","audio","canvas","iframe","object"],z=` .relative.h-screen.overflow-hidden > .absolute.inset-0, .relative.h-screen.overflow-hidden > .absolute.inset-0 > .absolute.inset-0, .relative.h-screen.overflow-hidden > .absolute.w-full.h-full, .relative.h-screen.overflow-hidden > .absolute.w-full.h-full > .absolute.w-full.h-full, .relative.min-h-screen.overflow-hidden > .absolute.inset-0, .relative.min-h-screen.overflow-hidden > .absolute.inset-0 > .absolute.inset-0, .relative.min-h-screen.overflow-hidden > .absolute.w-full.h-full, .relative.min-h-screen.overflow-hidden > .absolute.w-full.h-full > .absolute.w-full.h-full, section.relative.overflow-hidden[data-component-file*="hero"] > .absolute.inset-0, section.relative.overflow-hidden[data-component-file*="hero"] > .absolute.inset-0 > .absolute.inset-0, section.relative.overflow-hidden[data-component-file*="Hero"] > .absolute.inset-0, section.relative.overflow-hidden[data-component-file*="Hero"] > .absolute.inset-0 > .absolute.inset-0 `.trim(),H=` .relative.min-h-screen.overflow-hidden > .relative.h-screen, .relative.min-h-screen.overflow-hidden > .relative.min-h-screen `,O=` .relative > img + div.absolute.inset-0, .relative > .absolute.inset-0:has(+ img), .absolute > img + div.absolute.inset-0, .absolute > .absolute.inset-0:has(+ img), .absolute > .absolute.inset-0:has(> img) `.trim(),A=` .fixed > video + div.absolute.inset-0, .fixed > .absolute.inset-0:has(+ video), .relative > video + div.absolute.inset-0, .relative > .absolute.inset-0:has(+ video), .absolute > video + div.absolute.inset-0, .absolute > .absolute.inset-0:has(+ video) `.trim(),g=/!?animate-([a-zA-Z0-9-]+)(?:-(\w+))?/g,b=/(?<!motion-preset-)(fade|glow|blur|spin|scale|pulse|slide|shake|bounce|rotate|shrink)(?:-\w+)?/g,l=/!?motion-preset-(\w+)(?:-(\w+))?/,v=/!?motion-duration-(?:\[)?([\w\.]+)(?:\])?/,p=class o{constructor(){this.getType=t=>this.ui.is.svg(t)?"icon":this.ui.is.image(t)?"image":this.ui.is.video(t)?"video":this.ui.is.text.element(t)?"text":(this.ui.is.block(t),"block");this.getData=t=>{let e=this.getType(t),i=o.getSelectionTextNode();i&&(i._text_=i._text_??i.textContent,i._child_=Array.from(i.parentElement?.childNodes??[]).indexOf(i));let s=this.ui.has.child(t,i),r=this.getItems(t);return{id:this.getHeybossId(t),type:e,text:{old:s?i?._text_??t._text_:t._text_,new:s?i?.textContent??t.innerText:t.innerText},href:{old:t._href_??"",new:t.getAttribute("href")??""},domid:t.id??"",style:this.getStyle(t),motion:this.getMotion(t),parent:this.getParent(t),count:r.count,index:r.index,child:s?i?._child_??d:d,src:{old:t._src_??"",new:e==="image"?t.src:e==="video"?o.getVideoSource(t):""},tag:t.tagName.toLowerCase(),tagName:t.tagName,innerText:t.innerText,innerHTML:t.innerHTML,outerHTML:t.outerHTML,className:this.ui.is.string(t.className)?t.className:"",component:this.ui.component.data(t)}};this.getStyle=t=>{if(!t)return null;let e=getComputedStyle(t);return t._font_=t._font_??e.fontFamily,t._font_weight_=t._font_weight_??e.fontWeight,{color:e.color,width:e.width,height:e.height,display:e.display,objectFit:e.objectFit,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,fontFamily:e.fontFamily,textAlign:e.textAlign,textDecoration:e.textDecoration,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,_font_:t._font_,_font_weight_:t._font_weight_}};this.getMotion=t=>{if(!t||this.ui.is.svg(t))return null;let[,e,i=""]=t.className.match(l)??[];if(!e)return null;let[,s=null]=t.className.match(v)??[];return{name:e,duration:s,direction:i}};this.getParent=t=>{if(!t||!t.parentElement)return null;let e=t.parentElement;return{id:this.setHeybossId(e),tag:e.tagName.toLowerCase(),tagName:e.tagName,href:e.getAttribute("href")??""}};this.selectParent=()=>{let t=this.getSelectableParent(this.target);this.isOff||!t||!this.ui.is.selectable(t)||t.click()};this.getSelectableParent=t=>{if(!t||!t.parentElement)return null;let e=t.parentElement;for(;e&&!this.ui.is.selectable(e);)e=e.parentElement;return e};this.getHeybossId=t=>t?t.getAttribute(h):null;this.setHeybossId=t=>t?(this.getHeybossId(t)||t.setAttribute(h,crypto.randomUUID()),t.getAttribute(h)):null;this.getByHeybossId=t=>document.querySelector(`[data-heyboss-id="${t}"]`);this.onTargets=(t,e)=>{let{items:i,count:s}=this.getItems(t);if(s>1)for(let r of i)e(r);else e(t)};this.onMouseUp=t=>{this.isOff||(this.resizing&&this.target!==t.target&&!this.ui.is.resizer(t.target)&&(this.ui.resizer.locked=!0),this.resizing=!1,this.ui.resizer.target.height=0,this.ui.resizer.target.paddingTop=0,this.ui.resizer.target.paddingBottom=0,document.documentElement.style.removeProperty("cursor"),document.documentElement.style.removeProperty("user-select"))};this.onMouseDown=t=>{if(this.isOff||!this.target||!this.ui.is.resizer(t.target))return;t.preventDefault(),t.stopImmediatePropagation(),(this.ui.is.image(this.target)||this.ui.is.video(this.target))&&this.ui.is.hero(t.target.parentElement)&&this.selectParent();let e=getComputedStyle(this.target);this.ui.resizer.target.height=Number.parseInt(e.height),this.ui.resizer.target.paddingTop=Number.parseInt(e.paddingTop),this.ui.resizer.target.paddingBottom=Number.parseInt(e.paddingBottom),document.documentElement.style.userSelect="none",document.documentElement.style.cursor="ns-resize",this.ui.resizer.top.center===t.target?this.resizer="top-center":this.ui.resizer.bottom.center===t.target&&(this.resizer="bottom-center"),this.resizer&&(this.resizing=!0,this.ui.resizer.target.clientX=t.clientX,this.ui.resizer.target.clientY=t.clientY)};this.onMouseMove=t=>{if(this.isOff||!this.resizing||!this.target)return;let e=t.clientY-this.ui.resizer.target.clientY,i=this.resizer==="top-center"?-e:this.resizer==="bottom-center"?e:0,s=this.getData(this.target);if(i!==0&&s.style){if((this.ui.is.hero(s)||s.className.includes("h-"))&&s.style.paddingTop==="0px"&&s.style.paddingBottom==="0px"){s.style.height=`${this.ui.resizer.target.height+i}px`,this.message({type:"editor.change.style.height",data:s});return}s.style.display==="inline"&&(s.style.display="inline-block",this.message({type:"editor.change.style.display",data:s})),s.style.paddingTop=`${Math.max(this.ui.resizer.target.paddingTop+i,0)}px`,s.style.paddingBottom=`${Math.max(this.ui.resizer.target.paddingBottom+i,0)}px`,this.message({type:"editor.change.style.paddingY",data:s})}};this.onMouseOver=t=>{this.isOff||this.resizing||this.onTargets(t.target,this.ui.hovered.on)};this.onMouseOut=t=>{this.isOff||this.resizing||this.onTargets(t.target,this.ui.hovered.off)};this.onClick=t=>{if(this.isOff)return;if(t.preventDefault(),t.stopImmediatePropagation(),this.ui.resizer.locked){this.ui.resizer.locked=!1;return}let e=t.target;if(!(!e||!this.ui.is.selectable(e))){if(this.setHeybossId(e),e._text_=e._text_||e.innerText||"",this.ui.is.link(e)&&(e._href_=e._href_||e.getAttribute("href")||""),this.ui.is.image(e)?e._src_=e._src_||e.src||"":this.ui.is.video(e)&&(e._src_=e._src_||o.getVideoSource(e)||""),this.scroll.selecting)return[this.target,this.scroll.target].includes(e)?void 0:(this.scroll.target&&this.ui.outline.off(this.scroll.target),this.scroll.target=e,this.ui.outline.on(e),this.message({type:"editor.scroll.select.target",data:this.getData(e)}));this.target===e?this.ui.editable.on(this.target):(this.ui.resizer.hide(),this.ui.editable.off(this.target),this.onTargets(this.target,this.ui.selected.off),this.target=e,this.ui.editable.on(this.target),this.onTargets(this.target,this.ui.selected.on),this.ui.resizer.show(this.target),this.scroll.target&&(this.ui.outline.on(this.scroll.target),this.scroll={target:null,selecting:!1})),this.message({type:"editor.select",data:this.getData(e)})}};this.onInput=t=>{let e=t.target;this.isOff||!e||this.ui.is.image(e)||this.message({type:"editor.change.text",data:this.getData(e)})};this.onBlur=t=>{let e=t.target;this.isOff||!e||this.ui.is.image(e)||this.target&&this.ui.editable.off(this.target)};this.onEscape=t=>{t.key==="Escape"&&this.target&&this.onBlur(t)};this.ui={remove:t=>{t&&t.remove()},display:{none:t=>{t&&(t.style.display="none")},auto:t=>{t&&(t.style.display="")}},component:{map:t=>{if(!t||!t.dataset.componentMapStart||!t.dataset.componentMapEnd)return null;let e=t.dataset.componentMapStart.split(":"),i=t.dataset.componentMapEnd.split(":");return{start:{line:Number.parseInt(e[0]),column:Number.parseInt(e[1]),index:Number.parseInt(e[2])},end:{line:Number.parseInt(i[0]),column:Number.parseInt(i[1]),index:Number.parseInt(i[2])}}},data:t=>{if(!t)return null;let e=(t.dataset.componentStart??"").split(":"),i=(t.dataset.componentEnd??"").split(":");return{map:this.ui.component.map(t),src:t.dataset.componentSrc??"",name:t.dataset.componentName??"",path:t.dataset.componentPath??"",file:t.dataset.componentFile??"",class:t.dataset.componentClass??"",start:{line:Number.parseInt(e[0]),column:Number.parseInt(e[1]),index:Number.parseInt(e[2])},end:{line:Number.parseInt(i[0]),column:Number.parseInt(i[1]),index:Number.parseInt(i[2])}}}},is:{svg:t=>t?t?.tagName==="svg":!1,hero:t=>{if(!t)return!1;let e=t instanceof HTMLElement?this.getData(t):t;return e.tag==="section"&&e.className.includes("h-")&&e.className.includes("relative")&&e.className.includes("overflow-hidden")&&e.component?.file.toLowerCase().includes("hero")},link:t=>t?t?.tagName==="A":!1,image:t=>t?t?.tagName==="IMG":!1,video:t=>t?t?.tagName==="VIDEO":!1,block:t=>t?!this.ui.is.image(t)&&!this.ui.is.text.element(t):!1,text:{element:t=>{if(!t)return!1;let e=t.tagName.toLowerCase();return w.includes(e)?!0:T.includes(e)||t.querySelectorAll(T.join(",")).length>0?!1:Array.from(t.querySelectorAll("*")).filter(i=>!!i.textContent).length<=1},transparent:t=>t?t.classList.contains("text-transparent")||getComputedStyle(t).color==="rgba(0, 0, 0, 0)":!1},string:t=>t?typeof t=="string":!1,overlay:t=>t?t.classList.contains("absolute.inset-0"):!1,overflow:{hidden:t=>!t||this.ui.is.svg(t)?!1:t.className?.includes("overflow-hidden")||getComputedStyle(t).overflow==="hidden"},resizer:t=>t?[this.ui.resizer.top.center,this.ui.resizer.bottom.center].includes(t):!1,selected:t=>t?["true","inset"].includes(t.getAttribute(u)??""):!1,selectable:t=>{if(!t||N.includes(t.id)||t.getAttribute(a)==="true")return!1;let e=t.tagName.toLowerCase();return!["html","body"].includes(e)&&!this.ui.is.svg(t.parentElement)&&!this.ui.is.svg(t.parentElement?.parentElement)},positioned:t=>t?_.includes(getComputedStyle(t).position):!1},has:{image:t=>t?t.querySelectorAll("img").length>0:!1,child:(t,e)=>!t||!e?!1:Array.from(t.childNodes).some(i=>i===e)},should:{inset:t=>{if(!t)return null;if(this.ui.is.video(t))return"inset";let e=t.getBoundingClientRect(),i=Number.parseInt(getComputedStyle(t).width),s=t.parentElement;return this.ui.is.overflow.hidden(t)||s&&this.ui.is.overflow.hidden(s)||i===document.documentElement.clientWidth||e.top<=0||e.bottom>=window.innerHeight?"inset":null}},outline:{on:t=>{if(!t)return;t.style.outline=c;let e=t.parentElement;this.ui.is.video(t)||this.ui.is.image(t)||e&&this.ui.is.overflow.hidden(e)?(t.style.outlineOffset="-2px",e&&(t.style.borderRadius=getComputedStyle(e).borderRadius)):t.style.outlineOffset="0px"},off:t=>{if(!t)return;t.style.removeProperty("outline"),t.style.removeProperty("outline-offset");let e=t.parentElement;e&&this.ui.is.overflow.hidden(e)&&t.style.removeProperty("border-radius")}},hovered:{on:t=>{!t||!this.ui.is.selectable(t)||t?.nodeType!==Node.ELEMENT_NODE||(t.setAttribute(E,this.ui.should.inset(t)??"true"),t.style.cursor=this.ui.is.svg(t)||this.ui.is.image(t)?"pointer":"crosshair",this.ui.is.svg(t)||this.ui.is.image(t)?this.ui.outline.on(t):this.ui.is.positioned(t)||(t.style.position="relative"))},off:t=>{!t||!this.ui.is.selectable(t)||t?.nodeType!==Node.ELEMENT_NODE||(t.removeAttribute(E),t.style.cursor="",!this.ui.is.selected(t)&&(this.ui.is.svg(t)||this.ui.is.image(t)?this.ui.outline.off(t):t.style.position=""))}},selected:{on:t=>{t&&(this.ui.is.svg(t)||this.ui.is.image(t)||this.ui.is.video(t)?this.ui.outline.on(t):this.ui.is.positioned(t)||(t.style.position="relative"),t.setAttribute(u,this.ui.should.inset(t)??"true"))},off:t=>{t&&(t.style.position="",t.removeAttribute(u),(this.ui.is.svg(t)||this.ui.is.image(t)||this.ui.is.video(t))&&this.ui.outline.off(t))}},editable:{on:t=>{this.ui.is.text.element(t)&&(t.addEventListener("input",this.onInput),t.addEventListener("blur",this.onBlur),t.contentEditable="plaintext-only",t.style.outline="none",t.style.cursor="text",t.focus(),this.ui.is.text.transparent(t)&&(t.style.caretColor=M))},off:t=>{t&&(t.removeEventListener("input",this.onInput),t.removeEventListener("blur",this.onBlur),t.contentEditable="false",t.style.cursor="",t.style.caretColor="",t.style.outline="")}},resizer:{locked:!1,target:{height:0,clientY:0,clientX:0,paddingTop:0,paddingBottom:0},top:{center:document.createElement("span")},bottom:{center:document.createElement("span")},styles:{basic:t=>{t.style.width="36px",t.style.height="10px",t.style.zIndex="10000",t.style.cursor="ns-resize",t.style.position="absolute",t.style.userSelect="none",t.style.borderRadius="10px",t.style.backgroundColor=x,t.style.transition="all 0.1s ease-in-out",t.setAttribute(S,"true")}},init:()=>{this.ui.resizer.styles.basic(this.ui.resizer.top.center),this.ui.resizer.top.center.id="heyboss-resizer-top-center",this.ui.resizer.top.center.style.top="-8px",this.ui.resizer.top.center.style.left="50%",this.ui.resizer.top.center.style.transform="translateX(-50%)",this.ui.resizer.styles.basic(this.ui.resizer.bottom.center),this.ui.resizer.bottom.center.id="heyboss-resizer-bottom-center",this.ui.resizer.bottom.center.style.bottom="-8px",this.ui.resizer.bottom.center.style.left="50%",this.ui.resizer.bottom.center.style.transform="translateX(-50%)"},hide:()=>{this.isModeEdit&&(this.ui.resizer.top.center.remove(),this.ui.resizer.bottom.center.remove())},show:t=>{if(!t||!this.isModeEdit||t.getAttribute(a)==="true")return;let e=this.getType(t);if(e==="text"){let i=this.ui.is.overflow.hidden(t)?"-5px":"-8px";this.ui.resizer.top.center.style.top=i,this.ui.resizer.bottom.center.style.bottom=i}else if(e==="block")this.ui.resizer.top.center.style.top="-5px",this.ui.resizer.bottom.center.style.bottom="-5px";else if(["image","video"].includes(e)){let i=this.getSelectableParent(t);if(i&&this.ui.is.hero(i)){this.ui.resizer.top.center.style.top="-5px",this.ui.resizer.bottom.center.style.bottom="-5px",i.appendChild(this.ui.resizer.top.center),i.appendChild(this.ui.resizer.bottom.center);return}}t.appendChild(this.ui.resizer.top.center),t.appendChild(this.ui.resizer.bottom.center)}}};this.mode=null,this.hash=null,this.state="off",this.target=null,this.resizer=null,this.resizing=!1,this.scroll={target:null,selecting:!1},this.ui.resizer.init(),this.observer=new MutationObserver(()=>{this.isOn&&(o.disableIframes(),o.disableOverlays())}),this.hash=window.location.hash,window.parent!==window.self&&setInterval(()=>{window.location.hash!==this.hash&&(this.hash=window.location.hash,this.message({type:"editor.hashchange",data:window.location.hash}))},100)}static reload(){window.location.reload()}static navigate(t){let e=new URL(window.location.href);t&&(e.hash=`#${t}`,window.location.href=e.toString())}static{this.getVideoSource=t=>!t||t.tagName.toLowerCase()!=="video"?null:t instanceof HTMLVideoElement&&t.src?t.src:t.querySelector("source")?.src||null}static{this.setVideoSource=(t,e)=>{if(!(!t||t.tagName.toLowerCase()!=="video")&&t instanceof HTMLVideoElement){t.src=e;let i=t.querySelector("source");i&&(i.src=e),t.load()}}}static getSelectionTextNode(){let t=window.getSelection();return t?.type==="Caret"&&t.anchorNode&&t.anchorNode.nodeType===Node.TEXT_NODE?t.anchorNode:null}static{this.disableIframes=()=>{let t=document.querySelectorAll("iframe");for(let e of t)e.style.pointerEvents="none"}}static{this.disableOverlays=()=>{this.disableHeroOverlays(),this.disableHomeOverlays(),this.disableVideoOverlays(),this.disableImageOverlays()}}static{this.disableHeroOverlays=()=>{let t=document.querySelectorAll(z);for(let e of t)e.style.pointerEvents="none",e.setAttribute(a,"true")}}static{this.disableHomeOverlays=()=>{let t=document.querySelectorAll(H);for(let e of t){e.style.pointerEvents="none",e.setAttribute(a,"true");for(let i of Array.from(e.children))!i.className.includes("absolute")&&!i.className.includes("inset-0")&&(i.style.pointerEvents="auto")}}}static{this.disableImageOverlays=()=>{let t=document.querySelectorAll(O);for(let e of t){e.style.pointerEvents="none",e.setAttribute(a,"true");for(let i of Array.from(e.children))i.style.pointerEvents="auto"}}}static{this.disableVideoOverlays=()=>{let t=document.querySelectorAll(A);for(let i of t)i.style.pointerEvents="none",i.setAttribute(a,"true");let e=document.querySelectorAll("video");for(let i of e)i.style.pointerEvents="auto"}}static clearSelection(){let t=window.getSelection();t?.type==="Caret"&&t.removeAllRanges()}get isOn(){return this.state==="on"}get isOff(){return this.state==="off"}get isModeSelect(){return this.mode==="select"}get isModeEdit(){return this.mode==="edit"}observe(t){t?this.observer?.observe(document.body,{childList:!0,subtree:!0}):this.observer?.disconnect()}message({type:t,data:e}){window.parent.postMessage({type:t,data:e},"*")}loaded(){this.message({type:"editor.loaded",data:null})}getItems(t){if(!t||!t.dataset.componentPath||!t.dataset.componentStart)return{items:[],index:d,count:0};let e=Array.from(document.querySelectorAll(`[data-component-start="${t.dataset.componentStart}"][data-component-path="${t.dataset.componentPath}"]`));return{items:e,index:e.indexOf(t),count:e.length}}styles(){let t=document.createElement("style");t.id="heyboss-editor-style",t.innerHTML=` [data-heyboss-hovered]::before { inset: 0; content: ''; z-index: 10000; position: absolute; pointer-events: none; outline: ${c} !important; background-color: rgba(21, 241, 253, 0.1); } [data-heyboss-selected]::before { inset: 0; content: ''; z-index: 10000; position: absolute; pointer-events: none; outline-offset: 2px; outline: ${c} !important; transition: outline-offset 0.1s ease-in-out; } [data-heyboss-selected]:focus::before { background-color: rgba(21, 241, 253, 0.06) !important; box-shadow: 0 0 0 2px rgba(21, 241, 253, 0.06) !important; } [data-heyboss-selected][data-heyboss-hovered]::before { background-color: transparent; } [data-heyboss-hovered="inset"]::before, [data-heyboss-selected="inset"]::before { outline-offset: -2px !important; } `,document.head.appendChild(t)}listen(){window.addEventListener("message",t=>{let{type:e,data:i}=t.data;if(!(!e||!e?.startsWith("editor"))){if(e==="editor"&&i.state)if(this.state=i.state,this.isOn)this.mode=i.mode,o.disableOverlays(),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousedown",this.onMouseDown,!0),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseover",this.onMouseOver),document.addEventListener("mouseout",this.onMouseOut),document.addEventListener("keydown",this.onEscape),document.addEventListener("click",this.onClick,!0),this.observe(!0);else{o.reload();return}if(e==="editor.reload")return o.reload();if(e==="editor.navigate")return o.navigate(i);if(e==="editor.scroll.select.start"){this.scroll.selecting=!0;return}if(e==="editor.scroll.select.end"){this.scroll.target&&(this.ui.outline.off(this.scroll.target),this.scroll.target=null),this.scroll.selecting=!1;return}if(e==="editor.select.parent")return this.selectParent();if(e==="editor.select.editable"){if(!i?.editable||this.isModeSelect){let s=this.getByHeybossId(i?.id??"");this.ui.editable.off(s),s?.blur()}return}if(e==="editor.change.remove"&&this.target){this.onTargets(this.target,this.ui.display.none),this.target=null;return}if(e==="editor.change.remove.undo"&&i?.id){this.target=this.getByHeybossId(i.id),this.onTargets(this.target,this.ui.display.auto);return}if(e==="editor.change.src"&&i?.id){if(!this.target||this.getHeybossId(this.target)!==i.id)return;this.ui.is.image(this.target)?this.target.src=i.src.new:this.ui.is.video(this.target)&&o.setVideoSource(this.target,i.src.new);return}if(e==="editor.change.text"&&i?.id){if(!this.target||this.getHeybossId(this.target)!==i.id)return;i.child===d?this.target.innerText=i.text.new:this.target.childNodes[i.child].nodeValue=i.text.new;return}if(e==="editor.change.href"&&i?.id){if(!this.target||this.getHeybossId(this.target)!==i.id)return;this.ui.is.link(this.target)&&this.target.setAttribute("href",i.href.new);return}if(e.startsWith("editor.change.motion")&&this.target){let s=i.motion;if(!s)return;this.onTargets(this.target,r=>{if(s.name==="none"){r.className=r.className.replace(g,"").replace(l,"").replace(v,"");return}let n=s.direction?`motion-preset-${s.name}-${s.direction}`:`motion-preset-${s.name}`;(g.test(r.className)||b.test(r.className))&&(r.className=r.className.replace(g,"").replace(b,"")),l.test(r.className)&&(r.className=r.className.replace(l,"")),s.duration?r.style.setProperty("animation-duration",s.duration.endsWith("s")?s.duration:`${Number(s.duration)/1e3}s`,"important"):r.style.setProperty("animation-duration",""),setTimeout(()=>r?.classList.add(n),50)})}if(e.startsWith("editor.change.style")){let s=["editor.change.style.color","editor.change.style.height","editor.change.style.display","editor.change.style.objectFit","editor.change.style.fontSize","editor.change.style.fontStyle","editor.change.style.fontWeight","editor.change.style.fontFamily","editor.change.style.textAlign","editor.change.style.textDecoration","editor.change.style.marginLeft","editor.change.style.marginRight","editor.change.style.marginTop","editor.change.style.marginBottom","editor.change.style.paddingLeft","editor.change.style.paddingRight","editor.change.style.paddingTop","editor.change.style.paddingBottom"],r=i,n=e.split(".").pop(),y=n.split(/(?=[A-Z])/).join("-").toLowerCase();this.target&&y&&s.includes(e)&&r?.style?.[n]&&r?.id&&r.id===this.getHeybossId(this.target)&&this.onTargets(this.target,m=>{m.style.setProperty(y,r.style[n],"important"),n==="height"&&m.style.setProperty("min-height","auto","important")})}}})}},f=new p;f.styles();f.listen();f.loaded();})();</script> </body> </html>