{"version":3,"file":"SnowButton.qQKqMkhc.mjs","names":["React.useEffect","p","React.useRef","_jsxs","_Fragment","_jsx","__esmMin","init_npm_react_18_3_1","l","p","c","init_jsx_runtime","ce","de","init_framer_ChujFWHC","addPropertyControls","RenderTarget","Link","ControlType","onFrame","startDraw","init_SantaCore","goTo","S","beatOf","el","e","n","PANEL_BEAT","useSnow","host","cv","opts","a","x","st","size","r","d","rnd","kick","f","q","enter","leave","focus","down","move","ro","off","now","dt","boost","E","cx","cy","dx","dy","snowCapsule","p$1","cls","inner","FLAKE","Drift","style","capsuleVars","own","SnowButton","props","colours","onClick","SNOW_CSS","Capsule","FONT_TEXT","FONT_DISPLAY","SNOW","BTN","GOLD","snow","init_SnowButton","b","className","height"],"sources":["https:/framerusercontent.com/modules/i1M0xEuCyjQMD6w36xD2/UHgyFnEcRhrPfQNNnxix/SnowButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget,Link}from\"framer\";import{S,onFrame,goTo,startDraw}from\"https://framerusercontent.com/modules/VCTyU5Ub0L3pD177aip4/V6beSSKGNq61oAKTqpAz/SantaCore.js\";// The snow-globe button: a little glass capsule with its own snow (prototype: .snowbtn and class SnowBtn, word for word).\n// The snow is drawn in the page's one frame loop, and only while the button's stop is on screen (the nav's: always).\nexport const FONT_TEXT='\"Hanken Grotesk\", \"Helvetica Neue\", Arial, sans-serif';export const FONT_DISPLAY='\"Elsie Swash Caps\", \"Iowan Old Style\", Georgia, serif';export const SNOW=\"#F7F2E7\"// defaults; on the page every instance gets the colour styles (var(--token-…))\n;export const BTN=[\"#6B5CFF\",\"#3A2BC4\",\"#1D1677\",\"#120D52\"];export const GOLD=\"#F4C46A\";const rnd=(a,b)=>b===undefined?Math.random()*a:a+Math.random()*(b-a);export const SNOW_CSS=\".ssb{position:relative;display:inline-flex;align-items:center;justify-content:center;height:54px;padding:0 30px;border-radius:999px;text-decoration:none;cursor:pointer;\"+\"color:var(--ssb-text);background:radial-gradient(120% 160% at 50% -20%,var(--ssb-1) 0%,var(--ssb-2) 40%,var(--ssb-3) 80%,var(--ssb-4) 100%);\"+\"border:1px solid rgba(255,255,255,.38);overflow:hidden;isolation:isolate;transition:transform .5s cubic-bezier(.2,.8,.2,1);box-sizing:content-box;margin:0;font:inherit;-webkit-tap-highlight-color:transparent}\"+// the prototype's capsules are links (54 px inside the 1 px rim: 56 in all); its form buttons (\"Drop it in\") are 54 in all\n\".ssb[type=submit]{box-sizing:border-box}\"+\".ssb>span{position:relative;z-index:3;display:inline-flex;align-items:center;gap:10px;font-family:\"+FONT_TEXT+\";font-weight:500;font-size:17px;line-height:1.5;white-space:nowrap}\"+\".ssb>span svg{width:16px;height:16px;flex:none;transition:transform 1.1s cubic-bezier(.2,.8,.2,1)}\"+\".ssb:hover>span svg,.ssb:focus-visible>span svg{transform:rotate(180deg) scale(1.15)}\"+'.ssb::before{content:\"\";position:absolute;z-index:2;inset:0;border-radius:inherit;pointer-events:none;'+\"background:radial-gradient(70px 40px at var(--mx,30%) var(--my,10%),rgba(255,255,255,.3),transparent 70%),radial-gradient(60% 34% at 32% 14%,rgba(255,255,255,.34),transparent 72%)}\"+\".ssb canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}\"+// the drift spans the whole capsule, whatever its label (an <svg> keeps its own width, 15 px x 200:16 = 188 px, unless told:\n// Oleh, stage 9, \"Next: send the letters\" had bare glass on its right)\n\".ssb .drift{position:absolute;left:-2px;right:-2px;width:calc(100% + 4px);bottom:-1px;height:15px;z-index:2;transition:transform .9s cubic-bezier(.2,.8,.2,1)}\"+'.ssb::after{content:\"\";position:absolute;z-index:4;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.26),transparent);transform:skewX(-18deg);transition:left .9s cubic-bezier(.2,.8,.2,1);pointer-events:none}'+\".ssb:hover::after,.ssb:focus-visible::after{left:120%}\"+\".ssb:hover .drift,.ssb:focus-visible .drift{transform:translateY(12px)}\"+\".ssb.shaking{animation:ssb-shake .55s ease-in-out}\"+\"@keyframes ssb-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-3deg) translateX(-2px)}45%{transform:rotate(2.5deg) translateX(2px)}70%{transform:rotate(-1.5deg)}}\"+\".ssb:focus-visible{outline:2px solid var(--ssb-gold);outline-offset:4px}\"+\".ssb.big{height:62px;padding:0 38px}.ssb.big>span{font-size:18px}\"+// the way on: appears once the step is done (prototype .next)\n\".ssb.next{opacity:0;transform:translateY(8px);transition:opacity .6s,transform .6s cubic-bezier(.2,.8,.2,1),visibility 0s .6s;visibility:hidden}\"+\".ssb.next.on{opacity:1;transform:none;visibility:inherit;transition:opacity .6s,transform .6s cubic-bezier(.2,.8,.2,1)}\"+\"@media (max-width:809.98px){.ssb{height:50px;padding:0 24px}.ssb.big{height:56px;padding:0 30px}}\"+\"@media (prefers-reduced-motion:reduce){.ssb,.ssb *,.ssb::before,.ssb::after{animation:none!important;transition:none!important}}\";export const FLAKE=/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 1v14M1.9 4.5l12.2 7M1.9 11.5l12.2-7M8 1l-2 2M8 1l2 2M8 15l-2-2M8 15l2-2\"})});const Drift=({snow,className=\"drift\",height})=>/*#__PURE__*/_jsxs(\"svg\",{className:className,viewBox:\"0 0 200 16\",preserveAspectRatio:\"none\",\"aria-hidden\":\"true\",style:height?{height}:undefined,children:[/*#__PURE__*/_jsx(\"path\",{d:\"M0 9C14 5 26 8 38 6C52 3 64 7 78 6C94 4 108 8 122 6C138 4 152 7 166 5C180 3 192 6 200 7V16H0Z\",fill:snow}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 12C30 10 60 13 100 11C140 9 170 12 200 11V16H0Z\",fill:\"#d9dcf5\"})]});// which stop a layer belongs to: its panel's name (the nav's buttons: -1, always on screen)\nconst PANEL_BEAT={\"Panel hero\":0,\"Panel names\":1,\"Panel shake\":2,\"Panel letters\":3,\"Panel window\":4,\"Panel your turn\":5};export function beatOf(el){for(let e=el;e;e=e.parentElement){const n=e.getAttribute&&e.getAttribute(\"data-framer-name\");if(n&&n in PANEL_BEAT)return PANEL_BEAT[n];}return-1;}/**\n * The snow inside a capsule (prototype class SnowBtn): particles that drift down, swirl when the pointer is on the\n * button (or while the hold button is held: boost), and are drawn only while the button's stop is on screen.\n */export function useSnow(host,cv,opts={}){React.useEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const a=host.current,c=cv.current;if(!a||!c)return;const x=c.getContext(\"2d\");const st={w:0,h:0,d:1,p:[],e:0,te:0,beat:beatOf(a),cleared:true};const size=()=>{const r=a.getBoundingClientRect();const d=Math.min(2,devicePixelRatio||1);st.d=d;st.w=r.width;st.h=r.height;c.width=r.width*d;c.height=r.height*d;st.p=Array.from({length:Math.round(st.w/(opts.round?2.5:4))},()=>({x:rnd(st.w),y:rnd(st.h),vx:0,vy:rnd(6,16),s:rnd(.6,1.9)}));};const kick=f=>{for(const q of st.p){q.vy-=rnd(40,130)*f;q.vx+=rnd(-60,60)*f;}};const enter=()=>{st.te=1;kick(1);a.classList.remove(\"shaking\");void a.offsetWidth;a.classList.add(\"shaking\");};if(opts.kick)opts.kick.current=kick;const leave=()=>st.te=0;const focus=()=>{st.te=1;kick(1);};const down=()=>kick(2.2);const move=e=>{const r=a.getBoundingClientRect();a.style.setProperty(\"--mx\",e.clientX-r.left+\"px\");a.style.setProperty(\"--my\",e.clientY-r.top+\"px\");};a.addEventListener(\"pointerenter\",enter);a.addEventListener(\"pointerleave\",leave);a.addEventListener(\"focus\",focus);a.addEventListener(\"blur\",leave);a.addEventListener(\"pointerdown\",down);a.addEventListener(\"pointermove\",move);const ro=new ResizeObserver(()=>size());ro.observe(a);size();const tick=(now,dt)=>{if(st.beat>=0&&S.beatVis[st.beat]<=.01)return;// its stop is off screen: no drawing at all\nif(!st.w){size();if(!st.w)return;}const boost=opts.boost?opts.boost():0;const E=Math.max(st.e+=(st.te-st.e)*Math.min(1,dt*3),boost);x.setTransform(st.d,0,0,st.d,0,0);x.clearRect(0,0,st.w,st.h);x.globalAlpha=.85;x.fillStyle=\"#fff\";x.beginPath();for(const q of st.p){if(E>.05){const cx=st.w/2,cy=st.h/2,dx=q.x-cx,dy=q.y-cy,d=Math.hypot(dx,dy)+1;q.vx+=-dy/d*260*E*dt;q.vy+=dx/d*120*E*dt-20*E*dt;}q.vy+=30*dt;q.vx*=.97;q.vy*=.97;q.vy=Math.min(q.vy,28);q.x+=q.vx*dt;q.y+=q.vy*dt;if(q.x<0)q.x+=st.w;if(q.x>st.w)q.x-=st.w;if(q.y>st.h-6){if(E<.05){q.y=-4;q.x=rnd(st.w);q.vy=rnd(6,16);}else{q.y=st.h-6;q.vy*=-.5;}}if(q.y<-6)q.y=st.h-8;x.moveTo(q.x+q.s,q.y);x.arc(q.x,q.y,q.s,0,6.29);}x.fill();};const off=onFrame(tick,12);if(document.fonts)document.fonts.ready.then(size);return()=>{off();ro.disconnect();if(opts.kick)opts.kick.current=null;a.removeEventListener(\"pointerenter\",enter);a.removeEventListener(\"pointerleave\",leave);a.removeEventListener(\"focus\",focus);a.removeEventListener(\"blur\",leave);a.removeEventListener(\"pointerdown\",down);a.removeEventListener(\"pointermove\",move);};},[]);}export const DEFAULT_COLOURS={top:BTN[0],middle:BTN[1],deep:BTN[2],bottom:BTN[3],text:SNOW,accent:GOLD};export const capsuleVars=(c={})=>({\"--ssb-1\":c.top||BTN[0],\"--ssb-2\":c.middle||BTN[1],\"--ssb-3\":c.deep||BTN[2],\"--ssb-4\":c.bottom||BTN[3],\"--ssb-text\":c.text||SNOW,\"--ssb-gold\":c.accent||GOLD});/** One snow capsule, for use inside other components (Drop it in, Next, Start a draw). Lower-case so that Framer does not list it as a component of its own. */function snowCapsule(p){const host=React.useRef(null);const cv=React.useRef(null);useSnow(host,cv,{kick:p.kick});const cls=\"ssb\"+(p.big?\" big\":\"\")+(p.className?\" \"+p.className:\"\");const inner=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"canvas\",{ref:cv,\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsxs(\"span\",{children:[p.icon!==false?FLAKE:null,p.label]}),/*#__PURE__*/_jsx(Drift,{snow:p.colours&&p.colours.text||SNOW})]});const style={...capsuleVars(p.colours),...p.style};// a page of this site (/, /start-here) goes through Framer's Link, so it also works in the editor's Preview\nconst own=p.href!==undefined&&!p.newTab&&/^\\.?\\//.test(p.href);const a=p.href!==undefined?/*#__PURE__*/_jsx(\"a\",{ref:host,className:cls,href:own?undefined:p.href,target:p.newTab?\"_blank\":undefined,rel:p.newTab?\"noopener\":undefined,onClick:p.onClick,style:style,\"aria-label\":p.ariaLabel,tabIndex:p.tabIndex,children:inner}):null;return a?own?/*#__PURE__*/_jsx(Link,{href:p.href,children:a}):a:/*#__PURE__*/_jsx(\"button\",{ref:host,className:cls,type:p.type||\"button\",onClick:p.onClick,style:style,\"aria-label\":p.ariaLabel,tabIndex:p.tabIndex,children:inner});}const Capsule=snowCapsule;/** The capsule and the snow drift for the other components (an object, so that Framer does not list them as components). */export const snow={Capsule:snowCapsule,Drift};/**\n * Snow button: a glass capsule with snow inside. It can start a draw (the names stop, ready to type), go to a stop of\n * the story, or open a link.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SnowButton(props){const colours={top:props.top,middle:props.middle,deep:props.deep,bottom:props.bottom,text:props.text,accent:props.accent};const onClick=e=>{if(props.action===\"link\")return;e.preventDefault();if(props.action===\"start\")startDraw();else goTo(props.stop);};return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,display:\"inline-flex\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:SNOW_CSS}}),/*#__PURE__*/_jsx(Capsule,{label:props.label,href:props.action===\"link\"?props.link||undefined:undefined,newTab:props.action===\"link\"&&props.newTab,onClick:onClick,big:props.size===\"big\",icon:props.icon,colours:colours})]});}addPropertyControls(SnowButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Start a draw\",description:\"The text on the button.\"},action:{type:ControlType.Enum,title:\"Action\",options:[\"start\",\"stop\",\"link\"],optionTitles:[\"Start a draw\",\"Go to stop\",\"Link\"],defaultValue:\"start\",description:\"Start a draw: the names stop, ready to type. Go to stop: glides there. Link: opens the address.\"},stop:{type:ControlType.Number,title:\"Stop\",min:0,max:5,step:1,defaultValue:1,displayStepper:true,hidden:p=>p.action!==\"stop\",description:\"Go to stop: 0 the top, 1 the names, 2 the shake, 3 the letters, 4 the window, 5 the end.\"},link:{type:ControlType.Link,title:\"Link\",hidden:p=>p.action!==\"link\",description:\"Link: the address it opens.\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:true,hidden:p=>p.action!==\"link\",description:\"Link: open it in a new tab.\"},size:{type:ControlType.Enum,title:\"Size\",options:[\"regular\",\"big\"],optionTitles:[\"Regular\",\"Big\"],defaultValue:\"regular\",displaySegmentedControl:true,description:\"Big is for the last stop.\"},icon:{type:ControlType.Boolean,title:\"Snowflake\",defaultValue:true,description:\"The snowflake before the text.\"},top:{type:ControlType.Color,title:\"Top\",defaultValue:BTN[0],description:\"Button top style.\"},middle:{type:ControlType.Color,title:\"Middle\",defaultValue:BTN[1],description:\"Button style.\"},deep:{type:ControlType.Color,title:\"Deep\",defaultValue:BTN[2],description:\"Button deep style.\"},bottom:{type:ControlType.Color,title:\"Bottom\",defaultValue:BTN[3],description:\"Button bottom style.\"},text:{type:ControlType.Color,title:\"Text\",defaultValue:SNOW,description:\"Snow style: the label and the snow drift.\"},accent:{type:ControlType.Color,title:\"Focus\",defaultValue:GOLD,description:\"Gold style: the keyboard focus ring.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"DEFAULT_COLOURS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Colours\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useSnow\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"capsuleVars\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FONT_DISPLAY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FONT_TEXT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BTN\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SNOW\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"beatOf\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SNOW_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"SnowButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"FLAKE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"snow\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GOLD\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,wRAQyH,SAAgBwB,EAAOC,EAAG,CAAC,IAAI,IAAIC,EAAED,EAAGC,EAAEA,EAAEA,EAAE,cAAc,CAAC,IAAMC,EAAED,EAAE,cAAcA,EAAE,aAAa,kBAAkB,EAAE,GAAGC,GAAGA,KAAKC,EAAW,OAAOA,EAAWD,EAAG,CAAC,MAAM,EAAG,CAGnS,SAAgBE,EAAQC,EAAKC,EAAGC,EAAK,CAAC,EAAE,CAAChC,MAAoB,CAAC,GAAGgB,EAAa,QAAQ,IAAIA,EAAa,OAAO,OAAO,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