PageSourceSearch

https://navisavitravel.com/_next/static/chunks/2936.fbec9b3bbc4a9253.js

js navisavitravel.com collected 2026-10-09 22:41:42 UTC 8,607 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f5a643b-e69f-4ebb-8359-3e5d59177596",e._sentryDebugIdIdentifier="sentry-dbid-9f5a643b-e69f-4ebb-8359-3e5d59177596")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2936],{22936:function(e,t,r){r.r(t),r.d(t,{default:function(){return v}});var a=r(62364),i=r(69866),o=r(61312),n=r(85918),s=r(56312),d=r(29496),l=r(67294),c=r(87536),m=r(62734),u=r(15437),h=r(46347);let f=u.ZP.section.withConfig({componentId:"sc-f6a19976-0"})(["width:100%;"]),p=u.ZP.form.withConfig({componentId:"sc-f6a19976-1"})(["width:100%;display:flex;flex-direction:column;gap:",";font-family:",";"],h.W0.dashboardContentGap,h.cp.fontFamily.primary),b=u.ZP.div.withConfig({componentId:"sc-f6a19976-2"})(["width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:",";@media (max-width:768px){grid-template-columns:1fr;}"],h.W0.formGap),g=u.ZP.div.withConfig({shouldForwardProp:e=>!["$fullWidth"].includes(e)}).withConfig({componentId:"sc-f6a19976-3"})(["width:100%;grid-column:",";input,textarea{width:100%;min-height:",";border-radius:",";border:1px solid ",";background:",";color:",";font-family:",";font-size:",";font-weight:",";box-sizing:border-box;outline:none;transition:border-color 0.2s ease,background 0.2s ease,box-shadow 0.2s ease;}input{padding:0 ",";}textarea{min-height:16rem;padding:",";resize:vertical;}input::placeholder,textarea::placeholder{color:",";}input:focus,textarea:focus{border-color:",";background:",";}"],e=>{let{$fullWidth:t}=e;return t?"1 / -1":"auto"},h.W0.heroBottomMobile,h.W0.radiusInput,h.O9.border.medium,h.O9.background.soft,h.O9.text.primary,h.cp.fontFamily.primary,h.cp.body.md,h.cp.weight.medium,h.W0.cardPaddingMobile,h.W0.cardPaddingMobile,h.O9.text.muted,h.O9.brand.pink,h.O9.background.panel),w=u.ZP.div.withConfig({componentId:"sc-f6a19976-4"})(["width:100%;display:flex;justify-content:flex-start;"]),y=u.ZP.button.withConfig({componentId:"sc-f6a19976-5"})(["min-height:",";padding:0 ",";border:1px solid ",";border-radius:",";background:",";color:",";display:inline-flex;justify-content:center;align-items:center;gap:",";font-family:",";font-size:",";font-weight:",";cursor:pointer;box-shadow:0 1.4rem 3rem ",";transition:transform 0.2s ease,box-shadow 0.2s ease,opacity 0.2s ease;&:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 1.8rem 4rem ",";}&:disabled{background:#e5e7eb;border-color:#e5e7eb;color:#9ca3af;cursor:not-allowed;box-shadow:none;}@media (max-width:640px){width:100%;}"],h.W0.heroBottomMobile,h.W0.cardPadding,h.O9.border.pinkSoft,h.W0.radiusButton,h.O9.brand.pink,h.O9.text.inverse,h.W0.inlineGap,h.cp.fontFamily.primary,h.cp.button.lg,h.cp.weight.semibold,h.O9.shadow.pink,h.O9.shadow.pinkHover),x=u.ZP.div.withConfig({componentId:"sc-f6a19976-6"})(["width:100%;margin-top:",";color:",";font-size:",";font-weight:",";line-height:",";text-align:left;"],h.W0.formFieldGap,h.O9.brand.pink,h.cp.body.sm,h.cp.weight.semibold,h.cp.lineHeight.body),Z=m.Ry({firstName:m.Z_().min(1,{message:"Required"}).max(25),lastName:m.Z_().min(1,{message:"Required"}).max(25),contactNumber:m.Z_().min(1,{message:"Required"}).max(25).regex(/^\+?[0-9]+$/,{message:"Invalid phone number"}),email:m.Z_().email({message:"Invalid email"}),firebaseId:m.Z_(),customerId:m.Z_()});var v=e=>{let{updateCustomerInfo:t,getCustomerByFirebaseId:r}=(0,n.a)(),{firebase_id:m,customer_id:u}=e,[h,v]=(0,l.useState)({active:!1,message:""}),{handleSubmit:I,control:k,formState:{errors:F,isDirty:N},setValue:P,reset:_}=(0,c.cI)({resolver:(0,s.F)(Z),mode:"onChange",defaultValues:{firstName:"",lastName:"",message:"",contactNumber:"",email:"",firebaseId:"",customerId:""}}),C=async e=>{let r={first_name:e.firstName,last_name:e.lastName,phone_number:e.contactNumber,customer_id:e.customerId,email_1:e.email};try{v({active:!0,message:"Updating account data..."}),await t({...r,firebase_id:e.firebaseId}),(0,d.yv)("Customer updated successfully!",{variant:"success"}),_(e)}catch(e){(0,d.yv)("Error updating customer",{variant:"error"})}finally{v({active:!1})}},z=()=>(0,a.tZ)(x,{children:"This field is required"});return((0,l.useEffect)(()=>{(async()=>
1{if(v({active:!0,message:"Getting account data..."}),m&&u)try{let{first_name:e,last_name:t,phone_number:a,email_1:i}=await r();P("firstName",e),P("lastName",t),P("contactNumber",a),P("email",i),P("customerId",u),P("firebaseId",m)}catch(e){}finally{v({active:!1})}else v({active:!1})})()},[P,m,u]),h.active)?(0,a.tZ)(o.Z,{message:h.message}):(0,a.tZ)(f,{children:(0,a.BX)(p,{onSubmit:I(C),children:[(0,a.BX)(b,{children:[(0,a.tZ)(c.Qr,{name:"firstName",control:k,render:e=>{let{field:t}=e;return(0,a.tZ)(g,{children:(0,a.tZ)(i.ZP,{placeholder:"First name",error:F.firstName,errorField:z,...t})})}}),(0,a.tZ)(c.Qr,{name:"lastName",control:k,render:e=>{let{field:t}=e;return(0,a.tZ)(g,{children:(0,a.tZ)(i.ZP,{placeholder:"Last name",error:F.lastName,errorField:z,...t})})}}),(0,a.tZ)(c.Qr,{name:"contactNumber",control:k,render:e=>{let{field:t}=e;return(0,a.tZ)(g,{children:(0,a.tZ)(i.ZP,{placeholder:"Contact number",error:F.contactNumber,errorField:z,...t})})}}),(0,a.tZ)(c.Qr,{name:"email",control:k,render:e=>{let{field:t}=e;return(0,a.tZ)(g,{$fullWidth:!0,children:(0,a.tZ)(i.ZP,{placeholder:"Email",error:F.email,errorField:z,...t})})}})]}),(0,a.tZ)(w,{children:(0,a.tZ)(y,{type:"submit",disabled:!N,children:"Save changes"})})]})})}},69866:function(e,t,r){r.d(t,{Fy:function(){return s},ZP:function(){return m}});var a=r(62364),i=r(67294),o=r(15437),n=e=>{var t,r;return(0,a.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!==(t=e.width)&&void 0!==t?t:"1em",height:null!==(r=e.height)&&void 0!==r?r:"1em",fill:"none",...e,children:(0,a.tZ)("path",{stroke:e.color||"#2AEFE0",d:"M1 5.875 6.333 13 17 1"})})};let s=o.ZP.input.withConfig({componentId:"sc-2005e2b9-0"})(["padding:1rem 2rem;width:100%;box-sizing:border-box;border:1px solid rgba(70,80,99,0.3);border-radius:0.4rem;font-size:1.4rem;font-weight:200;transition:all 0.2s ease-in-out;margin-top:2.5rem;+ label{transform:translateY( "," );opacity:",";font-size:1.2rem;font-weight:200;}"],e=>e.isFocused||e.hasValue?"1rem":"0",e=>e.isFocused||e.hasValue?1:0),d=o.ZP.textarea.withConfig({componentId:"sc-2005e2b9-1"})(["padding:1rem 2rem;width:100%;box-sizing:border-box;border:1px solid rgba(70,80,99,0.3);border-radius:0.4rem;font-size:1.4rem;font-weight:400;transition:all 0.2s ease-in-out;margin-bottom:1rem;margin-top:3rem;+ label{transform:translateY( "," );opacity:",";font-size:1.2rem;font-weight:200;}"],e=>e.isFocused||e.hasValue?"1.5rem":"0",e=>e.isFocused||e.hasValue?1:0),l=o.ZP.label.withConfig({componentId:"sc-2005e2b9-2"})(["position:absolute;left:2rem;color:rgba(70,80,99,1);pointer-events:none;transition:all 0.2s ease-in-out;transform:translateY( "," );opacity:",";"],e=>e.isFocused||e.hasValue?"-2rem":"0",e=>e.isFocused||e.hasValue?1:0),c=o.ZP.div.withConfig({componentId:"sc-2005e2b9-3"})(["width:100%;position:relative;input,textarea{padding:1rem 2rem;width:100%;box-sizing:border-box;border:1px solid rgba(70,80,99,0.3);border-radius:0.4rem;font-size:1.4rem;font-weight:200;::placeholder{color:rgba(70,80,99,0.3);}}input{height:5.5rem;}textarea{height:25rem;padding-top:2rem;}.error{position:absolute;right:2rem;top:calc(50% + 5px);}"]);var m=e=>{let{name:t,placeholder:r,error:o,errorField:m,type:u,...h}=e,{value:f}=h,[p,b]=(0,i.useState)(!1),g=!!f;return(0,a.BX)(c,{children:["textarea"===u?(0,a.tZ)(d,{onFocus:()=>b(!0),name:t,placeholder:p?"":r,isFocused:p,...h,hasValue:g,onBlur:()=>b(!1)}):"contactNumber"===t?(0,a.tZ)(s,{onFocus:()=>b(!0),name:t,placeholder:p?"":r,isFocused:p,...h,hasValue:g,onBlur:()=>b(!1),maxLength:14,type:"tel",onKeyDown:e=>{let t=e.currentTarget;!(["Backspace","Tab","ArrowLeft","ArrowRight"].includes(e.key)||e.ctrlKey&&["a","c","v","x"].includes(e.key.toLowerCase()))&&("+"===e.key&&(t.value.includes("+")||0!==t.selectionStart)&&e.preventDefault(),/[0-9+]/.test(e.key)||"Backspace"===e.key||"Tab"===e.key||e.preventDefault())},onInput:e=>{let t=e.target;t.value=t.value.replace(/[^0-9+]/g,""),t.value.includes("+")&&0!==t.value.indexOf("+")&&(t.value=t.value.replace(/\+/g,""))}}):(0,a.tZ)(s,{onFocus:()=>b(!0),name:t,placeholder:p?"":r,disabled:"email"===t,isFocused:p,...h,hasValue:g,onBlur:()=>b(!1)}),(0,a.tZ)(l,{htmlFor:t,isFocused:p,hasValue:g,children:r}
1),g&&!o&&"input"===u&&(0,a.tZ)("div",{className:"error",children:(0,a.tZ)(n,{})}),o&&m()]})}}}]);

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.