@yoobic/yobi 7.7.77 → 7.7.81

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.
Files changed (147) hide show
  1. package/dist/cjs/{draggable-dots-helpers-7b039be2.js → draggable-dots-helpers-9650a4b7.js} +1 -1
  2. package/dist/cjs/{entities-helpers-f38b1b38.js → entities-helpers-c6ed72dc.js} +1 -1
  3. package/dist/cjs/{grid-renderers-5830bf4a.js → grid-renderers-f5edc87d.js} +5 -1
  4. package/dist/cjs/{image-helpers-9a455e5c.js → image-helpers-ea15b526.js} +1 -1
  5. package/dist/cjs/{index-8f834b3c.js → index-4e7dd1d7.js} +1 -1
  6. package/dist/cjs/{index-5d6b2f8d.js → index-a81f813c.js} +1 -1
  7. package/dist/cjs/{index-203cb7c1.js → index-e2b47ee9.js} +1 -1
  8. package/dist/cjs/index.cjs.js +4 -4
  9. package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +3 -3
  10. package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +4 -4
  11. package/dist/cjs/yoo-audio-recorder-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/yoo-avatar_5.cjs.entry.js +2 -2
  13. package/dist/cjs/yoo-camera-preview-dialog_7.cjs.entry.js +1 -1
  14. package/dist/cjs/yoo-card-header.cjs.entry.js +2 -2
  15. package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +4 -4
  16. package/dist/cjs/yoo-chat-message_3.cjs.entry.js +8 -8
  17. package/dist/cjs/yoo-chat.cjs.entry.js +14 -23
  18. package/dist/cjs/yoo-detail-bar.cjs.entry.js +2 -2
  19. package/dist/cjs/yoo-feed-detail.cjs.entry.js +1 -1
  20. package/dist/cjs/yoo-form-choice_4.cjs.entry.js +2 -2
  21. package/dist/cjs/yoo-form-conditions.cjs.entry.js +1 -1
  22. package/dist/cjs/yoo-form-connect.cjs.entry.js +1 -1
  23. package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +2 -2
  24. package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +3 -3
  25. package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +2 -2
  26. package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +2 -2
  27. package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +5 -4
  28. package/dist/cjs/yoo-form-creator.cjs.entry.js +2 -2
  29. package/dist/cjs/yoo-form-image-tagging-creator.cjs.entry.js +2 -2
  30. package/dist/cjs/yoo-form-incentive-targets.cjs.entry.js +1 -1
  31. package/dist/cjs/yoo-form-multi-input.cjs.entry.js +1 -1
  32. package/dist/cjs/yoo-form-reorder.cjs.entry.js +1 -1
  33. package/dist/cjs/yoo-form-stripe-card.cjs.entry.js +1 -1
  34. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +1 -1
  35. package/dist/cjs/yoo-form-text-editor.cjs.entry.js +2 -2
  36. package/dist/cjs/yoo-form-uploader.cjs.entry.js +1 -1
  37. package/dist/cjs/yoo-input-bar.cjs.entry.js +2 -2
  38. package/dist/cjs/yoo-location-heading.cjs.entry.js +1 -1
  39. package/dist/cjs/yoo-podium.cjs.entry.js +2 -2
  40. package/dist/cjs/yoo-profile-summary.cjs.entry.js +1 -1
  41. package/dist/cjs/yoo-slides-media.cjs.entry.js +2 -2
  42. package/dist/cjs/yoo-user-profile.cjs.entry.js +2 -2
  43. package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +1 -1
  44. package/dist/cjs/yoo-walkthrough.cjs.entry.js +2 -2
  45. package/dist/collection/components/core/chat/chat.js +12 -21
  46. package/dist/collection/components/core/chat-message/chat-message.js +6 -6
  47. package/dist/collection/components/form/form-carousel/form-carousel.js +1 -1
  48. package/dist/collection/components/form-creator/form-creator-translate-dialog/form-creator-translate-dialog.js +3 -2
  49. package/dist/collection/components/grid/ag-grid/grid-renderers.js +5 -1
  50. package/dist/design-system/design-system.esm.js +1 -1
  51. package/dist/design-system/index.esm.js +1 -1
  52. package/dist/design-system/{p-e4481945.entry.js → p-0b78d722.entry.js} +1 -1
  53. package/dist/design-system/{p-49d34fa0.entry.js → p-0e9e24dc.entry.js} +1 -1
  54. package/dist/design-system/{p-87d146a4.entry.js → p-1fbf2bdc.entry.js} +1 -1
  55. package/dist/design-system/{p-88639e39.entry.js → p-23ad22ef.entry.js} +1 -1
  56. package/dist/design-system/p-27145597.entry.js +1 -0
  57. package/dist/design-system/{p-0195a944.entry.js → p-28b6f2af.entry.js} +1 -1
  58. package/dist/design-system/p-2a056ca7.entry.js +1 -0
  59. package/dist/design-system/{p-c61d0b98.entry.js → p-2c1dff83.entry.js} +1 -1
  60. package/dist/design-system/{p-a1e6e5c2.entry.js → p-2d6b451c.entry.js} +1 -1
  61. package/dist/design-system/{p-f7afffac.entry.js → p-2ede5c0e.entry.js} +1 -1
  62. package/dist/design-system/{p-0bb29465.entry.js → p-32603f55.entry.js} +1 -1
  63. package/dist/design-system/{p-8c63a863.entry.js → p-34e0ec13.entry.js} +1 -1
  64. package/dist/design-system/{p-19ced087.entry.js → p-466a2e4b.entry.js} +1 -1
  65. package/dist/design-system/{p-efd4983d.js → p-486e9464.js} +1 -1
  66. package/dist/design-system/{p-874c9807.entry.js → p-4e181258.entry.js} +1 -1
  67. package/dist/design-system/p-4ea7e509.js +1 -0
  68. package/dist/design-system/{p-cccb3658.entry.js → p-4f7b5084.entry.js} +1 -1
  69. package/dist/design-system/p-508eaccb.entry.js +1 -0
  70. package/dist/design-system/p-52b2bcbf.js +1 -0
  71. package/dist/design-system/{p-e954f42f.entry.js → p-5d9b02a3.entry.js} +1 -1
  72. package/dist/design-system/{p-3c525d77.entry.js → p-6470e707.entry.js} +1 -1
  73. package/dist/design-system/{p-dcdf128d.entry.js → p-6a6283bb.entry.js} +1 -1
  74. package/dist/design-system/{p-f4eb8b04.entry.js → p-71ce140b.entry.js} +1 -1
  75. package/dist/design-system/{p-b4bf0927.entry.js → p-78e069f3.entry.js} +1 -1
  76. package/dist/design-system/{p-ea80408e.entry.js → p-79fea067.entry.js} +1 -1
  77. package/dist/design-system/{p-0e502a87.entry.js → p-83aa89ad.entry.js} +1 -1
  78. package/dist/design-system/{p-5d67f58e.entry.js → p-85307152.entry.js} +1 -1
  79. package/dist/design-system/{p-9f170821.entry.js → p-8bf049b5.entry.js} +1 -1
  80. package/dist/design-system/{p-4fcf3997.entry.js → p-9058aa25.entry.js} +1 -1
  81. package/dist/design-system/{p-ff385bd5.entry.js → p-af4cfea4.entry.js} +1 -1
  82. package/dist/design-system/{p-19fa14b3.entry.js → p-bab8cef4.entry.js} +1 -1
  83. package/dist/design-system/{p-77376751.entry.js → p-cb9c30a3.entry.js} +1 -1
  84. package/dist/design-system/{p-c60e5af0.entry.js → p-cc4aeee9.entry.js} +1 -1
  85. package/dist/design-system/{p-a70e359c.entry.js → p-d51ee577.entry.js} +1 -1
  86. package/dist/design-system/{p-7d62f3fe.entry.js → p-db225b69.entry.js} +1 -1
  87. package/dist/design-system/p-db36fb06.js +1 -0
  88. package/dist/design-system/{p-15fd070c.js → p-e37ba040.js} +1 -1
  89. package/dist/design-system/{p-4b5b0147.entry.js → p-e70980f6.entry.js} +1 -1
  90. package/dist/design-system/{p-d54fe233.entry.js → p-e8327344.entry.js} +1 -1
  91. package/dist/design-system/{p-fd870eb7.js → p-e9993e20.js} +1 -1
  92. package/dist/design-system/{p-52f6ebf1.entry.js → p-ea46fc83.entry.js} +1 -1
  93. package/dist/design-system/{p-263c9bdb.js → p-ef754e66.js} +1 -1
  94. package/dist/design-system/{p-f7b10ee1.entry.js → p-f0c01c22.entry.js} +1 -1
  95. package/dist/esm/{draggable-dots-helpers-c77468b6.js → draggable-dots-helpers-64c79f38.js} +1 -1
  96. package/dist/esm/{entities-helpers-5ef12ad3.js → entities-helpers-2876d199.js} +1 -1
  97. package/dist/esm/{grid-renderers-ad52eacd.js → grid-renderers-1dd42472.js} +5 -1
  98. package/dist/esm/{image-helpers-6373847f.js → image-helpers-6b281c05.js} +1 -1
  99. package/dist/esm/{index-f25c3fe6.js → index-6f7890f4.js} +1 -1
  100. package/dist/esm/{index-b1a3fcc3.js → index-7a08441e.js} +1 -1
  101. package/dist/esm/{index-6499210c.js → index-b45a2bdf.js} +1 -1
  102. package/dist/esm/index.js +4 -4
  103. package/dist/esm/yoo-action-sheet-controller_15.entry.js +3 -3
  104. package/dist/esm/yoo-ag-grid_96.entry.js +4 -4
  105. package/dist/esm/yoo-audio-recorder-dialog.entry.js +1 -1
  106. package/dist/esm/yoo-avatar_5.entry.js +2 -2
  107. package/dist/esm/yoo-camera-preview-dialog_7.entry.js +1 -1
  108. package/dist/esm/yoo-card-header.entry.js +2 -2
  109. package/dist/esm/yoo-card-list-image_12.entry.js +4 -4
  110. package/dist/esm/yoo-chat-message_3.entry.js +8 -8
  111. package/dist/esm/yoo-chat.entry.js +14 -23
  112. package/dist/esm/yoo-detail-bar.entry.js +2 -2
  113. package/dist/esm/yoo-feed-detail.entry.js +1 -1
  114. package/dist/esm/yoo-form-choice_4.entry.js +2 -2
  115. package/dist/esm/yoo-form-conditions.entry.js +1 -1
  116. package/dist/esm/yoo-form-connect.entry.js +1 -1
  117. package/dist/esm/yoo-form-creator-block-expandable.entry.js +2 -2
  118. package/dist/esm/yoo-form-creator-block-simple_4.entry.js +3 -3
  119. package/dist/esm/yoo-form-creator-card_2.entry.js +2 -2
  120. package/dist/esm/yoo-form-creator-field-selector_8.entry.js +2 -2
  121. package/dist/esm/yoo-form-creator-translate-dialog.entry.js +5 -4
  122. package/dist/esm/yoo-form-creator.entry.js +2 -2
  123. package/dist/esm/yoo-form-image-tagging-creator.entry.js +2 -2
  124. package/dist/esm/yoo-form-incentive-targets.entry.js +1 -1
  125. package/dist/esm/yoo-form-multi-input.entry.js +1 -1
  126. package/dist/esm/yoo-form-reorder.entry.js +1 -1
  127. package/dist/esm/yoo-form-stripe-card.entry.js +1 -1
  128. package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
  129. package/dist/esm/yoo-form-text-editor.entry.js +2 -2
  130. package/dist/esm/yoo-form-uploader.entry.js +1 -1
  131. package/dist/esm/yoo-input-bar.entry.js +2 -2
  132. package/dist/esm/yoo-location-heading.entry.js +1 -1
  133. package/dist/esm/yoo-podium.entry.js +2 -2
  134. package/dist/esm/yoo-profile-summary.entry.js +1 -1
  135. package/dist/esm/yoo-slides-media.entry.js +2 -2
  136. package/dist/esm/yoo-user-profile.entry.js +2 -2
  137. package/dist/esm/yoo-videoplayer-videojs.entry.js +1 -1
  138. package/dist/esm/yoo-walkthrough.entry.js +2 -2
  139. package/dist/types/components/core/chat/chat.d.ts +1 -1
  140. package/dist/types/components/core/chat-message/chat-message.d.ts +1 -1
  141. package/package.json +1 -1
  142. package/dist/design-system/p-7f8ddb27.js +0 -1
  143. package/dist/design-system/p-81ceff81.js +0 -1
  144. package/dist/design-system/p-86a5c6b4.entry.js +0 -1
  145. package/dist/design-system/p-b14fa2a4.entry.js +0 -1
  146. package/dist/design-system/p-de635023.entry.js +0 -1
  147. package/dist/design-system/p-ee75ca05.js +0 -1
