1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8775],{13173:(e,r,t)=>{t.d(r,{A:()=>i.A});var i=t(16966)},14409:(e,r,t)=>{t.d(r,{A:()=>u});var i=t(34957),o=t(72636),a=t(30822),s=t(65940),n=t(76014);let l={isInited:!1,currencyFormat:{},wishList:new Set,page:1,totalPages:0,productList:[],isLoading:!1},d=e=>a.hZ(s.cY.WISH_LIST,e.join(",")),c=()=>a.hm(s.cY.APP_DATA).locale.region.shortName,u=(0,i.vt)((e,r)=>({...l,add:async t=>{let i=!!a.Jt(s.cY.TOKEN),{wishList:l}=r(),u=new Set(l),m=t.id;if(u.add(m),e({wishList:u}),d([...u]),window&&window.dataLayer){let e={event:"add_to_wishlist",value:t.price,currency:(0,n.m)(t.currency),items:[{item_id:t.id,item_name:t.name,item_brand:t.brand,item_variant:t.variant,item_category:t.category,price:t.price,quantity:1}]};window.dataLayer.push(e)}if(i){let e=c();try{await o.Di.addToWishlist({region:e,body:[m]})}catch(e){return console.error("Failed to add wish list item: ",e),!1}}return!0},setPage:r=>e({page:r}),remove:async t=>{let i=!!a.Jt(s.cY.TOKEN),{wishList:n,clearList:l}=r(),u=c(),m=new Set(n);if(m.delete(t),0===m.size?l():(e({wishList:m}),d([...m])),i)try{await o.Di.deleteWishlistItem({region:u,prodId:t})}catch(e){return console.error("Failed to remove account wish list: ",e),!1}return!0},toggle:async e=>{let{wishList:t,add:i,remove:o}=r(),a=new Set(t),s=e.id;a.has(s)?o(s):i(e)},initList:()=>{let r=a.Jt(s.cY.WISH_LIST);r&&e({isInited:!0,wishList:new Set(r.split(",").map(e=>parseInt(e,10)))})},setList:r=>{d(r),e({wishList:new Set(r)})},clearList:()=>{e({...l}),a.TF(s.cY.WISH_LIST)},initProductGrid:async e=>{let r=await o.Di.getUser({region:e});if(r&&r.roleType&&"staff"===r.roleType.toLowerCase()){window.location.href="/";return}},refreshProductGrid:async r=>{let t=c(),i=a.hm(s.cY.APP_DATA).locale.currency,n=a.Jt(s.cY.COOKIE_PRICE_TYPE)?a.Jt(s.cY.COOKIE_PRICE_TYPE):"";try{e({isLoading:!0});let a=await o.Di.getWishlistProductList({region:t,body:{page:r,pageSize:20,...!!n&&{cookiePriceType:n}},currid:i});if(a){let t=a.pageCount;e({page:Math.min(r,t),totalPages:t,productList:a.prods,currencyFormat:a.currency})}}catch(e){console.log("Failed to retrieve the wish list: ",e)}finally{e({isLoading:!1})}},clearProductGrid:()=>e({page:1,totalPages:0,productList:[],currencyFormat:{}})}))},16966:(e,r,t)=>{t.d(r,{A:()=>l});var i=t(37876);t(14232);var o=t(76252),a=t(18042),s=t(73894);let n=(0,o.A)(a.A)(({theme:e=""})=>({fontSize:16,borderRadius:"6px",textTransform:"uppercase",cursor:"pointer",...(e=>{switch(e){case"pink":return{color:"white","&, &:hover":{backgroundColor:s.y.pink},"&:hover":{opacity:".8"}};case"black":return{backgroundColor:"black",color:"white","&, &:hover":{backgroundColor:"black"},"&:hover":{opacity:".8"}};case"purple":return{backgroundColor:s.y.button_purple,color:"white","&, &:hover":{backgroundColor:s.y.button_purple},"&:hover":{opacity:".8"}};default:return{fontWeight:"bold",borderRadius:"6px",color:"black","&, &:hover":{border:"2px solid black",opacity:1},"&:disabled":{borderColor:s.y.disabled}}}})(e),"&:disabled":{backgroundColor:s.y.disabled,borderColor:s.y.disabled,color:s.y.disabledText,cursor:"not-allowed"}})),l=e=>{let{fullWidth:r=!0,disableRipple:t=!0,...o}=e;return(0,i.jsx)(n,{disableRipple:t,fullWidth:r,...o,children:e.children})}},18262:(e,r,t)=>{t.d(r,{A:()=>h});var i=t(37876),o=t(14232),a=t(42922),s=t(98486),n=t(23074),l=t(78479),d=t(1199),c=t(62597),u=t(76252),m=t(10163);let p=(0,u.A)(m.A)` 2 margin-bottom: 1rem; 3 4 & > .MuiInputLabel-root { 5 color: black; 6 margin-bottom: 10px; 7 font-weight: bold; 8 font-size: 1.2rem; 9 font-family: OutFit; 10 } 11 12 & > .MuiInputLabel-root.Mui-focused { 13 color: black; 14 15 & > fieldset { 16 border: solid 1px #040404; 17 } 18 } 19 20 & > div > .MuiInputBase-input { 21 font-size: 1.1rem; 22 } 23 24 & .MuiInput-underline:after { 25 border-bottom: 1px solid rgba(0, 0, 0, 0.42); 26 } 27 28 & > .MuiFormHelperText-root { 29 min-height: 1.5rem; 30 display: block; 31 margin-top: 4px; 32 margin-bottom: 0; 33 } 34`,h=e=>{let{form:r,name:t="password",margin:u="normal",variant:m="standard",helperText:h="",fullWidth:g=!0,isExitIntent:f=!1}=e,{appData:b}=(0,d.T8)(),x=(0,c.N)(b),[w,y]=(0,o.useState)(!x),A=r?.watch(t)??e.value,[v,T]=(0,o.useState)(!1);(0,o.useEffect)(()=>{y(!0)},[]);let k=r?.formState?.errors?.[t]?.message,j=h||k;return(0,i.jsx)(p,{name:t,type:v?"text":"password",value:A,margin:u,variant:m,InputLabelProps:{shrink:w},...r&&r.register(t),error:!!r?.formState?.errors?.[t],helperText:f?j||" ":h||k,...f&&{style:{marginTop:0,marginBottom:0},FormHelperTextProps:{style:{visibility:j?"visible":"hidden",minHeight:"1.2rem",display:"block",marginTop:0,marginBottom:0}}},fullWidth:g,InputProps:{inputProps:{maxLength:15},endAdornment:(0,i.jsx)(s.A,{position:"end",children:(0,i.jsx)(a.A,{tabIndex:-1,"aria-label":"toggle password visibility",sx:{cursor:"pointer"},onClick:()=>T(!v),children:v?(0,i.jsx)(l.A,{}):(0,i.jsx)(n.A,{})})})},...e})}},18775:(e,r,t)=>{t.d(r,{A:()=>E});var i=t(37876),o=t(39091),a=t(89099),s=t(35831),n=t(62871),l=t(88992),d=t(71090),c=t(86649),u=t(32937),m=t(65648),p=t(72636),h=t(1199),g=t(48397),f=t(14409),b=t(13173),x=t(25301),w=t(18262),y=t(26666),A=t(31031),v=t(69877),T=t(2708),k=t(14232),j=t(30822),I=t(65940),S=t(84806);let L={firstname:"",lastname:"",mobile:void 0,email:"",confirmEmail:"",password:"",confirmPassword:"",acceptTerms:!1,isSubscribe:!0,isNBTeacher:!1,nbTeacherCode:void 0},E=e=>{let{t:r}=(0,s.Bd)(),{ip:t,region:E,subCaption:P,onClickReturnButton:C,signupCallback:_,isExitIntent:R=!1,gaMethod:B="direct"}=e,{appData:F,updateLogin:M,clearViewProductHistory:z,updateSType:Y,updateUserName:q}=(0,h.T8)();(0,a.useRouter)();let D=(0,g.A)(e=>e.show),O=(0,f.A)(e=>e.wishList),H=(0,f.A)(e=>e.setList),[W,N]=(0,k.useState)(!1),$=(0,k.useRef)(!1),J=(0,A.l)(),V=o.Ik().shape({firstname:o.Yj().required(r("arr386")),lastname:o.Yj().required(r("arr387")),mobile:o.ai().positive().integer().required(r("arr233")).typeError(r("arr423")),email:o.Yj().email(r("arr55")).required(r("arr389")),...!R&&{confirmEmail:o.gl().test("Email match",r("arr424"),function(e){return this.parent.email===e})},password:o.Yj().required(r("arr232")).test("Password is valid",`${r("arr110")}; ${r("arr67")} `,function(){return this.parent.password.length>=8&&this.parent.password.length<=15}),...!R&&{confirmPassword:o.gl().test("Password match",r("arr57"),function(e){return this.parent.password===e})},...!R&&{acceptTerms:o.lc().oneOf([!0],r("arr60"))},...R&&{isSubscribe:o.lc().oneOf([!0],r("arr60"))},nbTeacherCode:o.Yj().when("isNBTeacher",{is:!0,then:o.Yj().required(r("arr521"))})}),K=(0,l.mN)({defaultValues:L,mode:"onBlur",resolver:(0,d.t)(V),...R&&{defaultValues:{...L,isSubscribe:!1}}}),G=async()=>{let e=(0,j.Jt)(I.cY.REFERRER),{firstname:r,lastname:i,mobile:o,email:a,password:s,confirmPassword:n,isSubscribe:l,isNBTeacher:d,nbTeacherCode:c}=K.getValues();$.current=d;let u={ip:t,firstname:r,lastname:i,mobile:o,email:a,password:s,confirmPassword:R?s:n,isSubscribe:l,...d&&{nbTeacherCode:c},...!!e&&{referrer:e}};
34return await p.Di.register({region:E,body:u})},U=(0,n.A)("signup",async()=>(window&&window.dataLayer&&window.dataLayer.push({event:"sign_up",method:R?"newcust_overlay":B}),N(!0),await G()),{onSuccess:async e=>{let t;if((0,j.Jt)(I.cY.REFERRER)&&(0,j.TF)(I.cY.REFERRER),e.success){let r={token:e.token,refreshToken:e.refreshToken,sessionExpiryTime:e.tokenExpires,userId:e.userId};M(r),z();try{T.ok.interceptors.request.use((0,T.Do)(F,r)),(t=await p.Di.getUser({region:E}))&&(Y(t.salesType??""),q(t.name??"")),O.size>0&&await p.Di.addToWishlist({region:E,body:[...O]});let e=await p.Di.getWishlistProdIds({region:E});e&&H(e)}catch(e){console.log("Failed to get wish list")}finally{if(_)return void _(R?t:r);window.location.href=v.J.auth.signupThankyou+($.current?"?nb=true":"")}return}let i=e?.errors?.at(0)||"";R?i&&J.error(i):D({message:i,type:g.v.Login,buttonText:r("ok")}),N(!1)},onError:e=>{console.log("Register error "+e),N(!1);let t=e?.message||"";if(R){t&&J.error(t);return}D({message:t,type:g.v.Login,buttonText:r("ok")})}}),Z=async()=>await U.trigger(),Q=R?u.A:S.oV;return(0,i.jsx)(Q,{children:(0,i.jsxs)("form",{onSubmit:K.handleSubmit(Z),noValidate:!0,children:[!R&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{children:r("arr380")}),P?(0,i.jsx)(u.A,{sx:{mb:2},children:P}):(0,i.jsx)("p",{children:r("arr381")})]}),(0,i.jsxs)(u.A,{sx:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"20px"},children:[(0,i.jsx)(y.A,{form:K,label:r("arr37"),name:"firstname",required:!0,isExitIntent:R}),(0,i.jsx)(y.A,{form:K,label:r("arr208"),name:"lastname",required:!0,isExitIntent:R})]}),(0,i.jsx)(y.A,{form:K,label:r("arr382"),name:"mobile",required:!0,isExitIntent:R}),(0,i.jsx)(y.A,{form:K,label:r("arr33"),name:"email",required:!0,isExitIntent:R}),!R&&(0,i.jsx)(y.A,{form:K,label:r("arr384"),name:"confirmEmail",required:!0}),(0,i.jsx)(w.A,{form:K,label:r("arr34"),name:"password",required:!0,isExitIntent:R}),!R&&(0,i.jsx)(w.A,{form:K,label:r("arr385"),name:"confirmPassword",required:!0}),!R&&K.getValues("isNBTeacher")&&(0,i.jsx)(y.A,{form:K,label:r("éåºç·¨è/èªç¶ç¾å工編è"),name:"nbTeacherCode",required:!0}),R?(0,i.jsx)(x.A,{formItem:K,margin:"dense",label:r("arr889"),name:"isSubscribe",required:!0}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{sx:{display:"flex"},children:(0,i.jsx)(x.A,{formItem:K,margin:"dense",label:(0,c.Ay)(r("arr393").replace("%s",`<a href="https://www.strawberrynet.com/customer-service/privacy-security" target="_blank"><u>${r("arr396")}</u></a>`).replace("%s",`<a href="https://www.strawberrynet.com/customer-service/terms-conditions" target="_blank"><u>${r("arr398")}</u></a>`)),name:"acceptTerms"})}),"cn"===E.toLowerCase()&&(0,i.jsx)(x.A,{formItem:K,margin:"dense",label:"ä»
éèªç¶ç¾ä¸æ/å çåºèå¸/èªç¶ç¾åå·¥å¾éï¼éªè¯æååå³å¯è·å¾èªç¶ç¾ä¸æ/å çåºèå¸/èªç¶ç¾åå·¥ä¸å±æçã",name:"isNBTeacher"}),(0,i.jsx)(x.A,{formItem:K,margin:"dense",label:r("arr394"),name:"isSubscribe"})]}),R&&(0,i.jsx)(u.A,{sx:{mt:2,mb:1},children:(0,i.jsx)(A.A,{hooks:J,persist:!1,dismissSeconds:5e3})}),(0,i.jsx)(b.A,{type:"submit",variant:R?void 0:"outlined",theme:R?"purple":"",fullWidth:!0,sx:{mt:2.5*!R},disabled:U.isMutating||W,children:U.isMutating||W?(0,i.jsx)(m.A,{size:30,sx:{color:R?"#fff":"#aaa"}}):R?r("arr890"):r("arr165")}),!R&&!!C&&(0,i.jsx)(u.A,{sx:{my:2,textAlign:"center",color:"#e0aaaa",textDecoration:"underline"},children:(0,i.jsx)("span",{style:{cursor:"pointer"},onClick:C,children:r("arr725")})})]})})}},25301:(e,r,t)=>{t.d(r,{A:()=>l});var i=t(37876);t(14232);var o=t(88057),a=t(77090),s=t(4185),n=t(32333);let l=e=>{let{formItem:r,margin:t="normal",label:l="",name:d="",sx:c=null,icon:u,checkedIcon:m,hasError:p=!1,helperText:h="",onSetValue:g}=e;return(0,i.jsxs)(a.A,{margin:t,error:!!(p||r?.formState?.errors?.[d]),sx:{...c},children:[(0,i.jsx)(s.A,{sx:{ml:1},control:(0,i.jsx)(()=>{let t=r?r.watch(d):e.checked;return(0,i.jsx)(o.A,{checked:t,onChange:e=>{r?r.setValue(d,e.target.checked):g&&g(e.target.checked)},name:d,icon:u,checkedIcon:m,sx:{alignSelf:"flex-start","&, &.Mui-checked":{accentColor:"#080808",color:"#080808",p:0,mr:1.25}}})},{}),label:l}),(0,i.jsx)(n.A,{sx:{ml:1},children:h||r?.formState?.errors?.[d]?.message})]})}},26666:(e,r,t)=>{t.d(r,{A:()=>i.A});var i=t(77377)},31031:(e,r,t)=>{t.d(r,{A:()=>n,l:()=>u});var i,o=t(37876),a=t(14232),s=t(73157);let n=({hooks:e,sx:r,persist:t=!1,dismissSeconds:i=4e3})=>{let n;return(0,a.useEffect)(()=>(t||(e.state.isShow?n=setTimeout(()=>{e.hide()},i):clearTimeout(n)),()=>{t||clearTimeout(n)}),[e.state.isShow]),e.state.isShow?(0,o.jsx)(s.A,{severity:e.state.severity,sx:r,children:e.state.message}):null},l={severity:"error",message:"",isShow:!1};var d=((i={}).Success="alertBar:success",i.Error="alertBar:error",i.Hide="alertBar:hide",i);let c=(e,r)=>{let{type:t,payload:i}=r;switch(t){case"alertBar:success":return{severity:"success",message:i.message,isShow:!0}
34;case"alertBar:error":return{severity:"error",message:i.message,isShow:!0};default:return l}},u=()=>{let[e,r]=(0,a.useReducer)(c,l);return{state:e,success:e=>r({type:d.Success,payload:{message:e}}),error:e=>r({type:d.Error,payload:{message:e}}),hide:()=>r({type:d.Hide})}}},48397:(e,r,t)=>{t.d(r,{A:()=>s,v:()=>a});var i,o=t(34957),a=((i={})[i.Default=0]="Default",i[i.Login=1]="Login",i);let s=(0,o.vt)(e=>({alert:{message:"",type:0,buttonText:"",onClickCloseButtonAction:()=>e({isShow:!1})},isShow:!1,show:r=>e({alert:r,isShow:!0}),hide:()=>e({isShow:!1})}))},77377:(e,r,t)=>{t.d(r,{A:()=>m});var i=t(37876),o=t(14232),a=t(35831),s=t(76252),n=t(10163);let l=(0,s.A)(n.A)` 35 > .MuiInputLabel-root { 36 margin-bottom: 10px; 37 font-weight: bold; 38 font-size: 1.2rem; 39 font-family: OutFit; 40 transform-origin: ${e=>e.isRTL?"right":"left"} top; 41 ${e=>e.isRTL?"right: 0;":"left: 0:"} 42 } 43 44 > .MuiFormHelperText-root { 45 text-align: ${e=>e.isRTL?"right":"left"}; 46 } 47 48 > .MuiInputLabel-root.Mui-focused { 49 color: black; 50 51 > fieldset { 52 border: inset 1px black; 53 } 54 } 55 56 > div > .MuiInputBase-input { 57 font-size: 1.1rem; 58 color: black; 59 } 60 61 .MuiInput-underline:after { 62 border-bottom: 1px solid #f77070; 63 } 64`,d=(0,s.A)(n.A)``;var c=t(62597),u=t(1199);let m=e=>{let{form:r,formProps:t,name:s="",required:n=!1,margin:m="normal",variant:p="standard",helperText:h="",fullWidth:g=!0,validation:f,isExitIntent:b=!1,...x}=e,{t:w}=(0,a.Bd)(),{appData:y}=(0,u.T8)(),A=(0,c.N)(y),v=r?.watch(s)??e.value,T=r?.formState?.errors?.[s],[k,j]=(0,o.useState)(!A);if((0,o.useEffect)(()=>{j(!0)},[]),"hidden"===e.type)return(0,i.jsx)(d,{variant:p,hidden:!0,...x});let I=h||T?.message,S=b?I||" ":h||T?.message;return(0,i.jsx)(l,{name:s,defaultValue:v,margin:m,variant:p,isRTL:A,InputLabelProps:{shrink:k},...r&&r.register(s,{...f,required:!!n&&w("arr521"),...t}),required:n,error:!!T,helperText:S,fullWidth:g,...b&&{style:{marginTop:0,marginBottom:0},FormHelperTextProps:{style:{visibility:I?"visible":"hidden",minHeight:"1.2rem",display:"block",marginTop:0,marginBottom:0}}},...x})}},84806:(e,r,t)=>{t.d(r,{HH:()=>c,ZQ:()=>m,mo:()=>u,oV:()=>d});var i=t(48230),o=t.n(i),a=t(76252),s=t(32937),n=t(10163),l=t(13224);let d=(0,a.A)(s.A)` 65 background-color: white; 66 padding: 2rem; 67 border-radius: 10px; 68 border: solid 1px #ebebeb; 69 max-width: 550px; 70 height: fit-content; 71 72 > span { 73 color: #080808; 74 font-size: 14px; 75 position: relative; 76 top: -12px; 77 } 78`,c=(0,a.A)(o())` 79 color: #080808; 80 font-weight: 600; 81 text-decoration: underline; 82 font-size: 12px; 83 margin: 0.25rem 0 1rem; 84 cursor: pointer; 85`,u=a.A.div` 86 position: fixed; 87 display: ${e=>e.show?"block":"none"}; 88 width: 100%; 89 height: 100%; 90 top: 0; 91 left: 0; 92 right: 0; 93 bottom: 0; 94 background: rgba(0, 0, 0, 0.6); 95 z-index: 999; 96 overflow: hidden; 97 98 & > div { 99 position: absolute; 100 101 top: 50%; 102 left: 50%; 103 font-size: 50px; 104 color: white; 105 transform: translate(-50%, -50%); 106 -ms-transform: translate(-50%, -50%); 107 width: 600px; 108 height: auto; 109 border-radius: 24px; 110 border: solid 1px #f4f4f4; 111 background-color: #fff; 112 display: flex; 113 flex-direction: column; 114 align-items: center; 115 padding: 50px 80px; 116 max-width: 95%; 117 color: black; 118 119 ${(0,l.B)("mobile")} { 120 padding: 60px 30px; 121 } 122 123 .close-button { 124 position: absolute; 125 top: 24px; 126 right: 24px; 127 cursor: pointer; 128 } 129 130 .reminder { 131 color: #c66ee2; 132 font-size: 30px; 133 font-weight: 600; 134 letter-spacing: 0.45px; 135 136 ${(0,l.B)("mobile")} { 137 font-size: 24px; 138 } 139 } 140 141 .description { 142 font-size: 16px; 143 text-align: center; 144 letter-spacing: 0.3px; 145 color: #000; 146 147 ${(0,l.B)("mobile")} { 148 font-size: 16px; 149 } 150 } 151 152 .form { 153 font-size: 14px; 154 width: 341px; 155 max-width: 100%; 156 font-weight: 600; 157 158 .button { 159 display: flex; 160 justify-content: center; 161 } 162 } 163 } 164`,m=(0,a.A)(n.A)` 165 width: 100%; 166 margin: 0; 167 height: 48px; 168 padding: 0; 169 font-size: 15px; 170 .MuiInputBase-root { 171 border-radius: 15px; 172 173 .MuiOutlinedInput-notchedOutline { 174 border-color: #a1a1a1; 175 } 176 177 .MuiFilledInput-input { 178 height: 46px; 179 font-size: 18px; 180 padding: 0 0 0 10px; 181 font-weight: bold; 182 } 183 184 &.Mui-focused .MuiOutlinedInput-notchedOutline { 185 border-color: inherit; 186 } 187 } 188`}}]);
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.