@yoobic/yobi 8.5.5 → 8.5.6
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.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{swiper-ace4b24e.js → swiper-d161724a.js} +1 -1
- package/dist/cjs/yoo-audio-player.cjs.entry.js +3 -0
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +1 -0
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +12 -7
- package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +4 -0
- package/dist/cjs/{yoo-ion-slides-0538e9ad.js → yoo-ion-slides-518bf499.js} +2 -2
- package/dist/cjs/yoo-ion-slides.cjs.entry.js +1 -1
- package/dist/collection/components/2.molecules/audio-player/audio-player.js +12 -0
- package/dist/collection/components/2.molecules/slides/slides.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -1
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +33 -4
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +12 -7
- package/dist/collection/components/form/form-videoplayer/form-videoplayer.js +13 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/swiper-cf9933dc.js → design-system/swiper-6c4067fb.js} +2 -2
- package/dist/design-system/yoo-audio-player.entry.js +3 -0
- package/dist/design-system/yoo-form-dynamic.entry.js +2 -1
- package/dist/design-system/yoo-form-swipe-cards.entry.js +13 -8
- package/dist/design-system/yoo-form-videoplayer.entry.js +4 -0
- package/dist/{esm/yoo-ion-slides-6ad13e79.js → design-system/yoo-ion-slides-74300c6b.js} +2 -2
- package/dist/design-system/yoo-ion-slides.entry.js +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/{design-system/swiper-cf9933dc.js → esm/swiper-6c4067fb.js} +2 -2
- package/dist/esm/yoo-audio-player.entry.js +3 -0
- package/dist/esm/yoo-form-dynamic.entry.js +2 -1
- package/dist/esm/yoo-form-swipe-cards.entry.js +13 -8
- package/dist/esm/yoo-form-videoplayer.entry.js +4 -0
- package/dist/{design-system/yoo-ion-slides-6ad13e79.js → esm/yoo-ion-slides-74300c6b.js} +2 -2
- package/dist/esm/yoo-ion-slides.entry.js +1 -1
- package/dist/types/components/2.molecules/audio-player/audio-player.d.ts +1 -0
- package/dist/types/components/form/form-swipe-cards/form-swipe-cards.d.ts +1 -0
- package/dist/types/components/form/form-videoplayer/form-videoplayer.d.ts +1 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as Swiper, P as Pagination, A as Autoplay, a as Scrollbar } from './yoo-ion-slides-
|
2
|
-
export { S as Swiper } from './yoo-ion-slides-
|
1
|
+
import { S as Swiper, P as Pagination, A as Autoplay, a as Scrollbar } from './yoo-ion-slides-74300c6b.js';
|
2
|
+
export { S as Swiper } from './yoo-ion-slides-74300c6b.js';
|
3
3
|
import './index-a6a92b3d.js';
|
4
4
|
import './index-79495ce8.js';
|
5
5
|
import './index-09de6817.js';
|
@@ -6,7 +6,7 @@ import { a as getMissionStatusIconName } from './operation-helpers-770ce05f.js';
|
|
6
6
|
import { j as lockSwipes, q as querySelectorDeep, c as querySelectorAllDeep, b as getActiveElementShadow, m as hideShowTabbar, g as getAppContext } from './common-helpers-d0ae29f8.js';
|
7
7
|
import { a as isRequired, b as getTypeValidation, c as isReadonly, s as setFieldData, u as updateFormulas, d as getDynamicProperty, e as isDisabled, f as isCreationAllowed, h as isEditionAllowed, j as generateLabel } from './form-helpers-3ec32a1d.js';
|
8
8
|
import { e as setValueAndResetInputValidity, a as setValueAndValidateInput } from './form-input-helpers-af6b121e.js';
|
9
|
-
import { H as isWeb, t as translate, o as isNativeMobile, I as debounce, p as isAndroid, X as findParent, bB as getFieldValue, cO as isQuiz, em as isTimedQuiz, en as isConfidenceAssessment, b9 as showToast, b3 as findField, k as isNullOrUndefined, a8 as getSession, dE as isKeyboardResizeModeInactive, af as disableKeyboardResize, cB as isIonic, ag as enableKeyboardResize, A as cancelRequestInterval, bG as slenderizeObject, y as requestInterval, eo as isVisible, ep as hasValue, aH as showContextMenu, G as showModal, a3 as translateMulti, Q as getCssColor, N as isIOS, eq as getDistance, er as isFieldWithDirectValue, aM as isPresent, es as isFieldWithNoValue, et as updateDatasetFilters, dl as isAnimationsDisabled, cL as answerIsValid, eu as getConfidenceEmoji, cI as getConfidenceDescriptionKey, M as isIphoneX, cG as isContentOnly, av as pipes, bC as getFieldReplacement, bx as evalInContext, ev as isSamsung, w as closeModal, F as getModalAnimation, ew as isPhotoOrMultiPhotosField, bk as isValueATranslationKey, bW as isSafari, ex as isChromeForIos } from './index-09de6817.js';
|
9
|
+
import { H as isWeb, t as translate, o as isNativeMobile, I as debounce, p as isAndroid, X as findParent, bB as getFieldValue, cO as isQuiz, em as isTimedQuiz, en as isConfidenceAssessment, b9 as showToast, b3 as findField, k as isNullOrUndefined, a8 as getSession, dE as isKeyboardResizeModeInactive, af as disableKeyboardResize, cB as isIonic, ag as enableKeyboardResize, A as cancelRequestInterval, bG as slenderizeObject, y as requestInterval, eo as isVisible, ep as hasValue, aH as showContextMenu, G as showModal, a3 as translateMulti, Q as getCssColor, N as isIOS, eq as getDistance, ap as dispatchCustomEvent, er as isFieldWithDirectValue, aM as isPresent, es as isFieldWithNoValue, et as updateDatasetFilters, dl as isAnimationsDisabled, cL as answerIsValid, eu as getConfidenceEmoji, cI as getConfidenceDescriptionKey, M as isIphoneX, cG as isContentOnly, av as pipes, bC as getFieldReplacement, bx as evalInContext, ev as isSamsung, w as closeModal, F as getModalAnimation, ew as isPhotoOrMultiPhotosField, bk as isValueATranslationKey, bW as isSafari, ex as isChromeForIos } from './index-09de6817.js';
|
10
10
|
import './_commonjsHelpers-f4d11124.js';
|
11
11
|
|
12
12
|
function getFieldState(field, fieldsState) {
|
@@ -1673,6 +1673,7 @@ const YooFormDynamicComponent = class {
|
|
1673
1673
|
ev.stopPropagation();
|
1674
1674
|
this.cleanHiddenReadonlyFieldsByInvalidRules();
|
1675
1675
|
this.save.emit(this.currentData);
|
1676
|
+
dispatchCustomEvent('pauseMedia', window);
|
1676
1677
|
}
|
1677
1678
|
onWorflowReject(ev) {
|
1678
1679
|
ev.stopPropagation();
|
@@ -5,10 +5,10 @@ import { A as isEqual, T as shuffle, V as inRange, X as clamp } from './lodash-7
|
|
5
5
|
import { g as getAppContext } from './common-helpers-d0ae29f8.js';
|
6
6
|
import { h as hasDuplicates, s as showWarningBanner } from './draggable-tags-helpers-53313087.js';
|
7
7
|
import { a as setValueAndValidateInput } from './form-input-helpers-af6b121e.js';
|
8
|
-
import { az as isCloudinaryLink, X as findParent, aV as Draggable, aU as getUUID, aX as gsapSet, a3 as translateMulti, x as gsapTimeline, bX as Power1, aW as gsapTo, bo as getMedia, H as isWeb, t as translate } from './index-09de6817.js';
|
8
|
+
import { az as isCloudinaryLink, X as findParent, aV as Draggable, aU as getUUID, aX as gsapSet, a3 as translateMulti, x as gsapTimeline, o as isNativeMobile, N as isIOS, bX as Power1, aW as gsapTo, bo as getMedia, H as isWeb, t as translate } from './index-09de6817.js';
|
9
9
|
import './_commonjsHelpers-f4d11124.js';
|
10
10
|
|
11
|
-
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)}";
|
11
|
+
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)}";
|
12
12
|
|
13
13
|
const YooFormSwipeCardsComponent = class {
|
14
14
|
constructor(hostRef) {
|
@@ -179,9 +179,9 @@ const YooFormSwipeCardsComponent = class {
|
|
179
179
|
this.hasDataChanged = false;
|
180
180
|
this.initDraggable();
|
181
181
|
setTimeout(() => {
|
182
|
-
if (this.
|
183
|
-
this.
|
184
|
-
top: this.
|
182
|
+
if (this.mainElement.scrollHeight > this.mainElement.clientHeight) {
|
183
|
+
this.mainElement.scrollTo({
|
184
|
+
top: this.mainElement.scrollHeight,
|
185
185
|
behavior: 'smooth'
|
186
186
|
});
|
187
187
|
}
|
@@ -299,6 +299,11 @@ const YooFormSwipeCardsComponent = class {
|
|
299
299
|
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);
|
300
300
|
const onStartSwiping = () => {
|
301
301
|
if (isSwipeable(cardElement)) {
|
302
|
+
const { width, height } = cardElement.getBoundingClientRect();
|
303
|
+
isNativeMobile() && isIOS() && Object.assign(cardElement.style, {
|
304
|
+
width: `${width}px`,
|
305
|
+
height: `${height}px`
|
306
|
+
});
|
302
307
|
returnedAnimation === null || returnedAnimation === void 0 ? void 0 : returnedAnimation.kill();
|
303
308
|
}
|
304
309
|
};
|
@@ -429,11 +434,11 @@ const YooFormSwipeCardsComponent = class {
|
|
429
434
|
}
|
430
435
|
renderStartButton() {
|
431
436
|
return (!this.readonly &&
|
432
|
-
this.showInstructionView && (h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
|
437
|
+
this.showInstructionView && (h("section", { id: "start" }, h("yoo-button", { disabled: !this.hasData || !this.isDataValid, size: isWeb(this.host) ? 'medium' : 'large', color: "app-color", onClick: () => {
|
433
438
|
this.revealCards = true;
|
434
439
|
this.showInstructionView = false;
|
435
440
|
this.displayFooterElement();
|
436
|
-
} }, translate('START'))));
|
441
|
+
} }, translate('START')))));
|
437
442
|
}
|
438
443
|
renderInstructions() {
|
439
444
|
return [h("section", { id: "instructions" }, this.renderHeaderInstructions()), this.renderStartButton()];
|
@@ -459,7 +464,7 @@ const YooFormSwipeCardsComponent = class {
|
|
459
464
|
!this.readonly && (h("yoo-banner", null, h("p", { slot: "content" }))));
|
460
465
|
}
|
461
466
|
renderMain() {
|
462
|
-
return h("main",
|
467
|
+
return h("main", { ref: (el) => this.mainElement = el }, !this.readonly && (this.showInstructionView ? this.renderInstructions() : this.renderGame()));
|
463
468
|
}
|
464
469
|
render() {
|
465
470
|
return (h(Host, { class: { ...getAppContext(this.host), 'swiper-no-swiping': !this.readonly }, ...{ view: this.showInstructionView ? 'instructions' : 'game' } }, this.renderBanner(), this.renderMain(), this.renderSummary()));
|
@@ -25,6 +25,10 @@ const YooFormVideoPlayerComponent = class {
|
|
25
25
|
this.videoInstance.pauseVideo();
|
26
26
|
}
|
27
27
|
}
|
28
|
+
onPauseMedia() {
|
29
|
+
var _a, _b;
|
30
|
+
(_b = (_a = this.videoInstance) === null || _a === void 0 ? void 0 : _a.pauseVideo) === null || _b === void 0 ? void 0 : _b.call(_a);
|
31
|
+
}
|
28
32
|
connectedCallback() {
|
29
33
|
if (isOffline()) {
|
30
34
|
this.inputChanged.emit(true);
|
@@ -11292,9 +11292,9 @@ const YooIonSlidesComponent = class {
|
|
11292
11292
|
this.setSlidesOverflow(speed);
|
11293
11293
|
const swiper = await this.getSwiper();
|
11294
11294
|
if (swiper) {
|
11295
|
-
swiper.slidePrev(speed, runCallbacks);
|
11296
11295
|
const { allowSlidePrev } = swiper;
|
11297
11296
|
Object.assign(swiper, { allowSlidePrev: true, allowTouchMove: true });
|
11297
|
+
swiper.slidePrev(speed, runCallbacks);
|
11298
11298
|
await this.updateNavigationButtonsVisibility();
|
11299
11299
|
Object.assign(swiper, { allowSlidePrev });
|
11300
11300
|
}
|
@@ -11480,7 +11480,7 @@ const YooIonSlidesComponent = class {
|
|
11480
11480
|
async initSwiper() {
|
11481
11481
|
const finalOptions = this.normalizeOptions();
|
11482
11482
|
// init swiper core
|
11483
|
-
const { Swiper } = await import('./swiper-
|
11483
|
+
const { Swiper } = await import('./swiper-6c4067fb.js');
|
11484
11484
|
await waitForSlides(this.el);
|
11485
11485
|
const swiper = new Swiper(this.el, finalOptions);
|
11486
11486
|
this.swiperReady = true;
|