1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2151],{63676:(e,t,r)=>{r.d(t,{A:()=>L});var i=r(37876),s=r(14232),n=r(77328),o=r.n(n),a=r(32937),l=r(8349),c=r(84528),d=r(48230),x=r.n(d),m=r(95795),h=r(69877),p=r(68917),g=r(76252);let u=g.A.nav` 2 padding: 0; 3 padding-top: 10px; 4 margin-bottom: 2rem; 5 6 a:hover { 7 color: black; 8 text-decoration: underline; 9 transition: all 0.3s ease-in-out; 10 } 11`,j=({index:e,label:t,isLast:r=!1,darkBackground:s=!1})=>{let n=r?{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem"}:null;return(0,i.jsxs)(a.A,{sx:{fontSize:12,fontWeight:"bold",display:"inline",color:s?"#fff":"#797979",...r&&{fontWeight:"bold"}},...n,children:[(0,i.jsx)("span",{itemProp:"name",children:t}),r&&(0,i.jsx)("meta",{itemProp:"position",content:e.toString()})]})},f=({index:e,asUrl:t,url:r,label:s,darkBackground:n=!1})=>{let{href:o,as:a}=(0,p.Go)(r,t);return(0,i.jsxs)("span",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,i.jsx)(x(),{href:o,as:a,title:s,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",itemID:t||r,children:(0,i.jsx)(j,{label:s,index:e,darkBackground:n})}),(0,i.jsx)("meta",{itemProp:"position",content:e.toString()})]})},b=({crumbList:e,darkBackground:t})=>(0,i.jsx)(u,{children:(0,i.jsx)(({darkBackground:t})=>(0,i.jsxs)(m.A,{separator:"/",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",sx:{"& .MuiBreadcrumbs-separator":{color:t?"#fff":"#797979"}},children:[(0,i.jsx)(f,{index:1,url:h.J.home,label:"Home",asUrl:h.J.home,darkBackground:t}),e?.map((e,r)=>e.url?(0,i.jsx)(f,{index:r+2,asUrl:e.asUrl,url:e.url,label:e.text,darkBackground:t},r):(0,i.jsx)(j,{index:r+2,label:e.text,isLast:!0,darkBackground:t},r))]}),{darkBackground:t})}),A=({metaInfos:e})=>{let{productImage:t}=e;return(0,i.jsxs)(o(),{children:[(0,i.jsx)("meta",{property:"og:image",content:t},"ogImage"),(0,i.jsx)("meta",{property:"og:type",content:"product"},"ogType"),(0,i.jsx)("meta",{name:"twitter:image",content:t},"twitterImage")]})};var k=r(35831),w=r(96988);function y({baseMetaInfo:e}){let{t}=(0,k.Bd)(),r=w.A.getState().region,s=e?.description?e?.description:t("arr789").replace("+region+",r),n=e?.keywords?e?.keywords:t("arr694");return(0,i.jsxs)(o(),{children:[(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"twitter:description",content:s},"twitterDescription"),(0,i.jsx)("meta",{name:"description",content:s},"productDescription"),(0,i.jsx)("meta",{property:"og:description",content:s},"ogDescription")]}),(0,i.jsx)("meta",{name:"keywords",content:n})]})}var E=r(15339),R=r(82598);let L=({title:e="",baseMetaInfo:t,productMetas:r,breadcrumbs:n=[],noBreadcrumbBar:d=!1,noBreadcrumbBarPadding:x=!1,noLiveChat:m=!1,children:h,backgroundImage:p="",backgroundImageMobile:g="",darkBackground:u=!1})=>{let j=(0,l.A)(e=>e.setHasLiveChat),f=(0,E.U)(parseInt(R.hF.mobile));return(0,s.useEffect)(()=>{j(!m)},[m]),(0,i.jsxs)(a.A,{sx:{...f&&!!g&&{backgroundImage:`url(${g??p??""})`,backgroundRepeat:"no-repeat",backgroundPosition:"center top",backgroundAttachment:"fixed",backgroundSize:"cover"},...!f&&!!p&&{backgroundImage:`url(${p??g??""})`,backgroundRepeat:"no-repeat",backgroundPosition:"center top",backgroundAttachment:"fixed",backgroundSize:"cover"}},children:[(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:e}),(0,i.jsx)("meta",{property:"og:title",content:e},"ogTitle"),(0,i.jsx)("meta",{name:"twitter:title",content:e},"twitterTitle")]}),(0,i.jsx)(y,{baseMetaInfo:t}),!!r&&(0,i.jsx)(A,{metaInfos:r}),!d&&n.length>0&&(0,i.jsx)(c.A,{sx:{...x&&{p:0}},children:(0,i.jsx)(b,{crumbList:n,darkBackground:u})}),h]})}},88978:(e,t,r)=>{r.d(t,{A:()=>D});var i=r(37876),s=r(14232),n=r(48230),o=r.n(n),a=r(35831),l=r(62871),c=r(39091),d=r(88992),x=r(71090),m=r(32937),h=r(65648),p=r(72636),g=r(2708),u=r(1199),j=r(69877),f=r(84806),b=r(48397),A=r(14409),k=r(65940),w=r(16966),y=r(18262),E=r(26666),R=r(89099),L=r(73894),I=r(97837),S=r(55148),v=r(30822);let T={email:"",password:""},D=e=>{let{t}=(0,a.Bd)(),r=(0,R.useRouter)(),{setPageLoading:n,region:D,subCaption:F,onClickSignupAction:P,loginCallback:B,gaMethod:C="direct"}=e,{appData:_,updateLogin:z,updateSType:U,clearViewProductHistory:J,updateUserName:Y}
11=(0,u.T8)(),[G,W]=(0,s.useState)(!1),q=(0,A.A)(e=>e.wishList),M=(0,A.A)(e=>e.initList),$=(0,A.A)(e=>e.initList),H=(0,A.A)(e=>e.setList),N=(0,b.A)(e=>e.show),V=(0,s.useRef)(""),K=(0,s.useRef)("/"),[O,Q]=(0,s.useState)(!1),X=c.Ik({email:c.Yj().required(t("arr422")),password:c.Yj().required(t("arr232"))}),Z=(0,d.mN)({defaultValues:T,resolver:(0,x.t)(X)}),ee=(0,l.A)("login",async()=>(window&&window.dataLayer&&window.dataLayer.push({event:"login",method:C}),Q(!0),await p.Di.login({region:D,body:Z.getValues()})),{onSuccess:async e=>{et(e)},onError:()=>{Q(!1),N({message:"Login failed"})}}),et=async e=>{if(e.success){let t={token:e.token,refreshToken:e.refreshToken,sessionExpiryTime:e.tokenExpires,userId:e.userId};z(t),J();try{g.ok.interceptors.request.use((0,g.Do)(_,t));let e=await p.Di.getUser({region:D});e&&(U(e.salesType??""),Y(e.name??"")),q.size>0&&await p.Di.addToWishlist({region:D,body:[...q]});let r=await p.Di.getWishlistProdIds({region:D});r&&H(r)}catch(e){console.log("Failed to get wish list")}finally{if(B)return void B(t);let e="shopcart"===K.current?j.J.checkout:K.current;sessionStorage.removeItem(k.cY.REFEFRRER_PAGE_URL),sessionStorage.removeItem(k.cY.REFEFRRER_PAGE_ASURL),v.Jt(k.cY.REDIRECTETMALL)?(v.TF(k.cY.REDIRECTETMALL),window.location.href=`/${r.locale}${j.J.shopCart}`):window.location.href=`/${r.locale}${"/"!==e?e:""}`}return}Z.setValue("password",""),N({message:e?.errors?.[0]||"login failed",type:b.v.Login}),Q(!1),n&&n(!1)},er=async()=>await ee.trigger(),ei=async e=>{Q(!0),n&&n(!0),et(await p.Di.login1({region:D,code:e}))};return(0,s.useEffect)(()=>{let e=r.query.code;e&&ei(e)},[r.query.code]),(0,s.useEffect)(()=>{W((0,I.dA)(D,"tw"))},[r.query.etmall]),(0,s.useEffect)(()=>{M||$();let e=sessionStorage.getItem(k.cY.REFEFRRER_PAGE_URL),t=sessionStorage.getItem(k.cY.REFEFRRER_PAGE_ASURL);t&&(V.current=e??"",K.current=t)},[]),(0,i.jsxs)(f.oV,{children:[(0,i.jsx)("h2",{children:t("arr333")}),!!F&&(0,i.jsx)(m.A,{sx:{mb:2},children:F}),(0,i.jsxs)("form",{noValidate:!0,autoComplete:"on",onSubmit:Z.handleSubmit(er),children:[(0,i.jsx)(E.A,{form:Z,label:t("arr383"),name:"email"}),(0,i.jsx)(y.A,{form:Z,label:t("arr34")}),B?void 0:(0,i.jsx)(f.HH,{href:j.J.auth.forgetPassword,title:t("arr35"),children:t("arr35")}),(0,i.jsx)(w.A,{theme:"purple",type:"submit",variant:"outlined",sx:{mt:"20px",height:56},disabled:ee.isMutating||O,children:ee.isMutating||O?(0,i.jsx)(h.A,{size:30,sx:{color:"#aaa"}}):t("arr796")}),G&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m.A,{sx:{display:"flex",alignItems:"center",my:"40px"},children:[(0,i.jsx)(m.A,{sx:{flexGrow:1,height:"1px",backgroundColor:L.y.black}}),(0,i.jsx)(m.A,{sx:{m:"0 20px",fontWeight:"bold"},children:t("arr798")}),(0,i.jsx)(m.A,{sx:{flexGrow:1,height:"1px",backgroundColor:L.y.black}})]}),(0,i.jsx)(o(),{href:"#",title:t("arr341"),onClick:e=>{let t;e.preventDefault(),t=S.iB,window.location.href=t},children:(0,i.jsxs)(w.A,{variant:"outlined",sx:{height:56,border:"solid 2px #cc1e04 !important",color:"#cc1e04 !important"},children:[(0,i.jsx)("img",{src:"https://a.cdnsbn.com/images/campaign/ehs-logo.png",height:"80%"}),t("arr796")]})})]}),(0,i.jsx)(m.A,{sx:{textAlign:"center",my:"20px"},children:t("arr799")}),P?(0,i.jsx)(w.A,{variant:"outlined",sx:{height:56},onClick:P,children:t("arr341")}):(0,i.jsx)(o(),{href:j.J.auth.signup,title:t("arr341"),children:(0,i.jsx)(w.A,{variant:"outlined",sx:{height:56},children:t("arr341")})})]}),(0,i.jsx)(m.A,{sx:{textAlign:"center",mt:"30px",fontSize:12,fontWeight:"bold",textDecoration:"underline"},children:(0,i.jsx)(o(),{href:j.J.contactDetails,children:t("arr722")})})]})}},93777:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(37876),s=r(30521),n=r(32937),o=r(65648),a=r(14445),l=r(49995);let c=e=>{let{isShow:t=!1,caption:r="",isFixed:c=!0,sx:d}=e,x=(0,l.A)({show:t});return(0,i.jsx)(s.A,{sx:{position:c?"fixed":"absolute",backdropFilter:"blur(0px)",backgroundColor:"rgba(255, 255, 255, 0.5)",transition:"all .5s",zIndex:a.f.loadingBlock,"&.show":{backdropFilter:"blur(10px)"},...d},className:x,open:t,children:(0,i.jsxs)(n.A,{sx:{flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,i.jsx)(o.A,{size:80,color:"secondary"}),!!r&&(0,i.jsx)(n.A,{sx:{mt:1.5,fontSize:24},children: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.