1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4042,e=>{"use strict";var t=e.i(43476),r=e.i(46932),o=e.i(71645);let s={hidden:{opacity:0,filter:"blur(10px)",y:10},visible:{opacity:1,filter:"blur(0px)",y:0,transition:{duration:.5,ease:"easeOut"}}};function n({text:e,as:n="span",perLetter:a=!1,className:i,delay:l=0,staggerInterval:c}){let d=(0,o.useMemo)(()=>r.motion.create(n),[n]),u=a?e.split(""):e.split(" ");return(0,t.jsx)(d,{className:i,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:0,margin:"100px"},variants:{hidden:{},visible:{transition:{staggerChildren:c??(a?.03:.08),delayChildren:l}}},children:u.map((e,o)=>(0,t.jsx)(r.motion.span,{className:"inline-block",style:!a&&o<u.length-1?{marginRight:"0.3em"}:a&&" "===e?{width:"0.3em"}:void 0,variants:s,children:" "===e?" ":e},`${e}-${o}`))})}e.s(["default",()=>n])},67380,e=>{"use strict";var t=e.i(43476);function r({className:e=""}){return(0,t.jsxs)("svg",{viewBox:"0 0 44 22","aria-hidden":"true",className:e,fill:"none",children:[(0,t.jsx)("path",{d:"M2.6 7.2c6.2 6.2 15 9.5 23.6 8.8 3.2-.3 6.3-1.1 9.2-2.5",stroke:"#FF9900",strokeWidth:"3.6",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M30.9 9.6 41.4 12.9l-5.7 7.3z",fill:"#FF9900"})]})}e.s(["default",()=>r])},6552,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let o=["Paramount+ logo","Hulu logo","WME logo","Netflix logo","Sony logo","BBC logo","CAA logo"];function s(){let e=(0,r.useRef)(null),s=(0,r.useRef)(0),n=(0,r.useRef)(0);return(0,r.useEffect)(()=>{let t,r=e.current;if(!r)return;function o(){let e=r.querySelectorAll("img"),t=e.length/3,o=0;for(let r=0;r<t;r++){let t=e[r],s=getComputedStyle(t);o+=t.offsetWidth+parseFloat(s.marginLeft)+parseFloat(s.marginRight)}n.current=o}let a=r.querySelectorAll("img"),i=0,l=a.length,c=()=>{++i>=l&&o()};a.forEach(e=>{e.complete?i++:e.addEventListener("load",c)}),i>=l&&o();let d=0;return t=requestAnimationFrame(function e(o){if(t=requestAnimationFrame(e),!d){d=o;return}let a=o-d;d=o;let i=n.current;i<=0||(s.current-=80*a/1e3,s.current<=-i&&(s.current+=i),r.style.transform=`translateX(${s.current}px)`)}),()=>{cancelAnimationFrame(t),a.forEach(e=>e.removeEventListener("load",c))}},[]),(0,t.jsx)("div",{className:"relative pb-16 overflow-hidden",children:(0,t.jsx)("div",{ref:e,className:"flex items-center w-max",children:[0,1,2].map(e=>[1,2,3,4,5,6,7].map(r=>(0,t.jsx)("img",{src:`/images/logos/logo-${r}.svg`,alt:0===e?o[r-1]:"",className:"h-8 md:h-10 w-auto mx-8","aria-hidden":e>0||void 0},`${e}-${r}`)))})})}e.s(["default",()=>s])},9256,e=>{"use strict";var t=e.i(43476),r=e.i(71645),o=e.i(22016),s=e.i(50861),n=e.i(75679),a=e.i(60298);function i({variant:e="card"}){let i="card"===e,[l,c]=(0,r.useState)(i?"details":"email"),[d,u]=(0,r.useState)(""),[m,x]=(0,r.useState)(""),[h,p]=(0,r.useState)(""),[f,g]=(0,r.useState)(null),[b,y]=(0,r.useState)(!1),[j,k]=(0,r.useState)(!1),[v,N]=(0,r.useState)(!1),[w,S]=(0,r.useState)("idle"),[T,C]=(0,r.useState)(""),[F,E]=(0,r.useState)(null),L=(0,r.useRef)(null),R=(0,r.useRef)(!1);async function B(e,t){if(e?.preventDefault(),e&&(R.current=!1),"not-yet"===f&&!j){N(!0),window.setTimeout(()=>N(!1),900);return}S("loading"),C("");let r=t??await (0,a.resolveTurnstileToken)(L,F);if(!r){R.current=!0,S("error"),C("Couldnât confirm youâre human. Please complete the check and try again.");return}try{let e=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,firstName:m,lastName:h,source:"workbook",hasBook:"yes"===f,turnstileToken:r,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})});if(!e.ok){let t=await e.json();throw Error(t.error||"Something went wrong.")}S("success"),(0,n.trackSignup)("workbook",d)}catch(e){S("error"),C(e instanceof Error?e.message:"Something went wrong."),L.current?.reset()}}let O=i?"rounded-2xl border border-border bg-white p-5 md:p-8":"max-w-md mx-auto text-left",$="w-full px-4 py-3 bg-white border border-border rounded-xl focus:outline-none focus:ring-2 focus:ring-green/40 placeholder:text-text-muted/40 placeholder:italic";if("success"===w)return(0,t.jsxs)("div",{className:i?`${O} text-center`:"max-w-md mx-auto text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 mx-auto mb-4 rounded-full bg-green/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-green",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),(0,t.jsx)("p",{className:"font-serif text-xl text-text mb-2",children:"Your workbook is on its way."}),(0,t.jsxs)("p",{className:"text-text-body text-pretty",children:["Check your inbox for your copy, with"," ",(0,t.jsxs)("span",{className:"font-medium text-text",children:[m.trim()," ",h.trim()]})," ","on the cover."]}),"not-yet"===f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-text-body text-pretty mt-4",children:["Now get the other half. These pages hold the tools."," ",(0,t.jsx)("span",{className:"font-medium text-text",children:"STOP WRITING!"})," holds the reasons each one works."]}),(0,t.jsx)(o.default,{href:"/book",className:"inline-block mt-3 px-5 py-2 text-sm font-medium rounded-lg border border-green text-green bg-white hover:bg-green/5 transition-colors",children:"Get the Book"})]})]});let I=(0,t.jsx)("input",{type:"email",value:d,onChange:e=>u(e.target.value),placeholder:"[email protected]","aria-label":"Email address",required:!0,autoComplete:"email",className:$}),W=(0,t.jsxs)("div",{className:"pb-3",children:[(0,t.jsx)("p",{className:"font-serif text-lg text-text mb-2.5",children:"Your name"}),(0,t.jsxs)("div",{className:"relative flex flex-col sm:flex-row gap-3",children:[(0,t.jsx)("input",{type:"text",value:m,onChange:e=>x(e.target.value),onFocus:()=>y(!0),onBlur:()=>y(!1),placeholder:"First name","aria-label":"First name","aria-describedby":"workbook-name-hint",required:!0,maxLength:100,autoComplete:"given-name",className:`flex-1 ${$}`}),(0,t.jsx)("input",{type:"text",value:h,onChange:e=>p(e.target.value),onFocus:()=>y(!0),onBlur:()=>y(!1),placeholder:"Last name","aria-label":"Last name","aria-describedby":"workbook-name-hint",required:!0,maxLength:100,autoComplete:"family-name",className:`flex-1 ${$}`}),(0,t.jsx)("p",{id:"workbook-name-hint",className:`absolute left-0 top-full mt-1 text-xs italic text-green leading-4 transition-opacity duration-300 ${b?"opacity-100":"opacity-0"}`,children:"Every copy is stamped with its readerâs name â type yours as you want it to appear."})]})]}),A=(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{className:"font-serif text-lg text-text mb-2.5",children:"Do you have the book?"}),(0,t.jsx)("div",{className:"flex gap-3",children:[["yes","Yes"],["not-yet","Not yet"]].map(([e,r])=>(0,t.jsxs)("label",{className:`flex-1 cursor-pointer rounded-xl border px-4 py-3 text-center text-sm transition-colors ${f===e?"border-green bg-green/5 text-green font-medium":"border-border bg-white text-text-body hover:border-green/40"}`,children:[(0,t.jsx)("input",{type:"radio",name:"hasBook",value:e,checked:f===e,onChange:()=>{g(e),k(!1),N(!1)},required:!0,className:"sr-only"}),r]},e))})]}),P="not-yet"===f&&(0,t.jsx)("div",{className:"rounded-xl bg-bg border border-border p-4 text-sm text-text-body text-left text-pretty",children:j?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-text",children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-green shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,"aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),"Your workbook is ready to send."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:["The workbook works best with the book. It holds the tools."," ",(0,t.jsx)("span",{className:"font-medium text-text",children:"STOP WRITING!"})," holds the teaching, and the tools make more sense once you have it."]}),(0,t.jsxs)("p",{className:"mt-2",children:[(0,t.jsx)("a",{href:i?"/book#books":"#books",...i?{target:"_blank",rel:"noopener noreferrer"}:{},className:"font-semibold text-text underline decoration-[var(--color-red)] decoration-2 underline-offset-4",children:"Grab the book"})," ","first. Read it through, or keep the two open side by side."]}),(0,t.jsx)("button",{type:"button",onClick:()=>{k(!0),N(!1)},className:`mt-3 px-5 py-2 text-sm font-medium rounded-lg border border-green text-green bg-white hover:bg-green/5 transition-colors focus:outline-none focus:ring-2 focus:ring-green/40 ${v?"animate-nudge":""}`,children:"Got it"})]})}),q=(0,t.jsx)("button",{type:"submit",disabled:"loading"===w,className:"btn-cta !rounded-xl disabled:opacity-50 w-full",children:"loading"===w?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending..."]}):"Send Me the Workbook"}),M=(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(s.Turnstile,{ref:L,siteKey:a.TURNSTILE_SITE_KEY,onSuccess:function(e){E(e),R.current&&(R.current=!1,B(void 0,e))},onError:()=>E(null),onExpire:()=>E(null),options:a.TURNSTILE_OPTIONS})});return i?(0,t.jsxs)("div",{className:O,children:[(0,t.jsxs)("form",{onSubmit:B,className:"flex flex-col gap-4",children:[W,I,A,P,q]}),M,"error"===w&&(0,t.jsx)("p",{className:"text-sm text-red text-center mt-3",children:T})]}):(0,t.jsxs)("div",{className:O,children:["email"===l?(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault(),C(""),S("idle"),c("details"),fetch("/api/subscribe/enrich",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,context:"workbook-partial"})}).catch(()=>{})},className:"flex flex-col sm:flex-row gap-3",children:[(0,t.jsx)("div",{className:"flex-1",children:I}),(0,t.jsx)("button",{type:"submit",className:"btn-cta !rounded-xl whitespace-nowrap",children:"Download Your Free Workbook"})]}):(0,t.jsxs)("form",{onSubmit:B,className:"flex flex-col gap-4",children:[W,A,P,q]}),M,"error"===w&&(0,t.jsx)("p",{className:"text-sm text-red text-center mt-3",children:T})]})}e.s(["default",()=>i])}]);
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.