@yoobic/yobi 8.5.5 → 8.5.7

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 (36) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{swiper-ace4b24e.js → swiper-d161724a.js} +1 -1
  4. package/dist/cjs/yoo-audio-player.cjs.entry.js +3 -0
  5. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +4 -3
  6. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +12 -7
  7. package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +4 -0
  8. package/dist/cjs/{yoo-ion-slides-0538e9ad.js → yoo-ion-slides-518bf499.js} +2 -2
  9. package/dist/cjs/yoo-ion-slides.cjs.entry.js +1 -1
  10. package/dist/collection/components/2.molecules/audio-player/audio-player.js +12 -0
  11. package/dist/collection/components/2.molecules/slides/slides.js +1 -1
  12. package/dist/collection/components/form/form-dynamic/form-dynamic.js +5 -4
  13. package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +33 -4
  14. package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +12 -7
  15. package/dist/collection/components/form/form-videoplayer/form-videoplayer.js +13 -0
  16. package/dist/design-system/design-system.esm.js +1 -1
  17. package/dist/{esm/swiper-cf9933dc.js → design-system/swiper-6c4067fb.js} +2 -2
  18. package/dist/design-system/yoo-audio-player.entry.js +3 -0
  19. package/dist/design-system/yoo-form-dynamic.entry.js +5 -4
  20. package/dist/design-system/yoo-form-swipe-cards.entry.js +13 -8
  21. package/dist/design-system/yoo-form-videoplayer.entry.js +4 -0
  22. package/dist/{esm/yoo-ion-slides-6ad13e79.js → design-system/yoo-ion-slides-74300c6b.js} +2 -2
  23. package/dist/design-system/yoo-ion-slides.entry.js +1 -1
  24. package/dist/esm/design-system.js +1 -1
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/{design-system/swiper-cf9933dc.js → esm/swiper-6c4067fb.js} +2 -2
  27. package/dist/esm/yoo-audio-player.entry.js +3 -0
  28. package/dist/esm/yoo-form-dynamic.entry.js +5 -4
  29. package/dist/esm/yoo-form-swipe-cards.entry.js +13 -8
  30. package/dist/esm/yoo-form-videoplayer.entry.js +4 -0
  31. package/dist/{design-system/yoo-ion-slides-6ad13e79.js → esm/yoo-ion-slides-74300c6b.js} +2 -2
  32. package/dist/esm/yoo-ion-slides.entry.js +1 -1
  33. package/dist/types/components/2.molecules/audio-player/audio-player.d.ts +1 -0
  34. package/dist/types/components/form/form-swipe-cards/form-swipe-cards.d.ts +1 -0
  35. package/dist/types/components/form/form-videoplayer/form-videoplayer.d.ts +1 -0
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const yooIonSlides_entry = require('./yoo-ion-slides-0538e9ad.js');
3
+ const yooIonSlides_entry = require('./yoo-ion-slides-518bf499.js');
4
4
  require('./index-9ca0e46c.js');
5
5
  require('./index-8b980e90.js');
6
6
  require('./index-1a51b855.js');
