PageSourceSearch

https://www.wmwindia.com/_next/static/chunks/4270.fcac587ad477cc0d.js

js wmwindia.com collected 2026-10-07 17:38:37 UTC 13,754 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4270],{90622:function(){},43398:function(e,t,r){"use strict";var n=r(20357);r(90622);var s=r(2265),i=s&&"object"==typeof s&&"default"in s?s:{default:s},a=void 0!==n&&n.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,s=t.optimizeForSpeed,i=void 0===s?a:s;u(o(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(u(o(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},t.deleteRule=function(e){if("undefined"==typeof window){this._serverSheet.deleteRule(e);return}if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},t.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,r){t&&u(o(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return r?s.insertBefore(n,r):s.appendChild(n),n},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,s=t.optimizeForSpeed,i=void 0!==s&&s;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),n&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,s=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var i=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=i,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var s=h(n,r);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return f(s,e)}):[f(s,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=s.createContext(null);p.displayName="StyleSheetContext";var y=i.default.useInsertionEffect||i.default.useLayoutEffect,x="undefined"!=typeof window?new m:void 0;function _(e){var t=x||s.useContext(p);return t&&("undefined"==typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}_.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=_},48059:function(e,t,r){"use strict";e.exports=r(43398).style},94270:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var n=r(57437),s=r(48059),i=r.n(s),a=r(2265),o=r(7476),l=r(1109),u=r(87138),c=r(9730);let d=null;function h(){return d||(d=r.e(2591).then(r.bind(r,52591)).then(e=>{let t=e.default;{let e=localStorage.getItem("algolia_userToken");e||(e=`user_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,localStorage.setItem("algolia_userToken",e)),t("init",{appId:"DXGN2F4PQJ",apiKey:"9ee70873770fe7a63b88df837833ce82",userToken:e})}return t})),d}var f=()=>{let{isSearchOpen:e,closeSearch:t,searchQuery:r,setSearchQuery:s,searchResults:d,setSearchResults:f,isLoading:m,setIsLoading:p}=(0,c.R)(),y=(0,a.useRef)(null),x=(0,a.useRef)(null);(0,a.useEffect)(()=>{e&&h().catch(e=>console.error("Algolia insights load failed:",e))},[e]),(0,a.useEffect)(()=>{e&&x.current?.focus();let t=e=>{y.current&&y.current.contains(e.target)};return e&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,t]),(0,a.useEffect)(()=>{let e=new AbortController,t=setTimeout(()=>{if(r.trim().length>2){p(!0);let t=localStorage.getItem("algolia_userToken")||"";fetch(`/api/search?query=${encodeURIComponent(r)}&userToken=${encodeURIComponent(t)}`,{signal:e.signal}).then(e=>{if(!e.ok)throw Error("Search failed");return e.json()}).then(e=>{f(e.results)}).catch(e=>{"AbortError"!==e.name&&console.error("Search error:",e)}).finally(()=>{e.signal.aborted||p(!1)})}else f([])},300);return()=>{clearTimeout(t),e.abort()}},[r,f,p]);let _=async(e,r)=>{if(e.queryID&&e.objectID&&e.indexName)try{(await h())("clickedObjectIDsAfterSearch",{eventName:"Search Result Clicked",index:e.indexName,queryID:e.queryID,objectIDs:[e.objectID],positions:[r]})}catch{}t()};return e?(0,n.jsxs)("div",{className:"jsx-707ba696e4290fd0 fixed inset-0 z-50",children:[(0,n.jsx)("div",{"aria-hidden":"true",onClick:t,className:"jsx-707ba696e4290fd0 absolute left-0 right-0 bottom-0 top-40 bg-black/30 backdrop-blur-sm transition-opacity"}),(0,n.jsxs)("div",{ref:y,className:"jsx-707ba696e4290fd0 fixed inset-x-4 top-40 sm:inset-x-auto sm:right-0 sm:w-[400px] md:w-[500px] bg-white rounded-lg shadow-lg z-50 overflow-hidden border mx-auto",children:[(0,n.jsxs)("div",{className:"jsx-707ba696e4290fd0 flex items-center border-b p-2",children:[(0,n.jsx)(o.jRj,{className:"h-5 w-5 mx-2 text-gray-500"}),(0,n.jsx)("input",{ref:x,type:"text",value:r,onChange:e=>s(e.target.value),placeholder:"Search...",autoFocus:!0,className:"jsx-707ba696e4290fd0 flex-1 p-2 outline-none text-sm"}),(0,n.jsx)("button",{onClick:t,className:"jsx-707ba696e4290fd0 p-2",children:(0,n.jsx)(o.q5L,{className:"h-5 w-5 text-gray-500"})})]}),(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 max-h-[400px] overflow-y-auto",children:m?(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 flex justify-center items-center h-24",children:(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 loader h-6 w-6 border-3 border-t-blue-500 border-gray-200 rounded-full animate-spin"})}):d.length>0?(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 divide-y",children:d.map((e,t)=>(0,n.jsxs)(u.default,{href:e.path,className:"block p-3 hover:bg-gray-100 transition-colors",onClick:()=>_(e,t+1),children:[(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 text-xs text-gray-500 flex items-center mb-1",children:e.breadcrumb.map((t,r)=>(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)("span",{className:"jsx-707ba696e4290fd0",children:t}),r<e.breadcrumb.length-1&&(0,n.jsx)(l.yoF,{className:"mx-1 text-xs"})]},r))}),(0,n.jsx)("h3",{dangerouslySetInnerHTML:{__html:e.title},className:"jsx-707ba696e4290fd0 text-sm font-medium text-blue-700"}),(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:e.description},className:"jsx-707ba696e4290fd0 text-xs text-gray-700 line-clamp-2"})]},t))}):r.trim().length>2?(0,n.jsxs)("div",{className:"jsx-707ba696e4290fd0 text-center py-6 text-gray-500 text-sm",children:['No results found for "',r,'"']}):r.trim().length>0?(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 text-center py-6 text-gray-500 text-sm",children:"Type at least 3 characters to search"}):(0,n.jsx)("div",{className:"jsx-707ba696e4290fd0 text-center py-6 text-gray-500 text-sm",children:"Start typing to search"})})]}),(0,n.jsx)(i(),{id:"707ba696e4290fd0",children:".animate-fade-in{-webkit-animation:fadeInModal.18s cubic-bezier(.4,0,.2,1);-moz-animation:fadeInModal.18s cubic-bezier(.4,0,.2,1);-o-animation:fadeInModal.18s cubic-bezier(.4,0,.2,1);animation:fadeInModal.18s cubic-bezier(.4,0,.2,1)}@-webkit-keyframes fadeInModal{from{opacity:0;-webkit-transform:translatey(24px)translatex(-50%);transform:translatey(24px)translatex(-50%)}to{opacity:1;-webkit-transform:translatey(0)translatex(-50%);transform:translatey(0)translatex(-50%)}}@-moz-keyframes fadeInModal{from{opacity:0;-moz-transform:translatey(24px)translatex(-50%);transform:translatey(24px)translatex(-50%)}to{opacity:1;-moz-transform:translatey(0)translatex(-50%);transform:translatey(0)translatex(-50%)}}@-o-keyframes fadeInModal{from{opacity:0;-o-transform:translatey(24px)translatex(-50%);transform:translatey(24px)translatex(-50%)}to{opacity:1;-o-transform:translatey(0)translatex(-50%);transform:translatey(0)translatex(-50%)}}@keyframes fadeInModal{from{opacity:0;-webkit-transform:translatey(24px)translatex(-50%);-moz-transform:translatey(24px)translatex(-50%);-o-transform:translatey(24px)translatex(-50%);transform:translatey(24px)translatex(-50%)}to{opacity:1;-webkit-transform:translatey(0)translatex(-50%);-moz-transform:translatey(0)translatex(-50%);-o-transform:translatey(0)translatex(-50%);transform:translatey(0)translatex(-50%)}}"})]}):null}}}]);

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.