@inappstory/react-sdk 1.8.0-rc.8 → 1.8.0-rc.9

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.
@@ -3180,6 +3180,39 @@ class API {
3180
3180
  set baseURL(value) {
3181
3181
  this._baseURL = value;
3182
3182
  }
3183
+ buildQuery(obj, prefix) {
3184
+ const pairs = [];
3185
+ for (const [key, value] of Object.entries(obj)) {
3186
+ if (value == null || value === "")
3187
+ continue;
3188
+ const fullKey = prefix ? `${prefix}[${key}]` : key;
3189
+ if (typeof value === "object" && !Array.isArray(value)) {
3190
+ pairs.push(...this.buildQuery(value, fullKey));
3191
+ }
3192
+ else {
3193
+ pairs.push([fullKey, value]);
3194
+ }
3195
+ }
3196
+ return pairs;
3197
+ }
3198
+ buildBody(obj) {
3199
+ const result = {};
3200
+ for (const [key, value] of Object.entries(obj)) {
3201
+ if (value == null || value === "") {
3202
+ continue;
3203
+ }
3204
+ if (typeof value === "object" && !Array.isArray(value)) {
3205
+ const filteredNested = this.buildBody(value);
3206
+ if (Object.keys(filteredNested).length) {
3207
+ result[key] = filteredNested;
3208
+ }
3209
+ }
3210
+ else {
3211
+ result[key] = value;
3212
+ }
3213
+ }
3214
+ return result;
3215
+ }
3183
3216
  async request(config) {
3184
3217
  return new Promise((resolve, reject) => {
3185
3218
  const cb = async () => {
@@ -3195,7 +3228,7 @@ class API {
3195
3228
  }
3196
3229
  let search = "";
3197
3230
  if (!(0,isNil_js_namespaceObject["default"])(config.params) && (0,isObject_js_namespaceObject["default"])(config.params)) {
3198
- search = new URLSearchParams(Object.entries(config.params).filter(([key, value]) => value != null && value !== "")).toString();
3231
+ search = new URLSearchParams(this.buildQuery(config.params)).toString();
3199
3232
  }
3200
3233
  let url = new URL(`${trimStartSlash(config.url)}${search ? "?" + search : ""}`, this._baseURL);
3201
3234
  let method = "GET";
@@ -3208,7 +3241,7 @@ class API {
3208
3241
  }
3209
3242
  let body = null;
3210
3243
  if (!(0,isNil_js_namespaceObject["default"])(config.data) && (0,isObject_js_namespaceObject["default"])(config.data)) {
3211
- body = JSON.stringify(config.data);
3244
+ body = JSON.stringify(this.buildBody(config.data));
3212
3245
  headers["Content-Type"] = "application/json";
3213
3246
  }
3214
3247
  const response = await fetch(url.toString(), {
@@ -3450,7 +3483,7 @@ var __esDecorate = (undefined && undefined.__esDecorate) || function (ctor, desc
3450
3483
 
3451
3484
 
3452
3485
 
3453
- const messageFields = "campaign_name,id,events,appearance,slides_html,type,frequency_limit,display_to,display_from,need_placeholders,has_limit";
3486
+ const messageFields = "campaign_name,id,events,appearance,slides_html,type,frequency_limit,display_to,display_from,disable_close,need_placeholders,has_limit";
3454
3487
  const messageFieldsWithPrefix = messageFields
3455
3488
  .split(",")
3456
3489
  .map(field => `messages.${field}`)
@@ -3470,10 +3503,12 @@ let IamApi = (() => {
3470
3503
  value: (__runInitializers(this, _instanceExtraInitializers), storyManager)
3471
3504
  });
3472
3505
  }
3473
- async fetchAll({ tags }) {
3474
- const response = await api.get("inappmessaging", {
3475
- fields: messageFieldsWithPrefix,
3476
- tag: tags.join(",")
3506
+ async fetchAll({ tags, options }) {
3507
+ const response = await api.post("inappmessaging", {
3508
+ tags: tags.join(","),
3509
+ options
3510
+ }, {
3511
+ fields: messageFieldsWithPrefix
3477
3512
  });
3478
3513
  return response.data.messages;
3479
3514
  }
@@ -4574,43 +4609,44 @@ class StoryFeedsApi {
4574
4609
  value: storyManager
4575
4610
  });
4576
4611
  }
4577
- async fetchUgcFeed({ filter, tags, testKey }) {
4612
+ async fetchUgcFeed({ filter, tags, testKey, options }) {
4578
4613
  const url = "ugc/feed";
4579
4614
  const params = {
4580
4615
  tags: tags.join(","),
4581
4616
  test: testKey,
4582
- f: filter && JSON.stringify(filter)
4617
+ f: filter && JSON.stringify(filter),
4618
+ options
4583
4619
  };
4584
4620
  const response = await api.get(url, params !== null && params !== void 0 ? params : {});
4585
4621
  return response.data;
4586
4622
  }
4587
- async fetchDefaultFeed({ feedSlug, tags, testKey }) {
4623
+ async fetchDefaultFeed({ feedSlug, tags, testKey, options }) {
4588
4624
  const url = `feed/${feedSlug}`;
4589
- const params = {
4625
+ const response = await api.post(url, {
4590
4626
  tags: tags.join(","),
4627
+ options
4628
+ }, {
4591
4629
  test: testKey
4592
- };
4593
- const response = await api.get(url, params !== null && params !== void 0 ? params : {});
4630
+ });
4594
4631
  response.data.feedSlug = feedSlug;
4595
4632
  return response.data;
4596
4633
  }
4597
4634
  async fetchFavoriteFeed({ tags }) {
4598
4635
  const url = "story";
4599
- const params = {
4636
+ const response = await api.get(url, {
4600
4637
  tags: tags.join(","),
4601
4638
  favorite: 1
4602
- };
4603
- const response = await api.get(url, params !== null && params !== void 0 ? params : {});
4639
+ });
4604
4640
  return response.data;
4605
4641
  }
4606
4642
  async fetchOnboardingFeed(payload) {
4607
4643
  const url = `feed/${payload.feedSlug}/onboarding`;
4608
- const tags = payload.tags.join(",");
4609
- const params = {
4610
- tags: tags,
4644
+ const response = await api.post(url, {
4645
+ tags: payload.tags.join(","),
4646
+ options: payload.options
4647
+ }, {
4611
4648
  limit: payload.limit
4612
- };
4613
- const response = await api.get(url, params !== null && params !== void 0 ? params : {});
4649
+ });
4614
4650
  response.data.feedSlug = payload.feedSlug;
4615
4651
  return response.data;
4616
4652
  }
@@ -7838,6 +7874,18 @@ let StorySlideViewModel = (() => {
7838
7874
  writable: true,
7839
7875
  value: (storySlideViewModel_runInitializers(this, __disabledNextClick_extraInitializers), new external_async_mutex_namespaceObject.Mutex())
7840
7876
  });
7877
+ Object.defineProperty(this, "isInited", {
7878
+ enumerable: true,
7879
+ configurable: true,
7880
+ writable: true,
7881
+ value: false
7882
+ });
7883
+ Object.defineProperty(this, "isStarted", {
7884
+ enumerable: true,
7885
+ configurable: true,
7886
+ writable: true,
7887
+ value: false
7888
+ });
7841
7889
  Object.defineProperty(this, "handleTouchEnd", {
7842
7890
  enumerable: true,
7843
7891
  configurable: true,
@@ -7900,6 +7948,8 @@ let StorySlideViewModel = (() => {
7900
7948
  }
7901
7949
  async init() {
7902
7950
  const release = await this.mutex.acquire();
7951
+ if (this.isInited)
7952
+ return;
7903
7953
  let loaderShown = this.story.needShowLoaderScreen;
7904
7954
  let startTime = Date.now();
7905
7955
  const loaderTimeout = setTimeout(() => {
@@ -7912,6 +7962,7 @@ let StorySlideViewModel = (() => {
7912
7962
  const { result, reason } = await this.slideApi.showSlide(this.html);
7913
7963
  if (!result)
7914
7964
  throw new Error(reason);
7965
+ this.isInited = true;
7915
7966
  }
7916
7967
  catch (error) {
7917
7968
  this.handleSlideError(error);
@@ -7925,9 +7976,12 @@ let StorySlideViewModel = (() => {
7925
7976
  async start() {
7926
7977
  const release = await this.mutex.acquire();
7927
7978
  try {
7979
+ if (!this.isInited || this.isStarted)
7980
+ return;
7928
7981
  debug(`[SLIDE][START]:${this.story.id}:${this.slide.index}`);
7929
7982
  await this.slideApi.slideStart({ muted: this._story.muted });
7930
7983
  this.story.touchController.on(TouchControllerEvent.TouchEnd, this.handleTouchEnd);
7984
+ this.isStarted = true;
7931
7985
  }
7932
7986
  catch (error) {
7933
7987
  this.handleSlideError(error);
@@ -7942,6 +7996,8 @@ let StorySlideViewModel = (() => {
7942
7996
  this.story.hideErrorScreen();
7943
7997
  this.story.showLoaderScreen();
7944
7998
  await this.slideApi.slideRestart({ muted: this._story.muted });
7999
+ this.isInited = true;
8000
+ this.isStarted = true;
7945
8001
  }
7946
8002
  catch (error) {
7947
8003
  this.handleSlideError(error);
@@ -7954,6 +8010,8 @@ let StorySlideViewModel = (() => {
7954
8010
  async resumeByApp() {
7955
8011
  const release = await this.mutex.acquire();
7956
8012
  try {
8013
+ if (!this.isStarted)
8014
+ return;
7957
8015
  debug(`[SLIDE][RESUME-BY-APP]:${this.story.id}:${this.slide.index}`);
7958
8016
  await this.slideApi.slideAppResume();
7959
8017
  }
@@ -7967,6 +8025,8 @@ let StorySlideViewModel = (() => {
7967
8025
  async pauseByApp() {
7968
8026
  const release = await this.mutex.acquire();
7969
8027
  try {
8028
+ if (!this.isStarted)
8029
+ return;
7970
8030
  debug(`[SLIDE][PAUSE-BY-APP]:${this.story.id}:${this.slide.index}`);
7971
8031
  await this.slideApi.slideAppPause();
7972
8032
  }
@@ -7980,6 +8040,8 @@ let StorySlideViewModel = (() => {
7980
8040
  async resumeByUser() {
7981
8041
  const release = await this.mutex.acquire();
7982
8042
  try {
8043
+ if (!this.isStarted)
8044
+ return;
7983
8045
  debug(`[SLIDE][RESUME-BY-USER]:${this.story.id}:${this.slide.index}`);
7984
8046
  await this.slideApi.slideUserResume();
7985
8047
  }
@@ -7993,6 +8055,8 @@ let StorySlideViewModel = (() => {
7993
8055
  async pauseByUser() {
7994
8056
  const release = await this.mutex.acquire();
7995
8057
  try {
8058
+ if (!this.isStarted)
8059
+ return;
7996
8060
  debug(`[SLIDE][PAUSE-BY-USER]:${this.story.id}:${this.slide.index}`);
7997
8061
  await this.slideApi.slideUserPause();
7998
8062
  }
@@ -8006,6 +8070,8 @@ let StorySlideViewModel = (() => {
8006
8070
  async stop(params) {
8007
8071
  const release = await this.mutex.acquire();
8008
8072
  try {
8073
+ if (!this.isInited || !this.isStarted)
8074
+ return;
8009
8075
  debug(`[SLIDE][STOP]:${this.story.id}:${this.slide.index}`);
8010
8076
  await this.slideApi.slideStop(params);
8011
8077
  }
@@ -8013,6 +8079,9 @@ let StorySlideViewModel = (() => {
8013
8079
  this.handleSlideError(error);
8014
8080
  }
8015
8081
  finally {
8082
+ this.isStarted = false;
8083
+ if (params.prepareForRestart === 2 /* ON_SLIDE_STOP_PREPARE_FOR_RESTART.NOT_PREPARE */)
8084
+ this.isInited = false;
8016
8085
  this.story.touchController.off(TouchControllerEvent.TouchEnd, this.handleTouchEnd);
8017
8086
  release();
8018
8087
  }
@@ -8045,6 +8114,8 @@ let StorySlideViewModel = (() => {
8045
8114
  }
8046
8115
  async destroy() {
8047
8116
  try {
8117
+ this.isStarted = false;
8118
+ this.isInited = false;
8048
8119
  this.story.touchController.off(TouchControllerEvent.TouchEnd, this.handleTouchEnd);
8049
8120
  await this.slideApi.destroy();
8050
8121
  }
@@ -9399,6 +9470,7 @@ var storyViewModel_classPrivateFieldSet = (undefined && undefined.__classPrivate
9399
9470
 
9400
9471
 
9401
9472
 
9473
+
9402
9474
  var StoryEvent;
9403
9475
  (function (StoryEvent) {
9404
9476
  StoryEvent["ShowToast"] = "showToast";
@@ -9499,7 +9571,7 @@ let StoryViewModel = (() => {
9499
9571
  writable: true,
9500
9572
  value: (storyViewModel_runInitializers(this, __$root_extraInitializers), false)
9501
9573
  });
9502
- Object.defineProperty(this, "isActive", {
9574
+ Object.defineProperty(this, "isStarted", {
9503
9575
  enumerable: true,
9504
9576
  configurable: true,
9505
9577
  writable: true,
@@ -9511,6 +9583,12 @@ let StoryViewModel = (() => {
9511
9583
  writable: true,
9512
9584
  value: 0
9513
9585
  });
9586
+ Object.defineProperty(this, "mutex", {
9587
+ enumerable: true,
9588
+ configurable: true,
9589
+ writable: true,
9590
+ value: new external_async_mutex_namespaceObject.Mutex()
9591
+ });
9514
9592
  // internal services
9515
9593
  Object.defineProperty(this, "slideApi", {
9516
9594
  enumerable: true,
@@ -9591,6 +9669,10 @@ let StoryViewModel = (() => {
9591
9669
  writable: true,
9592
9670
  value: async (el) => {
9593
9671
  this._$root = el;
9672
+ // Reaction to `layout` (modern or classic) change
9673
+ // TODO: add test with example
9674
+ await this.reinit();
9675
+ await this.restart();
9594
9676
  }
9595
9677
  });
9596
9678
  Object.defineProperty(this, "handleKeydown", {
@@ -9779,7 +9861,7 @@ let StoryViewModel = (() => {
9779
9861
  }
9780
9862
  async prevSlideOrStory() {
9781
9863
  if (this.reachStart && this.storyReader.reachStart) {
9782
- if (!this.isActive)
9864
+ if (!this.isStarted)
9783
9865
  return;
9784
9866
  await this.activeSlide.restart();
9785
9867
  return;
@@ -9828,41 +9910,54 @@ let StoryViewModel = (() => {
9828
9910
  await this.storyManager.rootStore.storyStore.updateNarrativeData(this.id, data);
9829
9911
  }
9830
9912
  detachRoot() {
9913
+ var _b;
9831
9914
  this._$root = null;
9915
+ const isInited = this.isInited;
9916
+ const isStarted = this.isStarted;
9917
+ this.stop();
9918
+ (_b = this.slideApi) === null || _b === void 0 ? void 0 : _b.destroy();
9919
+ for (const slide of this._slides)
9920
+ slide.destroy();
9921
+ this.isInited = isInited;
9922
+ this.isStarted = isStarted;
9832
9923
  }
9833
9924
  async init() {
9834
- if (this.isInited)
9835
- return;
9836
- if (!this.initOnce && !this.story.canBeShown) {
9837
- this.showLoaderScreen();
9838
- this.initOnce = true;
9839
- }
9840
- await (0,external_mobx_namespaceObject.when)(() => this.canBeShown && Boolean(this._$root));
9841
- await this.activeSlide.init();
9842
- this.isInited = true;
9925
+ await this.mutex.runExclusive(async () => {
9926
+ if (this.isInited)
9927
+ return;
9928
+ if (!this.initOnce && !this.story.canBeShown) {
9929
+ this.showLoaderScreen();
9930
+ this.initOnce = true;
9931
+ }
9932
+ await (0,external_mobx_namespaceObject.when)(() => this.canBeShown && Boolean(this._$root));
9933
+ await this.activeSlide.init();
9934
+ this.isInited = true;
9935
+ });
9843
9936
  }
9844
9937
  async start() {
9845
- if (!this.isInited)
9846
- throw new Error("[IAS]: story was not initialized error. Please contact IAS support.");
9847
- if (this.isActive)
9848
- return;
9849
- await this.activeSlide.start();
9850
- document.addEventListener("visibilitychange", this.handleVisibilityChange);
9851
- document.addEventListener("keydown", this.handleKeydown);
9852
- this.isActive = true;
9853
- this._activeSlideStartTime = Date.now();
9938
+ await this.mutex.runExclusive(async () => {
9939
+ if (this.isStarted || !this.isInited)
9940
+ return;
9941
+ await this.activeSlide.start();
9942
+ document.addEventListener("visibilitychange", this.handleVisibilityChange);
9943
+ document.addEventListener("keydown", this.handleKeydown);
9944
+ this.isStarted = true;
9945
+ this._activeSlideStartTime = Date.now();
9946
+ });
9854
9947
  }
9855
9948
  async stop() {
9856
- var _b;
9857
- if (!this.isActive || !this.isInited)
9858
- return;
9859
- (_b = this.toast) === null || _b === void 0 ? void 0 : _b.destroy();
9860
- this.isActive = false;
9861
- this.slideApiHandlers.clearNarrativeSessionDataCache();
9862
- this.resumeAll();
9863
- await this.activeSlide.stop({ prepareForRestart: 1 /* ON_SLIDE_STOP_PREPARE_FOR_RESTART.PREPARE */ });
9864
- document.removeEventListener("visibilitychange", this.handleVisibilityChange);
9865
- document.removeEventListener("keydown", this.handleKeydown);
9949
+ await this.mutex.runExclusive(async () => {
9950
+ var _b;
9951
+ if (!this.isStarted || !this.isInited)
9952
+ return;
9953
+ (_b = this.toast) === null || _b === void 0 ? void 0 : _b.destroy();
9954
+ this.isStarted = false;
9955
+ this.slideApiHandlers.clearNarrativeSessionDataCache();
9956
+ this.resumeAll();
9957
+ await this.activeSlide.stop({ prepareForRestart: 1 /* ON_SLIDE_STOP_PREPARE_FOR_RESTART.PREPARE */ });
9958
+ document.removeEventListener("visibilitychange", this.handleVisibilityChange);
9959
+ document.removeEventListener("keydown", this.handleKeydown);
9960
+ });
9866
9961
  }
9867
9962
  canGoNext() {
9868
9963
  return this.activeSlide.canGoNext();
@@ -9888,13 +9983,13 @@ let StoryViewModel = (() => {
9888
9983
  this.goodsWidget.close();
9889
9984
  const activeSlide = this.getSlideByIndex(this._activeSlideIndex);
9890
9985
  this.slideApiHandlers.clearNarrativeSessionDataCache();
9891
- if (this.isActive)
9986
+ if (this.isStarted)
9892
9987
  await activeSlide.stop({ prepareForRestart: 2 /* ON_SLIDE_STOP_PREPARE_FOR_RESTART.NOT_PREPARE */ });
9893
9988
  await activeSlide.destroy();
9894
9989
  (_b = this.slideApi) === null || _b === void 0 ? void 0 : _b.destroy();
9895
9990
  (_c = this.toast) === null || _c === void 0 ? void 0 : _c.destroy();
9896
9991
  this.isInited = false;
9897
- this.isActive = false;
9992
+ this.isStarted = false;
9898
9993
  }
9899
9994
  notifyPauseStateChange() {
9900
9995
  if (this.pauseManager.isUserPaused)
@@ -9949,8 +10044,6 @@ let StoryViewModel = (() => {
9949
10044
  }
9950
10045
  async createSlidesViewModels(slides, slideApi) {
9951
10046
  this._slides = slides.map((slide, index) => new StorySlideViewModel(this, index, slideApi, slide));
9952
- // Reaction to `layout` (modern or classsic) change
9953
- await this.onSlideChange(this.activeSlideIndex);
9954
10047
  }
9955
10048
  handleSpaceKeydown(e) {
9956
10049
  if (e.code !== "Space")
@@ -9969,17 +10062,34 @@ let StoryViewModel = (() => {
9969
10062
  this.mute();
9970
10063
  }
9971
10064
  async onSlideChange(index) {
9972
- const lastSlide = this.getSlideByIndex(this._activeSlideIndex);
9973
- const activeSlide = this.getSlideByIndex(index);
9974
- this._activeSlideIndex = index;
9975
- if (this.isInited)
9976
- await activeSlide.init();
9977
- if (this.isActive) {
10065
+ try {
10066
+ if (!this.isInited || !this.isStarted)
10067
+ return;
10068
+ const lastSlide = this.getSlideByIndex(this._activeSlideIndex);
10069
+ const activeSlide = this.getSlideByIndex(index);
10070
+ this._activeSlideIndex = index;
10071
+ this.hideErrorScreen();
9978
10072
  this.resumeAll();
10073
+ await activeSlide.init();
9979
10074
  await (lastSlide === null || lastSlide === void 0 ? void 0 : lastSlide.stop({ prepareForRestart: 2 /* ON_SLIDE_STOP_PREPARE_FOR_RESTART.NOT_PREPARE */ }));
9980
10075
  await activeSlide.start();
9981
10076
  this._activeSlideStartTime = Date.now();
9982
10077
  }
10078
+ catch (error) {
10079
+ console.error(error);
10080
+ }
10081
+ }
10082
+ async reinit() {
10083
+ if (this.isInited) {
10084
+ this.isInited = false;
10085
+ await this.init();
10086
+ }
10087
+ }
10088
+ async restart() {
10089
+ if (this.isStarted) {
10090
+ this.isStarted = false;
10091
+ await this.start();
10092
+ }
9983
10093
  }
9984
10094
  },
9985
10095
  _StoryViewModel__activeSlideIndex_accessor_storage = new WeakMap(),
@@ -10479,7 +10589,7 @@ class GameClientConfig {
10479
10589
  value: void 0
10480
10590
  });
10481
10591
  const storyManagerConfig = this.storyManager.config;
10482
- const sdkVersion = "1.8.0-rc.8";
10592
+ const sdkVersion = "1.8.0-rc.9";
10483
10593
  const placeholders = this.storyManager.rootStore.placeholderStore.placeholders;
10484
10594
  const session = this.storyManager.rootStore.sessionStore.session;
10485
10595
  this.sessionId = session.id;
@@ -12874,16 +12984,21 @@ let StoryReaderNavigationController = (() => {
12874
12984
  return activeStory;
12875
12985
  }
12876
12986
  async runNextStory(prevStory, story) {
12877
- await (prevStory === null || prevStory === void 0 ? void 0 : prevStory.stop());
12878
- await story.init();
12879
- await story.start();
12987
+ try {
12988
+ await (prevStory === null || prevStory === void 0 ? void 0 : prevStory.stop());
12989
+ await story.init();
12990
+ await story.start();
12991
+ }
12992
+ catch (error) {
12993
+ console.error(error);
12994
+ }
12880
12995
  }
12881
12996
  async initStoriesWithinRange(currentIndex) {
12882
12997
  let stories = this.storyReader.stories;
12883
12998
  const start = Math.max(currentIndex - STORY_INIT_RANGE, 0);
12884
12999
  const end = Math.min(currentIndex + STORY_INIT_RANGE, stories.length - 1);
12885
13000
  stories = stories.slice(start, end + 1);
12886
- return Promise.all(stories.map(story => story.init()));
13001
+ return Promise.allSettled(stories.map(story => story.init()));
12887
13002
  }
12888
13003
  handleActiveStoryError(story) {
12889
13004
  if (!(story === null || story === void 0 ? void 0 : story.error))
@@ -13564,13 +13679,6 @@ var storyReaderViewModel_classPrivateFieldSet = (undefined && undefined.__classP
13564
13679
 
13565
13680
 
13566
13681
 
13567
- var StoryReaderCommand;
13568
- (function (StoryReaderCommand) {
13569
- StoryReaderCommand["RedirectToStory"] = "redirectToStory";
13570
- StoryReaderCommand["CloseStory"] = "closeStory";
13571
- StoryReaderCommand["ShowMultipleStories"] = "showMultipleStories";
13572
- StoryReaderCommand["ReloadStory"] = "reloadStory";
13573
- })(StoryReaderCommand || (StoryReaderCommand = {}));
13574
13682
  var StoryReaderEvent;
13575
13683
  (function (StoryReaderEvent) {
13576
13684
  StoryReaderEvent["Close"] = "closeStoryReader";
@@ -15166,6 +15274,7 @@ let StoryManagerConfig = (() => {
15166
15274
  var _b, _c, _d, _e, _f;
15167
15275
  this._appPackageId = (_b = configDto.appPackageId) !== null && _b !== void 0 ? _b : "";
15168
15276
  this._disableDeviceId = Boolean(configDto.disableDeviceId);
15277
+ this.setOptions(configDto.options);
15169
15278
  this.setApiKey(configDto.apiKey);
15170
15279
  this.setAnonymous(configDto.anonymous);
15171
15280
  this.setUserId((_c = configDto.userId) !== null && _c !== void 0 ? _c : "", configDto.userIdSign);
@@ -15174,7 +15283,6 @@ let StoryManagerConfig = (() => {
15174
15283
  this.setImagePlaceholders((_e = configDto.imagePlaceholders) !== null && _e !== void 0 ? _e : {});
15175
15284
  this.setTags((_f = configDto.tags) !== null && _f !== void 0 ? _f : []);
15176
15285
  this.setDir(configDto.dir);
15177
- this.setOptions(configDto.options);
15178
15286
  }
15179
15287
  mapTextPlaceholders(textPlaceholderDtos) {
15180
15288
  const textPlaceholders = [];
@@ -15449,7 +15557,7 @@ var iamMessage_classPrivateFieldSet = (undefined && undefined.__classPrivateFiel
15449
15557
 
15450
15558
  const DEFAULT_ITERATION_ID = (0,external_uuid_namespaceObject.v4)();
15451
15559
  let IamMessage = (() => {
15452
- var _a, _IamMessage__id_accessor_storage, _IamMessage__events_accessor_storage, _IamMessage__type_accessor_storage, _IamMessage__slides_accessor_storage, _IamMessage__appearanceOptions_accessor_storage, _IamMessage__needPlaceholders_accessor_storage, _IamMessage__hasLimit_accessor_storage, _IamMessage__isOnceOpened_accessor_storage, _IamMessage__context_accessor_storage;
15560
+ var _a, _IamMessage__id_accessor_storage, _IamMessage__events_accessor_storage, _IamMessage__type_accessor_storage, _IamMessage__slides_accessor_storage, _IamMessage__appearanceOptions_accessor_storage, _IamMessage__needPlaceholders_accessor_storage, _IamMessage__hasLimit_accessor_storage, _IamMessage__disableClose_accessor_storage, _IamMessage__isOnceOpened_accessor_storage, _IamMessage__context_accessor_storage;
15453
15561
  let _instanceExtraInitializers = [];
15454
15562
  let __id_decorators;
15455
15563
  let __id_initializers = [];
@@ -15472,6 +15580,9 @@ let IamMessage = (() => {
15472
15580
  let __hasLimit_decorators;
15473
15581
  let __hasLimit_initializers = [];
15474
15582
  let __hasLimit_extraInitializers = [];
15583
+ let __disableClose_decorators;
15584
+ let __disableClose_initializers = [];
15585
+ let __disableClose_extraInitializers = [];
15475
15586
  let __isOnceOpened_decorators;
15476
15587
  let __isOnceOpened_initializers = [];
15477
15588
  let __isOnceOpened_extraInitializers = [];
@@ -15494,6 +15605,8 @@ let IamMessage = (() => {
15494
15605
  set _needPlaceholders(value) { iamMessage_classPrivateFieldSet(this, _IamMessage__needPlaceholders_accessor_storage, value, "f"); }
15495
15606
  get _hasLimit() { return iamMessage_classPrivateFieldGet(this, _IamMessage__hasLimit_accessor_storage, "f"); }
15496
15607
  set _hasLimit(value) { iamMessage_classPrivateFieldSet(this, _IamMessage__hasLimit_accessor_storage, value, "f"); }
15608
+ get _disableClose() { return iamMessage_classPrivateFieldGet(this, _IamMessage__disableClose_accessor_storage, "f"); }
15609
+ set _disableClose(value) { iamMessage_classPrivateFieldSet(this, _IamMessage__disableClose_accessor_storage, value, "f"); }
15497
15610
  get _isOnceOpened() { return iamMessage_classPrivateFieldGet(this, _IamMessage__isOnceOpened_accessor_storage, "f"); }
15498
15611
  set _isOnceOpened(value) { iamMessage_classPrivateFieldSet(this, _IamMessage__isOnceOpened_accessor_storage, value, "f"); }
15499
15612
  get _context() { return iamMessage_classPrivateFieldGet(this, _IamMessage__context_accessor_storage, "f"); }
@@ -15506,7 +15619,8 @@ let IamMessage = (() => {
15506
15619
  _IamMessage__appearanceOptions_accessor_storage.set(this, (iamMessage_runInitializers(this, __slides_extraInitializers), iamMessage_runInitializers(this, __appearanceOptions_initializers, new IamAppearanceCommonOptions({}))));
15507
15620
  _IamMessage__needPlaceholders_accessor_storage.set(this, (iamMessage_runInitializers(this, __appearanceOptions_extraInitializers), iamMessage_runInitializers(this, __needPlaceholders_initializers, false)));
15508
15621
  _IamMessage__hasLimit_accessor_storage.set(this, (iamMessage_runInitializers(this, __needPlaceholders_extraInitializers), iamMessage_runInitializers(this, __hasLimit_initializers, false)));
15509
- _IamMessage__isOnceOpened_accessor_storage.set(this, (iamMessage_runInitializers(this, __hasLimit_extraInitializers), iamMessage_runInitializers(this, __isOnceOpened_initializers, false)));
15622
+ _IamMessage__disableClose_accessor_storage.set(this, (iamMessage_runInitializers(this, __hasLimit_extraInitializers), iamMessage_runInitializers(this, __disableClose_initializers, false)));
15623
+ _IamMessage__isOnceOpened_accessor_storage.set(this, (iamMessage_runInitializers(this, __disableClose_extraInitializers), iamMessage_runInitializers(this, __isOnceOpened_initializers, false)));
15510
15624
  _IamMessage__context_accessor_storage.set(this, (iamMessage_runInitializers(this, __isOnceOpened_extraInitializers), iamMessage_runInitializers(this, __context_initializers, void 0)));
15511
15625
  /**
15512
15626
  * null - показывать однократно
@@ -15599,11 +15713,15 @@ let IamMessage = (() => {
15599
15713
  get type() {
15600
15714
  return this._type;
15601
15715
  }
15716
+ get disableClose() {
15717
+ return this._disableClose;
15718
+ }
15602
15719
  destroy() { }
15603
15720
  updateByDto(messageDto) {
15604
15721
  var _b, _c, _d;
15605
15722
  this._events = this.mapMessageEventsByDto((_b = messageDto.events) !== null && _b !== void 0 ? _b : []);
15606
15723
  this._type = messageDto.type;
15724
+ this._disableClose = Boolean(messageDto.disable_close);
15607
15725
  this._campaignName = messageDto.campaign_name;
15608
15726
  this._frequencyLimit = messageDto.frequency_limit;
15609
15727
  this._displayFrom = (_c = messageDto.display_from) !== null && _c !== void 0 ? _c : null;
@@ -15667,6 +15785,7 @@ let IamMessage = (() => {
15667
15785
  _IamMessage__appearanceOptions_accessor_storage = new WeakMap(),
15668
15786
  _IamMessage__needPlaceholders_accessor_storage = new WeakMap(),
15669
15787
  _IamMessage__hasLimit_accessor_storage = new WeakMap(),
15788
+ _IamMessage__disableClose_accessor_storage = new WeakMap(),
15670
15789
  _IamMessage__isOnceOpened_accessor_storage = new WeakMap(),
15671
15790
  _IamMessage__context_accessor_storage = new WeakMap(),
15672
15791
  (() => {
@@ -15678,6 +15797,7 @@ let IamMessage = (() => {
15678
15797
  __appearanceOptions_decorators = [external_mobx_namespaceObject.observable];
15679
15798
  __needPlaceholders_decorators = [external_mobx_namespaceObject.observable];
15680
15799
  __hasLimit_decorators = [external_mobx_namespaceObject.observable];
15800
+ __disableClose_decorators = [external_mobx_namespaceObject.observable];
15681
15801
  __isOnceOpened_decorators = [external_mobx_namespaceObject.observable];
15682
15802
  __context_decorators = [external_mobx_namespaceObject.observable];
15683
15803
  _updateByDto_decorators = [external_mobx_namespaceObject.action];
@@ -15688,6 +15808,7 @@ let IamMessage = (() => {
15688
15808
  iamMessage_esDecorate(_a, null, __appearanceOptions_decorators, { kind: "accessor", name: "_appearanceOptions", static: false, private: false, access: { has: obj => "_appearanceOptions" in obj, get: obj => obj._appearanceOptions, set: (obj, value) => { obj._appearanceOptions = value; } }, metadata: _metadata }, __appearanceOptions_initializers, __appearanceOptions_extraInitializers);
15689
15809
  iamMessage_esDecorate(_a, null, __needPlaceholders_decorators, { kind: "accessor", name: "_needPlaceholders", static: false, private: false, access: { has: obj => "_needPlaceholders" in obj, get: obj => obj._needPlaceholders, set: (obj, value) => { obj._needPlaceholders = value; } }, metadata: _metadata }, __needPlaceholders_initializers, __needPlaceholders_extraInitializers);
15690
15810
  iamMessage_esDecorate(_a, null, __hasLimit_decorators, { kind: "accessor", name: "_hasLimit", static: false, private: false, access: { has: obj => "_hasLimit" in obj, get: obj => obj._hasLimit, set: (obj, value) => { obj._hasLimit = value; } }, metadata: _metadata }, __hasLimit_initializers, __hasLimit_extraInitializers);
15811
+ iamMessage_esDecorate(_a, null, __disableClose_decorators, { kind: "accessor", name: "_disableClose", static: false, private: false, access: { has: obj => "_disableClose" in obj, get: obj => obj._disableClose, set: (obj, value) => { obj._disableClose = value; } }, metadata: _metadata }, __disableClose_initializers, __disableClose_extraInitializers);
15691
15812
  iamMessage_esDecorate(_a, null, __isOnceOpened_decorators, { kind: "accessor", name: "_isOnceOpened", static: false, private: false, access: { has: obj => "_isOnceOpened" in obj, get: obj => obj._isOnceOpened, set: (obj, value) => { obj._isOnceOpened = value; } }, metadata: _metadata }, __isOnceOpened_initializers, __isOnceOpened_extraInitializers);
15692
15813
  iamMessage_esDecorate(_a, null, __context_decorators, { kind: "accessor", name: "_context", static: false, private: false, access: { has: obj => "_context" in obj, get: obj => obj._context, set: (obj, value) => { obj._context = value; } }, metadata: _metadata }, __context_initializers, __context_extraInitializers);
15693
15814
  iamMessage_esDecorate(_a, null, _updateByDto_decorators, { kind: "method", name: "updateByDto", static: false, private: false, access: { has: obj => "updateByDto" in obj, get: obj => obj.updateByDto }, metadata: _metadata }, null, _instanceExtraInitializers);
@@ -17018,7 +17139,7 @@ let IamReaderViewModel = (() => {
17018
17139
  await this.open(message);
17019
17140
  return message;
17020
17141
  }
17021
- async close() {
17142
+ async forceClose() {
17022
17143
  if (!this._activeMessage)
17023
17144
  return;
17024
17145
  this.emitCloseEvent(this._activeMessage);
@@ -17027,6 +17148,12 @@ let IamReaderViewModel = (() => {
17027
17148
  this.touchController.destroy();
17028
17149
  this.scrollbarHelper.enable();
17029
17150
  }
17151
+ async close() {
17152
+ var _b;
17153
+ if ((_b = this._activeMessage) === null || _b === void 0 ? void 0 : _b.disableClose)
17154
+ return;
17155
+ this.forceClose();
17156
+ }
17030
17157
  async open(message) {
17031
17158
  message.updatePlaceholders(this.storyManager.rootStore.placeholderStore.placeholders);
17032
17159
  this.touchController.init(document.body);
@@ -17282,7 +17409,7 @@ class IamSlideApiHandlers {
17282
17409
  });
17283
17410
  }
17284
17411
  closeCard(reason) {
17285
- this.iamReader.close();
17412
+ this.iamReader.forceClose();
17286
17413
  }
17287
17414
  openStory(id, index) {
17288
17415
  new showStoryAction_ShowStoryAction(this.storyManager, this.iamMessage).handle({
@@ -17604,6 +17731,9 @@ let IamMessageViewModel = (() => {
17604
17731
  get timeSinceLastShow() {
17605
17732
  return this.iamMessage.timeSinceLastShow;
17606
17733
  }
17734
+ get disableClose() {
17735
+ return this.iamMessage.disableClose;
17736
+ }
17607
17737
  open() {
17608
17738
  this._isOnceOpened = true;
17609
17739
  const iterationId = this.iamMessage.trackOpen();
@@ -19517,8 +19647,9 @@ let IamStore = (() => {
19517
19647
  async fetchAll(params) {
19518
19648
  await this.rootStore.sessionStore.open();
19519
19649
  await this.fetchMessageContext();
19520
- const tags = params.tags ? params.tags : this.rootStore.storyManagerConfigStore.config.tags;
19521
- const messageDtos = await this.iamApi.fetchAll({ tags: filterTags(tags) });
19650
+ const config = this.rootStore.storyManagerConfigStore.config;
19651
+ const tags = params.tags ? params.tags : config.tags;
19652
+ const messageDtos = await this.iamApi.fetchAll({ tags: filterTags(tags), options: config.options });
19522
19653
  return this.createMessagesByDtos(messageDtos);
19523
19654
  }
19524
19655
  async fetchMessageContext() {
@@ -20053,8 +20184,15 @@ let StoryFeedStore = (() => {
20053
20184
  }
20054
20185
  async fetchDefaultFeed({ feedSlug, testKey }) {
20055
20186
  const session = await this.rootStore.sessionStore.open();
20056
- const tags = this.rootStore.storyManagerConfigStore.config.tags;
20057
- const storyFeedDto = await this.storyFeedsApi.fetchDefaultFeed({ feedSlug, tags, testKey });
20187
+ const config = this.rootStore.storyManagerConfigStore.config;
20188
+ const storyFeedDto = await this.storyFeedsApi.fetchDefaultFeed({
20189
+ feedSlug,
20190
+ tags: config.tags,
20191
+ testKey,
20192
+ options: {
20193
+ pos: config.options.pos
20194
+ }
20195
+ });
20058
20196
  const stories = this.rootStore.storyStore.addStoriesByDtos(storyFeedDto.stories);
20059
20197
  const storyFeed = new StoryFeed(storyFeedDto, stories, { testKey });
20060
20198
  this.addStoryFeed(session.userKey, storyFeed);
@@ -20071,10 +20209,19 @@ let StoryFeedStore = (() => {
20071
20209
  }
20072
20210
  async fetchUgcFeed({ filter, testKey }) {
20073
20211
  const session = await this.rootStore.sessionStore.open();
20074
- const tags = this.rootStore.storyManagerConfigStore.config.tags;
20075
- const storyDtos = await this.storyFeedsApi.fetchUgcFeed({ filter, tags, testKey });
20212
+ const config = this.rootStore.storyManagerConfigStore.config;
20213
+ const storyDtos = await this.storyFeedsApi.fetchUgcFeed({
20214
+ filter,
20215
+ tags: config.tags,
20216
+ testKey,
20217
+ options: {
20218
+ pos: config.options.pos
20219
+ }
20220
+ });
20076
20221
  const stories = this.rootStore.storyStore.addStoriesByDtos(storyDtos);
20077
- const ugcFeed = UgcStoryFeed.createByStories(stories, { filter });
20222
+ const ugcFeed = UgcStoryFeed.createByStories(stories, {
20223
+ filter
20224
+ });
20078
20225
  this.addStoryFeed(session.userKey, ugcFeed);
20079
20226
  return ugcFeed;
20080
20227
  }
@@ -20184,7 +20331,7 @@ let OnboardingFeedStore = (() => {
20184
20331
  const config = this.rootStore.storyManagerConfigStore.config;
20185
20332
  if (!config)
20186
20333
  return null;
20187
- return [config.lang, config.apiKey];
20334
+ return [config.lang, config.apiKey, config.options];
20188
20335
  }, () => {
20189
20336
  this.invalidateCacheData();
20190
20337
  });
@@ -20211,7 +20358,10 @@ let OnboardingFeedStore = (() => {
20211
20358
  if (onboardingStoryFeed && !this.cacheDataInvalidated && onboardingStoryFeed.isEqualParams(onboardingParams))
20212
20359
  return onboardingStoryFeed;
20213
20360
  const session = await this.rootStore.sessionStore.open();
20214
- const onboardingFeedDto = await this.storyFeedsApi.fetchOnboardingFeed(Object.assign(Object.assign({}, onboardingParams), { feedSlug }));
20361
+ const config = this.rootStore.storyManagerConfigStore.config;
20362
+ const onboardingFeedDto = await this.storyFeedsApi.fetchOnboardingFeed(Object.assign(Object.assign({}, onboardingParams), { feedSlug, options: {
20363
+ pos: config.options.pos
20364
+ } }));
20215
20365
  const stories = this.rootStore.storyStore.addStoriesByDtos(onboardingFeedDto.stories);
20216
20366
  onboardingStoryFeed = new OnboardingStoryFeed(onboardingFeedDto, stories, onboardingParams);
20217
20367
  this.addOnboardingFeed(session.userKey, onboardingStoryFeed);
@@ -20284,7 +20434,7 @@ class UgcEditorStore {
20284
20434
  const session = await this.storyManager.rootStore.sessionStore.open();
20285
20435
  const ugcEditorConfigDto = await this.ugcEditorApi.fetchUgcEditorConfig();
20286
20436
  const storyManagerConfig = this.storyManager.config;
20287
- const sdkVersion = "1.8.0-rc.8";
20437
+ const sdkVersion = "1.8.0-rc.9";
20288
20438
  this._config = {
20289
20439
  sessionId: session.id,
20290
20440
  apiKey: storyManagerConfig.apiKey,
@@ -20716,7 +20866,7 @@ class StoryManager extends TypedEventEmitter {
20716
20866
  return this._userAgent;
20717
20867
  }
20718
20868
  get sdkVersionName() {
20719
- const sdkVersionName = "1.8.0-rc.8";
20869
+ const sdkVersionName = "1.8.0-rc.9";
20720
20870
  return sdkVersionName || "0.0.0";
20721
20871
  }
20722
20872
  get sdkVersionCode() {
@@ -20840,7 +20990,7 @@ class StoryManager extends TypedEventEmitter {
20840
20990
  clearConfig() {
20841
20991
  this.storyReader.close(CloseStoryReaderAction.AppClose, true);
20842
20992
  this.gameReader.closeGame();
20843
- this.inAppMessaging.close();
20993
+ this.inAppMessaging.forceClose();
20844
20994
  this.rootStore.storyManagerConfigStore.clear();
20845
20995
  }
20846
20996
  static isSingletonInstanceExists() {
@@ -22717,7 +22867,8 @@ const StoryReaderRoot = (0,external_mobx_react_lite_namespaceObject.observer)((p
22717
22867
  filter: ((_c = options.slideBackdrop) === null || _c === void 0 ? void 0 : _c.blur) ? `blur(${options.slideBackdrop.blur}px)` : "none"
22718
22868
  };
22719
22869
  };
22720
- return ((0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, { children: [(0,jsx_runtime_namespaceObject.jsxs)("div", { ref: storiesViewerRef, className: (0,external_classnames_namespaceObject["default"])("stories-viewer", Root_storyReaderRoot_module["stories-viewer"]), style: Object.assign(Object.assign({}, getRootVars()), getWrapperBackdropStyle()), children: [isDesktopMode_isDesktopMode && ((0,jsx_runtime_namespaceObject.jsx)("div", { className: Root_storyReaderRoot_module["stories-viewer-background"], style: getSlideBackdropStyle() })), props.children, props.isDesktopGeometry && props.storyReader.activeStory && ((0,jsx_runtime_namespaceObject.jsx)(CloseButton_CloseButton, { dir: props.storyReader.dir, className: Root_storyReaderRoot_module["stories-viewer__close-btn"], hidden: Boolean(props.storyReader.activeStory.pauseState.isUIPaused), onClose: () => {
22870
+ const activeStory = props.storyReader.activeStory;
22871
+ return ((0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, { children: [(0,jsx_runtime_namespaceObject.jsxs)("div", { ref: storiesViewerRef, className: (0,external_classnames_namespaceObject["default"])("stories-viewer", Root_storyReaderRoot_module["stories-viewer"]), style: Object.assign(Object.assign({}, getRootVars()), getWrapperBackdropStyle()), children: [isDesktopMode_isDesktopMode && ((0,jsx_runtime_namespaceObject.jsx)("div", { className: Root_storyReaderRoot_module["stories-viewer-background"], style: getSlideBackdropStyle() })), props.children, props.isDesktopGeometry && activeStory && !activeStory.disableClose && ((0,jsx_runtime_namespaceObject.jsx)(CloseButton_CloseButton, { dir: props.storyReader.dir, className: Root_storyReaderRoot_module["stories-viewer__close-btn"], hidden: Boolean(activeStory.pauseState.isUIPaused), onClose: () => {
22721
22872
  props.storyReader.close();
22722
22873
  } }))] }), (0,jsx_runtime_namespaceObject.jsx)("div", { ref: backdropRef, className: (0,external_classnames_namespaceObject["default"])(Root_storyReaderRoot_module["stories-viewer-backdrop"], {
22723
22874
  [Root_storyReaderRoot_module["_desktopMode"]]: isDesktopMode_isDesktopMode
@@ -26368,7 +26519,7 @@ var BottomSheet_classPrivateFieldSet = (undefined && undefined.__classPrivateFie
26368
26519
 
26369
26520
 
26370
26521
  let BottomSheet = (() => {
26371
- var _BottomSheet_open_accessor_storage, _BottomSheet_geometry_accessor_storage, _BottomSheet_appearanceOptions_accessor_storage, _BottomSheet_touchController_accessor_storage, _BottomSheet_desktopMode_accessor_storage, _BottomSheet_isVisible_accessor_storage, _BottomSheet_isClosed_accessor_storage, _BottomSheet_backdropRef_accessor_storage, _BottomSheet_bottomSheetBoxRef_accessor_storage, _BottomSheet_bottomSheetRef_accessor_storage;
26522
+ var _BottomSheet_open_accessor_storage, _BottomSheet_disableClose_accessor_storage, _BottomSheet_geometry_accessor_storage, _BottomSheet_appearanceOptions_accessor_storage, _BottomSheet_touchController_accessor_storage, _BottomSheet_desktopMode_accessor_storage, _BottomSheet_isVisible_accessor_storage, _BottomSheet_isClosed_accessor_storage, _BottomSheet_backdropRef_accessor_storage, _BottomSheet_bottomSheetBoxRef_accessor_storage, _BottomSheet_bottomSheetRef_accessor_storage;
26372
26523
  let _classDecorators = [(0,decorators_js_namespaceObject.customElement)("iam-bottom-sheet")];
26373
26524
  let _classDescriptor;
26374
26525
  let _classExtraInitializers = [];
@@ -26377,6 +26528,9 @@ let BottomSheet = (() => {
26377
26528
  let _open_decorators;
26378
26529
  let _open_initializers = [];
26379
26530
  let _open_extraInitializers = [];
26531
+ let _disableClose_decorators;
26532
+ let _disableClose_initializers = [];
26533
+ let _disableClose_extraInitializers = [];
26380
26534
  let _geometry_decorators;
26381
26535
  let _geometry_initializers = [];
26382
26536
  let _geometry_extraInitializers = [];
@@ -26407,6 +26561,8 @@ let BottomSheet = (() => {
26407
26561
  var BottomSheet = _classThis = class extends _classSuper {
26408
26562
  get open() { return BottomSheet_classPrivateFieldGet(this, _BottomSheet_open_accessor_storage, "f"); }
26409
26563
  set open(value) { BottomSheet_classPrivateFieldSet(this, _BottomSheet_open_accessor_storage, value, "f"); }
26564
+ get disableClose() { return BottomSheet_classPrivateFieldGet(this, _BottomSheet_disableClose_accessor_storage, "f"); }
26565
+ set disableClose(value) { BottomSheet_classPrivateFieldSet(this, _BottomSheet_disableClose_accessor_storage, value, "f"); }
26410
26566
  get geometry() { return BottomSheet_classPrivateFieldGet(this, _BottomSheet_geometry_accessor_storage, "f"); }
26411
26567
  set geometry(value) { BottomSheet_classPrivateFieldSet(this, _BottomSheet_geometry_accessor_storage, value, "f"); }
26412
26568
  get appearanceOptions() { return BottomSheet_classPrivateFieldGet(this, _BottomSheet_appearanceOptions_accessor_storage, "f"); }
@@ -26428,7 +26584,8 @@ let BottomSheet = (() => {
26428
26584
  constructor() {
26429
26585
  super();
26430
26586
  _BottomSheet_open_accessor_storage.set(this, BottomSheet_runInitializers(this, _open_initializers, false));
26431
- _BottomSheet_geometry_accessor_storage.set(this, (BottomSheet_runInitializers(this, _open_extraInitializers), BottomSheet_runInitializers(this, _geometry_initializers, void 0)));
26587
+ _BottomSheet_disableClose_accessor_storage.set(this, (BottomSheet_runInitializers(this, _open_extraInitializers), BottomSheet_runInitializers(this, _disableClose_initializers, false)));
26588
+ _BottomSheet_geometry_accessor_storage.set(this, (BottomSheet_runInitializers(this, _disableClose_extraInitializers), BottomSheet_runInitializers(this, _geometry_initializers, void 0)));
26432
26589
  _BottomSheet_appearanceOptions_accessor_storage.set(this, (BottomSheet_runInitializers(this, _geometry_extraInitializers), BottomSheet_runInitializers(this, _appearanceOptions_initializers, void 0)));
26433
26590
  _BottomSheet_touchController_accessor_storage.set(this, (BottomSheet_runInitializers(this, _appearanceOptions_extraInitializers), BottomSheet_runInitializers(this, _touchController_initializers, void 0)));
26434
26591
  _BottomSheet_desktopMode_accessor_storage.set(this, (BottomSheet_runInitializers(this, _touchController_extraInitializers), BottomSheet_runInitializers(this, _desktopMode_initializers, void 0)));
@@ -26471,6 +26628,8 @@ let BottomSheet = (() => {
26471
26628
  super.disconnectedCallback();
26472
26629
  }
26473
26630
  close() {
26631
+ if (this.disableClose)
26632
+ return;
26474
26633
  this.backdropRef.addEventListener("transitionend", this.handleTransitionEnd);
26475
26634
  this.isVisible = false;
26476
26635
  }
@@ -26509,10 +26668,11 @@ let BottomSheet = (() => {
26509
26668
  "bottom-sheet__box-wrapper--desktop-mode": this.desktopMode
26510
26669
  })}" style="${(0,style_map_js_namespaceObject.styleMap)(bottomSheetBoxWrapperStyle)}"><div style="${(0,style_map_js_namespaceObject.styleMap)(bottomSheetBoxStyle)}" id="bottom-sheet__box" class="bottom-sheet__box ${(0,class_map_js_namespaceObject.classMap)({
26511
26670
  "bottom-sheet__box--open": this.isVisible
26512
- })}"><div class="bottom-sheet__header"><div class="close-strip-btn" style="${(0,style_map_js_namespaceObject.styleMap)(closeStripButtonStyle)}"></div></div><slot></slot></div></div></div>`;
26671
+ })}"><div class="bottom-sheet__header">${this.disableClose ? external_lit_namespaceObject.nothing : (0,external_lit_namespaceObject.html) `<div class="close-strip-btn" style="${(0,style_map_js_namespaceObject.styleMap)(closeStripButtonStyle)}"></div>`}</div><slot></slot></div></div></div>`;
26513
26672
  }
26514
26673
  };
26515
26674
  _BottomSheet_open_accessor_storage = new WeakMap();
26675
+ _BottomSheet_disableClose_accessor_storage = new WeakMap();
26516
26676
  _BottomSheet_geometry_accessor_storage = new WeakMap();
26517
26677
  _BottomSheet_appearanceOptions_accessor_storage = new WeakMap();
26518
26678
  _BottomSheet_touchController_accessor_storage = new WeakMap();
@@ -26527,6 +26687,7 @@ let BottomSheet = (() => {
26527
26687
  var _a;
26528
26688
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
26529
26689
  _open_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
26690
+ _disableClose_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
26530
26691
  _geometry_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
26531
26692
  _appearanceOptions_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
26532
26693
  _touchController_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
@@ -26537,6 +26698,7 @@ let BottomSheet = (() => {
26537
26698
  _bottomSheetBoxRef_decorators = [(0,decorators_js_namespaceObject.query)("#bottom-sheet__box")];
26538
26699
  _bottomSheetRef_decorators = [(0,decorators_js_namespaceObject.query)("#bottom-sheet")];
26539
26700
  BottomSheet_esDecorate(_classThis, null, _open_decorators, { kind: "accessor", name: "open", static: false, private: false, access: { has: obj => "open" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);
26701
+ BottomSheet_esDecorate(_classThis, null, _disableClose_decorators, { kind: "accessor", name: "disableClose", static: false, private: false, access: { has: obj => "disableClose" in obj, get: obj => obj.disableClose, set: (obj, value) => { obj.disableClose = value; } }, metadata: _metadata }, _disableClose_initializers, _disableClose_extraInitializers);
26540
26702
  BottomSheet_esDecorate(_classThis, null, _geometry_decorators, { kind: "accessor", name: "geometry", static: false, private: false, access: { has: obj => "geometry" in obj, get: obj => obj.geometry, set: (obj, value) => { obj.geometry = value; } }, metadata: _metadata }, _geometry_initializers, _geometry_extraInitializers);
26541
26703
  BottomSheet_esDecorate(_classThis, null, _appearanceOptions_decorators, { kind: "accessor", name: "appearanceOptions", static: false, private: false, access: { has: obj => "appearanceOptions" in obj, get: obj => obj.appearanceOptions, set: (obj, value) => { obj.appearanceOptions = value; } }, metadata: _metadata }, _appearanceOptions_initializers, _appearanceOptions_extraInitializers);
26542
26704
  BottomSheet_esDecorate(_classThis, null, _touchController_decorators, { kind: "accessor", name: "touchController", static: false, private: false, access: { has: obj => "touchController" in obj, get: obj => obj.touchController, set: (obj, value) => { obj.touchController = value; } }, metadata: _metadata }, _touchController_initializers, _touchController_extraInitializers);
@@ -26758,7 +26920,7 @@ var Modal_classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet)
26758
26920
  const ANIMATION_DURATION = 350;
26759
26921
 
26760
26922
  let Modal_Modal = (() => {
26761
- var _Modal_open_accessor_storage, _Modal_fullscreen_accessor_storage, _Modal_geometry_accessor_storage, _Modal_appearanceOptions_accessor_storage, _Modal_dir_accessor_storage, _Modal_isVisible_accessor_storage, _Modal_isClosed_accessor_storage, _Modal_backdropRef_accessor_storage;
26923
+ var _Modal_open_accessor_storage, _Modal_disableClose_accessor_storage, _Modal_fullscreen_accessor_storage, _Modal_geometry_accessor_storage, _Modal_appearanceOptions_accessor_storage, _Modal_dir_accessor_storage, _Modal_isVisible_accessor_storage, _Modal_isClosed_accessor_storage, _Modal_backdropRef_accessor_storage;
26762
26924
  let _classDecorators = [(0,decorators_js_namespaceObject.customElement)("iam-modal")];
26763
26925
  let _classDescriptor;
26764
26926
  let _classExtraInitializers = [];
@@ -26767,6 +26929,9 @@ let Modal_Modal = (() => {
26767
26929
  let _open_decorators;
26768
26930
  let _open_initializers = [];
26769
26931
  let _open_extraInitializers = [];
26932
+ let _disableClose_decorators;
26933
+ let _disableClose_initializers = [];
26934
+ let _disableClose_extraInitializers = [];
26770
26935
  let _fullscreen_decorators;
26771
26936
  let _fullscreen_initializers = [];
26772
26937
  let _fullscreen_extraInitializers = [];
@@ -26791,6 +26956,8 @@ let Modal_Modal = (() => {
26791
26956
  var Modal = _classThis = class extends _classSuper {
26792
26957
  get open() { return Modal_classPrivateFieldGet(this, _Modal_open_accessor_storage, "f"); }
26793
26958
  set open(value) { Modal_classPrivateFieldSet(this, _Modal_open_accessor_storage, value, "f"); }
26959
+ get disableClose() { return Modal_classPrivateFieldGet(this, _Modal_disableClose_accessor_storage, "f"); }
26960
+ set disableClose(value) { Modal_classPrivateFieldSet(this, _Modal_disableClose_accessor_storage, value, "f"); }
26794
26961
  get fullscreen() { return Modal_classPrivateFieldGet(this, _Modal_fullscreen_accessor_storage, "f"); }
26795
26962
  set fullscreen(value) { Modal_classPrivateFieldSet(this, _Modal_fullscreen_accessor_storage, value, "f"); }
26796
26963
  get geometry() { return Modal_classPrivateFieldGet(this, _Modal_geometry_accessor_storage, "f"); }
@@ -26808,7 +26975,8 @@ let Modal_Modal = (() => {
26808
26975
  constructor() {
26809
26976
  super();
26810
26977
  _Modal_open_accessor_storage.set(this, Modal_runInitializers(this, _open_initializers, false));
26811
- _Modal_fullscreen_accessor_storage.set(this, (Modal_runInitializers(this, _open_extraInitializers), Modal_runInitializers(this, _fullscreen_initializers, false)));
26978
+ _Modal_disableClose_accessor_storage.set(this, (Modal_runInitializers(this, _open_extraInitializers), Modal_runInitializers(this, _disableClose_initializers, false)));
26979
+ _Modal_fullscreen_accessor_storage.set(this, (Modal_runInitializers(this, _disableClose_extraInitializers), Modal_runInitializers(this, _fullscreen_initializers, false)));
26812
26980
  _Modal_geometry_accessor_storage.set(this, (Modal_runInitializers(this, _fullscreen_extraInitializers), Modal_runInitializers(this, _geometry_initializers, void 0)));
26813
26981
  _Modal_appearanceOptions_accessor_storage.set(this, (Modal_runInitializers(this, _geometry_extraInitializers), Modal_runInitializers(this, _appearanceOptions_initializers, void 0)));
26814
26982
  _Modal_dir_accessor_storage.set(this, (Modal_runInitializers(this, _appearanceOptions_extraInitializers), Modal_runInitializers(this, _dir_initializers, void 0)));
@@ -26818,6 +26986,8 @@ let Modal_Modal = (() => {
26818
26986
  Modal_runInitializers(this, _backdropRef_extraInitializers);
26819
26987
  }
26820
26988
  close() {
26989
+ if (this.disableClose)
26990
+ return;
26821
26991
  const duration = this.appearanceOptions.animationType === IamModalAnimationType.None ? 0 : ANIMATION_DURATION;
26822
26992
  setTimeout(() => {
26823
26993
  this.isClosed = true;
@@ -26894,10 +27064,11 @@ let Modal_Modal = (() => {
26894
27064
  ? external_lit_namespaceObject.nothing
26895
27065
  : (0,external_lit_namespaceObject.html) `<div class="modal__header"><iam-modal-close-btn @click="${this.close}" .dir="${this.dir}" .closeBtnPosition="${this.appearanceOptions.closeBtnPosition}"></iam-modal-close-btn></div>`}<div style="${(0,style_map_js_namespaceObject.styleMap)(modalBoxContentStyle)}" class="modal__box-content ${(0,class_map_js_namespaceObject.classMap)({ "modal__box-content--fullscreen": this.fullscreen })}">${this.fullscreen
26896
27066
  ? external_lit_namespaceObject.nothing
26897
- : (0,external_lit_namespaceObject.html) `<div class="modal__header"><iam-modal-close-btn @click="${this.close}" .dir="${this.dir}" .closeBtnPosition="${this.appearanceOptions.closeBtnPosition}"></iam-modal-close-btn></div>`}<slot></slot></div></div></div>`;
27067
+ : (0,external_lit_namespaceObject.html) `<div class="modal__header">${this.disableClose ? external_lit_namespaceObject.nothing : (0,external_lit_namespaceObject.html) `<iam-modal-close-btn @click="${this.close}" .dir="${this.dir}" .closeBtnPosition="${this.appearanceOptions.closeBtnPosition}"></iam-modal-close-btn>`}</div>`}<slot></slot></div></div></div>`;
26898
27068
  }
26899
27069
  };
26900
27070
  _Modal_open_accessor_storage = new WeakMap();
27071
+ _Modal_disableClose_accessor_storage = new WeakMap();
26901
27072
  _Modal_fullscreen_accessor_storage = new WeakMap();
26902
27073
  _Modal_geometry_accessor_storage = new WeakMap();
26903
27074
  _Modal_appearanceOptions_accessor_storage = new WeakMap();
@@ -26910,6 +27081,7 @@ let Modal_Modal = (() => {
26910
27081
  var _a;
26911
27082
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
26912
27083
  _open_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
27084
+ _disableClose_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
26913
27085
  _fullscreen_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
26914
27086
  _geometry_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
26915
27087
  _appearanceOptions_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
@@ -26918,6 +27090,7 @@ let Modal_Modal = (() => {
26918
27090
  _isClosed_decorators = [(0,decorators_js_namespaceObject.state)()];
26919
27091
  _backdropRef_decorators = [(0,decorators_js_namespaceObject.query)("#modal__backdrop")];
26920
27092
  Modal_esDecorate(_classThis, null, _open_decorators, { kind: "accessor", name: "open", static: false, private: false, access: { has: obj => "open" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);
27093
+ Modal_esDecorate(_classThis, null, _disableClose_decorators, { kind: "accessor", name: "disableClose", static: false, private: false, access: { has: obj => "disableClose" in obj, get: obj => obj.disableClose, set: (obj, value) => { obj.disableClose = value; } }, metadata: _metadata }, _disableClose_initializers, _disableClose_extraInitializers);
26921
27094
  Modal_esDecorate(_classThis, null, _fullscreen_decorators, { kind: "accessor", name: "fullscreen", static: false, private: false, access: { has: obj => "fullscreen" in obj, get: obj => obj.fullscreen, set: (obj, value) => { obj.fullscreen = value; } }, metadata: _metadata }, _fullscreen_initializers, _fullscreen_extraInitializers);
26922
27095
  Modal_esDecorate(_classThis, null, _geometry_decorators, { kind: "accessor", name: "geometry", static: false, private: false, access: { has: obj => "geometry" in obj, get: obj => obj.geometry, set: (obj, value) => { obj.geometry = value; } }, metadata: _metadata }, _geometry_initializers, _geometry_extraInitializers);
26923
27096
  Modal_esDecorate(_classThis, null, _appearanceOptions_decorators, { kind: "accessor", name: "appearanceOptions", static: false, private: false, access: { has: obj => "appearanceOptions" in obj, get: obj => obj.appearanceOptions, set: (obj, value) => { obj.appearanceOptions = value; } }, metadata: _metadata }, _appearanceOptions_initializers, _appearanceOptions_extraInitializers);
@@ -27118,7 +27291,7 @@ var MessageViewFactory_classPrivateFieldSet = (undefined && undefined.__classPri
27118
27291
 
27119
27292
 
27120
27293
  let MessageViewFactory = (() => {
27121
- var _MessageViewFactory_appearanceOptions_accessor_storage, _MessageViewFactory_type_accessor_storage, _MessageViewFactory_open_accessor_storage, _MessageViewFactory_geometry_accessor_storage, _MessageViewFactory_touchController_accessor_storage, _MessageViewFactory_desktopMode_accessor_storage, _MessageViewFactory_dir_accessor_storage;
27294
+ var _MessageViewFactory_appearanceOptions_accessor_storage, _MessageViewFactory_type_accessor_storage, _MessageViewFactory_open_accessor_storage, _MessageViewFactory_disableClose_accessor_storage, _MessageViewFactory_geometry_accessor_storage, _MessageViewFactory_touchController_accessor_storage, _MessageViewFactory_desktopMode_accessor_storage, _MessageViewFactory_dir_accessor_storage;
27122
27295
  let _classDecorators = [(0,decorators_js_namespaceObject.customElement)("message-view-factory")];
27123
27296
  let _classDescriptor;
27124
27297
  let _classExtraInitializers = [];
@@ -27133,6 +27306,9 @@ let MessageViewFactory = (() => {
27133
27306
  let _open_decorators;
27134
27307
  let _open_initializers = [];
27135
27308
  let _open_extraInitializers = [];
27309
+ let _disableClose_decorators;
27310
+ let _disableClose_initializers = [];
27311
+ let _disableClose_extraInitializers = [];
27136
27312
  let _geometry_decorators;
27137
27313
  let _geometry_initializers = [];
27138
27314
  let _geometry_extraInitializers = [];
@@ -27152,6 +27328,8 @@ let MessageViewFactory = (() => {
27152
27328
  set type(value) { MessageViewFactory_classPrivateFieldSet(this, _MessageViewFactory_type_accessor_storage, value, "f"); }
27153
27329
  get open() { return MessageViewFactory_classPrivateFieldGet(this, _MessageViewFactory_open_accessor_storage, "f"); }
27154
27330
  set open(value) { MessageViewFactory_classPrivateFieldSet(this, _MessageViewFactory_open_accessor_storage, value, "f"); }
27331
+ get disableClose() { return MessageViewFactory_classPrivateFieldGet(this, _MessageViewFactory_disableClose_accessor_storage, "f"); }
27332
+ set disableClose(value) { MessageViewFactory_classPrivateFieldSet(this, _MessageViewFactory_disableClose_accessor_storage, value, "f"); }
27155
27333
  get geometry() { return MessageViewFactory_classPrivateFieldGet(this, _MessageViewFactory_geometry_accessor_storage, "f"); }
27156
27334
  set geometry(value) { MessageViewFactory_classPrivateFieldSet(this, _MessageViewFactory_geometry_accessor_storage, value, "f"); }
27157
27335
  get touchController() { return MessageViewFactory_classPrivateFieldGet(this, _MessageViewFactory_touchController_accessor_storage, "f"); }
@@ -27166,7 +27344,8 @@ let MessageViewFactory = (() => {
27166
27344
  return null;
27167
27345
  return (0,static_html_js_namespaceObject.html) `
27168
27346
  <${MessageView}
27169
- .open=${this.open}
27347
+ .open=${this.open}
27348
+ .disableClose=${this.disableClose}
27170
27349
  .geometry=${this.geometry}
27171
27350
  .appearanceOptions=${this.appearanceOptions}
27172
27351
  .touchController=${this.touchController}
@@ -27181,7 +27360,8 @@ let MessageViewFactory = (() => {
27181
27360
  _MessageViewFactory_appearanceOptions_accessor_storage.set(this, MessageViewFactory_runInitializers(this, _appearanceOptions_initializers, void 0));
27182
27361
  _MessageViewFactory_type_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _appearanceOptions_extraInitializers), MessageViewFactory_runInitializers(this, _type_initializers, void 0)));
27183
27362
  _MessageViewFactory_open_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _type_extraInitializers), MessageViewFactory_runInitializers(this, _open_initializers, false)));
27184
- _MessageViewFactory_geometry_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _open_extraInitializers), MessageViewFactory_runInitializers(this, _geometry_initializers, void 0)));
27363
+ _MessageViewFactory_disableClose_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _open_extraInitializers), MessageViewFactory_runInitializers(this, _disableClose_initializers, false)));
27364
+ _MessageViewFactory_geometry_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _disableClose_extraInitializers), MessageViewFactory_runInitializers(this, _geometry_initializers, void 0)));
27185
27365
  _MessageViewFactory_touchController_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _geometry_extraInitializers), MessageViewFactory_runInitializers(this, _touchController_initializers, void 0)));
27186
27366
  _MessageViewFactory_desktopMode_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _touchController_extraInitializers), MessageViewFactory_runInitializers(this, _desktopMode_initializers, void 0)));
27187
27367
  _MessageViewFactory_dir_accessor_storage.set(this, (MessageViewFactory_runInitializers(this, _desktopMode_extraInitializers), MessageViewFactory_runInitializers(this, _dir_initializers, void 0)));
@@ -27191,6 +27371,7 @@ let MessageViewFactory = (() => {
27191
27371
  _MessageViewFactory_appearanceOptions_accessor_storage = new WeakMap();
27192
27372
  _MessageViewFactory_type_accessor_storage = new WeakMap();
27193
27373
  _MessageViewFactory_open_accessor_storage = new WeakMap();
27374
+ _MessageViewFactory_disableClose_accessor_storage = new WeakMap();
27194
27375
  _MessageViewFactory_geometry_accessor_storage = new WeakMap();
27195
27376
  _MessageViewFactory_touchController_accessor_storage = new WeakMap();
27196
27377
  _MessageViewFactory_desktopMode_accessor_storage = new WeakMap();
@@ -27202,6 +27383,7 @@ let MessageViewFactory = (() => {
27202
27383
  _appearanceOptions_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
27203
27384
  _type_decorators = [(0,decorators_js_namespaceObject.property)({ type: Number })];
27204
27385
  _open_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
27386
+ _disableClose_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
27205
27387
  _geometry_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
27206
27388
  _touchController_decorators = [(0,decorators_js_namespaceObject.property)({ type: Object })];
27207
27389
  _desktopMode_decorators = [(0,decorators_js_namespaceObject.property)({ type: Boolean })];
@@ -27209,6 +27391,7 @@ let MessageViewFactory = (() => {
27209
27391
  MessageViewFactory_esDecorate(_classThis, null, _appearanceOptions_decorators, { kind: "accessor", name: "appearanceOptions", static: false, private: false, access: { has: obj => "appearanceOptions" in obj, get: obj => obj.appearanceOptions, set: (obj, value) => { obj.appearanceOptions = value; } }, metadata: _metadata }, _appearanceOptions_initializers, _appearanceOptions_extraInitializers);
27210
27392
  MessageViewFactory_esDecorate(_classThis, null, _type_decorators, { kind: "accessor", name: "type", static: false, private: false, access: { has: obj => "type" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);
27211
27393
  MessageViewFactory_esDecorate(_classThis, null, _open_decorators, { kind: "accessor", name: "open", static: false, private: false, access: { has: obj => "open" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);
27394
+ MessageViewFactory_esDecorate(_classThis, null, _disableClose_decorators, { kind: "accessor", name: "disableClose", static: false, private: false, access: { has: obj => "disableClose" in obj, get: obj => obj.disableClose, set: (obj, value) => { obj.disableClose = value; } }, metadata: _metadata }, _disableClose_initializers, _disableClose_extraInitializers);
27212
27395
  MessageViewFactory_esDecorate(_classThis, null, _geometry_decorators, { kind: "accessor", name: "geometry", static: false, private: false, access: { has: obj => "geometry" in obj, get: obj => obj.geometry, set: (obj, value) => { obj.geometry = value; } }, metadata: _metadata }, _geometry_initializers, _geometry_extraInitializers);
27213
27396
  MessageViewFactory_esDecorate(_classThis, null, _touchController_decorators, { kind: "accessor", name: "touchController", static: false, private: false, access: { has: obj => "touchController" in obj, get: obj => obj.touchController, set: (obj, value) => { obj.touchController = value; } }, metadata: _metadata }, _touchController_initializers, _touchController_extraInitializers);
27214
27397
  MessageViewFactory_esDecorate(_classThis, null, _desktopMode_decorators, { kind: "accessor", name: "desktopMode", static: false, private: false, access: { has: obj => "desktopMode" in obj, get: obj => obj.desktopMode, set: (obj, value) => { obj.desktopMode = value; } }, metadata: _metadata }, _desktopMode_initializers, _desktopMode_extraInitializers);
@@ -27815,7 +27998,7 @@ let InAppMessagingReader = (() => {
27815
27998
  const type = message.type;
27816
27999
  const messageGeometry = this.createMessageGeometry(type, message.appearanceOptions);
27817
28000
  const slideGeometry = this.createSlideGeometry(messageGeometry);
27818
- return (0,external_lit_namespaceObject.html) `<message-view-factory type="${type}" @closed="${this.handleClosed}" .appearanceOptions="${message.appearanceOptions}" .geometry="${messageGeometry}" .open="${this.open}" .dir="${this.dir}" .desktopMode="${this.desktopMode}" .touchController="${touchController}"><message-slide .message="${message}" .styleContext="${message.context.style}" .geometry="${slideGeometry}"></message-slide><iam-loader .needShowErrorScreen="${message.needShowErrorScreen}" .needShowLoaderScreen="${message.needShowLoaderScreen}" @reload="${this.handleReloadMessage}"></iam-loader></message-view-factory>`;
28001
+ return (0,external_lit_namespaceObject.html) `<message-view-factory type="${type}" @closed="${this.handleClosed}" .disableClose="${message.disableClose}" .appearanceOptions="${message.appearanceOptions}" .geometry="${messageGeometry}" .open="${this.open}" .dir="${this.dir}" .desktopMode="${this.desktopMode}" .touchController="${touchController}"><message-slide .message="${message}" .styleContext="${message.context.style}" .geometry="${slideGeometry}"></message-slide><iam-loader .needShowErrorScreen="${message.needShowErrorScreen}" .needShowLoaderScreen="${message.needShowLoaderScreen}" @reload="${this.handleReloadMessage}"></iam-loader></message-view-factory>`;
27819
28002
  }
27820
28003
  };
27821
28004
  _InAppMessagingReader_options_accessor_storage = new WeakMap();