@yoobic/yobi 7.7.78 → 7.7.82

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 (149) 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 +22 -21
  10. package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +5 -5
  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 +2 -2
  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/entities/card-list/card-list.js +1 -1
  48. package/dist/collection/components/entities/entity/entity.js +19 -18
  49. package/dist/collection/components/form/form-carousel/form-carousel.js +1 -1
  50. package/dist/collection/components/grid/ag-grid/grid-renderers.js +5 -1
  51. package/dist/design-system/design-system.esm.js +1 -1
  52. package/dist/design-system/index.esm.js +1 -1
  53. package/dist/design-system/{p-e4481945.entry.js → p-09c9cf30.entry.js} +2 -2
  54. package/dist/design-system/{p-49d34fa0.entry.js → p-0e9e24dc.entry.js} +1 -1
  55. package/dist/design-system/{p-87d146a4.entry.js → p-1fbf2bdc.entry.js} +1 -1
  56. package/dist/design-system/{p-88639e39.entry.js → p-23ad22ef.entry.js} +1 -1
  57. package/dist/design-system/p-27145597.entry.js +1 -0
  58. package/dist/design-system/{p-0195a944.entry.js → p-28b6f2af.entry.js} +1 -1
  59. package/dist/design-system/{p-931c8de0.entry.js → p-2a056ca7.entry.js} +1 -1
  60. package/dist/design-system/{p-c61d0b98.entry.js → p-2c1dff83.entry.js} +1 -1
  61. package/dist/design-system/{p-a1e6e5c2.entry.js → p-2d6b451c.entry.js} +1 -1
  62. package/dist/design-system/{p-f7afffac.entry.js → p-2ede5c0e.entry.js} +1 -1
  63. package/dist/design-system/{p-0bb29465.entry.js → p-32603f55.entry.js} +1 -1
  64. package/dist/design-system/{p-8c63a863.entry.js → p-34e0ec13.entry.js} +1 -1
  65. package/dist/design-system/{p-19ced087.entry.js → p-466a2e4b.entry.js} +1 -1
  66. package/dist/design-system/{p-efd4983d.js → p-486e9464.js} +1 -1
  67. package/dist/design-system/{p-874c9807.entry.js → p-4e181258.entry.js} +1 -1
  68. package/dist/design-system/p-4ea7e509.js +1 -0
  69. package/dist/design-system/{p-cccb3658.entry.js → p-4f7b5084.entry.js} +1 -1
  70. package/dist/design-system/p-508eaccb.entry.js +1 -0
  71. package/dist/design-system/p-52b2bcbf.js +1 -0
  72. package/dist/design-system/{p-e954f42f.entry.js → p-5d9b02a3.entry.js} +1 -1
  73. package/dist/design-system/{p-3c525d77.entry.js → p-6470e707.entry.js} +1 -1
  74. package/dist/design-system/{p-dcdf128d.entry.js → p-6a6283bb.entry.js} +1 -1
  75. package/dist/design-system/{p-f4eb8b04.entry.js → p-71ce140b.entry.js} +1 -1
  76. package/dist/design-system/{p-b4bf0927.entry.js → p-78e069f3.entry.js} +1 -1
  77. package/dist/design-system/{p-ea80408e.entry.js → p-79fea067.entry.js} +1 -1
  78. package/dist/design-system/{p-0e502a87.entry.js → p-83aa89ad.entry.js} +1 -1
  79. package/dist/design-system/{p-5d67f58e.entry.js → p-85307152.entry.js} +1 -1
  80. package/dist/design-system/{p-9f170821.entry.js → p-8bf049b5.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/design-system/p-fc449c6a.entry.js +1 -0
  96. package/dist/esm/{draggable-dots-helpers-c77468b6.js → draggable-dots-helpers-64c79f38.js} +1 -1
  97. package/dist/esm/{entities-helpers-5ef12ad3.js → entities-helpers-2876d199.js} +1 -1
  98. package/dist/esm/{grid-renderers-ad52eacd.js → grid-renderers-1dd42472.js} +5 -1
  99. package/dist/esm/{image-helpers-6373847f.js → image-helpers-6b281c05.js} +1 -1
  100. package/dist/esm/{index-f25c3fe6.js → index-6f7890f4.js} +1 -1
  101. package/dist/esm/{index-b1a3fcc3.js → index-7a08441e.js} +1 -1
  102. package/dist/esm/{index-6499210c.js → index-b45a2bdf.js} +1 -1
  103. package/dist/esm/index.js +4 -4
  104. package/dist/esm/yoo-action-sheet-controller_15.entry.js +22 -21
  105. package/dist/esm/yoo-ag-grid_96.entry.js +5 -5
  106. package/dist/esm/yoo-audio-recorder-dialog.entry.js +1 -1
  107. package/dist/esm/yoo-avatar_5.entry.js +2 -2
  108. package/dist/esm/yoo-camera-preview-dialog_7.entry.js +1 -1
  109. package/dist/esm/yoo-card-header.entry.js +2 -2
  110. package/dist/esm/yoo-card-list-image_12.entry.js +4 -4
  111. package/dist/esm/yoo-chat-message_3.entry.js +8 -8
  112. package/dist/esm/yoo-chat.entry.js +14 -23
  113. package/dist/esm/yoo-detail-bar.entry.js +2 -2
  114. package/dist/esm/yoo-feed-detail.entry.js +1 -1
  115. package/dist/esm/yoo-form-choice_4.entry.js +2 -2
  116. package/dist/esm/yoo-form-conditions.entry.js +1 -1
  117. package/dist/esm/yoo-form-connect.entry.js +1 -1
  118. package/dist/esm/yoo-form-creator-block-expandable.entry.js +2 -2
  119. package/dist/esm/yoo-form-creator-block-simple_4.entry.js +3 -3
  120. package/dist/esm/yoo-form-creator-card_2.entry.js +2 -2
  121. package/dist/esm/yoo-form-creator-field-selector_8.entry.js +2 -2
  122. package/dist/esm/yoo-form-creator-translate-dialog.entry.js +2 -2
  123. package/dist/esm/yoo-form-creator.entry.js +2 -2
  124. package/dist/esm/yoo-form-image-tagging-creator.entry.js +2 -2
  125. package/dist/esm/yoo-form-incentive-targets.entry.js +1 -1
  126. package/dist/esm/yoo-form-multi-input.entry.js +1 -1
  127. package/dist/esm/yoo-form-reorder.entry.js +1 -1
  128. package/dist/esm/yoo-form-stripe-card.entry.js +1 -1
  129. package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
  130. package/dist/esm/yoo-form-text-editor.entry.js +2 -2
  131. package/dist/esm/yoo-form-uploader.entry.js +1 -1
  132. package/dist/esm/yoo-input-bar.entry.js +2 -2
  133. package/dist/esm/yoo-location-heading.entry.js +1 -1
  134. package/dist/esm/yoo-podium.entry.js +2 -2
  135. package/dist/esm/yoo-profile-summary.entry.js +1 -1
  136. package/dist/esm/yoo-slides-media.entry.js +2 -2
  137. package/dist/esm/yoo-user-profile.entry.js +2 -2
  138. package/dist/esm/yoo-videoplayer-videojs.entry.js +1 -1
  139. package/dist/esm/yoo-walkthrough.entry.js +2 -2
  140. package/dist/types/components/core/chat/chat.d.ts +1 -1
  141. package/dist/types/components/core/chat-message/chat-message.d.ts +1 -1
  142. package/dist/types/interfaces/ui/card.interface.d.ts +1 -0
  143. package/package.json +1 -1
  144. package/dist/design-system/p-4fcf3997.entry.js +0 -1
  145. package/dist/design-system/p-7f8ddb27.js +0 -1
  146. package/dist/design-system/p-81ceff81.js +0 -1
  147. package/dist/design-system/p-b14fa2a4.entry.js +0 -1
  148. package/dist/design-system/p-de635023.entry.js +0 -1
  149. 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';
@@ -1018,7 +1018,7 @@ const YooEntityComponent = class {
1018
1018
  return null;
1019
1019
  }
1020
1020
  renderCardList(extraClasses) {
1021
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
1021
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
1022
1022
  let entry = {};
1023
1023
  if (this.entityType === 'missions' || (this.entityType === 'missiondatas' && ((_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a.mission) === null || _b === void 0 ? void 0 : _b.type) === 'kanban')) {
1024
1024
  let mission = this.item;
@@ -1296,7 +1296,8 @@ const YooEntityComponent = class {
1296
1296
  avatarFrame: file.imgSrc ? 'rounded-square' : 'square',
1297
1297
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'large',
1298
1298
  allowCustomHtml: true,
1299
- subheadings: this.isAutocompleteSelected() ? null : compact([directory + pipes.fileSize.transform(file.size), (file.highlight || []).join(', ')]) // , //, file.mimeType
1299
+ forceTextHeading: ((_s = file === null || file === void 0 ? void 0 : file.highlight) === null || _s === void 0 ? void 0 : _s.length) > 0,
1300
+ subheadings: this.isAutocompleteSelected() ? null : compact([directory + pipes.fileSize.transform(file.size), ...(file.highlight || [])]) // , //, file.mimeType
1300
1301
  // badges: [{ iconLeft: getIcon(file), cssClass: 'tag small round dark' }]
1301
1302
  };
1302
1303
  }
@@ -1410,15 +1411,15 @@ const YooEntityComponent = class {
1410
1411
  }
1411
1412
  else if (this.entityType === 'language') {
1412
1413
  entry = {
1413
- heading: ((_s = this.item) === null || _s === void 0 ? void 0 : _s._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
1414
- flag: this.host.classList.contains('hide-icon') ? null : ((_t = this.item) === null || _t === void 0 ? void 0 : _t._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
1414
+ heading: ((_t = this.item) === null || _t === void 0 ? void 0 : _t._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
1415
+ flag: this.host.classList.contains('hide-icon') ? null : ((_u = this.item) === null || _u === void 0 ? void 0 : _u._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
1415
1416
  };
1416
1417
  }
1417
1418
  else if (this.entityType === 'waitlistvisit') {
1418
1419
  const visit = this.item;
1419
1420
  const tagElements = getWaitlistVisitTags(visit);
1420
1421
  entry = {
1421
- heading: ((_u = visit.name) === null || _u === void 0 ? void 0 : _u.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1422
+ heading: ((_v = visit.name) === null || _v === void 0 ? void 0 : _v.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1422
1423
  tagElements
1423
1424
  };
1424
1425
  if (!isWeb(this.host)) {
@@ -1433,7 +1434,7 @@ const YooEntityComponent = class {
1433
1434
  else if (this.entityType === 'waitlistcustomer') {
1434
1435
  const customer = this.item;
1435
1436
  entry = {
1436
- heading: ((_v = customer.name) === null || _v === void 0 ? void 0 : _v.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1437
+ heading: ((_w = customer.name) === null || _w === void 0 ? void 0 : _w.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1437
1438
  subheadings: compact([customer.phone, customer.email])
1438
1439
  };
1439
1440
  }
@@ -1536,7 +1537,7 @@ const YooEntityComponent = class {
1536
1537
  subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
1537
1538
  iconText: group.title || group.name || group._id,
1538
1539
  heading: group.title || group.name || group._id,
1539
- imgSrc: (_w = group.icon) === null || _w === void 0 ? void 0 : _w._downloadURL
1540
+ imgSrc: (_x = group.icon) === null || _x === void 0 ? void 0 : _x._downloadURL
1540
1541
  };
1541
1542
  entry.subheadings = group.subheadings || entry.subheadings;
1542
1543
  }
@@ -1546,7 +1547,7 @@ const YooEntityComponent = class {
1546
1547
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
1547
1548
  iconText: tenant.title || tenant.name,
1548
1549
  heading: (tenant.title || tenant.name || '').toUpperCase(),
1549
- imgSrc: (_x = tenant.icon) === null || _x === void 0 ? void 0 : _x._downloadURL,
1550
+ imgSrc: (_y = tenant.icon) === null || _y === void 0 ? void 0 : _y._downloadURL,
1550
1551
  subheadings: this.isAutocompleteSelected() ? null : compact([tenant.description])
1551
1552
  };
1552
1553
  }
@@ -1557,7 +1558,7 @@ const YooEntityComponent = class {
1557
1558
  avatarFrame: 'square',
1558
1559
  iconText: model.title || model.name,
1559
1560
  heading: model.title || model.name,
1560
- imgSrc: ((_y = model.background) === null || _y === void 0 ? void 0 : _y._downloadURL) || model.background,
1561
+ imgSrc: ((_z = model.background) === null || _z === void 0 ? void 0 : _z._downloadURL) || model.background,
1561
1562
  subheadings: this.isAutocompleteSelected() ? null : compact([model.shortDescription])
1562
1563
  };
1563
1564
  }
@@ -1624,7 +1625,7 @@ const YooEntityComponent = class {
1624
1625
  else if (this.entityType === 'violetproducts') {
1625
1626
  const product = this.item;
1626
1627
  let subheadings = [product.description];
1627
- if (((_z = this.item.offers) === null || _z === void 0 ? void 0 : _z.length) && ((_0 = this.item.offers[0].skus) === null || _0 === void 0 ? void 0 : _0.length) && ((_1 = this.item.offers[0].skus[0]) === null || _1 === void 0 ? void 0 : _1.sale_price)) {
1628
+ if (((_0 = this.item.offers) === null || _0 === void 0 ? void 0 : _0.length) && ((_1 = this.item.offers[0].skus) === null || _1 === void 0 ? void 0 : _1.length) && ((_2 = this.item.offers[0].skus[0]) === null || _2 === void 0 ? void 0 : _2.sale_price)) {
1628
1629
  subheadings = [pipes.currency.transform(this.item.offers[0].skus[0].sale_price / 100, false, this.item.offers[0].skus[0].currency, true)];
1629
1630
  }
1630
1631
  if (!product.available) {
@@ -1653,7 +1654,7 @@ const YooEntityComponent = class {
1653
1654
  };
1654
1655
  }
1655
1656
  else if (this.entityType === 'violetbasketitems') {
1656
- const sku = (_2 = this.item) === null || _2 === void 0 ? void 0 : _2.sku;
1657
+ const sku = (_3 = this.item) === null || _3 === void 0 ? void 0 : _3.sku;
1657
1658
  const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
1658
1659
  const subheadings = [pipes.currency.transform(price, false, sku.currency, true)];
1659
1660
  entry = {
@@ -1723,9 +1724,9 @@ const YooEntityComponent = class {
1723
1724
  subheadings: [
1724
1725
  productBatch.product ? productBatch.product.reference : '',
1725
1726
  ...(getSession().user && getSession().user.locationRef === productBatch.locationRef
1726
- ? compact([((_3 = this.extraClass) === null || _3 === void 0 ? void 0 : _3.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1727
+ ? compact([((_4 = this.extraClass) === null || _4 === void 0 ? void 0 : _4.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1727
1728
  : productBatch.location && productBatch.location.title
1728
- ? [productBatch.location.title + ' - ' + (((_4 = productBatch.aisle) === null || _4 === void 0 ? void 0 : _4.title) || '')]
1729
+ ? [productBatch.location.title + ' - ' + (((_5 = productBatch.aisle) === null || _5 === void 0 ? void 0 : _5.title) || '')]
1729
1730
  : [])
1730
1731
  ],
1731
1732
  tags: productBatch.tags,
@@ -1769,7 +1770,7 @@ const YooEntityComponent = class {
1769
1770
  heading: product.title,
1770
1771
  subheadings,
1771
1772
  date: isPresent(this.item.description) ? this.item.description : null,
1772
- imgSrc: ((_5 = product === null || product === void 0 ? void 0 : product.image) === null || _5 === void 0 ? void 0 : _5._downloadURL) ? product.image._downloadURL : null,
1773
+ imgSrc: ((_6 = product === null || product === void 0 ? void 0 : product.image) === null || _6 === void 0 ? void 0 : _6._downloadURL) ? product.image._downloadURL : null,
1773
1774
  avatarFrame: 'square',
1774
1775
  // keep it explicit here to prevent to be overwritten by the autocomplete, with which the card-list is used in combination with, and that changes the size of the avatar to 'small' when only one product is selected
1775
1776
  // this case is described into the form-entity-value-pairs.spec tests
@@ -2053,7 +2054,7 @@ const YooEntityComponent = class {
2053
2054
  avatarFrame: 'square'
2054
2055
  };
2055
2056
  }
2056
- else if (this.entityType !== 'tag' && ((_7 = (_6 = this.customModel) === null || _6 === void 0 ? void 0 : _6.appearance) === null || _7 === void 0 ? void 0 : _7.size)) {
2057
+ else if (this.entityType !== 'tag' && ((_8 = (_7 = this.customModel) === null || _7 === void 0 ? void 0 : _7.appearance) === null || _8 === void 0 ? void 0 : _8.size)) {
2057
2058
  entry = {};
2058
2059
  this.customModel.appearance.forEach((value, key) => {
2059
2060
  if (key === 'displayTypes') {
@@ -2094,7 +2095,7 @@ const YooEntityComponent = class {
2094
2095
  else if (this.entityType === 'tiles') {
2095
2096
  const tile = this.item;
2096
2097
  entry = {
2097
- heading: tile.title || ((_8 = tile.page) === null || _8 === void 0 ? void 0 : _8.name),
2098
+ heading: tile.title || ((_9 = tile.page) === null || _9 === void 0 ? void 0 : _9.name),
2098
2099
  imgSrc: tile.photo,
2099
2100
  icon: tile.icon,
2100
2101
  subheadings: compact([]),
@@ -2205,7 +2206,7 @@ const YooEntityComponent = class {
2205
2206
  !this.isAutocompleteSelected() &&
2206
2207
  !this.hideUIFields &&
2207
2208
  this.customModel &&
2208
- ((_10 = (_9 = this.customModel.formFields) === null || _9 === void 0 ? void 0 : _9.filter((f) => f.showInCard)) === null || _10 === void 0 ? void 0 : _10.length) > 0) {
2209
+ ((_11 = (_10 = this.customModel.formFields) === null || _10 === void 0 ? void 0 : _10.filter((f) => f.showInCard)) === null || _11 === void 0 ? void 0 : _11.length) > 0) {
2209
2210
  entry.uiFields = {
2210
2211
  fields: this.customModel.formFields.filter((f) => f.showInCard),
2211
2212
  data: this.item
@@ -2266,7 +2267,7 @@ const YooEntityComponent = class {
2266
2267
  [extraClasses]: true,
2267
2268
  [this.entityType]: this.entityType !== undefined,
2268
2269
  'form-permission': this.host.classList.contains('form-permission')
2269
- } }, ((_11 = this.inlineActions) === null || _11 === void 0 ? void 0 : _11.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2270
+ } }, ((_12 = this.inlineActions) === null || _12 === void 0 ? void 0 : _12.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2270
2271
  return (h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
2271
2272
  })))));
2272
2273
  }
@@ -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';
@@ -102149,7 +102149,7 @@ const YooCardListComponent = class {
102149
102149
  if (this.entry.isCommentMedia && this.isRenderBadgeOutside) {
102150
102150
  return;
102151
102151
  }
102152
- if (isCloudinaryLink(item) || item.endsWith('.gif')) {
102152
+ if (isCloudinaryLink(item) || item.endsWith('.gif') && !this.entry.forceTextHeading) {
102153
102153
  return this.renderMedia(item);
102154
102154
  }
102155
102155
  else {
@@ -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';