{"version":3,"file":"NsEtwVac.js","sources":["../../../../utils/validation/uidPinSchema.ts","../../../../components/UidPinSignin.vue","../../../../components/OtpInputWithValidation.vue","../../../../utils/validation/otpSchema.ts","../../../../components/OtpForm.vue","../../../../utils/validation/emailPhoneSchema.ts","../../../../components/EmailSignin.vue","../../../../components/MobileSignin.vue","../../../../assets/images/login/hero-background.min.png","../../../../pages/index.vue"],"sourcesContent":["import { z } from \"zod\";\n\nexport const uidPinSchema = z.object({\n uid: z\n .string()\n .min(1, { message: \"UID is required\" })\n .regex(/^[a-zA-Z0-9]+$/, { message: \"UID can only be alphanumeric\" })\n .min(6, { message: \"UID must be 6 characters\" })\n .max(8, { message: \"UID must be 8 characters\" }),\n pin_number: z\n .string()\n .min(1, { message: \"PIN is required\" })\n .min(4, { message: \"PIN must be 4 digits\" })\n .max(4, { message: \"PIN must be 4 digits\" })\n .regex(/^\\d+$/, { message: \"PIN must be a number\" }),\n});\n\nexport type UidPinModel = z.infer;\n","\n\n\n\n\n","\n\n\n","import { z } from \"zod\";\n\nexport const otpSchema = z.object({\n email: z.string().optional(),\n mobile_number: z.string().optional(),\n otp: z\n .string()\n .min(6, { message: \"OTP must be 6 digits\" })\n .max(6, { message: \"OTP must be 6 digits\" }),\n});\n\nexport type OtpModel = z.infer;\n","\n\n\n\n\n","import { z } from \"zod\";\n\nexport const emailSchema = z.object({\n email: z.string().email({ message: \"Invalid email address\" }),\n});\n\nexport type EmailModel = z.infer;\n\nexport const phoneSchema = z.object({\n mobile_number: z\n .string()\n .regex(/^\\d+$/, { message: \"Mobile number must be a number\" })\n .min(1, { message: \"Mobile number is required\" })\n .min(10, { message: \"Mobile number must be 10 digits\" })\n .max(10, { message: \"Mobile number must be 10 digits\" }),\n});\n\nexport type PhoneModel = z.infer;\n","\n\n\n\n\n","\n\n\n\n\n","export default \"__VITE_ASSET__BCkyn9$B__\"","\n\n\n\n\n"],"names":["uidPinSchema","z","formData","ref","handleSubmit","setFieldError","useForm","toTypedSchema","handleErrorResponse","useErrors","router","useRouter","isLoading","useCommon","showPin","errorMessage","loginType","useState","organizationId","togglePinVisibility","onSubmit","values","body","response","useApi","API_ENDPOINT","useUserStore","error","field","message","props","__props","emit","__emit","fieldValue","errors","setValue","useField","onUpdate","newValue","otpSchema","timerCountSec","resetCountDown","showSnackbar","useSnackbar","isResendLoading","disableResendOtp","computed","resendOTP","emailSchema","phoneSchema","isOtpSent","HeroBackground","currentSize","useScreenSize","size","loginStore","useLoginStore","errorStore","useErrorStore","loginPageData","fetchLoginTypeData","getOrigin","_a","_b","_c","_d","_e","useHead","_f","onMounted"],"mappings":"6rBAEa,MAAAA,GAAeC,EAAE,OAAO,CACnC,IAAKA,EACF,OAAO,EACP,IAAI,EAAG,CAAE,QAAS,iBAAmB,CAAA,EACrC,MAAM,iBAAkB,CAAE,QAAS,8BAA+B,CAAC,EACnE,IAAI,EAAG,CAAE,QAAS,2BAA4B,EAC9C,IAAI,EAAG,CAAE,QAAS,2BAA4B,EACjD,WAAYA,EACT,OAAO,EACP,IAAI,EAAG,CAAE,QAAS,iBAAmB,CAAA,EACrC,IAAI,EAAG,CAAE,QAAS,sBAAuB,CAAC,EAC1C,IAAI,EAAG,CAAE,QAAS,uBAAwB,EAC1C,MAAM,QAAS,CAAE,QAAS,sBAAwB,CAAA,CACvD,CAAC,2IC4DD,MAAMC,EAAWC,EAAiB,CAChC,IAAK,GACL,WAAY,EAAA,CACb,EAGK,CAAE,aAAAC,EAAc,cAAAC,CAAc,EAAIC,EAAQ,CAC9C,iBAAkBC,EAAcP,EAAY,CAAA,CAC7C,EAGK,CAAE,oBAAAQ,CAAoB,EAAIC,EAAU,EACpCC,EAASC,EAAU,EACnB,CAAE,UAAAC,CAAU,EAAIC,EAAU,EAG1BC,EAAUX,EAAI,EAAK,EACnBY,EAAeZ,EAAI,EAAE,EACrBa,EAAYC,EAAiB,WAAW,EACxCC,EAAiBD,EAAiB,gBAAgB,EAKlDE,EAAsB,IAAM,CACxBL,EAAA,MAAQ,C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