buildingproduct-library 0.2.78 → 0.2.80
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/{buildingproduct-library-0.2.78.tgz → buildingproduct-library-0.2.80.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +511 -485
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/account-dropdown/account-dropdown.component.js +30 -26
- package/esm2015/lib/find-store/find-store.component.js +26 -20
- package/esm2015/lib/services/user-account-detail-service.service.js +14 -1
- package/fesm2015/buildingproduct-library.js +63 -43
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/lib/account-dropdown/account-dropdown.component.d.ts +1 -1
- package/lib/find-store/find-store.component.d.ts +4 -2
- package/lib/services/user-account-detail-service.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -90,6 +90,333 @@
|
|
|
90
90
|
}]
|
|
91
91
|
}], ctorParameters: function () { return [{ type: i1__namespace.CmsService }]; } });
|
|
92
92
|
|
|
93
|
+
/******************************************************************************
|
|
94
|
+
Copyright (c) Microsoft Corporation.
|
|
95
|
+
|
|
96
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
97
|
+
purpose with or without fee is hereby granted.
|
|
98
|
+
|
|
99
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
100
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
101
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
102
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
103
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
104
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
105
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
106
|
+
***************************************************************************** */
|
|
107
|
+
/* global Reflect, Promise */
|
|
108
|
+
var extendStatics = function (d, b) {
|
|
109
|
+
extendStatics = Object.setPrototypeOf ||
|
|
110
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
111
|
+
function (d, b) { for (var p in b)
|
|
112
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
113
|
+
d[p] = b[p]; };
|
|
114
|
+
return extendStatics(d, b);
|
|
115
|
+
};
|
|
116
|
+
function __extends(d, b) {
|
|
117
|
+
if (typeof b !== "function" && b !== null)
|
|
118
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
119
|
+
extendStatics(d, b);
|
|
120
|
+
function __() { this.constructor = d; }
|
|
121
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
122
|
+
}
|
|
123
|
+
var __assign = function () {
|
|
124
|
+
__assign = Object.assign || function __assign(t) {
|
|
125
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
126
|
+
s = arguments[i];
|
|
127
|
+
for (var p in s)
|
|
128
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
129
|
+
t[p] = s[p];
|
|
130
|
+
}
|
|
131
|
+
return t;
|
|
132
|
+
};
|
|
133
|
+
return __assign.apply(this, arguments);
|
|
134
|
+
};
|
|
135
|
+
function __rest(s, e) {
|
|
136
|
+
var t = {};
|
|
137
|
+
for (var p in s)
|
|
138
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
139
|
+
t[p] = s[p];
|
|
140
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
141
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
142
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
143
|
+
t[p[i]] = s[p[i]];
|
|
144
|
+
}
|
|
145
|
+
return t;
|
|
146
|
+
}
|
|
147
|
+
function __decorate(decorators, target, key, desc) {
|
|
148
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
149
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
150
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
151
|
+
else
|
|
152
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
153
|
+
if (d = decorators[i])
|
|
154
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
155
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
156
|
+
}
|
|
157
|
+
function __param(paramIndex, decorator) {
|
|
158
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
159
|
+
}
|
|
160
|
+
function __metadata(metadataKey, metadataValue) {
|
|
161
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
162
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
163
|
+
}
|
|
164
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
165
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
166
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
167
|
+
function fulfilled(value) { try {
|
|
168
|
+
step(generator.next(value));
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
reject(e);
|
|
172
|
+
} }
|
|
173
|
+
function rejected(value) { try {
|
|
174
|
+
step(generator["throw"](value));
|
|
175
|
+
}
|
|
176
|
+
catch (e) {
|
|
177
|
+
reject(e);
|
|
178
|
+
} }
|
|
179
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
180
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function __generator(thisArg, body) {
|
|
184
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
185
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
186
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
187
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
188
|
+
function step(op) {
|
|
189
|
+
if (f)
|
|
190
|
+
throw new TypeError("Generator is already executing.");
|
|
191
|
+
while (_)
|
|
192
|
+
try {
|
|
193
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
194
|
+
return t;
|
|
195
|
+
if (y = 0, t)
|
|
196
|
+
op = [op[0] & 2, t.value];
|
|
197
|
+
switch (op[0]) {
|
|
198
|
+
case 0:
|
|
199
|
+
case 1:
|
|
200
|
+
t = op;
|
|
201
|
+
break;
|
|
202
|
+
case 4:
|
|
203
|
+
_.label++;
|
|
204
|
+
return { value: op[1], done: false };
|
|
205
|
+
case 5:
|
|
206
|
+
_.label++;
|
|
207
|
+
y = op[1];
|
|
208
|
+
op = [0];
|
|
209
|
+
continue;
|
|
210
|
+
case 7:
|
|
211
|
+
op = _.ops.pop();
|
|
212
|
+
_.trys.pop();
|
|
213
|
+
continue;
|
|
214
|
+
default:
|
|
215
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
216
|
+
_ = 0;
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
220
|
+
_.label = op[1];
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
224
|
+
_.label = t[1];
|
|
225
|
+
t = op;
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
if (t && _.label < t[2]) {
|
|
229
|
+
_.label = t[2];
|
|
230
|
+
_.ops.push(op);
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
if (t[2])
|
|
234
|
+
_.ops.pop();
|
|
235
|
+
_.trys.pop();
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
op = body.call(thisArg, _);
|
|
239
|
+
}
|
|
240
|
+
catch (e) {
|
|
241
|
+
op = [6, e];
|
|
242
|
+
y = 0;
|
|
243
|
+
}
|
|
244
|
+
finally {
|
|
245
|
+
f = t = 0;
|
|
246
|
+
}
|
|
247
|
+
if (op[0] & 5)
|
|
248
|
+
throw op[1];
|
|
249
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
253
|
+
if (k2 === undefined)
|
|
254
|
+
k2 = k;
|
|
255
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
256
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
257
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
258
|
+
}
|
|
259
|
+
Object.defineProperty(o, k2, desc);
|
|
260
|
+
}) : (function (o, m, k, k2) {
|
|
261
|
+
if (k2 === undefined)
|
|
262
|
+
k2 = k;
|
|
263
|
+
o[k2] = m[k];
|
|
264
|
+
});
|
|
265
|
+
function __exportStar(m, o) {
|
|
266
|
+
for (var p in m)
|
|
267
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
268
|
+
__createBinding(o, m, p);
|
|
269
|
+
}
|
|
270
|
+
function __values(o) {
|
|
271
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
272
|
+
if (m)
|
|
273
|
+
return m.call(o);
|
|
274
|
+
if (o && typeof o.length === "number")
|
|
275
|
+
return {
|
|
276
|
+
next: function () {
|
|
277
|
+
if (o && i >= o.length)
|
|
278
|
+
o = void 0;
|
|
279
|
+
return { value: o && o[i++], done: !o };
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
283
|
+
}
|
|
284
|
+
function __read(o, n) {
|
|
285
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
286
|
+
if (!m)
|
|
287
|
+
return o;
|
|
288
|
+
var i = m.call(o), r, ar = [], e;
|
|
289
|
+
try {
|
|
290
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
291
|
+
ar.push(r.value);
|
|
292
|
+
}
|
|
293
|
+
catch (error) {
|
|
294
|
+
e = { error: error };
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
try {
|
|
298
|
+
if (r && !r.done && (m = i["return"]))
|
|
299
|
+
m.call(i);
|
|
300
|
+
}
|
|
301
|
+
finally {
|
|
302
|
+
if (e)
|
|
303
|
+
throw e.error;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return ar;
|
|
307
|
+
}
|
|
308
|
+
/** @deprecated */
|
|
309
|
+
function __spread() {
|
|
310
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
311
|
+
ar = ar.concat(__read(arguments[i]));
|
|
312
|
+
return ar;
|
|
313
|
+
}
|
|
314
|
+
/** @deprecated */
|
|
315
|
+
function __spreadArrays() {
|
|
316
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
317
|
+
s += arguments[i].length;
|
|
318
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
319
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
320
|
+
r[k] = a[j];
|
|
321
|
+
return r;
|
|
322
|
+
}
|
|
323
|
+
function __spreadArray(to, from, pack) {
|
|
324
|
+
if (pack || arguments.length === 2)
|
|
325
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
326
|
+
if (ar || !(i in from)) {
|
|
327
|
+
if (!ar)
|
|
328
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
329
|
+
ar[i] = from[i];
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
333
|
+
}
|
|
334
|
+
function __await(v) {
|
|
335
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
336
|
+
}
|
|
337
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
338
|
+
if (!Symbol.asyncIterator)
|
|
339
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
340
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
341
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
342
|
+
function verb(n) { if (g[n])
|
|
343
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
344
|
+
function resume(n, v) { try {
|
|
345
|
+
step(g[n](v));
|
|
346
|
+
}
|
|
347
|
+
catch (e) {
|
|
348
|
+
settle(q[0][3], e);
|
|
349
|
+
} }
|
|
350
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
351
|
+
function fulfill(value) { resume("next", value); }
|
|
352
|
+
function reject(value) { resume("throw", value); }
|
|
353
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
354
|
+
resume(q[0][0], q[0][1]); }
|
|
355
|
+
}
|
|
356
|
+
function __asyncDelegator(o) {
|
|
357
|
+
var i, p;
|
|
358
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
359
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
360
|
+
}
|
|
361
|
+
function __asyncValues(o) {
|
|
362
|
+
if (!Symbol.asyncIterator)
|
|
363
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
364
|
+
var m = o[Symbol.asyncIterator], i;
|
|
365
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
366
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
367
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
368
|
+
}
|
|
369
|
+
function __makeTemplateObject(cooked, raw) {
|
|
370
|
+
if (Object.defineProperty) {
|
|
371
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
cooked.raw = raw;
|
|
375
|
+
}
|
|
376
|
+
return cooked;
|
|
377
|
+
}
|
|
378
|
+
;
|
|
379
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
380
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
381
|
+
}) : function (o, v) {
|
|
382
|
+
o["default"] = v;
|
|
383
|
+
};
|
|
384
|
+
function __importStar(mod) {
|
|
385
|
+
if (mod && mod.__esModule)
|
|
386
|
+
return mod;
|
|
387
|
+
var result = {};
|
|
388
|
+
if (mod != null)
|
|
389
|
+
for (var k in mod)
|
|
390
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
391
|
+
__createBinding(result, mod, k);
|
|
392
|
+
__setModuleDefault(result, mod);
|
|
393
|
+
return result;
|
|
394
|
+
}
|
|
395
|
+
function __importDefault(mod) {
|
|
396
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
397
|
+
}
|
|
398
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
399
|
+
if (kind === "a" && !f)
|
|
400
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
401
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
402
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
403
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
404
|
+
}
|
|
405
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
406
|
+
if (kind === "m")
|
|
407
|
+
throw new TypeError("Private method is not writable");
|
|
408
|
+
if (kind === "a" && !f)
|
|
409
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
410
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
411
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
412
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
413
|
+
}
|
|
414
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
415
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
416
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
417
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
418
|
+
}
|
|
419
|
+
|
|
93
420
|
// This file can be replaced during build by using the `fileReplacements` array.
|
|
94
421
|
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
|
|
95
422
|
// The list of file replacements can be found in `angular.json`.
|
|
@@ -236,454 +563,127 @@
|
|
|
236
563
|
};
|
|
237
564
|
var GET_ORDER_REVIEW = {
|
|
238
565
|
url: apiEndpointURL + 'users/current/carts/',
|
|
239
|
-
};
|
|
240
|
-
var UPDATE_ORDER_REVIEW = {
|
|
241
|
-
url: apiEndpointURL + 'checkout/updateAndReview/',
|
|
242
|
-
};
|
|
243
|
-
var Validate_Order_Date_time = {
|
|
244
|
-
url: apiEndpointURL + 'checkout/validateDeliveryPickUpDate',
|
|
245
|
-
};
|
|
246
|
-
var GET_Checkout_Details_URL = function (cartId) {
|
|
247
|
-
return {
|
|
248
|
-
url: apiEndpointURL +
|
|
249
|
-
("checkout/getDeliveryPickupInfo?cartId=" + cartId + "&fields=deliveryMinLeadTime,pickUpMinLeadTime,message,pointOfService(FULL)"),
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
var GET_Delivery_Modes_URL = function (cartId) {
|
|
253
|
-
return {
|
|
254
|
-
url: apiEndpointURL + ("users/current/carts/" + cartId + "/deliverymodes"),
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
var PLACE_ORDER = {
|
|
258
|
-
url: apiEndpointURL + 'orgUsers/current/bpOrders?fields=BASIC&cartId=',
|
|
259
|
-
};
|
|
260
|
-
var GET_ADDRESS_INFO = {
|
|
261
|
-
url: apiEndpointURL + 'checkout/getAddressInfo?fields=FULL',
|
|
262
|
-
};
|
|
263
|
-
var GET_PRODUCT_CDS_DETAILS = function (productCode) {
|
|
264
|
-
return {
|
|
265
|
-
url: apiEndpointURL +
|
|
266
|
-
'bpProducts/' +
|
|
267
|
-
productCode +
|
|
268
|
-
'/cdsDefaultConfigJson/?fields=FULL',
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
var GET_FLASHING_CONFIGURATION = function (productCode) {
|
|
272
|
-
return {
|
|
273
|
-
url: apiEndpointURL +
|
|
274
|
-
'products/' +
|
|
275
|
-
productCode +
|
|
276
|
-
'/configurator/textfield?fields=FULL',
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
var GET_ORDER_DETAIL = {
|
|
280
|
-
url: apiEndpointURL + 'orgUsers/current/orgUnits/bporders/',
|
|
281
|
-
};
|
|
282
|
-
var GET_ORDER_HISTORY_SEARCH_STATUSES = {
|
|
283
|
-
url: apiEndpointURL + 'orgUsers/current/bpOrders/search/statuses',
|
|
284
|
-
};
|
|
285
|
-
var GET_ORDER_HISTORY_SEARCH_RESULTS = {
|
|
286
|
-
url: apiEndpointURL + 'orgUsers/current/bpOrders/search',
|
|
287
|
-
};
|
|
288
|
-
var ORDER_HISTORY_SORTING_ENDPOINT = {
|
|
289
|
-
url: apiEndpointURL + 'orgUsers/current/bpOrders/search?sort=',
|
|
290
|
-
};
|
|
291
|
-
var MYACCOUNT_GET_INVOICE_CREDIT = {
|
|
292
|
-
url: apiEndpointURL +
|
|
293
|
-
'orgUsers/current/account/summery/details/documents?fields=FULL',
|
|
294
|
-
};
|
|
295
|
-
var INVOICE_CREDIT_SORTING_ENDPOINT = {
|
|
296
|
-
url: apiEndpointURL + 'orgUsers/current/account/summery/details/documents?sort=',
|
|
297
|
-
};
|
|
298
|
-
var GET_INVOICE_CREDIT_STATUSES = {
|
|
299
|
-
url: apiEndpointURL + 'orgUsers/current/bpOrders/document/statuses',
|
|
300
|
-
};
|
|
301
|
-
var GET_INVOICE_CREDIT_SEARCH_RESULTS = {
|
|
302
|
-
url: apiEndpointURL + 'orgUsers/current/account/summery/details/documents',
|
|
303
|
-
};
|
|
304
|
-
var GET_FLASHING_SKU_CODE = {
|
|
305
|
-
url: apiEndpointURL + 'bpProducts/skuProduct',
|
|
306
|
-
};
|
|
307
|
-
var GET_CDS_IMAGE = {
|
|
308
|
-
url: 'https://qa.cdsvisual.net/node/fletcher/image',
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var AccountDropdownService = /** @class */ (function () {
|
|
312
|
-
function AccountDropdownService(service) {
|
|
313
|
-
this.service = service;
|
|
314
|
-
}
|
|
315
|
-
AccountDropdownService.prototype.getIsLoggedIn = function () {
|
|
316
|
-
var isLogedIn = localStorage.getItem('isLogedIn');
|
|
317
|
-
if (!isLogedIn) {
|
|
318
|
-
localStorage.setItem('isLogedIn', 'true');
|
|
319
|
-
}
|
|
320
|
-
return isLogedIn;
|
|
321
|
-
};
|
|
322
|
-
AccountDropdownService.prototype.getAccountDatawithCartId = function (cartid) {
|
|
323
|
-
var accountUrl = listOfAccounts.url + '?cartId=' + cartid + '&isUserLogin=' + !this.getIsLoggedIn();
|
|
324
|
-
return this.service.get(accountUrl)
|
|
325
|
-
.pipe(operators.catchError(function (errorRes) {
|
|
326
|
-
return rxjs.throwError(errorRes);
|
|
327
|
-
}));
|
|
328
|
-
};
|
|
329
|
-
AccountDropdownService.prototype.getAccountData = function () {
|
|
330
|
-
var accountUrl = listOfAccounts.url + '?isUserLogin=' + !this.getIsLoggedIn();
|
|
331
|
-
return this.service.get(accountUrl)
|
|
332
|
-
.pipe(operators.catchError(function (errorRes) {
|
|
333
|
-
return rxjs.throwError(errorRes);
|
|
334
|
-
}));
|
|
335
|
-
};
|
|
336
|
-
AccountDropdownService.prototype.updateSelectedAccountWithCart = function (cartId) {
|
|
337
|
-
var url = updateListOfAccounts.url + '?cartId=' + cartId;
|
|
338
|
-
return this.service.get(url)
|
|
339
|
-
.pipe(operators.catchError(function (errorRes) {
|
|
340
|
-
return rxjs.throwError(errorRes);
|
|
341
|
-
}));
|
|
566
|
+
};
|
|
567
|
+
var UPDATE_ORDER_REVIEW = {
|
|
568
|
+
url: apiEndpointURL + 'checkout/updateAndReview/',
|
|
569
|
+
};
|
|
570
|
+
var Validate_Order_Date_time = {
|
|
571
|
+
url: apiEndpointURL + 'checkout/validateDeliveryPickUpDate',
|
|
572
|
+
};
|
|
573
|
+
var GET_Checkout_Details_URL = function (cartId) {
|
|
574
|
+
return {
|
|
575
|
+
url: apiEndpointURL +
|
|
576
|
+
("checkout/getDeliveryPickupInfo?cartId=" + cartId + "&fields=deliveryMinLeadTime,pickUpMinLeadTime,message,pointOfService(FULL)"),
|
|
342
577
|
};
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
return rxjs.throwError(errorRes);
|
|
348
|
-
}));
|
|
578
|
+
};
|
|
579
|
+
var GET_Delivery_Modes_URL = function (cartId) {
|
|
580
|
+
return {
|
|
581
|
+
url: apiEndpointURL + ("users/current/carts/" + cartId + "/deliverymodes"),
|
|
349
582
|
};
|
|
350
|
-
return AccountDropdownService;
|
|
351
|
-
}());
|
|
352
|
-
AccountDropdownService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountDropdownService, deps: [{ token: i1__namespace$1.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
353
|
-
AccountDropdownService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountDropdownService, providedIn: 'root' });
|
|
354
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountDropdownService, decorators: [{
|
|
355
|
-
type: i0.Injectable,
|
|
356
|
-
args: [{
|
|
357
|
-
providedIn: 'root'
|
|
358
|
-
}]
|
|
359
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }]; } });
|
|
360
|
-
|
|
361
|
-
/******************************************************************************
|
|
362
|
-
Copyright (c) Microsoft Corporation.
|
|
363
|
-
|
|
364
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
365
|
-
purpose with or without fee is hereby granted.
|
|
366
|
-
|
|
367
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
368
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
369
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
370
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
371
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
372
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
373
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
374
|
-
***************************************************************************** */
|
|
375
|
-
/* global Reflect, Promise */
|
|
376
|
-
var extendStatics = function (d, b) {
|
|
377
|
-
extendStatics = Object.setPrototypeOf ||
|
|
378
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
379
|
-
function (d, b) { for (var p in b)
|
|
380
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
381
|
-
d[p] = b[p]; };
|
|
382
|
-
return extendStatics(d, b);
|
|
383
583
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
397
|
-
t[p] = s[p];
|
|
398
|
-
}
|
|
399
|
-
return t;
|
|
584
|
+
var PLACE_ORDER = {
|
|
585
|
+
url: apiEndpointURL + 'orgUsers/current/bpOrders?fields=BASIC&cartId=',
|
|
586
|
+
};
|
|
587
|
+
var GET_ADDRESS_INFO = {
|
|
588
|
+
url: apiEndpointURL + 'checkout/getAddressInfo?fields=FULL',
|
|
589
|
+
};
|
|
590
|
+
var GET_PRODUCT_CDS_DETAILS = function (productCode) {
|
|
591
|
+
return {
|
|
592
|
+
url: apiEndpointURL +
|
|
593
|
+
'bpProducts/' +
|
|
594
|
+
productCode +
|
|
595
|
+
'/cdsDefaultConfigJson/?fields=FULL',
|
|
400
596
|
};
|
|
401
|
-
return __assign.apply(this, arguments);
|
|
402
597
|
};
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
} }
|
|
447
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
448
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
function __generator(thisArg, body) {
|
|
452
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
453
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
454
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
455
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
456
|
-
function step(op) {
|
|
457
|
-
if (f)
|
|
458
|
-
throw new TypeError("Generator is already executing.");
|
|
459
|
-
while (_)
|
|
460
|
-
try {
|
|
461
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
462
|
-
return t;
|
|
463
|
-
if (y = 0, t)
|
|
464
|
-
op = [op[0] & 2, t.value];
|
|
465
|
-
switch (op[0]) {
|
|
466
|
-
case 0:
|
|
467
|
-
case 1:
|
|
468
|
-
t = op;
|
|
469
|
-
break;
|
|
470
|
-
case 4:
|
|
471
|
-
_.label++;
|
|
472
|
-
return { value: op[1], done: false };
|
|
473
|
-
case 5:
|
|
474
|
-
_.label++;
|
|
475
|
-
y = op[1];
|
|
476
|
-
op = [0];
|
|
477
|
-
continue;
|
|
478
|
-
case 7:
|
|
479
|
-
op = _.ops.pop();
|
|
480
|
-
_.trys.pop();
|
|
481
|
-
continue;
|
|
482
|
-
default:
|
|
483
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
484
|
-
_ = 0;
|
|
485
|
-
continue;
|
|
486
|
-
}
|
|
487
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
488
|
-
_.label = op[1];
|
|
489
|
-
break;
|
|
490
|
-
}
|
|
491
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
492
|
-
_.label = t[1];
|
|
493
|
-
t = op;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
if (t && _.label < t[2]) {
|
|
497
|
-
_.label = t[2];
|
|
498
|
-
_.ops.push(op);
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
if (t[2])
|
|
502
|
-
_.ops.pop();
|
|
503
|
-
_.trys.pop();
|
|
504
|
-
continue;
|
|
505
|
-
}
|
|
506
|
-
op = body.call(thisArg, _);
|
|
507
|
-
}
|
|
508
|
-
catch (e) {
|
|
509
|
-
op = [6, e];
|
|
510
|
-
y = 0;
|
|
511
|
-
}
|
|
512
|
-
finally {
|
|
513
|
-
f = t = 0;
|
|
514
|
-
}
|
|
515
|
-
if (op[0] & 5)
|
|
516
|
-
throw op[1];
|
|
517
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
521
|
-
if (k2 === undefined)
|
|
522
|
-
k2 = k;
|
|
523
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
524
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
525
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
526
|
-
}
|
|
527
|
-
Object.defineProperty(o, k2, desc);
|
|
528
|
-
}) : (function (o, m, k, k2) {
|
|
529
|
-
if (k2 === undefined)
|
|
530
|
-
k2 = k;
|
|
531
|
-
o[k2] = m[k];
|
|
532
|
-
});
|
|
533
|
-
function __exportStar(m, o) {
|
|
534
|
-
for (var p in m)
|
|
535
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
536
|
-
__createBinding(o, m, p);
|
|
537
|
-
}
|
|
538
|
-
function __values(o) {
|
|
539
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
540
|
-
if (m)
|
|
541
|
-
return m.call(o);
|
|
542
|
-
if (o && typeof o.length === "number")
|
|
543
|
-
return {
|
|
544
|
-
next: function () {
|
|
545
|
-
if (o && i >= o.length)
|
|
546
|
-
o = void 0;
|
|
547
|
-
return { value: o && o[i++], done: !o };
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
551
|
-
}
|
|
552
|
-
function __read(o, n) {
|
|
553
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
554
|
-
if (!m)
|
|
555
|
-
return o;
|
|
556
|
-
var i = m.call(o), r, ar = [], e;
|
|
557
|
-
try {
|
|
558
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
559
|
-
ar.push(r.value);
|
|
560
|
-
}
|
|
561
|
-
catch (error) {
|
|
562
|
-
e = { error: error };
|
|
563
|
-
}
|
|
564
|
-
finally {
|
|
565
|
-
try {
|
|
566
|
-
if (r && !r.done && (m = i["return"]))
|
|
567
|
-
m.call(i);
|
|
568
|
-
}
|
|
569
|
-
finally {
|
|
570
|
-
if (e)
|
|
571
|
-
throw e.error;
|
|
572
|
-
}
|
|
598
|
+
var GET_FLASHING_CONFIGURATION = function (productCode) {
|
|
599
|
+
return {
|
|
600
|
+
url: apiEndpointURL +
|
|
601
|
+
'products/' +
|
|
602
|
+
productCode +
|
|
603
|
+
'/configurator/textfield?fields=FULL',
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
var GET_ORDER_DETAIL = {
|
|
607
|
+
url: apiEndpointURL + 'orgUsers/current/orgUnits/bporders/',
|
|
608
|
+
};
|
|
609
|
+
var GET_ORDER_HISTORY_SEARCH_STATUSES = {
|
|
610
|
+
url: apiEndpointURL + 'orgUsers/current/bpOrders/search/statuses',
|
|
611
|
+
};
|
|
612
|
+
var GET_ORDER_HISTORY_SEARCH_RESULTS = {
|
|
613
|
+
url: apiEndpointURL + 'orgUsers/current/bpOrders/search',
|
|
614
|
+
};
|
|
615
|
+
var ORDER_HISTORY_SORTING_ENDPOINT = {
|
|
616
|
+
url: apiEndpointURL + 'orgUsers/current/bpOrders/search?sort=',
|
|
617
|
+
};
|
|
618
|
+
var MYACCOUNT_GET_INVOICE_CREDIT = {
|
|
619
|
+
url: apiEndpointURL +
|
|
620
|
+
'orgUsers/current/account/summery/details/documents?fields=FULL',
|
|
621
|
+
};
|
|
622
|
+
var INVOICE_CREDIT_SORTING_ENDPOINT = {
|
|
623
|
+
url: apiEndpointURL + 'orgUsers/current/account/summery/details/documents?sort=',
|
|
624
|
+
};
|
|
625
|
+
var GET_INVOICE_CREDIT_STATUSES = {
|
|
626
|
+
url: apiEndpointURL + 'orgUsers/current/bpOrders/document/statuses',
|
|
627
|
+
};
|
|
628
|
+
var GET_INVOICE_CREDIT_SEARCH_RESULTS = {
|
|
629
|
+
url: apiEndpointURL + 'orgUsers/current/account/summery/details/documents',
|
|
630
|
+
};
|
|
631
|
+
var GET_FLASHING_SKU_CODE = {
|
|
632
|
+
url: apiEndpointURL + 'bpProducts/skuProduct',
|
|
633
|
+
};
|
|
634
|
+
var GET_CDS_IMAGE = {
|
|
635
|
+
url: 'https://qa.cdsvisual.net/node/fletcher/image',
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
var AccountDropdownService = /** @class */ (function () {
|
|
639
|
+
function AccountDropdownService(service) {
|
|
640
|
+
this.service = service;
|
|
573
641
|
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
579
|
-
ar = ar.concat(__read(arguments[i]));
|
|
580
|
-
return ar;
|
|
581
|
-
}
|
|
582
|
-
/** @deprecated */
|
|
583
|
-
function __spreadArrays() {
|
|
584
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
585
|
-
s += arguments[i].length;
|
|
586
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
587
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
588
|
-
r[k] = a[j];
|
|
589
|
-
return r;
|
|
590
|
-
}
|
|
591
|
-
function __spreadArray(to, from, pack) {
|
|
592
|
-
if (pack || arguments.length === 2)
|
|
593
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
594
|
-
if (ar || !(i in from)) {
|
|
595
|
-
if (!ar)
|
|
596
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
597
|
-
ar[i] = from[i];
|
|
598
|
-
}
|
|
642
|
+
AccountDropdownService.prototype.getIsLoggedIn = function () {
|
|
643
|
+
var isLogedIn = localStorage.getItem('isLogedIn');
|
|
644
|
+
if (!isLogedIn) {
|
|
645
|
+
localStorage.setItem('isLogedIn', 'true');
|
|
599
646
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
else {
|
|
642
|
-
cooked.raw = raw;
|
|
643
|
-
}
|
|
644
|
-
return cooked;
|
|
645
|
-
}
|
|
646
|
-
;
|
|
647
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
648
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
649
|
-
}) : function (o, v) {
|
|
650
|
-
o["default"] = v;
|
|
651
|
-
};
|
|
652
|
-
function __importStar(mod) {
|
|
653
|
-
if (mod && mod.__esModule)
|
|
654
|
-
return mod;
|
|
655
|
-
var result = {};
|
|
656
|
-
if (mod != null)
|
|
657
|
-
for (var k in mod)
|
|
658
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
659
|
-
__createBinding(result, mod, k);
|
|
660
|
-
__setModuleDefault(result, mod);
|
|
661
|
-
return result;
|
|
662
|
-
}
|
|
663
|
-
function __importDefault(mod) {
|
|
664
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
665
|
-
}
|
|
666
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
667
|
-
if (kind === "a" && !f)
|
|
668
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
669
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
670
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
671
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
672
|
-
}
|
|
673
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
674
|
-
if (kind === "m")
|
|
675
|
-
throw new TypeError("Private method is not writable");
|
|
676
|
-
if (kind === "a" && !f)
|
|
677
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
678
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
679
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
680
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
681
|
-
}
|
|
682
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
683
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
684
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
685
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
686
|
-
}
|
|
647
|
+
return isLogedIn;
|
|
648
|
+
};
|
|
649
|
+
AccountDropdownService.prototype.getAccountDatawithCartId = function (cartid) {
|
|
650
|
+
var accountUrl = listOfAccounts.url + '?cartId=' + cartid + '&isUserLogin=' + !this.getIsLoggedIn();
|
|
651
|
+
return this.service.get(accountUrl)
|
|
652
|
+
.pipe(operators.catchError(function (errorRes) {
|
|
653
|
+
return rxjs.throwError(errorRes);
|
|
654
|
+
}));
|
|
655
|
+
};
|
|
656
|
+
AccountDropdownService.prototype.getAccountData = function () {
|
|
657
|
+
var accountUrl = listOfAccounts.url + '?isUserLogin=' + !this.getIsLoggedIn();
|
|
658
|
+
return this.service.get(accountUrl)
|
|
659
|
+
.pipe(operators.catchError(function (errorRes) {
|
|
660
|
+
return rxjs.throwError(errorRes);
|
|
661
|
+
}));
|
|
662
|
+
};
|
|
663
|
+
AccountDropdownService.prototype.updateSelectedAccountWithCart = function (cartId) {
|
|
664
|
+
var url = updateListOfAccounts.url + '?cartId=' + cartId;
|
|
665
|
+
return this.service.get(url)
|
|
666
|
+
.pipe(operators.catchError(function (errorRes) {
|
|
667
|
+
return rxjs.throwError(errorRes);
|
|
668
|
+
}));
|
|
669
|
+
};
|
|
670
|
+
AccountDropdownService.prototype.updateSelectedUser = function (data) {
|
|
671
|
+
var url = changeListOfAccounts.url + encodeURI(data.uid) + '?fields=DEFAULT';
|
|
672
|
+
return this.service.post(url, data.uid)
|
|
673
|
+
.pipe(operators.catchError(function (errorRes) {
|
|
674
|
+
return rxjs.throwError(errorRes);
|
|
675
|
+
}));
|
|
676
|
+
};
|
|
677
|
+
return AccountDropdownService;
|
|
678
|
+
}());
|
|
679
|
+
AccountDropdownService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountDropdownService, deps: [{ token: i1__namespace$1.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
680
|
+
AccountDropdownService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountDropdownService, providedIn: 'root' });
|
|
681
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountDropdownService, decorators: [{
|
|
682
|
+
type: i0.Injectable,
|
|
683
|
+
args: [{
|
|
684
|
+
providedIn: 'root'
|
|
685
|
+
}]
|
|
686
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }]; } });
|
|
687
687
|
|
|
688
688
|
var sharedEnv;
|
|
689
689
|
var UserAccountDetailServiceService = /** @class */ (function () {
|
|
@@ -820,6 +820,19 @@
|
|
|
820
820
|
UserAccountDetailServiceService.prototype.isAccountOwnerPermission = function () {
|
|
821
821
|
return this._isAccountOwnerGroup;
|
|
822
822
|
};
|
|
823
|
+
UserAccountDetailServiceService.prototype.isEnviornmentLoaded = function () {
|
|
824
|
+
return new Promise(function (resolve) {
|
|
825
|
+
var env = sessionStorage.getItem('env');
|
|
826
|
+
var environment = JSON.parse(env);
|
|
827
|
+
if (environment && environment.occBaseUrl == undefined) {
|
|
828
|
+
window.location.reload();
|
|
829
|
+
// this.isEnviornmentLoaded();
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
resolve(true);
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
};
|
|
823
836
|
UserAccountDetailServiceService.prototype.isCreateInviteGroupPermission = function () {
|
|
824
837
|
var _this = this;
|
|
825
838
|
return new Promise(function (resolve) {
|
|
@@ -968,33 +981,39 @@
|
|
|
968
981
|
this.showToast = false;
|
|
969
982
|
}
|
|
970
983
|
AccountDropdownComponent.prototype.ngOnInit = function () {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
_this.
|
|
984
|
-
|
|
984
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
985
|
+
var _this = this;
|
|
986
|
+
return __generator(this, function (_c) {
|
|
987
|
+
// const isLoaded = await this.fiUserAccountDetailsService.isEnviornmentLoaded();
|
|
988
|
+
this.selecteduserData = JSON.parse(localStorage.getItem('selectedAccout') || '{}');
|
|
989
|
+
this.fiUserAccountDetailsService.getUserAccount().subscribe(function (user) {
|
|
990
|
+
var _a, _b;
|
|
991
|
+
if (user) {
|
|
992
|
+
var username = (_a = user.uid) === null || _a === void 0 ? void 0 : _a.toString();
|
|
993
|
+
var cartObj = localStorage.getItem('spartacus⚿dimond-spa⚿cart');
|
|
994
|
+
var cartId = (_b = JSON.parse(cartObj)) === null || _b === void 0 ? void 0 : _b.active;
|
|
995
|
+
if (cartId) {
|
|
996
|
+
_this.service.getAccountDatawithCartId(cartId).subscribe(function (data) {
|
|
997
|
+
if (data) {
|
|
998
|
+
_this.showWaitCursor.next(false);
|
|
999
|
+
_this.accounts = data;
|
|
1000
|
+
_this.getAccountsData();
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
985
1003
|
}
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1004
|
+
else {
|
|
1005
|
+
_this.service.getAccountData().subscribe(function (data) {
|
|
1006
|
+
if (data) {
|
|
1007
|
+
_this.showWaitCursor.next(false);
|
|
1008
|
+
_this.accounts = data;
|
|
1009
|
+
_this.getAccountsData();
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
994
1012
|
}
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
return [2 /*return*/];
|
|
1016
|
+
});
|
|
998
1017
|
});
|
|
999
1018
|
};
|
|
1000
1019
|
AccountDropdownComponent.prototype.getAccountsData = function () {
|
|
@@ -1172,9 +1191,10 @@
|
|
|
1172
1191
|
};
|
|
1173
1192
|
|
|
1174
1193
|
var FindStoreComponent = /** @class */ (function () {
|
|
1175
|
-
function FindStoreComponent(findStoreService, cd) {
|
|
1194
|
+
function FindStoreComponent(findStoreService, fiUserAccountDetailsService, cd) {
|
|
1176
1195
|
var _this = this;
|
|
1177
1196
|
this.findStoreService = findStoreService;
|
|
1197
|
+
this.fiUserAccountDetailsService = fiUserAccountDetailsService;
|
|
1178
1198
|
this.cd = cd;
|
|
1179
1199
|
this.storeApiSubscried = false;
|
|
1180
1200
|
this.homeBranchAddress = {};
|
|
@@ -1193,22 +1213,28 @@
|
|
|
1193
1213
|
};
|
|
1194
1214
|
}
|
|
1195
1215
|
FindStoreComponent.prototype.ngOnInit = function () {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1217
|
+
var _this = this;
|
|
1218
|
+
return __generator(this, function (_b) {
|
|
1219
|
+
// const isLoaded = await this.fiUserAccountDetailsService.isEnviornmentLoaded();
|
|
1220
|
+
this.findStoreService.homeBranch.subscribe(function (data) {
|
|
1221
|
+
setTimeout(function () {
|
|
1222
|
+
var _a;
|
|
1223
|
+
if (data) {
|
|
1224
|
+
if (localStorage.getItem('branchDetails')) {
|
|
1225
|
+
_this.homeBranchData = localStorage.getItem('branchDetails');
|
|
1226
|
+
_this.branchName = (_a = JSON.parse(_this.homeBranchData)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
1227
|
+
_this.cd.markForCheck();
|
|
1228
|
+
}
|
|
1229
|
+
else {
|
|
1230
|
+
_this.branchName = data === null || data === void 0 ? void 0 : data.displayName;
|
|
1231
|
+
_this.cd.markForCheck();
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}, 100);
|
|
1235
|
+
});
|
|
1236
|
+
return [2 /*return*/];
|
|
1237
|
+
});
|
|
1212
1238
|
});
|
|
1213
1239
|
};
|
|
1214
1240
|
FindStoreComponent.prototype.getStores = function () {
|
|
@@ -1251,7 +1277,7 @@
|
|
|
1251
1277
|
};
|
|
1252
1278
|
return FindStoreComponent;
|
|
1253
1279
|
}());
|
|
1254
|
-
FindStoreComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FindStoreComponent, deps: [{ token: FindStoreService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1280
|
+
FindStoreComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FindStoreComponent, deps: [{ token: FindStoreService }, { token: UserAccountDetailServiceService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1255
1281
|
FindStoreComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FindStoreComponent, selector: "app-find-store", ngImport: i0__namespace, template: "<div class=\"row\">\r\n <div class=\"col-lg-12 col-sm-12\">\r\n <div class=\"input-group storeFinder\">\r\n <div class=\"input-group-prepend input-icon po\">\r\n <img src=\"../../../assets/images/ionic-ios-location-outline.svg\" class=\"w-20\">\r\n </div>\r\n <button class=\"btn custom-input position-relative text-left\" type=\"button\" data-toggle=\"modal\" data-target=\"#storeFinderModal\" (click)=\"getStores()\">\r\n {{branchName}}\t\t\t\r\n </button>\r\n <p id=\"demo\"></p>\r\n <span class=\"placeholder-icon\" (click)=\"getLocation()\">\r\n <img src=\"../../../assets/images/ionic-ios-my-location.svg\" class=\"w-20\">\r\n </span>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"modal fade modal-right\" id=\"storeFinderModal\" role=\"dialog\" aria-labelledby=\"storeFinderLabel\" aria-hidden=\"true\">\r\n <div class=\"loading \" *ngIf=\"showWaitCursor | async \">Loading…</div>\r\n <div class=\"modal-dialog\" role=\"document\">\r\n <div class=\"modal-content\">\r\n <div class=\" container\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{locationModalConstantsData.homeBranch}}</h5>\r\n <i class=\"icon-close branch-pop-close\" data-dismiss=\"modal\" aria-label=\"Close\"></i>\r\n </div>\r\n <div class=\"modal-body px-2\">\r\n <div class=\"selected-location\">\r\n <address class=\"mb-0\">\r\n <h6>{{homeBranchAddress?.displayName}} <span>({{homeBranchAddress?.businessCategory}})</span></h6>\r\n <p class=\"mb-2\">\r\n {{homeBranchAddress?.address?.formattedAddress}}<br>\r\n <span class=\"homeTxtLabel\">Email : </span><a href=\"mailto:{{homeBranchAddress?.address?.email}}\">{{homeBranchAddress?.address?.email}}</a><br>\r\n <span class=\"homeTxtLabel\"> Phone : </span><a href=\"tel:{{homeBranchAddress?.address?.phone}}\">{{homeBranchAddress?.address?.phone}}</a>\r\n </p>\r\n <span class=\"homeDirection\">\r\n <a href=\"javascript:void(0)\" (click)=\"openMap(homeBranchAddress?.geoPoint.latitude, homeBranchAddress?.geoPoint.longitude)\">{{locationModalConstantsData.getDirectionBtn}}</a>\r\n </span>\r\n </address>\r\n </div>\r\n <div class=\"nearest-branch\">\r\n <h5>Branches</h5>\r\n <ul class=\"nav nav-tabs\" id=\"myTab\" role=\"tablist\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active d-inline-block pl-1\" id=\"all-tab\" data-toggle=\"tab\" href=\"#all\" role=\"tab\" aria-controls=\"all\" aria-selected=\"true\">{{locationModalConstantsData.allTab}}</a>\r\n </li>\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link d-inline-block pl-1\" id=\"north-tab\" data-toggle=\"tab\" href=\"#north\" role=\"tab\" aria-controls=\"north\" aria-selected=\"false\">{{locationModalConstantsData.northIslandTab}}</a>\r\n </li>\r\n <li class=\"nav-item \">\r\n <a class=\"nav-link d-inline-block pl-1\" id=\"south-tab\" data-toggle=\"tab\" href=\"#south\" role=\"tab\" aria-controls=\"south\" aria-selected=\"false\">{{locationModalConstantsData.southIslandTab}}</a>\r\n </li>\r\n </ul>\r\n <div class=\"tab-content mt-2\" id=\"myTabContent\">\r\n <div class=\"tab-pane fade show active\" id=\"all\" role=\"tabpanel\" aria-labelledby=\"all-tab\">\r\n <ng-container *ngIf=\"stores && stores?.length; else storesAvalable\">\r\n <address *ngFor=\"let store of stores\" class=\"mb-0\">\r\n <h5>{{store?.displayName}} <span>({{store?.businessCategory}})</span></h5>\r\n <p class=\"mb-2\">{{store?.address?.formattedAddress}}<br>\r\n <span class=\"homeTxtLabel\">Email : </span><a href=\"mailto:{{store?.address?.email}}\">{{store?.address?.email}}</a><br>\r\n <span class=\"homeTxtLabel\">Phone : </span><a href=\"tel:{{store?.address?.phone}}\">{{store?.address?.phone}}</a></p>\r\n <div class=\"pt-1 d-flex align-items-center justify-content-between direction\">\r\n <a href=\"javascript:void(0)\" (click)=\"openMap(store?.geoPoint.latitude, store?.geoPoint.longitude)\">{{locationModalConstantsData.getDirectionBtn}}</a>\r\n <button class=\"select-btn\" (click)=\"onBranchChange(store)\">{{locationModalConstantsData.selectBtn}}</button>\r\n </div>\r\n </address>\r\n </ng-container>\r\n <ng-template #storesAvalable>\r\n <div class=\"noDataAvailableLabel text-center pt-4\">\r\n <span class=\"noData\">No branch is available</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div class=\"tab-pane fade\" id=\"north\" role=\"tabpanel\" aria-labelledby=\"north-tab\">\r\n <ng-container *ngIf=\"arrayNorthIsland && arrayNorthIsland?.length>0; else northIsland\">\r\n <address *ngFor=\"let store of arrayNorthIsland\" class=\"mb-0\">\r\n <h5>{{store?.displayName}} <span>({{store?.businessCategory}})</span></h5>\r\n <p class=\"mb-2\">{{store?.address?.formattedAddress}}<br>\r\n <span class=\"homeTxtLabel\">Email : </span><a href=\"mailto:{{store?.address?.email}}\">{{store?.address?.email}}</a><br>\r\n <span class=\"homeTxtLabel\">Phone : </span><a href=\"tel:{{store?.address?.phone}}\">{{store?.address?.phone}}</a></p>\r\n <div class=\"pt-1 d-flex align-items-center justify-content-between direction\">\r\n <a href=\"javascript:void(0)\" (click)=\"openMap(store?.geoPoint.latitude, store?.geoPoint.longitude)\">{{locationModalConstantsData.getDirectionBtn}}</a>\r\n <button class=\"select-btn\" (click)=\"onBranchChange(store)\">{{locationModalConstantsData.selectBtn}}</button>\r\n </div>\r\n </address>\r\n </ng-container>\r\n <ng-template #northIsland>\r\n <div class=\"noDataAvailableLabel text-center pt-4\">\r\n <span class=\"noData\">No branch is available</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div class=\"tab-pane fade\" id=\"south\" role=\"tabpanel\" aria-labelledby=\"south-tab\">\r\n <ng-container *ngIf=\"arraySouthIsland && arraySouthIsland?.length>0; else southIsland\">\r\n <address *ngFor=\"let store of arraySouthIsland\" class=\"mb-0\">\r\n <h5>{{store?.displayName}} <span>({{store?.businessCategory}})</span></h5>\r\n <p class=\"mb-2\">{{store?.address?.formattedAddress}}<br>\r\n <span class=\"homeTxtLabel\">Email : </span><a href=\"mailto:{{store?.address?.email}}\">{{store?.address?.email}}</a><br>\r\n <span class=\"homeTxtLabel\">Phone : </span><a href=\"tel:{{store?.address?.phone}}\">{{store?.address?.phone}}</a></p>\r\n <div class=\"pt-1 d-flex align-items-center justify-content-between direction\">\r\n <a href=\"javascript:void(0)\" (click)=\"openMap(store?.geoPoint.latitude, store?.geoPoint.longitude)\">{{locationModalConstantsData.getDirectionBtn}}</a>\r\n <button class=\"select-btn\" (click)=\"onBranchChange(store)\">{{locationModalConstantsData.selectBtn}}</button>\r\n </div>\r\n </address>\r\n </ng-container>\r\n <ng-template #southIsland>\r\n <div class=\"noDataAvailableLabel text-center pt-4\">\r\n <span class=\"noData\">No branch is available</span>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: ["@charset \"UTF-8\";@media screen and (min-width: 1366px){:root{--fontsize12: .75rem;--fontsize14: .875rem;--fontsize16: 1rem;--fontsize17: 1.063rem;--fontsize17-5: 1.1rem;--fontsize18: 1.125rem;--fontsize18-4: 1.5rem;--fontsize20: 1.25rem;--fontsize21: 1.313rem;--fontsize22: 1.375rem;--fontsize23: 1.438rem;--fontsize24: 1.5rem;--fontsize26: 1.625rem;--fontsize28: 1.75rem;--fontsize30: 1.625rem;--fontsize32: 2rem;--fontsize34: 2.125rem;--fontsize36: 2rem;--fontsize40: 2.25rem;--fontsize46: 2.875rem;--fontsize80: 5rem}}@media screen and (max-width: 1365px) and (min-width: 768px){:root{--fontsize12: .75rem;--fontsize14: .875rem;--fontsize16: 1rem;--fontsize17: .9rem;--fontsize17-5: 1rem;--fontsize18: .875rem;--fontsize20: 1rem;--fontsize21: 1.063rem;--fontsize22: 1.125rem;--fontsize23: 1.188rem;--fontsize24: 1rem;--fontsize28: 1.5rem;--fontsize30: 1.25rem;--fontsize32: 1.75rem;--fontsize34: 1.875rem;--fontsize36: 1.625rem;--fontsize40: 2.5rem;--fontsize46: 2.875rem;--fontsize80: 3.5rem}}@media screen and (max-width: 767px){:root{--fontsize12: .75rem;--fontsize14: .875rem;--fontsize16: 1rem;--fontsize16-5: .77rem;--fontsize17: .9rem;--fontsize17-5: 1rem;--fontsize18: .875rem;--fontsize19: .938rem;--fontsize20: 1rem;--fontsize21: 1.063rem;--fontsize22: 1.125rem;--fontsize23: 1.188rem;--fontsize24: 1rem;--fontsize26: 1.25rem;--fontsize28: 1.5rem;--fontsize30: 1.25rem;--fontsize32: 1.75rem;--fontsize34: 1.875rem;--fontsize36: 1.625rem;--fontsize40: 2.5rem;--fontsize46: 2rem;--fontsize80: 2.5rem}}@font-face{font-family:icomoon;font-weight:400;src:url(../assets/fonts/icomoon.ttf) format(\"ttf\"),url(../assets/fonts/icomoon.woff) format(\"woff\");font-weight:normal;font-style:normal;font-display:swap}@font-face{font-family:\"Arial Regular\";src:url(../assets/fonts/arial-webfont.woff) format(\"woff\"),url(../assets/fonts/arial-webfont.woff2) format(\"woff2\");font-weight:normal;font-style:normal}@font-face{font-family:\"Arial Bold\";src:url(../assets/fonts/arialbold-webfont.woff) format(\"woff\"),url(../assets/fonts/arialbold-webfont.woff2) format(\"woff2\");font-weight:normal;font-style:normal}@font-face{font-family:\"Arial Black\";src:url(../assets/fonts/arialblack-webfont.woff) format(\"woff\"),url(../assets/fonts/arialblack-webfont.woff2) format(\"woff2\");font-weight:normal;font-style:normal}@font-face{font-family:\"Helvetica Neue Reqular\";src:url(../assets/fonts/helveticaneue.woff) format(\"woff\"),url(../assets/fonts/helveticaneue.woff2) format(\"woff2\");font-weight:normal;font-style:normal}@font-face{font-family:\"Helvetica Neue Thin\";src:url(../assets/fonts/helveticaneuethin-webfont.woff) format(\"woff\"),url(../assets/fonts/helveticaneuethin-webfont.woff2) format(\"woff2\");font-weight:normal;font-style:normal}@font-face{font-family:\"Helvetica Neue Medium\";src:url(../assets/fonts/helveticaneuemedium-webfont.woff) format(\"woff\"),url(../assets/fonts/helveticaneuemedium-webfont.woff2) format(\"woff2\");font-weight:normal;font-style:normal}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;font-feature-settings:normal;font-variant:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:400;line-height:1;text-transform:none;font-display:swap}.icon-right:before{content:\"\\e902\"}.icon-materials:before{content:\"\\e900\"}.icon-natural-lighting:before{content:\"\\e90a\"}.icon-rainwater:before{content:\"\\e901\"}.icon-roofing:before{content:\"\\e90b\"}.icon-flashing{position:relative;display:inline-block;height:32px;text-align:center;width:32px}.icon-flashing:before,.mainnav-link-level-2.show .navTagChild .icon-flashing:before{content:url(../assets/images/icon-flashing-white.svg);height:20px;width:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);line-height:15px}li.megamenuSubChild:hover .icon-flashing:before{content:url(../assets/images/icon-flashing-black.svg)}.icon-structural:before{content:\"\\e90c\"}.icon-accessories-old .path1:before{content:\"\\e903\"}.icon-accessories-old .path2:before{margin-left:-1em;content:\"\\e904\"}.icon-accessories-old .path3:before{margin-left:-1em;content:\"\\e905\"}.icon-cladding-old .path1:before{content:\"\\e90d\"}.icon-cladding-old .path2:before{margin-left:-1em;content:\"\\e90e\"}.icon-close:before{content:\"\\e90f\"}.icon-message:before{content:\"\\e910\"}.icon-search .path1:before{content:\"\\e906\"}.icon-search .path2:before{content:\"\\e907\"}.icon-search .path3:before{margin-left:-1.0156em;content:\"\\e908\"}.icon-summary:before{content:\"\\e911\"}.icon-branch:before{content:\"\\e912\"}.icon-delivery:before{content:\"\\e913\"}.icon-downloads:before{content:\"\\e909\"}.icon-drawings:before{content:\"\\e914\"}.icon-full:before{content:\"\\e915\"}.icon-manual:before{content:\"\\e916\"}.icon-payment:before{content:\"\\e917\"}.icon-empty .path1:before{content:\"\\e918\"}.icon-empty .path2:before{margin-left:-1em;content:\"\\e919\"}.icon-empty .path3:before{margin-left:-1em;content:\"\\e91a\"}.icon-product-overview:before{content:\"\\e91b\"}.icon-arrows:before{content:\"\\e91c\"}.icon-selected:before{content:\"\\e91d\"}.icon-accessories:before{content:\"\\e91b\"}.icon-cladding:before{content:\"\\e91e\"}.icon-Triangle:before{content:\"\\e91f\"}.icon-home:before{content:\"\\e920\"}.icon-faq:before{content:\"\\e921\"}.icon-temperature:before{content:\"\\e922\"}body header{font-family:\"Arial Regular\",sans-serif}header{background-color:#1d1d1b;position:sticky;top:0;background-size:100% 25%!important;background-repeat:no-repeat;z-index:10}header .header{max-width:100%;padding:0}header cx-banner cx-media img{margin-top:.7rem;margin-bottom:0}header label{display:inline-flex}header .SiteLinks{height:52px;display:flex;align-items:center;justify-content:space-between;padding-top:5px;padding-bottom:5px}header .SiteLinks cx-paragraph p{color:#fff;font-size:var(--fontsize16);line-height:var(--fontsize16);margin-bottom:0}header .SiteLinks cx-paragraph{font-size:var(--fontsize16)}header .SiteLinks app-account-dropdown,header .SiteLinks app-find-store{width:calc(25% - 25px);max-width:328px;margin-right:25px}header .SiteLinks app-contact-us{width:calc(20% - 25px);max-width:100px;margin-left:auto}header .SiteLinks app-custom-mini-cart{width:10%}header .SiteLinks .preferenceLink{margin-left:auto}header .SiteLinks .preferenceLink cx-generic-link{margin:0}header .SiteLinks .preferenceLink cx-generic-link cx-media img{height:22px;margin:0}header .SiteLogo .storeLogo{position:absolute;z-index:99;left:40px;bottom:10px}header .SiteLogo .homeLogo{max-width:28px;height:28px;position:absolute;z-index:99;bottom:47px}header .NavigationBar{flex:70%;background-color:#b61828;min-height:40px;display:flex;align-items:center;position:relative}header .logoutMenu{margin-top:0!important}header .logoutMenu li{cursor:pointer;background-color:#4c4c4c;color:#fff}header .logoutMenu li:hover{text-decoration:underline;background-color:#4c4c4c}header .MarketingContext{width:100%;margin:auto}.customer-service-icon{cursor:pointer}.helpSupport{width:20rem;border:0;margin-top:.5rem!important;transform:translate(-42%,36px)!important;padding:1rem 1rem 0;background-color:#393939;color:#fff;top:0}.helpSupport .arrow-up{position:absolute;top:-8px;right:44%;width:0;height:0;border-left:15px solid rgba(0,0,0,0);border-right:15px solid rgba(0,0,0,0);border-bottom:15px solid #393939}.helpSupport .contact-us-info .heading{font-family:\"Arial Bold\",sans-serif}.helpSupport .contact-us-info .detail{font-size:var(--fontsize14);line-height:2rem}.helpSupport .contact-us-info .detail .service-icon{height:20px;width:20px;margin-right:10px}.helpSupport .contact-us-info .contactLink a{font-size:var(--fontsize14);text-decoration:underline;text-transform:uppercase}.helpSupport .contact-us-info a{color:#fff;text-decoration:none}.helpSupport .contact-us-info a:hover{text-decoration:underline}.pageTitle{font-family:\"Helvetica Neue Regular\",sans-serif;font-size:var(--fontsize54)}#visualization-container{text-align:center;margin:0 auto}#cds-viewer-container-3d{width:320px;height:200px}#cds-viewer-container-2d{width:320px;height:200px}[aria-label=Close]{cursor:pointer}cx-media.is-missing{background:url(./assets/images/search-noimage.svg);background-size:cover;background-position:center;background-repeat:no-repeat}cx-global-message{position:fixed;top:9rem;width:100%;z-index:13}@media screen and (max-width: 991px){cx-global-message{top:3.75rem}cx-storefront header{background-color:#b61828}cx-storefront header cx-banner cx-media img{margin:auto}cx-storefront header .SiteLogo{width:100%;max-width:211px;margin:auto;padding-left:30px;box-sizing:border-box}cx-storefront header .SiteLogo .storeLogo{position:unset}cx-storefront header .SearchBox{margin:14px 0 10px;width:30px}cx-storefront header .SiteLinks{background-color:transparent;width:110px;margin:auto 25px auto 0}cx-storefront header .SiteLinks app-account-dropdown,cx-storefront header .SiteLinks app-find-store,cx-storefront header .SiteLinks app-contact-us,cx-storefront header .SiteLinks cx-paragraph,cx-storefront header .SiteLinks .preferenceLink{display:none}cx-storefront header .SiteLinks app-custom-mini-cart,cx-storefront header .SiteLinks app-custom-user-account{width:35px}cx-storefront header.is-expanded{overflow-y:auto;position:fixed;bottom:0;top:0;width:calc(100% - 99px)}cx-storefront header.is-expanded .header{background-color:#b61828;margin-left:0}cx-storefront header.is-expanded .PreHeader{position:absolute;right:15px;top:15px}cx-storefront header.is-expanded .SearchBox{display:none}cx-storefront header.is-expanded .SiteLogo{position:absolute;top:25px;z-index:9}cx-storefront header.is-expanded .SiteLinks{background-color:#1d1d1b;width:100%;margin:15px auto 15px 0;height:unset;padding:15px;max-width:100%;position:relative;z-index:9;top:60px}cx-storefront header.is-expanded .SiteLinks app-account-dropdown,cx-storefront header.is-expanded .SiteLinks app-find-store,cx-storefront header.is-expanded .SiteLinks app-contact-us,cx-storefront header.is-expanded .SiteLinks cx-paragraph,cx-storefront header.is-expanded .SiteLinks .preferenceLink{display:block}cx-storefront header.is-expanded .SiteLinks app-custom-mini-cart,cx-storefront header.is-expanded .SiteLinks app-custom-user-account{display:none}cx-storefront header.is-expanded .SiteLinks app-account-dropdown{width:100%;max-width:100%}cx-storefront header.is-expanded .SiteLinks app-find-store{width:50%;max-width:328px;min-width:328px}cx-storefront header.is-expanded .SiteLinks app-contact-us{margin-right:15px;margin-left:auto;width:115px;max-width:unset}cx-storefront header.is-expanded .navigation{position:relative;top:45px}cx-storefront header.is-expanded:before{background-color:#0000004d;right:0;content:\"\";position:fixed;z-index:2;top:0;bottom:0;height:100vh;width:99px}cx-storefront header.is-expanded:after{background-color:transparent}}@media screen and (max-width: 576px){cx-storefront header .SiteLogo{max-width:80px}cx-storefront header .SiteLogo .storeLogo{display:none}cx-storefront header .searchBox{height:45px}cx-storefront header.is-expanded{width:100%}cx-storefront header.is-expanded .header,cx-storefront header.is-expanded .navigation{width:100%}cx-storefront header.is-expanded .SiteLogo{max-width:211px!important}cx-storefront header.is-expanded .SiteLogo .storeLogo{display:block}cx-storefront header.is-expanded .SiteLinks{max-width:100%;width:100%}cx-storefront header.is-expanded .SiteLinks app-account-dropdown,cx-storefront header.is-expanded .SiteLinks app-find-store,cx-storefront header.is-expanded .SiteLinks app-contact-us,cx-storefront header.is-expanded .SiteLinks cx-paragraph,cx-storefront header.is-expanded .SiteLinks .preferenceLink{display:block}cx-storefront header.is-expanded .SiteLinks app-custom-mini-cart,cx-storefront header.is-expanded .SiteLinks app-custom-user-account{display:none}cx-storefront header.is-expanded .SiteLinks app-find-store{width:100%;max-width:100%;margin-bottom:10px}cx-storefront header.is-expanded .SiteLinks app-contact-us{margin-left:0}cx-storefront header.is-expanded .SiteLinks cx-paragraph{margin-left:auto}cx-storefront header.is-expanded:before{display:none}.pageTitle{font-size:28px}}.storeFinder{max-width:328px}.input-icon{background-color:#6f6f6f;padding:8px 10px}.w-20{width:20px}.custom-input{height:40px;background-color:#393939;border:1px solid #6F6F6F;color:#fff;border-radius:0;padding:.375rem .75rem;font-size:var(--fontsize16);line-height:var(--fontsize22);width:calc(100% - 42px)}.custom-input:hover{color:#fff}.placeholder-icon{position:absolute;right:0;top:0;z-index:4;cursor:pointer;width:40px;height:40px;display:flex}.form-control[type=text]:focus{background-color:#464645}.close{color:#fff}::placeholder{color:#fff}#storeFinderModal .modal-dialog{position:fixed;margin:auto;width:100%;height:100vh;right:0px;max-width:508px;padding-bottom:4.5rem}#storeFinderModal .modal-content{background-color:#393939;color:#fff}#storeFinderModal .modal-content .modal-header{border-bottom:none;padding:3rem .5rem 1rem}#storeFinderModal .modal-content .modal-header .modal-title{font-size:var(--fontsize24);line-height:var(--fontsize24);font-family:\"Arial Bold\",sans-serif}#storeFinderModal .modal-content .modal-header .branch-pop-close{position:absolute;top:20px;right:25px;font-size:1.5rem;cursor:pointer}#storeFinderModal .modal-body{padding:1rem;height:calc(100vh - 88px)}#storeFinderModal .selected-location{background-color:#474747;padding:1rem}#storeFinderModal .selected-location .homeTxtLabel{width:60px;display:inline-block}#storeFinderModal .selected-location address{margin-bottom:0}#storeFinderModal .selected-location address h6{font-size:var(--fontsize18);line-height:var(--fontsize18);font-family:\"Arial Bold\",sans-serif}#storeFinderModal .selected-location address h6 span{font-size:var(--fontsize14)}#storeFinderModal .selected-location address p{font-size:var(--fontsize16);line-height:30px}#storeFinderModal .selected-location address a{color:#fff;text-decoration:underline}#storeFinderModal .selected-location address .homeDirection{cursor:pointer;text-decoration:underline;text-transform:uppercase;font-size:var(--fontsize14);line-height:var(--fontsize16);font-family:\"Arial Bold\",sans-serif}#storeFinderModal .nearest-branch{margin-top:2rem;margin-bottom:3rem}#storeFinderModal .nearest-branch .tab-content .tab-pane{padding-right:1.5rem;overflow-y:auto;height:calc(100vh - 400px)}#storeFinderModal .nearest-branch h5{font-size:var(--fontsize18);line-height:var(--fontsize23);font-family:\"Arial Bold\",sans-serif}#storeFinderModal .nearest-branch h5 span{font-size:var(--fontsize14)}#storeFinderModal .nearest-branch .nav-item{width:calc(100% / 3);text-align:left}#storeFinderModal .nearest-branch .nav-link{font-size:16px;padding-bottom:0;background:#393939;color:#fff}#storeFinderModal .nearest-branch .nav-link.active{border-bottom:4px solid #B61828}#storeFinderModal .nearest-branch address{padding:1rem 0;border-bottom:1px solid #707070}#storeFinderModal .nearest-branch address h5{font-size:var(--fontsize18);line-height:var(--fontsize18);font-family:\"Arial Bold\",sans-serif}#storeFinderModal .nearest-branch address p{font-size:var(--fontsize16);line-height:30px}#storeFinderModal .nearest-branch address a{color:#fff;text-decoration:underline}#storeFinderModal .nearest-branch .direction{text-transform:uppercase}#storeFinderModal .nearest-branch .direction a{font-family:\"Arial Bold\",sans-serif;text-decoration:underline;font-size:var(--fontsize14)}#storeFinderModal .nearest-branch .select-btn{font-family:\"Arial Bold\",sans-serif;height:44px;width:132px;font-size:var(--fontsize14);line-height:var(--fontsize16);background-color:#b61828;color:#fff;border:none}.noDataAvailableLabel{font-size:var(--fontsize14)}.contactNumber{min-width:10em;font-size:var(--fontsize16);padding-top:2px;line-height:var(--fontsize40)}.contactNumber .contactNum i{font-size:var(--fontsize20)}.contactNumber .contactNum a{color:#fff;text-decoration:underline}@media screen and (max-width: 767px){#storeFinderModal .modal-content .modal-header .modal-title{font-size:1.5rem}}@media screen and (max-width: 576px){.storeFinder{max-width:100%}}\n"], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4__namespace.AsyncPipe } });
|
|
1256
1282
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FindStoreComponent, decorators: [{
|
|
1257
1283
|
type: i0.Component,
|
|
@@ -1260,7 +1286,7 @@
|
|
|
1260
1286
|
templateUrl: './find-store.component.html',
|
|
1261
1287
|
styleUrls: ['./find-store.component.scss']
|
|
1262
1288
|
}]
|
|
1263
|
-
}], ctorParameters: function () { return [{ type: FindStoreService }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
|
1289
|
+
}], ctorParameters: function () { return [{ type: FindStoreService }, { type: UserAccountDetailServiceService }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
|
1264
1290
|
|
|
1265
1291
|
var sharedData$9 = {};
|
|
1266
1292
|
var listOfModules$9 = [];
|