PageSourceSearch

https://merlin.site/_next/static/chunks/3kx0jc9bju6f6.js

js merlin.site collected 2026-10-10 01:22:55 UTC 29,015 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a11f67-ee82-7053-a2c0-7a72b3745523")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,266053,e=>{"use strict";var t=e.i(843476),s=e.i(770703),n=e.i(522016),l=e.i(618566),r=e.i(271645);e.i(174940);var i=e.i(840467);e.i(89955);var a=e.i(2633),a=a,o=e.i(217553),c=e.i(848919),d=e.i(81436),u=e.i(625552),p=e.i(646379),h=e.i(81062);let m=/(?:tiktok\.com)\/@([^/?#]+)/i;function x(e){let t=e.replaceAll(/[\u00AD\u00A0\u200B-\u200F\u2028-\u202F\uFEFF]/g,"").trim(),s=m.exec(t);return s?.[1]?s[1]:t.replace(/^@/,"")}var f=e.i(657688),g=e.i(779609);let j=()=>(0,t.jsx)("svg",{fill:"none",height:"18",viewBox:"0 0 24 24",width:"18",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6l12 12",stroke:"#E53935",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),C=()=>(0,t.jsx)("svg",{fill:"none",height:"13",viewBox:"0 0 17 13",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M16.965 1.36689L5.33184 13L0 7.66816L1.36689 6.30127L5.33184 10.2565L15.5981 0L16.965 1.36689Z",fill:"#00B900"})}),v=({onCtaClick:e})=>(0,t.jsx)("section",{className:"lp-section-nowebsite",children:(0,t.jsxs)("div",{className:"lp-section-container",children:[(0,t.jsx)("div",{className:"lp-nowebsite-image-card",children:(0,t.jsx)(f.default,{alt:"Ad preview and lead notification cards",height:420,loading:"lazy",sizes:"(max-width: 767px) 340px, 500px",src:"/images/landing/ad-preview-card.png",width:500})}),(0,t.jsxs)("div",{className:"lp-nowebsite-text",children:[(0,t.jsx)("h2",{className:"lp-nowebsite-headline",children:"No website? People can't find you."}),(0,t.jsx)("p",{className:"lp-nowebsite-subtitle",children:"People are searching for your services on Google and ChatGPT right now and finding your competitors."}),(0,t.jsx)("ul",{className:"lp-search-examples",children:g.SEARCH_EXAMPLES.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(C,{}),(0,t.jsx)("span",{children:e})]},e))}),(0,t.jsx)("button",{className:"lp-outline-btn",type:"button",onClick:e,children:"Get a website and show up"})]})]})}),b=({onCtaClick:e})=>(0,t.jsx)("section",{className:"lp-section-content-to-clients",children:(0,t.jsxs)("div",{className:"lp-section-container",children:[(0,t.jsx)("div",{className:"lp-content-image-card",children:(0,t.jsx)(f.default,{alt:"Instagram profile transformed into a professional website",height:420,loading:"lazy",sizes:"(max-width: 767px) 340px, 500px",src:"/images/landing/instagram-to-website.png",width:500})}),(0,t.jsxs)("div",{className:"lp-content-text",children:[(0,t.jsxs)("h2",{className:"lp-nowebsite-headline",children:["From content",(0,t.jsx)("br",{}),"to clients."]}),(0,t.jsx)("div",{className:"lp-steps-list",children:g.STEPS.map(e=>(0,t.jsxs)("div",{className:"lp-step",children:[(0,t.jsx)("span",{className:"lp-step-number",children:e.number}),(0,t.jsx)("span",{className:"lp-step-text",children:e.text})]},e.number))}),(0,t.jsx)("button",{className:"lp-outline-btn",type:"button",onClick:e,children:"Get a website and show up"})]})]})}),w=()=>(0,t.jsx)("section",{className:"lp-section-why-merlin",children:(0,t.jsxs)("div",{className:"lp-section-container",children:[(0,t.jsx)("h2",{className:"lp-why-merlin-title",children:"Why Merlin?"}),(0,t.jsxs)("div",{className:"lp-comparison",children:[(0,t.jsxs)("div",{className:"lp-comparison-col lp-comparison-col--before",children:[(0,t.jsx)("div",{className:"lp-comparison-header",children:"Before Merlin"}),g.BEFORE_MERLIN.map(e=>(0,t.jsxs)("div",{className:"lp-comparison-item",children:[(0,t.jsx)(j,{}),(0,t.jsx)("span",{children:e})]},e))]}),(0,t.jsxs)("div",{className:"lp-comparison-col lp-comparison-col--after",children:[(0,t.jsx)("div",{className:"lp-comparison-header",children:"After Merlin"}),g.AFTER_MERLIN.map(e=>(0,t.jsxs)("div",{className:"lp-comparison-item",children:[(0,t.jsx)(C,{}),(0,t.jsx)("span",{children:e})]},e))]})]})]})}),y=()=>(0,t.jsx)("section",{className:"lp-section-trusted",children:(0,t.jsx)("div",{className:"lp-section-container",children:(0,t.jsxs)("div",{className:"lp-trusted-inner",children:[(0,t.jsx)(f.default,{alt:"Creators using Merlin",className:"lp-avatars-row",height:40,loading:"lazy",src:"/images/landing/user-avatars-row.png",width:160}),(0,t.jsx)("h2",{className:"lp-trusted-headline",children:"Already Trusted by Over 200K Business Owners"}),(0,t.jsx)("div",{className:"lp-stats-list",children:g.STATS.map((e,s)=>(0,t.jsxs)("div",{className:`lp-stat-item${s<g.STATS.length-1?" lp-stat-item--bordered":""}`,children:[(0,t.jsx)("span",{className:"lp-stat-value",children:e.value}),(0,t.jsx)("span",{className:"lp-stat-label",children:e.label})]},e.label))})]})})}),N=()=>(0,t.jsx)("section",{className:"lp-section-testimonials",children:(0,t.jsxs)("div",{className:"lp-section-container",children:[(0,t.jsx)("h2",{className:"lp-testimonials-title",children:"Loved by business owners in every industry"}),(0,t.jsx)("div",{className:"lp-testimonials-grid",children:g.TESTIMONIALS.map(e=>(0,t.jsx)("div",{className:"lp-testimonial-card-v2",children:(0,t.jsx)(f.default,{alt:`${e.name} testimonial`,className:"lp-testimonial-card-img",height:320,loading:"lazy",sizes:"(max-width: 767px) 100v
1w, 340px",src:e.image,width:340})},e.name))})]})});var k=e.i(174080);let S=({open:e,onClose:s,labelledBy:n,backdropTestId:l,children:i})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(0),c=(0,r.useRef)(0);return e?(0,k.createPortal)((0,t.jsx)("div",{className:"lp-why-sheet-backdrop","data-testid":l,onClick:s,children:(0,t.jsxs)("div",{"aria-labelledby":n,"aria-modal":"true",className:"lp-why-sheet",ref:a,role:"dialog",onClick:e=>{e.stopPropagation()},onTouchEnd:()=>{let e=c.current-o.current,t=a.current;t&&(t.style.transition=""),e>80?(t&&(t.style.transform="translateY(100%)"),setTimeout(s,200)):t&&(t.style.transform="")},onTouchMove:e=>{let t=e.touches[0];if(!t)return;c.current=t.clientY;let s=Math.max(0,c.current-o.current),n=a.current;n&&(n.style.transform=`translateY(${String(s)}px)`)},onTouchStart:e=>{let t=e.touches[0];if(!t)return;o.current=t.clientY,c.current=t.clientY;let s=a.current;s&&(s.style.transition="none")},children:[(0,t.jsx)("div",{className:"lp-why-sheet-handle"}),i]})}),document.body):null},E=({open:e,onDismiss:s,onLogin:n,onCreateNew:l})=>(0,t.jsxs)(S,{backdropTestId:"existing-site-backdrop",labelledBy:"existing-site-title",open:e,onClose:s,children:[(0,t.jsx)("h3",{className:"lp-existing-sheet-title",id:"existing-site-title",children:"Already have a Merlin site?"}),(0,t.jsxs)("p",{className:"lp-existing-sheet-text",children:["Log in to pick up where you left off.",(0,t.jsx)("br",{}),"New here? Let's create your site."]}),(0,t.jsxs)("div",{className:"lp-existing-sheet-actions",children:[(0,t.jsx)("button",{className:"lp-existing-sheet-btn lp-existing-sheet-btn--primary",type:"button",onClick:n,children:"Log in to continue"}),(0,t.jsx)("button",{className:"lp-existing-sheet-btn lp-existing-sheet-btn--secondary",type:"button",onClick:l,children:"I'm new, create my site"})]})]}),T=()=>(0,t.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 6v12M6 12h12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),I=({answer:e,defaultOpen:s=!1,question:n})=>{let[l,i]=(0,r.useState)(s);return(0,t.jsxs)("div",{className:`lp-faq-item ${l?"lp-faq-item--open":""}`,children:[(0,t.jsxs)("button",{className:"lp-faq-question",type:"button",onClick:()=>{i(e=>!e)},children:[(0,t.jsx)("span",{children:n}),(0,t.jsx)(T,{})]}),(0,t.jsx)("div",{className:"lp-faq-answer",dangerouslySetInnerHTML:{__html:e}})]})},L=()=>(0,t.jsx)("section",{className:"lp-section-faq",children:(0,t.jsxs)("div",{className:"lp-section-container",children:[(0,t.jsx)("h2",{className:"lp-faq-title",children:"You might be wondering"}),(0,t.jsx)("div",{children:g.FAQ_ITEMS.map(e=>(0,t.jsx)(I,{answer:e.answer,question:e.question},e.question))})]})}),_="ksj9pve8",A=!1,B=!1,P=!1,G=!1,R=0,M={api_base:"https://api-iam.intercom.io",app_id:_,hide_default_launcher:!0};function F(){G||(G=!0,window.intercomSettings={...M})}function q(){!A&&window.Intercom&&(window.Intercom("boot",{...M}),A=!0,B&&(B=!1,window.Intercom("show")))}let D=null;function O(){if(P)return;P=!0,F();let t=R,s=document.createElement("script");s.async=!0,s.src=`https://widget.intercom.io/widget/${_}`,s.addEventListener("load",()=>{t===R&&q()}),s.addEventListener("error",()=>{P=!1,D=null,e.A(325044).then(e=>{e.captureException(Error("Intercom anonymous widget script failed to load"),{context:"intercom_anonymous_widget"})}),B=!1}),D=s,document.body.append(s)}function z(){A&&window.Intercom?window.Intercom("show"):(B=!0,!A&&window.Intercom)?q():O()}function U(){R++,window.Intercom?.("shutdown"),A=!1,B=!1,D&&(D.remove(),D=null),P=!1}let W=()=>{let e=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(e.current)return;if(e.current=!0,F(),window.Intercom)return q(),U;let t="function"==typeof cancelIdleCallback?cancelIdleCallback:clearTimeout,s=("function"==typeof requestIdleCallback?requestIdleCallback:e=>setTimeout(e,2e3))(()=>{O()});return()=>{t(s),U()}},[]),null},$=({className:e,fill:s="#1B1B1B"})=>(0,t.jsx)("svg",{className:e,fill:"none",height:"25",viewBox:"0 0 77 25",width:"77",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M55.3111 0.00511879C56.5919 0.0482549 57.6559 0.841957 57.772 2.19164C57.8552 3.17119 57.7537 4.1493 57.5601 5.16039C56.5876 10.2338 53.9355 14.7427 49.9996 18.1379C49.9924 19.1004 50.2634 20.1477 51.0738 20.7473C52.3332 21.6795 54.1285 21.266 55.0924 20.0383C55.6819 19.2867 56.0729 18.3691 56.3511 17.4397L57.5787 13.3411C58.0119 11.8968 59.39
103 11.9712 60.6324 12.1877C61.1631 12.2795 61.3756 12.8264 61.2379 13.2883C60.7072 15.0654 60.2079 16.7535 59.7662 18.5579C59.6185 19.1602 59.3545 20.821 59.9508 21.1399C60.8286 21.6089 62.6359 20.3109 63.0992 18.2698L64.314 12.9192C64.5465 11.8938 65.4448 11.4318 66.4459 11.5608C66.8217 11.6096 67.3422 11.7608 67.5416 11.9817C68.3864 12.9154 66.7376 16.0605 66.8277 17.5481C68.4314 14.6879 71.312 10.2347 75.0513 11.8684C75.7852 12.1899 75.9476 13.1504 75.7857 13.9133C75.539 15.0723 73.8805 21.7382 75.1168 21.9221C75.1168 21.9221 76.1919 21.4181 76.5201 22.0754C76.8481 22.7326 76.2617 23.0926 75.7525 23.4856C74.6825 24.3147 73.0453 24.5427 71.8619 23.758C70.2098 22.6605 71.3087 18.1933 71.7017 16.551C71.8365 15.989 71.9148 15.5173 71.8131 14.842C70.874 15.2465 70.355 15.9047 69.7857 16.6604C68.4446 18.4405 67.7065 20.5353 67.2203 22.717C67.0509 23.4783 66.4618 24.0315 65.8638 24.1721C65.0764 24.3572 64.2717 24.35 63.7252 23.7131C63.3853 23.3172 63.266 22.6832 63.0953 22.0579C62.0783 23.4005 60.5648 24.1915 58.898 24.137C57.4897 24.091 56.6667 23.2286 56.4615 21.6926C54.8923 23.6678 52.6826 24.3989 50.3345 24.0647C47.5349 23.6672 46.4445 21.6563 46.2437 18.9827C45.2584 19.7944 44.0552 20.2051 42.8189 19.8108C41.0761 19.2557 41.5165 16.5513 41.5064 14.9778C39.4567 16.9113 38.2647 19.4733 37.734 22.1614C37.46 23.5513 36.3305 24.2831 34.9205 24.1067C33.9554 23.9846 33.4004 23.2654 33.148 22.1711C31.1284 24.3041 27.8723 24.6282 25.233 23.7991C24.2334 23.4849 23.446 22.8929 22.8336 22.0266C21.5971 23.4854 19.8025 24.3442 17.9019 24.0803L17.9029 24.0823C15.2843 23.7191 15.5764 20.4002 15.9937 18.5198L16.8433 14.6897C15.8909 15.0985 15.3683 15.7321 14.7974 16.4651C13.4247 18.2265 12.5856 20.2779 12.0621 22.4553C11.8727 23.2414 11.3437 23.8946 10.7154 24.1155C9.89791 24.4037 8.96301 24.3716 8.37068 23.7034C7.21456 22.3995 8.16942 18.7446 8.57966 17.1223C8.75608 16.4252 8.93576 15.7884 8.85114 14.9866C6.46145 16.421 5.16128 19.9486 4.6822 22.3928C4.43677 23.6433 3.49444 24.3262 2.22517 24.3391C1.11943 24.3505 0.142906 23.7679 0.0366905 22.5647C-0.205722 19.8164 0.803929 15.4696 1.56989 12.7385C2.05343 11.0118 4.30534 11.5155 4.83747 11.887C5.98907 12.6874 4.12762 15.8771 4.24079 17.5539C5.61641 15.0279 8.7906 10.0567 12.2603 11.9358C12.8728 12.2671 12.8339 13.169 12.689 13.7815C12.3678 15.144 12.0858 16.3892 11.8922 17.6829C13.361 14.8657 16.4332 10.484 20.0318 11.7746C20.6958 12.0127 20.9254 12.816 20.7535 13.5159C20.2357 15.623 19.7475 17.6432 19.5338 19.8235C19.4922 20.2524 19.6132 20.9165 19.9947 21.136C20.5641 21.4629 21.9519 20.8377 21.9595 20.1565C21.9768 18.276 22.0844 16.639 22.9234 14.9866C24.4137 12.0518 27.7561 10.6432 30.8658 11.8323C31.7522 12.1722 32.2844 13.0112 32.3433 13.9377C32.5843 17.7547 28.8821 19.6696 25.5543 20.2405C25.7866 21.0237 26.4122 21.4633 27.1509 21.6096C29.466 22.0685 32.8478 21.0797 33.4488 18.3401L34.6099 13.0491C34.7032 12.6216 34.9441 11.9745 35.3228 11.7737C36.1332 11.342 37.2348 11.3663 37.9634 11.9084C38.9743 12.6618 37.3682 16.2429 37.4068 17.7161C38.5686 15.5358 39.8858 13.6033 41.8365 12.0871C42.7372 11.3875 43.9606 11.1264 44.9674 11.8118C46.046 12.5476 44.0264 16.2261 44.8541 17.4368C44.9518 17.5799 45.4374 17.5398 45.5611 17.4153C45.9483 17.0252 46.1982 16.4813 46.2427 15.9377C46.6186 11.3591 47.5939 7.03959 50.1285 3.18676C50.7538 2.23586 51.5227 1.4165 52.4234 0.763908C53.3241 0.111386 54.254 -0.0307386 55.3111 0.00511879ZM28.8765 13.5705C27.1884 12.5565 25.6733 16.756 25.772 18.261C27.5378 17.9081 29.4132 16.3002 29.3013 14.3967C29.2826 14.0712 29.083 13.6939 28.8765 13.5705ZM54.2916 3.01293C52.14 2.36745 49.7022 13.2065 49.817 15.2405C52.9439 12.6428 54.4103 8.06286 54.9371 4.37524C55.0805 3.37131 54.7255 3.14311 54.2916 3.01293ZM59.8687 7.36156C60.8215 7.22368 61.6444 7.7766 61.8199 8.70629C61.9793 9.55254 61.496 10.4914 60.5474 10.7385C59.5393 11.0006 58.6364 10.3846 58.4332 9.4768C58.2131 8.48867 58.8622 7.50782 59.8687 7.36156Z",fill:s,fillRule:"evenodd"})}),Y=({footerHandle:e,platformLabel:s,shortPlatformLabel:l,onFooterHandleChange:r,onFooterSubmit:i})=>(0,t.jsx)("footer",{className:"lp-footer",children:(0,t.jsxs)("div",{className:"lp-footer-content",children:[(0,t.jsxs)("div",{className:"lp-footer-brand",children:[(0,t.jsx)($,{className:"lp-footer-logo",fill:"#FBFFED"}),(0,t.jsx)("p",{className:"lp-footer-tagline",children:"Turning social content into customers."})]}),(0,t.jsxs)("div",{className:"lp-footer-form",children:[(0,t.jsxs)("div",{className:"lp-footer-input-row",children:[(0,t.jsxs)("div",{className:"lp-footer-input-wrapper",children:[(0,t.jsx)("input",{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:"lp-footer-input",placeholder:"",spellCheck:!1,type:"text",value:e,onCh
1ange:e=>{r(e.target.value)}}),(0,t.jsxs)("span",{className:`lp-footer-placeholder ${e.length>0?"lp-footer-placeholder--hidden":""}`,children:["Enter ",s," @username"]})]}),(0,t.jsxs)("button",{className:"lp-footer-submit",type:"button",onClick:i,children:["Get started ","–"," it's free"]})]}),(0,t.jsxs)("p",{className:"lp-footer-note",children:["No ",l," login required ","•"," by continuing, you agree to our"," ",(0,t.jsx)(n.default,{href:"/terms",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and"," ",(0,t.jsx)(n.default,{href:"/privacy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]})]}),(0,t.jsxs)("div",{className:"lp-footer-bottom",children:[(0,t.jsxs)("div",{className:"lp-footer-links",children:[(0,t.jsx)(n.default,{href:"/terms",children:"Terms & conditions"}),(0,t.jsx)(n.default,{href:"/privacy",children:"Privacy policy"}),(0,t.jsx)("button",{className:"lp-footer-contact",type:"button",onClick:z,children:"Contact us"})]}),(0,t.jsxs)("p",{className:"lp-footer-copyright",children:["© ",new Date().getFullYear()," Magic Merlin. All rights reserved."]})]})]})}),H=RegExp("Googlebot|Google-Extended|Storebot-Google|bingbot|Applebot|DuckDuckBot|Baiduspider|YandexBot|Slurp|GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|Claude-User|PerplexityBot|Perplexity-User|Amazonbot|Bytespider|Meta-ExternalAgent|CCBot|cohere-ai|YouBot|Diffbot|HeadlessChrome|PhantomJS|Chrome-Lighthouse|crawler|spider","i");var K=e.i(31035);let Z=({open:e,onClose:s,errorMessage:n})=>(0,t.jsxs)(S,{backdropTestId:"why-it-happens-backdrop",labelledBy:"why-it-happens-title",open:e,onClose:s,children:[(0,t.jsx)("h3",{className:"lp-why-sheet-title",id:"why-it-happens-title",children:"We couldn't access this account"}),n?(0,t.jsx)("p",{className:"lp-why-sheet-message",children:n}):null,(0,t.jsxs)("div",{className:"lp-why-sheet-reasons",children:[(0,t.jsx)("p",{className:"lp-why-sheet-reasons-heading",children:"Possible reasons:"}),(0,t.jsxs)("ul",{className:"lp-why-sheet-list",children:[(0,t.jsx)("li",{children:"Account is private or age-restricted"}),(0,t.jsx)("li",{children:"Username is incorrect"}),(0,t.jsx)("li",{children:"Account no longer exists"})]})]}),(0,t.jsx)("p",{className:"lp-why-sheet-footer font-medium text-[18px]",children:"Check and fix the username or account privacy settings before trying again."})]}),V=(0,s.default)(()=>e.A(819808).then(e=>({default:e.TemplateEditor})),{loadableGenerated:{modules:[84031]},ssr:!1}),J="lp_form",Q={empty:"Please enter a {platform} username to continue.",looks_like_email:"Please enter your {platform} username, not an email address.",has_spaces:"{platform} usernames can't contain spaces. Please check your input.",invalid_characters:"{platform} usernames can only contain letters, numbers, dots, and underscores."},X=({errorMessage:e,generationError:s,onDismiss:n,onWhyClick:l})=>e?(0,t.jsxs)("div",{className:"lp-inline-error lp-inline-error--show",children:[(0,t.jsx)("svg",{className:"lp-inline-error-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"lp-inline-error-title",children:e.title}),(0,t.jsx)("p",{className:"lp-inline-error-text",children:e.text})]}),(0,t.jsx)("button",{className:"lp-inline-error-dismiss",type:"button",onClick:n,children:(0,t.jsxs)("svg",{fill:"none",height:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"16",children:[(0,t.jsx)("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]})})]}):s?(0,t.jsxs)("p",{className:"lp-generation-error",children:["We couldn't access this profile."," ",(0,t.jsx)("button",{className:"lp-generation-error-link",type:"button",onClick:l,children:"Why it happens?"})]}):null,ee=({className:e,isScrolled:s,onScrolledClick:l})=>(0,t.jsx)(n.default,{className:e,href:"/login",onClick:e=>{s&&(e.preventDefault(),l())},children:s?"Get started":"Existing Users"});function et(e){let t=e.get("igHandle");if(t){let e=t.replace(/^@/,"").trim();if(e)return{handle:e,platform:"instagram",autoStart:!0}}let s=e.get("tikTokHandle");if(s){let e=s.replace(/^@/,"").trim();if(e)return{handle:e,platform:"tiktok",autoStart:!0}}let n=e.get("handle")??e.get("username")??e.get("ig")??e.get("tt");if(n){let e=n.replace(/^@/,"").trim();if(e)return{handle:e,platform:null,autoStart:!1}}return{handle:"",platform:null,autoStart:!1}}let es=new Set(["metro","sage","soho","soho-v2","oak","frame","flow"]);async function en(){try{await (0,u.logout)()}catch(t){if(t instanceof u.AuthServiceError&&401===t.statusCode)return;e.A(325044).then(e=>{e.captureException(t instanceof Error?t:Error(String(t)),{context:"guest_generate_logout"})})}}let el=()=>{var s;let m=(0,l.useRouter)(),f=(0,l.useSearchParams)(),j="generation_failed"===f.get("error"),C="leave"===f.get("source"),k=j||C,S=(0,o.useAuthedSuiteRedirect)({skip:k}),T=(0,c.useGuestEditorRedirect)({skip:k}),I=(s=f.get("template"))&&es.has(s)?s:"metro",_=(0,r.useRef)(null),A=(0,r.useRef)(null),B=(0,r.useRef)(null),P=et(f),[G,R]=(0,r.useState)(P.platform??("tiktok"===f.get("platform")?"tiktok":"instagram")),M=f.get("handle"),F=function(e,t,s,n,l){let i=(0,r.useRef)(!1),[a,o]=(0,r.useState)(!1),c=l||"true"===e.get("autosubmit")&&!!t;return(0,r.useEffect)(()=>
1{if(!i.current&&c){if(i.current=!0,function(){if("u"<typeof navigator||navigator.webdriver)return!0;let{userAgent:e}=navigator;return!e||H.test(e)}())return void o(!0);setTimeout(()=>{n.current?.requestSubmit()},100)}},[c,s,n]),c&&!a}(f,M,G,B,P.autoStart),[q,D]=(0,r.useState)(()=>P.handle||function(){try{return et(new URLSearchParams(globalThis.location.search)).handle}catch{}return""}()),[O,z]=(0,r.useState)(""),[U,el]=(0,r.useState)(!1),[er,ei]=(0,r.useState)(!1),[ea,eo]=(0,r.useState)(!1),[ec,ed]=(0,r.useState)(null),[eu,ep]=(0,r.useState)(!1),[eh,em]=(0,r.useState)(null),[ex,ef]=(0,r.useState)(null),[eg,ej]=(0,r.useState)(!1),[eC,ev]=(0,r.useState)(null),[eb,ew]=(0,r.useState)(!1),ey=(0,p.useEditorStore)(e=>e.isLoaderDismissed),eN=(0,r.useCallback)(()=>{p.useEditorStore.getState().setGenerationComplete(!0)},[]),ek=(0,r.useCallback)(t=>{ef({title:"Generation Failed",text:t}),em(t),eo(!0),el(!1),p.useEditorStore.getState().setIsGeneratingSite(!1),ev(null),e.A(219802).then(e=>{e.trackGenerationCompleted("fail",t)})},[]),eS=(0,r.useCallback)(()=>void 0,[]);(0,d.useSiteReadiness)({siteId:eC,isWaiting:null!==eC&&!ey&&!eb,isListening:!1,onHomepageReady:eN,onFallbackReady:eN,onServicePageReady:eS,onCommentReady:eS,onLinksPageReady:e=>{null!==e.page&&p.useEditorStore.getState().setLinksPageOutcome("ready")},onLinksPageSkipped:()=>{p.useEditorStore.getState().setLinksPageOutcome("skipped")},onGenerationComplete:eS,onGenerationFailed:ek,onTimeout:()=>{ew(!0)}}),(0,r.useEffect)(()=>{eC&&m.replace(`/editor/${eC}?source=generate`)},[eC,m]);let[eE,eT]=(0,r.useState)(!1),eI=j&&!eE,eL=(0,r.useRef)(!1);(0,r.useEffect)(()=>{eI&&!eL.current&&(eL.current=!0,em(null),eo(!0))},[eI]);let e_="tiktok"===G?x:h.extractInstagramUsername,eA=e_(q),eB="instagram"===G?(0,h.validateInstagramInput)(q):null,eP=eA.length>0&&null===eB,eG=g.PLATFORM_CONFIG[G],eR=(0,K.useTypingPlaceholder)(A,eG.prefix,eG.suffixes);(0,r.useEffect)(()=>{e.A(829299).then(e=>{e.prefetchTemplate("soho-v2")}),e.A(185112)},[m]),(0,r.useEffect)(()=>{let e=_.current;if(!e)return;let t=()=>{ei(e.scrollTop>50)};return e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t)}},[]);let eM=(0,r.useCallback)(()=>{let e=B.current,t=_.current;if(!e||!t)return;let s=globalThis.visualViewport;if(!s)return void A.current?.scrollIntoView({behavior:"smooth",block:"center"});let n=e.getBoundingClientRect(),l=s.offsetTop+s.height,r=n.bottom-(l-16);r>0&&t.scrollBy({top:r,behavior:"smooth"})},[]);(0,r.useEffect)(()=>{let e=globalThis.visualViewport;if(!e)return;let t=()=>{document.activeElement===A.current&&eM()};return e.addEventListener("resize",t),()=>{e.removeEventListener("resize",t)}},[eM]);let eF=()=>{A.current?.focus(),_.current?.scrollTo({top:0,behavior:"smooth"})},eq=()=>{ef(null),eT(!0),el(!1)},eD="tiktok"===G,eO=eD?"TikTok":"Instagram",ez=eD?"TikTok":"IG",eU=["lp-input-field",eg&&"lp-input-field--shake",eI&&"lp-input-field--error"].filter(Boolean).join(" "),eW=U?"Creating your site...":"Get started - it's free",e$=`lp-header ${er?"lp-header--scrolled":""}`,eY=`lp-login-btn ${er?"lp-login-btn--scrolled-cta":""}`,eH=(t,s)=>{el(!0),(0,i.preloadSiteLoader)();let n="TIKTOK"===t.platform?"lp_tiktok":"lp_instagram",l=Date.now(),r=()=>{e.A(325044).then(e=>{e.GenerationEvents.processStarted({process_type:n,username:t.sourceId,handle:t.sourceId,form_id:J,start_time:l,page_url:globalThis.location.href,timestamp:new Date().toISOString()})})};p.useEditorStore.getState().reset(),p.useEditorStore.getState().startGeneration(n,l),p.useEditorStore.getState().setSocialPlatform(t.platform),s||(r(),(0,a.clearDevSession)()),(async()=>{try{s||await en();let{siteId:e}=await (0,u.generateSite)({socialSource:t,..."INSTAGRAM"===t.platform?{instagramUsername:t.sourceId}:{},blockOnExisting:s});
1s&&(r(),(0,a.clearDevSession)()),p.useEditorStore.getState().hydrateClaims(),ev(e)}catch(a){let l;if(s&&(0,u.isSiteAlreadyExistsError)(a)){let s=p.useEditorStore.getState();s.setIsGeneratingSite(!1),s.clearGenerationContext(),s.dismissLoader(),el(!1),ep(!0),ed(t),e.A(325044).then(e=>{e.GenerationEvents.existingSiteSheetShown({process_type:n,form_id:J})});return}s&&r();let i=(l=a instanceof Error?a.message:"Failed to start site generation",e.A(219802).then(e=>{e.trackGenerationCompleted("fail",l)}),e.A(325044).then(e=>{e.captureException(a instanceof Error?a:Error(String(a)),{context:"site_generation"})}),l);p.useEditorStore.getState().setIsGeneratingSite(!1),el(!1),ef({title:"Generation Failed",text:i}),em(i),eo(!0)}})()},eK=e=>{if(e.preventDefault(),!U){if(!eP){let e;ej(!0),setTimeout(()=>{ej(!1)},400),ef((e=eB?Q[eB]:Q.empty,{title:eB?"Invalid Username":"Missing Username",text:e.replaceAll("{platform}",eO)}));return}eq(),eH({platform:eD?"TIKTOK":"INSTAGRAM",sourceId:eA},!0)}},eZ=(t,s)=>{e.A(325044).then(e=>{e.GenerationEvents.existingSiteSheetAction({action:s,process_type:"TIKTOK"===t.platform?"lp_tiktok":"lp_instagram",form_id:J})})};return null!==eC?(0,t.jsx)(V,{siteId:eC,templateId:I}):S||T?null:!F||ex||null!==ec||eu?(0,t.jsxs)("div",{className:"lp",ref:_,children:[(0,t.jsxs)("header",{className:e$,children:[(0,t.jsx)($,{className:"lp-logo"}),(0,t.jsx)(ee,{className:eY,isScrolled:er,onScrolledClick:eF})]}),(0,t.jsxs)("section",{className:"lp-hero",children:[(0,t.jsxs)("div",{className:"lp-hero-content",children:[(0,t.jsx)("h1",{className:"lp-hero-headline",children:"Turn Your Social Content Into a Website"}),(0,t.jsx)("p",{className:"lp-hero-subheadline lp-hero-subheadline--mobile",children:"Created in under 30 seconds"}),(0,t.jsx)("p",{className:"lp-hero-subheadline lp-hero-subheadline--desktop",children:"In under 30 seconds"})]}),(0,t.jsxs)("div",{className:"lp-input-section",children:[(0,t.jsxs)("div",{className:"lp-platform-toggle",children:[(0,t.jsx)("button",{className:`lp-platform-btn ${eD?"":"lp-platform-btn--active"}`,type:"button",onClick:()=>{R("instagram"),eq()},children:"Instagram"}),(0,t.jsx)("button",{className:`lp-platform-btn ${eD?"lp-platform-btn--active":""}`,type:"button",onClick:()=>{R("tiktok"),eq()},children:"TikTok"})]}),(0,t.jsxs)("form",{ref:B,onSubmit:eK,children:[(0,t.jsxs)("div",{className:"lp-input-row",children:[(0,t.jsxs)("div",{className:"lp-input-wrapper",children:[(0,t.jsx)("input",{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:eU,disabled:U,placeholder:"",ref:A,spellCheck:!1,type:"text",value:q,onBlur:eR.onBlur,onChange:e=>{D(e.target.value),eR.onInput(),eq()},onFocus:()=>{eR.onFocus(),eq(),setTimeout(eM,300)}}),(0,t.jsx)("span",{className:`lp-placeholder-label ${eR.isHidden||q.length>0?"lp-placeholder-label--hidden":""}`,children:eR.placeholderText})]}),(0,t.jsx)("button",{className:"lp-cta-btn",disabled:U,type:"submit",children:eW})]}),(0,t.jsx)(X,{errorMessage:ex,generationError:eI,onDismiss:eq,onWhyClick:()=>{eo(!0)}}),(0,t.jsxs)("p",{className:"lp-input-note",children:[(0,t.jsxs)("strong",{children:["No ",ez," login required"]})," ","•"," by continuing, you agree to our"," ",(0,t.jsx)(n.default,{href:"/terms",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and"," ",(0,t.jsx)(n.default,{href:"/privacy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]})]})]}),(0,t.jsx)("div",{className:"lp-mockups",children:(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{height:600,media:"(min-width: 768px)",srcSet:"https://res.cloudinary.com/dftjvuiin/image/upload/f_auto,q_auto:good,w_1200/v1769334339/desktop-hero_x0prxb.png",width:1200}),(0,t.jsx)("img",{alt:"Website previews",decoding:"async",fetchPriority:"high",height:600,src:"https://res.cloudinary.com/dftjvuiin/image/upload/f_auto,q_auto:good,w_800/v1769334305/Frame_1618873211_2_v1syf0.png",width:800})]})})]}),(0,t.jsx)(v,{onCtaClick:eF}),(0,t.jsx)(b,{onCtaClick:eF}),(0,t.jsx)(w,{}),(0,t.jsx)(y,{}),(0,t.jsx)(N,{}),(0,t.jsx)(L,{}),(0,t.jsx)(Y,{footerHandle:O,platformLabel:eO,shortPlatformLabel:ez,onFooterHandleChange:z,onFooterSubmit:()=>{let e=e_(O);e&&(D(e),A.current?.focus(),_.current?.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{B.current?.requestSubmit()},300))}}),(0,t.jsx)(W,{}),(0,t.jsx)(E,{open:null!==ec,onCreateNew:()=>{ec&&(eZ(ec,"create_new"),ed(null),eH(ec,!1))},onDismiss:()=>{ec&&(eZ(ec,"dismiss"),ed(null))},onLogin:()=>{ec&&(eZ(ec,"login"),ed(null),m.push("/login"))}}),(0,t.jsx)(Z,{errorMessage:eh,open:ea,onClose:()=>{eo(!1),em(null)}})]}):(0,t.jsx)("form",{className:"hidden",ref:B,onSubmit:eK,children:(0,t.jsx)("input",{type:"hidden"})})};e.s(["default",0,()=>(0,t.jsx)(r.Suspense,{children:(0,t.jsx)(el,{})})],266053)}]);
2
3//# sourceMappingURL=2mqzcf9c0s5f3.js.map
4//# chunkId=01a11f67-ee82-7053-a2c0-7a72b3745523

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.