1"use strict";(self.webpackChunkroominteriorapp=self.webpackChunkroominteriorapp||[]).push([[8774],{51239:(e,s,r)=>{r.d(s,{Z:()=>i});r(47313);var a=r(14447),t=r(46417);const i=e=>{let{show:s,onHide:r,children:i,size:n="lg",position:o="center",width:l,height:d,borderRadius:m="30px",customClass:c,backdrop:u=!0,onEntered:h,...p}=e;return(0,t.jsx)(a.Z,{show:s,onHide:r,onEntered:h,size:n,centered:"center"===o,dialogClassName:(()=>{switch(o){case"top":return"custom-modal-top";case"bottom":return"custom-modal-bottom";default:return"custom-modal-center"}})(),"aria-labelledby":"custom-modal",className:c||"",style:{zIndex:"9999","--modal-border-radius":m},backdropClassName:null!==c&&void 0!==c&&c.includes("hide-overlay")?"CustomModal1-overlay":void 0,children:(0,t.jsx)(a.Z.Body,{style:{height:d,width:l},...p,children:i})})}},35332:(e,s,r)=>{r.d(s,{Z:()=>d});var a=r(47313),t=r(41017),i=r(35732),n=r(86562),o=r(24381),l=r(46417);const d=function(e){let{onHide:s,clientId:r="68651e4414294f34112202d8"}=e;const[d,m]=(0,a.useState)("email_verify"),[c,u]=(0,a.useState)(!1),[h,p]=(0,a.useState)({}),[x,b]=(0,a.useState)({}),[f,_]=(0,a.useState)(!1),[y,g]=(0,a.useState)({email:"",otp:"",password:"",confirmPassword:""}),v=async e=>{const{name:s,value:r,type:a,checked:t}=e.target,n="checkbox"===a?t:r;g(e=>({...e,[s]:n})),b(e=>({...e,[s]:!0})),(x[s]||""!==n)&&await(async(e,s)=>{let r;switch(d){case"email_verify":r=i.rt;break;case"verify_otp":r=i.qD;break;case"complete_password":r=i.Rw;break;default:return}const a=await(0,i.OP)(r,e,s,y);p(s=>({...s,[e]:a}))})(s,n)},q=e=>{const s="input_box";return h[e]&&x[e]?`${s} has_error`:s},w=e=>h[e]&&x[e];return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("section",{className:"form_steps_wrapper inside_popup",children:(0,l.jsxs)("div",{className:"form_steps_container",children:["email_verify"===d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"form_steps_header",children:[(0,l.jsxs)("div",{className:"modal_header",children:[(0,l.jsx)("h3",{className:"ui-text-24 ui-font-semibold black_100",children:"Reset your password"}),(0,l.jsx)("button",{onClick:()=>s(!1),children:(0,l.jsx)(n.CloseBoxIcon,{className:"nc-CloseBoxIcon-24"})})]}),(0,l.jsx)("p",{className:"ui-text-16 ui-font-medium",children:"Enter your email to reset your password."})]}),(0,l.jsxs)("form",{className:"form_steps_form has_one",onSubmit:async e=>{e.preventDefault();const s={email:y.email},a=await(0,i.G$)(i.rt,s);if(Object.keys(a).length>0)return p(a),void b({email:!0});_(!0);try{const e=await(0,o.vp)(y.email,r);e.isUserExist?(p({...e,green:!0}),_(!1),m("verify_otp")):(_(!1),p(e),b({}))}catch(t){console.error("Error while sending OTP",t),_(!1),p(t),b({})}},children:[(0,l.jsxs)("label",{htmlFor:"email",className:"form_steps_label",children:[(0,l.jsxs)("p",{className:"ui-text-14",children:["Email",(0,l.jsx)("span",{children:"*"})]}),(0,l.jsx)("input",{type:"email",className:q("email"),name:"email",id:"email",placeholder:"Enter your email",value:y.email,onChange:v}),w("email")&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-12 ui-font-bold ui-black_100",children:h.email})})]}),(0,l.jsx)("div",{className:"form_btn",children:(0,l.jsx)(t.KM,{buttonText:"Send OTP",type:"submit",disabled:f})})]}),(0,l.jsxs)("div",{className:"form_steps_bulltes",children:[(0,l.jsx)("div",{className:"bullet active"}),(0,l.jsx)("div",{className:"bullet"}),(0,l.jsx)("div",{className:"bullet"})]}),h.message&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-14 ui-font-bold "+(h.green?"success":""),children:h.message})})]}),"verify_otp"===d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"form_steps_header",children:[(0,l.jsxs)("div",{className:"modal_header",children:[(0,l.jsx)("h3",{className:"ui-text-24 ui-font-semibold black_100",children:"Reset your password"}),(0,l.jsx)("button",{onClick:()=>s(!1),children:(0,l.jsx)(n.CloseBoxIcon,{className:"nc-CloseBoxIcon-24"})})]}),(0,l.jsxs)("p",{className:"ui-text-16 ui-font-medium",children:["Enter the code sent to your email to"," ",(0,l.jsxs)("span",{style:{display:"inline-flex",color:"var(--accent-color-80)",alignItems:"center",gap:4},children:[y.email,(0,l.jsx)("span",{onClick:()=>{p({}),m("email_verify")},style:{cursor:"pointer"},children:(0,l.jsx)(n.PencilDesign,{strokeWidth:1.5})})]})]})]}),(0,l.jsxs)("form",{className:"form_steps_form has_one",onSubmit:async e=>{e.preventDefault();const s={otp:y.otp},r=await(0,i.G$)(i.qD,s);if(Object.keys(r).length>0)return p(r),void b({otp:!0});_(!0);try{const e=await(0,o.Mu)(y.email,y.otp);e.userVerified?(_(!1),p({...e,green:!0}),m("complete_password")):(_(!1),p(e),b({}))}catch(a){console.error("Error while verifying OTP",a),_(!1),p(a),b({})}},children:[(0,l.jsxs)("label",{htmlFor:"otp",className:"form_steps_label",children:[(0,l.jsxs)("p",{className:"ui-text-14",children:["Enter OTP",(0,l.jsx)("span",{children:"*"})]}),(0,l.jsx)("input",{type:"text",className:q("otp"),name:"otp",id:"otp",placeholder:"Enter 6-digit OTP",value:y.otp,onChange:v,maxLength:6}),w("otp")&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-12 ui-font-bold ui-black_100",children:h.otp})})]}),(0,l.jsx)("div",{className:"form_btn",children:(0,l.jsx)(t.KM,{buttonText:"Verify OTP",type:"submit",disabled:f})})]}),(0,l.jsxs)("div",{className:"form_steps_bulltes",children:[(0,l.jsx)("div",{className:"bullet"}),(0,l.jsx)("div",{className:"bullet active"}),(0,l.jsx)("div",{className:"bullet"})]}),h.message&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-14 ui-font-bold "+(h.green?"success":""),children:h.message})})]}),"complete_password"===d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"form_steps_header",children:[(0,l.jsxs)("div",{className:"modal_header",children:[(0,l.jsx)("h3",{className:"ui-text-24 ui-font-semibold black_100",children:"Set New Password"}),(0,l.jsx)("button",{onClick:()=>s(!1),children:(0,l.jsx)(n.CloseBoxIcon,{className:"nc-CloseBoxIcon-24"})})]}),(0,l.jsx)("p",{className:"ui-text-16 ui-font-medium",children:"Create a new password for your account."})]}),(0,l.jsxs)("form",{className:"form_steps_form has_one",onSubmit:async e=>{e.preventDefault();const a={password:y.password,confirmPassword:y.confirmPassword},t=await(0,i.G$)(i.Rw,a);if(Object.keys(t).length>0)return p(t),void b({password:!0,confirmPassword:!0});_(!0);try{const e=await(0,o.c0)(y.email,y.confirmPassword,r);e.isPasswordRest&&(_(!1),p({...e,green:!0}),m("reset_success"),setTimeout(()=>{s(!1)},1500)),b({})}catch(n){console.error("Error while resetting password",n),_(!1),p(n),b({})}},children:[(0,l.jsxs)("label",{htmlFor:"password",className:"form_steps_label",children:[(0,l.jsxs)("p",{className:"ui-text-14",children:["New Password",(0,l.jsx)("span",{children:"*"})]}),(0,l.jsx)("div",{className:"password_input_wrapper",children:(0,l.jsxs)("div",{className:"has_password",children:[(0,l.jsx)("input",{type:c?"text":"password",className:q("password"),name:"password",id:"password",placeholder:"Enter new password",value:y.password,onChange:v}),(0,l.jsx)("div",{className:"pass_icon",onClick:()=>u(!c),children:c?(0,l.jsx)(n.EyeClose,{}):(0,l.jsx)(n.EyeOpen,{})})]})}),w("password")&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-12 ui-font-bold ui-black_100",children:h.password})})]}),(0,l.jsxs)("label",{htmlFor:"confirmPassword",className:"form_steps_label",children:[(0,l.jsxs)("p",{className:"ui-text-14",children:["Confirm Password",(0,l.jsx)("span",{children:"*"})]}),(0,l.jsx)("div",{className:"password_input_wrapper",children:(0,l.jsxs)("div",{className:"has_password",children:[(0,l.jsx)("input",{type:c?"text":"password",className:q("confirmPassword"),name:"confirmPassword",id:"confirmPassword",placeholder:"Confirm new password",value:y.confirmPassword,onChange:v}),(0,l.jsx)("div",{className:"pass_icon",onClick:()=>u(!c),children:c?(0,l.jsx)(n.EyeClose,{}):(0,l.jsx)(n.EyeOpen,{})})]})}),w("confirmPassword")&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-12 ui-font-bold ui-black_100",children:h.confirmPassword})})]}),(0,l.jsx)("div",{className:"form_btn",children:(0,l.jsx)(t.KM,{buttonText:"Reset Password",type:"submit",disabled:f})})]}),(0,l.jsxs)("div",{className:"form_steps_bulltes",children:[(0,l.jsx)("div",{className:"bullet"}),(0,l.jsx)("div",{className:"bullet"}),(0,l.jsx)("div",{className:"bullet active"})]}),h.message&&(0,l.jsx)("div",{className:"error_message",children:(0,l.jsx)("p",{className:"ui-text-14 ui-font-bold "+(h.green?"success":""),children:h.message})})]}),"reset_success"===d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"form_steps_header",children:(0,l.jsxs)("div",{className:"modal_header",children:[(0,l.jsx)("div",{}),(0,l.jsx)("button",{onClick:()=>s(!1),children:(0,l.jsx)(n.CloseBoxIcon,{className:"nc-CloseBoxIcon-24"})})]})}),(0,l.jsxs)("div",{className:"reset_success_box",children:[(0,l.jsx)("div",{style:{marginBottom:"20px"},children:(0,l.jsx)(n.GreenCheck,{})}),(0,l.jsx)("h4",{className:"ui-text-24 ui-font-bold",style:{marginBottom:"10px"},children:"Password updated successfully"}),(0,l.jsx)("p",{className:"ui-text-16 ui-font-medium",style:{color:"var(--primary-color-70)"},children:"You can now log in with your new password."})]}),(0,l.jsx)("div",{className:"form_btn",children:(0,l.jsx)(t.KM,{buttonText:"Go to login",type:"button",fullWidth:!0,onClick:()=>null===s||void 0===s?void 0:s(!1)})})]})]})})})}},35732:(e,s,r)=>{r.d(s,{FH:()=>x,G$:()=>_,OP:()=>f,Qo:()=>h,Rw:()=>o,YK:()=>b,c0:()=>y,dm:()=>l,je:()=>n,qD:()=>d,rt:()=>m,tL:()=>p,vE:()=>i,zk:()=>u});var a=r(53340),t=r(21933);const i=t.Ry().shape({fullName:t.Z_().test("full-name","Please enter both first and last name",e=>{if(!e)return!1;return e.trim().split(/\s+/).length>=2}).required("Full name is required").min(2,"Full Name must be at least 2 characters").max(50,"Full Name must not exceed 50 characters"),companyName:t.Z_().required("Company Name is required").min(2,"Company Name must be at least 2 characters").max(100,"Company Name must not exceed 100 characters"),email:t.Z_().required("Email Address is required").email("Please enter a valid email address"),companyWebsite:t.Z_().url("Please enter a valid website URL").nullable(),phoneNumber:t.Z_().required("Phone number is required").matches(/^[0-9]+$/,"Phone number must contain only digits").min(7,"Phone number atleast have 7 digits.").max(15,"Phone number should not more than 20 digits"),whatsappNumber:t.Z_().min(7,"Whatsapp number atleast have 7 digits.").matches(/^[0-9]+$/,"Phone number must contain only digits").max(15,"Whatsapp number should not more than 20 digits").when("isWhatsapp",{is:!1,then:e=>e.required("WhatsApp Number is required"),otherwise:e=>e.nullable()}),typeOfMaterial:t.Z_().required("Type of material is required"),typeOfBusiness:t.Z_().required("Type of business is required")}),n=t.Ry().shape({fullName:t.Z_().test("full-name","Please enter both first and last name",e=>{if(!e)return!1;return e.trim().split(/\s+/).length>=2}).required("Full name is required").min(2,"Full Name must be at least 2 characters").max(50,"Full Name must not exceed 50 characters"),companyName:t.Z_().required("Company Name is required").min(2,"Company Name must be at least 2 characters").max(100,"Company Name must not exceed 100 characters"),email:t.Z_().required("Email Address is required").email("Please enter a valid email address"),phoneNumber:t.Z_().required("Phone number is required").matches(/^[0-9]+$/,"Phone number must contain only digits").min(7,"Phone number atleast have 7 digits.").max(15,"Phone number should not more than 20 digits"),whatsappNumber:t.Z_().min(7,"Whatsapp number atleast have 7 digits.").matches(/^[0-9]+$/,"Phone number must contain only digits").max(15,"Whatsapp number should not more than 20 digits").when("isWhatsapp",{is:!1,then:e=>e.required("WhatsApp Number is required"),otherwise:e=>e.nullable()}),typeOfBusiness:t.Z_().required("Please select an option")}),o=t.Ry().shape({password:t.Z_().required("Password is required").min(8,"Password must be at least 8 characters").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&\-])[A-Za-z\d@$!%*?&\-]+$/,"Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character"),confirmPassword:t.Z_().required("Confirm Password is required").oneOf([t.iH("password")],"Passwords must match")}),l=t.Ry().shape({loginEmail:t.Z_().required("Email address is required").email("Please enter a valid email address"),loginPassword:t.Z_().required("Password is required").min(1,"Password cannot be empty")}),d=t.Ry().shape({otp:t.Z_().required("OTP is required").matches(/^[0-9]{6}$/,"OTP must be exactly 6 digits").length(6,"OTP must be exactly 6 digits")}),m=t.Ry().shape({email:t.Z_().required("Email Address is required").email("Please enter a valid email address")}),c=14142/304.8,u=e=>{const s=(0,a.rT)(c,e||"ft"),r=e||"ft";return t.Ry().shape({marbleWidth:t.Rx().transform((e,s)=>""===String(s).trim()?null:e).typeError("Width must be a number").required("Marble width is required").positive("Width must be a positive number").max(s,`Width must not exceed ${s.toFixed(2)} ${r}`),marbleLength:t.Rx().transform((e,s)=>""===String(s).trim()?null:e).typeError("Length must be a number").required("Marble length is required").positive("Length must be a positive number").max(s,`Length must not exceed ${s.toFixed(2)} ${r}`)})},h=(e,s)=>{const r=(0,a.rT)(c,s||"ft");return t.Ry().shape({name:t.Z_().trim().required(e("marbleNameRequired")).min(2,e("nameMinLength")).max(100,e("nameMaxLength")),thickness:t.Z_().trim().required(e("thicknessRequired")).matches(/^[0-9]+(\.[0-9]+)?\s*(mm|cm|in)?$/i,e("thicknessInvalid")),width:t.Rx().transform((e,s)=>{if(""!==s&&null!==s)return e}).typeError(e("widthMustBeNumber")).required(e("widthRequired")).positive(e("widthMustBePositive")).max(r,e("widthTooLarge")),length:t.Rx().transform((e,s)=>{if(""!==s&&null!==s)return e}).typeError(e("lengthMustBeNumber")).required(e("lengthRequired")).positive(e("lengthMustBePositive")).max(r,e("lengthTooLarge")),bookmatch:t.Z_().trim().required(e("bookmatchRequired")),shade:t.Z_().trim().required("Shade is required"),finishType:t.Z_().trim().required(e("finishTypeRequired")),pattern:t.Z_().trim().required("Pattern is required"),applicationType:t.IX().of(t.Z_()).min(1,e("applicationTypeMinLength")).required(e("applicationTypeRequired"))})},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ft",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=(0,a.rT)(c,e),i=e,n={name:t.Z_().required("Product name is required").min(2,"Name must be at least 2 characters").max(100,"Name must not exceed 100 characters"),length:t.Rx().typeError("Length must be a valid number").required("Length is required").positive("Length must be a positive number").max(r,`Length must not exceed ${r.toFixed(2)} ${i}`),width:t.Rx().typeError("Width must be a valid number").required("Width is required").positive("Width must be a positive number").max(r,`Width must not exceed ${r.toFixed(2)} ${i}`),thickness:t.Rx().typeError("Thickness must be a valid number").required("Thickness is required").positive("Thickness must be a positive number").max(1e3,"Thickness must not exceed 1000 mm"),origin:t.Z_().optional(),color:t.IX().of(t.Z_()).optional(),pattern:t.IX().of(t.Z_()).min(1,"Please select at least one pattern").required("Pattern is required"),finishType:t.IX().of(t.Z_()).min(1,"Please select at least one finish type").required("Finish type is required"),bookmatch:t.O7().required("Bookmatch selection is required"),random_rotation_flag:t.O7().required("Random rotation selection is required"),shade:t.IX().of(t.Z_()).min(1,"Please select shade").required("Shade is required"),applicationSurface:t.IX().of(t.Z_()).min(1,"Please select at least one application surface").required("Application surface is required"),description:t.Z_().optional(),surface_finish:t.IX().of(t.Z_()).min(1,"Please select surface finish").required("Surface finish is required"),veiningStyle:t.IX().of(t.Z_()).optional(),collection:t.Z_().optional(),tile_look:t.IX().of(t.Z_()).optional(),area_of_use:t.IX().of(t.Z_()).optional(),material_type:t.IX().of(t.Z_()).o
1ptional(),sku:t.Z_().optional(),panel_layout:t.IX().of(t.Z_()).required("Panel layout is required")};if(s&&s.length>0){const e={};return s.forEach(s=>{n[s]&&(e[s]=n[s])}),t.Ry().shape(e)}return t.Ry().shape(n)},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"m";const s=(0,a.En)(.1524,"m",e),r=(0,a.En)(5,"m",e);return t.Ry().shape({title:t.Z_().required("Fabric name is required").min(2,"Fabric name must be at least 2 characters").max(100,"Fabric name must not exceed 100 characters"),fabric_type:t.Z_().required("Fabric type is required").min(2,"Fabric type must be at least 2 characters").max(100,"Fabric type must not exceed 100 characters"),width_m:t.Rx().transform((e,s)=>""===String(s).trim()?null:e).typeError("Width must be a number").required("Width is required").min(s,`Width must be at least ${s} ${e}`).max(r,`Width must not exceed ${r} ${e}`),length_m:t.Rx().transform((e,s)=>""===String(s).trim()?null:e).typeError("Height must be a number").required("Height is required").min(s,`Height must be at least ${s} ${e}`).max(r,`Height must not exceed ${r} ${e}`)})},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"m";const s=(0,a.En)(.1524,"m",e),r=(0,a.En)(5,"m",e);return t.Ry().shape({title:t.Z_().required("Title is required").max(100,"Title must be at most 100 characters"),width_m:t.Rx().typeError("Width must be a number").required("Width is required").min(s,`Width must be at least ${s} ${e}`).max(r,`Width must not exceed ${r} ${e}`),length_m:t.Rx().typeError("Length must be a number").required("Length is required").min(s,`Height must be at least ${s} ${e}`).max(r,`Height must not exceed ${r} ${e}`),color_family:t.Z_().required("Color family is required"),pattern_type:t.Z_().required("Pattern type is required"),surface_look:t.Z_().required("Surface look is required"),texture_feel:t.Z_().required("Texture feel is required"),fabric_type:t.Z_().required("Fabric type is required")})},f=async function(e,s,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return await e.validateAt(s,{...a,[s]:r}),null}catch(t){return t.message}},_=async(e,s)=>{try{return await e.validate(s,{abortEarly:!1}),{}}catch(r){if(r.inner&&r.inner.length>0){const e=r.inner[0];return{[e.path]:e.message}}return{}}},y=async(e,s)=>{try{return await e.validate(s,{abortEarly:!1}),{}}catch(r){const s={};if(r.inner&&r.inner.length>0){const a=Object.keys(e.fields);[...r.inner].sort((e,s)=>a.indexOf(e.path)-a.indexOf(s.path)).forEach(e=>{s[e.path]||(s[e.path]=e.message)})}return s}}}}]);
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.