PageSourceSearch

https://app.turtlemintinsurance.com/insurance/health/static/js/454.9eaea8c6d7c0b7ed455c.js

js turtlemintinsurance.com collected 2026-09-29 00:55:27 UTC 11,315 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktm_dotcom=self.webpackChunktm_dotcom||[]).push([[454],{58736(t,e,r){r(79638)},57152(t,e,r){r.d(e,["F",0,t=>{let e=[];return t[1].isMandatory&&(e=[{name:"required",message:"Enter "+t[1].label}],e=e.concat(t[1].validators)),e}])},11897(t,e,r){var n=r(49568);r.d(e,["d",0,t=>Object.entries(t).reduce((t,e)=>(t[e[0]]=(0,n.t3)(e[1])?e[1].toJS():e[1],t),{})])},11510(t,e,r){r.d(e,["Kx",0,{newPassword:{dataType:"string",isMandatory:!0,label:"New Password",inputType:"text",icon:"lock",desc:"New password",validators:[]},confirmNewPassword:{dataType:"string",isMandatory:!0,label:"Confirm Password",inputType:"password",icon:"lock",desc:"Confirm password",validators:[],disablePaste:!0,disableCopy:!0,matchPassword:"newPassword"}},"WK",0,{username:{dataType:"string",isMandatory:!0,label:"Email",inputType:"text",icon:"email",desc:"Email of user",validators:[{name:"email",message:"Enter a valid email"}]}},"n5",0,{username:{dataType:"string",isMandatory:!0,label:"Username",inputType:"text",icon:"email",desc:"Username of user",validators:[]},password:{dataType:"string",isMandatory:!0,label:"Password",inputType:"password",icon:"lock",desc:"Password of user",validators:[]}}])},90454(t,e,r){r.r(e),r.d(e,{default:()=>_});var n,o,s,a,i,l,d,c,u=r(96540),p=r(38267);function m(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const f=(0,r(91325).C3)(),y=p.default.div(n||(n=m(["\n\tbackground-color: #f6fcfb;\n\tmin-height: 100%;\n\tdisplay: flex;\n\t","\n"])),f?"flex-direction: column;":""),g=p.default.div(o||(o=m(["\n\tbackground-color: white;\n\tmin-width: 100vw;\n\tmin-height: 100vh;\n"]))),b=(p.default.div(s||(s=m(['\n\tpadding: 30px 0;\n\ttext-align: center;\n\tmargin-top: 12px;\n\tposition: relative;\n\tborder-top: 1px solid #e8e8e8;\n\n\t::after {\n\t\tcontent: "OR";\n\t\tfont-size: 12px;\n\t\tpadding: 5px;\n\t\tfont-weight: 600;\n\t\tposition: absolute;\n\t\twidth: 30px;\n\t\theight: 30px;\n\t\tcolor: #a1a6a7;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tborder: 1px solid #a1a6a7;\n\t\ttop: 0;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t}\n']))),p.default.div(a||(a=m(["\n\twidth: 80vw;\n\tmargin: auto;\n\tpadding-top: ",";\n\tform {\n\t\tmax-width: 400px;\n\t\tmargin: auto;\n\n\t\tbutton:disabled {\n\t\t\tbackground: #d2d5d6 !important;\n\t\t}\n\t}\n\t.centerErrorMessage {\n\t\t& > div > div:nth-child(2) {\n\t\t\tmax-width: 100%;\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n"])),f?"60px":"18vh")),h=(p.default.div(i||(i=m(["\n\tbackground: radial-gradient(\n\t\t115.67% 115.67% at 50.06% -13.94%,\n\t\t#a4ded7 19.35%,\n\t\t#51b2a0 100%\n\t);\n\t// min-height: 100vh;\n\twidth: 40vw;\n"]))),p.default.div(l||(l=m(["\n\t// height: 100vh;\n\tpadding-top: 36vh;\n\ttext-align: center;
1\n"]))),p.default.div(d||(d=m(["\n\twidth: 64px;\n\theight: 64px;\n\tbackground: #f6fcfb;\n\tborder-radius: 50%;\n\tmargin-top: 8vh;\n\tmargin-left: 4vw;\n\topacity: 0.2;\n"]))),p.default.div(c||(c=m(["\n\twidth: 0;\n\theight: 0;\n\tborder-top: 64px solid transparent;\n\tborder-bottom: 64px solid transparent;\n\tborder-right: 128px solid #f6fcfb;\n\tmargin-top: 4vh;\n\topacity: 0.2;\n\tposition: absolute;\n\tright: 6vw;\n"]))),{fontSize:"34px",marginBottom:"12px",lineHeight:"1.2",fontWeight:"700",color:"#38AA95"}),w={marginBottom:"32px"},x={fontWeight:"500",marginBottom:"18px",borderRadius:"36px",backgroundColor:"#38AA95",marginTop:"-10px",width:"200px"};Object.assign(Object.assign({},x),{margin:"30px auto",display:"block"});var v=r(90067),j=r(56347),P=(r(58736),r(82654)),O=r(2360),S=r(11897),A=r(1081);const T=(0,A.Mz)(t=>t.get("forgotPasswordReducer"),t=>({forgotPasswordData:t})),R=(0,A.Mz)(t=>t.get("resetPasswordReducer"),t=>({resetPasswordData:t}));var I=r(20964),E=r(85606),k=r(11510),F=r(57152),C=r(74848);function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const B=()=>{const t=(0,I.wA)(),e=(0,S.d)((0,I.d4)(T)).forgotPasswordData,r=(s=u.useState(""),a=2,function(t){if(Array.isArray(t))return t}(s)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,s,a,i=[],l=!0,d=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(i.push(n.value),i.length!==e);l=!0);}catch(t){d=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw o}}return i}}(s,a)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(t,e):void 0}}(s,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],o=r[1];var s,a;return u.useEffect(()=>{o(("FAILURE"==e.status||e.isErrorInResponses)&&e.errors&&e.errors.length>0?e.errors[0].message:"")},[e]),(0,C.jsxs)(b,{children:[(0,C.jsxs)("div",{style:{textAlign:"center"},children:[(0,C.jsx)(O.Text,{style:h,text:"Reset Password"}),(0,C.jsx)(O.Text,{style:w,text:"Enter your registered email to receive a reset password link"})]}),e.statusMsg?(0,C.jsx)(O.InfoBanner,{style:{maxWidth:"420px",margin:"32px auto 0"},type:"success",text:e.statusMsg,noBorder:!0}):(0,C.jsxs)(O.Form,{name:"resetPasswordRequest",formState:{},onSubmit:e=>{e.username&&t({type:E.s_,payload:{username:e.username}})},children:[Object.entries(k.WK).map(t=>(0,C.jsx)(O.Form.Item,{labelCol:{span:0},name:t[0],rules:(0,F.F)(t),className:"centerErrorMessage",children:(0,C.jsx)(O.Input,{icon:t[1].icon,iconProps:{size:24,color:O.COLORS.GREY3},block:!0,iconPosition:"left",type:t[1].inputType,placeholder:t[1].label,style:{backgroundColor:"#F6FCFB",borderRadius:"12px"}})},t[0])),""!=n?(0,C.jsx)(O.Form.Row,{justify:"center",children:(0,C.jsx)(P.A,{message:n,type:"error"})}):(0,C.jsx)(C.Fragment,{}),(0,C.jsx)(O.Form.Row,{submit:!0,justify:"center",children:(0,C.jsx)(O.Button,{size:"large",title:"Submit",btnType:"solid",btnStyle:"primary",htmlType:"submit",style:{fontWeight:"500",marginBottom:"18px",borderRadius:"36px",backgroundColor:"#38AA95",marginTop:"-10px",width:"200px"}})})]})]})};r(46327);var z=r(76511),N=r(12184);function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach(function(e){W(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function W(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const q=()=>{const t=(0,I.wA)(),e=new URLSearchParams((0,j.zy)().search),r=(0,j.g)().userId,n=e.get("sessionId"),o=e.get("otp"),s=(0,u.useRef)(),a=(0,j.W6)(),i=(0,S.d)((0,I.d4)(R)).resetPasswordData,l=(p=u.useState(""),m=2,function(t){if(Array.isArray(t))return t}(p)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,s,a,i=[],l=!0,d=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(i.push(n.value),i.length!==e);l=!0);}catch(t){d=!0,o=t}
1finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw o}}return i}}(p,m)||function(t,e){if(t){if("string"==typeof t)return U(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(t,e):void 0}}(p,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=l[0],c=l[1];var p,m;u.useEffect(()=>{i.errors&&("FAILURE"==i.status||i.isErrorInResponses)&&i.errors&&i.errors.length>0&&(c(i.errors[0].message),"otp"==i.errors[0].field&&f(i.errors[0].message,!1)),i.message&&(c(""),f(i.message,!0))},[i.errors,i.message]);const f=(t,e)=>{const r={duration:10,message:t};e?z.A.success(r):z.A.error(r),a.push(N.tv.LOG_IN)},y=t=>(t.preventDefault(),!1);return(0,C.jsxs)(b,{children:[(0,C.jsxs)("div",{style:{textAlign:"center"},children:[(0,C.jsx)(O.Text,{style:h,text:"Reset Password"}),(0,C.jsx)(O.Text,{style:w,text:"Set a new password for your account"})]}),i.message?(0,C.jsx)(O.InfoBanner,{style:{maxWidth:"420px",margin:"32px auto 0"},type:"success",text:i.message,noBorder:!0}):(0,C.jsxs)(O.Form,{name:"resetPasswordRequest",formState:{},onSubmit:e=>{e.newPassword&&e.confirmNewPassword&&r&&n&&o&&(e.newPassword===e.confirmNewPassword?(c(""),t({type:E.Ou,payload:{newPassword:e.newPassword,confirmNewPassword:e.confirmNewPassword,userId:r,sessionId:n,otp:o}})):(t({type:E.Ms}),c("The new password and confirm password fields do not match. Please ensure both passwords are identical")))},ref:s,children:[Object.entries(k.Kx).map(t=>(0,C.jsx)(O.Form.Item,{labelCol:{span:0},name:t[0],rules:(0,F.F)(t),className:"centerErrorMessage",children:(0,C.jsx)(O.Input,L(L(L({icon:t[1].icon,iconProps:{size:24,color:O.COLORS.GREY3},block:!0,iconPosition:"left",type:t[1].inputType,placeholder:t[1].label,style:{backgroundColor:"#F6FCFB",borderRadius:"12px"}},t[1].disablePaste&&{onPaste:y}),t[1].disableCopy&&{onCopy:y}),t[1].matchPassword&&{onInput:e=>{var r;return((t,e)=>{var r;(null===(r=s.current)||void 0===r?void 0:r.getFormState())[e]===t?c(""):c("The new password and confirm password fields do not match. Please ensure both passwords are identical")})(null===(r=e.target)||void 0===r?void 0:r.value,t[1].matchPassword)}}))},t[0])),""!=d?(0,C.jsx)(O.Form.Row,{justify:"center",children:(0,C.jsx)(P.A,{message:d,type:"error"})}):(0,C.jsx)(C.Fragment,{}),(0,C.jsx)(O.Form.Row,{submit:!0,justify:"center",children:(0,C.jsx)(O.Button,{size:"large",title:"Submit",btnType:"solid",btnStyle:"primary",htmlType:"Reset Password",style:x,disabled:null!=d&&d})})]})]})},K=()=>((0,u.useEffect)(()=>{const t=document.getElementById("appLoader");t&&(t.style.display="none");const e=document.getElementById("app-header-div");e&&(e.style.display="none")},[]),(0,C.jsx)(y,{children:(0,C.jsxs)(g,{children:[(0,C.jsx)("img",{src:v.A,style:{width:"116px",marginTop:"4vh",marginLeft:"4vw"}}),(0,C.jsxs)(j.dO,{children:[(0,C.jsx)(j.qh,{exact:!0,path:"/dev-portal/reset-password",component:B}),(0,C.jsx)(j.qh,{exact:!0,path:"/dev-portal/reset-password/:userId",component:q})]})]})})),_=u.memo(K)}}]);

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.