{"version":3,"file":"PhoneLab.DNGI3Ygt.mjs","names":["React.useRef","React.useMemo","React.useState","FramerLib.useRouter","__esmMin","init_ssg_sandbox_shims","window","_e","de","init_jsx_runtime","pe","init_npm_react_18_3_1","ce","init_framer_CKT6jEEQ","useRouter","addPropertyControls","ControlType","useIsStaticRenderer","PhoneLab","propsRef","props","ext","doc","HTML","isStatic","frameRef","router","useSiteRouter","routerRef","vv","setVv","v","upd","onMsg","fr","w","ev","sh","p","slug","r","routes","id","rp","k","key","init_PhoneLab"],"sources":["https:/framerusercontent.com/modules/9DPc4JfBwf9FUpX8pvlF/yeBFJxQcN06oDLl2paIH/PhoneLab.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{useIsStaticRenderer,addPropertyControls,ControlType}from\"framer\";import*as FramerLib from\"framer\";const useSiteRouter=FramerLib.useRouter||(()=>null);// Phone prototype (wheel + line) for testing tilt on a real phone. Hidden test page only.\nconst HTML='<!DOCTYPE html>\\n<html lang=\"en\"><head><meta charset=\"utf-8\">\\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no\">\\n<title>Dide Phone Prototype</title>\\n<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400&display=swap\"><style>\\n:root{--rm:1}\\n\\n:root{color-scheme:light}\\n*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}\\nhtml,body{height:100%;overflow:hidden;background:#fff;overscroll-behavior:none}\\nbody{font-family:\"Roboto Mono\",monospace;color:#222;touch-action:none;user-select:none;-webkit-user-select:none}\\n#app{position:fixed;inset:0;max-width:520px;margin:0 auto;overflow:hidden;background:#fff}\\n.hd{position:absolute;top:calc(env(safe-area-inset-top) + 14px);left:20px;right:12px;display:flex;justify-content:space-between;align-items:center;z-index:46}\\n.nm{cursor:pointer;font:300 13px \"Roboto Mono\",monospace}\\n.mb{width:44px;height:44px;border:0;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:radial-gradient(closest-side,rgba(255,96,190,.5),rgba(255,96,190,.18) 65%,rgba(255,96,190,0));cursor:pointer}\\n.mb i{display:block;width:18px;height:1.6px;background:#ff1f5a;border-radius:2px;transition:transform .25s}\\n.mb.open i:first-child{transform:translateY(3.3px) rotate(45deg)}.mb.open i:last-child{transform:translateY(-3.3px) rotate(-45deg)}\\n.dim{position:absolute;inset:0;background:rgba(255,255,255,.25);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:44;opacity:0;pointer-events:none;transition:opacity .25s}\\n.dim.on{opacity:1;pointer-events:auto}\\n.mn{position:absolute;top:calc(env(safe-area-inset-top) + 62px);right:14px;padding:6px;border-radius:22px;z-index:45;\\n background:linear-gradient(160deg,rgba(255,255,255,.6),rgba(240,236,250,.32));backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);\\n border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 0 #fff,0 18px 40px -14px rgba(60,50,90,.35);\\n transform-origin:top right;transform:scale(.85) translateY(-8px);opacity:0;pointer-events:none;transition:transform .25s,opacity .2s}\\n.mn.on{transform:none;opacity:1;pointer-events:auto}\\n.mn button{display:block;font:300 17px \"Roboto Mono\",monospace;color:#ff1f5a;padding:9px 16px;border:0;border-radius:18px;background:none;letter-spacing:.02em;cursor:pointer}\\n.mn button.on{background:radial-gradient(closest-side,rgba(255,96,190,.35),rgba(255,96,190,0))}\\n.frost{position:absolute;left:0;right:0;bottom:0;height:150px;z-index:15;pointer-events:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.55));-webkit-mask-image:linear-gradient(180deg,transparent,#000 38%);mask-image:linear-gradient(180deg,transparent,#000 38%)}\\n.line{position:absolute;inset:0;z-index:6;display:none;touch-action:none}\\n.line.on{display:block}\\n.it{position:absolute;left:0;top:0;will-change:transform;cursor:pointer;transform-origin:50% 50%}\\n.it img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}\\n.it .aw{position:absolute;right:-8px;top:-10px;font:400 8.5px \"Roboto Mono\",monospace;background:#f3db4a;padding:3px 8px;border-radius:999px;border:1px solid #222;white-space:nowrap;opacity:0;transition:opacity .2s}\\n.it.focus .aw{opacity:1}\\n.it img{pointer-events:none}\\n\\n.lc{position:absolute;left:0;right:0;display:flex;justify-content:center;gap:4px;z-index:9;pointer-events:none;transition:opacity .2s}\\n.lc span{font:300 9px \"Roboto Mono\",monospace;letter-spacing:.04em;color:#222;background:#fff;border:1px solid #222;border-radius:999px;padding:2px 7px}\\n.lt{position:absolute;left:0;right:0;text-align:center;z-index:9;pointer-events:none;transition:opacity .2s}\\n.lt b{display:block;font:300 17px \"Roboto Mono\",monospace;letter-spacing:-.02em}\\n.lt span{display:block;font:300 11px/1.5 \"Roboto Mono\",monospace;color:#6a6a72;margin-top:3px}\\n.lt i{display:inline-block;margin-top:8px;font:400 10px \"Roboto Mono\",monospace;font-style:normal;background:#f3db4a;padding:4px 10px;border-radius:999px;border:1px solid #222}\\n.go{position:absolute;left:50%;transform:translate(-50%,-50%);font:300 11px \"Roboto Mono\",monospace;letter-spacing:.08em;color:#fff;background:#111;padding:9px 14px;border-radius:999px;border:0;white-space:nowrap;z-index:10;transition:opacity .2s}\\n.rb{width:56px;height:56px;border:0;border-radius:50%;cursor:pointer;padding:0;background:radial-gradient(circle closest-side,#6181ef 0 42%,#5fae8a 52%,#5cc24a 58%,#e6dc45 68%,#f2a13c 78%,#ee6b3c 88%,rgba(238,107,60,0) 100%);filter:blur(1.2px);transition:transform .3s}\\n.rb{touch-action:none;will-change:transform}\\n.lc{display:none!important}\\n.cats button.on{border-color:#222}\\n@keyframes rbp{50%{filter:blur(1.2px) saturate(1.5) brightness(1.08)}}\\n.tl{position:absolute;left:50%;top:-14px;margin-left:-6px;font:400 9px \"Roboto Mono\",monospace;letter-spacing:.06em;color:#fff;background:#111;padding:4px 9px;border-radius:999px;opacity:0;transform:translate(-50%,4px);transition:opacity .2s,transform .2s;pointer-events:none;z-index:2;white-space:nowrap}\\n.tl.on{opacity:1;transform:translate(-50%,0)}\\n.tl.live::before{content:\"\";display:inline-block;width:6px;height:6px;border-radius:50%;background:#5cc24a;margin-right:6px;vertical-align:1px}\\n.cats{position:absolute;top:calc(env(safe-area-inset-top) + 92px);left:0;right:0;display:flex;justify-content:center;z-index:20}\\n.cats div{display:flex;border:1.2px solid #222;border-radius:40px;padding:3px;background:#fff;white-space:nowrap}\\n.cats button{font:300 10px \"Roboto Mono\",monospace;color:#222;padding:6px 9px;border-radius:40px;border:1.2px solid transparent;background:none;cursor:pointer;position:relative}\\n.cats>div{position:relative}\\n.cats .cnt{position:absolute;right:8px;top:calc(100% + 7px);font:400 9px \"Roboto Mono\",monospace;font-style:normal;letter-spacing:.04em;color:#222;opacity:0;transition:opacity .2s;pointer-events:none}\\n.cats .cnt.on{opacity:1}\\n.cats button.cur{border-color:#222;background:#222;color:#fff}\\n.cats button.cur::after{content:\"\\xd7\";margin-left:5px;font-size:11px;line-height:0}\\n\\n#stage{position:absolute;inset:0;z-index:5;perspective:760px;perspective-origin:50% 8%}\\n.c{position:absolute;left:0;top:0;background-size:cover;background-position:center;border-radius:3px;will-change:transform;cursor:pointer}\\n.mc{position:absolute;left:14px;right:14px;bottom:calc(env(safe-area-inset-bottom) + 18px);height:84px;border-radius:42px;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 26px 0 30px;background:rgba(247,247,247,.78);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);box-shadow:0 0 22px 12px rgba(247,247,247,.78),0 16px 40px -10px rgba(60,50,90,.12)}\\n.goat{cursor:pointer;width:58px;height:64px;background:url(https://framerusercontent.com/images/JzHeoNpDK7Rxh8hvuf1kpAtRCNU.png) center/contain no-repeat;transform:scaleX(-1);opacity:.9}\\n.tg{position:relative;width:76px;height:54px;border:0;background:none;cursor:pointer;padding:0}\\n.tg i{position:absolute;left:4px;right:0;top:12px;height:30px;border:1.6px solid #111;border-radius:20px;background:#e3e3e3}\\n.tg em{position:absolute;top:0;right:22px;width:54px;height:54px;border:1.6px solid #111;border-radius:50%;background:#e3e3e3;transition:right .3s}\\n.tg em::after{content:\"\";position:absolute;left:6px;right:6px;top:11px;bottom:11px;border-radius:50%;border:1.6px solid #111;background:#6655ff;transition:background .3s}\\n.tg.l em{right:0}.tg.l em::after{background:#f3db4a}\\n.tg small{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:2;font:400 9px/1 \"Roboto Mono\",monospace;letter-spacing:.02em;color:#fff}.tg.l small{color:#111}.tg.l small{color:#111}\\n.say{pointer-events:none;position:absolute;bottom:calc(env(safe-area-inset-bottom) + 128px);left:50%;transform:translateX(-30%);font:300 11px \"Roboto Mono\",monospace;background:#fff;border:1.3px solid #222;border-radius:12px;padding:6px 10px;z-index:31;width:max-content;max-width:min(270px,80vw);text-align:center;transition:opacity .4s}\\n.say::after{content:\"\";position:absolute;left:30%;bottom:-6px;width:9px;height:9px;background:#fff;border-right:1.3px solid #222;border-bottom:1.3px solid #222;transform:rotate(45deg)}\\n.say.off{opacity:0}\\n.ask{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 112px);left:50%;transform:translateX(-50%) translateY(6px);width:min(270px,82vw);font:300 11px/1.45 \"Roboto Mono\",monospace;background:#fff;border:1.3px solid #222;border-radius:14px;padding:9px 12px 10px;z-index:32;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center}\\n.ask.on{opacity:1;pointer-events:auto;transform:translateX(-50%)}\\n.ask::after{content:\"\";position:absolute;left:50%;bottom:-6px;width:9px;height:9px;background:#fff;border-right:1.3px solid #222;border-bottom:1.3px solid #222;transform:rotate(45deg)}\\n.ask div{display:flex;justify-content:center;gap:8px;margin-top:8px}\\n.ask button{font:400 10px \"Roboto Mono\",monospace;letter-spacing:.04em;border:1.2px solid #222;border-radius:999px;padding:6px 14px;background:#fff;color:#222;cursor:pointer}\\n.ask button.y{background:#222;color:#fff}\\n.veil{position:absolute;inset:0;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);background:rgba(255,255,255,.12);z-index:47;opacity:0;pointer-events:none;transition:opacity .3s}\\n.veil.on{opacity:1;pointer-events:auto}\\n.sheet{position:absolute;left:8px;right:8px;bottom:8px;top:calc(env(safe-area-inset-top) + 80px);border-radius:30px;background:linear-gradient(165deg,rgba(255,255,255,.66),rgba(240,236,250,.42) 60%,rgba(255,255,255,.55));backdrop-filter:blur(24px) saturate(1.6);-webkit-backdrop-filter:blur(24px) saturate(1.6);border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),0 -10px 40px -20px rgba(60,50,90,.3);z-index:48;padding:14px 22px 22px;transform:translateY(105%);transition:transform .35s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column}\\n.sheet.on{transform:none}\\n.grab{width:40px;height:4px;border-radius:4px;background:#d4d4da;margin:0 auto 14px;flex:none}\\n.sh{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;flex:none}\\n.sh b{font:500 15px \"Roboto Mono\",monospace}\\n.x{width:36px;height:36px;border-radius:50%;border:0;background:linear-gradient(180deg,#fff,#eae9ef);box-shadow:inset 0 1px 1px #fff,0 2px 6px -2px rgba(120,110,150,.3);font:13px sans-serif;color:#555;cursor:pointer}\\n.body{overflow-y:auto;touch-action:pan-y;flex:1}\\n.lead{font:300 16px/1.45 system-ui,sans-serif;margin-bottom:16px}\\n.h3{font:400 11px \"Roboto Mono\",monospace;letter-spacing:.04em;margin:16px 0 6px}\\n.li{font:300 13px/1.6 system-ui,sans-serif;color:#55555c}\\n.cv{margin-top:16px;font:400 15px system-ui,sans-serif}\\n.lp{display:flex;justify-content:center;margin:2px 0 14px}\\n.lp div{display:flex;border:1.2px solid #222;border-radius:40px;padding:3px}\\n.lp button{font:300 11px \"Roboto Mono\",monospace;padding:6px 12px;border-radius:40px;border:1.2px solid transparent;background:none;cursor:pointer}\\n.lp button.on{border-color:#222}\\n.blob{height:300px;border-radius:16px;background:#141418;position:relative;overflow:hidden}\\n.blob i{position:absolute;border-radius:50%;animation:fl 5s ease-in-out infinite}\\n@keyframes fl{50%{transform:translateY(-10px) scale(1.04)}}\\n.booth{height:300px;border-radius:16px;background:#2a1414;display:none;align-items:center;justify-content:center;color:#f3e3c8;font:300 12px \"Roboto Mono\",monospace;text-align:center;padding:20px}\\n.note{margin-top:14px;font:300 12px/1.5 system-ui,sans-serif;color:#6a6a72}\\n.toast{position:absolute;left:50%;top:calc(env(safe-area-inset-top) + 110px);transform:translateX(-50%);background:#111;color:#fff;font:300 11px \"Roboto Mono\",monospace;padding:8px 14px;border-radius:999px;z-index:70;opacity:0;transition:opacity .3s;pointer-events:none;white-space:nowrap}\\n.toast.on{opacity:1}\\n@media (prefers-reduced-motion:reduce){}\\n</style></head><body>\\n<div id=\"app\">\\n <div class=\"hd\"><div class=\"nm\" id=\"nm\">DİDE SEVİN\\xc7OK</div><button class=\"mb\" id=\"mb\" aria-label=\"Menu\"><i></i><i></i></button></div>\\n <div class=\"cats\"><div id=\"cats\"><button data-c=\"av\">AUDIOVISUALS</button><button data-c=\"in\">INTERACTION</button><button data-c=\"br\">GRAPHIC</button><button data-c=\"ux\">UX/UI</button></div></div>\\n <div id=\"stage\"></div>\\n <div class=\"line\" id=\"line\"></div><button class=\"go\" id=\"go\" style=\"opacity:0;pointer-events:none\">VIEW PROJECT →</button><div class=\"lc\" id=\"lc\" style=\"opacity:0\"></div><div class=\"lt\" id=\"lt\" style=\"opacity:0\"><b id=\"ltT\"></b><span id=\"ltD\"></span></div>\\n <div class=\"frost\"></div>\\n <div class=\"say off\" id=\"say\">psst… tilt to go through projects</div>\\n <div class=\"ask\" id=\"ask\">psst… allow motion? then just tilt through projects ✧<div><button class=\"y\" id=\"askY\">allow</button><button id=\"askN\">later</button></div></div>\\n <div class=\"mc\" id=\"mc\"><span class=\"tl\" id=\"tl\">TILT ON</span><button class=\"rb\" id=\"tilt\" aria-label=\"Tilt to scroll\"></button><div class=\"goat\" id=\"goat\"></div><button class=\"tg\" id=\"tg\" aria-label=\"Wheel or line\"><i></i><em><small id=\"tgL\">WHEEL</small></em></button></div>\\n <div class=\"dim\" id=\"dim\"></div>\\n <div class=\"mn\" id=\"mn\"><button data-go=\"lab\">LAB</button><button data-go=\"about\">ABOUT</button></div>\\n <div class=\"veil\" id=\"veil\"></div>\\n <div class=\"sheet\" id=\"about\"><div class=\"grab\"></div><div class=\"sh\"><b>ABOUT</b><button class=\"x\" data-x>✕</button></div><div class=\"body\">\\n  <div class=\"lead\">Hello ✧ I am Dide, an interaction designer with an industrial design background.</div>\\n  <div class=\"h3\">WORK</div><div class=\"li\">Experience Designer \\xb7 Tellart, Amsterdam<br>Creative Designer \\xb7 Field.io, Berlin<br>Freelance Visual Designer \\xb7 Clown 4 All</div>\\n  <div class=\"h3\">RECOGNITION</div><div class=\"li\">UX Design Award Nominee \\xb7 Soune 2024<br>UX Design Award Nominee \\xb7 Co-Act 2024</div>\\n  <div class=\"cv\">˙⟡ Download my CV ⋆˙⟡</div>\\n  <div class=\"h3\" style=\"margin-top:22px\">SAY HI</div><div class=\"li\">A project, an idea, or just hello. I\\'ll write back ✧</div>\\n </div></div>\\n <div class=\"sheet\" id=\"lab\"><div class=\"grab\"></div><div class=\"sh\"><b>LAB</b><button class=\"x\" data-x>✕</button></div><div class=\"body\">\\n  <div class=\"lp\"><div><button class=\"on\" data-l=\"blob\">3D BLOB FOUNDRY</button><button data-l=\"booth\">PHOTOBOOTH</button></div></div>\\n  <div class=\"blob\" id=\"blob\"><i style=\"width:160px;height:96px;left:12%;top:32%;background:radial-gradient(circle at 35% 30%,#fff,#f5a6d0 35%,#c06fe6 75%)\"></i><i style=\"width:76px;height:76px;left:58%;top:18%;background:radial-gradient(circle at 35% 30%,#fff,#f5a6d0 40%,#c06fe6 80%);animation-delay:-1.5s\"></i><i style=\"width:62px;height:62px;left:54%;top:58%;background:radial-gradient(circle at 35% 30%,#fff,#f5a6d0 40%,#c06fe6 80%);animation-delay:-3s\"></i></div>\\n  <div class=\"booth\" id=\"booth\">PHOTOBOOTH<br><br>Telefonda \\xf6n kamerayla burada a\\xe7ılır</div>\\n  <div class=\"note\">Telefonda ara\\xe7 tam ekran a\\xe7ılır.</div>\\n </div></div>\\n <div class=\"toast\" id=\"toast\"></div>\\n</div>\\n<script>\\n{\\nconst P=[{\"t\":\"LOST&FOUND\",\"s\":\"lost-and-found\",\"d\":\"Digital environment created from 3D-scanned nature\",\"img\":\"https://framerusercontent.com/images/q7pakVH88f55DvN6P6M7eJPInM.gif\",\"a\":1,\"c\":[\"av\"]},{\"t\":\"POST OBJ\",\"fit\":\"contain\",\"s\":\"post-obj\",\"d\":\"Expressions of non-verbal communication\",\"img\":\"https://framerusercontent.com/images/LZ45SG7foITjVGcD3oUWKrmuzY.gif\",\"a\":1,\"c\":[\"in\",\"br\"]},{\"t\":\"SOUNE\",\"s\":\"soune\",\"d\":\"Tool for Focus Habits\",\"img\":\"https://framerusercontent.com/images/gG60Bq93KPoW5Si2Bfu2I549w.png?scale-down-to=2048\",\"a\":1.5741,\"c\":[\"in\"],\"aw\":1},{\"t\":\"CLOWN4ALL\",\"s\":\"clown4all\",\"d\":\"Visual Identity for a Clown Collective\",\"img\":\"https://framerusercontent.com/images/WKkFG3sQr5s2PQuE4EMbKPkPaFA.jpg?scale-down-to=2048\",\"a\":0.8,\"c\":[\"br\"]},{\"t\":\"GROOVE\",\"s\":\"groove\",\"d\":\"3D Motion + Material Study\",\"img\":\"https://framerusercontent.com/images/E8rgdnIlNqhChUIMVRvvf4VyTY.gif\",\"a\":1.778,\"c\":[\"av\"]},{\"t\":\"SERVO SOUND\",\"s\":\"servo-sound\",\"d\":\"Haptic Sounds with Arduino+Servo Motor\",\"img\":\"https://framerusercontent.com/images/4V1VUVJSZigHGmK7rjAqixM1UM.png?scale-down-to=2048\",\"a\":1.2786,\"c\":[\"in\"]},{\"t\":\"WEIRD BIRDS\",\"s\":\"weird-birds\",\"d\":\"3D Motion + Material\",\"img\":\"https://framerusercontent.com/images/gEkvCahUPiLRaXeKApHm1m04Dc.gif\",\"a\":1.778,\"c\":[\"av\"]},{\"t\":\"EXPERIENCE ARCHIVE\",\"s\":\"experience-archive\",\"d\":\"Interactive Archive for Sharing and Learning from Experiences\",\"img\":\"https://framerusercontent.com/images/Mlr0PqzsGm6OWrbaqdeLA4CGY.png?scale-down-to=2048\",\"a\":1.5496,\"c\":[\"ux\"]},{\"t\":\"LINES\",\"s\":\"lines\",\"d\":\"Organic form study in TouchDesigner\",\"img\":\"https://framerusercontent.com/images/zJ2fErqbrbbAiVQ1wrlJFRCO2xo.png?scale-down-to=2048\",\"a\":1,\"c\":[\"av\"]},{\"t\":\"BOND\",\"s\":null,\"d\":\"Plant care companion for children\",\"img\":\"https://framerusercontent.com/images/R9x8dmkBu6TAUcEvrpwF1drVM.png?scale-down-to=2048\",\"a\":1.1099,\"c\":[\"in\"],\"soon\":1}];\\nconst $=id=>document.getElementById(id);\\nconst EXT=/*EXT*/false;\\nconst app=$(\"app\"),stage=$(\"stage\"),line=$(\"line\");\\nlet mode=\"wheel\";const cats=new Set();\\nconst isOn=p=>!cats.size||p.c.some(c=>cats.has(c));\\nlet mk=\"\",mt=null;const sup=new Set();   // sup: categories you switched off for the project in focus\\nconst markCats=p=>{if(p&&p.t!==mt){mt=p.t;sup.clear()}const k=p?p.t+\"|\"+p.c.filter(c=>!sup.has(c)).join():\"\";if(k===mk)return;mk=k;\\n [...$(\"cats\").children].forEach(b=>b.classList.toggle(\"on\",!!p&&p.c.includes(b.dataset.c)&&!sup.has(b.dataset.c)))};   // the project in focus lights up its categories in the bar\\nconst toast=m=>{const t=$(\"toast\");t.textContent=m;t.classList.add(\"on\");clearTimeout(t._h);t._h=setTimeout(()=>t.classList.remove(\"on\"),2200)};\\nconst openProject=p=>{if(p.soon){toast(\"Coming soon 🔧\");return}if(p.s){try{parent.postMessage({sphereGo:\"/work/\"+p.s+\"/copy\"},\"*\")}catch(_){}}else toast(\"Proje sayfası a\\xe7ılır\")};\\nconst W=()=>app.clientWidth,H=()=>app.clientHeight;\\nlet G=null;const geo=()=>{if(G)return G;const g={mc:$(\"mc\").getBoundingClientRect().top,cats:$(\"cats\").getBoundingClientRect().bottom};if(g.mc>0)G=g;return g};   // measured once, not every frame\\nlet dirty=true;\\n\\n/* wheel: an endless deck of cards standing one behind the other, all at the same angle, seen from a little above.\\n   The front card sits close to the remote; dragging down drops it, the next one comes forward */\\nconst D=[];for(let k=0;k<(P.length<6?2:1);k++)P.forEach((p,i)=>D.push(i));\\nconst ND=D.length,wrapN=(d,n)=>((d%n)+n*1.5)%n-n/2;\\nconst cards=D.map((p,i)=>{const e=document.createElement(\"div\");e.className=\"c\";e.style.backgroundImage=`url(${P[p].img})`;if(P[p].fit){e.style.backgroundSize=P[p].fit;e.style.backgroundRepeat=\"no-repeat\";e.style.backgroundColor=\"#fff\"}e.dataset.i=i;stage.appendChild(e);return e});\\nlet pos=0,tgt=0,pv=0,frontRect=null,lt0=0;   // lt0: 0 = wheel, 1 = line, in between while morphing\\nconst fidx=()=>((Math.round(pos)%ND)+ND)%ND;\\nfunction drawDeck(){\\n const cw=Math.min(W()*.86,420),ch=cw*.62,x=W()/2-cw/2;\\n const mcTop=geo().mc,base=mcTop-ch-42;   // front card: a comfortable gap above the remote\\n frontRect={x,y:base,w:cw,h:ch};\\n if(lt0<.5)markCats(Math.abs(pos-Math.round(pos))<.2?P[D[fidx()]]:null);\\n let moving=false;\\n const el=(performance.now()-(window._nt0||(window._nt0=performance.now())))/2400-.5,nud=lt0<.01&&el>0&&el<1?Math.sin(el*Math.PI):0;if(el<1.05)moving=true;   // once, on arrival: the whole deck leans gently towards you\\n cards.forEach((e,i)=>{const d=wrapN(pos-i,ND);   // d>0: behind the front card, d<0: already dropped\\n  let z,y,o;\\n  if(d>=0){z=-d*150;y=base;o=Math.max(0,Math.min(1,(5.5-d)/1.5))}\\n  else{z=-d*50;y=base-d*H()*.28;o=Math.max(0,1+d*1.2)}\\n  const on=isOn(P[D[i]]),lt=cats.size&&on?1:0;\\n  const nl=(e._l||0)+(lt-(e._l||0))*.16;if(Math.abs(nl-lt)>.002)moving=true;e._l=nl;\\n  y-=nl*ch*(.14+.07*Math.sqrt(Math.min(5,Math.max(0,d))));\\n  {const py=H()*.08,minTop=geo().cats+16;y=Math.max(y,py+(minTop-py)*(760-z)/760)}   // never climb into the category bar: keep a gap below it   // archive: chosen cards stand up out of the deck, the further back the higher, so they read as a staircase from back to front\\n  if(lt0>0){if(Math.abs(d)<.5)o=0;else{o*=1-lt0;y+=lt0*60}}   // morphing to the line: the front card becomes the line\\'s focus, the rest sink away\\n  if(e._w!==cw){e._w=cw;e.style.width=cw+\"px\";e.style.height=ch+\"px\"}\\n  const nn=d>=0?nud:0;e.style.transform=`translate3d(${x}px,${y-nn*3}px,${z+nn*28}px) rotateX(${6-nn*3}deg)`;\\n  e.style.zIndex=500-Math.round(d*20);e.style.opacity=o.toFixed(3);e.style.visibility=o<.01?\"hidden\":\"visible\";\\n  e.style.filter=d>.5?`brightness(${Math.max(.6,1-d*.06).toFixed(2)})`:\"none\"});\\n return moving}\\n\\n/* line: an endless strip, three in view. The focused project shows its whole image (true proportions);\\n   the neighbours are smaller, cropped to one size, and tip back a little like they come off the wheel */\\nconst L=[];for(let k=0;k<(P.length<6?2:1);k++)P.forEach((p,i)=>L.push(i));\\nconst NL=L.length,wrap=d=>wrapN(d,NL);\\nconst items=L.map((p,i)=>{const e=document.createElement(\"div\");e.className=\"it\";e.dataset.i=i;e.innerHTML=`<img src=\"${P[p].img}\" alt=\"\" draggable=\"false\" style=\"object-fit:${P[p].fit||\"cover\"}\">${P[p].aw?\\'<span class=\"aw\">★ UX Design Award 2024 \\xb7 Nominee</span>\\':\\'\\'}`;line.appendChild(e);return e});\\nlet lpos=0,ltgt=0,first=0,lpv=0;\\nconst lidx=()=>((Math.round(lpos)%NL)+NL)%NL;\\nfunction lineTo(p){let best=0,bd=1e9;L.forEach((q,i)=>{const dd=Math.abs(wrap(i-ltgt));if(q===p&&dd<bd){bd=dd;best=i}});ltgt=Math.round(ltgt)+Math.round(wrap(best-ltgt))}\\nfunction sizeAt(i,ad){   // focus: real ratio inside a box; neighbour: fixed crop\\n const cwC=Math.min(W()*.7,330),cwN=Math.min(W()*.5,236),a=P[L[i]].a||1.6;\\n let wC=cwC,hC=wC/a;const maxH=Math.min(cwC*.95,geo().mc-geo().cats-170);if(hC>maxH){hC=maxH;wC=hC*a}   // tall images shrink on short screens so the caption keeps its room\\n const wN=cwN,hN=cwN*.62,f=Math.min(1,ad);\\n return [wC+(wN-wC)*f,hC+(hN-hC)*f]}\\nfunction drawLine(){\\n const top=geo().cats+24,gT=24,gB=86;\\n const c0=Math.floor(lpos),fr=lpos-c0,ys={},sz={};\\n for(let k=-2;k<=3;k++){const i=((c0+k)%NL+NL)%NL;sz[k]=sizeAt(i,Math.abs(k-fr))}\\n ys[0]=0;\\n for(let k=1;k<=3;k++){const dPrev=Math.abs(k-1-fr),g=gT+(gB-gT)*Math.max(0,1-dPrev);ys[k]=ys[k-1]+sz[k-1][1]/2+g+sz[k][1]/2}\\n for(let k=-1;k>=-2;k--){const dk=Math.abs(k-fr),g=gT+(gB-gT)*Math.max(0,1-dk);ys[k]=ys[k+1]-sz[k+1][1]/2-g-sz[k][1]/2}\\n const hN=Math.min(W()*.5,236)*.62,hc0=sizeAt(lidx(),0)[1],cy=Math.min(top+hN+gT+hc0/2,geo().mc-84-hc0/2);   // name + description always sit clear of the remote\\n const shift=cy-(ys[0]+(ys[1]-ys[0])*fr);\\n const shown=new Set();\\n for(let k=-2;k<=3;k++){const i=((c0+k)%NL+NL)%NL,e=items[i],d=k-fr,ad=Math.abs(d);\\n  if(ad>1.7||shown.has(i))continue;shown.add(i);\\n  let [w,hh]=sz[k],on=isOn(P[L[i]]),rx=Math.max(-14,Math.min(14,-d*10)),X=W()/2-w/2,Y=shift+ys[k]-hh/2;\\n  let o=ad<.5?1:(.5+.5*Math.max(0,1-ad))*Math.min(1,(1.7-ad)/.7);   // the focused one stays at full strength\\n  if(lt0<1&&frontRect){const t=lt0;\\n   if(ad<.5){X=frontRect.x+(X-frontRect.x)*t;Y=frontRect.y+(Y-frontRect.y)*t;w=frontRect.w+(w-frontRect.w)*t;hh=frontRect.h+(hh-frontRect.h)*t;rx=6*(1-t)+rx*t}   // the deck\\'s front card glides into place\\n   else{Y=cy+(Y+hh/2-cy)*(.55+.45*t)-hh/2;o*=t*t}}   // neighbours unfold from the focus\\n  if(e.style.display)e.style.display=\"\";const ws=w.toFixed(1),hs=hh.toFixed(1);if(e._w!==ws||e._h!==hs){e._w=ws;e._h=hs;e.style.width=ws+\"px\";e.style.height=hs+\"px\"}\\n  e.style.transform=`translate(${X}px,${Y}px) perspective(700px) rotateX(${rx.toFixed(1)}deg)`;\\n  e.style.opacity=o.toFixed(3);e.classList.toggle(\"focus\",ad<.5)}\\n items.forEach((e,i)=>{if(!shown.has(i))e.style.display=\"none\"});\\n const c=lidx(),near=Math.abs(lpos-Math.round(lpos))<.2,p=P[L[c]],hc=sizeAt(c,0)[1];\\n $(\"ltT\").textContent=p.t;$(\"ltD\").textContent=p.d;\\n const cn={av:\"AUDIOVISUALS\",in:\"INTERACTION\",br:\"BRAND\",ux:\"UX/UI\"},lc=$(\"lc\"),key=p.c.join();\\n if(lc._k!==key){lc._k=key;lc.innerHTML=p.c.map(c=>`<span>${cn[c]}</span>`).join(\"\")}\\n const show=near&&lt0>.85?1:0;if(lt0>=.5)markCats(show?p:null);\\n lc.style.top=(cy-hc/2-26)+\"px\";$(\"lt\").style.top=(cy+hc/2+10)+\"px\";$(\"go\").style.top=cy+\"px\";\\n lc.style.opacity=$(\"lt\").style.opacity=$(\"go\").style.opacity=show;\\n $(\"go\").style.pointerEvents=show?\"auto\":\"none\"}\\n$(\"go\").onclick=()=>openProject(P[L[lidx()]]);\\n$(\"nm\").onclick=()=>{menu(false);sheet(null);if(mode===\"line\"){first=L[lidx()];setMode(\"wheel\")}};   // the name takes you home to the wheel\\nlet ld=null,lm=0,lly=0,lv=0;\\nline.addEventListener(\"pointerdown\",e=>{ld=e.target;lm=0;lly=e.clientY;lv=0;line.setPointerCapture(e.pointerId)});\\nline.addEventListener(\"pointermove\",e=>{if(!ld)return;const dy=e.clientY-lly;lly=e.clientY;lm+=Math.abs(dy);if(lm>8){const d=-dy/180;lpos+=d;lv=d;ltgt=lpos;dirty=true}});\\nline.addEventListener(\"pointerup\",()=>{const t=ld;ld=null;\\n if(lm>8){ltgt=Math.round(lpos+lv*5);return}\\n const it=t&&t.closest&&t.closest(\".it\");if(!it)return;const d=Math.round(wrap(+it.dataset.i-lpos));\\n if(d===0)openProject(P[L[lidx()]]);else ltgt=Math.round(lpos)+d});\\n\\nfunction setMode(m){mode=m;const tg=$(\"tg\");dirty=true;tg.classList.toggle(\"l\",m===\"line\");$(\"tgL\").textContent=m===\"line\"?\"LINE\":\"WHEEL\";\\n if(m===\"line\"){lineTo(first);lpos=ltgt;line.classList.add(\"on\");cats.clear();sup.clear();[...$(\"cats\").children].forEach(b=>b.classList.remove(\"cur\"));mk=\"\";count()}\\n else{let best=Math.round(tgt),bd=1e9;D.forEach((q,i)=>{const dd=Math.abs(wrapN(i-tgt,ND));if(q===first&&dd<bd){bd=dd;best=Math.round(tgt)+Math.round(wrapN(i-tgt,ND))}});pos=tgt=best;stage.style.display=\"\"}\\n line.style.pointerEvents=m===\"line\"?\"\":\"none\"}\\n$(\"tg\").onclick=()=>{if(mode===\"wheel\")first=D[fidx()];else first=L[lidx()];setMode(mode===\"wheel\"?\"line\":\"wheel\")};\\n\\n/* touch on the deck: drag down = the front card drops, the next one comes forward; tap = open it in the line */\\nlet down=null,moved=0,ly=0,vel=0;\\nstage.addEventListener(\"pointerdown\",e=>{down=e.target;moved=0;ly=e.clientY;vel=0;stage.setPointerCapture(e.pointerId)});\\nstage.addEventListener(\"pointermove\",e=>{if(!down)return;const dy=e.clientY-ly;ly=e.clientY;moved+=Math.abs(dy);\\n if(moved>8){const d=-dy/110;pos+=d;vel=d;tgt=pos;dirty=true}});\\nstage.addEventListener(\"pointerup\",()=>{const t=down;down=null;\\n if(moved>8){tgt=Math.round(pos+vel*5);return}\\n if(t&&t.dataset.i!==undefined){const i=+t.dataset.i,d=Math.round(wrapN(pos-i,ND));if(d===0){first=D[i];setMode(\"line\")}else tgt=Math.round(tgt)-d}});\\n\\n/* categories: several can be on at once; a small count under the bar says how many projects are picked */\\n$(\"cats\").insertAdjacentHTML(\"beforeend\",\\'<i class=\"cnt\" id=\"cnt\"></i>\\');\\nconst count=()=>{const n=P.filter(p=>cats.size&&p.c.some(c=>cats.has(c))).length;const e=$(\"cnt\");if(n)e.textContent=n+\"/\"+P.length;e.classList.toggle(\"on\",!!cats.size)};\\n$(\"cats\").onclick=e=>{const b=e.target.closest(\"button\");if(!b||mode===\"line\")return;   // in the line the bar only shows the focused project\\'s categories\\n const c=b.dataset.c;\\n if(cats.has(c)){cats.delete(c);sup.add(c)}else cats.add(c);mk=\"\";   // tap once: filter (black with \\xd7); tap again: everything on that pill switches off\\n b.classList.toggle(\"cur\",cats.has(c));dirty=true;count();\\n if(mode===\"wheel\"&&cats.has(c)&&!isOn(P[D[fidx()]])){let best=null,bd=1e9;D.forEach((q,i)=>{if(!isOn(P[q]))return;const dd=wrapN(i-pos,ND);if(Math.abs(dd)<bd){bd=Math.abs(dd);best=dd}});if(best!==null)tgt=Math.round(pos)+Math.round(best)}   // bring the nearest card of that category to the front, even one that already went by\\n if(mode===\"line\"&&cats.size&&!isOn(P[L[lidx()]])){const i=P.findIndex(isOn);if(i>=0)lineTo(i)}};\\n\\n/* tilt + joystick.\\n   iPhone only hands out motion data after the visitor allows it, and only from a real tap (not a press-down),\\n   so the first tap anywhere asks once. The parent page also forwards its own readings, in case the frame gets none */\\nlet joy=0,jy0=null,jm=0,gotO=false,bet=null,b0=null,tiltOn=false,listen=false,betS=null,lastStep=0;\\nconst onBeta=v=>{if(v==null)return;gotO=true;bet=v;if(tiltOn&&b0==null)b0=v};\\nwindow.addEventListener(\"deviceorientation\",e=>onBeta(e.beta));\\nwindow.addEventListener(\"message\",e=>{if(e.data&&typeof e.data.tiltBeta===\"number\")onBeta(e.data.tiltBeta)});\\n/* tap the rainbow ball = tilt on / off. Turning it on takes the way you hold the phone right now as \"still\" */\\nfunction setTilt(on){tiltOn=on;const tl=$(\"tl\");b0=on?bet:null;betS=bet;lastStep=performance.now();   // the state shows as a pill over the goat\\n tl.textContent=on?\"TILT ON\":\"TILT OFF\";tl.classList.toggle(\"live\",on);tl.classList.add(\"on\");clearTimeout(tl._h);\\n if(!on){tl._h=setTimeout(()=>tl.classList.remove(\"on\"),1800);$(\"tilt\").style.transform=\"\"}\\n try{localStorage.setItem(\"dsTilt\",on?\"1\":\"0\")}catch(_){}}\\nlet granted=!(typeof DeviceOrientationEvent!==\"undefined\"&&DeviceOrientationEvent.requestPermission);\\nconst say=(t,ms)=>{const s=$(\"say\");s.textContent=t;s.classList.remove(\"off\");clearTimeout(s._h);s._h=setTimeout(()=>s.classList.add(\"off\"),ms)};\\nconst ask=o=>{$(\"ask\").classList.toggle(\"on\",o);clearTimeout(ask._t);if(o){$(\"say\").classList.add(\"off\");ask._t=setTimeout(later,9000)}};\\nconst later=()=>{ask(false);say(\"ok! tap me anytime for tilt ✧\",3800)};   // no answer or \"later\": the goat says where to find it\\n$(\"askY\").onclick=()=>{ask(false);tiltTap(true)};$(\"askN\").onclick=later;\\nlet remembered=false;try{remembered=localStorage.getItem(\"dsTilt\")===\"1\"}catch(_){}\\nif(remembered&&granted)setTimeout(()=>{if(!tiltOn)tiltTap(true)},600);   // Android: tilt was on last time, turn it back on\\nelse setTimeout(()=>{if(!tiltOn)ask(true)},1600);   // the goat asks for the motion sensor\\nfunction tiltTap(fromGoat){if(tiltOn){setTilt(false);return}\\n if(!granted&&!fromGoat){ask(true);return}\\n const go=()=>{if(!listen){listen=true;try{parent.postMessage({tiltListen:1},\"*\")}catch(_){}}setTilt(true);setTimeout(()=>{if(!gotO&&tiltOn){setTilt(false);toast(\"no tilt data from this browser\")}},1500)};\\n const R=typeof DeviceOrientationEvent!==\"undefined\"&&DeviceOrientationEvent.requestPermission;\\n if(R)DeviceOrientationEvent.requestPermission().then(s=>{if(s===\"granted\"||gotO){granted=true;go()}else say(\"the browser said no 🙈 close this tab, open the page again and tap allow\",6000)}).catch(err=>toast(\"motion: \"+(err&&err.name||\"blocked\")));\\n else go()}\\nconst rb=$(\"tilt\");\\nrb.addEventListener(\"pointerdown\",e=>{jy0=e.clientY;jm=0;rb.setPointerCapture(e.pointerId);$(\"say\").classList.add(\"off\")});\\nrb.addEventListener(\"pointermove\",e=>{if(jy0==null)return;const dy=Math.max(-26,Math.min(26,e.clientY-jy0));jm=Math.max(jm,Math.abs(dy));joy=dy/26;rb.style.transform=`translateY(${dy}px) scale(1.06)`});\\nconst joyEnd=()=>{if(jy0==null)return;jy0=null;rb.style.transition=\"transform .25s\";rb.style.transform=\"\";setTimeout(()=>rb.style.transition=\"\",260);joy=0};\\nrb.addEventListener(\"click\",()=>{if(jm<6)tiltTap()});   // a real tap (not a drag) toggles tilt; the click is what iPhone accepts for the permission\\nrb.addEventListener(\"pointerup\",joyEnd);rb.addEventListener(\"pointercancel\",joyEnd);\\nconst TIPS=[\"tilt your phone to flip through projects ✧\",\"tap a card to see it up close\",\"no tilt? drag the rainbow up or down 🌈\",\"pick a category up top to lift its cards\"];let tipI=0;\\n$(\"goat\").onclick=()=>{if(tiltOn)setTilt(false);else if(!granted){ask(true);return}else tiltTap();say(TIPS[tipI++%TIPS.length],4200)};   // the goat switches tilt and shares one tip per tap   // the goat is a tilt switch too\\n\\n/* menu + sheets */\\nconst menu=o=>{$(\"mb\").classList.toggle(\"open\",o);$(\"mn\").classList.toggle(\"on\",o);$(\"dim\").classList.toggle(\"on\",o)};\\n$(\"mb\").onclick=()=>menu(!$(\"mn\").classList.contains(\"on\"));$(\"dim\").onclick=()=>menu(false);\\nconst sheet=id=>{[\"about\",\"lab\"].forEach(s=>$(s).classList.toggle(\"on\",s===id));$(\"veil\").classList.toggle(\"on\",!!id);\\n [...$(\"mn\").querySelectorAll(\"button\")].forEach(b=>b.classList.toggle(\"on\",b.dataset.go===id))};\\n$(\"mn\").onclick=e=>{const b=e.target.closest(\"button\");if(!b)return;menu(false);if(EXT){try{parent.postMessage({openSheet:b.dataset.go},\"*\")}catch(_){}}else sheet(b.dataset.go)};   // on the site, the real About / Lab open as Framer overlays\\ndocument.querySelectorAll(\"[data-x]\").forEach(b=>b.onclick=()=>sheet(null));$(\"veil\").onclick=()=>sheet(null);\\ndocument.querySelectorAll(\".sheet\").forEach(s=>{let y0=null;const g=s.querySelector(\".grab\"),h=s.querySelector(\".sh\");\\n [g,h].forEach(el=>{el.addEventListener(\"pointerdown\",e=>{if(e.target.closest(\".x\"))return;y0=e.clientY;s.style.transition=\"none\";el.setPointerCapture(e.pointerId)});   // the ✕ stays a plain button\\n el.addEventListener(\"pointermove\",e=>{if(y0==null)return;s.style.transform=`translateY(${Math.max(0,e.clientY-y0)}px)`});\\n el.addEventListener(\"pointerup\",e=>{if(y0==null)return;const d=e.clientY-y0;y0=null;s.style.transition=\"\";s.style.transform=\"\";if(d>90)sheet(null)})})});\\n$(\"lab\").querySelector(\".lp\").onclick=e=>{const b=e.target.closest(\"button\");if(!b)return;[...b.parentNode.children].forEach(x=>x.classList.toggle(\"on\",x===b));\\n $(\"blob\").style.display=b.dataset.l===\"blob\"?\"\":\"none\";$(\"booth\").style.display=b.dataset.l===\"booth\"?\"flex\":\"none\"};\\n\\n/* loop: only redraws while something moves */\\nfunction loop(){\\n if(bet!=null)betS=betS==null?bet:betS+(bet-betS)*.12;   // smoothed angle: hand tremble doesn\\'t count\\n const tl=tiltOn&&betS!=null&&b0!=null?(betS-b0):0, dz=Math.abs(tl)<10?0:Math.max(-1,Math.min(1,(tl-Math.sign(tl)*10)/20));   // 10\\xb0 of calm around the angle you hold it at\\n const now=performance.now();if(dz&&!joy&&now-lastStep>900-680*Math.pow(Math.abs(dz),1.6)){lastStep=now;if(mode===\"wheel\")tgt=Math.round(tgt)-Math.sign(dz);else ltgt=Math.round(ltgt)+Math.sign(dz)}   // tilt walks one project at a time, a bit quicker the further you tip\\n const push=joy, sp=Math.sign(push)*push*push*.09;\\n if(tiltOn&&jy0==null){const ty=(dz*20).toFixed(1);if(rb._ty!==ty){rb._ty=ty;rb.style.transform=dz?`translateY(${ty}px)`:\"\"}}   // the ball leans with the phone\\n {const T=mode===\"line\"?1:0;if(lt0!==T){const n=lt0+(T-lt0)*.1;lt0=Math.abs(n-T)<.004?T:n;dirty=true;\\n   stage.style.display=lt0>.995?\"none\":\"\";line.classList.toggle(\"on\",lt0>.005);document.querySelector(\".frost\").style.opacity=(1-lt0).toFixed(3)}}\\n if(lt0>0&&lt0<1){drawDeck();drawLine();dirty=false}\\n else if(mode===\"wheel\"){if(!down){if(sp)tgt-=sp;else tgt=Math.round(tgt);pv+=(tgt-pos)*.05;pv*=.78;if(Math.abs(pv)>.0004||Math.abs(tgt-pos)>.002){pos+=pv;dirty=true}else if(pos!==tgt){pos=tgt;pv=0;dirty=true}}\\n  if(dirty){dirty=drawDeck()}}\\n else{if(!ld){if(sp)ltgt+=sp;else ltgt=Math.round(ltgt);lpv+=(ltgt-lpos)*.05;lpv*=.78;if(Math.abs(lpv)>.0004||Math.abs(ltgt-lpos)>.002){lpos+=lpv;dirty=true}else if(lpos!==ltgt){lpos=ltgt;lpv=0;dirty=true}}\\n  if(dirty){drawLine();dirty=false}}\\n requestAnimationFrame(loop)}\\nsetMode(\"wheel\");loop();addEventListener(\"resize\",()=>{G=null;dirty=true});\\n}\\n</script>\\n</body></html>\\n';/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PhoneLab(props){const propsRef=React.useRef(props);propsRef.current=props;const ext=!!(props.onAbout||props.onLab);const doc=React.useMemo(()=>HTML.replace(\"/*EXT*/false\",ext?\"true\":\"false\"),[ext]);const isStatic=useIsStaticRenderer();const frameRef=React.useRef(null);const router=useSiteRouter();const routerRef=React.useRef(router);routerRef.current=router;// fit exactly the part of the screen the browser leaves visible (Safari and Chrome put their bars in different places)\nconst[vv,setVv]=React.useState(null);React.useEffect(()=>{const v=window.visualViewport;const upd=()=>setVv({h:v?v.height:window.innerHeight,t:v?v.offsetTop:0});upd();window.addEventListener(\"resize\",upd);if(v){v.addEventListener(\"resize\",upd);v.addEventListener(\"scroll\",upd);}return()=>{window.removeEventListener(\"resize\",upd);if(v){v.removeEventListener(\"resize\",upd);v.removeEventListener(\"scroll\",upd);}};},[]);React.useEffect(()=>{const onMsg=e=>{const fr=frameRef.current;if(!fr||e.source!==fr.contentWindow)return;if(e.data&&e.data.tiltListen&&!window.__phoneLabTilt){window.__phoneLabTilt=1;window.addEventListener(\"deviceorientation\",ev=>{const w=frameRef.current&&frameRef.current.contentWindow;if(w&&typeof ev.beta===\"number\")w.postMessage({tiltBeta:ev.beta},\"*\");});}const sh=e.data&&e.data.openSheet;if(sh===\"about\"&&propsRef.current.onAbout){propsRef.current.onAbout();return;}if(sh===\"lab\"&&propsRef.current.onLab){propsRef.current.onLab();return;}const p=e.data&&e.data.sphereGo;if(typeof p!==\"string\"||!/^\\/work\\/[a-z0-9-]+\\/copy$/.test(p))return;const slug=p.split(\"/\")[2];try{const r=routerRef.current;const routes=r&&r.routes||{};const id=Object.keys(routes).find(k=>{const rp=routes[k]&&routes[k].path;return typeof rp===\"string\"&&rp.startsWith(\"/work/:\")&&rp.endsWith(\"/copy\");});if(id&&r.navigate){const key=(routes[id].path.match(/:([^/]+)/)||[])[1];r.navigate(id,undefined,key?{[key]:slug}:undefined);return;}}catch(err){}window.location.assign(p);};window.addEventListener(\"message\",onMsg);return()=>window.removeEventListener(\"message\",onMsg);},[]);return /*#__PURE__*/_jsx(\"div\",{style:isStatic?{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:\"#fff\"}:{position:\"fixed\",left:0,top:vv?vv.t:0,width:\"100vw\",height:vv?vv.h+\"px\":\"100dvh\",overflow:\"hidden\",background:\"#fff\",zIndex:60},children:isStatic?/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",font:\"300 13px 'Roboto Mono', monospace\",color:\"#9a9aa2\"},children:\"phone lab\"}):/*#__PURE__*/_jsx(\"iframe\",{ref:frameRef,title:\"Phone lab\",srcDoc:doc,allow:\"accelerometer; gyroscope; magnetometer\",style:{border:0,width:\"100%\",height:\"100%\",display:\"block\"}})});}addPropertyControls(PhoneLab,{onAbout:{type:ControlType.EventHandler,title:\"On About\"},onLab:{type:ControlType.EventHandler,title:\"On Lab\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PhoneLab\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PhoneLab.map"],"mappings":"A,wNAIG,SAAwBkB,EAAS,EAAM,CAAC,IAAMC,EAASnB,EAAaoB,CAAK,EAAE,EAAS,QAAQA,EAAM,IAAMC,EAAI,CAAC,EAAED,EAAM,SAASA,EAAM,OAAaE,EAAIrB,MAAkBsB,EAAK,QAAQ,eAAeF,EAAI,OAAO,OAAO,EAAE,CAACA,CAAG,CAAC,EAAQG,EAASP,EAAoB,EAAQQ,EAASzB,EAAa,IAAI,EAAQ0B,EAAOC,EAAc,EAAQC,EAAU5B,EAAa0B,CAAM,EAAE,EAAU,QAAQA,EAC5X,GAAK,CAACG,EAAGC,GAAO5B,EAAe,IAAI,EAAugD,OAArgDU,MAAoB,CAAC,IAAMmB,EAAEzB,EAAO,eAAqB0B,MAAQF,EAAM,CAAC,EAAEC,EAAEA,EAAE,OAAOzB,EAAO,YAAY,EAAEyB,EAAEA,EAAE,UAAU,CAAC,CAAC,EAAuH,OAArHC,EAAI,EAAE1B,EAAO,iBAAiB,SAAS0B,CAAG,EAAKD,IAAGA,EAAE,iBAAiB,SAASC,CAAG,EAAED,EAAE,iBAAiB,SAASC,CAAG,OAAa,CAAC1B,EAAO,oBAAoB,SAAS0B,CAAG,EAAKD,IAAGA,EAAE,oBAAoB,SAASC,CAAG,EAAED,EAAE,oBAAoB,SAASC,CAAG,EAAG,CAAE,EAAE,CAAC,CAAC,EAAEpB,MAAoB,CAAC,IAAMqB,EAAM,GAAG,CAAC,IAAMC,EAAGT,EAAS,QAAQ,GAAG,CAACS,GAAI,EAAE,SAASA,EAAG,cAAc,OAAU,EAAE,MAAM,EAAE,KAAK,YAAY,CAAC5B,EAAO,iBAAgB,EAAO,eAAe,EAAEA,EAAO,iBAAiB,oBAAoB,GAAI,CAAC,IAAM6B,EAAEV,EAAS,SAASA,EAAS,QAAQ,cAAiBU,GAAG,OAAOC,EAAG,MAAO,UAASD,EAAE,YAAY,CAAC,SAASC,EAAG,IAAI,EAAE,GAAG,CAAE,CAAC,GAAG,IAAMC,EAAG,EAAE,MAAM,EAAE,KAAK,UAAU,GAAGA,IAAK,SAASlB,EAAS,QAAQ,QAAQ,CAACA,EAAS,QAAQ,QAAQ,EAAE,MAAO,CAAC,GAAGkB,IAAK,OAAOlB,EAAS,QAAQ,MAAM,CAACA,EAAS,QAAQ,MAAM,EAAE,MAAO,CAAC,IAAMmB,EAAE,EAAE,MAAM,EAAE,KAAK,SAAS,GAAG,OAAOA,GAAI,UAAU,CAAC,6BAA6B,KAAKA,CAAC,EAAE,OAAO,IAAMC,EAAKD,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAME,EAAEZ,EAAU,QAAca,EAAOD,GAAGA,EAAE,QAAQ,CAAC,EAAQE,EAAG,OAAO,KAAKD,CAAM,CAAC,CAAC,KAAK,GAAG,CAAC,IAAME,EAAGF,EAAOG,IAAIH,EAAOG,EAAE,CAAC,KAAK,OAAO,OAAOD,GAAK,UAAUA,EAAG,WAAW,SAAS,GAAGA,EAAG,SAAS,OAAO,CAAE,CAAC,EAAE,GAAGD,GAAIF,EAAE,SAAS,CAAC,IAAMK,GAAKJ,EAAOC,EAAG,CAAC,KAAK,MAAM,UAAU,GAAG,CAAC,EAAA,CAAG,GAAGF,EAAE,SAASE,EAAG,IAAA,GAAUG,EAAI,EAAEA,GAAKN,CAAI,EAAE,IAAA,EAAS,EAAE,MAAO,CAAC,MAAW,CAAC,CAACjC,EAAO,SAAS,OAAOgC,CAAC,CAAE,EAA2C,OAAzChC,EAAO,iBAAiB,UAAU2B,CAAK,MAAY3B,EAAO,oBAAoB,UAAU2B,CAAK,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAK,MAAM,CAAC,MAAMT,EAAS,CAAC,GAAGJ,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,WAAW,MAAM,EAAE,CAAC,SAAS,QAAQ,KAAK,EAAE,IAAIS,EAAGA,EAAG,EAAE,EAAE,MAAM,QAAQ,OAAOA,EAAGA,EAAG,EAAE,KAAK,SAAS,SAAS,SAAS,WAAW,OAAO,OAAO,EAAE,EAAE,SAASL,EAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,KAAK,oCAAoC,MAAM,SAAS,EAAE,SAAS,WAAW,CAAC,EAAe,gBAAK,SAAS,CAAC,IAAIC,EAAS,MAAM,YAAY,OAAOH,EAAI,MAAM,yCAAyC,MAAM,CAAC,OAAO,EAAE,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,C,sDALthE,EAAcnB,QAA0B,MACxN,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIksEY,EAAoBG,EAAS,CAAC,QAAQ,CAAC,KAAKF,EAAY,aAAa,MAAM,UAAU,EAAE,MAAM,CAAC,KAAKA,EAAY,aAAa,MAAM,QAAQ,CAAC,CAAC,C"}