PageSourceSearch

https://www.oneblogaday.com/_next/static/chunks/997d4375ef775392.js

js oneblogaday.com collected 2026-10-02 07:13:54 UTC 12,100 bytes, 13 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90571,e=>{"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var a in t=arguments[s])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function s(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(s[r[a]]=e[r[a]]);return s}function r(e,t,s,r){return new(s||(s=Promise))(function(a,i){function n(e){try{l(r.next(e))}catch(e){i(e)}}function o(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}l((r=r.apply(e,t||[])).next())})}function a(e,t,s){if(s||2==arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>t,"__awaiter",()=>r,"__rest",()=>s,"__spreadArray",()=>a])},20755,e=>{"use strict";e.i(29225);var t=e.i(72390);function s(){return(0,t.createBrowserClient)("https://ydstyiadsjzwnxrxdgue.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inlkc3R5aWFkc2p6d254cnhkZ3VlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAyNzUxOTEsImV4cCI6MjA4NTg1MTE5MX0.Nf2o56GwKOmxwG3TunGr9wRi8Buq_Ao0aeZf3Fqy_4c")}e.s(["createClient",()=>s])},18566,(e,t,s)=>{t.exports=e.r(76562)},93862,e=>{"use strict";var t=e.i(81307);let s=t.z.object({email:t.z.string().email("Please enter a valid email address"),password:t.z.string().min(8,"Password must be at least 8 characters").max(72,"Password must be less than 72 characters")}),r=t.z.object({email:t.z.string().email("Please enter a valid email address"),password:t.z.string().min(1,"Password is required")}),a=t.z.object({email:t.z.string().email("Please enter a valid email address")});t.z.object({url:t.z.string().url("Please enter a valid URL (include https://)").refine(e=>e.startsWith("http://")||e.startsWith("https://"),"URL must start with http:// or https://")}),t.z.object({companyName:t.z.string().min(1,"Company name is required").max(100),businessType:t.z.enum(["local","saas","ecommerce","agency","creator","other"]),platform:t.z.enum(["wordpress","wix","shopify","custom"]),tagline:t.z.string().max(200).optional()}),t.z.object({services:t.z.array(t.z.string()).min(1,"Select at least one service"),ctaText:t.z.string().max(100).optional(),ctaUrl:t.z.string().optional(),serviceArea:t.z.string().max(200).optional()}),t.z.object({yearsInBusiness:t.z.string().optional(),customerCount:t.z.string().optional(),reviewRating:t.z.string().optional(),reviewCount:t.z.string().optional(),differentiators:t.z.string().max(500).optional()}),t.z.object({blogCategories:t.z.array(t.z.string()).min(1,"Select at least one category"),targetKeywords:t.z.array(t.z.string()).optional(),competitors:t.z.array(t.z.string()).optional()}),t.z.object({wordpressUrl:t.z.string().url("Please enter a valid WordPress URL"),wordpressUsername:t.z.string().min(1,"Username is required"),wordpressAppPassword:t.z.string().min(1,"Application Password is required")}),e.s(["loginSchema",0,r,"magicLinkSchema",0,a,"signupSchema",0,s])},23426,e=>{"use strict";var t=e.i(18050),s=e.i(71645),r=e.i(22016),a=e.i(18566),i=e.i(20755),n=e.i(93862),o=e.i(81307);function l(){return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)("div",{className:"bg-white rounded-xl p-8 border border-[#E8E4E0] animate-pulse h-96"}),children:(0,t.jsx)(c,{})})}function c(){let e=(0,a.useRouter)(),l=(0,a.useSearchParams)(),c=l.get("redirect")||"/dashboard",d="true"===l.get("verified"),[m,u]=(0,s.useState)(""),[p,h]=(0,s.use
1State)(""),[x,g]=(0,s.useState)({}),[b,f]=(0,s.useState)(!1),[w,v]=(0,s.useState)(!1),[j,y]=(0,s.useState)(!1),[E,z]=(0,s.useState)(!1),N=(0,i.createClient)();async function F(){v(!0),g({});let{error:e}=await N.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/callback`}});e&&(g({general:e.message}),v(!1))}async function C(t){t.preventDefault(),g({}),f(!0);try{n.loginSchema.parse({email:m,password:p})}catch(e){if(e instanceof o.z.ZodError){let t={};e.issues.forEach(e=>{e.path[0]&&(t[e.path[0]]=e.message)}),g(t),f(!1);return}}let{error:s}=await N.auth.signInWithPassword({email:m,password:p});s?g({general:"Invalid email or password"}):e.push(c),f(!1)}async function S(e){e.preventDefault(),g({}),f(!0);try{n.magicLinkSchema.parse({email:m})}catch(e){if(e instanceof o.z.ZodError){g({email:e.issues[0]?.message||"Invalid email"}),f(!1);return}}let{error:t}=await N.auth.signInWithOtp({email:m,options:{emailRedirectTo:`${window.location.origin}/callback`}});t?g({general:t.message}):z(!0),f(!1)}return E?(0,t.jsx)("div",{className:"bg-white rounded-xl p-8 border border-[#E8E4E0] shadow-[var(--shadow-sm)]",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-[#D1FAE5] flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-8 h-8 text-[#10B981]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-[#2D2926] mb-2",children:"Check your email"}),(0,t.jsxs)("p",{className:"text-[#4A4543] mb-4",children:["We sent a sign-in link to ",(0,t.jsx)("strong",{children:m})]}),(0,t.jsx)("button",{onClick:()=>{z(!1),y(!1)},className:"text-sm text-[#0D9488] font-medium hover:underline",children:"Back to login"})]})}):(0,t.jsxs)("div",{className:"bg-white rounded-xl p-8 border border-[#E8E4E0] shadow-[var(--shadow-sm)]",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-semibold text-[#2D2926] mb-2",children:"Welcome back"}),(0,t.jsx)("p",{className:"text-[#4A4543]",children:"Log in to your One Blog a Day account"})]}),d&&(0,t.jsx)("div",{className:"mb-6 p-4 rounded-lg bg-[#D1FAE5] border border-[#10B981] text-sm text-[#065F46]",children:"Your email is verified! Please sign in with your password to continue."}),x.general&&(0,t.jsx)("div",{className:"mb-6 p-4 rounded-lg bg-[#FFE4E6] border border-[#F43F5E] text-sm text-[#F43F5E]",children:x.general}),(0,t.jsxs)("button",{onClick:F,disabled:w,className:"w-full py-3 px-4 bg-white text-[#2D2926] border-2 border-[#E8E4E0] rounded-lg font-semibold hover:bg-[#FEF7F0] hover:border-[#D4CFC9] transition-all duration-200 flex items-center justify-center gap-3 disabled:opacity-50 disabled:cursor-not-allowed",children:[w?(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-[#E8E4E0] border-t-[#0D9488] rounded-full animate-spin"}):(0,t.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),"Continue with Google"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 my-6",children:[(0,t.jsx)("div",{className:"flex-1 h-px bg-[#E8E4E0]"}),(0,t.jsx)("span",{className:"text-sm text-[#7A7672]",children:"or"}),(0,t.jsx)("div",{className:"flex-1 h-px bg-[#E8E4E0]"})]}),j?(0,t.jsxs)("form",{onSubmit:S,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"magic-email",className:"block text-sm font-semibold text-[#2D2926] mb-2",children:"Email"}),(0,t.jsx)("input",{id:"magic-email",type:"email",value:m,onChange:e=>u(e.target.value),placeholder:"[email protected]",autoComplete:"email",className:`w-full px-4 py-3 bg-white border-2 rounded-lg text-base text-[#2D2926]
2                         placeholder:text-[#7A7672]
3                         focus:outline-none focus:border-[#0D9488] focus:ring-4 focus:ring-[rgba(13,148,136,0.15)]
4                         transition-all duration-200
5                         ${x.email?"border-[#F43F5E]":"border-[#
5E8E4E0]"}`}),x.email&&(0,t.jsx)("p",{className:"text-xs text-[#F43F5E] mt-1",children:x.email})]}),(0,t.jsx)("button",{type:"submit",disabled:b,className:"w-full py-3 px-4 bg-[#0D9488] text-white font-semibold rounded-lg hover:bg-[#0F766E] hover:-translate-y-0.5 hover:shadow-[0_4px_14px_rgba(13,148,136,0.35)] active:translate-y-0 transition-all duration-200 disabled:bg-[#B8B4B0] disabled:cursor-not-allowed",children:b?"Sending...":"Send sign-in link"}),(0,t.jsx)("button",{type:"button",onClick:()=>y(!1),className:"w-full text-sm text-[#0D9488] font-medium hover:underline",children:"Back to password login"})]}):(0,t.jsxs)("form",{onSubmit:C,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"login-email",className:"block text-sm font-semibold text-[#2D2926] mb-2",children:"Email"}),(0,t.jsx)("input",{id:"login-email",type:"email",value:m,onChange:e=>u(e.target.value),placeholder:"[email protected]",autoComplete:"email",className:`w-full px-4 py-3 bg-white border-2 rounded-lg text-base text-[#2D2926]
6                         placeholder:text-[#7A7672]
7                         focus:outline-none focus:border-[#0D9488] focus:ring-4 focus:ring-[rgba(13,148,136,0.15)]
8                         transition-all duration-200
9                         ${x.email?"border-[#F43F5E]":"border-[#E8E4E0]"}`}),x.email&&(0,t.jsx)("p",{className:"text-xs text-[#F43F5E] mt-1",children:x.email})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("label",{htmlFor:"login-password",className:"text-sm font-semibold text-[#2D2926]",children:"Password"}),(0,t.jsx)(r.default,{href:"/forgot-password",className:"text-sm text-[#0D9488] font-medium hover:underline",children:"Forgot password?"})]}),(0,t.jsx)("input",{id:"login-password",type:"password",value:p,onChange:e=>h(e.target.value),placeholder:"Your password",autoComplete:"current-password",className:`w-full px-4 py-3 bg-white border-2 rounded-lg text-base text-[#2D2926]
10                         placeholder:text-[#7A7672]
11                         focus:outline-none focus:border-[#0D9488] focus:ring-4 focus:ring-[rgba(13,148,136,0.15)]
12                         transition-all duration-200
13                         ${x.password?"border-[#F43F5E]":"border-[#E8E4E0]"}`}),x.password&&(0,t.jsx)("p",{className:"text-xs text-[#F43F5E] mt-1",children:x.password})]}),(0,t.jsx)("button",{type:"submit",disabled:b,className:"w-full py-3 px-4 bg-[#0D9488] text-white font-semibold rounded-lg hover:bg-[#0F766E] hover:-translate-y-0.5 hover:shadow-[0_4px_14px_rgba(13,148,136,0.35)] active:translate-y-0 transition-all duration-200 disabled:bg-[#B8B4B0] disabled:cursor-not-allowed",children:b?"Logging in...":"Log in"})]}),(0,t.jsxs)("div",{className:"mt-6 text-center space-y-2",children:[!j&&(0,t.jsxs)("p",{className:"text-sm text-[#4A4543]",children:["Trouble signing in?"," ",(0,t.jsx)("button",{onClick:()=>y(!0),className:"text-[#0D9488] font-medium hover:underline",children:"Get a sign-in link"})]}),(0,t.jsxs)("p",{className:"text-sm text-[#4A4543]",children:["Don't have an account?"," ",(0,t.jsx)(r.default,{href:"/signup",className:"text-[#0D9488] font-medium hover:underline",children:"Sign up"})]})]})]})}e.s(["default",()=>l])}]);

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.