@@ -2,7 +2,7 @@ import { Q as isAnimationsDisabled, E as getCssColor, R as scaleUpAnimation, S a
2
2
  import './input-bar.interface-4e956599.js';
3
3
  import './ResizeObserver.es-a8772c31.js';
4
4
  import { b as isAnnotationValid, g as getElement, j as getAnnotationPositionStyle, i as isAnnotationEmpty, a as isAnnotationDeleted } from './annotations-helpers-d026cd25.js';
5
- import { g as getUUID } from './index-b1a3fcc3.js';
5
+ import { g as getUUID } from './index-7a08441e.js';
6
6
  import { v as isHexaOrRGBColor } from './common-helpers-f3296dd7.js';
7
7
  import { i as inRange } from './inRange-4b32e66e.js';
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { M as MessageType } from './input-bar.interface-4e956599.js';
2
2
  import { _ as isCloudinaryLink, V as getCurrentLanguage, K as getAsyncExtraData, $ as parseMarkDown, j as getSession, Y as translateMulti, a0 as toDate, t as translate, a1 as compact, a2 as isPhotoEdited } from './rrule-5a2de9bb.js';
3
- import { c as changeExtension, i as isGif } from './index-b1a3fcc3.js';
3
+ import { c as changeExtension, i as isGif } from './index-7a08441e.js';
4
4
  import { t as toButton } from './button-helpers-72e796f6.js';
5
5
  import { g as getUserDisplayName, r as replaceAtTagToMentionTag, c as capitalizeFirstLetter } from './entities-helpers-122c20c3.js';
6
6
  import { p as pipes } from './pipe-e40e660a.js';
@@ -182,11 +182,15 @@ function booleanRenderer(params) {
182
182
  return '';
183
183
  }
184
184
  function translateRenderer(params) {
185
+ var _a;
185
186
  const value = params.value;
186
187
  if (value && value.toUpperCase) {
187
188
  return translateMulti(value.toUpperCase());
188
189
  }
189
- return value;
190
+ else if ((value === null || value === void 0 ? void 0 : value.value) && ((_a = value === null || value === void 0 ? void 0 : value.value) === null || _a === void 0 ? void 0 : _a.toUpperCase)) {
191
+ return translateMulti(value.value.toUpperCase());
192
+ }
193
+ return '';
190
194
  }
191
195
  function keyTranslateRenderer(params) {
192
196
  const value = params.value;
@@ -1,6 +1,6 @@
1
1
  import { _ as isCloudinaryLink, P as Cloudinary, M as cleanupWKWebViewImagePath, E as getCssColor } from './rrule-5a2de9bb.js';
2
2
  import './input-bar.interface-4e956599.js';
3
- import { a as isImageUrl, b as isBase64 } from './index-b1a3fcc3.js';
3
+ import { a as isImageUrl, b as isBase64 } from './index-7a08441e.js';
4
4
 
5
5
  async function getImageSize(src, onErr) {
6
6
  const img = new Image();
@@ -1,6 +1,6 @@
1
1
  import { i as FormCreatorOptions, F as FormFieldType, S as ScoringCategory, A as ALL_MOBILE_FORM_FIELDS } from './input-bar.interface-4e956599.js';
2
2
  import { u as isArray, a3 as isNullOrUndefined, t as translate, Y as translateMulti, a1 as compact } from './rrule-5a2de9bb.js';
3
- import { g as getUUID } from './index-b1a3fcc3.js';
3
+ import { g as getUUID } from './index-7a08441e.js';
4
4
  import { m as getCustomName, f as findField, n as isValueALegacyTranslationKey } from './form-creator-helpers-e288d1e2.js';
5
5
  import { m as generateUniqueKey, n as isTranslationKey } from './form-helpers-1b9c9641.js';
6
6
  import './ResizeObserver.es-a8772c31.js';
@@ -695,7 +695,7 @@ function urlToFileBlob(filePath) {
695
695
  function isImageUrl(url) {
696
696
  var _a;
697
697
  // eslint-disable-next-line no-useless-escape
698
- return (!!url.match(/(http(s?)):\/\//i) && !!((_a = url.match(/\.([0-9a-z]+)(?:[\?#]|$)/i)) === null || _a === void 0 ? void 0 : _a[1]) && isImage(url)) || isUnsplashUrl(url);
698
+ return (!!(url === null || url === void 0 ? void 0 : url.match(/(http(s?)):\/\//i)) && !!((_a = url.match(/\.([0-9a-z]+)(?:[\?#]|$)/i)) === null || _a === void 0 ? void 0 : _a[1]) && isImage(url)) || isUnsplashUrl(url) || !!(url === null || url === void 0 ? void 0 : url.includes('capacitor://'));
699
699
  }
700
700
  function resolveFilePath(filePath) {
701
701
  if (isNativeMobile()) {
@@ -1,6 +1,6 @@
1
1
  import { M as MessageType } from './input-bar.interface-4e956599.js';
2
2
  import { aj as isUnsplashUrl, i as isNativeMobile, M as cleanupWKWebViewImagePath } from './rrule-5a2de9bb.js';
3
- import { f as isMedia, b as isBase64 } from './index-b1a3fcc3.js';
3
+ import { f as isMedia, b as isBase64 } from './index-7a08441e.js';
4
4
  import { a as isVideo, b as isAudio, e as isDocument, i as isImage } from './document-29cc0400.js';
5
5
 
6
6
  /**
package/dist/esm/index.js CHANGED
@@ -11,14 +11,14 @@ export { g as getMediaImageDimensions, p as parseMediaMessageForPhotoEditors, s
11
11
  export { c as changeRgbOpacity } from './color-helpers-03a5e1b1.js';
12
12
  export { A as cloudinary, t as dateRangeState, d as debounceEvent, c as decreaseMaxHeight, e as execHandlerAndStopEvent, p as filterDuplicateItems, k as getActiveElementShadow, f as getAppContext, x as getConfig, h as getNextValueInArray, r as getNotificationIcon, b as getScreenHeight, g as getScreenWidth, w as getSizeModal, j as getWindowHeightRatio, n as hideShowSearchBar, o as hideShowTabbar, v as isHexaOrRGBColor, m as lifecycleEvents, l as loadScript, i as lockSwipes, y as querySelectorAllDeep, z as querySelectorDeep, u as sanitizeHTML, q as setColorSVG, s as showPhotoEditor, a as showSlidesMedia } from './common-helpers-f3296dd7.js';
13
13
  export { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
14
- export { c as createDot, d as deleteDot, a as deleteDots, b as deleteEmptyDots, i as getDotCoordsFromEvent, k as getDotInnerElement, j as getDotToolTipElement, h as hideAllDotTooltips, e as hideAllUnFocusedTooltips, r as reorderDotIndexes, f as saveTooltipContent, g as setDotEditable, l as setDotIndexes, s as showDotTooltip } from './draggable-dots-helpers-c77468b6.js';
14
+ export { c as createDot, d as deleteDot, a as deleteDots, b as deleteEmptyDots, i as getDotCoordsFromEvent, k as getDotInnerElement, j as getDotToolTipElement, h as hideAllDotTooltips, e as hideAllUnFocusedTooltips, r as reorderDotIndexes, f as saveTooltipContent, g as setDotEditable, l as setDotIndexes, s as showDotTooltip } from './draggable-dots-helpers-64c79f38.js';
15
15
  export { q as animateTags, d as checkArray, t as dropToZone, f as filterDuplicateEntries, j as getDroppedTagsValues, g as getDuplicatedValue, b as getNewValue, k as getTagZone, e as getTagsValues, i as hasDropZones, a as hasDuplicates, h as hasValuesChanged, p as initTags, u as initZones, n as isDropZoneFull, o as isTagInZone, m as isTagOverlapping, l as isTagsZone, r as resetTags, s as setDynamicTagZoneHeight, c as showWarningAlert } from './draggable-tags-helpers-a104cef1.js';
16
- export { g as groupsFullResolver, o as onUserClick, p as parseEntityCommentsForCardList, b as parseEntityForCardListChat, a as parseEntityForCardMedia, s as sanitizeMentionTag } from './entities-helpers-5ef12ad3.js';
16
+ export { g as groupsFullResolver, o as onUserClick, p as parseEntityCommentsForCardList, b as parseEntityForCardListChat, a as parseEntityForCardMedia, s as sanitizeMentionTag } from './entities-helpers-2876d199.js';
17
17
  export { d as generateLabel, e as getDynamicProperty, f as getJSONHighlighted, g as getTypeValidation, h as initArrayValue, i as isCreationAllowed, c as isDisabled, b as isReadonly, a as isRequired, s as setFieldData, u as updateFormulas } from './form-helpers-63173698.js';
18
18
  export { c as blurActiveElement, d as convertValueForInputType, f as focusContentEditable, e as formatMinMaxDate, i as getFormBottomPosition, g as getTimeDisplayValue, n as initNumber, k as onFocus, h as onIconClicked, m as onInputBlurred, o as onInputClear, l as onInputFocused, j as onValidityChanged, s as setValidator, a as setValueAndResetInputValidity, b as setValueAndValidateInput, t as taskStyle, v as validate } from './form-input-helpers-da854059.js';
19
19
  export { f as fixParagraphRandomEl, e as fuzzySearch, d as getInsertElementProp, g as getSelection, c as getTagHTML, i as isMentionTag, r as restoreCursorPosition, s as safeInsert, a as safeInsertElements, b as safeReplaceElement } from './form-text-area-helpers-eff7814d.js';
20
20
  export { f as formatDistance, g as getGeolocation } from './geolocation-helpers-84299bd6.js';
21
- export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-6373847f.js';
21
+ export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-6b281c05.js';
22
22
  export { g as getIncentiveStatusBadgeSettings, c as getParticipant, a as getPositionText, b as getProgressText, e as getTotalSalesBreakdown, d as getUserScore } from './incentive-helpers-30a3bd55.js';
23
23
  export { g as generateFilterGroups, b as getMapCSSClasses, h as hasSameMarkers, i as isMarkersLayer, a as isSelectedMarkersLayer, c as isWebGLSupported, l as layersFromKeys, s as showDirectionsActionSheet } from './map-helpers-50f15184.js';
24
24
  export { a as intersectionObserve, i as isIntersectionObserverSupported, r as resizeObserve } from './observer-helpers-2c5c0591.js';
@@ -48,7 +48,7 @@ import './_baseGet-b09185bc.js';
48
48
  import './isUndefined-11cbe419.js';
49
49
  import './isNumber-5a14c4d5.js';
50
50
  import './get-3cbd3bd6.js';
51
- import './index-b1a3fcc3.js';
51
+ import './index-7a08441e.js';
52
52
  import './document-29cc0400.js';
53
53
  import './validate-691c9af1.js';
54
54
  import './isString-1673d591.js';
@@ -5,7 +5,7 @@ import { S as ScreenOrientation } from './ResizeObserver.es-a8772c31.js';
5
5
  import { r as removeLastOverlay, c as createOverlay, d as dismissOverlay, g as getTopOverlay } from './overlays-e088e41d.js';
6
6
  import { f as getAppContext, r as getNotificationIcon, e as execHandlerAndStopEvent, z as querySelectorDeep, x as getConfig, y as querySelectorAllDeep } from './common-helpers-f3296dd7.js';
7
7
  import { t as toggleElementTapped } from './card-list-helpers-4e01192d.js';
8
- import { t as toPng, d as getIconName, e as getIconColor, f as isMedia, h as fileHasIcon, j as getRandomFileName, k as isValid, r as resizeImage, s as showDocumentDownloadOptions } from './index-b1a3fcc3.js';
8
+ import { t as toPng, d as getIconName, e as getIconColor, f as isMedia, h as fileHasIcon, j as getRandomFileName, k as isValid, r as resizeImage, s as showDocumentDownloadOptions } from './index-7a08441e.js';
9
9
  import { i as isPlanInFuture, g as getLessonTypeIcon, a as getPlanDueDate } from './boost-helpers-ae1115e2.js';
10
10
  import { t as toButton } from './button-helpers-72e796f6.js';
11
11
  import { g as getUserDisplayName, a as getMediaSrcAndType, b as getCardFeedEntryFromFeed, d as getCardFeedEntryFromQuestion, e as groupsResolver, f as getEventConfigsFromEvent, r as replaceAtTagToMentionTag, h as getRoleTitle } from './entities-helpers-122c20c3.js';
@@ -13,7 +13,7 @@ import { j as getMobileFieldIcon, k as isFieldWithNoValue } from './form-helpers
13
13
  import { p as pipes } from './pipe-e40e660a.js';
14
14
  import { b as getWorkflowProgress, c as getUserTags, d as getDashboardTags } from './operation-helpers-0af202b3.js';
15
15
  import { r as replaceAllLinks, g as getURLs } from './url-helpers-91100b28.js';
16
- import { b as parseEntityForCardListChat, p as parseEntityCommentsForCardList, a as parseEntityForCardMedia, o as onUserClick } from './entities-helpers-5ef12ad3.js';
16
+ import { b as parseEntityForCardListChat, p as parseEntityCommentsForCardList, a as parseEntityForCardMedia, o as onUserClick } from './entities-helpers-2876d199.js';
17
17
  import { g as getIncentiveStatusBadgeSettings } from './incentive-helpers-30a3bd55.js';
18
18
  import { a as getMissionStateTags, c as getMissionUniqueKey, m as getCampaignStateTags, g as getCampaignTemplateTags, e as getMissionDataStateTags, j as getWaitlistVisitTags, f as getProductBatchDateTag, i as getProductBatchProgressColor } from './operation-helpers-d3996895.js';
19
19
  import { c as createThemedClasses } from './theme-a67283b7.js';
@@ -24,7 +24,7 @@ import { i as isString } from './isString-1673d591.js';
24
24
  import { c as createAggregator } from './_createAggregator-8d09e764.js';
25
25
  import { g as get } from './get-3cbd3bd6.js';
26
26
  import { s as setValidator, i as getFormBottomPosition, b as setValueAndValidateInput, v as validate, n as initNumber, d as convertValueForInputType, h as onIconClicked, o as onInputClear, m as onInputBlurred, l as onInputFocused } from './form-input-helpers-da854059.js';
27
- import { g as getRenderer } from './grid-renderers-ad52eacd.js';
27
+ import { g as getRenderer } from './grid-renderers-1dd42472.js';
28
28
  import { g as getFromLocalForage, b as getKeyToCache } from './localForage-fb0baf03.js';
29
29
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
30
30
  import './isUndefined-11cbe419.js';
@@ -3,7 +3,7 @@ import { aJ as eq, u as isArray$1, a4 as isObject$2, as as isFunction$2, aO as b
3
3
  import { E as EventType, x as TLessonState, F as FormFieldType, a as IncentivePartType, y as FormFilterAutocompleteOperator, W as WaitlistAPIDateFormat } from './input-bar.interface-4e956599.js';
4
4
  import { i as isLessonCompleted, c as canBeRetried, S as ScreenOrientation } from './ResizeObserver.es-a8772c31.js';
5
5
  import { f as getAppContext, l as loadScript, z as querySelectorDeep, B as setAnimation, e as execHandlerAndStopEvent, s as showPhotoEditor, q as setColorSVG, E as EMPTYSTATE_MAP, y as querySelectorAllDeep, i as lockSwipes, k as getActiveElementShadow, o as hideShowTabbar, u as sanitizeHTML, n as hideShowSearchBar, h as getNextValueInArray, D as EMPTYSTATE_TEXT_MAP, F as EMPTYSTATE_TITLE_MAP, p as filterDuplicateItems, C as animations, A as cloudinary, m as lifecycleEvents } from './common-helpers-f3296dd7.js';
6
- import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-ad52eacd.js';
6
+ import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-1dd42472.js';
7
7
  import { i as identity$4 } from './identity-db011338.js';
8
8
  import { i as isNumber$1 } from './isNumber-5a14c4d5.js';
9
9
  import { j as baseSum, a as isRequired, g as getTypeValidation, b as isReadonly, s as setFieldData, u as updateFormulas, e as getDynamicProperty, c as isDisabled, d as generateLabel, i as isCreationAllowed } from './form-helpers-63173698.js';
@@ -16,7 +16,7 @@ import { g as get$1 } from './get-3cbd3bd6.js';
16
16
  import { i as isPlainObject$1, o as omit } from './omit-9704f658.js';
17
17
  import { i as isString$1 } from './isString-1673d591.js';
18
18
  import { h as hasSameMarkers, g as generateFilterGroups, l as layersFromKeys, s as showDirectionsActionSheet, c as isWebGLSupported, b as getMapCSSClasses, i as isMarkersLayer, a as isSelectedMarkersLayer } from './map-helpers-50f15184.js';
19
- import { c as changeExtension, g as getUUID, f as isMedia, n as downloadFile, i as isGif, w as getDownloadAction, C as isDocumentDownloadSupported, s as showDocumentDownloadOptions, b as isBase64, D as openBase64File, t as toPng, d as getIconName, e as getIconColor, E as isDocumentEmailSupported, F as showPdfOnDevice, G as getNativeDirectory, H as fileNativeCheckFile, I as downloadFileToDevice, J as urlToBlob, y as getVideoPoster } from './index-b1a3fcc3.js';
19
+ import { c as changeExtension, g as getUUID, f as isMedia, n as downloadFile, i as isGif, w as getDownloadAction, C as isDocumentDownloadSupported, s as showDocumentDownloadOptions, b as isBase64, D as openBase64File, t as toPng, d as getIconName, e as getIconColor, E as isDocumentEmailSupported, F as showPdfOnDevice, G as getNativeDirectory, H as fileNativeCheckFile, I as downloadFileToDevice, J as urlToBlob, y as getVideoPoster } from './index-7a08441e.js';
20
20
  import { a as getFromOfflineStorage, g as getFromLocalForage, b as getKeyToCache } from './localForage-fb0baf03.js';
21
21
  import { g as getUserDisplayName, r as replaceAtTagToMentionTag, k as hasAttachment, c as capitalizeFirstLetter$1 } from './entities-helpers-122c20c3.js';
22
22
  import { p as pipes } from './pipe-e40e660a.js';
@@ -63,9 +63,9 @@ import { S as Sortable } from './sortable.esm-e5d5ca49.js';
63
63
  import { m as map$1 } from './map-55451e6b.js';
64
64
  import { i as isBoolean } from './isBoolean-80d45d8d.js';
65
65
  import { c as createThemedClasses, a as createColorClasses, h as hostContext } from './theme-a67283b7.js';
66
- import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-6373847f.js';
66
+ import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-6b281c05.js';
67
67
  import { a as isAnnotationDeleted, b as isAnnotationValid, g as getElement$1, c as isAnnotationFocused, i as isAnnotationEmpty, k as isElementInsideContainer, d as getPointerCoordinates } from './annotations-helpers-d026cd25.js';
68
- import { o as getDefaultAnnotationTextColor, f as saveTooltipContent, p as getAnnotationStyle, B as BUTTONS_CONFIG, A as ANIMATION_DELAY, q as getBoundingClient, t as isCanvasBlank, M as MENU_ITEMS, j as getDotToolTipElement, k as getDotInnerElement, S as SLIDER_THRESHOLD, L as LOADING_DELAY, u as prepareAnnotationsData, l as setDotIndexes, v as focusAnnotation, w as getAnnotationDraggableBounds, x as getFormattedAnnotationSize, y as getAbsoluteCenter, z as getRelativeCenter, C as showPredefinedTextsDialog, c as createDot, D as DOT_RADIUS, E as updateAnnotationLocal, F as createBaseAnnotation, G as removeLocalsFromAnnotations, H as EEditorActions, s as showDotTooltip, I as formatAnnotationsForExport, h as hideAllDotTooltips, J as deCenterAnnotation, n as getAnnotation, K as INIT_COORDS, N as setAnnotationPositionToClosestEdge } from './draggable-dots-helpers-c77468b6.js';
68
+ import { o as getDefaultAnnotationTextColor, f as saveTooltipContent, p as getAnnotationStyle, B as BUTTONS_CONFIG, A as ANIMATION_DELAY, q as getBoundingClient, t as isCanvasBlank, M as MENU_ITEMS, j as getDotToolTipElement, k as getDotInnerElement, S as SLIDER_THRESHOLD, L as LOADING_DELAY, u as prepareAnnotationsData, l as setDotIndexes, v as focusAnnotation, w as getAnnotationDraggableBounds, x as getFormattedAnnotationSize, y as getAbsoluteCenter, z as getRelativeCenter, C as showPredefinedTextsDialog, c as createDot, D as DOT_RADIUS, E as updateAnnotationLocal, F as createBaseAnnotation, G as removeLocalsFromAnnotations, H as EEditorActions, s as showDotTooltip, I as formatAnnotationsForExport, h as hideAllDotTooltips, J as deCenterAnnotation, n as getAnnotation, K as INIT_COORDS, N as setAnnotationPositionToClosestEdge } from './draggable-dots-helpers-64c79f38.js';
69
69
  import { i as inRange } from './inRange-4b32e66e.js';
70
70
  import { s as setupHammer, h as hammerTypes, b as isBottomSwipe, i as isTopSwipe, c as isRightSwipe, d as isLeftSwipe, a as hammerDirections } from './hammer-gestures-3023c759.js';
71
71
  import { p as present, d as dismiss } from './overlays-798eeacc.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-27314512.js';
2
2
  import { bn as keepAwake, i as isNativeMobile, bo as closeModal, t as translate, o as getMediaDevices } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
- import { l as removeFileAtPath, m as saveToLocalFile } from './index-b1a3fcc3.js';
4
+ import { l as removeFileAtPath, m as saveToLocalFile } from './index-7a08441e.js';
5
5
  import { p as pipes } from './pipe-e40e660a.js';
6
6
  import './ResizeObserver.es-a8772c31.js';
7
7
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
@@ -2,11 +2,11 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement,
2
2
  import { a as isOffline, t as translate, b as isWeb, c as createCommonjsModule, bu as getClosestImageRatio, aq as dispatchCustomEvent, w as debounce, _ as isCloudinaryLink, j as getSession, bd as isDarkTheme } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import { p as pipes } from './pipe-e40e660a.js';
5
- import { c as changeExtension, i as isGif } from './index-b1a3fcc3.js';
5
+ import { c as changeExtension, i as isGif } from './index-7a08441e.js';
6
6
  import { a as getFromOfflineStorage } from './localForage-fb0baf03.js';
7
7
  import './ResizeObserver.es-a8772c31.js';
8
8
  import { A as cloudinary } from './common-helpers-f3296dd7.js';
9
- import { d as applyViewBox, c as getFormattedImageURL } from './image-helpers-6373847f.js';
9
+ import { d as applyViewBox, c as getFormattedImageURL } from './image-helpers-6b281c05.js';
10
10
  import { i as isIntersectionObserverSupported, a as intersectionObserve } from './observer-helpers-2c5c0591.js';
11
11
  import { c as changeRgbOpacity } from './color-helpers-03a5e1b1.js';
12
12
  import './toInteger-9e62a9cd.js';
@@ -5,7 +5,7 @@ import { i as isImage, a as isVideo, b as isAudio, f as images, h as audios, v a
5
5
  import { b as addFilePrefix } from './url-helpers-91100b28.js';
6
6
  import { g as getPictureMaxSize, a as importMultipleFromLibrary, b as getPicture, d as getVideo, s as showAudioRecorder, m as MediaCapture, e as getVideoDevices, P as PictureSourceType, k as MediaType } from './ResizeObserver.es-a8772c31.js';
7
7
  import { a as showSlidesMedia, f as getAppContext, y as querySelectorAllDeep, z as querySelectorDeep, s as showPhotoEditor, i as lockSwipes } from './common-helpers-f3296dd7.js';
8
- import { z as getFormCapturedFileSize, v as moveToImageDirectory, A as updatePathSessionId, q as read, p as getMimeType, B as hasLargeFile, c as changeExtension, i as isGif, n as downloadFile } from './index-b1a3fcc3.js';
8
+ import { z as getFormCapturedFileSize, v as moveToImageDirectory, A as updatePathSessionId, q as read, p as getMimeType, B as hasLargeFile, c as changeExtension, i as isGif, n as downloadFile } from './index-7a08441e.js';
9
9
  import { p as pipes } from './pipe-e40e660a.js';
10
10
  import { h as initArrayValue } from './form-helpers-63173698.js';
11
11
  import { b as setValueAndValidateInput, s as setValidator } from './form-input-helpers-da854059.js';
@@ -2,10 +2,10 @@ import { r as registerInstance, h, H as Host } from './index-27314512.js';
2
2
  import { t as translate } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { u as updateSVGCustomColors } from './image-helpers-6373847f.js';
5
+ import { u as updateSVGCustomColors } from './image-helpers-6b281c05.js';
6
6
  import './isUndefined-11cbe419.js';
7
7
  import './isNumber-5a14c4d5.js';
8
- import './index-b1a3fcc3.js';
8
+ import './index-7a08441e.js';
9
9
  import './document-29cc0400.js';
10
10
  import './validate-691c9af1.js';
11
11
  import './isString-1673d591.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, g as getElement, c as createEvent, H as Host, a as getAssetPath, f as forceUpdate } from './index-27314512.js';
2
2
  import { E as getCssColor, t as translate, b as isWeb, y as findParent, a3 as isNullOrUndefined, bo as closeModal, j as getSession, K as getAsyncExtraData, bX as showContextMenu, af as showActionSheet, i as isNativeMobile, bh as isChromatic, _ as isCloudinaryLink, u as isArray, w as debounce, c4 as getAppType, m as isIOS, c as createCommonjsModule, k as isIonic, c5 as isElementClicked } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
- import { n as downloadFile } from './index-b1a3fcc3.js';
4
+ import { n as downloadFile } from './index-7a08441e.js';
5
5
  import './ResizeObserver.es-a8772c31.js';
6
6
  import { i as lockSwipes, a as showSlidesMedia, f as getAppContext, z as querySelectorDeep } from './common-helpers-f3296dd7.js';
7
7
  import { i as isIntersectionObserverSupported, a as intersectionObserve } from './observer-helpers-2c5c0591.js';
@@ -11,8 +11,8 @@ import { b as setValueAndValidateInput, s as setValidator } from './form-input-h
11
11
  import { g as get } from './get-3cbd3bd6.js';
12
12
  import { f as getPhotoSVG, k as isElementInsideContainer } from './annotations-helpers-d026cd25.js';
13
13
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
14
- import { u as updateSVGCustomColors } from './image-helpers-6373847f.js';
15
- import { g as getRenderer } from './grid-renderers-ad52eacd.js';
14
+ import { u as updateSVGCustomColors } from './image-helpers-6b281c05.js';
15
+ import { g as getRenderer } from './grid-renderers-1dd42472.js';
16
16
  import { d as debounce$1 } from './debounce-1a5f66d4.js';
17
17
  import { c as cloneDeep } from './cloneDeep-7e28f486.js';
18
18
  import { a as assign } from './assign-6bfb01cb.js';
@@ -332,7 +332,7 @@ const YooFormCarouselComponent = class {
332
332
  items: this.mediaSrc.map((v, valueIndex) => {
333
333
  var _a, _b;
334
334
  const item = {
335
- value: v,
335
+ value: isArray(v) ? v[0] : v,
336
336
  annotations: ((_a = this.annotations) === null || _a === void 0 ? void 0 : _a.length) ? this.annotations[valueIndex] : null,
337
337
  drawings: ((_b = this.drawings) === null || _b === void 0 ? void 0 : _b.length) ? this.drawings[valueIndex] : null
338
338
  };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-27314512.js';
2
2
  import { M as MessageType } from './input-bar.interface-4e956599.js';
3
3
  import { a3 as isNullOrUndefined, b as isWeb, j as getSession, c3 as showMessageInfoDialog, t as translate, r as isFile, a2 as isPhotoEdited, i as isNativeMobile, Y as translateMulti, as as isFunction } from './rrule-5a2de9bb.js';
4
- import { a as isRichContentMessage, c as getMessageType, i as isNotificationMessage, d as isChatMessageTypeMedia } from './index-6499210c.js';
4
+ import { a as isRichContentMessage, c as getMessageType, i as isNotificationMessage, d as isChatMessageTypeMedia } from './index-b45a2bdf.js';
5
5
  import { c as isPdf, b as isAudio, a as isVideo } from './document-29cc0400.js';
6
6
  import { r as replaceAtTagToMentionTag, g as getUserDisplayName } from './entities-helpers-122c20c3.js';
7
7
  import { p as pipes } from './pipe-e40e660a.js';
@@ -9,7 +9,7 @@ import { a as replaceAndGetAllLinks, r as replaceAllLinks } from './url-helpers-
9
9
  import './ResizeObserver.es-a8772c31.js';
10
10
  import { f as getAppContext, u as sanitizeHTML } from './common-helpers-f3296dd7.js';
11
11
  import { d as debounce } from './debounce-1a5f66d4.js';
12
- import './index-b1a3fcc3.js';
12
+ import './index-7a08441e.js';
13
13
  import './validate-691c9af1.js';
14
14
  import './isString-1673d591.js';
15
15
  import './toInteger-9e62a9cd.js';
@@ -93,6 +93,12 @@ const YooChatMessageComponent = class {
93
93
  var _a, _b;
94
94
  return ((_a = this.message) === null || _a === void 0 ? void 0 : _a.replyMessage) !== null && ((_b = this.message) === null || _b === void 0 ? void 0 : _b.replyMessage) !== undefined;
95
95
  }
96
+ get notificationAvatarUser() {
97
+ if (this.message.options && this.message.options.notificationParams && this.message.options.notificationParams.notificationAvatar) {
98
+ return this.message.options.notificationParams.notificationAvatar;
99
+ }
100
+ return null;
101
+ }
96
102
  componentWillLoad() {
97
103
  if (isNullOrUndefined(this.imageWidthRatio)) {
98
104
  this.imageWidthRatio = isWeb(this.host) ? 0.35 : 0.75;
@@ -181,12 +187,6 @@ const YooChatMessageComponent = class {
181
187
  onHasMentions() {
182
188
  return this.message && this.message.mentions && this.message.mentions.length > 0;
183
189
  }
184
- get notificationAvatarUser() {
185
- if (this.message.options && this.message.options.notificationParams && this.message.options.notificationParams.notificationAvatar) {
186
- return this.message.options.notificationParams.notificationAvatar;
187
- }
188
- return null;
189
- }
190
190
  canDeleteMessage() {
191
191
  var _a, _b;
192
192
  return ((_b = (_a = this.message) === null || _a === void 0 ? void 0 : _a.author) === null || _b === void 0 ? void 0 : _b._id) === getSession().userId || this.forceDelete;
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-27314512.js';
2
2
  import { M as MessageType, B as BroadcastType } from './input-bar.interface-4e956599.js';
3
3
  import { bo as closeModal, br as requestInterval, bv as floatingIconAnimation, i as isNativeMobile, m as isIOS, b7 as disableKeyboardResize, bt as cancelRequestInterval, T as gsapTo, b6 as enableKeyboardResize, K as getAsyncExtraData, j as getSession, af as showActionSheet, t as translate, S as isFinite, b as isWeb, a3 as isNullOrUndefined, bs as getFormattedCountDownToDisplay, aq as dispatchCustomEvent, z as isIphoneX, y as findParent } from './rrule-5a2de9bb.js';
4
- import { i as isNotificationMessage, a as isRichContentMessage } from './index-6499210c.js';
5
- import { i as isGif, n as downloadFile } from './index-b1a3fcc3.js';
4
+ import { i as isNotificationMessage, a as isRichContentMessage } from './index-b45a2bdf.js';
5
+ import { i as isGif, n as downloadFile } from './index-7a08441e.js';
6
6
  import { g as getUserDisplayName } from './entities-helpers-122c20c3.js';
7
7
  import './ResizeObserver.es-a8772c31.js';
8
8
  import { p as parseMediaMessageForPhotoEditors } from './chat-helpers-1ee8f130.js';
@@ -83,6 +83,7 @@ const YooChatComponent = class {
83
83
  onInputFocused() {
84
84
  this.inputFocused = true;
85
85
  this.scrollBottomOnKeyboradShown = true;
86
+ this.oldestMostRecentMessageElement = null;
86
87
  }
87
88
  onMediaLoading(event) {
88
89
  this.showLoader = event === null || event === void 0 ? void 0 : event.detail;
@@ -250,7 +251,7 @@ const YooChatComponent = class {
250
251
  }
251
252
  }
252
253
  componentDidUpdate() {
253
- this.oldestMostRecentMessageElement ? this.refreshMessages() : this.initChat();
254
+ this.oldestMostRecentMessageElement ? this.initMessages() : this.initChat();
254
255
  // re-render will remove video player, need to re-create the player
255
256
  if (!isNativeMobile() &&
256
257
  this.broadcastParams &&
@@ -300,23 +301,13 @@ const YooChatComponent = class {
300
301
  getAsyncExtraData({ type: 'user-detail', params: { user: this.users[0] } });
301
302
  }
302
303
  }
303
- refreshMessages() {
304
- this.initMessages();
305
- }
306
304
  async initMessages() {
305
+ var _a;
307
306
  const messages = (this.messageElements || []).reverse();
308
- await Promise.all(messages.map((el) => {
309
- return (el === null || el === void 0 ? void 0 : el.initMessage()) || Promise.resolve(true);
310
- }));
311
- const element = this.messageElements.find((item) => { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.message) === null || _a === void 0 ? void 0 : _a.timetoken) === this.oldestMostRecentMessageElement; });
312
- if (element) {
313
- gsapTo(this.scroll, 0, { scrollTo: { y: element, offsetY: 10 } }).then(() => {
314
- this.oldestMostRecentMessageElement = null;
315
- });
316
- }
317
- for (const el of messages) {
318
- await (el === null || el === void 0 ? void 0 : el.renderContent());
319
- }
307
+ await Promise.all(messages.map(el => (el === null || el === void 0 ? void 0 : el.initMessage()) || Promise.resolve(true)));
308
+ await Promise.all(messages.map(el => (el === null || el === void 0 ? void 0 : el.renderContent()) || Promise.resolve(true)));
309
+ (_a = this.oldestMostRecentMessageElement) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
310
+ this.scrollLocker = false;
320
311
  }
321
312
  onChatFocused() {
322
313
  this.chatFocused.emit(true);
@@ -335,8 +326,7 @@ const YooChatComponent = class {
335
326
  }
336
327
  onPullToRefresh() {
337
328
  var _a, _b;
338
- const cleanElements = this.messageElements.filter((item) => item);
339
- this.oldestMostRecentMessageElement = (_b = (_a = cleanElements[0]) === null || _a === void 0 ? void 0 : _a.message) === null || _b === void 0 ? void 0 : _b.timetoken;
329
+ this.oldestMostRecentMessageElement = (_b = (_a = this.messageElements) === null || _a === void 0 ? void 0 : _a.filter(m => { var _a, _b; return m.message.timetoken === ((_b = (_a = this.messages) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.timetoken); })) === null || _b === void 0 ? void 0 : _b[0];
340
330
  this.loadMoreClicked.emit(true);
341
331
  }
342
332
  onCloseDeleteMode() {
@@ -392,7 +382,8 @@ const YooChatComponent = class {
392
382
  async onIonScroll(ev) {
393
383
  var _a, _b, _c;
394
384
  const scrollTopPosition = isFinite((_a = ev === null || ev === void 0 ? void 0 : ev.detail) === null || _a === void 0 ? void 0 : _a.scrollTop) && ev.detail.scrollTop;
395
- if (scrollTopPosition <= 2 && !this.disableLoadMore && isWeb(this.host)) {
385
+ if (!this.scrollLocker && scrollTopPosition <= 2 && !this.disableLoadMore && isWeb(this.host)) {
386
+ this.scrollLocker = true;
396
387
  this.onPullToRefresh();
397
388
  }
398
389
  if (this.broadcastMode) {
@@ -500,13 +491,13 @@ const YooChatComponent = class {
500
491
  }
501
492
  renderChatMessages() {
502
493
  return this.messages.map((m, index) => {
503
- var _a, _b;
494
+ var _a, _b, _c;
504
495
  if (m === null || m === void 0 ? void 0 : m.deleted) {
505
496
  return;
506
497
  }
507
498
  return (h("yoo-chat-message", { onConferenceMessageClicked: (ev) => {
508
499
  this.conferenceMessageClicked.emit(ev.detail);
509
- }, onRepliedMessageClicked: (ev) => this.onRepliedMessageClicked(ev), id: m.chatId, key: m.chatId, hasOptions: isWeb(this.host), hasStatus: true, message: m, asyncRender: true, allUsers: this.allUsers, isLast: this.getLastMessage(index), isFirst: this.getFirstMessage(index), onClicked: (ev) => this.onClickMessage(ev, m.timetoken), isNextImage: this.isNextImage(index), isGroup: this.isMultiple, receivedByOthers: m.options && m.options.messageRecievedInfo && m.options.messageRecievedInfo.length === ((_a = this.otherIds) === null || _a === void 0 ? void 0 : _a.length), onPresshold: (ev) => this.onHighlightMessage(ev), currentActivePlayerId: this.currentActivePlayerId, containerWidth: this.containerWidth, forceDelete: this.forceDelete, imageWidthRatio: ((_b = this.advancedOptions) === null || _b === void 0 ? void 0 : _b.popupMode) ? 0.65 : undefined, preventVideoPreloading: this.preventVideoPreloading, onUsernameClicked: (ev) => getAsyncExtraData({ type: 'user-detail', params: { user: ev.detail } }), onAvatarClicked: (ev) => getAsyncExtraData({ type: 'user-detail', params: { user: ev.detail } }) }));
500
+ }, onRepliedMessageClicked: (ev) => this.onRepliedMessageClicked(ev), id: (_a = m.timetoken) === null || _a === void 0 ? void 0 : _a.toString(), key: m.timetoken, hasOptions: isWeb(this.host), hasStatus: true, message: m, asyncRender: true, allUsers: this.allUsers, isLast: this.getLastMessage(index), isFirst: this.getFirstMessage(index), onClicked: (ev) => this.onClickMessage(ev, m.timetoken), isNextImage: this.isNextImage(index), isGroup: this.isMultiple, receivedByOthers: m.options && m.options.messageRecievedInfo && m.options.messageRecievedInfo.length === ((_b = this.otherIds) === null || _b === void 0 ? void 0 : _b.length), onPresshold: (ev) => this.onHighlightMessage(ev), currentActivePlayerId: this.currentActivePlayerId, containerWidth: this.containerWidth, forceDelete: this.forceDelete, imageWidthRatio: ((_c = this.advancedOptions) === null || _c === void 0 ? void 0 : _c.popupMode) ? 0.65 : undefined, preventVideoPreloading: this.preventVideoPreloading, onUsernameClicked: (ev) => getAsyncExtraData({ type: 'user-detail', params: { user: ev.detail } }), onAvatarClicked: (ev) => getAsyncExtraData({ type: 'user-detail', params: { user: ev.detail } }) }));
510
501
  });
511
502
  }
512
503
  renderBroadcastActions(action) {
@@ -2,11 +2,11 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-2
2
2
  import { a9 as dateFormat, t as translate, Y as translateMulti } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import './ResizeObserver.es-a8772c31.js';
5
- import { g as groupsFullResolver } from './entities-helpers-5ef12ad3.js';
5
+ import { g as groupsFullResolver } from './entities-helpers-2876d199.js';
6
6
  import { i as isBoolean } from './isBoolean-80d45d8d.js';
7
7
  import './isUndefined-11cbe419.js';
8
8
  import './isNumber-5a14c4d5.js';
9
- import './index-b1a3fcc3.js';
9
+ import './index-7a08441e.js';
10
10
  import './document-29cc0400.js';
11
11
  import './validate-691c9af1.js';
12
12
  import './isString-1673d591.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-27314512.js';
2
2
  import { i as isNativeMobile, aq as dispatchCustomEvent, t as translate, bo as closeModal, Y as translateMulti, $ as parseMarkDown, at as getPermissions, bU as removeMarkdown, z as isIphoneX, ac as Plugins, a3 as isNullOrUndefined, u as isArray } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
- import { f as isMedia } from './index-b1a3fcc3.js';
4
+ import { f as isMedia } from './index-7a08441e.js';
5
5
  import { j as getMediaSrcFromFeed, e as groupsResolver, g as getUserDisplayName, r as replaceAtTagToMentionTag } from './entities-helpers-122c20c3.js';
6
6
  import { p as pipes } from './pipe-e40e660a.js';
7
7
  import { e as getFeedLikes } from './operation-helpers-0af202b3.js';
@@ -10,7 +10,7 @@ import { s as shuffle } from './shuffle-ec8e5df6.js';
10
10
  import { f as findIndex } from './findIndex-f1398eac.js';
11
11
  import { i as isString } from './isString-1673d591.js';
12
12
  import { f as feedbackValues } from './index-2319a076.js';
13
- import { l as setBlockSelection, U as setPageSelection } from './index-f25c3fe6.js';
13
+ import { l as setBlockSelection, U as setPageSelection } from './index-6f7890f4.js';
14
14
  import { d as getConfidenceDescriptionKey } from './boost-helpers-ae1115e2.js';
15
15
  import { i as isNumber } from './isNumber-5a14c4d5.js';
16
16
  import './isUndefined-11cbe419.js';
@@ -34,7 +34,7 @@ import './_copyArray-40d7b0e8.js';
34
34
  import './toInteger-9e62a9cd.js';
35
35
  import './toFinite-adaf76e2.js';
36
36
  import './toNumber-2273741c.js';
37
- import './index-b1a3fcc3.js';
37
+ import './index-7a08441e.js';
38
38
  import './document-29cc0400.js';
39
39
  import './validate-691c9af1.js';
40
40
  import './form-creator-helpers-e288d1e2.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-27314512.js';
2
2
  import { A as ALL_MOBILE_FORM_FIELDS } from './input-bar.interface-4e956599.js';
3
3
  import { a1 as compact, t as translate } from './rrule-5a2de9bb.js';
4
- import { g as getUUID } from './index-b1a3fcc3.js';
4
+ import { g as getUUID } from './index-7a08441e.js';
5
5
  import './document-29cc0400.js';
6
6
  import './validate-691c9af1.js';
7
7
  import './isString-1673d591.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-27314512.js';
2
2
  import { U as Draggable, Y as translateMulti, T as gsapTo } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
- import { g as getUUID, a as isImageUrl } from './index-b1a3fcc3.js';
4
+ import { g as getUUID, a as isImageUrl } from './index-7a08441e.js';
5
5
  import './ResizeObserver.es-a8772c31.js';
6
6
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
7
7
  import { c as showWarningAlert } from './draggable-tags-helpers-a104cef1.js';
@@ -3,7 +3,7 @@ import { w as FORM_CREATOR_OPTIONS_ALL, A as ALL_MOBILE_FORM_FIELDS, S as Scorin
3
3
  import { w as debounce, a1 as compact, t as translate, Z as gsapFromTo, Y as translateMulti, a3 as isNullOrUndefined, T as gsapTo, c2 as Power3 } from './rrule-5a2de9bb.js';
4
4
  import { y as findMaxScore, z as isNotApplicable } from './form-creator-helpers-e288d1e2.js';
5
5
  import { N as NON_CONDITION_CATEGORIES } from './index-4fa684b9.js';
6
- import { l as setBlockSelection, R as setRestrictionAndConditionActions, S as starRatingMaxDefault, T as filterSequentialFields, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-f25c3fe6.js';
6
+ import { l as setBlockSelection, R as setRestrictionAndConditionActions, S as starRatingMaxDefault, T as filterSequentialFields, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-6f7890f4.js';
7
7
  import './isNumber-5a14c4d5.js';
8
8
  import './isEqual-17ab50de.js';
9
9
  import './_baseIsEqual-b74e0d4d.js';
@@ -13,7 +13,7 @@ import './keys-ec469112.js';
13
13
  import './_baseUnary-3e989b0b.js';
14
14
  import './_baseKeys-2fda8200.js';
15
15
  import './_getTag-064e16c4.js';
16
- import './index-b1a3fcc3.js';
16
+ import './index-7a08441e.js';
17
17
  import './document-29cc0400.js';
18
18
  import './validate-691c9af1.js';
19
19
  import './isString-1673d591.js';
@@ -5,14 +5,14 @@ import './ResizeObserver.es-a8772c31.js';
5
5
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
6
6
  import { f as fieldStateOptions } from './index-d2e5da02.js';
7
7
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
8
- import { I as setRestrictionAndFieldConditions, P as getWorkflowFieldState, O as onWorkflowStepClicked } from './index-f25c3fe6.js';
8
+ import { I as setRestrictionAndFieldConditions, P as getWorkflowFieldState, O as onWorkflowStepClicked } from './index-6f7890f4.js';
9
9
  import { g as getUserDisplayName } from './entities-helpers-122c20c3.js';
10
- import { g as groupsFullResolver } from './entities-helpers-5ef12ad3.js';
10
+ import { g as groupsFullResolver } from './entities-helpers-2876d199.js';
11
11
  import './isUndefined-11cbe419.js';
12
12
  import './isNumber-5a14c4d5.js';
13
13
  import './get-3cbd3bd6.js';
14
14
  import './_baseGet-b09185bc.js';
15
- import './index-b1a3fcc3.js';
15
+ import './index-7a08441e.js';
16
16
  import './document-29cc0400.js';
17
17
  import './validate-691c9af1.js';
18
18
  import './isString-1673d591.js';
@@ -2,8 +2,8 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-2
2
2
  import { s as showModal, t as translate, Y as translateMulti, b1 as showAlert, bo as closeModal } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
4
  import { f as fieldStateOptions } from './index-d2e5da02.js';
5
- import { R as setRestrictionAndConditionActions, l as setBlockSelection } from './index-f25c3fe6.js';
6
- import './index-b1a3fcc3.js';
5
+ import { R as setRestrictionAndConditionActions, l as setBlockSelection } from './index-6f7890f4.js';
6
+ import './index-7a08441e.js';
7
7
  import './document-29cc0400.js';
8
8
  import './validate-691c9af1.js';
9
9
  import './isString-1673d591.js';
@@ -9,7 +9,7 @@ import { d as devices } from './device.interface-45f11d19.js';
9
9
  import { c as conditionBlocksConfig, W as WorkflowMode } from './card-video.interface-5de361ba.js';
10
10
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
11
11
  import { e as formatSlides, t as cleanUnusedTranslations, v as updateScoringWithTranslations, w as updateAuditWithTranslations } from './form-creator-helpers-e288d1e2.js';
12
- import { K as resetKey, L as resetFieldTranslations, t as translateAll, M as isAlreadyTranslated, N as addRow, O as onWorkflowStepClicked, P as getWorkflowFieldState } from './index-f25c3fe6.js';
12
+ import { K as resetKey, L as resetFieldTranslations, t as translateAll, M as isAlreadyTranslated, N as addRow, O as onWorkflowStepClicked, P as getWorkflowFieldState } from './index-6f7890f4.js';
13
13
  import { i as isEqual } from './isEqual-17ab50de.js';
14
14
  import { r as remove } from './remove-ecc59e7c.js';
15
15
  import { f as fieldStateOptions } from './index-d2e5da02.js';
@@ -27,7 +27,7 @@ import './isUndefined-11cbe419.js';
27
27
  import './isNumber-5a14c4d5.js';
28
28
  import './get-3cbd3bd6.js';
29
29
  import './_baseGet-b09185bc.js';
30
- import './index-b1a3fcc3.js';
30
+ import './index-7a08441e.js';
31
31
  import './document-29cc0400.js';
32
32
  import './validate-691c9af1.js';
33
33
  import './isString-1673d591.js';
@@ -3,7 +3,7 @@ import { o as TRANSLATABLE_FORM_FIELD_ATTRIBUTES, F as FormFieldType, m as COMPL
3
3
  import { w as debounce, a1 as compact, V as getCurrentLanguage, Y as translateMulti, t as translate, a4 as isObject, bo as closeModal } from './rrule-5a2de9bb.js';
4
4
  import { e as formatSlides, x as getLocaleTranslation, f as findField } from './form-creator-helpers-e288d1e2.js';
5
5
  import { i as isHTML } from './string-helpers-9646d8e3.js';
6
- import { Q as updateLocaleTranslation } from './index-f25c3fe6.js';
6
+ import { Q as updateLocaleTranslation } from './index-6f7890f4.js';
7
7
  import { c as cloneDeep } from './cloneDeep-7e28f486.js';
8
8
  import { i as isEmpty } from './isEmpty-7879f636.js';
9
9
  import { i as isString } from './isString-1673d591.js';
@@ -16,7 +16,7 @@ import './keys-ec469112.js';
16
16
  import './_baseUnary-3e989b0b.js';
17
17
  import './_baseKeys-2fda8200.js';
18
18
  import './_getTag-064e16c4.js';
19
- import './index-b1a3fcc3.js';
19
+ import './index-7a08441e.js';
20
20
  import './document-29cc0400.js';
21
21
  import './validate-691c9af1.js';
22
22
  import './form-helpers-1b9c9641.js';
@@ -404,18 +404,19 @@ const YooFormCreatorTranslateDialogComponent = class {
404
404
  complexValues === null || complexValues === void 0 ? void 0 : complexValues.forEach((complexValue, complexValueIndex) => {
405
405
  complexValue === null || complexValue === void 0 ? void 0 : complexValue.forEach((multiInputValue, valueIndex) => {
406
406
  if (multiInputValue) {
407
- hasComplexValues = true;
408
407
  const value = isString(multiInputValue) ? multiInputValue : multiInputValue.text;
409
408
  const updatedLocaleTranslations = updateLocaleTranslation(updatedTranslations[`${complexTranslatableAttr}${complexValueIndex}${valueIndex}`], this.updatedTranslations, this.selectedLanguage, value);
410
409
  this.updatedTranslations = updatedLocaleTranslations.translations;
411
410
  if (updatedLocaleTranslations.updatedTranslation) {
412
411
  updatedTranslation = updatedLocaleTranslations.updatedTranslation;
412
+ hasComplexValues = true;
413
413
  }
414
414
  const updatedLocaleTranslationsBase = updateLocaleTranslation(updatedTranslations[`${complexTranslatableAttr}${complexValueIndex}${valueIndex}Base`], this.updatedTranslations, this.baseLanguage, value);
415
415
  this.updatedTranslations = updatedLocaleTranslationsBase.translations;
416
416
  if (updatedLocaleTranslationsBase.updatedTranslation) {
417
417
  isBaseLanguageChange = true;
418
418
  updatedTranslation = updatedLocaleTranslationsBase.updatedTranslation;
419
+ hasComplexValues = true;
419
420
  }
420
421
  }
421
422
  });
@@ -424,7 +425,7 @@ const YooFormCreatorTranslateDialogComponent = class {
424
425
  });
425
426
  SINGLE_ARRAY_TRANSLATABLE_FORM_FIELD_ATTRIBUTES.forEach((singleTranslatableAttr) => {
426
427
  var _a;
427
- if (((_a = selectedField === null || selectedField === void 0 ? void 0 : selectedField[singleTranslatableAttr]) === null || _a === void 0 ? void 0 : _a.length) && hasComplexValues) {
428
+ if (((_a = selectedField[singleTranslatableAttr]) === null || _a === void 0 ? void 0 : _a.length) > 0 && !(singleTranslatableAttr === 'values' && hasComplexValues)) {
428
429
  selectedField[singleTranslatableAttr].forEach((_value, valueIndex) => {
429
430
  const value = isString(_value) ? _value : _value.text;
430
431
  const updatedLocaleTranslations = updateLocaleTranslation(updatedTranslations[`${singleTranslatableAttr}${valueIndex}`], this.updatedTranslations, this.selectedLanguage, value);
@@ -2,13 +2,13 @@ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host
2
2
  import { h as FormCreatorBulkActions, i as FormCreatorOptions, j as CONDITION_TYPES, k as FEEDBACK_SCORING_VALUES, S as ScoringCategory, A as ALL_MOBILE_FORM_FIELDS, l as FormFieldCategory } from './input-bar.interface-4e956599.js';
3
3
  import { c as conditionBlocksConfig } from './card-video.interface-5de361ba.js';
4
4
  import { t as translate, b1 as showAlert, Y as translateMulti, u as isArray, a1 as compact, s as showModal, an as showToast, a3 as isNullOrUndefined } from './rrule-5a2de9bb.js';
5
- import { g as getUUID } from './index-b1a3fcc3.js';
5
+ import { g as getUUID } from './index-7a08441e.js';
6
6
  import { u as updateTranslationKey, c as checkIfKeyIsInPage, r as removeScoringSelectedFields, s as serializeScores, a as setFieldIconAndCategory, f as findField, b as changeSelectedScoring, d as calculateScoringTotal, e as formatSlides, g as checkIfKeyIsInField, h as removeParentCondition, p as populateScoringFields, i as isFieldNameUnique, j as getScoringCategory, k as formatScoringValuePairs, l as findMultiMaxScore, m as getCustomName } from './form-creator-helpers-e288d1e2.js';
7
7
  import './ResizeObserver.es-a8772c31.js';
8
8
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
9
9
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
10
10
  import { N as NON_CONDITION_CATEGORIES, A as ARROW_PAIR } from './index-4fa684b9.js';
11
- import { a as addNewIdsToSlide, s as serializeScoringValuePairs, u as updateSelectedFields, i as isScoring, g as getExpandableBlockReference, r as removeCondition, b as removePageCondtion, c as addNewUnattachedParentConditions, d as deleteFieldAndRemoveConditionReferences, e as duplicateField, f as deleteCondition, h as deleteUnattachedParentConditions, j as findCondition, k as updateCondition, l as setBlockSelection, m as cleanCustomFormFieldSlides, t as translateAll, n as cleanUnattachedParentConditions, o as removeSelectedItems, p as setSelectedScoring, q as getFieldsWithScoring, v as populateFieldsWithScoring, w as setFormFieldIndex, x as getTotalFields, y as setParentConditions, z as updateUnattatchedCondition, A as doesSlidePageHaveItems, B as getNumberOfSequentialFields, C as getDefaultCondition, D as addNewParentCondition, E as createNewIdsForCustomFields, F as getDefaultField, G as checkForFieldAttribute, H as populateMissingValues, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-f25c3fe6.js';
11
+ import { a as addNewIdsToSlide, s as serializeScoringValuePairs, u as updateSelectedFields, i as isScoring, g as getExpandableBlockReference, r as removeCondition, b as removePageCondtion, c as addNewUnattachedParentConditions, d as deleteFieldAndRemoveConditionReferences, e as duplicateField, f as deleteCondition, h as deleteUnattachedParentConditions, j as findCondition, k as updateCondition, l as setBlockSelection, m as cleanCustomFormFieldSlides, t as translateAll, n as cleanUnattachedParentConditions, o as removeSelectedItems, p as setSelectedScoring, q as getFieldsWithScoring, v as populateFieldsWithScoring, w as setFormFieldIndex, x as getTotalFields, y as setParentConditions, z as updateUnattatchedCondition, A as doesSlidePageHaveItems, B as getNumberOfSequentialFields, C as getDefaultCondition, D as addNewParentCondition, E as createNewIdsForCustomFields, F as getDefaultField, G as checkForFieldAttribute, H as populateMissingValues, I as setRestrictionAndFieldConditions, J as setChildFields } from './index-6f7890f4.js';
12
12
  import { c as cloneDeep } from './cloneDeep-7e28f486.js';
13
13
  import { o as orderBy } from './orderBy-c365859b.js';
14
14
  import './document-29cc0400.js';