@transcommerce/cwm-shared 1.1.36 → 1.1.40
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/fesm2022/transcommerce-cwm-shared.mjs +313 -316
- package/fesm2022/transcommerce-cwm-shared.mjs.map +1 -1
- package/lib/models/config/api-config.d.ts +1 -0
- package/lib/models/config/auth-config.d.ts +12 -4
- package/lib/models/config/carousel-config.d.ts +1 -0
- package/lib/models/config/configuration.d.ts +1 -0
- package/lib/models/config/menu-board-config.d.ts +1 -0
- package/lib/models/config/subscription-config.d.ts +8 -0
- package/lib/models/customer.d.ts +1 -0
- package/lib/models/inventory-api-response.d.ts +1 -0
- package/lib/models/log-levels.d.ts +6 -1
- package/lib/models/profile.d.ts +1 -0
- package/lib/models/slide.d.ts +1 -0
- package/lib/services/class-logger.service.d.ts +4 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/lib/models/config/display-config.d.ts +0 -14
- package/lib/models/config/msalLoginPrompts.d.ts +0 -5
|
@@ -47,8 +47,8 @@ class ExternalNavigationComponent {
|
|
|
47
47
|
this.navigateToExternalUrl();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
51
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExternalNavigationComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ExternalNavigationComponent, isStandalone: false, selector: "cwm-external-navigation", ngImport: i0, template: `<div class="container">
|
|
52
52
|
<h3>Enter the destination route, URL, or Href you want and press the button that uses the navigation method of your choosing:</h3>
|
|
53
53
|
<input id="txtRoute" type="text" [(ngModel)]="route" placeholder="Enter the destination route, URL, or Href..."
|
|
54
54
|
(keydown)="onKeyPress($event)"/>
|
|
@@ -59,7 +59,7 @@ class ExternalNavigationComponent {
|
|
|
59
59
|
<button (click)="navigateToExternalHref()">Navigate to external Href</button>
|
|
60
60
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ExternalNavigationComponent, decorators: [{
|
|
63
63
|
type: Component,
|
|
64
64
|
args: [{
|
|
65
65
|
selector: 'cwm-external-navigation',
|
|
@@ -96,19 +96,19 @@ class NavigateToRouteComponent {
|
|
|
96
96
|
this.navigateToRoute();
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
100
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
99
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NavigateToRouteComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: NavigateToRouteComponent, isStandalone: false, selector: "cwm-navigate-to-route", ngImport: i0, template: "<div class=\"container\">\n <h2>Enter the route you want to navigate to:</h2>\n <input id=\"txtRoute\" type=\"text\" [(ngModel)]=\"route\" placeholder=\"Enter Route...\"\n (keydown)=\"onKeyPress($event)\"/>\n <button (click)=\"navigateToRoute()\">Navigate</button>\n</div>\n``\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
101
101
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NavigateToRouteComponent, decorators: [{
|
|
103
103
|
type: Component,
|
|
104
104
|
args: [{ selector: 'cwm-navigate-to-route', standalone: false, template: "<div class=\"container\">\n <h2>Enter the route you want to navigate to:</h2>\n <input id=\"txtRoute\" type=\"text\" [(ngModel)]=\"route\" placeholder=\"Enter Route...\"\n (keydown)=\"onKeyPress($event)\"/>\n <button (click)=\"navigateToRoute()\">Navigate</button>\n</div>\n``\n", styles: [":host{display:block}\n"] }]
|
|
105
105
|
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
106
106
|
|
|
107
107
|
class PageNotFoundComponent {
|
|
108
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
109
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
108
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PageNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: PageNotFoundComponent, isStandalone: false, selector: "cwm-page-not-found", ngImport: i0, template: "<p>\n Page Not Found\n</p>\n", styles: [""] });
|
|
110
110
|
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PageNotFoundComponent, decorators: [{
|
|
112
112
|
type: Component,
|
|
113
113
|
args: [{ selector: 'cwm-page-not-found', standalone: false, template: "<p>\n Page Not Found\n</p>\n" }]
|
|
114
114
|
}] });
|
|
@@ -313,10 +313,10 @@ class DbKeys {
|
|
|
313
313
|
static SHOW_DASHBOARD_NOTIFICATIONS = 'show_dashboard_notifications';
|
|
314
314
|
static SHOW_DASHBOARD_TODO = 'show_dashboard_todo';
|
|
315
315
|
static SHOW_DASHBOARD_BANNER = 'show_dashboard_banner';
|
|
316
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
317
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DbKeys, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
317
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DbKeys });
|
|
318
318
|
}
|
|
319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DbKeys, decorators: [{
|
|
320
320
|
type: Injectable
|
|
321
321
|
}] });
|
|
322
322
|
|
|
@@ -997,13 +997,79 @@ class Utilities {
|
|
|
997
997
|
static convertToAbsoluteUrl(url) {
|
|
998
998
|
return Utilities.testIsAbsoluteUrl(url) ? url : '//' + url;
|
|
999
999
|
}
|
|
1000
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1001
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1000
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Utilities, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1001
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Utilities });
|
|
1002
1002
|
}
|
|
1003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Utilities, decorators: [{
|
|
1004
1004
|
type: Injectable
|
|
1005
1005
|
}] });
|
|
1006
1006
|
|
|
1007
|
+
const DEFAULT_API_CONFIG = {
|
|
1008
|
+
"apiBaseUrl": "https://cheap-weed-menus-webapi.azurewebsites.net",
|
|
1009
|
+
"addCustomerApiRoute": "/AddCustomer",
|
|
1010
|
+
"addSubscriptionApiRoute": "/subscription",
|
|
1011
|
+
"getInventoryApiRoute": "/inventory",
|
|
1012
|
+
"apiKey": "8b66d117-5d23-4b81-8c2f-52142c67d0cd",
|
|
1013
|
+
"clientId": "5dd15878-aa4c-4adf-8650-b931f32a7b67",
|
|
1014
|
+
"locationId": "10f19fc5-31d0-4d76-bad4-ad593c9803ae"
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
const DEFAULT_AUTH_CONFIG = {
|
|
1018
|
+
logLevel: "Info",
|
|
1019
|
+
clientId: "af1486e0-a27f-4c8d-8503-0752d90ce72d",
|
|
1020
|
+
tenantId: "72950c7a-314c-4ce9-87e5-a9866db20070",
|
|
1021
|
+
authority: "https://cwmcustomers.ciamlogin.com/72950c7a-314c-4ce9-87e5-a9866db20070",
|
|
1022
|
+
scopes: "openid,email,profile",
|
|
1023
|
+
redirect_uri: window.location.origin,
|
|
1024
|
+
logout_redirect_uri: window.location.origin + '/logout',
|
|
1025
|
+
prompt: "login",
|
|
1026
|
+
msalDiagnosticsEnabled: true,
|
|
1027
|
+
showPii: true,
|
|
1028
|
+
configConnectString: "Endpoint=https://cheap-weed-menus-appconfig.azconfig.io;Id=7F0m;Secret=7X8pkinp53tA8d4o2LfGUMHBWo54o68jYUSS7JcOnyQmh2lDXetkJQQJ99BEAC8vTInIcYexAAACAZAC2P1s"
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
const DEFAULT_CAROUSEL_CONFIG = {
|
|
1032
|
+
"slidesToShow": 3,
|
|
1033
|
+
"slidesToScroll": 1,
|
|
1034
|
+
"dots": false,
|
|
1035
|
+
"infinite": true,
|
|
1036
|
+
"autoplay": true,
|
|
1037
|
+
"autoplaySpeed": 10000,
|
|
1038
|
+
"speed": 500,
|
|
1039
|
+
"arrows": false
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
const DEFAULT_MENU_BOARD_CONFIG = {
|
|
1043
|
+
"amountToScroll": 1,
|
|
1044
|
+
"autoScrollTimeout": 20,
|
|
1045
|
+
"dataAgeThreshold": 300000
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
const DEFAULT_SLIDE = {
|
|
1049
|
+
"image": "../../../assets/images/tuesday.png",
|
|
1050
|
+
"title": "Doobie Tuesday",
|
|
1051
|
+
"description": "10% off all pre-rolls & packs<",
|
|
1052
|
+
"highlighted": false,
|
|
1053
|
+
"textColor": "black",
|
|
1054
|
+
"backgroundColor": "white"
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
const DEFAULT_CONFIGURATION = {
|
|
1058
|
+
companyName: 'Test Weed Dispensary',
|
|
1059
|
+
authConfig: DEFAULT_AUTH_CONFIG,
|
|
1060
|
+
apiConfig: DEFAULT_API_CONFIG,
|
|
1061
|
+
menuBoardConfig: DEFAULT_MENU_BOARD_CONFIG,
|
|
1062
|
+
footerCarouselConfig: DEFAULT_CAROUSEL_CONFIG,
|
|
1063
|
+
footerCarouselSlideConfig: [DEFAULT_SLIDE]
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
const DEFAULT_SUBSCRIPTION_CONFIG = {
|
|
1067
|
+
amount: 0.01,
|
|
1068
|
+
days: 30,
|
|
1069
|
+
totalOccurrences: 12,
|
|
1070
|
+
trialOccurrences: 0
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1007
1073
|
var CardTypes;
|
|
1008
1074
|
(function (CardTypes) {
|
|
1009
1075
|
CardTypes["Amex"] = "Amex";
|
|
@@ -1072,6 +1138,20 @@ class Profile {
|
|
|
1072
1138
|
return to;
|
|
1073
1139
|
}
|
|
1074
1140
|
}
|
|
1141
|
+
const DEFAULT_PROFILE = {
|
|
1142
|
+
"companyName": "Test Weed Dispensary",
|
|
1143
|
+
"businessPhones": ["503.555.1212"],
|
|
1144
|
+
"displayName": "Demo User",
|
|
1145
|
+
"givenName": "Demo",
|
|
1146
|
+
"id": "1",
|
|
1147
|
+
"jobTitle": "Budtender",
|
|
1148
|
+
"mail": "demo@app.cheapweedmenu.com",
|
|
1149
|
+
"mobilePhone": "503.555.1212",
|
|
1150
|
+
"photoUrl": "",
|
|
1151
|
+
"preferredLanguage": "en-us",
|
|
1152
|
+
"surname": "User",
|
|
1153
|
+
"userPrincipalName": "demo@app.cheapweedmenu.com"
|
|
1154
|
+
};
|
|
1075
1155
|
|
|
1076
1156
|
class Customer {
|
|
1077
1157
|
id;
|
|
@@ -1120,131 +1200,27 @@ class Customer {
|
|
|
1120
1200
|
return to;
|
|
1121
1201
|
}
|
|
1122
1202
|
}
|
|
1203
|
+
const DEFAULT_CUSTOMER = {
|
|
1204
|
+
"apiClientId": "5dd15878-aa4c-4adf-8650-b931f32a7b67",
|
|
1205
|
+
"apiLocationId": "10f19fc5-31d0-4d76-bad4-ad593c9803ae",
|
|
1206
|
+
"companyName": "Test Weed Dispensary",
|
|
1207
|
+
"emailAddress": "demo@app.cheapweedmenu.com",
|
|
1208
|
+
"id": "1",
|
|
1209
|
+
"phoneNumber": "5035551212",
|
|
1210
|
+
"jobTitle": "Budtender",
|
|
1211
|
+
"userType": UserTypes.Administrator,
|
|
1212
|
+
"displayName": "Demo User",
|
|
1213
|
+
"givenName": "Demo",
|
|
1214
|
+
"surName": "User",
|
|
1215
|
+
"streetAddress": "123 Any Street",
|
|
1216
|
+
"city": "Anytown",
|
|
1217
|
+
"state": "OR",
|
|
1218
|
+
"postalCode": "12345",
|
|
1219
|
+
"country": "USA",
|
|
1220
|
+
"subscriptionId": "1"
|
|
1221
|
+
};
|
|
1123
1222
|
|
|
1124
|
-
|
|
1125
|
-
(function (Justifications) {
|
|
1126
|
-
Justifications["Left"] = "left";
|
|
1127
|
-
Justifications["Right"] = "right";
|
|
1128
|
-
Justifications["Center"] = "center";
|
|
1129
|
-
Justifications["Absolute"] = "absolute";
|
|
1130
|
-
})(Justifications || (Justifications = {}));
|
|
1131
|
-
|
|
1132
|
-
var LoggingVerbosity;
|
|
1133
|
-
(function (LoggingVerbosity) {
|
|
1134
|
-
LoggingVerbosity["Error"] = "Error";
|
|
1135
|
-
LoggingVerbosity["Warning"] = "Warn";
|
|
1136
|
-
LoggingVerbosity["Debug"] = "Debug";
|
|
1137
|
-
LoggingVerbosity["Information"] = "Info";
|
|
1138
|
-
LoggingVerbosity["None"] = "None";
|
|
1139
|
-
})(LoggingVerbosity || (LoggingVerbosity = {}));
|
|
1140
|
-
|
|
1141
|
-
var NamedColors;
|
|
1142
|
-
(function (NamedColors) {
|
|
1143
|
-
NamedColors["Red"] = "red";
|
|
1144
|
-
NamedColors["Green"] = "green";
|
|
1145
|
-
NamedColors["Blue"] = "blue";
|
|
1146
|
-
NamedColors["Yellow"] = "yellow";
|
|
1147
|
-
NamedColors["Black"] = "black";
|
|
1148
|
-
NamedColors["White"] = "white";
|
|
1149
|
-
})(NamedColors || (NamedColors = {}));
|
|
1150
|
-
|
|
1151
|
-
class OnElementStyle {
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
class Product {
|
|
1155
|
-
id;
|
|
1156
|
-
name;
|
|
1157
|
-
description;
|
|
1158
|
-
brand;
|
|
1159
|
-
price;
|
|
1160
|
-
thcPercentage;
|
|
1161
|
-
category;
|
|
1162
|
-
quantity;
|
|
1163
|
-
type;
|
|
1164
|
-
pictureURL;
|
|
1165
|
-
terpenes;
|
|
1166
|
-
static FromFlowhubProduct(from) {
|
|
1167
|
-
const to = new Product();
|
|
1168
|
-
to.id = from.productId;
|
|
1169
|
-
to.name = from.productName;
|
|
1170
|
-
to.description = from.productDescription;
|
|
1171
|
-
to.brand = from.brand;
|
|
1172
|
-
to.price = from.postTaxPriceInPennies;
|
|
1173
|
-
to.thcPercentage = 30;
|
|
1174
|
-
to.category = from.category;
|
|
1175
|
-
to.quantity = from.quantity;
|
|
1176
|
-
to.pictureURL = from.productPictureURL;
|
|
1177
|
-
to.terpenes = from.terpenes;
|
|
1178
|
-
return to;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
class SafeHtmlPipe {
|
|
1183
|
-
sanitizer;
|
|
1184
|
-
constructor(sanitizer) {
|
|
1185
|
-
this.sanitizer = sanitizer;
|
|
1186
|
-
}
|
|
1187
|
-
transform(value) {
|
|
1188
|
-
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
1189
|
-
}
|
|
1190
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1191
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: SafeHtmlPipe, isStandalone: false, name: "safeHtml" });
|
|
1192
|
-
}
|
|
1193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
1194
|
-
type: Pipe,
|
|
1195
|
-
args: [{
|
|
1196
|
-
name: 'safeHtml',
|
|
1197
|
-
standalone: false
|
|
1198
|
-
}]
|
|
1199
|
-
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
1200
|
-
|
|
1201
|
-
class CwmSharedModule {
|
|
1202
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CwmSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1203
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: CwmSharedModule, declarations: [ExternalNavigationComponent,
|
|
1204
|
-
NavigateToRouteComponent,
|
|
1205
|
-
PageNotFoundComponent,
|
|
1206
|
-
SafeHtmlPipe], imports: [CommonModule,
|
|
1207
|
-
MsalModule,
|
|
1208
|
-
BrowserModule,
|
|
1209
|
-
FormsModule], exports: [CommonModule,
|
|
1210
|
-
MsalModule,
|
|
1211
|
-
ExternalNavigationComponent,
|
|
1212
|
-
NavigateToRouteComponent,
|
|
1213
|
-
PageNotFoundComponent,
|
|
1214
|
-
SafeHtmlPipe] });
|
|
1215
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CwmSharedModule, imports: [CommonModule,
|
|
1216
|
-
MsalModule,
|
|
1217
|
-
BrowserModule,
|
|
1218
|
-
FormsModule, CommonModule,
|
|
1219
|
-
MsalModule] });
|
|
1220
|
-
}
|
|
1221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CwmSharedModule, decorators: [{
|
|
1222
|
-
type: NgModule,
|
|
1223
|
-
args: [{
|
|
1224
|
-
declarations: [
|
|
1225
|
-
ExternalNavigationComponent,
|
|
1226
|
-
NavigateToRouteComponent,
|
|
1227
|
-
PageNotFoundComponent,
|
|
1228
|
-
SafeHtmlPipe
|
|
1229
|
-
],
|
|
1230
|
-
imports: [
|
|
1231
|
-
CommonModule,
|
|
1232
|
-
MsalModule,
|
|
1233
|
-
BrowserModule,
|
|
1234
|
-
FormsModule
|
|
1235
|
-
],
|
|
1236
|
-
exports: [
|
|
1237
|
-
CommonModule,
|
|
1238
|
-
MsalModule,
|
|
1239
|
-
ExternalNavigationComponent,
|
|
1240
|
-
NavigateToRouteComponent,
|
|
1241
|
-
PageNotFoundComponent,
|
|
1242
|
-
SafeHtmlPipe
|
|
1243
|
-
]
|
|
1244
|
-
}]
|
|
1245
|
-
}] });
|
|
1246
|
-
|
|
1247
|
-
const MockInventoryApiResponse = {
|
|
1223
|
+
const DEFAULT_INVENTORY_API_RESPONSE = {
|
|
1248
1224
|
"status": 200,
|
|
1249
1225
|
"data": [
|
|
1250
1226
|
{
|
|
@@ -26990,163 +26966,172 @@ const MockInventoryApiResponse = {
|
|
|
26990
26966
|
]
|
|
26991
26967
|
};
|
|
26992
26968
|
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
"
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
"authority": "https://cwmcustomers.ciamlogin.com/72950c7a-314c-4ce9-87e5-a9866db20070",
|
|
27001
|
-
"scopes": "openid,email,profile",
|
|
27002
|
-
"redirect_uri": "https://localhost:4280",
|
|
27003
|
-
"logout_redirect_uri": "https://localhost:4280/logout",
|
|
27004
|
-
"msalDiagnosticsEnabled": true,
|
|
27005
|
-
"showPii": true,
|
|
27006
|
-
"prompt": "login"
|
|
27007
|
-
},
|
|
27008
|
-
"apiConfig": {
|
|
27009
|
-
"apiBaseUrl": "https://cheap-weed-menus-webapi.azurewebsites.net",
|
|
27010
|
-
"addCustomerApiRoute": "/AddCustomer",
|
|
27011
|
-
"addSubscriptionApiRoute": "/subscription",
|
|
27012
|
-
"getInventoryApiRoute": "/inventory",
|
|
27013
|
-
"apiKey": "8b66d117-5d23-4b81-8c2f-52142c67d0cd",
|
|
27014
|
-
"clientId": "5dd15878-aa4c-4adf-8650-b931f32a7b67",
|
|
27015
|
-
"locationId": "10f19fc5-31d0-4d76-bad4-ad593c9803ae"
|
|
27016
|
-
},
|
|
27017
|
-
"menuBoardConfig": {
|
|
27018
|
-
"amountToScroll": 1,
|
|
27019
|
-
"autoScrollTimeout": 20,
|
|
27020
|
-
"dataAgeThreshold": 300000
|
|
27021
|
-
},
|
|
27022
|
-
"footerCarouselConfig": {
|
|
27023
|
-
"slidesToShow": 3,
|
|
27024
|
-
"slidesToScroll": 1,
|
|
27025
|
-
"dots": false,
|
|
27026
|
-
"infinite": true,
|
|
27027
|
-
"autoplay": true,
|
|
27028
|
-
"autoplaySpeed": 10000,
|
|
27029
|
-
"speed": 500,
|
|
27030
|
-
"arrows": false
|
|
27031
|
-
},
|
|
27032
|
-
"footerCarouselSlideConfig": [
|
|
27033
|
-
{
|
|
27034
|
-
"image": "../../../assets/images/sunday.png",
|
|
27035
|
-
"title": "CBD Sunday",
|
|
27036
|
-
"description": "20% off all CBD products & house pre-rolls",
|
|
27037
|
-
"highlighted": false,
|
|
27038
|
-
"textColor": "white",
|
|
27039
|
-
"backgroundColor": "black"
|
|
27040
|
-
},
|
|
27041
|
-
{
|
|
27042
|
-
"image": "../../../assets/images/new-monday.jpg",
|
|
27043
|
-
"title": "Edible Monday",
|
|
27044
|
-
"description": "10% off edibles",
|
|
27045
|
-
"highlighted": false,
|
|
27046
|
-
"textColor": "white",
|
|
27047
|
-
"backgroundColor": "black"
|
|
27048
|
-
},
|
|
27049
|
-
{
|
|
27050
|
-
"image": "../../../assets/images/tuesday.png",
|
|
27051
|
-
"title": "Doobie Tuesday",
|
|
27052
|
-
"description": "10% off all pre-rolls & packs<",
|
|
27053
|
-
"highlighted": false,
|
|
27054
|
-
"textColor": "black",
|
|
27055
|
-
"backgroundColor": "white"
|
|
27056
|
-
},
|
|
27057
|
-
{
|
|
27058
|
-
"image": "../../../assets/images/wednesday.png",
|
|
27059
|
-
"title": "Weed Crush Wednesday",
|
|
27060
|
-
"description": "10% off all jar bud",
|
|
27061
|
-
"highlighted": false,
|
|
27062
|
-
"textColor": "black",
|
|
27063
|
-
"backgroundColor": "white"
|
|
27064
|
-
},
|
|
27065
|
-
{
|
|
27066
|
-
"image": "../../../assets/images/thursday.png",
|
|
27067
|
-
"title": "Thirsty Thursday",
|
|
27068
|
-
"description": "10% off Tinctures, RSO & cartridges",
|
|
27069
|
-
"highlighted": false,
|
|
27070
|
-
"textColor": "black",
|
|
27071
|
-
"backgroundColor": "white"
|
|
27072
|
-
},
|
|
27073
|
-
{
|
|
27074
|
-
"image": "../../../assets/images/friday.png",
|
|
27075
|
-
"title": "Fire Friday",
|
|
27076
|
-
"description": "10% off all jar bud",
|
|
27077
|
-
"highlighted": false,
|
|
27078
|
-
"textColor": "black",
|
|
27079
|
-
"backgroundColor": "white"
|
|
27080
|
-
},
|
|
27081
|
-
{
|
|
27082
|
-
"image": "../../../assets/images/saturday.png",
|
|
27083
|
-
"title": "Shatterday Saturday",
|
|
27084
|
-
"description": "10% off all concentrate",
|
|
27085
|
-
"highlighted": false,
|
|
27086
|
-
"textColor": "white",
|
|
27087
|
-
"backgroundColor": "black"
|
|
27088
|
-
}
|
|
27089
|
-
]
|
|
27090
|
-
};
|
|
26969
|
+
var Justifications;
|
|
26970
|
+
(function (Justifications) {
|
|
26971
|
+
Justifications["Left"] = "left";
|
|
26972
|
+
Justifications["Right"] = "right";
|
|
26973
|
+
Justifications["Center"] = "center";
|
|
26974
|
+
Justifications["Absolute"] = "absolute";
|
|
26975
|
+
})(Justifications || (Justifications = {}));
|
|
27091
26976
|
|
|
27092
|
-
|
|
27093
|
-
|
|
27094
|
-
"
|
|
27095
|
-
"
|
|
27096
|
-
"
|
|
27097
|
-
"
|
|
27098
|
-
"
|
|
27099
|
-
|
|
27100
|
-
"mobilePhone": "503.555.1212",
|
|
27101
|
-
"photoUrl": "",
|
|
27102
|
-
"preferredLanguage": "en-us",
|
|
27103
|
-
"surname": "User",
|
|
27104
|
-
"userPrincipalName": "demo@app.cheapweedmenu.com"
|
|
27105
|
-
};
|
|
26977
|
+
var LoggingVerbosity;
|
|
26978
|
+
(function (LoggingVerbosity) {
|
|
26979
|
+
LoggingVerbosity["Error"] = "Error";
|
|
26980
|
+
LoggingVerbosity["Warning"] = "Warn";
|
|
26981
|
+
LoggingVerbosity["Debug"] = "Debug";
|
|
26982
|
+
LoggingVerbosity["Information"] = "Info";
|
|
26983
|
+
LoggingVerbosity["None"] = "None";
|
|
26984
|
+
})(LoggingVerbosity || (LoggingVerbosity = {}));
|
|
27106
26985
|
|
|
27107
|
-
|
|
27108
|
-
|
|
27109
|
-
"
|
|
27110
|
-
"
|
|
27111
|
-
"
|
|
27112
|
-
"
|
|
27113
|
-
"
|
|
27114
|
-
"
|
|
27115
|
-
|
|
27116
|
-
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
26986
|
+
var NamedColors;
|
|
26987
|
+
(function (NamedColors) {
|
|
26988
|
+
NamedColors["Red"] = "red";
|
|
26989
|
+
NamedColors["Green"] = "green";
|
|
26990
|
+
NamedColors["Blue"] = "blue";
|
|
26991
|
+
NamedColors["Yellow"] = "yellow";
|
|
26992
|
+
NamedColors["Black"] = "black";
|
|
26993
|
+
NamedColors["White"] = "white";
|
|
26994
|
+
})(NamedColors || (NamedColors = {}));
|
|
26995
|
+
|
|
26996
|
+
class OnElementStyle {
|
|
26997
|
+
}
|
|
26998
|
+
|
|
26999
|
+
class Product {
|
|
27000
|
+
id;
|
|
27001
|
+
name;
|
|
27002
|
+
description;
|
|
27003
|
+
brand;
|
|
27004
|
+
price;
|
|
27005
|
+
thcPercentage;
|
|
27006
|
+
category;
|
|
27007
|
+
quantity;
|
|
27008
|
+
type;
|
|
27009
|
+
pictureURL;
|
|
27010
|
+
terpenes;
|
|
27011
|
+
static FromFlowhubProduct(from) {
|
|
27012
|
+
const to = new Product();
|
|
27013
|
+
to.id = from.productId;
|
|
27014
|
+
to.name = from.productName;
|
|
27015
|
+
to.description = from.productDescription;
|
|
27016
|
+
to.brand = from.brand;
|
|
27017
|
+
to.price = from.postTaxPriceInPennies;
|
|
27018
|
+
to.thcPercentage = 30;
|
|
27019
|
+
to.category = from.category;
|
|
27020
|
+
to.quantity = from.quantity;
|
|
27021
|
+
to.pictureURL = from.productPictureURL;
|
|
27022
|
+
to.terpenes = from.terpenes;
|
|
27023
|
+
return to;
|
|
27024
|
+
}
|
|
27025
|
+
}
|
|
27026
|
+
|
|
27027
|
+
class SafeHtmlPipe {
|
|
27028
|
+
sanitizer;
|
|
27029
|
+
constructor(sanitizer) {
|
|
27030
|
+
this.sanitizer = sanitizer;
|
|
27031
|
+
}
|
|
27032
|
+
transform(value) {
|
|
27033
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
27034
|
+
}
|
|
27035
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
27036
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: SafeHtmlPipe, isStandalone: false, name: "safeHtml" });
|
|
27037
|
+
}
|
|
27038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
27039
|
+
type: Pipe,
|
|
27040
|
+
args: [{
|
|
27041
|
+
name: 'safeHtml',
|
|
27042
|
+
standalone: false
|
|
27043
|
+
}]
|
|
27044
|
+
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
27045
|
+
|
|
27046
|
+
class CwmSharedModule {
|
|
27047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CwmSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27048
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: CwmSharedModule, declarations: [ExternalNavigationComponent,
|
|
27049
|
+
NavigateToRouteComponent,
|
|
27050
|
+
PageNotFoundComponent,
|
|
27051
|
+
SafeHtmlPipe], imports: [CommonModule,
|
|
27052
|
+
MsalModule,
|
|
27053
|
+
BrowserModule,
|
|
27054
|
+
FormsModule], exports: [CommonModule,
|
|
27055
|
+
MsalModule,
|
|
27056
|
+
ExternalNavigationComponent,
|
|
27057
|
+
NavigateToRouteComponent,
|
|
27058
|
+
PageNotFoundComponent,
|
|
27059
|
+
SafeHtmlPipe] });
|
|
27060
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CwmSharedModule, imports: [CommonModule,
|
|
27061
|
+
MsalModule,
|
|
27062
|
+
BrowserModule,
|
|
27063
|
+
FormsModule, CommonModule,
|
|
27064
|
+
MsalModule] });
|
|
27065
|
+
}
|
|
27066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CwmSharedModule, decorators: [{
|
|
27067
|
+
type: NgModule,
|
|
27068
|
+
args: [{
|
|
27069
|
+
declarations: [
|
|
27070
|
+
ExternalNavigationComponent,
|
|
27071
|
+
NavigateToRouteComponent,
|
|
27072
|
+
PageNotFoundComponent,
|
|
27073
|
+
SafeHtmlPipe
|
|
27074
|
+
],
|
|
27075
|
+
imports: [
|
|
27076
|
+
CommonModule,
|
|
27077
|
+
MsalModule,
|
|
27078
|
+
BrowserModule,
|
|
27079
|
+
FormsModule
|
|
27080
|
+
],
|
|
27081
|
+
exports: [
|
|
27082
|
+
CommonModule,
|
|
27083
|
+
MsalModule,
|
|
27084
|
+
ExternalNavigationComponent,
|
|
27085
|
+
NavigateToRouteComponent,
|
|
27086
|
+
PageNotFoundComponent,
|
|
27087
|
+
SafeHtmlPipe
|
|
27088
|
+
]
|
|
27089
|
+
}]
|
|
27090
|
+
}] });
|
|
27091
|
+
|
|
27092
|
+
const MockInventoryApiResponse = DEFAULT_INVENTORY_API_RESPONSE;
|
|
27093
|
+
|
|
27094
|
+
const MockConfig = DEFAULT_CONFIGURATION;
|
|
27095
|
+
|
|
27096
|
+
const MockProfile = DEFAULT_PROFILE;
|
|
27097
|
+
|
|
27098
|
+
const MockCustomer = DEFAULT_CUSTOMER;
|
|
27126
27099
|
|
|
27127
27100
|
/*
|
|
27128
|
-
*The ClassLoggerService is really just a wrapper around the existing console logging functionality
|
|
27129
|
-
*
|
|
27130
|
-
*
|
|
27131
|
-
*
|
|
27132
|
-
*
|
|
27133
|
-
*
|
|
27101
|
+
* The ClassLoggerService is really just a wrapper around the existing console logging functionality
|
|
27102
|
+
* It is not intended to be used as a singleton service, but rather to be instantiated for each class that needs logging.
|
|
27103
|
+
* For that reason, it is registered with DI as a plain Injectable service, not a Root Injectable service.
|
|
27104
|
+
* The four main reasons for using this service are:
|
|
27105
|
+
* 1. The abstraction layer will allow us to pick a different logging endpoint if needed
|
|
27106
|
+
* 2. This service allows you to specify what level of verbosity you want this service to log with
|
|
27107
|
+
* 3. Has logic to log classname, method entry, and method exit points automagically
|
|
27108
|
+
* 4. Keeps track of the call stack and can group nested method calls if collapseGroups is set to true
|
|
27134
27109
|
*/
|
|
27135
27110
|
class ClassLoggerService {
|
|
27111
|
+
// Determines what level of verbosity you want this service to log with.
|
|
27112
|
+
// This can be set to 'None', 'Error', 'Warn', 'Info', 'Debug', or 'Trace'.
|
|
27136
27113
|
logLevel = 'Info';
|
|
27114
|
+
// Determine if method entry and exit points should be logged in collapsed groups
|
|
27137
27115
|
collapseGroups = true;
|
|
27116
|
+
// This will contain the class name.
|
|
27138
27117
|
_className = "";
|
|
27118
|
+
// Gets the class name
|
|
27139
27119
|
get className() {
|
|
27140
27120
|
return this._className;
|
|
27141
27121
|
}
|
|
27122
|
+
// Sets the class name and logs the method name as the constructor.
|
|
27142
27123
|
set className(value) {
|
|
27143
27124
|
this._className = value;
|
|
27144
27125
|
this.methodName = "constructor()";
|
|
27145
27126
|
}
|
|
27127
|
+
// This will contain the call stack of all the method names from this class that got ua to this method.
|
|
27128
|
+
// The top of the stack will be the method that called the current method, and so on down the call stack
|
|
27146
27129
|
callStack = new Stack();
|
|
27130
|
+
// This gets the method name that is currently being executed for the top of the call stack.
|
|
27147
27131
|
get methodName() {
|
|
27148
27132
|
return this.callStack.peek() ?? "";
|
|
27149
27133
|
}
|
|
27134
|
+
// This sets the method name that is currently being executed for the top of the call stack amd logs the method entry point.
|
|
27150
27135
|
set methodName(value) {
|
|
27151
27136
|
if (this.logLevel === 'None') {
|
|
27152
27137
|
return;
|
|
@@ -27161,53 +27146,65 @@ class ClassLoggerService {
|
|
|
27161
27146
|
else
|
|
27162
27147
|
console.group(this.targetName);
|
|
27163
27148
|
console.time(this.targetName);
|
|
27164
|
-
this.
|
|
27149
|
+
this.trace("Start of method");
|
|
27165
27150
|
}
|
|
27166
27151
|
}
|
|
27152
|
+
// This is used to signal the end of a method and logs the method exit point.
|
|
27153
|
+
// It also pops the current method off the top of the call stack
|
|
27167
27154
|
endOfMethod() {
|
|
27168
|
-
this.
|
|
27155
|
+
this.trace("End of method");
|
|
27169
27156
|
console.groupEnd();
|
|
27170
27157
|
console.timeEnd(this.targetName);
|
|
27171
27158
|
this.callStack.pop();
|
|
27172
27159
|
}
|
|
27160
|
+
// This will contain the class name and method name.
|
|
27173
27161
|
get targetName() {
|
|
27174
27162
|
if (this.methodName === "")
|
|
27175
27163
|
return this.className;
|
|
27176
27164
|
else
|
|
27177
27165
|
return `${this.className}.${this.methodName}`;
|
|
27178
27166
|
}
|
|
27167
|
+
// Prefix used for all log messages.
|
|
27168
|
+
// It contains the date and time of the log message, the class name, and the method name.
|
|
27179
27169
|
get prefix() {
|
|
27180
27170
|
return `${new Date().toLocaleString()} ${this.targetName}> `;
|
|
27181
27171
|
}
|
|
27182
|
-
|
|
27183
|
-
|
|
27184
|
-
|
|
27172
|
+
// This will only contain Errors
|
|
27173
|
+
error(message, ...optionalParams) {
|
|
27174
|
+
if (this.logLevel === 'Error') {
|
|
27175
|
+
console.error(`${this.prefix} Error: ${message}`, optionalParams);
|
|
27185
27176
|
}
|
|
27186
27177
|
}
|
|
27187
|
-
|
|
27188
|
-
|
|
27189
|
-
|
|
27178
|
+
// This will Warnings and Errors
|
|
27179
|
+
warn(message, ...optionalParams) {
|
|
27180
|
+
if (this.logLevel === 'Warn' || this.logLevel === 'Error') {
|
|
27181
|
+
console.warn(`${this.prefix} Warning: ${message}`, optionalParams);
|
|
27190
27182
|
}
|
|
27191
27183
|
}
|
|
27184
|
+
// Default log level. This will contain Information, Warnings, and Error.
|
|
27185
|
+
// This is used to provide general information about app flow but shouldn't contain values.
|
|
27192
27186
|
info(message, ...optionalParams) {
|
|
27193
|
-
if (this.logLevel === '
|
|
27187
|
+
if (this.logLevel === 'Info' || this.logLevel === 'Warn' || this.logLevel === 'Error') {
|
|
27194
27188
|
console.info(`${this.prefix} Information: ${message}`, optionalParams);
|
|
27195
27189
|
}
|
|
27196
27190
|
}
|
|
27197
|
-
|
|
27198
|
-
|
|
27199
|
-
|
|
27191
|
+
// Useful for debugging, This will contain Debug, Information, Warnings, and Error.
|
|
27192
|
+
// If actual values are put in the logs, this should be chosen; they may need to be sanitized
|
|
27193
|
+
debug(message, ...optionalParams) {
|
|
27194
|
+
if (this.logLevel === 'Debug' || this.logLevel === 'Info' || this.logLevel === 'Warn' || this.logLevel === 'Error') {
|
|
27195
|
+
console.debug(`${this.prefix} Debug: ${message}`, optionalParams);
|
|
27200
27196
|
}
|
|
27201
27197
|
}
|
|
27202
|
-
|
|
27198
|
+
// The highest verbosity should log a crazy number of records. This will contain Trace, Debug, Information, Warnings, and Error (Any level other than None). they may need to be sanitized
|
|
27199
|
+
trace(message, ...optionalParams) {
|
|
27203
27200
|
if (this.logLevel != 'None') {
|
|
27204
|
-
console.
|
|
27201
|
+
console.log(`${this.prefix} Trace: ${message}`, optionalParams);
|
|
27205
27202
|
}
|
|
27206
27203
|
}
|
|
27207
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27208
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27204
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27205
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService });
|
|
27209
27206
|
}
|
|
27210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService, decorators: [{
|
|
27211
27208
|
type: Injectable
|
|
27212
27209
|
}] });
|
|
27213
27210
|
|
|
@@ -27304,10 +27301,10 @@ class ConfigService {
|
|
|
27304
27301
|
this.logger.debug("Saved Configuration to Azure App Configuration");
|
|
27305
27302
|
this.logger.methodName = "";
|
|
27306
27303
|
}
|
|
27307
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27308
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ConfigService, deps: [{ token: ClassLoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27305
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ConfigService, providedIn: 'root' });
|
|
27309
27306
|
}
|
|
27310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ConfigService, decorators: [{
|
|
27311
27308
|
type: Injectable,
|
|
27312
27309
|
args: [{
|
|
27313
27310
|
providedIn: 'root'
|
|
@@ -27333,10 +27330,10 @@ class BaseApiService {
|
|
|
27333
27330
|
this.httpClient = httpClient;
|
|
27334
27331
|
this.logger = logger;
|
|
27335
27332
|
}
|
|
27336
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27337
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseApiService, deps: [{ token: ConfigService }, { token: i2$1.HttpClient }, { token: ClassLoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27334
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseApiService, providedIn: 'root' });
|
|
27338
27335
|
}
|
|
27339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseApiService, decorators: [{
|
|
27340
27337
|
type: Injectable,
|
|
27341
27338
|
args: [{
|
|
27342
27339
|
providedIn: 'root'
|
|
@@ -27353,10 +27350,10 @@ class CustomerApiService extends BaseApiService {
|
|
|
27353
27350
|
this.config = (await this.configService.getConfigAsync(companyName)).apiConfig;
|
|
27354
27351
|
return;
|
|
27355
27352
|
}
|
|
27356
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27357
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomerApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
27354
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomerApiService, providedIn: 'root' });
|
|
27358
27355
|
}
|
|
27359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomerApiService, decorators: [{
|
|
27360
27357
|
type: Injectable,
|
|
27361
27358
|
args: [{
|
|
27362
27359
|
providedIn: 'root'
|
|
@@ -27382,16 +27379,16 @@ class InventoryApiService extends BaseApiService {
|
|
|
27382
27379
|
this.logger.methodName = "getProductsAsync()";
|
|
27383
27380
|
let response;
|
|
27384
27381
|
this.configService.mockData = this.useMockData;
|
|
27385
|
-
this.logger.
|
|
27382
|
+
this.logger.debug("Fetching Configuration for Company", companyName);
|
|
27386
27383
|
this.config = (await this.configService.getConfigAsync(companyName)).apiConfig;
|
|
27387
|
-
this.logger.
|
|
27384
|
+
this.logger.debug("Fetching Products for Company", companyName);
|
|
27388
27385
|
if (this.useMockData) {
|
|
27389
27386
|
response = Promise.resolve(MockInventoryApiResponse);
|
|
27390
|
-
this.logger.
|
|
27387
|
+
this.logger.debug("Mock Data Returned", response);
|
|
27391
27388
|
}
|
|
27392
27389
|
else {
|
|
27393
27390
|
response = firstValueFrom(this.httpClient.get(this.apiFullUrl, { headers: this.httpHeaders }));
|
|
27394
|
-
this.logger.
|
|
27391
|
+
this.logger.debug("Inventory API Response", response);
|
|
27395
27392
|
}
|
|
27396
27393
|
this.logger.methodName = "";
|
|
27397
27394
|
return response;
|
|
@@ -27419,10 +27416,10 @@ class InventoryApiService extends BaseApiService {
|
|
|
27419
27416
|
return productsByAllCategories;
|
|
27420
27417
|
}
|
|
27421
27418
|
;
|
|
27422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27423
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: InventoryApiService, deps: [{ token: ConfigService }, { token: i2$1.HttpClient }, { token: ClassLoggerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27420
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: InventoryApiService, providedIn: 'root' });
|
|
27424
27421
|
}
|
|
27425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: InventoryApiService, decorators: [{
|
|
27426
27423
|
type: Injectable,
|
|
27427
27424
|
args: [{
|
|
27428
27425
|
providedIn: 'root'
|
|
@@ -27700,10 +27697,10 @@ class LocalStorageService {
|
|
|
27700
27697
|
this.initEvent.complete();
|
|
27701
27698
|
});
|
|
27702
27699
|
}
|
|
27703
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27704
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27701
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalStorageService, providedIn: 'root' });
|
|
27705
27702
|
}
|
|
27706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
27707
27704
|
type: Injectable,
|
|
27708
27705
|
args: [{
|
|
27709
27706
|
providedIn: 'root'
|
|
@@ -27802,10 +27799,10 @@ class LogService {
|
|
|
27802
27799
|
console.error(this.prefix + " Error: " + message, optionalParams);
|
|
27803
27800
|
}
|
|
27804
27801
|
}
|
|
27805
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27806
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
27802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27803
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LogService, providedIn: 'root' });
|
|
27807
27804
|
}
|
|
27808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
27805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LogService, decorators: [{
|
|
27809
27806
|
type: Injectable,
|
|
27810
27807
|
args: [{
|
|
27811
27808
|
providedIn: 'root'
|
|
@@ -27820,5 +27817,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
27820
27817
|
* Generated bundle index. Do not edit.
|
|
27821
27818
|
*/
|
|
27822
27819
|
|
|
27823
|
-
export { BaseApiService, CardTypes, Category, ClassLoggerService, ConfigService, Customer, CustomerApiService, CwmSharedModule, DbKeys, ExternalNavigationComponent, InventoryApiService, Justifications, LocalStorageService, LogService, LoggingVerbosity, MockConfig, MockCustomer, MockInventoryApiResponse, MockProfile, NamedColors, NavigateToRouteComponent, OnElementStyle, PageNotFoundComponent, Product, Profile, SafeHtmlPipe, Stack, TimeSpan, TimeSpanOverflowError, UserTypes, Utilities, decodeToken, doWithLock, isTokenValid, msalGuardConfigFactory, msalInstanceFactory, msalInterceptorConfigFactory, waitFor };
|
|
27820
|
+
export { BaseApiService, CardTypes, Category, ClassLoggerService, ConfigService, Customer, CustomerApiService, CwmSharedModule, DEFAULT_API_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CONFIGURATION, DEFAULT_CUSTOMER, DEFAULT_INVENTORY_API_RESPONSE, DEFAULT_MENU_BOARD_CONFIG, DEFAULT_PROFILE, DEFAULT_SLIDE, DEFAULT_SUBSCRIPTION_CONFIG, DbKeys, ExternalNavigationComponent, InventoryApiService, Justifications, LocalStorageService, LogService, LoggingVerbosity, MockConfig, MockCustomer, MockInventoryApiResponse, MockProfile, NamedColors, NavigateToRouteComponent, OnElementStyle, PageNotFoundComponent, Product, Profile, SafeHtmlPipe, Stack, TimeSpan, TimeSpanOverflowError, UserTypes, Utilities, decodeToken, doWithLock, isTokenValid, msalGuardConfigFactory, msalInstanceFactory, msalInterceptorConfigFactory, waitFor };
|
|
27824
27821
|
//# sourceMappingURL=transcommerce-cwm-shared.mjs.map
|