1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[716],{4742:function(e,r,t){Promise.resolve().then(t.bind(t,4086))},4086:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return I}});var n=t(7437),o=t(2265),i=t(357);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach(function(r){!function(e,r,t){var n;(r="symbol"==typeof(n=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(r,"string"))?n:n+"")in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t}(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function l(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function u(e){if(null!=e)return(e=e.trim()).endsWith("/")&&(e=e.slice(0,-1)),e}
1var f=u(i.env.KINDE_SITE_URL),d=u(i.env.NEXT_PUBLIC_KINDE_AUTH_API_PATH)||u(i.env.KINDE_AUTH_API_PATH)||"/api/auth",g=u(i.env.KINDE_POST_LOGIN_REDIRECT_URL)||u(i.env.KINDE_POST_LOGIN_URL_REDIRECT_URL),p=u(i.env.KINDE_POST_LOGOUT_REDIRECT_URL),h=u(i.env.KINDE_ISSUER_URL),m=i.env.KINDE_CLIENT_ID,v=i.env.KINDE_CLIENT_SECRET,b=i.env.KINDE_AUDIENCE,y=u(i.env.KINDE_COOKIE_DOMAIN),x=i.env.KINDE_SCOPE||"openid profile email offline",_={isDebugMode:"true"===i.env.KINDE_DEBUG_MODE,apiPath:d,initialState:{accessToken:null,idToken:null,isAuthenticated:!1,isLoading:!0,organization:null,permissions:[],user:null,userOrganizations:[],getAccessToken:function(){return null},getBooleanFlag:function(){return null},getClaim:function(){return null},getFlag:function(){return null},getIdToken:function(){return null},getIntegerFlag:function(){return null},getOrganization:function(){return null},getPermission:function(){return null},getPermissions:function(){return[]},getStringFlag:function(){return null},getToken:function(){return null},getUser:function(){return null},getUserOrganizations:function(){return null},refreshData:function(){return null}},SESSION_PREFIX:"pkce-verifier",redirectURL:f,postLoginRedirectURL:g,issuerURL:h,clientID:m,clientSecret:v,postLogoutRedirectURL:p,audience:b?b.split(" "):"",cookieDomain:y,responseType:"code",codeChallengeMethod:"S256",redirectRoutes:{callback:"".concat(d,"/kinde_callback")},issuerRoutes:{logout:"/logout",login:"/oauth2/auth",register:"/oauth2/auth",token:"/oauth2/token",profile:"/oauth2/v2/user_profile"},clientOptions:{audience:b?b.split(" "):"",authDomain:h||"",clientId:m||"",clientSecret:v||"",logoutRedirectURL:p||"",redirectURL:"".concat(f,"/api/auth/kinde_callback"),frameworkVersion:"2.4.6",scope:x},grantType:"AUTHORIZATION_CODE"},j=["children","orgCode","postLoginRedirectURL","authUrlParams"];function w(e){var r=e.children,t=e.orgCode,n=e.postLoginRedirectURL,i=e.authUrlParams,a=l(e,j),u=new URLSearchParams,f={};for(var d in null!=t&&(f.org_code=t),null!=n&&(f.post_login_redirect_url=n),f=s(s({},i),f))u.append(d,f[d]);return o.createElement("a",c({href:"".concat(_.apiPath,"/register").concat(u?"?".concat(u.toString()):"")},a),r)}var E=["children","postLoginRedirectURL","orgCode","authUrlParams"];function O(e){var r,t=e.children,n=e.postLoginRedirectURL,a=e.orgCode,u=e.authUrlParams,f=l(e,E),d=new URLSearchParams,g={};if(null!=a&&(g.org_code=a),null!=n){if(null!==(r=n)&&void 0!==r&&r.startsWith("/")){var p="undefined"!=typeof window?window.location.origin:i.env.KINDE_SITE_URL;n="".concat(p).concat(n)}g.post_login_redirect_url=n}for(var h in g=s(s({},u),g))d.append(h,g[h]);var m="".concat(_.apiPath,"/login").concat(d?"?".concat(d.toString()):"");return o.createElement("a",c({href:m},f),t)}var N=t(495),T=t(3430);function I(){let[e,r]=(0,o.useState)(!0);return(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-background text-foreground",children:(0,n.jsxs)("div",{className:"w-full max-w-md p-8 space-y-8",children:[(0,n.jsxs)(T.E.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center",children:[(0,n.jsx)("h1",{className:"text-4xl font-bold mb-2",children:"Welcome to StayScore"}),(0,n.jsx)("p",{className:"text-muted-foreground",children:"Share and discover honest reviews about your stays"})]}),(0,n.jsxs)(T.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.2,duration:.5},className:"space-y-6",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,n.jsx)("span",{className:"w-full border-t border-muted"})}),(0,n.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,n.jsxs)("span",{className:"bg-background px-2 text-muted-foreground",children:[e?"Log in":"Sign up"," with"]})})]}),e?(0,n.jsx)(O,{children:(0,n.jsxs)(N.z,{className:"w-full",size:"lg",children:[(0,n.jsx)("svg",{className:"mr-2 h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,n.jsx)("path",{d:"M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.89-8.9c-1.78-.59-2.64-.96-2.64-1.9 0-1.02 1.11-1.39 1.81-1.39 1.31 0 1.79.99 1.9 1.34l1.58-.67C13.18 4.2 12.38 3 10.06 3 8.59 3 6.81 3.8 6.81 5.81c0 2.17 2.1 2.85 3.89 3.45 1.88.61 2.25 1.04 2.25 1.67 0 .66-.67 1.57-2.05 1.57-1.7 0-2.46-.74-2.64-1.67l-1.6.67c.36 1.72 1.61 2.71 4.24 2.71 2.17 0 3.81-1.17 3.81-3.17 0-2.07-1.87-2.85-3.76-3.45z"})}),"Continue with Kinde"]})}):(0,n.jsx)(w,{children:(0,n.jsxs)(N.z,{className:"w-full",size:"lg",children:[(0,n.jsx)("svg",{className:"mr-2 h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,n.jsx)("path",{d:"M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.89-8.9c-1.78-.59-2.64-.96-2.64-1.9 0-1.02 1.11-1.39 1.81-1.39 1.31 0 1.79.99 1.9 1.34l1.58-.67C13.18 4.2 12.38 3 10.06 3 8.59 3 6.81 3.8 6.81 5.81c0 2.17 2.1 2.85 3.89 3.45 1.88.61 2.25 1.04 2.25 1.67 0 .66-.67 1.57-2.05 1.57-1.7 0-2.46-.74-2.64-1.67l-1.6.67c.36 1.72 1.61 2.71 4.24 2.71 2.17 0 3.81-1.17 3.81-3.17 0-2.07-1.87-2.85-3.76-3.45z"})}),"Sign up with Kinde"]})}),(0,n.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:[e?"Don't have an account?":"Already have an account?",(0,n.jsx)("button",{className:"ml-1 text-primary hover:underline",onClick:()=>r(!e),children:e?"Sign up":"Log in"})]})]}),(0,n.jsxs)(T.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.4,duration:.5},className:"mt-8 text-center text-sm text-muted-foreground",children:["By continuing, you agree to our"," ",(0,n.jsx)("a",{href:"#",className:"text-primary hover:underline",children:"Terms of Service"})," and"," ",(0,n.jsx)("a",{href:"#",className:"text-primary hover:underline",children:"Privacy Policy"}),"."]})]})})}},495:function(e,r,t){"use strict";t.d(r,{d:function(){return c},z:function(){return l}});var n=t(7437),o=t(2265),i=t(1538),a=t(3027),s=t(7440);let c=(0,a.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",expandIcon:"group relative text-primary-foreground bg-primary hover:bg-primary/90",ringHover:"bg-primary text-primary-foreground transition-all duration-300 hover:bg-primary/90 hover:ring-2 hover:ring-primary/90 hover:ring-offset-2",shine:"text-primary-foreground animate-shine bg-gradient-to-r from-primary via-primary/75 to-primary bg-[length:400%_100%] ",gooeyRight:"text-primary-foreground relative bg-primary z-0 overflow-hidden transition-all duration-500 before:absolute before:inset-0 before:-z-10 before:translate-x-[150%] before:translate-y-[150%] before:scale-[2.5] before:rounded-[100%] before:bg-gradient-to-r from-zinc-400 before:transition-transform before:duration-1000 hover:before:translate-x-[0%] hover:before:translate-y-[0%] ",gooeyLeft:"text-primary-foreground relative bg-primary z-0 overflow-hidden transition-all duration-500 after:absolute after:inset-0 after:-z-10 after:translate-x-[-150%] after:translate-y-[150%] after:scale-[2.5] after:rounded-[100%] after:bg-gradient-to-l from-zinc-400 after:transition-transform after:duration-1000 hover:after:translate-x-[0%] hover:after:translate-y-[0%] ",linkHover1:"relative after:absolute after:bg-primary after:bottom-2 after:h-[1px] after:w-2/3 after:origin-bottom-left after:scale-x-100 hover:after:origin-bottom-right hover:after:scale-x-0 after:transition-transform after:ease-in-out after:duration-300",linkHover2:"relative after:absolute after:bg-primary after:bottom-0 after:h-[1px] after:w-full after:origin-bottom-right after:scale-x-0 hover:after:origin-bottom-left hover:after:scale-x-100 after:transition-transform after:ease-in-out after:duration-300"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=o.forwardRef((e,r)=>{let{className:t,variant:o,size:a,asChild:l=!1,Icon:u,iconPlacement:f,...d}=e,g=l?i.g7:"button";return(0,n.jsxs)(g,{className:(0,s.cn)(c({variant:o,size:a,className:t})),ref:r,...d,children:[u&&"left"===f&&(0,n.jsx)("div",{className:"w-0 translate-x-[0%] pr-0 opacity-0 transition-all duration-200 group-hover:w-5 group-hover:translate-x-100 group-hover:pr-2 group-hover:opacity-100",children:(0,n.jsx)(u,{})}),(0,n.jsx)(i.A4,{children:d.children}),u&&"right"===f&&(0,n.jsx)("div",{className:"w-0 translate-x-[100%] pl-0 opacity-0 transition-all duration-200 group-hover:w-5 group-hover:translate-x-0 group-hover:pl-2 group-hover:opacity-100",children:(0,n.jsx)(u,{})})]})});l.displayName="Button"},7440:function(e,r,t){"use strict";t.d(r,{cn:function(){return i}});var n=t(4839),o=t(6164);function i(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,o.m6)((0,n.W)(r))}},357:function(e,r,t){"use strict";var n,o;e.exports=(null==(n=t.g.process)?void 0:n.env)&&"object"==typeof(null==(o=t.g.process)?void 0:o.env)?t.g.process:t(8081)},8081:function(e){!function(){var r={229:function(e){var r,t,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{t="function"==typeof clearTimeout?clearTimeout:a}catch(e){t=a}}();var c=[],l=!1,u=-1;function f(){l&&n&&(l=!1,n.length?c=n.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var r=c.length;r;){for(n=c,c=[];++u<r;)n&&n[u].run();u=-1,r=c.length}n=null,l=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===a||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{t(e)}catch(r){try{return t.call(null,e)}catch(r){return t.call(this,e)}}}(e)}}function g(e,r){this.fun=e,this.array=r}function p(){}o.nextTick=function(e){var r=Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];c.push(new g(e,r)),1!==c.length||l||s(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var i=t[e]={exports:{}},a=!0;try{r[e](i,i.exports,n),a=!1}finally{a&&delete t[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()}},function(e){e.O(0,[247,430,971,23,744],function(){return e(e.s=4742)}),_N_E=e.O()}]);
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.