PageSourceSearch

https://doorstephub.com/_next/static/chunks/app/layout-3ceaa18185cc999a.js

js doorstephub.com collected 2026-10-02 06:21:43 UTC 14,769 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{60230:function(e,t,n){Promise.resolve().then(n.bind(n,47848)),Promise.resolve().then(n.bind(n,91704)),Promise.resolve().then(n.bind(n,98608)),Promise.resolve().then(n.bind(n,48353)),Promise.resolve().then(n.bind(n,72783)),Promise.resolve().then(n.bind(n,54104)),Promise.resolve().then(n.bind(n,38845)),Promise.resolve().then(n.bind(n,14272)),Promise.resolve().then(n.bind(n,79259)),Promise.resolve().then(n.bind(n,36192)),Promise.resolve().then(n.bind(n,17189)),Promise.resolve().then(n.t.bind(n,47960,23)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,81523)),Promise.resolve().then(n.bind(n,70049)),Promise.resolve().then(n.t.bind(n,39351,23))},47848:function(e,t,n){"use strict";var o=n(57437),r=n(2265);class s extends r.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Error Boundary caught error:",e,t),this.setState({error:e,errorInfo:t})}render(){return this.state.hasError?(0,o.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-blue-50 to-indigo-100 px-4",children:(0,o.jsxs)("div",{className:"max-w-md w-full bg-white rounded-2xl shadow-xl p-8 text-center",children:[(0,o.jsx)("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,o.jsx)("svg",{className:"w-10 h-10 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,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"})})}),(0,o.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Oops! Something went wrong"}),(0,o.jsx)("p",{className:"text-gray-600 mb-6",children:"We're sorry for the inconvenience. An unexpected error occurred."}),!1,(0,o.jsxs)("div",{className:"flex gap-3",children:[(0,o.jsx)("button",{onClick:()=>window.location.reload(),className:"flex-1 px-6 py-3 bg-gray-100 text-gray-700 rounded-lg font-medium hover:bg-gray-200 transition-colors",children:"Try Again"}),(0,o.jsx)("button",{onClick:this.handleReset,className:"flex-1 px-6 py-3 bg-blue-600 text-white rounded-lg font-medium hover:bg-blue-700 transition-colors",children:"Go Home"})]}),(0,o.jsx)("p",{className:"text-sm text-gray-500 mt-6",children:"If this problem persists, please contact support."})]})}):this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null}),window.location.href="/"},this.state={hasError:!1,error:null,errorInfo:null}}}t.default=s},91704:function(e,t,n){"use strict";n.d(t,{ClientProviders:function(){return m}});var o=n(57437),r=n(14438),s=n(2265),a=n(99376),i=n(11929),l=n(38845),c=n(54104);function u(){let{isAuthModalOpen:e,closeAuthModal:t}=(0,l.f)(),{isAuthenticated:n}=(0,c.a)(),r=(0,a.usePathname)(),s=(0,a.useRouter)();return(null==r?void 0:r.startsWith("/service-partner"))||(null==r?void 0:r.startsWith("/partner"))?null:(0,o.jsx)(i.Q,{isOpen:e,onClose:()=>{t(),!n&&(null==r?void 0:r.startsWith("/account"))&&s.push("/")}})}var d=n(61227);function h(){let e=(0,a.useSearchParams)(),t=(0,a.useRouter)(),n=(0,a.usePathname)();return(0,s.useEffect)(()=>{let o=e.get("leadToken");if(!o)return;let r=!1;return(async()=>{if(await (0,d.mW)(o),r)return;let s=new URLSearchParams(e.toString());s.delete("leadToken");let a=s.toString();t.replace(a?"".concat(n,"?").concat(a):n,{scroll:!1})})(),()=>{r=!0}},[e,n,t]),null}function p(){return(0,o.jsx)(s.Suspense,{fallback:null,children:(0,o.jsx)(h,{})})}function m(e){let{children:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p,{}),t,(0,o.jsx)(r.Toaster,{position:"top-right",toastOptions:{style:{background:"#1a1a1a",color:"#fff",border:"1px solid rgba(3, 113, 102, 0.3)"}}}),(0,o.jsx)(u,{})]})}},98608:function(e,t,n){"use strict";n.d(t,{AdSenseScriptLoader:function(){return i}});var o=n(57437);n(2265);var r=n(48667),s=n(99376),a=n(58932);function i(){let e=(0,s.usePathname)();return(0,a._Y)(e)&&a.fA.clientId?(0,o.jsx)(r.default,{id:"adsbygoogle-init",strategy:"afterInteractive",src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=".concat(a.fA.clientId),crossOrigin:"anonymous"}):null}},48353:function(e,t,n){"use strict";n.d(t,{DynamicSEO:function(){return s}});
1var o=n(2265),r=n(99376);function s(){let e=(0,r.usePathname)();return(0,o.useEffect)(()=>{e&&(async()=>{try{let n="/"===e?"/":e.replace(/\/$/,""),o="localhost"!==window.location.hostname?"https://doorstephub.com":window.location.origin,r="".concat(o).concat(n),s=document.querySelector('link[rel="canonical"]');s||((s=document.createElement("link")).rel="canonical",document.head.appendChild(s)),s.setAttribute("href",r),console.log("[SEO] Setting Canonical: ".concat(r));let a=null;if(n.includes("/details/")){let e=n.split("/details/").pop(),t=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/applience-repairs-website/dhub_service_details/").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),o=await t.json();o.success&&o.seo&&(a=o.seo,console.log("[SEO] Resolved from Service API: ".concat(e)))}else if(n.includes("/store/")){var t;let e=n.split("/store/").pop().split("?")[0],o=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/applience-repairs-website/service_center_services/").concat(e)),r=await o.json();r.success&&(null===(t=r.serviceCenter)||void 0===t?void 0:t.seo)&&(a=r.serviceCenter.seo,console.log("[SEO] Resolved from Store API: ".concat(e)))}if(!a){let e=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/web/seo/get-page-seo?path=").concat(n)),t=await e.json();t.success&&t.data&&(a=t.data.data||t.data,console.log("[SEO] Resolved from Smart API: ".concat(n)))}if(a){let{title:e,description:t,keywords:n}=a;e&&(document.title=e);let o=document.querySelector('meta[name="description"]');o||((o=document.createElement("meta")).name="description",document.head.appendChild(o)),t&&(o.content=t);let r=document.querySelector('meta[name="keywords"]');r||((r=document.createElement("meta")).name="keywords",document.head.appendChild(r));let s=Array.isArray(n)?n.join(", "):n;s&&(r.content=s)}}catch(e){console.error("Error updating global SEO:",e)}})()},[e]),null}},72783:function(e,t,n){"use strict";n.r(t),n.d(t,{FloatingActionButtons:function(){return c}});var o=n(57437),r=n(2265),s=n(27648),a=n(34924),i=n(99376);let l=["/appliances","/services","/book-appointment","/appliance-repair-services","/religious-services","/spa-salon","/pg-hostels","/account","/cart","/address","/service-list"];function c(){let[e,t]=(0,r.useState)(!1),n=(0,i.usePathname)();if((0,r.useEffect)(()=>{t(!0)},[]),!e||!n)return null;let c="/book-appointment"===n,u=["/spa-salon","/pg-hostels","/pghostels","/salon-at-home-services","/pandit-ji-for-puja-services","/pg-hostel","/religious-services","/religious","/services","/professional-services","/sell-buy"].some(e=>n.includes(e))||n.includes("book-now")||n.includes("/nearby/")||n.startsWith("/service-partner")||n.startsWith("/partner"),d=2===n.split("/").length&&!l.some(e=>n.startsWith(e))&&"/"!==n||n.includes("book-now")||n.includes("/nearby/");return u?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:"https://api.whatsapp.com/send/?phone=918886688666&text=Hi&type=phone_number&app_absent=0",target:"_blank",rel:"noopener noreferrer",className:"fixed bottom-24 right-4 sm:right-6 z-[60]","aria-label":"Chat on WhatsApp",children:(0,o.jsx)(a.E.div,{whileHover:{scale:1.1},whileTap:{scale:.95},className:"w-10 h-10 bg-[#25D366] rounded-full flex items-center justify-center shadow-[0_4px_14px_rgba(37,211,102,0.4)] hover:shadow-[0_6px_20px_rgba(37,211,102,0.6)] transition-shadow cursor-pointer",children:(0,o.jsx)("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51a12.8 12.8 0 0 0-.57-.01c-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z"})})})}),(0,o.jsxs)("div",{className:"fixed bottom-6 right-4 sm:right-6 z-50 flex flex-col items-end gap-3 sm:flex-row sm:items-center sm:gap-4",children:[!c&&!d&&(0,o.jsx)(s.default,{href:"/book-appointment",className:"hidden sm:block",children:(0,o.jsx)(a.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-gradient-to-r from-[#e89117] to-[#00796B] text-white px-6 py-3 rounded-full font-semibold shadow-[0_4px_14px_rgba(3,113,102,0.4)] hover:bg-[#025951] transition-all flex items-center justify-center whitespace-nowrap",children:"Book Appointment"})}),!c&&!d&&(0,o.jsx)(s.default,{href:"/book-appointment",className:"block sm:hidden",children:(0,o.jsx)(a.E.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-[#037166] text-white px-5 py-2.5 rounded-full text-sm font-semibold shadow-[0_4px_14px_rgba(3,113,102,0.4)] hover:bg-[#025951] transition-all whitespace-nowrap",children:"Book Now"})})]})]})}},47960:function(){},58932:function(e,t,n){"use strict";n.d(t,{_Y:function(){return l},cx:function(){return s},fA:function(){return i}});var o=n(40257);let r=(o.env.NEXT_PUBLIC_ADSENSE_CLIENT_ID||"").trim();function s(e){return!!e&&"string"==typeof e&&/^\d+$/.test(e.trim())}function a(e){let t=String(e||"").trim();return/^\d+$/.test(t)?t:""}let i={clientId:r.startsWith("ca-pub-")?r:r?"ca-pub-".concat(r):"",slots:{sellBuyTop:a(o.env.NEXT_PUBLIC_ADSENSE_SELL_BUY_TOP_SLOT),sellBuyFeed:a(o.env.NEXT_PUBLIC_ADSENSE_SELL_BUY_FEED_SLOT),categoryTop:a(o.env.NEXT_PUBLIC_ADSENSE_CATEGORY_TOP_SLOT),categoryFeed:a(o.env.NEXT_PUBLIC_ADSENSE_CATEGORY_FEED_SLOT),listingDetail:a(o.env.NEXT_PUBLIC_ADSENSE_LISTING_DETAIL_SLOT),relatedListings:a(o.env.NEXT_PUBLIC_ADSENSE_RELATED_LISTINGS_SLOT)}};function l(e){if(!e||"string"!=typeof e)return!1;for(let t of[/^\/sell-buy\/dashboard(\/.*)?$/,/^\/sell-buy\/post-ad(\/.*)?$/,/^\/sell-buy\/chat(\/.*)?$/,/^\/account(\/.*)?$/,/^\/login(\/.*)?$/,/^\/auth(\/.*)?$/,/^\/book-appointment(\/.*)?$/,/^\/booking(\/.*)?$/,/^\/checkout(\/.*)?$/,/^\/cart(\/.*)?$/,/^\/thank-you(\/.*)?$/,/^\/thank-you-cod(\/.*)?$/,/^\/payment-failed(\/.*)?$/,/^\/book-now(\/.*)?$/,/^\/contact-us(\/.*)?$/,/^\/faqs(\/.*)?$/,/^\/privacy-policy(\/.*)?$/,/^\/terms-conditions(\/.*)?$/,/^\/refund-policy(\/.*)?$/,/^\/api(\/.*)?$/,/^\/admin(\/.*)?$/])if(t.test(e))return!1;return!0}},14272:function(e,t,n){"use strict";n.d(t,{CartProvider:function(){return u},j:function(){return c}});var o=n(57437),r=n(2265),s=n(54104),a=n(38845),i=n(14438);let l=(0,r.createContext)(),c=()=>(0,r.useContext)(l),u=e=>{let{children:t}=e,{token:n,isAuthenticated:c}=(0,s.a)(),{openAuthModal:u}=(0,a.f)(),[d,h]=(0,r.useState)([]),[p,m]=(0,r.useState)(0),[f,v]=(0,r.useState)(!1),b=(0,r.useCallback)(async()=>
1{if(c){v(!0);try{let e=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/cart/get"),{headers:{Authorization:"Bearer ".concat(n)}}),t=await e.json();t.success&&t.data&&(h(t.data.items||[]),m(t.data.totalAmount||0))}catch(e){console.error("Error fetching cart:",e)}finally{v(!1)}}},[n,c]);(0,r.useEffect)(()=>{b()},[b]);let g=async function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(!c)return i.toast.error("Please login to add items to cart"),u(),!1;try{let r=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/cart/add"),{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({productId:e,storeId:t,quantity:o})});if((await r.json()).success)return await b(),!0;return!1}catch(e){return i.toast.error("Failed to add to cart"),!1}},x=async e=>{if(c)try{let t=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/cart/remove"),{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({productId:e})});(await t.json()).success&&await b()}catch(e){i.toast.error("Failed to remove from cart")}},w=async()=>{if(c)try{let e=await fetch("".concat("https://api.doorstephub.com/v1/dhubApi","/app/cart/clear"),{method:"POST",headers:{Authorization:"Bearer ".concat(n)}});(await e.json()).success&&(h([]),m(0))}catch(e){i.toast.error("Failed to clear cart")}};return(0,o.jsx)(l.Provider,{value:{cartItems:d,cartTotal:p,loading:f,fetchCart:b,addToCart:g,removeFromCart:x,clearCart:w},children:t})}},79259:function(e,t,n){"use strict";n.d(t,{GlobalSettingsProvider:function(){return i},h:function(){return l}});var o=n(57437),r=n(2265),s=n(88664);let a=(0,r.createContext)(null);function i(e){var t,n,i,l,c,u,d,h;let{children:p}=e,[m,f]=(0,r.useState)(null),[v,b]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("".concat(s.CT,"/app/get_global_settings")),t=await e.json();t.success&&t.policy&&f(t.policy)}catch(e){console.warn("GlobalSettings fetch failed:",e)}finally{b(!1)}})()},[]);let g=Number(null!==(l=null!==(i=null!==(n=null!==(t=null==m?void 0:m.onlineBookingFee)&&void 0!==t?t:null==m?void 0:m.platformFee)&&void 0!==n?n:null==m?void 0:m.bookingFee)&&void 0!==i?i:null==m?void 0:m.crmBookingFee)&&void 0!==l?l:99),x=Number(null!==(h=null!==(d=null!==(u=null!==(c=null==m?void 0:m.doorstepInspectionFee)&&void 0!==c?c:null==m?void 0:m.consultationFee)&&void 0!==u?u:null==m?void 0:m.inspectionFee)&&void 0!==d?d:null==m?void 0:m.crmConsultationFee)&&void 0!==h?h:175);return(0,o.jsx)(a.Provider,{value:{policy:m,loading:v,onlineBookingFee:g,doorstepInspectionFee:x},children:p})}function l(){return(0,r.useContext)(a)}}},function(e){e.O(0,[3587,811,4924,4438,7648,9728,7717,6192,5201,4104,5298,2971,2117,1744],function(){return e(e.s=60230)}),_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.