1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4107],{86076:function(e,t,n){"use strict";n.d(t,{Z:function(){return j},g:function(){return y}});var o=n(59499),i=n(4730),r=n(31096),a=n(9008),l=n.n(a),s=n(11163),c=n(4298),d=n.n(c),u=n(67294),f=n(13959),p=n(85893),v=n(83454),g=["meta","children","isLoading"],m=["bizId"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e){try{var t,n=new URL(e),o=n.hostname.toLowerCase(),i=(null===(t=v.env.NEXT_PUBLIC_SAFRA_HOSTNAME)||void 0===t?void 0:t.toLowerCase())||"",r=i&&o===i;if(o.endsWith(".rezeve.com")&&!r){var a=n.hostname.replace(/\.rezeve\.com$/i,".rezerv.co");return"".concat(n.protocol,"//").concat(a).concat(n.port?":".concat(n.port):"")}return e}catch(l){return e}};function j(e){var t,n,o,r,a=e.meta,c=e.children,v=e.isLoading,h=(0,i.Z)(e,g),j=(0,s.useRouter)(),w=null===a||void 0===a?void 0:a.analytics,b=null!==a&&void 0!==a&&a.url?y(a.url.origin):"",k=null!==a&&void 0!==a&&a.url?a.url.pathname.includes("/home")?b:"".concat(b).concat(a.url.pathname):"";return(null===a||void 0===a?void 0:a.error)&&console.error(null===a||void 0===a?void 0:a.error),(0,u.useEffect)((function(){var e=j.query,t=e.bizId,n=(0,i.Z)(e,m);t&&j.replace({pathname:j.pathname,query:n})}),[j.query]),(0,p.jsxs)("main",x(x({},h),{},{children:[a&&(0,p.jsxs)(l(),{children:[(null===(t=a.themeSetting)||void 0===t?void 0:t.color.primary)&&(0,p.jsx)("meta",{name:"theme-color",content:null===(n=a.themeSetting)||void 0===n?void 0:n.color.primary}),(0,p.jsx)("link",{rel:"icon",type:"image/png",href:(null===(o=a.themeSetting)||void 0===o?void 0:o.favicon)||"https://ik.imagekit.io/rezeve/rezevefavicon.png"}),(0,p.jsx)("link",{type:"image/png",rel:"apple-touch-icon",href:(null===(r=a.themeSetting)||void 0===r?void 0:r.favicon)||"https://ik.imagekit.io/rezeve/rezevefavicon.png"}),a.seo_title&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:a.seo_title}),(0,p.jsx)("meta",{property:"og:title",content:a.seo_title}),(0,p.jsx)("meta",{name:"twitter:title",content:a.seo_title})]}),(a.seo_image_url||a.featImageUrl)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("meta",{property:"og:image",content:a.seo_image_url||a.featImageUrl}),(0,p.jsx)("meta",{property:"twitter:image",content:a.seo_image_url||a.featImageUrl})]}),a.seo_description&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("meta",{name:"description",content:a.seo_description}),(0,p.jsx)("meta",{property:"og:description",content:a.seo_description}),(0,p.jsx)("meta",{name:"twitter:description",content:a.seo_description})]}),!(null===w||void 0===w||!w.facebook_domain_verification_code)&&(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("meta",{name:"facebook-domain-verification",content:w.facebook_domain_verification_code})}),!(null===w||void 0===w||!w.google_site_verification_code)&&(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("meta",{name:"google-site-verification",content:w.google_site_verification_code})}),a.url&&k&&(0,p.jsx)("link",{rel:"canonical",href:k})]}),v?(0,p.jsx)(_,{children:(0,p.jsx)(f.Z,{width:"200px",height:"200px"})}):c,!(null===w||void 0===w||!w.google_analytics_code)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d(),{src:"https://www.googletagmanager.com/gtag/js?id=".concat(null===w||void 0===w?void 0:w.google_analytics_code),strategy:"afterInteractive"}),(0,p.jsx)(d(),{id:"google-analytics",strategy:"afterInteractive",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){window.dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '".concat(null===w||void 0===w?void 0:w.google_analytics_code,"');\n ")})]}),!(null===w||void 0===w||!w.gogole_tag_code)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d(),{id:"google-tag-manager",strategy:"afterInteractive",children:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','".concat(null===w||void 0===w?void 0:w.gogole_tag_code,"')")}),(0,p.jsx)("noscript",{children:(0,p.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=".concat(null===w||void 0===w?void 0:w.gogole_tag_code),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]}),!(null===w||void 0===w||!w.facebook_pixels_code)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d(),{id:"facebook-pixel-analytics",strategy:"afterInteractive",children:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(null===w||void 0===w?void 0:w.facebook_pixels_code,"');\n fbq('track', 'PageView');\n ")}),(0,p.jsx)("noscript",{children:(0,p.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(null===w||void 0===w?void 0:w.facebook_pixels_code,"&ev=PageView&noscript=1")})})]}),!(null===w||void 0===w||!w.tiktok_code)&&(0,p.jsx)(d(),{id:"Tiktok analytics script",strategy:"afterInteractive",children:'!function (w, d, t) {\n w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n\n ttq.load(\''.concat(null===w||void 0===w?void 0:w.tiktok_code,"');\n ttq.page();\n }(window, document, 'ttq');")}),!(null===w||void 0===w||!w.gass_code)&&(0,p.jsx)(d(),{src:"https://gass.co.id/gassv3.min.js?v3",strategy:"afterInteractive",onLoad:function(){var e;gass.run({subdomain:null===a||void 0===a||null===(e=a.url)||void 0===e?void 0:e.hostname,pkey:null===w||void 0===w?void 0:w.gass_code,interval:2},(function(){}))}})]}))}var _=(0,r.ZP)("div").withConfig({displayName:"Page___StyledDiv",componentId:"sc-xdi14n-0"})(["min-height:100vh;display:flex;justify-content:center;align-items:center;"])},21737:function(e,t,n){"use strict";var o=n(31096),i=(n(67294),n(86076)),r=n(9008),a=n.n(r),l=n(41664),s=n.n(l),c=n(13959),d=n(67162),u=n(47300),f=n(43195),p=n(19907),v=n(11163),g=n(58255),m=n(57953),h=n(39646),x=n(62396),y=n(83030),j=n(11634),_=n(85893);t.Z=function(e){var t,n=e.children,o=e.isLoading,r=void 0!==o&&o,l=e.showBackBtn,u=void 0===l||l,b=e.isFromReferralPage,k=void 0!==b&&b,L=e.isFromPage,C=void 0!==L&&L,N=e.referralCode,q=void 0===N?"":N,P=(0,v.useRouter)(),O=(0,p.Z)().data,E=(0,d.vH)(),T=E.navBg,R=E.navLogo,M=E.navTextColor,Z=(0,x.J)().isReferralEnabled,I=(0,m.Ap)("/referrals/setting",{shouldFetch:Z}).data,B=(0,y.Z)(q),S=B.isValid,A=B.referrerName;return(0,_.jsxs)(i.Z,{children:[(0,_.jsx)(a(),{children:(0,_.jsx)("title",{children:"Login"})}),(0,_.jsx)("div",{children:(0,_.jsx)("div",{className:"flex h-screen w-full flex-col md:flex-row md:p-4",children:r?(0,_.jsx)("div",{className:"grid h-full w-full place-items-center",children:(0,_.jsx)(c.Z,{height:"100px",width:"100px"})}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"grid ".concat(Z?"py-5 md:py-0":"h-80"," place-items-center md:h-full md:w-[474px] md:rounded-2xl"),style:{background:T},children:k||C?(0,_.jsxs)("div",{style:{color:"".concat(M)},className:"sm:w-9/12 w-10/12",children:[(0,_.jsx)(s(),{href:"/",children:(0,_.jsx)("h3",{className:"text-2xl cursor-pointer font-bold text-center",children:(0,f.N_)(null===O||void 0===O?void 0:O.businessName)})}),S&&A&&(0,_.jsxs)("p",{style:{color:M},className:"mt-8 text-xl font-semibold",children:[A," has invited you to join ",null===O||void 0===O?void 0:O.businessName]}),(null===I||void 0===I||null===(t=I.data)||void 0===t?void 0:t.onboardingMessage)&&(0,_.jsx)("div",{style:{color:M},className:"mt-8 prose max-w-none",dangerouslySetInnerHTML:{__html:I.data.onboardingMessage}})]}):R?(0,_.jsx)(s(),{href:"/",children:(0,_.jsx)("div",{className:"max-h-20 max-w-[136px]",children:(0,_.jsx)("img",{className:"h-full w-full object-contain",src:R,alt:"logo",onError:(0,j.W)((function(e){return e.style.display="none"}))})})}):(0,_.jsx)(s(),{href:"/",children:(0,_.jsx)(w,{color:M,fontSize:"16px",fontWeight:"600",children:(0,f.N_)(null===O||void 0===O?void 0:O.businessName)})})}),(0,_.jsx)("div",{className:"grid relative h-full flex-1 justify-items-center md:min-w-max md:place-items-center",children:(0,_.jsxs)("div",{className:"w-full max-w-[460px] px-7 py-12 md:w-10/12",children:[u&&(0,_.jsxs)(g.Av,{color:"#010101",onClick:function(){return P.back()},className:"z-[100] mb-7 flex h-min items-center gap-1.5 !font-bold",children:[(0,_.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{d:"M7.2002 3.59961L4.8
1002 5.99961L7.2002 8.39961",stroke:"#010101",strokeLinecap:"round",strokeLinejoin:"round"})}),"Back"]}),(0,_.jsx)("div",{children:n}),(0,_.jsxs)("div",{className:" absolute bottom-5 mx-auto left-0 right-0 flex justify-center items-center gap-1",children:[(0,_.jsx)("span",{className:"text-sm",children:"Powered by"}),(0,_.jsx)(h.sI,{width:"100",height:"14"})]})]})})]})})})]})};var w=(0,o.ZP)(u.ZT).withConfig({displayName:"LoginPageWrapper___StyledTypography",componentId:"sc-19w4dlb-0"})(["cursor:pointer;"])},44019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,o){return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7942:function(e,t,n){"use strict";var o=n(85696);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(92648).Z,r=n(17273).Z,a=i(n(67294)),l=n(64957),s=n(57995),c=n(30647),d=n(51992),u=n(90639),f=n(44019),p=n(70227),v={};function g(e,t,n,o){if(e&&l.isLocalURL(t)){Promise.resolve(e.prefetch(t,n,o)).catch((function(e){0}));var i=o&&"undefined"!==typeof o.locale?o.locale:e&&e.locale;v[t+"%"+n+(i?"%"+i:"")]=!0}}var m=a.default.forwardRef((function(e,t){var n,i=e.href,m=e.as,h=e.children,x=e.prefetch,y=e.passHref,j=e.replace,_=e.shallow,w=e.scroll,b=e.locale,k=e.onClick,L=e.onMouseEnter,C=e.onTouchStart,N=e.legacyBehavior,q=void 0===N?!0!==Boolean(!1):N,P=r(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=h,!q||"string"!==typeof n&&"number"!==typeof n||(n=a.default.createElement("a",null,n));var O=!1!==x,E=a.default.useContext(c.RouterContext),T=a.default.useContext(d.AppRouterContext);T&&(E=T);var R,M=a.default.useMemo((function(){var e=l.resolveHref(E,i,!0),t=o(e,2),n=t[0],r=t[1];return{href:n,as:m?l.resolveHref(E,m):r||n}}),[E,i,m]),Z=M.href,I=M.as,B=a.default.useRef(Z),S=a.default.useRef(I);q&&(R=a.default.Children.only(n));var A=q?R&&"object"===typeof R&&R.ref:t,D=u.useIntersection({rootMargin:"200px"}),F=o(D,3),U=F[0],z=F[1],H=F[2],W=a.default.useCallback((function(e){S.current===I&&B.current===Z||(H(),S.current=I,B.current=Z),U(e),A&&("function"===typeof A?A(e):"object"===typeof A&&(A.current=e))}),[I,A,Z,H,U]);a.default.useEffect((function(){var e=z&&O&&l.isLocalURL(Z),t="undefined"!==typeof b?b:E&&E.locale,n=v[Z+"%"+I+(t?"%"+t:"")];e&&!n&&g(E,Z,I,{locale:t})}),[I,Z,z,b,O,E]);var K={ref:W,onClick:function(e){q||"function"!==typeof k||k(e),q&&R.props&&"function"===typeof R.props.onClick&&R.props.onClick(e),e.defaultPrevented||function(e,t,n,o,i,r,s,c,d,u){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&l.isLocalURL(n)){e.preventDefault();var f=function(){"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:r,locale:c,scroll:s}):t[i?"replace":"push"](n,{forceOptimisticNavigation:!u})};d?a.default.startTransition(f):f()}}(e,E,Z,I,j,_,w,b,Boolean(T),O)},onMouseEnter:function(e){q||"function"!==typeof L||L(e),q&&R.props&&"function"===typeof R.props.onMouseEnter&&R.props.onMouseEnter(e),!O&&T||l.isLocalURL(Z)&&g(E,Z,I,{priority:!0})},onTouchStart:function(e){q||"function"!==typeof C||C(e),q&&R.props&&"function"===typeof R.props.onTouchStart&&R.props.onTouchStart(e),!O&&T||l.isLocalURL(Z)&&g(E,Z,I,{priority:!0})}};if(!q||y||"a"===R.type&&!("href"in R.props)){var V="undefined"!==typeof b?b:E&&E.locale,X=E&&E.isLocaleDomain&&f.getDomainLocale(I,V,E.locales,E.domainLocales);K.href=X||p.addBasePath(s.addLocale(I,V,E&&E.defaultLocale))}return q?a.default.cloneElement(R,K):a.default.createElement("a",Object.assign({},P,K),n)}));t.default=m,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51992:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var o=(0,n(92648).Z)(n(67294)),i=o.default.createContext(null);t.AppRouterContext=i;var r=o.default.createContext(null);t.LayoutRouterContext=r;var a=o.default.createContext(null);t.GlobalLayoutRouterContext=a;var l=o.default.createContext(null);t.TemplateContext=l},92817:function(e,t,n){"use strict";n.r(t);var o=n(21737),i=n(73253),r=n(41392),a=n(19907),l=(n(67294),n(85893));t.default=function(){var e=(0,a.Z)().data,t=(0,r.useAuthContext)(),n=t.isLoggedIn,s=t.loading;return(0,l.jsx)(o.Z,{showBackBtn:!1,isLoading:s||n||!e,children:(0,l.jsx)(i.Z,{isFromPage:!0})})}},13959:function(e,t,n){"use strict";var o=n(67162),i=(n(67294),n(31096)),r=n(67288),a=n(85893);t.Z=function(e){var t=e.width,n=void 0===t?"140px":t,i=e.height,s=void 0===i?"140px":i,c=e.color,d=void 0===c?"":c,u=e.className,f=(0,o.vH)().textColor,p=d||f;return(0,a.jsx)(l,{fillColor:p,className:u,children:(0,a.jsx)(r.nI,{style:{width:n,height:s},src:"/lotties/loadingAnimation.lottie",loop:!0,autoplay:!0})})};var l=i.ZP.div.withConfig({displayName:"loading__Wrapper",componentId:"sc-i8pai6-0"})(["path{fill:",";}"],(function(e){return e.fillColor}))},6598:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/success-reset-password",function(){return n(92817)}])},41664:function(e,t,n){e.exports=n(7942)},4298:function(e,t,n){e.exports=n(72189)}},function(e){e.O(0,[9774,2888,179],(function(){return t=6598,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.