@yoobic/yobi 8.3.0-43 → 8.3.0-46

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 (108) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{entities-helpers-e77cfd61.js → entities-helpers-99fc4a8a.js} +29 -1
  3. package/dist/cjs/{filters-helpers-536b7b88.js → filters-helpers-63712f8d.js} +6 -13
  4. package/dist/cjs/{form-choice-helpers-b2ec494b.js → form-choice-helpers-e28efa04.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/yoo-detail-bar.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +1 -1
  8. package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-entity.cjs.entry.js +47 -70
  10. package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +4 -3
  11. package/dist/cjs/yoo-form-choice-button.cjs.entry.js +1 -1
  12. package/dist/cjs/yoo-form-choice-card.cjs.entry.js +1 -1
  13. package/dist/cjs/yoo-form-choice-chat.cjs.entry.js +1 -1
  14. package/dist/cjs/yoo-form-choice-image.cjs.entry.js +1 -1
  15. package/dist/cjs/yoo-form-choice-radio.cjs.entry.js +1 -1
  16. package/dist/cjs/yoo-form-connect.cjs.entry.js +2 -1
  17. package/dist/cjs/yoo-form-creator-workflow-step.cjs.entry.js +1 -1
  18. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
  19. package/dist/cjs/yoo-form-missionfield.cjs.entry.js +7 -1
  20. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +1 -1
  21. package/dist/cjs/yoo-form-text-editor.cjs.entry.js +64 -46
  22. package/dist/cjs/yoo-form-todo-task-list.cjs.entry.js +1 -2
  23. package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
  24. package/dist/cjs/yoo-input-bar.cjs.entry.js +12948 -12743
  25. package/dist/cjs/yoo-login.cjs.entry.js +1 -1
  26. package/dist/cjs/yoo-scratch-card-creator.cjs.entry.js +1 -3
  27. package/dist/cjs/yoo-section-list.cjs.entry.js +3 -3
  28. package/dist/cjs/yoo-slides-media.cjs.entry.js +1 -1
  29. package/dist/cjs/yoo-user-profile.cjs.entry.js +1 -1
  30. package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +3 -3
  31. package/dist/collection/components/entities/entity/entity.js +47 -70
  32. package/dist/collection/components/form/form-autocomplete/form-autocomplete.js +27 -5
  33. package/dist/collection/components/form/form-choice/form-choice-helpers.js +1 -1
  34. package/dist/collection/components/form/form-connect/form-connect.js +2 -1
  35. package/dist/collection/components/form/form-dynamic/form-dynamic.js +1 -0
  36. package/dist/collection/components/form/form-missionfield/form-missionfield.js +7 -1
  37. package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +1 -1
  38. package/dist/collection/components/form/form-todo-task-list/form-todo-task-list.js +1 -2
  39. package/dist/collection/components/form-creator/scratch-card-creator/scratch-card-creator.js +1 -3
  40. package/dist/collection/feature-learn/learning/section-list/section-list.js +3 -3
  41. package/dist/collection/feature-platform/login/login/login.css +1 -2
  42. package/dist/collection/utils/helpers/entities-helpers.js +29 -2
  43. package/dist/collection/utils/helpers/filters-helpers.js +6 -13
  44. package/dist/design-system/design-system.esm.js +1 -1
  45. package/dist/{esm/entities-helpers-9ea378f0.js → design-system/entities-helpers-67ff3fa4.js} +30 -3
  46. package/dist/{esm/filters-helpers-41224cde.js → design-system/filters-helpers-ded9ed03.js} +6 -13
  47. package/dist/design-system/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
  48. package/dist/design-system/yoo-detail-bar.entry.js +1 -1
  49. package/dist/design-system/yoo-entity-query-builder.entry.js +1 -1
  50. package/dist/design-system/yoo-entity-search-filters.entry.js +1 -1
  51. package/dist/design-system/yoo-entity.entry.js +47 -70
  52. package/dist/design-system/yoo-form-autocomplete.entry.js +4 -3
  53. package/dist/design-system/yoo-form-choice-button.entry.js +1 -1
  54. package/dist/design-system/yoo-form-choice-card.entry.js +1 -1
  55. package/dist/design-system/yoo-form-choice-chat.entry.js +1 -1
  56. package/dist/design-system/yoo-form-choice-image.entry.js +1 -1
  57. package/dist/design-system/yoo-form-choice-radio.entry.js +1 -1
  58. package/dist/design-system/yoo-form-connect.entry.js +2 -1
  59. package/dist/design-system/yoo-form-creator-workflow-step.entry.js +1 -1
  60. package/dist/design-system/yoo-form-dynamic.entry.js +1 -0
  61. package/dist/design-system/yoo-form-missionfield.entry.js +7 -1
  62. package/dist/design-system/yoo-form-swipe-cards.entry.js +1 -1
  63. package/dist/design-system/yoo-form-text-editor.entry.js +64 -46
  64. package/dist/design-system/yoo-form-todo-task-list.entry.js +1 -2
  65. package/dist/design-system/yoo-grid.entry.js +1 -1
  66. package/dist/design-system/yoo-input-bar.entry.js +12948 -12743
  67. package/dist/design-system/yoo-login.entry.js +1 -1
  68. package/dist/design-system/yoo-scratch-card-creator.entry.js +1 -3
  69. package/dist/design-system/yoo-section-list.entry.js +4 -4
  70. package/dist/design-system/yoo-slides-media.entry.js +1 -1
  71. package/dist/design-system/yoo-user-profile.entry.js +1 -1
  72. package/dist/design-system/yoo-videoplayer-videojs.entry.js +3 -3
  73. package/dist/esm/design-system.js +1 -1
  74. package/dist/{design-system/entities-helpers-9ea378f0.js → esm/entities-helpers-67ff3fa4.js} +30 -3
  75. package/dist/{design-system/filters-helpers-41224cde.js → esm/filters-helpers-ded9ed03.js} +6 -13
  76. package/dist/esm/{form-choice-helpers-800a6124.js → form-choice-helpers-b6936c42.js} +1 -1
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/esm/yoo-detail-bar.entry.js +1 -1
  79. package/dist/esm/yoo-entity-query-builder.entry.js +1 -1
  80. package/dist/esm/yoo-entity-search-filters.entry.js +1 -1
  81. package/dist/esm/yoo-entity.entry.js +47 -70
  82. package/dist/esm/yoo-form-autocomplete.entry.js +4 -3
  83. package/dist/esm/yoo-form-choice-button.entry.js +1 -1
  84. package/dist/esm/yoo-form-choice-card.entry.js +1 -1
  85. package/dist/esm/yoo-form-choice-chat.entry.js +1 -1
  86. package/dist/esm/yoo-form-choice-image.entry.js +1 -1
  87. package/dist/esm/yoo-form-choice-radio.entry.js +1 -1
  88. package/dist/esm/yoo-form-connect.entry.js +2 -1
  89. package/dist/esm/yoo-form-creator-workflow-step.entry.js +1 -1
  90. package/dist/esm/yoo-form-dynamic.entry.js +1 -0
  91. package/dist/esm/yoo-form-missionfield.entry.js +7 -1
  92. package/dist/esm/yoo-form-swipe-cards.entry.js +1 -1
  93. package/dist/esm/yoo-form-text-editor.entry.js +64 -46
  94. package/dist/esm/yoo-form-todo-task-list.entry.js +1 -2
  95. package/dist/esm/yoo-grid.entry.js +1 -1
  96. package/dist/esm/yoo-input-bar.entry.js +12948 -12743
  97. package/dist/esm/yoo-login.entry.js +1 -1
  98. package/dist/esm/yoo-scratch-card-creator.entry.js +1 -3
  99. package/dist/esm/yoo-section-list.entry.js +4 -4
  100. package/dist/esm/yoo-slides-media.entry.js +1 -1
  101. package/dist/esm/yoo-user-profile.entry.js +1 -1
  102. package/dist/esm/yoo-videoplayer-videojs.entry.js +3 -3
  103. package/dist/types/components/form/form-autocomplete/form-autocomplete.d.ts +1 -1
  104. package/dist/types/components.d.ts +2 -0
  105. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/custom-app/custom-app.interface.d.ts +10 -3
  106. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/form-field/form-field.interface.d.ts +1 -0
  107. package/dist/types/utils/helpers/entities-helpers.d.ts +1 -0
  108. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { G as isBoolean, a as isNumber } from './lodash-f6e59a8e.js';
4
- import { g as groupsFullResolver } from './entities-helpers-9ea378f0.js';
4
+ import { g as groupsFullResolver } from './entities-helpers-67ff3fa4.js';
5
5
  import { X as isNullOrUndefined, ak as dateFormat, t as translate, Z as translateMulti, at as getLanguageKey } from './overlays-be5a9ab3.js';
6
6
  import './index-e7f48bcb.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host
2
2
  import { c as FormFieldType } from './index-e7f48bcb.js';
3
3
  import './index-c7d02f02.js';
4
4
  import { a9 as sum, c as cloneDeep, R as findIndex, a1 as flatten } from './lodash-f6e59a8e.js';
5
- import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-41224cde.js';
5
+ import { b as filterIsRadio, a as filterIsAutocomplete, k as filterIsSegement, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, f as filterFromFormField, c as filterRenderFormDynamic, m as mapCustomViewToButton } from './filters-helpers-ded9ed03.js';
6
6
  import { aF as isPresent, aN as getUUID, t as translate, A as isWeb, af as showActionSheet, a3 as getSession, cR as getAuthentication } from './overlays-be5a9ab3.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
8
8
 
@@ -3,7 +3,7 @@ import { c as FormFieldType } from './index-e7f48bcb.js';
3
3
  import './index-c7d02f02.js';
4
4
  import { n as compact, q as isString, v as isObject, y as isEmpty, a as isNumber } from './lodash-f6e59a8e.js';
5
5
  import { g as getAppContext } from './common-helpers-0071c2da.js';
6
- import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-41224cde.js';
6
+ import { f as filterFromFormField, a as filterIsAutocomplete, b as filterIsRadio, c as filterRenderFormDynamic, d as filterIsAutocompleteLocal, e as filterIsBoolean, g as filterIsDate, h as filterIsText, i as filterIsNumber, j as filterCleanupNewField } from './filters-helpers-ded9ed03.js';
7
7
  import { t as translate, X as isNullOrUndefined, Z as translateMulti } from './overlays-be5a9ab3.js';
8
8
  import './_commonjsHelpers-f4d11124.js';
9
9
 
@@ -7,7 +7,7 @@ import { e as getCampaignStateTags, f as getCampaignTemplateTags, h as getMissio
7
7
  import { f as getMissionStateTags, h as getMissionUniqueKey, g as getMissionAddress, m as mapMissionToCardInboxEntry } from './missions-helpers-49627b36.js';
8
8
  import { g as getButton } from './button.factory-6c7aab55.js';
9
9
  import { v as getNotificationIcon, h as execHandlerAndStopEvent, g as getAppContext } from './common-helpers-0071c2da.js';
10
- import { a as getCalendarCourseDueDate, p as parseEntityForCardChat, o as onUserClick, b as getFolderIcon, c as parseEntityCommentsForCardList, d as parseEntityForCardMedia } from './entities-helpers-9ea378f0.js';
10
+ import { a as getCalendarCourseDueDate, p as parseEntityForCardChat, o as onUserClick, b as parseFolderForCardList, c as parseEntityCommentsForCardList, d as getFolderIcon, e as parseEntityForCardMedia } from './entities-helpers-67ff3fa4.js';
11
11
  import { c as createThemedClasses } from './theme-331e5466.js';
12
12
  import { a7 as getUserDisplayName, aq as pipes, al as dispatchCustomEvent, t as translate, Z as translateMulti, A as isWeb, eV as getType, z as showModal, a3 as getSession, ey as getEventTypeColor, cR as getAuthentication, ak as dateFormat, eW as replaceTextWithRichContent, eX as getMediaSrcAndType, e as compareAsc, ap as replaceAllLinks, aw as parseMarkDown, eY as getFormatedDate, az as toButton, dU as isPlanInFuture, eZ as getCardFeedEntryFromFeed, e_ as getCampaignConfigsForFeed, e$ as getIncentiveConfigsForFeed, ax as isPhotoEdited, f0 as getCardFeedEntryFromQuestion, dV as groupsResolver, f1 as getEventConfigsFromEvent, f2 as getMediaSrcFromFeed, ag as isVideo, ay as changeExtension, eI as removeTextStyle, f3 as canAccessReadReceipt, f4 as getWorkflowProgress, f5 as getRandomSwatchColor, K as getCssColor, f6 as getCampaignIcon, f7 as getCampaignColor, eJ as isCampaignAnnouncement, eN as getLessonTypeIcon, bH as fromNow, f8 as getUserTags, cc as isMedia, ao as replaceAtTagToMentionTag, au as isCloudinaryLink, av as getCurrentLanguage, P as getAsyncExtraData, f9 as fileHasIcon, d2 as getVideoPoster, fa as getIconName, fb as getIconColor, fc as getLanguageFlag, fd as getDashboardTags, aF as isPresent, f as isSameDate, eE as getEventStatusInfo, fe as getRoleTitle, ff as getMobileFieldIcon, a2 as getPlanDueDate, ai as isImage, fg as isCampaignAnnouncementByUser, bJ as isCampaignActive, fh as getCommunityKpis, eO as mapKpiData, fi as changeHexOpacity } from './overlays-be5a9ab3.js';
13
13
  import './index-1b38d4f3.js';
@@ -810,7 +810,7 @@ const YooEntityComponent = class {
810
810
  return address;
811
811
  }
812
812
  renderCardList(extraClasses) {
813
- 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, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66;
813
+ 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, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64;
814
814
  let entry = {};
815
815
  if (this.entityMapping) {
816
816
  entry = this.entityMapping(this.item, this.entityType, this.displayType);
@@ -1139,31 +1139,8 @@ const YooEntityComponent = class {
1139
1139
  };
1140
1140
  }
1141
1141
  else if (this.entityType === 'folders' || (this.entityType === 'filesFolders' && this.item.fftype === 'folder')) {
1142
- const f = this.item;
1143
1142
  extraClasses += ' folders ';
1144
- const imgSrc = f.imgSrc || ((_4 = f.background) === null || _4 === void 0 ? void 0 : _4._downloadURL);
1145
- entry = {
1146
- heading: f.name,
1147
- imgSrc,
1148
- cloudinaryOptions: isVideo(imgSrc) ? { fallbackToOriginal: true, gif: true, videoEdit: 3 } : null,
1149
- avatarSize: 'large',
1150
- avatarIconSize: this.entityType === 'folders' ? 'extra-large' : 'large',
1151
- avatarFrame: 'transparent-square',
1152
- avatarColor: f.color ? `${f.color}` : getCssColor('app-color-80'),
1153
- icon: getFolderIcon(f),
1154
- tagElements: compact(f.tags).map((t) => ({ innerHTML: t, color: 'stable-light' })),
1155
- subheadings: []
1156
- };
1157
- if (f.stats) {
1158
- entry.subheadings = [
1159
- (((_5 = f.container) === null || _5 === void 0 ? void 0 : _5.name) ? f.container.name + ' ' : '') +
1160
- f.stats
1161
- .map((s) => {
1162
- return '<span>' + translate(s.title) + ': ' + s.value.toString() + '</span>';
1163
- })
1164
- .join()
1165
- ];
1166
- }
1143
+ entry = parseFolderForCardList(this.item, this.entityType);
1167
1144
  }
1168
1145
  else if (this.entityType === 'unsplash') {
1169
1146
  const unsplash = this.item;
@@ -1209,8 +1186,8 @@ const YooEntityComponent = class {
1209
1186
  else if (this.entityType === 'publicAPITokens') {
1210
1187
  const token = this.item;
1211
1188
  entry = {
1212
- heading: (_6 = token === null || token === void 0 ? void 0 : token.user) === null || _6 === void 0 ? void 0 : _6.username,
1213
- subheadings: [(_7 = token === null || token === void 0 ? void 0 : token._tenant) === null || _7 === void 0 ? void 0 : _7.name],
1189
+ heading: (_4 = token === null || token === void 0 ? void 0 : token.user) === null || _4 === void 0 ? void 0 : _4.username,
1190
+ subheadings: [(_5 = token === null || token === void 0 ? void 0 : token._tenant) === null || _5 === void 0 ? void 0 : _5.name],
1214
1191
  users: [token === null || token === void 0 ? void 0 : token.user]
1215
1192
  };
1216
1193
  }
@@ -1251,15 +1228,15 @@ const YooEntityComponent = class {
1251
1228
  }
1252
1229
  else if (this.entityType === 'language') {
1253
1230
  entry = {
1254
- heading: ((_8 = this.item) === null || _8 === void 0 ? void 0 : _8.title) ? translate(this.item.title.toUpperCase()) : ((_9 = this.item) === null || _9 === void 0 ? void 0 : _9._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
1255
- flag: this.host.classList.contains('hide-icon') ? null : ((_10 = this.item) === null || _10 === void 0 ? void 0 : _10._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
1231
+ heading: ((_6 = this.item) === null || _6 === void 0 ? void 0 : _6.title) ? translate(this.item.title.toUpperCase()) : ((_7 = this.item) === null || _7 === void 0 ? void 0 : _7._id) ? translate(this.item._id.toUpperCase()) : translate(this.item.toUpperCase()),
1232
+ flag: this.host.classList.contains('hide-icon') ? null : ((_8 = this.item) === null || _8 === void 0 ? void 0 : _8._id) ? getLanguageFlag(this.item._id) : getLanguageFlag(this.item)
1256
1233
  };
1257
1234
  }
1258
1235
  else if (this.entityType === 'waitlistvisit') {
1259
1236
  const visit = this.item;
1260
1237
  const tagElements = getWaitlistVisitTags(visit);
1261
1238
  entry = {
1262
- heading: ((_11 = visit.name) === null || _11 === void 0 ? void 0 : _11.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1239
+ heading: ((_9 = visit.name) === null || _9 === void 0 ? void 0 : _9.startsWith('NOINFO')) ? translate('NOINFO') : visit.name,
1263
1240
  tagElements
1264
1241
  };
1265
1242
  if (!isWeb(this.host)) {
@@ -1274,7 +1251,7 @@ const YooEntityComponent = class {
1274
1251
  else if (this.entityType === 'waitlistcustomer') {
1275
1252
  const customer = this.item;
1276
1253
  entry = {
1277
- heading: ((_12 = customer.name) === null || _12 === void 0 ? void 0 : _12.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1254
+ heading: ((_10 = customer.name) === null || _10 === void 0 ? void 0 : _10.startsWith('NOINFO')) ? translate('NOINFO') : customer.name,
1278
1255
  subheadings: compact([customer.phone, customer.email])
1279
1256
  };
1280
1257
  }
@@ -1371,7 +1348,7 @@ const YooEntityComponent = class {
1371
1348
  subheadings: this.isAutocompleteSelected() ? null : group.description ? [group.description] : null,
1372
1349
  iconText: group.title || group.name || group._id,
1373
1350
  heading: group.title || group.name || group._id,
1374
- imgSrc: (_13 = group.icon) === null || _13 === void 0 ? void 0 : _13._downloadURL
1351
+ imgSrc: (_11 = group.icon) === null || _11 === void 0 ? void 0 : _11._downloadURL
1375
1352
  };
1376
1353
  entry.subheadings = group.subheadings || entry.subheadings;
1377
1354
  }
@@ -1381,7 +1358,7 @@ const YooEntityComponent = class {
1381
1358
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'medium',
1382
1359
  iconText: tenant.title || tenant.name,
1383
1360
  heading: (tenant.title || tenant.name || '').toUpperCase(),
1384
- imgSrc: (_14 = tenant.icon) === null || _14 === void 0 ? void 0 : _14._downloadURL,
1361
+ imgSrc: (_12 = tenant.icon) === null || _12 === void 0 ? void 0 : _12._downloadURL,
1385
1362
  subheadings: this.isAutocompleteSelected() ? null : compact([tenant.description])
1386
1363
  };
1387
1364
  }
@@ -1392,7 +1369,7 @@ const YooEntityComponent = class {
1392
1369
  avatarFrame: 'square',
1393
1370
  iconText: translateMulti(model.title || model.name),
1394
1371
  heading: translateMulti(model.title || model.name),
1395
- imgSrc: ((_15 = model.background) === null || _15 === void 0 ? void 0 : _15._downloadURL) || model.background,
1372
+ imgSrc: ((_13 = model.background) === null || _13 === void 0 ? void 0 : _13._downloadURL) || model.background,
1396
1373
  subheadings: this.isAutocompleteSelected() ? null : compact([translateMulti(model.shortDescription)])
1397
1374
  };
1398
1375
  }
@@ -1401,10 +1378,10 @@ const YooEntityComponent = class {
1401
1378
  entry = {
1402
1379
  heading: getUserDisplayName(filter.user),
1403
1380
  subheadings: compact([
1404
- ((_16 = filter.locations) === null || _16 === void 0 ? void 0 : _16.length) > 0
1381
+ ((_14 = filter.locations) === null || _14 === void 0 ? void 0 : _14.length) > 0
1405
1382
  ? filter.locations.length.toLocaleString() + ' ' + translate(filter.locations.length > 1 ? 'LOCATIONS' : 'LOCATION')
1406
1383
  : null,
1407
- ((_17 = filter.locationtypes) === null || _17 === void 0 ? void 0 : _17.length) > 0
1384
+ ((_15 = filter.locationtypes) === null || _15 === void 0 ? void 0 : _15.length) > 0
1408
1385
  ? filter.locationtypes.length.toLocaleString() + ' ' + translate(filter.locationtypes.length > 1 ? 'LOCATIONTYPES' : 'LOCATIONTYPE')
1409
1386
  : null
1410
1387
  ]),
@@ -1428,8 +1405,8 @@ const YooEntityComponent = class {
1428
1405
  entry = {
1429
1406
  heading: catalog.title,
1430
1407
  tags: this.isAutocompleteSelected() ? null : groupsResolver(catalog.group),
1431
- icon: ((_18 = catalog.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'catalogue',
1432
- imgSrc: ((_19 = catalog.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? catalog.image._downloadURL : null,
1408
+ icon: ((_16 = catalog.image) === null || _16 === void 0 ? void 0 : _16._downloadURL) ? null : 'catalogue',
1409
+ imgSrc: ((_17 = catalog.image) === null || _17 === void 0 ? void 0 : _17._downloadURL) ? catalog.image._downloadURL : null,
1433
1410
  avatarSize: this.isAutocompleteSelected() ? 'small' : 'large'
1434
1411
  };
1435
1412
  }
@@ -1449,8 +1426,8 @@ const YooEntityComponent = class {
1449
1426
  ],
1450
1427
  tagElements: product.outofstock ? [{ innerHTML: translate('OUTOFSTOCK'), color: 'danger' }] : null,
1451
1428
  tags: this.isAutocompleteSelected() || isWeb(this.host) ? null : product.tags,
1452
- icon: ((_20 = product.image) === null || _20 === void 0 ? void 0 : _20._downloadURL) ? null : 'photo-library',
1453
- imgSrc: ((_21 = product.image) === null || _21 === void 0 ? void 0 : _21._downloadURL) ? product.image._downloadURL : null,
1429
+ icon: ((_18 = product.image) === null || _18 === void 0 ? void 0 : _18._downloadURL) ? null : 'photo-library',
1430
+ imgSrc: ((_19 = product.image) === null || _19 === void 0 ? void 0 : _19._downloadURL) ? product.image._downloadURL : null,
1454
1431
  avatarSize: this.isHistory || this.host.classList.contains('simple') ? 'large' : this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-large',
1455
1432
  avatarFrame: 'square',
1456
1433
  allowCustomHtml: true
@@ -1459,7 +1436,7 @@ const YooEntityComponent = class {
1459
1436
  else if (this.entityType === 'violetproducts') {
1460
1437
  const product = this.item;
1461
1438
  let subheadings = [product.description];
1462
- if (((_22 = this.item.offers) === null || _22 === void 0 ? void 0 : _22.length) && ((_23 = this.item.offers[0].skus) === null || _23 === void 0 ? void 0 : _23.length) && ((_24 = this.item.offers[0].skus[0]) === null || _24 === void 0 ? void 0 : _24.sale_price)) {
1439
+ if (((_20 = this.item.offers) === null || _20 === void 0 ? void 0 : _20.length) && ((_21 = this.item.offers[0].skus) === null || _21 === void 0 ? void 0 : _21.length) && ((_22 = this.item.offers[0].skus[0]) === null || _22 === void 0 ? void 0 : _22.sale_price)) {
1463
1440
  subheadings = [pipes.currency.transform(this.item.offers[0].skus[0].sale_price / 100, { strictPrecision: false, customSymbol: this.item.offers[0].skus[0].currency, forceSymbol: true })];
1464
1441
  }
1465
1442
  if (!product.available) {
@@ -1487,7 +1464,7 @@ const YooEntityComponent = class {
1487
1464
  };
1488
1465
  }
1489
1466
  else if (this.entityType === 'violetbasketitems') {
1490
- const sku = (_25 = this.item) === null || _25 === void 0 ? void 0 : _25.sku;
1467
+ const sku = (_23 = this.item) === null || _23 === void 0 ? void 0 : _23.sku;
1491
1468
  const price = (sku.sale_price * (this.item.quantity || 1)) / 100;
1492
1469
  const subheadings = [pipes.currency.transform(price, { strictPrecision: false, customSymbol: sku.currency, forceSymbol: true })];
1493
1470
  entry = {
@@ -1529,11 +1506,11 @@ const YooEntityComponent = class {
1529
1506
  entry = {
1530
1507
  heading: arModel.product ? arModel.product.title : 'YOOBICNA',
1531
1508
  tagElements: arModel.experience ? [{ innerHTML: translate((arModel.experience.mode || 'object').toUpperCase()), color: 'dark' }] : null,
1532
- topLeftBadge: ((_26 = arModel.photos) === null || _26 === void 0 ? void 0 : _26.length) > 0 ? arModel.photos.length.toLocaleString() : null,
1509
+ topLeftBadge: ((_24 = arModel.photos) === null || _24 === void 0 ? void 0 : _24.length) > 0 ? arModel.photos.length.toLocaleString() : null,
1533
1510
  subheadings: [arModel.product ? arModel.product.reference : '', arModel.rating ? translate('RATING') + ' ' + arModel.rating.toLocaleString() : null],
1534
1511
  tags: arModel.experience ? [arModel.experience.name] : null,
1535
- icon: ((_28 = (_27 = arModel.product) === null || _27 === void 0 ? void 0 : _27.image) === null || _28 === void 0 ? void 0 : _28._downloadURL) ? null : 'photo-library',
1536
- imgSrc: ((_30 = (_29 = arModel.product) === null || _29 === void 0 ? void 0 : _29.image) === null || _30 === void 0 ? void 0 : _30._downloadURL) ? arModel.product.image._downloadURL : null
1512
+ icon: ((_26 = (_25 = arModel.product) === null || _25 === void 0 ? void 0 : _25.image) === null || _26 === void 0 ? void 0 : _26._downloadURL) ? null : 'photo-library',
1513
+ imgSrc: ((_28 = (_27 = arModel.product) === null || _27 === void 0 ? void 0 : _27.image) === null || _28 === void 0 ? void 0 : _28._downloadURL) ? arModel.product.image._downloadURL : null
1537
1514
  };
1538
1515
  }
1539
1516
  else if (this.entityType === 'algorithm') {
@@ -1556,14 +1533,14 @@ const YooEntityComponent = class {
1556
1533
  subheadings: [
1557
1534
  productBatch.product ? productBatch.product.reference : '',
1558
1535
  ...(getSession().user && getSession().user.locationRef === productBatch.locationRef
1559
- ? compact([((_31 = this.extraClass) === null || _31 === void 0 ? void 0 : _31.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1560
- : ((_32 = productBatch.location) === null || _32 === void 0 ? void 0 : _32.title)
1561
- ? [productBatch.location.title + ' - ' + (((_33 = productBatch.aisle) === null || _33 === void 0 ? void 0 : _33.title) || '')]
1536
+ ? compact([((_29 = this.extraClass) === null || _29 === void 0 ? void 0 : _29.indexOf('show-aisle')) >= 0 && productBatch.aisle ? productBatch.aisle.title : null])
1537
+ : ((_30 = productBatch.location) === null || _30 === void 0 ? void 0 : _30.title)
1538
+ ? [productBatch.location.title + ' - ' + (((_31 = productBatch.aisle) === null || _31 === void 0 ? void 0 : _31.title) || '')]
1562
1539
  : [])
1563
1540
  ],
1564
1541
  tags: productBatch.tags,
1565
- icon: productBatch.product.image && ((_35 = (_34 = productBatch.product) === null || _34 === void 0 ? void 0 : _34.image) === null || _35 === void 0 ? void 0 : _35._downloadURL) ? null : 'photo-library',
1566
- imgSrc: ((_37 = (_36 = productBatch.product) === null || _36 === void 0 ? void 0 : _36.image) === null || _37 === void 0 ? void 0 : _37._downloadURL) ? productBatch.product.image._downloadURL : null
1542
+ icon: productBatch.product.image && ((_33 = (_32 = productBatch.product) === null || _32 === void 0 ? void 0 : _32.image) === null || _33 === void 0 ? void 0 : _33._downloadURL) ? null : 'photo-library',
1543
+ imgSrc: ((_35 = (_34 = productBatch.product) === null || _34 === void 0 ? void 0 : _34.image) === null || _35 === void 0 ? void 0 : _35._downloadURL) ? productBatch.product.image._downloadURL : null
1567
1544
  };
1568
1545
  if (productBatch.archived) {
1569
1546
  extraClasses += ' archived ';
@@ -1600,7 +1577,7 @@ const YooEntityComponent = class {
1600
1577
  heading: product.title,
1601
1578
  subheadings,
1602
1579
  date: isPresent(this.item.description) ? this.item.description : null,
1603
- imgSrc: ((_38 = product === null || product === void 0 ? void 0 : product.image) === null || _38 === void 0 ? void 0 : _38._downloadURL) ? product.image._downloadURL : null,
1580
+ imgSrc: ((_36 = product === null || product === void 0 ? void 0 : product.image) === null || _36 === void 0 ? void 0 : _36._downloadURL) ? product.image._downloadURL : null,
1604
1581
  avatarFrame: 'square',
1605
1582
  // 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
1606
1583
  // this case is described into the form-entity-value-pairs.spec tests
@@ -1786,10 +1763,10 @@ const YooEntityComponent = class {
1786
1763
  else if (this.entityType === 'topusers') {
1787
1764
  entry = {
1788
1765
  heading: `${this.item.firstName} ${this.item.lastName}`,
1789
- rank: (_39 = this.item) === null || _39 === void 0 ? void 0 : _39.rank,
1766
+ rank: (_37 = this.item) === null || _37 === void 0 ? void 0 : _37.rank,
1790
1767
  points: null,
1791
1768
  users: [this.item],
1792
- tagElementsInHeader: { tags: (_40 = this.item) === null || _40 === void 0 ? void 0 : _40.tagElements, location: 'end' }
1769
+ tagElementsInHeader: { tags: (_38 = this.item) === null || _38 === void 0 ? void 0 : _38.tagElements, location: 'end' }
1793
1770
  };
1794
1771
  }
1795
1772
  else if (this.entityType === 'questions') {
@@ -1854,17 +1831,17 @@ const YooEntityComponent = class {
1854
1831
  subheadings: [
1855
1832
  'Operation Id: ' + op.operationId,
1856
1833
  'Request Id: ' + op.requestId,
1857
- ((_41 = op.operation) === null || _41 === void 0 ? void 0 : _41.accessToken) ? 'User:' + getUserDisplayName(op.operation.accessToken) : null,
1858
- ((_44 = (_43 = (_42 = op.requestLog) === null || _42 === void 0 ? void 0 : _42.meta) === null || _43 === void 0 ? void 0 : _43.req) === null || _44 === void 0 ? void 0 : _44.headers) ? 'Origin/Referer:' + op.requestLog.meta.req.headers.origin || op.requestLog.meta.req.headers.referer : null,
1859
- ((_47 = (_46 = (_45 = op.requestLog) === null || _45 === void 0 ? void 0 : _45.meta) === null || _46 === void 0 ? void 0 : _46.req) === null || _47 === void 0 ? void 0 : _47.headers) && op.requestLog.meta.req.headers['yoobic-client-version']
1834
+ ((_39 = op.operation) === null || _39 === void 0 ? void 0 : _39.accessToken) ? 'User:' + getUserDisplayName(op.operation.accessToken) : null,
1835
+ ((_42 = (_41 = (_40 = op.requestLog) === null || _40 === void 0 ? void 0 : _40.meta) === null || _41 === void 0 ? void 0 : _41.req) === null || _42 === void 0 ? void 0 : _42.headers) ? 'Origin/Referer:' + op.requestLog.meta.req.headers.origin || op.requestLog.meta.req.headers.referer : null,
1836
+ ((_45 = (_44 = (_43 = op.requestLog) === null || _43 === void 0 ? void 0 : _43.meta) === null || _44 === void 0 ? void 0 : _44.req) === null || _45 === void 0 ? void 0 : _45.headers) && op.requestLog.meta.req.headers['yoobic-client-version']
1860
1837
  ? 'Client Version:' + op.requestLog.meta.req.headers['yoobic-client-version']
1861
1838
  : null,
1862
- ((_50 = (_49 = (_48 = op.requestLog) === null || _48 === void 0 ? void 0 : _48.meta) === null || _49 === void 0 ? void 0 : _49.req) === null || _50 === void 0 ? void 0 : _50.headers) && op.requestLog.meta.req.headers['user-agent']
1839
+ ((_48 = (_47 = (_46 = op.requestLog) === null || _46 === void 0 ? void 0 : _46.meta) === null || _47 === void 0 ? void 0 : _47.req) === null || _48 === void 0 ? void 0 : _48.headers) && op.requestLog.meta.req.headers['user-agent']
1863
1840
  ? 'User Agent:' + op.requestLog.meta.req.headers['user-agent']
1864
1841
  : null
1865
1842
  ],
1866
1843
  date: pipes.dateFormat.transform(op._ect, 'L LT'),
1867
- users: ((_51 = op.operation) === null || _51 === void 0 ? void 0 : _51.accessToken) ? [op.operation.accessToken] : null,
1844
+ users: ((_49 = op.operation) === null || _49 === void 0 ? void 0 : _49.accessToken) ? [op.operation.accessToken] : null,
1868
1845
  tagElements: compact([
1869
1846
  op.isCreation
1870
1847
  ? {
@@ -1918,12 +1895,12 @@ const YooEntityComponent = class {
1918
1895
  entry = {
1919
1896
  heading: translateMulti(battleList.title),
1920
1897
  subheadings: [lessonsCount + ' ' + translate(lessonsCount > 1 ? 'LESSONS' : 'LESSON')],
1921
- imgSrc: ((_52 = battleList.background) === null || _52 === void 0 ? void 0 : _52._downloadURL) ? battleList.background._downloadURL : null,
1898
+ imgSrc: ((_50 = battleList.background) === null || _50 === void 0 ? void 0 : _50._downloadURL) ? battleList.background._downloadURL : null,
1922
1899
  avatarSize: this.isAutocompleteSelected() && this.item.avatarSize ? this.item.avatarSize : 'extra-extra-large',
1923
1900
  avatarFrame: 'square'
1924
1901
  };
1925
1902
  }
1926
- else if (this.entityType !== 'tag' && ((_54 = (_53 = this.customModel) === null || _53 === void 0 ? void 0 : _53.appearance) === null || _54 === void 0 ? void 0 : _54.size)) {
1903
+ else if (this.entityType !== 'tag' && ((_52 = (_51 = this.customModel) === null || _51 === void 0 ? void 0 : _51.appearance) === null || _52 === void 0 ? void 0 : _52.size)) {
1927
1904
  entry = {};
1928
1905
  this.customModel.appearance.forEach((value, key) => {
1929
1906
  if (key === 'displayTypes') {
@@ -1964,7 +1941,7 @@ const YooEntityComponent = class {
1964
1941
  else if (this.entityType === 'widgets') {
1965
1942
  const widget = this.item;
1966
1943
  entry = {
1967
- heading: widget.title || ((_55 = widget.page) === null || _55 === void 0 ? void 0 : _55.path),
1944
+ heading: widget.title || ((_53 = widget.page) === null || _53 === void 0 ? void 0 : _53.path),
1968
1945
  imgSrc: widget.photo,
1969
1946
  icon: widget.icon,
1970
1947
  subheadings: compact([]),
@@ -2041,16 +2018,16 @@ const YooEntityComponent = class {
2041
2018
  }
2042
2019
  const title = this.useTranslate ? defaultTitle.toUpperCase() : defaultTitle;
2043
2020
  entry.heading = translateMulti(title);
2044
- if ((_56 = this.item) === null || _56 === void 0 ? void 0 : _56.description) {
2021
+ if ((_54 = this.item) === null || _54 === void 0 ? void 0 : _54.description) {
2045
2022
  entry.subheadings = [translateMulti(this.item.description)];
2046
2023
  }
2047
- if ((_58 = (_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) === null || _58 === void 0 ? void 0 : _58._downloadURL) {
2024
+ if ((_56 = (_55 = this.item) === null || _55 === void 0 ? void 0 : _55.background) === null || _56 === void 0 ? void 0 : _56._downloadURL) {
2048
2025
  entry.imgSrc = this.item.background._downloadURL;
2049
2026
  }
2050
- else if (((_59 = this.item) === null || _59 === void 0 ? void 0 : _59.background) && isString(this.item.background)) {
2027
+ else if (((_57 = this.item) === null || _57 === void 0 ? void 0 : _57.background) && isString(this.item.background)) {
2051
2028
  entry.imgSrc = this.item.background;
2052
2029
  }
2053
- if ((_61 = (_60 = this.item) === null || _60 === void 0 ? void 0 : _60.icon) === null || _61 === void 0 ? void 0 : _61._downloadURL) {
2030
+ if ((_59 = (_58 = this.item) === null || _58 === void 0 ? void 0 : _58.icon) === null || _59 === void 0 ? void 0 : _59._downloadURL) {
2054
2031
  entry.imgSrc = this.item.icon._downloadURL;
2055
2032
  }
2056
2033
  else if (this.item && isString(this.item.icon)) {
@@ -2074,7 +2051,7 @@ const YooEntityComponent = class {
2074
2051
  const comment = this.item;
2075
2052
  entry = parseEntityCommentsForCardList(comment);
2076
2053
  }
2077
- if ((_62 = this.item) === null || _62 === void 0 ? void 0 : _62.badge) {
2054
+ if ((_60 = this.item) === null || _60 === void 0 ? void 0 : _60.badge) {
2078
2055
  entry.tagElements = [{ innerHTML: this.item.badge, color: 'app-color' }];
2079
2056
  }
2080
2057
  }
@@ -2083,7 +2060,7 @@ const YooEntityComponent = class {
2083
2060
  !this.isAutocompleteSelected() &&
2084
2061
  !this.hideUIFields &&
2085
2062
  this.customModel &&
2086
- ((_64 = (_63 = this.customModel.formFields) === null || _63 === void 0 ? void 0 : _63.filter((f) => f.showInCard)) === null || _64 === void 0 ? void 0 : _64.length) > 0) {
2063
+ ((_62 = (_61 = this.customModel.formFields) === null || _61 === void 0 ? void 0 : _61.filter((f) => f.showInCard)) === null || _62 === void 0 ? void 0 : _62.length) > 0) {
2087
2064
  entry.uiFields = {
2088
2065
  fields: this.customModel.formFields.filter((f) => f.showInCard),
2089
2066
  data: this.item
@@ -2125,7 +2102,7 @@ const YooEntityComponent = class {
2125
2102
  if (this.host.classList.contains('full-width')) {
2126
2103
  extraClasses += ' full-width ';
2127
2104
  }
2128
- if (((_65 = this.item) === null || _65 === void 0 ? void 0 : _65._id) === getSession().userId) {
2105
+ if (((_63 = this.item) === null || _63 === void 0 ? void 0 : _63._id) === getSession().userId) {
2129
2106
  extraClasses += ' current ';
2130
2107
  }
2131
2108
  if (this.extraClass) {
@@ -2154,7 +2131,7 @@ const YooEntityComponent = class {
2154
2131
  [extraClasses]: true,
2155
2132
  [this.entityType]: this.entityType !== undefined,
2156
2133
  'form-permission': this.host.classList.contains('form-permission')
2157
- } }, ((_66 = this.inlineActions) === null || _66 === void 0 ? void 0 : _66.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2134
+ } }, ((_64 = this.inlineActions) === null || _64 === void 0 ? void 0 : _64.length) > 0 && (h("span", { class: "slot-container", slot: "content-slot" }, this.inlineActions.map((action) => {
2158
2135
  return (h("span", { class: action.cssClass, onClick: () => (action.handler ? action.handler(this.item) : null) }, action.text));
2159
2136
  })))));
2160
2137
  }
@@ -474,7 +474,9 @@ const YooFormAutocompleteComponent = class {
474
474
  }
475
475
  async refreshValues() {
476
476
  await this.resetCurrentPage();
477
- this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
477
+ if (!this.isLocal) {
478
+ this.fetchData.emit({ search: this.searchText, appendData: false, currentPage: this.currentPage, pageSize: this.pageSize, tmpValues: this.values, fieldValue: this.value });
479
+ }
478
480
  }
479
481
  async onInputContainerClicked() {
480
482
  this.host.classList.add('focused');
@@ -735,8 +737,7 @@ const YooFormAutocompleteComponent = class {
735
737
  }
736
738
  }
737
739
  onFilterRadioToggled(operator) {
738
- this.filterOperator = operator;
739
- this.extraDataChanged.emit(this.filterOperator);
740
+ this.extraDataChanged.emit(operator);
740
741
  }
741
742
  async onFileChanges(ev) {
742
743
  ev.stopPropagation();
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { h as highcharts } from './highcharts-c1be7540.js';
4
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, g as getColor, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-800a6124.js';
4
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, g as getColor, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-b6936c42.js';
5
5
  import { t as translate, Z as translateMulti } from './overlays-be5a9ab3.js';
6
6
  import './lodash-f6e59a8e.js';
7
7
  import './_commonjsHelpers-f4d11124.js';
@@ -1,4 +1,4 @@
1
- export { Y as yoo_form_choice_card } from './form-choice-helpers-800a6124.js';
1
+ export { Y as yoo_form_choice_card } from './form-choice-helpers-b6936c42.js';
2
2
  import './index-c7d02f02.js';
3
3
  import './overlays-be5a9ab3.js';
4
4
  import './lodash-f6e59a8e.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-becca019.js';
2
2
  import { M as MessageType } from './index-e7f48bcb.js';
3
3
  import './index-c7d02f02.js';
4
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-800a6124.js';
4
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, i as isSelected, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-b6936c42.js';
5
5
  import { t as translate, Z as translateMulti } from './overlays-be5a9ab3.js';
6
6
  import './lodash-f6e59a8e.js';
7
7
  import './draggable-tags-helpers-39c6661b.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host, g as getElement } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
3
  import { a as showSlidesMedia } from './common-helpers-0071c2da.js';
4
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, i as isSelected } from './form-choice-helpers-800a6124.js';
4
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, i as isSelected } from './form-choice-helpers-b6936c42.js';
5
5
  import { Z as translateMulti } from './overlays-be5a9ab3.js';
6
6
  import './lodash-f6e59a8e.js';
7
7
  import './draggable-tags-helpers-39c6661b.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, i as createEvent, h, e as Host, g as getElement
2
2
  import './index-c7d02f02.js';
3
3
  import { n as compact, q as isString } from './lodash-f6e59a8e.js';
4
4
  import { a as setValueAndValidateInput } from './form-input-helpers-a792a9ab.js';
5
- import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-800a6124.js';
5
+ import { u as updateValues, a as updateValue, p as prepareChoice, h as hasWarnings, o as onItemSelect, R as ReadonlyCard } from './form-choice-helpers-b6936c42.js';
6
6
  import { t as translate, X as isNullOrUndefined, Z as translateMulti } from './overlays-be5a9ab3.js';
7
7
  import './index-e7f48bcb.js';
8
8
  import './common-helpers-0071c2da.js';
@@ -97,9 +97,10 @@ const YooFormConnectComponent = class {
97
97
  (_a = this.draggableElements) === null || _a === void 0 ? void 0 : _a.forEach(e => this.initDraggableActions(e));
98
98
  }
99
99
  async scrollToRevealGame() {
100
+ var _a;
100
101
  const GAP_PADDING = 8;
101
102
  const scrollElement = this.host.closest('yoo-ion-scroll');
102
- if (scrollElement && this.values.length === 2) {
103
+ if (scrollElement && ((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) === 2) {
103
104
  const setScrollableHeight = () => {
104
105
  const getHeight = (el) => { var _a; return (_a = el === null || el === void 0 ? void 0 : el.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.height; };
105
106
  const formHeight = getHeight(this.host.closest('yoo-form-input-container'));
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, i as createEvent, h, e as Host } from './index-becca019.js';
2
2
  import './index-c7d02f02.js';
3
- import { g as groupsFullResolver } from './entities-helpers-9ea378f0.js';
3
+ import { g as groupsFullResolver } from './entities-helpers-67ff3fa4.js';
4
4
  import { K as getCssColor, t as translate, Z as translateMulti, a7 as getUserDisplayName } from './overlays-be5a9ab3.js';
5
5
  import './lodash-f6e59a8e.js';
6
6
  import './index-e7f48bcb.js';
@@ -3464,6 +3464,7 @@ const YooFormDynamicComponent = class {
3464
3464
  inline: this.isInline(),
3465
3465
  tags: field.tags,
3466
3466
  isFilter: field.type === FormFieldType.filterautocomplete,
3467
+ filterOperator: field.filterOperator,
3467
3468
  forceDisableCustomTags: field.forceDisableCustomTags,
3468
3469
  extraData: this.getExtraData(field, data),
3469
3470
  forceHideSearch: !!field.forceHideSearch,
@@ -143,7 +143,13 @@ const YooFormMissionfieldComponent = class {
143
143
  renderEditable() {
144
144
  var _a, _b, _c, _d, _e;
145
145
  const showFields = this.type === 'missionfield' || this.type === 'datasetfield';
146
- return (h("div", { class: "container" }, !this.hideCampaign && (h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteCampaign = el), multiple: false, value: this.value ? this.value.selectedDescription : null, values: this.customModelValues, entityType: "missiondescriptions", displayType: "card-list", placeholder: this.type === 'datasetfield' ? 'SELECTDATASET' : 'SELECTCAMPAIGN', isLocal: ((_a = this.customModelValues) === null || _a === void 0 ? void 0 : _a.length) >= 0, onFetchData: (ev) => this.onFetchData(ev), onInputChanged: (ev) => this.onInputChanged(ev), onInputBlurred: (ev) => this.onInputBlurred(ev), onInputFocused: (ev) => this.onInputFocused(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex, size: this.size })), !this.hideCampaign && h("div", { class: "spacer" }), h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteSecondary = el), multiple: this.multiple, idAttributeName: this.type === 'missionscore' ? 'title' : 'name', values: showFields ? this.fields : this.scoring, value: this.value && this.type === 'missionscore' ? this.value.scores : this.value ? this.value.fields : null, entityType: showFields ? 'formfield' : 'scoring', placeholder: showFields ? 'SELECTFORMFIELD' : 'SELECTSCORING', displayType: "card-list", disabled: !((_c = (_b = this === null || this === void 0 ? void 0 : this.value) === null || _b === void 0 ? void 0 : _b.selectedDescription) === null || _c === void 0 ? void 0 : _c._id), isLocal: true, expandHeightOnShow: !((_e = (_d = this.host) === null || _d === void 0 ? void 0 : _d.classList) === null || _e === void 0 ? void 0 : _e.contains('inline')), onFetchData: (ev) => {
146
+ const isLocal = ((_a = this.customModelValues) === null || _a === void 0 ? void 0 : _a.length) >= 0;
147
+ return (h("div", { class: "container" }, !this.hideCampaign && (h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteCampaign = el), multiple: false, value: this.value ? this.value.selectedDescription : null, values: this.customModelValues, entityType: "missiondescriptions", displayType: "card-list", placeholder: this.type === 'datasetfield' ? 'SELECTDATASET' : 'SELECTCAMPAIGN', isLocal: isLocal, onFetchData: (ev) => {
148
+ ev.stopPropagation();
149
+ if (!isLocal) {
150
+ this.onFetchData(ev);
151
+ }
152
+ }, onInputChanged: (ev) => this.onInputChanged(ev), onInputBlurred: (ev) => this.onInputBlurred(ev), onInputFocused: (ev) => this.onInputFocused(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex, size: this.size })), !this.hideCampaign && h("div", { class: "spacer" }), h("yoo-form-autocomplete", { ref: (el) => (this.formAutocompleteSecondary = el), multiple: this.multiple, idAttributeName: this.type === 'missionscore' ? 'title' : 'name', values: showFields ? this.fields : this.scoring, value: this.value && this.type === 'missionscore' ? this.value.scores : this.value ? this.value.fields : null, entityType: showFields ? 'formfield' : 'scoring', placeholder: showFields ? 'SELECTFORMFIELD' : 'SELECTSCORING', displayType: "card-list", disabled: !((_c = (_b = this === null || this === void 0 ? void 0 : this.value) === null || _b === void 0 ? void 0 : _b.selectedDescription) === null || _c === void 0 ? void 0 : _c._id), isLocal: true, expandHeightOnShow: !((_e = (_d = this.host) === null || _d === void 0 ? void 0 : _d.classList) === null || _e === void 0 ? void 0 : _e.contains('inline')), onFetchData: (ev) => {
147
153
  ev.stopPropagation();
148
154
  this.onInputSecondaryFetchData(ev);
149
155
  }, onInputChanged: (ev) => this.onInputSecondaryChanged(ev), onValidityChanged: (ev) => this.stopValidityChangeEvent(ev), clearable: true, tabindex: this.inputTabIndex + 1, size: this.size })));
@@ -8,7 +8,7 @@ import { a as setValueAndValidateInput } from './form-input-helpers-a792a9ab.js'
8
8
  import { au as isCloudinaryLink, Q as findParent, aO as Draggable, aN as getUUID, Z as translateMulti, q as gsapTimeline, bO as Power1, aP as gsapTo, bg as getMedia, A as isWeb, t as translate } from './overlays-be5a9ab3.js';
9
9
  import './_commonjsHelpers-f4d11124.js';
10
10
 
11
- const formSwipeCardsCss = ".accent{color:var(--accent, #276ef1);fill:var(--accent, #276ef1)}.app-color{color:var(--app-color, #5a30f4);fill:var(--app-color, #5a30f4)}.danger{color:var(--danger, #d44333);fill:var(--danger, #d44333)}.dark{color:var(--dark, #000000);fill:var(--dark, #000000)}.energized{color:var(--energized, #ffc043);fill:var(--energized, #ffc043)}.info{color:var(--info, #d84c96);fill:var(--info, #d84c96)}.light{color:var(--light, #ffffff);fill:var(--light, #ffffff)}.stable{color:var(--stable, #adadad);fill:var(--stable, #adadad)}.stable-alt{color:var(--stable-alt, #d0d0d0);fill:var(--stable-alt, #d0d0d0)}.stable-light{color:var(--stable-light, #f1f1f1);fill:var(--stable-light, #f1f1f1)}.stable-ultralight{color:var(--stable-ultralight, #fafafa);fill:var(--stable-ultralight, #fafafa)}.success{color:var(--success, #3aa76d);fill:var(--success, #3aa76d)}.text-color{color:var(--text-color, #807f83);fill:var(--text-color, #807f83)}.warning{color:var(--warning, #ed6e33);fill:var(--warning, #ed6e33)}.wood{color:var(--wood, #99644c);fill:var(--wood, #99644c)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.hidden{display:none !important}.flex{display:-ms-flexbox !important;display:flex !important}.block{display:block !important}:host{position:relative;display:block;height:100%}:host yoo-banner{height:0}:host #instructions{height:100%;-webkit-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}:host #instructions #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host #instructions #header #title{font-weight:bold}:host #instructions #categories{display:inline-grid;grid-template-columns:1fr 0.5fr 1fr;width:100%;margin:var(--spacing-24, 1.5rem) 0;text-align:center}:host #instructions #categories .category{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;padding:0;color:var(--stable, #adadad)}:host #instructions #categories .category p{max-width:75%;margin:auto;padding:var(--spacing-16, 1rem) 0;font-weight:bold}:host #instructions #categories .category yoo-tag{margin:0 auto}:host #instructions yoo-button{position:absolute;right:0;bottom:0;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host #instructions #document{background-color:var(--light, #ffffff)}:host #instructions #document .document-title{padding:0 var(--spacing-16, 1rem);font-size:var(--font-size-16, 1rem)}:host #instructions #document yoo-form-document{--outer-container-padding:cssvar(spacing-16) cssvar(spacing-16);width:calc(100% - var(--spacing-16, 1rem))}:host [direction].card{z-index:5;-webkit-transition:-webkit-transform 0.35s !important;transition:-webkit-transform 0.35s !important;transition:transform 0.35s !important;transition:transform 0.35s, -webkit-transform 0.35s !important;-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current .content-category{color:var(--light, #ffffff);opacity:1 !important;-webkit-transition:opacity 0.35s linear;transition:opacity 0.35s linear}:host [direction].card.current.card+.card{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current.card+.card .content-image,:host [direction].card.current.card+.card .content-text{opacity:1 !important}:host [direction].card.current.card+.card+.card{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}:host [direction].card.current.card+.card+.card+.card{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}:host [direction=left]#game,:host [direction=left].current>.content-category{background-color:var(--app-color, #5a30f4) !important}:host [direction=left].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important}:host [direction=right]#game,:host [direction=right].current>.content-category{background-color:var(--warning, #ed6e33) !important}:host [direction=right].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important}:host #game{position:relative;width:100%;background-color:var(--dark, #000000);-webkit-transition:background-color 0.25s ease-in-out;transition:background-color 0.25s ease-in-out}:host #game #end-message{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:calc(100% - 4rem);max-width:25rem;color:var(--light, #ffffff);font-size:var(--font-size-18, 1.125rem);text-align:center;visibility:hidden;opacity:0;-webkit-transition:opacity 0.5s ease-in-out;transition:opacity 0.5s ease-in-out}:host #game #end-message.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #game #end-message yoo-lottie{width:30%;margin:0 auto}:host #game #end-message div{padding:var(--spacing-16, 1rem) 0;font-weight:bold;font-size:var(--font-size-24, 1.5rem)}:host #game #end-message.active{visibility:visible;opacity:1}:host #game:after{display:block;height:0;padding-top:85%;content:\"\"}:host #cards{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:100%;width:65%;max-width:16rem;height:100%;margin-top:var(--spacing-16, 1rem)}:host #cards.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #cards .card{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;max-width:16rem;height:100%;max-height:21.3333333333rem;margin:0 auto;overflow:hidden;color:var(--dark, #000000);font-size:var(--font-size-28, 1.75rem);text-align:center;background-color:var(--stable-light, #f1f1f1);border-radius:var(--border-radius-08, 0.5rem);-webkit-box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));-webkit-transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;will-change:transform, opacity}:host #cards .card:not([direction]){-webkit-transform:translate(0, -5%) scale(0.85);transform:translate(0, -5%) scale(0.85);opacity:0}:host #cards .card.current{z-index:3}:host #cards .card.current:not(.revealing){-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1;-webkit-transition-delay:200ms;transition-delay:200ms}:host #cards .card.current.revealing{-webkit-animation:\"current\" 0.25s ease-in-out;animation:\"current\" 0.25s ease-in-out;-webkit-animation-delay:150ms;animation-delay:150ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}@keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}:host #cards .card.second{z-index:2}:host #cards .card.second:not(.revealing){-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1;-webkit-transition-delay:400ms;transition-delay:400ms}:host #cards .card.second.revealing{-webkit-animation:\"second\" 0.25s ease-in-out;animation:\"second\" 0.25s ease-in-out;-webkit-animation-delay:300ms;animation-delay:300ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}@keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}:host #cards .card.third{z-index:1}:host #cards .card.third:not(.revealing){-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1;-webkit-transition-delay:600ms;transition-delay:600ms}:host #cards .card.third.revealing{-webkit-animation:\"third\" 0.25s ease-in-out;animation:\"third\" 0.25s ease-in-out;-webkit-animation-delay:450ms;animation-delay:450ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}@keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}:host #cards .card.current .content-image,:host #cards .card.current .content-text,:host #cards .card[direction] .content-image,:host #cards .card[direction] .content-text{opacity:1 !important}:host #cards .card[swiped]{-webkit-animation:fade-out 1s ease-out;animation:fade-out 1s ease-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host #cards .card[swiped=left]{-webkit-transform:translate(-100%, 15%) rotate(-15deg);transform:translate(-100%, 15%) rotate(-15deg)}:host #cards .card[swiped=right]{-webkit-transform:translate(100%, 15%) rotate(15deg);transform:translate(100%, 15%) rotate(15deg)}:host #cards .card [class^=content]{position:absolute;width:100%;height:100%;word-break:break-word;opacity:0}:host #cards .card .content-category,:host #cards .card .content-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--spacing-16, 1rem)}:host #cards .card .content-image{-webkit-transition:opacity 0.25s linear;transition:opacity 0.25s linear}:host #cards .card[type=image] yoo-img{height:100%}:host #cards .card[type=textimage] .content-image{top:0;bottom:3.5rem}:host #cards .card[type=textimage] .content-image yoo-img{height:calc(100% - 3.5rem)}:host #cards .card[type=textimage] .content-text,:host #cards .card[type=textimage] .content-category{bottom:0;height:3.5rem}:host #actions{position:absolute;left:50%;z-index:1;display:inline-grid;grid-template-columns:1fr 1fr 1fr;width:100%;max-width:85%;line-height:2.5;-webkit-transform:translate(-50%, 80%);transform:translate(-50%, 80%)}:host #actions .action{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;text-align:center}:host([readonly]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}:host([readonly]) .category-title{margin-bottom:var(--spacing-08, 0.5rem)}:host([readonly]) ul{display:grid;grid-gap:var(--spacing-16, 1rem);grid-template-columns:repeat(auto-fill, 6rem);margin:0;padding-left:0;list-style:none}:host([readonly]) ul+.category-title{margin-top:var(--spacing-16, 1rem)}:host([readonly]) ul li{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;height:8rem;overflow:hidden;border-style:solid;border-width:var(--border-width-01, 0.0625rem);border-radius:var(--border-radius-08, 0.5rem)}:host([readonly]) ul li.invalid{border-color:var(--danger, #d44333)}:host([readonly]) ul li.invalid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--danger-20, rgba(212, 67, 51, 0.2));content:\"\"}:host([readonly]) ul li.invalid yoo-truncate{background:var(--danger, #d44333)}:host([readonly]) ul li.valid{border-color:var(--success, #3aa76d)}:host([readonly]) ul li.valid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--success-20, rgba(58, 167, 109, 0.2));content:\"\"}:host([readonly]) ul li.valid yoo-truncate{background:var(--success, #3aa76d)}:host([readonly]) ul li yoo-img{position:relative;-ms-flex-positive:1;flex-grow:1}:host([readonly]) ul li yoo-truncate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--light, #ffffff);font-size:var(--font-size-14, 0.875rem)}:host([readonly]) ul li yoo-truncate:only-child{--max-lines:4;height:100%;padding:0 var(--spacing-08, 0.5rem)}:host([readonly]) ul li yoo-truncate:not(:only-child){--max-lines:1;height:2.125rem;padding:0 var(--spacing-04, 0.25rem)}:host([animated]) #game{-webkit-animation:show 0.5s ease-in-out forwards;animation:show 0.5s ease-in-out forwards}@-webkit-keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}:host([animated]) .action.hide>*{-webkit-animation:fadeOut 0.75s ease-in-out forwards;animation:fadeOut 0.75s ease-in-out forwards}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}:host([animated]) .action:not(.hide)>*{-webkit-animation:fadeIn 0.75s ease-in-out forwards;animation:fadeIn 0.75s ease-in-out forwards}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}:host([animated]) .action yoo-button{-webkit-transition:-webkit-transform 0.8s linear;transition:-webkit-transform 0.8s linear;transition:transform 0.8s linear;transition:transform 0.8s linear, -webkit-transform 0.8s linear}:host([live-preview]),:host(.mobile){min-height:70vh}:host([live-preview]) #instructions #header,:host(.mobile) #instructions #header{padding:var(--spacing-16, 1rem);background:var(--dark, #000000);border-radius:var(--border-radius-04, 0.25rem)}:host([live-preview]) #instructions #header #title,:host(.mobile) #instructions #header #title{color:var(--light, #ffffff);font-weight:bold;font-size:var(--font-size-28, 1.75rem)}:host([live-preview]) #instructions yoo-button,:host(.mobile) #instructions yoo-button{position:absolute;bottom:0;width:-webkit-fill-available;width:-moz-available;width:stretch}:host(.web:not([live-preview])) #instructions{position:relative}:host(.web:not([live-preview])) #instructions yoo-icon[name=swipe-explanation]{width:5rem;height:5rem;margin:auto;--inner-width:5rem;--inner-height:5rem}:host(.web:not([live-preview])) #instructions yoo-button{position:fixed;right:var(--spacing-32, 2rem);bottom:var(--spacing-16, 1rem);z-index:1;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host(.web:not([live-preview])) #game{height:60%;max-height:21rem}:host(.web:not([live-preview])) #game #cards{top:5%;margin-top:unset;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions{-ms-flex-align:start;align-items:start;max-width:unset;margin-top:2.5%;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions .action:nth-child(2){-ms-flex-item-align:end;align-self:end}:host(.web:not([live-preview])) #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);line-height:1.75;text-align:center;background-color:var(--stable-ultralight, #fafafa)}:host(.web:not([live-preview])) #header #title{color:var(--dark, #000000) !important;font-weight:bold;font-size:var(--font-size-28, 1.75rem)}";
11
+ const formSwipeCardsCss = ".accent{color:var(--accent, #276ef1);fill:var(--accent, #276ef1)}.app-color{color:var(--app-color, #5a30f4);fill:var(--app-color, #5a30f4)}.danger{color:var(--danger, #d44333);fill:var(--danger, #d44333)}.dark{color:var(--dark, #000000);fill:var(--dark, #000000)}.energized{color:var(--energized, #ffc043);fill:var(--energized, #ffc043)}.info{color:var(--info, #d84c96);fill:var(--info, #d84c96)}.light{color:var(--light, #ffffff);fill:var(--light, #ffffff)}.stable{color:var(--stable, #adadad);fill:var(--stable, #adadad)}.stable-alt{color:var(--stable-alt, #d0d0d0);fill:var(--stable-alt, #d0d0d0)}.stable-light{color:var(--stable-light, #f1f1f1);fill:var(--stable-light, #f1f1f1)}.stable-ultralight{color:var(--stable-ultralight, #fafafa);fill:var(--stable-ultralight, #fafafa)}.success{color:var(--success, #3aa76d);fill:var(--success, #3aa76d)}.text-color{color:var(--text-color, #807f83);fill:var(--text-color, #807f83)}.warning{color:var(--warning, #ed6e33);fill:var(--warning, #ed6e33)}.wood{color:var(--wood, #99644c);fill:var(--wood, #99644c)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.hidden{display:none !important}.flex{display:-ms-flexbox !important;display:flex !important}.block{display:block !important}:host{position:relative;display:block;height:100%}:host yoo-banner{height:0}:host #instructions{height:100%;-webkit-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}:host #instructions #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host #instructions #header #title{font-weight:bold}:host #instructions #categories{display:inline-grid;grid-template-columns:1fr 0.5fr 1fr;width:100%;margin:var(--spacing-24, 1.5rem) 0;text-align:center}:host #instructions #categories .category{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;padding:0;color:var(--stable, #adadad)}:host #instructions #categories .category p{max-width:75%;margin:auto;padding:var(--spacing-16, 1rem) 0;font-weight:bold}:host #instructions #categories .category yoo-tag{margin:0 auto}:host #instructions yoo-button{position:absolute;right:0;bottom:0;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host #instructions #document{background-color:var(--light, #ffffff)}:host #instructions #document .document-title{padding:0 var(--spacing-16, 1rem);font-size:var(--font-size-16, 1rem)}:host #instructions #document yoo-form-document{--outer-container-padding:cssvar(spacing-16) cssvar(spacing-16);width:calc(100% - var(--spacing-16, 1rem))}:host [direction].card{z-index:5;-webkit-transition:-webkit-transform 0.35s !important;transition:-webkit-transform 0.35s !important;transition:transform 0.35s !important;transition:transform 0.35s, -webkit-transform 0.35s !important;-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current .content-category{color:var(--light, #ffffff);opacity:1 !important;-webkit-transition:opacity 0.35s linear;transition:opacity 0.35s linear}:host [direction].card.current.card+.card{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host [direction].card.current.card+.card .content-image,:host [direction].card.current.card+.card .content-text{opacity:1 !important}:host [direction].card.current.card+.card+.card{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}:host [direction].card.current.card+.card+.card+.card{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}:host [direction=left]#game,:host [direction=left].current>.content-category{background-color:var(--app-color, #5a30f4) !important}:host [direction=left].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important}:host [direction=right]#game,:host [direction=right].current>.content-category{background-color:var(--warning, #ed6e33) !important}:host [direction=right].current{-webkit-transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(3.5deg) !important}:host #game{position:relative;width:100%;background-color:var(--dark, #000000);-webkit-transition:background-color 0.25s ease-in-out;transition:background-color 0.25s ease-in-out}:host #game #end-message{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:calc(100% - 4rem);max-width:25rem;color:var(--light, #ffffff);font-size:var(--font-size-18, 1.125rem);text-align:center;visibility:hidden;opacity:0;-webkit-transition:opacity 0.5s ease-in-out;transition:opacity 0.5s ease-in-out}:host #game #end-message.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #game #end-message yoo-lottie{width:30%;margin:0 auto}:host #game #end-message div{padding:var(--spacing-16, 1rem) 0;font-weight:bold;font-size:var(--font-size-24, 1.5rem)}:host #game #end-message.active{visibility:visible;opacity:1}:host #game:after{display:block;height:0;padding-top:85%;content:\"\"}:host #cards{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:100%;width:65%;max-width:16rem;height:100%;margin-top:var(--spacing-16, 1rem)}:host #cards.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host #cards .card{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;max-width:16rem;height:100%;max-height:21.3333333333rem;margin:0 auto;overflow:hidden;color:var(--dark, #000000);font-size:var(--font-size-28, 1.75rem);text-align:center;background-color:var(--stable-light, #f1f1f1);border-radius:var(--border-radius-08, 0.5rem);-webkit-box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-05, -0.375rem -0.375rem 0.5rem 0 rgba(0, 0, 0, 0.1));-webkit-transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s;transition:transform 0.25s, opacity 0.25s, background-color 0.25s, -webkit-transform 0.25s;will-change:transform, opacity}:host #cards .card:not([direction]){-webkit-transform:translate(0, -5%) scale(0.85);transform:translate(0, -5%) scale(0.85);opacity:0}:host #cards .card.current{z-index:3}:host #cards .card.current:not(.revealing){-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1;-webkit-transition-delay:200ms;transition-delay:200ms}:host #cards .card.current.revealing{-webkit-animation:\"current\" 0.25s ease-in-out;animation:\"current\" 0.25s ease-in-out;-webkit-animation-delay:150ms;animation-delay:150ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}@keyframes current{to{-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}}:host #cards .card.second{z-index:2}:host #cards .card.second:not(.revealing){-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1;-webkit-transition-delay:400ms;transition-delay:400ms}:host #cards .card.second.revealing{-webkit-animation:\"second\" 0.25s ease-in-out;animation:\"second\" 0.25s ease-in-out;-webkit-animation-delay:300ms;animation-delay:300ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}@keyframes second{to{-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}}:host #cards .card.third{z-index:1}:host #cards .card.third:not(.revealing){-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1;-webkit-transition-delay:600ms;transition-delay:600ms}:host #cards .card.third.revealing{-webkit-animation:\"third\" 0.25s ease-in-out;animation:\"third\" 0.25s ease-in-out;-webkit-animation-delay:450ms;animation-delay:450ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}@keyframes third{to{-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}}:host #cards .card.current .content-image,:host #cards .card.current .content-text,:host #cards .card[direction] .content-image,:host #cards .card[direction] .content-text{opacity:1 !important}:host #cards .card[swiped]{-webkit-animation:fade-out 1s ease-out;animation:fade-out 1s ease-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host #cards .card[swiped=left]{-webkit-transform:translate(-100%, 15%) rotate(-15deg);transform:translate(-100%, 15%) rotate(-15deg)}:host #cards .card[swiped=right]{-webkit-transform:translate(100%, 15%) rotate(15deg);transform:translate(100%, 15%) rotate(15deg)}:host #cards .card [class^=content]{position:absolute;width:100%;height:100%;word-break:break-word;opacity:0}:host #cards .card .content-category,:host #cards .card .content-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--spacing-16, 1rem)}:host #cards .card .content-image{-webkit-transition:opacity 0.25s linear;transition:opacity 0.25s linear}:host #cards .card[type=image] yoo-img{height:100%}:host #cards .card[type=textimage] .content-image{top:0;bottom:3.5rem}:host #cards .card[type=textimage] .content-image yoo-img{height:calc(100% - 3.5rem)}:host #cards .card[type=textimage] .content-text,:host #cards .card[type=textimage] .content-category{bottom:0;height:3.5rem}:host #actions{position:absolute;left:50%;z-index:1;display:inline-grid;grid-template-columns:1fr 1fr 1fr;width:100%;max-width:85%;line-height:2.5;-webkit-transform:translate(-50%, 80%);transform:translate(-50%, 80%)}:host #actions .action{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;text-align:center}:host([readonly]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}:host([readonly]) .category-title{margin-bottom:var(--spacing-08, 0.5rem)}:host([readonly]) ul{display:grid;grid-gap:var(--spacing-16, 1rem);grid-template-columns:repeat(auto-fill, 6rem);margin:0;padding-left:0;list-style:none}:host([readonly]) ul+.category-title{margin-top:var(--spacing-16, 1rem)}:host([readonly]) ul li{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;height:8rem;overflow:hidden;border-style:solid;border-width:var(--border-width-01, 0.0625rem);border-radius:var(--border-radius-08, 0.5rem)}:host([readonly]) ul li.invalid{border-color:var(--danger, #d44333)}:host([readonly]) ul li.invalid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--danger-20, rgba(212, 67, 51, 0.2));content:\"\"}:host([readonly]) ul li.invalid yoo-truncate{background:var(--danger, #d44333)}:host([readonly]) ul li.valid{border-color:var(--success, #3aa76d)}:host([readonly]) ul li.valid yoo-img::before{position:absolute;width:100%;height:100%;background:var(--success-20, rgba(58, 167, 109, 0.2));content:\"\"}:host([readonly]) ul li.valid yoo-truncate{background:var(--success, #3aa76d)}:host([readonly]) ul li yoo-img{position:relative;-ms-flex-positive:1;flex-grow:1}:host([readonly]) ul li yoo-truncate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--light, #ffffff);font-size:var(--font-size-14, 0.875rem)}:host([readonly]) ul li yoo-truncate:only-child{--max-lines:4;height:100%;padding:0 var(--spacing-08, 0.5rem)}:host([readonly]) ul li yoo-truncate:not(:only-child){--max-lines:1;height:2.125rem;padding:0 var(--spacing-04, 0.25rem)}:host([animated]) #game{-webkit-animation:show 0.5s ease-in-out forwards;animation:show 0.5s ease-in-out forwards}@-webkit-keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes show{from{-webkit-transform:scale(0.85);transform:scale(0.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}:host([animated]) .action.hide>*{-webkit-animation:fadeOut 0.75s ease-in-out forwards;animation:fadeOut 0.75s ease-in-out forwards}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}:host([animated]) .action:not(.hide)>*{-webkit-animation:fadeIn 0.75s ease-in-out forwards;animation:fadeIn 0.75s ease-in-out forwards}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}:host([animated]) .action yoo-button{-webkit-transition:-webkit-transform 0.8s linear;transition:-webkit-transform 0.8s linear;transition:transform 0.8s linear;transition:transform 0.8s linear, -webkit-transform 0.8s linear}:host([live-preview]),:host(.mobile){min-height:60vh}:host([live-preview]) #instructions #header,:host(.mobile) #instructions #header{padding:var(--spacing-16, 1rem);background:var(--dark, #000000);border-radius:var(--border-radius-04, 0.25rem)}:host([live-preview]) #instructions #header #title,:host(.mobile) #instructions #header #title{color:var(--light, #ffffff);font-weight:bold;font-size:var(--font-size-28, 1.75rem)}:host([live-preview]) #instructions yoo-button,:host(.mobile) #instructions yoo-button{position:absolute;bottom:0;width:-webkit-fill-available;width:-moz-available;width:stretch}:host(.web:not([live-preview])) #instructions{position:relative}:host(.web:not([live-preview])) #instructions yoo-icon[name=swipe-explanation]{width:5rem;height:5rem;margin:auto;--inner-width:5rem;--inner-height:5rem}:host(.web:not([live-preview])) #instructions yoo-button{position:fixed;right:var(--spacing-32, 2rem);bottom:var(--spacing-16, 1rem);z-index:1;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host(.web:not([live-preview])) #game{height:60%;max-height:21rem}:host(.web:not([live-preview])) #game #cards{top:5%;margin-top:unset;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions{-ms-flex-align:start;align-items:start;max-width:unset;margin-top:2.5%;-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0)}:host(.web:not([live-preview])) #actions .action:nth-child(2){-ms-flex-item-align:end;align-self:end}:host(.web:not([live-preview])) #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);line-height:1.75;text-align:center;background-color:var(--stable-ultralight, #fafafa)}:host(.web:not([live-preview])) #header #title{color:var(--dark, #000000) !important;font-weight:bold;font-size:var(--font-size-28, 1.75rem)}";
12
12
 
13
13
  const YooFormSwipeCardsComponent = class {
14
14
  constructor(hostRef) {