ng-miam 9.3.19 → 9.3.21

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.
@@ -1832,7 +1832,7 @@
1832
1832
  env: 'prod',
1833
1833
  miamAPI: 'https://api.miam.tech',
1834
1834
  miamWeb: 'https://miam.tech',
1835
- mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.8/dist',
1835
+ mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.10/dist',
1836
1836
  mealzSsrApi: 'https://ssr-api.mealz.ai',
1837
1837
  mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.5',
1838
1838
  lang: 'fr',
@@ -3652,7 +3652,7 @@
3652
3652
  EventJourney["EMPTY"] = "";
3653
3653
  })(EventJourney || (EventJourney = {}));
3654
3654
 
3655
- var VERSION = "9.3.19"; // TODO: replace by ##VERSION## and update it in the CI/CD
3655
+ var VERSION = "9.3.21"; // TODO: replace by ##VERSION## and update it in the CI/CD
3656
3656
 
3657
3657
  var ContextRegistryService = /** @class */ (function () {
3658
3658
  function ContextRegistryService() {
@@ -9033,11 +9033,29 @@
9033
9033
  }), operators.switchMap(function () { return _this.userService.setUserInfo(forbidProfiling); }));
9034
9034
  };
9035
9035
  ContextService.prototype.loadStoreLocatorPackage = function () {
9036
+ this.loadStoreLocatorScript();
9037
+ this.loadStoreLocatorCss();
9038
+ };
9039
+ ContextService.prototype.loadStoreLocatorScript = function () {
9036
9040
  var storeLocatorScript = document.createElement('script');
9037
9041
  storeLocatorScript.setAttribute('type', 'module');
9042
+ storeLocatorScript.setAttribute('id', 'mealz-store-locator-script');
9038
9043
  storeLocatorScript.setAttribute('src', environment$1.mealzComponents + "/store-locator/store-locator.min.js");
9044
+ if (document.getElementById('mealz-store-locator-script')) {
9045
+ return;
9046
+ }
9039
9047
  document.head.appendChild(storeLocatorScript);
9040
9048
  };
9049
+ ContextService.prototype.loadStoreLocatorCss = function () {
9050
+ var storeLocatorCss = document.createElement('link');
9051
+ storeLocatorCss.setAttribute('rel', 'stylesheet');
9052
+ storeLocatorCss.setAttribute('id', 'mealz-store-locator-css');
9053
+ storeLocatorCss.setAttribute('href', environment$1.mealzComponents + "/store-locator/store-locator.css");
9054
+ if (document.getElementById('mealz-store-locator-css')) {
9055
+ return;
9056
+ }
9057
+ document.head.appendChild(storeLocatorCss);
9058
+ };
9041
9059
  ContextService.prototype.generateAuthlessIdIfNecessary = function () {
9042
9060
  var _this = this;
9043
9061
  return this.userService.generatingAuthlessId$.pipe(operators.debounceTime(800), operators.take(1), operators.switchMap(function (isGenerating) {
@@ -10814,7 +10832,7 @@
10814
10832
  env: 'prod',
10815
10833
  miamAPI: 'https://api.miam.tech',
10816
10834
  miamWeb: 'https://miam.tech',
10817
- mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.8/dist',
10835
+ mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.10/dist',
10818
10836
  mealzSsrApi: 'https://ssr-api.mealz.ai',
10819
10837
  mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.5',
10820
10838
  lang: 'fr',