@@ -39,6 +39,9 @@ const YooAudioPlayerComponent = class {
39
39
  onVisibilityChanged() {
40
40
  this.pause();
41
41
  }
42
+ onPauseMedia() {
43
+ this.pause();
44
+ }
42
45
  onSrcChanged() {
43
46
  return this.initPlayer(true);
44
47
  }
@@ -1677,6 +1677,7 @@ const YooFormDynamicComponent = class {
1677
1677
  ev.stopPropagation();
1678
1678
  this.cleanHiddenReadonlyFieldsByInvalidRules();
1679
1679
  this.save.emit(this.currentData);
1680
+ index$1.dispatchCustomEvent('pauseMedia', window);
1680
1681
  }
1681
1682
  onWorflowReject(ev) {
1682
1683
  ev.stopPropagation();
@@ -3077,7 +3078,7 @@ const YooFormDynamicComponent = class {
3077
3078
  this.currentWorkflowStep.type !== 'substep' &&
3078
3079
  this.currentWorkflowStep.actions &&
3079
3080
  ((_a = this.currentWorkflowStep.actions.find((a) => a.type === 'reject')) === null || _a === void 0 ? void 0 : _a.hidden) !== true) {
3080
- const rejectFn = (e) => (this.validity ? this.onWorflowReject(e) : this.focusInvalidField(true));
3081
+ const rejectFn = (e) => (this.onWorflowReject(e)); //this.validity ? this.onWorflowReject(e) : this.focusInvalidField(true));
3081
3082
  let rejectText = 'UNVALIDATED';
3082
3083
  if ((_d = (_c = (_b = this.currentWorkflowStep) === null || _b === void 0 ? void 0 : _b.actions) === null || _c === void 0 ? void 0 : _c.find((a) => a.type === 'reject')) === null || _d === void 0 ? void 0 : _d.text) {
3083
3084
  rejectText = (_e = this.currentWorkflowStep.actions.find((a) => a.type === 'reject')) === null || _e === void 0 ? void 0 : _e.text;
@@ -3096,7 +3097,7 @@ const YooFormDynamicComponent = class {
3096
3097
  this.currentWorkflowStep.actions &&
3097
3098
  ((_f = this.currentWorkflowStep.actions.find((a) => a.type === 'sendback')) === null || _f === void 0 ? void 0 : _f.hidden) !== true) {
3098
3099
  let sendbackText = 'SENDBACK';
3099
- const sendbackFn = (e) => (this.validity ? this.onWorkflowSendBack(e) : this.focusInvalidField(true));
3100
+ const sendbackFn = (e) => (this.onWorkflowSendBack(e)); //this.validity ? this.onWorkflowSendBack(e): this.focusInvalidField(true));
3100
3101
  if ((_j = (_h = (_g = this.currentWorkflowStep) === null || _g === void 0 ? void 0 : _g.actions) === null || _h === void 0 ? void 0 : _h.find((a) => a.type === 'sendback')) === null || _j === void 0 ? void 0 : _j.text) {
3101
3102
  sendbackText = (_k = this.currentWorkflowStep.actions.find((a) => a.type === 'sendback')) === null || _k === void 0 ? void 0 : _k.text;
3102
3103
  }
@@ -3114,7 +3115,7 @@ const YooFormDynamicComponent = class {
3114
3115
  this.currentWorkflowStep.actions &&
3115
3116
  ((_l = this.currentWorkflowStep.actions.find((a) => a.type === 'reassign')) === null || _l === void 0 ? void 0 : _l.hidden) !== true) {
3116
3117
  let reassignText = 'REASSIGN';
3117
- const reassignFn = (e) => (this.validity ? this.onWorkflowReassign(e) : this.focusInvalidField(true));
3118
+ const reassignFn = (e) => (this.onWorkflowReassign(e)); //this.validity ? this.onWorkflowReassign(e) : this.focusInvalidField(true));
3118
3119
  if ((_p = (_o = (_m = this.currentWorkflowStep) === null || _m === void 0 ? void 0 : _m.actions) === null || _o === void 0 ? void 0 : _o.find((a) => a.type === 'reassign')) === null || _p === void 0 ? void 0 : _p.text) {
3119
3120
  reassignText = (_q = this.currentWorkflowStep.actions.find((a) => a.type === 'reassign')) === null || _q === void 0 ? void 0 : _q.text;
3120
3121
  }
@@ -12,7 +12,7 @@ const formInputHelpers = require('./form-input-helpers-ea11b6a7.js');
12
12
  const index$2 = require('./index-1a51b855.js');
13
13
  require('./_commonjsHelpers-94df2ea7.js');
14
14
 
15
- const formSwipeCardsCss = "svg:not(:root){overflow:hidden}:host(:not([readonly])) .card{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;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;aspect-ratio:0.75}:host(:not([readonly])) .card:not([direction]){-webkit-transform:translate(0, -5%) scale(0.85);transform:translate(0, -5%) scale(0.85);opacity:0}:host(:not([readonly])) .card.current{z-index:3}:host(:not([readonly])) .card.current:not(.revealing){-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host(:not([readonly])) .card.second{z-index:2}:host(:not([readonly])) .card.second:not(.revealing){-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}:host(:not([readonly])) .card.third{z-index:1}:host(:not([readonly])) .card.third:not(.revealing){-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}:host(:not([readonly])) .card.current [class^=content],:host(:not([readonly])) .card.current [class^=content]::after{-webkit-transition:color 0.5s, background-color 0.5s ease-in-out, opacity 0.5s ease-in-out;transition:color 0.5s, background-color 0.5s ease-in-out, opacity 0.5s ease-in-out}:host(:not([readonly])) .card.current [class^=content]::after{position:absolute;top:0;left:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;color:var(--light, #ffffff);opacity:0;content:attr(data-category)}:host(:not([readonly])) .card.current .content-image,:host(:not([readonly])) .card.current .content-text,:host(:not([readonly])) .card[direction] .content-image,:host(:not([readonly])) .card[direction] .content-text{opacity:1 !important}:host(:not([readonly])) .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(:not([readonly])) .card[swiped=left]{-webkit-transform:translate(-100%, 15%) rotate(-15deg);transform:translate(-100%, 15%) rotate(-15deg)}:host(:not([readonly])) .card[swiped=right]{-webkit-transform:translate(100%, 15%) rotate(15deg);transform:translate(100%, 15%) rotate(15deg)}:host(:not([readonly])) .card[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(:not([readonly])) .card[direction=right] .current [class^=content]::after{background-color:var(--warning, #ed6e33) !important}:host(:not([readonly])) .card [class^=content]{position:absolute;width:100%;height:100%;word-break:break-word}:host(:not([readonly])) .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(:not([readonly])) .card .content-image{-webkit-transition:opacity 0.25s linear;transition:opacity 0.25s linear}:host(:not([readonly])) .card[type=image] yoo-img{height:100%}:host(:not([readonly])) .card[type=textimage] .content-image{top:0;bottom:3.5rem}:host(:not([readonly])) .card[type=textimage] .content-image yoo-img{height:calc(100% - 3.5rem)}:host(:not([readonly])) .card[type=textimage] .content-text{bottom:0;height:3.5rem}:host([direction]) .card{-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 [class^=content]::after{opacity:0.8 !important}:host([direction]) .card.current .content-text{color:var(--stable-light, #f1f1f1)}: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]) .current{-webkit-transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important}:host([direction=left]) .current [data-category]::after{background-color:var(--app-color, #5a30f4) !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([direction=right]) .current [data-category]::after{background-color:var(--warning, #ed6e33) !important}:host([animated]) .card.current:not(.revealing){-webkit-transition-delay:0.25s;transition-delay:0.25s}:host([animated]) .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([animated]) .card.second:not(.revealing){-webkit-transition-delay:0.5s;transition-delay:0.5s}:host([animated]) .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([animated]) .card.third:not(.revealing){-webkit-transition-delay:0.75s;transition-delay:0.75s}:host([animated]) .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}}.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(:not([readonly])){position:relative;display:block;height:100%}:host(:not([readonly])) yoo-banner{height:0}:host(:not([readonly])) main{display:grid;height:100%;-webkit-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}:host(:not([readonly])) #game{display:grid;grid-template-rows:calc(min(65vw, 16rem) * 4 / 3 + 6%) auto;overflow:hidden auto}:host(:not([readonly])) #game #background{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;max-height:calc(min(65vw, 16rem) * 4 / 3);background-color:var(--dark, #000000);-webkit-transition:background-color 0.25s ease-in-out;transition:background-color 0.25s ease-in-out}:host(:not([readonly])) #game #end-message{position:absolute;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(:not([readonly])) #game #end-message yoo-lottie{width:30%;margin:0 auto}:host(:not([readonly])) #game #end-message div{font-weight:bold;font-size:var(--font-size-24, 1.5rem)}:host(:not([readonly])) #game #end-message span{padding-top:var(--spacing-16, 1rem)}:host(:not([readonly])) #game #end-message.active{visibility:visible;opacity:1}:host(:not([readonly])) #cards{position:relative;width:100%;max-width:min(65vw, 16rem);height:100%;max-height:calc(min(65vw, 16rem) * 4 / 3)}:host(:not([readonly])) #actions{display:inline-grid;grid-template-columns:1fr 1fr 1fr;width:100%;max-width:min(65vw, 16rem);margin:var(--spacing-16, 1rem) auto;line-height:2.5}:host(:not([readonly])) #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;line-height:1.75;text-align:center}:host(:not([readonly])) #actions .action yoo-button{margin-bottom:var(--spacing-08, 0.5rem)}: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.95);transform:scale(0.95);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes show{from{-webkit-transform:scale(0.95);transform:scale(0.95);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([direction=left]) #background{background-color:var(--app-color, #5a30f4) !important}:host([direction=right]) #background{background-color:var(--warning, #ed6e33) !important}:host([view=instructions]) main{grid-template-rows:1fr auto}:host([view=instructions]) main #instructions #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([view=instructions]) main #instructions #header #title{font-weight:bold}:host([view=instructions]) main #instructions #categories{display:inline-grid;grid-template-columns:1fr 0.5fr 1fr;-ms-flex-align:center;align-items:center;justify-items:center;width:100%;margin:var(--spacing-24, 1.5rem) 0;text-align:center}:host([view=instructions]) main #instructions #categories .category{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;padding:0;color:var(--stable, #adadad)}:host([view=instructions]) main #instructions #categories .category p{max-width:75%;margin:auto;padding:var(--spacing-16, 1rem) 0;font-weight:bold}:host([view=instructions]) main #instructions #categories .category yoo-tag{margin:0 auto}:host([view=instructions]) main #instructions #document{background-color:var(--light, #ffffff)}:host([view=instructions]) main #instructions #document .document-title{padding:0 var(--spacing-16, 1rem);font-size:var(--font-size-16, 1rem)}:host([view=instructions]) main #instructions #document yoo-form-document{--outer-container-padding:cssvar(spacing-16) cssvar(spacing-16);width:calc(100% - var(--spacing-16, 1rem))}:host([view=instructions]) main yoo-button{-ms-flex-align:end;align-items:flex-end}:host(.mobile[view=instructions]) #instructions #header{padding:var(--spacing-16, 1rem);background:var(--dark, #000000);border-radius:var(--border-radius-04, 0.25rem)}:host(.mobile[view=instructions]) #instructions #header #title{color:var(--light, #ffffff);font-weight:bold;font-size:var(--font-size-28, 1.75rem)}:host(.mobile[view=instructions]) yoo-button{margin:var(--spacing-16, 1rem) 0}:host(.web[view=instructions]) yoo-icon[name=swipe-explanation]{width:5rem;height:5rem;margin:auto;--inner-width:5rem;--inner-height:5rem}:host(.web[view=instructions]) yoo-button{margin-right:var(--spacing-16, 1rem);margin-left:auto}:host(.web[view=game]) main{grid-template-rows:auto 1fr}:host(.web[view=game]) main #actions{top:109%;min-width:32rem;margin-top:0}:host(.web) #game{grid-template-rows:calc(min(65vw, 16rem) * 4 / 3) auto}:host(.web) .action:nth-child(2){margin-top:calc(9% + var(--spacing-32, 2rem))}:host(.web) #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) #header #title{color:var(--dark, #000000) !important;font-weight:bold;font-size:var(--font-size-28, 1.75rem)}";
15
+ const formSwipeCardsCss = "svg:not(:root){overflow:hidden}:host(:not([readonly])) .card{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;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;aspect-ratio:0.75}:host(:not([readonly])) .card:not([direction]){-webkit-transform:translate(0, -5%) scale(0.85);transform:translate(0, -5%) scale(0.85);opacity:0}:host(:not([readonly])) .card.current{z-index:3}:host(:not([readonly])) .card.current:not(.revealing){-webkit-transform:translate(0%, 9%) scale(1);transform:translate(0%, 9%) scale(1);opacity:1}:host(:not([readonly])) .card.second{z-index:2}:host(:not([readonly])) .card.second:not(.revealing){-webkit-transform:translate(0%, 3.5%) scale(0.95);transform:translate(0%, 3.5%) scale(0.95);opacity:1}:host(:not([readonly])) .card.third{z-index:1}:host(:not([readonly])) .card.third:not(.revealing){-webkit-transform:translate(0%, -2%) scale(0.9);transform:translate(0%, -2%) scale(0.9);opacity:1}:host(:not([readonly])) .card.current [class^=content],:host(:not([readonly])) .card.current [class^=content]::after{-webkit-transition:color 0.5s, background-color 0.5s ease-in-out, opacity 0.5s ease-in-out;transition:color 0.5s, background-color 0.5s ease-in-out, opacity 0.5s ease-in-out}:host(:not([readonly])) .card.current [class^=content]::after{position:absolute;top:0;left:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;color:var(--light, #ffffff);opacity:0;content:attr(data-category)}:host(:not([readonly])) .card.current .content-image,:host(:not([readonly])) .card.current .content-text,:host(:not([readonly])) .card[direction] .content-image,:host(:not([readonly])) .card[direction] .content-text{opacity:1 !important}:host(:not([readonly])) .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(:not([readonly])) .card[swiped=left]{-webkit-transform:translate(-100%, 15%) rotate(-15deg);transform:translate(-100%, 15%) rotate(-15deg)}:host(:not([readonly])) .card[swiped=right]{-webkit-transform:translate(100%, 15%) rotate(15deg);transform:translate(100%, 15%) rotate(15deg)}:host(:not([readonly])) .card[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(:not([readonly])) .card[direction=right] .current [class^=content]::after{background-color:var(--warning, #ed6e33) !important}:host(:not([readonly])) .card [class^=content]{position:absolute;width:100%;height:100%;word-break:break-word}:host(:not([readonly])) .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(:not([readonly])) .card .content-image{-webkit-transition:opacity 0.25s linear;transition:opacity 0.25s linear}:host(:not([readonly])) .card[type=image] yoo-img{height:100%}:host(:not([readonly])) .card[type=textimage] .content-image{top:0;bottom:3.5rem}:host(:not([readonly])) .card[type=textimage] .content-image yoo-img{height:calc(100% - 3.5rem)}:host(:not([readonly])) .card[type=textimage] .content-text{bottom:0;height:3.5rem}:host([direction]) .card{-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 [class^=content]::after{opacity:0.8 !important}:host([direction]) .card.current .content-text{color:var(--stable-light, #f1f1f1)}: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]) .current{-webkit-transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important;transform:translate(0%, 9%) scale(1) rotate(-3.5deg) !important}:host([direction=left]) .current [data-category]::after{background-color:var(--app-color, #5a30f4) !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([direction=right]) .current [data-category]::after{background-color:var(--warning, #ed6e33) !important}:host([animated]) .card.current:not(.revealing){-webkit-transition-delay:0.25s;transition-delay:0.25s}:host([animated]) .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([animated]) .card.second:not(.revealing){-webkit-transition-delay:0.5s;transition-delay:0.5s}:host([animated]) .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([animated]) .card.third:not(.revealing){-webkit-transition-delay:0.75s;transition-delay:0.75s}:host([animated]) .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}}.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(:not([readonly])){position:relative;display:block;height:100%}:host(:not([readonly])) yoo-banner{height:0}:host(:not([readonly])) main{display:grid;height:100%;-webkit-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}:host(:not([readonly])) #game{display:grid;grid-template-rows:calc(min(65vw, 16rem) * 4 / 3 + 6%) auto}:host(:not([readonly])) #game #background{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;max-height:calc(min(65vw, 16rem) * 4 / 3);background-color:var(--dark, #000000);-webkit-transition:background-color 0.25s ease-in-out;transition:background-color 0.25s ease-in-out}:host(:not([readonly])) #game #end-message{position:absolute;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(:not([readonly])) #game #end-message yoo-lottie{width:30%;margin:0 auto}:host(:not([readonly])) #game #end-message div{font-weight:bold;font-size:var(--font-size-24, 1.5rem)}:host(:not([readonly])) #game #end-message span{padding-top:var(--spacing-16, 1rem)}:host(:not([readonly])) #game #end-message.active{visibility:visible;opacity:1}:host(:not([readonly])) #cards{position:relative;width:100%;max-width:min(65vw, 16rem);height:100%;max-height:calc(min(65vw, 16rem) * 4 / 3)}:host(:not([readonly])) #actions{display:inline-grid;grid-template-columns:1fr 1fr 1fr;width:100%;max-width:min(65vw, 16rem);margin:var(--spacing-16, 1rem) auto;line-height:2.5}:host(:not([readonly])) #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;line-height:1.75;text-align:center}:host(:not([readonly])) #actions .action yoo-button{margin-bottom:var(--spacing-08, 0.5rem)}: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.95);transform:scale(0.95);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes show{from{-webkit-transform:scale(0.95);transform:scale(0.95);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([direction=left]) #background{background-color:var(--app-color, #5a30f4) !important}:host([direction=right]) #background{background-color:var(--warning, #ed6e33) !important}:host([view=instructions]) main{grid-template-rows:1fr auto}:host([view=instructions]) main #instructions{overflow-y:auto}:host([view=instructions]) main #instructions #header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;word-break:break-word}:host([view=instructions]) main #instructions #header #title{font-weight:bold}:host([view=instructions]) main #instructions #categories{display:inline-grid;grid-template-columns:1fr 0.5fr 1fr;-ms-flex-align:center;align-items:center;justify-items:center;width:100%;margin:var(--spacing-24, 1.5rem) 0;text-align:center}:host([view=instructions]) main #instructions #categories .category{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;padding:0;color:var(--stable, #adadad)}:host([view=instructions]) main #instructions #categories .category p{max-width:75%;margin:auto;padding:var(--spacing-16, 1rem) 0;font-weight:bold}:host([view=instructions]) main #instructions #categories .category yoo-tag{margin:0 auto}:host([view=instructions]) main #instructions #document{background-color:var(--light, #ffffff)}:host([view=instructions]) main #instructions #document .document-title{padding:0 var(--spacing-16, 1rem);font-size:var(--font-size-16, 1rem)}:host([view=instructions]) main #instructions #document yoo-form-document{--outer-container-padding:cssvar(spacing-16) cssvar(spacing-16);width:calc(100% - var(--spacing-16, 1rem))}:host([view=instructions]) main #start{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--light, #ffffff)}:host([view=instructions]) main yoo-button{-ms-flex-align:end;align-items:flex-end}:host(.mobile[view=instructions]) #instructions #header{padding:var(--spacing-16, 1rem);background:var(--dark, #000000);border-radius:var(--border-radius-04, 0.25rem)}:host(.mobile[view=instructions]) #instructions #header #title{color:var(--light, #ffffff);font-weight:bold;font-size:var(--font-size-28, 1.75rem)}:host(.mobile[view=instructions]) #instructions #categories{padding-bottom:calc(var(--spacing-64, 4rem))}:host(.mobile[view=instructions]) #start{bottom:calc(var(--spacing-08, 0.5rem) * -1);height:5.875rem}:host(.mobile[view=instructions]) #start yoo-button{width:100%;margin-bottom:var(--safe-area-inset-bottom)}:host(.web[view=instructions]) #instructions{height:calc(100% - (3.875rem - var(--spacing-16, 1rem)))}:host(.web[view=instructions]) yoo-icon[name=swipe-explanation]{width:5rem;height:5rem;margin:auto;--inner-width:5rem;--inner-height:5rem}:host(.web[view=instructions]) #start{bottom:calc(var(--spacing-16, 1rem) * -1);height:3.875rem}:host(.web[view=instructions]) #start yoo-button{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-right:var(--spacing-16, 1rem);margin-left:auto}:host(.web[view=game]) main{grid-template-rows:auto 1fr;overflow:hidden auto}:host(.web[view=game]) main #actions{top:109%;min-width:32rem;margin-top:0}:host(.web) #game{grid-template-rows:calc(min(65vw, 16rem) * 4 / 3) auto}:host(.web) .action:nth-child(2){margin-top:calc(9% + var(--spacing-32, 2rem))}:host(.web) #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;word-break:break-word;background-color:var(--stable-ultralight, #fafafa)}:host(.web) #header #title{color:var(--dark, #000000) !important;font-weight:bold;font-size:var(--font-size-28, 1.75rem)}";
16
16
 
17
17
  const YooFormSwipeCardsComponent = class {
18
18
  constructor(hostRef) {
@@ -183,9 +183,9 @@ const YooFormSwipeCardsComponent = class {
183
183
  this.hasDataChanged = false;
184
184
  this.initDraggable();
185
185
  setTimeout(() => {
186
- if (this.host.scrollHeight > this.host.clientHeight) {
187
- this.host.scrollTo({
188
- top: this.host.scrollHeight,
186
+ if (this.mainElement.scrollHeight > this.mainElement.clientHeight) {
187
+ this.mainElement.scrollTo({
188
+ top: this.mainElement.scrollHeight,
189
189
  behavior: 'smooth'
190
190
  });
191
191
  }
@@ -303,6 +303,11 @@ const YooFormSwipeCardsComponent = class {
303
303
  swipeAnimation.fromTo(this.buttons.left, 1, { scale: 1.5 }, { scale: 1 }, 0).fromTo(this.buttons.right, 1, { scale: 1 }, { scale: 1.5 }, 1).progress(0.5);
304
304
  const onStartSwiping = () => {
305
305
  if (isSwipeable(cardElement)) {
306
+ const { width, height } = cardElement.getBoundingClientRect();
307
+ index$2.isNativeMobile() && index$2.isIOS() && Object.assign(cardElement.style, {
308
+ width: `${width}px`,
309
+ height: `${height}px`
310
+ });
306
311
  returnedAnimation === null || returnedAnimation === void 0 ? void 0 : returnedAnimation.kill();
307
312
  }
308
313
  };
@@ -433,11 +438,11 @@ const YooFormSwipeCardsComponent = class {
433
438
  }
434
439
  renderStartButton() {
435
440
  return (!this.readonly &&
436
- this.showInstructionView && (index.h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: index$2.isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
441
+ this.showInstructionView && (index.h("section", { id: "start" }, index.h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: index$2.isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
437
442
  this.revealCards = true;
438
443
  this.showInstructionView = false;
439
444
  this.displayFooterElement();
440
- } }, index$2.translate('START'))));
445
+ } }, index$2.translate('START')))));
441
446
  }
442
447
  renderInstructions() {
443
448
  return [index.h("section", { id: "instructions" }, this.renderHeaderInstructions()), this.renderStartButton()];
@@ -463,7 +468,7 @@ const YooFormSwipeCardsComponent = class {
463
468
  !this.readonly && (index.h("yoo-banner", null, index.h("p", { slot: "content" }))));
464
469
  }
465
470
  renderMain() {
466
- return index.h("main", null, !this.readonly && (this.showInstructionView ? this.renderInstructions() : this.renderGame()));
471
+ return index.h("main", { ref: (el) => this.mainElement = el }, !this.readonly && (this.showInstructionView ? this.renderInstructions() : this.renderGame()));
467
472
  }
468
473
  render() {
469
474
  return (index.h(index.Host, { class: { ...commonHelpers.getAppContext(this.host), 'swiper-no-swiping': !this.readonly }, ...{ view: this.showInstructionView ? 'instructions' : 'game' } }, this.renderBanner(), this.renderMain(), this.renderSummary()));
@@ -29,6 +29,10 @@ const YooFormVideoPlayerComponent = class {
29
29
  this.videoInstance.pauseVideo();
30
30
  }
31
31
  }
32
+ onPauseMedia() {
33
+ var _a, _b;
34
+ (_b = (_a = this.videoInstance) === null || _a === void 0 ? void 0 : _a.pauseVideo) === null || _b === void 0 ? void 0 : _b.call(_a);
35
+ }
32
36
  connectedCallback() {
33
37
  if (index$1.isOffline()) {
34
38
  this.inputChanged.emit(true);
@@ -11294,9 +11294,9 @@ const YooIonSlidesComponent = class {
11294
11294
  this.setSlidesOverflow(speed);
11295
11295
  const swiper = await this.getSwiper();
11296
11296
  if (swiper) {
11297
- swiper.slidePrev(speed, runCallbacks);
11298
11297
  const { allowSlidePrev } = swiper;
11299
11298
  Object.assign(swiper, { allowSlidePrev: true, allowTouchMove: true });
11299
+ swiper.slidePrev(speed, runCallbacks);
11300
11300
  await this.updateNavigationButtonsVisibility();
11301
11301
  Object.assign(swiper, { allowSlidePrev });
11302
11302
  }
@@ -11482,7 +11482,7 @@ const YooIonSlidesComponent = class {
11482
11482
  async initSwiper() {
11483
11483
  const finalOptions = this.normalizeOptions();
11484
11484
  // init swiper core
11485
- const { Swiper } = await Promise.resolve().then(function () { return require('./swiper-ace4b24e.js'); });
11485
+ const { Swiper } = await Promise.resolve().then(function () { return require('./swiper-d161724a.js'); });
11486
11486
  await waitForSlides(this.el);
11487
11487
  const swiper = new Swiper(this.el, finalOptions);
11488
11488
  this.swiperReady = true;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const yooIonSlides_entry = require('./yoo-ion-slides-0538e9ad.js');
5
+ const yooIonSlides_entry = require('./yoo-ion-slides-518bf499.js');
6
6
  require('./index-9ca0e46c.js');
7
7
  require('./index-8b980e90.js');
8
8
  require('./index-1a51b855.js');
@@ -25,6 +25,9 @@ export class YooAudioPlayerComponent {
25
25
  onVisibilityChanged() {
26
26
  this.pause();
27
27
  }
28
+ onPauseMedia() {
29
+ this.pause();
30
+ }
28
31
  onSrcChanged() {
29
32
  return this.initPlayer(true);
30
33
  }
@@ -346,4 +349,13 @@ export class YooAudioPlayerComponent {
346
349
  "methodName": "onSrcChanged"
347
350
  }];
348
351
  }
352
+ static get listeners() {
353
+ return [{
354
+ "name": "pauseMedia",
355
+ "method": "onPauseMedia",
356
+ "target": "window",
357
+ "capture": false,
358
+ "passive": false
359
+ }];
360
+ }
349
361
  }
@@ -159,9 +159,9 @@ export class YooIonSlidesComponent {
159
159
  this.setSlidesOverflow(speed);
160
160
  const swiper = await this.getSwiper();
161
161
  if (swiper) {
162
- swiper.slidePrev(speed, runCallbacks);
163
162
  const { allowSlidePrev } = swiper;
164
163
  Object.assign(swiper, { allowSlidePrev: true, allowTouchMove: true });
164
+ swiper.slidePrev(speed, runCallbacks);
165
165
  await this.updateNavigationButtonsVisibility();
166
166
  Object.assign(swiper, { allowSlidePrev });
167
167
  }
@@ -1,5 +1,5 @@
1
1
  import { FormFieldType, IncentivePartType, QUIZZ_COMPONENTS_FORM_FIELDS } from '@shared/interfaces';
2
- import { answerIsValid, cancelRequestInterval, closeModal, debounce, disableKeyboardResize, enableKeyboardResize, evalInContext, findField, findParent, getConfidenceDescriptionKey, getConfidenceEmoji, getCssColor, getDistance, getFieldReplacement, getFieldValue, getModalAnimation, getSession, hasValue, isAndroid, isAnimationsDisabled, isChromeForIos, isConfidenceAssessment, isContentOnly, isFieldWithDirectValue, isFieldWithNoValue, isIonic, isIOS, isIphoneX, isKeyboardResizeModeInactive, isNativeMobile, isNullOrUndefined, isPhotoOrMultiPhotosField, isPresent, isQuiz, isSafari, isSamsung, isTimedQuiz, isValueATranslationKey, isVisible, isWeb, pipes, requestInterval, showContextMenu, showModal, showToast, slenderizeObject, translate, translateMulti, updateDatasetFilters } from '@shared/utils';
2
+ import { answerIsValid, cancelRequestInterval, closeModal, debounce, disableKeyboardResize, dispatchCustomEvent, enableKeyboardResize, evalInContext, findField, findParent, getConfidenceDescriptionKey, getConfidenceEmoji, getCssColor, getDistance, getFieldReplacement, getFieldValue, getModalAnimation, getSession, hasValue, isAndroid, isAnimationsDisabled, isChromeForIos, isConfidenceAssessment, isContentOnly, isFieldWithDirectValue, isFieldWithNoValue, isIonic, isIOS, isIphoneX, isKeyboardResizeModeInactive, isNativeMobile, isNullOrUndefined, isPhotoOrMultiPhotosField, isPresent, isQuiz, isSafari, isSamsung, isTimedQuiz, isValueATranslationKey, isVisible, isWeb, pipes, requestInterval, showContextMenu, showModal, showToast, slenderizeObject, translate, translateMulti, updateDatasetFilters } from '@shared/utils';
3
3
  import { forceUpdate, h, Host } from '@stencil/core';
4
4
  import { assign, cloneDeep, compact, findLastIndex, flatten, get, groupBy, isArray, isEmpty, isEqual, isFunction, isNumber, isObject, isString, keys, orderBy, pick, range, result, uniqBy } from 'lodash-es';
5
5
  import { getMissionStatusIconName } from '../../../feature-operate/campaign/helpers/operation-helpers';
@@ -1477,6 +1477,7 @@ export class YooFormDynamicComponent {
1477
1477
  ev.stopPropagation();
1478
1478
  this.cleanHiddenReadonlyFieldsByInvalidRules();
1479
1479
  this.save.emit(this.currentData);
1480
+ dispatchCustomEvent('pauseMedia', window);
1480
1481
  }
1481
1482
  onWorflowReject(ev) {
1482
1483
  ev.stopPropagation();
@@ -2877,7 +2878,7 @@ export class YooFormDynamicComponent {
2877
2878
  this.currentWorkflowStep.type !== 'substep' &&
2878
2879
  this.currentWorkflowStep.actions &&
2879
2880
  ((_a = this.currentWorkflowStep.actions.find((a) => a.type === 'reject')) === null || _a === void 0 ? void 0 : _a.hidden) !== true) {
2880
- const rejectFn = (e) => (this.validity ? this.onWorflowReject(e) : this.focusInvalidField(true));
2881
+ const rejectFn = (e) => (this.onWorflowReject(e)); //this.validity ? this.onWorflowReject(e) : this.focusInvalidField(true));
2881
2882
  let rejectText = 'UNVALIDATED';
2882
2883
  if ((_d = (_c = (_b = this.currentWorkflowStep) === null || _b === void 0 ? void 0 : _b.actions) === null || _c === void 0 ? void 0 : _c.find((a) => a.type === 'reject')) === null || _d === void 0 ? void 0 : _d.text) {
2883
2884
  rejectText = (_e = this.currentWorkflowStep.actions.find((a) => a.type === 'reject')) === null || _e === void 0 ? void 0 : _e.text;
@@ -2896,7 +2897,7 @@ export class YooFormDynamicComponent {
2896
2897
  this.currentWorkflowStep.actions &&
2897
2898
  ((_f = this.currentWorkflowStep.actions.find((a) => a.type === 'sendback')) === null || _f === void 0 ? void 0 : _f.hidden) !== true) {
2898
2899
  let sendbackText = 'SENDBACK';
2899
- const sendbackFn = (e) => (this.validity ? this.onWorkflowSendBack(e) : this.focusInvalidField(true));
2900
+ const sendbackFn = (e) => (this.onWorkflowSendBack(e)); //this.validity ? this.onWorkflowSendBack(e): this.focusInvalidField(true));
2900
2901
  if ((_j = (_h = (_g = this.currentWorkflowStep) === null || _g === void 0 ? void 0 : _g.actions) === null || _h === void 0 ? void 0 : _h.find((a) => a.type === 'sendback')) === null || _j === void 0 ? void 0 : _j.text) {
2901
2902
  sendbackText = (_k = this.currentWorkflowStep.actions.find((a) => a.type === 'sendback')) === null || _k === void 0 ? void 0 : _k.text;
2902
2903
  }
@@ -2914,7 +2915,7 @@ export class YooFormDynamicComponent {
2914
2915
  this.currentWorkflowStep.actions &&
2915
2916
  ((_l = this.currentWorkflowStep.actions.find((a) => a.type === 'reassign')) === null || _l === void 0 ? void 0 : _l.hidden) !== true) {
2916
2917
  let reassignText = 'REASSIGN';
2917
- const reassignFn = (e) => (this.validity ? this.onWorkflowReassign(e) : this.focusInvalidField(true));
2918
+ const reassignFn = (e) => (this.onWorkflowReassign(e)); //this.validity ? this.onWorkflowReassign(e) : this.focusInvalidField(true));
2918
2919
  if ((_p = (_o = (_m = this.currentWorkflowStep) === null || _m === void 0 ? void 0 : _m.actions) === null || _o === void 0 ? void 0 : _o.find((a) => a.type === 'reassign')) === null || _p === void 0 ? void 0 : _p.text) {
2919
2920
  reassignText = (_q = this.currentWorkflowStep.actions.find((a) => a.type === 'reassign')) === null || _q === void 0 ? void 0 : _q.text;
2920
2921
  }
@@ -515,7 +515,6 @@ svg:not(:root) {
515
515
  :host(:not([readonly])) #game {
516
516
  display: grid;
517
517
  grid-template-rows: calc(min(65vw, 16rem) * 4 / 3 + 6%) auto;
518
- overflow: hidden auto;
519
518
  }
520
519
  :host(:not([readonly])) #game #background {
521
520
  position: relative;
@@ -706,9 +705,13 @@ svg:not(:root) {
706
705
  :host([view=instructions]) main {
707
706
  grid-template-rows: 1fr auto;
708
707
  }
708
+ :host([view=instructions]) main #instructions {
709
+ overflow-y: auto;
710
+ }
709
711
  :host([view=instructions]) main #instructions #header {
710
712
  display: flex;
711
713
  flex-direction: column;
714
+ word-break: break-word;
712
715
  }
713
716
  :host([view=instructions]) main #instructions #header #title {
714
717
  font-weight: bold;
@@ -749,6 +752,14 @@ svg:not(:root) {
749
752
  --outer-container-padding: cssvar(spacing-16) cssvar(spacing-16);
750
753
  width: calc(100% - var(--spacing-16, 1rem));
751
754
  }
755
+ :host([view=instructions]) main #start {
756
+ position: absolute;
757
+ display: flex;
758
+ align-items: center;
759
+ justify-content: center;
760
+ width: 100%;
761
+ background: var(--light, #ffffff);
762
+ }
752
763
  :host([view=instructions]) main yoo-button {
753
764
  align-items: flex-end;
754
765
  }
@@ -763,10 +774,21 @@ svg:not(:root) {
763
774
  font-weight: bold;
764
775
  font-size: var(--font-size-28, 1.75rem);
765
776
  }
766
- :host(.mobile[view=instructions]) yoo-button {
767
- margin: var(--spacing-16, 1rem) 0;
777
+ :host(.mobile[view=instructions]) #instructions #categories {
778
+ padding-bottom: calc(var(--spacing-64, 4rem));
779
+ }
780
+ :host(.mobile[view=instructions]) #start {
781
+ bottom: calc(var(--spacing-08, 0.5rem) * -1);
782
+ height: 5.875rem;
783
+ }
784
+ :host(.mobile[view=instructions]) #start yoo-button {
785
+ width: 100%;
786
+ margin-bottom: var(--safe-area-inset-bottom);
768
787
  }
769
788
 
789
+ :host(.web[view=instructions]) #instructions {
790
+ height: calc(100% - (3.875rem - var(--spacing-16, 1rem)));
791
+ }
770
792
  :host(.web[view=instructions]) yoo-icon[name=swipe-explanation] {
771
793
  width: 5rem;
772
794
  height: 5rem;
@@ -774,13 +796,19 @@ svg:not(:root) {
774
796
  --inner-width: 5rem;
775
797
  --inner-height: 5rem;
776
798
  }
777
- :host(.web[view=instructions]) yoo-button {
799
+ :host(.web[view=instructions]) #start {
800
+ bottom: calc(var(--spacing-16, 1rem) * -1);
801
+ height: 3.875rem;
802
+ }
803
+ :host(.web[view=instructions]) #start yoo-button {
804
+ width: fit-content;
778
805
  margin-right: var(--spacing-16, 1rem);
779
806
  margin-left: auto;
780
807
  }
781
808
 
782
809
  :host(.web[view=game]) main {
783
810
  grid-template-rows: auto 1fr;
811
+ overflow: hidden auto;
784
812
  }
785
813
  :host(.web[view=game]) main #actions {
786
814
  top: 109%;
@@ -800,6 +828,7 @@ svg:not(:root) {
800
828
  padding: var(--spacing-08, 0.5rem) var(--spacing-16, 1rem);
801
829
  line-height: 1.75;
802
830
  text-align: center;
831
+ word-break: break-word;
803
832
  background-color: var(--stable-ultralight, #fafafa);
804
833
  }
805
834
  :host(.web) #header #title {
@@ -1,5 +1,5 @@
1
1
  import { SwipeCardsDirection, SwipeCardsMode } from '@shared/interfaces';
2
- import { Draggable, findParent, getMedia, getUUID, gsapSet, gsapTimeline, gsapTo, isCloudinaryLink, isWeb, Power1, translate, translateMulti } from '@shared/utils';
2
+ import { Draggable, findParent, getMedia, getUUID, gsapSet, gsapTimeline, gsapTo, isCloudinaryLink, isIOS, isNativeMobile, isWeb, Power1, translate, translateMulti } from '@shared/utils';
3
3
  import { forceUpdate, h, Host } from '@stencil/core';
4
4
  import { clamp, inRange, isEqual, shuffle } from 'lodash-es';
5
5
  import { getAppContext } from '../../../utils/helpers/common-helpers';
@@ -171,9 +171,9 @@ export class YooFormSwipeCardsComponent {
171
171
  this.hasDataChanged = false;
172
172
  this.initDraggable();
173
173
  setTimeout(() => {
174
- if (this.host.scrollHeight > this.host.clientHeight) {
175
- this.host.scrollTo({
176
- top: this.host.scrollHeight,
174
+ if (this.mainElement.scrollHeight > this.mainElement.clientHeight) {
175
+ this.mainElement.scrollTo({
176
+ top: this.mainElement.scrollHeight,
177
177
  behavior: 'smooth'
178
178
  });
179
179
  }
@@ -291,6 +291,11 @@ export class YooFormSwipeCardsComponent {
291
291
  swipeAnimation.fromTo(this.buttons.left, 1, { scale: 1.5 }, { scale: 1 }, 0).fromTo(this.buttons.right, 1, { scale: 1 }, { scale: 1.5 }, 1).progress(0.5);
292
292
  const onStartSwiping = () => {
293
293
  if (isSwipeable(cardElement)) {
294
+ const { width, height } = cardElement.getBoundingClientRect();
295
+ isNativeMobile() && isIOS() && Object.assign(cardElement.style, {
296
+ width: `${width}px`,
297
+ height: `${height}px`
298
+ });
294
299
  returnedAnimation === null || returnedAnimation === void 0 ? void 0 : returnedAnimation.kill();
295
300
  }
296
301
  };
@@ -421,11 +426,11 @@ export class YooFormSwipeCardsComponent {
421
426
  }
422
427
  renderStartButton() {
423
428
  return (!this.readonly &&
424
- this.showInstructionView && (h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
429
+ this.showInstructionView && (h("section", { id: "start" }, h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
425
430
  this.revealCards = true;
426
431
  this.showInstructionView = false;
427
432
  this.displayFooterElement();
428
- } }, translate('START'))));
433
+ } }, translate('START')))));
429
434
  }
430
435
  renderInstructions() {
431
436
  return [h("section", { id: "instructions" }, this.renderHeaderInstructions()), this.renderStartButton()];
@@ -451,7 +456,7 @@ export class YooFormSwipeCardsComponent {
451
456
  !this.readonly && (h("yoo-banner", null, h("p", { slot: "content" }))));
452
457
  }
453
458
  renderMain() {
454
- return h("main", null, !this.readonly && (this.showInstructionView ? this.renderInstructions() : this.renderGame()));
459
+ return h("main", { ref: (el) => this.mainElement = el }, !this.readonly && (this.showInstructionView ? this.renderInstructions() : this.renderGame()));
455
460
  }
456
461
  render() {
457
462
  return (h(Host, { class: { ...getAppContext(this.host), 'swiper-no-swiping': !this.readonly }, ...{ view: this.showInstructionView ? 'instructions' : 'game' } }, this.renderBanner(), this.renderMain(), this.renderSummary()));
@@ -17,6 +17,10 @@ export class YooFormVideoPlayerComponent {
17
17
  this.videoInstance.pauseVideo();
18
18
  }
19
19
  }
20
+ onPauseMedia() {
21
+ var _a, _b;
22
+ (_b = (_a = this.videoInstance) === null || _a === void 0 ? void 0 : _a.pauseVideo) === null || _b === void 0 ? void 0 : _b.call(_a);
23
+ }
20
24
  connectedCallback() {
21
25
  if (isOffline()) {
22
26
  this.inputChanged.emit(true);
@@ -153,4 +157,13 @@ export class YooFormVideoPlayerComponent {
153
157
  "methodName": "updateVisibility"
154
158
  }];
155
159
  }
160
+ static get listeners() {
161
+ return [{
162
+ "name": "pauseMedia",
163
+ "method": "onPauseMedia",
164
+ "target": "window",
165
+ "capture": false,
166
+ "passive": false
167
+ }];
168
+ }
156
169
  }