PageSourceSearch

https://www.mitutoyo.com.sg/_next/static/chunks/pages/components/article/LinkButton-93e87fb33187a116.js

js mitutoyo.com.sg collected 2026-10-08 06:45:07 UTC 4,206 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6489],{47199:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/components/article/LinkButton",function(){return t(40557)}])},40557:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return p}});var a=t(85893),s=t(67294),n=t(36005),i=t(41664),l=t(11163),c=t(94184),o=t.n(c),d=t(55023),u=t(52091),f=t(25675);function p(e){var r=(0,l.useRouter)(),t=(0,s.useCallback)((function(e){if(e&&e.startsWith("http"))return e;if(!(0,n.xb)(r.query)){var t=(0,n.U2)(r,["query","domainLocale"],"sg-en");return e?"/".concat(t).concat(e):"/".concat(t)}return e}),[r]);if((0,n.xb)(e.links))return"";var c=function(e){switch(e){case"faVideo":return(0,a.jsx)(u.KoQ,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faBookOpen":return(0,a.jsx)(u.uYZ,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faTools":return(0,a.jsx)(u.CP_,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faPhone":return(0,a.jsx)(u.I7T,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faClipboardCheck":return(0,a.jsx)(u.Zlo,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faFile":return(0,a.jsx)(u.pPO,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faFolder":return(0,a.jsx)(u.$nz,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faBookmark":return(0,a.jsx)(u.VF9,{className:"pr-2",size:"1.2em","aria-hidden":"true"});case"faDownload":return(0,a.jsx)(u.aBF,{className:"pr-2",size:"1.2em","aria-hidden":"true"});default:return(0,a.jsx)(u.Mp$,{className:"pr-2",size:"1.2em","aria-hidden":"true"})}},p=[],h=[],x=!0,m=!1,j=void 0;try{for(var g,y=(0,n.U2)(e,"links",[])[Symbol.iterator]();!(x=(g=y.next()).done);x=!0){var b=g.value,w=(0,n.U2)(b,"link","");if(""!=w){var v="",N="";(0,n.Ft)(b.width)||(v="".concat(b.width,"px"),N="40px"),(0,n.Ft)(b.height)||(N="".concat(b.height,"px"),(0,n.Ft)(v)&&(v="250px"));var k=(0,n.xb)(v)?{}:{width:v,height:N};if("playStore"==b.type)h.push((0,a.jsx)("div",{className:o()((0,n.xb)(h)?"":"px-2"),children:(0,a.jsx)(i.default,{href:t(w),passHref:!0,children:(0,a.jsx)("a",{target:"_blank",rel:"nofollow noreferrer noopener",children:(0,a.jsx)(f.default,{alt:"google playstore",src:"".concat(d.oY,"/img/google-playstore-btn.png"),layout:"fixed",width:150,height:45})})})},(0,n.EL)("lb-")));else if("appStore"==b.type)h.push((0,a.jsx)("div",{className:o()((0,n.xb)(h)?"":"px-2"),children:(0,a.jsx)(i.default,{href:t(w),passHref:!0,children:(0,a.jsx)("a",{target:"_blank",rel:"nofollow noreferrer noopener",children:(0,a.jsx)(f.default,{alt:"apple appstore",src:"".concat(d.oY,"/img/apple-appstore-btn.png"),layout:"fixed",width:150,height:45})})})},(0,n.EL)("lb-")));else if(w.startsWith(d.oY)){var _=w.replace(d.oY,"");p.push((0,a.jsx)("div",{className:o()("bg-yellow-450 items-center text-white text-center m-auto text-base lg:font-semibold tracking-widest rounded-md shadow-lg hover:bg-gray-100 cursor-pointer hover:text-yellow-450  flex justify-center",(0,n.xb)(p)?"":"px-2",(0,n.Ft)(v)?"px-6 py-2":""),style:k,children:(0,a.jsx)(i.default,{href:t(_),passHref:!0,children:(0,a.jsx)("a",{target:"_self",children:(0,a.jsxs)("span",{className:"flex justify-center sm:text-lg",children:[c(b.icon),b.title]})})})},(0,n.EL)("lb-")))}else p.push((0,a.jsx)("div",{className:o()("bg-yellow-450 items-center text-white text-center px-6 py-2  m-auto text-base lg:font-semibold tracking-widest rounded-md shadow-lg hover:bg-gray-100 cursor-pointer hover:text-yellow-450 flex justify-center",(0,n.xb)(p)?"":"px-2",(0,n.Ft)(v)?"px-6 py-2":""),style:k,children:(0,a.jsx)(i.default,{href:t(w),passHref:!0,children:(0,a.jsx)("a",{target:"_self",children:(0,a.jsxs)("span",{className:"flex justify-center items-center",children:[c(b.icon),b.title]})})})},(0,n.EL)("lb-")))}}}catch(z){m=!0,j=z}finally{try{x||null==y.return||y.return()}finally{if(m)throw j}}return(0,a.jsxs)(a.Fragment,{children:[(0,n.xb)(p)?"":(0,a.jsx)("div",{className:"flex flex-wrap py-4 justify-start gap-2",children:p}),(0,n.xb)(h)?"":(0,a.jsx)("div",{className:"flex flex-wrap w-full py-4 ",children:h})]})}}},function(e){e.O(0,[9774,2888,179],(function(){return r=47199,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.