PageSourceSearch

https://www.mydailyscoop.in/_next/static/chunks/5652.b69fec5d4a2e3a2b.js

js mydailyscoop.in collected 2026-10-04 03:09:28 UTC 11,286 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5652,6992,7726],{4611:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>b});var l=a(7876),n=a(8230),c=a.n(n),r=a(4232),i=a(8330),t=a(9099),o=a(937),u=a(1313),d=a(2990),m=a(3339);let h=e=>{var s,a;let{NavbarLinkJson:n,toggleOutline:i,logo:t}=e,[o,u]=(0,r.useState)(!1),[h,x]=(0,r.useState)(""),[g,j]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=localStorage.getItem("customer_uuid"),s=localStorage.getItem("user_session"),a=localStorage.getItem("name");e&&s&&a?(u(!0),x(a)):u(!1)},[]);let v=()=>{i()};return(0,l.jsxs)("div",{className:"megamenu-mobile",children:[(0,l.jsxs)("div",{className:"megamenu-header",children:[g?(0,l.jsx)(m.MdOutlineArrowBack,{className:"back-icon",onClick:()=>j(null),color:"white"}):(0,l.jsx)("img",{src:null==t||null==(s=t.data)?void 0:s.logo,alt:"logo",className:"megamenu-logo"}),(0,l.jsx)(d.RxCross2,{className:"close-icon",onClick:i,color:"white"})]}),(0,l.jsxs)("div",{className:"megamenu-user",children:[(0,l.jsxs)("p",{className:"welcome-text",children:["Hi! ",o&&h]}),o?(0,l.jsx)(c(),{href:"/dashboard/my-profile",onClick:v,children:(0,l.jsxs)("button",{className:"account-btn",children:["My Account ",(0,l.jsx)(m.MdOutlineAccountCircle,{className:"account-icon"})]})}):(0,l.jsx)(c(),{href:"/login",onClick:v,children:(0,l.jsx)("button",{className:"sign-in-btn",children:"SIGN IN"})})]}),(0,l.jsx)("div",{className:"megamenu-content",children:g?(0,l.jsx)("div",{className:"submenu",children:null==(a=g.subChildren)?void 0:a.map(e=>(0,l.jsx)(c(),{href:"/".concat(e.url),className:"submenu-item",onClick:v,children:(0,l.jsxs)("div",{className:"submenu-link",children:[(0,l.jsx)("img",{src:e.preview_image,alt:e.name,className:"submenu-image"}),e.name,e.is_new&&(0,l.jsx)("span",{className:"new-tag",children:"New"})]})},e.uuid))}):null==n?void 0:n.map(e=>(0,l.jsxs)("div",{className:"menu-item",children:[(0,l.jsx)(c(),{href:"/".concat(null==e?void 0:e.url),onClick:v,children:(0,l.jsx)("p",{className:"menu-title",children:e.name})}),e.mega_menu&&(0,l.jsx)("div",{className:"submenu",children:e.link_children.map(e=>(0,l.jsxs)("div",{className:"submenu-item",onClick:()=>j(e),children:[(0,l.jsx)("div",{className:"submenu-link",children:(0,l.jsxs)(c(),{href:"/".concat(null==e?void 0:e.url),onClick:v,children:[(0,l.jsx)("img",{src:e.preview_image,alt:e.name,className:"submenu-image"}),e.name,e.is_new&&(0,l.jsx)("span",{className:"new-tag",children:"New"})]})}),(0,l.jsx)(m.MdOutlineArrowForwardIos,{className:"arrow-icon",color:"white"})]},e.name))})]},e.uuid))})]})};var x=a(2859),g=a(2434),j=a(3340),v=a(431);let p=r.memo(e=>{let{NavbarLinkJson:s,productData:a}=e,[n,t]=(0,r.useState)(null),[o,u]=(0,r.useState)(null);(0,r.useEffect)(()=>{a&&null!==n&&t(null)},[a]);let d=e=>{o&&(clearTimeout(o),u(null)),t(e)},h=()=>{u(setTimeout(()=>{t(null)},200))};return(0,l.jsx)("div",{className:"List-Items",children:null==s?void 0:s.map(e=>{let s=null==e?void 0:e.mega_menu,a=(null==e?void 0:e.link_children)||[],r=n===e.uuid;return(0,l.jsxs)("div",{className:"menu-item-wrapper",onMouseEnter:()=>s&&d(e.uuid),onMouseLeave:h,children:[e.url?(0,l.jsx)(c(),{href:"".concat(v.J,"/").concat(e.url),children:(0,l.jsxs)("p",{className:"Menu-List ".concat(s?"has-mega-menu":""),children:[e.name,s&&(0,l.jsx)("span",{children:(0,l.jsx)(m.MdKeyboardArrowDown,{})})]})}):(0,l.jsxs)("p",{className:"Menu-List ".concat(s?"has-mega-menu":""),children:[e.name,s&&(0,l.jsx)("span",{children:(0,l.jsx)(m.MdKeyboardArrowDown,{})})]}),r&&s&&(0,l.jsx)("div",{className:"dialogue-box",onMouseEnter:()=>d(e.uuid),onMouseLeave:h,children:a.map(e=>(0,l.jsxs)("div",{className:"child-category",children:[(0,l.jsx)(c(),{href:"".concat(v.J,"/").concat(e.url),onClick:()=>t(null),children:(0,l.jsx)("p",{children:(0,i.Ux)(null==e?void 0:e.name)})}),(0,l.jsx)("div",{className:"subcategory-container",children:e.subChildren.map(e=>(0,l.jsx)(c(),{href:"".concat(v.J,"/").concat(e.url),onClick:()=>t(null),children:(0,l.jsx)("div",{className:"list_of_subcategory",children:(0,l.jsxs)("p",{children:[(0,i.Ux)(null==e?void 0:e.name),e.is_new&&(0,l.jsx)("span",{className:"new-tag",children:"New"})]})})},e.uuid))})]},e.name))})]},e.uuid)})})});
1var _=a(2607),N=a(3223),f=a(7726);let b=e=>{var s,a,n;let{NavbarLinkJson:b,logo:k,listOfSubCategory:y}=e,{cartCount:w,CartItems:S}=(0,r.useContext)(x.B),[C,M]=(0,r.useState)(null),[I,A]=(0,r.useState)([]),[E,J]=(0,r.useState)(""),[L,z]=(0,r.useState)(!1),[D,B]=(0,r.useState)(!1),[T,H]=(0,r.useState)(""),[O,U]=(0,r.useState)(!1),[F,R]=(0,r.useState)(!1),[G,K]=(0,r.useState)(""),[Y,q]=(0,r.useState)(!1),[P,V]=(0,r.useState)(!1),W=(0,t.useRouter)(),Z=async()=>{B(!0);try{let e=await (0,_.H)("POST",N.Yt.getSearchVariations(1),{},{subcategory_name:"sku"===E?"":E,product_name:"sku"===E?"":G,sku:"sku"===E?G:""});A(e)}catch(e){console.error("Error fetching products:",e)}finally{B(!1)}};return(0,r.useEffect)(()=>{let e=localStorage.getItem("customer_uuid"),s=localStorage.getItem("user_session"),a=localStorage.getItem("name");e&&s&&a&&q(!0),e&&S(),e&&s&&(async()=>{try{(await (0,_.H)("GET",N.KJ.getUserDetails,{Authorization:"Bearer ".concat(s)})).success||(localStorage.clear(),q(!1),W.push("/"))}catch(e){console.error("Error fetching user details:",e)}})()},[]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{H(G)},300);return()=>{clearTimeout(e)}},[G]),(0,r.useEffect)(()=>{T.length>0&&Z()},[T]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"Navbar_details-wrapper",children:(0,l.jsxs)("div",{className:"Navbar_details",children:[(0,l.jsxs)("div",{className:"Nav-item",children:[(0,l.jsx)("div",{className:"Hamburger",onClick:()=>R(!F),children:(0,l.jsx)(j.GiHamburgerMenu,{color:"white",size:"25px"})}),L&&(0,l.jsxs)("div",{className:"mobile_seach_bar ".concat(L?"open":""),children:[(0,l.jsx)("div",{className:"cross_cotainer_mobile",children:(0,l.jsx)(d.RxCross2,{size:15,color:"black",onClick:()=>z(!1)})}),(0,l.jsx)("div",{className:"Inut_cross_mobile",children:(0,l.jsx)("div",{className:"Input_SearchBar_mobile",children:(0,l.jsx)("input",{type:"search",className:"search__field",placeholder:"Search for products",value:G,onChange:e=>{let s=e.target.value.replace(/^\s+/,"");0===s.length&&A([]),I.total_results>0&&A([]),K(s)}})})}),(0,l.jsx)("div",{className:"All_seach_product",children:(0,l.jsx)("div",{className:"section_of_product_main",children:(0,l.jsx)("div",{className:"section_of_product",children:D?(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",paddingBlock:"10px",alignItems:"center",justifCcontent:"center"},children:(0,l.jsx)(f.default,{})}):I!=[]&&0==I.total_results?(0,l.jsx)("p",{style:{textAlign:"center",paddingBlock:"10px",fontSize:"11px"},children:"No result found"}):null==I||null==(s=I.results)?void 0:s.map((e,s)=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(c(),{href:"".concat(v.J,"/products/").concat(null==e?void 0:e.slug,"/?variant=").concat(null==e?void 0:e.variant),onClick:()=>{A([]),K(""),z(!1)},children:(0,l.jsxs)("div",{id:"searchResult_".concat(s),className:"conatiner_iamge_and_name",children:[(0,l.jsx)("img",{className:"search_input_mobile_iamge",loading:"lazy",src:null==e?void 0:e.image1,alt:"Product"}),(0,l.jsx)("p",{children:null==e?void 0:e.name})]})})},s))})})})]}),(0,l.jsx)("div",{className:"Megamenu ".concat(F?"active":"closed-megamenu"),children:F&&(0,l.jsx)(h,{logo:k,listOfSubCategory:y,NavbarLinkJson:b,toggleOutline:()=>{R(!1)}})}),(0,l.jsx)("div",{children:(0,l.jsx)(c(),{href:"/",children:(0,l.jsx)("img",{loading:"lazy",className:"G-logo",src:null==k||null==(a=k.data)?void 0:a.logo,alt:"logo"})})}),(0,l.jsxs)("div",{className:"home__search__main",children:[(0,l.jsx)("div",{className:"home__search",children:(0,l.jsx)("div",{className:"search__results",children:D?(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",paddingBlock:"10px",alignItems:"center",justifCcontent:"center"},children:(0,l.jsx)(f.default,{})}):I!=[]&&0==I.total_results?(0,l.jsx)("p",{style:{textAlign:"center",paddingBlock:"10px"},children:"No result found"}):null==I||null==(n=I.results)?void 0:n.map((e,s)=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)(c(),{href:"".concat(v.J,"/products/").concat(null==e?void 0:e.slug,"/?variant=").concat(null==e?void 0:e.variant),onClick:()=>{A([]),K("")},children:(0,l.jsxs)("div",{id:"searchResult_".concat(s),className:"search__bar__div",style:{backgroundColor:C===s?"#e0e0e0":"transparent"},onMouseEnter:()=>M(s),onMouseLeave:()=>M(null),children:[(0,l.jsx)("img",{loading:"lazy",className:"search__bar__image",src:null==e?void 0:e.image1}),(0,l.jsx)("p",{style:{color:"black"},children:(0,l.jsx)("p",{children:null==e?void 0:e.name})})]})})},s))})}),(0,l.jsxs)("div",{className:"Section_input",children:[(0,l.jsxs)("select",{value:E,onChange:e=>{A([]),J(e.target.value),K("")},children:[(0,l.jsx)("option",{value:"",children:"All"}),y.map(e=>(0,l.jsx)(r.Fragment,{children:(0,l.jsx)("option",{value:e.sub_category_name,children:(0,i.Ux)(e.sub_category_name)})},e.uuid)),(0,l.jsx)("option",{value:"sku",children:"SKU"})]}),(0,l.jsxs)("div",{className:"Input-SearchBar",children:[(0,l.jsx)(g.rmI,{className:"Search-button",size:"18px",color:"grey"}),(0,l.jsx)("input",{type:"search",className:"search__field",placeholder:"Search for products",value:G,onChange:e=>{let s=e.target.value.replace(/^\s+/,"");0===s.length&&A([]),K(s)}})]})]})]}),(0,l.jsx)("div",{className:"Login-Area",children:(0,l.jsxs)("div",{className:"login-Details",children:[Y?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(c(),{className:"user-link",href:"".concat(v.J,"/dashboard/my-profile"),children:(0,l.jsx)(m.MdAccountCircle,{color:"white",size:"20px"})})}
1):(0,l.jsx)(c(),{href:"".concat(v.J,"/login"),className:"user__link",children:(0,l.jsx)("p",{className:"UserName",children:"Login"})}),L?null:(0,l.jsx)(u.o0Z,{className:"searchbar__search",onClick:()=>{V(!P),z(!L)},color:"white"}),(0,l.jsxs)(c(),{href:"".concat(v.J,"/cart"),className:"cart__link",children:[w>0&&(0,l.jsx)("p",{children:w}),(0,l.jsx)(o.umW,{size:"20px",color:"white"})]})]})})]}),(0,l.jsx)(p,{NavbarLinkJson:b,isHovering:O,setIsHovering:U,listOfSubCategory:y,hoveredIndex:C,setHoveredIndex:M,productData:I})]})})})}},5652:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>c});var l=a(7876);a(4232);var n=a(4611);let c=e=>{let{NavbarLinkJson:s,logo:a,data:c,listOfSubCategory:r}=e;return(0,l.jsx)(l.Fragment,{children:s&&(0,l.jsx)(n.default,{NavbarLinkJson:s,logo:a,data:c,listOfSubCategory:r})})}},7726:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>r});var l=a(7876);a(4232);var n=a(9379),c=a.n(n);let r=e=>{let{width:s}=e;return(0,l.jsx)("div",{className:c().spinner,style:{width:s}})}},8330:(e,s,a)=>{"use strict";a.d(s,{Ux:()=>l,Yq:()=>c,jC:()=>n});let l=e=>"string"!=typeof e?"":e.replace(/-/g," ").split(" ").map(e=>n(e)).join(" "),n=e=>"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),c=e=>{let s=new Date,a=new Date(e),l=Math.floor((s.getTime()-a.getTime())/864e5);if(0===l)return"Today";if(1===l)return"Yesterday";if(l<=7)return"".concat(l," days ago");if(l<=14)return"1 week ago";if(l<=30){let e=Math.floor(l/7);return"".concat(e," weeks ago")}else{let e=Math.floor(l/30);return"".concat(e," months ago")}}},9379:e=>{e.exports={spinner:"Spinner_spinner__V06q5",spin:"Spinner_spin__Dfcyj"}}}]);

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.