PageSourceSearch

https://whitehouse.edu.np/assets/index-Bkd9H4S5.js

js whitehouse.edu.np collected 2026-10-05 03:39:44 UTC 2,873 bytes, 1 lines download raw bytes

1import{W as b,r as l,Z as x,v as g,j as e,C as h,D as n,T as f,E as w,b8 as S,J as y,K as j,Q as v,cH as C,b9 as F,ba as I,S as k,g as E,bf as M,x as O,U as a,V as B}from"./index-B_8ZUqKE.js";const N=b(t=>({root:{position:"relative",padding:t.spacing(10,2),backgroundAttachment:"fixed","& .news-letter-5":{position:"relative",zIndex:12,"& .title":{color:"white"},"& .divider":{position:"relative","& .MuiFormControl-root":{"& .MuiInputLabel-root":{color:"white",fontFamily:"unset",transition:t.transitions.easing.easeOut},"& .MuiOutlinedInput-root":{color:"white","& .MuiOutlinedInput-input":{padding:"16.5px 60px 16.5px 14px"},"& .MuiOutlinedInput-notchedOutline":{color:"white",transition:t.transitions.easing.easeOut},"& fieldset":{borderColor:"white"}},"& .Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{color:"white",borderWidth:"1px !important"}}},"& .MuiButtonBase-root":{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",borderRadius:"10px",minHeight:"unset",padding:"10px 15px",minWidth:"unset",color:"white",border:"none",backgroundColor:`${t.palette.secondary.main}`}}},"&::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1,backgroundColor:`${t.palette.primary.main}77`},[t.breakpoints.up("md")]:{padding:t.spacing(20)}}}));function A(){const{profile:t}=l.useContext(x),[u,i]=l.useState(!1),c=N();let d=`${g().apiUrl}/subscribe`;const p=(o,{resetForm:r})=>{i(!0),O.post(d,o,{headers:{"Content-Type":"multipart/form-data"}}).then(({data:s})=>{i(!1),s!=null&&s.success?(r({email:""}),a.showSuccess("Subscribed SuccessFully")):a.showError((s==null?void 0:s.message)||"Failed to subscribe")},s=>{a.showError("Something went wrong"),i(!1)})};return e.jsxs("section",{className:M(c.root,"background-image"),style:{backgroundImage:`url("${t.subscribeBgUrl?t.subscribeBgUrl:E(t.banner,B)}")`},children:[e.jsxs(h,{className:"news-letter-5",children:[e.jsx(n,{component:"div",className:"text-holder",textAlign:"center",mb:10,children:e.jsx(f,{variant:"h2",className:"title",fontWeight:"bold",children:"Sign up for our newsletter!"})}),e.jsx(w,{initialValues:{email:""},validationSchema:S,onSubmit:p,children:({values:o,handleChange:r,handleBlur:s,handleSubmit:m})=>e.jsx(y,{onSubmit:m,autoComplete:"off",children:e.jsxs(n,{sx:{margin:"0 auto"},width:{xs:"100%",md:"550px",lg:"550px"},children:[e.jsxs(n,{component:"div",className:"divider",sx:{mb:1},display:"flex",alignItems:"center",gap:2,children:[e.jsx(j,{label:"Your Email Address",variant:"outlined",type:"email",name:"email",onChange:r,onBlur:s,value:o.email,fullWidth:!0}),e.jsx(v,{type:"submit",disabled:u,sx:{"&:disabled":{opacity:"0.5"}},children:e.jsx(C,{})})]}),e.jsx(F,{component:"div",className:"err-msg",name:"email",style:{color:"white"}})]})})})]}),I.createPortal(e.jsx(k,{position:"top-center"}),document.body)]})}
1export{A as default};

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.