PageSourceSearch

https://thechennaimobiles.com/_next/static/chunks/pages/search-grid-6ac4f2214eb1b766.js

js thechennaimobiles.com collected 2026-09-26 21:38:17 UTC 8,133 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3925],{68986:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search-grid",function(){return t(25488)}])},63988:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var l=t(74848),o=t(33877),i=t(5266),a=t(96540),s=t(18911),d=t(73735),r=t(91106),c=t.n(r),u=t(17732),m=t(98405),g=t(70349);let p=()=>{let[e,n]=(0,a.useState)([]),t=(0,s.A)("q"),{data:r,loading:p}=(0,i.A)("/search-products?q=".concat(t));return(0,a.useEffect)(()=>{n(null==r?void 0:r.appData)},[r]),(0,l.jsx)(l.Fragment,{children:p?(0,l.jsx)("div",{className:"d-flex justify-content-center w-100  align-items-center",style:{height:"80vh"},children:(0,l.jsx)("div",{className:"spinner-border text-danger spinner-border-sm",role:"status"})}):(null==e?void 0:e.length)>0?(0,l.jsx)("div",{className:"search-grid px-md-2 px-1 mt-2",children:(0,l.jsx)("div",{className:"tcm-grid",children:(0,l.jsx)("div",{className:"grid-container",children:null==e?void 0:e.map((e,n)=>{var t;return(0,l.jsxs)("div",{className:"grid-items items".concat(null==e?void 0:e.id," ").concat(null==e?void 0:e.image_size),children:[(0,l.jsx)("div",{children:(0,l.jsx)(c(),{href:"".concat(null==e?void 0:e.SEO_title),className:"text-decoration-none",target:"_blank",children:(null==e?void 0:e.product_image)&&(0,l.jsx)(u.A,{src:"".concat("https://api.thechennaimobiles.com","/").concat(null==e?void 0:e.product_image),alt:null==e?void 0:null===(t=e.product_name)||void 0===t?void 0:t.replace(/ /g,"-")})})}),(0,l.jsxs)("div",{className:"grid-text ps-2 py-2 pe-2",children:[(0,l.jsx)("h6",{className:"gname fw-bold",children:null==e?void 0:e.product_name}),(null==e?void 0:e.pre_order)==="active"?(0,l.jsx)(m.A,{productId:null==e?void 0:e.id,className:"pre-order-btn pre-order-sm"}):(null==e?void 0:e.best_picks)==="active"?(0,l.jsx)(g.A,{productId:null==e?void 0:e.id,label:"Request Price",className:"bp-request-btn bp-request-sm"}):(0,l.jsxs)("div",{className:"d-flex align-items-center  justify-content-between flex-wrap",children:[(0,l.jsxs)("h6",{className:"gprice m-0 fw-bolder d-flex align-items-center",children:[(0,l.jsx)(o.YHz,{})," ",(0,l.jsx)("span",{children:null==e?void 0:e.discount_price})]}),(0,l.jsxs)("div",{className:"d-flex align-items-center justify-content-between gap-1",children:[(0,d.u)(null==e?void 0:e.product_price,null==e?void 0:e.discount_price)>0&&(0,l.jsxs)("p",{className:"gpercent m-0  offer-text-colour fw-bolder",children:[(0,d.u)(null==e?void 0:e.product_price,null==e?void 0:e.discount_price),"%"]}),(null==e?void 0:e.product_price)!=(null==e?void 0:e.discount_price)&&(0,l.jsxs)("p",{className:"gstrike m-0 text-decoration-line-through text-danger",children:[(0,l.jsx)(o.YHz,{}),(0,l.jsx)("span",{className:"d-inlineblock",children:null==e?void 0:e.product_price})]})]})]})]})]},n)})})})}):(0,l.jsxs)("div",{className:"d-flex flex-column justify-content-center align-items-center text-center",style:{minHeight:"55vh",padding:"2rem"},children:[(0,l.jsx)("h4",{style:{color:"#333",fontWeight:700,marginBottom:"0.5rem"},children:"No products found"}),(0,l.jsxs)("p",{style:{color:"#888",maxWidth:"440px"},children:["We couldn't find anything matching \"",decodeURIComponent(t||""),'". Try a different keyword or brand, or check the spelling.']})]})})}},18911:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var l=t(86715),o=t(96540);let i=e=>{let n=(0,l.useRouter)(),[t,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{n.isReady&&i(n.query[e]||null)},[n.isReady,n.query,e]),t}},25488:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSP:()=>m,default:()=>g});var l=t(74848);t(81177);var o=t(53607),i=t(9603);t(13882),t(27162);var a=t(63988),s=t(13368),d=t.n(s);t(91106);var r=t(40908),c=t(17857),u=t(86715),m=!0;function g(e){let n=null==e?void 0:e.navData,t=(0,u.useRouter)(),s=c.a2,m=(0,r.A)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d(),{children:[(0,l.jsx)("title",{children:null==s?void 0:s.title}),(0,l.jsx)("link",{rel:"icon",href:"/title-logo.png"}),(0,l.jsx)("meta",{charSet:"utf-8"}),(0,l.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,l.jsx)("meta",{name:"description",content:"".concat(null==s?void 0:s.description)}),(0,l.jsx)("meta",{name:"keywords",content:null==s?void 0:s.keywords}),(0,l.jsx)("meta",{name:"og:title",content:null==s?void 0:s.og_title}),(0,l.jsx)("meta",{name:"og:description",content:null==s?void 0:s.og_description}),(0,l.jsx)("meta",{name:"language",content:null==s?void 0:s.language}),(0,l.jsx)("meta",{name:"robots",content:null==s?void 0:s.robots}),(0,l.jsx)("meta",{name:"og:type",content:null==s?void 0:s.og_type}),(0,l.jsx)("meta",{name:"author",content:null==s?void 0:s.author}),(0,l.jsx)("meta",{name:"og:url",content:"https://www.thechennaimobiles.com"}),(0,l.jsx)("meta",{name:"og:image",content:null==s?void 0:s.og_image}),(0,l.jsx)("meta",{property:"og:image:url",content:null==s?void 0:s.og_image_url}),(0,l.jsx)("meta",{name:"og:site_name",content:null==s?void 0:s.og_site_name}),(0,l.jsx)("meta",{name:"fb:page_id",content:null==s?void 0:s.fb_page_id}),(0,l.jsx)("meta",{name:"og:email",content:null==s?void 0:s.og_email}),(0,l.jsx)("meta",{name:"og:phone_number",content:null==s?void 0:s.og_phone}),(0,l.jsx)("meta",{name:"og:latitude",content:null==s?void 0:s.og_latitude}),(0,l.jsx)("meta",{name:"og:longitude",content:null==s?void 0:s.og_longitude}),(0,l.jsx)("meta",{name:"og:street-address",content:null==s?void 0:s.og_street_address}),(0,l.jsx)("meta",{name:"og:locality",content:null==s?void 0:s.og_locality}),(0,l.jsx)("meta",{name:"og:region",content:null==s?void 0:s.og_region}),(0,l.jsx)("meta",{name:"og:postal-code",content:null==s?void 0:s.og_postal_code}),(0,l.jsx)("meta",{name:"og:country-name",content:"India"}),(0,l.jsx)("meta",{name:"coverage",content:"Tamilnadu"}),(0,l.jsx)("meta",{name:"geo.placename",content:null==s?void 0:s.geo_placename}),(0,l.jsx)("meta",{name:"geo.region",content:null==s?void 0:s.geo_region}),(0,l.jsx)("meta",{name:"googlebot",content:null==s?void 0:s.google_bot}),(0,l.jsx)("meta",{name:"allow-search",content:"yes"}),(0,l.jsx)("link",{rel:"canonical",href:"https://www.thechennaimobiles.com/".concat(null==t?void 0:t.asPath)}),(0,l.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":null==s?void 0:s.publisher_link,name:null==s?void 0:s.og_site_name,url:null==s?void 0:s.og_url,logo:null==s?void 0:s.og_image_url,
1image:null==s?void 0:s.og_image_url,telephone:null==s?void 0:s.og_phone,address:{"@type":"PostalAddress",streetAddress:null==s?void 0:s.og_street_address,addressLocality:null==s?void 0:s.og_locality,addressRegion:null==s?void 0:s.og_region,postalCode:null==s?void 0:s.og_postal_code,addressCountry:"IN"},contactPoint:{"@type":"ContactPoint",telephone:null==s?void 0:s.og_phone,contactType:"customer support",areaServed:"IN",availableLanguage:["English","Tamil"]},sameAs:null==s?void 0:s.social_media_links},{"@type":"WebSite","@id":null==s?void 0:s.website_link,url:null==s?void 0:s.og_url,name:null==s?void 0:s.og_site_name,publisher:{"@id":null==s?void 0:s.publisher_link},potentialAction:{"@type":"SearchAction",target:"https://www.thechennaimobiles.com/search?q={search_term_string}","query-input":"required name=search_term_string"}}]})}),(0,l.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://www.thechennaimobiles.com","@type":"Organization",name:"The Chennai Mobiles",alternateName:null==s?void 0:s.alternateName,url:"https://www.thechennaimobiles.com/".concat(null==t?void 0:t.asPath),logo:null==s?void 0:s.og_image_url,sameAs:null==s?void 0:s.social_media_links})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(i.A,{showSearchBar:m,menu:n}),(0,l.jsxs)("div",{className:"appBorder",id:"appBorder",children:[" ",(0,l.jsx)(a.A,{})]}),(0,l.jsx)("footer",{children:(0,l.jsx)(o.default,{menu:n})})]})]})}}},e=>{var n=n=>e(e.s=n);e.O(0,[5687,7690,7057,5354,7627,8563,7551,8758,5377,4765,3958,1544,3465,8808,7504,1294,7857,7638,5103,6833,636,6593,8792],()=>n(68986)),_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.