PageSourceSearch

https://ecomitram.org/_next/static/chunks/app/login/page-29c5154e19bc2679.js

js ecomitram.org collected 2026-10-10 01:45:41 UTC 10,962 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{13765:(e,t,r)=>{Promise.resolve().then(r.bind(r,55151)),Promise.resolve().then(r.bind(r,70160))},17060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(39423)._(r(29332));function l(e,t){var r;let l={};"function"==typeof e&&(l.loader=e);let s={...l,...t};return(0,n.default)({...s,modules:null==(r=s.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18093:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(84157);function l(){return(0,n.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,n.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,n.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,n.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}},19998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(23168).createAsyncLocalStorage)()},20510:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41865);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:d,iconNode:c,...f}=e;return(0,n.createElement)("svg",{ref:t,...a,width:s,height:s,stroke:r,strokeWidth:o?24*Number(i)/Number(s):i,className:l("lucide",u),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(f)&&{"aria-hidden":"true"},...f},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:o,...u}=r;return(0,n.createElement)(i,{ref:a,iconNode:t,className:l("lucide-".concat(s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),o),...u})});return r.displayName=s(e),r}},23168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return i}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let l="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return l?new l:new n}function a(e){return l?l.bind(e):n.bind(e)}function i(){return l?l.snapshot():function(e,...t){return e(...t)}}},25493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(19998)},29332:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(84157),l=r(41865),s=r(84339);function a(e){return{default:e&&"default"in e?e.default:e}}r(42030);let i={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},o=function(e){let t={...i,...e},r=(0,l.lazy)(()=>t.loader().then(a)),o=t.loading;function u(e){let a=o?(0,n.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,u=i?l.Suspense:l.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...i?{fallback:a}:{},children:d})}return u.displayName="LoadableComponent",u}},42030:(e,t,r)=>{"use strict";function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(84157),r(11804),r(25493),r(30732)},49199:(e,t,r)=>{"use strict";r.d(t,{default:()=>l.a});var n=r(17060),l=r.n(n)},55151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DevLoginFormLoader:()=>s});var n=r(84157);let l=(0,r(49199).default)(()=>Promise.all([r.e(4262),r.e(7708),r.e(3743),r.e(3271),r.e(8208),r.e(6019)]).then(r.bind(r,6019)).then(e=>({default:e.DevLoginForm})),{loadableGenerated:{webpack:()=>[6019]},ssr:!1});function s(){return(0,n.jsx)(l,{})}},58544:(e,t,r)=>{"use strict";r.d(t,{UF:()=>a,d4:()=>u,es:()=>o});var n=r(84157),l=r(41865),s=r(85374);function a(e){let{mergedFromGuest:t,name:r,autoDismissMs:s,onDismiss:a}=e,[i,o]=(0,l.useState)(!0),u=null!=s?s:t?7e3:5e3;return((0,l.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{o(!1),null==a||a()},u);return()=>clearTimeout(e)},[i,u,a]),i)?t?(0,n.jsxs)("div",{"data-testid":"post-sign-in-toast","data-merged":"true",role:"status","aria-live":"polite",children:[(0,n.jsxs)("p",{children:["Welcome back, ",null!=r?r:"there","!"]}),(0,n.jsx)("p",{children:"We merged your guest activity into your existing account."})]}):(0,n.jsx)("div",{"data-testid":"post-sign-in-toast","data-merged":"false",role:"status","aria-live":"polite",children:(0,n.jsx)("p",{children:"Email verified. You can now post and comment."})}):null}let i="post-sign-in-toast";function o(){let e=(0,s._A)(i);if(!e)return null;(0,s.Un)(i);try{return JSON.parse(e)}catch(e){return null}}function u(e){(0,s.YZ)(i,JSON.stringify(e))}},60501:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(20510).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},70160:(e,t,r)=>{"use strict";r.d(t,{AuthChooserScreen:()=>h});var n=r(84157),l=r(41865),s=r(62733),a=r.n(s),i=r(74062),o=r(60501),u=r(92213),d=r(44996),c=r(4993),f=r(58544),m=r(18093);function p(e){return(0,u.jp)(null,e,"signed-in",!0)}function h(e){var t;let{icon:r,heading:s,description:h}=e,x=(0,i.useRouter)(),g=(0,i.useSearchParams)(),b=null!=(t=null==g?void 0:g.get("redirect"))?t:null,y=(null==g?void 0:g.get("verify"))==="true",{state:j,loading:v,user:w}=(0,d.useAuth)(),{signIn:N}=(0,d.useAuthActions)(),[_,k]=(0,l.useState)(null),[C,P]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!v){if("verified"===j)return void x.replace(p(b));"anonymous"!==j||y||x.replace(p(b))}},[v,j,y,b,x]),(0,l.useEffect)(()=>{!v&&"verified"!==j&&("anonymous"!==j||y)&&(0,c.prewarmGooglePopup)()},[v,j,y]);let A=!y&&"anonymous"!==j,O=y&&"anonymous"===j?"Upgrade your account":s,S=(0,l.useCallback)(()=>{x.push((0,u.V)("/login/email",b))},[x,b]),E=(0,l.useCallback)(()=>{x.push((0,u.V)("/login/guest",b))},[x,b]),M=(0,l.useCallback)(async()=>{k(null),P(!0);let e=(null==w?void 0:w.type)==="anon";try{let t=await N("google");if(!t)return;let{user:r,mergedFromGuest:n}=t;(0,f.d4)({mergedFromGuest:n||e,name:r.name});let l=(0,u.jp)(null,b,r.name,r.profileComplete);x.push(l)}catch(e){k(e instanceof Error?e.message:"Google sign-in failed")}finally{P(!1)}},[x,b,N,null==w?void 0:w.type]);return v||"verified"===j||"anonymous"===j&&!y?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,n.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-primary-soft text-primary",children:r}),(0,n.jsx)("h1",{className:"font-sans text-xl font-semibold text-foreground",children:O}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:h})]}),(0,n.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:E,className:"h-12 w-full rounded-xl bg-primary px-4 text-sm font-semibold text-primary-foreground",children:"Continue as Guest"}),(0,n.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted-foreground","aria-hidden":"true",children:[(0,n.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,n.jsx)("span",{children:"or sign in with"}),(0,n.jsx)("span",{className:"h-px flex-1 bg-border"})]})]}),(0,n.jsx)("button",{type:"button",onClick:M,disabled:C,"aria-busy":C,className:"h-12 w-full rounded-xl border border-border bg-card px-4 text-sm font-semibold text-foreground disabled:opacity-50",children:(0,n.jsxs)("span",{className:"inline-flex items-center justify-center gap-2",children:[(0,n.jsx)(m.N,{}),"Continue with Google"]})}),(0,n.jsx)("button",{type:"button",onClick:S,className:"h-12 w-full rounded-xl border border-border bg-card px-4 text-sm font-semibold text-foreground",children:"Continue with Email / OTP"}),_&&(0,n.jsxs)("div",{role:"alert",className:"flex items-start justify-between gap-2 rounded-lg border border-destructive/40 bg-destructive/5 px-3 py-2",children:[(0,n.jsxs)("div",{className:"text-sm text-destructive",children:[(0,n.jsx)("p",{children:_}),/popup-blocked/i.test(_)&&(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Allow popups for this site, then try again."})]}),(0,n.jsx)("button",{type:"button",onClick:()=>k(null),"aria-label":"Dismiss",className:"-mr-1 inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground hover:bg-muted",children:(0,n.jsx)(o.A,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),(0,n.jsxs)("p",{className:"text-center text-xs text-muted-foreground",children:["By continuing you agree to our"," ",(0,n.jsx)(a(),{href:"/page/terms",prefetch:!1,className:"underline py-2 -my-2 inline-block",children:"Terms"})," ","and"," ",(0,n.jsx)(a(),{href:"/page/privacy",prefetch:!1,className:"underline py-2 -my-2 inline-block",children:"Privacy Policy"}),"."]})]})}},84339:(e,t,r)=>{"use strict";function n(e){let{reason:t,children:r}=e;return r}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(19671)}},e=>{e.O(0,[520,2733,8737,8079,4996,6341,3902,7358],()=>e(e.s=13765)),_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.