{ "version": 3, "sources": ["libs/email-ui/email-library/src/shared.ts"], "sourcesContent": ["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\n// The (relative) prefix to include in URLs for routing. E.g. if the\n// complete URL is 'https://example.com/sick/emailz/editor/TEMPLATE-123/edit'\n// then the basePath is 'sick/campaignz' because the remainder of the path\n// was constructed by this lib. See PAGE_ROUTES.\nexport const EMAIL_LIBRARY_BASE_URL_TOKEN = new InjectionToken>('com.vendasta.campaigns.base_url');\n\nexport const PAGE_ROUTES = {\n ROOT: {\n TEMPLATE_SUBROUTES: {\n EDIT: (templateID: string) => `editor/${templateID}`,\n NEW: 'editor/new',\n },\n },\n};\n"], "mappings": "yCAOO,IAAMA,EAA+B,IAAIC,EAAmC,iCAAiC,EAEvGC,EAAc,CACzBC,KAAM,CACJC,mBAAoB,CAClBC,KAAOC,GAAuB,UAAUA,CAAU,GAClDC,IAAK", "names": ["EMAIL_LIBRARY_BASE_URL_TOKEN", "InjectionToken", "PAGE_ROUTES", "ROOT", "TEMPLATE_SUBROUTES", "EDIT", "templateID", "NEW"] }