1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{2869:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var r=n(95155);n(12115);var a=n(54624),o=n(74466),i=n(52596),s=n(39688);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 focus-visible:ring-2 focus-visible:ring-primary/40",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-2 bg-white text-foreground shadow-sm hover:bg-accent/10 hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 focus-visible:ring-2 focus-visible:ring-ring/40",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80 focus-visible:ring-2 focus-visible:ring-ring/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-11 rounded-md px-7 text-base has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function c(e){let{className:t,variant:n,size:o,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,r.jsx)(u,{"data-slot":"button",className:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.QP)((0,i.$)(t))}(l({variant:n,size:o,className:t})),...d})}},4354:(e,t,n)=>{"use strict";n.d(t,{IX:()=>o});let r={survey_questions:{variants:["2_questions","1_question"],weights:[.5,.5]},newsletter_prompt_style:{variants:["bar","slideout"],weights:[.5,.5]},homepage_copy:{variants:["control","value_stack"],weights:[.5,.5]}},a="ab_variants";function o(e){let t=function(){try{let e=localStorage.getItem(a);return e?JSON.parse(e):{}}catch(e){return{}}}();if(t[e])return t[e];let n=function(e){let t=r[e],n=Math.random(),a=0;for(let e=0;e<t.variants.length;e++)if(n<(a+=t.weights[e]))return t.variants[e];return t.variants[0]}(e);return t[e]=n,function(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(e){}}(t),n}},13720:(e,t,n)=>{"use strict";n.d(t,{CU:()=>a,R2:()=>r,bP:()=>l,bi:()=>d,cc:()=>s,nA:()=>i,uS:()=>c,yM:()=>o});let r={generateLead:"generate_lead",newsletterSignupSubmitted:"newsletter_signup_submitted",newsletterSignupSucceeded:"newsletter_signup_succeeded",newsletterSignupFailed:"newsletter_signup_failed",surveyStarted:"survey_started",surveyCompleted:"survey_completed",surveySkipped:"survey_skipped",offerViewed:"offer_viewed",offerSkipped:"offer_skipped",offerCtaClicked:"offer_cta_clicked",gumroadCheckoutOpened:"gumroad_checkout_opened",purchaseCompleted:"purchase_completed"},a={default:"1774339",bookNotes:"2175371",blog:"1859815",lawsOfPower:"5069135",artOfSeduction:"8884042",bookCheatSheets:"9630515"},o={default:"default",hero:"hero",bookNotes:"bookNotes",blog:"blog",lawsOfPowerInline:"48_laws_inline",artOfSeductionInline:"art_of_seduction_inline",bookCheatSheetInline:"book_cheat_sheet_inline",stickyBar:"sticky_bar",library:"library"},i={lawsOfPower:"48_laws",artOfSeduction:"art_of_seduction",bookNotes:"book_notes",readingList:"reading_list"},s={newsletterReaders:{value:25e3,display:"25,000+"},bookNotes:{value:100,display:"100+"},booksReadRecent:{value:250,display:"250+"},appliedBooksPerYear:{value:50,display:"50+"},sourceBooksForProductivityTactics:{value:20,display:"20+"}},l={newsletterReaders:"Join ".concat(s.newsletterReaders.display," readers"),weeklyWisdom:"Join ".concat(s.newsletterReaders.display," readers. One email per week with ideas on productivity, health, and living better."),bookNotesModal:"Join ".concat(s.newsletterReaders.display," readers getting the best book
1notes and weekly insights.")},c={gumroadProductUrl:"https://grahamkmann.gumroad.com/l/vuetso",productName:"The Action System Bundle",priceDisplay:"$17"};function d(e){return a[e]||e}a.lawsOfPower,o.lawsOfPowerInline,i.lawsOfPower,a.artOfSeduction,o.artOfSeductionInline,i.artOfSeduction},17004:(e,t,n)=>{"use strict";n.d(t,{Iq:()=>l,XA:()=>s});let r="newsletter_flow_context";function a(e){return"string"==typeof e&&e.trim().length>0}function o(e,t,n){a(n)&&e.set(t,n)}function i(){try{let e=localStorage.getItem(r);if(!e)return null;return JSON.parse(e)}catch(e){return null}}function s(e){let t=i()||{},n=e?{email:e.get("email")||void 0,formId:e.get("form_id")||void 0,formLocation:e.get("form_location")||void 0,leadMagnet:e.get("lead_magnet")||void 0,abVariant:e.get("ab_variant")||void 0,sourcePath:e.get("source_path")||void 0,contentSlug:e.get("content_slug")||void 0,contentType:e.get("content_type")||void 0}:{},r={...t,...n};return Object.values(r).some(e=>a(e))?r:null}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey",n={...i()||{},...e};a(n.email)&&localStorage.setItem("signup_email",n.email),localStorage.setItem(r,JSON.stringify(n)),window.location.href=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey",n=new URLSearchParams;return n.set("step",t),o(n,"email",e.email),o(n,"form_id",e.formId),o(n,"form_location",e.formLocation),o(n,"lead_magnet",e.leadMagnet),o(n,"ab_variant",e.abVariant),o(n,"source_path",e.sourcePath),o(n,"content_slug",e.contentSlug),o(n,"content_type",e.contentType),"/offer?".concat(n.toString())}(e,t)}},28883:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(19946).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},31335:(e,t,n)=>{"use strict";n.d(t,{KG:()=>s,V_:()=>i,fZ:()=>o});var r=n(65125);function a(e){let t=function(e){if(e){if(e.startsWith("/"))return e;try{return new URL(e,"https://grahammann.net").pathname}catch(e){return}}}(e)||"/";if("/"===t)return{pagePath:t,sourcePath:t,contentType:"home"};if("/offer"===t)return{pagePath:t,sourcePath:t,contentType:"offer"};let n=t.match(/^\/blog\/([^/]+)$/);if(n)return{pagePath:t,sourcePath:t,contentSlug:n[1],contentType:"blog_post"};let r=t.match(/^\/book-notes\/([^/]+)$/);return r?{pagePath:t,sourcePath:t,contentSlug:r[1],contentType:"book_note"}:{pagePath:t,sourcePath:t,contentType:"other"}}function o(){var e,t,n,r;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,s=i?a(i):a(window.location.pathname);return{...s,...o,pagePath:null!=(e=o.pagePath)?e:s.pagePath,sourcePath:null!=(t=o.sourcePath)?t:s.sourcePath,contentSlug:null!=(n=o.contentSlug)?n:s.contentSlug,contentType:null!=(r=o.contentType)?r:s.contentType}}function i(e){return{formLocation:e.formLocation,leadMagnet:e.leadMagnet,abVariant:e.abVariant,pagePath:e.pagePath,sourcePath:e.sourcePath,contentSlug:e.contentSlug,contentType:e.contentType}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.sendGTMEvent)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries({event:e,form_id:t.formId,form_location:t.formLocation,lead_magnet:t.leadMagnet,ab_variant:t.abVariant,page_path:t.pagePath,source_path:t.sourcePath,content_slug:t.contentSlug,content_type:t.contentType,offer_step:t.offerStep}).reduce((e,t)=>{let[n,r]=t;return"string"==typeof r&&r.length>0&&(e[n]=r),e},{})}(e,t))}},36129:(e,t,n)=>{"use strict";n.d(t,{default:()=>g});var r=n(95155),a=n(12115),o=n(2869),i=n(28883),s=n(92138),l=n(4354),c=n(31335),d=n(13720),u=n(17004);function g(e){let{formId:t="default",compact:n=!1,showSurvey:g=!0}=e,[f,h]=(0,a.useState)(""),[m,p]=(0,a.useState)(""),[b,v]=(0,a.useState)(""),[y,x]=(0,a.useState)(!1),[w,_]=(0,a.useState)(!1),[S,k]=(0,a.useState)(""),N=(0,d.bi)(t),P="string"==typeof t?t:"default",j=async e=>{if(e.preventDefault(),v(""),_(!0),S)return void _(!1);let t=(0,l.IX)("survey_questions"),n=(0,c.fZ)({formId:N,formLocation:P,abVariant:t});(0,c.KG)(d.R2.newsletterSignupSubmitted,n);try{let e=await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:m,name:f,formId:N,fields:{ab_variant:t},sourceContext:(0,c.V_)(n)})});if(e.ok)x(!0),localStorage.setItem("newsletter_subscribed","true"),(0,c.KG)(d.R2.generateLead,n),(0,c.KG)(d.R2.newsletterSignupSucceeded,n),(0,u.Iq)({email:m,formId:N,formLocation:P,abVariant:t,sourcePath:n.sourcePath,contentSlug:n.contentSlug,contentType:n.contentType}),p(""),h("");else{let t=await e.json().catch(()=>({}));(0,c.KG)(d.R2.newsletterSignupFailed,n),v(t.error||"Something went wrong. Please try again.")}}catch(e){(0,c.KG)(d.R2.newsletterSignupFailed,n),v("Something went wrong. Please try again.")}finally{_(!1)}};return y?(0,r.jsx)("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-primary/5 via-card to-accent/5 p-8 ring-1 ring-border/50",children:(0,r.jsx)("div",{className:"flex flex-col items-center text-center",children:(0,r.jsx)("p",{className:"text-muted-foreground font-serif",children:g?"Thanks for subscribing. Redirecting you to the next step...":"Thanks for subscribing! Check your inbox to confirm."})})}):(0,r.jsxs)("div",{id:"newsletter",className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-primary/5 via-card to-accent/5 ring-1 ring-border/50 ".concat(n?"p-5":"p-8"),children:[(0,r.jsx)("div",{className:"absolute -top-24 -right-24 w-48 h-48 bg-primary/5 rounded-full blur-3xl"}),(0,r.jsx)("div",{className:"absolute -bottom-24 -left-24 w-48 h-48 bg-accent/5 rounded-full blur-3xl"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{className:"text-center ".concat(n?"mb-4":"mb-6"),children:[(0,r.jsx)("div",{className:"inline-flex items-center justify-center rounded-xl bg-primary/10 text-primary mb-4 ".concat(n?"w-10 h-10":"w-12 h-12"),children:(0,r.jsx)(i.A,{className:"w-6 h-6"})}),(0,r.jsx)("h2",{className:"".concat(n?"text-lg":"text-xl"," font-semibold font-sans mb-2"),children:"Weekly Wisdom"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground font-serif max-w-md mx-auto ".concat(n?"hidden sm:block":""),children:d.bP.weeklyWisdom})]}),(0,r.jsxs)("form",{onSubmit:j,className:n?"space-y-2":"space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 items-stretch",children:[(0,r.jsxs)("div",{className:"sm:flex-1",children:[(0,r.jsx)("label",{htmlFor:"newsletter-name",className:"sr-only",children:"First name"}),(0,r.jsx)("input",{id:"newsletter-name",type:"text",placeholder:"First name",className:"w-full h-12 px-4 roun
1ded-xl bg-background ring-1 ring-border/50 text-sm placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-shadow",value:f,onChange:e=>h(e.target.value)})]}),(0,r.jsxs)("div",{className:"sm:flex-[2]",children:[(0,r.jsx)("label",{htmlFor:"newsletter-email",className:"sr-only",children:"Email address"}),(0,r.jsx)("input",{id:"newsletter-email",type:"email",placeholder:"[email protected]",className:"w-full h-12 px-4 rounded-xl bg-background ring-1 ring-border/50 text-sm placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-shadow",value:m,onChange:e=>p(e.target.value),required:!0})]}),(0,r.jsx)("input",{type:"text",value:S,onChange:e=>k(e.target.value),className:"hidden",tabIndex:-1,"aria-hidden":"true"}),(0,r.jsxs)(o.$,{type:"submit","aria-label":"Subscribe to newsletter",className:"h-12 px-6 rounded-xl font-medium group shrink-0",disabled:w,children:[w?"Subscribing...":"Subscribe",!w&&(0,r.jsx)(s.A,{className:"w-4 h-4 ml-2 transition-transform group-hover:translate-x-0.5"})]})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground text-center",children:"Free forever. Unsubscribe anytime. No spam."})]}),b&&!y&&(0,r.jsx)("p",{className:"mt-3 text-sm text-center text-destructive",children:b})]})]})}},52674:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,6874,23)),Promise.resolve().then(n.t.bind(n,33063,23)),Promise.resolve().then(n.bind(n,36129))}},e=>{var t=t=>e(e.s=t);e.O(0,[6874,7750,3063,4212,8441,1684,7358],()=>t(52674)),_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.