PageSourceSearch

https://doorstephub.com/_next/static/chunks/9291.07e57c7bdd81e5ec.js

js doorstephub.com collected 2026-10-02 06:22:41 UTC 6,728 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9291],{99291:function(e,t,a){a.r(t),a.d(t,{Newsletter:function(){return c}});var i=a(57437),s=a(2265),r=a(34924),n=a(89345),o=a(92934),l=a(44743);function c(){let[e,t]=(0,s.useState)(""),[a,c]=(0,s.useState)(""),[d,u]=(0,s.useState)("subscribe"),[p,h]=(0,s.useState)(!1),[m,b]=(0,s.useState)(!1),[x,y]=(0,s.useState)(""),[w,f]=(0,s.useState)(!1),v=async t=>{t.preventDefault(),h(!0),y(""),f(!1);try{let t=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/newsletter/subscribe"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}),a=await t.json();a.success?(u("verify"),y("Verification OTP sent to your email.")):(f(!0),y(a.message||"Subscription failed. Please try again."))}catch(e){f(!0),y("Network error. Please try again later.")}finally{h(!1)}},g=async i=>{i.preventDefault(),h(!0),y(""),f(!1);try{let i=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/newsletter/verify-otp"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,otp:a})}),s=await i.json();s.success?(b(!0),y("Successfully subscribed! Welcome to our newsletter."),setTimeout(()=>{u("subscribe"),t(""),c(""),b(!1),y("")},3e3)):(f(!0),y(s.message||"Invalid OTP. Please try again."))}catch(e){f(!0),y("Verification failed. Please try again.")}finally{h(!1)}};return(0,i.jsxs)("section",{className:"py-20 relative overflow-hidden",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#0f1614] via-[#0a0a0a] to-[#0f1614]"}),(0,i.jsx)(r.E.div,{initial:!1,animate:{scale:[1,1.2,1],opacity:[.1,.2,.1]},transition:{duration:8,repeat:1/0},className:"absolute -top-1/2 left-1/4 w-96 h-96 bg-[#037166] rounded-full blur-[120px] pointer-events-none"}),(0,i.jsx)(r.E.div,{initial:!1,animate:{scale:[1.2,1,1.2],opacity:[.1,.15,.1]},transition:{duration:10,repeat:1/0},className:"absolute -bottom-1/2 right-1/4 w-96 h-96 bg-cyan-500 rounded-full blur-[120px] pointer-events-none"}),(0,i.jsxs)("div",{className:"relative z-10 max-w-4xl mx-auto px-6 lg:px-8 text-center",children:[(0,i.jsx)(r.E.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-[#037166] to-[#04a99d] mb-6 shadow-xl shadow-[#037166]/30",children:(0,i.jsx)(n.Z,{className:"w-8 h-8 text-white"})}),(0,i.jsxs)(r.E.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl md:text-5xl font-bold mb-4",children:[(0,i.jsx)("span",{className:"bg-gradient-to-r from-white to-white/80 bg-clip-text text-transparent",children:"Stay Updated With"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"bg-gradient-to-r from-[#037166] to-[#04a99d] bg-clip-text text-transparent",children:"Service Offers"})]}),(0,i.jsx)(r.E.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"text-white/60 text-lg mb-8 max-w-2xl mx-auto",children:"Get exclusive deals, maintenance tips, and service updates delivered straight to your inbox."}),(0,i.jsxs)(r.E.form,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},onSubmit:"subscribe"===d?v:g,className:"max-w-md mx-auto",children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsxs)("div",{className:"relative flex items-center gap-3 p-2 rounded-full bg-white/5 backdrop-blur-md border border-white/10 hover:border-[#037166]/50 transition-all",children:[(0,i.jsx)("div",{className:"pl-3",children:(0,i.jsx)(n.Z,{className:"w-5 h-5 text-white/40"})}),(0,i.jsx)("input",{type:"subscribe"===d?"email":"text",value:"subscribe"===d?e:a,onChange:e=>"subscribe"===d?t(e.target.value):c(e.target.value),placeholder:"subscribe"===d?"Enter your email address":"Enter 6-digit OTP",required:!0,disabled:p||m,className:"flex-1 bg-transparent text-white placeholder:text-white/40 outline-none py-2",maxLength:"subscribe"===d?void 0:6}),(0,i.jsxs)(r.E.button,{type:"submit",disabled:p||m,whileHover:{scale:1.05},whileTap:{scale:.95},className:"px-6 py-3 rounded-full bg-gradient-to-r from-[#037166] to-[#04a99d] text-white font-medium shadow-lg shadow-[#037166]/30 hover:shadow-[#037166]/50 transition-all flex items-center gap-2 group ".concat(p?"o
1pacity-70 cursor-wait":""),children:[(0,i.jsx)("span",{children:p?"Processing...":"subscribe"===d?"Subscribe":"Verify"}),!p&&(0,i.jsx)(r.E.div,{animate:m?{scale:[1,1.2,1],rotate:360}:{},transition:{duration:.5},children:m?(0,i.jsx)(o.Z,{className:"w-5 h-5"}):(0,i.jsx)(l.Z,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})})]})]}),"verify"===d&&!m&&(0,i.jsx)("button",{type:"button",onClick:()=>u("subscribe"),className:"mt-2 text-xs text-white/40 hover:text-white transition-colors",children:"Change email address"}),(0,i.jsx)(r.E.div,{initial:{opacity:0},whileHover:{opacity:1},className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#037166]/20 to-[#04a99d]/20 blur-xl -z-10 pointer-events-none"})]}),(0,i.jsx)(r.E.div,{initial:{opacity:0,height:0},animate:{opacity:x?1:0,height:x?"auto":0},className:"mt-4 overflow-hidden",children:(0,i.jsxs)("div",{className:"flex items-center justify-center gap-2 ".concat(w?"text-red-400":"text-[#04a99d]"),children:[!w&&(0,i.jsx)(o.Z,{className:"w-5 h-5"}),(0,i.jsx)("h6",{className:"font-medium",children:x})]})})]}),(0,i.jsx)(r.E.p,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.3},className:"text-white/40 text-sm mt-6",children:"We respect your privacy. Unsubscribe anytime."}),(0,i.jsx)(r.E.div,{initial:!1,animate:{y:[0,-10,0],rotate:[0,5,0]},transition:{duration:3,repeat:1/0},className:"absolute top-10 left-10 w-20 h-20 rounded-2xl bg-gradient-to-br from-[#037166]/20 to-transparent backdrop-blur-sm border border-white/10 pointer-events-none"}),(0,i.jsx)(r.E.div,{initial:!1,animate:{y:[0,10,0],rotate:[0,-5,0]},transition:{duration:4,repeat:1/0},className:"absolute bottom-10 right-10 w-16 h-16 rounded-xl bg-gradient-to-br from-cyan-500/20 to-transparent backdrop-blur-sm border border-white/10 pointer-events-none"})]})]})}},89345:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(79205).Z)("mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},44743:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(79205).Z)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])}}]);

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.