1import{r}from"./chunk-BV7QT456-CJO_OyEJ.js";import{s as a,a as U}from"./react-CuU2Z6Zn.js";if(typeof window<"u"){const e={NEXT_PUBLIC_ADMIN_HOST:"admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_URL:"https://oczkrsgrahmekkxgipeg.supabase.co",NEXT_PUBLIC_APP_URL:"https://mukhachitram.com",NEXT_PUBLIC_ADMIN_URL:"https://admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9jemtyc2dyYWhtZWtreGdpcGVnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODAzNzA1NTgsImV4cCI6MjA5NTk0NjU1OH0.3MAY-SkbEw7yBMABaSwp55xgQvUwYjJkygh8hp1Q3cQ",NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"9c58371d38204403/script.js","viewEndpoint":"9c58371d38204403/view","eventEndpoint":"9c58371d38204403/event","sessionEndpoint":"9c58371d38204403/session"},"speedInsights":{"scriptSrc":"7d3eb60e4d657af7/script.js","endpoint":"7d3eb60e4d657af7/vitals"}}'};globalThis.process??={};const n=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},e,n),{get(t,s){return s in t?t[s]:void 0},has(){return!0}})}const b="/";function p(e,n=b){if(!e||typeof e!="string")return n;let t=e.trim();if(!t.startsWith("/")||t.startsWith("//")||t.includes("\\")||t.includes("\0"))return n;try{t=decodeURIComponent(t)}catch{return n}return!t.startsWith("/")||t.startsWith("//")||/[:@]/u.test(t.slice(1))?n:t}function _(e,n=""){if(typeof window>"u")return e;const s=new URLSearchParams(n||window.location.search).get("callbackUrl");if(!s)return e;const l=p(s);return l==="/"?e:`${e}?callbackUrl=${encodeURIComponent(l)}`}if(typeof window<"u"){const e={NEXT_PUBLIC_ADMIN_HOST:"admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_URL:"https://oczkrsgrahmekkxgipeg.supabase.co",NEXT_PUBLIC_APP_URL:"https://mukhachitram.com",NEXT_PUBLIC_ADMIN_URL:"https://admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9jemtyc2dyYWhtZWtreGdpcGVnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODAzNzA1NTgsImV4cCI6MjA5NTk0NjU1OH0.3MAY-SkbEw7yBMABaSwp55xgQvUwYjJkygh8hp1Q3cQ",NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"9c58371d38204403/script.js","viewEndpoint":"9c58371d38204403/view","eventEndpoint":"9c58371d38204403/event","sessionEndpoint":"9c58371d38204403/session"},"speedInsights":{"scriptSrc":"7d3eb60e4d657af7/script.js","endpoint":"7d3eb60e4d657af7/vitals"}}'};globalThis.process??={};const n=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},e,n),{get(t,s){return s in t?t[s]:void 0},has(){return!0}})}function u(){try{return typeof window<"u"&&window.self!==window.top}catch{return!0}}function d(e,n){const t=new URLSearchParams({provider:e}),s=p(n);s&&s!=="/"&&t.set("callbackUrl",s),window.location.href="/__create/social-dev-shim?"+t}function o(e,n,t="/"){return p(e??n,t)}function f(){const e=typeof window<"u"?new URLSearchParams(window.location.search).get("callbackUrl"):null,n=r.useCallback(c=>a("credentials-signin",{...c,callbackUrl:o(e,c?.callbackUrl,"/account/post-signin")}),[e]),t=r.useCallback(c=>a("credentials-signup",{...c,callbackUrl:o(e,c?.callbackUrl,"/account/post-signup")}),[e]),s=r.useCallback(c=>{const i=o(e,c?.callbackUrl);return u()?d("google",i):a("google",{...c,callbackUrl:i})},[e]),l=r.useCallback(c=>{const i=o(e,c?.callbackUrl);return u()?d("facebook",i):a("facebook",{...c,callbackUrl:i})},[e]),I=r.useCallback(c=>{const i=o(e,c?.callbackUrl);return u()?d("twitter",i):a("twitter",{...c,callbackUrl:i})},[e]),h=r.useCallback(c=>{const i=o(e,c?.callbackUrl);return u()?d("apple",i):a("apple",{...c,callbackUrl:i})},[e]);return{signInWithCredentials:n,signUpWithCredentials:t,signInWithGoogle:s,signInWithFacebook:l,signInWithTwitter:I,signInWithApple:h,signOut:U}}export{_ as a,f as u};
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.