PageSourceSearch

https://www.hopnepal.com/_next/static/chunks/pages/sign-in-6f55de8e5fc7d5fe.js

js hopnepal.com collected 2026-10-02 19:16:20 UTC 14,117 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{890:function(e,n,t){"use strict";var i=t(59499),r=t(65749),o=t.n(r),s=t(86426),a=t(89956),c=t(85893);n.Z=function(e){var n,t=e.callback,r=(n={height:"40px",marginRight:"10px",padding:"0 10px",fontSize:"12px",lineHeight:"30px"},(0,i.Z)(n,"fontSize","10px"),(0,i.Z)(n,"borderRadius","4px"),(0,i.Z)(n,"boxShadow","0 3px 6px rgba(0, 0, 0, 0.5)"),(0,i.Z)(n,"display","flex"),(0,i.Z)(n,"gap","6px"),(0,i.Z)(n,"alignItems","center"),n),l=(0,c.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",style:{width:"14px",height:"14px",verticalAlign:"middle",fill:"currentColor"},children:(0,c.jsx)("path",{d:"M22.675 0h-21.35C.599 0 0 .599 0 1.326v21.348C0 23.4.599 24 1.326 24H12.82v-9.294H9.692V11.01h3.128V8.309c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.796.715-1.796 1.763v2.313h3.587l-.467 3.696h-3.12V24h6.116C23.401 24 24 23.4 24 22.674V1.326C24 .599 23.401 0 22.675 0z"})}),d=(0,s.Nq)({onSuccess:function(e){t("google",e.access_token)}});return(0,c.jsxs)("div",{className:"flex items-center",children:[(0,c.jsx)("div",{children:(0,c.jsx)(a.GoogleLoginButton,{text:"Login With Google",style:r,onClick:d})}),(0,c.jsx)("div",{children:(0,c.jsx)(o(),{appId:"161749597763159",fields:"id,name,email,last_name,first_name,picture",scope:"public_profile,email,user_friends",callback:function(e){e.accessToken?t("facebook",e.accessToken):console.error(e)},size:"small",buttonStyle:r,icon:l})})]})}},26016:function(e,n,t){"use strict";t.d(n,{KG:function(){return f},Vt:function(){return p},YY:function(){return m},sL:function(){return h},v3:function(){return u},w6:function(){return g}});var i=t(59499),r=t(90116),o=t(91036),s=t.n(o);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var l={allowedTags:[].concat((0,r.Z)(s().defaults.allowedTags),["img"]),allowedAttributes:c(c({},s().defaults.allowedAttributes),{},{"*":["class","id"],a:["href","name","target","rel"],td:["colspan","rowspan"],th:["colspan","rowspan","scope"],col:["span"]}),allowedSchemes:["http","https","mailto","tel"],allowedSchemesByTag:{img:["http","https"]},allowProtocolRelative:!1,transformTags:{a:function(e,n){return{tagName:e,attribs:"_blank"===n.target?c(c({},n),{},{rel:"noopener noreferrer"}):n}}}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s()(String(e),l)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d(e).replace(/<[^>]*>/g," ").replace(/&nbsp;/g," ").replace(/\s+/g," ").trim()},u=function(e){return p(e).length>0},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.Z)(e).sort((function(e,n){return(e.sort_order||e.id||0)-(n.sort_order||n.id||0)}))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?d(e):""},g=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.allowRelative,i=void 0===t||t;if(!e||"string"!==typeof e)return!1;var r=e.trim();if(!r)return!1;if(i&&r.startsWith("/")&&!r.startsWith("//"))return!0;try{var o=new URL(r);return"http:"===o.protocol||"https:"===o.protocol}catch(s){return!1}},f=function(e){if(!u(e))return[];var n=h(e).match(/<li[^>]*>[\s\S]*?<\/li>/gi);return n&&n.length?n.map((function(e){return p(e)})).filter(Boolean).map((function(e){var n=e.split(/\s-\s|:\s/);return{title:n[0],description:n.slice(1).join(" - ")}})):[]}},25585:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(79060),r=t.n(i),o=t(85893);function s(){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("span",{className:r().loader})})}},64317:function(e,n,t){"use strict";var i=t(59499),r=(t(67294),t(9008)),o=t.n(r),s=t(26016),a=t(85893);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?c(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t="https://www.hopnepal.com/";e.canonical&&(t+=e.canonical);var i=e.meta_title||e.title,r=e.ogType||"website",c="4.9",d="124",p=window.sessionStorage.getItem("rating");try{if(p&&JSON.parse(p)){var u=JSON.parse(p);c=u.rating,d=u.user_ratings_total}}catch(v){console.log(v)}var m=e.product,h=Number(null!==(n=null===m||void 0===m?void 0:m.price_per_person)&&void 0!==n?n:null===m||void 0===m?void 0:m.base_price),g=Number(null===m||void 0===m?void 0:m.discount_percentage)||0,f=((null===m||void 0===m?void 0:m.images)||[]).map((function(e){return null===e||void 0===e?void 0:e.url})).filter((function(e){return(0,s.w6)(e,{allowRelative:!1})})),x=(0,s.Vt)(e.meta_description||(null===m||void 0===m?void 0:m.details)||(null===m||void 0===m?void 0:m.overview)||(null===m||void 0===m?void 0:m.highlights)),j=null!==m&&void 0!==m&&m.name?l(l(l({"@context":"https://schema.org","@type":"Product",name:m.name},f.length&&{image:f}),x&&{description:x}),{},{brand:{"@type":"Brand",name:"Hop Nepal"}},h>0&&{offers:{"@type":"Offer",url:t,priceCurrency:"USD",price:Math.max(0,h-g/100*h).toFixed(2),itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock"}}):null;return(0,a.jsxs)(o(),{children:[(0,a.jsx)("title",{children:i}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"48x48",href:"/favicon-48x48.png"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/favicon.png"}),(0,a.jsx)("link",{rel:"canonical",href:t}),e.needSeo&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"description",content:e.meta_description||"Hotel booking in Nepal"}),(0,a.jsx)("meta",{name:"keywords",content:e.meta_keyword||"hotel booking, affordable hotels, Luxary Hotels"}),(0,a.jsx)("meta",{property:"og:site_name",content:"Hopnepal.com"}),(0,a.jsx)("meta",{property:"fb:app_id",content:"161749597763159"}),(0,a.jsx)("meta",{property:"og:type",content:r}),(0,a.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,a.jsx)("meta",{property:"og:title",content:i}),(0,a.jsx)("meta",{property:"og:description",content:e.meta_description||"Hotel booking in Nepal."}),(0,a.jsx)("meta",{property:"og:url",content:t}),(0,a.jsx)("meta",{property:"og:image",content:e.banner||""}),e.articlePublishedTime?(0,a.jsx)("meta",{property:"article:published_time",content:e.articlePublishedTime}):null,e.articleModifiedTime?(0,a.jsx)("meta",{property:"article:modified_time",content:e.articleModifiedTime}):null,(0,a.jsx)("meta",{name:"twitter:card",content:e.banner||""}),(0,a.jsx)("meta",{name:"twitter:site",content:"@hopnpl"}),(0,a.jsx)("meta",{name:"twitter:creator",content:"@hopnpl"}),(0,a.jsx)("meta",{name:"twitter:title",content:i}),(0,a.jsx)("meta",{name:"twitter:description",content:e.meta_description||"Hotel booking in Nepal"}),(0,a.jsx)("meta",{name:"twitter:image",content:e.banner||""}),(0,a.jsx)("meta",{name:"twitter:image:width",content:"506"}),(0,a.jsx)("meta",{name:"twitter:image:height",content:"254"})]}),(0,a.jsx)("meta",{charSet:"UTF-8"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,a.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"}),(0,a.jsx)("meta",{name:"google-site-verification",content:"bzeAsVToS4NbFRgcNcBQaBpA6Iyxz89IFZz_hE321n8"}),e.noindex&&(0,a.jsx)("meta",{name:"robots",content:"noindex"}),e.nofollow&&(0,a.jsx)("meta",{name:"robots",content:"nofollow"}),e.noindex&&e.nofollow&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"http://schema.org/","@type":"product",name:"Hopnepal",image:"https://booking-manager-api-hop-nepal.s3.eu-west-1.amazonaws.com/5274/bouddhanath-stupa-min.jpg",aggregateRating:{"@type":"AggregateRating",ratingValue:c,ratingCount:d}})}}),j&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j).replace(/</g,"\\u003c")}})]})}},46073:function(e,n,t){"use strict";t.r(n);var i=t(67294),r=t(11163),o=t(41664),s=t.n(o),a=t(4810),c=t(64317),l=t(97169),d=t(80912),p=t(25585),u=t(890),m=t(85893);n.default=function(){var e=(0,i.useState)(""),n=e[0],t=e[1],o=(0,i.useState)(""),h=o[0],g=o[1],f=(0,i.useState)(!1),x=f[0],j=f[1],v=(0,i.useState)({}),b=v[0],y=v[1],w=(0,r.useRouter)(),N=(w||{}).query,_=void 0===N?{}:N;(0,i.useEffect)((function(){(0,l.Pc)()&&w.push("/dashboard")}),[]);var k=function(){var e="/dashboard";"undefined"!=typeof _.service&&"undefined"!=typeof _.slug&&(e="/".concat(_.service,"/").concat(encodeURIComponent(_.slug),"/book-now"),("homestays"===_.service||"hotels"===_.service)&&(e+="?bookDate=".concat(_.bookDate,"&roomData=").concat(_.roomData)),_.roomId&&(e+="&roomId=".concat(_.roomId))),_.action&&"add-property"===_.action&&(e="/user-property?action=add-property"),window.location.href=e};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(c.Z,{title:"Hop Nepal | Sign In",canonical:"sign-in"}),(0,m.jsx)("div",{className:"sign-in-page",children:(0,m.jsxs)("div",{className:"sign-in-shell",children:[(0,m.jsx)("aside",{className:"sign-in-hero",children:(0,m.jsxs)("div",{className:"sign-in-hero-content",children:[(0,m.jsx)("span",{className:"sign-in-eyebrow",children:"Hop Nepal"}),(0,m.jsx)("h1",{className:"sign-in-hero-title",children:"Welcome back to the journey"}),(0,m.jsx)("p",{className:"sign-in-hero-subtitle",children:"Unlock your stays, trails, and curated experiences with a fast, secure sign in."}),(0,m.jsxs)("div",{className:"sign-in-hero-grid",children:[(0,m.jsxs)("div",{className:"sign-in-hero-card",children:[(0,m.jsx)("h3",{children:"Instant updates"}),(0,m.jsx)("p",{children:"Keep track of check-ins, hosts, and itinerary changes."})]}),(0,m.jsxs)("div",{className:"sign-in-hero-card",children:[(0,m.jsx)("h3",{children:"Trusted stays"}),(0,m.jsx)("p",{children:"Verified homestays, hotels, and travel partners."})]})]}),(0,m.jsx)("div",{className:"sign-in-hero-note",children:"Your next Nepal story starts right here."})]})}),(0,m.jsxs)("section",{className:"sign-in-card",children:[(0,m.jsxs)("div",{className:"sign-in-header",children:[(0,m.jsx)("h2",{className:"sign-in-title",children:"Sign in"}),(0,m.jsx)("p",{className:"sign-in-subtitle",children:"Choose a quick social login or use your email."})]}),(0,m.jsx)("div",{className:"sign-in-social",children:(0,m.jsx)(u.Z,{callback:function(e,n){d.O6.post("/auth/social/login",{provider_name:e,access_token:n}).then((function(e){(0,l.AW)({access_token:e.data.access_token}),k()})).catch((function(e){console.error(e),y({error:[e.message]})}))}})}),(0,m.jsx)("div",{className:"sign-in-divider",children:(0,m.jsx)("span",{children:"Or continue with email"})}),Object.keys(b).map((function(e,n){return(0,m.jsx)("div",{className:"sign-in-error",role:"alert",children:(0,m.jsx)("p",{children:b[e][0]})},n)})),(0,m.jsxs)("form",{className:"sign-in-form",onSubmit:function(e){e.preventDefault(),j(!0),(0,l.x4)({username:n,password:h}).then((function(e){(0,l.AW)({access_token:e.data.access_token,refresh_token:e.data.refresh_token}),k()})).catch((function(e){var n,t;401==(null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.status)&&y({error:[e.response.data.message]}),422==(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status)&&y(e.response.data.errors),j(!1)}))},children:[(0,m.jsx)("div",{className:"sign-in-field",children:(0,m.jsx)("input",{id:"sign-in-email",name:"email",type:"email",autoComplete:"email",placeholder:"[email protected]",onChange:function(e){return t(e.target.value)},required:!0,className:"sign-in-input"})}),(0,m.jsx)("div",{className:"sign-in-field",children:(0,m.jsx)(a.Z.Password,{id:"sign-in-password",name:"password",autoComplete:"current-password",placeholder:"Enter your password",className:"sign-in-input",onChange:function(e){return g(e.target.value)},required:!0})}),(0,m.jsxs)("div",{className:"sign-in-meta",children:[(0,m.jsxs)("label",{className:"sign-in-checkbox",htmlFor:"remember-me",children:[(0,m.jsx)("input",{type:"checkbox",id:"remember-me"}),"Keep me signed in"]}),(0,m.jsx)(s(),{href:"/forget-password",children:(0,m.jsx)("a",{className:"sign-in-link",children:"Forgot password?"})})]}),(0,m.jsxs)("button",{type:"submit",disabled:x,className:"sign-in-button",children:[x&&(0,m.jsx)(p.Z,{}),(0,m.jsx)("span",{children:"Sign In"})]}),(0,m.jsxs)("div",{className:"sign-in-terms",children:["By signing in, I agree with HopNepal's"," ",(0,m.jsx)(s(),{href:"/terms-and-conditions",children:(0,m.jsx)("a",{className:"sign-in-link",children:"Terms of Use and Privacy Policy"})}),"."]}),(0,m.jsx)("div",{className:"sign-in-footer",children:(0,m.jsx)(s(),{href:"/create-account",children:(0,m.jsxs)("a",{children:["Need an account?"," ",(0,m.jsx)("span",{className:"sign-in-link",children:"Sign up"})]})})})]})]})]})})]})}},16069:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return t(46073)}])},79060:function(e){e.exports={loader:"loader_loader__yzPyT",rotation:"loader_rotation__CW7MY"}},22868:function(){},14777:function(){},99830:function(){},70209:function(){}},function(e){e.O(0,[1036,1577,4810,889,9774,2888,179],(function(){return n=16069,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.