PageSourceSearch

https://www.inappmessage.com/assets/index-BdJy--Q4.js

js inappmessage.com collected 2026-10-08 09:30:45 UTC 13,257 bytes, 13 lines download raw bytes

1import{j as e,m as q,B as p,n as m,A as b,Z as L,o as I,_ as B,l as D,t as G}from"./vendor-mui-qIBpmbjJ.js";import{b as r}from"./vendor-sentry-DuUZSUEV.js";import{i as Z,j as $,L as Y}from"./vendor-react-SrU0iYhL.js";import{P as K,a as J,b as Q}from"./register-progressbar-3-C71QnT8m.js";import{A as U,b as W,a as X,S as ee}from"./index-D0dsDYpI.js";import{L as te,a as ae,b as ne,c as ie}from"./login-4-Bu6XELAI.js";import{F as M,O as se,B as F,C as oe}from"./vendor-utils-CfWZa1UJ.js";import{u as re}from"./useIsMountedRef-D056_-me.js";import"./vendor-aws-tXBn_fOW.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"[email protected]"};var l=new a.Error().stack;l&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[l]="e49c6fdb-95c8-498e-ab33-30ba3d570048",a._sentryDebugIdIdentifier="sentry-dbid-e49c6fdb-95c8-498e-ab33-30ba3d570048")}catch{}})();const le=q(a=>({root:{borderRadius:"8px"},googleButton:{backgroundColor:a.palette.common.white,borderRadius:"12px",padding:22,height:62,textTransform:"none"},providerIcon:{marginRight:a.spacing(2)},bold:{fontWeight:600,fontFamily:"'Poppins', sans-serif"},divider:{flexGrow:1},dividerText:{margin:a.spacing(2)},fields:{height:52,marginTop:0,marginBottom:20,"& .MuiOutlinedInput-root":{borderRadius:"8px",backgroundColor:"#F7F8FA",fontFamily:"'Poppins', sans-serif",fontSize:"14px","& fieldset":{borderColor:"#E5E8EB"},"&:hover fieldset":{borderColor:"#D1D6DB"},"&.Mui-focused fieldset":{borderColor:"#191F28",borderWidth:"1px"}}},fieldsPW:{height:52,marginTop:0,"& .MuiOutlinedInput-root":{borderRadius:"8px",backgroundColor:"#F7F8FA",fontFamily:"'Poppins', sans-serif",fontSize:"14px","& fieldset":{borderColor:"#E5E8EB"},"&:hover fieldset":{borderColor:"#D1D6DB"},"&.Mui-focused fieldset":{borderColor:"#191F28",borderWidth:"1px"}}},captionText:{color:"#8B95A1",fontFamily:"'Poppins', sans-serif"},label:{fontFamily:"'Poppins', sans-serif",fontSize:"13px",fontWeight:500,color:"#4E5968",marginBottom:"6px"},createAccountButton:{borderRadius:"12px",padding:20,marginTop:10,height:52,textTransform:"none",fontFamily:"'Poppins', sans-serif",fontSize:15,fontWeight:600,backgroundColor:"#191F28",color:"#FFFFFF","&:hover":{backgroundColor:"#333D4B"}},captionSize:{textAlign:"center",color:"#4E5968",fontSize:"12px",fontFamily:"'Poppins', sans-serif"},captionSize2:{fontSize:10,color:"red",fontFamily:"'Poppins', sans-serif"}})),ce=({setProgress:a,...l})=>{const i=le(),[k,h]=r.useState(!1),[E,w]=r.useState(!1),[j,x]=r.useState(""),[R,u]=r.useState(""),[P,C]=r.useState(""),[N,S]=r.useState(""),[A,z]=r.useState(!1),y=re(),f=r.useContext(U),T=Z(),V=async()=>{z(!0),S("");try{await f.resendSignUp(j),S("Verification code has been resent. Please check your email.")}catch(t){const n=t.name;S(n==="LimitExceededException"||n==="TooManyRequestsException"?"Too many attempts. Please try again later.":t.message||"Failed to resend code. Please try again.")}finally{z(!1)}},H=/^[a-zA-Z0-9]*$/;function _(){return a(2),e.jsx(e.Fragment,{children:e.jsx(M,{initialValues:{email:j,code:"",password:R,company:P,submit:null},onSubmit:async(t,{setErrors:n,setStatus:o,setSubmitting:c})=>{try{await f.verifyCode(t.email,t.code),await f.signInWithEmail(t.email,t.password);const d=await f.currentCredentials();await W.post("/subscription/management",{companyEmail:t.email,companyName:t.company,userId:d.identityId}),T.replace("/workspace/draft"),y.current&&(o({success:!0}),c(!1))}catch(d){y.current&&(o({success:!1}),n({submit:d.message}),c(!1))}},children:({errors:t,handleBlur:n,handleChange:o,handleSubmit:c,isSubmitting:d,values:s})=>e.jsxs("form",{noValidate:!0,onSubmit:c,...l,children:[e.jsx(p,{mb:5,children:e.jsx("div",{children:e.jsx(m,{color:"text.primary",gutterBottom:!0,variant:"h5",className:i.bold,children:"Please enter the code"})})}),e.jsx(m,{className:i.label,children:"Verification Code"}),e.jsx(b,{className:i.fields,fullWidth:!0,margin:"normal",name:"code",onBlur:n,onChange:o,type:"tel",value:s.code,variant:"outlined",placeholder:"Enter your verification code",onKeyPress:()=>a(3)}),t.submit&&e.jsx(p,{mt:3,children:e.jsx(L,{error:!0,children:t.submit})}),e.jsx(p,{mt:2,children:e.jsx(I,{className:i.createAccountButton,color:"primary",disabled:d,fullWidth:!0,type:"submit",variant:"contained",children:"Verify"})}),e.jsxs(p,{mt:2,textAlign:"center",children:[e.jsxs(m,{className:i.captionSize,variant:"caption",children:["Didn't receive the code?"," ",e.jsx(I,{color:"primary",disabled:A,onClick:V,style:{textTransform:"none",padding:0,minWidth:"auto"},children:A?"Sending...":"Resend Code"})]}),N&&e.jsx(m,{variant:"caption",style:{display:"block",marginTop:8,color:N.includes("resent")?"#4caf50":"#f44336"},children:N})]})]})},"confirmation-form")})}function O(){return a(1),e.jsx(e.Fragment,{children:e.jsx(M,{initialValues:{email:"",company:"",password:"",passwordConfirm:"",submit:null},validationSchema:se().shape({email:F().email("Must be a valid email").max(255).required("Email is required").test("blockPersonalEmail","Please use your company email",t=>{const n=["gmail.com","naver.com","nate.com","kakao.com","me.com","hotmail.com","daum.
1net","hanmail.net"],o=t==null?void 0:t.split("@")[1];return t&&!n.includes(o)}),company:F().required("Company Name is required").matches(H,"Company Name only contain english or number"),password:F().min(8,"Password must be at least 8 characters").max(255).matches(/[a-z]/,"Password must contain a lowercase letter").matches(/[A-Z]/,"Password must contain an uppercase letter").matches(/[0-9]/,"Password must contain a number").matches(/[^a-zA-Z0-9]/,"Password must contain a special character").required("Password is required"),passwordConfirm:F().required("Password confirmation is required").oneOf([oe("password")],"Passwords must match")}),onSubmit:async(t,{setErrors:n,setStatus:o,setSubmitting:c})=>{try{await f.signUpWithEmail(t.company,t.email,t.password),x(t.email),C(t.company),u(t.password),w(!0),a(2)}catch(d){const s=d.name;if(s==="LimitExceededException"||s==="TooManyRequestsException")x(t.email),u(t.password),C(t.company),n({submit:"We already sent you an email. Please check your email or Spam folder."}),a(2),h(!0);else if(s==="UsernameExistsException")try{await f.signInWithEmail(t.email,t.password);try{await W.get("/subscription/subscription-info"),T.replace("/workspace/draft")}catch{try{const g=await f.currentCredentials();await W.post("/subscription/management",{companyEmail:t.email,companyName:t.company,userId:g.identityId}),T.replace("/workspace/draft")}catch{y.current&&(n({submit:"Failed to complete registration. Please try again."}),c(!1))}}return}catch(g){const v=g.name;if(v==="NotAuthorizedException"){try{await f.resendSignUp(t.email),x(t.email),u(t.password),C(t.company),a(2),h(!0)}catch{y.current&&(n({submit:"This email is already registered."}),c(!1))}return}else if(v==="UserNotConfirmedException")try{await f.resendSignUp(t.email),x(t.email),u(t.password),C(t.company),a(2),h(!0),n({submit:"Please verify your email. A verification code has been sent."})}catch{n({submit:"Failed to send verification code. Please try again."})}return}else y.current&&(o({success:!1}),n({submit:d.message}),c(!1))}},children:({errors:t,handleBlur:n,handleChange:o,handleSubmit:c,isSubmitting:d,touched:s,values:g})=>e.jsxs("form",{noValidate:!0,onSubmit:c,...l,children:[e.jsx(p,{mb:5,children:e.jsx("div",{children:e.jsx(m,{gutterBottom:!0,variant:"h5",className:i.bold,style:{color:"#191F28"},children:"Sign up to get started"})})}),e.jsx(m,{className:i.label,children:"Email Address"}),e.jsx(b,{className:i.fields,error:!!(s.email&&t.email),fullWidth:!0,helperText:s.email&&t.email,margin:"normal",name:"email",onBlur:n,onChange:o,type:"email",value:g.email,variant:"outlined",placeholder:"Enter your company email"}),e.jsxs(m,{className:i.label,children:["Password"," ",e.jsx("span",{style:{fontSize:"11px",fontWeight:400,color:"#8B95A1"},children:"* Include uppercase, lowercase, special characters, and numbers"})]}),e.jsx(b,{className:i.fields,error:!!(s.password&&t.password),fullWidth:!0,helperText:s.password&&t.password,margin:"normal",name:"password",onBlur:n,onChange:o,type:"password",value:g.password,variant:"outlined",placeholder:"Enter your password"}),e.jsx(m,{className:i.label,children:"Confirm Password"}),e.jsx(b,{className:i.fields,error:!!(s.passwordConfirm&&t.passwordConfirm),fullWidth:!0,helperText:s.passwordConfirm&&t.passwordConfirm,margin:"normal",name:"passwordConfirm",onBlur:n,onChange:o,type:"password",value:g.passwordConfirm,variant:"outlined",placeholder:"Confirm your password"}),e.jsx(m,{className:i.label,children:"Company Name"}),e.jsx(b,{className:i.fields,error:!!(s.company&&t.company),fullWidth:!0,helperText:s.company&&t.company,margin:"normal",name:"company",onBlur:n,onChange:o,type:"text",value:g.company,variant:"outlined",placeholder:"Enter your company name"}),t.submit&&e.jsx(p,{mt:3,children:e.jsx(L,{error:!0,children:t.submit})}),e.jsxs(p,{mt:2,children:[e.jsx(m,{className:i.captionSize,variant:"caption",color:"text.secondary",children:"By clicking Create Account, I agree to the Terms of Service and Privacy Policy."}),e.jsx(I,{className:i.createAccountButton,color:"primary",disabled:d,fullWidth:!0,type:"submit",variant:"contained",disableElevation:!0,children:"Create Account"})]})]})},"register-form")})}return e.jsx(e.Fragment,{children:k||E?_():O()})},de=q(a=>({root:{backgroundColor:"#FFFFFF",display:"flex",minHeight:"100vh",overflow:"hidden"},bold:{fontWeight:600,fontFamily:"'Poppins', sans-serif"},left_container:{padding:0,[a.breakpoints.down("xl")]:{paddingLeft:"10%",paddingRight:"10%"},[a.breakpoints.up("xl")]:{paddingLeft:"15%",paddingRight:"15%"}}
1,space:{backgroundColor:"#F7F8FA",height:"100%",justifyContent:"center"},container_wrap:{position:"relative"},container:{marginBottom:"13%",[a.breakpoints.down("md")]:{paddingLeft:"5%",paddingRight:"5%"}},progress:{width:"100%",display:"flex",justifyContent:"center",marginTop:"5%"},contentWrapper:{display:"flex",flexDirection:"column",padding:"0 110px",height:"120px",[a.breakpoints.down("md")]:{padding:"0 50px"}},title:{fontFamily:"'Poppins', sans-serif",fontSize:"24px",fontWeight:700,marginBottom:"16px",padding:"0 10px",color:"#191F28",[a.breakpoints.down("md")]:{fontSize:"20px"}},content:{fontFamily:"'Poppins', sans-serif",fontSize:"16px",fontWeight:400,whiteSpace:"pre-wrap",lineHeight:1.5,padding:"0 10px",color:"#4E5968",[a.breakpoints.down("md")]:{fontSize:"14px"}},buttonWrapper:{padding:"0px 110px",marginTop:"30px",[a.breakpoints.down("md")]:{padding:"0px 60px"}}})),we=()=>{const a=de(),[l,i]=r.useState(1),{authStatus:k}=r.useContext(U),[h,E]=r.useState(0);if(k===X.SignedIn)return e.jsx($,{to:"/workspace/draft"});const w=[{title:"Choose",content:"Choose a template that matches your campaign type"},{title:"Customize",content:"Customize template embeding deeplink in image and button, insert liquid, and set tracking"},{title:"Get code",content:"Extract the designed template into HTML, and paste the code in CRM software"},{title:"Tracking",content:`Launch campaign! 
2You can track clicks and custom attribute•event`}],j=[{src:te,alt:"Image 1"},{src:ae,alt:"Image 2"},{src:ne,alt:"Image 3"},{src:ie,alt:"Image 4"}],x={arrows:!1,infinite:!0,dots:!0,speed:300,swipeToSlide:!0,autoplay:!0,afterChange:u=>E(u)};return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:`
3  .slick_wrapper,
4  .slick_wrapper .slick_image_wrapper {     
5     outline: 0;
6     border: none;
7   }
8   .slick-dots {
9   position: relative;
10   bottom: -300px;
11 }
12 `}}),e.jsx("div",{className:a.root,children:e.jsxs(B,{container:!0,direction:"row",alignItems:"center",children:[e.jsx(B,{item:!0,md:6,className:a.space,sx:{display:{xs:"none",sm:"none",md:"flex"}},children:e.jsx(D,{className:a.left_container,children:e.jsxs(p,{style:{width:"100%",height:"100%",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsx("div",{className:"slick_wrapper",children:e.jsx(ee,{...x,children:j.map((u,P)=>e.jsx("div",{className:"slick_image_wrapper",children:e.jsx("img",{src:u.src,alt:u.alt,style:{width:"100%",height:"100%",objectFit:"fill"},decoding:"async",loading:"lazy"})},P))})}),e.jsxs("div",{className:a.contentWrapper,children:[e.jsx("p",{className:a.title,children:w[h].title}),e.jsx("p",{className:a.content,children:w[h].content})]})]})})}),e.jsx(B,{item:!0,xs:12,md:6,className:a.container_wrap,children:e.jsxs(D,{maxWidth:"sm",className:a.container,children:[e.jsx(p,{flexGrow:1,mt:3,mb:3,children:e.jsx(ce,{progress:l,setProgress:i})}),e.jsxs(G,{component:Y,to:"/login",variant:"body2",style:{fontSize:"14px",fontFamily:"'Poppins', sans-serif",color:"#4E5968",display:"flex",justifyContent:"end",textDecoration:"none"},children:["Already have an account?",e.jsx("span",{style:{marginLeft:"0.5rem",fontWeight:600,fontSize:"14px",color:"#191F28"},children:"Sign In"})]}),e.jsxs(p,{className:a.progress,children:[l===1&&e.jsx("img",{alt:"progress",src:K}),l===2&&e.jsx("img",{alt:"progress",src:J}),l===3&&e.jsx("img",{alt:"progress",src:Q})]})]})})]})})]})};export{we as default};
13//# sourceMappingURL=index-BdJy--Q4.js.map

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.