aril 1.1.97 → 1.2.1
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.
- package/boot/base/index.d.ts +1 -0
- package/boot/base/src/create-base-app-config.d.ts +12 -0
- package/boot/config/api/index.d.ts +1 -0
- package/boot/config/api/src/api.service.d.ts +2 -2
- package/boot/config/api/src/interfaces.d.ts +1 -19
- package/boot/config/plugins/src/interfaces.d.ts +0 -37
- package/esm2022/boot/base/aril-boot-base.mjs +5 -0
- package/esm2022/boot/base/index.mjs +2 -0
- package/esm2022/boot/base/src/create-base-app-config.mjs +30 -0
- package/esm2022/boot/config/api/index.mjs +1 -1
- package/esm2022/boot/config/api/src/api.service.mjs +5 -4
- package/esm2022/boot/config/api/src/interfaces.mjs +2 -21
- package/esm2022/boot/config/apps/src/apps.service.mjs +2 -2
- package/esm2022/boot/config/plugins/src/interfaces.mjs +1 -60
- package/esm2022/boot/config/plugins/src/plugins.service.mjs +8 -22
- package/esm2022/boot/host/src/bootstrap.mjs +8 -23
- package/esm2022/boot/mfe/src/app.component.mjs +6 -6
- package/esm2022/boot/mfe/src/bootstrap.mjs +13 -33
- package/esm2022/boot/pages/aril-boot-pages.mjs +5 -0
- package/esm2022/boot/pages/index.mjs +3 -0
- package/esm2022/{util/custom_pages → boot/pages}/src/forbidden.component.mjs +1 -1
- package/esm2022/{util/custom_pages → boot/pages}/src/notFound.component.mjs +1 -1
- package/esm2022/keycloak/src/auth.interceptor.mjs +14 -78
- package/esm2022/provider/src/prodiveHost.mjs +4 -8
- package/esm2022/provider/src/provideHostKeycloak.mjs +10 -2
- package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +1 -1
- package/esm2022/ui/chip/src/chip.component.mjs +11 -6
- package/esm2022/ui/form/src/form.component.mjs +22 -4
- package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +14 -2
- package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +3 -4
- package/fesm2022/{aril-app.component-FxPod9bE.mjs → aril-app.component-wxP3y8dg.mjs} +8 -11
- package/fesm2022/aril-app.component-wxP3y8dg.mjs.map +1 -0
- package/fesm2022/aril-boot-base.mjs +37 -0
- package/fesm2022/aril-boot-base.mjs.map +1 -0
- package/fesm2022/aril-boot-config-api.mjs +3 -22
- package/fesm2022/aril-boot-config-api.mjs.map +1 -1
- package/fesm2022/aril-boot-config-apps.mjs +1 -1
- package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
- package/fesm2022/aril-boot-config-plugins.mjs +7 -80
- package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
- package/fesm2022/aril-boot-host.mjs +7 -22
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-boot-mfe-app.component-dZp2aSTk.mjs → aril-boot-mfe-app.component-7IjAmjz0.mjs} +8 -11
- package/fesm2022/aril-boot-mfe-app.component-7IjAmjz0.mjs.map +1 -0
- package/fesm2022/{aril-boot-mfe-aril-boot-mfe-mm6nhyRL.mjs → aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs} +15 -71
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +2 -6
- package/fesm2022/aril-boot-mfe.mjs.map +1 -1
- package/fesm2022/{aril-util-custom_pages.mjs → aril-boot-pages.mjs} +1 -1
- package/fesm2022/aril-boot-pages.mjs.map +1 -0
- package/fesm2022/aril-keycloak.mjs +13 -77
- package/fesm2022/aril-keycloak.mjs.map +1 -1
- package/fesm2022/aril-provider.mjs +12 -8
- package/fesm2022/aril-provider.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-ui-business-assetPicker.mjs +13 -1
- package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-chip.mjs +10 -5
- package/fesm2022/aril-ui-chip.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +20 -3
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-util-pipes.mjs +2 -3
- package/fesm2022/aril-util-pipes.mjs.map +1 -1
- package/fesm2022/aril.mjs +14 -81
- package/fesm2022/aril.mjs.map +1 -1
- package/package.json +113 -113
- package/provider/src/prodiveHost.d.ts +2 -2
- package/theme/layout/app/site-map/site-map-sidebar.component.ts +1 -1
- package/theme/styles/layout/_fonts.scss +1 -13
- package/ui/form/src/form.component.d.ts +4 -1
- package/boot/mfe/src/loadStyles.d.ts +0 -3
- package/esm2022/boot/mfe/src/loadStyles.mjs +0 -38
- package/esm2022/util/custom_pages/aril-util-custom_pages.mjs +0 -5
- package/esm2022/util/custom_pages/index.mjs +0 -3
- package/esm2022/util/loaders/aril-util-loaders.mjs +0 -5
- package/esm2022/util/loaders/index.mjs +0 -2
- package/esm2022/util/loaders/style/style.loader.service.mjs +0 -61
- package/fesm2022/aril-app.component-FxPod9bE.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-dZp2aSTk.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-mm6nhyRL.mjs.map +0 -1
- package/fesm2022/aril-util-custom_pages.mjs.map +0 -1
- package/fesm2022/aril-util-loaders.mjs +0 -68
- package/fesm2022/aril-util-loaders.mjs.map +0 -1
- package/theme/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-BlackItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-BoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-ExtraBoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-ExtraLight.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-ExtraLightItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-Italic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-LightItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-MediumItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-SemiBoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-Thin.ttf +0 -0
- package/theme/fonts/Inter/Inter_18pt-ThinItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Black.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-BlackItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Bold.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-BoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-ExtraBold.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-ExtraBoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-ExtraLight.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-ExtraLightItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Italic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Light.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-LightItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Medium.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-MediumItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Regular.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-SemiBold.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-SemiBoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-Thin.ttf +0 -0
- package/theme/fonts/Inter/Inter_24pt-ThinItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Black.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-BlackItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Bold.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-BoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-ExtraBold.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-ExtraBoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-ExtraLight.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-ExtraLightItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Italic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Light.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-LightItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Medium.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-MediumItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Regular.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-SemiBold.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-SemiBoldItalic.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-Thin.ttf +0 -0
- package/theme/fonts/Inter/Inter_28pt-ThinItalic.ttf +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Black.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Black.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-BlackItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-BlackItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-BoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-BoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraBold.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraBold.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraBoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraBoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraLight.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraLight.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraLightItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ExtraLightItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Italic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Italic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Light.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Light.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-LightItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-LightItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-MediumItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-MediumItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-SemiBoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-SemiBoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Thin.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-Thin.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ThinItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter18pt-ThinItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Black.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Black.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-BlackItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-BlackItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Bold.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Bold.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-BoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-BoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraBold.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraBold.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraBoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraBoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraLight.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraLight.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraLightItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ExtraLightItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Italic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Italic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-LightItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-LightItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Medium.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Medium.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-MediumItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-MediumItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Regular.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Regular.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-SemiBold.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-SemiBold.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-SemiBoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-SemiBoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Thin.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-Thin.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ThinItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter24pt-ThinItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Black.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Black.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-BlackItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-BlackItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Bold.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Bold.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-BoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-BoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-ExtraBoldItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-ExtraBoldItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-ExtraLightItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-ExtraLightItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Italic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Italic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Light.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Light.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-LightItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-LightItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Medium.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Medium.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-MediumItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-MediumItalic.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Regular.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Regular.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-SemiBold.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-SemiBold.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Thin.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-Thin.woff2 +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-ThinItalic.woff +0 -0
- package/theme/fonts/Inter/woff/Inter28pt-ThinItalic.woff2 +0 -0
- package/util/loaders/index.d.ts +0 -1
- package/util/loaders/style/style.loader.service.d.ts +0 -13
- /package/{util/custom_pages → boot/pages}/index.d.ts +0 -0
- /package/{util/custom_pages → boot/pages}/src/forbidden.component.d.ts +0 -0
- /package/{util/custom_pages → boot/pages}/src/notFound.component.d.ts +0 -0
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
export { b as boot } from './aril-boot-mfe-aril-boot-mfe-
|
|
1
|
+
export { b as boot } from './aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs';
|
|
2
2
|
import '@angular/common/http';
|
|
3
3
|
import '@angular/core';
|
|
4
4
|
import '@angular/elements';
|
|
5
5
|
import '@angular/platform-browser';
|
|
6
|
-
import '@angular/platform-browser/animations';
|
|
7
6
|
import '@angular/router';
|
|
8
|
-
import 'primeng/api';
|
|
9
7
|
import 'keycloak-angular';
|
|
10
8
|
import 'ngx-monaco-editor-v2';
|
|
9
|
+
import 'aril/boot/base';
|
|
11
10
|
import 'aril/boot/bridge';
|
|
12
11
|
import 'aril/boot/config/api';
|
|
13
12
|
import 'aril/boot/config/apps';
|
|
14
13
|
import 'aril/boot/config/plugins';
|
|
15
|
-
import 'aril/http';
|
|
16
14
|
import 'aril/i18n';
|
|
17
|
-
import 'aril/keycloak';
|
|
18
15
|
import 'aril/provider';
|
|
19
|
-
import 'aril/util/loaders';
|
|
20
16
|
//# sourceMappingURL=aril-boot-mfe.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-boot-mfe.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aril-boot-mfe.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-boot-pages.mjs","sources":["../../projects/aril/boot/pages/src/notFound.component.ts","../../projects/aril/boot/pages/src/forbidden.component.ts","../../projects/aril/boot/pages/aril-boot-pages.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { ButtonModule } from 'primeng/button';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\timports: [ButtonModule, RouterModule],\r\n\ttemplate: `\r\n\t\t<svg\r\n\t\t\tviewBox=\"0 0 960 540\"\r\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\r\n\t\t\txmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n\t\t\tversion=\"1.1\"\r\n\t\t\tclass=\"min-h-screen min-w-screen fixed left-0\"\r\n\t\t\tstyle=\"bottom:-10rem\"\r\n\t\t\tpreserveAspectRatio=\"none\">\r\n\t\t\t<rect x=\"0\" y=\"0\" width=\"960\" height=\"540\" fill=\"var(--surface-ground)\"></rect>\r\n\t\t\t<path\r\n\t\t\t\td=\"M0 331L26.7 321C53.3 311 106.7 291 160 291C213.3 291 266.7 311 320 329.5C373.3 348 426.7 365 480 373.2C533.3 381.3 586.7 380.7 640 373.8C693.3 367 746.7 354 800 341.2C853.3 328.3 906.7 315.7 933.3 309.3L960 303L960 541L933.3 541C906.7 541 853.3 541 800 541C746.7 541 693.3 541 640 541C586.7 541 533.3 541 480 541C426.7 541 373.3 541 320 541C266.7 541 213.3 541 160 541C106.7 541 53.3 541 26.7 541L0 541Z\"\r\n\t\t\t\tfill=\"var(--primary-color)\"\r\n\t\t\t\tstroke-linecap=\"round\"\r\n\t\t\t\tstroke-linejoin=\"miter\"></path>\r\n\t\t</svg>\r\n\t\t<div class=\"px-5 min-h-screen flex justify-content-center align-items-center\">\r\n\t\t\t<div class=\"z-1 text-center\">\r\n\t\t\t\t<div class=\"text-900 font-bold text-8xl mb-4\">Oops!</div>\r\n\t\t\t\t<p class=\"line-height-3 mt-0 mb-5 text-700 text-xl font-medium\">Sayfa Bulunamadı</p>\r\n\t\t\t\t<p-button routerLink=\"/\" styleClass=\"p-button-dark font-medium p-button-raised\">Anasayfaya Git</p-button>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t`\r\n})\r\nexport class NotFoundComponent {}\r\n","import { Component } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { ButtonModule } from 'primeng/button';\r\n\r\nimport { TranslocoModule } from '@ngneat/transloco';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\timports: [ButtonModule, RouterModule, TranslocoModule],\r\n\ttemplate: `\r\n\t\t<ng-container *transloco=\"let t\">\r\n\t\t\t<svg\r\n\t\t\t\tviewBox=\"0 0 960 540\"\r\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\r\n\t\t\t\txmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n\t\t\t\tversion=\"1.1\"\r\n\t\t\t\tclass=\"min-h-screen min-w-screen fixed left-0\"\r\n\t\t\t\tstyle=\"bottom:-10rem\"\r\n\t\t\t\tpreserveAspectRatio=\"none\">\r\n\t\t\t\t<rect x=\"0\" y=\"0\" width=\"960\" height=\"540\" fill=\"var(--surface-ground)\"></rect>\r\n\t\t\t\t<path\r\n\t\t\t\t\td=\"M0 331L26.7 321C53.3 311 106.7 291 160 291C213.3 291 266.7 311 320 329.5C373.3 348 426.7 365 480 373.2C533.3 381.3 586.7 380.7 640 373.8C693.3 367 746.7 354 800 341.2C853.3 328.3 906.7 315.7 933.3 309.3L960 303L960 541L933.3 541C906.7 541 853.3 541 800 541C746.7 541 693.3 541 640 541C586.7 541 533.3 541 480 541C426.7 541 373.3 541 320 541C266.7 541 213.3 541 160 541C106.7 541 53.3 541 26.7 541L0 541Z\"\r\n\t\t\t\t\tfill=\"var(--primary-color)\"\r\n\t\t\t\t\tstroke-linecap=\"round\"\r\n\t\t\t\t\tstroke-linejoin=\"miter\"></path>\r\n\t\t\t</svg>\r\n\t\t\t<div class=\"px-5 min-h-screen flex justify-content-center align-items-center\">\r\n\t\t\t\t<div class=\"z-1 text-center\">\r\n\t\t\t\t\t<div class=\"text-900 font-bold text-8xl mb-4\">{{ t('forbidden.title') }}</div>\r\n\t\t\t\t\t<p class=\"line-height-3 mt-0 mb-5 text-700 text-xl font-medium\">{{ t('forbidden.message') }}</p>\r\n\t\t\t\t\t<p-button routerLink=\"/\" styleClass=\"p-button-dark font-medium p-button-raised\">{{ t('forbidden.goHome') }}</p-button>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</ng-container>\r\n\t`\r\n})\r\nexport class ForbiddenComponent {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiCa,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAzBnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBT,EAxBS,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,6XAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EA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|
-
appName = Apps.YEAP;
|
|
12
|
-
break;
|
|
13
|
-
case Apps.LENA:
|
|
14
|
-
appName = Apps.LENA;
|
|
15
|
-
break;
|
|
16
|
-
case Apps.THOR:
|
|
17
|
-
appName = Apps.THOR;
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
switch (mf) {
|
|
23
|
-
case Apps.HES:
|
|
24
|
-
case Apps.CTS:
|
|
25
|
-
case Apps.SIS:
|
|
26
|
-
appName = Apps.LENA;
|
|
27
|
-
break;
|
|
28
|
-
case Apps.CRM:
|
|
29
|
-
case Apps.BILLING:
|
|
30
|
-
case Apps.PAYMENT:
|
|
31
|
-
case Apps.WDM:
|
|
32
|
-
case Apps.MDM:
|
|
33
|
-
case Apps.DMS:
|
|
34
|
-
case Apps.MNG:
|
|
35
|
-
appName = Apps.THOR;
|
|
36
|
-
break;
|
|
37
|
-
case Apps.MW:
|
|
38
|
-
appName = Apps.YEAP;
|
|
39
|
-
break;
|
|
40
|
-
default:
|
|
41
|
-
appName = Apps.YEAP;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return appName;
|
|
45
|
-
};
|
|
46
|
-
const getAppHeader = (appName) => {
|
|
47
|
-
let appHeader = {};
|
|
48
|
-
switch (appName) {
|
|
49
|
-
case Apps.YEAP:
|
|
50
|
-
appHeader = {
|
|
51
|
-
'x-yeap-application': 'yeap',
|
|
52
|
-
'x-application': 'yeap',
|
|
53
|
-
'x-module': 'yeap-fe'
|
|
54
|
-
};
|
|
55
|
-
break;
|
|
56
|
-
case Apps.LENA:
|
|
57
|
-
appHeader = {
|
|
58
|
-
'x-yeap-application': 'lena',
|
|
59
|
-
'x-application': 'lena',
|
|
60
|
-
'x-module': 'lena-fe'
|
|
61
|
-
};
|
|
62
|
-
break;
|
|
63
|
-
case Apps.THOR:
|
|
64
|
-
appHeader = {
|
|
65
|
-
'x-yeap-application': 'thor',
|
|
66
|
-
'x-application': 'thor',
|
|
67
|
-
'x-module': 'thor-fe'
|
|
68
|
-
};
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
return appHeader;
|
|
72
|
-
};
|
|
73
|
-
const getCsrfToken = () => {
|
|
74
|
-
return document.cookie
|
|
75
|
-
.split('; ')
|
|
76
|
-
.find((row) => row.startsWith('csrf_token='))
|
|
77
|
-
?.split('=')[1];
|
|
6
|
+
const HOST_APP_HEADERS = {
|
|
7
|
+
[Apps.THOR]: { 'x-yeap-application': 'thor', 'x-application': 'thor', 'x-module': 'thor-fe' },
|
|
8
|
+
[Apps.LENA]: { 'x-yeap-application': 'lena', 'x-application': 'lena', 'x-module': 'lena-fe' },
|
|
9
|
+
[Apps.YEAP]: { 'x-yeap-application': 'yeap', 'x-application': 'yeap', 'x-module': 'yeap-fe' }
|
|
78
10
|
};
|
|
11
|
+
const isHostApp = (value) => value === Apps.THOR || value === Apps.LENA || value === Apps.YEAP;
|
|
12
|
+
const getCsrfToken = () => document.cookie
|
|
13
|
+
.split('; ')
|
|
14
|
+
.find((row) => row.startsWith('csrf_token='))
|
|
15
|
+
?.split('=')[1];
|
|
79
16
|
const authInterceptor = (req, next) => {
|
|
80
|
-
const
|
|
81
|
-
const
|
|
17
|
+
const activeHost = bridge.activeHost();
|
|
18
|
+
const headers = isHostApp(activeHost) ? HOST_APP_HEADERS[activeHost] : {};
|
|
82
19
|
const csrfToken = getCsrfToken();
|
|
83
|
-
// if (isDevMode()) return next(req);
|
|
84
20
|
const authReq = req.clone({
|
|
85
21
|
setHeaders: {
|
|
86
|
-
csrf_token: csrfToken
|
|
87
|
-
...
|
|
22
|
+
csrf_token: csrfToken ?? '',
|
|
23
|
+
...headers
|
|
88
24
|
}
|
|
89
25
|
});
|
|
90
26
|
return next(authReq);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-keycloak.mjs","sources":["../../projects/aril/keycloak/src/auth.interceptor.ts","../../projects/aril/keycloak/aril-keycloak.ts"],"sourcesContent":["import { HttpHandlerFn, HttpInterceptorFn, HttpRequest } from '@angular/common/http';\r\nimport { inject
|
|
1
|
+
{"version":3,"file":"aril-keycloak.mjs","sources":["../../projects/aril/keycloak/src/auth.interceptor.ts","../../projects/aril/keycloak/aril-keycloak.ts"],"sourcesContent":["import { HttpHandlerFn, HttpInterceptorFn, HttpRequest } from '@angular/common/http';\r\nimport { inject } from '@angular/core';\r\n\r\nimport { KeycloakBearerInterceptor } from 'keycloak-angular';\r\n\r\nimport { bridge } from 'aril/boot/bridge';\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\ntype HostApp = Apps.THOR | Apps.YEAP | Apps.LENA;\r\n\r\nconst HOST_APP_HEADERS: Record<HostApp, Readonly<Record<string, string>>> = {\r\n\t[Apps.THOR]: { 'x-yeap-application': 'thor', 'x-application': 'thor', 'x-module': 'thor-fe' },\r\n\t[Apps.LENA]: { 'x-yeap-application': 'lena', 'x-application': 'lena', 'x-module': 'lena-fe' },\r\n\t[Apps.YEAP]: { 'x-yeap-application': 'yeap', 'x-application': 'yeap', 'x-module': 'yeap-fe' }\r\n};\r\n\r\nconst isHostApp = (value: string | null | undefined): value is HostApp =>\r\n\tvalue === Apps.THOR || value === Apps.LENA || value === Apps.YEAP;\r\n\r\nconst getCsrfToken = (): string | undefined =>\r\n\tdocument.cookie\r\n\t\t.split('; ')\r\n\t\t.find((row) => row.startsWith('csrf_token='))\r\n\t\t?.split('=')[1];\r\n\r\nexport const authInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) => {\r\n\tconst activeHost = bridge.activeHost();\r\n\tconst headers = isHostApp(activeHost) ? HOST_APP_HEADERS[activeHost] : {};\r\n\tconst csrfToken = getCsrfToken();\r\n\r\n\tconst authReq = req.clone({\r\n\t\tsetHeaders: {\r\n\t\t\tcsrf_token: csrfToken ?? '',\r\n\t\t\t...headers\r\n\t\t}\r\n\t});\r\n\r\n\treturn next(authReq);\r\n};\r\n\r\nexport const keycloakAuthInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) =>\r\n\tinject(KeycloakBearerInterceptor).intercept(req, { handle: next });\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAUA,MAAM,gBAAgB,GAAsD;AAC3E,IAAA,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE;AAC7F,IAAA,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE;AAC7F,IAAA,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE;CAC7F,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAgC,KAClD,KAAK,KAAK,IAAI,CAAC,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC;AAEnE,MAAM,YAAY,GAAG,MACpB,QAAQ,CAAC,MAAM;KACb,KAAK,CAAC,IAAI,CAAC;AACX,KAAA,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7C,MAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;MAEL,eAAe,GAAsB,CAAC,GAAyB,EAAE,IAAmB,KAAI;AACpG,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;AACvC,IAAA,MAAM,OAAO,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,gBAAgB,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;AAC1E,IAAA,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;AAEjC,IAAA,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC;AACzB,QAAA,UAAU,EAAE;YACX,UAAU,EAAE,SAAS,IAAI,EAAE;AAC3B,YAAA,GAAG,OAAO;AACV,SAAA;AACD,KAAA,CAAC,CAAC;AAEH,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;AACtB,EAAE;AAEW,MAAA,uBAAuB,GAAsB,CAAC,GAAyB,EAAE,IAAmB,KACxG,MAAM,CAAC,yBAAyB,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;ACzClE;;AAEG;;;;"}
|
|
@@ -6,6 +6,8 @@ import { registerLocaleData } from '@angular/common';
|
|
|
6
6
|
import localeEn from '@angular/common/locales/en';
|
|
7
7
|
import localeTr from '@angular/common/locales/tr';
|
|
8
8
|
|
|
9
|
+
// Covers host bootstrap + Keycloak login redirect + token exchange + slow network buffer.
|
|
10
|
+
const HOST_KEYCLOAK_INIT_TIMEOUT_MS = 30000;
|
|
9
11
|
const provideHostKeycloak = (app) => {
|
|
10
12
|
return [
|
|
11
13
|
KeycloakService,
|
|
@@ -18,27 +20,29 @@ const provideHostKeycloak = (app) => {
|
|
|
18
20
|
];
|
|
19
21
|
};
|
|
20
22
|
const hostKeycloakInitializer = (keycloakService, app) => () => new Promise((resolve, reject) => {
|
|
23
|
+
let timeoutHandle;
|
|
21
24
|
const eventListener = (event) => {
|
|
25
|
+
removeEventListener(`${app}:init-keycloak`, eventListener);
|
|
26
|
+
clearTimeout(timeoutHandle);
|
|
22
27
|
try {
|
|
23
28
|
Object.assign(keycloakService, event.detail);
|
|
24
|
-
removeEventListener(`${app}:init-keycloak`, eventListener);
|
|
25
29
|
resolve();
|
|
26
30
|
}
|
|
27
31
|
catch (error) {
|
|
28
32
|
reject(error);
|
|
29
33
|
}
|
|
30
34
|
};
|
|
35
|
+
timeoutHandle = setTimeout(() => {
|
|
36
|
+
removeEventListener(`${app}:init-keycloak`, eventListener);
|
|
37
|
+
reject(new Error(`Host keycloak init for "${app}" did not complete within ${HOST_KEYCLOAK_INIT_TIMEOUT_MS}ms — host may not be mounted or the module-ready bridge is broken`));
|
|
38
|
+
}, HOST_KEYCLOAK_INIT_TIMEOUT_MS);
|
|
31
39
|
addEventListener(`${app}:init-keycloak`, eventListener);
|
|
32
40
|
dispatchEvent(new CustomEvent('module-ready', { detail: app }));
|
|
33
41
|
});
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
providers.push(provideHostKeycloak(app));
|
|
39
|
-
}
|
|
40
|
-
return providers;
|
|
41
|
-
};
|
|
43
|
+
// Host altında çağrıldığında shared keycloak ekler; MFE standalone'da
|
|
44
|
+
// (bridge.hostNgZone null) bu path zaten boot olmuyor, güvenli fallback.
|
|
45
|
+
const provideHost = (app) => bridge.hostNgZone ? [provideHostKeycloak(app)] : [];
|
|
42
46
|
|
|
43
47
|
const provideHostRouter = () => {
|
|
44
48
|
const providers = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-provider.mjs","sources":["../../projects/aril/provider/src/provideHostKeycloak.ts","../../projects/aril/provider/src/prodiveHost.ts","../../projects/aril/provider/src/prodiveHostRouter.ts","../../projects/aril/provider/src/provideLocaleId.ts","../../projects/aril/provider/aril-provider.ts"],"sourcesContent":["import { APP_INITIALIZER, Provider } from '@angular/core';\r\n\r\nimport { KeycloakService } from 'keycloak-angular';\r\n\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\nexport const provideHostKeycloak = (app: Apps): Provider => {\r\n\treturn [\r\n\t\tKeycloakService,\r\n\t\t{\r\n\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\tuseFactory: (keycloak: KeycloakService) => hostKeycloakInitializer(keycloak, app),\r\n\t\t\tdeps: [KeycloakService],\r\n\t\t\tmulti: true\r\n\t\t}\r\n\t];\r\n};\r\n\r\nexport const hostKeycloakInitializer = (keycloakService: KeycloakService, app: Apps) => () =>\r\n\tnew Promise<void>((resolve, reject) => {\r\n\t\tconst eventListener = (event: Event) => {\r\n\t\t\ttry {\r\n\t\t\t\tObject.assign(keycloakService, (event as CustomEvent).detail as KeycloakService);\r\n\t\t\t\tremoveEventListener(`${app}:init-keycloak`, eventListener);\r\n\t\t\t\
|
|
1
|
+
{"version":3,"file":"aril-provider.mjs","sources":["../../projects/aril/provider/src/provideHostKeycloak.ts","../../projects/aril/provider/src/prodiveHost.ts","../../projects/aril/provider/src/prodiveHostRouter.ts","../../projects/aril/provider/src/provideLocaleId.ts","../../projects/aril/provider/aril-provider.ts"],"sourcesContent":["import { APP_INITIALIZER, Provider } from '@angular/core';\r\n\r\nimport { KeycloakService } from 'keycloak-angular';\r\n\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\n// Covers host bootstrap + Keycloak login redirect + token exchange + slow network buffer.\r\nconst HOST_KEYCLOAK_INIT_TIMEOUT_MS = 30_000;\r\n\r\nexport const provideHostKeycloak = (app: Apps): Provider => {\r\n\treturn [\r\n\t\tKeycloakService,\r\n\t\t{\r\n\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\tuseFactory: (keycloak: KeycloakService) => hostKeycloakInitializer(keycloak, app),\r\n\t\t\tdeps: [KeycloakService],\r\n\t\t\tmulti: true\r\n\t\t}\r\n\t];\r\n};\r\n\r\nexport const hostKeycloakInitializer = (keycloakService: KeycloakService, app: Apps) => () =>\r\n\tnew Promise<void>((resolve, reject) => {\r\n\t\tlet timeoutHandle: ReturnType<typeof setTimeout>;\r\n\r\n\t\tconst eventListener = (event: Event) => {\r\n\t\t\tremoveEventListener(`${app}:init-keycloak`, eventListener);\r\n\t\t\tclearTimeout(timeoutHandle);\r\n\t\t\ttry {\r\n\t\t\t\tObject.assign(keycloakService, (event as CustomEvent).detail as KeycloakService);\r\n\t\t\t\tresolve();\r\n\t\t\t} catch (error) {\r\n\t\t\t\treject(error);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\ttimeoutHandle = setTimeout(() => {\r\n\t\t\tremoveEventListener(`${app}:init-keycloak`, eventListener);\r\n\t\t\treject(\r\n\t\t\t\tnew Error(\r\n\t\t\t\t\t`Host keycloak init for \"${app}\" did not complete within ${HOST_KEYCLOAK_INIT_TIMEOUT_MS}ms — host may not be mounted or the module-ready bridge is broken`\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}, HOST_KEYCLOAK_INIT_TIMEOUT_MS);\r\n\r\n\t\taddEventListener(`${app}:init-keycloak`, eventListener);\r\n\r\n\t\tdispatchEvent(new CustomEvent('module-ready', { detail: app }));\r\n\t});\r\n","import { EnvironmentProviders, Provider } from '@angular/core';\r\n\r\nimport { bridge } from 'aril/boot/bridge';\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\nimport { provideHostKeycloak } from './provideHostKeycloak';\r\n\r\n// Host altında çağrıldığında shared keycloak ekler; MFE standalone'da\r\n// (bridge.hostNgZone null) bu path zaten boot olmuyor, güvenli fallback.\r\nexport const provideHost = (app: Apps): Array<Provider | EnvironmentProviders> =>\r\n\tbridge.hostNgZone ? [provideHostKeycloak(app)] : [];\r\n","import { EnvironmentProviders, Provider } from '@angular/core';\r\nimport {\r\n\tRouter,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { bridge } from 'aril/boot/bridge';\r\n\r\nexport const provideHostRouter = (): Provider => {\r\n\tconst providers: Array<Provider | EnvironmentProviders> = [];\r\n\r\n\tif (bridge.hostRouter) {\r\n\t\treturn [\r\n\t\t\tprovideRouter([], withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\t{ provide: Router, useValue: bridge.hostRouter }\r\n\t\t];\r\n\t}\r\n\r\n\treturn providers;\r\n};\r\n","import { registerLocaleData } from '@angular/common';\r\nimport localeEn from '@angular/common/locales/en';\r\nimport localeTr from '@angular/common/locales/tr';\r\nimport { LOCALE_ID, Provider } from '@angular/core';\r\n\r\nregisterLocaleData(localeTr, 'tr');\r\nregisterLocaleData(localeEn, 'en');\r\n\r\nexport const provideLocaleId = (): Provider => ({\r\n\tprovide: LOCALE_ID,\r\n\tuseFactory: () => {\r\n\t\tconst userLang = localStorage.getItem('lang');\r\n\t\tif (userLang) return userLang;\r\n\r\n\t\tconst browserLang = navigator.language?.split('-')[0];\r\n\t\tif (browserLang && ['tr', 'en'].includes(browserLang)) {\r\n\t\t\treturn browserLang;\r\n\t\t}\r\n\r\n\t\treturn 'tr';\r\n\t}\r\n}); ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;AACA,MAAM,6BAA6B,GAAG,KAAM,CAAC;AAEhC,MAAA,mBAAmB,GAAG,CAAC,GAAS,KAAc;IAC1D,OAAO;QACN,eAAe;AACf,QAAA;AACC,YAAA,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,CAAC,QAAyB,KAAK,uBAAuB,CAAC,QAAQ,EAAE,GAAG,CAAC;YACjF,IAAI,EAAE,CAAC,eAAe,CAAC;AACvB,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;KACD,CAAC;AACH,EAAE;MAEW,uBAAuB,GAAG,CAAC,eAAgC,EAAE,GAAS,KAAK,MACvF,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,KAAI;AACrC,IAAA,IAAI,aAA4C,CAAC;AAEjD,IAAA,MAAM,aAAa,GAAG,CAAC,KAAY,KAAI;AACtC,QAAA,mBAAmB,CAAC,CAAG,EAAA,GAAG,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC3D,YAAY,CAAC,aAAa,CAAC,CAAC;AAC5B,QAAA,IAAI;YACH,MAAM,CAAC,MAAM,CAAC,eAAe,EAAG,KAAqB,CAAC,MAAyB,CAAC,CAAC;AACjF,YAAA,OAAO,EAAE,CAAC;SACV;QAAC,OAAO,KAAK,EAAE;YACf,MAAM,CAAC,KAAK,CAAC,CAAC;SACd;AACF,KAAC,CAAC;AAEF,IAAA,aAA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