@posiwise/app-config-service 0.0.105 → 0.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"posiwise-app-config-service.mjs","names":[],"sources":["../../../../libs/app-config-service/src/lib/window-config-crypto.ts","../../../../libs/app-config-service/src/lib/app-config.service.ts","../../../../libs/app-config-service/src/lib/app-config.service.stub.ts"],"sourcesContent":["// #4218: browser-side decrypt for the window.config payload.\n//\n// Replaces `AES.decrypt(config, key)` from `crypto-js` (upstream discontinued).\n// AES-256-GCM via the WebCrypto Subtle API. The matching Node encrypt lives\n// in `config/cicd/window-config-crypto.cjs` and uses the same algorithm +\n// payload layout (base64 of IV(12 bytes) || ciphertext || authTag).\n//\n// Key derivation mirrors the encrypt side: SHA-256 of the key string yields\n// the 32-byte AES-256 key, so callers keep passing the same per-boot random\n// hex string (or legacy env override) they passed to crypto-js.\n\nconst IV_BYTES = 12;\n\nfunction base64ToBytes(base64: string): Uint8Array {\n const binary = atob(base64);\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return bytes;\n}\n\nasync function deriveKey(keyString: string, usages: ('encrypt' | 'decrypt')[]): Promise<CryptoKey> {\n const material = new TextEncoder().encode(keyString);\n const digest = await window.crypto.subtle.digest('SHA-256', material);\n return window.crypto.subtle.importKey('raw', digest, { name: 'AES-GCM' }, false, usages);\n}\n\nfunction bytesToBase64(bytes: Uint8Array): string {\n // fromCharCode is required here (not fromCodePoint) — we're mapping\n // individual bytes (0-255) to the corresponding Latin-1 characters that\n // btoa expects, NOT interpreting them as Unicode code points.\n let binary = '';\n for (const b of bytes) binary += String.fromCharCode(b);\n return btoa(binary);\n}\n\n/**\n * Encrypt `plaintext` under `keyString`, returning the same base64 payload\n * layout the Node encrypt side produces. Exported for tests + prospective\n * browser-only callers; production traffic only uses `decryptWindowConfig`.\n */\nexport async function encryptWindowConfig(plaintext: string, keyString: string): Promise<string> {\n const key = await deriveKey(keyString, ['encrypt']);\n const iv = window.crypto.getRandomValues(new Uint8Array(IV_BYTES));\n const ciphertext = await window.crypto.subtle.encrypt(\n { name: 'AES-GCM', iv },\n key,\n new TextEncoder().encode(plaintext)\n );\n const payload = new Uint8Array(IV_BYTES + ciphertext.byteLength);\n payload.set(iv, 0);\n payload.set(new Uint8Array(ciphertext), IV_BYTES);\n return bytesToBase64(payload);\n}\n\n/**\n * Decrypt `encrypted` (base64 of IV || ciphertext || authTag) under `keyString`.\n * Throws on wrong key, tampered payload, or malformed input — callers must\n * catch and route to their error path (the current callsite navigates to\n * /error-page and clears window.config).\n */\nexport async function decryptWindowConfig(encrypted: string, keyString: string): Promise<string> {\n const payload = base64ToBytes(encrypted);\n if (payload.length <= IV_BYTES) {\n throw new Error('window.config payload too short');\n }\n const iv = payload.slice(0, IV_BYTES);\n const ciphertext = payload.slice(IV_BYTES);\n const key = await deriveKey(keyString, ['decrypt']);\n const plaintext = await window.crypto.subtle.decrypt({ name: 'AES-GCM', iv }, key, ciphertext);\n return new TextDecoder().decode(plaintext);\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { OAuthLogin } from '@posiwise/common-utilities';\n\nimport isEmpty from 'lodash/isEmpty';\nimport merge from 'lodash/merge';\n// Removed PSL import - using native JavaScript instead\nimport { BehaviorSubject, of, throwError } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\nimport { getDomain } from 'tldts';\n\nimport { ApiResponse, DecryptedData } from './app-config.interface';\nimport { decryptWindowConfig } from './window-config-crypto';\n\ndeclare const window: Window & {\n config?: string;\n config_key?: string;\n oauth_login?: OAuthLogin;\n};\n\n@Injectable()\nexport class AppConfigService {\n private decryptedData;\n private googleApiKey: string;\n\n protected appConfigSubject$ = new BehaviorSubject<DecryptedData>({\n integrations: {\n google_api_key: ''\n },\n social_login_enabled: false, // Default value\n oauth_login: null // Default value\n });\n\n appConfig$ = this.appConfigSubject$.asObservable().pipe(distinctUntilChanged());\n\n constructor(\n private readonly api: HttpClient,\n private readonly router: Router\n ) {}\n\n load(environment) {\n return new Promise(resolve => {\n // SSR/prerender: no window available. Resolve with environment\n // defaults; the client-side hydration leg re-runs this with the\n // real window.config injected by server_cicd.js.\n if (typeof window === 'undefined') {\n // SSR/prerender: emit a shape-complete stub so components\n // that read config fields at class-field initializer time\n // (e.g. `this.appConfig.crm.source_id`) don't null-deref\n // during render. The client-hydration leg re-runs load()\n // with the real window.config, replacing every field.\n this.appConfigSubject$.next({\n ...environment,\n url: '/',\n domain_id: 0,\n crm: { source_id: 0, subscription_id: 0 },\n master_subscription: {\n subscription_id: 0,\n product_id: 0\n },\n trial: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n freemium: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n cs: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n coming_soon: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n integrations: {\n google_api_key: '',\n google_analytics: '',\n captcha_key_V2: '',\n captcha_key_V3: '',\n fb_app_id: '',\n crisp_code: '',\n hubspot_code: '',\n drift_code: ''\n },\n company: {\n name: '',\n title: '',\n email: '',\n street: '',\n description: '',\n keywords: '',\n logos: { main: { url: '' } }\n },\n social: {\n youtube_url: '',\n linkedin_url: '',\n facebook_url: '',\n twitter_url: '',\n instagram_url: ''\n },\n color_codes: {},\n pages_config: {\n ab_tests: [],\n resources: {\n resources_tagline: '',\n resources_image: { url: '' }\n },\n contact_us: { hubspot: [] },\n landing_page: {},\n login: {},\n register: {},\n trial: {},\n cs: {},\n coming_soon: {},\n join: {},\n about_us: {}\n },\n twitter_seo: {},\n links: { frontend_link: '' },\n main_app_title: '',\n main_tos_id: null,\n social_login_enabled: false,\n oauth_login: null\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } as any);\n return resolve(true);\n }\n // Parse domain using native JavaScript instead of PSL\n const domainName =\n getDomain(window.location.host, { allowPrivateDomains: true }) ||\n window.location.host;\n\n if (environment.production) {\n // in case of production, the config is rendered from server_cicd.js which\n // embeds window.config = config from node\n\n let isTimeout = false; // Store the timeout ID\n\n // Wait for window.config to be available\n const waitForConfig = () => {\n if (window.config) {\n // Clear any pending timeout\n isTimeout = true;\n\n // Config is ready, continue with existing logic\n of({}).subscribe(async () => {\n const { config } = window;\n\n if (!config) {\n this.router.navigate(['/error-page'], {\n state: {\n message: 'Missing window.config during app initialization'\n }\n });\n return resolve(false);\n }\n\n // Decrypt configs. The key is injected at runtime by\n // server_cicd.js in the same inline script as\n // window.config (#4179 — the key no longer ships in\n // the JS bundle). environment.metadata_encryption_key\n // remains as a transition fallback for consumers whose\n // serving layer hasn't been updated yet.\n // #4218: decrypt is now AES-256-GCM via WebCrypto\n // (previously crypto-js AES-CBC, upstream discontinued).\n // subtle.decrypt returns a Promise so the callback is\n // async; wrong key / tampered payload / malformed input\n // all reject and land in the catch below.\n const decryptionKey =\n window.config_key || environment.metadata_encryption_key;\n try {\n const plaintext = await decryptWindowConfig(config, decryptionKey);\n this.decryptedData = JSON.parse(plaintext);\n } catch {\n // Wrong key / tampered payload → route to the\n // error page instead of dying inside the subscribe\n // with a white screen.\n this.decryptedData = null;\n } finally {\n // security: never leave the key on the global scope\n delete window.config_key;\n }\n\n if (isEmpty(this.decryptedData)) {\n this.router.navigate(['/error-page'], {\n state: { message: 'This domain seems to be misconfigured' }\n });\n } else {\n this.googleApiKey = this.decryptedData.integrations.google_api_key;\n this.decryptedData = { ...environment, ...this.decryptedData };\n // security: make sure we clean the config after reading it\n delete window.config;\n\n if (this.decryptedData?.social_login_enabled) {\n window['oauth_login'] = this.decryptedData['oauth_login'];\n }\n this.appConfigSubject$.next(this.decryptedData);\n window['main_tos_id'] = this.decryptedData?.main_tos_id;\n localStorage.setItem(\n 'company_title',\n this.decryptedData?.company?.title\n );\n }\n resolve(true);\n });\n } else if (!isTimeout) {\n // Store the timeout ID so we can clear it later\n setTimeout(waitForConfig, 100);\n }\n };\n\n // Start waiting for config\n waitForConfig();\n } else {\n this.api\n .get<ApiResponse>(`/main-api/v1/domains/metadata?host_name=${domainName}`)\n .subscribe({\n next: (data: ApiResponse) => {\n if (data?.type === 'warning') {\n this.router.navigate(['/error-page'], {\n state: { message: 'This domain seems to be misconfigured' }\n });\n } else {\n const config = merge(environment, data);\n if (config?.social_login_enabled) {\n window['oauth_login'] = config['oauth_login'];\n }\n this.googleApiKey = config.integrations.google_api_key;\n this.appConfigSubject$.next(config);\n window['main_tos_id'] = config?.main_tos_id;\n localStorage.setItem('company_title', config?.company?.title);\n }\n resolve(true);\n },\n error: () => {\n return throwError(() => new Error('metadata is not called'));\n }\n });\n }\n });\n }\n\n getGoogleApiKey(): string {\n return this.googleApiKey;\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { AppConfigService } from './app-config.service';\n\n@Injectable()\nexport class AppConfigServiceStub extends AppConfigService {\n commonConfigFields = {\n join_message: null,\n product_id: 1,\n image: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image-default_shard_2022-02-17-newimg-power.png'\n },\n image2: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image2-default_shard_2022-02-17-white-label-2b.png'\n },\n image_bg: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image_bg-default_shard_2022-02-17-banner-bg.jpg'\n },\n image_bg2: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image_bg2-default_shard_2022-02-17-contact-us-bg.jpg'\n },\n video_url: 'https://www.youtube.com/embed/R7Vk219zbhA',\n book_demo_url: null,\n source_id: null,\n pdf_source_id: null,\n pdf_image: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_pdf_image-default_shard_2022-02-21-downloadpdfbook.png'\n },\n pdf_download_text:\n \"The rise of SaaS billings in today's marketplace means there has never been a more important time for MSPs to optimise cloud contract management. Download our best practice tips to manage your client contracts efficiently and with zero revenue leakage.\",\n cta_iframe:\n '\"\\\\u003ciframe src=\\\\\"https://my.upflowy.com/0jx-cloudolive?mode=standalone\\\\\"\\\\u003e\\\\u003c/iframe\\\\u003e\"',\n cs_cta_iframe:\n '\"\\\\u003ciframe src=\\\\\"https://my.upflowy.com/0jx-cloudolive?mode=standalone\\\\\"\\\\u003e\\\\u003c/iframe\\\\u003e\"',\n trial_cta_iframe:\n '\"\\\\u003ciframe src=\\\\\"https://my.upflowy.com/0jx-cloudolive?mode=standalone\\\\\"\\\\u003e\\\\u003c/iframe\\\\u003e\"'\n };\n\n config = {\n links: {\n frontend_link: 'https://www.dev.posiwise.com',\n socket_link: 'wss://main-websocket.dev.posiwise.com/',\n main_api: 'https://api-gateway.dev.posiwise.com/main-api/v1/',\n products_api: 'https://api-gateway.dev.posiwise.com/products-api/v1/',\n integrations_api: 'https://api-gateway.dev.posiwise.com/integrations-api/v1/',\n cloudolive_api: 'https://api-gateway.dev.posiwise.com/cloudolive-api/v1/',\n // Dedicated WS host for the Brain chat push socket (#45). main-api\n // surfaces it as `links.mcp_socket_link`, sourced from\n // `endpoints.brain_api.websocket_url`.\n mcp_socket_link: 'https://brain-api-websocket.dev.posiwise.com/brain-api/v1/'\n },\n url: '/',\n company: {\n number: '55 732 191 094',\n name: 'PosiWise',\n keywords: 'Innovation,Technology,ProofOfConcet,MVP,Business,Demo,Website,MobileApp,API',\n street: 'Rue des Hirondelles 15 - 1000 Brussels - Belgium',\n city: 'Brussels',\n city_code: '1000',\n state: 'Belgium',\n phone_number: '+32 (0)478 68 21 00',\n description:\n 'PosiWise - Creating positive changes in the world through innovation and wise investments.',\n email: 'info@posiwise.com',\n website: 'https://www.posiwise.com',\n blog_product_key: 'Dashboard_Demo1',\n logos: {\n header_squared_main: {\n url: null,\n version_200x200: {\n url: null\n },\n version_100x100: {\n url: null\n },\n version_50x50: {\n url: null\n }\n },\n header_squared_dark: {\n url: null,\n version_200x200: {\n url: null\n },\n version_100x100: {\n url: null\n },\n version_50x50: {\n url: null\n }\n },\n header_squared_contrast: {\n url: null,\n version_200x200: {\n url: null\n },\n version_100x100: {\n url: null\n },\n version_50x50: {\n url: null\n }\n },\n main: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/logo_main-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big.png'\n },\n main_dark: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/logo_main_dark-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big__1_.png',\n version_100x100: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/version_100x100_logo_main_dark-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big__1_.png'\n }\n },\n main_contrast: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/logo_main_contrast-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big__1_.png'\n }\n }\n },\n main_app_title:\n 'PosiWise - Creating positive changes in the world through innovation and wise investments.',\n favicon_path: 'favicon.ico',\n twitter_seo: { card: 'summary', site: '@posiwise', creator: '@posiwise' },\n color_codes: {\n first: '#f006c4',\n second: '#0fed28',\n third: '#fe8c14',\n titles: '#45d292',\n text: '#222',\n tabs_bg: '#0ceedd',\n tabs_text: '#FFFFFF',\n sidebar_bg: '#212529',\n sidebar_text: '#f70917'\n },\n social: {\n linkedin_url: 'https://www.linkedin.com',\n twitter_url: 'https://twitter.com',\n facebook_url: 'https://www.facebook.com',\n youtube_url: 'https://www.youtube.com/embed/5eV0uXjRxRs'\n },\n can_register_through_main_page: true,\n is_product_domain: true,\n social_login_enabled: true,\n main_tos_id: 1,\n crm: { subscription_id: 1, source_id: 1, product_id: 7 },\n master_subscription: { subscription_id: 1, product_id: 7 },\n signup_config: {\n coming_soon: {\n ...this.commonConfigFields\n },\n freemium: {\n ...this.commonConfigFields\n },\n trial: {\n ...this.commonConfigFields\n }\n },\n integrations: {\n sentry_config: { dsn: '' },\n drift_code: '',\n fb_app_id: '',\n captcha_key: '',\n captcha_key_V2: '',\n google_analytics: '',\n google_api_key: ''\n },\n oauth_login: {\n google: {\n client_id: ''\n },\n facebook: { client_id: '' },\n linkedin: { client_id: '' }\n }\n };\n\n override load() {\n return new Promise(resolve => {\n this.appConfigSubject$.next(this.config);\n\n resolve(true);\n });\n }\n}\n"],"mappings":";;;;;;;;;AAWA,MAAM,WAAW;AAEjB,SAAS,cAAc,QAAc;CACjC,MAAM,SAAS,KAAK,MAAM;CAC1B,MAAM,QAAQ,IAAI,WAAW,OAAO,MAAM;CAC1C,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,QAAQ,KAC/B,MAAM,KAAK,OAAO,WAAW,CAAC;CAElC,OAAO;AACX;AAEA,eAAe,UAAU,WAAmB,QAAiC;CACzE,MAAM,WAAW,IAAI,YAAW,CAAE,CAAC,OAAO,SAAS;CACnD,MAAM,SAAS,MAAM,OAAO,OAAO,OAAO,OAAO,WAAW,QAAQ;CACpE,OAAO,OAAO,OAAO,OAAO,UAAU,OAAO,QAAQ,EAAE,MAAM,UAAS,GAAI,OAAO,MAAM;AAC3F;AAoCA,eAAsB,oBAAoB,WAAmB,WAAiB;CAC1E,MAAM,UAAU,cAAc,SAAS;CACvC,IAAI,QAAQ,UAAU,UAClB,MAAM,IAAI,MAAM,iCAAiC;CAErD,MAAM,KAAK,QAAQ,MAAM,GAAG,QAAQ;CACpC,MAAM,aAAa,QAAQ,MAAM,QAAQ;CACzC,MAAM,MAAM,MAAM,UA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version":3,"file":"posiwise-app-config-service.mjs","sources":["../../../../libs/app-config-service/src/lib/window-config-crypto.ts","../../../../libs/app-config-service/src/lib/app-config.service.ts","../../../../libs/app-config-service/src/lib/app-config.service.stub.ts","../../../../libs/app-config-service/src/posiwise-app-config-service.ts"],"sourcesContent":["// #4218: browser-side decrypt for the window.config payload.\n//\n// Replaces `AES.decrypt(config, key)` from `crypto-js` (upstream discontinued).\n// AES-256-GCM via the WebCrypto Subtle API. The matching Node encrypt lives\n// in `config/cicd/window-config-crypto.cjs` and uses the same algorithm +\n// payload layout (base64 of IV(12 bytes) || ciphertext || authTag).\n//\n// Key derivation mirrors the encrypt side: SHA-256 of the key string yields\n// the 32-byte AES-256 key, so callers keep passing the same per-boot random\n// hex string (or legacy env override) they passed to crypto-js.\n\nconst IV_BYTES = 12;\n\nfunction base64ToBytes(base64: string): Uint8Array {\n const binary = atob(base64);\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return bytes;\n}\n\nasync function deriveKey(keyString: string, usages: ('encrypt' | 'decrypt')[]): Promise<CryptoKey> {\n const material = new TextEncoder().encode(keyString);\n const digest = await window.crypto.subtle.digest('SHA-256', material);\n return window.crypto.subtle.importKey('raw', digest, { name: 'AES-GCM' }, false, usages);\n}\n\nfunction bytesToBase64(bytes: Uint8Array): string {\n // fromCharCode is required here (not fromCodePoint) — we're mapping\n // individual bytes (0-255) to the corresponding Latin-1 characters that\n // btoa expects, NOT interpreting them as Unicode code points.\n let binary = '';\n for (const b of bytes) binary += String.fromCharCode(b);\n return btoa(binary);\n}\n\n/**\n * Encrypt `plaintext` under `keyString`, returning the same base64 payload\n * layout the Node encrypt side produces. Exported for tests + prospective\n * browser-only callers; production traffic only uses `decryptWindowConfig`.\n */\nexport async function encryptWindowConfig(plaintext: string, keyString: string): Promise<string> {\n const key = await deriveKey(keyString, ['encrypt']);\n const iv = window.crypto.getRandomValues(new Uint8Array(IV_BYTES));\n const ciphertext = await window.crypto.subtle.encrypt(\n { name: 'AES-GCM', iv },\n key,\n new TextEncoder().encode(plaintext)\n );\n const payload = new Uint8Array(IV_BYTES + ciphertext.byteLength);\n payload.set(iv, 0);\n payload.set(new Uint8Array(ciphertext), IV_BYTES);\n return bytesToBase64(payload);\n}\n\n/**\n * Decrypt `encrypted` (base64 of IV || ciphertext || authTag) under `keyString`.\n * Throws on wrong key, tampered payload, or malformed input — callers must\n * catch and route to their error path (the current callsite navigates to\n * /error-page and clears window.config).\n */\nexport async function decryptWindowConfig(encrypted: string, keyString: string): Promise<string> {\n const payload = base64ToBytes(encrypted);\n if (payload.length <= IV_BYTES) {\n throw new Error('window.config payload too short');\n }\n const iv = payload.slice(0, IV_BYTES);\n const ciphertext = payload.slice(IV_BYTES);\n const key = await deriveKey(keyString, ['decrypt']);\n const plaintext = await window.crypto.subtle.decrypt({ name: 'AES-GCM', iv }, key, ciphertext);\n return new TextDecoder().decode(plaintext);\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { OAuthLogin } from '@posiwise/common-utilities';\n\nimport isEmpty from 'lodash/isEmpty';\nimport merge from 'lodash/merge';\n// Removed PSL import - using native JavaScript instead\nimport { BehaviorSubject, of, throwError } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\nimport { getDomain } from 'tldts';\n\nimport { ApiResponse, DecryptedData } from './app-config.interface';\nimport { decryptWindowConfig } from './window-config-crypto';\n\ndeclare const window: Window & {\n config?: string;\n config_key?: string;\n oauth_login?: OAuthLogin;\n};\n\n@Injectable()\nexport class AppConfigService {\n private decryptedData;\n private googleApiKey: string;\n\n protected appConfigSubject$ = new BehaviorSubject<DecryptedData>({\n integrations: {\n google_api_key: ''\n },\n social_login_enabled: false, // Default value\n oauth_login: null // Default value\n });\n\n appConfig$ = this.appConfigSubject$.asObservable().pipe(distinctUntilChanged());\n\n constructor(\n private readonly api: HttpClient,\n private readonly router: Router\n ) {}\n\n load(environment) {\n return new Promise(resolve => {\n // SSR/prerender: no window available. Resolve with environment\n // defaults; the client-side hydration leg re-runs this with the\n // real window.config injected by server_cicd.js.\n if (typeof window === 'undefined') {\n // SSR/prerender: emit a shape-complete stub so components\n // that read config fields at class-field initializer time\n // (e.g. `this.appConfig.crm.source_id`) don't null-deref\n // during render. The client-hydration leg re-runs load()\n // with the real window.config, replacing every field.\n this.appConfigSubject$.next({\n ...environment,\n url: '/',\n domain_id: 0,\n crm: { source_id: 0, subscription_id: 0 },\n master_subscription: {\n subscription_id: 0,\n product_id: 0\n },\n trial: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n freemium: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n cs: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n coming_soon: {\n crm_source_id: 0,\n pdf_source_id: 0,\n subscription_id: 0,\n product_id: 0\n },\n integrations: {\n google_api_key: '',\n google_analytics: '',\n captcha_key_V2: '',\n captcha_key_V3: '',\n fb_app_id: '',\n crisp_code: '',\n hubspot_code: '',\n drift_code: ''\n },\n company: {\n name: '',\n title: '',\n email: '',\n street: '',\n description: '',\n keywords: '',\n logos: { main: { url: '' } }\n },\n social: {\n youtube_url: '',\n linkedin_url: '',\n facebook_url: '',\n twitter_url: '',\n instagram_url: ''\n },\n color_codes: {},\n pages_config: {\n ab_tests: [],\n resources: {\n resources_tagline: '',\n resources_image: { url: '' }\n },\n contact_us: { hubspot: [] },\n landing_page: {},\n login: {},\n register: {},\n trial: {},\n cs: {},\n coming_soon: {},\n join: {},\n about_us: {}\n },\n twitter_seo: {},\n links: { frontend_link: '' },\n main_app_title: '',\n main_tos_id: null,\n social_login_enabled: false,\n oauth_login: null\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } as any);\n return resolve(true);\n }\n // Parse domain using native JavaScript instead of PSL\n const domainName =\n getDomain(window.location.host, { allowPrivateDomains: true }) ||\n window.location.host;\n\n if (environment.production) {\n // in case of production, the config is rendered from server_cicd.js which\n // embeds window.config = config from node\n\n let isTimeout = false; // Store the timeout ID\n\n // Wait for window.config to be available\n const waitForConfig = () => {\n if (window.config) {\n // Clear any pending timeout\n isTimeout = true;\n\n // Config is ready, continue with existing logic\n of({}).subscribe(async () => {\n const { config } = window;\n\n if (!config) {\n this.router.navigate(['/error-page'], {\n state: {\n message: 'Missing window.config during app initialization'\n }\n });\n return resolve(false);\n }\n\n // Decrypt configs. The key is injected at runtime by\n // server_cicd.js in the same inline script as\n // window.config (#4179 — the key no longer ships in\n // the JS bundle). environment.metadata_encryption_key\n // remains as a transition fallback for consumers whose\n // serving layer hasn't been updated yet.\n // #4218: decrypt is now AES-256-GCM via WebCrypto\n // (previously crypto-js AES-CBC, upstream discontinued).\n // subtle.decrypt returns a Promise so the callback is\n // async; wrong key / tampered payload / malformed input\n // all reject and land in the catch below.\n const decryptionKey =\n window.config_key || environment.metadata_encryption_key;\n try {\n const plaintext = await decryptWindowConfig(config, decryptionKey);\n this.decryptedData = JSON.parse(plaintext);\n } catch {\n // Wrong key / tampered payload → route to the\n // error page instead of dying inside the subscribe\n // with a white screen.\n this.decryptedData = null;\n } finally {\n // security: never leave the key on the global scope\n delete window.config_key;\n }\n\n if (isEmpty(this.decryptedData)) {\n this.router.navigate(['/error-page'], {\n state: { message: 'This domain seems to be misconfigured' }\n });\n } else {\n this.googleApiKey = this.decryptedData.integrations.google_api_key;\n this.decryptedData = { ...environment, ...this.decryptedData };\n // security: make sure we clean the config after reading it\n delete window.config;\n\n if (this.decryptedData?.social_login_enabled) {\n window['oauth_login'] = this.decryptedData['oauth_login'];\n }\n this.appConfigSubject$.next(this.decryptedData);\n window['main_tos_id'] = this.decryptedData?.main_tos_id;\n localStorage.setItem(\n 'company_title',\n this.decryptedData?.company?.title\n );\n }\n resolve(true);\n });\n } else if (!isTimeout) {\n // Store the timeout ID so we can clear it later\n setTimeout(waitForConfig, 100);\n }\n };\n\n // Start waiting for config\n waitForConfig();\n } else {\n this.api\n .get<ApiResponse>(`/main-api/v1/domains/metadata?host_name=${domainName}`)\n .subscribe({\n next: (data: ApiResponse) => {\n if (data?.type === 'warning') {\n this.router.navigate(['/error-page'], {\n state: { message: 'This domain seems to be misconfigured' }\n });\n } else {\n const config = merge(environment, data);\n if (config?.social_login_enabled) {\n window['oauth_login'] = config['oauth_login'];\n }\n this.googleApiKey = config.integrations.google_api_key;\n this.appConfigSubject$.next(config);\n window['main_tos_id'] = config?.main_tos_id;\n localStorage.setItem('company_title', config?.company?.title);\n }\n resolve(true);\n },\n error: () => {\n return throwError(() => new Error('metadata is not called'));\n }\n });\n }\n });\n }\n\n getGoogleApiKey(): string {\n return this.googleApiKey;\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { AppConfigService } from './app-config.service';\n\n@Injectable()\nexport class AppConfigServiceStub extends AppConfigService {\n commonConfigFields = {\n join_message: null,\n product_id: 1,\n image: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image-default_shard_2022-02-17-newimg-power.png'\n },\n image2: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image2-default_shard_2022-02-17-white-label-2b.png'\n },\n image_bg: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image_bg-default_shard_2022-02-17-banner-bg.jpg'\n },\n image_bg2: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_image_bg2-default_shard_2022-02-17-contact-us-bg.jpg'\n },\n video_url: 'https://www.youtube.com/embed/R7Vk219zbhA',\n book_demo_url: null,\n source_id: null,\n pdf_source_id: null,\n pdf_image: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/cs_pdf_image-default_shard_2022-02-21-downloadpdfbook.png'\n },\n pdf_download_text:\n \"The rise of SaaS billings in today's marketplace means there has never been a more important time for MSPs to optimise cloud contract management. Download our best practice tips to manage your client contracts efficiently and with zero revenue leakage.\",\n cta_iframe:\n '\"\\\\u003ciframe src=\\\\\"https://my.upflowy.com/0jx-cloudolive?mode=standalone\\\\\"\\\\u003e\\\\u003c/iframe\\\\u003e\"',\n cs_cta_iframe:\n '\"\\\\u003ciframe src=\\\\\"https://my.upflowy.com/0jx-cloudolive?mode=standalone\\\\\"\\\\u003e\\\\u003c/iframe\\\\u003e\"',\n trial_cta_iframe:\n '\"\\\\u003ciframe src=\\\\\"https://my.upflowy.com/0jx-cloudolive?mode=standalone\\\\\"\\\\u003e\\\\u003c/iframe\\\\u003e\"'\n };\n\n config = {\n links: {\n frontend_link: 'https://www.dev.posiwise.com',\n socket_link: 'wss://main-websocket.dev.posiwise.com/',\n main_api: 'https://api-gateway.dev.posiwise.com/main-api/v1/',\n products_api: 'https://api-gateway.dev.posiwise.com/products-api/v1/',\n integrations_api: 'https://api-gateway.dev.posiwise.com/integrations-api/v1/',\n cloudolive_api: 'https://api-gateway.dev.posiwise.com/cloudolive-api/v1/',\n // Dedicated WS host for the Brain chat push socket (#45). main-api\n // surfaces it as `links.mcp_socket_link`, sourced from\n // `endpoints.brain_api.websocket_url`.\n mcp_socket_link: 'https://brain-api-websocket.dev.posiwise.com/brain-api/v1/'\n },\n url: '/',\n company: {\n number: '55 732 191 094',\n name: 'PosiWise',\n keywords: 'Innovation,Technology,ProofOfConcet,MVP,Business,Demo,Website,MobileApp,API',\n street: 'Rue des Hirondelles 15 - 1000 Brussels - Belgium',\n city: 'Brussels',\n city_code: '1000',\n state: 'Belgium',\n phone_number: '+32 (0)478 68 21 00',\n description:\n 'PosiWise - Creating positive changes in the world through innovation and wise investments.',\n email: 'info@posiwise.com',\n website: 'https://www.posiwise.com',\n blog_product_key: 'Dashboard_Demo1',\n logos: {\n header_squared_main: {\n url: null,\n version_200x200: {\n url: null\n },\n version_100x100: {\n url: null\n },\n version_50x50: {\n url: null\n }\n },\n header_squared_dark: {\n url: null,\n version_200x200: {\n url: null\n },\n version_100x100: {\n url: null\n },\n version_50x50: {\n url: null\n }\n },\n header_squared_contrast: {\n url: null,\n version_200x200: {\n url: null\n },\n version_100x100: {\n url: null\n },\n version_50x50: {\n url: null\n }\n },\n main: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/logo_main-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big.png'\n },\n main_dark: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/logo_main_dark-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big__1_.png',\n version_100x100: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/version_100x100_logo_main_dark-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big__1_.png'\n }\n },\n main_contrast: {\n url: 'https://posiwise-dev.s3.us-east-2.amazonaws.com/dev/public/default_shard/domain_pictures/3/logo_main_contrast-default_shard_2022-02-17-logo_main_dark-default_shard_2022-02-13-logo_text_big__1_.png'\n }\n }\n },\n main_app_title:\n 'PosiWise - Creating positive changes in the world through innovation and wise investments.',\n favicon_path: 'favicon.ico',\n twitter_seo: { card: 'summary', site: '@posiwise', creator: '@posiwise' },\n color_codes: {\n first: '#f006c4',\n second: '#0fed28',\n third: '#fe8c14',\n titles: '#45d292',\n text: '#222',\n tabs_bg: '#0ceedd',\n tabs_text: '#FFFFFF',\n sidebar_bg: '#212529',\n sidebar_text: '#f70917'\n },\n social: {\n linkedin_url: 'https://www.linkedin.com',\n twitter_url: 'https://twitter.com',\n facebook_url: 'https://www.facebook.com',\n youtube_url: 'https://www.youtube.com/embed/5eV0uXjRxRs'\n },\n can_register_through_main_page: true,\n is_product_domain: true,\n social_login_enabled: true,\n main_tos_id: 1,\n crm: { subscription_id: 1, source_id: 1, product_id: 7 },\n master_subscription: { subscription_id: 1, product_id: 7 },\n signup_config: {\n coming_soon: {\n ...this.commonConfigFields\n },\n freemium: {\n ...this.commonConfigFields\n },\n trial: {\n ...this.commonConfigFields\n }\n },\n integrations: {\n sentry_config: { dsn: '' },\n drift_code: '',\n fb_app_id: '',\n captcha_key: '',\n captcha_key_V2: '',\n google_analytics: '',\n google_api_key: ''\n },\n oauth_login: {\n google: {\n client_id: ''\n },\n facebook: { client_id: '' },\n linkedin: { client_id: '' }\n }\n };\n\n override load() {\n return new Promise(resolve => {\n this.appConfigSubject$.next(this.config);\n\n resolve(true);\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,GAAG,EAAE;AAEnB,SAAS,aAAa,CAAC,MAAc,EAAA;AACjC,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC3B,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC;AAC3C,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;IACnC;AACA,IAAA,OAAO,KAAK;AAChB;AAEA,eAAe,SAAS,CAAC,SAAiB,EAAE,MAAiC,EAAA;IACzE,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC;AACpD,IAAA,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC;IACrE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE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O,IAAG;YACzB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;YAExC,OAAO,CAAC,IAAI,CAAC;AACjB,QAAA,CAAC,CAAC;IACN;+GA9KS,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAApB,oBAAoB,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;;ACJD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@posiwise/app-config-service",
3
- "version": "0.0.105",
3
+ "version": "0.0.106",
4
4
  "peerDependencies": {
5
- "@angular/common": "^22.2.0",
6
- "@angular/core": "^22.2.0"
5
+ "@angular/common": "^21.2.19",
6
+ "@angular/core": "^21.2.19"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.6.2"
@@ -19,6 +19,5 @@
19
19
  "types": "./types/posiwise-app-config-service.d.ts",
20
20
  "default": "./fesm2022/posiwise-app-config-service.mjs"
21
21
  }
22
- },
23
- "type": "module"
22
+ }
24
23
  }