PageSourceSearch

https://www.mitutoyo.com.sg/_next/static/chunks/pages/[domainLocale]/account/confirm-email-a0c25d1ed5c41085.js

js mitutoyo.com.sg collected 2026-10-08 06:46:12 UTC 9,318 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3897],{46704:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[domainLocale]/account/confirm-email",function(){return a(75297)}])},75297:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return j}});var n=a(34051),o=a.n(n),c=a(85893),r=a(9669),s=a.n(r),i=a(11163),l=a(67294),d=a(86896),u=a(36005),m=a(55023),f=a(71294),x=a(92572),h=a(92129);function p(e,t,a,n,o,c,r){try{var s=e[c](r),i=s.value}catch(l){return void a(l)}s.done?t(i):Promise.resolve(i).then(n,o)}var g=function(e){var t=(0,i.useRouter)(),a=(0,d.Z)().formatMessage,n=(0,l.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a({id:e,defaultMessage:t||e})}),[a]),r=(0,u.U2)(t,["query","domainLocale"],"sg-en"),h=(0,l.useState)({ln1:"",ln2:""}),g=h[0],j=h[1],y=(0,l.useState)(!0),v=y[0],w=y[1],b=(0,l.useState)(),N=b[0],k=b[1];if((0,l.useEffect)((function(){var e=function(){var e,a=(e=o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s().get("".concat(m.FH,"/users-permissions/auth/email-confirmation?confirmation=").concat(t.query.code)).then((function(e){var t=e.data;k((0,u.U2)(t,"user")),j({ln1:n("confirmEmail.thankYou.label"),ln2:n("confirmEmail.success.label")}),w(!1)})).catch((function(e){e.response&&console.log(e.response),j({ln1:n("confirmEmail.failed.label","Failed"),ln2:n("confirmEmail.unrecognizedCode.label")}),w(!1)}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(n,o){var c=e.apply(t,a);function r(e){p(c,n,o,r,s,"next",e)}function s(e){p(c,n,o,r,s,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}();(0,u.xb)(t.query.code)||(w(!0),e())}),[t,n]),v)return"Loading...";"/".concat(r),n("confirmEmail.confirmEmail.title");return(0,c.jsxs)("div",{className:"flex flex-col",children:[(0,c.jsx)(f.default,{title:n("confirmEmail.confirmEmail.title"),domainTitle:(0,u.U2)(e,["homepage","title"],"Mitutoyo Asia Pacific"),domain:(0,u.U2)(e,["homepage","domain"]),robots:"noindex, nofollow"}),(0,c.jsx)("div",{className:"flex border-0 border-black pb-4",children:(0,c.jsxs)("div",{className:"container",children:[(0,c.jsx)(x.default,{title:n("confirmEmail.confirmEmail.title","Email Confirmation")}),(0,c.jsx)("div",{className:"w-full flex flex-wrap",children:(0,c.jsx)("div",{className:"w-full lg:w-5/5",children:(0,c.jsxs)("div",{className:"flex w-full text-base p-5 text-center h-96",children:[(0,c.jsxs)("div",{className:"m-auto",children:[(0,c.jsx)("p",{className:"text-3xl text-yellow-450",children:g.ln1}),(0,c.jsx)("p",{className:"text-base",children:g.ln2})]}),!(0,u.xb)(N)&&(0,c.jsxs)("form",{children:[(0,c.jsx)("input",{type:"hidden",name:"userId",value:N.id}),(0,c.jsx)("input",{type:"hidden",name:"userName",value:N.username})]})]})})})]})})]})};g.Layout=h.default;var j=!0;t.default=g},92572:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return o}});var n=a(85893);function o(e){return(0,n.jsxs)("div",{className:"border-b-2 border-yellow-450 w-full grid grid-cols-2 px-2",children:[(0,n.jsx)("p",{className:"text-3xl text-yellow-450 py-6",children:e.title}),e.wizard&&(0,n.jsxs)("p",{className:"flex text-3xl text-yellow-450 py-6 justify-end",children:[e.wizard.step,"/",e.wizard.max]})]})}},71294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return i}});var n=a(85893),o=a(9008),c=a(11163),r=(a(67294),a(36005)),s=a(55023);function i(e){var t=(0,c.useRouter)();if((0,r.xb)(e))return"";var a=(0,r.U2)(e,"locale","en"),i=(0,r.U2)(e,"domainTitle","Mitutoyo Asia Pacific"),l=(0,r.Ft)(e.meta)?(0,r.xb)(e.metatag)?"":"".concat(e.metatag):e.meta,d=i;l&&!(0,r.xb)(l.title)?d="".concat(i," - ").concat(l.title):(0,r.xb)(e.title)||(d="".concat(i," - ").concat(e.title));var u=[];if(e.locales&&"en"!==e.locales){for(var m=e.locales.split(","),f={},x=0;x<m.length;x++)m[x]==a?f=(0,n.jsx)("link",{rel:"canonical",href:"https://".concat(e.domain).concat(t.asPath)},(0,r.EL)()):u.push((0,n.jsx)("link",{rel:"alternate",href:"https://".concat(e.domain).concat(t.asPath).replace(e.countryCode+"-"+a,e.countryCode+"-"+m[x]),hrefLang:m[x]},(0,r.EL)()));u.unshift(f)}return(0,n.jsxs)(o.default,{children:[(0,n.jsx)("title",{children:d}),u,(0,n.jsx)("meta",{name:"twitter:title",content:d}),(0,n.jsx)("meta",{property:"og:title",content:d}),(0,n.jsx)("meta",{name:"url",content:"https://".concat(e.domain).concat(t.asPath)}),(0,n.jsx)("meta",{name:"twitter:url",content:"https://".concat(e.domain).concat(t.asPath)}),(0,n.jsx)("meta",{property:"og:url",content:"https://".concat(e.domain).concat(t.asPath)}),(0,n.jsx)("meta",{name:"description",content:(0,r.xb)(l,"description")?l:l.description}),(0,n.jsx)("meta",{name:"keywords",content:(0,r.xb)(l,"keywords")?l:l.keywords}),(0,n.jsx)("meta",{property:"og:description",content:(0,r.xb)(l,"description")?l:l.description}),(0,n.jsx)("meta",{name:"twitter:description",content:(0,r.xb)(l,"description")?l:l.description}),(0,n.jsx)("meta",{name:"apple-touch-fullscreen",content:"yes"}),(0,n.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),e.categories&&e.categories.map((function(e,t){return(0,n.jsx)("meta",{name:"addsearch-custom-field","data-type":"text",content:"category=".concat(e)},"cat".concat(t))})),e.keywords&&e.keywords.map((function(e,t){return(0,n.jsx)("meta",{name:"addsearch-custom-field","data-type":"text",content:"keyword=".concat(e)},"key".concat(t))})),(0,r.jn)(e.productFeatured)&&(0,n.jsx)("meta",{name:"addsearch-custom-field",content:"featured=".concat(!0===e.productFeatured?"yes":"no")}),(0,r.jn)(e.productNew)&&(0,n.jsx)("meta",{name:"addsearch-custom-field",content:"new=".concat(!0===e.productNew?"yes":"no")}),e.productCategory&&e.productCategory.length>0&&e.productCategory.map((function(e){return(0,n.jsx)("meta",{name:"addsearch-custom-field","data-type":"text",content:"productCategory=".concat(e.name.trim())},(0,r.EL)("cat"))})),e.productSubCategory&&e.productSubCategory.length>0&&e.productSubCategory.map((function(e){return(0,n.jsx)("meta",{name:"addsearch-custom-field","data-type":"text",content:"productSubCategory=".concat(e.name.trim())},(0,r.EL)("subcat"))})),(0,r.jn)(e.hasCatalog)&&(0,n.jsx)("meta",{name:"addsearch-custom-field",content:"hasCatalog=".concat(!0===e.hasCatalog?"yes":"no")}),(0,r.jn)(e.hasSensorCatalog)&&(0,n.jsx)("meta",{name:"addsearch-custom-field",content:"hasSensorCatalog=".concat(!0===e.hasSensorCatalog?"yes":"no")}),e.image&&e.image.url&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"og:image",content:e.image&&e.image.url.startsWith("http")?e.image.url:"".concat(s.oY).concat(e.image.url)}),(0,n.jsx)("meta",{name:"twitter:image",content:e.image&&e.image.url.startsWith("http")?e.image.url:"".concat(s.oY).concat(e.image.url)})]}),(0,n.jsx)("meta",{property:"og:locale",content:a}),(0,n.jsx)("meta",{name:"twitter:locale",content:a}),e.robots?(0,n.jsx)("meta",{name:"robots",content:e.robots}):(0,n.jsx)("meta",{name:"robots",content:"index, follow"}),!(0,r.Ft)(e.addsearchBot)&&!(0,r.xb)(e.addsearchBot)&&!(0,r.o8)(e.addsearchBot)&&(0,n.jsx)("meta",{name:"addsearchbot",content:e.addsearchBot}
1),(0,n.jsx)("link",{rel:"preconnect",href:s.FH,crossOrigin:"anonymous"}),(0,n.jsx)("link",{rel:"dns-prefetch",href:s.FH}),(0,n.jsx)("link",{rel:"dns-prefetch",href:s.oY})]})}},92129:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var n=a(85893),o=a(9008),c=(a(25675),a(41664)),r=a(11163),s=a(67294),i=a(36005),l=a(69448),d=a(94184),u=a.n(d);function m(e){var t=(0,r.useRouter)(),a=(0,s.useCallback)((function(e){return e?"/".concat(t.query.domainLocale).concat(e):"/".concat(t.query.domainLocale)}),[t]);(0,s.useEffect)((function(){document&&e.locale&&(document.body.classList.remove("pmn"),document.body.classList.add("vi"==(0,i.U2)(e,"locale","en")?"open-sans-font":"lato-font"))}),[e]);var d=e.locales?e.locales.split(","):[];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{children:(0,n.jsx)("title",{children:(0,i.U2)(e,["homepage","title"],"Mitutoyo Asia Pacific")})}),(0,n.jsx)("div",{className:"flex z-500 filter drop-shadow-md sticky top-0 bg-white",children:(0,n.jsxs)("div",{className:"container flex flex-row",children:[(0,n.jsx)("div",{className:u()("flex w-full items-center h-20 px-2"),children:!(0,i.xb)(e.homepage)&&(0,n.jsx)(c.default,{href:a(),passHref:!0,children:(0,n.jsx)("a",{target:"_self",children:(0,n.jsx)("img",{className:"relative -left-2",src:"/img/mitutoyo-logo.svg",alt:"Logo ".concat(e.title),width:169,height:52.5})})})}),(0,n.jsx)("div",{className:"flex flex-row gap-1 justify-center p-4 divide-x-2",children:d.length>1&&d.map((function(a,o){return(0,n.jsx)(c.default,{href:t.asPath.replace("-".concat(e.locale,"/"),"-".concat(a,"/")),passHref:!0,children:(0,n.jsx)("a",{target:"_self",children:(0,n.jsx)("span",{className:u()("flex justify-center uppercase h-8 lg:h-10 text-base p-1 lg:p-2 w-10",e.locale==a?"text-yellow-450":""),children:a})})},o)}))})]})}),(0,n.jsx)("div",{className:"container xs:px-2 md:px-0",children:e.children}),(0,n.jsx)(l.default,{homepage:e.homepage,domainLocale:e.domainLocale,displayFooterMenu:!1})]})}}},function(e){e.O(0,[9774,2888,179],(function(){return t=46704,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.