1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[228],{40228:(e,t,a)=>{let r;a.d(t,{firebaseSignOut:()=>m,G6:()=>d});var n=a(97873),i=a(95145),o=a(41926);a(41463);var c=a(73224);let l=null;async function u(){if(void 0!==r)return r;if(!function(){let{apiBase:e,appKey:t}=o._.platform;return!!(e&&t)}()||(0,c.isBrowserExtension)())return r=null,null;let e=await fetch("/api/auth/config",{cache:"no-store"});return e.ok?r=(await e.json()).firebase??null:(r=null,null)}async function p(){let e,t=await u();if(!t?.projectId||!t.apiKey||!t.authDomain)return null;let a=`cadpeek-${t.projectId}`,r=(0,n.Dk)().find(e=>e.name===a);return e=r||(0,n.Wp)({apiKey:t.apiKey,authDomain:t.authDomain,projectId:t.projectId,appId:t.appId||void 0},a),(0,i.xI)(e)}async function s(){return l||(l=p()),l}async function d(){let e=await s();if(!e)throw Error("Firebase Auth is not configured. Enable it in platform-admin.");let t=await (0,i.df)(e,new i.HF),a=await t.user.getIdToken();if(!a)throw Error("Failed to obtain Firebase ID token");return a}async function m(){let e=await s();e&&await (0,i.CI)(e)}},41926:(e,t,a)=>{let r,n,i,o,c,l,u,p;a.d(t,{_:()=>h});var s=a(41463);function d(){return"production"}function m(e,t){let a=s.env[e]?.trim().toLowerCase();return"true"===a||"1"===a||"yes"===a||"false"!==a&&"0"!==a&&"no"!==a&&t}function f(){return m("NEXT_PUBLIC_LAUNCH_MODE",!0)}let h={appEnv:d(),isDev:"development"===d(),isProd:"production"===d(),port:Number(s.env.PORT??3800),siteUrl:"https://cadpeek.com".replace(/\/+$/,""),freeFileSizeMb:Number("50"),proFileSizeMb:Number("100"),shareTtlDays:Number(s.env.SHARE_TTL_DAYS??90),gaMeasurementId:"G-3NPFDPXWTZ".trim()??"",showBilling:!f()&&m("NEXT_PUBLIC_SHOW_BILLING",!0),showAuth:"true"===(r=s.env.NEXT_PUBLIC_SHOW_AUTH?.trim().toLowerCase())||"1"===r||"yes"===r||"false"!==r&&"0"!==r&&"no"!==r&&(!!"https://cadpeek.com/platformApi".trim()&&!!"105b0acb-72d0-4cce-91ed-56751328cc30".trim()&&!!"ak_PFUTq10QAEjtu82tW0Is1m-AgQGwLknE".trim()||!f()),cadDataBaseUrl:(n="https://cdn.jsdelivr.net/gh/mlightcad/cad-data/").endsWith("/")?n:`${n}/`,platform:(i="https://cadpeek.com/platformApi".trim().replace(/\/$/,"")??"",o="105b0acb-72d0-4cce-91ed-56751328cc30".trim()??"",{apiBase:i,appKey:o,apiKey:c="ak_PFUTq10QAEjtu82tW0Is1m-AgQGwLknE".trim()??"",enabled:!!(i&&o&&c)}),creemSupportUrl:s.env.NEXT_PUBLIC_CREEM_SUPPORT_URL?.trim()??"",platformAnalytics:(l="https://cadpeek.com/platformApi".trim().replace(/\/$/,"")??"",u="105b0acb-72d0-4cce-91ed-56751328cc30".trim()??"",{apiBase:l,appKey:u,apiKey:p="ak_PFUTq10QAEjtu82tW0Is1m-AgQGwLknE".trim()??"",enabled:!!(l&&u&&p)})}}}]);
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.