PageSourceSearch

https://xaviercollege.edu.np/_next/static/chunks/0.yzya-0tyrit.js

js xaviercollege.edu.np collected 2026-10-07 18:35:52 UTC 5,549 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46067,(e,a,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var c in r)Object.defineProperty(t,c,{enumerable:!0,get:r[c]});let s=e.r(75095),i=e.r(953434),o=e.r(692046)},386657,e=>{"use strict";var a=e.i(227693),t=e.i(133482),r=e.i(317881);e.s(["default",0,()=>{let e,c,s=(0,t.c)(2);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(r.motion.div,{className:"visit-us__header",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[(0,a.jsx)("h2",{className:"visit-us__title",children:"Visit Us"}),(0,a.jsx)("p",{className:"visit-us__subtitle",children:"Get in touch with Xavier for any queries or assistance."})]}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)("section",{className:"visit-us",children:(0,a.jsxs)("div",{className:"container",children:[e,(0,a.jsx)(r.motion.div,{className:"visit-us__map-wrapper",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2},viewport:{once:!0},children:(0,a.jsx)("iframe",{src:"https://www.google.com/maps/embed/v1/place?key=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8&q=Xavier+International+College+(Bachelor+%26+Master+Degree),Kathmandu&zoom=15",className:"visit-us__map",allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Xavier International College Location"})})]})}),s[1]=c):c=s[1],c}])},552851,e=>{"use strict";var a=e.i(227693),t=e.i(317881),r=e.i(784190),c=e.i(46067);let s=(0,c.createServerReference)("40b360b8e9897cb2413a4ddcb52eb1de8d59d53c64",c.callServer,void 0,c.findSourceMapURL,"submitContact");e.s(["default",0,()=>{let[e,c]=(0,r.useState)({name:"",email:"",contact:"",message:""}),[i,o]=(0,r.useState)(!1),[n,l]=(0,r.useState)(""),[m,d]=(0,r.useState)({type:null,message:""}),u=async a=>{if(a.preventDefault(),o(!0),d({type:null,message:""}),!/^(?:\+?977[- ]?)?[0-9]{10}$/.test(e.contact)){l("Please enter a valid 10-digit Nepali phone number (e.g., +977 9XXXXXXXXX)"),o(!1);return}try{let a=await s(e);a.success?(d({type:"success",message:a.message}),c({name:"",email:"",contact:"",message:""})):d({type:"error",message:a.message})}catch(e){d({type:"error",message:"An unexpected error occurred. Please try again."})}finally{o(!1)}},f=a=>{let t=a.target.value;"contact"===a.target.name&&(t=t.replace(/[^\d+\- ]/g,""),n&&l("")),c({...e,[a.target.name]:t})};return(0,a.jsx)("section",{className:"contact-form",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)(t.motion.div,{className:"contact-form__header",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},children:[(0,a.jsxs)("h1",{className:"contact-form__title",children:["Got Any"," ",(0,a.jsx)("span",{className:"contact-form__title--accent",children:"Questions?"})]}),(0,a.jsx)("p",{className:"contact-form__subtitle",children:"Please fill out the form to receive your free eBrochure. Submit now to get immediate access to exclusive information about our college."})]}),(0,a.jsxs)(t.motion.form,{className:"contact-form__form",onSubmit:u,initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2},viewport:{once:!0},children:[m.type&&(0,a.jsx)("div",{className:`contact-form__message contact-form__message--${m.type}`,style:{padding:"1rem",marginBottom:"1rem",borderRadius:"0.5rem",backgroundColor:"success"===m.type?"#d4edda":"#f8d7da",color:"success"===m.type?"#155724":"#721c24",border:`1px solid ${"success"===m.type?"#c3e6cb":"#f5c6cb"}`},children:m.message}),(0,a.jsxs)("div",{className:"contact-form__row",children:[(0,a.jsxs)("div",{className:"contact-form__field",children:[(0,a.jsx)("label",{htmlFor:"name",className:"contact-form__label",children:"Name"}),(0,a.jsx)("input",{type:"text",id:"name",name:"name",placeholder:"Name",value:e.name,onChange:f,className:"contact-form__input",required:!0})]}),(0,a.jsxs)("div",{className:"contact-form__field",children:[(0,a.jsx)("label",{htmlFor:"email",className:"contact-form__label",children:"Email"}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",placeholder:"Email",value:e.email,onChange:f,className:"contact-form__input",required:!0})]})]}),(0,a.jsxs)("div",{className:"contact-form__field contact-form__field--full",children:[(0,a.jsx)("label",{htmlFor:"contact",className:"contact-form__label",children:"Contact"}),(0,a.jsx)("input",{type:"tel",id:"contact",name:"contact",placeholder:"+977 9XXXXXXXXX",value:e.contact,onChange:f,className:`contact-form__input ${n?"contact-form__input--error":""}`,style:n?{borderColor:"#dc3545"}:{},required:!0}),n&&(0,a.jsx)("span",{className:"contact-form__error",style:{color:"#dc3545",fontSize:"0.875rem",marginTop:"0.25rem",display:"block"},children:n})]}),(0,a.jsxs)("div",{className:"contact-form__field contact-form__field--full",children:[(0,a.jsx)("label",{htmlFor:"message",className:"contact-form__label",children:"Message"}),(0,a.jsx)("textarea",{id:"message",name:"message",placeholder:"Your message...",value:e.message,onChange:f,className:"contact-form__textarea",rows:5,required:!0})]}),(0,a.jsx)("button",{type:"submit",className:"contact-form__submit",disabled:i,children:(0,a.jsx)("span",{children:i?"Sending...":"Send"})})]})]})})}],552851)}]);

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.