1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{96278:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,71038,23)),Promise.resolve().then(n.bind(n,93416))},68082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(16518);function i(e,t){let n=(0,r.useRef)(()=>{}),i=(0,r.useRef)(()=>{});return(0,r.useMemo)(()=>e&&t?r=>{null===r?(n.current(),i.current()):(n.current=l(e,r),i.current=l(t,r))}:e||t,[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93416:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Newsletter:()=>c});var r=n(70022),i=n(48356),l=n(22870),o=n(40486),s=n(16518),a=n(57640);let u={visible:{opacity:1,scale:1},hidden:{opacity:0,scale:.8}};function c(e){let{course:t}=e,[n,c]=(0,s.useState)(""),[d,f]=(0,s.useState)(!1),[h,p]=(0,s.use
1State)(!1),[m,x]=(0,s.useState)(!1);async function g(e){e.preventDefault(),f(!1),p(!0);let r=await fetch("/api/newsletter?email=".concat(n)),i=await r.json();200===(await fetch("https://app.loops.so/api/newsletter-form/clkohqcls00r4jm0oq5myf7as",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"userGroup=".concat(i.emails.length>0?"animations-and-newsletter":t?"animations-course":"","&email=").concat(encodeURIComponent(n))})).status?(x(!0),c(""),p(!1),setTimeout(()=>{x(!1)},5e3)):setTimeout(()=>{f(!0),p(!1)},100)}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{onSubmit:g,className:(0,a.x)("mt-6 flex h-12 items-center justify-between gap-2 overflow-hidden rounded-full bg-gray-100 bg-white shadow-sm focus-within:border-gray-800 focus-within:outline-none focus-within:ring-2 focus-within:ring-black/20 focus-within:ring-offset-0 dark:bg-[#0B0B09] dark:focus-within:ring-white/20",d?"border-red-200 focus-within:border-red-400 focus-within:ring-red-700/20":"border-gray-200 focus-within:border-gray-400 focus-within:ring-black/20 dark:focus-within:ring-white/20"),children:[(0,r.jsx)("label",{htmlFor:"email",className:"sr-only",children:"Email"}),(0,r.jsx)("input",{id:"email",className:(0,a.x)("h-full w-[40%] grow border-none bg-transparent px-3.5 transition-colors placeholder:text-gray-900 focus:outline-none"),required:!0,value:n,onChange:e=>c(e.target.value),placeholder:"Enter your email"}),(0,r.jsx)("button",{type:"submit",disabled:h,className:"hover:bg-gray-1200/90 mr-[5px] h-[38px] w-[100px] rounded-full bg-gray-1200 px-1.5 font-medium text-gray-100 outline-none focus:shadow-focus-ring md:w-[104px] md:px-3.5",children:(0,r.jsx)(i.x,{transition:{duration:.1},children:(0,r.jsx)(l.N,{initial:!1,mode:"wait",children:m?(0,r.jsx)(o.P.svg,{animate:"visible",exit:"hidden",initial:"hidden",variants:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",strokeLinejoin:"round",className:"mx-auto my-auto h-4 w-4 text-gray-100",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor"})},"success"):h?(0,r.jsxs)(o.P.svg,{animate:"visible",exit:"hidden",initial:"hidden",variants:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 27",className:"mx-auto h-4 animate-[spin_1s_linear_infinite]",style:{"animation-timing-function":" steps(12)"},children:[(0,r.jsx)("path",{d:"M18.696 10.5a1.002 1.002 0 01.365-1.367l4.759-2.751a1.007 1.007 0 011.37.368.995.995 0 01-.364 1.364l-4.764 2.751a1 1 0 01-1.366-.365z",fill:"currentColor",style:{opacity:1}}),(0,r.jsx)("path",{fill:"currentColor",d:"M16.133 6.938l2.75-4.765a1 1 0 011.732 1l-2.748 4.762a1 1 0 11-1.734-.997z",style:{opacity:.916667}}),(0,r.jsx)("path",{fill:"currentColor",d:"M13.499 7.5a1 1 0 01-1-1.001V1a1.001 1.001 0 012.003 0v5.499A1.002 1.002 0 0113.499 7.5z",style:{opacity:.833333}}),(0,r.jsx)("path",{fill:"currentColor",d:"M8.303 10.5a1 1 0 01-1.365.365L2.175 8.114a.997.997 0 01-.367-1.364c.277-.479.89-.642 1.367-.368l4.762 2.751a1 1 0 01.366 1.367z",style:{opacity:.75}}),(0,r.jsx)("path",{fill:"currentColor",d:"M9.133 7.937l-2.75-4.763a.999.999 0 111.732-1l2.75 4.765a1 1 0 01-1.732.998z",style:{opacity:.666667}}),(0,r.jsx)("path",{fill:"currentColor",d:"M6.499 14.5H1a1 1 0 110-2.001h5.499a1.001 1.001 0 010 2.001z",style:{opacity:.583333}}),(0,r.jsx)("path",{fill:"currentColor",d:"M8.303 16.502a1 1 0 01-.365 1.366l-4.762 2.749a1.006 1.006 0 01-1.368-.366 1.003 1.003 0 01.367-1.368l4.762-2.748a.996.996 0 011.366.367z",style:{opacity:.5}}),(0,r.jsx)("path",{fill:"currentColor",d:"M10.866 20.062l-2.75 4.767c-.277.475-.89.639-1.367.362a.999.999 0 01-.365-1.365l2.7
15-4.764a1 1 0 011.732 1z",style:{opacity:.416667}}),(0,r.jsx)("path",{fill:"currentColor",d:"M13.499 19.502c.554 0 1.003.448 1.003 1.002v5.498a1.001 1.001 0 01-2.003 0v-5.498a1 1 0 011-1.002z",style:{opacity:.333333}}),(0,r.jsx)("path",{fill:"currentColor",d:"M17.867 19.062l2.748 4.764a1 1 0 01-1.732 1.003l-2.75-4.767a1 1 0 011.734-1z",style:{opacity:.25}}),(0,r.jsx)("path",{fill:"currentColor",d:"M18.696 16.502a.995.995 0 011.365-.367l4.765 2.748a1.002 1.002 0 01-1.006 1.734l-4.759-2.749a1.002 1.002 0 01-.365-1.366z",style:{opacity:.166667}}),(0,r.jsx)("path",{fill:"currentColor",d:"M25.998 12.499h-5.501a1.001 1.001 0 000 2.001h5.501a1 1 0 100-2.001z",style:{opacity:.0833333}})]},"loading"):(0,r.jsx)(o.P.span,{animate:"visible",exit:"hidden",initial:"hidden",variants:u,className:"block",children:"Subscribe"},"subscribe")})})})]}),d?(0,r.jsx)("p",{className:"mt-3 text-sm text-red-600",children:"Something went wrong, please try again."}):null]})}},57640:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join(" ")}n.d(t,{x:()=>r})},22870:(e,t,n)=>{"use strict";n.d(t,{N:()=>g});var r=n(70022),i=n(16518),l=n(66784),o=n(64488),s=n(33953),a=n(23070),u=n(25871);class c extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(e){let{children:t,isPresent:n,anchorX:l}=e,o=(0,i.useId)(),s=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,i.useContext)(u.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i,right:u}=a.current;if(n||!s.current||!e||!t)return;s.current.dataset.motionPopId=o;let c=document.createElement("style");return d&&(c.nonce=d),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===l?"left: ".concat(i):"right: ".concat(u),"px !important;\n top: ").concat(r,"px !important;\n }\n ")),()=>{document.head.removeChild(c)}},[n]),(0,r.jsx)(c,{isPresent:n,childRef:s,sizeRef:a,children:i.cloneElement(t,{ref:s})})}let f=e=>{let{children:t,initial:n,isPresent:l,onExitComplete:s,custom:u,presenceAffectsLayout:c,mode:f,anchorX:p}=e,m=(0,o.M)(h),x=(0,i.useId)(),g=!0,y=(0,i.useMemo)(()=>(g=!1,{id:x,initial:n,isPresent:l,custom:u,onExitComplete:e=>
1{for(let t of(m.set(e,!0),m.values()))if(!t)return;s&&s()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[l,m,s]);return c&&g&&(y={...y}),(0,i.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[l]),i.useEffect(()=>{l||m.size||!s||s()},[l]),"popLayout"===f&&(t=(0,r.jsx)(d,{isPresent:l,anchorX:p,children:t})),(0,r.jsx)(a.t.Provider,{value:y,children:t})};function h(){return new Map}var p=n(60985);let m=e=>e.key||"";function x(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let g=e=>{let{children:t,custom:n,initial:a=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:g="left"}=e,[y,w]=(0,p.xQ)(h),v=(0,i.useMemo)(()=>x(t),[t]),b=h&&!y?[]:v.map(m),j=(0,i.useRef)(!0),C=(0,i.useRef)(v),M=(0,o.M)(()=>new Map),[P,L]=(0,i.useState)(v),[E,z]=(0,i.useState)(v);(0,s.E)(()=>{j.current=!1,C.current=v;for(let e=0;e<E.length;e++){let t=m(E[e]);b.includes(t)?M.delete(t):!0!==M.get(t)&&M.set(t,!1)}},[E,b.length,b.join("-")]);let N=[];if(v!==P){let e=[...v];for(let t=0;t<E.length;t++){let n=E[t],r=m(n);b.includes(r)||(e.splice(t,0,n),N.push(n))}return"wait"===d&&N.length&&(e=N),z(x(e)),L(v),null}let{forceRender:R}=(0,i.useContext)(l.L);return(0,r.jsx)(r.Fragment,{children:E.map(e=>{let t=m(e),i=(!h||!!y)&&(v===E||b.includes(t));return(0,r.jsx)(f,{isPresent:i,initial:(!j.current||!!a)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,onExitComplete:i?void 0:()=>{if(!M.has(t))return;M.set(t,!0);let e=!0;M.forEach(t=>{t||(e=!1)}),e&&(null==R||R(),z(C.current),h&&(null==w||w()),u&&u())},anchorX:g,children:e},t)})})}},48356:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var r=n(70022),i=n(16518),l=n(25871),o=n(99234),s=n(64488);function a(e){let{children:t,isValidProp:n,...a}=e;n&&(0,o.D)(n),(a={...(0,i.useContext)(l.Q),...a}).isStatic=(0,s.M)(()=>a.isStatic);let u=(0,i.useMemo)(()=>a,[JSON.stringify(a.transition),a.transformPagePoint,a.reducedMotion]);return(0,r.jsx)(l.Q.Provider,{value:u,children:t})}}},e=>{var t=t=>e(e.s=t);e.O(0,[486,1038,4439,1803,7358],()=>t(96278)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.