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B,IAAMC,EAAA,WAAO,wBAAyC,2EACxD,EACAK,SAAUP,EAAMC,KAAK,IAAMC,EAAA,WAAO,wBAAmC,8EAAC,EACtEM,qBAAsBR,EAAMC,KAC1B,IAAMC,EAAA,WAAO,4BAAgD,0DAC/D,EACAO,mBAAoBT,EAAMC,KACxB,IAAMC,EAAA,WAAO,0BAA8C,8EAC7D,EACAQ,2BAA4BV,EAAMC,KAChC,IAAMC,EAAA,WAAO,wBAAuD,4BACtE,EACAS,+BAAgCX,EAAMC,KACpC,IACEC,EAAA,WAAO,4BAA2D,8EACtE,EACAU,eAAgBZ,EAAMC,KACpB,IAAMC,EAAA,WAAO,8BAAyC,qEACxD,EACAW,2BAA4Bb,EAAMC,KAChC,IAAMC,EAAA,WAAO,4BAAsD,0DACrE,EACAY,oBAAqBd,EAAMC,KACzB,IAAMC,EAAA,WAAO,qBAA+C,EAC9D,qEACF,CAEJ,EClFO,SAASc,EAASC,EAAkB,CACzC,MAAO,CAAC,QAAQ,EAAEC,SAASD,CAAQ,CACrC,CCEO,MAAME,EAAcA,IAAM,CACzB,MAAEF,YAAaG,EAAW,EAE1BC,EACJJ,KAAYtB,EACRA,EAAcsB,CAAoB,EAClCtB,EAAcoB,QAEb,OACLE,SAAUA,GAAY,GACtBD,SAAUA,EAASC,CAAQ,EAC3BnB,MAAOuB,EAAavB,MACpBD,MAAOwB,EAAaxB,KACtB,CACF","names":["clientsConfig","mobile","title","pages","Root","React","lazy","__vitePreload","Login","LoginMagicLink","LoginMagicLinkConfirmation","LoginPassword","Register","RegisterConfirmation","RegisterOnboarding","RegisterOnboardingComplete","RegisterOnboardingCollaborator","ForgotPassword","ForgotPasswordConfirmation","ForgotPasswordReset","default","isMobile","clientId","includes","useClientId","useGlobals","clientConfig"],"ignoreList":[],"sources":["../../../app/config/clients.config.ts","../../../app/modules/support/clientId.ts","../../../app/hooks/useClientId.ts"],"sourcesContent":["import type { ComponentType, LazyExoticComponent } from \"react\";\nimport React from \"react\";\n\nexport const clientsConfig = {\n mobile: {\n title: \"Winamp Player\",\n pages: {\n Root: React.lazy(() => import(\"~/clients/mobile/routes/Root\")),\n Login: React.lazy(() => import(\"~/clients/mobile/routes/Login\")),\n LoginMagicLink: React.lazy(\n () => import(\"~/clients/mobile/routes/Login/MagicLink\"),\n ),\n LoginMagicLinkConfirmation: React.lazy(\n () => import(\"~/clients/mobile/routes/Login/MagicLink/Confirmation\"),\n ),\n LoginPassword: React.lazy(\n () => import(\"~/clients/mobile/routes/Login/Password\"),\n ),\n Register: React.lazy(() => import(\"~/clients/mobile/routes/Register\")),\n RegisterConfirmation: React.lazy(\n () => import(\"~/clients/mobile/routes/Register/Confirmation\"),\n ),\n RegisterOnboarding: React.lazy(\n () => import(\"~/clients/mobile/routes/Register/Onboarding\"),\n ),\n RegisterOnboardingComplete: React.lazy(\n () => import(\"~/clients/mobile/routes/Register/Onboarding/Complete\"),\n ),\n RegisterOnboardingCollaborator: React.lazy(\n () =>\n import(\"~/clients/mobile/routes/Register/Onboarding/Collaborator\"),\n ),\n ForgotPassword: React.lazy(\n () => import(\"~/clients/mobile/routes/ForgotPassword\"),\n ),\n ForgotPasswordConfirmation: React.lazy(\n () => import(\"~/clients/mobile/routes/ForgotPassword/Confirmation\"),\n ),\n ForgotPasswordReset: React.lazy(\n () => import(\"~/clients/mobile/routes/ForgotPassword/Reset\"),\n ),\n },\n },\n default: {\n title: \"Winamp for Creators\",\n pages: {\n Root: React.lazy(() => import(\"~/clients/default/routes/Root\")),\n Login: React.lazy(() => import(\"~/clients/default/routes/Login\")),\n LoginMagicLink: React.lazy(\n () => import(\"~/clients/default/routes/Login/MagicLink\"),\n ),\n LoginMagicLinkConfirmation: React.lazy(\n () => import(\"~/clients/default/routes/Login/MagicLink/Confirmation\"),\n ),\n LoginPassword: React.lazy(\n () => import(\"~/clients/default/routes/Login/Password\"),\n ),\n Register: React.lazy(() => import(\"~/clients/default/routes/Register\")),\n RegisterConfirmation: React.lazy(\n () => import(\"~/clients/default/routes/Register/Confirmation\"),\n ),\n RegisterOnboarding: React.lazy(\n () => import(\"~/clients/default/routes/Register/Onboarding\"),\n ),\n RegisterOnboardingComplete: React.lazy(\n () => import(\"~/clients/default/routes/Register/Onboarding/Complete\"),\n ),\n RegisterOnboardingCollaborator: React.lazy(\n () =>\n import(\"~/clients/default/routes/Register/Onboarding/Collaborator\"),\n ),\n ForgotPassword: React.lazy(\n () => import(\"~/clients/default/routes/ForgotPassword\"),\n ),\n ForgotPasswordConfirmation: React.lazy(\n () => import(\"~/clients/default/routes/ForgotPassword/Confirmation\"),\n ),\n ForgotPasswordReset: React.lazy(\n () => import(\"~/clients/default/routes/ForgotPassword/Reset\"),\n ),\n },\n },\n} satisfies Record;\n\nexport type ClientId = \"mobile\" | \"default\";\ntype Page =\n | \"Root\"\n | \"Login\"\n | \"LoginMagicLink\"\n | \"LoginMagicLinkConfirmation\"\n | \"LoginPassword\"\n | \"Register\"\n | \"RegisterConfirmation\"\n | \"RegisterOnboarding\"\n | \"RegisterOnboardingComplete\"\n | \"RegisterOnboardingCollaborator\"\n | \"ForgotPassword\"\n | \"ForgotPasswordConfirmation\"\n | \"ForgotPasswordReset\";\n\ntype ClientConfig = {\n title: string;\n pages: Record>;\n};\n","export function isMobile(clientId: string) {\n return [\"mobile\"].includes(clientId);\n}\n","import { type ClientId, clientsConfig } from \"~/config/clients.config\";\nimport { isMobile } from \"~/modules/support/clientId\";\nimport { useGlobals } from \"./useGlobals\";\n\nexport const useClientId = () => {\n const { clientId } = useGlobals();\n\n const clientConfig =\n clientId in clientsConfig\n ? clientsConfig[clientId as ClientId]\n : clientsConfig.default;\n\n return {\n clientId: clientId ?? \"\",\n isMobile: isMobile(clientId),\n pages: clientConfig.pages,\n title: clientConfig.title,\n };\n};\n"],"file":"assets/useClientId-DqnRkArE.js"}