PageSourceSearch

https://hindware.com/_next/static/chunks/2266-ad9f903e11ef1fd3.js

js hindware.com collected 2026-09-24 13:05:02 UTC 7,991 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2266],{84574:function(e,t,n){var r=n(85893),i=n(67294),s=n(41664),o=n.n(s),a=n(25675),l=n.n(a),c=n(35766),u=n(2261);n(64172),n(96936);var d=n(90193);n(69220),t.Z=()=>{let[e,t]=(0,i.useState)([]),[n,s]=(0,i.useState)(!1),a=(0,i.useRef)(null),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{(async()=>{try{let e=await (0,c.vN)({query:"",page:0,sizePerPage:3,categoryId:"",showOnHomePage:!0});(null==e?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)&&(t(e.data),s(!0))}catch(e){console.error("Error fetching latest blogs:",e)}})()},[]);let p=(0,i.useRef)(null),f="related-swiper-pagination",v=()=>{document.querySelectorAll(".".concat(f," .swiper-pagination-bullet")).forEach(e=>{if(!e.querySelector("svg")){let t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");n.setAttribute("viewBox","0 0 24 24"),n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%";let r=document.createElementNS(t,"circle");r.setAttribute("cx","12"),r.setAttribute("cy","12"),r.setAttribute("r","10"),r.setAttribute("stroke","#000000"),r.setAttribute("strokeWidth","2"),r.setAttribute("fill","none"),r.setAttribute("stroke-dasharray","62.8"),r.setAttribute("stroke-dashoffset","62.8"),r.classList.add("loader-circle"),n.appendChild(r),e.style.position="relative",e.appendChild(n)}})},g=()=>{document.querySelectorAll(".".concat(f," .loader-circle")).forEac
1h(e=>{e.style.transition="none",e.style.strokeDashoffset="62.8"})},b=()=>{let e=document.querySelector(".".concat(f," .swiper-pagination-bullet-active circle"));e&&(e.offsetWidth,e.style.transition="stroke-dashoffset 5s linear",e.style.strokeDashoffset="0")};return(0,i.useEffect)(()=>{let e=setInterval(()=>{document.querySelectorAll(".".concat(f," .swiper-pagination-bullet")).length>0&&(clearInterval(e),v(),b(),p.current)},100)},[]),(0,r.jsx)("section",{className:"section fp-auto-height drkHeader latest-blogs-wrapper",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"blog-wrapper",children:[(0,r.jsx)("h2",{className:"section-title mb-4",children:"Blogs"}),(0,r.jsx)("div",{className:"cta",children:(0,r.jsx)(o(),{className:"blogLink",href:"/blogs",children:"View All Blogs"})}),n&&(0,r.jsx)(u.tq,{modules:[d.pt,d.tl,d.W_],slidesPerView:3,spaceBetween:30,freeMode:!0,autoplay:{delay:5e3,disableOnInteraction:!1},navigation:{prevEl:a.current,nextEl:h.current},onBeforeInit:e=>{e.params.navigation.prevEl=a.current,e.params.navigation.nextEl=h.current},pagination:{el:".".concat(f),clickable:!0},loop:!0,breakpoints:{340:{slidesPerView:1,spaceBetween:15},640:{slidesPerView:1,spaceBetween:15},768:{slidesPerView:2,spaceBetween:15},1024:{slidesPerView:2,spaceBetween:25},1199:{slidesPerView:3,spaceBetween:25}},onSwiper:e=>{p.current=e,setTimeout(()=>{e.navigation&&(e.navigation.destroy(),e.navigation.init(),e.navigation.update()),v(),b(),e.on("slideChange",()=>{g(),setTimeout(()=>{b()},50)})})},children:e.map(e=>(0,r.jsx)(u.o5,{children:(0,r.jsx)("div",{className:"blog-post latest-blog",children:(0,r.jsxs)(o(),{href:"/blogs/".concat(null==e?void 0:e.parentAlias,"/").concat(null==e?void 0:e.slug),children:[(0,r.jsx)("div",{className:"blog-pic bgimg",children:(0,r.jsx)(l(),{src:e.banner_image,alt:e.title,width:400,height:220})}),(0,r.jsx)("div",{className:"blog-content",children:(0,r.jsx)("h3",{children:e.title})})]})})},e.id))}),(0,r.jsx)("div",{ref:a,className:"swiper-button-prev"}),(0,r.jsx)("div",{ref:h,className:"swiper-button-next"}),(0,r.jsx)("div",{className:f})]})})})}},70131:function(e,t,n){n.r(t),n.d(t,{InView:function(){return f},default:function(){return f},defaultFallbackInView:function(){return u},observe:function(){return d},useInView:function(){return v}});var r=n(67294);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o=new Map,a=new WeakMap,l=0,c=void 0;function u(e){c=e}function d(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=c),void 0===window.IntersectionObserver&&void 0!==r){var i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),function(){}}var s=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var n;return t+"_"+("root"===t?(n=e.root)?(a.has(n)||(l+=1,a.set(n,l.toString())),a.get(n)):"0":e[t])}).toString(),n=o.get(t);if(!n){var r,i=new Map,s=new IntersectionObserver(function(t){t.forEach(function(t){var n,s=t.isIntersecting&&r.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(n=i.get(t.target))||n.forEach(function(e){e(s,t)})})},e);r=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:i},o.set(t,n)}return n}(n),u=s.id,d=s.observer,h=s.elements,p=h.get(e)||[];return h.has(e)||h.set(e,p),p.push(t),d.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(h.delete(e),d.unobserve(e)),0===h.size&&(d.disconnect(),o.delete(u))}}var h=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function p(e){return"function"!=typeof e.children}var f=function(e){function t(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){!n.node||(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),p(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},n.componentWillUnmount=function(){this.unobserve(),this.node=null},n.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,s=e.delay,o=e.fallbackInView;this._unobserveCb=d(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:s},o)}},n.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},n.render=function(){if(!p(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var s=this.props,o=s.children,a=s.as,l=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(s,h);return r.createElement(a||"div",i({ref:this.handleNode},l),o)},t}(r.Component);function v(e){var t=void 0===e?{}:e,n=t.threshold,i=t.delay,s=t.trackVisibility,o=t.rootMargin,a=t.root,l=t.triggerOnce,c=t.skip,u=t.initialInView,h=t.fallbackInView,p=r.useRef(),f=r.useState({inView:!!u}),v=f[0],g=f[1],b=r.useCallback(function(e){void 0!==p.current&&(p.current(),p.current=void 0),!c&&e&&(p.current=d(e,function(e,t){g({inView:e,entry:t}),t.isIntersecting&&l&&p.current&&(p.current(),p.current=void 0)},{root:a,rootMargin:o,threshold:n,trackVisibility:s,delay:i},h))},[Array.isArray(n)?n.toString():n,a,o,l,c,s,h,i]);(0,r.useEffect)(function(){p.current||!v.entry||l||c||g({inView:!!u})});var y=[b,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}f.displayName="InView",f.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}}}]);

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.