PageSourceSearch

https://www.findby.in/_next/static/chunks/pages/search-results-1757aeaa9b8475bb.js

js findby.in collected 2026-10-02 01:56:37 UTC 15,824 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6897],{18621:(e,l,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search-results",function(){return i(80500)}])},80500:(e,l,i)=>{"use strict";i.r(l),i.d(l,{__N_SSP:()=>O,default:()=>U});var n=i(37876),t=i(19752),s=i(14232),a=i(40876),r=i(72391),o=i(82870),c=i(86623),d=i(89099),u=i(91238),h=i.n(u),m=i(48230),p=i.n(m),g=i(54587),x=i.n(g),v=i(69095),f=i(30388),b=i(18847),y=i.n(b),j=i(1076),_=i(23389),N=i(22953),w=i(23376),k=i(52031),C=i(42799),S=i(6354),z=i(60966);let A=y()(()=>Promise.all([i.e(2076),i.e(4286)]).then(i.bind(i,44286)),{loadableGenerated:{webpack:()=>[44286]},ssr:!1}),P=y()(()=>Promise.all([i.e(2076),i.e(412)]).then(i.bind(i,20412)),{loadableGenerated:{webpack:()=>[20412]},ssr:!1}),R=y()(()=>Promise.all([i.e(2076),i.e(1265)]).then(i.bind(i,91265)),{loadableGenerated:{webpack:()=>[91265]},ssr:!1}),I=e=>{let{src:l,alt:i,label:t,...a}=e,[r,o]=(0,s.useState)(!1),c=String(t||"B").trim().charAt(0).toUpperCase()||"B";return r?(0,n.jsx)("span",{className:"search-result-image-fallback","aria-label":i,children:c}):(0,n.jsx)(x(),{...a,src:l,alt:i,onError:()=>o(!0)})},B=e=>{if(null==e)return null;if("number"==typeof e)return e;if("string"==typeof e){let l=e.trim();if(!l)return null;let i=l.toLowerCase();if("1"===i||"free"===i)return 1;if("2"===i||"onetime"===i||"one time"===i||"verified"===i)return 2;if("3"===i||"yearly"===i||"premium"===i)return 3;let n=Number(l);return Number.isNaN(n)?null:n}return null}
1,F=e=>{var l;if(!e)return null;let i=e.list||e;if((null==i?void 0:i.plan_type)!==void 0){let e=B(i.plan_type);if(2===e||3===e)return e}if((null==i||null==(l=i.selected_plan)?void 0:l.plan_type)!==void 0){let e=B(i.selected_plan.plan_type);if(2===e||3===e)return e}return(null==i?void 0:i.verified)===1||(null==i?void 0:i.verified)==="1"||(null==i?void 0:i.verified)===!0?2:null},E=r.Ay.div.withConfig({componentId:"sc-c516b663-0"})(["padding:20px;margin-top:24px;margin-bottom:24px;display:flex;width:100%;align-items:center;justify-content:center;ul.pagination{display:flex;width:100%;align-items:center;justify-content:center;li.previous{a{:hover{background-color:transparent;}}}li.next{a{:hover{background-color:transparent;}}}li.active{a{background-color:#5E6B92;color:#fff;}}li{a{cursor:pointer;width:36px;height:36px;border-radius:50%;display:inline-flex;text-align:center;align-items:center;justify-content:center;margin-right:12px;transition:all 0.15s ease-in 0s;:hover{border:solid 1px #5E6B92;background:transparent;color:#5E6B92;}}}}"]);r.Ay.div.withConfig({componentId:"sc-c516b663-1"})(["background-color:#f1f6fe;padding:50px 0;text-align:center;"]);let V=r.Ay.div.withConfig({componentId:"sc-c516b663-2"})(["background-color:#fff;padding:32px 0px;flex-direction:column;min-height:",";"],e=>e.length?"":"50vh"),T=r.Ay.div.withConfig({componentId:"sc-c516b663-3"})(["display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;.results-header__eyebrow{margin:0 0 0.35rem;color:#f09b00;font-size:0.72rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;}.results-header__title{margin:0;color:#05264e;font-size:clamp(1.35rem,2vw,1.8rem);font-weight:800;letter-spacing:-0.03em;}.results-header__copy{margin:0;color:#64748b;font-size:0.85rem;}@media (max-width:575px){display:block;margin-bottom:1.1rem;.results-header__copy{margin-top:0.35rem;}}"]),q=r.Ay.div.withConfig({componentId:"sc-c516b663-4"})(["width:36px;height:36px;border-radius:50%;display:inline-flex;text-align:center;align-items:center;justify-content:center;margin-right:1px;transition:all 0.15s ease-in 0s;opacity:0.75;"]);r.Ay.span.withConfig({componentId:"sc-c516b663-5"})([""]),r.Ay.span.withConfig({componentId:"sc-c516b663-6"})(["font-style:normal;font-weight:var(--listing-copy-weight);font-size:var(--listing-copy-size);line-height:var(--listing-copy-line-height);margin-top:4px;color:rgb(111,117,136);"]);let L=r.Ay.div.withConfig({componentId:"sc-c516b663-7"})(["flex-direction:column;-webkit-box-flex:1;flex-grow:1;overflow:auto;position:absolute;left:0;right:0;width:100%;max-width:100%;max-height:min(50vh,280px);background:#fff;z-index:100;isolation:isolate;box-shadow:0 12px 28px rgba(15,23,42,0.14);box-sizing:border-box;"]);r.Ay.div.withConfig({componentId:"sc-c516b663-8"})(["display:flex;flex-direction:column;align-items:center;"]),r.Ay.div.withConfig({componentId:"sc-c516b663-9"})(["position:absolute;top:40%;"]);let D=e=>{var l;let{city:i,items:t,site_url:s}=e,a=(0,d.useRouter)(),r=(0,c.BF)(i)||(0,c.BF)(null==(l=a.query)?void 0:l.city)||"nagercoil";return(null==t?void 0:t.length)>0&&(null==t?void 0:t.map((e,l)=>(0,n.jsx)(k.fs,{children:(0,n.jsx)(p(),{href:{pathname:(0,c.zR)(r,e.url)},children:(0,c.Sn)(e.label)})},l)))},G=e=>{var l,i,t;let{city:r,site:u,site_url:m,token:g,render:x}=e,{t:b}=(0,f.Bd)("common"),y=(0,d.useRouter)();y.locale;let{asPath:G}=(0,d.useRouter)(),M=y.query,[O,U]=(0,s.useState)(!1),[$,K]=(0,s.useState)(!1),[W,Y]=(0,s.useState)((0,c.Sn)(null==M?void 0:M.term)),[Q,X]=(0,s.useState)((0,c.Sn)("")),[Z,H]=(0,s.use
1State)({query:null==M?void 0:M.term,list:[]}),{listings:J,meta:ee,verifiedPlan:el}=u,ei=j.R$+1,en=(null==J?void 0:J.slice(0,ei))||[],et=(null==J?void 0:J.slice(ei))||[],es=((null==J?void 0:J.length)||0)>j.R$,ea=(e,l)=>{var i;let t=B(F(e)),s=3===t,a=2===t;return(0,n.jsxs)(k.l,{className:"hover-up",$isPremium:s,$isVerified:a,children:[(0,n.jsxs)("div",{className:"header_block",children:[(e=>{let l=B(F(e));return 3===l?(0,n.jsxs)("div",{className:"premium-badge-tag",style:{position:"absolute",top:"12px",right:"12px",backgroundColor:"#fef3c7",color:"#d97706",padding:"2px 10px",borderRadius:"20px",fontSize:"10px",fontWeight:"800",textTransform:"uppercase",letterSpacing:"0.5px",border:"1px solid #f59e0b",display:"flex",alignItems:"center",gap:"4px",zIndex:2},children:["Premium ",(0,n.jsx)(z.xe7,{size:"12"})]}):2===l?(0,n.jsxs)("div",{className:"verified-badge-tag",style:{position:"absolute",top:"12px",right:"12px",backgroundColor:"#ecfdf5",color:"#10b981",padding:"2px 10px",borderRadius:"20px",fontSize:"10px",fontWeight:"800",textTransform:"uppercase",letterSpacing:"0.5px",border:"1px solid #10b981",display:"flex",alignItems:"center",gap:"4px",zIndex:2},children:["Verified ",(0,n.jsx)(z.A_B,{size:"12"})]}):(0,n.jsx)(n.Fragment,{})})(e),!s&&!a&&(0,n.jsx)("span",{className:"flash","aria-hidden":"true"}),(0,n.jsx)("div",{className:"image-box",children:(0,n.jsx)(I,{width:56,height:56,src:"".concat((null==e?void 0:e.image)?m+(null==e?void 0:e.image):"/default-company.svg"),alt:null==e?void 0:e.title,label:null==e?void 0:e.title})}),(0,n.jsxs)("div",{className:"title-box",children:[(0,n.jsx)(p(),{href:{pathname:(0,c.zR)((null==e?void 0:e.city)||r,null==e?void 0:e.category_url,null==e?void 0:e.slug)},onClick:()=>{((null==e?void 0:e.id)||(null==e?void 0:e._id))&&(0,c._N)(e.id||e._id,"business_name",null==e?void 0:e.title,g||"")},children:(0,n.jsx)("h3",{className:"title-name",children:null==e?void 0:e.title})}),(0,n.jsxs)("div",{className:"listing-meta",children:[(0,n.jsx)("span",{className:"listing-meta__city",children:(0,c.Sn)(e.city)}),(e.category||e.category_name)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"listing-meta__dot","aria-hidden":"true"}),(0,n.jsx)("span",{className:"listing-meta__category",children:(0,c.Sn)(e.category||e.category_name||"")})]})]}),(null==e?void 0:e.rating)?(0,n.jsxs)("div",{className:"result-rating mt-2",children:[(0,n.jsx)(v.G,{initialValue:e.rating,readonly:!0,allowFraction:!0,size:16}),(0,n.jsx)("span",{children:Number(e.rating).toFixed(1)}),e.review_count?(0,n.jsxs)("small",{children:["(",e.review_count,")"]}):null]}):null]})]}),(0,n.jsxs)("div",{className:"result-card__footer",children:[(0,n.jsx)("span",{className:"result-card__location",children:(null==e?void 0:e.business_location)||(null==e?void 0:e.address)||(null==e||null==(i=e.service_area)?void 0:i.place)||(0,c.Sn)((null==e?void 0:e.city)||r)}),(0,n.jsxs)(p(),{className:"result-card__action",href:{pathname:(0,c.zR)((null==e?void 0:e.city)||r,null==e?void 0:e.category_url,null==e?void 0:e.slug)},onClick:()=>{((null==e?void 0:e.id)||(null==e?void 0:e._id))&&(0,c._N)(e.id||e._id,"business_name",null==e?void 0:e.title,g||"")},children:["View profile ",(0,n.jsx)("span",{"aria-hidden":"true",children:"→"})]})]})]},l)},er=async e=>{K(!0);let l=e.target.value;Y(l);let i=(0,N.parseNearMeTerm)(l),n={term:(0,c.cV)(i.wantsNear?i.cleanedTerm:l)||(0,c.cV)(l),city:r,type:"find"};i.nearMe&&(n.nearme="1"),i.nearPlace&&(n.near=(0,c.BF)(i.nearPlace)),i.wantsNear&&(n.radius="25");let t=await (0,c.Ds)("/api/search?",n);if(t.ok){let{list:e=[]}=await t.json();H({query:l,list:Array.isArray(e)?e:[]}),U(!0)}K(!1)},eo=(0,s.useRef)(null);s.useEffect(()=>{function e(e){eo.current&&!eo.current.contains(e.target)&&U(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}});let ec=async()=>{if(!(null==Z?void 0:Z.query))return;let{params:e}=await (0,N.buildNearMeSearchParams)(Z.query,{city:r,toSlug:c.BF,ensureUserLocation:w.NR});(e.term||e.nearme)&&y.push({pathname:"/search-results",query:e})},ed=async(e,l)=>{(null==l?void 0:l.type)==1?y.push((0,c.zR)((null==l?void 0:l.city)||r||"nagercoil",null==l?void 0:l.url_slug)):(null==l?void 0:l.custom_url)?(((null==l?void 0:l.id)||(null==l?void 0:l._id))&&
1(0,c._N)(l.id||l._id,"business_name",null==l?void 0:l.title,g||""),y.push((0,c.zR)(l.custom_url))):(((null==l?void 0:l.id)||(null==l?void 0:l._id))&&(0,c._N)(l.id||l._id,"business_name",null==l?void 0:l.title,g||""),y.push((0,c.zR)((null==l?void 0:l.city)||r||"nagercoil",(null==l?void 0:l.category_url)||"services",null==l?void 0:l.url_slug)))},eu=(0,n.jsx)("section",{className:"hero-vector search-page-hero search-results-hero".concat(O?" banner-search-open":""),children:(0,n.jsx)("div",{className:"banner-content",children:(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"row",children:(0,n.jsxs)("div",{className:"col-xl-10 col-lg-11 mx-auto",children:[(0,n.jsxs)(C.oW,{className:"search-section-heading",children:[(0,n.jsx)("p",{className:"home-section-kicker",children:"Local search"}),(0,n.jsx)("h1",{className:"section-title",children:b("search.searchTitle")}),(0,n.jsxs)("p",{className:"section-subtitle",children:[b("search.discover",{city:(0,c.Sn)(r)}),b("search.searchCompareConnect")]})]}),(0,n.jsx)("div",{className:"banner-hero banner-single-bg",children:(0,n.jsxs)("div",{className:"block-banner text-center ".concat(O?"bottom-radius-0":""),children:[(0,n.jsx)("div",{className:"form-find text-start mt-40",children:(0,n.jsxs)("div",{className:"form",children:[(0,n.jsx)("input",{className:"form-input input-keysearch mr-10",type:"text",placeholder:b("banner.searchPlaceholder"),value:W,onChange:er,onKeyDown:e=>{"Enter"===e.key&&ec()}}),(0,n.jsx)("button",{className:"btn btn-default btn-find font-sm",onClick:ec,children:b("banner.findBusinesses")})]})}),(0,n.jsx)(L,{ref:eo,children:O&&(0,n.jsx)(n.Fragment,{children:(null==Z||null==(l=Z.list)?void 0:l.length)>0&&Z.list.map((e,l)=>(0,n.jsx)(C.YD,{onClick:l=>ed(l,e),children:(0,n.jsx)(C.Rp,{children:(0,n.jsxs)(C.Uo,{children:[(0,n.jsx)(C.Dj,{children:null==e?void 0:e.title}),(null==e?void 0:e.type)==2||(null==e?void 0:e.category)||(null==e?void 0:e.city)?(0,n.jsxs)(C.sF,{children:[(null==e?void 0:e.type)==2&&(null==e?void 0:e.category)?(0,n.jsx)("span",{className:"accent",children:e.category}):null,(null==e?void 0:e.type)==2&&(null==e?void 0:e.city)?" in ".concat((0,c.Sn)(e.city)):(null==e?void 0:e.city)?" \xb7 ".concat((0,c.Sn)(e.city)):""]}):null]})})},l))})})]})})]})})})})}),eh=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.A,{children:[(null==u||null==(i=u.tags)?void 0:i.length)>0&&(0,n.jsx)(V,{className:"mb-50",length:null==J?void 0:J.length,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("div",{className:"col-md-12 mx-auto",children:(0,n.jsx)("div",{className:"text-start mb-3",children:(0,n.jsx)(k.yA,{children:b("search.categoriesRelatedToYourSearch",{term:(0,
1c.Sn)(null==M?void 0:M.term)})})})})}),(0,n.jsx)(k.Dz,{children:(0,n.jsx)(D,{items:null==u?void 0:u.tags,city:r,site_url:m})})]})}),(0,n.jsx)(P,{placementId:"before-results",className:"my-4"}),(0,n.jsx)(_.A,{plan:el,token:g||"",className:"mb-4 mt-4"}),J&&(null==J?void 0:J.length)>0&&(0,n.jsx)("section",{className:"section-box mt-50 ",children:(0,n.jsxs)("div",{children:[(0,n.jsxs)(T,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"results-header__eyebrow",children:"Local matches"}),(0,n.jsx)("h2",{className:"results-header__title",children:b("search.profilesMatchesYourSearchQuery",{term:(0,c.Sn)(null==M?void 0:M.term)})})]}),(0,n.jsxs)("p",{className:"results-header__copy",children:["Compare trusted businesses in ",(0,c.Sn)(r)]})]}),(0,n.jsxs)(k.pV,{className:"listing-grid mt-3",children:[en.map((e,l)=>ea(e,l)),es?(0,n.jsx)(A,{className:"listing-grid-ad"}):null,et.map((e,l)=>ea(e,l+ei)),(0,n.jsx)(R,{className:"listing-grid-ad mt-4 mb-2"})]}),(null==ee?void 0:ee.totalPages)&&(null==ee?void 0:ee.totalPages)>1?(0,n.jsx)(E,{children:(0,n.jsx)(h(),{previousLabel:(0,n.jsx)(q,{children:(0,n.jsx)(o.VKQ,{fontSize:"x-large",color:"black"})}),nextLabel:(0,n.jsx)(q,{children:(0,n.jsx)(o.OZ6,{fontSize:"x-large",color:"black"})}),breakLabel:"...",breakClassName:"break-me",activeClassName:"active",containerClassName:"pagination",subContainerClassName:"pages pagination",initialPage:ee.currentPage-1,disableInitialCallback:!0,pageCount:ee.totalPages,marginPagesDisplayed:2,pageRangeDisplayed:5,hrefBuilder:(e,l)=>{},hrefAllControls:!0,renderOnZeroPageCount:null,onPageChange:e=>(e=>{let l=y.pathname,i=y.query,n=e.selected+1;delete i.asPath,delete i.city,n>1?i.page=n:delete i.page,y.push({pathname:l,query:i})})(e)})}):(0,n.jsx)(n.Fragment,{})]})})]}),(null==u||null==(t=u.tags)?void 0:t.length)||(null==J?void 0:J.length)?null:(0,n.jsx)("section",{className:"section-box section-band home-categories-section bg-custom search-empty-section","aria-labelledby":"search-empty-heading",children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsx)(S.A,{id:"search-empty-heading",variant:"categories",kicker:b("search.emptyKicker",{defaultValue:"No matches"}),title:(null==M?void 0:M.term)?b("search.emptyTitleTerm",{term:(0,c.Sn)(M.term),defaultValue:"Nothing found for “{{term}}”"}):b("search.nothingFound"),support:b("search.emptySupport",{city:(0,c.Sn)(r),defaultValue:"No listings matched this search in {{city}}. Try another keyword, or browse local categories."})}),(0,n.jsxs)("div",{className:"search-empty-actions",children:[(0,n.jsxs)(p(),{href:"/".concat((0,c.BF)(r)||"nagercoil"),className:"btn btn-default",children:[(0,n.jsx)("span",{children:b("search.exploreCity",{city:(0,c.Sn)(r),defaultValue:"Explore {{city}}"})}),(0,n.jsx)("span",{className:"view-all-arrow","aria-hidden":"true",children:"→"})]}),g?(0,n.jsx)(p(),{href:"/user/profile/add-profile",className:"btn btn-outline-secondary rounded-pill",children:b("header.addBusiness")}):(0,n.jsx)(p(),{href:"/sign-up",className:"btn btn-outline-secondary rounded-pill",children:b("header.signUp")})]})]})})]});return"function"==typeof x?x({hero:eu,content:eh}):(0,n.jsxs)(n.Fragment,{children:[eu,eh]})},M=r.Ay.main.withConfig({componentId:"sc-77911df1-0"})(["min-height:50vh;margin:0;position:relative;"]);var O=!0;function U(e){let{site_settings:l,site_seo:i,city:s,user:a,token:r,site:o,site_og:c,site_url:d}=e;return(0,n.jsx)(G,{city:s,site_url:d,site:o,token:r,render:e=>{let{hero:r,content:o}=e;return(0,n.jsx)(t.A,{site_settings:l,site_seo:i,site_url:d,city:s,user:a,home:1,site_og:c,leading:r,children:(0,n.jsx)(M,{className:"search-route-page",children:o})})}})}}},e=>{e.O(0,[4121,2076,636,4644,8792],()=>e(e.s=18621)),_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.